/* JackBot — site stylesheet (dark, AI-product theme)
   ------------------------------------------------------------------ */
:root {
  --bg: #070B14;
  --bg-2: #0B1120;
  --bg-3: #0F172A;
  --surface: rgba(255, 255, 255, 0.04);
  --surface-2: rgba(255, 255, 255, 0.07);
  --line: rgba(255, 255, 255, 0.09);
  --line-strong: rgba(255, 255, 255, 0.16);
  --text: #F1F5F9;
  --text-2: #B6C2D3;
  --muted: #7C8BA1;

  --c1: #38BDF8;   /* sky */
  --c2: #818CF8;   /* indigo */
  --c3: #C084FC;   /* violet */
  --accent: #6D8CFF;
  --accent-strong: #4F6EF7;
  --ok: #34D399;
  --warn: #FBBF24;

  --grad: linear-gradient(135deg, var(--c1) 0%, var(--c2) 50%, var(--c3) 100%);
  --grad-btn: linear-gradient(135deg, #4F8EF7 0%, #6D6AF7 100%);

  --font-head: "Space Grotesk", "Inter", system-ui, sans-serif;
  --font-body: "Inter", system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
  --font-mono: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;

  --r: 16px; --r-lg: 24px; --r-xl: 32px;
  --container: 1200px; --gutter: 24px; --header-h: 76px;
  --shadow: 0 20px 60px -20px rgba(0, 0, 0, 0.6);
  --glow: 0 0 0 1px rgba(109, 140, 255, 0.25), 0 20px 60px -15px rgba(109, 140, 255, 0.45);
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
body {
  margin: 0; font-family: var(--font-body); font-size: 16px; line-height: 1.65;
  color: var(--text-2); background: var(--bg);
  -webkit-font-smoothing: antialiased; -moz-osx-font-smoothing: grayscale;
  overflow-x: hidden;
}
img, svg, video { display: block; max-width: 100%; }
a { color: var(--c1); text-decoration: none; }
a:hover { color: #7DD3FC; }
h1, h2, h3, h4, h5 { font-family: var(--font-head); color: var(--text); line-height: 1.1; letter-spacing: -0.025em; margin: 0 0 .5em; font-weight: 700; }
h1 { font-size: clamp(2.5rem, 5.6vw, 4.4rem); letter-spacing: -0.035em; }
h2 { font-size: clamp(1.9rem, 3.6vw, 2.9rem); letter-spacing: -0.03em; }
h3 { font-size: 1.3rem; }
h4 { font-size: 1.05rem; }
p { margin: 0 0 1em; }
ul, ol { margin: 0 0 1em; padding-left: 1.3em; }
strong { color: var(--text); font-weight: 600; }
button { font: inherit; }
:focus-visible { outline: 2px solid var(--c1); outline-offset: 3px; border-radius: 6px; }
::selection { background: rgba(129, 140, 248, .45); color: #fff; }
.sr-only { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0; }
.skip-link { position: absolute; left: 16px; top: -60px; z-index: 1000; background: var(--c2); color: #fff; padding: 10px 14px; border-radius: 8px; }
.skip-link:focus { top: 12px; color: #fff; }
.container { width: 100%; max-width: var(--container); margin: 0 auto; padding: 0 var(--gutter); }
.container-narrow { max-width: 820px; }
.grad-text { background: var(--grad); -webkit-background-clip: text; background-clip: text; color: transparent; }

/* Background atmosphere */
.bg-stage { position: fixed; inset: 0; z-index: -1; overflow: hidden; pointer-events: none; background: radial-gradient(1200px 600px at 50% -10%, rgba(99, 102, 241, .22), transparent 60%), var(--bg); }
.bg-stage::before, .bg-stage::after { content: ""; position: absolute; border-radius: 50%; filter: blur(90px); opacity: .55; }
.bg-stage::before { width: 720px; height: 720px; left: -260px; top: 30vh; background: radial-gradient(circle, rgba(56, 189, 248, .35), transparent 65%); }
.bg-stage::after { width: 760px; height: 760px; right: -300px; top: 65vh; background: radial-gradient(circle, rgba(192, 132, 252, .3), transparent 65%); }
.grid-lines { position: absolute; inset: 0; pointer-events: none; background-image: linear-gradient(rgba(255,255,255,.04) 1px, transparent 1px), linear-gradient(90deg, rgba(255,255,255,.04) 1px, transparent 1px); background-size: 56px 56px; mask-image: radial-gradient(ellipse at 50% 0%, #000 10%, transparent 70%); -webkit-mask-image: radial-gradient(ellipse at 50% 0%, #000 10%, transparent 70%); }

/* ---------- Buttons ---------- */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 8px; padding: 13px 22px; border-radius: 999px; font-weight: 600; font-size: 15px; line-height: 1; border: 1px solid transparent; cursor: pointer; white-space: nowrap; transition: transform .18s ease, box-shadow .18s ease, background .18s ease, border-color .18s ease, color .18s ease; }
.btn svg { width: 18px; height: 18px; flex: none; }
.btn-primary { background: var(--grad-btn); color: #fff; box-shadow: 0 10px 30px -10px rgba(99, 118, 247, .8), inset 0 1px 0 rgba(255,255,255,.2); }
.btn-primary:hover { transform: translateY(-2px); box-shadow: 0 16px 36px -10px rgba(99, 118, 247, .95), inset 0 1px 0 rgba(255,255,255,.25); color: #fff; }
.btn-ghost { background: rgba(255,255,255,.05); color: var(--text); border-color: var(--line-strong); backdrop-filter: blur(8px); }
.btn-ghost:hover { background: rgba(255,255,255,.1); border-color: rgba(255,255,255,.3); color: #fff; transform: translateY(-2px); }
.btn-white { background: #fff; color: #0B1120; }
.btn-white:hover { background: #E2E8F0; color: #0B1120; transform: translateY(-2px); }
.btn-lg { padding: 17px 30px; font-size: 16px; }
.btn-sm { padding: 9px 16px; font-size: 14px; }
.btn-block { width: 100%; }
.link-arrow { display: inline-flex; align-items: center; gap: 6px; font-weight: 600; color: var(--c1); }
.link-arrow svg { width: 16px; height: 16px; transition: transform .18s ease; }
.link-arrow:hover svg { transform: translateX(3px); }

/* ---------- Header ---------- */
.site-header { position: sticky; top: 0; z-index: 100; transition: background .25s ease, border-color .25s ease, box-shadow .25s ease; border-bottom: 1px solid transparent; }
.site-header.is-scrolled { background: rgba(7, 11, 20, .72); backdrop-filter: blur(16px) saturate(160%); -webkit-backdrop-filter: blur(16px) saturate(160%); border-bottom-color: var(--line); }
.nav-wrap { display: flex; align-items: center; gap: 24px; height: var(--header-h); }
.brand { display: inline-flex; align-items: center; gap: 10px; color: #fff; font-family: var(--font-head); font-weight: 700; font-size: 1.45rem; letter-spacing: -0.03em; flex: none; }
.brand img { height: 32px; width: auto; }
.brand:hover { color: #fff; }
.nav { display: flex; align-items: center; gap: 2px; margin-left: 16px; }
.nav a { color: var(--text-2); font-weight: 500; font-size: 15px; padding: 8px 13px; border-radius: 999px; transition: background .15s, color .15s; }
.nav a:hover, .nav a[aria-current="page"] { color: #fff; background: rgba(255,255,255,.07); }
.nav-actions { margin-left: auto; display: flex; align-items: center; gap: 10px; }
.nav-actions .signin { color: var(--text-2); font-weight: 500; font-size: 15px; padding: 8px 12px; }
.nav-actions .signin:hover { color: #fff; }
.nav-toggle { display: none; width: 44px; height: 44px; border: 1px solid var(--line-strong); border-radius: 12px; background: rgba(255,255,255,.04); align-items: center; justify-content: center; cursor: pointer; color: #fff; }
.nav-toggle svg { width: 22px; height: 22px; }
.nav-toggle .icon-close { display: none; }
.nav-toggle[aria-expanded="true"] .icon-menu { display: none; }
.nav-toggle[aria-expanded="true"] .icon-close { display: block; }
.nav-cta-mobile { display: none; }
@media (max-width: 1023px) { .nav-actions .signin { display: none; } }
@media (max-width: 899px) {
  .nav-toggle { display: inline-flex; }
  .nav-actions .btn { display: none; }
  .site-header, .site-header.is-scrolled { background: rgba(7, 11, 20, .96); backdrop-filter: none; -webkit-backdrop-filter: none; }
  .nav { display: none; position: absolute; left: 0; right: 0; top: var(--header-h); flex-direction: column; align-items: stretch; gap: 2px; background: #090D18; border-bottom: 1px solid var(--line); padding: 12px var(--gutter) 20px; margin: 0; box-shadow: var(--shadow); }
  .nav.is-open { display: flex; }
  .nav a { padding: 12px 12px; font-size: 16px; border-radius: 10px; }
  .nav-cta-mobile { display: flex; flex-direction: column; gap: 10px; margin-top: 12px; padding-top: 14px; border-top: 1px solid var(--line); }
}

/* ---------- Sections ---------- */
.section { padding: 104px 0; position: relative; }
.section-tight { padding: 64px 0; position: relative; }
.section-head { max-width: 760px; margin: 0 auto 56px; text-align: center; }
.section-head.left { margin-left: 0; text-align: left; }
.section-head p { font-size: 1.15rem; color: var(--muted); margin: 0; }
.eyebrow { display: inline-flex; align-items: center; gap: 8px; font-size: 12.5px; font-weight: 600; letter-spacing: .1em; text-transform: uppercase; color: var(--c1); margin-bottom: 18px; padding: 6px 12px; border-radius: 999px; border: 1px solid rgba(56, 189, 248, .3); background: rgba(56, 189, 248, .08); }
.eyebrow::before { content: ""; width: 6px; height: 6px; border-radius: 50%; background: var(--c1); box-shadow: 0 0 10px var(--c1); }
@media (max-width: 767px) { .section { padding: 72px 0; } .section-head { margin-bottom: 36px; } }

/* Reveal on scroll */
.reveal { opacity: 0; transform: translateY(18px); transition: opacity .7s cubic-bezier(.2,.7,.2,1), transform .7s cubic-bezier(.2,.7,.2,1); }
.reveal.in { opacity: 1; transform: none; }
.reveal[data-delay="1"] { transition-delay: .1s; } .reveal[data-delay="2"] { transition-delay: .2s; } .reveal[data-delay="3"] { transition-delay: .3s; } .reveal[data-delay="4"] { transition-delay: .4s; } .reveal[data-delay="5"] { transition-delay: .5s; }

/* ---------- Hero ---------- */
.hero { position: relative; padding: 72px 0 96px; overflow: hidden; }
.hero .container { position: relative; display: grid; grid-template-columns: minmax(0, 1.05fr) minmax(0, .95fr); gap: 56px; align-items: center; }
.hero-copy h1 { margin-bottom: 22px; }
.hero-lede { font-size: 1.25rem; color: var(--text-2); max-width: 560px; margin-bottom: 32px; }
.hero-actions { display: flex; flex-wrap: wrap; gap: 12px; margin-bottom: 30px; }
.hero-points { display: flex; flex-wrap: wrap; gap: 10px 24px; list-style: none; padding: 0; margin: 0; }
.hero-points li { display: inline-flex; align-items: center; gap: 8px; font-size: 14.5px; color: var(--text-2); }
.hero-points svg { width: 18px; height: 18px; color: var(--ok); }
.pill-badge { display: inline-flex; align-items: center; gap: 10px; background: rgba(255,255,255,.05); border: 1px solid var(--line-strong); border-radius: 999px; padding: 6px 14px 6px 6px; font-size: 13.5px; color: var(--text-2); margin-bottom: 24px; backdrop-filter: blur(8px); }
.pill-badge .tag { background: var(--grad); color: #fff; border-radius: 999px; padding: 4px 10px; font-size: 11.5px; font-weight: 700; letter-spacing: .04em; text-transform: uppercase; }

/* Hero: live call / chat demo */
.hero-visual { position: relative; }
.hero-visual::before { content: ""; position: absolute; inset: -10% -10% -10% -10%; background: radial-gradient(closest-side, rgba(109, 140, 255, .35), transparent 70%); filter: blur(30px); z-index: 0; }
.chat-card { position: relative; z-index: 1; background: linear-gradient(180deg, rgba(20, 27, 45, .9), rgba(12, 17, 31, .95)); border: 1px solid var(--line-strong); border-radius: var(--r-xl); box-shadow: var(--shadow), inset 0 1px 0 rgba(255,255,255,.08); overflow: hidden; backdrop-filter: blur(20px); }
.chat-head { display: flex; align-items: center; gap: 12px; padding: 16px 18px; border-bottom: 1px solid var(--line); }
.chat-head .avatar { width: 42px; height: 42px; border-radius: 50%; background: radial-gradient(circle at 30% 30%, #1E293B, #0B1120); border: 1px solid var(--line-strong); overflow: hidden; display: grid; place-items: center; }
.chat-head .avatar img { width: 36px; height: 36px; object-fit: contain; }
.chat-head .who { line-height: 1.2; }
.chat-head .who strong { display: block; color: #fff; font-size: 14.5px; }
.chat-head .who span { font-size: 12.5px; color: var(--muted); }
.chat-head .status { margin-left: auto; display: inline-flex; align-items: center; gap: 8px; font-size: 12px; font-weight: 600; color: var(--ok); background: rgba(52, 211, 153, .1); border: 1px solid rgba(52, 211, 153, .3); padding: 5px 10px; border-radius: 999px; }
.chat-head .status i { width: 7px; height: 7px; border-radius: 50%; background: var(--ok); animation: blink 1.6s ease-in-out infinite; }
@keyframes blink { 0%, 100% { opacity: 1; } 50% { opacity: .35; } }
.chat-body { padding: 18px; display: flex; flex-direction: column; gap: 12px; min-height: 330px; }
.msg { max-width: 82%; padding: 11px 14px; border-radius: 16px; font-size: 14.5px; line-height: 1.5; opacity: 0; transform: translateY(8px) scale(.98); animation: msgIn .45s cubic-bezier(.2,.7,.2,1) forwards; }
.msg.bot { align-self: flex-start; background: rgba(255,255,255,.06); border: 1px solid var(--line); color: var(--text); border-bottom-left-radius: 6px; }
.msg.user { align-self: flex-end; background: var(--grad-btn); color: #fff; border-bottom-right-radius: 6px; box-shadow: 0 8px 20px -10px rgba(99,118,247,.8); }
.msg .meta { display: block; font-size: 11px; color: var(--muted); margin-top: 4px; }
.msg.user .meta { color: rgba(255,255,255,.7); }
.msg .card-inline { margin-top: 8px; background: rgba(0,0,0,.25); border: 1px solid var(--line); border-radius: 10px; padding: 10px 12px; display: flex; align-items: center; gap: 10px; font-size: 13px; }
.msg .card-inline svg { width: 18px; height: 18px; color: var(--c1); flex: none; }
.msg .card-inline b { color: #fff; display: block; font-weight: 600; }
.typing { display: inline-flex; gap: 4px; padding: 12px 14px; }
.typing i { width: 6px; height: 6px; border-radius: 50%; background: var(--muted); animation: dots 1.2s infinite ease-in-out; }
.typing i:nth-child(2) { animation-delay: .15s; } .typing i:nth-child(3) { animation-delay: .3s; }
@keyframes dots { 0%, 80%, 100% { transform: translateY(0); opacity: .5; } 40% { transform: translateY(-4px); opacity: 1; } }
@keyframes msgIn { to { opacity: 1; transform: none; } }
.chat-foot { display: flex; align-items: center; gap: 10px; padding: 14px 18px; border-top: 1px solid var(--line); background: rgba(0,0,0,.2); }
.wave { display: flex; align-items: center; gap: 3px; height: 26px; }
.wave i { width: 3px; border-radius: 3px; background: var(--grad); animation: wave 1.1s ease-in-out infinite; height: 30%; }
.wave i:nth-child(2) { animation-delay: .1s; } .wave i:nth-child(3) { animation-delay: .2s; } .wave i:nth-child(4) { animation-delay: .3s; } .wave i:nth-child(5) { animation-delay: .4s; } .wave i:nth-child(6) { animation-delay: .5s; } .wave i:nth-child(7) { animation-delay: .6s; } .wave i:nth-child(8) { animation-delay: .7s; }
@keyframes wave { 0%, 100% { height: 25%; } 50% { height: 100%; } }
.chat-foot .label { font-size: 13px; color: var(--text-2); }
.chat-foot .timer { margin-left: auto; font-family: var(--font-mono); font-size: 13px; color: var(--muted); }
.float-card { position: absolute; z-index: 2; background: rgba(15, 23, 42, .9); border: 1px solid var(--line-strong); border-radius: 16px; padding: 12px 14px; display: flex; align-items: center; gap: 12px; box-shadow: var(--shadow); backdrop-filter: blur(12px); font-size: 13px; color: var(--text-2); animation: floaty 6s ease-in-out infinite; }
.float-card b { display: block; color: #fff; font-size: 14px; }
.float-card .ic { width: 38px; height: 38px; border-radius: 12px; display: grid; place-items: center; background: rgba(56, 189, 248, .15); color: var(--c1); flex: none; }
.float-card .ic svg { width: 20px; height: 20px; }
.float-card.one { right: -28px; top: 36px; }
.float-card.two { left: -34px; bottom: 60px; animation-delay: -3s; }
.float-card.two .ic { background: rgba(52, 211, 153, .15); color: var(--ok); }
@keyframes floaty { 0%, 100% { transform: translateY(0); } 50% { transform: translateY(-8px); } }
.hero-mascot { position: absolute; right: -40px; bottom: -40px; width: 200px; z-index: 0; opacity: .9; filter: drop-shadow(0 20px 40px rgba(0,0,0,.5)); display: none; }
@media (max-width: 1023px) {
  .hero .container { grid-template-columns: 1fr; gap: 56px; }
  .hero-visual { max-width: 580px; margin: 0 auto; width: 100%; }
}
@media (max-width: 639px) {
  .hero { padding: 40px 0 64px; }
  .float-card { display: none; }
  .chat-body { min-height: 0; }
  .msg { max-width: 92%; }
}

/* ---------- Logo strip ---------- */
.logos-strip { padding: 10px 0 20px; }
.logos-strip .label { text-align: center; font-size: 13px; letter-spacing: .08em; text-transform: uppercase; color: var(--muted); margin-bottom: 26px; }
.logos-row { display: flex; flex-wrap: wrap; justify-content: center; align-items: center; gap: 28px 56px; opacity: .8; }
.logos-row img { height: 28px; width: auto; max-width: 150px; object-fit: contain; filter: grayscale(1) brightness(1.6); transition: filter .2s, opacity .2s; }
.logos-row img:hover { filter: none; }
@media (max-width: 639px) { .logos-row { gap: 20px 32px; } .logos-row img { height: 22px; max-width: 110px; } }

/* ---------- Bento features ---------- */
.bento { display: grid; grid-template-columns: repeat(6, 1fr); gap: 20px; }
.bento > * { grid-column: span 2; }
.bento .wide { grid-column: span 3; }
.bento .full { grid-column: span 6; }
.tile { position: relative; background: var(--surface); border: 1px solid var(--line); border-radius: var(--r-lg); padding: 30px; overflow: hidden; display: flex; flex-direction: column; transition: transform .25s ease, border-color .25s ease, background .25s ease; }
.tile::after { content: ""; position: absolute; inset: 0; background: radial-gradient(420px 200px at var(--mx, 50%) var(--my, 0%), rgba(129, 140, 248, .18), transparent 60%); opacity: 0; transition: opacity .3s; pointer-events: none; }
.tile:hover { transform: translateY(-3px); border-color: var(--line-strong); background: var(--surface-2); }
.tile:hover::after { opacity: 1; }
.tile .ic { width: 46px; height: 46px; border-radius: 14px; display: grid; place-items: center; background: linear-gradient(135deg, rgba(56,189,248,.2), rgba(192,132,252,.2)); border: 1px solid var(--line-strong); color: #fff; margin-bottom: 20px; }
.tile .ic svg { width: 22px; height: 22px; }
.tile h3 { font-size: 1.2rem; margin-bottom: 8px; }
.tile p { color: var(--text-2); margin: 0; font-size: 15px; }
.tile .art { margin-top: 22px; position: relative; }
.tile-split { display: grid; grid-template-columns: 1fr 1fr; gap: 24px; align-items: center; }
@media (max-width: 767px) { .tile-split { grid-template-columns: 1fr; } }
/* small UI arts inside tiles */
.art-rows { display: grid; gap: 8px; }
.art-rows .row { display: flex; align-items: center; gap: 10px; background: rgba(0,0,0,.25); border: 1px solid var(--line); border-radius: 10px; padding: 9px 12px; font-size: 13px; color: var(--text); }
.art-rows .row .dot { width: 8px; height: 8px; border-radius: 50%; background: var(--ok); }
.art-rows .row .r { margin-left: auto; color: var(--muted); font-family: var(--font-mono); font-size: 12px; }
.art-calendar { display: grid; grid-template-columns: repeat(7, 1fr); gap: 6px; }
.art-calendar span { aspect-ratio: 1; display: grid; place-items: center; font-size: 12px; border-radius: 8px; background: rgba(0,0,0,.25); border: 1px solid var(--line); color: var(--muted); }
.art-calendar span.on { background: var(--grad-btn); color: #fff; border-color: transparent; font-weight: 600; }
.art-calendar span.dim { opacity: .35; }
.art-handoff { display: flex; align-items: center; gap: 10px; }
.art-handoff .node { flex: 1; text-align: center; padding: 12px 8px; border-radius: 12px; background: rgba(0,0,0,.25); border: 1px solid var(--line); font-size: 12.5px; color: var(--text); }
.art-handoff .node.hot { border-color: rgba(56,189,248,.5); background: rgba(56,189,248,.1); }
.art-handoff svg { width: 18px; height: 18px; color: var(--muted); flex: none; }
.art-bars { display: flex; align-items: flex-end; gap: 6px; height: 90px; }
.art-bars i { flex: 1; border-radius: 6px 6px 2px 2px; background: linear-gradient(180deg, var(--c2), rgba(129,140,248,.25)); }
.art-channels { display: flex; gap: 8px; flex-wrap: wrap; }
.art-channels span { display: inline-flex; align-items: center; gap: 6px; padding: 7px 11px; border-radius: 999px; background: rgba(0,0,0,.25); border: 1px solid var(--line); font-size: 12.5px; color: var(--text); }
.art-channels svg { width: 14px; height: 14px; color: var(--c1); }
@media (max-width: 1023px) { .bento { grid-template-columns: repeat(2, 1fr); } .bento > *, .bento .wide { grid-column: span 1; } .bento .full { grid-column: span 2; } }
@media (max-width: 639px) { .bento { grid-template-columns: 1fr; } .bento > *, .bento .wide, .bento .full { grid-column: span 1; } }

/* ---------- Split / product feature sections ---------- */
.split { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 64px; align-items: center; }
.split.reverse > :first-child { order: 2; }
.split h2 { font-size: clamp(1.7rem, 3vw, 2.4rem); }
.split p.lead { font-size: 1.1rem; color: var(--text-2); }
.checks { list-style: none; padding: 0; margin: 20px 0 26px; display: grid; gap: 12px; }
.checks li { display: flex; gap: 12px; align-items: flex-start; color: var(--text-2); }
.checks svg { width: 20px; height: 20px; color: var(--ok); flex: none; margin-top: 2px; }
.checks strong { color: var(--text); }
.panel { position: relative; background: linear-gradient(180deg, rgba(20, 27, 45, .85), rgba(12, 17, 31, .95)); border: 1px solid var(--line-strong); border-radius: var(--r-xl); box-shadow: var(--shadow); padding: 22px; overflow: hidden; }
.panel::before { content: ""; position: absolute; inset: -40%; background: conic-gradient(from 180deg at 50% 50%, rgba(56,189,248,.0), rgba(129,140,248,.18), rgba(192,132,252,.0)); filter: blur(40px); z-index: 0; }
.panel > * { position: relative; z-index: 1; }
.panel-title { display: flex; align-items: center; justify-content: space-between; font-size: 13px; color: var(--muted); margin-bottom: 14px; }
.panel-title b { color: var(--text); font-weight: 600; }
.kpis { display: grid; grid-template-columns: repeat(3, 1fr); gap: 10px; margin-bottom: 14px; }
.kpi { background: rgba(0,0,0,.25); border: 1px solid var(--line); border-radius: 12px; padding: 12px; }
.kpi .k { font-family: var(--font-head); font-size: 1.5rem; font-weight: 700; color: #fff; letter-spacing: -.03em; line-height: 1; }
.kpi .v { font-size: 12px; color: var(--muted); margin-top: 4px; }
.kpi .up { color: var(--ok); font-size: 11.5px; }
.chart { height: 150px; }
.chart svg { width: 100%; height: 100%; }
.timeline { display: grid; gap: 10px; }
.timeline .ev { display: grid; grid-template-columns: 54px 1fr; gap: 12px; align-items: start; font-size: 13.5px; }
.timeline .t { font-family: var(--font-mono); color: var(--muted); font-size: 12px; padding-top: 2px; }
.timeline .ev > div:last-child { background: rgba(0,0,0,.25); border: 1px solid var(--line); border-radius: 10px; padding: 9px 12px; color: var(--text); }
.timeline .ev .tag { display: inline-block; font-size: 11px; font-weight: 700; letter-spacing: .04em; text-transform: uppercase; padding: 2px 7px; border-radius: 6px; margin-right: 6px; }
.tag-ai { background: rgba(129,140,248,.2); color: #A5B4FC; } .tag-human { background: rgba(52,211,153,.18); color: #6EE7B7; } .tag-sys { background: rgba(251,191,36,.18); color: #FCD34D; }
.integr-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 10px; }
.integr-grid span { background: rgba(0,0,0,.25); border: 1px solid var(--line); border-radius: 12px; padding: 14px 10px; text-align: center; font-size: 13px; font-weight: 600; color: var(--text); display: grid; gap: 6px; justify-items: center; }
.integr-grid span i { width: 28px; height: 28px; border-radius: 8px; background: var(--grad); opacity: .85; display: block; }
.integr-grid span.center { background: var(--grad-btn); border-color: transparent; color: #fff; }
@media (max-width: 1023px) { .split { grid-template-columns: 1fr; gap: 36px; } .split.reverse > :first-child { order: 0; } }

/* ---------- Steps ---------- */
.steps { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; position: relative; }
.step { background: var(--surface); border: 1px solid var(--line); border-radius: var(--r-lg); padding: 30px 28px; position: relative; }
.step .n { width: 44px; height: 44px; border-radius: 14px; background: var(--grad-btn); color: #fff; display: grid; place-items: center; font-family: var(--font-head); font-weight: 700; font-size: 16px; margin-bottom: 20px; box-shadow: 0 10px 24px -10px rgba(99,118,247,.9); }
.step h3 { font-size: 1.2rem; margin-bottom: 6px; }
.step p { margin: 0; font-size: 15px; color: var(--text-2); }
@media (max-width: 767px) { .steps { grid-template-columns: 1fr; } }

/* ---------- Stats ---------- */
.stats-band { border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); background: linear-gradient(90deg, rgba(56,189,248,.06), rgba(129,140,248,.08), rgba(192,132,252,.06)); }
.stats { display: grid; grid-template-columns: repeat(5, 1fr); gap: 20px; padding: 56px 0; }
.stat { text-align: center; padding: 0 10px; border-left: 1px solid var(--line); }
.stat:first-child { border-left: 0; }
.stat .k { font-family: var(--font-head); font-size: clamp(2rem, 3.6vw, 3rem); font-weight: 700; letter-spacing: -.04em; line-height: 1; margin-bottom: 8px; background: var(--grad); -webkit-background-clip: text; background-clip: text; color: transparent; }
.stat .v { font-size: 14px; color: var(--text-2); }
@media (max-width: 1023px) { .stats { grid-template-columns: repeat(3, 1fr); row-gap: 36px; } .stat:nth-child(4) { border-left: 0; } }
@media (max-width: 639px) { .stats { grid-template-columns: repeat(2, 1fr); } .stat { border-left: 0; } }

/* ---------- Testimonials ---------- */
.quotes { display: grid; grid-template-columns: repeat(2, 1fr); gap: 20px; }
.quote { background: var(--surface); border: 1px solid var(--line); border-radius: var(--r-lg); padding: 30px; display: flex; flex-direction: column; gap: 18px; }
.quote .stars { display: flex; gap: 3px; color: var(--warn); }
.quote .stars svg { width: 16px; height: 16px; fill: currentColor; }
.quote h3 { font-size: 1.15rem; margin: 0; }
.quote p { color: var(--text-2); margin: 0; flex: 1; font-size: 15.5px; }
.quote p strong { color: var(--text); }
.quote .who { display: flex; align-items: center; gap: 12px; }
.quote .who .av { width: 42px; height: 42px; border-radius: 50%; display: grid; place-items: center; font-weight: 700; font-size: 14px; color: #fff; background: var(--grad); }
.quote .who b { display: block; color: var(--text); font-size: 14.5px; }
.quote .who span { font-size: 13px; color: var(--muted); }
.quotes.three { grid-template-columns: repeat(3, 1fr); }
@media (max-width: 1023px) { .quotes, .quotes.three { grid-template-columns: 1fr 1fr; } }
@media (max-width: 639px) { .quotes, .quotes.three { grid-template-columns: 1fr; } }

/* ---------- Integrations ---------- */
.pills { display: flex; flex-wrap: wrap; justify-content: center; gap: 10px; }
.pills span { display: inline-flex; align-items: center; gap: 8px; padding: 10px 16px; border-radius: 999px; background: var(--surface); border: 1px solid var(--line); font-weight: 500; font-size: 14px; color: var(--text); }
.pills span i { width: 8px; height: 8px; border-radius: 50%; background: var(--grad); }

/* ---------- Pricing ---------- */
.plans { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; align-items: stretch; }
.plan { position: relative; background: var(--surface); border: 1px solid var(--line); border-radius: var(--r-lg); padding: 32px 30px; display: flex; flex-direction: column; }
.plan.featured { background: linear-gradient(180deg, rgba(109,140,255,.14), rgba(109,140,255,.04)); border-color: rgba(109,140,255,.5); box-shadow: var(--glow); }
.plan .badge { position: absolute; top: -13px; left: 30px; background: var(--grad); color: #fff; font-size: 11.5px; font-weight: 700; letter-spacing: .06em; text-transform: uppercase; padding: 6px 12px; border-radius: 999px; }
.plan h3 { font-size: 1.25rem; margin-bottom: 4px; }
.plan .for { color: var(--muted); font-size: 14px; margin-bottom: 20px; }
.plan .price { display: flex; align-items: baseline; gap: 6px; margin-bottom: 22px; }
.plan .price .amt { font-family: var(--font-head); font-size: 3rem; font-weight: 700; color: #fff; letter-spacing: -.04em; line-height: 1; }
.plan .price .per { color: var(--muted); font-size: 14px; }
.plan .inc { font-size: 12.5px; font-weight: 600; letter-spacing: .08em; text-transform: uppercase; color: var(--muted); margin: 22px 0 12px; }
.plan ul { list-style: none; padding: 0; margin: 0 0 8px; display: grid; gap: 10px; flex: 1; }
.plan li { display: flex; gap: 10px; align-items: flex-start; font-size: 14.5px; color: var(--text-2); }
.plan li svg { width: 18px; height: 18px; color: var(--c1); flex: none; margin-top: 2px; }
.guarantee { display: flex; align-items: center; gap: 20px; background: rgba(52,211,153,.07); border: 1px solid rgba(52,211,153,.3); border-radius: var(--r-lg); padding: 24px 28px; margin-top: 28px; }
.guarantee .ic { width: 54px; height: 54px; border-radius: 16px; background: rgba(52,211,153,.15); color: var(--ok); display: grid; place-items: center; flex: none; }
.guarantee .ic svg { width: 26px; height: 26px; }
.guarantee h3 { font-size: 1.1rem; margin-bottom: 4px; }
.guarantee p { margin: 0; font-size: 15px; }
.notice { background: linear-gradient(135deg, rgba(56,189,248,.1), rgba(192,132,252,.1)); border: 1px solid var(--line-strong); border-radius: var(--r-lg); padding: 26px 30px; display: grid; grid-template-columns: 1fr auto; gap: 20px; align-items: center; }
.notice h3 { font-size: 1.15rem; margin-bottom: 4px; }
.notice p { margin: 0; font-size: 15px; }
@media (max-width: 1023px) { .plans { grid-template-columns: 1fr; max-width: 520px; margin: 0 auto; } .notice { grid-template-columns: 1fr; } }

/* ---------- FAQ ---------- */
.faq { max-width: 820px; margin: 0 auto; display: grid; gap: 10px; }
.faq details { background: var(--surface); border: 1px solid var(--line); border-radius: 16px; transition: border-color .2s, background .2s; }
.faq details[open] { border-color: var(--line-strong); background: var(--surface-2); }
.faq summary { list-style: none; cursor: pointer; display: flex; align-items: center; justify-content: space-between; gap: 20px; padding: 20px 22px; font-family: var(--font-head); font-weight: 600; font-size: 1.05rem; color: var(--text); }
.faq summary::-webkit-details-marker { display: none; }
.faq summary .chev { flex: none; width: 30px; height: 30px; border-radius: 50%; border: 1px solid var(--line-strong); display: grid; place-items: center; transition: transform .2s, background .2s; }
.faq summary .chev svg { width: 15px; height: 15px; }
.faq details[open] summary .chev { transform: rotate(180deg); background: var(--grad-btn); border-color: transparent; }
.faq .answer { padding: 0 22px 22px; color: var(--text-2); max-width: 740px; }
.faq .answer p:last-child { margin: 0; }

/* ---------- Blog ---------- */
.posts { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; }
.post-card { background: var(--surface); border: 1px solid var(--line); border-radius: var(--r-lg); overflow: hidden; display: flex; flex-direction: column; transition: transform .25s, border-color .25s; }
.post-card:hover { transform: translateY(-4px); border-color: var(--line-strong); }
.post-card .thumb { aspect-ratio: 16 / 9; overflow: hidden; }
.post-card .thumb img { width: 100%; height: 100%; object-fit: cover; transition: transform .5s; }
.post-card:hover .thumb img { transform: scale(1.04); }
.post-card .body { padding: 22px 24px 24px; display: flex; flex-direction: column; gap: 10px; flex: 1; }
.post-card .cat { font-size: 12px; font-weight: 700; letter-spacing: .08em; text-transform: uppercase; color: var(--c1); }
.post-card h3 { font-size: 1.15rem; margin: 0; }
.post-card h3 a { color: var(--text); }
.post-card h3 a:hover { color: #fff; }
.post-card p { margin: 0; font-size: 14.5px; color: var(--text-2); flex: 1; }
.post-card .meta { font-size: 13px; color: var(--muted); }
@media (max-width: 1023px) { .posts { grid-template-columns: 1fr 1fr; } }
@media (max-width: 639px) { .posts { grid-template-columns: 1fr; } }
.article { max-width: 780px; margin: 0 auto; }
.article .banner { border-radius: var(--r-lg); overflow: hidden; border: 1px solid var(--line); box-shadow: var(--shadow); margin-bottom: 40px; }
.article .banner img { width: 100%; aspect-ratio: 16/9; object-fit: cover; }
.article-body { font-size: 17px; color: var(--text-2); }
.article-body h3 { font-size: 1.35rem; margin: 2em 0 .6em; }
.article-body p { margin-bottom: 1.2em; }
.article-body li { margin-bottom: .5em; }
.article-body .theme-text-primary { color: var(--c1); }
.article-body figure { margin: 2.2em 0; background: var(--surface); border: 1px solid var(--line); border-left: 3px solid var(--c2); border-radius: 16px; padding: 26px 30px; }
.article-body blockquote { margin: 0; }
.article-body blockquote p { font-family: var(--font-head); font-size: 1.25rem; color: var(--text); line-height: 1.45; margin: 0 0 .6em; }
.article-body .blockquote-footer { color: var(--muted); font-size: 14px; }
.article-body .blockquote-footer::before { content: "— "; }
.article-body .quote-icon-holder { display: none; }
.article-body .has-dropcap::first-letter { font-family: var(--font-head); font-size: 3.4em; font-weight: 700; float: left; line-height: .85; margin: .08em .12em 0 0; background: var(--grad); -webkit-background-clip: text; background-clip: text; color: transparent; }
.author { display: flex; gap: 18px; align-items: center; background: var(--surface); border: 1px solid var(--line); border-radius: var(--r-lg); padding: 24px 26px; margin-top: 40px; }
.author .av { width: 56px; height: 56px; border-radius: 50%; display: grid; place-items: center; font-family: var(--font-head); font-weight: 700; color: #fff; background: var(--grad); flex: none; }
.author h5 { margin: 0 0 4px; font-size: 1rem; }
.author p { margin: 0; font-size: 14.5px; }
.post-nav { display: flex; justify-content: space-between; gap: 16px; margin-top: 40px; flex-wrap: wrap; }

/* ---------- CTA ---------- */
.cta { position: relative; overflow: hidden; border-radius: var(--r-xl); padding: 80px 40px; text-align: center; background: linear-gradient(135deg, rgba(56,189,248,.16), rgba(129,140,248,.2) 50%, rgba(192,132,252,.16)); border: 1px solid var(--line-strong); }
.cta::before { content: ""; position: absolute; inset: 0; background: radial-gradient(600px 300px at 50% 120%, rgba(109,140,255,.5), transparent 70%); pointer-events: none; }
.cta > * { position: relative; }
.cta h2 { max-width: 720px; margin: 0 auto 14px; }
.cta p { color: var(--text-2); font-size: 1.15rem; max-width: 560px; margin: 0 auto 30px; }
.cta-actions { display: flex; flex-wrap: wrap; gap: 12px; justify-content: center; }
.cta .mascot { position: absolute; right: 30px; bottom: -30px; width: 180px; opacity: .95; filter: drop-shadow(0 20px 40px rgba(0,0,0,.5)); }
@media (max-width: 767px) { .cta { padding: 56px 24px; } .cta .mascot { display: none; } }

/* ---------- Footer ---------- */
.site-footer { border-top: 1px solid var(--line); padding: 72px 0 32px; font-size: 14.5px; color: var(--text-2); background: rgba(0,0,0,.25); }
.footer-grid { display: grid; grid-template-columns: 1.6fr repeat(3, 1fr); gap: 40px; padding-bottom: 48px; border-bottom: 1px solid var(--line); }
.footer-brand p { max-width: 320px; margin: 16px 0 20px; }
.footer-contact { display: grid; gap: 8px; }
.footer-contact a, .footer-contact span { display: inline-flex; align-items: flex-start; gap: 8px; color: var(--text); font-weight: 500; }
.footer-contact svg { width: 16px; height: 16px; color: var(--c1); flex: none; margin-top: 3px; }
.site-footer h4 { color: var(--text); font-size: 13px; letter-spacing: .08em; text-transform: uppercase; margin-bottom: 18px; }
.site-footer ul { list-style: none; padding: 0; margin: 0; display: grid; gap: 10px; }
.site-footer ul a { color: var(--text-2); }
.site-footer ul a:hover { color: #fff; }
.footer-bottom { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 12px; padding-top: 26px; font-size: 13px; color: var(--muted); }
.footer-bottom .meta { display: flex; flex-wrap: wrap; gap: 8px 18px; }
.footer-bottom a { color: var(--text-2); }
.footer-bottom a:hover { color: #fff; }
@media (max-width: 1023px) { .footer-grid { grid-template-columns: 1fr 1fr 1fr; } .footer-brand { grid-column: 1 / -1; } }
@media (max-width: 639px) { .footer-grid { grid-template-columns: 1fr 1fr; } }

/* ---------- Page hero (inner) ---------- */
.page-hero { position: relative; padding: 72px 0 56px; text-align: center; overflow: hidden; }
.page-hero h1 { font-size: clamp(2.2rem, 4.4vw, 3.4rem); margin-bottom: 14px; }
.page-hero .lede { font-size: 1.15rem; color: var(--text-2); max-width: 680px; margin: 0 auto; }
.page-hero .meta { display: flex; flex-wrap: wrap; justify-content: center; gap: 8px 20px; margin-top: 18px; font-size: 14px; color: var(--muted); }
.page-hero .meta strong { color: var(--text); font-weight: 600; }
.page-hero.left { text-align: left; }
.page-hero.left .lede, .page-hero.left .meta { margin-left: 0; justify-content: flex-start; }
.breadcrumb { display: inline-flex; gap: 8px; font-size: 13.5px; color: var(--muted); margin-bottom: 18px; }
.breadcrumb a { color: var(--muted); }
.breadcrumb a:hover { color: #fff; }

/* ---------- Demo page ---------- */
.demos { display: grid; grid-template-columns: repeat(2, 1fr); gap: 20px; }
.demo-card { background: var(--surface); border: 1px solid var(--line); border-radius: var(--r-lg); padding: 30px; display: grid; grid-template-columns: 56px 1fr; gap: 18px; align-items: start; transition: transform .25s, border-color .25s; }
.demo-card:hover { transform: translateY(-3px); border-color: var(--line-strong); }
.demo-card .ic { width: 56px; height: 56px; border-radius: 16px; display: grid; place-items: center; background: linear-gradient(135deg, rgba(56,189,248,.2), rgba(192,132,252,.2)); border: 1px solid var(--line-strong); color: #fff; }
.demo-card .ic svg { width: 26px; height: 26px; }
.demo-card h3 { font-size: 1.2rem; margin-bottom: 6px; }
.demo-card p { margin: 0 0 16px; font-size: 15px; }
.demo-card .num { display: inline-flex; align-items: center; gap: 10px; font-family: var(--font-mono); font-size: 1.1rem; color: #fff; background: rgba(0,0,0,.3); border: 1px solid var(--line); border-radius: 12px; padding: 10px 14px; margin-bottom: 14px; }
.demo-card .num svg { width: 18px; height: 18px; color: var(--c1); }
.demo-card .tags { display: flex; flex-wrap: wrap; gap: 6px; margin-bottom: 14px; }
.demo-card .tags span { font-size: 12px; padding: 4px 9px; border-radius: 999px; background: rgba(255,255,255,.06); border: 1px solid var(--line); color: var(--text-2); }
@media (max-width: 767px) { .demos { grid-template-columns: 1fr; } .demo-card { grid-template-columns: 1fr; } }
.how-demo { display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; margin-top: 40px; }
.how-demo div { background: var(--surface); border: 1px solid var(--line); border-radius: 16px; padding: 18px 20px; font-size: 14.5px; }
.how-demo b { display: block; color: var(--text); margin-bottom: 4px; }
@media (max-width: 767px) { .how-demo { grid-template-columns: 1fr; } }

/* ---------- Contact / forms ---------- */
.contact-layout { display: grid; grid-template-columns: minmax(0, 1.15fr) minmax(0, .85fr); gap: 40px; align-items: start; }
.form-card { background: var(--surface); border: 1px solid var(--line); border-radius: var(--r-xl); padding: 36px; }
.form-card h2 { font-size: 1.5rem; margin-bottom: 6px; }
.form-card > p { color: var(--muted); margin-bottom: 26px; }
.form-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 18px; }
.form-grid .full { grid-column: 1 / -1; }
.field label { display: block; font-size: 13.5px; font-weight: 600; color: var(--text); margin-bottom: 7px; }
.field label span { color: var(--muted); font-weight: 400; }
.field input, .field textarea, .field select { width: 100%; border: 1px solid var(--line-strong); border-radius: 12px; padding: 12px 14px; font: inherit; font-size: 15px; color: var(--text); background: rgba(0,0,0,.25); transition: border-color .15s, box-shadow .15s; color-scheme: dark; }
.field input::placeholder, .field textarea::placeholder { color: var(--muted); }
.field input:focus, .field textarea:focus, .field select:focus { outline: none; border-color: var(--c2); box-shadow: 0 0 0 4px rgba(129,140,248,.2); }
.field textarea { min-height: 150px; resize: vertical; }
.field select option { background: #0F172A; }
.form-actions { display: flex; flex-wrap: wrap; align-items: center; gap: 16px; margin-top: 8px; }
.form-actions .note { font-size: 13px; color: var(--muted); }
.form-status { margin-top: 16px; padding: 12px 14px; border-radius: 10px; font-size: 14.5px; display: none; }
.form-status.is-ok { display: block; background: rgba(52,211,153,.12); color: #6EE7B7; }
.form-status.is-error { display: block; background: rgba(248,113,113,.12); color: #FCA5A5; }
.form-success { text-align: center; padding: 30px 10px; }
.form-success .icon { width: 64px; height: 64px; border-radius: 50%; background: rgba(52,211,153,.15); color: var(--ok); display: grid; place-items: center; margin: 0 auto 18px; }
.form-success .icon svg { width: 30px; height: 30px; }
.contact-cards { display: grid; gap: 14px; }
.contact-card { background: var(--surface); border: 1px solid var(--line); border-radius: var(--r-lg); padding: 22px 24px; display: flex; gap: 16px; }
.contact-card .icon { flex: none; width: 44px; height: 44px; border-radius: 12px; background: linear-gradient(135deg, rgba(56,189,248,.2), rgba(192,132,252,.2)); border: 1px solid var(--line-strong); color: #fff; display: grid; place-items: center; }
.contact-card .icon svg { width: 20px; height: 20px; }
.contact-card h3 { font-size: 1.05rem; margin-bottom: 6px; }
.contact-card p { margin: 0 0 4px; font-size: 14.5px; }
.contact-card .small { font-size: 13px; color: var(--muted); }
@media (max-width: 1023px) { .contact-layout { grid-template-columns: 1fr; } }
@media (max-width: 639px) { .form-card { padding: 24px 20px; } .form-grid { grid-template-columns: 1fr; } }

/* Auth */
.auth { min-height: calc(100vh - var(--header-h)); display: grid; place-items: center; padding: 60px 0; }
.auth-card { width: 100%; max-width: 440px; background: var(--surface); border: 1px solid var(--line-strong); border-radius: var(--r-xl); padding: 40px 36px; box-shadow: var(--shadow); }
.auth-card h1 { font-size: 1.7rem; margin-bottom: 6px; }
.auth-card .sub { color: var(--muted); margin-bottom: 26px; font-size: 15px; }
.auth-card .field { margin-bottom: 16px; }
.auth-row { display: flex; justify-content: space-between; align-items: center; gap: 12px; margin: 4px 0 20px; font-size: 14px; }
.auth-row label { display: inline-flex; align-items: center; gap: 8px; color: var(--text-2); }
.auth-foot { text-align: center; margin-top: 22px; font-size: 14px; color: var(--muted); }
@media (max-width: 639px) { .auth-card { padding: 30px 22px; } }

/* ---------- Team ---------- */
.team { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; }
.member { background: var(--surface); border: 1px solid var(--line); border-radius: var(--r-lg); padding: 30px; }
.member img { width: 96px; height: 96px; border-radius: 50%; object-fit: cover; border: 2px solid var(--line-strong); margin-bottom: 18px; background: #0F172A; }
.member .role { font-size: 12.5px; letter-spacing: .08em; text-transform: uppercase; color: var(--c1); font-weight: 600; margin-bottom: 4px; }
.member h3 { font-size: 1.25rem; margin-bottom: 10px; }
.member p { margin: 0; font-size: 14.5px; color: var(--text-2); }
.member p + p { margin-top: 8px; }
@media (max-width: 1023px) { .team { grid-template-columns: 1fr; max-width: 560px; margin: 0 auto; } }
.values { display: grid; grid-template-columns: repeat(4, 1fr); gap: 16px; }
.value { background: var(--surface); border: 1px solid var(--line); border-radius: 16px; padding: 22px; }
.value svg { width: 22px; height: 22px; color: var(--c1); margin-bottom: 12px; }
.value b { display: block; color: var(--text); margin-bottom: 4px; }
.value span { font-size: 14px; color: var(--text-2); }
@media (max-width: 1023px) { .values { grid-template-columns: 1fr 1fr; } }
@media (max-width: 639px) { .values { grid-template-columns: 1fr; } }

/* ---------- Documents ---------- */
.doc-layout { display: grid; grid-template-columns: 250px minmax(0, 1fr); gap: 56px; align-items: start; }
.doc-toc { position: sticky; top: calc(var(--header-h) + 24px); }
.doc-toc h4 { font-size: 12.5px; letter-spacing: .08em; text-transform: uppercase; color: var(--muted); margin-bottom: 12px; }
.doc-toc ol { list-style: none; padding: 0; margin: 0; border-left: 1px solid var(--line); display: grid; gap: 2px; max-height: calc(100vh - var(--header-h) - 80px); overflow: auto; }
.doc-toc a { display: block; padding: 6px 14px; font-size: 13.5px; color: var(--muted); border-left: 2px solid transparent; margin-left: -1px; line-height: 1.35; }
.doc-toc a:hover { color: var(--text); }
.doc-toc a.is-active { color: #fff; border-left-color: var(--c1); }
.doc-body { max-width: 760px; }
.doc-body h2 { font-size: 1.5rem; margin: 2.2em 0 .6em; scroll-margin-top: calc(var(--header-h) + 20px); }
.doc-body h2:first-child { margin-top: 0; }
.doc-body h3 { font-size: 1.15rem; margin: 1.6em 0 .5em; }
.doc-body p, .doc-body li { color: var(--text-2); }
.doc-body li { margin-bottom: .35em; }
.doc-body a { text-decoration: underline; text-underline-offset: 3px; }
@media (max-width: 1023px) { .doc-layout { grid-template-columns: 1fr; gap: 32px; } .doc-toc { position: static; } .doc-toc ol { max-height: none; } }

/* ---------- Misc ---------- */
.muted { color: var(--muted); }
.text-center { text-align: center; }
.notfound { text-align: center; padding: 120px 0; }
.notfound .code { font-family: var(--font-head); font-size: 7rem; font-weight: 700; line-height: 1; letter-spacing: -.05em; margin-bottom: 10px; background: var(--grad); -webkit-background-clip: text; background-clip: text; color: transparent; }
.marquee { overflow: hidden; -webkit-mask-image: linear-gradient(90deg, transparent, #000 10%, #000 90%, transparent); mask-image: linear-gradient(90deg, transparent, #000 10%, #000 90%, transparent); }
.marquee-track { display: flex; gap: 12px; width: max-content; animation: marquee 40s linear infinite; }
.marquee:hover .marquee-track { animation-play-state: paused; }
@keyframes marquee { to { transform: translateX(-50%); } }

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