/* ==========================================================================
   CodePilot AI - styles.css
   Source Code Matters Pvt. Ltd.
   Plain CSS, no build step. Sections:
   1 Tokens  2 Base  3 Layout  4 Buttons  5 Header  6 Hero  7 Mock UI
   8 Code  9 Sections  10 Architecture  11 Inner pages  12 Contact
   13 Footer  14 Motion  15 Responsive
   ========================================================================== */

/* 1 Tokens ---------------------------------------------------------------- */
:root {
  --ink: #1a1033;
  --ink-2: #463c68;
  --muted: #6a6387;
  --faint: #9a93b5;
  --line: #e6e0f4;
  --line-soft: #f0ecf9;
  --white: #fff;
  --mist: #f7f4ff;
  --mist-2: #efe9ff;

  --violet: #6a38e0;
  --violet-hover: #5827c9;
  --violet-deep: #2c1670;
  --violet-night: #160b3a;
  --violet-300: #b7a0f4;
  --violet-200: #d8cbfa;
  --violet-100: #ebe4fe;

  --ok: #0f9b78;
  --ok-bg: #e2f6ef;
  --warn: #b86e00;
  --warn-bg: #fdf0da;
  --bad: #d13a5c;
  --bad-bg: #fde7ed;
  --info: #2f6be0;
  --info-bg: #e5edfd;

  --font-display: "Bricolage Grotesque", "Segoe UI", system-ui, sans-serif;
  --font-body: "Figtree", "Segoe UI", system-ui, -apple-system, sans-serif;
  --font-mono: "JetBrains Mono", ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;

  --r-sm: 8px;
  --r-md: 12px;
  --r-lg: 20px;

  --shadow-sm: 0 1px 2px rgba(42, 20, 112, .06), 0 2px 8px rgba(42, 20, 112, .05);
  --shadow-md: 0 10px 30px rgba(42, 20, 112, .10);
  --shadow-lg: 0 30px 80px -24px rgba(42, 20, 112, .38), 0 8px 24px rgba(42, 20, 112, .08);

  --container: 1200px;
  --header-h: 72px;
}

