/* =========================================================
   Croseek · Coming Soon
   Restrained Apple / editorial enterprise design system
   ========================================================= */
:root {
  --ink: #1d1d1f;
  --ink-2: #525866;
  --muted: #868e96;
  --line: #e8eaee;
  --line-strong: #dcdfe6;
  --canvas: #f5f5f7;
  --surface: #ffffff;
  --blue: #0071e3;
  --blue-hover: #0062c4;
  --blue-soft: rgba(0, 113, 227, 0.08);
  --navy: #112d54;

  --shadow-xs: 0 1px 2px rgba(16, 24, 40, 0.05);
  --shadow-card: 0 1px 2px rgba(16, 24, 40, 0.04), 0 6px 20px rgba(16, 24, 40, 0.04);
  --shadow-float: 0 18px 48px rgba(16, 24, 40, 0.07), 0 2px 8px rgba(16, 24, 40, 0.03);

  --ease: cubic-bezier(0.25, 0.1, 0.25, 1);
  --ease-out: cubic-bezier(0.22, 1, 0.36, 1);

  --font: -apple-system, BlinkMacSystemFont, 'SF Pro Display', 'SF Pro Text', 'PingFang SC',
    'Hiragino Sans GB', 'Microsoft YaHei', 'Helvetica Neue', 'Segoe UI', sans-serif;
  --mono: ui-monospace, 'SFMono-Regular', Menlo, Consolas, monospace;
}

*,
*::before,
*::after {
  box-sizing: border-box;
}

html {
  -webkit-text-size-adjust: 100%;
  scroll-behavior: smooth;
  scrollbar-width: none;
  -ms-overflow-style: none;
}

html::-webkit-scrollbar,
body::-webkit-scrollbar {
  display: none;
  width: 0;
  height: 0;
}

body {
  margin: 0;
  font-family: var(--font);
  color: var(--ink);
  background: var(--surface);
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  text-rendering: optimizeLegibility;
  overflow-x: hidden;
  scrollbar-width: none;
  -ms-overflow-style: none;
}

h1,
h2,
h3,
p {
  margin: 0;
}

p {
  text-wrap: pretty;
}

a {
  color: inherit;
  text-decoration: none;
}

button {
  font: inherit;
  color: inherit;
  cursor: pointer;
  -webkit-tap-highlight-color: transparent;
}

img,
svg {
  display: block;
}

:focus-visible {
  outline: none;
  box-shadow: 0 0 0 3px rgba(0, 113, 227, 0.22);
  border-radius: 8px;
}

::selection {
  background: rgba(0, 113, 227, 0.14);
}

.container {
  width: 100%;
  max-width: 1120px;
  margin: 0 auto;
  padding: 0 28px;
}

.container-narrow {
  max-width: 840px;
}

[data-i18n] {
  transition: opacity 0.18s var(--ease);
}

html.is-switching [data-i18n] {
  opacity: 0;
}

/* ---------- Dormant status dot ---------- */
.dot-dormant {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: #b2b9c5;
  flex: none;
  animation: dormantBreathe 3.8s var(--ease) infinite;
}

@keyframes dormantBreathe {
  0%,
  100% {
    opacity: 0.45;
  }
  50% {
    opacity: 0.9;
  }
}

/* =========================================================
   Navigation
   ========================================================= */
.nav {
  position: fixed;
  inset: 0 0 auto 0;
  z-index: 50;
  height: 60px;
  transition: background-color 0.28s var(--ease), box-shadow 0.28s var(--ease),
    backdrop-filter 0.28s var(--ease);
}

.nav.is-scrolled {
  background: rgba(255, 255, 255, 0.84);
  -webkit-backdrop-filter: blur(20px) saturate(180%);
  backdrop-filter: blur(20px) saturate(180%);
  box-shadow: 0 1px 0 rgba(0, 0, 0, 0.06);
}

.nav-inner {
  height: 100%;
  max-width: 1240px;
  margin: 0 auto;
  padding: 0 28px;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 9px;
  font-size: 17px;
  font-weight: 650;
  letter-spacing: -0.025em;
}

.nav-right {
  display: flex;
  align-items: center;
  gap: 10px;
}

