:root {
  --bg0: #05070f;
  --bg1: #0a1020;
  --bg2: #121a2e;
  --text: #f3f5fa;
  --muted: #9aa3b8;
  --line: rgba(255, 255, 255, 0.1);
  --cyan: #3de0ff;
  --magenta: #ff7ab8;
  --violet: #8b5cff;
  --sun: #ff6a1a;
  --cta: #00e08f;
  --cta-ink: #04140e;
  --display: "Syne", "Outfit", sans-serif;
  --body: "Outfit", sans-serif;
  --max: 1120px;
  --nav-h: 72px;
}

*,
*::before,
*::after {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  min-height: 100%;
  color: var(--text);
  font-family: var(--body);
  font-weight: 400;
  line-height: 1.55;
  background: var(--bg0);
  overflow-x: hidden;
}

img {
  max-width: 100%;
  display: block;
}

a {
  color: inherit;
  text-decoration: none;
}

em {
  font-style: normal;
  background: linear-gradient(120deg, var(--cyan), var(--violet) 50%, var(--magenta));
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

.scroll-progress {
  position: fixed;
  inset: 0 0 auto;
  height: 3px;
  z-index: 60;
  background: transparent;
  pointer-events: none;
}

.scroll-progress span {
  display: block;
  height: 100%;
  width: 0%;
  background: linear-gradient(90deg, var(--cyan), var(--magenta));
  transform-origin: left;
}

/* ---- Nav ---- */
.site-nav {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 50;
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: var(--nav-h);
  padding: 0 clamp(16px, 4vw, 40px);
  background: linear-gradient(to bottom, rgba(5, 7, 15, 0.85), transparent);
  backdrop-filter: blur(0px);
  transition: background 0.3s ease, backdrop-filter 0.3s ease;
}

.site-nav.is-scrolled {
  background: rgba(5, 7, 15, 0.78);
  backdrop-filter: blur(10px);
  border-bottom: 1px solid var(--line);
}

.nav-brand {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-family: var(--display);
  font-weight: 800;
  font-size: 1.15rem;
  letter-spacing: -0.03em;
}

.nav-cta {
  font-weight: 600;
  font-size: 0.95rem;
  padding: 10px 18px;
  border: 1px solid rgba(255, 255, 255, 0.22);
  border-radius: 10px;
  transition: border-color 0.2s ease, background 0.2s ease;
}

.nav-cta:hover {
  border-color: var(--cta);
  background: rgba(0, 224, 143, 0.08);
}

/* ---- Buttons ---- */
.btn-primary,
.btn-ghost {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 48px;
  padding: 0 22px;
  border-radius: 12px;
  font-weight: 700;
  font-size: 1rem;
  letter-spacing: -0.01em;
  transition: transform 0.2s ease, background 0.2s ease, border-color 0.2s ease;
}

.btn-primary {
  background: var(--cta);
  color: var(--cta-ink);
}

.btn-primary:hover {
  transform: translateY(-1px);
  background: #1ff0a2;
}

.btn-ghost {
  border: 1px solid rgba(255, 255, 255, 0.28);
  color: var(--text);
  background: rgba(255, 255, 255, 0.03);
}

.btn-ghost:hover {
  border-color: rgba(61, 224, 255, 0.7);
}

.cta-row {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
}

/* ---- Hero ---- */
.hero {
  position: relative;
  min-height: 100svh;
  display: grid;
  align-items: end;
  padding: calc(var(--nav-h) + 24px) clamp(16px, 5vw, 56px) clamp(48px, 10vh, 96px);
  overflow: clip;
}

.hero-atmosphere {
  position: absolute;
  inset: 0;
  pointer-events: none;
  background:
    radial-gradient(900px 520px at 78% 35%, rgba(255, 106, 26, 0.28), transparent 55%),
    radial-gradient(700px 420px at 15% 80%, rgba(61, 224, 255, 0.1), transparent 50%),
    linear-gradient(160deg, #05070f 0%, #0b1224 48%, #090612 100%);
}

.parallax {
  position: absolute;
  will-change: transform;
}

.layer-stars {
  inset: -10%;
  background-image:
    radial-gradient(1.5px 1.5px at 12% 22%, rgba(255, 255, 255, 0.7), transparent),
    radial-gradient(1px 1px at 28% 68%, rgba(255, 255, 255, 0.45), transparent),
    radial-gradient(1.5px 1.5px at 48% 18%, rgba(255, 255, 255, 0.55), transparent),
    radial-gradient(1px 1px at 66% 42%, rgba(255, 255, 255, 0.4), transparent),
    radial-gradient(1.5px 1.5px at 82% 72%, rgba(255, 255, 255, 0.5), transparent),
    radial-gradient(1px 1px at 91% 28%, rgba(255, 255, 255, 0.35), transparent);
  opacity: 0.7;
  animation: twinkle 8s ease-in-out infinite alternate;
}

.layer-sun {
  right: 8%;
  top: 12%;
  width: min(38vw, 340px);
  aspect-ratio: 1;
  border-radius: 50%;
  background:
    radial-gradient(circle at 40% 40%, #ffe08a 0%, #ff9a2e 35%, #ff4d00 68%, transparent 72%);
  filter: blur(0.2px);
  opacity: 0.85;
  animation: sun-pulse 6s ease-in-out infinite alternate;
}

.layer-planet {
  right: -4%;
  bottom: -8%;
  width: min(72vw, 760px);
}

.layer-planet img {
  width: 100%;
  height: auto;
  object-fit: cover;
  mask-image: linear-gradient(90deg, transparent 0%, #000 18%, #000 100%);
}

.layer-dust {
  inset: 0;
  background:
    radial-gradient(2px 2px at 70% 40%, rgba(255, 180, 80, 0.7), transparent 40%),
    radial-gradient(1.5px 1.5px at 78% 52%, rgba(255, 120, 40, 0.55), transparent 40%),
    radial-gradient(1px 1px at 62% 58%, rgba(255, 200, 120, 0.45), transparent 40%);
  opacity: 0.55;
}

.hero-veil {
  position: absolute;
  inset: 0;
  background:
    linear-gradient(90deg, rgba(5, 7, 15, 0.92) 0%, rgba(5, 7, 15, 0.72) 42%, rgba(5, 7, 15, 0.15) 72%),
    linear-gradient(180deg, transparent 55%, rgba(5, 7, 15, 0.85) 100%);
}

.hero-copy {
  position: relative;
  z-index: 2;
  max-width: 640px;
}

.brand-mark {
  display: flex;
  align-items: center;
  gap: 14px;
  margin: 0 0 18px;
}

.brand-name {
  font-family: var(--display);
  font-weight: 800;
  font-size: clamp(2.6rem, 8vw, 4.4rem);
  letter-spacing: -0.05em;
  line-height: 0.95;
}

.hero h1 {
  margin: 0 0 16px;
  font-family: var(--display);
  font-weight: 800;
  font-size: clamp(2rem, 5.4vw, 3.35rem);
  letter-spacing: -0.04em;
  line-height: 1.05;
}

.lede {
  margin: 0 0 28px;
  max-width: 34rem;
  color: var(--muted);
  font-size: clamp(1.05rem, 2vw, 1.2rem);
}

/* ---- Sections ---- */
.section {
  position: relative;
  padding: clamp(72px, 12vh, 120px) clamp(16px, 5vw, 56px);
}

.section-inner {
  max-width: var(--max);
  margin: 0 auto;
}

.section-head {
  max-width: 44rem;
  margin-bottom: clamp(36px, 6vw, 56px);
}

.section-head h2,
.opportunity h2,
.triangle h2,
.finale h2 {
  margin: 0 0 12px;
  font-family: var(--display);
  font-weight: 800;
  letter-spacing: -0.04em;
  line-height: 1.1;
  font-size: clamp(1.7rem, 4vw, 2.6rem);
}

.section-head p,
.opportunity .copy > p,
.finale p {
  margin: 0;
  color: var(--muted);
  font-size: 1.08rem;
  max-width: 40rem;
}

.split {
  display: grid;
  grid-template-columns: 1fr 1.05fr;
  gap: clamp(28px, 5vw, 64px);
  align-items: center;
}

.opportunity {
  background:
    radial-gradient(700px 360px at 85% 30%, rgba(139, 92, 255, 0.18), transparent 60%),
    linear-gradient(180deg, var(--bg0), var(--bg1));
}

.opportunity h2 span {
  color: #d7c8ff;
  font-weight: 700;
}

.opportunity .visual {
  margin: 0;
  border-radius: 0;
  overflow: hidden;
}

.opportunity .visual img {
  width: 100%;
  height: auto;
  transform: scale(1.02);
}

/* ---- Flow ---- */
.flow {
  background:
    radial-gradient(800px 400px at 20% 0%, rgba(61, 224, 255, 0.1), transparent 55%),
    var(--bg1);
}

.steps {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  grid-template-columns: repeat(5, minmax(0, 1fr));
  gap: 18px;
  counter-reset: none;
}

.step {
  padding: 0 0 0 14px;
  border-left: 2px solid rgba(61, 224, 255, 0.35);
}

.step-n {
  display: block;
  font-family: var(--display);
  font-weight: 800;
  font-size: 0.85rem;
  letter-spacing: 0.08em;
  color: var(--cyan);
  margin-bottom: 10px;
}

.step h3 {
  margin: 0 0 8px;
  font-family: var(--display);
  font-size: 1.15rem;
  letter-spacing: -0.02em;
}

.step p {
  margin: 0;
  color: var(--muted);
  font-size: 0.95rem;
}

/* ---- Triangle / manifesto ---- */
.triangle {
  background:
    radial-gradient(900px 420px at 50% 100%, rgba(255, 106, 26, 0.12), transparent 55%),
    linear-gradient(180deg, var(--bg1), #0c0818);
  text-align: center;
}

.manifesto {
  margin: 0 auto 28px;
  max-width: 46rem;
  font-size: clamp(1.25rem, 3vw, 1.75rem);
  line-height: 1.45;
  letter-spacing: -0.02em;
}

.manifesto strong {
  color: var(--text);
  background: linear-gradient(120deg, var(--cyan), var(--magenta));
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
  font-weight: 800;
}

.triangle h2 {
  margin: 0 auto;
  max-width: 34rem;
  color: #d8cdf5;
  font-size: clamp(1.35rem, 3vw, 1.9rem);
}

/* ---- Diff ---- */
.diff {
  background: var(--bg0);
}

.diff-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: clamp(24px, 4vw, 48px);
}

.diff-col h3 {
  margin: 0 0 18px;
  font-family: var(--display);
  font-size: 1.35rem;
  letter-spacing: -0.02em;
}

.diff-col ul {
  margin: 0;
  padding: 0;
  list-style: none;
}

.diff-col li {
  position: relative;
  padding: 12px 0 12px 18px;
  border-top: 1px solid var(--line);
  color: var(--muted);
}

.diff-col li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 50%;
  width: 6px;
  height: 6px;
  margin-top: -3px;
  border-radius: 1px;
  background: rgba(255, 255, 255, 0.28);
}

.muted-col h3 {
  color: var(--muted);
}

.brand-col h3 {
  background: linear-gradient(120deg, var(--cyan), var(--magenta));
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

.brand-col li {
  color: var(--text);
}

.brand-col li::before {
  background: linear-gradient(120deg, var(--cyan), var(--magenta));
}

/* ---- Finale ---- */
.finale {
  min-height: 70vh;
  display: grid;
  align-items: end;
  padding-bottom: clamp(64px, 10vh, 100px);
  overflow: clip;
}

.finale-bg {
  position: absolute;
  inset: 0;
  pointer-events: none;
}

.finale-bg img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center 35%;
  transform: scale(1.05);
  filter: saturate(1.05);
}

.finale-veil {
  position: absolute;
  inset: 0;
  background:
    linear-gradient(180deg, rgba(5, 7, 15, 0.55) 0%, rgba(5, 7, 15, 0.78) 45%, rgba(5, 7, 15, 0.94) 100%),
    radial-gradient(700px 320px at 50% 70%, rgba(139, 92, 255, 0.25), transparent 65%);
}

.finale-copy {
  position: relative;
  z-index: 2;
  text-align: center;
  display: grid;
  justify-items: center;
  gap: 16px;
}

.finale-logo {
  margin-bottom: 4px;
}

.finale .btn-primary {
  margin-top: 8px;
  min-width: 220px;
}

/* ---- Footer ---- */
.site-footer {
  border-top: 1px solid var(--line);
  padding: 24px clamp(16px, 5vw, 56px) 36px;
  background: #04060c;
}

.footer-inner {
  max-width: var(--max);
  margin: 0 auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  color: var(--muted);
  font-size: 0.95rem;
}

.footer-brand {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  color: var(--text);
  font-family: var(--display);
  font-weight: 700;
}

.site-footer a:hover {
  color: var(--cyan);
}

/* ---- Reveal / motion ---- */
.reveal {
  opacity: 0;
  transform: translateY(28px);
  transition:
    opacity 0.7s cubic-bezier(0.22, 1, 0.36, 1),
    transform 0.7s cubic-bezier(0.22, 1, 0.36, 1);
}

.reveal.is-in {
  opacity: 1;
  transform: none;
}

.delay-1 { transition-delay: 0.08s; }
.delay-2 { transition-delay: 0.16s; }
.delay-3 { transition-delay: 0.24s; }
.delay-4 { transition-delay: 0.32s; }

@keyframes sun-pulse {
  from { transform: scale(1); filter: brightness(1); }
  to { transform: scale(1.04); filter: brightness(1.08); }
}

@keyframes twinkle {
  from { opacity: 0.45; }
  to { opacity: 0.85; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .reveal {
    opacity: 1;
    transform: none;
    transition: none;
  }
  .layer-stars,
  .layer-sun {
    animation: none;
  }
  .parallax {
    transform: none !important;
  }
}

/* ---- Responsive ---- */
@media (max-width: 960px) {
  .split,
  .diff-grid {
    grid-template-columns: 1fr;
  }

  .steps {
    grid-template-columns: 1fr 1fr;
  }

  .layer-planet {
    width: min(95vw, 640px);
    opacity: 0.9;
  }

  .hero {
    align-items: center;
  }
}

@media (max-width: 640px) {
  .brand-mark img {
    width: 56px;
    height: 56px;
  }

  .steps {
    grid-template-columns: 1fr;
  }

  .layer-sun {
    width: 42vw;
    top: 18%;
    opacity: 0.65;
  }

  .hero-veil {
    background:
      linear-gradient(180deg, rgba(5, 7, 15, 0.55) 0%, rgba(5, 7, 15, 0.78) 40%, rgba(5, 7, 15, 0.94) 100%),
      linear-gradient(90deg, rgba(5, 7, 15, 0.7), transparent 80%);
  }

  .cta-row {
    width: 100%;
  }

  .cta-row .btn-primary,
  .cta-row .btn-ghost {
    flex: 1 1 auto;
  }
}
