/* deXevel Interactive Lead Magnet — Design tokens + base */

:root {
  /* Brand — dark, high-trust automation aesthetic */
  --color-bg: #0a0a0a;
  --color-bg-elevated: #111313;
  --color-bg-card: #14221f;
  --color-bg-card-hover: #1b2b27;
  --color-surface: #192321;
  --color-border: rgba(0, 202, 177, 0.18);
  --color-border-strong: rgba(0, 202, 177, 0.42);

  --color-text: #f4f7f5;
  --color-text-muted: #b1bcb8;
  --color-text-dim: #71817c;

  --color-primary: #00cab1;
  --color-primary-hover: #38e2cc;
  --color-primary-soft: rgba(0, 202, 177, 0.14);
  --color-accent: #56c0db;
  --color-accent-soft: rgba(86, 192, 219, 0.14);
  --color-warning: #f2c14e;
  --color-warning-soft: rgba(255, 176, 32, 0.14);
  --color-danger: #ff6b7a;
  --color-danger-soft: rgba(255, 107, 122, 0.14);

  --color-gap: #ff8f6b;
  --color-opportunity: #00cab1;
  --color-core: #0fdb7e;
  --color-enhance: #56c0db;

  --font-sans: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Helvetica Neue", Arial, sans-serif;
  --font-mono: ui-monospace, "Cascadia Code", "SF Mono", Menlo, Consolas, monospace;

  --fs-xs: 0.75rem;
  --fs-sm: 0.875rem;
  --fs-base: 1rem;
  --fs-md: 1.125rem;
  --fs-lg: 1.25rem;
  --fs-xl: 1.5rem;
  --fs-2xl: 1.875rem;
  --fs-3xl: 2.25rem;
  --fs-4xl: 2.75rem;

  --lh-tight: 1.2;
  --lh-snug: 1.35;
  --lh-normal: 1.6;

  --space-1: 0.25rem;
  --space-2: 0.5rem;
  --space-3: 0.75rem;
  --space-4: 1rem;
  --space-5: 1.25rem;
  --space-6: 1.5rem;
  --space-8: 2rem;
  --space-10: 2.5rem;
  --space-12: 3rem;
  --space-16: 4rem;

  --radius-sm: 4px;
  --radius-md: 8px;
  --radius-lg: 14px;
  --radius-xl: 24px;
  --radius-full: 999px;

  --shadow-sm: 0 1px 2px rgba(0, 0, 0, 0.25);
  --shadow-md: 0 8px 24px rgba(0, 0, 0, 0.28);
  --shadow-lg: 0 18px 48px rgba(0, 0, 0, 0.35);
  --shadow-glow: 0 0 40px rgba(0, 202, 177, 0.18);

  --container: 1120px;
  --header-h: 64px;

  --ease: cubic-bezier(0.16, 1, 0.3, 1);
  --dur-fast: 150ms;
  --dur-med: 250ms;
  --dur-slow: 600ms;
  --dur-score: 800ms;
  --dur-gauge: 900ms;
}

*,
*::before,
*::after {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
  -webkit-text-size-adjust: 100%;
}

body {
  margin: 0;
  min-height: 100vh;
  font-family: var(--font-sans);
  font-size: var(--fs-base);
  line-height: var(--lh-normal);
  color: var(--color-text);
  background:
    linear-gradient(rgba(255,255,255,.025) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255,255,255,.025) 1px, transparent 1px),
    radial-gradient(900px 500px at 15% -10%, rgba(0, 202, 177, 0.12), transparent 60%),
    var(--color-bg);
  background-size: 48px 48px, 48px 48px, auto, auto;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

img,
svg {
  display: block;
  max-width: 100%;
}

a {
  color: var(--color-primary-hover);
  text-decoration-thickness: 1px;
  text-underline-offset: 3px;
}

a:hover {
  color: var(--color-accent);
}

h1, h2, h3, h4 {
  line-height: var(--lh-tight);
  font-weight: 700;
  letter-spacing: -0.02em;
  margin: 0 0 var(--space-4);
  color: var(--color-text);
}

h1 { font-size: clamp(1.85rem, 4vw, var(--fs-4xl)); }
h2 { font-size: clamp(1.4rem, 3vw, var(--fs-2xl)); }
h3 { font-size: clamp(1.1rem, 2vw, var(--fs-xl)); }
h4 { font-size: var(--fs-md); }

p {
  margin: 0 0 var(--space-4);
  color: var(--color-text-muted);
}

p:last-child { margin-bottom: 0; }

ul, ol {
  margin: 0 0 var(--space-4);
  padding-left: 1.25rem;
  color: var(--color-text-muted);
}

button,
input,
select,
textarea {
  font: inherit;
  color: inherit;
}

button {
  cursor: pointer;
  border: none;
  background: none;
}

:focus-visible {
  outline: 2px solid var(--color-primary);
  outline-offset: 3px;
}

.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

.container {
  width: min(100% - 2rem, var(--container));
  margin-inline: auto;
}

#app {
  scroll-margin-top: calc(var(--header-h) + 1.25rem);
}

.container-narrow {
  width: min(100% - 2rem, 720px);
  margin-inline: auto;
}

.muted { color: var(--color-text-muted); }
.dim { color: var(--color-text-dim); }
.accent { color: var(--color-accent); }
.primary { color: var(--color-primary-hover); }

.text-center { text-align: center; }
.stack { display: flex; flex-direction: column; gap: var(--space-4); }
.stack-sm { display: flex; flex-direction: column; gap: var(--space-2); }
.row {
  display: flex;
  flex-wrap: wrap;
  gap: var(--space-3);
  align-items: center;
}
.row-between {
  display: flex;
  flex-wrap: wrap;
  gap: var(--space-3);
  align-items: center;
  justify-content: space-between;
}

.grid-2 {
  display: grid;
  gap: var(--space-4);
  grid-template-columns: 1fr;
}

.grid-3 {
  display: grid;
  gap: var(--space-4);
  grid-template-columns: 1fr;
}

@media (min-width: 768px) {
  .grid-2 { grid-template-columns: 1fr 1fr; }
  .grid-3 { grid-template-columns: repeat(3, 1fr); }
}

.section {
  padding: var(--space-12) 0;
}

.section-sm {
  padding: var(--space-8) 0;
}

.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: var(--space-2);
  font-size: var(--fs-xs);
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--color-accent);
  margin-bottom: var(--space-3);
}

.lead {
  font-size: var(--fs-md);
  line-height: var(--lh-snug);
  color: var(--color-text-muted);
  max-width: 52ch;
}

.lead-center {
  margin-inline: auto;
  text-align: center;
}

/* Skip link */
.skip-link {
  position: absolute;
  left: var(--space-4);
  top: -100px;
  z-index: 1000;
  background: var(--color-primary);
  color: #fff;
  padding: var(--space-2) var(--space-4);
  border-radius: var(--radius-sm);
  font-weight: 600;
  text-decoration: none;
}

.skip-link:focus {
  top: var(--space-4);
}
