/* ============================================================
   GoHost — personal site
   Dark theme · cyan/indigo accent · Space Grotesk + Inter + JetBrains Mono
   ============================================================ */

:root {
  --bg: #060a13;
  --bg-2: #0a101d;
  --surface: rgba(255, 255, 255, 0.03);
  --surface-2: rgba(255, 255, 255, 0.05);
  --border: rgba(148, 163, 184, 0.14);
  --border-hi: rgba(148, 163, 184, 0.28);
  --text: #e8eef8;
  --muted: #93a1b8;
  --cyan: #22d3ee;
  --indigo: #818cf8;
  --violet: #a78bfa;
  --green: #34d399;
  --grad: linear-gradient(120deg, var(--cyan), var(--indigo));
  --grad-soft: linear-gradient(120deg, rgba(34, 211, 238, 0.16), rgba(129, 140, 248, 0.16));
  --radius: 16px;
  --font-display: "Space Grotesk", "Inter", system-ui, sans-serif;
  --font-body: "Inter", system-ui, sans-serif;
  --font-mono: "JetBrains Mono", ui-monospace, "SF Mono", monospace;
  --header-h: 68px;
}

/* ---------- Reset & base ---------- */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

html { scroll-behavior: smooth; scroll-padding-top: calc(var(--header-h) + 12px); scroll-snap-type: y mandatory; }

/* главы листаются по экранам: скролл чётко встаёт на границу главы */
section[id] { scroll-snap-align: start; }
/* низ страницы тоже снап-точка, иначе обязательный снап не даёт
   долистать до конца (CTA + футер после FAQ недостижимы) */
.site-footer { scroll-snap-align: end; }

/* Телефоны/планшеты: секции выше экрана, обязательный снап дерёт скролл,
   не даёт долистать до низа и «прыгает» на последнюю главу (FAQ).
   Снап по главам — только для широких экранов. */
@media (max-width: 980px) {
  html { scroll-snap-type: none; }
  section[id] { scroll-snap-align: none; }
  .site-footer { scroll-snap-align: none; }
  .section { padding: 72px 0; }
}

body {
  font-family: var(--font-body);
  font-size: 16px;
  line-height: 1.65;
  color: var(--text);
  background: var(--bg);
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}

img, svg { display: block; max-width: 100%; }
a { color: inherit; text-decoration: none; }
button { font-family: inherit; cursor: pointer; }
h1, h2, h3 { font-family: var(--font-display); line-height: 1.15; font-weight: 600; }

::selection { background: rgba(34, 211, 238, 0.3); }

:focus-visible { outline: 2px solid var(--cyan); outline-offset: 3px; border-radius: 4px; }

.container { width: min(1120px, 100% - 40px); margin-inline: auto; }

/* ---------- Typography helpers ---------- */
.overline {
  font-family: var(--font-mono);
  font-size: 12.5px;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--cyan);
  margin-bottom: 14px;
}

.section { padding: 56px 0 136px; }
.section-head { max-width: 640px; margin-bottom: 52px; }
.section-title { font-size: clamp(1.7rem, 3.4vw, 2.35rem); letter-spacing: -0.02em; }
.section-sub { color: var(--muted); margin-top: 12px; font-size: 1.02rem; }

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  font-family: var(--font-display);
  font-weight: 600;
  font-size: 15px;
  padding: 13px 26px;
  border-radius: 12px;
  border: 1px solid transparent;
  transition: transform 0.18s ease, box-shadow 0.18s ease, border-color 0.18s ease, background 0.18s ease;
  white-space: nowrap;
}

.btn-primary {
  background: var(--grad);
  color: #04101c;
  box-shadow: 0 4px 24px rgba(34, 211, 238, 0.22);
}
.btn-primary:hover { transform: translateY(-2px); box-shadow: 0 8px 32px rgba(129, 140, 248, 0.35); }

.btn-ghost { border-color: var(--border-hi); color: var(--text); background: transparent; }
.btn-ghost:hover { border-color: var(--cyan); color: var(--cyan); transform: translateY(-2px); }

.btn-sm { padding: 9px 18px; font-size: 13.5px; border-radius: 10px; }
.btn-lg { padding: 16px 34px; font-size: 16px; border-radius: 14px; }