.status-pill {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  height: 30px;
  padding: 0 12px;
  border: 1px solid #e6e8ec;
  border-radius: 999px;
  background: #f3f4f6;
  font-size: 12px;
  font-weight: 500;
  color: #8c94a0;
  user-select: none;
  cursor: default;
}

.lang-switch {
  display: inline-flex;
  height: 30px;
  padding: 2.5px;
  border-radius: 999px;
  background: #eff0f3;
}

.lang-switch button {
  min-width: 34px;
  padding: 0 9px;
  border: 0;
  border-radius: 999px;
  background: transparent;
  font-size: 12px;
  color: var(--muted);
  transition: background-color 0.18s var(--ease), color 0.18s var(--ease),
    box-shadow 0.18s var(--ease);
}

.lang-switch button[aria-pressed='true'] {
  background: #ffffff;
  color: var(--ink);
  font-weight: 600;
  box-shadow: var(--shadow-xs);
}

.lang-switch button:hover:not([aria-pressed='true']) {
  color: var(--ink);
}

/* =========================================================
   Section 1: Hero (Pure White Restraint)
   ========================================================= */
.hero {
  position: relative;
  min-height: 100vh;
  min-height: 100svh;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 96px 24px 104px;
  background: var(--surface);
}

.hero-content {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  will-change: transform, opacity;
}

.hero-logo {
  width: clamp(112px, 14vw, 162px);
  height: auto;
  margin-bottom: 36px;
  overflow: visible;
}

.hero-title {
  font-size: clamp(54px, 8.8vw, 102px);
  font-weight: 700;
  line-height: 1;
  letter-spacing: -0.038em;
}

.hero-sub {
  margin-top: 20px;
  font-size: clamp(17px, 2vw, 22px);
  font-weight: 500;
  color: #2d3138;
  letter-spacing: 0.01em;
}

.hero-pill {
  display: inline-flex;
  align-items: center;
  gap: 9px;
  margin-top: 28px;
  height: 34px;
  padding: 0 16px;
  border: 1px solid #e6e8ec;
  border-radius: 999px;
  background: #f3f4f6;
  font-size: 13px;
  font-weight: 500;
  color: #8c94a0;
  user-select: none;
  cursor: default;
}

.hero-pill .sep {
  width: 1px;
  height: 11px;
  background: #d8dce3;
}

.hero-tagline {
  margin-top: 28px;
  font-size: 15px;
  color: var(--muted);
  letter-spacing: 0.015em;
}

/* Quiet minimal scroll chevron */
.scroll-cue {
  position: absolute;
  left: 50%;
  bottom: 28px;
  transform: translateX(-50%);
  display: grid;
  place-items: center;
  width: 40px;
  height: 40px;
  border: 0;
  border-radius: 50%;
  background: transparent;
  color: #b4bcc8;
  transition: color 0.2s var(--ease), opacity 0.3s var(--ease), transform 0.25s var(--ease);
}

.scroll-cue:hover {
  color: var(--ink);
  transform: translate(-50%, 3px);
}

.scroll-cue.is-hidden {
  opacity: 0;
  pointer-events: none;
}

.scroll-cue svg {
  width: 20px;
  height: 20px;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.6;
  stroke-linecap: round;
  stroke-linejoin: round;
}

/* ---------- Hero intro animation (JS only) ---------- */
.js .lg {
  opacity: 0;
  transform-box: fill-box;
  transform-origin: center;
}

.js .lg-navy {
  transform: translate(-38px, -30px);
}

.js .lg-blue {
  transform: translate(38px, 30px);
}

.js .lg-ov1,
.js .lg-ov2 {
  transform: scale(0.7);
}

.js.is-loaded .lg {
  opacity: 1;
  transform: none;
  transition: opacity 0.8s var(--ease-out), transform 1s var(--ease-out);
}

.js.is-loaded .lg-navy {
  transition-delay: 0.06s;
}

.js.is-loaded .lg-blue {
  transition-delay: 0.16s;
}

.js.is-loaded .lg-ov1 {
  transition-delay: 0.54s;
}

.js.is-loaded .lg-ov2 {
  transition-delay: 0.64s;
}

.js .intro {
  opacity: 0;
  transform: translateY(14px);
}

.js .scroll-cue.intro {
  transform: translate(-50%, 10px);
}

.js.is-loaded .intro {
  opacity: 1;
  transform: none;
  transition: opacity 0.8s var(--ease-out) var(--d, 0s), transform 0.9s var(--ease-out) var(--d, 0s);
}

