/* GTM 8020 — Lead Magnet base stylesheet */
:root {
  --bg: #04040a;
  --bg-secondary: rgba(156,186,188,0.04);
  --bg-card: rgba(156,186,188,0.08);
  --bg-subtle: rgba(156,186,188,0.08);
  --c-dark: #04040a;
  --text-strong: rgba(230,230,230,0.92);
  --text-medium: rgba(230,230,230,0.72);
  --text-soft: rgba(230,230,230,0.64);
  --text-muted: rgba(230,230,230,0.48);
  --text-hierarchy-muted: rgba(230,230,230,0.32);
  --text-on-accent: #04040a;
  --accent: #e7fe3b;
  --accent-hover: rgba(231,254,59,0.82);
  --accent-dim: rgba(231,254,59,0.18);
  --border: rgba(156,186,188,0.2);
  --border-strong: rgba(255,255,255,0.2);
  --surface: rgba(156,186,188,0.08);
  --surface-raised: rgba(156,186,188,0.16);
  --positive: rgba(74,222,128,0.9);
  --negative: rgba(248,113,113,0.9);
  --warning: rgba(251,191,36,0.9);
  --font-primary: 'Familjen Grotesk', Arial, sans-serif;
  --radius: 4.5px;
  --radius-sm: 4.5px;
  --radius-md: 9px;
  --radius-lg: 13.5px;
  --radius-pill: 1800px;
  --shadow-glow: 0 0 1.25rem rgba(231,254,59,0.05);
  --shadow-btn: 0 0.25rem 0.75rem rgba(0,0,0,0.3);
  --ease-standard: cubic-bezier(0.16, 1, 0.3, 1);
  --ease-spring: cubic-bezier(0.34, 1.56, 0.64, 1);
  --sp-1: 4.5px;
  --sp-2: 9px;
  --sp-3: 13.5px;
  --sp-4: 18px;
  --sp-6: 27px;
  --sp-8: 36px;
  --sp-12: 54px;
  --sp-16: 72px;
  color-scheme: dark;
}
* { margin: 0; padding: 0; box-sizing: border-box; }
html { background: var(--bg); }
body {
  font-family: var(--font-primary);
  background: var(--bg); color: var(--text-strong);
  -webkit-font-smoothing: antialiased; -moz-osx-font-smoothing: grayscale;
  text-rendering: optimizeLegibility;
  font-size: 18px; line-height: 1.5;
  min-height: 100vh;
}
::selection { background: var(--accent); color: var(--text-on-accent); }
:focus-visible { outline: 2px solid var(--accent); outline-offset: 3px; }
a { color: inherit; text-decoration: none; }
button { font: inherit; color: inherit; background: none; border: none; cursor: pointer; }
img, svg { display: block; max-width: 100%; }

/* Page shell */
.page { max-width: 1260px; margin: 0 auto; padding: var(--sp-6) var(--sp-6) var(--sp-16); position: relative; }
@media (max-width: 768px) { .page { padding: var(--sp-4) var(--sp-3) var(--sp-12); } }
.page-narrow { max-width: 880px; }

/* Nav */
.nav { display: flex; justify-content: space-between; align-items: center; padding-block: var(--sp-3); }
.nav-brand { display: flex; align-items: center; gap: 10px; }
.nav-brand img { height: 22px; opacity: 0.92; }
.nav-meta { display: flex; align-items: center; gap: var(--sp-3); font-size: 13px; color: var(--text-muted); font-variant-numeric: tabular-nums; }
.nav-meta a { transition: color .2s; }
.nav-meta a:hover { color: var(--accent); }
.live-dot { display: inline-block; width: 6px; height: 6px; border-radius: 50%; background: var(--accent); box-shadow: 0 0 8px var(--accent); animation: pulse 2.4s ease-in-out infinite; }
@keyframes pulse { 0%,100% { opacity: 0.4; } 50% { opacity: 1; } }

/* Eyebrow pill */
.eyebrow {
  display: inline-flex; align-items: center; gap: 8px;
  background: var(--bg-subtle); backdrop-filter: blur(8px);
  border: 1px solid var(--border); border-radius: var(--radius-pill);
  padding: 6px 14px; font-size: 11px; font-weight: 700;
  color: var(--accent); letter-spacing: 0.08em; text-transform: uppercase;
}
.eyebrow .e-dot { width: 5px; height: 5px; border-radius: 50%; background: var(--accent); }

