/* ============================================================
   BinaryCookie — design system
   Space Grotesk (display) + Manrope (body/UI)
   Light theme default, dark theme via [data-theme="dark"]
   ============================================================ */

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; }
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation-duration: 0.001ms !important; animation-iteration-count: 1 !important; transition-duration: 0.001ms !important; scroll-behavior: auto !important; }
}

:root {
  /* ---- type ---- */
  --font-display: "Space Grotesk", "Manrope", sans-serif;
  --font-body: "Manrope", sans-serif;
  --font-mono: "IBM Plex Mono", ui-monospace, monospace;

  /* ---- radius / motion ---- */
  --r-sm: 6px;
  --r-md: 10px;
  --r-lg: 16px;
  --ease: cubic-bezier(.16,.84,.44,1);
  --dur-fast: 160ms;
  --dur: 320ms;
  --dur-slow: 620ms;

  /* ---- light theme (default) ---- */
  --bg: #F6F7FB;
  --bg-raise: #FFFFFF;
  --surface: #FFFFFF;
  --surface-2: #EEF1F8;
  --ink: #0B1220;
  --ink-soft: #1B2333;
  --muted: #565F7A;
  --subtle: #8991AB;
  --line: #E3E7F1;
  --line-strong: #CBD1E3;
  --accent: #4A4CF0;
  --accent-2: #12B79E;
  --accent-soft: #EDEDFE;
  --accent-fg: #FFFFFF;
  --danger: #E24C4C;
  --shadow-color: 224deg 35% 42%;
  --shadow-sm: 0 1px 2px hsl(var(--shadow-color) / 0.06), 0 1px 1px hsl(var(--shadow-color) / 0.04);
  --shadow-md: 0 8px 24px -8px hsl(var(--shadow-color) / 0.16);
  --shadow-lg: 0 24px 64px -16px hsl(var(--shadow-color) / 0.22);
  --grid-line: rgba(11, 18, 32, 0.05);
  --noise-opacity: 0.025;
  color-scheme: light;
}

[data-theme="dark"] {
  --bg: #090C13;
  --bg-raise: #0F1420;
  --surface: #10151F;
  --surface-2: #161C2A;
  --ink: #EEF1FA;
  --ink-soft: #D9DEEC;
  --muted: #9BA3C0;
  --subtle: #6A7392;
  --line: #232B3E;
  --line-strong: #303A54;
  --accent: #7C81FF;
  --accent-2: #2FE3C4;
  --accent-soft: rgba(124,129,255,0.14);
  --accent-fg: #0A0C16;
  --danger: #FF6B6B;
  --shadow-color: 230deg 60% 4%;
  --shadow-sm: 0 1px 2px hsl(var(--shadow-color) / 0.4);
  --shadow-md: 0 8px 24px -8px hsl(var(--shadow-color) / 0.6);
  --shadow-lg: 0 24px 64px -16px hsl(var(--shadow-color) / 0.7);
  --grid-line: rgba(255, 255, 255, 0.045);
  --noise-opacity: 0.05;
  color-scheme: dark;
}

html, body { padding: 0; margin: 0; }
body {
  background: var(--bg);
  color: var(--ink);
  font-family: var(--font-body);
  font-size: 16px;
  line-height: 1.55;
  -webkit-font-smoothing: antialiased;
  transition: background-color var(--dur) var(--ease), color var(--dur) var(--ease);
  overflow-x: hidden;
  background-image:
    linear-gradient(var(--grid-line) 1px, transparent 1px),
    linear-gradient(90deg, var(--grid-line) 1px, transparent 1px);
  background-size: 64px 64px;
  background-position: center top;
}

h1, h2, h3, h4 { font-family: var(--font-display); color: var(--ink); margin: 0; font-weight: 600; letter-spacing: -0.01em; line-height: 1.08; }
h1 { font-size: clamp(2.4rem, 5vw + 1rem, 4.4rem); font-weight: 650; letter-spacing: -0.02em; }
h2 { font-size: clamp(1.7rem, 2.6vw + 1rem, 2.6rem); letter-spacing: -0.015em; }
h3 { font-size: 1.15rem; font-weight: 650; }
p { margin: 0; color: var(--muted); }
a { color: inherit; text-decoration: none; }
ul { margin: 0; padding: 0; list-style: none; }
img, svg { display: block; max-width: 100%; }
button { font-family: inherit; cursor: pointer; }
input, textarea, select { font-family: inherit; }

