/* NovaByte Lab website — design system
   Tokens first, then layout, components, pages. Light and dark themes. */

:root {
  --bg: #fbfbfe;
  --bg-2: #f3f4fb;
  --surface: #ffffff;
  --surface-2: #f7f7fc;
  --fg: #0d0f1c;
  --fg-2: #3c4160;
  --muted: #6b7091;
  --line: #e6e7f2;
  --line-2: #d8daea;
  --brand: #5b5bf6;
  --brand-2: #8b5cf6;
  --brand-3: #06b6d4;
  --brand-ink: #ffffff;
  --ok: #059669;
  --warn: #d97706;
  --err: #e11d48;
  --ring: rgba(91, 91, 246, .35);
  --shadow-sm: 0 1px 2px rgba(16, 18, 40, .06), 0 1px 1px rgba(16, 18, 40, .04);
  --shadow: 0 10px 30px -12px rgba(30, 27, 75, .22), 0 4px 12px -6px rgba(30, 27, 75, .12);
  --shadow-lg: 0 40px 80px -30px rgba(30, 27, 75, .45);
  --radius: 14px;
  --radius-lg: 22px;
  --max: 1180px;
  --font: "Inter", ui-sans-serif, system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
  --display: "Plus Jakarta Sans", var(--font);
  --mono: "JetBrains Mono", ui-monospace, SFMono-Regular, Consolas, monospace;
  color-scheme: light;
}

@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) {
    --bg: #070815; --bg-2: #0c0e22; --surface: #10132b; --surface-2: #151935;
    --fg: #eef0ff; --fg-2: #c3c7e6; --muted: #8b90b5; --line: #222649; --line-2: #2d325c;
    --brand: #7c7cff; --brand-2: #a78bfa; --brand-3: #22d3ee; --ring: rgba(124, 124, 255, .45);
    --shadow: 0 10px 30px -12px rgba(0, 0, 0, .6); --shadow-lg: 0 40px 80px -30px rgba(0, 0, 0, .8);
    color-scheme: dark;
  }
}
:root[data-theme="dark"] {
  --bg: #070815; --bg-2: #0c0e22; --surface: #10132b; --surface-2: #151935;
  --fg: #eef0ff; --fg-2: #c3c7e6; --muted: #8b90b5; --line: #222649; --line-2: #2d325c;
  --brand: #7c7cff; --brand-2: #a78bfa; --brand-3: #22d3ee; --ring: rgba(124, 124, 255, .45);
  --shadow: 0 10px 30px -12px rgba(0, 0, 0, .6); --shadow-lg: 0 40px 80px -30px rgba(0, 0, 0, .8);
  color-scheme: dark;
}