.js.is-loaded .scroll-cue.intro {
  transform: translateX(-50%);
}

/* =========================================================
   Shared Section Layout
   ========================================================= */
.section {
  padding: clamp(88px, 11vw, 144px) 0;
}

.section-tinted {
  background: var(--canvas);
}

.section-head {
  text-align: center;
  margin-bottom: clamp(40px, 5vw, 60px);
}

.section-head-left {
  text-align: left;
}

.section-head h2 {
  font-size: clamp(26px, 3.6vw, 42px);
  font-weight: 700;
  line-height: 1.16;
  letter-spacing: -0.028em;
  text-wrap: balance;
}

.section-head p {
  margin-top: 14px;
  font-size: clamp(15.5px, 1.5vw, 17.5px);
  line-height: 1.65;
  color: var(--muted);
}

.js .reveal {
  opacity: 0;
  transform: translateY(20px);
  transition: opacity 0.75s var(--ease-out) var(--d, 0s), transform 0.85s var(--ease-out) var(--d, 0s);
}

.js .reveal.is-visible {
  opacity: 1;
  transform: none;
}

/* =========================================================
   Section 2: Centered Croseek Search Showcase
   ========================================================= */
.search-stage {
  display: flex;
  flex-direction: column;
  gap: 32px;
}

.composer {
  border: 1px solid #e4e6eb;
  border-radius: 20px;
  background: #ffffff;
  box-shadow: var(--shadow-float);
  overflow: hidden;
}

.composer-input {
  min-height: 120px;
  padding: 26px 28px 12px;
  font-size: clamp(16px, 1.6vw, 18.5px);
  line-height: 1.6;
  color: var(--ink);
  letter-spacing: -0.005em;
}

.caret {
  display: inline-block;
  width: 2px;
  height: 1.08em;
  margin-left: 2px;
  vertical-align: -0.16em;
  background: var(--blue);
  border-radius: 1px;
  animation: blink 1s steps(1) infinite;
}

@keyframes blink {
  50% {
    opacity: 0;
  }
}

.composer-bar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 12px 16px 14px;
  border-top: 1px solid #f1f2f5;
}

.seg {
  display: inline-flex;
  padding: 3px;
  border-radius: 10px;
  background: #f0f1f4;
}

.seg-item {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  height: 30px;
  padding: 0 13px;
  border: 0;
  border-radius: 7px;
  background: transparent;
  font-size: 13px;
  color: var(--muted);
  white-space: nowrap;
  transition: background-color 0.2s var(--ease), color 0.2s var(--ease),
    box-shadow 0.2s var(--ease);
}

.seg-item em {
  font-style: normal;
  font-size: 10px;
  font-weight: 700;
  padding: 1px 5px;
  border-radius: 4px;
  background: var(--blue-soft);
  color: var(--blue);
}

.seg-item.is-active {
  background: #ffffff;
  color: var(--ink);
  font-weight: 600;
  box-shadow: var(--shadow-xs);
}

.composer-right {
  display: flex;
  align-items: center;
  gap: 8px;
}

.ghost-btn {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  height: 34px;
  padding: 0 12px;
  border: 1px solid #e4e6eb;
  border-radius: 9px;
  background: #ffffff;
  font-size: 13px;
  color: var(--ink-2);
  white-space: nowrap;
}

.ghost-btn svg {
  width: 13px;
  height: 13px;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.8;
  stroke-linecap: round;
}

.round-btn {
  display: grid;
  place-items: center;
  width: 36px;
  height: 36px;
  border-radius: 50%;
  background: var(--blue);
  color: #ffffff;
  transition: transform 0.22s var(--ease-out), background-color 0.2s var(--ease);
}

.round-btn svg {
  width: 16px;
  height: 16px;
  fill: none;
  stroke: currentColor;
  stroke-width: 2;
  stroke-linecap: round;
}

.round-btn.is-pressed {
  transform: scale(0.88);
  background: var(--blue-hover);
}

/* Two quiet editorial mode notes below composer */
.mode-notes {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 24px;
}

.mode-note {
  display: flex;
  flex-direction: column;
  gap: 6px;
  padding: 18px 4px 4px;
  border: 0;
  border-top: 1.5px solid #e1e4ea;
  background: transparent;
  text-align: left;
  transition: border-color 0.25s var(--ease);
}