::selection { background: var(--accent); color: var(--accent-fg); }

:focus-visible {
  outline: 2px solid var(--accent);
  outline-offset: 3px;
  border-radius: 4px;
}

.skip {
  position: absolute; left: -999px; top: 0; z-index: 999;
  background: var(--accent); color: var(--accent-fg);
  padding: 12px 18px; border-radius: 0 0 var(--r-sm) 0; font-weight: 600;
}
.skip:focus { left: 0; }

.wrap { max-width: 1240px; margin: 0 auto; padding: 0 32px; }

.noise { display: none; } /* replaced by subtle grid background above */

/* ============================================================
   Reveal-on-scroll (single orchestrated pattern, not per-card spam)
   ============================================================ */
[data-reveal] {
  opacity: 0;
  transform: translateY(14px);
  transition: opacity var(--dur-slow) var(--ease), transform var(--dur-slow) var(--ease);
}
[data-reveal].is-visible { opacity: 1; transform: translateY(0); }
@media (prefers-reduced-motion: reduce) {
  [data-reveal] { opacity: 1; transform: none; transition: none; }
}

/* ============================================================
   NAV
   ============================================================ */
.nav {
  position: sticky; top: 0; z-index: 100;
  background: color-mix(in srgb, var(--bg) 82%, transparent);
  backdrop-filter: blur(14px) saturate(140%);
  -webkit-backdrop-filter: blur(14px) saturate(140%);
  border-bottom: 1px solid var(--line);
  transition: background-color var(--dur) var(--ease), border-color var(--dur) var(--ease);
}
.nav-inner {
  display: flex; align-items: center; gap: 28px;
  height: 72px;
}
.brand {
  display: flex; align-items: center; gap: 5px;
  font-family: var(--font-display); font-weight: 650; font-size: 1.05rem;
  letter-spacing: -0.01em; color: var(--ink); margin-right: auto;
  flex-shrink: 0;
}
.brand-mark {
  display: grid; place-items: center;
  width: 30px; height: 30px; border-radius: 8px;
  font-family: var(--font-display); font-weight: 700; font-size: 15px;
  transition: transform var(--dur) var(--ease);
}
.brand:hover .brand-mark { transform: rotate(-8deg); }

.nav-links { display: flex; align-items: center; gap: 4px; }
.nav-links a {
  position: relative;
  padding: 8px 14px; border-radius: 999px;
  font-size: 14.5px; font-weight: 550; color: var(--muted);
  transition: color var(--dur-fast) var(--ease), background-color var(--dur-fast) var(--ease);
  white-space: nowrap;
}
.nav-links a:hover { color: var(--ink); background: var(--surface-2); }
.nav-links a[aria-current="page"] { color: var(--ink); background: var(--surface-2); }

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

.theme-toggle {
  display: inline-flex; align-items: center; justify-content: center;
  width: 40px; height: 40px; border-radius: 999px;
  border: 1px solid var(--line); background: var(--surface);
  color: var(--ink); flex-shrink: 0;
  transition: border-color var(--dur-fast) var(--ease), transform var(--dur-fast) var(--ease), background-color var(--dur-fast) var(--ease);
}
.theme-toggle:hover { border-color: var(--line-strong); transform: translateY(-1px); }
.theme-toggle svg { width: 18px; height: 18px; }
.theme-toggle .icon-sun { display: none; }
.theme-toggle .icon-moon { display: block; }
[data-theme="dark"] .theme-toggle .icon-sun { display: block; }
[data-theme="dark"] .theme-toggle .icon-moon { display: none; }

.nav-cta {
  display: inline-flex; align-items: center; gap: 6px;
  padding: 10px 18px; border-radius: 999px;
  background: var(--ink); color: var(--bg);
  font-size: 14px; font-weight: 600;
  transition: background-color var(--dur-fast) var(--ease), transform var(--dur-fast) var(--ease);
  white-space: nowrap;
}
.nav-cta:hover { background: var(--accent); color: var(--accent-fg); transform: translateY(-1px); }

