/* AdeFfix Landing — Design tokens */

:root {
  /* Brand */
  --brand-blue: oklch(0.58 0.22 258);
  --brand-dark: oklch(0.20 0.03 250);

  /* Dark (default) */
  --bg: oklch(0.16 0.012 250);
  --bg-1: oklch(0.19 0.012 250);
  --bg-2: oklch(0.22 0.012 250);
  --surface: oklch(0.20 0.012 250 / 0.6);
  --surface-solid: oklch(0.21 0.012 250);
  --border: oklch(0.30 0.012 250);
  --border-soft: oklch(0.26 0.012 250);
  --text: oklch(0.97 0.005 250);
  --text-2: oklch(0.78 0.008 250);
  --text-3: oklch(0.58 0.010 250);
  --text-4: oklch(0.42 0.010 250);

  /* Accent (brand blue — matches the AdeFfix logo) */
  --accent: oklch(0.58 0.22 258);
  --accent-2: oklch(0.50 0.22 258);
  --accent-fg: oklch(0.99 0 0);
  --accent-glow: oklch(0.58 0.22 258 / 0.18);

  /* Channel colors (used in charts) */
  --ch-search: oklch(0.72 0.16 245);   /* Google Ads — blue */
  --ch-social: oklch(0.72 0.16 295);   /* Meta — violet */
  --ch-video: oklch(0.78 0.17 15);    /* TikTok — coral */
  --ch-analytics: oklch(0.80 0.18 75);  /* GA4 — amber */
  --ch-seo: var(--accent);
  --ch-direct: oklch(0.65 0.02 250);

  /* Semantics */
  --good: oklch(0.85 0.18 145);
  --bad: oklch(0.72 0.18 25);

  /* Type */
  --ff-display: "Space Grotesk", ui-sans-serif, system-ui, sans-serif;
  --ff-text: "Geist", ui-sans-serif, system-ui, sans-serif;
  --ff-mono: "Geist Mono", ui-monospace, "JetBrains Mono", monospace;

  /* Radii / shadows */
  --r-sm: 8px;
  --r-md: 12px;
  --r-lg: 18px;
  --r-xl: 28px;
  --shadow-card: 0 1px 0 oklch(1 0 0 / 0.04) inset, 0 12px 32px -12px oklch(0 0 0 / 0.5);

  /* Layout */
  --maxw: 1240px;
  --gutter: 24px;
  --section-y: 120px;
  --nav-bg: oklch(0.16 0.012 250 / 0.72);
}

[data-theme="light"] {
  --bg: oklch(0.99 0.002 250);
  --bg-1: oklch(0.975 0.003 250);
  --bg-2: oklch(0.955 0.004 250);
  --surface: oklch(1 0 0 / 0.7);
  --surface-solid: oklch(1 0 0);
  --border: oklch(0.86 0.008 250);
  --border-soft: oklch(0.92 0.006 250);
  --text: oklch(0.20 0.025 255);
  --text-2: oklch(0.40 0.020 255);
  --text-3: oklch(0.55 0.015 255);
  --text-4: oklch(0.70 0.010 255);
  --shadow-card: 0 1px 0 oklch(0 0 0 / 0.03) inset, 0 14px 36px -14px oklch(0.40 0.10 258 / 0.16);
  --nav-bg: oklch(1 0 0 / 0.78);
}

[data-density="compact"] { --section-y: 88px; }
[data-density="comfy"]   { --section-y: 144px; }

* { box-sizing: border-box; }
html, body { margin: 0; padding: 0; }
html { background: var(--bg); color: var(--text); }
body {
  font-family: var(--ff-text);
  font-size: 16px;
  line-height: 1.55;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
  color: var(--text);
  background:
    radial-gradient(80% 60% at 50% -10%, var(--accent-glow), transparent 70%),
    var(--bg);
  overflow-x: hidden;
}

[data-theme="light"] body {
  background:
    radial-gradient(60% 40% at 50% -10%, var(--accent-glow), transparent 80%),
    var(--bg);
}

a { color: inherit; text-decoration: none; }
button { font-family: inherit; }

/* Typographic primitives */
.h-eyebrow {
  font-family: var(--ff-mono);
  font-size: 12px;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--text-3);
  display: inline-flex;
  align-items: center;
  gap: 10px;
}
.h-eyebrow::before {
  content: "";
  width: 8px; height: 8px;
  border-radius: 50%;
  background: var(--accent);
  box-shadow: 0 0 0 4px var(--accent-glow);
}

.h-display {
  font-family: var(--ff-display);
  font-weight: 500;
  font-size: clamp(36px, 5vw, 64px);
  line-height: 1.05;
  letter-spacing: -0.035em;
  margin: 0;
  color: var(--text);
  text-wrap: balance;
}
.h-display .accent { color: var(--accent); font-style: italic; font-weight: 400; }

.h-section {
  font-family: var(--ff-display);
  font-weight: 500;
  font-size: clamp(32px, 4.2vw, 56px);
  line-height: 1.02;
  letter-spacing: -0.03em;
  margin: 0;
  text-wrap: balance;
}
.h-section .accent { color: var(--accent); font-style: italic; font-weight: 400; }

