/* =========================================================
   Zero-Return — AI Fashion & Inventory Engine
   Palette: deep maroon-black, marigold, ivory, wine
   ========================================================= */

:root {
  --bg: #0c0809;
  --bg-2: #110b0d;
  --surface: #171012;
  --surface-2: #1d1417;
  --line: rgba(246, 239, 228, 0.09);
  --line-strong: rgba(246, 239, 228, 0.16);
  --ivory: #f6efe4;
  --ivory-dim: #d9cfc2;
  --muted: #a08f88;
  --marigold: #f2b13c;
  --marigold-soft: #ffcf72;
  --maroon: #7a1f2e;
  --maroon-deep: #4a1018;
  --wine: #2a0d12;
  --green: #8fc79a;
  --radius: 20px;
  --radius-sm: 12px;
  --serif: "Fraunces", "Iowan Old Style", Georgia, serif;
  --sans: "Inter", -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  --shadow: 0 30px 60px -30px rgba(0, 0, 0, 0.8);
  --ease: cubic-bezier(0.22, 0.7, 0.2, 1);
}

* { box-sizing: border-box; }

html {
  scroll-behavior: smooth;
  scroll-padding-top: 90px;
  -webkit-text-size-adjust: 100%;
}

body {
  margin: 0;
  background: var(--bg);
  color: var(--ivory);
  font-family: var(--sans);
  font-size: 16.5px;
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}

