:root {
  --bg: #ffffff;
  --text: #111111;
  --soft-text: #1d1d1f;
  --muted: #6e6e73;
  --light-muted: #8e8e93;
  --line: rgba(0,0,0,.12);
  --accent: #0a84ff;
  --accent-2: #7c3aed;
  --glass: rgba(255,255,255,.68);
  --shadow: 0 30px 90px rgba(0,0,0,.10);
}

@media (prefers-color-scheme: dark) {
  :root {
    --bg: #050505;
    --text: #f5f5f7;
    --soft-text: #f5f5f7;
    --muted: #a1a1aa;
    --light-muted: #8e8e93;
    --line: rgba(255,255,255,.16);
    --glass: rgba(18,18,20,.62);
    --shadow: 0 30px 90px rgba(0,0,0,.36);
  }
}

* { box-sizing: border-box; }

html, body {
  margin: 0;
  min-height: 100%;
  background: var(--bg);
  color: var(--text);
  font-family: -apple-system, BlinkMacSystemFont, "SF Pro Display", "SF Pro Text", "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
}

body { overflow-x: hidden; }

.page {
  min-height: 100vh;
  display: grid;
  grid-template-rows: 1fr auto;
  position: relative;
  overflow: hidden;
  background:
    radial-gradient(circle at 50% -10%, rgba(10,132,255,.13), transparent 36%),
    radial-gradient(circle at 85% 20%, rgba(124,58,237,.08), transparent 26%),
    linear-gradient(180deg, var(--bg) 0%, color-mix(in srgb, var(--bg), #0a84ff 3%) 100%);
}

.ambient {
  position: fixed;
  inset: -30%;
  z-index: 0;
  background:
    radial-gradient(circle at 30% 25%, rgba(10,132,255,.18), transparent 18%),
    radial-gradient(circle at 70% 30%, rgba(124,58,237,.13), transparent 20%),
    radial-gradient(circle at 50% 70%, rgba(10,132,255,.08), transparent 22%);
  filter: blur(24px);
  animation: float 16s ease-in-out infinite alternate;
  pointer-events: none;
}

.network {
  position: fixed;
  inset: 0;
  z-index: 0;
  opacity: .28;
  pointer-events: none;
}

@keyframes float {
  0% { transform: translate3d(-1%, -1%, 0) scale(1); opacity: .9; }
  100% { transform: translate3d(1.5%, 1.5%, 0) scale(1.04); opacity: .72; }
}

.intro {
  position: fixed;
  inset: 0;
  z-index: 50;
  display: grid;
  place-items: center;
  background: var(--bg);
  animation: introOut .9s ease 1.55s forwards;
}

.intro-word {
  font-size: clamp(54px, 10vw, 148px);
  font-weight: 840;
  letter-spacing: -.07em;
  opacity: 0;
  transform: translateY(12px);
  animation: introWord 1.35s cubic-bezier(.2,.8,.2,1) forwards;
}

@keyframes introWord {
  22% { opacity: 1; transform: translateY(0); }
  78% { opacity: 1; transform: translateY(0); }
  100% { opacity: 0; transform: translateY(-10px); }
}

@keyframes introOut {
  to { opacity: 0; visibility: hidden; pointer-events: none; }
}

.bit {
  position: fixed;
  top: 22px;
  right: 26px;
  z-index: 2;
  border: 0;
  background: transparent;
  color: var(--light-muted);
  font-size: 12px;
  letter-spacing: .12em;
  cursor: pointer;
  opacity: .56;
}

.bit:hover { opacity: 1; }

.hero {
  position: relative;
  z-index: 1;
  width: min(1160px, calc(100vw - 40px));
  margin: 0 auto;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  min-height: calc(100vh - 84px);
  text-align: center;
  padding: 80px 0 52px;
}

.eyebrow {
  margin: 0 0 18px;
  color: var(--accent);
  font-size: clamp(13px, 1.2vw, 17px);
  font-weight: 760;
  letter-spacing: .22em;
  text-transform: uppercase;
}

.title {
  margin: 0;
  font-size: clamp(52px, 10.5vw, 144px);
  line-height: .89;
  letter-spacing: -.075em;
  font-weight: 860;
  cursor: pointer;
  user-select: none;
  background: linear-gradient(100deg, var(--text), color-mix(in srgb, var(--text), var(--accent) 28%));
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
  transform-style: preserve-3d;
}

.reg {
  color: var(--light-muted);
  font-size: .18em;
  vertical-align: super;
  margin-left: .07em;
  letter-spacing: 0;
  font-weight: 600;
  -webkit-text-fill-color: var(--light-muted);
}

.inline-reg {
  font-size: .7em;
  vertical-align: super;
}

.title:focus { outline: none; }

.subtitle {
  margin: 28px 0 0;
  color: var(--soft-text);
  font-size: clamp(24px, 3.2vw, 44px);
  line-height: 1.08;
  font-weight: 690;
  letter-spacing: -.04em;
}

.pillars {
  margin-top: 34px;
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  justify-content: center;
}

.pillars span {
  padding: 12px 16px;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: var(--glass);
  backdrop-filter: blur(18px);
  color: var(--soft-text);
  font-size: clamp(14px, 1.35vw, 18px);
  box-shadow: 0 10px 40px rgba(0,0,0,.04);
}

.manifesto {
  margin-top: 31px;
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 14px;
  color: var(--muted);
  font-size: clamp(17px, 1.7vw, 22px);
  font-weight: 560;
}

.quote {
  margin: 42px 0 0;
  font-size: clamp(21px, 2.5vw, 36px);
  line-height: 1.16;
  font-weight: 670;
  letter-spacing: -.035em;
}

.signature {
  margin-top: 22px;
  display: flex;
  flex-direction: column;
  gap: 4px;
  color: var(--muted);
  font-size: 15px;
}

.muted { color: var(--light-muted); }

.actions {
  margin-top: 34px;
  display: flex;
  gap: 12px;
  flex-wrap: wrap;
  justify-content: center;
}

.button, .ghost {
  border-radius: 999px;
  padding: 13px 22px;
  font-weight: 750;
  font-size: 15px;
  letter-spacing: .01em;
  cursor: pointer;
  transition: transform .18s ease, box-shadow .18s ease;
}

.button {
  border: 0;
  background: var(--text);
  color: var(--bg);
}

.ghost {
  border: 1px solid var(--line);
  background: var(--glass);
  color: var(--text);
  text-decoration: none;
  backdrop-filter: blur(18px);
}

.button:hover, .ghost:hover {
  transform: translateY(-2px);
  box-shadow: 0 18px 40px rgba(0,0,0,.14);
}

.footer {
  position: relative;
  z-index: 1;
  width: min(1160px, calc(100vw - 40px));
  margin: 0 auto;
  padding: 0 0 28px;
  display: flex;
  justify-content: space-between;
  gap: 18px;
  color: var(--light-muted);
  font-size: 13px;
}

.footer span:last-child { cursor: pointer; }

.reveal {
  opacity: 0;
  transform: translateY(18px);
  animation: rise .9s cubic-bezier(.2,.8,.2,1) forwards;
}

.r1 { animation-delay: 1.72s; }
.r2 { animation-delay: 1.92s; }
.r3 { animation-delay: 2.14s; }
.r4 { animation-delay: 2.38s; }
.r5 { animation-delay: 2.62s; }
.r6 { animation-delay: 2.84s; }
.r7 { animation-delay: 3.03s; }
.r8 { animation-delay: 3.22s; }
/* r9 reserved for future sections */

@keyframes rise {
  to { opacity: 1; transform: translateY(0); }
}

.easter {
  position: fixed;
  inset: 0;
  display: grid;
  place-items: center;
  background: rgba(255,255,255,.72);
  backdrop-filter: blur(28px);
  z-index: 20;
  opacity: 0;
  pointer-events: none;
  transition: opacity .32s ease;
}

@media (prefers-color-scheme: dark) {
  .easter { background: rgba(0,0,0,.62); }
}

.easter.visible {
  opacity: 1;
  pointer-events: auto;
}

.easter-card {
  width: min(720px, calc(100vw - 48px));
  padding: 46px 36px;
  border: 1px solid var(--line);
  border-radius: 34px;
  background: var(--glass);
  box-shadow: var(--shadow);
  text-align: center;
  transform: scale(.96) translateY(12px);
  transition: transform .35s cubic-bezier(.2,.8,.2,1);
  backdrop-filter: blur(24px);
}

.easter.visible .easter-card {
  transform: scale(1) translateY(0);
}

.easter-card .small {
  margin: 0 0 8px;
  color: var(--accent);
  text-transform: uppercase;
  letter-spacing: .18em;
  font-size: 13px;
  font-weight: 820;
}

.easter-card .big {
  margin: 0;
  font-size: clamp(38px, 6.6vw, 78px);
  font-weight: 860;
  letter-spacing: -.065em;
}

.easter-card .medium {
  margin: 10px 0 0;
  font-size: clamp(24px, 3.8vw, 42px);
  font-weight: 680;
  letter-spacing: -.04em;
}

.easter-card .tiny {
  margin: 26px 0 0;
  color: var(--muted);
  font-size: 16px;
  line-height: 1.55;
}

.stacked {
  font-size: clamp(22px, 3vw, 34px) !important;
  line-height: 1.35 !important;
  color: var(--text) !important;
}

.dark, .reader {
  background:
    radial-gradient(circle at 20% 30%, rgba(10,132,255,.20), transparent 28%),
    radial-gradient(circle at 80% 70%, rgba(124,58,237,.18), transparent 30%),
    rgba(0,0,0,.84);
}

.trailer-card {
  color: #fff;
  background: rgba(12,12,16,.72);
  border-color: rgba(255,255,255,.14);
}

.trailer-card .tiny { color: rgba(255,255,255,.70); }

.cinematic {
  background: #030303;
  color: #fff;
  overflow: hidden;
}

.blade {
  width: min(980px, calc(100vw - 44px));
  text-align: center;
  font-weight: 620;
  letter-spacing: -.035em;
}

.blade p {
  margin: 0 0 28px;
  font-size: clamp(22px, 3.4vw, 48px);
  line-height: 1.1;
  opacity: 0;
  transform: translateY(16px);
}

.cinematic.visible .blade p {
  animation: bladeLine 1.2s ease forwards;
}

.cinematic.visible .blade p:nth-child(1) { animation-delay: .2s; }
.cinematic.visible .blade p:nth-child(2) { animation-delay: 1.7s; }
.cinematic.visible .blade p:nth-child(3) { animation-delay: 3.7s; }
.cinematic.visible .blade p:nth-child(4) { animation-delay: 5.4s; }
.cinematic.visible .blade p:nth-child(5) { animation-delay: 7.2s; }
.cinematic.visible .blade p:nth-child(6) { animation-delay: 8.5s; }
.cinematic.visible .blade p:nth-child(7) { animation-delay: 9.8s; }
.cinematic.visible .blade p:nth-child(8) { animation-delay: 11.3s; }
.cinematic.visible .blade p:nth-child(9) { animation-delay: 12.7s; }
.cinematic.visible .blade p:nth-child(10) { animation-delay: 15.0s; }
.cinematic.visible .blade p:nth-child(11) { animation-delay: 16.4s; }

.blade-sign {
  font-size: clamp(18px, 2.2vw, 30px) !important;
  color: rgba(255,255,255,.85);
}

.blade-sign span {
  color: rgba(255,255,255,.55);
  font-style: italic;
}

@keyframes bladeLine {
  to { opacity: 1; transform: translateY(0); }
}

.toast {
  position: fixed;
  left: 50%;
  bottom: 28px;
  transform: translateX(-50%) translateY(30px);
  z-index: 30;
  opacity: 0;
  pointer-events: none;
  padding: 12px 16px;
  border-radius: 999px;
  background: var(--text);
  color: var(--bg);
  font-size: 14px;
  font-weight: 700;
  transition: opacity .24s ease, transform .24s ease;
}

.toast.visible {
  opacity: 1;
  transform: translateX(-50%) translateY(0);
}

@media (max-width: 720px) {
  .hero {
    width: min(100% - 30px, 1160px);
    padding-top: 54px;
  }

  .pillars, .actions {
    flex-direction: column;
    width: 100%;
  }

  .pillars span, .button, .ghost { width: 100%; }

  .footer {
    flex-direction: column;
    align-items: center;
    text-align: center;
  }

  .bit {
    top: 14px;
    right: 16px;
  }
}

@media (prefers-reduced-motion: reduce) {
  .ambient, .network, .intro, .intro-word, .reveal {
    animation: none;
    opacity: 1;
    transform: none;
  }

  .intro { display: none; }

  .button, .ghost, .easter, .easter-card, .toast {
    transition: none;
  }
}