/* ---------- Header ---------- */
.site-header {
  position: fixed;
  inset: 0 0 auto 0;
  z-index: 100;
  height: var(--header-h);
  transition: background 0.25s ease, border-color 0.25s ease, backdrop-filter 0.25s ease;
  border-bottom: 1px solid transparent;
}
.site-header.scrolled {
  background: rgba(6, 10, 19, 0.78);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  border-bottom-color: var(--border);
}

.header-inner { height: var(--header-h); display: flex; align-items: center; gap: 28px; }

.logo { display: flex; align-items: center; gap: 8px; font-family: var(--font-display); font-weight: 700; font-size: 19px; }
.logo-mark {
  font-family: var(--font-mono);
  background: var(--grad);
  -webkit-background-clip: text; background-clip: text; color: transparent;
}
.logo-name { letter-spacing: -0.01em; }

.nav { display: flex; gap: 4px; margin-left: 8px; }
.nav a {
  padding: 8px 13px;
  border-radius: 9px;
  font-size: 14.5px;
  color: var(--muted);
  transition: color 0.15s ease, background 0.15s ease;
}
.nav a:hover { color: var(--text); background: var(--surface-2); }
.nav a.active { color: var(--cyan); background: var(--grad-soft); }

.header-actions { margin-left: auto; display: flex; align-items: center; gap: 14px; }

.lang-switch {
  display: flex;
  border: 1px solid var(--border);
  border-radius: 10px;
  overflow: hidden;
}
.lang-btn {
  background: transparent;
  border: none;
  color: var(--muted);
  font-family: var(--font-mono);
  font-size: 12px;
  font-weight: 600;
  padding: 7px 11px;
  transition: background 0.15s ease, color 0.15s ease;
}
.lang-btn.active { background: var(--grad-soft); color: var(--cyan); }

.burger { display: none; background: none; border: 1px solid var(--border); border-radius: 10px; padding: 9px 10px; flex-direction: column; gap: 4px; }
.burger span { width: 18px; height: 2px; background: var(--text); border-radius: 2px; transition: transform 0.2s ease, opacity 0.2s ease; }
.burger.open span:nth-child(1) { transform: translateY(6px) rotate(45deg); }
.burger.open span:nth-child(2) { opacity: 0; }
.burger.open span:nth-child(3) { transform: translateY(-6px) rotate(-45deg); }

/* ---------- Hero ---------- */
.hero { position: relative; padding: calc(var(--header-h) + 88px) 0 72px; overflow: hidden; }

.hero-bg { position: absolute; inset: 0; pointer-events: none; }
.orb { position: absolute; border-radius: 50%; filter: blur(110px); opacity: 0.5; }
.orb-1 { width: 480px; height: 480px; background: rgba(34, 211, 238, 0.16); top: -160px; left: -120px; animation: drift 16s ease-in-out infinite alternate; }
.orb-2 { width: 420px; height: 420px; background: rgba(129, 140, 248, 0.18); bottom: -140px; right: -100px; animation: drift 20s ease-in-out infinite alternate-reverse; }
@keyframes drift { from { transform: translate(0, 0) scale(1); } to { transform: translate(40px, 30px) scale(1.08); } }

.grid-overlay {
  position: absolute; inset: 0;
  background-image:
    linear-gradient(rgba(148, 163, 184, 0.05) 1px, transparent 1px),
    linear-gradient(90deg, rgba(148, 163, 184, 0.05) 1px, transparent 1px);
  background-size: 56px 56px;
  mask-image: radial-gradient(ellipse 90% 70% at 50% 0%, black 30%, transparent 75%);
  -webkit-mask-image: radial-gradient(ellipse 90% 70% at 50% 0%, black 30%, transparent 75%);
}

.hero-grid { position: relative; display: grid; grid-template-columns: 1.05fr 0.95fr; gap: 56px; align-items: center; }

.hero-title {
  font-size: clamp(3rem, 7vw, 4.6rem);
  font-weight: 700;
  letter-spacing: -0.03em;
  background: var(--grad);
  -webkit-background-clip: text; background-clip: text; color: transparent;
  line-height: 1.02;
  margin-bottom: 18px;
}