.mode-note.is-active {
  border-top-color: var(--blue);
}

.mode-note-title {
  font-size: 15.5px;
  font-weight: 650;
  color: #7c8491;
  transition: color 0.22s var(--ease);
}

.mode-note:hover .mode-note-title,
.mode-note.is-active .mode-note-title {
  color: var(--ink);
}

.mode-note-desc {
  font-size: 14px;
  line-height: 1.65;
  color: #939aa6;
  transition: color 0.22s var(--ease);
}

.mode-note.is-active .mode-note-desc {
  color: var(--ink-2);
}

/* =========================================================
   Section 3: Capabilities — Editorial Split (Zero AI Cards)
   ========================================================= */
.cap-showcase {
  display: grid;
  grid-template-columns: minmax(0, 0.82fr) minmax(0, 1.18fr);
  gap: 56px;
  align-items: stretch;
}

/* Mobile-only controls hidden on desktop */
.cap-tabs-mobile,
.cap-desc-mobile {
  display: none;
}

.cap-index {
  display: flex;
  flex-direction: column;
  border-top: 1px solid var(--line);
}

.cap-item {
  position: relative;
  display: flex;
  flex-direction: column;
  gap: 7px;
  width: 100%;
  padding: 26px 12px 26px 22px;
  border: 0;
  border-bottom: 1px solid var(--line);
  background: transparent;
  text-align: left;
  transition: background-color 0.22s var(--ease);
}

.cap-item:hover {
  background: rgba(245, 245, 247, 0.55);
}

.cap-progress {
  position: absolute;
  left: 0;
  top: 0;
  bottom: 0;
  width: 2px;
  background: transparent;
  overflow: hidden;
}

.cap-progress i {
  display: block;
  width: 100%;
  height: 100%;
  background: var(--blue);
  transform-origin: top center;
  transform: scaleY(0);
}

.cap-item.is-active .cap-progress {
  background: rgba(0, 113, 227, 0.14);
}

.cap-item.is-active .cap-progress i {
  transform: scaleY(1);
  transition: transform 0.4s var(--ease-out);
}

.cap-item.is-active.is-auto .cap-progress i {
  animation: capFill 5.6s linear forwards;
}

@keyframes capFill {
  from {
    transform: scaleY(0);
  }
  to {
    transform: scaleY(1);
  }
}

.cap-name {
  font-size: 19px;
  font-weight: 650;
  letter-spacing: -0.015em;
  color: #828995;
  transition: color 0.22s var(--ease);
}

.cap-item:hover .cap-name,
.cap-item.is-active .cap-name {
  color: var(--ink);
}

.cap-desc {
  font-size: 14.5px;
  line-height: 1.68;
  color: #9ba2ae;
  transition: color 0.22s var(--ease);
}

.cap-item.is-active .cap-desc {
  color: var(--ink-2);
}

/* Right clean flat porcelain stage (no dot-grid) */
.cap-stage {
  position: relative;
  min-height: 410px;
  border-radius: 22px;
  background: var(--canvas);
  overflow: hidden;
  display: grid;
  place-items: center;
  padding: 36px;
}

.cap-panel {
  position: absolute;
  inset: 36px;
  display: grid;
  place-items: center;
  opacity: 0;
  transform: translateY(10px) scale(0.988);
  pointer-events: none;
  transition: opacity 0.42s var(--ease-out), transform 0.52s var(--ease-out);
}

.cap-panel.is-active {
  opacity: 1;
  transform: none;
  pointer-events: auto;
}

.ui-sheet {
  width: 100%;
  max-width: 460px;
  border: 1px solid rgba(16, 24, 40, 0.06);
  border-radius: 16px;
  background: #ffffff;
  box-shadow: var(--shadow-card);
}

.ui-chip {
  display: inline-flex;
  align-items: center;
  height: 24px;
  padding: 0 9px;
  border-radius: 6px;
  background: #f3f4f6;
  font-size: 12px;
  font-weight: 500;
  color: #4b5563;
  white-space: nowrap;
}

.ui-chip.is-blue {
  background: var(--blue-soft);
  color: var(--blue);
}

/* Panel 0: Company Profile */
.sheet-top {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 14px;
  padding: 22px 24px 18px;
  border-bottom: 1px solid #f0f1f4;
}

