/* ═══════════════════════════════════════════════════════════════════════════
   VARANG v3 — design system
   refs: appica.dev/ui (frames, tokens) · libraries.dev/beam (border beam)
   · metal.jakubantalik.com (WebGL plasma) · libraries.dev/orbs (dot lattice)
   · transitions.dev (spring easings, stagger, press) · canvasui.dev (motion)
   ═══════════════════════════════════════════════════════════════════════════ */

@property --beam-angle { syntax: "<angle>"; inherits: false; initial-value: 0deg; }

:root {
  color-scheme: dark;

  /* palette */
  --bg: #030712;
  --bg-2: #050a17;
  --layer-1: #0a101f;
  --layer-2: #101828;
  --layer-3: #1e2939;
  --line: #1e2939;
  --line-2: #364153;
  --text: #e7ecf3;
  --text-2: #98a2b3;
  --text-3: #667085;
  --primary: #ffffff;
  --primary-fg: #05070d;
  --accent: #0071fc;
  --accent-2: #54a2ff;
  --cyan: #7ee0ff;
  --success: #00d294;
  --warning: #ff8b1a;
  --danger: #ff4d6d;
  --glass: rgba(16, 24, 40, 0.62);

  /* motion tokens (transitions.dev) */
  --dur-micro: 80ms;   --dur-quick: 150ms;  --dur-fast: 250ms;
  --dur-med: 350ms;    --dur-slow: 450ms;   --dur-stagger: 45ms;
  --ease-out: cubic-bezier(0.22, 1, 0.36, 1);
  --ease-spring: cubic-bezier(0.34, 1.45, 0.64, 1);
  --ease-bounce: cubic-bezier(0.34, 1.96, 0.64, 1);
  --press-scale: 0.965;
  --press-scale-sm: 0.98;

  /* type */
  --sans: "Geist", -apple-system, BlinkMacSystemFont, "Segoe UI", Inter, Roboto, sans-serif;
  --mono: "Geist Mono", ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
}

html.theme-light {
  color-scheme: light;
  --bg: #f6f8fb;
  --bg-2: #eef2f7;
  --layer-1: #ffffff;
  --layer-2: #ffffff;
  --layer-3: #f2f5f9;
  --line: #e4e9f1;
  --line-2: #d4dbe7;
  --text: #0b1220;
  --text-2: #475467;
  --text-3: #8391a5;
  --primary: #0b1220;
  --primary-fg: #ffffff;
  --accent: #0062e3;
  --accent-2: #2b7fff;
  --cyan: #0aa2d8;
  --glass: rgba(255, 255, 255, 0.72);
}

*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { -webkit-font-smoothing: antialiased; text-size-adjust: 100%; scroll-behavior: smooth; }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }

body {
  background: var(--bg);
  color: var(--text);
  font-family: var(--sans);
  font-size: 15.5px;
  line-height: 1.65;
  overflow-x: hidden;
  transition: background-color var(--dur-med) ease, color var(--dur-med) ease;
}

@font-face {
  font-family: "Geist"; src: url("/assets/fonts/geist.woff2") format("woff2");
  font-weight: 100 900; font-display: swap;
}
@font-face {
  font-family: "Geist Mono"; src: url("/assets/fonts/geist-mono.woff2") format("woff2");
  font-weight: 100 900; font-display: swap;
}

::selection { background: rgba(0, 113, 252, 0.35); }
a { color: inherit; text-decoration: none; }
img, svg, canvas { display: block; max-width: 100%; }
button { font: inherit; color: inherit; background: none; border: 0; cursor: pointer; }
:focus-visible { outline: 2px solid var(--accent-2); outline-offset: 3px; border-radius: 6px; }

.wrap { width: min(1140px, calc(100% - 40px)); margin: 0 auto; }
.mono { font-family: var(--mono); }

/* ── noise + grid overlays ─────────────────────────────────────────────── */

body::after {
  content: ""; position: fixed; inset: 0; z-index: 9999; pointer-events: none;
  opacity: .035; mix-blend-mode: overlay;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='140' height='140'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.85' numOctaves='2' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='140' height='140' filter='url(%23n)' opacity='1'/%3E%3C/svg%3E");
}
html.theme-light body::after { opacity: .05; }

/* ═══ BUTTONS ═══ */

