/* ============================================================
   FreeX AI Server — Official Site
   Modern minimal design system
   ============================================================ */

:root {
  --bg: #ffffff;
  --bg-soft: #fafafa;
  --bg-dark: #0a0a0f;
  --bg-dark-2: #12121a;
  --ink: #131316;
  --ink-2: #3f3f46;
  --muted: #71717a;
  --faint: #a1a1aa;
  --line: #e8e8ec;
  --line-strong: #dcdce2;
  --line-dark: rgba(255, 255, 255, 0.09);
  --acc: #4f46e5;
  --acc-2: #7c3aed;
  --acc-soft: #eef0fe;
  --ok: #059669;
  --ok-soft: #ecfdf5;
  --warn: #b45309;
  --warn-soft: #fffbeb;
  --bad: #dc2626;
  --sans: -apple-system, BlinkMacSystemFont, "Segoe UI", "PingFang SC",
    "Hiragino Sans GB", "Microsoft YaHei", "Helvetica Neue", Arial, sans-serif;
  --mono: ui-monospace, "SF Mono", "Cascadia Code", "JetBrains Mono",
    Consolas, "Courier New", monospace;
  --radius: 14px;
  --shadow-sm: 0 1px 2px rgba(16, 16, 28, 0.05);
  --shadow: 0 8px 30px rgba(16, 16, 28, 0.07);
  --shadow-lg: 0 24px 70px rgba(16, 16, 28, 0.12);
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }

body {
  margin: 0;
  background: var(--bg);
  color: var(--ink);
  font: 15px/1.75 var(--sans);
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

a { color: var(--acc); text-decoration: none; }
a:hover { text-decoration: underline; text-underline-offset: 3px; }

img, svg { display: block; max-width: 100%; }
code { font-family: var(--mono); }

.wrap { max-width: 1140px; margin: 0 auto; padding: 0 24px; }
.wrap-narrow { max-width: 880px; margin: 0 auto; padding: 0 24px; }

/* ---------- typography ---------- */
h1, h2, h3, h4 { line-height: 1.25; letter-spacing: -0.02em; font-weight: 650; margin: 0; }
h1 { font-size: clamp(34px, 5.2vw, 56px); letter-spacing: -0.03em; }
h2 { font-size: clamp(26px, 3.4vw, 36px); }
h3 { font-size: 18px; }
p { margin: 0; }

.eyebrow {
  display: inline-flex; align-items: center; gap: 7px;
  font-size: 12.5px; font-weight: 600; letter-spacing: 0.08em;
  color: var(--acc); text-transform: uppercase;
  margin-bottom: 14px;
}
.eyebrow::before {
  content: ""; width: 18px; height: 2px; border-radius: 2px;
  background: linear-gradient(90deg, var(--acc), var(--acc-2));
}
.section-desc { color: var(--muted); font-size: 16.5px; max-width: 640px; margin-top: 14px; }

.section { padding: 96px 0; }
.section.soft { background: var(--bg-soft); border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); }
.section-head { margin-bottom: 52px; }
.section-head.center { text-align: center; }
.section-head.center .section-desc { margin-left: auto; margin-right: auto; }
.section-head.center .eyebrow::before { display: none; }