.sheet-title {
  font-size: 16px;
  font-weight: 650;
  color: var(--ink);
  letter-spacing: -0.01em;
}

.sheet-sub {
  margin-top: 4px;
  font-size: 12.5px;
  color: var(--muted);
}

.sheet-rows {
  padding: 6px 24px 14px;
}

.s-row {
  display: flex;
  align-items: center;
  gap: 18px;
  padding: 12px 0;
  border-bottom: 1px solid #f4f5f7;
}

.s-row:last-child {
  border-bottom: 0;
}

.s-key {
  width: 44px;
  flex: none;
  font-size: 12.5px;
  color: var(--muted);
}

.s-vals {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
}

/* Panel 1: Field Evidence */
.ev-stack {
  width: 100%;
  max-width: 460px;
  display: flex;
  flex-direction: column;
  align-items: center;
}

.ev-source-row {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 15px 20px;
}

.ev-source-row .s-key {
  width: auto;
}

.ev-highlight {
  flex: 1;
  font-size: 13.5px;
  font-weight: 600;
  color: #0058b0;
  background: rgba(0, 113, 227, 0.09);
  padding: 5px 10px;
  border-radius: 7px;
}

.ev-connector {
  width: 1px;
  height: 24px;
  background: linear-gradient(180deg, var(--blue), #d6dbe3);
}

.ev-card {
  padding: 20px 22px;
}

.ev-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
}

.ev-title {
  font-size: 13px;
  font-weight: 600;
  color: var(--ink);
}

.ev-time {
  font-family: var(--mono);
  font-size: 11.5px;
  color: var(--muted);
}

.ev-excerpt {
  margin-top: 14px;
  padding: 13px 15px;
  border-left: 2px solid var(--blue);
  border-radius: 0 10px 10px 0;
  background: #f8f9fb;
  font-size: 13.5px;
  line-height: 1.7;
  color: var(--ink-2);
}

/* Panel 2: Company Network */
.net-sheet {
  padding: 16px 20px 18px;
}

.net-svg {
  width: 100%;
  height: auto;
}

.net-edge {
  stroke-linecap: round;
}

.net-edge.is-solid {
  stroke: var(--blue);
  stroke-width: 1.75;
  stroke-dasharray: 220;
  stroke-dashoffset: 220;
  transition: stroke-dashoffset 0.85s var(--ease-out) 0.1s;
}

.cap-panel.is-active .net-edge.is-solid {
  stroke-dashoffset: 0;
}

.net-edge.is-dashed {
  stroke: #c4cbd6;
  stroke-width: 1.35;
  stroke-dasharray: 4 5;
}

.net-legend {
  margin-top: 8px;
  padding-top: 12px;
  border-top: 1px solid #f0f2f5;
  display: flex;
  align-items: center;
  gap: 20px;
  font-size: 12px;
  color: var(--ink-2);
}

.net-legend span {
  display: inline-flex;
  align-items: center;
  gap: 8px;
}

.net-legend em {
  font-style: normal;
}

.leg-solid {
  width: 18px;
  height: 2px;
  border-radius: 2px;
  background: var(--blue);
}

.leg-dashed {
  width: 18px;
  height: 0;
  border-top: 1.5px dashed #adb5c2;
}

/* Panel 3: Search & Shortlist */
.list-sheet {
  padding: 18px 20px;
}

.list-filters {
  display: flex;
  flex-wrap: wrap;
  gap: 7px;
  padding-bottom: 14px;
  border-bottom: 1px solid #f0f1f4;
}

.list-rows {
  margin-top: 12px;
  display: grid;
  gap: 8px;
}

.l-row {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 12px 13px;
  border: 1px solid #eef0f4;
  border-radius: 10px;
  background: #ffffff;
}

.l-row.is-checked {
  border-color: rgba(0, 113, 227, 0.22);
  background: #f6faff;
}

.l-check {
  flex: none;
  display: grid;
  place-items: center;
  width: 18px;
  height: 18px;
  border-radius: 5px;
  border: 1.5px solid #d0d5dd;
  background: #ffffff;
}

.l-row.is-checked .l-check {
  border-color: var(--blue);
  background: var(--blue);
}

