/* =========================================================
   REE° — Holding Page Tokens
   ========================================================= */
:root {
  /* Core palette, sampled from the Figma dark builder screens */
  --bg-0: #0a0a0a;
  --bg-1: #111111;
  --bg-2: #171717;
  --bg-3: #1f1f1f;
  --line: rgba(255, 255, 255, 0.08);
  --line-strong: rgba(255, 255, 255, 0.16);

  --ink-0: #ffffff;
  --ink-1: rgba(255, 255, 255, 0.86);
  --ink-2: rgba(255, 255, 255, 0.62);
  --ink-3: rgba(255, 255, 255, 0.42);

  /* Brand accents */
  --lime: #d4ff3a;      /* primary CTA yellow-lime from figma */
  --lime-soft: #e7ff7a;
  --mint: #9fe870;      /* secondary green from figma */
  --mint-deep: #6ec544;
  --forest: #0e2a12;    /* deep green section */
  --forest-2: #0a1f0d;

  /* Light mode surface for the optional toggle */
  --paper: #f4f1ea;
  --paper-2: #ece7dc;

  /* Type */
  --font-display: "Space Grotesk", "Neue Haas Grotesk", ui-sans-serif, system-ui, -apple-system, sans-serif;
  --font-body: "Inter", ui-sans-serif, system-ui, -apple-system, sans-serif;
  --font-mono: "JetBrains Mono", ui-monospace, SFMono-Regular, Menlo, monospace;

  /* Radii */
  --r-sm: 8px;
  --r-md: 14px;
  --r-lg: 22px;
  --r-xl: 32px;

  /* Easing */
  --ease-out: cubic-bezier(0.22, 1, 0.36, 1);
}

* { box-sizing: border-box; }
html, body { margin: 0; padding: 0; }
html { scroll-behavior: smooth; }
body {
  background: var(--bg-0);
  color: var(--ink-0);
  font-family: var(--font-body);
  font-size: 16px;
  line-height: 1.5;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
  overflow-x: hidden;
}
img { max-width: 100%; display: block; }
a { color: inherit; text-decoration: none; }
button { font: inherit; color: inherit; background: none; border: 0; cursor: pointer; }
input, textarea, select { font: inherit; color: inherit; }

.container {
  width: 100%;
  max-width: 1280px;
  margin: 0 auto;
  padding: 0 32px;
}
@media (max-width: 720px) { .container { padding: 0 20px; } }

/* Utility */
.mono { font-family: var(--font-mono); letter-spacing: 0.02em; }
.eyebrow {
  font-family: var(--font-mono);
  font-size: 12px;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--ink-2);
  display: inline-flex;
  align-items: center;
  gap: 10px;
}
.eyebrow::before {
  content: "";
  width: 6px; height: 6px;
  border-radius: 50%;
  background: var(--mint);
  box-shadow: 0 0 10px var(--mint);
  animation: pulse 2.4s var(--ease-out) infinite;
}
@keyframes pulse {
  0%, 100% { opacity: 1; transform: scale(1); }
  50% { opacity: 0.55; transform: scale(0.85); }
}

/* Headline type */
.display {
  font-family: var(--font-display);
  font-weight: 700;
  letter-spacing: -0.03em;
  line-height: 0.94;
  text-transform: uppercase;
}
.display-xl { font-size: clamp(52px, 9.2vw, 148px); }
.display-lg { font-size: clamp(44px, 6.2vw, 96px); }
.display-md { font-size: clamp(34px, 4.4vw, 64px); }
.display-sm { font-size: clamp(26px, 2.8vw, 40px); letter-spacing: -0.02em; }

.lede {
  font-size: clamp(16px, 1.3vw, 20px);
  line-height: 1.5;
  color: var(--ink-1);
  max-width: 56ch;
}

/* Buttons */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 14px 22px;
  border-radius: 999px;
  font-weight: 600;
  font-size: 15px;
  letter-spacing: -0.01em;
  transition: transform 0.3s var(--ease-out), background 0.3s var(--ease-out), color 0.3s var(--ease-out);
  white-space: nowrap;
}
.btn:hover { transform: translateY(-1px); }
.btn-primary {
  background: var(--lime);
  color: #0a0a0a;
}
.btn-primary:hover { background: var(--lime-soft); }
.btn-ghost {
  color: var(--ink-0);
  border: 1px solid var(--line-strong);
  background: rgba(255,255,255,0.02);
}
.btn-ghost:hover { background: rgba(255,255,255,0.06); }

/* Section rhythm */
section { position: relative; }
.section-pad { padding: clamp(80px, 10vw, 160px) 0; }

/* Reveal on scroll */
.reveal {
  opacity: 0;
  transform: translateY(24px);
  transition: opacity 0.9s var(--ease-out), transform 0.9s var(--ease-out);
}
.reveal.in {
  opacity: 1;
  transform: none;
}
.reveal-stagger > * {
  opacity: 0;
  transform: translateY(18px);
  transition: opacity 0.8s var(--ease-out), transform 0.8s var(--ease-out);
}
.reveal-stagger.in > * { opacity: 1; transform: none; }
.reveal-stagger.in > *:nth-child(1) { transition-delay: 0.02s; }
.reveal-stagger.in > *:nth-child(2) { transition-delay: 0.08s; }
.reveal-stagger.in > *:nth-child(3) { transition-delay: 0.14s; }
.reveal-stagger.in > *:nth-child(4) { transition-delay: 0.20s; }
.reveal-stagger.in > *:nth-child(5) { transition-delay: 0.26s; }
.reveal-stagger.in > *:nth-child(6) { transition-delay: 0.32s; }

/* Scrollbar aesthetics */
::selection { background: var(--lime); color: #0a0a0a; }
