﻿/* ============================================================
   快连VPN 官网设计系统
   Design tokens + layout + components
   ============================================================ */

:root {
  --bg: #070b16;
  --bg-soft: #0b1122;
  --surface: rgba(255, 255, 255, 0.035);
  --surface-2: rgba(255, 255, 255, 0.06);
  --line: rgba(255, 255, 255, 0.09);
  --line-strong: rgba(255, 255, 255, 0.16);

  --text: #eef3ff;
  --text-2: #aab6d4;
  --text-3: #7b88a8;

  --brand: #22d3ee;
  --brand-2: #3b82f6;
  --brand-3: #7c5cff;
  --accent: #a855f7;
  --ok: #34d399;
  --warn: #fbbf24;

  --grad: linear-gradient(120deg, #22d3ee 0%, #3b82f6 52%, #7c5cff 100%);
  --grad-soft: linear-gradient(120deg, rgba(34, 211, 238, .16), rgba(124, 92, 255, .16));

  --r-sm: 10px;
  --r: 16px;
  --r-lg: 24px;
  --r-full: 999px;

  --shadow: 0 18px 50px -18px rgba(0, 0, 0, .8);
  --shadow-glow: 0 0 0 1px rgba(34, 211, 238, .25), 0 20px 60px -22px rgba(34, 211, 238, .5);

  --container: 1180px;
  --nav-h: 68px;

  --f-sans: "PingFang SC", "HarmonyOS Sans SC", "Microsoft YaHei", "Hiragino Sans GB", system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
  --f-mono: ui-monospace, SFMono-Regular, Menlo, Consolas, "Courier New", monospace;
}

/* ---------- Reset ---------- */
*,
*::before,
*::after { box-sizing: border-box; }

html {
  scroll-behavior: smooth;
  scroll-padding-top: calc(var(--nav-h) + 16px);
  -webkit-text-size-adjust: 100%;
}

body {
  margin: 0;
  font-family: var(--f-sans);
  font-size: 16px;
  line-height: 1.75;
  color: var(--text-2);
  background: var(--bg);
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}

body::before {
  content: "";
  position: fixed;
  inset: 0;
  z-index: -2;
  background:
    radial-gradient(900px 520px at 12% -8%, rgba(34, 211, 238, .16), transparent 60%),
    radial-gradient(760px 480px at 88% 4%, rgba(124, 92, 255, .16), transparent 62%),
    radial-gradient(700px 500px at 50% 100%, rgba(59, 130, 246, .10), transparent 60%),
    var(--bg);
}

img, svg { max-width: 100%; display: block; }
a { color: var(--brand); text-decoration: none; }
a:hover { color: #7ee7f7; }
ul, ol { margin: 0; padding: 0; list-style: none; }
h1, h2, h3, h4, h5 {
  margin: 0;
  color: var(--text);
  font-weight: 700;
  line-height: 1.3;
  letter-spacing: -.01em;
}
p { margin: 0 0 1em; }
p:last-child { margin-bottom: 0; }
strong { color: var(--text); font-weight: 600; }
hr { border: 0; border-top: 1px solid var(--line); margin: 40px 0; }

/* ---------- A11y ---------- */
.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: 12px; top: -60px; z-index: 200;
  background: var(--brand); color: #04212a; padding: 10px 16px;
  border-radius: var(--r-sm); font-weight: 700; transition: top .2s;
}
.skip-link:focus { top: 12px; color: #04212a; }
:focus-visible { outline: 2px solid var(--brand); outline-offset: 3px; border-radius: 6px; }

/* ---------- Layout ---------- */
.container { width: 100%; max-width: var(--container); margin: 0 auto; padding: 0 22px; }
.section { padding: 84px 0; position: relative; }
.section--tight { padding: 62px 0; }
.section--alt { background: linear-gradient(180deg, transparent, rgba(255,255,255,.022) 18%, rgba(255,255,255,.022) 82%, transparent); }

.divider {
  height: 1px; border: 0; margin: 0;
  background: linear-gradient(90deg, transparent, var(--line-strong), transparent);
}

.grid { display: grid; gap: 22px; }
.grid-2 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.grid-3 { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.grid-4 { grid-template-columns: repeat(4, minmax(0, 1fr)); }

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  padding: 13px 26px; border-radius: var(--r-full);
  font-weight: 700; font-size: 15px; line-height: 1;
  border: 1px solid transparent; cursor: pointer;
  transition: transform .18s ease, box-shadow .18s ease, background .18s ease, border-color .18s;
  white-space: nowrap;
}
.btn:hover { transform: translateY(-2px); color: inherit; }
.btn:active { transform: translateY(0); }
.btn--primary { background: var(--grad); color: #04121c; box-shadow: 0 12px 30px -12px rgba(34, 211, 238, .8); }
.btn--primary:hover { box-shadow: 0 18px 40px -12px rgba(34, 211, 238, .95); color: #04121c; }
.btn--ghost { background: var(--surface); color: var(--text); border-color: var(--line-strong); }
.btn--ghost:hover { background: var(--surface-2); border-color: rgba(34,211,238,.5); color: var(--text); }
.btn--lg { padding: 16px 34px; font-size: 16px; }
.btn--sm { padding: 9px 18px; font-size: 13.5px; }
.btn--block { display: flex; width: 100%; }

/* ---------- Header / Nav ---------- */
.site-header {
  position: sticky; top: 0; z-index: 100;
  height: var(--nav-h);
  display: flex; align-items: center;
  background: rgba(7, 11, 22, .78);
  backdrop-filter: saturate(160%) blur(14px);
  -webkit-backdrop-filter: saturate(160%) blur(14px);
  border-bottom: 1px solid var(--line);
}
.site-header .container { display: flex; align-items: center; gap: 20px; }

.logo { display: inline-flex; align-items: center; gap: 10px; font-weight: 800; font-size: 19px; color: var(--text); }
.logo:hover { color: var(--text); }
.logo-mark {
  width: 34px; height: 34px; border-radius: 10px; overflow: hidden;
  box-shadow: 0 8px 20px -8px rgba(124, 92, 255, .55);
  flex: none;
}
.logo-mark img { width: 100%; height: 100%; display: block; object-fit: cover; }
.logo-text b { color: var(--text); }
.logo-text span { color: var(--brand); }

.nav { margin-left: auto; display: flex; align-items: center; }
.nav-list { display: flex; align-items: center; gap: 4px; }
.nav-list a {
  display: block; padding: 9px 13px; border-radius: var(--r-sm);
  color: var(--text-2); font-size: 14.5px; font-weight: 500; white-space: nowrap;
  transition: color .18s, background .18s;
}
.nav-list a:hover { color: var(--text); background: var(--surface); }
.nav-list a[aria-current="page"] { color: var(--text); background: var(--surface-2); }
.nav-cta { margin-left: 10px; flex: none; }

.nav-toggle {
  display: none; margin-left: auto;
  width: 42px; height: 42px; border-radius: var(--r-sm);
  background: var(--surface); border: 1px solid var(--line);
  cursor: pointer; padding: 0; place-items: center;
}
.nav-toggle span { display: block; width: 18px; height: 2px; background: var(--text); position: relative; transition: .25s; }
.nav-toggle span::before,
.nav-toggle span::after { content: ""; position: absolute; left: 0; width: 18px; height: 2px; background: var(--text); transition: .25s; }
.nav-toggle span::before { top: -6px; }
.nav-toggle span::after { top: 6px; }
.nav-toggle[aria-expanded="true"] span { background: transparent; }
.nav-toggle[aria-expanded="true"] span::before { top: 0; transform: rotate(45deg); }
.nav-toggle[aria-expanded="true"] span::after { top: 0; transform: rotate(-45deg); }

/* ---------- Hero ---------- */
.hero { position: relative; padding: 92px 0 78px; overflow: hidden; }
.hero-grid { display: grid; grid-template-columns: minmax(0, 1.06fr) minmax(0, .94fr); gap: 54px; align-items: center; }
.hero h1 { font-size: clamp(32px, 5vw, 56px); line-height: 1.14; margin-bottom: 22px; }
.hero h1 em {
  font-style: normal;
  background: var(--grad);
  -webkit-background-clip: text; background-clip: text; color: transparent;
}
.hero-lead { font-size: 17.5px; color: var(--text-2); max-width: 620px; margin-bottom: 30px; }
.hero-actions { display: flex; flex-wrap: wrap; gap: 14px; margin-bottom: 26px; }
.hero-meta { display: flex; flex-wrap: wrap; gap: 10px 22px; font-size: 14px; color: var(--text-3); }
.hero-meta span { display: inline-flex; align-items: center; gap: 7px; }
.dot { width: 7px; height: 7px; border-radius: 50%; background: var(--ok); box-shadow: 0 0 0 4px rgba(52, 211, 153, .16); flex: none; }

.eyebrow {
  display: inline-flex; align-items: center; gap: 9px;
  padding: 7px 15px; border-radius: var(--r-full);
  background: var(--grad-soft); border: 1px solid rgba(34, 211, 238, .28);
  color: #9fe9f7; font-size: 13px; font-weight: 600; margin-bottom: 22px;
}

/* App mock */
.mock {
  position: relative; border-radius: var(--r-lg);
  background: linear-gradient(165deg, rgba(255,255,255,.07), rgba(255,255,255,.02));
  border: 1px solid var(--line-strong); box-shadow: var(--shadow);
  padding: 22px; overflow: hidden;
}
.mock::before {
  content: ""; position: absolute; inset: -40% -10% auto; height: 70%;
  background: radial-gradient(closest-side, rgba(34,211,238,.28), transparent);
  filter: blur(30px);
}
.mock-bar { display: flex; gap: 6px; margin-bottom: 18px; position: relative; }
.mock-bar i { width: 10px; height: 10px; border-radius: 50%; background: var(--line-strong); }
.mock-node {
  position: relative; text-align: center; padding: 26px 18px 22px;
  border-radius: var(--r); background: rgba(8, 14, 28, .72); border: 1px solid var(--line);
}
.mock-node h3, .mock-node-title { font-size: 19px; font-weight: 700; color: var(--text); margin-bottom: 4px; }
.mock-node p { font-size: 13.5px; color: var(--text-3); margin: 0; }
.mock-toggle {
  margin: 18px auto 0; width: 78px; height: 40px; border-radius: var(--r-full);
  background: var(--grad); border: 0; cursor: pointer; position: relative;
  box-shadow: 0 10px 26px -10px rgba(34, 211, 238, .9);
}
.mock-toggle::after {
  content: ""; position: absolute; top: 4px; right: 4px; width: 32px; height: 32px;
  border-radius: 50%; background: #fff; transition: transform .3s ease;
}
.mock.is-off .mock-toggle::after { transform: translateX(-38px); }
.mock-stats { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 10px; margin-top: 18px; }
.mock-stats div {
  background: rgba(8, 14, 28, .72); border: 1px solid var(--line);
  border-radius: var(--r-sm); padding: 12px 10px; text-align: center;
}
.mock-stats b { display: block; color: var(--text); font-size: 19px; font-weight: 700; line-height: 1.2; }
.mock-stats span { font-size: 12px; color: var(--text-3); }

/* ---------- Section head ---------- */
.sec-head { max-width: 720px; margin-bottom: 46px; }
.sec-head--center { margin-left: auto; margin-right: auto; text-align: center; }
.sec-head h2 { font-size: clamp(25px, 3.4vw, 38px); margin-bottom: 14px; }
.sec-head p { font-size: 16.5px; color: var(--text-2); }
.sec-head .kicker {
  display: block; font-size: 13px; font-weight: 700; letter-spacing: .16em;
  text-transform: uppercase; color: var(--brand); margin-bottom: 12px;
}

/* ---------- Cards ---------- */
.card {
  background: var(--surface); border: 1px solid var(--line);
  border-radius: var(--r); padding: 26px 24px;
  transition: transform .22s ease, border-color .22s ease, background .22s ease;
  height: 100%;
}
.card:hover { transform: translateY(-4px); border-color: rgba(34, 211, 238, .38); background: var(--surface-2); }
.card h3 { font-size: 18px; margin-bottom: 10px; }
.card p { font-size: 15px; color: var(--text-2); margin-bottom: 0; }
.card-icon {
  width: 46px; height: 46px; border-radius: 13px; margin-bottom: 16px;
  display: grid; place-items: center;
  background: var(--grad-soft); border: 1px solid rgba(34, 211, 238, .26); color: var(--brand);
}
.card-icon svg { width: 22px; height: 22px; }
.card-link { display: inline-flex; align-items: center; gap: 6px; margin-top: 14px; font-size: 14.5px; font-weight: 600; }
.card-link svg { width: 15px; height: 15px; transition: transform .2s; }
.card-link:hover svg { transform: translateX(3px); }

/* ---------- Stats ---------- */
.stat {
  text-align: center; padding: 30px 18px;
  background: var(--surface); border: 1px solid var(--line); border-radius: var(--r);
}
.stat b {
  display: block; font-size: clamp(28px, 4.2vw, 44px); font-weight: 800; line-height: 1.1;
  background: var(--grad); -webkit-background-clip: text; background-clip: text; color: transparent;
  font-variant-numeric: tabular-nums;
}
.stat span { font-size: 14.5px; color: var(--text-2); }
.stat small { display: block; margin-top: 6px; font-size: 12.5px; color: var(--text-3); }

/* ---------- Feature list ---------- */
.feat-list { display: grid; gap: 18px; }
.feat {
  display: flex; gap: 16px; padding: 22px;
  background: var(--surface); border: 1px solid var(--line); border-radius: var(--r);
  transition: border-color .2s;
}
.feat:hover { border-color: rgba(34, 211, 238, .35); }
.feat-num {
  flex: none; width: 38px; height: 38px; border-radius: 11px;
  display: grid; place-items: center; font-weight: 800; font-size: 15px;
  background: var(--grad-soft); border: 1px solid rgba(34,211,238,.28); color: #9fe9f7;
}
.feat h3 { font-size: 17px; margin-bottom: 7px; }
.feat p { font-size: 14.8px; margin-bottom: 0; }

/* ---------- Split (media + text) ---------- */
.split { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 50px; align-items: center; }
.split--rev .split-media { order: -1; }

.panel {
  border-radius: var(--r-lg); padding: 30px;
  background: linear-gradient(160deg, rgba(255,255,255,.07), rgba(255,255,255,.02));
  border: 1px solid var(--line-strong); box-shadow: var(--shadow);
}
.panel h3 { margin-bottom: 18px; font-size: 19px; }

/* ---------- Definition list (policy style) ---------- */
.deflist { display: grid; gap: 14px; }
.deflist > div {
  display: grid; grid-template-columns: minmax(96px, auto) minmax(0, 1fr); gap: 6px 18px;
  align-items: baseline;
}
.deflist dt { font-weight: 600; color: var(--text); font-size: 15px; }
.deflist dd { margin: 0; color: var(--text-2); font-size: 15px; }

/* Terminal / tunnel visual */
.viz { font-family: var(--f-mono); font-size: 13px; line-height: 1.9; }
.viz-line { display: flex; gap: 10px; opacity: 0; transform: translateY(6px); animation: rise .5s forwards; }
.viz-line:nth-child(1) { animation-delay: .05s }
.viz-line:nth-child(2) { animation-delay: .35s }
.viz-line:nth-child(3) { animation-delay: .65s }
.viz-line:nth-child(4) { animation-delay: .95s }
.viz-line:nth-child(5) { animation-delay: 1.25s }
.viz-line:nth-child(6) { animation-delay: 1.55s }
.viz-t { color: var(--text-3); flex: none; }
.viz-tag { color: var(--brand); }
.viz-ok { color: var(--ok); }
@keyframes rise { to { opacity: 1; transform: none; } }

.bars { display: grid; gap: 14px; }
.bar-row { display: grid; grid-template-columns: 108px minmax(0, 1fr) 58px; gap: 12px; align-items: center; font-size: 14px; }
.bar-row .nm { color: var(--text-2); }
.bar-track { height: 8px; border-radius: var(--r-full); background: rgba(255,255,255,.07); overflow: hidden; }
.bar-fill { height: 100%; border-radius: var(--r-full); background: var(--grad); width: 0; transition: width 1.2s cubic-bezier(.2,.8,.2,1); }
.bar-val { text-align: right; color: var(--text); font-weight: 700; font-variant-numeric: tabular-nums; }

/* ---------- Table ---------- */
.table-wrap { overflow-x: auto; border: 1px solid var(--line); border-radius: var(--r); background: var(--surface); }
table { width: 100%; border-collapse: collapse; min-width: 720px; font-size: 14.8px; }
caption { caption-side: top; text-align: left; padding: 18px 22px 0; color: var(--text-3); font-size: 14px; }
th, td { padding: 15px 20px; text-align: left; border-bottom: 1px solid var(--line); vertical-align: middle; }
thead th { background: rgba(255,255,255,.045); color: var(--text); font-weight: 700; font-size: 14px; white-space: nowrap; }
tbody tr:last-child td { border-bottom: 0; }
tbody tr:hover { background: rgba(255,255,255,.028); }
td b { color: var(--text); }

.tag {
  display: inline-flex; align-items: center; gap: 6px;
  padding: 4px 11px; border-radius: var(--r-full);
  font-size: 12.5px; font-weight: 600; white-space: nowrap;
  background: var(--grad-soft); border: 1px solid rgba(34, 211, 238, .3); color: #9fe9f7;
}
.tag--ok { background: rgba(52,211,153,.12); border-color: rgba(52,211,153,.32); color: #6ee7b7; }
.tag--warn { background: rgba(251,191,36,.12); border-color: rgba(251,191,36,.32); color: #fcd34d; }
.tag--muted { background: rgba(255,255,255,.06); border-color: var(--line-strong); color: var(--text-3); }

/* ---------- Steps ---------- */
.steps { counter-reset: step; display: grid; gap: 20px; }
.step {
  display: grid; grid-template-columns: 62px minmax(0, 1fr); gap: 20px; align-items: start;
  padding: 24px; border-radius: var(--r);
  background: var(--surface); border: 1px solid var(--line);
  transition: border-color .2s, transform .2s;
}
.step:hover { border-color: rgba(34,211,238,.35); transform: translateX(3px); }
.step::before {
  counter-increment: step; content: counter(step, decimal-leading-zero);
  font-size: 24px; font-weight: 800; line-height: 1;
  background: var(--grad); -webkit-background-clip: text; background-clip: text; color: transparent;
}
.step h3 { font-size: 17.5px; margin-bottom: 7px; }
.step p { font-size: 14.8px; margin-bottom: 0; }
.step-code {
  margin-top: 10px; padding: 10px 14px; border-radius: var(--r-sm);
  background: rgba(0,0,0,.35); border: 1px solid var(--line);
  font-family: var(--f-mono); font-size: 13px; color: #9fe9f7; overflow-x: auto; white-space: nowrap;
}

/* ---------- Download cards ---------- */
.dl-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(248px, 1fr)); gap: 20px; }
.dl {
  display: flex; flex-direction: column; gap: 14px; padding: 26px 24px;
  background: var(--surface); border: 1px solid var(--line); border-radius: var(--r);
  transition: transform .22s, border-color .22s, box-shadow .22s;
}
.dl:hover { transform: translateY(-5px); border-color: rgba(34,211,238,.4); box-shadow: 0 22px 46px -24px rgba(34,211,238,.55); }
.dl-top { display: flex; align-items: center; gap: 13px; }
.dl-icon {
  width: 48px; height: 48px; border-radius: 13px; flex: none;
  display: grid; place-items: center;
  background: var(--grad-soft); border: 1px solid rgba(34,211,238,.28); color: var(--brand);
}
.dl-icon svg { width: 24px; height: 24px; }
.dl h3 { font-size: 17px; margin-bottom: 3px; }
.dl .ver { font-size: 12.5px; color: var(--text-3); font-family: var(--f-mono); }
.dl p { font-size: 14.5px; margin: 0; flex: 1; }
.dl .btn { align-self: flex-start; }

/* ---------- Pricing ---------- */
.price-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 22px; align-items: stretch; }
.plan {
  position: relative; display: flex; flex-direction: column; gap: 18px; padding: 30px 26px;
  background: var(--surface); border: 1px solid var(--line); border-radius: var(--r-lg);
  transition: transform .22s, border-color .22s;
}
.plan:hover { transform: translateY(-5px); border-color: rgba(34,211,238,.36); }
.plan--hot {
  border-color: rgba(34,211,238,.45);
  background: linear-gradient(170deg, rgba(34,211,238,.1), rgba(124,92,255,.05));
  box-shadow: var(--shadow-glow);
}
.plan-badge {
  position: absolute; top: -12px; left: 50%; transform: translateX(-50%);
  padding: 5px 15px; border-radius: var(--r-full);
  background: var(--grad); color: #04121c; font-size: 12.5px; font-weight: 800; white-space: nowrap;
}
.plan h3 { font-size: 19px; }
.plan-desc { font-size: 14px; color: var(--text-3); min-height: 42px; }
.plan-price { display: flex; align-items: baseline; gap: 4px; }
.plan-price .cur { font-size: 20px; font-weight: 700; color: var(--text); }
.plan-price .amt { font-size: 46px; font-weight: 800; line-height: 1; color: var(--text); font-variant-numeric: tabular-nums; }
.plan-price .per { font-size: 14px; color: var(--text-3); }
.plan-was { font-size: 13.5px; color: var(--text-3); text-decoration: line-through; margin: -12px 0 0; }
.plan ul { display: grid; gap: 11px; font-size: 14.5px; }
.plan li { display: flex; gap: 10px; align-items: flex-start; }
.plan li svg { width: 17px; height: 17px; flex: none; margin-top: 4px; color: var(--ok); }
.plan li.off { color: var(--text-3); }
.plan li.off svg { color: var(--text-3); opacity: .55; }
.plan .btn { margin-top: auto; }

.price-note { margin-top: 22px; text-align: center; font-size: 13.5px; color: var(--text-3); }

/* ---------- FAQ ---------- */
.faq { display: grid; gap: 14px; max-width: 900px; margin: 0 auto; }
.faq-item {
  border: 1px solid var(--line); border-radius: var(--r);
  background: var(--surface); overflow: hidden; transition: border-color .2s;
}
.faq-item[open] { border-color: rgba(34,211,238,.36); background: var(--surface-2); }
.faq-q {
  display: flex; align-items: center; gap: 14px; padding: 19px 22px;
  cursor: pointer; font-weight: 600; color: var(--text); font-size: 16px; list-style: none;
}
.faq-q::-webkit-details-marker { display: none; }
.faq-q::after {
  content: "+"; margin-left: auto; flex: none;
  width: 26px; height: 26px; border-radius: 8px; display: grid; place-items: center;
  background: var(--surface-2); border: 1px solid var(--line); color: var(--brand);
  font-size: 17px; font-weight: 700; line-height: 1; transition: transform .25s;
}
.faq-item[open] .faq-q::after { content: "\2212"; transform: rotate(180deg); }
.faq-a { padding: 0 22px 21px; font-size: 15px; color: var(--text-2); }
.faq-a ul { display: grid; gap: 8px; margin-top: 4px; }
.faq-a li { display: flex; gap: 9px; font-size: 14.5px; }
.faq-a li::before { content: ""; flex: none; width: 5px; height: 5px; border-radius: 50%; background: var(--brand); margin-top: 11px; }

/* ---------- Reviews ---------- */
.review { display: flex; flex-direction: column; gap: 16px; }
.review-top { display: flex; align-items: center; gap: 12px; }
.avatar {
  width: 42px; height: 42px; border-radius: 50%; flex: none; display: grid; place-items: center;
  font-weight: 800; font-size: 16px; color: #04121c;
  background: var(--grad);
}
.review-name { font-weight: 700; color: var(--text); font-size: 15.5px; line-height: 1.35; }
.review-role { font-size: 13px; color: var(--text-3); }
.stars { display: flex; gap: 2px; color: var(--warn); }
.stars svg { width: 15px; height: 15px; }
.review p { font-size: 15px; margin: 0; color: var(--text-2); }

/* ---------- News ---------- */
.news-item {
  display: flex; gap: 22px; padding: 24px 0; border-bottom: 1px solid var(--line);
  align-items: flex-start;
}
.news-item:last-child { border-bottom: 0; }
.news-date {
  flex: none; width: 92px; text-align: center; padding: 12px 8px; border-radius: var(--r-sm);
  background: var(--surface); border: 1px solid var(--line);
}
.news-date b { display: block; font-size: 24px; font-weight: 800; color: var(--text); line-height: 1.1; }
.news-date span { font-size: 12.5px; color: var(--text-3); }
.news-body h3 { font-size: 17.5px; margin-bottom: 8px; }
.news-body h3 a { color: var(--text); }
.news-body h3 a:hover { color: var(--brand); }
.news-body p { font-size: 14.8px; margin-bottom: 10px; }
.news-body .meta { font-size: 13px; color: var(--text-3); display: flex; flex-wrap: wrap; gap: 8px 16px; }

/* ---------- CTA band ---------- */
.cta-band { text-align: center; padding: 56px 30px; border-radius: var(--r-lg);
  background: linear-gradient(140deg, rgba(34,211,238,.13), rgba(124,92,255,.1));
  border: 1px solid rgba(34,211,238,.24);
}
.cta-band h2 { font-size: clamp(24px, 3.4vw, 36px); margin-bottom: 14px; }
.cta-band p { font-size: 16.5px; max-width: 620px; margin: 0 auto 28px; }

/* ---------- Page hero (inner pages) ---------- */
.page-hero { padding: 62px 0 46px; position: relative; }
.page-hero h1 { font-size: clamp(28px, 4.4vw, 46px); margin-bottom: 18px; max-width: 900px; }
.page-hero p { font-size: 17px; max-width: 760px; color: var(--text-2); }
.crumbs { font-size: 13.5px; color: var(--text-3); margin-bottom: 18px; }
.crumbs a { color: var(--text-3); }
.crumbs a:hover { color: var(--brand); }
.crumbs span { margin: 0 8px; opacity: .5; }

/* ---------- Prose (article body) ---------- */
.prose { max-width: 800px; }
.prose h2 { font-size: 24px; margin: 40px 0 14px; }
.prose h3 { font-size: 19px; margin: 30px 0 10px; }
.prose p, .prose li { font-size: 15.8px; }
.prose ul { display: grid; gap: 9px; margin: 0 0 18px; }
.prose ul li { display: flex; gap: 10px; }
.prose ul li::before { content: ""; flex: none; width: 6px; height: 6px; border-radius: 50%; background: var(--brand); margin-top: 11px; }
.prose ol { display: grid; gap: 9px; margin: 0 0 18px; counter-reset: n; }
.prose ol li { display: flex; gap: 10px; counter-increment: n; }
.prose ol li::before { content: counter(n) "."; color: var(--brand); font-weight: 700; flex: none; }
.prose blockquote {
  margin: 22px 0; padding: 18px 22px; border-left: 3px solid var(--brand);
  background: var(--surface); border-radius: 0 var(--r-sm) var(--r-sm) 0; color: var(--text-2);
}
.callout {
  margin: 24px 0; padding: 20px 22px; border-radius: var(--r);
  background: var(--grad-soft); border: 1px solid rgba(34,211,238,.26);
}
.callout h3 { font-size: 16.5px; margin-bottom: 8px; }
.callout p { margin: 0; font-size: 15px; }
.callout--warn { background: rgba(251,191,36,.08); border-color: rgba(251,191,36,.28); }

/* ---------- Footer ---------- */
.site-footer { border-top: 1px solid var(--line); background: rgba(4, 7, 15, .7); margin-top: 20px; }
.footer-top { padding: 54px 0 40px; }
.footer-cols { display: grid; grid-template-columns: minmax(0, 1.5fr) repeat(4, minmax(0, 1fr)); gap: 34px; }
.footer-brand p { font-size: 14.5px; margin-top: 14px; max-width: 320px; }
.footer-social { display: flex; gap: 10px; margin-top: 18px; }
.footer-social a {
  min-width: 44px; height: 44px; border-radius: 12px; display: grid; place-items: center;
  background: var(--surface); border: 1px solid var(--line); color: var(--text-2);
  transition: color .2s, border-color .2s, transform .2s;
}
.footer-social a:hover { color: var(--brand); border-color: rgba(34,211,238,.4); transform: translateY(-2px); }
.footer-social svg { width: 17px; height: 17px; }
.footer-col h4, .footer-col h3 { font-size: 14.5px; margin-bottom: 15px; }
.footer-col li { margin-bottom: 9px; }
.footer-col a { font-size: 14.2px; color: var(--text-3); }
.footer-col a:hover { color: var(--brand); }
.footer-bottom {
  border-top: 1px solid var(--line); padding: 20px 0;
  display: flex; flex-wrap: wrap; gap: 10px 24px; align-items: center;
  font-size: 13.5px; color: var(--text-3);
}
.footer-bottom nav { margin-left: auto; display: flex; flex-wrap: wrap; gap: 8px 20px; }
.footer-bottom a { color: var(--text-3); }
.footer-bottom a:hover { color: var(--brand); }

/* ---------- Back to top ---------- */
.to-top {
  position: fixed; right: 22px; bottom: 22px; z-index: 90;
  width: 44px; height: 44px; border-radius: 50%;
  background: rgba(12, 18, 34, .9); border: 1px solid var(--line-strong);
  color: var(--text); display: grid; place-items: center; cursor: pointer;
  opacity: 0; visibility: hidden; transform: translateY(10px); transition: .25s;
  backdrop-filter: blur(8px);
}
.to-top.show { opacity: 1; visibility: visible; transform: none; }
.to-top:hover { border-color: rgba(34,211,238,.5); color: var(--brand); }
.to-top svg { width: 18px; height: 18px; }

/* ---------- Reveal animation ---------- */
html.js .reveal { opacity: 0; transform: translateY(20px); transition: opacity .6s ease, transform .6s ease; }
html.js .reveal.in { opacity: 1; transform: none; }
@media (prefers-reduced-motion: reduce) {
  * { animation-duration: .001ms !important; transition-duration: .001ms !important; scroll-behavior: auto !important; }
  .reveal { opacity: 1; transform: none; }
  .viz-line { opacity: 1; transform: none; }
}

/* ---------- Responsive ---------- */
@media (max-width: 1024px) {
  .hero-grid { grid-template-columns: minmax(0, 1fr); gap: 42px; }
  .grid-4 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .grid-3 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .price-grid { grid-template-columns: minmax(0, 1fr); max-width: 520px; margin: 0 auto; }
  .split { grid-template-columns: minmax(0, 1fr); gap: 34px; }
  .split--rev .split-media { order: 0; }
  .footer-cols { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .footer-brand { grid-column: 1 / -1; }
}

@media (max-width: 768px) {
  .section { padding: 58px 0; }
  .section--tight { padding: 44px 0; }
  .hero { padding: 56px 0 50px; }
  .page-hero { padding: 42px 0 32px; }
  .nav-toggle { display: grid; }
  .nav {
    position: fixed; inset: var(--nav-h) 0 auto; margin: 0;
    flex-direction: column; align-items: stretch;
    background: rgba(7, 11, 22, .97);
    backdrop-filter: blur(16px);
    border-bottom: 1px solid var(--line);
    max-height: 0; overflow: hidden; transition: max-height .3s ease;
  }
  .nav.open { max-height: 70vh; overflow-y: auto; }
  .nav-list { flex-direction: column; align-items: stretch; gap: 2px; padding: 14px 22px 22px; }
  .nav-list a { padding: 12px 14px; font-size: 15.5px; }
  .nav-cta { margin: 8px 0 0; }
  .nav-cta .btn { width: 100%; }
  .grid-2, .grid-3, .grid-4 { grid-template-columns: minmax(0, 1fr); }
  .step { grid-template-columns: minmax(0, 1fr); gap: 10px; }
  .news-item { flex-direction: column; gap: 14px; }
  .news-date { width: auto; display: flex; gap: 8px; align-items: baseline; justify-content: flex-start; padding: 8px 14px; }
  .news-date b { font-size: 18px; }
  .bar-row { grid-template-columns: 88px minmax(0, 1fr) 52px; font-size: 13px; }
  .footer-cols { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 26px; }
  .footer-bottom { flex-direction: column; align-items: flex-start; }
  .footer-bottom nav { margin-left: 0; }
  .btn { padding: 12px 22px; }
  .btn--lg { padding: 14px 28px; font-size: 15px; }
  table { min-width: 640px; }
}

@media (max-width: 420px) {
  .footer-cols { grid-template-columns: minmax(0, 1fr); }
  .mock-stats { grid-template-columns: minmax(0, 1fr); }
}