.menu-btn {
  display: none; flex-direction: column; justify-content: center; gap: 5px;
  width: 40px; height: 40px; border-radius: 999px;
  border: 1px solid var(--line); background: var(--surface);
  flex-shrink: 0;
}
.menu-btn span { display: block; width: 16px; height: 1.5px; background: var(--ink); margin: 0 auto; transition: transform var(--dur-fast) var(--ease), opacity var(--dur-fast) var(--ease); }
.menu-btn[aria-expanded="true"] span:nth-child(1) { transform: translateY(6.5px) rotate(45deg); }
.menu-btn[aria-expanded="true"] span:nth-child(2) { opacity: 0; }
.menu-btn[aria-expanded="true"] span:nth-child(3) { transform: translateY(-6.5px) rotate(-45deg); }

.mobile-panel {
  border-bottom: 1px solid var(--line);
  background: var(--bg-raise);
  overflow: hidden;
  animation: panel-open var(--dur) var(--ease);
}
@keyframes panel-open { from { max-height: 0; opacity: 0; } to { max-height: 480px; opacity: 1; } }
.mobile-panel .wrap { display: flex; flex-direction: column; padding-top: 16px; padding-bottom: 24px; gap: 4px; }
.mobile-panel a:not(.btn) { padding: 12px 4px; font-size: 15px; font-weight: 550; color: var(--muted); border-bottom: 1px solid var(--line); }
.mobile-panel a[aria-current="page"] { color: var(--ink); }
.mobile-panel .btn { margin-top: 16px; }

/* ============================================================
   BUTTONS
   ============================================================ */
.btn {
  display: inline-flex; align-items: center; gap: 8px;
  padding: 13px 24px; border-radius: var(--r-sm);
  font-size: 14.5px; font-weight: 600; letter-spacing: -0.005em;
  border: 1px solid transparent; white-space: nowrap;
  transition: transform var(--dur-fast) var(--ease), background-color var(--dur-fast) var(--ease), border-color var(--dur-fast) var(--ease), box-shadow var(--dur-fast) var(--ease);
}
.btn-primary { background: var(--ink); color: var(--bg); }
.btn-primary:hover { background: var(--accent); color: var(--accent-fg); transform: translateY(-2px); box-shadow: var(--shadow-md); }
.btn-secondary { background: transparent; color: var(--ink); border-color: var(--line-strong); }
.btn-secondary:hover { border-color: var(--ink); transform: translateY(-2px); }
.btn-full { width: 100%; justify-content: center; }

/* ============================================================
   HERO
   ============================================================ */
.hero { position: relative; padding: 76px 0 96px; overflow: hidden; }
.hero-glow {
  position: absolute; inset: -20% -10% auto -10%; height: 640px;
  background: radial-gradient(60% 60% at 30% 20%, var(--accent-soft), transparent 70%);
  pointer-events: none; z-index: 0;
}
.hero-grid { position: relative; z-index: 1; display: grid; grid-template-columns: 1.05fr 0.95fr; gap: 56px; align-items: center; }
.hero-copy { max-width: 34rem; }

.eyebrow {
  display: inline-flex; align-items: center; gap: 8px;
  font-size: 13.5px; font-weight: 600; color: var(--muted);
  padding: 7px 14px 7px 10px; border: 1px solid var(--line); border-radius: 999px;
  background: var(--surface);
  margin-bottom: 22px;
}
.eyebrow .dot { width: 7px; height: 7px; border-radius: 50%; background: var(--accent-2); box-shadow: 0 0 0 3px var(--accent-soft); }

.hero h1 { margin-bottom: 22px; }
.hero h1 .accent { color: var(--accent); }
.hero-sub { font-size: 17.5px; line-height: 1.6; max-width: 30rem; color: var(--muted); }
.hero-actions { display: flex; align-items: center; gap: 12px; flex-wrap: wrap; margin-top: 34px; }
.hero-note { display: flex; align-items: center; gap: 10px; margin-top: 28px; font-size: 13.5px; color: var(--subtle); }
.hero-note-line { width: 24px; height: 1px; background: var(--line-strong); }

