﻿:root {
  --bg-1: #0f1924;
  --bg-2: #152433;
  --bg-3: #22394f;
  --ink: #dbe9f5;
  --muted: #9fb3c5;
  --panel: rgba(26, 40, 56, 0.64);
  --stroke: rgba(174, 201, 226, 0.22);
  --accent: #76a2c7;
  --accent-2: #a7bfd4;
  --shadow: 0 16px 44px rgba(2, 9, 17, 0.46);
}

* {
  box-sizing: border-box;
}

html,
body {
  margin: 0;
  padding: 0;
  min-height: 100%;
}

body {
  font-family: "Space Grotesk", sans-serif;
  color: var(--ink);
  background:
    radial-gradient(circle at 8% 10%, #2b475f 0%, transparent 38%),
    radial-gradient(circle at 88% 18%, #2c4d66 0%, transparent 34%),
    linear-gradient(130deg, var(--bg-1), var(--bg-2) 42%, var(--bg-3));
  overflow-x: hidden;
}

.bg-grid {
  position: fixed;
  inset: 0;
  pointer-events: none;
  background-image:
    linear-gradient(rgba(170, 196, 219, 0.08) 1px, transparent 1px),
    linear-gradient(90deg, rgba(170, 196, 219, 0.08) 1px, transparent 1px);
  background-size: 46px 46px;
  mask-image: radial-gradient(circle at center, black 34%, transparent 92%);
  z-index: -1;
}

.site-header {
  position: sticky;
  top: 0;
  z-index: 30;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  padding: 0.95rem 4vw;
  background: rgba(11, 19, 28, 0.56);
  backdrop-filter: blur(10px);
  border-bottom: 1px solid rgba(144, 175, 202, 0.25);
  transition: transform 0.35s ease, opacity 0.35s ease, background-color 0.3s ease;
}

.site-header.is-scrolled {
  background: rgba(11, 19, 28, 0.78);
}

.site-header.is-hidden {
  transform: translateY(-110%);
  opacity: 0;
}

.logo {
  display: inline-flex;
  align-items: center;
  gap: 0.65rem;
  color: var(--ink);
  text-decoration: none;
  font-weight: 700;
}

.logo-icon {
  display: block;
  width: 2rem;
  height: 2rem;
  border-radius: 0.5rem;
  box-shadow: 0 6px 16px rgba(3, 10, 18, 0.35);
}

.main-nav {
  display: flex;
  gap: 1.15rem;
}

.main-nav a {
  color: var(--muted);
  text-decoration: none;
  font-weight: 600;
}

.main-nav a:hover {
  color: #d7e9f9;
}

.main-nav a.armed {
  color: #e8f5ff;
  text-shadow: 0 0 14px rgba(173, 210, 237, 0.75);
}

main {
  width: min(1120px, 92vw);
  margin: 0 auto;
}

section {
  margin: 4.5rem 0;
}

.hero {
  position: relative;
  isolation: isolate;
  padding: 3.2rem;
  border-radius: 1.3rem;
  background: linear-gradient(135deg, rgba(150, 180, 206, 0.2), rgba(34, 52, 71, 0.45));
  border: 1px solid var(--stroke);
  box-shadow: var(--shadow);
  overflow: hidden;
}

.eyebrow {
  color: #9fc0da;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  font-size: 0.78rem;
  font-weight: 700;
}

h1,
h2,
h3 {
  font-family: "Sora", sans-serif;
  margin: 0;
}

h1 {
  margin-top: 0.8rem;
  font-size: clamp(2rem, 5vw, 3.6rem);
  line-height: 1.08;
}

.hero-copy {
  margin-top: 1rem;
  max-width: 65ch;
  color: var(--muted);
  font-size: 1.05rem;
}

.hero-actions {
  display: flex;
  gap: 0.9rem;
  margin-top: 1.5rem;
  flex-wrap: wrap;
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  text-decoration: none;
  color: #0f1b28;
  background: linear-gradient(140deg, #a6c2d8, #6f97ba);
  padding: 0.76rem 1.15rem;
  border-radius: 999px;
  font-weight: 700;
  border: 1px solid rgba(224, 236, 246, 0.7);
  transition: transform 0.24s ease, filter 0.24s ease;
}

.btn:hover {
  transform: translateY(-2px);
  filter: brightness(1.08);
}

.btn-small {
  padding: 0.55rem 0.95rem;
  font-size: 0.9rem;
}

.hero-orb {
  position: absolute;
  border-radius: 50%;
  filter: blur(1px);
  opacity: 0.55;
  z-index: -1;
}

.hero-orb-a {
  width: 250px;
  height: 250px;
  right: -60px;
  top: -60px;
  background: radial-gradient(circle, #7ba3c4, transparent 66%);
  animation: floatA 6s ease-in-out infinite;
}

.hero-orb-b {
  width: 170px;
  height: 170px;
  left: -30px;
  bottom: -36px;
  background: radial-gradient(circle, #9ec1dd, transparent 70%);
  animation: floatB 5.2s ease-in-out infinite;
}

.ref-card {
  background: var(--panel);
  border: 1px solid var(--stroke);
  border-radius: 1rem;
  box-shadow: var(--shadow);
}

.earn-copy,
.ref-card p {
  color: var(--muted);
}

.section-head {
  margin-bottom: 1rem;
}

.section-head h2 {
  margin-top: 0.45rem;
  font-size: clamp(1.5rem, 3vw, 2.2rem);
}

.ref-grid {
  display: grid;
  gap: 1rem;
}

.earn-copy {
  margin: 0.5rem 0 1rem;
}

.ref-grid {
  grid-template-columns: repeat(2, minmax(240px, 1fr));
}

.ref-card {
  padding: 1rem;
  text-decoration: none;
  color: var(--ink);
  transition: transform 0.25s ease, border-color 0.25s ease;
}

.ref-head {
  display: flex;
  align-items: center;
  gap: 0.65rem;
}

.site-logo {
  width: 1.7rem;
  height: 1.7rem;
  border-radius: 0.4rem;
  border: 1px solid rgba(192, 217, 237, 0.36);
  background: rgba(155, 185, 208, 0.18);
  object-fit: cover;
  flex: 0 0 auto;
}

.ref-card:hover {
  transform: translateY(-4px);
  border-color: rgba(185, 209, 230, 0.8);
}

.ref-priority {
  background: linear-gradient(145deg, rgba(120, 155, 186, 0.3), rgba(26, 40, 56, 0.7));
  border-color: rgba(185, 211, 232, 0.9);
}

.faq-list {
  display: grid;
  gap: 0.9rem;
}

.faq-item {
  background: var(--panel);
  border: 1px solid var(--stroke);
  border-radius: 0.95rem;
  box-shadow: var(--shadow);
  padding: 1rem;
  cursor: pointer;
  transition: transform 0.24s ease, border-color 0.24s ease;
}

.faq-item:hover {
  transform: translateY(-2px);
  border-color: rgba(185, 209, 230, 0.8);
}

.faq-item:focus-visible {
  outline: 2px solid rgba(185, 211, 232, 0.95);
  outline-offset: 2px;
}

.faq-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
}

.faq-item h3 {
  font-size: 1.08rem;
  line-height: 1.35;
}

.faq-arrow {
  font-size: 1.5rem;
  color: #c4dcf0;
  line-height: 1;
  transform: rotate(0deg);
  transition: transform 0.28s ease;
}

.faq-item.is-open .faq-arrow {
  transform: rotate(90deg);
}

.faq-answer-wrap {
  display: grid;
  grid-template-rows: 0fr;
  opacity: 0;
  transition: grid-template-rows 0.34s ease, opacity 0.28s ease;
}

.faq-item.is-open .faq-answer-wrap {
  grid-template-rows: 1fr;
  opacity: 1;
}

.faq-answer {
  overflow: hidden;
  color: var(--muted);
}

.faq-item.is-open .faq-answer p {
  margin-top: 0.72rem;
  color: var(--muted);
  animation: answerIn 0.3s ease;
}

.faq-answer p {
  margin: 0;
}

@keyframes answerIn {
  from {
    opacity: 0;
    transform: translateY(-4px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.site-footer {
  padding: 1.2rem 4vw 2rem;
  color: #9eb3c5;
  text-align: center;
}

.blackout-overlay {
  position: fixed;
  inset: 0;
  z-index: 1000;
  background: #000;
  display: grid;
  place-items: center;
}

.blackout-overlay[hidden] {
  display: none;
}

.blackout-video {
  width: 100vw;
  height: 100vh;
  object-fit: cover;
}

body.blackout-active {
  background: #000;
  overflow: hidden;
}

body.blackout-active .bg-grid,
body.blackout-active .site-header,
body.blackout-active main,
body.blackout-active .site-footer {
  visibility: hidden;
}

.reveal,
.reveal-fast {
  opacity: 0;
  transform: translateY(24px) scale(0.986);
}

.reveal.show,
.reveal-fast.show {
  animation: revealUp 0.85s cubic-bezier(0.19, 1, 0.22, 1) forwards;
}

@keyframes revealUp {
  from {
    opacity: 0;
    transform: translateY(26px) scale(0.986);
  }
  to {
    opacity: 1;
    transform: translateY(0) scale(1);
  }
}

@keyframes floatA {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(12px); }
}

@keyframes floatB {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(-11px); }
}

@media (max-width: 920px) {
  .site-header {
    flex-wrap: wrap;
  }

  .main-nav {
    order: 3;
    width: 100%;
    justify-content: center;
    padding-top: 0.25rem;
  }

  .hero {
    padding: 2rem;
  }
}

@media (max-width: 640px) {
  .ref-grid {
    grid-template-columns: 1fr;
  }

  section {
    margin: 3.3rem 0;
  }

  .hero-actions {
    flex-direction: column;
    align-items: flex-start;
  }
}