.hero-subtitle { font-size: 1.22rem; color: var(--text); font-weight: 500; max-width: 30em; margin-bottom: 14px; }
.hero-desc { color: var(--muted); max-width: 34em; margin-bottom: 30px; }

.hero-cta { display: flex; flex-wrap: wrap; gap: 14px; margin-bottom: 30px; }

.hero-stack { display: flex; flex-wrap: wrap; gap: 8px; }
.hero-stack span {
  font-family: var(--font-mono);
  font-size: 12.5px;
  color: var(--muted);
  border: 1px solid var(--border);
  border-radius: 999px;
  padding: 5px 13px;
  background: var(--surface);
}

/* ---------- Terminal ---------- */
.terminal {
  background: linear-gradient(180deg, #0b1120, #090f1b);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  box-shadow: 0 24px 70px rgba(0, 0, 0, 0.5), 0 0 0 1px rgba(148, 163, 184, 0.05);
  overflow: hidden;
}
.terminal-bar {
  display: flex; align-items: center; gap: 8px;
  padding: 12px 16px;
  border-bottom: 1px solid var(--border);
  background: rgba(255, 255, 255, 0.02);
}
.dot { width: 11px; height: 11px; border-radius: 50%; }
.dot-r { background: #f87171; } .dot-y { background: #fbbf24; } .dot-g { background: #34d399; }
.terminal-title {
  margin-left: 8px;
  font-family: var(--font-mono); font-size: 12px; color: var(--muted);
}
.terminal-body {
  font-family: var(--font-mono);
  font-size: 13px;
  line-height: 1.85;
  padding: 20px 20px 24px;
  min-height: 268px;
}
.term-line { white-space: pre-wrap; word-break: break-word; }
.term-cmd { color: var(--text); }
.term-prompt { color: var(--cyan); }
.term-out { color: var(--green); }
.term-out2 { color: var(--muted); }
.term-ok { color: var(--green); }
.cursor {
  display: inline-block;
  color: var(--cyan);
  animation: blink 1.05s steps(1) infinite;
  font-weight: 400;
}
@keyframes blink { 50% { opacity: 0; } }

/* ---------- Stats ---------- */
.stats { border-block: 1px solid var(--border); background: var(--bg-2); padding: 34px 0; }
.stats-grid { display: grid; grid-template-columns: repeat(5, 1fr); gap: 28px; }
.stat { text-align: left; }
.stat-num {
  font-family: var(--font-display);
  font-size: clamp(1.6rem, 3vw, 2.1rem);
  font-weight: 700;
  letter-spacing: -0.02em;
  background: var(--grad);
  -webkit-background-clip: text; background-clip: text; color: transparent;
  margin-bottom: 6px;
}
.stat-suffix { font-size: 0.62em; font-weight: 600; }
.stat-label { font-size: 13px; color: var(--muted); line-height: 1.45; }

/* ---------- About ---------- */
.about-grid { display: grid; grid-template-columns: 1.25fr 0.75fr; gap: 48px; align-items: start; }
.about-text p { color: var(--muted); margin-bottom: 16px; font-size: 1.04rem; }
.about-text p:first-child { color: var(--text); }

.about-facts { border: 1px solid var(--border); border-radius: var(--radius); overflow: hidden; background: var(--surface); }
.fact { padding: 15px 20px; border-bottom: 1px solid var(--border); display: flex; flex-direction: column; gap: 2px; }
.fact:last-child { border-bottom: none; }
.fact-key { font-family: var(--font-mono); font-size: 11px; text-transform: uppercase; letter-spacing: 0.1em; color: var(--muted); }
.fact-val { font-size: 14.5px; font-weight: 500; }

/* ---------- Cards (skills) ---------- */
.skills-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; }

.card {
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.04), rgba(255, 255, 255, 0.015));
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 28px;
  transition: transform 0.22s ease, border-color 0.22s ease, box-shadow 0.22s ease;
  position: relative;
}
.card:hover {
  transform: translateY(-4px);
  border-color: rgba(34, 211, 238, 0.35);
  box-shadow: 0 16px 44px rgba(0, 0, 0, 0.4), 0 0 0 1px rgba(34, 211, 238, 0.08);
}
.card-icon {
  width: 46px; height: 46px;
  border-radius: 12px;
  background: var(--grad-soft);
  border: 1px solid rgba(34, 211, 238, 0.22);
  display: flex; align-items: center; justify-content: center;
  margin-bottom: 18px;
  color: var(--cyan);
}
.card-icon svg { width: 22px; height: 22px; }
.card h3 { font-size: 1.12rem; margin-bottom: 10px; letter-spacing: -0.01em; }
.card p { color: var(--muted); font-size: 14.5px; }