/* Hero */
.hero { padding: var(--sp-12) 0 var(--sp-8); }
.hero .eyebrow { margin-bottom: var(--sp-4); }
.hero h1 {
  font-size: clamp(40px, 7vw, 88px); line-height: 1; letter-spacing: -0.035em;
  font-weight: 500; color: var(--text-strong); text-wrap: balance; max-width: 22ch;
  margin-bottom: var(--sp-4);
}
.hero h1 em { font-style: normal; color: var(--accent); }
.hero .lede { font-size: 20px; line-height: 1.4; color: var(--text-soft); max-width: 60ch; margin-bottom: var(--sp-6); }

/* Card */
.card {
  background: var(--c-dark);
  background-image: linear-gradient(180deg, rgba(156,186,188,0.2), rgba(156,186,188,0) 99%);
  border: 1px solid var(--border);
  border-top: 2.5px solid var(--accent);
  border-radius: var(--radius-lg);
  padding: var(--sp-6);
  position: relative;
  overflow: hidden;
}
.card::before {
  content: ''; position: absolute; inset: 0;
  background: repeating-conic-gradient(var(--bg-subtle) 0 25%, transparent 0 50%) 0 0/4px 4px;
  opacity: 0.15; pointer-events: none; border-radius: inherit;
}
.card > * { position: relative; z-index: 1; }
.card-plain { border-top-width: 1px; }
.deco-dot { position: absolute; width: 5px; height: 5px; background: var(--accent); border-radius: 50%; opacity: 0.22; pointer-events: none; }
.deco-dot-tr { top: 18px; right: 22px; }
.deco-dot-tr2 { top: 30px; right: 38px; width: 3px; height: 3px; opacity: 0.15; }

/* Buttons */
.btn {
  display: inline-flex; align-items: center; gap: 8px;
  padding: 10px 16px; border-radius: var(--radius);
  font-size: 14px; font-weight: 600; min-height: 44px;
  transition: all .2s var(--ease-standard);
}
.btn-primary { background: var(--accent); color: var(--text-on-accent); }
.btn-primary:hover { background: var(--accent-hover); transform: translateY(-1px); box-shadow: var(--shadow-btn); }
.btn-primary:hover .arrow { transform: translateX(4px); }
.btn-primary:active { transform: scale(0.98); }
.btn-primary:disabled { background: var(--surface-raised); color: var(--text-muted); cursor: not-allowed; transform: none; box-shadow: none; }
.btn-ghost { background: transparent; color: var(--text-soft); border: 1px solid var(--border); }
.btn-ghost:hover { color: var(--text-strong); border-color: var(--border-strong); background: var(--surface); }
.btn-lg { padding: 14px 22px; font-size: 16px; min-height: 52px; }
.arrow { display: inline-flex; transition: transform .2s var(--ease-standard); }

/* Section head */
.section-head { margin-bottom: var(--sp-6); }
.section-head .label {
  font-size: 11px; color: var(--accent); letter-spacing: 0.08em;
  text-transform: uppercase; font-weight: 700; margin-bottom: 8px;
  display: flex; align-items: center; gap: 8px;
}
.section-head .label .ix { color: var(--text-muted); font-weight: 500; font-variant-numeric: tabular-nums; }
.section-head h2 { font-size: clamp(28px, 4vw, 40px); line-height: 1; letter-spacing: -0.03em; font-weight: 500; margin-bottom: var(--sp-2); }
.section-head p { font-size: 16px; color: var(--text-soft); max-width: 56ch; }

/* CTA banner */
.cta-banner { padding: var(--sp-6); display: flex; justify-content: space-between; align-items: center; gap: var(--sp-4); flex-wrap: wrap; }
.cta-banner h3 { font-size: 28px; line-height: 1.05; letter-spacing: -0.03em; font-weight: 500; margin-bottom: 8px; max-width: 30ch; text-wrap: balance; }
.cta-banner p { font-size: 14px; color: var(--text-soft); max-width: 50ch; }

/* Footnote */
.footnote {
  margin-top: var(--sp-12); padding-top: var(--sp-6); border-top: 1px solid var(--border);
  display: flex; justify-content: space-between; align-items: center;
  flex-wrap: wrap; gap: var(--sp-3); font-size: 12px; color: var(--text-muted);
}
.footnote .left { display: flex; align-items: center; gap: 10px; }
.footnote img { height: 16px; opacity: 0.55; }