/* 2 Base ------------------------------------------------------------------ */
*, *::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;
  font-family: var(--font-body);
  font-size: 1.0625rem;
  line-height: 1.65;
  color: var(--ink-2);
  background: var(--white);
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}
body.nav-open { overflow: hidden; }
img, svg { display: block; max-width: 100%; }
a { color: var(--violet); text-decoration: none; }
a:hover { color: var(--violet-hover); }
h1, h2, h3, h4, h5 {
  font-family: var(--font-display);
  color: var(--ink);
  margin: 0;
  font-weight: 650;
  letter-spacing: -.02em;
  line-height: 1.12;
  text-wrap: balance;
}
h1 { font-size: clamp(2.5rem, 5.2vw, 4.1rem); letter-spacing: -.035em; line-height: 1.03; font-weight: 700; }
h2 { font-size: clamp(1.85rem, 3.4vw, 2.75rem); letter-spacing: -.03em; }
h3 { font-size: 1.25rem; }
h4 { font-size: 1.05rem; }
p { margin: 0 0 1em; text-wrap: pretty; }
ul, ol { margin: 0; }
code {
  font-family: var(--font-mono);
  font-size: .86em;
  background: var(--mist-2);
  color: var(--violet-deep);
  padding: 1px 6px;
  border-radius: 5px;
}
address { font-style: normal; }
:focus-visible { outline: 3px solid rgba(106, 56, 224, .55); outline-offset: 2px; border-radius: 4px; }
.skip-link {
  position: absolute; left: 16px; top: -60px; z-index: 100;
  background: var(--violet); color: #fff; padding: 10px 16px; border-radius: 8px;
}
.skip-link:focus { top: 12px; color: #fff; }

.i { width: 20px; height: 20px; stroke: currentColor; fill: none; stroke-width: 1.75; stroke-linecap: round; stroke-linejoin: round; flex: none; }

/* 3 Layout ---------------------------------------------------------------- */
.container { width: min(100% - 48px, var(--container)); margin-inline: auto; }
.section { padding-block: clamp(64px, 9vw, 116px); }
.section-mist { background: var(--mist); }
.section-head { max-width: 760px; margin-bottom: clamp(32px, 5vw, 56px); }
.section-head .lead { margin-top: 16px; margin-bottom: 0; }
.split-head { max-width: none; display: grid; grid-template-columns: 1fr 1fr; gap: 48px; align-items: start; }
.split-head .lead { margin-top: 0; }
.lead { font-size: clamp(1.08rem, 1.6vw, 1.25rem); line-height: 1.6; color: var(--ink-2); max-width: 62ch; }
.two-col { display: grid; grid-template-columns: minmax(0, 5fr) minmax(0, 7fr); gap: clamp(32px, 6vw, 80px); align-items: start; }
.two-col-rev { grid-template-columns: minmax(0, 7fr) minmax(0, 5fr); }
.col-copy .lead { margin-top: 16px; }
.col-copy .btn { margin-top: 12px; }
.two-col > *, .hero-grid > *, .contact-grid > *, .flow-grid > *, .case > * { min-width: 0; }
.sticky { position: sticky; top: calc(var(--header-h) + 32px); }
.hint { font-size: .9rem; color: var(--muted); margin-top: 20px; }
.section-more { margin-top: 40px; }
.fine-print { font-size: .9rem; color: var(--muted); margin-top: 16px; }
.muted-p { color: var(--muted); font-size: .92rem; margin: 0; }

.checks { list-style: none; padding: 0; margin: 24px 0 0; display: grid; gap: 12px; }
.checks li { display: flex; gap: 12px; align-items: flex-start; }
.checks .i { width: 22px; height: 22px; padding: 4px; margin-top: 2px; border-radius: 50%; background: var(--violet-100); color: var(--violet); stroke-width: 2.6; }

.pill {
  display: inline-flex; align-items: center; gap: 10px;
  padding: 6px 14px 6px 12px; margin: 0 0 24px;
  background: var(--violet-100); color: var(--violet-deep);
  border-radius: 999px; font-size: .9rem; font-weight: 600;
}
.pill-dark { background: rgba(255, 255, 255, .1); color: #e2d8ff; }

/* 4 Buttons --------------------------------------------------------------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  font: 600 1rem/1 var(--font-body);
  padding: 13px 22px; border-radius: 10px; border: 1px solid transparent;
  cursor: pointer; transition: background-color .18s, border-color .18s, box-shadow .18s, color .18s;
  white-space: nowrap;
}
.btn-lg { padding: 15px 24px; font-size: 1.05rem; }
.btn-block { width: 100%; }
.btn-primary { background: var(--violet); color: #fff; box-shadow: 0 6px 18px -6px rgba(106, 56, 224, .65); }
.btn-primary:hover { background: var(--violet-hover); color: #fff; box-shadow: 0 8px 22px -6px rgba(106, 56, 224, .8); }
.btn-ghost { background: #fff; color: var(--violet-deep); border-color: var(--line); }
.btn-ghost:hover { border-color: var(--violet-300); color: var(--violet-deep); background: var(--mist); }
.btn-light { background: #fff; color: var(--violet-deep); }
.btn-light:hover { background: var(--violet-100); color: var(--violet-deep); }
.btn-row { display: flex; flex-wrap: wrap; gap: 12px; }

/* 5 Header ---------------------------------------------------------------- */
.site-header {
  position: sticky; top: 0; z-index: 50;
  background: rgba(255, 255, 255, .84);
  backdrop-filter: saturate(1.5) blur(14px);
  -webkit-backdrop-filter: saturate(1.5) blur(14px);
  border-bottom: 1px solid transparent;
  transition: border-color .2s, box-shadow .2s;
}
.site-header.is-scrolled { border-bottom-color: var(--line); box-shadow: 0 6px 24px -14px rgba(42, 20, 112, .25); }
.nav { display: flex; align-items: center; justify-content: space-between; gap: 24px; height: var(--header-h); }
.logo { display: inline-flex; align-items: center; gap: 10px; color: var(--ink); }
.logo:hover { color: var(--ink); }
.logo-mark { width: 34px; height: 34px; }
.logo-word { font-family: var(--font-display); font-weight: 700; font-size: 1.32rem; letter-spacing: -.03em; }
.logo-word span { color: var(--violet); font-weight: 600; }
.logo-light, .logo-light:hover { color: #fff; }
.logo-light .logo-word span { color: var(--violet-300); }
.nav-links { list-style: none; display: flex; align-items: center; gap: 2px; padding: 0; margin: 0; }
.nav-links a:not(.btn) { display: block; padding: 9px 13px; border-radius: 8px; color: var(--ink-2); font-weight: 500; font-size: .98rem; }
.nav-links a:not(.btn):hover { color: var(--violet); background: var(--mist); }
.nav-links a[aria-current="page"] { color: var(--violet); background: var(--violet-100); font-weight: 600; }
.nav-home { display: none; }
.nav-cta { margin-left: 12px; }
.nav-cta .btn { padding: 11px 18px; font-size: .95rem; }
.nav-toggle {
  display: none; width: 44px; height: 44px; place-items: center;
  border: 1px solid var(--line); background: #fff; border-radius: 10px; color: var(--ink); cursor: pointer;
}
.nav-toggle .shut { display: none; }
.nav-toggle[aria-expanded="true"] .open { display: none; }
.nav-toggle[aria-expanded="true"] .shut { display: block; }

/* 6 Hero ------------------------------------------------------------------ */
.hero {
  position: relative; overflow: hidden;
  padding: clamp(48px, 7vw, 88px) 0 clamp(64px, 8vw, 104px);
  background:
    radial-gradient(900px 480px at 88% -8%, var(--violet-100), transparent 62%),
    radial-gradient(640px 380px at -8% 30%, #f4eeff, transparent 62%),
    #fff;
}
.hero::before {
  content: ""; position: absolute; inset: 0; pointer-events: none;
  background-image: radial-gradient(rgba(106, 56, 224, .16) 1px, transparent 1.2px);
  background-size: 26px 26px;
  -webkit-mask-image: linear-gradient(115deg, #000 0%, transparent 55%);
  mask-image: linear-gradient(115deg, #000 0%, transparent 55%);
}
.hero-grid { position: relative; display: grid; grid-template-columns: minmax(0, 4.6fr) minmax(0, 7.4fr); gap: clamp(32px, 4vw, 56px); align-items: center; }
.hero-copy .lead { margin: 22px 0 32px; }
.hero-note { margin: 22px 0 0; font-size: .95rem; color: var(--muted); }
.hero-mock { min-width: 0; }
.hero-mock .mock { transform-origin: 20% 100%; }

.strip { border-bottom: 1px solid var(--line-soft); background: #fff; }
.strip-inner { display: flex; align-items: center; gap: 28px; padding-block: 22px; flex-wrap: wrap; }
.strip-inner p { margin: 0; font-weight: 600; color: var(--ink); }
.lang-list { list-style: none; margin: 0; padding: 0; display: flex; flex-wrap: wrap; gap: 8px; }
.lang-list li { padding: 4px 12px; border: 1px solid var(--line); border-radius: 999px; font-size: .9rem; color: var(--ink-2); background: var(--mist); }

/* 7 Mock UI --------------------------------------------------------------- */
.mock {
  background: #fff; border: 1px solid var(--line); border-radius: 16px;
  box-shadow: var(--shadow-lg); overflow: hidden;
  font-size: 13px; line-height: 1.5; color: var(--ink-2);
}
.mock p { margin: 0 0 8px; }
.mock-bar { display: flex; align-items: center; gap: 10px; padding: 10px 14px; background: #faf8ff; border-bottom: 1px solid var(--line); }
.dots { display: flex; gap: 6px; flex: none; }
.dots i { width: 10px; height: 10px; border-radius: 50%; background: #ddd5f3; }
.mock-title { font-size: 12px; color: var(--muted); min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.mock-status { margin-left: auto; display: flex; align-items: center; gap: 7px; font-size: 11.5px; color: var(--ok); font-weight: 600; white-space: nowrap; }
.pulse { width: 8px; height: 8px; border-radius: 50%; background: var(--ok); flex: none; animation: pulse 2.2s infinite; }

.app { display: grid; grid-template-columns: 186px minmax(0, 1fr); }
.side { background: var(--violet-night); color: #cdc3f2; padding: 14px 10px; }
.side-repo { display: flex; gap: 10px; align-items: center; padding: 8px; margin-bottom: 12px; border-radius: 10px; background: rgba(255, 255, 255, .07); }
.avatar { width: 30px; height: 30px; border-radius: 8px; background: linear-gradient(135deg, #8b63f0, #4a24a8); color: #fff; display: grid; place-items: center; font-weight: 700; flex: none; }
.side-repo b { display: block; color: #fff; font-size: 12.5px; line-height: 1.2; }
.side-repo small { color: #a89bd8; font-size: 11px; }
.side-nav { list-style: none; margin: 0; padding: 0; display: grid; gap: 2px; }
.side-nav li { display: flex; align-items: center; gap: 9px; padding: 8px 10px; border-radius: 8px; font-size: 12.5px; }
.side-nav .i { width: 16px; height: 16px; }
.side-nav li.is-active { background: rgba(139, 99, 240, .35); color: #fff; font-weight: 600; }
.side-nav em { margin-left: auto; font-style: normal; font-size: 11px; background: var(--violet); color: #fff; padding: 0 7px; border-radius: 99px; }
.app .main { padding: 14px; background: #fbfaff; display: grid; gap: 12px; min-width: 0; align-content: start; }
.stat-row { display: grid; grid-template-columns: repeat(4, 1fr); gap: 10px; }
.stat { background: #fff; border: 1px solid var(--line); border-radius: 10px; padding: 10px 12px; }
.stat > span { display: block; font-size: 11.5px; color: var(--muted); }
.stat b { display: block; font-family: var(--font-display); font-size: 1.5rem; color: var(--ink); line-height: 1.2; letter-spacing: -.02em; }
.stat small { font-size: 11px; color: var(--muted); }
.stat small.up { color: var(--ok); font-weight: 600; }
.split { display: grid; grid-template-columns: 1.15fr 1fr; gap: 12px; }
.panel { background: #fff; border: 1px solid var(--line); border-radius: 10px; padding: 12px; min-width: 0; }
.panel-h { display: flex; justify-content: space-between; align-items: center; gap: 8px; font-weight: 600; color: var(--ink); font-size: 12.5px; margin-bottom: 10px; }
.muted-s { font-weight: 500; font-size: 11.5px; color: var(--muted); }
.panel-wide { grid-column: 1 / -1; }
.ask-input { display: flex; align-items: center; gap: 8px; padding: 8px 10px; border: 1px solid var(--violet-200); border-radius: 9px; background: #fff; color: var(--ink); font-weight: 500; box-shadow: 0 0 0 3px rgba(106, 56, 224, .07); }
.ask-input .i { width: 15px; height: 15px; color: var(--violet); }
.ask-answer { margin: 10px 0 !important; color: var(--ink-2); }
.file-row { display: flex; flex-wrap: wrap; gap: 6px; }
.file { font-family: var(--font-mono); font-size: 11.5px; background: #fff; border: 1px solid var(--line); border-radius: 6px; padding: 2px 7px; color: var(--violet-deep); }
.queue { list-style: none; margin: 0; padding: 0; display: grid; }
.queue li { display: flex; justify-content: space-between; align-items: center; gap: 8px; padding: 7px 0; border-bottom: 1px solid var(--line-soft); }
.queue li:last-child { border-bottom: 0; }
.queue li > span:first-child { min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; color: var(--ink); }

.chip { display: inline-flex; align-items: center; gap: 6px; padding: 2px 9px; border-radius: 999px; font-size: 11.5px; font-weight: 600; background: var(--mist-2); color: var(--violet-deep); white-space: nowrap; }
.chip .i { width: 13px; height: 13px; stroke-width: 2.6; }
.chip-bad { background: var(--bad-bg); color: var(--bad); }
.chip-warn { background: var(--warn-bg); color: var(--warn); }
.chip-ok { background: var(--ok-bg); color: var(--ok); }
.chip-info { background: var(--info-bg); color: var(--info); }
.chip-vio { background: var(--violet-100); color: var(--violet-deep); }

.graph { width: 100%; height: auto; }
.graph-mini { height: 132px; }
.graph-mini .g-node rect { fill: var(--violet-100); stroke: var(--violet-300); }
.graph-mini .g-hot rect { fill: var(--violet); stroke: var(--violet); }
.graph-mini .g-edges path { stroke: var(--violet-300); stroke-width: 2.6; }
.g-edges path { fill: none; stroke: #b7a3ee; stroke-width: 1.8; }
.g-node rect { fill: #fff; stroke: #c9bbf3; stroke-width: 1.5; }
.g-node text { font-family: var(--font-mono); font-size: 12.5px; fill: var(--violet-deep); }
.g-hot rect { fill: #f3ecff; stroke: var(--violet); stroke-width: 2; }
.panel-map { padding-bottom: 6px; }

/* Codebase Q&A window */
.qa-body { display: grid; grid-template-columns: minmax(0, 1.05fr) minmax(0, 1fr); min-height: 470px; }
.qa-chat { padding: 24px; border-right: 1px solid var(--line); display: flex; flex-direction: column; gap: 18px; font-size: 14px; min-width: 0; }
.bubble-user { align-self: flex-end; max-width: 92%; background: var(--violet); color: #fff; padding: 10px 16px; border-radius: 14px 14px 4px 14px; font-weight: 500; }
.caret { display: none; width: 2px; height: 1.05em; margin-left: 2px; background: #fff; vertical-align: text-bottom; animation: blink 1s steps(1) infinite; }
.js .caret { display: inline-block; }
.caret.is-done { display: none !important; }
.answer-who { display: flex; align-items: center; gap: 8px; margin-bottom: 8px; color: var(--ink); }
.ai-avatar { width: 24px; height: 24px; border-radius: 7px; background: linear-gradient(135deg, #8b63f0, #4a24a8); color: #fff; display: grid; place-items: center; }
.ai-avatar .i { width: 14px; height: 14px; }
.answer p { margin: 0 0 10px; }
.qa-status { display: flex; align-items: center; gap: 8px; font-size: 12.5px; color: var(--muted); }
.qa-status .i { width: 15px; height: 15px; color: var(--violet); }
.answer-steps { margin: 0 0 14px; padding-left: 20px; display: grid; gap: 8px; }
.answer-steps li::marker { color: var(--violet); font-weight: 700; }
.sources { display: flex; flex-wrap: wrap; gap: 8px; margin-bottom: 12px; }
.src-tab { display: flex; flex-direction: column; align-items: flex-start; gap: 2px; background: #fff; border: 1px solid var(--line); border-radius: 10px; padding: 8px 10px; cursor: pointer; font: inherit; text-align: left; transition: border-color .15s, box-shadow .15s; }
.src-tab:hover { border-color: var(--violet-300); }
.src-tab .file { border: 0; padding: 0; font-weight: 500; }
.src-tab small { font-size: 11px; color: var(--muted); }
.src-tab[aria-selected="true"] { border-color: var(--violet); box-shadow: 0 0 0 3px rgba(106, 56, 224, .14); }
.followups { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; }
.followups > span { font-size: 12px; color: var(--muted); }
.chip-btn { font: 500 12px var(--font-body); padding: 5px 11px; border: 1px solid var(--line); border-radius: 999px; background: var(--mist); color: var(--violet-deep); }
.qa-preview { background: #140b33; display: flex; flex-direction: column; min-width: 0; }
.preview-panel { display: flex; flex-direction: column; flex: 1; min-width: 0; }
.preview-panel[hidden] { display: none; }
.preview-head { display: flex; align-items: center; gap: 8px; padding: 10px 14px; background: #1d1145; color: #cfc3f5; font-family: var(--font-mono); font-size: 12px; }
.preview-head .i { width: 15px; height: 15px; }
.qa-preview .code { border-radius: 0; flex: 1; margin: 0; }

/* Code review window */
.review-head { display: flex; justify-content: space-between; align-items: center; gap: 12px; padding: 14px 16px; border-bottom: 1px solid var(--line); flex-wrap: wrap; }
.review-head b { display: block; color: var(--ink); font-size: 14.5px; }
.review-head small { color: var(--muted); font-size: 12px; }
.filters { display: flex; flex-wrap: wrap; gap: 8px; padding: 12px 16px; border-bottom: 1px solid var(--line); background: #fbfaff; }
.filter { font: 600 12.5px var(--font-body); border: 1px solid var(--line); background: #fff; color: var(--ink-2); padding: 5px 12px; border-radius: 999px; cursor: pointer; transition: background-color .15s, color .15s, border-color .15s; }
.filter:hover { border-color: var(--violet-300); }
.filter em { font-style: normal; color: var(--muted); margin-left: 4px; }
.filter.is-active { background: var(--violet); border-color: var(--violet); color: #fff; }
.filter.is-active em { color: rgba(255, 255, 255, .8); }
.review-diff { padding: 16px 16px 0; }
.review-diff .preview-head { border-radius: 10px 10px 0 0; }
.review-diff .code { border-radius: 0 0 10px 10px; }
.findings { list-style: none; margin: 0; padding: 16px; display: grid; gap: 12px; }
.finding { --sevc: var(--violet); border: 1px solid var(--line); border-left: 4px solid var(--sevc); border-radius: 10px; padding: 12px 14px; background: #fff; }
.finding[hidden] { display: none; }
.sev-bad { --sevc: var(--bad); }
.sev-warn { --sevc: var(--warn); }
.sev-info { --sevc: var(--info); }
.sev-vio { --sevc: var(--violet); }
.finding-h { display: flex; justify-content: space-between; align-items: center; gap: 8px; margin-bottom: 6px; }
.sev { display: inline-flex; align-items: center; gap: 7px; font-size: 12.5px; font-weight: 700; color: var(--sevc); }
.sev .i { width: 16px; height: 16px; }
.finding h4 { font-size: 15px; margin-bottom: 2px; }
.finding p { font-size: 13px; margin: 0 0 8px; }
.loc { font-family: var(--font-mono); font-size: 11.5px !important; color: var(--muted); }
.finding .code { margin-top: 8px; }
.findings-static { background: #fbfaff; }

/* Documentation window */
.doc-tabs { display: flex; gap: 2px; padding: 8px 12px 0; background: #faf8ff; border-bottom: 1px solid var(--line); overflow-x: auto; }
.doc-tab { font: 600 13px var(--font-body); padding: 8px 12px; border: 0; background: none; color: var(--muted); cursor: pointer; border-bottom: 2px solid transparent; white-space: nowrap; }
.doc-tab:hover { color: var(--violet); }
.doc-tab[aria-selected="true"] { color: var(--violet); border-bottom-color: var(--violet); }
.doc-body { padding: 22px 24px; background: #fff; min-height: 360px; }
.docs .doc-body { min-height: 400px; }
.doc[hidden] { display: none; }
.doc h4 { font-size: 1.3rem; margin-bottom: 8px; }
.doc h5 { font-size: .95rem; margin: 18px 0 6px; }
.doc p { font-size: 13.5px; }
.doc ul, .doc ol { padding-left: 20px; display: grid; gap: 6px; font-size: 13.5px; margin: 8px 0 0; }
.doc-foot { display: flex; justify-content: space-between; align-items: center; gap: 12px; flex-wrap: wrap; padding: 12px 16px; border-top: 1px solid var(--line); background: #faf8ff; font-size: 12.5px; color: var(--muted); }
.doc-foot > span:first-child { display: inline-flex; align-items: center; gap: 8px; }
.doc-foot .i { width: 15px; height: 15px; color: var(--violet); }
.doc-actions { display: flex; gap: 6px; }
.table-wrap { overflow-x: auto; }
.doc-table { width: 100%; border-collapse: collapse; font-size: 13px; margin: 10px 0 4px; }
.doc-table code { white-space: nowrap; }
.doc-table th, .doc-table td { text-align: left; padding: 8px 10px; border-bottom: 1px solid var(--line); vertical-align: top; }
.doc-table th { background: var(--mist); color: var(--ink); font-weight: 600; }

/* Small mocks used on the Features page */
.mock-sm { box-shadow: var(--shadow-md); }
.mock-sm .doc-body { min-height: 0; }
.mini-chat { padding: 20px; display: grid; gap: 14px; font-size: 13.5px; }
.split-code { display: grid; grid-template-columns: minmax(0, 1fr); gap: 16px; padding: 16px 16px 12px; }
.split-code > * { min-width: 0; }
.split-code-b { padding: 0 16px 16px; }
.split-code-b .preview-head { border-radius: 10px 10px 0 0; }
.split-code-b .code { border-radius: 0 0 10px 10px; }
.suggest h5 { font-size: .95rem; margin-bottom: 10px; }
.suggest ul { list-style: none; padding: 0; margin: 0; display: grid; gap: 8px; font-size: 13px; }
.suggest li { display: flex; gap: 8px; align-items: flex-start; }
.suggest .i { width: 16px; height: 16px; margin-top: 3px; color: var(--ok); stroke-width: 2.4; }
.suggest li:nth-child(n+4) .i { color: var(--warn); }
.graph-wrap { padding: 16px 16px 4px; background: #fbfaff; }
.graph-note { display: flex; gap: 10px; align-items: flex-start; padding: 12px 16px; border-top: 1px solid var(--line); background: #fff; font-size: 13px; }
.graph-note .i { color: var(--warn); margin-top: 2px; width: 18px; height: 18px; }
.insights { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; padding: 16px; background: #fbfaff; }
.bars { display: flex; align-items: flex-end; gap: 10px; height: 110px; }
.bars span { flex: 1; height: var(--h); background: linear-gradient(180deg, var(--violet), var(--violet-300)); border-radius: 6px 6px 2px 2px; }
.hot-list { list-style: none; margin: 0; padding: 0; display: grid; gap: 10px; }
.hot-list li { display: grid; gap: 4px; }
.hot-list i { display: block; height: 7px; width: var(--w); background: var(--violet-200); border-radius: 99px; }
.hot-list li:first-child i { background: var(--violet); }

/* 8 Code ------------------------------------------------------------------ */
.code {
  font-family: var(--font-mono); font-size: 12.5px; line-height: 1.75;
  background: #140b33; color: #e4dcff; border-radius: 10px;
  padding: 12px 0; overflow-x: auto; margin: 0;
}
.code code { display: block; min-width: max-content; background: none; color: inherit; padding: 0; border-radius: 0; font-size: inherit; counter-reset: ln var(--c0, 0); }
.code .l { display: block; white-space: pre; padding-right: 16px; }
.code .l::before { counter-increment: ln; content: counter(ln); display: inline-block; width: 42px; padding-right: 14px; text-align: right; color: #6f63a6; user-select: none; }
.code .l.hl { background: rgba(139, 99, 240, .24); box-shadow: inset 3px 0 0 #a58bff; }
.code-sm { font-size: 12px; line-height: 1.7; }
.diff .l::before { content: none; }
.diff .l b { display: inline-block; width: 36px; padding-right: 10px; text-align: right; color: #6f63a6; font-weight: 400; user-select: none; }
.diff .l i { display: inline-block; width: 18px; font-style: normal; color: #8f84c4; user-select: none; }
.diff .l.add { background: rgba(60, 200, 150, .11); }
.diff .l.add i { color: #57d8a8; }
.diff .l.del { background: rgba(255, 100, 130, .12); }
.diff .l.del i { color: #ff8aa1; }
.diff .l.s-bad { box-shadow: inset 3px 0 0 #ff6b8b; }
.diff .l.s-warn { box-shadow: inset 3px 0 0 #ffb547; }
.diff .l.s-info { box-shadow: inset 3px 0 0 #6b9bff; }
.diff .l.s-vio { box-shadow: inset 3px 0 0 #a58bff; }
.tk-c { color: #8a7fbf; font-style: italic; }
.tk-s { color: #9be3c0; }
.tk-k { color: #c7a6ff; }
.tk-t { color: #7fd0ff; }
.tk-f { color: #ffd48a; }
.tk-n { color: #ff9db1; }

/* 9 Sections -------------------------------------------------------------- */
.band-dark {
  color: #d9d0f7;
  background: radial-gradient(700px 360px at 100% 0, rgba(139, 99, 240, .4), transparent 60%), linear-gradient(160deg, #2c1670, #1b0d4d);
}
.band-dark h2, .band-dark h3 { color: #fff; }
.band-dark .lead { color: #d9d0f7; }
.band-dark a { color: #fff; text-decoration: underline; text-decoration-color: rgba(255, 255, 255, .4); text-underline-offset: 3px; }
.band-night {
  color: #cfc5ee;
  background: radial-gradient(800px 420px at 0 0, rgba(106, 56, 224, .35), transparent 60%), linear-gradient(180deg, #150b38, #0f0729);
}
.band-night h2 { color: #fff; }
.band-night .lead { color: #cfc5ee; }
.band-night a { color: #fff; text-decoration: underline; text-decoration-color: rgba(255, 255, 255, .4); text-underline-offset: 3px; }
.band-link { margin: 40px 0 0; }

.steps { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(4, 1fr); gap: 0 32px; }
.step { position: relative; }
.step::before { content: ""; position: absolute; top: 15px; left: 0; right: -32px; height: 1px; background: rgba(255, 255, 255, .22); }
.step:last-child::before { right: 0; background: linear-gradient(90deg, rgba(255, 255, 255, .22), transparent); }
.step-n { position: relative; display: grid; place-items: center; width: 30px; height: 30px; border-radius: 50%; background: var(--violet); color: #fff; font-weight: 700; font-size: 14px; margin-bottom: 20px; box-shadow: 0 0 0 5px rgba(139, 99, 240, .25); }
.step h3 { margin-bottom: 8px; }
.step p { font-size: 1rem; }
.step-code { font-family: var(--font-mono); font-size: 12.5px; line-height: 1.6; background: rgba(255, 255, 255, .07); border: 1px solid rgba(255, 255, 255, .13); border-radius: 10px; padding: 10px 12px; color: #dcd1ff; margin: 16px 0 0; white-space: pre-wrap; }

.bento { display: grid; grid-template-columns: repeat(6, 1fr); gap: 18px; }
.b { border-radius: var(--r-lg); padding: 28px; display: flex; flex-direction: column; gap: 4px; }
.b h3 { margin: 14px 0 8px; }
.b p { color: var(--ink-2); margin: 0; }
.b-lg { grid-column: span 3; }
.b-sm { grid-column: span 2; background: #fff; border: 1px solid var(--line); }
.b-tint { background: linear-gradient(160deg, var(--mist), var(--violet-100)); border: 1px solid var(--violet-100); }
.b-icon { width: 44px; height: 44px; border-radius: 12px; background: #fff; color: var(--violet); display: grid; place-items: center; box-shadow: var(--shadow-sm); }
.b-sm .b-icon { background: var(--violet-100); box-shadow: none; }
.b-icon-light { background: rgba(255, 255, 255, .16); color: #fff; box-shadow: none; }
.b-visual { margin-top: auto; padding-top: 22px; display: grid; gap: 10px; }
.b-visual .ask-input { font-size: 13.5px; }
.b-chips { display: flex; flex-wrap: wrap; gap: 8px; }
.b-chips .chip { font-size: 12.5px; padding: 4px 11px; background: #fff; }
.b-chips .chip-bad { background: var(--bad-bg); }
.b-chips .chip-warn { background: var(--warn-bg); }
.b-chips .chip-info { background: var(--info-bg); }
.b-wide { grid-column: 1 / -1; flex-direction: row; align-items: center; justify-content: space-between; gap: 32px; color: #e9e1ff; background: linear-gradient(120deg, #4b25b4, #2c1670); }
.b-wide h3 { color: #fff; }
.b-wide p { color: #e0d6ff; max-width: 60ch; }

.uc-list { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: 1fr 1fr; gap: 0 64px; }
.uc-item { display: flex; gap: 18px; padding: 28px 0; border-top: 1px solid var(--line); }
.uc-item h3 { margin-bottom: 6px; }
.uc-item p { margin: 0; }
.uc-icon, .mod-icon { flex: none; width: 44px; height: 44px; border-radius: 12px; background: var(--violet-100); color: var(--violet); display: grid; place-items: center; }

.section-cta { padding-top: 0; }
.cta-panel {
  display: flex; align-items: center; justify-content: space-between; gap: 32px; flex-wrap: wrap;
  padding: clamp(32px, 5vw, 60px); border-radius: 26px; color: #ece4ff;
  background: radial-gradient(620px 320px at 92% 0, rgba(255, 255, 255, .2), transparent 62%), linear-gradient(135deg, #7b4cf0, #3d1d97);
  box-shadow: 0 30px 70px -30px rgba(61, 29, 151, .7);
}
.cta-panel h2 { color: #fff; max-width: 20ch; }
.cta-panel p { margin: 14px 0 0; max-width: 56ch; font-size: 1.1rem; }
.cta-actions { display: grid; gap: 14px; justify-items: start; }
.cta-phone { display: inline-flex; align-items: center; gap: 10px; color: #fff; font-weight: 600; }
.cta-phone:hover { color: #fff; text-decoration: underline; }

/* 10 Architecture --------------------------------------------------------- */
.arch { display: flex; flex-direction: column; }
.arch-layer {
  display: grid; grid-template-columns: 210px minmax(0, 1fr); gap: 28px; align-items: center;
  padding: 20px 22px; border-radius: 18px;
  border: 1px solid rgba(255, 255, 255, .14);
  background: linear-gradient(180deg, rgba(255, 255, 255, .07), rgba(255, 255, 255, .02));
}
.arch-label strong { display: block; color: #fff; font-family: var(--font-display); font-size: 1.1rem; letter-spacing: -.01em; }
.arch-label span { color: #a89bd8; font-size: .92rem; }
.arch-nodes { display: grid; grid-template-columns: repeat(auto-fit, minmax(230px, 1fr)); gap: 12px; }
.arch-nodes.n4 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.node { display: flex; gap: 12px; padding: 14px; border-radius: 12px; background: rgba(20, 10, 52, .6); border: 1px solid rgba(255, 255, 255, .12); }
.node-icon { flex: none; width: 38px; height: 38px; border-radius: 10px; background: rgba(139, 99, 240, .28); color: #dccfff; display: grid; place-items: center; }
.node h4 { color: #fff; font-size: 1rem; margin-bottom: 2px; }
.node p { margin: 0; font-size: .9rem; line-height: 1.5; color: #b9add9; }
.arch-link { height: 30px; position: relative; }
.arch-link span { position: absolute; left: 50%; top: 4px; bottom: 4px; width: 2px; transform: translateX(-50%); background-image: repeating-linear-gradient(to bottom, #a58bff 0 6px, transparent 6px 12px); background-size: 2px 12px; animation: flow 1s linear infinite; }
.arch-ops { margin-top: 22px; border-style: dashed; }

/* 11 Inner pages ---------------------------------------------------------- */
.page-hero {
  padding: clamp(56px, 8vw, 104px) 0 clamp(40px, 5vw, 64px);
  background: radial-gradient(900px 400px at 100% 0, var(--violet-100), transparent 62%), linear-gradient(#fff, #faf8ff);
  border-bottom: 1px solid var(--line-soft);
}
.page-hero h1 { max-width: 20ch; font-size: clamp(2.2rem, 4.6vw, 3.5rem); }
.page-hero .lead { margin: 20px 0 0; max-width: 60ch; }
.notfound { min-height: 60vh; }
.notfound .btn-row { margin-top: 28px; }

.pipeline { list-style: none; margin: 0; padding: 0; }
.pipe { display: grid; grid-template-columns: 44px minmax(0, 1fr); gap: 20px; padding-bottom: 34px; position: relative; }
.pipe:last-child { padding-bottom: 0; }
.pipe::before { content: ""; position: absolute; left: 21px; top: 48px; bottom: 4px; width: 2px; background: var(--violet-100); }
.pipe:last-child::before { display: none; }
.pipe-n { width: 44px; height: 44px; border-radius: 50%; background: var(--violet); color: #fff; display: grid; place-items: center; font-family: var(--font-display); font-weight: 700; font-size: 1.1rem; position: relative; }
.pipe h3 { margin: 6px 0 6px; }
.pipe p { margin: 0 0 6px; }
.pipe .pipe-tag { font-size: .9rem; color: var(--violet); font-weight: 600; }

.modules { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(2, 1fr); gap: 0 56px; }
.modules li { display: flex; gap: 18px; padding: 26px 0; border-top: 1px solid var(--line); }
.modules h3 { margin-bottom: 4px; }
.modules p { margin: 0; }
.modules-1 { grid-template-columns: minmax(0, 1fr); }
.modules-1 li:first-child { border-top: 0; padding-top: 0; }

.trust-list { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(2, 1fr); gap: 36px 56px; }
.trust-list li { border-left: 3px solid var(--violet-200); padding-left: 22px; }
.trust-list h3 { margin-bottom: 8px; }
.trust-list p { margin: 0; }
.trust-3 { grid-template-columns: repeat(3, 1fr); gap: 36px; }

.compare { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
.compare-col { background: #fff; border: 1px solid var(--line); border-radius: 18px; padding: 26px; }
.compare-col:first-child { border-color: var(--violet-300); box-shadow: var(--shadow-md); }
.compare-col h3 { margin: 14px 0 8px; }
.compare-col p { margin-bottom: 0; }
.compare-col .checks { margin-top: 18px; }

.faq { border-top: 1px solid var(--line); }
.faq:last-child { border-bottom: 1px solid var(--line); }
.faq summary { cursor: pointer; list-style: none; padding: 20px 40px 20px 0; position: relative; font-family: var(--font-display); font-weight: 600; font-size: 1.12rem; color: var(--ink); }
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: "+"; position: absolute; right: 4px; top: 50%; transform: translateY(-50%); font-size: 1.5rem; color: var(--violet); font-weight: 400; transition: transform .2s; }
.faq[open] summary::after { transform: translateY(-50%) rotate(45deg); }
.faq p { margin: 0 0 20px; max-width: 62ch; }

.spec-table { width: 100%; border-collapse: collapse; font-size: 1rem; min-width: 720px; }
.spec-table th, .spec-table td { text-align: left; padding: 16px 18px; border-bottom: 1px solid var(--line); vertical-align: top; }
.spec-table thead th { background: var(--mist); color: var(--ink); font-family: var(--font-display); font-weight: 600; white-space: nowrap; }
.spec-table tbody th { font-weight: 600; color: var(--violet-deep); white-space: nowrap; }
.spec-table td:nth-child(2) { color: var(--muted); white-space: nowrap; }

.flow-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 24px; }
.flow-card { background: #fff; border: 1px solid var(--line); border-radius: 20px; padding: 30px; }
.flow-card h3 { margin-bottom: 20px; }
.flow { counter-reset: f; list-style: none; padding: 0; margin: 0; display: grid; gap: 16px; }
.flow li { counter-increment: f; display: grid; grid-template-columns: 30px 1fr; gap: 14px; align-items: start; }
.flow li::before { content: counter(f); width: 30px; height: 30px; border-radius: 50%; display: grid; place-items: center; background: var(--violet-100); color: var(--violet); font-weight: 700; font-size: .9rem; }

.prose-card { background: #fff; border: 1px solid var(--line); border-radius: 20px; padding: clamp(24px, 4vw, 40px); box-shadow: var(--shadow-sm); }
.prose-card h3 { margin: 26px 0 6px; }
.prose-card h3:first-child { margin-top: 0; }
.prose-card p { margin: 0; }
.prose p { font-size: 1.12rem; }

.roadmap { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(3, 1fr); gap: 32px; }
.road { position: relative; padding-top: 28px; border-top: 2px solid var(--violet-100); }
.road-dot { position: absolute; top: -7px; left: 0; width: 12px; height: 12px; border-radius: 50%; background: var(--violet); }
.road:first-child { border-top-color: var(--violet); }
.road:first-child .road-dot { box-shadow: 0 0 0 5px var(--violet-100); }
.road h3 { margin-bottom: 8px; }
.road p { margin: 0; }

.cases { display: grid; gap: 20px; }
.case { display: grid; grid-template-columns: 320px minmax(0, 1fr); gap: 36px; padding: clamp(24px, 3vw, 36px); border: 1px solid var(--line); border-radius: 22px; background: #fff; }
.case:nth-child(even) { background: var(--mist); }
.case-head { display: flex; gap: 16px; align-items: flex-start; }
.case-head h3 { margin-bottom: 4px; }
.who { margin: 0; font-size: .95rem; color: var(--muted); }
.case-body { display: grid; grid-template-columns: 1fr 1fr; gap: 24px 32px; }
.case-body h4 { margin-bottom: 6px; }
.case-body p { margin: 0; }
.prompt { grid-column: 1 / -1; background: #fff; border: 1px solid var(--violet-200); border-radius: 14px; padding: 14px 18px; }
.case:nth-child(even) .prompt { background: #fff; }
.prompt span { font-size: .85rem; color: var(--muted); }
.prompt p { font-weight: 600; color: var(--violet-deep); font-size: 1.05rem; }

/* 12 Contact -------------------------------------------------------------- */
.contact-section { background: linear-gradient(#faf8ff, #fff 40%); padding-top: clamp(36px, 5vw, 64px); }
.contact-grid { display: grid; grid-template-columns: minmax(0, 5fr) minmax(0, 7fr); gap: clamp(28px, 4vw, 56px); align-items: start; }
.contact-info { display: grid; gap: 20px; }
.info-card { background: #fff; border: 1px solid var(--line); border-radius: 20px; padding: 28px; box-shadow: var(--shadow-sm); }
.info-card h2 { font-size: 1.6rem; margin-bottom: 18px; }
.info-card h3 { margin-bottom: 14px; }
.info-list { list-style: none; margin: 0 0 4px; padding: 0; display: grid; gap: 14px; }
.info-list li { display: flex; gap: 14px; align-items: flex-start; }
.info-list .i { width: 40px; height: 40px; padding: 10px; border-radius: 12px; background: var(--violet-100); color: var(--violet); }
.info-list address, .info-list a { padding-top: 7px; color: var(--ink); font-weight: 500; }
.info-list a:hover { color: var(--violet); }
.info-card .btn { margin-top: 18px; }
.next-steps { padding-left: 22px; display: grid; gap: 12px; margin: 0; }
.next-steps li::marker { color: var(--violet); font-weight: 700; }
.map-wrap { border-radius: 20px; overflow: hidden; border: 1px solid var(--line); background: var(--mist); aspect-ratio: 16 / 10; }
.map-wrap iframe { width: 100%; height: 100%; border: 0; display: block; }

.form-card { background: #fff; border: 1px solid var(--line); border-radius: 24px; padding: clamp(24px, 4vw, 44px); box-shadow: var(--shadow-md); }
.form-card h2 { font-size: 1.8rem; margin-bottom: 24px; }
.field { margin-bottom: 18px; position: relative; }
.field-row { display: grid; grid-template-columns: 1fr 1fr; gap: 0 18px; }
.field label { display: block; font-weight: 600; color: var(--ink); font-size: .95rem; margin-bottom: 6px; }
.field .req { color: var(--bad); }
.field input[type="text"], .field input[type="email"], .field select, .field textarea {
  width: 100%; padding: 12px 14px; font: inherit; font-size: 1rem; color: var(--ink);
  background: #fff; border: 1px solid #d9d1ee; border-radius: 10px;
  transition: border-color .15s, box-shadow .15s;
}
.field textarea { resize: vertical; min-height: 130px; }
.field input:hover, .field select:hover, .field textarea:hover { border-color: var(--violet-300); }
.field input:focus, .field select:focus, .field textarea:focus { outline: none; border-color: var(--violet); box-shadow: 0 0 0 4px rgba(106, 56, 224, .16); }
.field.has-error input, .field.has-error textarea, .field.has-error select { border-color: var(--bad); }
.err { color: var(--bad); font-size: .88rem; margin: 6px 0 0; font-weight: 500; }
.err:empty { display: none; }
.hp { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }
.check-label { display: flex !important; gap: 12px; align-items: flex-start; font-weight: 400 !important; color: var(--ink-2) !important; cursor: pointer; }
.check-label input { width: 20px; height: 20px; margin: 2px 0 0; accent-color: var(--violet); flex: none; }
.form-note { margin: 14px 0 0; font-size: .9rem; color: var(--muted); text-align: center; }
.form-status { padding: 12px 14px; border-radius: 10px; background: var(--bad-bg); color: var(--bad); font-weight: 500; margin-bottom: 20px; font-size: .95rem; }
.form-success { text-align: center; padding: 32px 8px; }
.form-success h2 { margin-bottom: 12px; }
.form-success p { max-width: 44ch; margin: 0 auto 24px; }
.success-icon { width: 64px; height: 64px; border-radius: 50%; background: var(--ok-bg); color: var(--ok); display: grid; place-items: center; margin: 0 auto 20px; }
.success-icon .i { width: 30px; height: 30px; stroke-width: 2.4; }

/* 13 Footer --------------------------------------------------------------- */
.site-footer { background: var(--violet-night); color: #b9add9; padding: 72px 0 32px; }
.footer-grid { display: grid; grid-template-columns: 1.7fr 1fr 1fr 1fr; gap: 40px; }
.footer-brand p { margin: 18px 0; max-width: 40ch; }
.footer-brand address { line-height: 1.7; }
.footer-brand strong { color: #fff; }
.site-footer h4 { color: #fff; font-size: 1rem; margin-bottom: 16px; }
.site-footer ul { list-style: none; margin: 0; padding: 0; display: grid; gap: 10px; }
.site-footer a { color: #d3c9f0; }
.site-footer a:hover { color: #fff; text-decoration: underline; }
.footer-base { margin-top: 56px; padding-top: 24px; border-top: 1px solid rgba(255, 255, 255, .12); font-size: .92rem; }
.footer-base p { margin: 0 0 6px; }
.footer-base .fine { font-size: .82rem; color: #8f83bd; max-width: 90ch; }

/* 14 Motion --------------------------------------------------------------- */
@keyframes pulse { 0% { box-shadow: 0 0 0 0 rgba(15, 155, 120, .5); } 70% { box-shadow: 0 0 0 8px rgba(15, 155, 120, 0); } 100% { box-shadow: 0 0 0 0 rgba(15, 155, 120, 0); } }
@keyframes blink { 50% { opacity: 0; } }
@keyframes flow { to { background-position: 0 12px; } }
@keyframes rise { from { opacity: 0; transform: translateY(28px) scale(.985); } to { opacity: 1; transform: none; } }
@keyframes settle { from { opacity: 0; transform: translateY(12px); } to { opacity: 1; transform: none; } }

/* Hero: one orchestrated entrance. Everything else stays still until used. */
.js .hero-copy > * { animation: settle .6s cubic-bezier(.2, .7, .2, 1) both; }
.js .hero-copy > :nth-child(2) { animation-delay: .08s; }
.js .hero-copy > :nth-child(3) { animation-delay: .16s; }
.js .hero-copy > :nth-child(4) { animation-delay: .24s; }
.js .hero-copy > :nth-child(5) { animation-delay: .3s; }
.js .hero-mock .mock { animation: rise .9s cubic-bezier(.2, .7, .2, 1) .2s both; }

/* Elements revealed once as they scroll into view (findings, architecture layers) */
.js [data-reveal] { opacity: 0; transform: translateY(14px); transition: opacity .5s ease calc(var(--i, 0) * 90ms), transform .5s ease calc(var(--i, 0) * 90ms); }
.js [data-reveal].is-in { opacity: 1; transform: none; }
/* Codebase Q&A plays back its answer step by step */
.js [data-qa-step] { opacity: 0; transform: translateY(6px); transition: opacity .4s ease, transform .4s ease; }
.js [data-qa-step].is-in { opacity: 1; transform: none; }

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation-duration: .001ms !important; animation-iteration-count: 1 !important; transition-duration: .001ms !important; transition-delay: 0s !important; }
  .js [data-reveal], .js [data-qa-step] { opacity: 1; transform: none; }
}

/* 15 Responsive ----------------------------------------------------------- */
@media (max-width: 1100px) {
  .hero-grid { grid-template-columns: minmax(0, 1fr); }
  .hero-copy { max-width: 720px; }
  .steps { grid-template-columns: repeat(2, 1fr); gap: 40px 32px; }
  .step::before { right: 0 !important; }
  .step:nth-child(even)::before { background: linear-gradient(90deg, rgba(255, 255, 255, .22), transparent); }
  .footer-grid { grid-template-columns: 1fr 1fr; }
  .case { grid-template-columns: minmax(0, 1fr); gap: 24px; }
  .arch-layer { grid-template-columns: minmax(0, 1fr); gap: 16px; }
  .arch-nodes.n4 { grid-template-columns: repeat(auto-fit, minmax(230px, 1fr)); }
}
@media (max-width: 980px) {
  :root { --header-h: 64px; }
  .nav-toggle { display: grid; }
  .nav-links {
    position: fixed; top: var(--header-h); left: 0; right: 0; bottom: 0;
    flex-direction: column; align-items: stretch; gap: 4px; padding: 20px 24px 32px;
    background: #fff; overflow-y: auto; display: none;
  }
  .nav-links.is-open { display: flex; }
  .nav-links a:not(.btn) { padding: 14px 12px; font-size: 1.1rem; }
  .nav-home { display: block; }
  .nav-cta { margin: 16px 0 0; }
  .nav-cta .btn { width: 100%; padding: 15px; font-size: 1.05rem; }
  .two-col, .two-col-rev, .contact-grid { grid-template-columns: minmax(0, 1fr); }
  .sticky { position: static; }
  .split-head { grid-template-columns: minmax(0, 1fr); gap: 20px; }
  .qa-body { grid-template-columns: minmax(0, 1fr); }
  .qa-chat { border-right: 0; border-bottom: 1px solid var(--line); }
  .bento .b-lg, .bento .b-sm { grid-column: 1 / -1; }
  .b-wide { flex-direction: column; align-items: flex-start; }
  .uc-list, .modules, .trust-list, .trust-3, .flow-grid, .roadmap { grid-template-columns: minmax(0, 1fr); }
  .roadmap { gap: 40px; }
  .compare { grid-template-columns: minmax(0, 1fr); }
  .cta-panel { flex-direction: column; align-items: flex-start; }
}
@media (max-width: 720px) {
  .container { width: min(100% - 32px, var(--container)); }
  .app { grid-template-columns: minmax(0, 1fr); }
  .side { display: none; }
  .split, .insights, .split-code, .field-row, .case-body { grid-template-columns: minmax(0, 1fr); }
  .stat-row { grid-template-columns: repeat(2, 1fr); }
  .steps { grid-template-columns: minmax(0, 1fr); }
  .step::before { display: none; }
  .footer-grid { grid-template-columns: minmax(0, 1fr); gap: 32px; }
  .doc-body { padding: 18px; }
  .qa-chat { padding: 18px; }
  .btn-row .btn { flex: 1 1 100%; }
  .b { padding: 22px; }
}