/* ---------- Projects ---------- */
.projects-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 20px; }

.project-card { display: flex; flex-direction: column; }
.project-head { display: flex; align-items: flex-start; justify-content: space-between; gap: 12px; }
.project-metric {
  font-family: var(--font-mono);
  font-size: 12px;
  color: var(--violet);
  background: rgba(167, 139, 250, 0.1);
  border: 1px solid rgba(167, 139, 250, 0.25);
  border-radius: 999px;
  padding: 4px 11px;
  white-space: nowrap;
}
.project-card h3 { font-size: 1.35rem; margin: 4px 0 10px; letter-spacing: -0.01em; }
.project-desc { font-size: 14.5px; margin-bottom: 18px; flex: 1; }

.tags { display: flex; flex-wrap: wrap; gap: 7px; }
.tags span {
  font-family: var(--font-mono);
  font-size: 11.5px;
  color: #7dd3fc;
  background: rgba(34, 211, 238, 0.07);
  border: 1px solid rgba(34, 211, 238, 0.16);
  border-radius: 999px;
  padding: 3.5px 11px;
}

/* ---------- Services ---------- */
.services-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 18px 20px; }

.service-item {
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 26px 26px 28px;
  background: var(--surface);
  transition: transform 0.2s ease, border-color 0.2s ease, background 0.2s ease;
  position: relative;
  overflow: hidden;
}
.service-item:hover { transform: translateY(-3px); border-color: rgba(129, 140, 248, 0.4); background: var(--surface-2); }
.service-num {
  font-family: var(--font-mono);
  font-size: 13px;
  color: transparent;
  background: var(--grad);
  -webkit-background-clip: text; background-clip: text;
  font-weight: 600;
  display: inline-block;
  margin-bottom: 14px;
}
.service-item h3 { font-size: 1.05rem; margin-bottom: 8px; }
.service-item p { color: var(--muted); font-size: 14px; }

/* ---------- Contact ---------- */
.section-contact { padding-bottom: 110px; }
.contact-card {
  position: relative;
  text-align: center;
  padding: 72px 40px;
  border-radius: 24px;
  border: 1px solid var(--border-hi);
  background: linear-gradient(180deg, rgba(129, 140, 248, 0.08), rgba(34, 211, 238, 0.04)), var(--bg-2);
  overflow: hidden;
}
.contact-glow {
  position: absolute;
  width: 520px; height: 520px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(34, 211, 238, 0.14), transparent 65%);
  top: -280px; left: 50%; transform: translateX(-50%);
  pointer-events: none;
}
.contact-card .overline { margin-bottom: 16px; }
.contact-title { font-size: clamp(1.8rem, 3.6vw, 2.6rem); letter-spacing: -0.02em; margin-bottom: 14px; }
.contact-desc { color: var(--muted); max-width: 34em; margin: 0 auto 32px; }
.contact-card .btn { position: relative; }
.contact-hint { margin-top: 18px; font-size: 13.5px; color: var(--muted); position: relative; }

/* ---------- Footer ---------- */
.site-footer { border-top: 1px solid var(--border); padding: 26px 0; }
.footer-inner { display: flex; justify-content: space-between; align-items: center; gap: 12px; font-size: 13.5px; color: var(--muted); }
.footer-tag { font-family: var(--font-mono); font-size: 12px; letter-spacing: 0.08em; text-transform: uppercase; }