/* ---------- buttons ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  padding: 11px 22px; border-radius: 10px; font-size: 14.5px; font-weight: 600;
  border: 1px solid transparent; cursor: pointer; transition: all .18s ease;
  white-space: nowrap; text-decoration: none !important;
}
.btn-primary { background: var(--ink); color: #fff; }
.btn-primary:hover { background: #000; transform: translateY(-1px); box-shadow: var(--shadow); }
.btn-acc { background: linear-gradient(135deg, var(--acc), var(--acc-2)); color: #fff; }
.btn-acc:hover { transform: translateY(-1px); box-shadow: 0 10px 28px rgba(99, 77, 237, .35); }
.btn-ghost { background: transparent; color: var(--ink); border-color: var(--line-strong); }
.btn-ghost:hover { border-color: var(--ink); background: #fff; }
.btn-light { background: rgba(255,255,255,.1); color: #fff; border-color: rgba(255,255,255,.22); }
.btn-light:hover { background: rgba(255,255,255,.18); border-color: rgba(255,255,255,.4); }
.btn-on-dark { background: #fff; color: var(--bg-dark); }
.btn-on-dark:hover { transform: translateY(-1px); box-shadow: 0 10px 30px rgba(0,0,0,.4); }
.btn-sm { padding: 7px 14px; font-size: 13px; border-radius: 8px; }

/* ---------- nav ---------- */
.nav {
  position: sticky; top: 0; z-index: 50;
  background: rgba(255, 255, 255, 0.82);
  backdrop-filter: saturate(180%) blur(16px);
  -webkit-backdrop-filter: saturate(180%) blur(16px);
  border-bottom: 1px solid var(--line);
}
.nav-inner { display: flex; align-items: center; gap: 28px; height: 62px; }
.brand { display: flex; align-items: center; gap: 10px; font-weight: 700; font-size: 17px; color: var(--ink); text-decoration: none !important; letter-spacing: -0.01em; }
.brand img { width: 28px; height: 28px; }
.brand small { font-weight: 500; color: var(--faint); font-size: 12px; font-weight: 400; margin-left: -4px; }
.nav-links { display: flex; gap: 4px; margin-left: 12px; }
.nav-links a {
  color: var(--ink-2); font-size: 14px; font-weight: 500;
  padding: 7px 12px; border-radius: 8px; text-decoration: none !important;
  transition: color .15s, background .15s;
}
.nav-links a:hover { color: var(--ink); background: var(--bg-soft); }
.nav-cta { margin-left: auto; display: flex; align-items: center; gap: 10px; }
.nav-toggle { display: none; margin-left: auto; background: none; border: 1px solid var(--line-strong); border-radius: 8px; padding: 7px 10px; cursor: pointer; color: var(--ink); }

