/* ============================================================
   Ape × Uber — Pitch Microsite
   Uber-first design system: restraint, monochrome, whitespace.
   ============================================================ */

:root {
  /* Core palette — Uber leans on pure mono */
  --ink:       #000000;
  --ink-2:     #0a0a0a;
  --ink-3:     #141414;
  --ink-4:     #1c1c1c;
  --paper:     #ffffff;
  --paper-2:   #f6f6f6;
  --paper-3:   #ececec;

  /* Lines / strokes */
  --line:        rgba(255,255,255,0.10);
  --line-soft:   rgba(255,255,255,0.06);
  --line-strong: rgba(255,255,255,0.18);
  --line-ink:    rgba(0,0,0,0.10);
  --line-ink-2:  rgba(0,0,0,0.18);

  /* Text on dark */
  --t-1:  #ffffff;
  --t-2:  rgba(255,255,255,0.78);
  --t-3:  rgba(255,255,255,0.56);
  --t-4:  rgba(255,255,255,0.36);

  /* Text on light */
  --tk-1: #000000;
  --tk-2: rgba(0,0,0,0.74);
  --tk-3: rgba(0,0,0,0.52);
  --tk-4: rgba(0,0,0,0.36);

  /* Subtle product accents — used sparingly, per funnel */
  --uber-one-gold:   #d4b370;   /* champagne */
  --uber-eats-green: #06c167;
  --uber-cash-blue:  #5fb3ff;   /* status / live indicator */

  /* Type stack — Uber Move / Sans fallback */
  --f-display: "Uber Move", "Söhne", "Inter", system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
  --f-body:    "Uber Move Text", "Söhne", "Inter", system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
  --f-mono:    "JetBrains Mono", ui-monospace, SFMono-Regular, Menlo, monospace;

  /* Rhythm */
  --r-1: 4px;
  --r-2: 8px;
  --r-3: 12px;
  --r-4: 16px;
  --r-5: 24px;

  /* Container */
  --maxw: 1280px;
  --pad-x: clamp(20px, 4vw, 56px);
  --sect-y: clamp(80px, 10vw, 140px);
}

