:root {
  --bg: #050506;
  --ink: #f4f2ee;
  --muted: rgba(244, 242, 238, 0.55);
  --faint: rgba(244, 242, 238, 0.12);
  --violet: #7b5cff;
  --cyan: #35e0d8;
  --ember: #ff5b3a;
  --font-display: "Big Shoulders Display", "Arial Narrow", sans-serif;
  --font-body: "Space Grotesk", system-ui, sans-serif;
  --ease: cubic-bezier(0.16, 1, 0.3, 1);
}

* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  background: var(--bg);
  color: var(--ink);
  font-family: var(--font-body);
  line-height: 1.5;
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
  position: relative;
}

/* ---------- Layers ---------- */

.bg-mesh {
  position: fixed;
  inset: -30%;
  z-index: -2;
  background:
    radial-gradient(40% 40% at 20% 25%, rgba(123, 92, 255, 0.55), transparent 60%),
    radial-gradient(35% 35% at 80% 30%, rgba(53, 224, 216, 0.45), transparent 60%),
    radial-gradient(45% 45% at 60% 85%, rgba(255, 91, 58, 0.40), transparent 60%);
  filter: blur(60px) saturate(140%);
  animation: drift 26s var(--ease) infinite alternate;
  will-change: transform;
}

@keyframes drift {
  0%   { transform: translate3d(-4%, -3%, 0) scale(1.05) rotate(0deg); }
  50%  { transform: translate3d(5%, 4%, 0) scale(1.2) rotate(8deg); }
  100% { transform: translate3d(-2%, 6%, 0) scale(1.1) rotate(-6deg); }
}

.glow {
  position: fixed;
  width: 520px;
  height: 520px;
  left: 50%;
  top: 40%;
  transform: translate(-50%, -50%);
  z-index: -1;
  pointer-events: none;
  background: radial-gradient(circle, rgba(123, 92, 255, 0.18), transparent 70%);
  transition: left 0.3s ease-out, top 0.3s ease-out;
  mix-blend-mode: screen;
}

.grain {
  position: fixed;
  inset: 0;
  z-index: 10;
  pointer-events: none;
  opacity: 0.06;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='160' height='160'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.9' numOctaves='3' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
}

/* ---------- Nav ---------- */

.nav {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 20;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 1.5rem clamp(1.25rem, 5vw, 4rem);
  mix-blend-mode: difference;
}

.brand {
  font-family: var(--font-display);
  font-weight: 800;
  letter-spacing: 0.08em;
  font-size: 1.5rem;
  text-decoration: none;
  color: var(--ink);
}

.status {
  display: inline-flex;
  align-items: center;
  gap: 0.55rem;
  font-size: 0.78rem;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--ink);
}

.dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--cyan);
  box-shadow: 0 0 12px var(--cyan);
  animation: pulse 2.2s ease-in-out infinite;
}

@keyframes pulse {
  0%, 100% { opacity: 1; transform: scale(1); }
  50%      { opacity: 0.35; transform: scale(0.7); }
}

/* ---------- Hero ---------- */

.hero {
  min-height: 100svh;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  padding: 6rem clamp(1.25rem, 5vw, 4rem) 3rem;
  position: relative;
}

.eyebrow {
  font-size: 0.8rem;
  letter-spacing: 0.34em;
  text-transform: uppercase;
  color: var(--muted);
  margin-bottom: 1.5rem;
}

