/* NordBit · built on the conventions of top SaaS sites:
   light base + dark bands (Stripe/Attio), Inter (Linear/Supabase/Attio),
   hairline grid (Vercel), bento (Notion/Framer), tabbed tours (Linear/Supabase),
   metrics band (Stripe), closing CTA + dark footer (Linear). */

:root {
  --bg: #ffffff;
  --bg-alt: #fafafb;
  --bg-soft: #f3f4f6;
  --stroke: #e4e7ec;
  --text: #1c1d1f;
  --muted: #6a7282;
  --blue: #266df0;
  --blue-hover: #1d5ad0;
  --blue-soft: #e9f0fe;

  --dark: #08090a;
  --dark-2: #111214;
  --dark-3: #18191c;
  --dark-stroke: #24262b;
  --dark-text: #f7f8f8;
  --dark-muted: #8a8f98;

  --green: #1f9d5a;

  --font: "Inter", ui-sans-serif, system-ui, -apple-system, "Segoe UI", sans-serif;
  --mono: "JetBrains Mono", ui-monospace, SFMono-Regular, Menlo, monospace;

  --container: 1200px;
  --gutter: 24px;
  --r-sm: 8px;
  --r-md: 12px;
  --r-lg: 20px;
  --r-xl: 24px;
  --section: clamp(80px, 10vw, 120px);
  --header-h: 64px;

  color-scheme: light;
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: calc(var(--header-h) + 16px); -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font: 400 16px/1.6 var(--font);
  font-feature-settings: "cv11", "ss01";
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}
img, svg { display: block; max-width: 100%; }
a { color: inherit; }
h1, h2, h3, p, ul, ol, dl, dd, figure { margin: 0; }
ul, ol { padding: 0; list-style: none; }
button, input, select, textarea { font: inherit; color: inherit; }
:focus-visible { outline: 2px solid var(--blue); outline-offset: 2px; border-radius: 4px; }
[hidden] { display: none !important; }