.l-check svg {
  width: 12px;
  height: 12px;
  fill: none;
  stroke: #ffffff;
  stroke-width: 2.2;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.l-name {
  flex: 1;
  font-size: 13.5px;
  font-weight: 500;
  color: var(--ink);
  min-width: 0;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.l-loc {
  flex: none;
  font-size: 12px;
  color: var(--muted);
}

.list-action-bar {
  margin-top: 14px;
  padding: 10px 14px;
  border-radius: 11px;
  background: #1d1d1f;
  color: rgba(255, 255, 255, 0.88);
  display: flex;
  align-items: center;
  justify-content: space-between;
  font-size: 12.5px;
}

.list-cta {
  padding: 5px 12px;
  border-radius: 7px;
  background: var(--blue);
  color: #ffffff;
  font-weight: 600;
}

/* =========================================================
   Section 4: Architectural Typographic Pipeline
   ========================================================= */
.pipeline {
  position: relative;
  padding-top: 2px;
}

.pipe-track {
  position: relative;
  height: 1px;
  background: #dfe2e8;
  overflow: hidden;
}

.pipe-track i {
  display: block;
  width: 100%;
  height: 100%;
  background: linear-gradient(90deg, var(--navy) 0%, var(--blue) 100%);
  transform-origin: left center;
  transform: scaleX(0);
  transition: transform 1.35s var(--ease-out) 0.08s;
}

.pipeline.is-active .pipe-track i {
  transform: scaleX(1);
}

.pipe-grid {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 36px;
}

.pipe-step {
  position: relative;
  padding-top: 34px;
}

/* Precision anchor dot fixed strictly onto .pipe-track — never shifts vertically */
.pipe-dot {
  position: absolute;
  left: 0;
  top: -5px;
  width: 9px;
  height: 9px;
  border-radius: 50%;
  border: 1.5px solid #cbd2dc;
  background: var(--canvas);
  transition: border-color 0.35s var(--ease-out), background-color 0.35s var(--ease-out),
    box-shadow 0.35s var(--ease-out);
  transition-delay: calc(var(--i, 0) * 0.28s + 0.1s);
}

.pipeline.is-active .pipe-dot {
  border-color: var(--blue);
  background: #ffffff;
}

.pipe-step:hover .pipe-dot {
  background: var(--blue);
  box-shadow: 0 0 0 5px rgba(0, 113, 227, 0.14);
  transition-delay: 0s;
}

.pipe-num {
  display: block;
  font-size: clamp(28px, 3vw, 36px);
  font-weight: 300;
  font-variant-numeric: tabular-nums;
  letter-spacing: -0.03em;
  line-height: 1;
  color: #b4bcc8;
  transition: color 0.3s var(--ease), opacity 0.65s var(--ease-out), transform 0.75s var(--ease-out);
}

.pipe-step:hover .pipe-num {
  color: var(--blue);
}

.pipe-step h3 {
  margin-top: 20px;
  font-size: 18px;
  font-weight: 650;
  letter-spacing: -0.015em;
  color: var(--ink);
}

.pipe-step p {
  margin-top: 10px;
  font-size: 14.5px;
  line-height: 1.75;
  color: var(--ink-2);
}

/* Synchronized reveal of text content (dot remains anchored on track) */
.js .pipe-step .pipe-num,
.js .pipe-step h3,
.js .pipe-step p {
  opacity: 0;
  transform: translateY(12px);
}

.js .pipeline.is-active .pipe-step .pipe-num,
.js .pipeline.is-active .pipe-step h3,
.js .pipeline.is-active .pipe-step p {
  opacity: 1;
  transform: none;
  transition: opacity 0.65s var(--ease-out) calc(var(--i, 0) * 0.28s + 0.12s),
    transform 0.75s var(--ease-out) calc(var(--i, 0) * 0.28s + 0.12s),
    color 0.25s var(--ease);
}

/* =========================================================
   Minimal Footer
   ========================================================= */
.footer {
  padding: 28px 0;
  border-top: 1px solid var(--line);
  background: var(--surface);
  font-size: 12.5px;
  color: var(--muted);
}

.footer-inner {
  display: flex;
  align-items: center;
  justify-content: center;
}

.footer-brand {
  display: inline-flex;
  align-items: center;
  gap: 8px;
}

/* =========================================================
   Tablet & Mobile (Thumb-first polish)
   ========================================================= */
@media (max-width: 860px) {
  .container {
    padding: 0 22px;
  }

  .nav {
    height: 56px;
  }

  .nav-inner {
    padding: 0 20px;
  }

  /* Section 3: Switch seamlessly to thumb-friendly tabs above visual */
  .cap-showcase {
    grid-template-columns: 1fr;
    gap: 18px;
  }

  .cap-index {
    display: none;
  }

  .cap-tabs-mobile {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 6px;
    padding: 4px;
    border-radius: 12px;
    background: var(--canvas);
  }

  .cap-tab {
    height: 36px;
    padding: 0 6px;
    border: 0;
    border-radius: 9px;
    background: transparent;
    font-size: 13px;
    font-weight: 500;
    color: var(--muted);
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    transition: background-color 0.2s var(--ease), color 0.2s var(--ease),
      box-shadow 0.2s var(--ease);
  }

  .cap-tab.is-active {
    background: #ffffff;
    color: var(--ink);
    font-weight: 600;
    box-shadow: var(--shadow-xs);
  }

  .cap-desc-mobile {
    display: block;
    font-size: 15px;
    line-height: 1.68;
    color: var(--ink-2);
    min-height: 3.36em;
  }

  .cap-stage {
    min-height: 336px;
    padding: 20px;
    border-radius: 18px;
  }

  .cap-panel {
    inset: 20px;
  }

  /* Section 4: Crisp left-rail vertical timeline on mobile */
  .pipe-track {
    position: absolute;
    top: 8px;
    bottom: 8px;
    left: 4px;
    width: 1px;
    height: auto;
  }

  .pipe-track i {
    background: linear-gradient(180deg, var(--navy) 0%, var(--blue) 100%);
    transform-origin: center top;
    transform: scaleY(0);
  }

  .pipeline.is-active .pipe-track i {
    transform: scaleY(1);
  }

  .pipe-grid {
    grid-template-columns: 1fr;
    gap: 36px;
    padding-left: 28px;
  }

  .pipe-step {
    padding-top: 0;
  }

  .pipe-dot {
    left: -28px;
    top: 8px;
  }

  .pipe-num {
    font-size: 24px;
  }

  .pipe-step h3 {
    margin-top: 8px;
    font-size: 17px;
  }
}

@media (max-width: 560px) {
  .container {
    padding: 0 20px;
  }

  .status-pill {
    display: none;
  }

  .hero {
    padding: 84px 20px 88px;
  }

  .hero-logo {
    margin-bottom: 28px;
  }

  .hero-sub {
    margin-top: 16px;
  }

  .hero-pill {
    margin-top: 24px;
  }

  .hero-tagline {
    margin-top: 22px;
    font-size: 14px;
  }

  .composer {
    border-radius: 16px;
  }

  .composer-input {
    min-height: 108px;
    padding: 20px 18px 8px;
    font-size: 15.5px;
  }

  .composer-bar {
    padding: 10px 12px 12px;
  }

  .ghost-btn {
    display: none;
  }

  .mode-notes {
    grid-template-columns: 1fr;
    gap: 16px;
  }

  .mode-note {
    padding-top: 14px;
  }

  .cap-tabs-mobile {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .cap-stage {
    min-height: 316px;
    padding: 16px;
  }

  .cap-panel {
    inset: 16px;
  }

  .sheet-top {
    padding: 16px 18px 14px;
  }

  .sheet-rows {
    padding: 4px 18px 10px;
  }

  .s-row {
    padding: 10px 0;
    gap: 12px;
  }

  .ev-source-row {
    padding: 13px 15px;
  }

  .ev-card {
    padding: 16px 18px;
  }

  .list-sheet {
    padding: 14px 16px;
  }
}

/* =========================================================
   Reduced motion
   ========================================================= */
@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }

  *,
  *::before,
  *::after {
    animation: none !important;
    transition: none !important;
  }

  .js .lg,
  .js .intro,
  .js .reveal,
  .js .pipe-step .pipe-num,
  .js .pipe-step h3,
  .js .pipe-step p {
    opacity: 1 !important;
    transform: none !important;
  }

  .js .scroll-cue.intro {
    transform: translateX(-50%) !important;
  }

  .pipe-track i {
    transform: none !important;
  }

  .net-edge.is-solid {
    stroke-dashoffset: 0 !important;
  }
}
