/* Protocol landing — base styles */
* { box-sizing: border-box; }
html, body { margin: 0; padding: 0; }

html {
  background: #000;
  color: #fafafa;
  font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Helvetica Neue', sans-serif;
  font-feature-settings: 'cv11', 'ss01', 'ss03';
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  scroll-behavior: smooth;
}

body {
  background: #000;
  color: #fafafa;
  overflow-x: hidden;
}

::selection { background: #00ff88; color: #000; }

:root {
  --bg: #000;
  --fg: #fafafa;
  --fg-dim: oklch(0.72 0.005 240);
  --fg-muted: oklch(0.52 0.005 240);
  --fg-faint: oklch(0.32 0.005 240);
  --line: oklch(0.22 0.005 240);
  --line-soft: oklch(0.16 0.005 240);
  --accent: #00ff88;
  --accent-dim: oklch(0.78 0.18 155);
  --ease-out: cubic-bezier(0.22, 1, 0.36, 1);
  --ease-out-tight: cubic-bezier(0.16, 1, 0.3, 1);
}

/* Type scale */
.display-xl {
  font-size: clamp(48px, 8.5vw, 112px);
  line-height: 0.94;
  letter-spacing: -0.04em;
  font-weight: 500;
}
.display-lg {
  font-size: clamp(40px, 6.4vw, 84px);
  line-height: 0.98;
  letter-spacing: -0.035em;
  font-weight: 500;
}
.display-md {
  font-size: clamp(32px, 4.6vw, 60px);
  line-height: 1.04;
  letter-spacing: -0.03em;
  font-weight: 500;
}
.eyebrow {
  font-size: 12px;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  font-weight: 500;
  color: var(--accent);
  font-feature-settings: 'tnum';
}
.body-lg {
  font-size: clamp(18px, 1.5vw, 22px);
  line-height: 1.5;
  letter-spacing: -0.01em;
  color: var(--fg-dim);
  font-weight: 400;
}
.body-md {
  font-size: 16px;
  line-height: 1.55;
  color: var(--fg-dim);
}
.body-sm {
  font-size: 14px;
  line-height: 1.5;
  color: var(--fg-muted);
}
.mono {
  font-family: 'JetBrains Mono', ui-monospace, SFMono-Regular, Menlo, monospace;
  font-feature-settings: 'tnum', 'zero';
}

/* Buttons */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  padding: 14px 22px;
  border-radius: 999px;
  font-size: 15px;
  font-weight: 500;
  letter-spacing: -0.005em;
  transition: transform 0.4s var(--ease-out), background 0.3s, color 0.3s, border-color 0.3s;
  cursor: pointer;
  border: 1px solid transparent;
  text-decoration: none;
  user-select: none;
  white-space: nowrap;
}
.btn-primary {
  background: var(--accent);
  color: #000;
}
.btn-primary:hover {
  background: #fff;
  transform: translateY(-1px);
}
.btn-ghost {
  background: transparent;
  color: var(--fg);
  border-color: var(--line);
}
.btn-ghost:hover {
  border-color: var(--fg);
  background: rgba(255,255,255,0.04);
}
.btn-arrow {
  display: inline-block;
  transition: transform 0.4s var(--ease-out);
}
.btn:hover .btn-arrow { transform: translateX(3px); }

/* Scroll reveals */
.reveal {
  opacity: 0;
  transform: translateY(24px);
  transition: opacity 1s var(--ease-out), transform 1s var(--ease-out);
}
.reveal.in {
  opacity: 1;
  transform: translateY(0);
}

/* Word stagger */
.word-stagger > span {
  display: inline-block;
  opacity: 0;
  transform: translateY(0.5em);
  transition: opacity 0.7s var(--ease-out), transform 0.7s var(--ease-out);
}
.word-stagger.in > span {
  opacity: 1;
  transform: translateY(0);
}

/* Section frame */
.section {
  position: relative;
  width: 100%;
  padding: 12vh 0;
}
.container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 40px;
}
@media (max-width: 720px) {
  .container { padding: 0 22px; }
  .section { padding: 10vh 0; }
}