/* -- hero visual: layered interface stack (replaces old orbit system) -- */
.visual { position: relative; height: 460px; z-index: 1; }
.stack-frame {
  position: absolute; inset: 0;
  border: 1px solid var(--line); border-radius: var(--r-lg);
  background: var(--surface);
  box-shadow: var(--shadow-lg);
  padding: 22px;
  display: grid; grid-template-rows: auto 1fr auto; gap: 14px;
}
.stack-frame-head { display: flex; align-items: center; justify-content: space-between; }
.stack-dots { display: flex; gap: 6px; }
.stack-dots span { width: 8px; height: 8px; border-radius: 50%; background: var(--line-strong); }
.stack-frame-label { font-family: var(--font-mono); font-size: 11.5px; color: var(--subtle); letter-spacing: 0.02em; }
.stack-nodes { display: grid; grid-template-columns: repeat(2, 1fr); gap: 12px; }
.stack-node {
  border: 1px solid var(--line); border-radius: var(--r-md);
  background: var(--surface-2);
  padding: 16px; display: flex; flex-direction: column; justify-content: space-between;
  transition: transform var(--dur) var(--ease), border-color var(--dur) var(--ease);
}
.stack-node:hover { transform: translateY(-3px); border-color: var(--accent); }
.stack-node .n-code { font-family: var(--font-display); font-weight: 700; font-size: 15px; color: var(--ink); }
.stack-node .n-label { font-size: 12.5px; color: var(--subtle); margin-top: 10px; }
.stack-node.accent { background: var(--ink); border-color: var(--ink); }
.stack-node.accent .n-code, .stack-node.accent .n-label { color: var(--bg); }
.stack-frame-foot { display: flex; align-items: center; justify-content: space-between; padding-top: 14px; border-top: 1px solid var(--line); }
.stack-metric { display: flex; flex-direction: column; gap: 4px; }
.stack-metric .m-label { font-size: 11.5px; color: var(--subtle); }
.stack-metric .m-value { font-family: var(--font-display); font-size: 20px; font-weight: 650; }
.stack-bars { display: flex; align-items: flex-end; gap: 3px; height: 26px; }
.stack-bars i { width: 4px; border-radius: 2px; background: var(--accent); display: block; }

.float-card {
  position: absolute; z-index: 2;
  background: var(--surface); border: 1px solid var(--line);
  border-radius: var(--r-md); box-shadow: var(--shadow-md);
  padding: 14px 18px;
}
.float-card.one { top: -26px; right: 6%; }
.float-card.two { bottom: -22px; left: -6%; }
.fc-label { font-size: 11.5px; color: var(--subtle); }
.fc-value { font-family: var(--font-display); font-weight: 650; font-size: 19px; margin-top: 3px; }
.mini-bars { display: flex; align-items: flex-end; gap: 3px; height: 20px; margin-top: 8px; }
.mini-bars i { width: 4px; border-radius: 2px; background: var(--accent-2); display: block; }
.mini-bars i:nth-child(1){height:40%;} .mini-bars i:nth-child(2){height:65%;} .mini-bars i:nth-child(3){height:50%;}
.mini-bars i:nth-child(4){height:90%;} .mini-bars i:nth-child(5){height:70%;} .mini-bars i:nth-child(6){height:100%;background:var(--accent);}

/* legacy selectors kept mapped to new visual (in case referenced) */
.orbit, .core-glow, .core, .node { display: none; }

/* ============================================================
   MARQUEE
   ============================================================ */
.marquee {
  border-top: 1px solid var(--line); border-bottom: 1px solid var(--line);
  background: var(--surface); overflow: hidden; padding: 18px 0;
}
.marquee-track { display: flex; width: max-content; animation: marquee 32s linear infinite; }
@media (prefers-reduced-motion: reduce) { .marquee-track { animation: none; } }
@keyframes marquee { from { transform: translateX(0); } to { transform: translateX(-50%); } }
.marquee-item { display: flex; align-items: center; gap: 14px; font-family: var(--font-display); font-size: 15px; font-weight: 600; color: var(--subtle); padding-right: 14px; white-space: nowrap; }
.diamond { width: 5px; height: 5px; background: var(--line-strong); transform: rotate(45deg); display: inline-block; }

/* ============================================================
   SECTIONS
   ============================================================ */
.section { padding: 96px 0; }
.section-head { display: grid; grid-template-columns: 1fr 1fr; gap: 48px; align-items: end; margin-bottom: 56px; }
.section-head h2 span { color: var(--accent); }
.section-head p { font-size: 16px; max-width: 30rem; }
.section-index {
  font-family: var(--font-mono); font-size: 12.5px; letter-spacing: 0.03em;
  color: var(--accent); margin-bottom: 14px; font-weight: 500;
}