/* ---------- Reveal animation ---------- */
.reveal { opacity: 0; transform: translateY(26px); transition: opacity 0.6s ease, transform 0.6s ease; }
.reveal.visible { opacity: 1; transform: none; }

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; scroll-snap-type: none; }
  .reveal { opacity: 1; transform: none; transition: none; }
  .orb, .cursor { animation: none; }
  *, *::before, *::after { transition-duration: 0.01ms !important; }
}

/* ---------- Responsive ---------- */
@media (max-width: 980px) {
  .hero-grid { grid-template-columns: 1fr; gap: 44px; }
  .terminal { max-width: 620px; }
  .stats-grid { grid-template-columns: repeat(3, 1fr); row-gap: 26px; }
  .skills-grid, .services-grid { grid-template-columns: repeat(2, 1fr); }
  .about-grid { grid-template-columns: 1fr; gap: 28px; }
}

@media (max-width: 720px) {
  .section { padding: 72px 0; }
  .nav {
    position: fixed;
    top: var(--header-h);
    left: 0; right: 0;
    flex-direction: column;
    background: rgba(6, 10, 19, 0.97);
    backdrop-filter: blur(16px);
    -webkit-backdrop-filter: blur(16px);
    border-bottom: 1px solid var(--border);
    padding: 14px 20px 20px;
    gap: 4px;
    transform: translateY(-12px);
    opacity: 0;
    pointer-events: none;
    transition: transform 0.22s ease, opacity 0.22s ease;
    margin-left: 0;
  }
  .nav.open { transform: none; opacity: 1; pointer-events: auto; }
  .nav a { padding: 12px 14px; font-size: 16px; }
  .burger { display: flex; }
  .header-actions .btn-sm { display: none; }
  .stats-grid { grid-template-columns: repeat(2, 1fr); }
  .skills-grid, .services-grid, .projects-grid { grid-template-columns: 1fr; }
  .hero { padding-top: calc(var(--header-h) + 56px); }
  .contact-card { padding: 52px 24px; }
  .footer-inner { flex-direction: column; gap: 6px; text-align: center; }
}

/* ============================================================
   KernelForge — extended sections
   ============================================================ */

/* stats: 4 columns */
.stats-grid { grid-template-columns: repeat(4, 1fr); }

/* ---------- Grids ---------- */
.grid-3 { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; }
.grid-2 { display: grid; grid-template-columns: repeat(2, 1fr); gap: 20px; }

.card-ico {
  width: 48px; height: 48px;
  border-radius: 13px;
  background: var(--grad-soft);
  border: 1px solid rgba(34, 211, 238, 0.22);
  display: flex; align-items: center; justify-content: center;
  margin-bottom: 18px;
  font-size: 22px;
}
.card h3 { font-size: 1.08rem; margin-bottom: 10px; }
.card p { color: var(--muted); font-size: 14.5px; }

.grad-text {
  background: var(--grad);
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
  color: transparent;
}

/* ---------- Pipeline ---------- */
.pipeline {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 18px;
  margin-bottom: 44px;
}
.pipe-step {
  background: linear-gradient(180deg, rgba(255,255,255,0.035), rgba(255,255,255,0.012));
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 24px;
  position: relative;
  transition: transform 0.22s ease, border-color 0.22s ease;
}
.pipe-step:hover { transform: translateY(-3px); border-color: rgba(129,140,248,0.35); }
.pipe-num {
  font-family: var(--font-mono);
  font-size: 12px;
  letter-spacing: 0.12em;
  color: var(--cyan);
  margin-bottom: 14px;
  display: inline-block;
  border: 1px solid rgba(34,211,238,0.3);
  border-radius: 999px;
  padding: 3px 12px;
}
.pipe-step h3 { font-size: 1.02rem; margin-bottom: 8px; }
.pipe-step p { color: var(--muted); font-size: 13.8px; }