/* ---------- base ---------- */
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
body {
  margin: 0; background: var(--bg); color: var(--fg); font: 16px/1.6 var(--font);
  -webkit-font-smoothing: antialiased; text-rendering: optimizeLegibility; overflow-x: hidden;
}
img, svg { display: block; max-width: 100%; }
a { color: inherit; text-decoration: none; }
p { margin: 0 0 1em; }
h1, h2, h3, h4 { font-family: var(--display); line-height: 1.12; letter-spacing: -.025em; margin: 0 0 .5em; color: var(--fg); }
h1 { font-size: clamp(2.3rem, 5vw, 4rem); font-weight: 800; }
h2 { font-size: clamp(1.8rem, 3.4vw, 2.7rem); font-weight: 750; }
h3 { font-size: 1.2rem; font-weight: 700; letter-spacing: -.01em; }
code { font-family: var(--mono); font-size: .88em; background: var(--surface-2); border: 1px solid var(--line); border-radius: 6px; padding: .1em .38em; }
:focus-visible { outline: 3px solid var(--ring); outline-offset: 2px; border-radius: 8px; }
.wrap { width: 100%; max-width: var(--max); margin: 0 auto; padding: 0 20px; }
.skip { position: absolute; left: -999px; top: 8px; background: var(--brand); color: #fff; padding: 8px 14px; border-radius: 8px; z-index: 100; }
.skip:focus { left: 12px; }
.icon { width: 22px; height: 22px; fill: none; stroke: currentColor; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; flex: none; }
.muted { color: var(--muted); }
.grad-text {
  background: linear-gradient(100deg, var(--brand) 0%, var(--brand-2) 45%, var(--brand-3) 100%);
  -webkit-background-clip: text; background-clip: text; color: transparent;
}

/* ---------- header ---------- */
.site-header {
  position: sticky; top: 0; z-index: 50; backdrop-filter: saturate(180%) blur(14px); -webkit-backdrop-filter: saturate(180%) blur(14px);
  background: color-mix(in srgb, var(--bg) 78%, transparent); border-bottom: 1px solid color-mix(in srgb, var(--line) 70%, transparent);
}
.nav { display: flex; align-items: center; gap: 28px; height: 68px; }
.logo { display: flex; align-items: center; gap: 10px; font: 800 1.08rem/1 var(--display); letter-spacing: -.02em; white-space: nowrap; }
.logo-mark {
  width: 32px; height: 32px; border-radius: 10px; display: grid; place-items: center; color: #fff;
  background: conic-gradient(from 210deg, var(--brand), var(--brand-2), var(--brand-3), var(--brand)); box-shadow: 0 6px 16px -6px var(--brand);
}
.logo-mark svg { width: 18px; height: 18px; stroke-width: 2.4; }
.nav-links { display: flex; gap: 4px; align-items: center; margin-left: 8px; }
.nav-links > a, .nav-drop > button {
  font: 500 .95rem var(--font); color: var(--fg-2); padding: 8px 12px; border-radius: 10px; background: none; border: 0; cursor: pointer;
}
.nav-links > a:hover, .nav-drop > button:hover, .nav-links > a[aria-current="page"] { color: var(--fg); background: var(--surface-2); }
.nav-cta { margin-left: auto; display: flex; gap: 10px; align-items: center; }
.nav-drop { position: relative; }
.nav-menu {
  position: absolute; top: calc(100% + 10px); left: -12px; width: 560px; padding: 10px; display: none; grid-template-columns: 1fr 1fr; gap: 4px;
  background: var(--surface); border: 1px solid var(--line); border-radius: 18px; box-shadow: var(--shadow-lg);
}
.nav-drop:hover .nav-menu, .nav-drop:focus-within .nav-menu, .nav-drop.open .nav-menu { display: grid; }
.nav-menu a { display: flex; gap: 12px; padding: 12px; border-radius: 12px; align-items: flex-start; }
.nav-menu a:hover { background: var(--surface-2); }
.nav-menu b { display: block; font-size: .95rem; }
.nav-menu span.s { display: block; color: var(--muted); font-size: .84rem; line-height: 1.35; }
.menu-btn { display: none; margin-left: auto; background: none; border: 1px solid var(--line); border-radius: 10px; padding: 8px; color: var(--fg); }
.theme-btn { background: none; border: 1px solid var(--line); color: var(--fg-2); border-radius: 10px; width: 38px; height: 38px; display: grid; place-items: center; cursor: pointer; }
.theme-btn:hover { color: var(--fg); border-color: var(--line-2); }

/* ---------- buttons ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px; font: 600 .95rem var(--font); border-radius: 12px;
  padding: 12px 20px; border: 1px solid transparent; cursor: pointer; transition: transform .15s, box-shadow .2s, background .2s; white-space: nowrap;
}
.btn .icon { width: 18px; height: 18px; }
.btn-primary { color: #fff; background: linear-gradient(135deg, var(--brand), var(--brand-2)); box-shadow: 0 10px 24px -10px var(--brand), inset 0 1px 0 rgba(255,255,255,.25); }
.btn-primary:hover { transform: translateY(-1px); box-shadow: 0 16px 30px -12px var(--brand), inset 0 1px 0 rgba(255,255,255,.25); }
.btn-ghost { color: var(--fg); background: var(--surface); border-color: var(--line); box-shadow: var(--shadow-sm); }
.btn-ghost:hover { border-color: var(--line-2); transform: translateY(-1px); }
.btn-sm { padding: 8px 14px; font-size: .88rem; border-radius: 10px; }
.btn-lg { padding: 15px 26px; font-size: 1.02rem; border-radius: 14px; }

/* ---------- hero ---------- */
.hero { position: relative; padding: 88px 0 56px; overflow: hidden; isolation: isolate; }
.hero::before {
  content: ""; position: absolute; inset: -30% -10% auto; height: 820px; z-index: -1; filter: blur(70px); opacity: .55;
  background:
    radial-gradient(40% 50% at 20% 30%, color-mix(in srgb, var(--brand) 55%, transparent), transparent 70%),
    radial-gradient(35% 45% at 80% 20%, color-mix(in srgb, var(--brand-3) 45%, transparent), transparent 70%),
    radial-gradient(30% 40% at 60% 70%, color-mix(in srgb, var(--brand-2) 45%, transparent), transparent 70%);
  animation: drift 18s ease-in-out infinite alternate;
}
.hero::after {
  content: ""; position: absolute; inset: 0; z-index: -1; opacity: .5;
  background-image: linear-gradient(var(--line) 1px, transparent 1px), linear-gradient(90deg, var(--line) 1px, transparent 1px);
  background-size: 56px 56px; -webkit-mask-image: radial-gradient(70% 60% at 50% 30%, #000, transparent); mask-image: radial-gradient(70% 60% at 50% 30%, #000, transparent);
}
@keyframes drift { to { transform: translate3d(3%, 4%, 0) scale(1.06); } }
.hero-grid { display: grid; grid-template-columns: .9fr 1.1fr; gap: 48px; align-items: center; }
.hero-center { text-align: center; max-width: 880px; margin: 0 auto; }
.hero-center .lede { margin-left: auto; margin-right: auto; }
.hero-center .hero-actions, .hero-center .hero-meta { justify-content: center; }
.eyebrow {
  display: inline-flex; align-items: center; gap: 8px; font: 600 .82rem var(--font); color: var(--fg-2); padding: 6px 12px 6px 6px;
  background: color-mix(in srgb, var(--surface) 80%, transparent); border: 1px solid var(--line); border-radius: 999px; margin-bottom: 22px; box-shadow: var(--shadow-sm);
}
.eyebrow .pill { background: linear-gradient(135deg, var(--brand), var(--brand-2)); color: #fff; border-radius: 999px; padding: 3px 9px; font-size: .74rem; }
.tagline { font: 750 clamp(1.5rem, 2.6vw, 2.1rem)/1.2 var(--display); letter-spacing: -.02em; margin: -4px 0 18px; }
.lede { font-size: clamp(1.05rem, 1.6vw, 1.22rem); color: var(--fg-2); max-width: 620px; margin-bottom: 30px; }
.hero-actions { display: flex; gap: 12px; flex-wrap: wrap; }
.hero-meta { display: flex; gap: 22px; flex-wrap: wrap; margin-top: 26px; color: var(--muted); font-size: .9rem; }
.hero-meta span { display: inline-flex; gap: 7px; align-items: center; }
.hero-meta .icon { width: 17px; height: 17px; color: var(--ok); stroke-width: 2.4; }

/* ---------- app window mockup ---------- */
.window {
  position: relative; background: var(--surface); border: 1px solid var(--line); border-radius: 18px; box-shadow: var(--shadow-lg); overflow: hidden;
  transform: perspective(1600px) rotateY(-6deg) rotateX(3deg); transition: transform .6s cubic-bezier(.2,.8,.2,1);
}
.window:hover { transform: perspective(1600px) rotateY(0) rotateX(0); }
.window-bar { display: flex; align-items: center; gap: 7px; padding: 12px 14px; border-bottom: 1px solid var(--line); background: var(--surface-2); }
.window-bar i { width: 11px; height: 11px; border-radius: 50%; background: var(--line-2); }
.window-bar i:nth-child(1) { background: #ff5f57; } .window-bar i:nth-child(2) { background: #febc2e; } .window-bar i:nth-child(3) { background: #28c840; }
.window-bar .title { margin-left: 10px; font-size: .8rem; color: var(--muted); font-weight: 600; }
.window-body { display: grid; grid-template-columns: 1fr 148px; min-height: 290px; }
.sheet { overflow: hidden; font-size: .72rem; }
.sheet table { width: 100%; border-collapse: collapse; }
.sheet th { text-align: left; font-weight: 600; color: var(--muted); background: var(--surface-2); padding: 8px 7px; border-bottom: 1px solid var(--line); white-space: nowrap; }
.sheet td { padding: 10px 7px; border-bottom: 1px solid var(--line); white-space: nowrap; color: var(--fg-2); max-width: 118px; overflow: hidden; text-overflow: ellipsis; }
.sheet tr:last-child td { border-bottom: 0; }
.sheet .flag { background: color-mix(in srgb, var(--warn) 16%, transparent); color: var(--warn); font-weight: 600; }
.sheet .good { color: var(--ok); font-weight: 600; }
.sheet .rownum { color: var(--muted); width: 22px; text-align: center; background: var(--surface-2); padding: 0 4px; }
.side-panel { border-left: 1px solid var(--line); padding: 14px; background: var(--surface-2); display: flex; flex-direction: column; gap: 10px; }
.side-panel .sp-title { font: 700 .82rem var(--display); display: flex; gap: 8px; align-items: center; }
.side-panel .sp-title .chip-ico { width: 22px; height: 22px; border-radius: 7px; display: grid; place-items: center; color: #fff; }
.side-panel .sp-title .chip-ico svg { width: 14px; height: 14px; stroke-width: 2.2; }
.side-panel .bar { height: 8px; border-radius: 99px; background: var(--line); overflow: hidden; }
.side-panel .bar > span { display: block; height: 100%; width: 72%; border-radius: inherit; animation: load 2.6s ease-in-out infinite; }
@keyframes load { 0% { width: 8%; } 70%, 100% { width: 100%; } }
.side-panel .sp-line { height: 8px; border-radius: 99px; background: var(--line); }
.side-panel .sp-btn { margin-top: auto; text-align: center; color: #fff; font-weight: 700; font-size: .78rem; padding: 9px; border-radius: 9px; }
.float-card {
  position: absolute; display: flex; gap: 10px; align-items: center; padding: 11px 14px; background: var(--surface); border: 1px solid var(--line);
  border-radius: 14px; box-shadow: var(--shadow); font-size: .82rem; font-weight: 600; animation: bob 5s ease-in-out infinite;
}
.float-card .dot { width: 30px; height: 30px; border-radius: 9px; display: grid; place-items: center; color: #fff; }
.float-card .dot svg { width: 16px; height: 16px; stroke-width: 2.4; }
.float-card small { display: block; color: var(--muted); font-weight: 500; }
@keyframes bob { 50% { transform: translateY(-8px); } }
.mock-wrap { position: relative; padding: 24px 0; }
.mock-wrap .f1 { left: -26px; bottom: 6px; }
.mock-wrap .f2 { right: -14px; top: -6px; animation-delay: -2.5s; }

/* ---------- sections ---------- */
section { padding: 84px 0; }
.section-head { text-align: center; max-width: 720px; margin: 0 auto 48px; }
.section-head p { color: var(--fg-2); font-size: 1.08rem; }
.kicker { display: inline-block; font: 700 .78rem var(--font); letter-spacing: .12em; text-transform: uppercase; color: var(--brand); margin-bottom: 12px; }
.band { background: var(--bg-2); border-block: 1px solid var(--line); }

/* logos / trust strip */
.strip { display: flex; flex-wrap: wrap; justify-content: center; gap: 12px 34px; color: var(--muted); font-weight: 600; font-size: .92rem; padding: 26px 0 0; }
.strip span { display: inline-flex; gap: 8px; align-items: center; }

/* product grid */
.products { display: grid; grid-template-columns: repeat(3, 1fr); gap: 18px; }
.p-card {
  position: relative; display: flex; flex-direction: column; gap: 14px; padding: 26px; background: var(--surface); border: 1px solid var(--line);
  border-radius: var(--radius-lg); box-shadow: var(--shadow-sm); transition: transform .25s, box-shadow .25s, border-color .25s; overflow: hidden;
}
.p-card::before {
  content: ""; position: absolute; inset: 0 0 auto; height: 3px; background: var(--c); opacity: .9;
}
.p-card::after {
  content: ""; position: absolute; width: 220px; height: 220px; right: -90px; top: -90px; border-radius: 50%;
  background: radial-gradient(circle, color-mix(in srgb, var(--c) 22%, transparent), transparent 70%); transition: transform .4s;
}
.p-card:hover { transform: translateY(-4px); box-shadow: var(--shadow); border-color: color-mix(in srgb, var(--c) 40%, var(--line)); }
.p-card:hover::after { transform: scale(1.3); }
.p-ico { width: 48px; height: 48px; border-radius: 14px; display: grid; place-items: center; color: #fff; background: var(--c); box-shadow: 0 10px 20px -10px var(--c); }
.p-ico .icon { width: 24px; height: 24px; }
.p-card .tag { font: 600 .78rem var(--font); color: var(--c); }
.p-card h3 { margin: 0; font-size: 1.3rem; }
.p-card p { color: var(--fg-2); margin: 0; flex: 1; }
.p-card .links { display: flex; gap: 16px; font-weight: 600; font-size: .92rem; }
.p-card .links a { display: inline-flex; gap: 6px; align-items: center; color: var(--fg); }
.p-card .links a .icon { width: 16px; height: 16px; transition: transform .2s; }
.p-card .links a:hover .icon { transform: translateX(3px); }
.p-card .links a.alt { color: var(--muted); }
.p-card .price { font-size: .86rem; color: var(--muted); }

/* feature grid */
.features { display: grid; grid-template-columns: repeat(3, 1fr); gap: 18px; }
.f-card { padding: 24px; background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); box-shadow: var(--shadow-sm); }
.f-card .f-ico { width: 40px; height: 40px; border-radius: 12px; display: grid; place-items: center; margin-bottom: 14px;
  color: var(--c, var(--brand)); background: color-mix(in srgb, var(--c, var(--brand)) 13%, transparent); }
.f-card h3 { font-size: 1.04rem; margin-bottom: 6px; }
.f-card p { color: var(--fg-2); font-size: .95rem; margin: 0; }

/* steps */
.steps { display: grid; grid-template-columns: repeat(3, 1fr); gap: 18px; counter-reset: step; }
.step { position: relative; padding: 26px; border-radius: var(--radius); background: var(--surface); border: 1px solid var(--line); }
.step::before {
  counter-increment: step; content: counter(step); display: grid; place-items: center; width: 34px; height: 34px; border-radius: 10px; margin-bottom: 14px;
  font: 800 .95rem var(--display); color: #fff; background: linear-gradient(135deg, var(--c, var(--brand)), var(--brand-2));
}
.step p { color: var(--fg-2); margin: 0; }

/* bento / suite */
.bento { display: grid; grid-template-columns: 1.3fr 1fr; gap: 18px; }
.bento .b { padding: 30px; border-radius: var(--radius-lg); border: 1px solid var(--line); background: var(--surface); position: relative; overflow: hidden; }
.bento .b-hero { background: radial-gradient(120% 120% at 0% 0%, color-mix(in srgb, var(--brand) 22%, var(--surface)), var(--surface) 60%); }
.flow { display: flex; flex-wrap: wrap; gap: 10px; align-items: center; margin-top: 18px; }
.flow .node { display: inline-flex; gap: 8px; align-items: center; padding: 9px 13px; border-radius: 12px; background: var(--surface); border: 1px solid var(--line); font-weight: 600; font-size: .88rem; box-shadow: var(--shadow-sm); }
.flow .node i { width: 10px; height: 10px; border-radius: 50%; background: var(--c); }
.flow .arrow { color: var(--muted); }
.flow .arrow .icon { width: 18px; height: 18px; }
.trust-list { display: grid; gap: 16px; }
.trust-list div { display: flex; gap: 14px; }
.trust-list .icon { color: var(--brand); margin-top: 3px; }
.trust-list b { display: block; }
.trust-list span { color: var(--fg-2); font-size: .94rem; }

/* pricing */
.plans { display: grid; grid-template-columns: repeat(3, 1fr); gap: 18px; }
.plan { display: flex; flex-direction: column; gap: 10px; padding: 26px; border-radius: var(--radius-lg); background: var(--surface); border: 1px solid var(--line); box-shadow: var(--shadow-sm); }
.plan .p-top { display: flex; gap: 12px; align-items: center; }
.plan .p-top .p-ico { width: 38px; height: 38px; border-radius: 11px; }
.plan .p-top .p-ico .icon { width: 19px; height: 19px; }
.plan .amount { font: 800 2rem var(--display); letter-spacing: -.03em; }
.plan p { color: var(--fg-2); font-size: .95rem; flex: 1; margin: 0; }
.plan-featured {
  grid-column: 1 / -1; display: grid; grid-template-columns: 1.4fr 1fr; gap: 26px; align-items: center; color: #fff; border: 0;
  background: linear-gradient(135deg, #3730a3, #6d28d9 55%, #0e7490); box-shadow: var(--shadow-lg);
}
.plan-featured h3, .plan-featured .amount { color: #fff; }
.plan-featured p { color: rgba(255,255,255,.82); }
.plan-featured .btn-primary { background: #fff; color: #312e81; box-shadow: none; }
.checks { list-style: none; padding: 0; margin: 0; display: grid; gap: 9px; }
.checks li { display: flex; gap: 10px; align-items: flex-start; }
.checks .icon { width: 18px; height: 18px; color: var(--ok); stroke-width: 2.6; margin-top: 3px; }
.plan-featured .checks .icon { color: #a7f3d0; }

/* FAQ */
.faq { max-width: 820px; margin: 0 auto; display: grid; gap: 12px; }
.faq details { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); padding: 4px 22px; }
.faq summary { cursor: pointer; list-style: none; padding: 16px 0; font-weight: 650; display: flex; justify-content: space-between; gap: 16px; }
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: "+"; font-size: 1.4rem; line-height: 1; color: var(--muted); transition: transform .2s; }
.faq details[open] summary::after { transform: rotate(45deg); }
.faq details p { color: var(--fg-2); padding-bottom: 14px; margin: 0; }

/* CTA */
.cta {
  position: relative; overflow: hidden; text-align: center; padding: 64px 28px; border-radius: 28px; color: #fff;
  background: linear-gradient(135deg, #1e1b4b, #4c1d95 50%, #155e75); box-shadow: var(--shadow-lg); isolation: isolate;
}
.cta::before { content: ""; position: absolute; inset: 0; z-index: -1; opacity: .35;
  background-image: radial-gradient(rgba(255,255,255,.4) 1px, transparent 1px); background-size: 22px 22px; }
.cta h2 { color: #fff; }
.cta p { color: rgba(255,255,255,.82); max-width: 560px; margin: 0 auto 26px; }
.cta .btn-primary { background: #fff; color: #312e81; box-shadow: 0 14px 30px -14px rgba(0,0,0,.6); }
.cta .btn-ghost { background: transparent; color: #fff; border-color: rgba(255,255,255,.35); box-shadow: none; }
.notice { display: flex; gap: 10px; align-items: flex-start; padding: 14px 16px; border-radius: 12px; font-size: .92rem;
  background: color-mix(in srgb, var(--warn) 9%, var(--surface)); border: 1px solid color-mix(in srgb, var(--warn) 30%, var(--line)); color: var(--fg-2); }

/* ---------- docs ---------- */
.docs-shell { display: grid; grid-template-columns: 250px minmax(0, 1fr) 210px; gap: 44px; padding-top: 40px; padding-bottom: 80px; }
.docs-nav { position: sticky; top: 92px; align-self: start; max-height: calc(100vh - 110px); overflow: auto; font-size: .92rem; }
.docs-nav h4 { font: 700 .74rem var(--font); letter-spacing: .1em; text-transform: uppercase; color: var(--muted); margin: 18px 0 8px; }
.docs-nav a { display: flex; gap: 9px; align-items: center; padding: 7px 10px; border-radius: 9px; color: var(--fg-2); }
.docs-nav a:hover { background: var(--surface-2); color: var(--fg); }
.docs-nav a[aria-current="page"] { background: color-mix(in srgb, var(--brand) 12%, transparent); color: var(--brand); font-weight: 650; }
.docs-nav a i { width: 8px; height: 8px; border-radius: 50%; background: var(--c, var(--brand)); flex: none; }
.docs-toc { position: sticky; top: 92px; align-self: start; font-size: .86rem; }
.docs-toc h4 { font: 700 .74rem var(--font); letter-spacing: .1em; text-transform: uppercase; color: var(--muted); margin: 0 0 10px; }
.docs-toc ul { list-style: none; margin: 0; padding: 0 0 0 12px; border-left: 1px solid var(--line); }
.docs-toc li { margin: 6px 0; }
.docs-toc li ul { border: 0; padding-left: 12px; }
.docs-toc a { color: var(--muted); }
.docs-toc a:hover { color: var(--fg); }
.breadcrumb { font-size: .86rem; color: var(--muted); margin-bottom: 14px; display: flex; gap: 8px; flex-wrap: wrap; }
.breadcrumb a:hover { color: var(--fg); }
.doc-hero { display: flex; gap: 16px; align-items: center; margin-bottom: 8px; }
.doc-hero .p-ico { width: 52px; height: 52px; }
.prose { max-width: 760px; color: var(--fg-2); font-size: 1.01rem; }
.prose h1 { font-size: clamp(2rem, 4vw, 2.7rem); margin-bottom: .3em; }
.prose h2 { font-size: 1.55rem; margin: 2.2em 0 .6em; padding-top: .4em; scroll-margin-top: 90px; color: var(--fg); }
.prose h3 { font-size: 1.15rem; margin: 1.8em 0 .5em; scroll-margin-top: 90px; color: var(--fg); }
.prose a { color: var(--brand); text-decoration: underline; text-decoration-color: color-mix(in srgb, var(--brand) 35%, transparent); text-underline-offset: 3px; }
.prose ul, .prose ol { padding-left: 1.3em; }
.prose li { margin: .35em 0; }
.prose li::marker { color: var(--muted); }
.prose strong { color: var(--fg); }
.prose table { width: 100%; border-collapse: collapse; margin: 1.2em 0; font-size: .94rem; display: block; overflow-x: auto; }
.prose th, .prose td { text-align: left; padding: 10px 12px; border-bottom: 1px solid var(--line); vertical-align: top; }
.prose th { color: var(--fg); background: var(--surface-2); font-weight: 650; }
.prose blockquote { margin: 1.4em 0; padding: 14px 18px; border-radius: 12px; border: 1px solid color-mix(in srgb, var(--brand) 30%, var(--line));
  background: color-mix(in srgb, var(--brand) 7%, var(--surface)); color: var(--fg-2); }
.prose blockquote p:last-child { margin: 0; }
.prose pre { background: var(--surface-2); border: 1px solid var(--line); border-radius: 12px; padding: 14px; overflow: auto; }
.prose pre code { background: none; border: 0; padding: 0; }
.prose .headerlink { opacity: 0; margin-left: .3em; text-decoration: none; color: var(--muted); }
.prose h2:hover .headerlink, .prose h3:hover .headerlink { opacity: 1; }
.doc-cards { display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; }
.doc-card { display: flex; flex-direction: column; gap: 10px; padding: 22px; border-radius: var(--radius); background: var(--surface); border: 1px solid var(--line); transition: border-color .2s, transform .2s; }
.doc-card:hover { border-color: color-mix(in srgb, var(--c, var(--brand)) 45%, var(--line)); transform: translateY(-2px); }
.doc-card h3 { margin: 0; font-size: 1.08rem; }
.doc-card p { color: var(--fg-2); font-size: .93rem; margin: 0; }
.doc-card .p-ico { width: 40px; height: 40px; border-radius: 12px; }
.doc-card .p-ico .icon { width: 20px; height: 20px; }
.doc-search { max-width: 560px; margin: 0 auto; position: relative; }
.doc-search input { width: 100%; padding: 15px 18px 15px 48px; border-radius: 14px; border: 1px solid var(--line); background: var(--surface); color: var(--fg); font: inherit; box-shadow: var(--shadow); }
.doc-search .icon { position: absolute; left: 16px; top: 50%; transform: translateY(-50%); color: var(--muted); }
.doc-results { max-width: 560px; margin: 10px auto 0; display: grid; gap: 6px; text-align: left; }
.doc-results a { display: block; padding: 10px 14px; border-radius: 10px; background: var(--surface); border: 1px solid var(--line); font-size: .92rem; }
.doc-results a small { display: block; color: var(--muted); }
.pager { display: flex; justify-content: space-between; gap: 14px; margin-top: 56px; padding-top: 24px; border-top: 1px solid var(--line); }
.pager a { flex: 1; padding: 14px 16px; border-radius: 12px; border: 1px solid var(--line); background: var(--surface); }
.pager a:hover { border-color: var(--line-2); }
.pager small { display: block; color: var(--muted); font-size: .8rem; }
.pager .next { text-align: right; }

/* ---------- legal ---------- */
.legal { padding: 56px 0 80px; }
.legal .prose { margin: 0 auto; }

/* ---------- footer ---------- */
.site-footer { border-top: 1px solid var(--line); background: var(--bg-2); padding: 56px 0 30px; font-size: .92rem; }
.foot-grid { display: grid; grid-template-columns: 1.4fr repeat(3, 1fr); gap: 30px; }
.site-footer h4 { font: 700 .78rem var(--font); letter-spacing: .1em; text-transform: uppercase; color: var(--muted); margin: 0 0 12px; }
.site-footer ul { list-style: none; padding: 0; margin: 0; display: grid; gap: 8px; }
.site-footer a { color: var(--fg-2); }
.site-footer a:hover { color: var(--fg); }
.foot-bottom { display: flex; justify-content: space-between; gap: 16px; flex-wrap: wrap; margin-top: 40px; padding-top: 22px; border-top: 1px solid var(--line); color: var(--muted); font-size: .84rem; }

/* ---------- reveal on scroll ---------- */
/* Only hidden when JS is running (html.js), so content never depends on scripts. */
.js .reveal { opacity: 0; transform: translateY(16px); transition: opacity .7s ease, transform .7s ease; }
.js .reveal.in { opacity: 1; transform: none; }
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation: none !important; transition: none !important; }
  .reveal { opacity: 1; transform: none; }
  .window { transform: none; }
}

/* ---------- responsive ---------- */
@media (max-width: 1080px) {
  .docs-shell { grid-template-columns: 220px minmax(0, 1fr); }
  .docs-toc { display: none; }
}
@media (max-width: 960px) {
  .hero-grid, .bento, .plan-featured { grid-template-columns: 1fr; }
  .products, .features, .plans, .doc-cards { grid-template-columns: 1fr 1fr; }
  .foot-grid { grid-template-columns: 1fr 1fr; }
  .window { transform: none; }
}
@media (max-width: 760px) {
  .nav-links, .nav-cta .btn-ghost { display: none; }
  .menu-btn { display: inline-grid; }
  .nav-cta { margin-left: 0; }
  .site-header.open .nav-links {
    display: flex; flex-direction: column; align-items: stretch; position: absolute; top: 68px; left: 0; right: 0;
    background: var(--surface); border-bottom: 1px solid var(--line); padding: 10px 16px 16px; margin: 0; box-shadow: var(--shadow);
  }
  .site-header.open .nav-menu { position: static; width: auto; display: grid; grid-template-columns: 1fr; box-shadow: none; border: 0; padding: 0; }
  .products, .features, .steps, .plans, .doc-cards { grid-template-columns: 1fr; }
  .docs-shell { grid-template-columns: 1fr; gap: 28px; padding-top: 20px; }
  .docs-nav { position: static; max-height: none; border: 1px solid var(--line); border-radius: 14px; padding: 4px 10px 10px; order: 2; }
  .window-body { grid-template-columns: 1fr; }
  .side-panel { display: none; }
  .mock-wrap .float-card { display: none; }
  section { padding: 60px 0; }
  .hero { padding: 56px 0 30px; }
  .foot-grid { grid-template-columns: 1fr; }
  .pager { flex-direction: column; }
}
@media (max-width: 420px) {
  .nav-cta .btn-primary { display: none; }
}