/* philosophy cards */
.phil-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1px; background: var(--line); border: 1px solid var(--line); border-radius: var(--r-lg); overflow: hidden; }
.phil-card { background: var(--surface); padding: 36px 32px; transition: background-color var(--dur) var(--ease); }
.phil-card:hover { background: var(--surface-2); }
.phil-card .num { font-family: var(--font-mono); color: var(--subtle); font-size: 13px; margin-bottom: 20px; }
.phil-card h3 { margin-bottom: 10px; }
.phil-card p { font-size: 14.5px; }

/* services list */
.services-wrap { display: flex; flex-direction: column; border-top: 1px solid var(--line); }
.service {
  display: grid; grid-template-columns: 56px 1fr 32px; align-items: center; gap: 24px;
  padding: 28px 8px; border-bottom: 1px solid var(--line);
  transition: padding-left var(--dur) var(--ease), background-color var(--dur) var(--ease);
}
.service:hover { background: var(--surface); padding-left: 20px; }
.service .num { font-family: var(--font-mono); color: var(--subtle); font-size: 13px; }
.service h3 { margin-bottom: 6px; }
.service p { font-size: 14.5px; max-width: 34rem; }
.service .arrow { font-size: 18px; color: var(--subtle); transition: transform var(--dur-fast) var(--ease), color var(--dur-fast) var(--ease); justify-self: end; }
.service:hover .arrow { transform: translate(3px, -3px); color: var(--accent); }

/* products */
.product-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 24px; }
.product-card {
  display: flex; flex-direction: column; gap: 18px;
  border: 1px solid var(--line); border-radius: var(--r-lg);
  background: var(--surface); padding: 28px;
  transition: transform var(--dur) var(--ease), box-shadow var(--dur) var(--ease), border-color var(--dur) var(--ease);
}
.product-card:hover { transform: translateY(-4px); box-shadow: var(--shadow-lg); border-color: var(--line-strong); }
.product-top { display: flex; align-items: center; justify-content: space-between; }
.tag { font-size: 12.5px; font-weight: 600; color: var(--muted); background: var(--surface-2); padding: 5px 10px; border-radius: 999px; }
.status { display: flex; align-items: center; gap: 6px; font-size: 12.5px; font-weight: 600; color: var(--accent-2); }
.status i { width: 6px; height: 6px; border-radius: 50%; background: var(--accent-2); }
.product-graphic { border-radius: var(--r-md); background: var(--surface-2); border: 1px solid var(--line); padding: 20px; min-height: 200px; display: grid; place-items: center; }
.product-card h3 { font-size: 1.4rem; }
.product-card p { font-size: 14.5px; }
.product-link { font-size: 14px; font-weight: 600; color: var(--ink); display: inline-flex; align-items: center; gap: 6px; margin-top: auto; transition: gap var(--dur-fast) var(--ease), color var(--dur-fast) var(--ease); }
.product-card:hover .product-link { color: var(--accent); gap: 10px; }

.phone { width: 168px; height: 300px; border-radius: 26px; border: 6px solid var(--ink); background: var(--surface); padding: 14px; }
.phone-screen { height: 100%; display: flex; flex-direction: column; gap: 10px; }
.mini-logo { width: 32px; height: 32px; border-radius: 8px; background: var(--ink); color: var(--bg); display: grid; place-items: center; font-family: var(--font-display); font-weight: 700; font-size: 12px; }
.screen-title { font-family: var(--font-display); font-weight: 650; font-size: 17px; line-height: 1.25; margin-top: 6px; }
.pill { height: 34px; border-radius: 10px; background: var(--surface-2); margin-top: auto; }
.pill.two { height: 34px; margin-top: 8px; background: var(--accent-soft); }

.dash { width: 100%; max-width: 220px; display: flex; flex-direction: column; gap: 12px; }
.dash-row { display: flex; gap: 8px; }
.dash-box { flex: 1; height: 44px; border-radius: 8px; background: var(--surface); border: 1px solid var(--line); }
.dash-chart { height: 90px; border-radius: 8px; background: var(--surface); border: 1px solid var(--line); background-image: linear-gradient(135deg, var(--accent-soft) 25%, transparent 25%); }