img { max-width: 100%; display: block; }
a { color: inherit; text-decoration: none; }
button { font: inherit; color: inherit; cursor: pointer; }
h1, h2, h3, h4 { font-family: var(--serif); font-weight: 400; letter-spacing: -0.02em; margin: 0; }
p { margin: 0; }
ul { margin: 0; padding: 0; list-style: none; }
::selection { background: var(--marigold); color: #1a0f05; }

.sr-only {
  position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px;
  overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0;
}

.wrap { width: min(1200px, calc(100% - 48px)); margin: 0 auto; }

/* ---------- scroll progress ---------- */
.scroll-progress {
  position: fixed; top: 0; left: 0; height: 2px; width: 0;
  background: linear-gradient(90deg, var(--maroon), var(--marigold));
  z-index: 200; transition: width 0.1s linear;
}

/* ---------- buttons ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 10px;
  padding: 15px 26px; border-radius: 100px; border: 1px solid transparent;
  font-size: 14.5px; font-weight: 600; letter-spacing: 0.01em;
  transition: transform 0.3s var(--ease), background 0.3s, border-color 0.3s, box-shadow 0.3s, color 0.3s;
  white-space: nowrap;
}
.btn svg { width: 17px; height: 17px; transition: transform 0.3s var(--ease); }
.btn-primary {
  background: var(--marigold); color: #1b1005;
  box-shadow: 0 12px 30px -12px rgba(242, 177, 60, 0.6);
}
.btn-primary:hover { background: var(--marigold-soft); transform: translateY(-2px); box-shadow: 0 18px 38px -14px rgba(242, 177, 60, 0.7); }
.btn-primary:hover svg { transform: translateX(3px); }
.btn-ghost {
  background: rgba(246, 239, 228, 0.04);
  border-color: var(--line-strong); color: var(--ivory);
  backdrop-filter: blur(10px);
}
.btn-ghost:hover { background: rgba(246, 239, 228, 0.09); border-color: rgba(246, 239, 228, 0.3); transform: translateY(-2px); }
.btn-sm { padding: 11px 20px; font-size: 13px; }
.btn-block { width: 100%; }
.play-dot {
  width: 24px; height: 24px; border-radius: 50%;
  background: rgba(242, 177, 60, 0.16); color: var(--marigold);
  display: grid; place-items: center; flex: none;
}
.play-dot svg { width: 12px; height: 12px; margin-left: 1px; }

/* ---------- nav ---------- */
.nav {
  position: fixed; inset: 0 0 auto 0; z-index: 100;
  transition: background 0.4s, border-color 0.4s, backdrop-filter 0.4s;
  border-bottom: 1px solid transparent;
}
.nav.is-scrolled {
  background: rgba(12, 8, 9, 0.82);
  backdrop-filter: blur(18px) saturate(140%);
  border-bottom-color: var(--line);
}
.nav-inner {
  width: min(1240px, calc(100% - 40px)); margin: 0 auto;
  height: 74px; display: flex; align-items: center; justify-content: space-between; gap: 24px;
}
.brand { display: inline-flex; align-items: center; gap: 10px; }
.brand-mark {
  width: 32px; height: 32px; border-radius: 50%;
  display: grid; place-items: center; flex: none;
  background: linear-gradient(140deg, var(--marigold), #c4761c);
  color: #26140a;
}
.brand-mark svg { width: 19px; height: 19px; }
.brand-text { font-family: var(--serif); font-size: 21px; letter-spacing: -0.02em; }
.brand-text span { color: var(--marigold); }

.nav-links { display: flex; align-items: center; gap: 4px; }
.nav-links a {
  padding: 9px 13px; border-radius: 100px; font-size: 13.5px;
  color: var(--ivory-dim); transition: color 0.25s, background 0.25s;
}
.nav-links a:hover { color: var(--ivory); background: rgba(246, 239, 228, 0.06); }
.nav-actions { display: flex; align-items: center; gap: 12px; }

.nav-toggle {
  display: none; width: 42px; height: 42px; border-radius: 50%;
  background: rgba(246, 239, 228, 0.05); border: 1px solid var(--line);
  flex-direction: column; align-items: center; justify-content: center; gap: 4px;
}
.nav-toggle span { width: 16px; height: 1.5px; background: var(--ivory); transition: transform 0.3s, opacity 0.3s; }
.nav-toggle[aria-expanded="true"] span:nth-child(1) { transform: translateY(5.5px) rotate(45deg); }
.nav-toggle[aria-expanded="true"] span:nth-child(2) { opacity: 0; }
.nav-toggle[aria-expanded="true"] span:nth-child(3) { transform: translateY(-5.5px) rotate(-45deg); }

/* ---------- hero ---------- */
.hero {
  position: relative; padding: 150px 0 0;
  overflow: hidden; isolation: isolate;
}
.hero-glow {
  position: absolute; inset: -20% -10% auto -10%; height: 900px; z-index: -2;
  background:
    radial-gradient(60% 55% at 72% 32%, rgba(122, 31, 46, 0.55), transparent 70%),
    radial-gradient(45% 45% at 22% 12%, rgba(242, 177, 60, 0.16), transparent 70%),
    radial-gradient(50% 40% at 50% 0%, rgba(74, 16, 24, 0.55), transparent 75%);
  filter: blur(10px);
}
.hero-grain {
  position: absolute; inset: 0; z-index: -1; opacity: 0.4; pointer-events: none;
  background-image: radial-gradient(rgba(246, 239, 228, 0.08) 1px, transparent 1px);
  background-size: 4px 4px;
  mask-image: radial-gradient(75% 60% at 50% 30%, #000 20%, transparent 80%);
  -webkit-mask-image: radial-gradient(75% 60% at 50% 30%, #000 20%, transparent 80%);
}
.hero-grid {
  display: grid; grid-template-columns: 1.08fr 0.92fr;
  gap: clamp(32px, 5vw, 72px); align-items: center;
  padding-bottom: clamp(56px, 7vw, 96px);
}

.eyebrow {
  display: inline-flex; align-items: center; gap: 9px;
  font-size: 11.5px; letter-spacing: 0.16em; text-transform: uppercase;
  color: var(--ivory-dim); padding: 8px 16px 8px 12px; border-radius: 100px;
  border: 1px solid var(--line-strong); background: rgba(246, 239, 228, 0.03);
  backdrop-filter: blur(8px);
}
.pulse-dot {
  width: 6px; height: 6px; border-radius: 50%; background: var(--marigold);
  box-shadow: 0 0 0 0 rgba(242, 177, 60, 0.6); animation: pulse 2.4s infinite;
}
@keyframes pulse {
  70% { box-shadow: 0 0 0 8px rgba(242, 177, 60, 0); }
  100% { box-shadow: 0 0 0 0 rgba(242, 177, 60, 0); }
}

.hero-title {
  font-size: clamp(58px, 9.2vw, 122px); line-height: 0.92;
  letter-spacing: -0.045em; margin: 26px 0 0;
  display: flex; align-items: baseline; flex-wrap: wrap;
}
.hero-title-line { display: inline-block; }
.hero-title-dash {
  color: var(--marigold); margin: 0 0.06em; font-weight: 300;
  transform: translateY(-0.08em);
}
.hero-title .accent {
  background: linear-gradient(105deg, var(--marigold-soft) 10%, var(--marigold) 45%, #c2702a 100%);
  -webkit-background-clip: text; background-clip: text; color: transparent;
  font-style: italic;
}
.hero-tagline {
  font-family: var(--serif); font-size: clamp(19px, 2.1vw, 25px);
  color: var(--ivory); margin-top: 22px; letter-spacing: -0.01em;
}
.hero-sub {
  color: var(--muted); font-size: 16px; max-width: 52ch; margin-top: 16px; line-height: 1.7;
}
.hero-actions { display: flex; flex-wrap: wrap; gap: 14px; margin-top: 32px; }
.hero-actions.center { justify-content: center; }

.hero-stats {
  display: flex; gap: clamp(20px, 3.4vw, 44px); margin: 44px 0 0;
  padding-top: 26px; border-top: 1px solid var(--line);
  flex-wrap: wrap;
}
.hero-stat dt {
  font-size: 11.5px; letter-spacing: 0.1em; text-transform: uppercase;
  color: var(--muted); order: 2; margin-top: 4px;
}
.hero-stat dd {
  margin: 0; order: 1; font-family: var(--serif); font-size: clamp(26px, 2.9vw, 34px);
  color: var(--ivory); letter-spacing: -0.03em; line-height: 1;
}
.hero-stat { display: flex; flex-direction: column; }

/* hero visual */
.hero-visual { position: relative; }
.hero-arch {
  position: relative; border-radius: 240px 240px 26px 26px; overflow: hidden;
  aspect-ratio: 3 / 3.6; border: 1px solid var(--line-strong);
  box-shadow: var(--shadow), 0 0 90px -20px rgba(242, 177, 60, 0.22);
  background: var(--surface);
}
.hero-arch img { width: 100%; height: 100%; object-fit: cover; transition: transform 1.2s var(--ease); }
.hero-arch:hover img { transform: scale(1.04); }
.hero-arch-fade {
  position: absolute; inset: auto 0 0 0; height: 45%;
  background: linear-gradient(to top, rgba(12, 8, 9, 0.92), transparent);
}
.hero-chip {
  position: absolute; display: flex; align-items: center; gap: 10px;
  background: rgba(19, 13, 15, 0.78); border: 1px solid var(--line-strong);
  backdrop-filter: blur(16px); border-radius: 14px; padding: 12px 15px;
  font-size: 12px; box-shadow: 0 18px 34px -18px rgba(0, 0, 0, 0.9);
  animation: float 6s ease-in-out infinite;
}
.chip-match { left: -22px; top: 24%; flex-direction: column; align-items: flex-start; gap: 6px; width: 128px; }
.chip-match .chip-label { font-size: 10px; letter-spacing: 0.1em; text-transform: uppercase; color: var(--muted); }
.chip-match strong { font-family: var(--serif); font-size: 22px; line-height: 1; }
.chip-bar { width: 100%; height: 3px; border-radius: 3px; background: rgba(246, 239, 228, 0.12); overflow: hidden; }
.chip-bar i { display: block; height: 100%; background: var(--marigold); }

.chip-fit { right: -18px; top: 52%; animation-delay: 1.1s; }
.chip-fit strong { display: block; font-size: 12.5px; }
.chip-fit em { font-style: normal; color: var(--muted); font-size: 11px; }
.fit-ring {
  width: 42px; height: 42px; border-radius: 50%; flex: none; display: grid; place-items: center;
  background: conic-gradient(var(--marigold) calc(var(--p) * 1%), rgba(246, 239, 228, 0.12) 0);
  position: relative;
}
.fit-ring::after { content: ""; position: absolute; inset: 4px; border-radius: 50%; background: #150e10; }
.fit-ring b { position: relative; z-index: 1; font-size: 10.5px; font-weight: 600; }

.chip-stock { left: 26px; bottom: 26px; animation-delay: 2s; font-size: 12px; color: var(--ivory-dim); }
.chip-stock strong { color: var(--ivory); }
.dot { width: 7px; height: 7px; border-radius: 50%; background: #7fd18f; box-shadow: 0 0 0 4px rgba(127, 209, 143, 0.14); flex: none; }

@keyframes float {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(-9px); }
}

.petals { position: absolute; inset: 0; pointer-events: none; }
.petals i {
  position: absolute; width: 7px; height: 7px; border-radius: 60% 40% 55% 45%;
  background: var(--marigold); opacity: 0.5;
  animation: drift 12s linear infinite;
}
.petals i:nth-child(1) { left: 6%; top: 74%; animation-delay: 0s; }
.petals i:nth-child(2) { left: 14%; top: 92%; animation-delay: 2.4s; width: 5px; height: 5px; }
.petals i:nth-child(3) { left: 84%; top: 10%; animation-delay: 1.2s; }
.petals i:nth-child(4) { left: 92%; top: 78%; animation-delay: 3.6s; width: 5px; height: 5px; }
.petals i:nth-child(5) { left: 48%; top: 96%; animation-delay: 5s; background: #d96a5a; }
.petals i:nth-child(6) { left: 76%; top: 40%; animation-delay: 6.6s; width: 4px; height: 4px; }
@keyframes drift {
  0% { transform: translate3d(0, 20px, 0) rotate(0); opacity: 0; }
  15% { opacity: 0.55; }
  100% { transform: translate3d(-30px, -220px, 0) rotate(220deg); opacity: 0; }
}

.hero-marquee {
  border-top: 1px solid var(--line); border-bottom: 1px solid var(--line);
  overflow: hidden; padding: 16px 0; background: rgba(246, 239, 228, 0.015);
  mask-image: linear-gradient(90deg, transparent, #000 12%, #000 88%, transparent);
  -webkit-mask-image: linear-gradient(90deg, transparent, #000 12%, #000 88%, transparent);
}
.marquee-track {
  display: flex; gap: 28px; width: max-content;
  animation: marquee 42s linear infinite;
  font-size: 12px; letter-spacing: 0.18em; text-transform: uppercase; color: var(--muted);
}
.marquee-track span:nth-child(even) { color: var(--marigold); }
@keyframes marquee { to { transform: translateX(-50%); } }

/* ---------- sections ---------- */
.section { padding: clamp(84px, 10vw, 140px) 0; position: relative; }
.section-tint {
  background:
    radial-gradient(70% 50% at 50% 0%, rgba(122, 31, 46, 0.16), transparent 70%),
    var(--bg-2);
  border-top: 1px solid var(--line); border-bottom: 1px solid var(--line);
}
.section-head { max-width: 780px; margin-bottom: clamp(44px, 5vw, 68px); }
.section-head.center { margin-inline: auto; text-align: center; }
.kicker {
  display: inline-block; font-size: 11px; letter-spacing: 0.2em;
  text-transform: uppercase; color: var(--marigold); margin-bottom: 18px;
}
.section-head h2 {
  font-size: clamp(32px, 4.6vw, 54px); line-height: 1.06;
  letter-spacing: -0.035em; margin-bottom: 18px;
}
.section-head h2 em { font-style: italic; color: var(--marigold-soft); }
.section-head h2 .arrow { color: var(--marigold); font-size: 0.8em; margin: 0 0.1em; }
.section-sub { color: var(--muted); font-size: 16.5px; line-height: 1.75; max-width: 62ch; }
.center .section-sub { margin-inline: auto; }

/* ---------- grid & cards ---------- */
.grid { display: grid; gap: 20px; }
.grid-3 { grid-template-columns: repeat(3, 1fr); }
.grid-4 { grid-template-columns: repeat(4, 1fr); }

.card {
  position: relative; background: linear-gradient(165deg, var(--surface-2), #140d0f 70%);
  border: 1px solid var(--line); border-radius: var(--radius);
  padding: 30px; overflow: hidden;
  transition: transform 0.45s var(--ease), border-color 0.4s, box-shadow 0.45s, background 0.4s;
}
.card::before {
  content: ""; position: absolute; inset: 0; pointer-events: none; opacity: 0;
  background: radial-gradient(70% 60% at 50% 0%, rgba(242, 177, 60, 0.12), transparent 70%);
  transition: opacity 0.5s;
}
.card:hover { transform: translateY(-6px); border-color: rgba(242, 177, 60, 0.28); box-shadow: 0 28px 50px -30px rgba(0, 0, 0, 0.9); }
.card:hover::before { opacity: 1; }
.card h3 { font-size: 21px; margin-bottom: 10px; letter-spacing: -0.015em; }
.card p { color: var(--muted); font-size: 14.5px; line-height: 1.7; }

/* problem */
.stat-card { display: flex; flex-direction: column; gap: 6px; min-height: 320px; }
.stat-icon {
  width: 44px; height: 44px; border-radius: 13px; display: grid; place-items: center;
  background: rgba(242, 177, 60, 0.1); border: 1px solid rgba(242, 177, 60, 0.2);
  color: var(--marigold); margin-bottom: 18px;
}
.stat-icon svg { width: 22px; height: 22px; }
.stat-big {
  font-family: var(--serif); font-size: clamp(36px, 3.6vw, 46px);
  line-height: 1; letter-spacing: -0.04em; color: var(--ivory); margin-bottom: 10px;
}
.stat-big span { font-size: 0.6em; color: var(--marigold); }
.stat-card h3 { font-size: 16.5px; font-family: var(--sans); font-weight: 600; letter-spacing: 0; margin-bottom: 8px; }
.stat-foot {
  margin-top: auto; padding-top: 18px; border-top: 1px solid var(--line);
  font-size: 11.5px; letter-spacing: 0.06em; text-transform: uppercase; color: var(--muted);
  display: flex; align-items: center; gap: 8px; flex-wrap: wrap;
}
.trend-down {
  color: var(--marigold); background: rgba(242, 177, 60, 0.1);
  padding: 2px 7px; border-radius: 5px; letter-spacing: 0.02em; text-transform: none;
}
.problem-note {
  display: flex; align-items: center; gap: 24px; margin-top: 40px;
}
.note-line { height: 1px; flex: 1; background: linear-gradient(90deg, var(--marigold), transparent); }
.problem-note p { color: var(--ivory-dim); font-size: 15.5px; }
.problem-note strong { color: var(--ivory); }

/* solution */
.feature-card { padding-top: 34px; }
.icon-badge {
  width: 50px; height: 50px; border-radius: 15px; display: grid; place-items: center;
  background: linear-gradient(150deg, rgba(242, 177, 60, 0.18), rgba(122, 31, 46, 0.25));
  border: 1px solid rgba(242, 177, 60, 0.24); color: var(--marigold); margin-bottom: 22px;
  transition: transform 0.45s var(--ease);
}
.card:hover .icon-badge { transform: scale(1.06) rotate(-3deg); }
.icon-badge svg { width: 25px; height: 25px; }
.card-index {
  position: absolute; top: 26px; right: 28px; font-family: var(--serif);
  font-size: 13px; color: rgba(246, 239, 228, 0.22); letter-spacing: 0.1em;
}
.feature-card h3 { font-size: 25px; margin-bottom: 8px; }
.card-lead { color: var(--ivory-dim) !important; font-size: 14.5px; margin-bottom: 12px; }
.mini-list { margin-top: 20px; padding-top: 18px; border-top: 1px solid var(--line); display: grid; gap: 9px; }
.mini-list li {
  position: relative; padding-left: 18px; font-size: 13px; color: var(--ivory-dim);
}
.mini-list li::before {
  content: ""; position: absolute; left: 0; top: 0.62em; width: 6px; height: 6px;
  border-radius: 50%; background: var(--marigold); opacity: 0.8;
}

/* ---------- pipeline ---------- */
.pipeline { position: relative; display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; margin-bottom: 28px; }
.pipeline-track {
  position: absolute; left: 8%; right: 8%; top: 50%; height: 1px; background: var(--line);
  z-index: 0;
}
.pipeline-track i {
  display: block; height: 100%; width: 0;
  background: linear-gradient(90deg, var(--marigold), var(--marigold-soft));
  transition: width 0.7s var(--ease); box-shadow: 0 0 12px rgba(242, 177, 60, 0.5);
}
.stage {
  position: relative; z-index: 1; display: flex; align-items: center; gap: 14px;
  padding: 20px 22px; text-align: left;
  background: linear-gradient(160deg, #1a1214, #120c0e);
  border: 1px solid var(--line); border-radius: 16px;
  transition: border-color 0.4s, transform 0.4s var(--ease), background 0.4s, box-shadow 0.4s;
}
.stage:hover { transform: translateY(-3px); border-color: var(--line-strong); }
.stage.is-active {
  border-color: rgba(242, 177, 60, 0.42);
  background: linear-gradient(160deg, #241619, #150e10);
  box-shadow: 0 20px 40px -28px rgba(242, 177, 60, 0.5);
}
.stage-num {
  font-family: var(--serif); font-size: 11px; color: var(--muted);
  border: 1px solid var(--line-strong); border-radius: 50%;
  width: 22px; height: 22px; display: grid; place-items: center; flex: none;
  transition: color 0.3s, border-color 0.3s, background 0.3s;
}
.stage.is-active .stage-num { background: var(--marigold); color: #1b1005; border-color: var(--marigold); }
.stage-icon { color: var(--marigold); display: grid; place-items: center; flex: none; }
.stage-icon svg { width: 24px; height: 24px; }
.stage-body { display: flex; flex-direction: column; line-height: 1.3; flex: 1; min-width: 0; }
.stage-body strong { font-size: 15.5px; font-weight: 600; }
.stage-body em { font-style: normal; font-size: 12px; color: var(--muted); }
.stage-meta { font-size: 10.5px; letter-spacing: 0.08em; text-transform: uppercase; color: var(--muted); flex: none; }
.stage.is-active .stage-meta { color: var(--marigold); }

.pipeline-panels { position: relative; }
.panel {
  display: none; background: linear-gradient(160deg, var(--surface), #110a0c);
  border: 1px solid var(--line); border-radius: var(--radius); padding: clamp(26px, 4vw, 44px);
}
.panel.is-active { display: block; animation: panelIn 0.55s var(--ease); }
@keyframes panelIn {
  from { opacity: 0; transform: translateY(14px); }
  to { opacity: 1; transform: none; }
}
.panel-head { margin-bottom: 28px; }
.panel-step {
  font-size: 10.5px; letter-spacing: 0.18em; text-transform: uppercase;
  color: var(--marigold); display: block; margin-bottom: 10px;
}
.panel-head h3 { font-size: clamp(24px, 2.8vw, 32px); margin-bottom: 8px; }
.panel-sub { color: var(--muted); font-size: 14.5px; }
.panel-grid { display: grid; grid-template-columns: 1.25fr 0.75fr; gap: clamp(24px, 4vw, 48px); align-items: start; }

.flow-list { display: grid; gap: 20px; }
.flow-list li { display: flex; gap: 15px; align-items: flex-start; }
.flow-dot {
  width: 9px; height: 9px; border-radius: 50%; flex: none; margin-top: 8px;
  background: var(--marigold); box-shadow: 0 0 0 5px rgba(242, 177, 60, 0.1);
}
.flow-list div { font-size: 14.5px; line-height: 1.72; color: var(--muted); }
.flow-list strong { color: var(--ivory); font-weight: 600; }

.panel-aside { display: grid; gap: 16px; }
.code-card {
  background: #0a0607; border: 1px solid var(--line); border-radius: 14px; overflow: hidden;
}
.code-top {
  display: flex; align-items: center; gap: 6px; padding: 10px 14px;
  border-bottom: 1px solid var(--line); background: rgba(246, 239, 228, 0.02);
}
.code-top span { width: 7px; height: 7px; border-radius: 50%; background: rgba(246, 239, 228, 0.18); }
.code-top span:first-child { background: rgba(242, 177, 60, 0.5); }
.code-top em {
  margin-left: auto; font-style: normal; font-size: 10.5px; color: var(--muted);
  font-family: ui-monospace, "SF Mono", Menlo, monospace;
}
.code-card pre { margin: 0; padding: 16px; overflow-x: auto; }
.code-card code {
  font-family: ui-monospace, "SF Mono", Menlo, monospace; font-size: 11.5px;
  line-height: 1.85; color: #d8c8b4;
}
.fusion { border: 1px solid var(--line); border-radius: 14px; padding: 16px; background: rgba(246, 239, 228, 0.02); }
.fusion-row { display: flex; justify-content: space-between; font-size: 12px; color: var(--muted); padding: 3px 0; }
.fusion-row b { color: var(--ivory); font-weight: 600; }
.fusion-bar { height: 5px; border-radius: 4px; background: rgba(246, 239, 228, 0.1); margin: 10px 0 8px; overflow: hidden; }
.fusion-bar i { display: block; height: 100%; width: 40%; background: var(--marigold); }
.fusion-bar::after { content: ""; }
.fusion-note { font-size: 11px; color: var(--muted); }

/* fit demo (stage 2 aside) */
.fit-demo { border: 1px solid var(--line); border-radius: 16px; padding: 20px; background: rgba(246, 239, 228, 0.02); }
.fit-top { display: flex; justify-content: space-between; align-items: flex-start; gap: 12px; }
.tiny-label { font-size: 10px; letter-spacing: 0.14em; text-transform: uppercase; color: var(--muted); display: block; }
.fit-score { font-family: var(--serif); font-size: 40px; line-height: 1; letter-spacing: -0.04em; display: block; margin-top: 4px; }
.fit-score span { font-size: 0.5em; color: var(--marigold); }
.badge-gold {
  font-size: 10px; letter-spacing: 0.08em; text-transform: uppercase;
  color: var(--marigold); background: rgba(242, 177, 60, 0.12); border: 1px solid rgba(242, 177, 60, 0.28);
  padding: 5px 9px; border-radius: 100px; white-space: nowrap;
}
.fit-verdict { font-size: 12.5px; color: var(--ivory-dim); margin: 12px 0 18px; }
.zone { display: grid; grid-template-columns: 64px 1fr 26px; align-items: center; gap: 10px; margin-bottom: 9px; font-size: 11.5px; }
.zone span { color: var(--muted); }
.zone b { text-align: right; color: var(--ivory-dim); font-weight: 500; font-variant-numeric: tabular-nums; }
.zone-bar {
  height: 4px; border-radius: 3px; background: rgba(246, 239, 228, 0.1);
  position: relative; overflow: hidden;
}
.zone-bar::after {
  content: ""; position: absolute; inset: 0 auto 0 0; width: calc(var(--w) * 1%);
  background: linear-gradient(90deg, #c98a2a, var(--marigold));
  border-radius: 3px;
  animation: growBar 1.1s var(--ease) both;
}
@keyframes growBar { from { width: 0; } }
.fit-tags { display: flex; gap: 6px; flex-wrap: wrap; margin-top: 16px; padding-top: 14px; border-top: 1px solid var(--line); }
.fit-tags span { font-size: 10.5px; color: var(--muted); border: 1px solid var(--line); padding: 4px 8px; border-radius: 100px; }

/* ladder (stage 3) */
.ladder { border: 1px solid var(--line); border-radius: 16px; padding: 18px; background: rgba(246, 239, 228, 0.02); }
.ladder-head { display: flex; justify-content: space-between; font-size: 10px; letter-spacing: 0.12em; text-transform: uppercase; color: var(--muted); margin-bottom: 14px; }
.ladder-row { display: grid; grid-template-columns: 60px 1fr 62px; align-items: center; gap: 10px; margin-bottom: 12px; font-size: 12px; }
.ladder-row span { color: var(--ivory-dim); }
.ladder-row b { text-align: right; color: var(--marigold); font-weight: 600; font-size: 11.5px; }
.ladder-row i { height: 6px; border-radius: 4px; background: rgba(246, 239, 228, 0.08); position: relative; overflow: hidden; }
.ladder-row i::after {
  content: ""; position: absolute; inset: 0 auto 0 0; width: calc(var(--w) * 1%);
  background: linear-gradient(90deg, #7a1f2e, var(--marigold)); border-radius: 4px;
}
.ladder-floor { font-size: 10.5px; color: var(--muted); border-top: 1px dashed var(--line-strong); padding-top: 12px; margin-top: 14px; }
.ladder-note { font-size: 11.5px; color: var(--ivory-dim); margin-top: 8px; }

/* ---------- demo ---------- */
.demo-frame {
  position: relative; background: linear-gradient(170deg, #1b1215, #0e090a);
  border: 1px solid var(--line-strong); border-radius: 22px; overflow: hidden;
  box-shadow: 0 50px 90px -50px rgba(0, 0, 0, 1), 0 0 120px -60px rgba(242, 177, 60, 0.3);
}
.demo-bar {
  display: flex; align-items: center; gap: 14px; padding: 13px 18px;
  border-bottom: 1px solid var(--line); background: rgba(246, 239, 228, 0.02);
}
.dots { display: flex; gap: 6px; }
.dots i { width: 9px; height: 9px; border-radius: 50%; background: rgba(246, 239, 228, 0.15); }
.dots i:first-child { background: rgba(214, 94, 80, 0.6); }
.dots i:nth-child(2) { background: rgba(242, 177, 60, 0.55); }
.dots i:nth-child(3) { background: rgba(127, 209, 143, 0.5); }
.url-pill {
  flex: 1; text-align: center; font-size: 11px; color: var(--muted);
  background: rgba(12, 8, 9, 0.6); border: 1px solid var(--line); border-radius: 100px;
  padding: 5px 12px; max-width: 340px; margin: 0 auto;
  overflow: hidden; text-overflow: ellipsis; white-space: nowrap;
}
.demo-live { display: flex; align-items: center; gap: 7px; font-size: 10.5px; letter-spacing: 0.1em; text-transform: uppercase; color: var(--muted); flex: none; }

.demo-body {
  display: grid; grid-template-columns: 1fr 300px; gap: 0; position: relative; min-height: 540px;
}
.demo-main { padding: clamp(20px, 3vw, 30px); border-right: 1px solid var(--line); }

.search-bar {
  display: flex; align-items: center; gap: 10px; padding: 7px 7px 7px 16px;
  background: rgba(10, 6, 7, 0.7); border: 1px solid var(--line-strong);
  border-radius: 100px; transition: border-color 0.3s, box-shadow 0.3s;
}
.search-bar:focus-within { border-color: rgba(242, 177, 60, 0.5); box-shadow: 0 0 0 4px rgba(242, 177, 60, 0.08); }
.search-ico { width: 18px; height: 18px; color: var(--muted); flex: none; }
.search-bar input {
  flex: 1; min-width: 0; background: none; border: none; outline: none;
  color: var(--ivory); font-size: 13.5px; font-family: var(--sans); padding: 8px 0;
}
.search-bar input::placeholder { color: var(--muted); }
.search-btn {
  flex: none; border: none; border-radius: 100px; padding: 10px 20px;
  background: var(--marigold); color: #1b1005; font-size: 12.5px; font-weight: 600;
  transition: background 0.25s, transform 0.25s;
}
.search-btn:hover { background: var(--marigold-soft); }
.search-btn:active { transform: scale(0.97); }

.search-chips { display: flex; gap: 8px; flex-wrap: wrap; margin-top: 12px; }
.chip {
  border: 1px solid var(--line); background: rgba(246, 239, 228, 0.03);
  border-radius: 100px; padding: 6px 12px; font-size: 11px; color: var(--muted);
  transition: color 0.25s, border-color 0.25s, background 0.25s;
}
.chip:hover { color: var(--ivory); border-color: rgba(242, 177, 60, 0.35); background: rgba(242, 177, 60, 0.08); }

.parsed-row { display: flex; align-items: center; gap: 7px; flex-wrap: wrap; margin-top: 18px; }
.parsed-label { font-size: 10px; letter-spacing: 0.12em; text-transform: uppercase; color: var(--muted); margin-right: 2px; }
.tag {
  font-size: 10.5px; color: var(--ivory-dim); background: rgba(246, 239, 228, 0.05);
  border: 1px solid var(--line); border-radius: 6px; padding: 3px 8px;
  font-family: ui-monospace, "SF Mono", Menlo, monospace;
}
.tag-accent { color: var(--marigold); border-color: rgba(242, 177, 60, 0.28); background: rgba(242, 177, 60, 0.08); }

.results-head { display: flex; align-items: baseline; justify-content: space-between; gap: 14px; margin: 26px 0 16px; flex-wrap: wrap; }
.results-head h3 { font-family: var(--sans); font-size: 13px; font-weight: 500; color: var(--ivory-dim); letter-spacing: 0; }
.results-meta { font-size: 10.5px; color: var(--muted); letter-spacing: 0.04em; }

.results { display: grid; grid-template-columns: repeat(4, 1fr); gap: 12px; }
.result {
  position: relative; background: rgba(246, 239, 228, 0.025); border: 1px solid var(--line);
  border-radius: 14px; overflow: hidden; display: flex; flex-direction: column;
  transition: transform 0.35s var(--ease), border-color 0.35s, background 0.35s;
  animation: cardIn 0.5s var(--ease) both;
}
.result:nth-child(2) { animation-delay: 0.06s; }
.result:nth-child(3) { animation-delay: 0.12s; }
.result:nth-child(4) { animation-delay: 0.18s; }
@keyframes cardIn { from { opacity: 0; transform: translateY(10px); } }
.result:hover { transform: translateY(-4px); border-color: rgba(242, 177, 60, 0.32); background: rgba(246, 239, 228, 0.05); }
.result.is-selected { border-color: rgba(242, 177, 60, 0.55); box-shadow: 0 0 0 1px rgba(242, 177, 60, 0.35) inset; }
.result-img { position: relative; aspect-ratio: 1 / 1.15; overflow: hidden; background: #1a1214; }
.result-img img { width: 100%; height: 100%; object-fit: cover; transition: transform 0.6s var(--ease); }
.result:hover .result-img img { transform: scale(1.05); }
.match, .stock-tag {
  position: absolute; font-size: 9px; letter-spacing: 0.04em; border-radius: 5px;
  padding: 3px 6px; backdrop-filter: blur(8px); line-height: 1.4;
}
.match { top: 7px; left: 7px; background: rgba(10, 6, 7, 0.72); color: var(--marigold); border: 1px solid rgba(242, 177, 60, 0.25); }
.stock-tag { bottom: 7px; left: 7px; background: rgba(10, 6, 7, 0.75); color: var(--ivory-dim); border: 1px solid var(--line); }
.result-info { padding: 11px 11px 12px; flex: 1; display: flex; flex-direction: column; }
.result-info h4 { font-family: var(--sans); font-size: 11.5px; font-weight: 500; line-height: 1.4; letter-spacing: 0; margin-bottom: 3px; }
.result-info p { font-size: 10px; color: var(--muted); }
.result-foot { display: flex; align-items: center; justify-content: space-between; gap: 6px; margin-top: auto; padding-top: 9px; }
.result-foot strong { font-size: 12px; font-weight: 600; }
.fit-chip { font-size: 9px; color: #a6d8b0; background: rgba(127, 209, 143, 0.1); border: 1px solid rgba(127, 209, 143, 0.2); border-radius: 4px; padding: 2px 5px; white-space: nowrap; }
.result-add {
  margin: 0 11px 11px; padding: 7px; border-radius: 7px; font-size: 10.5px; font-weight: 600;
  background: rgba(246, 239, 228, 0.06); border: 1px solid var(--line-strong); color: var(--ivory-dim);
  transition: background 0.25s, color 0.25s, border-color 0.25s;
}
.result-add:hover { background: var(--marigold); border-color: var(--marigold); color: #1b1005; }

/* fit panel */
.fit-panel {
  padding: clamp(20px, 2.4vw, 26px); background: rgba(10, 6, 7, 0.45);
  display: flex; flex-direction: column; gap: 16px;
}
.fit-panel-head { display: flex; align-items: center; justify-content: space-between; gap: 10px; }
.fit-gauge {
  --p: 94; width: 132px; height: 132px; border-radius: 50%; margin: 2px auto 0;
  background: conic-gradient(from 135deg, var(--marigold) calc(var(--p) * 2.1deg), rgba(246, 239, 228, 0.09) 0);
  display: grid; place-items: center; position: relative;
  box-shadow: 0 0 40px -14px rgba(242, 177, 60, 0.5);
  transition: --p 0.8s var(--ease);
}
.fit-gauge::before {
  content: ""; position: absolute; inset: 9px; border-radius: 50%; background: #100a0b;
}
.gauge-inner { position: relative; text-align: center; }
.gauge-inner strong { font-family: var(--serif); font-size: 34px; line-height: 1; letter-spacing: -0.04em; }
.gauge-inner strong span { font-size: 0.5em; color: var(--marigold); }
.gauge-inner em { display: block; font-style: normal; font-size: 9.5px; letter-spacing: 0.14em; text-transform: uppercase; color: var(--muted); margin-top: 3px; }
.fit-copy { font-size: 12px; color: var(--ivory-dim); line-height: 1.65; text-align: center; }
.fit-copy b { color: var(--ivory); font-weight: 600; }
.zone-list { border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); padding: 16px 0; }
.fit-note {
  display: flex; gap: 10px; align-items: flex-start;
  background: rgba(242, 177, 60, 0.06); border: 1px solid rgba(242, 177, 60, 0.16);
  border-radius: 10px; padding: 12px;
}
.fit-note svg { width: 15px; height: 15px; color: var(--marigold); flex: none; margin-top: 2px; }
.fit-note p { font-size: 10.5px; line-height: 1.6; color: var(--muted); }
.fit-note strong { color: var(--ivory-dim); }
.cart-count {
  background: var(--marigold); color: #1b1005; border-radius: 100px;
  font-size: 10px; font-weight: 700; min-width: 17px; height: 17px;
  display: inline-grid; place-items: center; padding: 0 5px;
}

/* cart drawer */
.cart-overlay {
  position: absolute; inset: 0; background: rgba(6, 3, 4, 0.6);
  backdrop-filter: blur(2px); opacity: 0; pointer-events: none;
  transition: opacity 0.4s; z-index: 8;
}
.cart-overlay.is-open { opacity: 1; pointer-events: auto; }
.cart {
  position: absolute; top: 0; right: 0; bottom: 0; width: min(372px, 92%);
  background: linear-gradient(180deg, #1a1215, #100a0b);
  border-left: 1px solid var(--line-strong); z-index: 9;
  transform: translateX(103%); transition: transform 0.5s var(--ease);
  display: flex; flex-direction: column; overflow-y: auto;
  box-shadow: -30px 0 60px -30px rgba(0, 0, 0, 0.9);
}
.cart.is-open { transform: none; }
.cart-head {
  display: flex; align-items: flex-start; justify-content: space-between; gap: 12px;
  padding: 20px 20px 14px; border-bottom: 1px solid var(--line);
}
.cart-head h3 { font-size: 19px; margin-top: 3px; }
.icon-btn {
  width: 32px; height: 32px; border-radius: 50%; border: 1px solid var(--line);
  background: rgba(246, 239, 228, 0.04); display: grid; place-items: center;
  transition: background 0.25s, border-color 0.25s; flex: none;
}
.icon-btn:hover { background: rgba(246, 239, 228, 0.1); border-color: var(--line-strong); }
.icon-btn svg { width: 15px; height: 15px; }

.cart-items { padding: 16px 20px; display: grid; gap: 12px; }
.cart-item { display: flex; gap: 12px; align-items: flex-start; }
.cart-item img { width: 58px; height: 72px; object-fit: cover; border-radius: 8px; border: 1px solid var(--line); flex: none; }
.cart-item div { display: flex; flex-direction: column; gap: 2px; min-width: 0; }
.cart-item strong { font-size: 12px; font-weight: 500; line-height: 1.4; }
.cart-item span { font-size: 10.5px; color: var(--muted); }
.cart-item em { font-style: normal; font-size: 12px; color: var(--ivory); margin-top: 3px; }

.bundle {
  position: relative; margin: 4px 16px 16px; padding: 16px;
  border: 1px solid rgba(242, 177, 60, 0.26); border-radius: 14px; overflow: hidden;
  background: linear-gradient(160deg, rgba(122, 31, 46, 0.3), rgba(242, 177, 60, 0.05));
  transition: opacity 0.4s, transform 0.4s;
}
.bundle.is-done { opacity: 0.45; }
.bundle-glow {
  position: absolute; top: -40px; right: -40px; width: 130px; height: 130px;
  background: radial-gradient(circle, rgba(242, 177, 60, 0.22), transparent 70%);
  pointer-events: none;
}
.bundle-head { display: flex; align-items: center; justify-content: space-between; gap: 8px; flex-wrap: wrap; }
.bundle-eyebrow { font-family: var(--serif); font-size: 14px; letter-spacing: -0.01em; }
.bundle-left { font-size: 9.5px; color: var(--marigold); letter-spacing: 0.04em; }
.bundle-body { display: flex; gap: 12px; margin: 12px 0 10px; align-items: center; }
.bundle-body img { width: 62px; height: 78px; object-fit: cover; border-radius: 7px; border: 1px solid rgba(242, 177, 60, 0.2); flex: none; }
.bundle-body strong { font-size: 12px; font-weight: 500; display: block; margin-bottom: 3px; }
.bundle-body p { font-size: 10px; line-height: 1.5; color: var(--muted); }
.bundle-price { display: flex; align-items: baseline; gap: 7px; margin-top: 6px; }
.bundle-price b { font-size: 14px; }
.bundle-price s { font-size: 10.5px; color: var(--muted); }
.bundle-price span { font-size: 9px; color: #a6d8b0; background: rgba(127, 209, 143, 0.12); padding: 2px 5px; border-radius: 4px; }
.bundle-why { font-size: 9.5px; color: var(--muted); margin-bottom: 12px; letter-spacing: 0.02em; }
.bundle .btn { padding: 10px; font-size: 12px; }

.cart-summary { margin-top: auto; padding: 16px 20px 20px; border-top: 1px solid var(--line); }
.summary-row { display: flex; justify-content: space-between; font-size: 12px; color: var(--muted); padding: 4px 0; }
.summary-row b { color: var(--ivory-dim); font-weight: 500; }
.summary-row b.green { color: #9dd6a8; }
.summary-total {
  display: flex; justify-content: space-between; align-items: baseline;
  padding: 12px 0; margin-top: 6px; border-top: 1px solid var(--line);
  font-size: 13px; color: var(--ivory-dim);
}
.summary-total b { font-family: var(--serif); font-size: 23px; letter-spacing: -0.02em; }
.cart-summary .btn { padding: 12px; font-size: 13px; }
.summary-note { font-size: 9.5px; color: var(--muted); text-align: center; margin-top: 10px; line-height: 1.5; }

.toast {
  position: absolute; left: 50%; bottom: 22px; transform: translate(-50%, 16px);
  background: rgba(20, 13, 15, 0.95); border: 1px solid var(--line-strong);
  color: var(--ivory); font-size: 12px; padding: 10px 18px; border-radius: 100px;
  opacity: 0; pointer-events: none; transition: opacity 0.35s, transform 0.35s;
  z-index: 20; backdrop-filter: blur(12px); white-space: nowrap; max-width: 90%;
}
.toast.is-on { opacity: 1; transform: translate(-50%, 0); }

/* ---------- big features ---------- */
.feature-rows { display: grid; gap: 18px; }
.big-feature {
  display: grid; grid-template-columns: 1.15fr 0.85fr; gap: clamp(24px, 4vw, 52px);
  padding: clamp(28px, 4vw, 44px); align-items: center;
}
.feature-num {
  font-size: 10.5px; letter-spacing: 0.18em; color: var(--marigold); display: block; margin-bottom: 12px;
}
.big-feature h3 { font-size: clamp(23px, 2.6vw, 30px); margin-bottom: 12px; }
.big-feature-copy > p { font-size: 14.5px; line-height: 1.78; color: var(--muted); }
.pill-row { display: flex; flex-wrap: wrap; gap: 7px; margin-top: 20px; }
.pill {
  font-size: 10.5px; letter-spacing: 0.03em; color: var(--ivory-dim);
  border: 1px solid var(--line-strong); border-radius: 100px; padding: 5px 11px;
  background: rgba(246, 239, 228, 0.03);
}
.big-feature-art {
  border: 1px solid var(--line); border-radius: 16px; padding: 24px;
  background: radial-gradient(80% 80% at 80% 10%, rgba(122, 31, 46, 0.28), transparent 70%), rgba(10, 6, 7, 0.4);
  min-height: 210px; display: grid; place-items: center;
}
.thread-viz { width: 100%; font-size: 10px; color: var(--muted); }
.tv-row { display: flex; align-items: center; gap: 8px; }
.tv-node {
  border: 1px solid var(--line-strong); border-radius: 7px; padding: 7px 10px;
  background: rgba(246, 239, 228, 0.04); color: var(--ivory-dim); white-space: nowrap;
}
.tv-a { border-color: rgba(242, 177, 60, 0.4); color: var(--marigold); }
.tv-b { border-color: rgba(143, 199, 154, 0.35); color: #a6d8b0; }
.tv-out { border-color: rgba(242, 177, 60, 0.5); background: rgba(242, 177, 60, 0.12); color: var(--marigold); }
.tv-line { flex: 1; height: 1px; background: var(--line-strong); position: relative; }
.tv-line::after {
  content: ""; position: absolute; top: -2px; width: 5px; height: 5px; border-radius: 50%;
  background: var(--marigold); animation: travel 2.4s linear infinite;
}
@keyframes travel { from { left: 0; } to { left: 100%; } }
.tv-fuse { display: flex; align-items: center; gap: 8px; margin: 10px 0 10px 18px; color: var(--marigold); }
.tv-fuse i { flex: 1; height: 1px; background: linear-gradient(90deg, rgba(242, 177, 60, 0.4), rgba(242, 177, 60, 0.08)); }
.tv-fuse span { font-size: 9px; border: 1px solid rgba(242, 177, 60, 0.25); border-radius: 4px; padding: 2px 5px; }
.tv-caption { margin-top: 16px; padding-top: 12px; border-top: 1px dashed var(--line-strong); font-size: 9.5px; letter-spacing: 0.1em; text-transform: uppercase; }

.compare-viz { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; width: 100%; }
.cv-col { border: 1px solid var(--line); border-radius: 10px; padding: 14px; background: rgba(246, 239, 228, 0.02); }
.cv-title { display: block; font-size: 11px; color: var(--ivory-dim); }
.cv-time { display: block; font-family: var(--serif); font-size: 20px; color: var(--ivory); margin: 4px 0 10px; }
.cv-line { height: 4px; border-radius: 3px; background: rgba(246, 239, 228, 0.1); overflow: hidden; }
.cv-line i { display: block; height: 100%; width: calc(var(--w) * 1%); background: rgba(246, 239, 228, 0.35); }
.cv-col p { font-size: 9.5px; color: var(--muted); margin-top: 8px; }
.cv-gold { border-color: rgba(242, 177, 60, 0.3); background: rgba(242, 177, 60, 0.05); }
.cv-gold .cv-time { color: var(--marigold); }
.cv-gold .cv-line i { background: var(--marigold); }

.ladder-viz { width: 100%; display: grid; gap: 11px; }
.lv-row { display: grid; grid-template-columns: 58px 1fr 38px; align-items: center; gap: 10px; font-size: 10.5px; color: var(--muted); }
.lv-row b { color: var(--marigold); text-align: right; font-weight: 600; }
.lv-row i { height: 7px; border-radius: 4px; background: rgba(246, 239, 228, 0.07); position: relative; overflow: hidden; }
.lv-row i::after {
  content: ""; position: absolute; inset: 0 auto 0 0; width: calc(var(--w) * 1%);
  background: linear-gradient(90deg, #7a1f2e, var(--marigold));
  animation: growBar 1.2s var(--ease) both;
}
.lv-floor { font-size: 9px; letter-spacing: 0.12em; text-transform: uppercase; color: var(--muted); text-align: center; margin-top: 6px; }

/* ---------- stack ---------- */
.stack-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 16px; }
.stack-group {
  border: 1px solid var(--line); border-radius: 16px; padding: 22px;
  background: linear-gradient(165deg, rgba(246, 239, 228, 0.035), transparent);
}
.stack-group h3 {
  font-family: var(--sans); font-size: 10.5px; font-weight: 600;
  letter-spacing: 0.16em; text-transform: uppercase; color: var(--marigold);
  margin-bottom: 16px;
}
.badges { display: flex; flex-wrap: wrap; gap: 8px; }
.badge {
  display: inline-flex; align-items: center; gap: 8px;
  border: 1px solid var(--line); border-radius: 10px; padding: 7px 11px 7px 8px;
  background: rgba(10, 6, 7, 0.5); font-size: 12px; color: var(--ivory-dim);
  transition: border-color 0.3s, transform 0.3s var(--ease), color 0.3s;
}
.badge:hover { border-color: rgba(242, 177, 60, 0.4); color: var(--ivory); transform: translateY(-2px); }
.badge-ico {
  font-style: normal; font-size: 9px; font-weight: 700; letter-spacing: 0.02em;
  width: 22px; height: 22px; border-radius: 6px; display: grid; place-items: center;
  background: rgba(242, 177, 60, 0.12); color: var(--marigold); flex: none;
  font-family: var(--sans);
}
.flow-strip {
  display: flex; align-items: center; justify-content: center; flex-wrap: wrap; gap: 8px;
  margin-top: 40px; padding: 18px; border: 1px dashed var(--line-strong); border-radius: 14px;
  font-size: 11.5px; color: var(--muted);
}
.flow-strip span { color: var(--ivory-dim); }
.flow-strip i { color: var(--marigold); font-style: normal; }

/* ---------- impact ---------- */
.impact-grid { display: grid; grid-template-columns: 1.15fr 0.85fr; gap: 20px; }
.economics, .pricing { padding: clamp(26px, 3.4vw, 38px); }
.economics h3, .pricing h3 { font-size: 24px; margin-bottom: 22px; }
.econ-list { display: grid; }
.econ-row {
  display: flex; align-items: center; justify-content: space-between; gap: 18px;
  padding: 15px 0; border-bottom: 1px solid var(--line);
}
.econ-row span { font-size: 13.5px; color: var(--ivory-dim); }
.econ-row b { font-family: var(--serif); font-size: 18px; color: var(--marigold); letter-spacing: -0.01em; white-space: nowrap; font-weight: 400; }
.econ-row em { font-style: normal; font-family: var(--sans); font-size: 9.5px; letter-spacing: 0.1em; text-transform: uppercase; color: var(--muted); display: block; text-align: right; margin-top: 2px; }
.econ-note {
  margin-top: 22px; padding: 16px 18px; border-radius: 12px;
  background: rgba(122, 31, 46, 0.22); border: 1px solid rgba(242, 177, 60, 0.16);
  font-size: 12.5px; color: var(--ivory-dim); line-height: 1.7;
}
.econ-note strong { color: var(--ivory); }

.pricing { background: linear-gradient(165deg, rgba(122, 31, 46, 0.4), #140d0f 65%); border-color: rgba(242, 177, 60, 0.18); }
.kicker-sm { font-size: 10px; letter-spacing: 0.18em; text-transform: uppercase; color: var(--marigold); }
.pricing-head h3 { margin: 8px 0 18px; }
.price-main { display: flex; align-items: baseline; gap: 8px; flex-wrap: wrap; }
.price-value { font-family: var(--serif); font-size: clamp(34px, 4vw, 42px); letter-spacing: -0.04em; line-height: 1; }
.price-per { font-size: 12px; color: var(--muted); }
.price-sub { font-size: 12px; color: var(--muted); margin-top: 10px; line-height: 1.65; }
.price-list { margin-top: 22px; border-top: 1px solid var(--line); }
.price-list li {
  display: flex; align-items: center; justify-content: space-between; gap: 12px;
  padding: 11px 0; border-bottom: 1px solid var(--line); font-size: 12px; color: var(--ivory-dim);
}
.price-list b { font-size: 11.5px; color: var(--marigold); font-weight: 600; }
.price-foot { font-size: 10.5px; color: var(--muted); margin-top: 16px; line-height: 1.6; }

.impact-strip {
  display: grid; grid-template-columns: repeat(4, 1fr); gap: 16px; margin-top: 20px;
}
.impact-item {
  border: 1px solid var(--line); border-radius: 14px; padding: 20px;
  background: rgba(246, 239, 228, 0.02);
}
.impact-item strong { display: block; font-family: var(--serif); font-size: 30px; letter-spacing: -0.03em; line-height: 1; margin-bottom: 6px; color: var(--ivory); }
.impact-item span { font-size: 11px; color: var(--muted); line-height: 1.5; display: block; }

/* ---------- risks ---------- */
.risk-card { display: flex; flex-direction: column; gap: 10px; }
.risk-tag {
  font-size: 9.5px; letter-spacing: 0.16em; text-transform: uppercase;
  color: #d8796a; background: rgba(216, 121, 106, 0.1);
  border: 1px solid rgba(216, 121, 106, 0.22); border-radius: 100px;
  padding: 4px 9px; align-self: flex-start; margin-bottom: 6px;
}
.risk-card h3 { font-size: 22px; }
.guardrail {
  margin-top: auto; padding-top: 16px; border-top: 1px solid var(--line);
}
.guard-label {
  font-size: 9.5px; letter-spacing: 0.14em; text-transform: uppercase;
  color: #9dd6a8; display: block; margin-bottom: 7px;
}
.guardrail p { font-size: 12.5px; line-height: 1.68; color: var(--ivory-dim); }

/* ---------- timeline ---------- */
.timeline { position: relative; padding-left: 34px; display: grid; gap: 18px; }
.tl-line {
  position: absolute; left: 7px; top: 8px; bottom: 8px; width: 1px;
  background: linear-gradient(180deg, var(--marigold), rgba(122, 31, 46, 0.5), transparent);
}
.tl-item { position: relative; }
.tl-dot {
  position: absolute; left: -34px; top: 26px; width: 15px; height: 15px; border-radius: 50%;
  background: var(--bg); border: 1px solid var(--marigold);
  box-shadow: 0 0 0 5px rgba(242, 177, 60, 0.08);
}
.tl-dot::after {
  content: ""; position: absolute; inset: 4px; border-radius: 50%; background: var(--marigold);
}
.tl-when {
  font-size: 10px; letter-spacing: 0.16em; text-transform: uppercase;
  color: var(--marigold); display: block; margin-bottom: 9px;
}
.tl-card { padding: 22px 26px; }
.tl-card h3 { font-size: 19px; margin-bottom: 7px; }
.tl-card p { font-size: 13px; line-height: 1.7; }
.tl-tags { display: flex; flex-wrap: wrap; gap: 6px; margin-top: 14px; }
.tl-tags span {
  font-size: 9.5px; color: var(--muted); border: 1px solid var(--line);
  border-radius: 100px; padding: 3px 9px;
}

/* ---------- team ---------- */
.team-card { display: flex; flex-direction: column; align-items: flex-start; text-align: left; }
.avatar {
  width: 100%; aspect-ratio: 1 / 0.92; border-radius: 14px; margin-bottom: 18px;
  background:
    radial-gradient(70% 70% at 30% 20%, rgba(242, 177, 60, 0.35), transparent 70%),
    linear-gradient(150deg, #3a1a20, #1c1114);
  border: 1px solid var(--line-strong);
  display: grid; place-items: center; position: relative; overflow: hidden;
}
.avatar::after {
  content: ""; position: absolute; inset: 0;
  background-image: radial-gradient(rgba(246, 239, 228, 0.09) 1px, transparent 1px);
  background-size: 5px 5px; opacity: 0.5;
}
.avatar span {
  position: relative; z-index: 1; font-family: var(--serif); font-size: 40px;
  letter-spacing: -0.03em; color: rgba(246, 239, 228, 0.9);
}
.avatar-b { background: radial-gradient(70% 70% at 70% 20%, rgba(122, 31, 46, 0.75), transparent 70%), linear-gradient(150deg, #3a1a20, #1c1114); }
.avatar-c { background: radial-gradient(70% 70% at 40% 30%, rgba(143, 199, 154, 0.22), transparent 70%), linear-gradient(150deg, #223026, #141a16); }
.avatar-d { background: radial-gradient(70% 70% at 60% 30%, rgba(216, 121, 106, 0.32), transparent 70%), linear-gradient(150deg, #33201d, #1a1211); }
.team-card h3 { font-size: 19px; margin-bottom: 2px; }
.role { font-size: 10.5px !important; letter-spacing: 0.13em; text-transform: uppercase; color: var(--marigold) !important; margin-bottom: 10px; }
.team-bio { font-size: 12.5px !important; line-height: 1.65; }
.socials { display: flex; gap: 8px; margin-top: 16px; }
.socials a {
  width: 30px; height: 30px; border-radius: 50%; border: 1px solid var(--line);
  display: grid; place-items: center; color: var(--muted);
  transition: color 0.25s, border-color 0.25s, background 0.25s, transform 0.25s;
}
.socials a:hover { color: var(--marigold); border-color: rgba(242, 177, 60, 0.4); background: rgba(242, 177, 60, 0.08); transform: translateY(-2px); }
.socials svg { width: 13px; height: 13px; }

/* ---------- CTA ---------- */
.cta-section {
  padding: clamp(80px, 10vw, 130px) 0; text-align: center; position: relative;
  background:
    radial-gradient(60% 80% at 50% 110%, rgba(122, 31, 46, 0.6), transparent 70%),
    radial-gradient(40% 50% at 50% -10%, rgba(242, 177, 60, 0.1), transparent 70%),
    var(--bg);
  border-top: 1px solid var(--line);
}
.cta-inner h2 { font-size: clamp(32px, 4.8vw, 58px); line-height: 1.08; letter-spacing: -0.04em; margin-bottom: 30px; }
.cta-inner h2 em { color: var(--marigold-soft); }

/* ---------- footer ---------- */
.footer { border-top: 1px solid var(--line); background: #080506; padding-top: 56px; }
.footer-grid { display: grid; grid-template-columns: 1.6fr 0.8fr 0.9fr 1fr; gap: 40px; padding-bottom: 44px; }
.footer-brand p { font-size: 12.5px; color: var(--muted); margin-top: 14px; line-height: 1.7; }
.footer-links { display: flex; flex-direction: column; gap: 9px; }
.footer-links h4, .footer-note h4 {
  font-family: var(--sans); font-size: 10px; font-weight: 600; letter-spacing: 0.16em;
  text-transform: uppercase; color: var(--ivory-dim); margin-bottom: 6px;
}
.footer-links a { font-size: 12.5px; color: var(--muted); transition: color 0.25s; }
.footer-links a:hover { color: var(--marigold); }
.footer-note p { font-size: 12.5px; color: var(--muted); line-height: 1.8; }
.footer-bottom {
  display: flex; align-items: center; justify-content: space-between; gap: 16px; flex-wrap: wrap;
  padding: 20px 0 26px; border-top: 1px solid var(--line); font-size: 11px; color: var(--muted);
}

/* ---------- modal ---------- */
.modal {
  position: fixed; inset: 0; z-index: 300; display: grid; place-items: center;
  padding: 24px; opacity: 0; pointer-events: none; transition: opacity 0.35s;
}
.modal.is-open { opacity: 1; pointer-events: auto; }
.modal-backdrop { position: absolute; inset: 0; background: rgba(5, 3, 3, 0.8); backdrop-filter: blur(8px); }
.modal-card {
  position: relative; width: min(560px, 100%); border-radius: 20px; overflow: hidden;
  background: linear-gradient(170deg, #1c1215, #0d0809);
  border: 1px solid var(--line-strong); box-shadow: var(--shadow);
  transform: translateY(14px) scale(0.98); transition: transform 0.4s var(--ease);
}
.modal.is-open .modal-card { transform: none; }
.modal-close { position: absolute; top: 14px; right: 14px; z-index: 2; background: rgba(10, 6, 7, 0.6); }
.modal-stage {
  aspect-ratio: 16 / 9; display: grid; place-items: center; position: relative;
  background:
    radial-gradient(60% 70% at 50% 50%, rgba(122, 31, 46, 0.65), transparent 70%),
    linear-gradient(150deg, #221317, #0d0809);
  border-bottom: 1px solid var(--line);
}
.modal-art { position: relative; display: grid; place-items: center; width: 88px; height: 88px; border-radius: 50%; background: rgba(242, 177, 60, 0.14); border: 1px solid rgba(242, 177, 60, 0.35); color: var(--marigold); }
.modal-art svg { width: 30px; height: 30px; margin-left: 4px; }
.modal-ring { position: absolute; inset: -22px; border: 1px solid rgba(242, 177, 60, 0.18); border-radius: 50%; animation: ringPulse 3s ease-out infinite; }
.modal-ring.r2 { inset: -46px; animation-delay: 1.2s; }
@keyframes ringPulse { 0% { transform: scale(0.9); opacity: 0.8; } 100% { transform: scale(1.12); opacity: 0; } }
.modal-badge {
  position: absolute; bottom: 16px; left: 18px; font-size: 10px; letter-spacing: 0.1em;
  text-transform: uppercase; color: var(--ivory-dim); background: rgba(10, 6, 7, 0.65);
  border: 1px solid var(--line); border-radius: 100px; padding: 5px 11px;
}
.modal-body { padding: 26px 28px 30px; }
.modal-body h3 { font-size: 23px; margin-bottom: 10px; }
.modal-body p { font-size: 13px; color: var(--muted); line-height: 1.7; }
.modal-note { margin-top: 12px; font-size: 10.5px !important; letter-spacing: 0.03em; color: rgba(160, 143, 136, 0.75) !important; }

/* ---------- reveal ---------- */
.reveal {
  opacity: 0; transform: translateY(26px);
  transition: opacity 0.85s var(--ease), transform 0.85s var(--ease);
  transition-delay: var(--d, 0s);
}
.reveal.is-in { opacity: 1; transform: none; }

/* ---------- responsive ---------- */
@media (max-width: 1080px) {
  .nav-links a { padding: 9px 10px; font-size: 12.5px; }
  .stack-grid { grid-template-columns: repeat(2, 1fr); }
  .results { grid-template-columns: repeat(2, 1fr); }
  .demo-body { grid-template-columns: 1fr 270px; }
}

@media (max-width: 960px) {
  .nav-links {
    position: fixed; inset: 74px 0 auto 0; flex-direction: column; align-items: stretch;
    gap: 2px; padding: 14px 20px 22px;
    background: rgba(12, 8, 9, 0.97); backdrop-filter: blur(20px);
    border-bottom: 1px solid var(--line);
    transform: translateY(-12px); opacity: 0; pointer-events: none;
    transition: opacity 0.3s, transform 0.3s; z-index: 99;
  }
  .nav-links.is-open { opacity: 1; transform: none; pointer-events: auto; }
  .nav-links a { padding: 12px 8px; font-size: 14px; border-bottom: 1px solid var(--line); border-radius: 0; }
  .nav-toggle { display: flex; }

  .hero { padding-top: 128px; }
  .hero-grid { grid-template-columns: 1fr; gap: 48px; }
  .hero-visual { max-width: 440px; margin-inline: auto; width: 100%; }
  .hero-chip.chip-match { left: -10px; }
  .chip-fit { right: -6px; }
  .hero-title { font-size: clamp(56px, 13vw, 100px); }

  .grid-3, .grid-4 { grid-template-columns: repeat(2, 1fr); }
  .team-grid .card:last-child { grid-column: auto; }

  .pipeline { grid-template-columns: 1fr; gap: 10px; }
  .pipeline-track { display: none; }
  .stage { padding: 16px 18px; }
  .panel-grid { grid-template-columns: 1fr; }
  .panel-aside { max-width: 420px; }

  .demo-body { grid-template-columns: 1fr; }
  .demo-main { border-right: none; border-bottom: 1px solid var(--line); }
  .fit-panel { display: grid; grid-template-columns: auto 1fr; gap: 18px 24px; align-items: center; }
  .fit-panel-head { grid-column: 1 / -1; }
  .fit-gauge { margin: 0; }
  .fit-copy { text-align: left; }
  .zone-list { grid-column: 1 / -1; }
  .fit-note { grid-column: 1 / -1; }
  .fit-panel .btn-block { grid-column: 1 / -1; }

  .big-feature { grid-template-columns: 1fr; }
  .big-feature-art { order: 2; min-height: 180px; }
  .impact-grid { grid-template-columns: 1fr; }
  .footer-grid { grid-template-columns: 1fr 1fr; gap: 30px; }
}

@media (max-width: 700px) {
  body { font-size: 15.5px; }
  .wrap { width: calc(100% - 36px); }
  .nav-inner { width: calc(100% - 28px); height: 68px; }
  .nav-links { inset: 68px 0 auto 0; }
  .hero { padding-top: 112px; }
  .hero-title { font-size: clamp(46px, 15vw, 78px); }
  .hero-stats { gap: 18px 26px; }
  .hero-stat { flex: 1 1 40%; }
  .grid-3, .grid-4 { grid-template-columns: 1fr; }
  .stat-card { min-height: 0; }
  .problem-note { flex-direction: column; align-items: flex-start; gap: 14px; }
  .note-line { width: 60px; }
  .stack-grid { grid-template-columns: 1fr; }
  .impact-strip { grid-template-columns: 1fr 1fr; }
  .compare-viz { grid-template-columns: 1fr; }
  .fit-panel { grid-template-columns: 1fr; text-align: left; }
  .fit-gauge { margin-inline: auto; }
  .results { grid-template-columns: repeat(2, 1fr); gap: 10px; }
  .demo-bar { gap: 8px; padding: 11px 12px; }
  .url-pill { font-size: 10px; max-width: 200px; }
  .demo-live { display: none; }
  .flow-strip { justify-content: flex-start; }
  .footer-grid { grid-template-columns: 1fr; gap: 26px; }
  .footer-bottom { flex-direction: column; align-items: flex-start; gap: 8px; }
  .tl-card { padding: 18px 20px; }
  .modal-body { padding: 22px 20px 26px; }
  .econ-row { flex-direction: column; align-items: flex-start; gap: 4px; }
  .econ-row em { text-align: left; }
  .impact-item strong { font-size: 26px; }
  .hero-chip { font-size: 11px; padding: 10px 12px; }
}

@media (max-width: 420px) {
  .search-bar { flex-wrap: wrap; border-radius: 16px; padding: 10px 12px; }
  .search-bar input { flex-basis: calc(100% - 30px); font-size: 12.5px; }
  .search-btn { width: 100%; padding: 9px; }
  .results { grid-template-columns: 1fr; }
  .result-img { aspect-ratio: 1 / 0.9; }
  .hero-chip.chip-match { left: 0; }
  .chip-fit { right: 0; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after {
    animation-duration: 0.01ms !important; animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
  }
  .reveal { opacity: 1; transform: none; }
}


/* ---------- rule-based demo engine ---------- */
.stat-note {
  font-size: 11px; color: var(--muted); letter-spacing: 0.02em;
  margin: -18px 0 26px; display: flex; align-items: center; gap: 8px;
}
.impact-grid + .stat-note { margin-top: -26px; }
.stat-note::before {
  content: ""; width: 5px; height: 5px; border-radius: 50%;
  background: var(--marigold); flex: none;
}

.fit-inputs { display: grid; grid-template-columns: 1fr 1fr; gap: 8px 10px; }
.fi { display: flex; flex-direction: column; gap: 4px; min-width: 0; }
.fi > span {
  font-size: 9px; letter-spacing: 0.12em; text-transform: uppercase; color: var(--muted);
}
.fi input, .fi select {
  width: 100%; background: rgba(10, 6, 7, 0.7); border: 1px solid var(--line);
  border-radius: 8px; padding: 7px 9px; color: var(--ivory);
  font-family: var(--sans); font-size: 12px; outline: none;
  transition: border-color 0.25s, box-shadow 0.25s;
}
.fi input:focus, .fi select:focus {
  border-color: rgba(242, 177, 60, 0.5); box-shadow: 0 0 0 3px rgba(242, 177, 60, 0.08);
}

.no-results {
  grid-column: 1 / -1; border: 1px dashed var(--line-strong); border-radius: 14px;
  padding: 26px 20px; display: grid; gap: 7px; justify-items: center; text-align: center;
}
.no-results strong { font-size: 13px; font-weight: 500; }
.no-results p { font-size: 11.5px; color: var(--muted); max-width: 42ch; }
.no-results .search-chips { justify-content: center; margin-top: 4px; }

.cart-empty { padding: 28px 20px; text-align: center; display: grid; gap: 6px; }
.cart-empty[hidden] { display: none; }
.cart-empty strong { font-family: var(--serif); font-size: 16px; font-weight: 400; }
.cart-empty p { font-size: 11px; color: var(--muted); line-height: 1.6; }
.bundle[hidden] { display: none; }

.ci-actions { display: flex; align-items: center; gap: 8px; margin-top: 8px; }
.qty-btn {
  width: 22px; height: 22px; border-radius: 6px; border: 1px solid var(--line-strong);
  background: rgba(246, 239, 228, 0.05); color: var(--ivory-dim);
  font-size: 13px; line-height: 1; display: grid; place-items: center;
  transition: border-color 0.25s, color 0.25s;
}
.qty-btn:hover { border-color: rgba(242, 177, 60, 0.45); color: var(--ivory); }
.qty-val { font-size: 11.5px; color: var(--ivory); min-width: 12px; text-align: center; }
.ci-remove {
  margin-left: auto; font-size: 10px; color: var(--muted);
  background: none; border: none; text-decoration: underline; text-underline-offset: 2px;
}
.ci-remove:hover { color: var(--marigold); }

.demo-live { margin-left: auto; }

@media (max-width: 960px) {
  .fit-inputs { grid-column: 1 / -1; }
}
