/* ============================================================
   Helio — Self-hosted Monitoring · Landing styles
   Tokens, type scale, components. Dark default + light theme.
   ============================================================ */

/* ---------- Reset ---------- */
*, *::before, *::after { box-sizing: border-box; }
* { margin: 0; padding: 0; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; scroll-padding-top: 88px; }
body { min-height: 100%; line-height: 1.6; -webkit-font-smoothing: antialiased; text-rendering: optimizeLegibility; }
img, svg { display: block; max-width: 100%; }
button, input { font: inherit; color: inherit; }
a { color: inherit; text-decoration: none; }
ul { list-style: none; }
:focus-visible { outline: 2px solid var(--primary); outline-offset: 3px; border-radius: 4px; }

/* ============================================================
   TOKENS — Dark (default)
   ============================================================ */
:root {
  --bg:            #0B0E14;
  --bg-soft:       #0E121A;
  --surface:       #11161F;
  --surface-2:     #161C28;
  --surface-3:     #1B2230;

  --border:        rgba(255,255,255,0.075);
  --border-strong: rgba(255,255,255,0.14);

  --text:          #EEF2F7;
  --text-muted:    #9AA6B6;
  --text-dim:      #677082;

  --primary:           #2EE0CE;
  --primary-hover:     #54ead9;
  --primary-soft:      rgba(46,224,206,0.12);
  --primary-fg:        #042220;
  --primary-glow:      rgba(46,224,206,0.32);

  --violet:        #9C8CFA;
  --violet-soft:   rgba(156,140,250,0.14);

  --ok:    #36D399;
  --warn:  #F7C948;
  --down:  #F76C6C;

  --ok-soft:   rgba(54,211,153,0.14);
  --warn-soft: rgba(247,201,72,0.14);
  --down-soft: rgba(247,108,108,0.14);

  --shadow-sm: 0 1px 2px rgba(0,0,0,0.4);
  --shadow-md: 0 12px 40px -12px rgba(0,0,0,0.6);
  --shadow-lg: 0 40px 120px -30px rgba(0,0,0,0.75);

  --nav-bg: rgba(11,14,20,0.72);

  --grid-line: rgba(255,255,255,0.045);

  --font-sans: "Inter", -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
  --font-mono: "JetBrains Mono", ui-monospace, "SF Mono", Menlo, Consolas, monospace;

  --radius-sm: 6px;
  --radius:    10px;
  --radius-lg: 16px;
  --radius-xl: 22px;

  --maxw: 1200px;
  --gut: clamp(20px, 5vw, 40px);

  --ease: cubic-bezier(0.22, 1, 0.36, 1);
}

/* ============================================================
   TOKENS — Light
   ============================================================ */
[data-theme="light"] {
  --bg:            #FBFCFE;
  --bg-soft:       #F4F7FA;
  --surface:       #FFFFFF;
  --surface-2:     #F6F8FB;
  --surface-3:     #EEF2F7;

  --border:        rgba(13,20,33,0.10);
  --border-strong: rgba(13,20,33,0.17);

  --text:          #0D1420;
  --text-muted:    #56627A;
  --text-dim:      #8A93A6;

  --primary:           #0C9C8D;
  --primary-hover:     #0AA597;
  --primary-soft:      rgba(12,156,141,0.10);
  --primary-fg:        #FFFFFF;
  --primary-glow:      rgba(12,156,141,0.22);

  --violet:        #6F58E8;
  --violet-soft:   rgba(111,88,232,0.10);

  --ok:    #11A86F;
  --warn:  #C98A06;
  --down:  #DB4A4A;

  --ok-soft:   rgba(17,168,111,0.12);
  --warn-soft: rgba(201,138,6,0.12);
  --down-soft: rgba(219,74,74,0.12);

  --shadow-sm: 0 1px 2px rgba(13,20,33,0.06);
  --shadow-md: 0 14px 40px -16px rgba(13,20,33,0.16);
  --shadow-lg: 0 40px 120px -36px rgba(13,20,33,0.22);

  --nav-bg: rgba(251,252,254,0.78);

  --grid-line: rgba(13,20,33,0.05);
}

body {
  background: var(--bg);
  color: var(--text);
  font-family: var(--font-sans);
  font-size: 16px;
  transition: background-color 0.4s var(--ease), color 0.4s var(--ease);
}

/* ============================================================
   TYPE SCALE
   ============================================================ */