.skip { position: absolute; left: 16px; top: -48px; z-index: 100; background: var(--text); color: #fff; padding: 10px 14px; border-radius: var(--r-sm); text-decoration: none; transition: top .2s; }
.skip:focus { top: 12px; }

.container {
  max-width: calc(var(--container) + 2 * var(--gutter));
  margin-inline: auto;
  padding-left: max(var(--gutter), env(safe-area-inset-left));
  padding-right: max(var(--gutter), env(safe-area-inset-right));
}

/* ---------- type ---------- */
.h-display {
  font-size: clamp(44px, 7vw, 84px);
  font-weight: 600;
  line-height: 1;
  letter-spacing: -0.045em;
  text-wrap: balance;
}
.h-display-sm { font-size: clamp(40px, 5.2vw, 64px); }
.h2 {
  font-size: clamp(32px, 4.2vw, 52px);
  font-weight: 600;
  line-height: 1.06;
  letter-spacing: -0.035em;
  text-wrap: balance;
}
.h2-light { color: var(--dark-text); }
.h3 { font-size: clamp(22px, 2.2vw, 28px); font-weight: 600; line-height: 1.2; letter-spacing: -0.025em; text-wrap: balance; }
.eyebrow { font-size: 14px; font-weight: 600; color: var(--blue); }

/* ---------- buttons ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  height: 44px; padding: 0 20px; border-radius: 999px;
  font-size: 15px; font-weight: 500; text-decoration: none; white-space: nowrap;
  border: 1px solid transparent; cursor: pointer;
  transition: background-color .15s, border-color .15s, color .15s, transform .15s;
}
.btn svg { width: 15px; height: 15px; transition: transform .2s; }
.btn:hover svg { transform: translateX(2px); }
.btn:active { transform: scale(.98); }
.btn-primary { background: var(--blue); color: #fff; }
.btn-primary:hover { background: var(--blue-hover); }
.btn-dark { background: var(--text); color: #fff; }
.btn-dark:hover { background: #000; }
.btn-light { background: var(--bg); color: var(--text); border-color: var(--stroke); box-shadow: 0 1px 2px rgba(16, 24, 40, .04); }
.btn-light:hover { border-color: #cfd4dc; background: var(--bg-alt); }
.btn-sm { height: 36px; padding: 0 16px; font-size: 14px; }
.btn-block { width: 100%; }
.btn-row { display: flex; flex-wrap: wrap; gap: 12px; justify-content: center; }

.link { display: inline-flex; align-items: center; gap: 6px; color: var(--blue); font-weight: 500; text-decoration: none; }
.link svg { width: 14px; height: 14px; }
.link:hover { text-decoration: underline; text-underline-offset: 3px; }

/* ---------- header ---------- */
.header {
  position: sticky; top: 0; z-index: 50;
  height: var(--header-h);
  background: rgba(255, 255, 255, .8);
  -webkit-backdrop-filter: saturate(1.8) blur(16px);
  backdrop-filter: saturate(1.8) blur(16px);
  border-bottom: 1px solid transparent;
  transition: border-color .2s;
}
.header.scrolled { border-bottom-color: var(--stroke); }
.header-in { height: 100%; display: flex; align-items: center; justify-content: space-between; gap: 24px; }
.logo { display: inline-flex; align-items: center; gap: 10px; text-decoration: none; font-weight: 600; font-size: 17px; letter-spacing: -0.02em; color: var(--text); }
.logo svg { width: 26px; height: 26px; color: var(--blue); }
.logo-light { color: var(--dark-text); }

.nav { display: flex; align-items: center; gap: 4px; flex: 1; margin-left: 24px; }
.nav > a { padding: 8px 12px; border-radius: var(--r-sm); font-size: 14px; color: var(--muted); text-decoration: none; transition: color .15s, background-color .15s; }
.nav > a:hover { color: var(--text); background: var(--bg-soft); }
.nav-cta { margin-left: auto; display: flex; align-items: center; gap: 8px; }
.nav-quiet { padding: 8px 12px; font-size: 14px; color: var(--text); text-decoration: none; border-radius: var(--r-sm); }
.nav-quiet:hover { background: var(--bg-soft); }

.menu-btn { display: none; width: 40px; height: 40px; border: 1px solid var(--stroke); border-radius: 999px; background: var(--bg); cursor: pointer; position: relative; }
.menu-btn span { position: absolute; left: 12px; right: 12px; height: 1.5px; background: var(--text); transition: transform .2s, top .2s; }
.menu-btn span:first-child { top: 15px; }
.menu-btn span:last-child { top: 23px; }
.menu-btn[aria-expanded="true"] span:first-child { top: 19px; transform: rotate(45deg); }
.menu-btn[aria-expanded="true"] span:last-child { top: 19px; transform: rotate(-45deg); }

/* ---------- hero ---------- */
.hero { position: relative; padding-top: clamp(56px, 8vw, 96px); overflow: hidden; }
.hero-grid {
  position: absolute; inset: 0 0 auto; height: 760px; pointer-events: none;
  background-image:
    linear-gradient(to right, var(--stroke) 1px, transparent 1px),
    linear-gradient(to bottom, var(--stroke) 1px, transparent 1px);
  background-size: 64px 64px;
  background-position: center top;
  -webkit-mask-image: radial-gradient(ellipse 60% 55% at 50% 0%, #000 30%, transparent 75%);
  mask-image: radial-gradient(ellipse 60% 55% at 50% 0%, #000 30%, transparent 75%);
  opacity: .7;
}
.hero-copy { position: relative; display: flex; flex-direction: column; align-items: center; text-align: center; gap: 24px; }
.pill {
  display: inline-flex; align-items: center; gap: 10px;
  padding: 4px 14px 4px 4px; border-radius: 999px;
  background: var(--bg); border: 1px solid var(--stroke);
  font-size: 14px; color: var(--text); text-decoration: none;
  box-shadow: 0 1px 2px rgba(16, 24, 40, .04);
  transition: border-color .15s;
  max-width: 100%; text-align: left; line-height: 1.35;
}
.pill:hover { border-color: #cfd4dc; }
.pill-icon { width: 24px; height: 24px; border-radius: 6px; margin-right: -4px; }
.pill-tag { background: var(--blue-soft); color: var(--blue); font-weight: 600; font-size: 12px; padding: 4px 10px; border-radius: 999px; }
.pill svg { width: 13px; height: 13px; color: var(--muted); }
.hero-sub { max-width: 600px; font-size: clamp(17px, 1.6vw, 19px); color: var(--muted); line-height: 1.55; }
.hero-sub b { color: var(--text); font-weight: 600; }
.hero-copy .btn-row { margin-top: 8px; }
.hero-note { display: inline-flex; align-items: center; gap: 8px; font-size: 13px; color: var(--muted); }
.hero-note svg { width: 14px; height: 14px; color: var(--green); }

/* stage with coded app screens */
.stage {
  position: relative; margin-top: clamp(48px, 6vw, 72px);
  height: clamp(460px, 48vw, 600px);
  border: 1px solid var(--stroke); border-bottom: 0;
  border-radius: var(--r-xl) var(--r-xl) 0 0;
  background:
    radial-gradient(80% 70% at 50% 100%, #e7eefc 0%, rgba(231, 238, 252, 0) 70%),
    linear-gradient(180deg, var(--bg-alt), var(--bg));
  display: flex; justify-content: center; align-items: flex-end; gap: clamp(16px, 3vw, 40px);
  padding: 0 24px; overflow: hidden;
}
.device {
  flex-shrink: 0; width: 272px; height: 92%;
  background: #1c1d1f; border-radius: 46px 46px 0 0; padding: 10px 10px 0;
  box-shadow: 0 30px 60px -20px rgba(16, 24, 40, .25), 0 0 0 1px rgba(16, 24, 40, .06);
}
.device-side { width: 248px; height: 80%; }
.screen {
  height: 100%; background: #fff; border-radius: 37px 37px 0 0;
  padding: 34px 18px 0; display: flex; flex-direction: column; gap: 12px;
  font-size: 12px; line-height: 1.45; color: var(--text); overflow: hidden;
}
.screen-shot { padding: 0; background: #000; }
.screen-shot img { width: 100%; height: auto; }

.chip {
  position: absolute; z-index: 2;
  display: inline-flex; align-items: center; gap: 8px;
  padding: 10px 16px; border-radius: 999px;
  background: rgba(255, 255, 255, .9); border: 1px solid var(--stroke);
  -webkit-backdrop-filter: blur(8px); backdrop-filter: blur(8px);
  box-shadow: 0 12px 32px -12px rgba(16, 24, 40, .2);
  font-size: 13px; font-weight: 500; white-space: nowrap;
}
.chip svg { width: 14px; height: 14px; color: var(--green); }
.chip .dot { width: 8px; height: 8px; border-radius: 50%; background: var(--blue); box-shadow: 0 0 0 4px var(--blue-soft); }
.chip-a { left: 4%; top: 80%; }
.chip-b { right: 5%; top: 12%; }

/* ---------- marquee ---------- */
.marquee-wrap { border-top: 1px solid var(--stroke); border-bottom: 1px solid var(--stroke); padding: 28px 0 32px; }
.marquee-label { text-align: center; font-size: 13px; color: var(--muted); margin-bottom: 18px; }
.marquee {
  overflow: hidden;
  -webkit-mask-image: linear-gradient(90deg, transparent, #000 12%, #000 88%, transparent);
  mask-image: linear-gradient(90deg, transparent, #000 12%, #000 88%, transparent);
}
.marquee-track { display: flex; gap: 56px; width: max-content; animation: marquee 40s linear infinite; }
.marquee-track span { font-size: 20px; font-weight: 600; letter-spacing: -0.02em; color: #4b5260; white-space: nowrap; }
.marquee:hover .marquee-track { animation-play-state: paused; }
@keyframes marquee { to { transform: translateX(calc(-50% - 28px)); } }

/* ---------- sections ---------- */
.section { padding: var(--section) 0; }
.section-alt { background: var(--bg-alt); border-top: 1px solid var(--stroke); border-bottom: 1px solid var(--stroke); }
.sec-head { max-width: 720px; margin: 0 auto clamp(40px, 5vw, 64px); text-align: center; display: flex; flex-direction: column; align-items: center; gap: 14px; }
.sec-head-left { margin: 0; text-align: left; align-items: flex-start; }
.sec-sub { font-size: 18px; color: var(--muted); max-width: 560px; }
.sec-sub a { color: var(--text); }

/* ---------- bento ---------- */
.bento { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 16px; }
.tile {
  background: var(--bg-alt); border: 1px solid var(--stroke); border-radius: var(--r-lg);
  padding: 28px; min-height: 320px; display: flex; flex-direction: column; justify-content: space-between; gap: 28px;
  overflow: hidden;
}
.tile-wide { grid-column: span 2; }
.tile h3 { font-size: 19px; font-weight: 600; letter-spacing: -0.02em; }
.tile-copy { display: flex; flex-direction: column; gap: 6px; max-width: 420px; }
.tile-copy p { color: var(--muted); font-size: 15px; }
.tile-dark { background: var(--dark); border-color: var(--dark); color: var(--dark-text); }
.tile-dark .tile-copy p { color: var(--dark-muted); }

.art-proto { display: flex; align-items: center; gap: 14px; }
.mini-phone {
  width: 92px; height: 172px; flex-shrink: 0;
  border: 2px solid #c9ced6; border-radius: 18px; background: var(--bg);
  padding: 16px 10px; display: flex; flex-direction: column; gap: 7px;
}
.mini-phone-on { border-color: var(--text); box-shadow: 0 12px 24px -12px rgba(16, 24, 40, .3); }
.mp-h { height: 8px; width: 60%; border-radius: 4px; background: var(--text); }
.mp-card { height: 44px; border-radius: 8px; background: var(--bg-soft); }
.mp-card.dark { background: var(--text); }
.mp-ring { width: 40px; height: 40px; border-radius: 50%; border: 5px solid var(--blue); align-self: center; margin: 4px 0; }
.mp-line { height: 6px; border-radius: 3px; background: var(--bg-soft); }
.mp-line.short { width: 60%; }
.mp-btn { margin-top: auto; height: 16px; border-radius: 999px; background: var(--blue); }
.flow-arrow svg { width: 18px; height: 18px; color: #9aa1ad; }

.art-releases { display: flex; flex-direction: column; font-size: 13px; }
.art-releases li { display: grid; grid-template-columns: auto 1fr auto; gap: 12px; align-items: center; padding: 12px 0; border-top: 1px solid var(--dark-stroke); }
.art-releases .ver { font-family: var(--mono); font-size: 12px; color: #fff; background: var(--blue); padding: 2px 8px; border-radius: 6px; }
.art-releases li + li .ver { background: var(--dark-3); color: var(--dark-muted); }
.art-releases em { font-style: normal; color: var(--dark-muted); font-size: 12px; }

.art-platforms { display: flex; align-items: flex-end; gap: 12px; }
.pf { display: block; border: 2px solid #c9ced6; background: var(--bg); }
.pf-phone { width: 52px; height: 100px; border-radius: 12px; }
.pf-android { border-radius: 8px; }
.pf-web { width: 160px; height: 104px; border-radius: 10px; border-color: var(--blue); background: linear-gradient(var(--blue-soft) 0 16px, var(--bg) 16px); }

.art-chat { display: flex; flex-direction: column; gap: 8px; font-size: 14px; }
.art-chat span { max-width: 86%; padding: 10px 14px; border-radius: 16px; }
.c-me { align-self: flex-end; background: var(--bg); border: 1px solid var(--stroke); border-bottom-right-radius: 4px; }
.c-ai { align-self: flex-start; background: var(--blue); color: #fff; border-bottom-left-radius: 4px; }

.art-code { margin: 0; font: 13px/1.8 var(--mono); color: var(--muted); background: var(--bg); border: 1px solid var(--stroke); border-radius: var(--r-md); padding: 16px 18px; }
.art-code .k { color: var(--text); font-weight: 500; }
.art-code .a { color: var(--blue); }

/* ---------- case ---------- */
.case {
  display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
  background: var(--bg); border: 1px solid var(--stroke); border-radius: var(--r-xl); overflow: hidden;
}
.case-copy { padding: clamp(28px, 4vw, 56px); display: flex; flex-direction: column; gap: 24px; }
.case-brand { display: flex; align-items: center; gap: 12px; }
.case-brand b { display: block; font-weight: 600; }
.case-brand span { font-size: 14px; color: var(--muted); }
.case-logo { width: 40px; height: 40px; border-radius: 10px; }

.tabs { display: inline-flex; align-self: flex-start; gap: 2px; padding: 3px; border-radius: 999px; background: var(--bg-soft); }
.tabs button { border: 0; background: transparent; padding: 7px 14px; border-radius: 999px; font-size: 14px; font-weight: 500; color: var(--muted); cursor: pointer; transition: color .15s, background-color .15s; }
.tabs button:hover { color: var(--text); }
.tabs button[aria-selected="true"] { background: var(--bg); color: var(--text); box-shadow: 0 1px 3px rgba(16, 24, 40, .12); }
.tab-panels { min-height: 96px; }
.tab-panels p { color: var(--muted); font-size: 16px; max-width: 34em; }

.tags { display: flex; flex-wrap: wrap; gap: 6px; }
.tags li { font-size: 13px; padding: 4px 10px; border-radius: 999px; border: 1px solid var(--stroke); color: var(--muted); }

.case-art {
  background: radial-gradient(70% 60% at 50% 35%, #1b2a4a 0%, var(--dark) 70%);
  display: flex; justify-content: center; align-items: flex-end; padding: 56px 24px 0; min-height: 560px;
}
.case-art { position: relative; overflow: hidden; }
.device-case { width: 280px; height: 540px; background: #2a2c31; box-shadow: 0 40px 80px -20px rgba(0, 0, 0, .6); position: relative; z-index: 1; transform: translateX(70px); }
.device-back { position: absolute; z-index: 0; left: 50%; bottom: 0; width: 240px; height: 470px; transform: translateX(-210px); opacity: .9; }
.works { display: flex; flex-direction: column; gap: 12px; padding-top: 4px; }
.works > span { font-size: 13px; color: var(--muted); }
.works ul { display: flex; flex-wrap: wrap; align-items: center; gap: 14px 28px; }
.works img { height: 20px; width: auto; opacity: .7; filter: grayscale(1); transition: opacity .15s; }
.works img:hover { opacity: 1; }
.works .lg-apple { height: 28px; }
.works .lg-coros { height: 17px; }
.works .lg-polar { height: 14px; }

.next-case {
  margin-top: 16px; display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 20px;
  padding: 28px clamp(24px, 4vw, 40px); border: 1px dashed #cfd4dc; border-radius: var(--r-xl);
  text-decoration: none; background: var(--bg); transition: border-color .15s;
}
.next-case:hover { border-color: var(--blue); }
.next-title { font-size: clamp(20px, 2.2vw, 26px); font-weight: 600; letter-spacing: -0.025em; margin-top: 4px; }

/* ---------- metrics band ---------- */
.metrics-band { background: var(--dark); color: var(--dark-text); padding: var(--section) 0; }
.metrics-head { display: flex; flex-wrap: wrap; justify-content: space-between; align-items: flex-end; gap: 16px 48px; margin-bottom: clamp(40px, 5vw, 64px); }
.metrics-head .h2 { max-width: 14em; }
.metrics-head p { color: var(--dark-muted); }
.stats { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 24px; }
.stats div { display: flex; flex-direction: column; gap: 8px; padding-left: 20px; border-left: 1px solid var(--dark-stroke); }
.stats dd { order: -1; font-size: clamp(44px, 5.4vw, 64px); font-weight: 600; letter-spacing: -0.045em; line-height: 1; font-variant-numeric: tabular-nums; }
.stats dt { font-size: 14px; color: var(--dark-muted); }

/* ---------- process ---------- */
.process { display: grid; grid-template-columns: 320px minmax(0, 1fr); gap: clamp(24px, 4vw, 48px); align-items: start; }
.steps { display: flex; flex-direction: column; gap: 4px; }
.steps button {
  display: flex; align-items: center; gap: 16px; width: 100%; text-align: left;
  padding: 16px 18px; border-radius: var(--r-md); border: 1px solid transparent; background: transparent; cursor: pointer;
  transition: background-color .15s, border-color .15s;
}
.steps button:hover { background: var(--bg-alt); }
.steps button[aria-selected="true"] { background: var(--bg-alt); border-color: var(--stroke); }
.step-n { font-family: var(--mono); font-size: 12px; color: var(--muted); }
.steps button[aria-selected="true"] .step-n { color: var(--blue); }
.step-t { display: flex; flex-direction: column; font-size: 17px; font-weight: 600; letter-spacing: -0.015em; line-height: 1.3; }
.step-t small { font-size: 13px; font-weight: 400; color: var(--muted); letter-spacing: 0; }
.step-panels { background: var(--bg-alt); border: 1px solid var(--stroke); border-radius: var(--r-xl); padding: clamp(24px, 4vw, 44px); display: flex; flex-direction: column; gap: 32px; }
.step-panel { display: flex; flex-direction: column; gap: 14px; min-height: 210px; }
.step-panel h3 { font-size: clamp(22px, 2.4vw, 28px); font-weight: 600; letter-spacing: -0.03em; line-height: 1.2; }
.step-panel p { color: var(--muted); max-width: 36em; }
.checks { display: flex; flex-direction: column; gap: 10px; font-size: 15px; }
.checks li { display: flex; align-items: center; gap: 10px; }
.checks svg { width: 16px; height: 16px; color: var(--blue); flex-shrink: 0; }

.timeline { display: flex; flex-direction: column; gap: 8px; padding-top: 24px; border-top: 1px solid var(--stroke); font-size: 13px; }
.tl-row { display: grid; grid-template-columns: 92px 1fr; align-items: center; gap: 12px; color: var(--muted); }
.tl-row i {
  display: block; height: 10px; border-radius: 5px; background: #d5dae2;
  margin-left: calc(var(--s) / 8 * 100%); width: calc((var(--e) - var(--s)) / 8 * 100%);
  transition: background-color .2s;
}
.tl-row.on { color: var(--text); font-weight: 500; }
.tl-row.on i { background: var(--blue); }
.tl-axis { display: flex; justify-content: space-between; margin-left: 104px; font-family: var(--mono); font-size: 11px; color: var(--muted); }

/* ---------- plans ---------- */
.plans { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 16px; align-items: stretch; }
.plan { background: var(--bg); border: 1px solid var(--stroke); border-radius: var(--r-xl); padding: 28px; display: flex; flex-direction: column; gap: 16px; }
.plan h3 { font-size: 20px; font-weight: 600; letter-spacing: -0.02em; }
.plan > p { color: var(--muted); font-size: 15px; }
.plan .plan-meta { color: var(--text); font-weight: 500; font-size: 14px; margin-top: -10px; }
.plan .btn { margin: 4px 0 8px; }
.plan .checks { border-top: 1px solid var(--stroke); padding-top: 20px; }
.plan-main { background: var(--dark); border-color: var(--dark); color: var(--dark-text); }
.plan-main > p { color: var(--dark-muted); }
.plan-main .plan-meta { color: var(--dark-text); }
.plan-main .checks { border-color: var(--dark-stroke); }
.plan-main .checks svg { color: #7aa5ff; }
.plan-top { display: flex; justify-content: space-between; align-items: center; gap: 12px; }
.badge { font-size: 12px; font-weight: 600; padding: 4px 10px; border-radius: 999px; background: var(--blue); color: #fff; }

/* ---------- faq ---------- */
.faq-grid { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.5fr); gap: clamp(32px, 6vw, 96px); align-items: start; }
.faq { border-top: 1px solid var(--stroke); }
.faq details { border-bottom: 1px solid var(--stroke); }
.faq summary {
  list-style: none; cursor: pointer; display: flex; justify-content: space-between; align-items: center; gap: 16px;
  padding: 22px 0; font-size: 18px; font-weight: 500; letter-spacing: -0.015em;
}
.faq summary::-webkit-details-marker { display: none; }
.faq summary svg { width: 18px; height: 18px; color: var(--muted); flex-shrink: 0; transition: transform .2s; }
.faq details[open] summary svg { transform: rotate(45deg); }
.faq details p { padding: 0 40px 22px 0; color: var(--muted); }

/* ---------- closing CTA ---------- */
.cta-band { background: var(--dark); color: var(--dark-text); padding: var(--section) 0; position: relative; overflow: hidden; }
.cta-band::before {
  content: ""; position: absolute; inset: 0; pointer-events: none;
  background-image:
    linear-gradient(to right, rgba(255, 255, 255, .05) 1px, transparent 1px),
    linear-gradient(to bottom, rgba(255, 255, 255, .05) 1px, transparent 1px);
  background-size: 64px 64px;
  -webkit-mask-image: radial-gradient(ellipse 50% 70% at 20% 30%, #000, transparent 70%);
  mask-image: radial-gradient(ellipse 50% 70% at 20% 30%, #000, transparent 70%);
}
.cta-in { position: relative; display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: clamp(40px, 6vw, 80px); align-items: center; }
.cta-copy { display: flex; flex-direction: column; gap: 24px; }
.cta-copy > p { color: var(--dark-muted); font-size: 18px; max-width: 30em; }
.person { display: flex; align-items: center; gap: 14px; padding-top: 24px; border-top: 1px solid var(--dark-stroke); }
.person b { display: block; font-weight: 600; }
.person span { font-size: 14px; color: var(--dark-muted); }
.avatar { width: 48px; height: 48px; border-radius: 50%; background: var(--blue); color: #fff; display: grid; place-items: center; font-weight: 600; font-size: 15px; flex-shrink: 0; }
.mail-row { display: flex; align-items: center; gap: 10px; }
.mail-row a { font-size: 18px; font-weight: 500; color: var(--dark-text); text-decoration: none; }
.mail-row a:hover { text-decoration: underline; text-underline-offset: 3px; }
.copy { border: 1px solid var(--dark-stroke); background: var(--dark-3); color: var(--dark-muted); font-size: 12px; font-weight: 500; padding: 5px 10px; border-radius: 6px; cursor: pointer; }
.copy:hover { color: var(--dark-text); }

.form {
  background: var(--dark-2); border: 1px solid var(--dark-stroke); border-radius: var(--r-xl);
  padding: clamp(24px, 3vw, 36px); display: grid; grid-template-columns: 1fr 1fr; gap: 16px;
}
.field { display: flex; flex-direction: column; gap: 6px; min-width: 0; }
.field-full { grid-column: 1 / -1; }
.field label { font-size: 14px; font-weight: 500; color: var(--dark-text); }
.field input, .field select, .field textarea {
  width: 100%; background: var(--dark); color: var(--dark-text);
  border: 1px solid #2c2f35; border-radius: var(--r-sm); padding: 11px 14px; font-size: 15px;
  transition: border-color .15s, box-shadow .15s;
}
.field textarea { resize: vertical; min-height: 112px; }
.field input::placeholder, .field textarea::placeholder { color: #6b717b; }
.field input:focus, .field select:focus, .field textarea:focus { outline: none; border-color: var(--blue); box-shadow: 0 0 0 3px rgba(38, 109, 240, .3); }
.field [aria-invalid="true"] { border-color: #f0606b; }
.form .btn { margin-top: 4px; }
.form-note { font-size: 13px; color: var(--dark-muted); text-align: center; }
.form-note.ok { color: #6ee7a8; }
.form-note.err { color: #ff9aa2; }

/* ---------- footer ---------- */
.footer { background: var(--dark); color: var(--dark-muted); border-top: 1px solid var(--dark-stroke); padding: 64px 0 32px; font-size: 14px; }
.footer-top { display: grid; grid-template-columns: 1.6fr repeat(3, 1fr); gap: 32px; }
.footer-brand { display: flex; flex-direction: column; gap: 14px; max-width: 280px; }
.footer-col { display: flex; flex-direction: column; gap: 10px; }
.footer-col p { color: var(--dark-text); font-weight: 500; }
.footer a { color: var(--dark-muted); text-decoration: none; }
.footer a:hover { color: var(--dark-text); }
.footer .logo-light { color: var(--dark-text); }
.footer-base { margin-top: 56px; padding-top: 24px; border-top: 1px solid var(--dark-stroke); display: flex; justify-content: space-between; gap: 16px; font-size: 13px; }

/* ---------- reveal ---------- */
@supports (animation-timeline: view()) {
  @media (prefers-reduced-motion: no-preference) {
    .tile, .case, .plan, .stats div, .step-panels, .next-case {
      animation: rise linear both;
      animation-timeline: view();
      animation-range: entry 0% entry 35%;
    }
  }
}
@keyframes rise { from { opacity: 0; transform: translateY(24px); } }

/* ---------- responsive ---------- */
@media (max-width: 1024px) {
  .bento { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .tile-wide { grid-column: 1 / -1; }
  .process { grid-template-columns: minmax(0, 1fr); }
  .steps { flex-direction: row; overflow-x: auto; scrollbar-width: none; margin: 0 calc(-1 * var(--gutter)); padding: 0 var(--gutter) 4px; }
  .steps::-webkit-scrollbar { display: none; }
  .steps button { width: auto; flex-shrink: 0; }
  .stats { grid-template-columns: repeat(2, minmax(0, 1fr)); row-gap: 40px; }
  .footer-top { grid-template-columns: 1fr 1fr; }
}

@media (max-width: 880px) {
  .nav {
    position: fixed; top: var(--header-h); left: 0; right: 0; margin: 0;
    flex-direction: column; align-items: stretch; gap: 0;
    background: var(--bg); border-bottom: 1px solid var(--stroke);
    padding: 8px var(--gutter) 20px;
    box-shadow: 0 24px 48px -24px rgba(16, 24, 40, .2);
    transform: translateY(-8px); opacity: 0; visibility: hidden;
    transition: opacity .2s, transform .2s, visibility .2s;
  }
  .nav.open { transform: none; opacity: 1; visibility: visible; }
  .nav > a { padding: 14px 4px; font-size: 16px; color: var(--text); border-bottom: 1px solid var(--stroke); border-radius: 0; }
  .nav > a:hover { background: none; }
  .nav-cta { margin: 16px 0 0; flex-direction: column; align-items: stretch; }
  .nav-cta .btn { height: 44px; }
  .nav-quiet { text-align: center; }
  .menu-btn { display: block; }

  .case, .cta-in, .faq-grid { grid-template-columns: minmax(0, 1fr); }
  .case-art { min-height: 520px; }
  .device-back { display: none; }
  .device-case { transform: none; }
  .plans { grid-template-columns: minmax(0, 1fr); }
  .device-side, .chip-b { display: none; }
  .device-main { height: 84%; }
  .chip-a { left: 50%; top: 18px; transform: translateX(-50%); }
}

@media (max-width: 600px) {
  :root { --gutter: 16px; }
  .bento { grid-template-columns: minmax(0, 1fr); }
  .tile { min-height: 0; }
  .art-proto { gap: 8px; }
  .mini-phone { width: 76px; height: 144px; }
  .flow-arrow svg { width: 14px; height: 14px; }
  .form { grid-template-columns: minmax(0, 1fr); }
  .stage { height: 500px; }
  .device-main { width: 260px; }
  .footer-top { grid-template-columns: minmax(0, 1fr); }
  .footer-base { flex-direction: column; }
  .faq details p { padding-right: 0; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .marquee-track { animation: none; flex-wrap: wrap; justify-content: center; width: auto; row-gap: 12px; }
  .marquee-track span[aria-hidden="true"] { display: none; }
  .marquee { -webkit-mask-image: none; mask-image: none; }
  * { transition-duration: .01ms !important; }
}