/* ---------- reset ---------- */
*, *::before, *::after { box-sizing: border-box; }
html, body { margin: 0; padding: 0; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
body {
  font-family: var(--f-body);
  background: var(--ink);
  color: var(--t-1);
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  font-feature-settings: "ss01", "cv11";
  line-height: 1.5;
  text-rendering: optimizeLegibility;
}
img, svg, video { display: block; max-width: 100%; }
button { font-family: inherit; cursor: pointer; }
a { color: inherit; text-decoration: none; }
::selection { background: #fff; color: #000; }

/* ---------- typography ---------- */
.h-display {
  font-family: var(--f-display);
  font-weight: 700;
  letter-spacing: -0.035em;
  line-height: 0.95;
  font-size: clamp(48px, 8vw, 124px);
  text-wrap: balance;
}
.h-1 {
  font-family: var(--f-display);
  font-weight: 700;
  letter-spacing: -0.028em;
  line-height: 0.98;
  font-size: clamp(40px, 6vw, 84px);
  text-wrap: balance;
}
.h-2 {
  font-family: var(--f-display);
  font-weight: 600;
  letter-spacing: -0.022em;
  line-height: 1.02;
  font-size: clamp(30px, 4vw, 56px);
  text-wrap: balance;
}
.h-3 {
  font-family: var(--f-display);
  font-weight: 600;
  letter-spacing: -0.015em;
  line-height: 1.1;
  font-size: clamp(22px, 2.4vw, 32px);
}
.body-lg {
  font-size: clamp(17px, 1.4vw, 21px);
  line-height: 1.45;
  color: var(--t-2);
  text-wrap: pretty;
}
.body {
  font-size: 16px;
  line-height: 1.55;
  color: var(--t-2);
}
.body-sm {
  font-size: 14px;
  line-height: 1.5;
  color: var(--t-3);
}
.mono {
  font-family: var(--f-mono);
  font-feature-settings: "ss01";
  letter-spacing: 0.02em;
}
.eyebrow {
  font-family: var(--f-mono);
  font-size: 11px;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--t-3);
  display: inline-flex;
  align-items: center;
  gap: 8px;
}
.eyebrow::before {
  content: "";
  display: inline-block;
  width: 8px; height: 1px;
  background: currentColor;
  opacity: 0.6;
}

/* ---------- layout primitives ---------- */
.container { max-width: var(--maxw); margin: 0 auto; padding: 0 var(--pad-x); }
.section { padding: var(--sect-y) 0; position: relative; }
.section--light { background: var(--paper); color: var(--tk-1); }
.section--light .body-lg { color: var(--tk-2); }
.section--light .body, .section--light .body-sm { color: var(--tk-2); }
.section--light .eyebrow { color: var(--tk-3); }
.section--light .eyebrow::before { background: currentColor; }
.divider { height: 1px; background: var(--line); width: 100%; }
.divider--ink { background: var(--line-ink); }

/* ---------- buttons ---------- */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  height: 48px;
  padding: 0 22px;
  border-radius: 999px;
  font-family: var(--f-display);
  font-weight: 500;
  font-size: 15px;
  letter-spacing: -0.005em;
  border: 1px solid transparent;
  transition: background 160ms ease, color 160ms ease, border-color 160ms ease, transform 160ms ease;
  white-space: nowrap;
}
.btn-primary {
  background: var(--paper);
  color: var(--ink);
}
.btn-primary:hover { background: #e9e9e9; }
.btn-primary--dark {
  background: var(--ink);
  color: var(--paper);
}
.btn-primary--dark:hover { background: #1a1a1a; }
.btn-ghost {
  background: transparent;
  color: var(--t-1);
  border-color: var(--line-strong);
}
.btn-ghost:hover { background: rgba(255,255,255,0.06); }
.btn-ghost--ink {
  color: var(--ink);
  border-color: var(--line-ink-2);
}
.btn-ghost--ink:hover { background: rgba(0,0,0,0.04); }
.btn .arr { width: 14px; height: 14px; }

/* ---------- nav ---------- */
.nav {
  position: fixed;
  top: 0; left: 0; right: 0;
  z-index: 50;
  backdrop-filter: blur(18px);
  -webkit-backdrop-filter: blur(18px);
  background: rgba(0,0,0,0.55);
  border-bottom: 1px solid var(--line);
}
.nav-inner {
  height: 64px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  max-width: var(--maxw);
  margin: 0 auto;
  padding: 0 var(--pad-x);
}
.nav-brand {
  display: flex;
  align-items: center;
  gap: 14px;
}
.nav-uber {
  font-family: var(--f-display);
  font-weight: 700;
  font-size: 22px;
  letter-spacing: -0.04em;
  color: var(--t-1);
}
.nav-x {
  color: var(--t-4);
  font-family: var(--f-mono);
  font-size: 12px;
}
.nav-ape {
  font-family: var(--f-display);
  font-weight: 500;
  font-size: 14px;
  color: var(--t-2);
  letter-spacing: -0.005em;
}
.nav-links {
  display: flex;
  align-items: center;
  gap: 28px;
}
.nav-links a {
  font-size: 13px;
  color: var(--t-3);
  transition: color 160ms ease;
}
.nav-links a:hover { color: var(--t-1); }
@media (max-width: 760px) {
  .nav-links a { display: none; }
}

/* ---------- shared "card" idiom ---------- */
.card {
  background: var(--ink-3);
  border: 1px solid var(--line);
  border-radius: 16px;
  padding: 28px;
}
.card-light {
  background: var(--paper);
  border: 1px solid var(--line-ink);
  border-radius: 16px;
  padding: 28px;
  color: var(--ink);
}

/* ---------- live indicator ---------- */
.live-dot {
  display: inline-block;
  width: 7px; height: 7px;
  border-radius: 50%;
  background: var(--uber-cash-blue);
  box-shadow: 0 0 0 0 rgba(95,179,255,0.6);
  animation: pulse 1.8s ease-out infinite;
  margin-right: 8px;
  vertical-align: middle;
}
@keyframes pulse {
  0%   { box-shadow: 0 0 0 0 rgba(95,179,255,0.6); }
  70%  { box-shadow: 0 0 0 8px rgba(95,179,255,0); }
  100% { box-shadow: 0 0 0 0 rgba(95,179,255,0); }
}

/* ---------- reveal-on-scroll (subtle) ---------- */
.reveal {
  opacity: 0;
  transform: translateY(14px);
  transition: opacity 600ms ease, transform 600ms ease;
}
.reveal.in {
  opacity: 1;
  transform: none;
}

/* ---------- helpers ---------- */
.grid { display: grid; gap: 24px; }
.flex { display: flex; }
.stack-12 > * + * { margin-top: 12px; }
.stack-16 > * + * { margin-top: 16px; }
.stack-20 > * + * { margin-top: 20px; }
.stack-24 > * + * { margin-top: 24px; }
.stack-32 > * + * { margin-top: 32px; }
.stack-48 > * + * { margin-top: 48px; }
.muted { color: var(--t-3); }
.muted-ink { color: var(--tk-3); }
.upper { text-transform: uppercase; letter-spacing: 0.04em; }

/* ---------- footer ---------- */
.foot {
  padding: 48px 0 64px;
  border-top: 1px solid var(--line);
  color: var(--t-4);
  font-size: 12px;
  font-family: var(--f-mono);
  letter-spacing: 0.04em;
}
.foot-row {
  display: flex;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 16px;
}