.h-card {
  font-family: var(--ff-display);
  font-weight: 500;
  font-size: 22px;
  line-height: 1.15;
  letter-spacing: -0.02em;
  margin: 0;
}

.p-lead { font-size: 18px; color: var(--text-2); line-height: 1.55; max-width: 56ch; text-wrap: pretty; }
.p { color: var(--text-2); line-height: 1.6; text-wrap: pretty; }
.p-mono { font-family: var(--ff-mono); font-size: 12px; letter-spacing: 0.04em; color: var(--text-3); text-transform: uppercase; }

/* Layout */
.wrap { max-width: var(--maxw); margin: 0 auto; padding: 0 var(--gutter); }
.section { padding: var(--section-y) 0; position: relative; }
.section-sm { padding: calc(var(--section-y) * 0.5) 0; }

/* Buttons */
.btn {
  display: inline-flex; align-items: center; gap: 8px;
  height: 46px; padding: 0 22px;
  border-radius: 999px;
  font-family: var(--ff-text);
  font-size: 14.5px;
  font-weight: 500;
  letter-spacing: -0.005em;
  cursor: pointer;
  border: 1px solid transparent;
  transition: transform 0.18s ease, background 0.18s ease, border-color 0.18s ease, box-shadow 0.18s ease;
  white-space: nowrap;
}
.btn-primary {
  background: var(--accent);
  color: var(--accent-fg);
  box-shadow: 0 0 0 0 var(--accent-glow), 0 8px 30px -8px oklch(0.87 0.18 145 / 0.5);
}
.btn-primary:hover { transform: translateY(-1px); box-shadow: 0 0 0 4px var(--accent-glow), 0 12px 36px -8px oklch(0.87 0.18 145 / 0.6); }
.btn-ghost {
  background: transparent;
  color: var(--text);
  border-color: var(--border);
}
.btn-ghost:hover { background: var(--bg-1); border-color: var(--text-4); }
.btn-sm { height: 36px; padding: 0 14px; font-size: 13px; }
.btn-lg { height: 54px; padding: 0 28px; font-size: 16px; }

.btn .arr { transition: transform 0.2s ease; }
.btn:hover .arr { transform: translateX(3px); }

/* Pill */
.pill {
  display: inline-flex; align-items: center; gap: 8px;
  padding: 6px 12px 6px 8px;
  border-radius: 999px;
  background: var(--bg-1);
  border: 1px solid var(--border-soft);
  font-size: 13px;
  color: var(--text-2);
}
.pill .dot { width: 6px; height: 6px; border-radius: 50%; background: var(--accent); }

/* Card */
.card {
  background: var(--surface);
  border: 1px solid var(--border-soft);
  border-radius: var(--r-lg);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
}

/* Divider */
.divider {
  height: 1px;
  background: linear-gradient(90deg, transparent, var(--border), transparent);
  border: 0;
}

/* Grain / texture — removed for standalone bundling compatibility */
.grain::before { display: none; }

/* Marquee */
@keyframes marquee {
  from { transform: translateX(0); }
  to { transform: translateX(-50%); }
}

/* Ticker animation for live numbers */
@keyframes pop {
  0% { transform: translateY(8px); opacity: 0; }
  100% { transform: translateY(0); opacity: 1; }
}

/* Pulse for live dot */
@keyframes pulse-dot {
  0%, 100% { box-shadow: 0 0 0 0 var(--accent-glow); }
  50% { box-shadow: 0 0 0 8px transparent; }
}
.live-dot {
  width: 8px; height: 8px; border-radius: 50%;
  background: var(--accent);
  animation: pulse-dot 2s ease-in-out infinite;
}

/* Reveal — kept as no-op for layout neutrality; chart/tab entrances handle motion */
.reveal { opacity: 1; transform: none; }
.reveal.is-in { /* visible by default */ }

/* Utility */
.row { display: flex; }
.col { display: flex; flex-direction: column; }
.center { align-items: center; justify-content: center; }
.between { justify-content: space-between; }
.gap-4 { gap: 4px; } .gap-6 { gap: 6px; } .gap-8 { gap: 8px; } .gap-12 { gap: 12px; } .gap-16 { gap: 16px; } .gap-20 { gap: 20px; } .gap-24 { gap: 24px; } .gap-32 { gap: 32px; } .gap-48 { gap: 48px; }
.mt-8 { margin-top: 8px; } .mt-12 { margin-top: 12px; } .mt-16 { margin-top: 16px; } .mt-20 { margin-top: 20px; } .mt-24 { margin-top: 24px; } .mt-32 { margin-top: 32px; } .mt-48 { margin-top: 48px; } .mt-64 { margin-top: 64px; }
.mb-8 { margin-bottom: 8px; } .mb-12 { margin-bottom: 12px; } .mb-16 { margin-bottom: 16px; } .mb-24 { margin-bottom: 24px; } .mb-32 { margin-bottom: 32px; } .mb-48 { margin-bottom: 48px; }
.mono { font-family: var(--ff-mono); font-variant-numeric: tabular-nums; }
.tab-num { font-variant-numeric: tabular-nums; }

/* Selection */
::selection { background: var(--accent); color: var(--accent-fg); }