.btn {
  position: relative; display: inline-flex; align-items: center; gap: 9px;
  height: 44px; padding: 0 22px; border-radius: 12px;
  font-size: 14.5px; font-weight: 600; letter-spacing: .01em; white-space: nowrap;
  transition: transform var(--dur-fast) var(--ease-spring),
              box-shadow var(--dur-fast) var(--ease-out),
              background-color var(--dur-fast) var(--ease-out),
              border-color var(--dur-fast) var(--ease-out),
              filter var(--dur-fast) var(--ease-out);
  -webkit-tap-highlight-color: transparent;
}
.btn:active { transform: scale(var(--press-scale)); }
.btn svg { width: 17px; height: 17px; flex-shrink: 0; transition: transform var(--dur-med) var(--ease-spring); }
.btn:hover svg { transform: translateX(3px); }

.btn-primary {
  background: var(--primary); color: var(--primary-fg);
  box-shadow: 0 1px 2px rgba(0,0,0,.25), inset 0 1px 0 rgba(255,255,255,.18);
}
.btn-primary:hover { filter: brightness(1.06); box-shadow: 0 8px 24px -8px rgba(0,113,252,.55), inset 0 1px 0 rgba(255,255,255,.2); }
.btn-primary:active { filter: brightness(.97); }

.btn-outline {
  border: 1px solid var(--line-2); color: var(--text); background: transparent;
}
.btn-outline:hover { border-color: var(--accent-2); background: rgba(0,113,252,.07); }

.btn-sm { height: 36px; padding: 0 15px; font-size: 13.5px; border-radius: 10px; }
.btn-block { width: 100%; justify-content: center; }

/* ═══ BADGES ═══ */

.badge {
  display: inline-flex; align-items: center; gap: 7px;
  height: 26px; padding: 0 11px; border-radius: 999px;
  font-size: 12px; font-weight: 550; letter-spacing: .02em;
  background: var(--layer-3); color: var(--text-2);
  border: 1px solid var(--line-2);
}
.badge .dot { width: 6px; height: 6px; border-radius: 50%; background: var(--text-3); }
.badge.ok { color: var(--success); border-color: rgba(0,210,148,.28); background: rgba(0,210,148,.07); }
.badge.ok .dot { background: var(--success); box-shadow: 0 0 9px var(--success); animation: pulse-dot 2.2s ease-in-out infinite; }
.badge.info { color: var(--accent-2); border-color: rgba(84,162,255,.3); background: rgba(0,113,252,.08); }
.badge.info .dot { background: var(--accent-2); box-shadow: 0 0 9px var(--accent-2); }

@keyframes pulse-dot { 0%,100% { opacity: 1; transform: scale(1);} 50% { opacity: .55; transform: scale(.82);} }

.eyebrow {
  display: inline-flex; align-items: center; gap: 7px;
  font-size: 12px; font-weight: 620; letter-spacing: .1em; text-transform: uppercase;
  color: var(--text-2);
}
.eyebrow .dot { width: 5px; height: 5px; border-radius: 50%; background: var(--accent); box-shadow: 0 0 8px var(--accent); }

/* ═══ CARDS — двойные рамки (appica) ═══ */