/* process */
.process-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 20px; }
.process-step { border: 1px solid var(--line); border-radius: var(--r-lg); padding: 28px 24px; background: var(--surface); transition: border-color var(--dur) var(--ease), transform var(--dur) var(--ease); }
.process-step:hover { transform: translateY(-3px); border-color: var(--line-strong); }
.process-step .num { font-family: var(--font-mono); font-size: 13px; color: var(--subtle); margin-bottom: 18px; }
.process-step.active { border-color: var(--accent); background: var(--accent-soft); }
.process-step.active .num { color: var(--accent); }
.process-step h3 { margin-bottom: 8px; }
.process-step p { font-size: 14px; }

/* statement */
.statement-box { text-align: center; padding: 72px 40px; border: 1px solid var(--line); border-radius: var(--r-lg); background: var(--surface); }
.kicker { font-family: var(--font-mono); font-size: 13px; color: var(--accent); margin-bottom: 18px; }
.muted-title { color: var(--subtle); }
.statement-box h2 { font-size: clamp(1.8rem, 3.6vw, 3rem); }

/* contact */
.contact-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 56px; align-items: start; }
.contact-email { display: inline-block; margin-top: 26px; font-family: var(--font-display); font-size: 22px; font-weight: 650; color: var(--accent); }
.contact-email:hover { text-decoration: underline; }
.contact-form { display: flex; flex-direction: column; gap: 16px; border: 1px solid var(--line); border-radius: var(--r-lg); background: var(--surface); padding: 32px; box-shadow: var(--shadow-sm); }
.field { display: flex; flex-direction: column; gap: 8px; }
.field label { font-size: 13px; font-weight: 600; color: var(--muted); }
.field input, .field textarea {
  border: 1px solid var(--line); border-radius: var(--r-sm); background: var(--bg-raise);
  padding: 13px 14px; font-size: 15px; color: var(--ink);
  transition: border-color var(--dur-fast) var(--ease), box-shadow var(--dur-fast) var(--ease);
}
.field input:focus, .field textarea:focus { border-color: var(--accent); box-shadow: 0 0 0 3px var(--accent-soft); outline: none; }
.field input::placeholder, .field textarea::placeholder { color: var(--subtle); }
.field textarea { min-height: 120px; resize: vertical; }

/* page hero (interior pages) */
.page-hero { padding: 64px 0 72px; border-bottom: 1px solid var(--line); }
.page-hero h1 { margin-top: 16px; max-width: 40rem; }
.page-hero p { margin-top: 22px; font-size: 17px; max-width: 34rem; }

/* work cards */
.work-card { display: grid; grid-template-columns: 72px 1fr; gap: 24px; padding: 44px 0; border-bottom: 1px solid var(--line); }
.work-card .num { font-family: var(--font-mono); font-size: 13px; color: var(--subtle); }
.work-card h2 { font-size: 1.7rem; }
.outcomes { display: grid; grid-template-columns: repeat(3, 1fr); gap: 12px; margin-top: 22px; }
.outcomes li { font-size: 14px; color: var(--ink-soft); padding: 12px 14px; border: 1px solid var(--line); border-radius: var(--r-sm); background: var(--surface); }

.cta-row {
  display: flex; align-items: center; justify-content: space-between; gap: 24px;
  padding: 56px 32px; margin: 0 auto 96px; max-width: 1240px;
  border: 1px solid var(--line); border-radius: var(--r-lg); background: var(--surface-2); flex-wrap: wrap;
}

/* feature grid (yatrasplit) */
.feature-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 20px; margin-top: 40px; }
.feature { border: 1px solid var(--line); border-radius: var(--r-lg); background: var(--surface); padding: 28px; }
.feature .num { font-family: var(--font-mono); font-size: 13px; color: var(--subtle); margin-bottom: 16px; }
.feature h3 { margin-bottom: 8px; }
.feature p { font-size: 14.5px; }

.steps { display: grid; grid-template-columns: repeat(3, 1fr); gap: 32px; margin-top: 40px; }
.steps .num { font-family: var(--font-mono); font-size: 13px; color: var(--accent); }
.steps h3 { margin-top: 14px; }