h1, h2, h3, h4 { line-height: 1.08; letter-spacing: -0.02em; font-weight: 650; color: var(--text); }
.display { font-size: clamp(2.6rem, 6vw, 4.4rem); font-weight: 680; letter-spacing: -0.03em; line-height: 1.02; }
.h2 { font-size: clamp(1.9rem, 3.6vw, 2.9rem); letter-spacing: -0.025em; }
.h3 { font-size: 1.25rem; letter-spacing: -0.015em; }
.lead { font-size: clamp(1.05rem, 1.6vw, 1.22rem); color: var(--text-muted); line-height: 1.6; }
.eyebrow {
  font-family: var(--font-mono);
  font-size: 0.78rem; font-weight: 500;
  letter-spacing: 0.12em; text-transform: uppercase;
  color: var(--primary);
  display: inline-flex; align-items: center; gap: 8px;
}
.eyebrow::before { content: ""; width: 22px; height: 1px; background: var(--primary); opacity: 0.6; }
.mono { font-family: var(--font-mono); font-variant-numeric: tabular-nums; }

/* ============================================================
   LAYOUT
   ============================================================ */
.container { width: 100%; max-width: var(--maxw); margin-inline: auto; padding-inline: var(--gut); }
section { position: relative; }
.section-pad { padding-block: clamp(72px, 11vw, 130px); }
.divider { border-top: 1px solid var(--border); }

.section-head { max-width: 660px; margin-bottom: clamp(40px, 6vw, 64px); }
.section-head.center { margin-inline: auto; text-align: center; }
.section-head.center .eyebrow { justify-content: center; }
.section-head .h2 { margin-top: 16px; }
.section-head .lead { margin-top: 18px; }

/* ============================================================
   BUTTONS
   ============================================================ */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 9px;
  font-weight: 540; font-size: 0.95rem; letter-spacing: -0.01em;
  padding: 0 20px; height: 46px;
  border-radius: var(--radius); border: 1px solid transparent;
  cursor: pointer; white-space: nowrap;
  transition: background-color .17s var(--ease), border-color .17s var(--ease),
              color .17s var(--ease), transform .17s var(--ease), box-shadow .17s var(--ease);
}
.btn:active { transform: translateY(1px); }
.btn svg { width: 18px; height: 18px; }

.btn-primary {
  background: var(--primary); color: var(--primary-fg);
  box-shadow: 0 1px 0 rgba(255,255,255,0.18) inset, 0 8px 24px -10px var(--primary-glow);
}
.btn-primary:hover { background: var(--primary-hover); box-shadow: 0 0 0 4px var(--primary-soft), 0 10px 30px -10px var(--primary-glow); }

.btn-secondary {
  background: transparent; color: var(--text);
  border-color: var(--border-strong);
}
.btn-secondary:hover { background: var(--surface-2); border-color: var(--text-dim); }

.btn-ghost { background: transparent; color: var(--text-muted); padding-inline: 14px; }
.btn-ghost:hover { color: var(--text); background: var(--surface-2); }

.btn-sm { height: 38px; font-size: 0.88rem; padding-inline: 15px; }
.btn-lg { height: 52px; font-size: 1.02rem; padding-inline: 26px; }

/* ============================================================
   BADGES
   ============================================================ */
.badge {
  display: inline-flex; align-items: center; gap: 7px;
  font-family: var(--font-mono); font-size: 0.74rem; font-weight: 500;
  padding: 4px 10px; border-radius: 100px;
  border: 1px solid var(--border); background: var(--surface-2);
  color: var(--text-muted); letter-spacing: 0.01em;
}
.badge .dot { width: 7px; height: 7px; border-radius: 50%; flex: none; }
.dot-ok   { background: var(--ok); box-shadow: 0 0 0 3px var(--ok-soft); }
.dot-warn { background: var(--warn); box-shadow: 0 0 0 3px var(--warn-soft); }
.dot-down { background: var(--down); box-shadow: 0 0 0 3px var(--down-soft); }

.badge-status.ok   { color: var(--ok); border-color: var(--ok-soft); background: var(--ok-soft); }
.badge-status.warn { color: var(--warn); border-color: var(--warn-soft); background: var(--warn-soft); }
.badge-status.down { color: var(--down); border-color: var(--down-soft); background: var(--down-soft); }

.pulse { position: relative; }
.pulse::after {
  content: ""; position: absolute; inset: -3px; border-radius: 50%;
  border: 1px solid currentColor; opacity: 0.6;
  animation: pulse-ring 2.4s var(--ease) infinite;
}
@keyframes pulse-ring { 0% { transform: scale(0.8); opacity: 0.7; } 80%,100% { transform: scale(2.4); opacity: 0; } }