.acard {
  position: relative; border-radius: 18px; padding: 1px;
  background: var(--line); /* внешняя рамка */
}
.acard-inner {
  position: relative; border-radius: 17px;
  background: linear-gradient(180deg, var(--layer-2), var(--layer-1));
  height: 100%;
}
html.theme-light .acard { background: var(--line); }
html.theme-light .acard-inner { background: #fff; }

.hover-lift { transition: transform var(--dur-med) var(--ease-out), box-shadow var(--dur-med) var(--ease-out); }
.hover-lift:hover { transform: translateY(-3px); box-shadow: 0 18px 40px -18px rgba(0,0,0,.55); }
html.theme-light .hover-lift:hover { box-shadow: 0 18px 40px -22px rgba(16,35,66,.25); }
.hover-lift:active { transform: translateY(-1px) scale(.995); }

/* ═══ BORDER BEAM (libraries.dev/beam) ═══ */

.fx-beam { position: relative; }
.fx-beam::before {
  content: ""; position: absolute; inset: -1.5px; z-index: 3;
  border-radius: calc(var(--beam-r, 18px) + 1.5px);
  padding: 1.5px;
  background:
    conic-gradient(from var(--beam-angle),
      transparent 0deg,
      transparent 296deg,
      rgba(0,113,252,.0) 308deg,
      #0071fc 328deg,
      #7ee0ff 344deg,
      #ffffff 355deg,
      #7ee0ff 360deg);
  -webkit-mask: linear-gradient(#fff 0 0) content-box, linear-gradient(#fff 0 0);
  -webkit-mask-composite: xor;
          mask: linear-gradient(#fff 0 0) content-box, linear-gradient(#fff 0 0);
          mask-composite: exclude;
  animation: beam-spin 4.2s linear infinite;
  pointer-events: none;
}
/* bloom — размытая копия луча */
.fx-beam::after {
  content: ""; position: absolute; inset: -1.5px; z-index: 2;
  border-radius: calc(var(--beam-r, 18px) + 1.5px);
  padding: 5px;
  background:
    conic-gradient(from var(--beam-angle),
      transparent 0deg, transparent 290deg,
      rgba(0,113,252,.7) 330deg, rgba(126,224,255,.9) 350deg, transparent 360deg);
  -webkit-mask: linear-gradient(#fff 0 0) content-box, linear-gradient(#fff 0 0);
  -webkit-mask-composite: xor;
          mask: linear-gradient(#fff 0 0) content-box, linear-gradient(#fff 0 0);
          mask-composite: exclude;
  filter: blur(11px);
  opacity: .8;
  animation: beam-spin 4.2s linear infinite;
  pointer-events: none;
}
@keyframes beam-spin { to { --beam-angle: 360deg; } }
.fx-beam.paused::before, .fx-beam.paused::after { animation-play-state: paused; }

/* ═══ HEADER ═══ */

.header {
  position: sticky; top: 0; z-index: 100;
  transition: background-color var(--dur-med) ease, border-color var(--dur-med) ease, backdrop-filter var(--dur-med) ease;
  border-bottom: 1px solid transparent;
}
.header.scrolled {
  background: color-mix(in srgb, var(--bg) 74%, transparent);
  -webkit-backdrop-filter: blur(14px) saturate(1.4);
          backdrop-filter: blur(14px) saturate(1.4);
  border-bottom-color: var(--line);
}
@supports not (background: color-mix(in srgb, red, blue)) {
  .header.scrolled { background: rgba(3, 7, 18, .82); }
  html.theme-light .header.scrolled { background: rgba(246,248,251,.85); }
}

.header-in { display: flex; align-items: center; justify-content: space-between; height: 64px; gap: 24px; }

.brand {
  display: inline-flex; align-items: center; gap: 10px;
  font-weight: 700; font-size: 15px; letter-spacing: .06em;
}
.brand .mark {
  display: grid; place-items: center; width: 30px; height: 30px;
  border-radius: 9px; border: 1px solid var(--line-2);
  background: linear-gradient(180deg, var(--layer-3), var(--layer-2));
  box-shadow: inset 0 1px 0 rgba(255,255,255,.06);
}
.brand .mark svg { width: 19px; height: 19px; }
.brand .tag {
  font-family: var(--mono); font-size: 10.5px; font-weight: 500; color: var(--text-3);
  border: 1px solid var(--line-2); border-radius: 6px; padding: 1px 6px; margin-left: 2px;
}

.nav { display: flex; gap: 4px; }
.nav a {
  position: relative; padding: 8px 13px; border-radius: 9px;
  font-size: 14px; font-weight: 550; color: var(--text-2);
  transition: color var(--dur-quick) ease, background-color var(--dur-quick) ease;
}
.nav a:hover { color: var(--text); background: var(--layer-3); }

.header-cta { display: flex; align-items: center; gap: 12px; }

.theme-toggle {
  display: grid; place-items: center; width: 36px; height: 36px;
  border-radius: 10px; border: 1px solid var(--line-2);
  background: transparent; color: var(--text-2);
  transition: transform var(--dur-fast) var(--ease-spring), border-color var(--dur-quick) ease, color var(--dur-quick) ease;
}
.theme-toggle:hover { border-color: var(--accent-2); color: var(--text); }
.theme-toggle:active { transform: scale(.9); }
.theme-toggle svg { width: 17px; height: 17px; }
html:not(.theme-light) .icon-sun { display: none; }
html.theme-light .icon-moon { display: none; }

.burger { display: none; place-items: center; width: 38px; height: 38px; border-radius: 10px; border: 1px solid var(--line-2); color: var(--text); }
.burger svg { width: 18px; height: 18px; }

.mobile-nav {
  display: none; overflow: hidden; max-height: 0;
  transition: max-height var(--dur-med) var(--ease-out);
  border-bottom: 1px solid var(--line);
  background: color-mix(in srgb, var(--bg) 92%, transparent);
}
@supports not (background: color-mix(in srgb, red, blue)) { .mobile-nav { background: var(--bg); } }
.mobile-nav.open { max-height: 320px; }
.mobile-nav .wrap { display: flex; flex-direction: column; padding: 8px 0 14px; }
.mobile-nav a { padding: 12px 6px; font-size: 15px; font-weight: 550; color: var(--text-2); border-bottom: 1px solid var(--line); }
.mobile-nav a:last-child { border-bottom: 0; }

/* ═══ HERO ═══ */

.hero { position: relative; padding: 88px 0 64px; overflow: clip; }
.hero-bg {
  position: absolute; inset: 0; z-index: 0; pointer-events: none;
}
.hero-bg canvas {
  width: 100%; height: 100%; opacity: .5;
  -webkit-mask: radial-gradient(72% 90% at 62% 34%, #000 0%, rgba(0,0,0,.6) 46%, transparent 82%);
          mask: radial-gradient(72% 90% at 62% 34%, #000 0%, rgba(0,0,0,.6) 46%, transparent 82%);
}
html.theme-light .hero-bg canvas { opacity: .38; }
.hero-bg .hero-bg-fallback {
  position: absolute; inset: 0; display: none;
  background:
    radial-gradient(58% 72% at 78% 8%, rgba(0,113,252,.16), transparent 70%),
    radial-gradient(42% 52% at 12% 88%, rgba(0,210,148,.07), transparent 70%);
}
.hero-bg .hero-grid {
  position: absolute; inset: 0;
  background-image:
    linear-gradient(var(--line) 1px, transparent 1px),
    linear-gradient(90deg, var(--line) 1px, transparent 1px);
  background-size: 56px 56px;
  -webkit-mask: radial-gradient(52% 62% at 60% 40%, #000 0%, transparent 75%);
          mask: radial-gradient(52% 62% at 60% 40%, #000 0%, transparent 75%);
  opacity: .5;
}
.hero-bg .hero-fade {
  position: absolute; inset: 0;
  background: linear-gradient(180deg, transparent 30%, var(--bg) 96%);
}

.hero-in { position: relative; z-index: 1; display: grid; grid-template-columns: minmax(0, 1.05fr) minmax(0, .95fr); gap: 56px; align-items: center; }

.hero h1 {
  font-size: clamp(34px, 4.6vw, 54px); line-height: 1.07; font-weight: 720;
  letter-spacing: -.025em; margin: 18px 0 20px;
}
.hero h1 .grad {
  background: linear-gradient(92deg, #54a2ff 0%, #7ee0ff 45%, #ffffff 90%);
  -webkit-background-clip: text; background-clip: text; color: transparent;
}
html.theme-light .hero h1 .grad {
  background: linear-gradient(92deg, #0062e3, #0aa2d8 50%, #0b3d91);
  -webkit-background-clip: text; background-clip: text; color: transparent;
}
.hero .lead {
  font-size: 16.5px; color: var(--text-2); max-width: 52ch; line-height: 1.7;
}
.hero-cta { display: flex; gap: 12px; flex-wrap: wrap; margin: 30px 0 26px; }

.hero-meta { display: flex; gap: 22px; flex-wrap: wrap; color: var(--text-3); font-size: 13px; }
.hero-meta span { display: inline-flex; align-items: center; gap: 8px; }
.hero-meta i {
  width: 8px; height: 8px; border-radius: 2.5px;
  background: linear-gradient(135deg, var(--accent-2), var(--cyan));
  box-shadow: 0 0 8px rgba(84,162,255,.8);
}

/* terminal */
.terminal .acard { --beam-r: 18px; }
.term-inner { padding: 0; overflow: hidden; background: rgba(5, 10, 23, .92) !important; }
html.theme-light .term-inner { background: #0b1220 !important; }
.term-bar {
  display: flex; align-items: center; justify-content: space-between;
  padding: 13px 18px; border-bottom: 1px solid rgba(30, 41, 57, .9);
}
.term-bar .t { display: inline-flex; gap: 7px; }
.term-bar .t i { width: 11px; height: 11px; border-radius: 50%; background: #1e2939; }
.term-bar .t i:nth-child(1) { background: #ff5f57; }
.term-bar .t i:nth-child(2) { background: #febc2e; }
.term-bar .t i:nth-child(3) { background: #28c840; }
.term-title { font-family: var(--mono); font-size: 12px; color: #667085; letter-spacing: .03em; }
.term-body {
  padding: 18px 20px 22px; min-height: 236px;
  font-family: var(--mono); font-size: 13px; line-height: 1.75; color: #b6c2d6;
}
.term-body .ln { display: block; white-space: pre-wrap; }
.term-body .p { color: #7ee0ff; }
.term-body .k { color: #98a2b3; }
.term-body .ok { color: #00d294; }
.term-body .w { color: #ff8b1a; }
.term-body .d { color: #475467; }
.caret {
  display: inline-block; width: 8px; height: 16px; margin-left: 2px;
  background: #7ee0ff; vertical-align: -3px; border-radius: 1px;
  animation: caret-blink 1s steps(1) infinite;
}
@keyframes caret-blink { 50% { opacity: 0; } }

/* ═══ MARQUEE ═══ */

.marquee { padding: 26px 0 6px; border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); background: var(--bg-2); }
.marquee-label { text-align: center; font-size: 11.5px; font-weight: 650; letter-spacing: .14em; text-transform: uppercase; color: var(--text-3); margin-bottom: 16px; }
.marquee-track { position: relative; overflow: hidden; }
.marquee-track::before, .marquee-track::after {
  content: ""; position: absolute; top: 0; bottom: 0; width: 130px; z-index: 2; pointer-events: none;
}
.marquee-track::before { left: 0; background: linear-gradient(90deg, var(--bg-2), transparent); }
.marquee-track::after { right: 0; background: linear-gradient(-90deg, var(--bg-2), transparent); }
.marquee-move { display: flex; width: max-content; gap: 64px; animation: marquee-scroll 36s linear infinite; }
.marquee:hover .marquee-move { animation-play-state: paused; }
.marquee-move span {
  display: inline-flex; align-items: center; gap: 9px;
  font-family: var(--mono); font-size: 14px; font-weight: 550; color: var(--text-3); white-space: nowrap;
  transition: color var(--dur-quick) ease;
}
.marquee-move span:hover { color: var(--text-2); }
.marquee-move span i { width: 7px; height: 7px; border-radius: 50%; background: var(--line-2); }
@keyframes marquee-scroll { to { transform: translateX(calc(-50% - 32px)); } }

/* ═══ STATS ═══ */

.stats { padding: 52px 0 8px; }
.stats-grid { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); border: 1px solid var(--line); border-radius: 18px; overflow: hidden; background: var(--layer-1); }
.stats-grid .cell { padding: 26px 26px 22px; border-left: 1px solid var(--line); position: relative; overflow: hidden; }
.stats-grid .cell:first-child { border-left: 0; }
.cell-glow { position: absolute; inset: auto -30% -70% auto; width: 220px; height: 220px; border-radius: 50%; pointer-events: none; background: radial-gradient(circle, rgba(0,113,252,.14), transparent 70%); opacity: 0; transition: opacity var(--dur-slow) ease; }
.stats-grid .cell:hover .cell-glow { opacity: 1; }
.stat-v { display: flex; align-items: baseline; gap: 7px; font-size: 34px; font-weight: 720; letter-spacing: -.03em; font-variant-numeric: tabular-nums; }
.stat-v .u { font-size: 14px; font-weight: 550; color: var(--text-3); }
.stat-l { margin-top: 7px; font-size: 13px; color: var(--text-3); }

/* ═══ SECTIONS ═══ */

.section { padding: 84px 0 0; }
.section-head { max-width: 640px; margin-bottom: 40px; }
.section-head.center { margin: 0 auto 44px; text-align: center; }
.h2 { font-size: clamp(26px, 3.2vw, 36px); line-height: 1.15; font-weight: 710; letter-spacing: -.02em; margin: 14px 0 12px; }
.sub { color: var(--text-2); font-size: 15.5px; line-height: 1.7; }

/* ═══ FEATURES ═══ */

.grid-3 { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 18px; }
.feat-inner { padding: 26px; display: flex; flex-direction: column; gap: 12px; min-height: 208px; }
.feat-icon {
  display: grid; place-items: center; width: 42px; height: 42px;
  border-radius: 12px; border: 1px solid var(--line-2); color: var(--accent-2);
  background: rgba(0, 113, 252, .09);
  transition: transform var(--dur-med) var(--ease-spring), border-color var(--dur-med) ease, box-shadow var(--dur-med) ease;
}
.feat:hover .feat-icon { transform: translateY(-2px) scale(1.06) rotate(-3deg); border-color: rgba(84,162,255,.55); box-shadow: 0 6px 18px -6px rgba(0,113,252,.5); }
.feat-icon svg { width: 21px; height: 21px; }
.feat-icon.i { color: var(--cyan); background: rgba(126,224,255,.08); }
.feat-icon.g { color: var(--success); background: rgba(0,210,148,.08); }
.feat-icon.w { color: var(--warning); background: rgba(255,139,26,.08); }
.feat h3 { font-size: 17px; font-weight: 650; letter-spacing: -.01em; }
.feat p { color: var(--text-2); font-size: 14.5px; }

/* orb card */
.orb-card .feat-inner { padding: 22px; }
.orb-wrap {
  position: relative; height: 150px; border-radius: 12px; overflow: hidden;
  border: 1px solid var(--line); background: radial-gradient(80% 100% at 50% 0%, rgba(0,113,252,.1), transparent 70%), var(--bg-2);
  display: grid; place-items: center;
}
.orb-wrap canvas { width: 100%; height: 100%; }
.orb-live {
  position: absolute; left: 10px; bottom: 10px; z-index: 2;
}

/* ═══ REGIONS ═══ */

.grid-4 { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 18px; }
.region-inner { padding: 22px; display: flex; flex-direction: column; gap: 14px; }
.region-top { display: flex; align-items: center; justify-content: space-between; flex-wrap: wrap; row-gap: 8px; }
.region-city { font-size: 15.5px; font-weight: 650; display: inline-flex; align-items: center; gap: 9px; }
.flag { font-size: 17px; filter: saturate(1.1); }
.region-rows { display: flex; flex-direction: column; gap: 7px; }
.region-row { display: flex; justify-content: space-between; align-items: baseline; font-size: 13px; }
.region-row .k { color: var(--text-3); }
.region-row .v { font-family: var(--mono); font-size: 12.5px; color: var(--text-2); }
.region-row .v.hl { color: var(--cyan); }
.region-lat {
  height: 5px; border-radius: 3px; background: var(--layer-3); overflow: hidden;
}
.region-lat i {
  display: block; height: 100%; width: 0; border-radius: 3px;
  background: linear-gradient(90deg, var(--accent), var(--cyan));
  transition: width 1.4s var(--ease-out);
}

/* ═══ DEVELOPERS ═══ */

.duo { display: grid; grid-template-columns: minmax(0, .92fr) minmax(0, 1.08fr); gap: 48px; align-items: center; }
.codecard { min-width: 0; }
.codecard .acard { min-width: 0; }
.check-list { list-style: none; display: flex; flex-direction: column; gap: 14px; margin-top: 22px; }
.check-list li { display: flex; gap: 13px; font-size: 14.5px; color: var(--text-2); }
.check-list b { color: var(--text); font-weight: 620; }
.ck {
  flex-shrink: 0; display: grid; place-items: center; width: 22px; height: 22px;
  border-radius: 50%; background: rgba(0,210,148,.12); color: var(--success);
}
.ck svg { width: 11px; height: 11px; }

.codecard .acard-inner { overflow: hidden; }
.code-head {
  display: flex; align-items: center; gap: 8px; padding: 13px 16px;
  border-bottom: 1px solid var(--line); background: var(--layer-2);
}
.code-head .tab {
  font-family: var(--mono); font-size: 11px; color: var(--primary-fg);
  background: var(--primary); border-radius: 6px; padding: 2px 8px; font-weight: 600;
}
.code-head .fname { font-family: var(--mono); font-size: 12.5px; color: var(--text-3); }
.copy-btn {
  position: relative; margin-left: auto; display: inline-flex; align-items: center; gap: 7px;
  height: 30px; padding: 0 12px; border-radius: 8px; border: 1px solid var(--line-2);
  font-size: 12px; font-weight: 550; color: var(--text-2);
  transition: border-color var(--dur-quick) ease, color var(--dur-quick) ease, background-color var(--dur-quick) ease, transform var(--dur-fast) var(--ease-spring);
}
.copy-btn:hover { border-color: var(--accent-2); color: var(--text); }
.copy-btn:active { transform: scale(.95); }
.copy-btn svg { position: static; width: 14px; height: 14px; }
.copy-btn .icon-check { display: none; }
.copy-btn[data-copied="true"] { border-color: rgba(0,210,148,.5); color: var(--success); }
.copy-btn[data-copied="true"] .icon-copy { display: none; }
.copy-btn[data-copied="true"] .icon-check { display: block; }
.copy-btn[data-copied="true"] svg { animation: copy-pop .35s var(--ease-spring); }
@keyframes copy-pop { 0% { transform: scale(.4); opacity: 0; } 100% { transform: scale(1); opacity: 1; } }

.code-body {
  padding: 18px 20px; font-family: var(--mono); font-size: 13px; line-height: 1.8;
  color: #b6c2d6; background: rgba(5,10,23,.9); white-space: pre; overflow-x: auto;
}
html.theme-light .code-body { background: #0b1220; }
.code-body .c { color: #5d6b84; }
.code-body .n { color: #7ee0ff; }
.code-body .k { color: #98a2b3; }
.code-body .s { color: #ffd479; }

/* ═══ PRICING ═══ */

.grid-pricing { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 18px; align-items: stretch; }
.price-inner { padding: 26px; display: flex; flex-direction: column; gap: 16px; }
.price-name { display: flex; align-items: center; justify-content: space-between; }
.price-name .nm { font-size: 17px; font-weight: 680; }
.mono-badge {
  font-family: var(--mono); font-size: 10.5px; font-weight: 600; letter-spacing: .06em;
  border: 1px solid var(--line-2); border-radius: 7px; padding: 2.5px 8px; color: var(--text-3);
}
.price-row { display: flex; align-items: baseline; gap: 8px; }
.price-row .val { font-size: 40px; font-weight: 720; letter-spacing: -.03em; font-variant-numeric: tabular-nums; }
.price-row .per { color: var(--text-3); font-size: 13.5px; }
.price-desc { color: var(--text-2); font-size: 13.5px; line-height: 1.6; }
.price-feats { list-style: none; display: flex; flex-direction: column; gap: 10px; flex: 1; padding: 4px 0 2px; }
.price-feats li { display: flex; gap: 11px; font-size: 14px; color: var(--text-2); align-items: center; }
.price-feats li.muted { color: var(--text-3); }
.price-feats .ck { width: 19px; height: 19px; }
.price-feats .ck svg { width: 10px; height: 10px; }
.price-feats li.muted .ck { background: var(--layer-3); color: var(--text-3); }

.price-hot { --beam-r: 19px; }
.price-hot .acard-inner { background: linear-gradient(180deg, #131c2e, #0b1220); border: 1px solid rgba(84,162,255,.25); }
html.theme-light .price-hot .acard-inner { background: #fff; border: 1px solid rgba(0,98,227,.3); }
.price-flag {
  position: absolute; top: -12px; left: 50%; transform: translateX(-50%); z-index: 5;
  height: 25px; padding: 0 13px; display: inline-flex; align-items: center;
  background: linear-gradient(90deg, var(--accent), var(--cyan));
  color: #041020; font-size: 11.5px; font-weight: 700; letter-spacing: .05em; border-radius: 999px;
  box-shadow: 0 6px 18px -6px rgba(0,113,252,.8);
}

/* ═══ FAQ ═══ */

.faq { display: flex; flex-direction: column; gap: 12px; max-width: 820px; margin: 0 auto; }
.faq-item summary {
  list-style: none; cursor: pointer; display: flex; align-items: center; justify-content: space-between; gap: 16px;
  padding: 19px 24px; font-size: 15.5px; font-weight: 590;
  transition: color var(--dur-quick) ease;
}
.faq-item summary::-webkit-details-marker { display: none; }
.faq-item summary:hover { color: var(--accent-2); }
.chev { flex-shrink: 0; width: 17px; height: 17px; color: var(--text-3); transition: transform var(--dur-med) var(--ease-spring); }
.faq-item[open] .chev { transform: rotate(180deg); }
.faq-body { padding: 0 24px 22px; color: var(--text-2); font-size: 14.5px; line-height: 1.72; }

/* ═══ CTA ═══ */

.cta-band {
  padding: 54px 28px; text-align: center;
  background:
    radial-gradient(65% 110% at 50% -20%, rgba(0,113,252,.16), transparent 70%),
    linear-gradient(180deg, var(--layer-2), var(--layer-1));
  display: flex; flex-direction: column; align-items: center; gap: 14px;
}
.cta-band h2 { font-size: clamp(24px, 3vw, 32px); font-weight: 710; letter-spacing: -.02em; }
.cta-band p { color: var(--text-2); max-width: 44ch; }
.cta-band .btn { margin-top: 8px; }

/* ═══ FOOTER ═══ */

.footer { border-top: 1px solid var(--line); margin-top: 84px; padding: 52px 0 30px; background: var(--bg-2); }
.footer-grid { display: grid; grid-template-columns: 1.4fr 1fr 1fr 1fr; gap: 36px; }
.footer-desc { margin-top: 14px; color: var(--text-3); font-size: 13.5px; max-width: 34ch; line-height: 1.65; }
.footer h4 { font-size: 12.5px; font-weight: 650; letter-spacing: .08em; text-transform: uppercase; color: var(--text-3); margin-bottom: 14px; }
.footer ul { list-style: none; display: flex; flex-direction: column; gap: 9px; }
.footer ul a { font-size: 14px; color: var(--text-2); transition: color var(--dur-quick) ease; }
.footer ul a:hover { color: var(--accent-2); }
.footer-bottom {
  display: flex; justify-content: space-between; gap: 16px; flex-wrap: wrap;
  border-top: 1px solid var(--line); margin-top: 44px; padding-top: 22px;
  color: var(--text-3); font-size: 13px;
}
.footer-bottom .st { display: inline-flex; align-items: center; gap: 8px; }
.footer-bottom .st i { width: 7px; height: 7px; border-radius: 50%; background: var(--success); box-shadow: 0 0 8px var(--success); animation: pulse-dot 2.4s ease-in-out infinite; }

/* ═══ REVEAL (stagger + blur-fade, transitions.dev) ═══ */

.reveal {
  opacity: 0; transform: translateY(22px); filter: blur(7px);
  transition:
    opacity var(--dur-slow) var(--ease-out),
    transform var(--dur-slow) var(--ease-out),
    filter var(--dur-slow) var(--ease-out);
  transition-delay: calc(var(--d, 0) * var(--dur-stagger));
}
.reveal.in { opacity: 1; transform: none; filter: none; }

/* ═══ RESPONSIVE ═══ */

@media (max-width: 1020px) {
  .hero-in { grid-template-columns: 1fr; gap: 40px; }
  .duo { grid-template-columns: 1fr; gap: 32px; }
  .grid-3 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .grid-4 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .grid-pricing { grid-template-columns: 1fr; max-width: 460px; margin: 0 auto; }
  .price-hot { order: -1; }
  .footer-grid { grid-template-columns: 1fr 1fr; }
}

@media (max-width: 860px) {
  .nav { display: none; }
  .burger { display: grid; }
  .mobile-nav { display: block; }
  .hero { padding: 56px 0 48px; }
  .stats-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .stats-grid .cell:nth-child(3) { border-left: 0; }
  .stats-grid .cell:nth-child(n+3) { border-top: 1px solid var(--line); }
  .section { padding-top: 64px; }
}

@media (max-width: 560px) {
  body { font-size: 15px; }
  .wrap { width: calc(100% - 32px); }
  .grid-3 { grid-template-columns: 1fr; }
  .grid-4 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .stats-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .hero-cta .btn { width: 100%; justify-content: center; }
  .footer-grid { grid-template-columns: 1fr; gap: 28px; }
  .term-body { min-height: 200px; font-size: 12px; }
  .header-cta .btn-sm { display: none; }
}

@media (prefers-reduced-motion: reduce) {
  .fx-beam::before, .fx-beam::after { animation: none; }
  .marquee-move { animation: none; }
  .reveal { transition: none; opacity: 1; transform: none; filter: none; }
  .caret { animation: none; }
  .badge.ok .dot, .footer-bottom .st i { animation: none; }
}