.wordmark {
  font-family: var(--font-display);
  font-weight: 800;
  font-size: clamp(5rem, 26vw, 20rem);
  line-height: 0.82;
  letter-spacing: -0.02em;
  background: linear-gradient(180deg, #ffffff 0%, rgba(255, 255, 255, 0.65) 55%, rgba(255, 255, 255, 0.2) 100%);
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
  text-shadow: 0 0 80px rgba(123, 92, 255, 0.25);
}

.lede {
  max-width: 32ch;
  margin-top: 2rem;
  font-size: clamp(1rem, 1.6vw, 1.3rem);
  color: var(--muted);
  font-weight: 400;
}

.scroll-cue {
  position: absolute;
  bottom: 2.5rem;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.75rem;
  color: var(--muted);
  font-size: 0.7rem;
  letter-spacing: 0.24em;
  text-transform: uppercase;
}

.scroll-cue span {
  width: 1px;
  height: 48px;
  background: linear-gradient(var(--ink), transparent);
  animation: descend 2.4s var(--ease) infinite;
}

@keyframes descend {
  0%   { transform: scaleY(0); transform-origin: top; opacity: 1; }
  45%  { transform: scaleY(1); transform-origin: top; opacity: 1; }
  55%  { transform: scaleY(1); transform-origin: bottom; opacity: 1; }
  100% { transform: scaleY(0); transform-origin: bottom; opacity: 0; }
}

/* ---------- Manifesto ---------- */

.manifesto {
  display: flex;
  flex-direction: column;
  gap: clamp(1.5rem, 6vh, 4rem);
  padding: 14vh clamp(1.25rem, 5vw, 4rem);
  max-width: 1100px;
  margin: 0 auto;
  text-align: center;
}

.manifesto .line {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: clamp(2rem, 8vw, 6.5rem);
  line-height: 0.95;
  letter-spacing: -0.01em;
  color: var(--ink);
}

.manifesto .line:nth-child(1) { color: rgba(244, 242, 238, 0.4); }

/* ---------- Pillars ---------- */

.pillars {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: clamp(1.5rem, 3vw, 3rem);
  max-width: 1100px;
  margin: 0 auto;
  padding: 10vh clamp(1.25rem, 5vw, 4rem);
}

.pillar {
  border-top: 1px solid var(--faint);
  padding-top: 1.5rem;
}

.pillar .index {
  display: block;
  font-size: 0.85rem;
  letter-spacing: 0.2em;
  color: var(--cyan);
  margin-bottom: 1rem;
}

.pillar h3 {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: clamp(1.75rem, 3vw, 2.75rem);
  line-height: 1;
  margin-bottom: 1rem;
}

.pillar p {
  color: var(--muted);
  font-size: 0.98rem;
  max-width: 30ch;
}

/* ---------- Finale ---------- */

.finale {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  padding: 12vh clamp(1.25rem, 5vw, 4rem) 16vh;
  gap: 3.5rem;
}

.finale-line {
  font-family: var(--font-display);
  font-weight: 800;
  font-size: clamp(2.5rem, 10vw, 8rem);
  line-height: 0.9;
  letter-spacing: -0.01em;
}

.finale-line em {
  font-style: normal;
  background: linear-gradient(120deg, var(--violet), var(--cyan), var(--ember));
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
}

.enter {
  position: relative;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 14rem;
  padding: 1.15rem 3rem;
  border: 1px solid rgba(244, 242, 238, 0.3);
  border-radius: 100px;
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 1.25rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  text-decoration: none;
  color: var(--ink);
  background: rgba(244, 242, 238, 0.03);
  backdrop-filter: blur(6px);
  transition: transform 0.3s var(--ease), background 0.3s, border-color 0.3s;
  will-change: transform;
}

.enter:hover {
  background: var(--ink);
  color: #050506;
  border-color: var(--ink);
}

/* ---------- Footer ---------- */

.footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 1rem;
  padding: 2.5rem clamp(1.25rem, 5vw, 4rem);
  border-top: 1px solid var(--faint);
}

.footer-brand {
  font-family: var(--font-display);
  font-weight: 800;
  font-size: 1.25rem;
  letter-spacing: 0.08em;
}

.footer-meta {
  display: flex;
  gap: 1.5rem;
  font-size: 0.78rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--muted);
}

/* ---------- Reveal animation ---------- */

.reveal {
  opacity: 0;
  transform: translateY(32px);
  transition: opacity 1s var(--ease), transform 1s var(--ease);
}

.reveal.in {
  opacity: 1;
  transform: translateY(0);
}

/* ---------- Responsive ---------- */

@media (max-width: 760px) {
  .pillars {
    grid-template-columns: 1fr;
    gap: 0.5rem;
  }
  .status {
    font-size: 0.68rem;
    letter-spacing: 0.12em;
  }
  .footer {
    flex-direction: column;
    align-items: flex-start;
  }
}

/* ---------- Reduced motion ---------- */

@media (prefers-reduced-motion: reduce) {
  .bg-mesh, .dot, .scroll-cue span {
    animation: none;
  }
  .reveal {
    opacity: 1;
    transform: none;
  }
  html {
    scroll-behavior: auto;
  }
}