.faq details { border-bottom: 1px solid var(--line); padding: 20px 0; }
.faq summary { cursor: pointer; font-family: var(--font-display); font-weight: 600; font-size: 16px; list-style: none; display: flex; justify-content: space-between; align-items: center; }
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: "+"; font-size: 20px; color: var(--subtle); transition: transform var(--dur-fast) var(--ease); }
.faq details[open] summary::after { transform: rotate(45deg); }
.faq details p { margin-top: 14px; font-size: 14.5px; max-width: 40rem; }

.ys-hero { display: grid; grid-template-columns: 1.1fr 0.9fr; gap: 56px; align-items: center; padding: 72px 0 96px; }
.trip-phone { border: 1px solid var(--line); border-radius: 28px; background: var(--surface); box-shadow: var(--shadow-lg); padding: 8px; }
.trip-screen { border-radius: 20px; background: var(--surface-2); padding: 20px; display: flex; flex-direction: column; gap: 10px; }
.trip-row { display: flex; align-items: center; justify-content: space-between; padding: 12px 14px; border: 1px solid var(--line); border-radius: var(--r-sm); background: var(--surface); font-size: 14px; }
.trip-row strong { font-weight: 650; }

/* legal */
.legal { padding: 72px 0 96px; max-width: 720px; }
.legal h1 { margin-top: 14px; }
.legal h2 { margin-top: 40px; margin-bottom: 12px; font-size: 1.25rem; }
.legal p { margin-top: 12px; font-size: 15px; }
.legal p + h2 { margin-top: 44px; }

/* footer */
footer { border-top: 1px solid var(--line); padding: 72px 0 32px; margin-top: 40px; }
.footer-top { display: grid; grid-template-columns: 1.2fr 2fr; gap: 48px; padding-bottom: 48px; }
.footer-note { margin-top: 14px; font-size: 14px; color: var(--subtle); }
.footer-cols { display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; }
.foot-label { font-size: 12.5px; font-weight: 650; color: var(--subtle); margin-bottom: 14px; text-transform: none; }
.footer-cols a { display: block; padding: 7px 0; font-size: 14.5px; color: var(--muted); transition: color var(--dur-fast) var(--ease); }
.footer-cols a:hover { color: var(--ink); }
.footer-bottom { display: flex; align-items: center; justify-content: space-between; padding-top: 28px; border-top: 1px solid var(--line); font-size: 13px; color: var(--subtle); }

/* ============================================================
   RESPONSIVE
   ============================================================ */
@media (max-width: 1080px) {
  .wrap { padding: 0 24px; }
  .process-grid { grid-template-columns: repeat(2, 1fr); }
  .footer-top { grid-template-columns: 1fr; }
}

@media (max-width: 920px) {
  .nav-links, .nav-cta { display: none; }
  .menu-btn { display: flex; }
  .hero-grid, .ys-hero, .contact-grid, .section-head { grid-template-columns: 1fr; }
  .section-head { gap: 20px; }
  .visual { height: 380px; margin-top: 20px; }
  .phil-grid { grid-template-columns: 1fr; }
  .product-grid { grid-template-columns: 1fr; }
  .work-card { grid-template-columns: 1fr; gap: 12px; }
  .outcomes { grid-template-columns: 1fr; }
  .feature-grid { grid-template-columns: 1fr; }
  .steps { grid-template-columns: 1fr; gap: 24px; }
  .footer-cols { grid-template-columns: 1fr 1fr; }
  .cta-row { flex-direction: column; align-items: flex-start; }
}

@media (max-width: 640px) {
  .wrap { padding: 0 20px; }
  .section { padding: 64px 0; }
  .hero { padding: 44px 0 64px; }
  .nav-inner { height: 64px; }
  .hero-actions { flex-direction: column; align-items: stretch; }
  .hero-actions .btn { justify-content: center; }
  .phil-card, .feature, .product-card { padding: 24px; }
  .process-grid { grid-template-columns: 1fr; }
  .footer-cols { grid-template-columns: 1fr; }
  .footer-bottom { flex-direction: column; gap: 8px; align-items: flex-start; }
  .cta-row { padding: 36px 24px; }
  .float-card { display: none; }
  .stack-nodes { grid-template-columns: 1fr; }
  .marquee-item { font-size: 13px; }
}