/* ---------- Code block ---------- */
.code-block {
  background: #070c16;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  overflow: hidden;
  font-family: var(--font-mono);
  font-size: 13.5px;
  line-height: 1.7;
}
.code-head {
  display: flex; justify-content: space-between; align-items: center;
  padding: 11px 18px;
  border-bottom: 1px solid var(--border);
  color: var(--muted);
  font-size: 12.5px;
  background: rgba(255,255,255,0.02);
}
.code-lang { color: var(--cyan); font-size: 11.5px; letter-spacing: 0.08em; text-transform: uppercase; }
.code-block pre { padding: 18px 20px; overflow-x: auto; }
.c-com { color: #64748b; font-style: italic; }
.c-kw { color: #c084fc; }
.c-fn { color: #22d3ee; }
.c-num { color: #fbbf24; }
.c-out { color: var(--green); }
.c-str { color: #a5b4fc; }

/* ---------- Bench table ---------- */
.bench-wrap {
  overflow-x: auto;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  background: linear-gradient(180deg, rgba(255,255,255,0.03), rgba(255,255,255,0.01));
  margin-bottom: 28px;
}
.bench-table { width: 100%; border-collapse: collapse; min-width: 560px; }
.bench-table th {
  text-align: left;
  font-family: var(--font-mono);
  font-size: 11.5px;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--muted);
  padding: 14px 20px;
  border-bottom: 1px solid var(--border);
  font-weight: 500;
}
.bench-table td {
  padding: 15px 20px;
  font-size: 14.5px;
  border-bottom: 1px solid rgba(148,163,184,0.07);
  color: var(--text);
  font-variant-numeric: tabular-nums;
}
.bench-table tr:last-child td { border-bottom: none; }
.bench-table tbody tr { transition: background 0.15s ease; }
.bench-table tbody tr:hover { background: rgba(34,211,238,0.05); }
.td-grad {
  font-family: var(--font-mono);
  font-weight: 600;
  background: var(--grad);
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
  color: transparent;
  font-size: 16px !important;
}
.td-ok { color: var(--green); font-weight: 600; }
.bench-num {
  margin-top: 14px;
  font-family: var(--font-mono);
  font-size: 20px;
  font-weight: 600;
  background: var(--grad);
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
  color: transparent;
}

/* ---------- Agent scheme ---------- */
.scheme {
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  gap: 26px;
  align-items: stretch;
}
.scheme-side {
  background: linear-gradient(180deg, rgba(255,255,255,0.035), rgba(255,255,255,0.012));
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 30px;
}
.scheme-side:last-of-type { border-color: rgba(129,140,248,0.3); }
.scheme-title {
  font-family: var(--font-display);
  font-size: 1.15rem;
  font-weight: 600;
  margin-bottom: 16px;
  color: var(--text);
}
.scheme-side:last-of-type .scheme-title { color: var(--indigo); }
.scheme-arrow {
  display: flex; align-items: center;
  font-size: 30px;
  background: var(--grad);
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
  color: transparent;
  animation: pulse-arrow 2.4s ease-in-out infinite;
}
@keyframes pulse-arrow {
  0%, 100% { opacity: 0.55; transform: scale(1); }
  50% { opacity: 1; transform: scale(1.12); }
}

.tick-list { list-style: none; display: flex; flex-direction: column; gap: 11px; }
.tick-list li {
  position: relative;
  padding-left: 26px;
  color: var(--muted);
  font-size: 14.5px;
}
.tick-list li::before {
  content: "✓";
  position: absolute;
  left: 0; top: 0;
  color: var(--green);
  font-weight: 700;
}

/* ---------- Plans ---------- */
.plans {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 380px));
  gap: 24px;
  justify-content: center;
  margin-top: 8px;
}
.plan-card {
  background: linear-gradient(180deg, rgba(255,255,255,0.04), rgba(255,255,255,0.015));
  border: 1px solid var(--border);
  border-radius: 20px;
  padding: 34px;
  position: relative;
  display: flex;
  flex-direction: column;
  gap: 18px;
}
.plan-card .tick-list { margin-bottom: 8px; }
.plan-card .btn { margin-top: auto; text-align: center; }
.plan-hot {
  border-color: rgba(129,140,248,0.45);
  box-shadow: 0 0 0 1px rgba(129,140,248,0.12), 0 20px 60px rgba(129,140,248,0.12);
}
.plan-badge {
  position: absolute;
  top: -13px; right: 22px;
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  background: var(--grad);
  color: #060a13;
  font-weight: 700;
  padding: 5px 14px;
  border-radius: 999px;
}
.plan-name {
  font-family: var(--font-display);
  font-size: 1.25rem;
  font-weight: 600;
}
.plan-price {
  font-family: var(--font-display);
  font-size: 2.6rem;
  font-weight: 700;
  background: var(--grad);
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
  color: transparent;
  line-height: 1;
}
.plan-per { font-size: 1rem; font-weight: 500; -webkit-text-fill-color: var(--muted); color: var(--muted); }

/* ---------- FAQ ---------- */
.faq-list { max-width: 760px; margin-inline: auto; display: flex; flex-direction: column; gap: 12px; }
.faq-item {
  background: linear-gradient(180deg, rgba(255,255,255,0.03), rgba(255,255,255,0.01));
  border: 1px solid var(--border);
  border-radius: 14px;
  overflow: hidden;
  transition: border-color 0.2s ease;
}
.faq-item[open] { border-color: rgba(34,211,238,0.3); }
.faq-item summary {
  cursor: pointer;
  list-style: none;
  padding: 18px 22px;
  font-weight: 500;
  font-size: 15.5px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 14px;
  user-select: none;
}
.faq-item summary::-webkit-details-marker { display: none; }
.faq-item summary::after {
  content: "+";
  font-family: var(--font-mono);
  font-size: 19px;
  color: var(--cyan);
  transition: transform 0.2s ease;
  flex-shrink: 0;
}
.faq-item[open] summary::after { transform: rotate(45deg); }
.faq-item p { padding: 0 22px 20px; color: var(--muted); font-size: 14.5px; }

/* ---------- CTA ---------- */
.cta {
  position: relative;
  padding: 110px 0;
  text-align: center;
  overflow: hidden;
}
.cta::before {
  content: "";
  position: absolute;
  inset: 0;
  background:
    radial-gradient(600px 240px at 50% 100%, rgba(34,211,238,0.12), transparent 70%),
    radial-gradient(500px 220px at 50% 0%, rgba(129,140,248,0.12), transparent 70%);
  pointer-events: none;
}
.cta-inner { position: relative; }
.cta-title {
  font-size: clamp(1.8rem, 4vw, 2.6rem);
  letter-spacing: -0.02em;
  margin-bottom: 16px;
}
.cta-sub { color: var(--muted); max-width: 34em; margin: 0 auto 34px; font-size: 1.04rem; }
.cta .hero-cta { justify-content: center; margin-bottom: 0; }

/* ---------- Footer extras ---------- */
.footer-left { display: flex; align-items: center; gap: 8px; }
.footer-right { display: flex; align-items: center; gap: 18px; }
.footer-right a:hover { color: var(--cyan); }
.footer-dot { color: var(--border-hi); }
.footer-year { color: var(--border-hi); font-family: var(--font-mono); font-size: 12.5px; }

/* ---------- Reveal (JS adds .revealed) ---------- */
.revealed { opacity: 1 !important; transform: none !important; }
.section-head, .card, .stat, .pipe-step, .plan-card, .faq-item, .scheme-side,
.bench-wrap, .code-block, .hero-text, .terminal, .cta-inner {
  opacity: 0;
  transform: translateY(26px);
  transition: opacity 0.6s ease, transform 0.6s ease;
}

/* ---------- Responsive (extended) ---------- */
@media (max-width: 980px) {
  .grid-3, .pipeline { grid-template-columns: repeat(2, 1fr); }
  .scheme { grid-template-columns: 1fr; }
  .scheme-arrow { transform: rotate(90deg); justify-content: center; padding: 4px 0; }
  .stats-grid { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 720px) {
  .grid-3, .pipeline, .plans { grid-template-columns: 1fr; }
  .bench-table th, .bench-table td { padding: 11px 14px; }
  .plan-card { padding: 28px 22px; }
  .scheme-side { padding: 22px; }
}
@media (prefers-reduced-motion: reduce) {
  .section-head, .card, .stat, .pipe-step, .plan-card, .faq-item, .scheme-side,
  .bench-wrap, .code-block, .hero-text, .terminal, .cta-inner {
    opacity: 1; transform: none; transition: none;
  }
  .scheme-arrow, .orb, .cursor { animation: none; }
}