/* ---------- hero ---------- */
.hero {
  background: var(--bg-dark); color: #e8e8f0;
  position: relative; overflow: hidden;
  padding: 92px 0 110px;
}
.hero::before {
  content: ""; position: absolute; inset: 0;
  background-image: radial-gradient(rgba(255,255,255,.055) 1px, transparent 1px);
  background-size: 26px 26px;
  mask-image: radial-gradient(ellipse 90% 75% at 50% 0%, #000 30%, transparent 75%);
  -webkit-mask-image: radial-gradient(ellipse 90% 75% at 50% 0%, #000 30%, transparent 75%);
}
.hero::after {
  content: ""; position: absolute; top: -280px; left: 50%; transform: translateX(-50%);
  width: 820px; height: 560px; pointer-events: none;
  background: radial-gradient(closest-side, rgba(99, 77, 237, .28), rgba(124, 58, 237, .10) 55%, transparent);
  filter: blur(10px);
}
.hero-inner { position: relative; z-index: 1; text-align: center; }
.badge {
  display: inline-flex; align-items: center; gap: 9px;
  border: 1px solid var(--line-dark); border-radius: 999px;
  padding: 6px 15px 6px 9px; font-size: 13px; color: #c8c8d8;
  background: rgba(255,255,255,.045); margin-bottom: 30px;
}
.badge .dot {
  width: 18px; height: 18px; border-radius: 50%;
  background: linear-gradient(135deg, var(--acc), var(--acc-2));
  display: inline-flex; align-items: center; justify-content: center;
  font-size: 10px; color: #fff;
}
.badge b { color: #fff; font-weight: 600; }
.hero h1 { color: #fff; margin-bottom: 22px; }
.hero h1 .grad {
  background: linear-gradient(100deg, #a5b4fc 0%, #c4b5fd 45%, #f0abfc 100%);
  -webkit-background-clip: text; background-clip: text; color: transparent;
}
.hero-sub { font-size: 17.5px; color: #a9a9bd; max-width: 680px; margin: 0 auto 38px; line-height: 1.8; }
.hero-sub b { color: #e8e8f0; font-weight: 600; }
.hero-cta { display: flex; gap: 14px; justify-content: center; flex-wrap: wrap; margin-bottom: 64px; }

/* terminal mock */
.term {
  max-width: 760px; margin: 0 auto; text-align: left;
  background: #101018; border: 1px solid var(--line-dark); border-radius: 14px;
  box-shadow: 0 40px 90px rgba(0,0,0,.55);
  overflow: hidden;
}
.term-bar {
  display: flex; align-items: center; gap: 8px;
  padding: 12px 16px; border-bottom: 1px solid var(--line-dark);
  background: rgba(255,255,255,.025);
}
.term-bar i { width: 11px; height: 11px; border-radius: 50%; display: block; }
.term-bar i:nth-child(1) { background: #ff5f57; }
.term-bar i:nth-child(2) { background: #febc2e; }
.term-bar i:nth-child(3) { background: #28c840; }
.term-bar span { margin-left: 10px; color: #6b6b80; font-size: 12.5px; font-family: var(--mono); }
.term-body { padding: 20px 22px; font-family: var(--mono); font-size: 13px; line-height: 1.9; overflow-x: auto; }
.term-body .ln { white-space: nowrap; }
.t-dim { color: #6b6b80; }
.t-ai { color: #c4b5fd; }
.t-ok { color: #34d399; }
.t-warn { color: #fbbf24; }
.t-cmd { color: #93c5fd; }
.t-out { color: #d4d4e0; }
.t-caret::after { content: "▋"; color: #a5b4fc; animation: blink 1.1s steps(1) infinite; }
@keyframes blink { 50% { opacity: 0; } }

/* compatibility strip */
.compat { padding: 34px 0; border-bottom: 1px solid var(--line); }
.compat-inner { display: flex; align-items: center; justify-content: center; gap: 38px; flex-wrap: wrap; }
.compat-label { font-size: 13px; color: var(--faint); font-weight: 500; }
.compat-item { font-size: 15px; font-weight: 600; color: var(--muted); display: flex; align-items: center; gap: 8px; }
.compat-item .tick { color: var(--ok); font-weight: 700; }

/* stats */
.stats { display: grid; grid-template-columns: repeat(4, 1fr); gap: 20px; }
.stat {
  text-align: center; padding: 30px 16px; border: 1px solid var(--line);
  border-radius: var(--radius); background: #fff;
}
.stat b { display: block; font-size: 40px; font-weight: 700; letter-spacing: -0.03em; line-height: 1.1;
  background: linear-gradient(135deg, var(--acc), var(--acc-2)); -webkit-background-clip: text; background-clip: text; color: transparent; }
.stat span { color: var(--muted); font-size: 14px; }

/* ---------- feature cards ---------- */
.grid { display: grid; gap: 20px; }
.grid-3 { grid-template-columns: repeat(3, 1fr); }
.grid-2 { grid-template-columns: repeat(2, 1fr); }
.card {
  border: 1px solid var(--line); border-radius: var(--radius);
  padding: 28px; background: #fff; transition: all .2s ease;
}
.card:hover { border-color: var(--line-strong); box-shadow: var(--shadow); transform: translateY(-2px); }
.card .ico {
  width: 42px; height: 42px; border-radius: 11px;
  display: flex; align-items: center; justify-content: center;
  background: var(--acc-soft); color: var(--acc); margin-bottom: 18px;
}
.card .ico svg { width: 21px; height: 21px; }
.card h3 { margin-bottom: 9px; font-size: 16.5px; }
.card p { color: var(--muted); font-size: 14.5px; line-height: 1.7; }
.card .tag-row { margin-top: 14px; display: flex; flex-wrap: wrap; gap: 6px; }

.chip {
  display: inline-block; font-family: var(--mono); font-size: 12px;
  padding: 2px 9px; border-radius: 6px; background: var(--bg-soft);
  border: 1px solid var(--line); color: var(--ink-2);
}
.chip.acc { background: var(--acc-soft); border-color: #dde1fc; color: var(--acc); }
.chip.ok { background: var(--ok-soft); border-color: #c9f3e0; color: var(--ok); }

/* bento */
.bento { display: grid; grid-template-columns: repeat(6, 1fr); gap: 20px; }
.bento .card { grid-column: span 2; }
.bento .card.wide { grid-column: span 3; }

/* ---------- steps ---------- */
.steps { display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; counter-reset: step; }
.step { position: relative; padding: 32px 28px; border: 1px solid var(--line); border-radius: var(--radius); background: #fff; }
.step::before {
  counter-increment: step; content: "0" counter(step);
  display: block; font-family: var(--mono); font-size: 13px; font-weight: 700;
  color: var(--acc); margin-bottom: 16px;
}
.step h3 { font-size: 17px; margin-bottom: 10px; }
.step p { color: var(--muted); font-size: 14.5px; }
.step .mini-code {
  margin-top: 16px; background: var(--bg-dark); color: #d4d4e0;
  border-radius: 9px; padding: 13px 15px; font-family: var(--mono);
  font-size: 12.5px; line-height: 1.75; overflow-x: auto;
}
.step .mini-code .c-g { color: #6b6b80; }
.step .mini-code .c-b { color: #93c5fd; }
.step .mini-code .c-p { color: #c4b5fd; }

/* ---------- module matrix ---------- */
.mod-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 16px; }
.mod {
  border: 1px solid var(--line); border-radius: 12px; padding: 20px;
  background: #fff; transition: all .18s ease;
}
.mod:hover { border-color: #c7cbf5; box-shadow: var(--shadow-sm); }
.mod-top { display: flex; align-items: center; gap: 10px; margin-bottom: 10px; }
.mod-ico {
  width: 32px; height: 32px; border-radius: 8px; flex: none;
  background: var(--bg-soft); border: 1px solid var(--line);
  display: flex; align-items: center; justify-content: center; color: var(--acc);
}
.mod-ico svg { width: 16px; height: 16px; }
.mod-top h3 { font-size: 14.5px; }
.mod-top .cnt { margin-left: auto; font-family: var(--mono); font-size: 11.5px; color: var(--faint); }
.mod p { font-size: 13px; color: var(--muted); line-height: 1.6; }
.mod .chips { margin-top: 11px; display: flex; flex-wrap: wrap; gap: 5px; }
.mod .chip { font-size: 11px; padding: 1px 7px; }

/* ---------- scenarios ---------- */
.scn { display: flex; gap: 20px; padding: 30px; border: 1px solid var(--line); border-radius: var(--radius); background: #fff; transition: all .2s; }
.scn:hover { box-shadow: var(--shadow); border-color: var(--line-strong); }
.scn-ico {
  flex: none; width: 46px; height: 46px; border-radius: 12px;
  background: linear-gradient(135deg, var(--acc-soft), #f5f0ff);
  border: 1px solid #e3e0fb;
  display: flex; align-items: center; justify-content: center; color: var(--acc);
}
.scn-ico svg { width: 22px; height: 22px; }
.scn h3 { font-size: 16.5px; margin-bottom: 7px; }
.scn p { color: var(--muted); font-size: 14px; line-height: 1.7; }
.scn .scn-tag { margin-top: 12px; font-size: 12.5px; color: var(--acc); font-weight: 600; }

/* ---------- security ---------- */
.sec-dark { background: var(--bg-dark); color: #d8d8e4; border-radius: 20px; padding: 56px 48px; position: relative; overflow: hidden; }
.sec-dark::before {
  content: ""; position: absolute; inset: 0;
  background-image: radial-gradient(rgba(255,255,255,.045) 1px, transparent 1px);
  background-size: 24px 24px;
}
.sec-dark > * { position: relative; }
.sec-dark h2 { color: #fff; }
.sec-dark .section-desc { color: #9a9ab0; }
.sec-layers { display: grid; grid-template-columns: repeat(3, 1fr); gap: 14px; margin-top: 40px; }
.sec-layer {
  border: 1px solid var(--line-dark); border-radius: 12px;
  padding: 20px; background: rgba(255,255,255,.035);
}
.sec-layer .n {
  font-family: var(--mono); font-size: 12px; color: #a5b4fc; font-weight: 700;
  display: inline-flex; align-items: center; gap: 7px; margin-bottom: 10px;
}
.sec-layer h3 { color: #fff; font-size: 15px; margin-bottom: 6px; }
.sec-layer p { color: #9a9ab0; font-size: 13px; line-height: 1.65; }

.trust-row { display: grid; grid-template-columns: repeat(3, 1fr); gap: 14px; margin-top: 26px; }
.trust {
  border: 1px dashed var(--line-dark); border-radius: 12px; padding: 18px 20px;
}
.trust h4 { color: #fff; font-size: 14px; margin-bottom: 5px; display: flex; align-items: center; gap: 8px; }
.trust p { color: #9a9ab0; font-size: 12.5px; line-height: 1.65; }
.trust .lvl { font-family: var(--mono); font-size: 10.5px; padding: 2px 8px; border-radius: 5px; font-weight: 600; }
.lvl-l { background: rgba(52,211,153,.15); color: #34d399; }
.lvl-m { background: rgba(251,191,36,.15); color: #fbbf24; }
.lvl-h { background: rgba(248,113,113,.15); color: #f87171; }

/* ---------- code blocks ---------- */
.code-panel { border: 1px solid var(--line); border-radius: var(--radius); overflow: hidden; background: #fff; }
.code-tabs { display: flex; gap: 2px; padding: 8px 8px 0; border-bottom: 1px solid var(--line); background: var(--bg-soft); }
.code-tab {
  padding: 9px 18px; font-size: 13.5px; font-weight: 550; color: var(--muted);
  border: none; background: none; cursor: pointer; border-radius: 9px 9px 0 0;
  border-bottom: 2px solid transparent; margin-bottom: -1px;
  font-family: var(--sans);
}
.code-tab.active { color: var(--acc); border-bottom-color: var(--acc); background: #fff; }
.code-wrap { position: relative; }
.code-wrap pre {
  margin: 0; padding: 22px 24px; background: var(--bg-dark); color: #d4d4e0;
  font-family: var(--mono); font-size: 13px; line-height: 1.85; overflow-x: auto;
}
.code-copy {
  position: absolute; top: 12px; right: 12px;
  background: rgba(255,255,255,.08); border: 1px solid rgba(255,255,255,.16);
  color: #c8c8d8; border-radius: 7px; padding: 5px 12px; font-size: 12px;
  cursor: pointer; font-family: var(--sans); transition: all .15s;
}
.code-copy:hover { background: rgba(255,255,255,.16); color: #fff; }
.code-copy.done { background: rgba(52,211,153,.2); border-color: rgba(52,211,153,.4); color: #34d399; }
.tok-k { color: #c4b5fd; } .tok-s { color: #a7f3d0; } .tok-c { color: #6b6b80; }
.tok-n { color: #93c5fd; } .tok-p { color: #f0abfc; }

/* ---------- roadmap ---------- */
.timeline { position: relative; margin-top: 10px; }
.timeline::before {
  content: ""; position: absolute; left: 13px; top: 8px; bottom: 8px;
  width: 2px; background: linear-gradient(180deg, var(--acc), var(--line));
}
.tl-item { position: relative; padding: 0 0 34px 52px; }
.tl-item:last-child { padding-bottom: 0; }
.tl-dot {
  position: absolute; left: 5px; top: 4px; width: 18px; height: 18px;
  border-radius: 50%; border: 3px solid #fff; box-shadow: 0 0 0 2px var(--line-strong);
}
.tl-dot.done { background: var(--ok); box-shadow: 0 0 0 2px var(--ok); }
.tl-dot.now { background: var(--acc); box-shadow: 0 0 0 2px var(--acc); }
.tl-dot.next { background: #fff; box-shadow: 0 0 0 2px var(--faint); }
.tl-item h3 { font-size: 16.5px; display: flex; align-items: center; gap: 12px; flex-wrap: wrap; }
.tl-status { font-size: 11.5px; font-weight: 600; padding: 2px 10px; border-radius: 999px; font-family: var(--sans); }
.st-done { background: var(--ok-soft); color: var(--ok); }
.st-now { background: var(--acc-soft); color: var(--acc); }
.st-next { background: var(--bg-soft); color: var(--faint); border: 1px solid var(--line); }
.tl-item p { color: var(--muted); font-size: 14px; margin-top: 6px; max-width: 620px; }

/* ---------- pricing ---------- */
.price-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; align-items: stretch; }
.price-card {
  border: 1px solid var(--line); border-radius: 18px; padding: 34px 30px;
  background: #fff; display: flex; flex-direction: column;
}
.price-card.feat { border-color: var(--acc); box-shadow: 0 18px 50px rgba(79,70,229,.12); position: relative; }
.price-card.feat::before {
  content: "推荐"; position: absolute; top: -12px; left: 50%; transform: translateX(-50%);
  background: linear-gradient(135deg, var(--acc), var(--acc-2)); color: #fff;
  font-size: 12px; font-weight: 600; padding: 3px 14px; border-radius: 999px;
}
.price-name { font-size: 17px; font-weight: 650; margin-bottom: 6px; }
.price-desc { color: var(--muted); font-size: 13.5px; margin-bottom: 22px; }
.price-val { font-size: 38px; font-weight: 700; letter-spacing: -0.03em; margin-bottom: 4px; }
.price-val small { font-size: 15px; font-weight: 500; color: var(--muted); letter-spacing: 0; }
.price-note { font-size: 12.5px; color: var(--faint); margin-bottom: 24px; }
.price-list { list-style: none; padding: 0; margin: 0 0 28px; display: grid; gap: 11px; }
.price-list li { font-size: 14px; color: var(--ink-2); display: flex; gap: 10px; align-items: flex-start; }
.price-list li::before { content: "✓"; color: var(--ok); font-weight: 700; flex: none; }
.price-list li.off { color: var(--faint); }
.price-list li.off::before { content: "—"; color: var(--faint); }
.price-card .btn { margin-top: auto; }

/* ---------- CTA band ---------- */
.cta-band {
  background: var(--bg-dark); border-radius: 22px; padding: 72px 40px;
  text-align: center; position: relative; overflow: hidden;
}
.cta-band::before {
  content: ""; position: absolute; top: -240px; left: 50%; transform: translateX(-50%);
  width: 680px; height: 460px; pointer-events: none;
  background: radial-gradient(closest-side, rgba(99,77,237,.32), transparent);
}
.cta-band > * { position: relative; }
.cta-band h2 { color: #fff; margin-bottom: 14px; }
.cta-band p { color: #9a9ab0; font-size: 16px; max-width: 560px; margin: 0 auto 34px; }
.cta-band .hero-cta { margin-bottom: 0; }

/* ---------- footer ---------- */
.footer { border-top: 1px solid var(--line); padding: 56px 0 40px; background: var(--bg-soft); }
.footer-grid { display: grid; grid-template-columns: 2fr 1fr 1fr 1fr; gap: 36px; margin-bottom: 40px; }
.footer-brand p { color: var(--muted); font-size: 13.5px; margin-top: 14px; max-width: 300px; }
.footer-col h4 { font-size: 13px; color: var(--faint); font-weight: 600; letter-spacing: .06em; text-transform: uppercase; margin-bottom: 14px; }
.footer-col a { display: block; color: var(--ink-2); font-size: 14px; padding: 4px 0; text-decoration: none !important; }
.footer-col a:hover { color: var(--acc); }
.footer-bottom {
  border-top: 1px solid var(--line); padding-top: 26px;
  display: flex; justify-content: space-between; gap: 16px; flex-wrap: wrap;
  color: var(--faint); font-size: 13px;
}

/* ---------- docs page ---------- */
.docs-layout { display: grid; grid-template-columns: 230px 1fr; gap: 56px; padding: 48px 0 90px; }
.docs-side { position: sticky; top: 86px; align-self: start; max-height: calc(100vh - 110px); overflow-y: auto; }
.docs-side h4 { font-size: 12px; letter-spacing: .07em; text-transform: uppercase; color: var(--faint); margin: 22px 0 8px; }
.docs-side h4:first-child { margin-top: 0; }
.docs-side a {
  display: block; padding: 6px 12px; font-size: 13.5px; color: var(--ink-2);
  border-radius: 7px; text-decoration: none !important; border-left: 2px solid transparent;
}
.docs-side a:hover { background: var(--bg-soft); color: var(--ink); }
.docs-body { min-width: 0; }
.docs-body h2 { font-size: 27px; margin: 56px 0 16px; padding-top: 20px; scroll-margin-top: 80px; }
.docs-body h2:first-child { margin-top: 0; padding-top: 0; }
.docs-body h3 { font-size: 17px; margin: 30px 0 12px; scroll-margin-top: 80px; }
.docs-body p, .docs-body li { color: var(--ink-2); font-size: 14.5px; }
.docs-body ul, .docs-body ol { padding-left: 22px; }
.docs-body li { margin: 6px 0; }
.docs-body .inline-code {
  background: var(--bg-soft); border: 1px solid var(--line); border-radius: 5px;
  padding: 1px 6px; font-size: 12.5px; color: var(--acc);
}
.docs-body .code-panel { margin: 18px 0; }
.docs-body .callout {
  border: 1px solid var(--line); border-left: 3px solid var(--acc);
  background: var(--bg-soft); border-radius: 0 10px 10px 0;
  padding: 14px 18px; margin: 18px 0; font-size: 14px; color: var(--ink-2);
}
.docs-body .callout.warn { border-left-color: var(--warn); background: var(--warn-soft); }
.docs-body .callout b { color: var(--ink); }

.tbl { width: 100%; border-collapse: collapse; font-size: 13.5px; margin: 16px 0; border: 1px solid var(--line); border-radius: 10px; overflow: hidden; }
.tbl th { background: var(--bg-soft); text-align: left; padding: 10px 14px; font-weight: 600; color: var(--ink); font-size: 13px; border-bottom: 1px solid var(--line); white-space: nowrap; }
.tbl td { padding: 9px 14px; border-bottom: 1px solid var(--line); color: var(--ink-2); vertical-align: top; }
.tbl tr:last-child td { border-bottom: none; }
.tbl td code { font-size: 12.5px; color: var(--acc); }
.tbl .tool-grp td { background: var(--bg-soft); font-weight: 650; color: var(--ink); font-size: 13px; }
.tbl .tool-grp td code { color: var(--acc-2); }

/* ---------- reveal animation ---------- */
.reveal { opacity: 0; transform: translateY(22px); transition: opacity .6s ease, transform .6s ease; }
.reveal.in { opacity: 1; transform: none; }
.reveal[data-delay="1"] { transition-delay: .08s; }
.reveal[data-delay="2"] { transition-delay: .16s; }
.reveal[data-delay="3"] { transition-delay: .24s; }

@media (prefers-reduced-motion: reduce) {
  .reveal { opacity: 1; transform: none; transition: none; }
  html { scroll-behavior: auto; }
}

/* ---------- responsive ---------- */
@media (max-width: 980px) {
  .grid-3, .steps, .sec-layers, .trust-row, .price-grid, .stats { grid-template-columns: repeat(2, 1fr); }
  .mod-grid { grid-template-columns: repeat(3, 1fr); }
  .bento .card, .bento .card.wide { grid-column: span 3; }
  .grid-2 { grid-template-columns: 1fr; }
  .footer-grid { grid-template-columns: 1fr 1fr; }
  .docs-layout { grid-template-columns: 1fr; gap: 0; }
  .docs-side { position: static; max-height: none; display: none; }
}
@media (max-width: 720px) {
  .section { padding: 64px 0; }
  .nav-links, .nav-cta .btn-ghost { display: none; }
  .nav-toggle { display: inline-flex; }
  .nav-links.open {
    display: flex; flex-direction: column; position: absolute; top: 62px; left: 0; right: 0;
    background: #fff; border-bottom: 1px solid var(--line); padding: 12px 20px; gap: 2px;
    box-shadow: var(--shadow);
  }
  .nav-links.open a { padding: 11px 12px; }
  .hero { padding: 60px 0 72px; }
  .grid-3, .steps, .sec-layers, .trust-row, .price-grid, .stats { grid-template-columns: 1fr; }
  .mod-grid { grid-template-columns: repeat(2, 1fr); }
  .sec-dark { padding: 36px 24px; }
  .compat-inner { gap: 20px; }
  .footer-grid { grid-template-columns: 1fr; gap: 28px; }
  .scn { flex-direction: column; gap: 14px; padding: 24px; }
}
@media (max-width: 460px) {
  .mod-grid { grid-template-columns: 1fr; }
  .hero-cta { flex-direction: column; }
  .hero-cta .btn { width: 100%; }
}