/* Terminal block */
.terminal {
  background: rgba(0,0,0,0.4); border: 1px solid var(--border);
  border-radius: var(--radius-md); padding: var(--sp-3);
  font-family: 'Familjen Grotesk', monospace; font-size: 12px;
  line-height: 1.6; color: var(--text-soft);
}
.term-row { display: flex; gap: 10px; align-items: baseline; }
.term-row .k { color: var(--text-muted); min-width: 110px; }
.term-row .v { color: var(--text-strong); flex: 1; }
.term-row .v.accent { color: var(--accent); }
.term-row .v.positive { color: var(--positive); }
.term-row .v.warning { color: var(--warning); }
.term-divider { border-top: 1px dashed var(--border); margin: 10px 0; }

/* Range input */
input[type="range"] {
  -webkit-appearance: none; appearance: none; width: 100%; height: 4px;
  border-radius: var(--radius-pill); outline: none; cursor: pointer;
  background: linear-gradient(to right, var(--accent) 0%, var(--accent) 50%, var(--surface) 50%, var(--surface) 100%);
}
input[type="range"]::-webkit-slider-thumb {
  -webkit-appearance: none; width: 20px; height: 20px;
  border-radius: 50%; background: var(--accent); border: 3px solid var(--c-dark);
  cursor: pointer; transition: transform .2s var(--ease-standard);
}
input[type="range"]:hover::-webkit-slider-thumb { transform: scale(1.12); box-shadow: 0 0 0 4px rgba(231,254,59,0.18); }
input[type="range"]:active::-webkit-slider-thumb { transform: scale(0.95); }
input[type="range"]::-moz-range-thumb { width: 20px; height: 20px; border-radius: 50%; background: var(--accent); border: 3px solid var(--c-dark); cursor: pointer; }

/* Utility */
.tabular { font-variant-numeric: tabular-nums; }
.accent { color: var(--accent); }
.muted { color: var(--text-muted); }
.fade-up { animation: fadeUp .45s var(--ease-standard) both; }
@keyframes fadeUp { from { opacity: 0; transform: translateY(8px); } to { opacity: 1; transform: translateY(0); } }
@media (prefers-reduced-motion: reduce) { *, *::before, *::after { animation-duration: 0.01ms !important; transition-duration: 0.01ms !important; } }


/* === LIGHT MODE ===
   Activated by [data-theme="light"] on <html> or <body>.
   Inverts canvas + text; keeps neon lime as the single accent. */
[data-theme="light"]{
  --bg:#f6f4ef;                /* warm white canvas */
  --c-dark:#ffffff;            /* card surface */
  --bg-secondary:rgba(4,4,10,.02);
  --bg-card:rgba(4,4,10,.04);
  --bg-subtle:rgba(4,4,10,.04);
  --text-strong:rgba(4,4,10,.92);
  --text-medium:rgba(4,4,10,.7);
  --text-soft:rgba(4,4,10,.6);
  --text-muted:rgba(4,4,10,.45);
  --text-hierarchy-muted:rgba(4,4,10,.28);
  --text-on-accent:#04040a;
  --accent:#e7fe3b;
  --accent-hover:rgba(231,254,59,.78);
  --accent-dim:rgba(231,254,59,.25);
  --border:rgba(4,4,10,.12);
  --border-strong:rgba(4,4,10,.22);
  --border-solid:rgba(4,4,10,.12);
  --surface:rgba(4,4,10,.04);
  --surface-raised:rgba(4,4,10,.08);
  --positive:rgba(22,163,74,.92);
  --negative:rgba(220,38,38,.92);
  --warning:rgba(217,119,6,.92);
  --shadow-glow:0 0 1.25rem rgba(231,254,59,.18);
  --shadow-btn:0 .25rem .75rem rgba(4,4,10,.1);
  color-scheme:light;
}
/* Card overlay flips from cool-teal sheen to warm soft sheen on light */
[data-theme="light"] .card,
[data-theme="light"] .deck-card,
[data-theme="light"] .feature{
  background-image:linear-gradient(180deg,rgba(156,186,188,.08),rgba(156,186,188,0) 99%);
  box-shadow:0 1px 0 rgba(4,4,10,.04),0 1px 3px rgba(4,4,10,.04);
}
[data-theme="light"] .card::before{ opacity:.06; }
[data-theme="light"] ::selection{ background:var(--accent); color:var(--text-on-accent); }
