/* =====================================================================
   Wisetok — Design System
   Dark MD3 token system. The division color is a single-attribute swap.

   Division color is a SINGLE SWAP:
     - default  -> orange  (#f97316)
     - <html data-division="organic"> -> TikTok/Organic blue (#0284c7)
   Everything below reads --brand / --brand-hi / --on-brand, so flipping
   the division re-skins the whole funnel with one attribute.

   Dark-first MD3 stack. NEVER pure black (floor is #121212).
   Borders are the depth mechanism (no glassmorphism except nav).
   Fonts: JetBrains Mono = chrome/numbers/labels. Inter = prose.
   ===================================================================== */

:root {
  /* ---- Division: primary (default) ---- */
  --brand: #f97316;          /* primary CTA fill */
  --brand-hi: #fb923c;       /* brighter accent: badges, glows, text */
  --brand-soft: #fed7aa;
  --on-brand: #000000;       /* text on brand fill */
  --brand-glow: rgba(249, 115, 22, 0.06);
  --brand-surface: rgba(84, 32, 15, 0.15);
  --brand-border: rgba(249, 115, 22, 0.22);
  --brand-border-hi: rgba(249, 115, 22, 0.40);
  --brand-rgb: 249, 115, 22;

  /* ---- Secondary signal (geo / verified / live) ---- */
  --sky: #38bdf8;
  --sky-deep: #0284c7;
  --violet: #c084fc;

  /* ---- Dark depth stack (MD3) ---- */
  --bg-deep: #0d0d0d;        /* page floor (still above pure black) */
  --bg-base: #121212;
  --bg-card: #1a1a1a;
  --bg-elevated: #242424;
  --bg-surface: rgba(255, 255, 255, 0.02);

  /* ---- Text hierarchy ---- */
  --text-primary: #ffffff;
  --text-secondary: #e5e5e5;
  --text-muted: #b5b5b5;
  --text-dim: #8a8a8a;
  --text-faint: #5f5f5f;

  /* ---- Borders (whisper-thin luminous) ---- */
  --border: rgba(255, 255, 255, 0.07);
  --border-hover: rgba(255, 255, 255, 0.13);
  --border-active: rgba(255, 255, 255, 0.18);

  /* ---- State ---- */
  --success: #86efac;
  --danger: #fda4af;
  --warning: #f59e0b;
  --info: #60a5fa;

  /* ---- Type ---- */
  --font-sans: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
  --font-mono: 'JetBrains Mono', ui-monospace, 'SF Mono', Menlo, monospace;

  /* ---- Layout ---- */
  --container: 1180px;
  --container-narrow: 760px;
  --radius-sm: 8px;
  --radius: 14px;
  --radius-lg: 22px;
  --radius-pill: 999px;
  --touch: 44px;
  --section-y: 96px;
  --gutter: 24px;

  /* ---- Signature gradients ---- */
  --grad-text: linear-gradient(135deg, #ffedd5 0%, #fb923c 48%, #ea580c 100%);
  --grad-mesh:
    radial-gradient(1200px 620px at 18% -8%, rgba(249,115,22,0.20), transparent 60%),
    radial-gradient(900px 520px at 92% 4%, rgba(14,165,233,0.14), transparent 60%),
    radial-gradient(760px 460px at 52% 108%, rgba(139,92,246,0.10), transparent 62%);
}

/* ---- Division override: Organic / TikTok blue (one attribute) ---- */
[data-division="organic"] {
  --brand: #0284c7;
  --brand-hi: #38bdf8;
  --brand-soft: #7dd3fc;
  --on-brand: #ffffff;
  --brand-glow: rgba(56, 189, 248, 0.06);
  --brand-surface: rgba(15, 52, 84, 0.15);
  --brand-border: rgba(56, 189, 248, 0.22);
  --brand-border-hi: rgba(56, 189, 248, 0.40);
  --brand-rgb: 56, 189, 248;
  --grad-text: linear-gradient(135deg, #e0f2fe 0%, #38bdf8 48%, #0284c7 100%);
}

/* ===================== Reset / base ===================== */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
/* normalize.css fix: author display rules (flex/grid) override the UA
   [hidden]{display:none}. Restore it so [hidden] always wins. */
[hidden] { display: none !important; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }

body {
  font-family: var(--font-sans);
  background: var(--bg-deep);
  color: var(--text-primary);
  line-height: 1.55;
  font-size: 16px;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
  overflow-x: hidden;
}

img, svg { display: block; max-width: 100%; }
a { color: inherit; text-decoration: none; }
button { font-family: inherit; cursor: pointer; border: none; background: none; color: inherit; }
input, select, textarea { font-family: inherit; font-size: inherit; color: inherit; }

::selection { background: rgba(var(--brand-rgb), 0.30); color: #fff; }

/* Scrollbar (Windows QoL) */
* { scrollbar-width: thin; scrollbar-color: rgba(255,255,255,0.10) transparent; }
*::-webkit-scrollbar { width: 7px; height: 7px; }
*::-webkit-scrollbar-track { background: transparent; }
*::-webkit-scrollbar-thumb { background: rgba(255,255,255,0.10); border-radius: 4px; }
*::-webkit-scrollbar-thumb:hover { background: rgba(var(--brand-rgb), 0.45); }

/* Keyboard focus ring (WCAG 2.2) */
a:focus-visible, button:focus-visible, input:focus-visible,
select:focus-visible, textarea:focus-visible, [tabindex]:focus-visible {
  outline: 2px solid var(--brand-hi);
  outline-offset: 2px;
  border-radius: 6px;
}

/* ===================== Typography ===================== */
.eyebrow {
  font-family: var(--font-mono);
  font-size: 0.72rem;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--brand-hi);
  font-weight: 500;
}
h1, h2, h3 { font-weight: 700; line-height: 1.08; letter-spacing: -0.02em; }
.display {
  font-size: clamp(2.4rem, 6vw, 4.4rem);
  font-weight: 800;
  line-height: 1.02;
  letter-spacing: -0.035em;
}
.h2 { font-size: clamp(1.8rem, 4vw, 2.9rem); }
.h3 { font-size: clamp(1.25rem, 2.4vw, 1.6rem); }
.lede { font-size: clamp(1.05rem, 2vw, 1.3rem); color: var(--text-secondary); line-height: 1.5; }
.muted { color: var(--text-muted); }
.dim { color: var(--text-dim); }
.mono { font-family: var(--font-mono); }
.brand-text {
  background: var(--grad-text);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

/* ===================== Layout ===================== */
.container { width: 100%; max-width: var(--container); margin-inline: auto; padding-inline: var(--gutter); }
.narrow { max-width: var(--container-narrow); }
.section { padding-block: var(--section-y); position: relative; }
.center { text-align: center; }
.stack > * + * { margin-top: 1rem; }
.grid { display: grid; gap: var(--gutter); }
@media (max-width: 720px) { :root { --section-y: 64px; } }

/* ===================== Buttons ===================== */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 0.55rem;
  min-height: var(--touch); padding: 0 1.5rem;
  font-family: var(--font-mono); font-weight: 600; font-size: 0.92rem;
  letter-spacing: 0.01em; border-radius: var(--radius-sm);
  transition: transform .14s ease, box-shadow .18s ease, background .18s ease, border-color .18s ease;
  white-space: nowrap;
}
.btn:active { transform: translateY(1px) scale(0.995); }
.btn-primary {
  background: var(--brand); color: var(--on-brand);
  box-shadow: 0 0 0 0 rgba(var(--brand-rgb), 0.0);
}
.btn-primary:hover {
  background: var(--brand-hi);
  box-shadow: 0 10px 34px -12px rgba(var(--brand-rgb), 0.65);
  transform: translateY(-1px);
}
.btn-ghost { background: transparent; color: var(--text-primary); border: 1px solid var(--border-hover); }
.btn-ghost:hover { border-color: var(--brand-border-hi); background: var(--brand-glow); }
.btn-lg { min-height: 56px; padding: 0 2rem; font-size: 1rem; }
.btn-block { width: 100%; }

/* ===================== Cards / surfaces ===================== */
.card {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: var(--card-pad, 28px);
  transition: border-color .2s ease, transform .2s ease, background .2s ease;
}
.card:hover { border-color: var(--border-hover); }
.card-glow {
  position: relative;
  border-color: var(--brand-border);
  background:
    radial-gradient(120% 120% at 50% -10%, var(--brand-glow), transparent 60%),
    var(--bg-card);
}

/* Chips / badges */
.chip {
  display: inline-flex; align-items: center; gap: 0.4rem;
  font-family: var(--font-mono); font-size: 0.7rem; letter-spacing: 0.08em;
  text-transform: uppercase; padding: 0.32rem 0.7rem; border-radius: var(--radius-pill);
  border: 1px solid var(--brand-border); color: var(--brand-hi); background: var(--brand-surface);
}
.chip-neutral { border-color: var(--border-hover); color: var(--text-muted); background: var(--bg-surface); }
.chip-live { border-color: rgba(134,239,172,0.3); color: var(--success); }

.pulse-dot { width: 8px; height: 8px; border-radius: 50%; background: var(--success); box-shadow: 0 0 0 0 rgba(134,239,172,0.7); animation: ping 1.8s infinite; }
@keyframes ping { 70% { box-shadow: 0 0 0 8px rgba(134,239,172,0); } 100% { box-shadow: 0 0 0 0 rgba(134,239,172,0); } }
@media (prefers-reduced-motion: reduce) { .pulse-dot { animation: none; } }

/* Divider */
.hr { height: 1px; background: var(--border); border: 0; }

/* Reveal-on-scroll helper */
.reveal { opacity: 0; transform: translateY(14px); transition: opacity .6s ease, transform .6s cubic-bezier(0.2,0.8,0.2,1); }
.reveal.in { opacity: 1; transform: none; }
@media (prefers-reduced-motion: reduce) { .reveal { opacity: 1; transform: none; transition: none; } }

/* Utility */
.flex { display: flex; }
.between { justify-content: space-between; }
.aic { align-items: center; }
.wrap { flex-wrap: wrap; }
.gap-sm { gap: .5rem; } .gap { gap: 1rem; } .gap-lg { gap: 1.5rem; }
.mt-1{margin-top:.5rem}.mt-2{margin-top:1rem}.mt-3{margin-top:1.5rem}.mt-4{margin-top:2.5rem}
.full { width: 100%; }