/* ============================================================
   NAVBAR
   ============================================================ */
.nav {
  position: fixed; top: 0; left: 0; right: 0; z-index: 100;
  transition: background-color .3s var(--ease), border-color .3s var(--ease), backdrop-filter .3s;
  border-bottom: 1px solid transparent;
}
.nav.scrolled {
  background: var(--nav-bg);
  -webkit-backdrop-filter: saturate(150%) blur(14px);
  backdrop-filter: saturate(150%) blur(14px);
  border-bottom-color: var(--border);
}
.nav-inner { display: flex; align-items: center; gap: 28px; height: 70px; }
.brand { display: flex; align-items: center; gap: 11px; font-weight: 640; font-size: 1.12rem; letter-spacing: -0.02em; }
.brand-mark {
  width: 30px; height: 30px; border-radius: 9px; flex: none; position: relative;
  background: radial-gradient(circle at 30% 28%, var(--primary), #0e7d72 78%);
  box-shadow: 0 0 0 1px var(--border-strong), 0 6px 18px -6px var(--primary-glow);
}
.brand-mark::after {
  content: ""; position: absolute; inset: 8px; border-radius: 50%;
  border: 2px solid rgba(255,255,255,0.85); border-right-color: transparent; border-bottom-color: transparent;
  transform: rotate(45deg);
}
.nav-links { display: flex; align-items: center; gap: 4px; margin-inline: auto; }
.nav-links a {
  color: var(--text-muted); font-size: 0.93rem; font-weight: 480;
  padding: 8px 13px; border-radius: 8px; transition: color .15s, background-color .15s;
  display: inline-flex; align-items: center; gap: 6px;
}
.nav-links a:hover { color: var(--text); background: var(--surface-2); }
.nav-links a svg { width: 15px; height: 15px; }
.nav-actions { display: flex; align-items: center; gap: 8px; }

.theme-toggle {
  width: 40px; height: 40px; border-radius: 9px; flex: none;
  display: grid; place-items: center; cursor: pointer;
  background: transparent; border: 1px solid var(--border);
  color: var(--text-muted); transition: all .15s;
}
.theme-toggle:hover { color: var(--text); border-color: var(--border-strong); background: var(--surface-2); }
.theme-toggle svg { width: 18px; height: 18px; }
.theme-toggle .icon-sun { display: none; }
[data-theme="light"] .theme-toggle .icon-sun { display: block; }
[data-theme="light"] .theme-toggle .icon-moon { display: none; }

.burger { display: none; width: 40px; height: 40px; border-radius: 9px; border: 1px solid var(--border);
  background: transparent; color: var(--text); cursor: pointer; place-items: center; }
.burger svg { width: 20px; height: 20px; }

/* mobile menu */
.mobile-menu {
  position: fixed; inset: 70px 0 auto 0; z-index: 99;
  background: var(--nav-bg); -webkit-backdrop-filter: blur(16px); backdrop-filter: blur(16px);
  border-bottom: 1px solid var(--border);
  padding: 16px var(--gut) 26px;
  display: none; flex-direction: column; gap: 4px;
  transform: translateY(-12px); opacity: 0; transition: opacity .22s var(--ease), transform .22s var(--ease);
}
.mobile-menu.open { display: flex; transform: none; opacity: 1; }
.mobile-menu a { padding: 13px 12px; border-radius: 9px; color: var(--text); font-weight: 480; font-size: 1.02rem; border-bottom: 1px solid var(--border); }
.mobile-menu a:last-of-type { border-bottom: none; }
.mobile-menu .btn { margin-top: 14px; width: 100%; }

/* ============================================================
   HERO
   ============================================================ */
.hero { padding-top: 150px; overflow: hidden; }
.hero-bg {
  position: absolute; inset: 0; z-index: -1; overflow: hidden; pointer-events: none;
  background:
    radial-gradient(60% 50% at 50% -6%, var(--primary-soft), transparent 70%),
    linear-gradient(transparent, transparent);
}
.hero-bg::before {
  content: ""; position: absolute; inset: 0;
  background-image: linear-gradient(var(--grid-line) 1px, transparent 1px), linear-gradient(90deg, var(--grid-line) 1px, transparent 1px);
  background-size: 54px 54px;
  -webkit-mask-image: radial-gradient(70% 60% at 50% 18%, #000 0%, transparent 78%);
  mask-image: radial-gradient(70% 60% at 50% 18%, #000 0%, transparent 78%);
}
.hero-inner { display: flex; flex-direction: column; align-items: center; text-align: center; gap: 26px; }
.gh-pill {
  display: inline-flex; align-items: center; gap: 0;
  border: 1px solid var(--border); border-radius: 100px; background: var(--surface);
  font-size: 0.82rem; overflow: hidden; box-shadow: var(--shadow-sm);
}
.gh-pill .gh-l { display: flex; align-items: center; gap: 7px; padding: 6px 13px; color: var(--text-muted); }
.gh-pill .gh-l svg { width: 15px; height: 15px; }
.gh-pill .gh-r { display: flex; align-items: center; gap: 6px; padding: 6px 13px; border-left: 1px solid var(--border);
  color: var(--text); font-family: var(--font-mono); font-weight: 500; background: var(--surface-2); }
.gh-pill .gh-r svg { width: 14px; height: 14px; color: var(--warn); }
.hero h1 { max-width: 16ch; }
.hero h1 .accent { color: var(--primary); }
.hero .lead { max-width: 56ch; }
.hero-cta { display: flex; gap: 13px; flex-wrap: wrap; justify-content: center; margin-top: 4px; }
.hero-note { font-size: 0.83rem; color: var(--text-dim); display: flex; align-items: center; gap: 8px; }
.hero-note svg { width: 15px; height: 15px; color: var(--ok); }

/* ---------- Dashboard mockup ---------- */
.mockup-wrap { width: 100%; max-width: 1020px; margin-top: 30px; perspective: 1800px; }
.mockup {
  border: 1px solid var(--border-strong); border-radius: var(--radius-lg);
  background: var(--surface); box-shadow: var(--shadow-lg);
  overflow: hidden; text-align: left;
}
.mockup-bar {
  display: flex; align-items: center; gap: 12px; padding: 12px 16px;
  border-bottom: 1px solid var(--border); background: var(--surface-2);
}
.traffic { display: flex; gap: 7px; }
.traffic i { width: 11px; height: 11px; border-radius: 50%; background: var(--surface-3); border: 1px solid var(--border-strong); }
.mockup-url {
  flex: 1; max-width: 320px; font-family: var(--font-mono); font-size: 0.74rem; color: var(--text-dim);
  background: var(--bg); border: 1px solid var(--border); border-radius: 7px; padding: 5px 12px;
  display: flex; align-items: center; gap: 7px;
}
.mockup-url svg { width: 12px; height: 12px; color: var(--ok); }
.mockup-body { display: grid; grid-template-columns: 200px 1fr; min-height: 380px; }
.mock-side { border-right: 1px solid var(--border); padding: 16px 12px; background: var(--bg-soft); display: flex; flex-direction: column; gap: 3px; }
.mock-side .si {
  display: flex; align-items: center; gap: 10px; padding: 9px 11px; border-radius: 8px;
  font-size: 0.85rem; color: var(--text-muted);
}
.mock-side .si svg { width: 16px; height: 16px; }
.mock-side .si.active { background: var(--primary-soft); color: var(--primary); font-weight: 500; }
.mock-side .si-label { font-family: var(--font-mono); font-size: 0.66rem; text-transform: uppercase; letter-spacing: 0.1em; color: var(--text-dim); padding: 14px 11px 6px; }
.mock-main { padding: 18px 20px; display: flex; flex-direction: column; gap: 16px; }
.mock-h { display: flex; align-items: center; justify-content: space-between; }
.mock-h h4 { font-size: 1.05rem; }
.mock-h .sub { font-size: 0.78rem; color: var(--text-dim); font-family: var(--font-mono); }
.mock-stats { display: grid; grid-template-columns: repeat(2,1fr); gap: 12px; }
.stat-card { border: 1px solid var(--border); border-radius: var(--radius); padding: 13px 14px; background: var(--surface-2); }
.stat-card .lbl { font-size: 0.72rem; color: var(--text-dim); display: flex; align-items: center; justify-content: space-between; }
.stat-card .lbl .t { color: var(--ok); font-family: var(--font-mono); }
.stat-card .lbl .t.up { color: var(--ok); }
.stat-card .val { font-family: var(--font-mono); font-size: 1.5rem; font-weight: 600; margin-top: 6px; letter-spacing: -0.02em; }
.stat-card .val small { font-size: 0.8rem; color: var(--text-dim); font-weight: 400; }
.spark { margin-top: 8px; }
.bars { display: flex; align-items: flex-end; gap: 4px; height: 38px; margin-top: 10px; }
.bars i { flex: 1; background: var(--violet); border-radius: 2px 2px 0 0; opacity: 0.85; }
.mock-servers { border: 1px solid var(--border); border-radius: var(--radius); overflow: hidden; }
.srow { display: grid; grid-template-columns: 1fr auto auto auto; align-items: center; gap: 14px;
  padding: 11px 14px; border-bottom: 1px solid var(--border); font-size: 0.83rem; }
.srow:last-child { border-bottom: none; }
.srow .name { display: flex; align-items: center; gap: 9px; font-weight: 460; }
.srow .name .nm { font-family: var(--font-mono); font-size: 0.78rem; }
.srow .meta { font-family: var(--font-mono); font-size: 0.75rem; color: var(--text-dim); }

/* ============================================================
   TRUSTED BY
   ============================================================ */
.trusted { padding-block: 46px; }
.trusted p { text-align: center; font-size: 0.8rem; color: var(--text-dim); font-family: var(--font-mono);
  letter-spacing: 0.1em; text-transform: uppercase; margin-bottom: 26px; }
.logo-row { display: flex; flex-wrap: wrap; align-items: center; justify-content: center; gap: clamp(28px, 6vw, 64px); }
.logo-ph { display: flex; align-items: center; gap: 10px; color: var(--text-dim); opacity: 0.62;
  font-weight: 600; font-size: 1.05rem; letter-spacing: -0.02em; transition: opacity .2s, color .2s; filter: grayscale(1); }
.logo-ph:hover { opacity: 1; color: var(--text-muted); }
.logo-ph .lm { width: 22px; height: 22px; border-radius: 5px; background: currentColor; opacity: 0.7; flex: none; }
.logo-ph .lm.circle { border-radius: 50%; }
.logo-ph .lm.diamond { border-radius: 4px; transform: rotate(45deg); }

/* ============================================================
   FEATURE GRID
   ============================================================ */
.feat-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 18px; }
.feat-card {
  position: relative; border: 1px solid var(--border); border-radius: var(--radius-lg);
  background: var(--surface); padding: 26px; overflow: hidden;
  transition: border-color .2s var(--ease), transform .2s var(--ease), background-color .2s;
}
.feat-card::before {
  content: ""; position: absolute; inset: 0; border-radius: inherit; padding: 1px; pointer-events: none;
  background: radial-gradient(180px 120px at var(--mx,50%) var(--my,0%), var(--primary-glow), transparent 70%);
  -webkit-mask: linear-gradient(#000 0 0) content-box, linear-gradient(#000 0 0);
  -webkit-mask-composite: xor; mask-composite: exclude;
  opacity: 0; transition: opacity .25s;
}
.feat-card:hover { transform: translateY(-3px); border-color: var(--border-strong); }
.feat-card:hover::before { opacity: 1; }
.feat-ico {
  width: 44px; height: 44px; border-radius: 11px; display: grid; place-items: center;
  background: var(--primary-soft); color: var(--primary); margin-bottom: 18px;
  border: 1px solid var(--border);
}
.feat-ico svg { width: 21px; height: 21px; }
.feat-card.v .feat-ico { background: var(--violet-soft); color: var(--violet); }
.feat-card h3 { margin-bottom: 9px; }
.feat-card p { font-size: 0.94rem; color: var(--text-muted); }

/* ============================================================
   SPLIT HIGHLIGHTS
   ============================================================ */
.split { display: grid; grid-template-columns: 1fr 1fr; gap: clamp(40px, 6vw, 84px); align-items: center; }
.split + .split { margin-top: clamp(72px, 10vw, 120px); }
.split.rev .split-text { order: 2; }
.split-text .h2 { margin: 16px 0 18px; }
.split-list { margin-top: 26px; display: flex; flex-direction: column; gap: 16px; }
.split-list li { display: flex; gap: 13px; align-items: flex-start; }
.split-list .ci { width: 24px; height: 24px; border-radius: 7px; flex: none; display: grid; place-items: center;
  background: var(--primary-soft); color: var(--primary); margin-top: 1px; }
.split-list .ci svg { width: 14px; height: 14px; }
.split-list b { font-weight: 560; color: var(--text); display: block; font-size: 0.96rem; }
.split-list span { color: var(--text-muted); font-size: 0.9rem; }

/* mini panels for split visuals */
.panel {
  border: 1px solid var(--border-strong); border-radius: var(--radius-lg); background: var(--surface);
  box-shadow: var(--shadow-md); overflow: hidden;
}
.panel-head { padding: 13px 16px; border-bottom: 1px solid var(--border); background: var(--surface-2);
  display: flex; align-items: center; justify-content: space-between; }
.panel-head .pt { font-weight: 540; font-size: 0.9rem; display: flex; align-items: center; gap: 9px; }
.panel-head .pt svg { width: 16px; height: 16px; color: var(--primary); }
.panel-body { padding: 18px; }

/* alert log */
.alert-item { display: flex; gap: 13px; padding: 13px; border-radius: var(--radius); border: 1px solid var(--border);
  background: var(--surface-2); margin-bottom: 10px; }
.alert-item:last-child { margin-bottom: 0; }
.alert-item .ai-ico { width: 32px; height: 32px; border-radius: 8px; flex: none; display: grid; place-items: center; }
.alert-item .ai-ico svg { width: 16px; height: 16px; }
.alert-item.down .ai-ico { background: var(--down-soft); color: var(--down); }
.alert-item.warn .ai-ico { background: var(--warn-soft); color: var(--warn); }
.alert-item.ok .ai-ico { background: var(--ok-soft); color: var(--ok); }
.alert-item .ai-main { flex: 1; min-width: 0; }
.alert-item .ai-t { font-size: 0.86rem; font-weight: 500; }
.alert-item .ai-d { font-size: 0.78rem; color: var(--text-dim); font-family: var(--font-mono); margin-top: 2px; }
.alert-item .ai-time { font-size: 0.72rem; color: var(--text-dim); font-family: var(--font-mono); white-space: nowrap; }
.chip-row { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 16px; }
.chip { font-family: var(--font-mono); font-size: 0.72rem; padding: 5px 10px; border-radius: 7px;
  border: 1px solid var(--border); color: var(--text-muted); background: var(--bg); display: inline-flex; align-items: center; gap: 6px; }
.chip svg { width: 13px; height: 13px; }

/* docker terminal */
.term { background: var(--bg); border-radius: var(--radius); border: 1px solid var(--border); overflow: hidden; font-family: var(--font-mono); font-size: 0.8rem; }
.term-line { padding: 4px 14px; display: flex; gap: 10px; color: var(--text-muted); }
.term-line:first-child { padding-top: 14px; }
.term-line:last-child { padding-bottom: 14px; }
.term-line .pr { color: var(--primary); }
.term-line .cm { color: var(--text); }
.term-line.out { color: var(--text-dim); padding-left: 24px; }
.term-line.out .g { color: var(--ok); }

/* ============================================================
   LIVE DEMO
   ============================================================ */
.live { background: var(--bg-soft); border-block: 1px solid var(--border); }
.live-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 18px; margin-top: 12px; }
.live-card { border: 1px solid var(--border); border-radius: var(--radius-lg); background: var(--surface); padding: 26px; text-align: center; }
.live-card .lc-ico { width: 38px; height: 38px; border-radius: 10px; display: grid; place-items: center; margin: 0 auto 16px;
  background: var(--primary-soft); color: var(--primary); }
.live-card .lc-ico svg { width: 18px; height: 18px; }
.live-num { font-family: var(--font-mono); font-size: clamp(2rem, 4vw, 2.8rem); font-weight: 640; letter-spacing: -0.03em; line-height: 1; }
.live-num .u { color: var(--primary); }
.live-card .lc-lbl { color: var(--text-muted); font-size: 0.88rem; margin-top: 10px; }
.live-status { display: flex; align-items: center; justify-content: center; gap: 9px; margin-top: 30px; font-size: 0.86rem; color: var(--text-muted); }
.live-status .dot { width: 9px; height: 9px; border-radius: 50%; background: var(--ok); position: relative; }
.live-status .dot::after { content: ""; position: absolute; inset: 0; border-radius: 50%; background: var(--ok);
  animation: live-pulse 2s ease-out infinite; }
@keyframes live-pulse { 0% { transform: scale(1); opacity: 0.7; } 100% { transform: scale(3.2); opacity: 0; } }

/* ============================================================
   PRICING
   ============================================================ */
.price-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; align-items: start; }
.price-card { position: relative; border: 1px solid var(--border); border-radius: var(--radius-lg); background: var(--surface);
  padding: 30px 26px; display: flex; flex-direction: column; transition: border-color .2s, transform .2s; }
.price-card:hover { border-color: var(--border-strong); }
.price-card.feat { border-color: var(--primary); box-shadow: 0 0 0 1px var(--primary), 0 30px 80px -34px var(--primary-glow); background: var(--surface); }
.price-card.feat::before {
  content: ""; position: absolute; inset: 0; border-radius: inherit; z-index: -1;
  background: radial-gradient(120% 80% at 50% 0%, var(--primary-soft), transparent 60%);
}
.price-pop { position: absolute; top: -12px; left: 50%; transform: translateX(-50%);
  background: var(--primary); color: var(--primary-fg); font-family: var(--font-mono);
  font-size: 0.7rem; font-weight: 600; letter-spacing: 0.06em; text-transform: uppercase;
  padding: 5px 13px; border-radius: 100px; box-shadow: 0 6px 18px -6px var(--primary-glow); }
.price-name { font-size: 1.1rem; font-weight: 600; }
.price-desc { color: var(--text-muted); font-size: 0.86rem; margin-top: 6px; min-height: 40px; }
.price-amt { margin-top: 18px; display: flex; align-items: baseline; gap: 6px; }
.price-amt .num { font-family: var(--font-mono); font-size: 2.6rem; font-weight: 660; letter-spacing: -0.03em; }
.price-amt .per { color: var(--text-dim); font-size: 0.85rem; }
.price-card .btn { margin-top: 22px; width: 100%; }
.price-feats { margin-top: 24px; display: flex; flex-direction: column; gap: 12px; padding-top: 22px; border-top: 1px solid var(--border); }
.price-feats li { display: flex; gap: 11px; align-items: flex-start; font-size: 0.9rem; color: var(--text-muted); }
.price-feats .ck { width: 18px; height: 18px; flex: none; color: var(--primary); margin-top: 1px; }
.price-feats .ck svg { width: 18px; height: 18px; }

/* ============================================================
   FAQ
   ============================================================ */
.faq { max-width: 800px; margin-inline: auto; }
.faq-item { border-bottom: 1px solid var(--border); }
.faq-q { width: 100%; display: flex; align-items: center; justify-content: space-between; gap: 20px;
  padding: 24px 4px; cursor: pointer; background: none; border: none; text-align: left;
  font-size: 1.06rem; font-weight: 520; color: var(--text); transition: color .15s; }
.faq-q:hover { color: var(--primary); }
.faq-q .pm { width: 22px; height: 22px; flex: none; position: relative; color: var(--text-dim); transition: transform .3s var(--ease), color .15s; }
.faq-q .pm::before, .faq-q .pm::after { content: ""; position: absolute; background: currentColor; border-radius: 2px; }
.faq-q .pm::before { top: 50%; left: 3px; right: 3px; height: 2px; transform: translateY(-50%); }
.faq-q .pm::after { left: 50%; top: 3px; bottom: 3px; width: 2px; transform: translateX(-50%); transition: opacity .3s, transform .3s; }
.faq-item.open .faq-q { color: var(--primary); }
.faq-item.open .pm { color: var(--primary); transform: rotate(180deg); }
.faq-item.open .pm::after { opacity: 0; transform: translateX(-50%) scaleY(0); }
.faq-a { overflow: hidden; height: 0; transition: height .32s var(--ease); }
.faq-a-inner { padding: 0 4px 24px; color: var(--text-muted); font-size: 0.97rem; max-width: 68ch; }

/* ============================================================
   FINAL CTA
   ============================================================ */
.cta { text-align: center; position: relative; overflow: hidden; }
.cta-box {
  position: relative; border: 1px solid var(--border-strong); border-radius: var(--radius-xl);
  background: var(--surface); padding: clamp(48px, 8vw, 84px) var(--gut);
  box-shadow: var(--shadow-md); overflow: hidden;
}
.cta-box::before {
  content: ""; position: absolute; inset: 0; z-index: 0;
  background: radial-gradient(60% 90% at 50% 0%, var(--primary-soft), transparent 62%);
}
.cta-box > * { position: relative; z-index: 1; }
.cta-box .h2 { max-width: 18ch; margin-inline: auto; }
.cta-box .lead { max-width: 50ch; margin: 18px auto 30px; }
.cta-actions { display: flex; gap: 13px; justify-content: center; flex-wrap: wrap; }

/* code snippet + copy */
.code-snip { display: inline-flex; align-items: stretch; margin-top: 30px; max-width: 100%;
  border: 1px solid var(--border-strong); border-radius: var(--radius); background: var(--bg); overflow: hidden;
  box-shadow: var(--shadow-sm); }
.code-snip code { font-family: var(--font-mono); font-size: 0.86rem; color: var(--text);
  padding: 13px 16px; display: flex; align-items: center; gap: 10px; white-space: nowrap; overflow-x: auto; }
.code-snip code .pr { color: var(--primary); }
.copy-btn { flex: none; border: none; border-left: 1px solid var(--border); background: var(--surface-2);
  color: var(--text-muted); width: 48px; cursor: pointer; display: grid; place-items: center; transition: color .15s, background-color .15s; }
.copy-btn:hover { color: var(--text); background: var(--surface-3); }
.copy-btn svg { width: 17px; height: 17px; }
.copy-btn .ic-check { display: none; color: var(--ok); }
.copy-btn.copied .ic-copy { display: none; }
.copy-btn.copied .ic-check { display: block; }

/* ============================================================
   FOOTER
   ============================================================ */
.footer { border-top: 1px solid var(--border); padding-block: 64px 36px; background: var(--bg-soft); }
.footer-top { display: grid; grid-template-columns: 1.6fr repeat(4, 1fr); gap: 36px; }
.footer-brand { max-width: 280px; }
.footer-brand .brand { margin-bottom: 14px; }
.footer-brand p { color: var(--text-muted); font-size: 0.9rem; }
.footer-social { display: flex; gap: 10px; margin-top: 20px; }
.footer-social a { width: 36px; height: 36px; border-radius: 9px; border: 1px solid var(--border);
  display: grid; place-items: center; color: var(--text-muted); transition: all .15s; }
.footer-social a:hover { color: var(--text); border-color: var(--border-strong); background: var(--surface-2); }
.footer-social svg { width: 17px; height: 17px; }
.footer-col h5 { font-size: 0.78rem; font-family: var(--font-mono); text-transform: uppercase; letter-spacing: 0.1em;
  color: var(--text-dim); margin-bottom: 16px; font-weight: 500; }
.footer-col ul { display: flex; flex-direction: column; gap: 11px; }
.footer-col a { color: var(--text-muted); font-size: 0.9rem; transition: color .15s; }
.footer-col a:hover { color: var(--text); }
.footer-bottom { display: flex; align-items: center; justify-content: space-between; flex-wrap: wrap; gap: 14px;
  margin-top: 52px; padding-top: 26px; border-top: 1px solid var(--border); }
.footer-bottom p { color: var(--text-dim); font-size: 0.84rem; }
.footer-bottom .fb-status { display: flex; align-items: center; gap: 8px; font-family: var(--font-mono); font-size: 0.8rem; color: var(--text-muted); }

/* ============================================================
   SCROLL REVEAL
   ============================================================ */
.reveal { opacity: 0; transform: translateY(22px); transition: opacity .7s var(--ease), transform .7s var(--ease); }
.reveal.in { opacity: 1; transform: none; }
.reveal.d1 { transition-delay: .07s; } .reveal.d2 { transition-delay: .14s; }
.reveal.d3 { transition-delay: .21s; } .reveal.d4 { transition-delay: .28s; }
.reveal.d5 { transition-delay: .35s; }
@media (prefers-reduced-motion: reduce) {
  .reveal { opacity: 1; transform: none; transition: none; }
  * { animation-duration: 0.001ms !important; scroll-behavior: auto; }
}

/* ============================================================
   RESPONSIVE
   ============================================================ */
@media (max-width: 1000px) {
  .feat-grid { grid-template-columns: repeat(2, 1fr); }
  .live-grid { grid-template-columns: repeat(2, 1fr); }
  .footer-top { grid-template-columns: 1fr 1fr; gap: 32px; }
  .footer-brand { grid-column: 1 / -1; max-width: none; }
}
@media (max-width: 860px) {
  .nav-links { display: none; }
  .nav-actions .btn-text-hide { display: none; }
  .burger { display: grid; }
  .split { grid-template-columns: 1fr; gap: 36px; }
  .split.rev .split-text { order: 0; }
  .price-grid { grid-template-columns: 1fr; max-width: 440px; margin-inline: auto; }
  .price-card.feat { order: -1; }
  .mockup-body { grid-template-columns: 1fr; }
  .mock-side { display: none; }
}
@media (max-width: 600px) {
  .feat-grid { grid-template-columns: 1fr; }
  .live-grid { grid-template-columns: 1fr 1fr; }
  .footer-top { grid-template-columns: 1fr 1fr; }
  .mock-stats { grid-template-columns: 1fr; }
  .hero { padding-top: 120px; }
  .code-snip { width: 100%; }
  .code-snip code { white-space: nowrap; }
}
