/* ============================================================================
   APPRIL — Landing styles
   Tokens, primitives, layout. Component-specific styles live alongside.
   ============================================================================ */

:root{
  --primary: #FE2C55;
  --primary-soft: #ff5c79;
  --ink: #0d0f14;
  --ink-2: #14171f;
  --ink-3: #1c2029;
  --paper: #ffffff;
  --paper-2: #f7f8fa;
  --paper-3: #eef0f4;
  --line: rgba(13,15,20,.08);
  --line-strong: rgba(13,15,20,.14);
  --line-dark: rgba(255,255,255,.08);
  --line-dark-strong: rgba(255,255,255,.14);
  --text: #0d0f14;
  --text-2: #4a5061;
  --text-3: #7a8194;
  --text-on-dark: #f5f6f8;
  --text-on-dark-2: #a3a9b8;
  --text-on-dark-3: #6b7184;
  --radius-sm: 10px;
  --radius: 16px;
  --radius-lg: 22px;
  --radius-xl: 28px;
  --shadow-sm: 0 1px 2px rgba(13,15,20,.04), 0 2px 6px rgba(13,15,20,.04);
  --shadow: 0 2px 4px rgba(13,15,20,.04), 0 12px 32px rgba(13,15,20,.08);
  --shadow-lg: 0 8px 24px rgba(13,15,20,.06), 0 32px 64px rgba(13,15,20,.16);
  --shadow-glow: 0 0 0 1px rgba(254,44,85,.18), 0 12px 40px rgba(254,44,85,.22);
  --container: 1200px;
  --gutter: 24px;
  --section-y: clamp(72px, 9vw, 128px);
  --ease-out: cubic-bezier(.2,.7,.2,1);
  --ease-in-out: cubic-bezier(.4,0,.2,1);
}

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

html, body{
  margin: 0;
  padding: 0;
  overflow-x: hidden;
  background: var(--paper);
  color: var(--text);
  font-family: 'Inter', ui-sans-serif, system-ui, -apple-system, sans-serif;
  font-feature-settings: 'cv11','ss01','ss03';
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  text-rendering: optimizeLegibility;
}

body{
  font-size: 16px;
  line-height: 1.55;
  letter-spacing: -0.005em;
  overflow-x: hidden;
}

img, svg{ display: block; max-width: 100%; }
button{ font-family: inherit; }
a{ color: inherit; text-decoration: none; }

/* ── reduced motion ───────────────────────────────────────────────── */
@media (prefers-reduced-motion: reduce){
  *, *::before, *::after{
    animation-duration: .01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: .01ms !important;
  }
}
.no-motion *, .no-motion *::before, .no-motion *::after{
  animation-duration: .01ms !important;
  animation-iteration-count: 1 !important;
  transition-duration: .01ms !important;
}

/* ── primitives ───────────────────────────────────────────────────── */
.container{
  width: 100%;
  max-width: var(--container);
  margin: 0 auto;
  padding: 0 var(--gutter);
}
.section{
  padding: var(--section-y) 0;
  position: relative;
}
.section--dark{
  background: var(--ink);
  color: var(--text-on-dark);
}
.section--soft{
  background: var(--paper-2);
}

/* ── type scale ───────────────────────────────────────────────────── */
.eyebrow{
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-size: 12px;
  font-weight: 500;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--primary);
}
.eyebrow::before{
  content: "";
  width: 6px; height: 6px;
  border-radius: 50%;
  background: var(--primary);
  box-shadow: 0 0 0 4px rgba(254,44,85,.14);
}
h1, .h1{
  font-size: clamp(40px, 6.4vw, 84px);
  line-height: 1.02;
  font-weight: 600;
  letter-spacing: -0.035em;
  margin: 0;
  text-wrap: balance;
}
h2, .h2{
  font-size: clamp(32px, 4.4vw, 56px);
  line-height: 1.06;
  font-weight: 600;
  letter-spacing: -0.03em;
  margin: 0;
  text-wrap: balance;
}
h3, .h3{
  font-size: clamp(22px, 2vw, 28px);
  line-height: 1.2;
  font-weight: 600;
  letter-spacing: -0.02em;
  margin: 0;
}
.lede{
  font-size: clamp(17px, 1.5vw, 20px);
  line-height: 1.5;
  color: var(--text-2);
  max-width: 56ch;
  text-wrap: pretty;
  margin: 0;
}
.section--dark .lede{ color: var(--text-on-dark-2); }
.muted{ color: var(--text-2); }
.section--dark .muted{ color: var(--text-on-dark-2); }