/* Hairline */
.hairline { height: 1px; background: var(--line-soft); width: 100%; }

/* Grain — extremely subtle */
.grain::before {
  content: '';
  position: fixed;
  inset: 0;
  pointer-events: none;
  z-index: 1;
  opacity: 0.03;
  mix-blend-mode: overlay;
  background-image: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' width='160' height='160'><filter id='n'><feTurbulence type='fractalNoise' baseFrequency='0.9' numOctaves='2' stitchTiles='stitch'/></filter><rect width='100%25' height='100%25' filter='url(%23n)' opacity='0.6'/></svg>");
}

/* Sticky / scroll-driven helpers */
.sticky-stage {
  position: sticky;
  top: 0;
  height: 100vh;
  width: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
}

/* Nav */
.nav {
  position: fixed;
  top: 0; left: 0; right: 0;
  z-index: 50;
  padding: 18px 40px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  background: linear-gradient(180deg, rgba(0,0,0,0.7), rgba(0,0,0,0));
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  transition: background 0.3s;
}
.nav-logo {
  display: flex;
  align-items: center;
  gap: 10px;
  font-weight: 600;
  letter-spacing: -0.01em;
  font-size: 17px;
}
.nav-dot {
  width: 8px; height: 8px;
  border-radius: 50%;
  background: var(--accent);
  box-shadow: 0 0 14px var(--accent);
}
.nav-links { display: flex; gap: 28px; align-items: center; }
.nav-link {
  color: var(--fg-dim);
  font-size: 14px;
  text-decoration: none;
  transition: color 0.2s;
}
.nav-link:hover { color: var(--fg); }
@media (max-width: 720px) {
  .nav { padding: 14px 22px; }
  .nav-links .desktop-only { display: none; }
}

/* Footer */
.footer {
  border-top: 1px solid var(--line-soft);
  padding: 50px 0 40px;
  color: var(--fg-muted);
  font-size: 13px;
}

/* Inputs */
.email-input {
  flex: 1;
  background: transparent;
  border: none;
  outline: none;
  color: var(--fg);
  font-size: 17px;
  font-family: inherit;
  padding: 18px 0;
  letter-spacing: -0.01em;
}
.email-input::placeholder { color: var(--fg-muted); }

.email-form {
  display: flex;
  align-items: center;
  gap: 14px;
  border-bottom: 1px solid var(--line);
  transition: border-color 0.4s var(--ease-out);
}
.email-form:focus-within { border-color: var(--accent); }

/* Tags / chips */
.chip {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 10px 16px;
  border-radius: 999px;
  border: 1px solid var(--line);
  color: var(--fg-dim);
  font-size: 14px;
  letter-spacing: -0.005em;
  transition: all 0.4s var(--ease-out);
  background: rgba(255,255,255,0.01);
}
.chip:hover {
  border-color: var(--accent);
  color: var(--fg);
  background: rgba(0, 255, 136, 0.05);
}
.chip-x {
  border-color: var(--line-soft);
  color: var(--fg-muted);
  text-decoration: line-through;
  text-decoration-color: var(--fg-faint);
}

/* Cards */
.card {
  border: 1px solid var(--line-soft);
  border-radius: 18px;
  padding: 26px;
  background: linear-gradient(180deg, rgba(255,255,255,0.015), rgba(255,255,255,0));
}

/* Numerical readout */
.day-counter {
  font-feature-settings: 'tnum';
  font-variant-numeric: tabular-nums;
}

/* Hero gradient layer */
.hero-aurora {
  position: absolute;
  inset: 0;
  pointer-events: none;
  background:
    radial-gradient(ellipse 60% 40% at 50% 110%, rgba(0,255,136,0.18), transparent 60%),
    radial-gradient(ellipse 80% 50% at 50% 130%, rgba(0,255,136,0.08), transparent 70%);
  filter: blur(10px);
}

/* Reduce motion */
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    animation-duration: 0.01ms !important;
    transition-duration: 0.01ms !important;
  }
}