/* ── buttons ──────────────────────────────────────────────────────── */
.btn{
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  height: 44px;
  padding: 0 18px;
  border-radius: 999px;
  border: 1px solid transparent;
  font-size: 14.5px;
  font-weight: 500;
  letter-spacing: -0.005em;
  cursor: pointer;
  transition: transform .2s var(--ease-out), background .2s, box-shadow .2s, border-color .2s, color .2s;
  white-space: nowrap;
}
.btn:active{ transform: translateY(1px); }
.btn--primary{
  background: var(--primary);
  color: #fff;
  position: relative;
  overflow: hidden;
  box-shadow: 0 1px 0 rgba(255,255,255,.18) inset, 0 8px 24px rgba(254,44,85,.28);
}
.btn--primary:hover{
  box-shadow: 0 1px 0 rgba(255,255,255,.18) inset, 0 12px 32px rgba(254,44,85,.42);
}
.btn--primary::after{
  content: "";
  position: absolute;
  top: 0; left: -120%;
  width: 60%; height: 100%;
  background: linear-gradient(100deg, transparent, rgba(255,255,255,.32), transparent);
  transition: left .65s var(--ease-out);
}
.btn--primary:hover::after{ left: 130%; }
.btn--ghost{
  background: transparent;
  color: var(--text);
  border-color: var(--line-strong);
}
.btn--ghost:hover{ background: rgba(13,15,20,.04); }
.section--dark .btn--ghost{
  color: var(--text-on-dark);
  border-color: var(--line-dark-strong);
}
.section--dark .btn--ghost:hover{ background: rgba(255,255,255,.06); }
.btn--glass{
  background: rgba(255,255,255,.12);
  color: #fff;
  border-color: rgba(255,255,255,.4);
  -webkit-backdrop-filter: blur(8px);
  backdrop-filter: blur(8px);
}
.btn--glass:hover{ background: rgba(255,255,255,.2); border-color: rgba(255,255,255,.6); }
.btn--lg{ height: 52px; padding: 0 24px; font-size: 15.5px; }
.btn--sm{ height: 36px; padding: 0 14px; font-size: 13.5px; }

/* ── card ─────────────────────────────────────────────────────────── */
.card{
  background: var(--paper);
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-sm);
  transition: transform .35s var(--ease-out), box-shadow .35s var(--ease-out), border-color .35s;
}
.card:hover{
  transform: translateY(-4px);
  box-shadow: var(--shadow-lg);
  border-color: var(--line-strong);
}
.section--dark .card{
  background: var(--ink-2);
  border-color: var(--line-dark);
  box-shadow: 0 1px 0 rgba(255,255,255,.04) inset, 0 24px 48px rgba(0,0,0,.4);
}
.section--dark .card:hover{ border-color: var(--line-dark-strong); }

/* ── reveal on scroll ─────────────────────────────────────────────── */
.reveal{
  opacity: 0;
  transform: translateY(24px);
  transition: opacity .8s var(--ease-out), transform .8s var(--ease-out);
}
.reveal.is-visible{
  opacity: 1;
  transform: translateY(0);
}
.reveal--3d{
  transform: perspective(900px) translateY(40px) rotateX(8deg) scale(0.96);
  transform-origin: center bottom;
  transition: opacity .9s cubic-bezier(.16,1,.3,1), transform .9s cubic-bezier(.16,1,.3,1);
}
.reveal--3d.is-visible{
  transform: perspective(900px) translateY(0) rotateX(0deg) scale(1);
}
@media (max-width: 720px){
  .reveal--zoom{
    transform: scale(0.82) translateY(16px);
    transition: opacity 1.1s cubic-bezier(.16,1,.3,1), transform 1.1s cubic-bezier(.16,1,.3,1);
  }
  .reveal--zoom.is-visible{
    transform: scale(1) translateY(0);
  }
}
.reveal[data-stagger="1"]{ transition-delay: .08s; }
.reveal[data-stagger="2"]{ transition-delay: .16s; }
.reveal[data-stagger="3"]{ transition-delay: .24s; }
.reveal[data-stagger="4"]{ transition-delay: .32s; }
.reveal[data-stagger="5"]{ transition-delay: .4s; }
.reveal[data-stagger="6"]{ transition-delay: .48s; }

/* ── badges ───────────────────────────────────────────────────────── */
.badge{
  display: inline-flex;
  align-items: center;
  gap: 6px;
  height: 26px;
  padding: 0 10px;
  border-radius: 999px;
  font-size: 12px;
  font-weight: 500;
  background: rgba(254,44,85,.08);
  color: var(--primary);
  border: 1px solid rgba(254,44,85,.16);
}
.section--dark .badge{
  background: rgba(254,44,85,.14);
  border-color: rgba(254,44,85,.32);
}
.badge--neutral{
  background: rgba(13,15,20,.04);
  color: var(--text);
  border-color: var(--line);
}
.section--dark .badge--neutral{
  background: rgba(255,255,255,.06);
  color: var(--text-on-dark);
  border-color: var(--line-dark);
}

/* ── scoped utilities ─────────────────────────────────────────────── */
.grid{ display: grid; gap: 24px; }
.flex{ display: flex; }
.center{ display: flex; align-items: center; justify-content: center; }
.row{ display: flex; align-items: center; gap: 12px; flex-wrap: wrap; }
.stack{ display: flex; flex-direction: column; }
.gap-4{ gap: 4px; } .gap-6{ gap: 6px; } .gap-8{ gap: 8px; }
.gap-12{ gap: 12px; } .gap-16{ gap: 16px; } .gap-24{ gap: 24px; }

/* ── focus visible ─────────────────────────────────────────────────── */
:focus-visible{
  outline: 2px solid var(--primary);
  outline-offset: 3px;
  border-radius: 6px;
}
