:root {
  --navy-950: #030814;
  --navy-900: #071226;
  --navy-800: #0b1a33;
  --navy-700: #10294d;
  --silver: #d8dee8;
  --silver-soft: #9aa7b8;
  --white: #f6f8fb;
  --gold: #d6a64a;
  --blue: #4db3ff;
  --panel: rgba(8, 18, 36, 0.74);
  --border: rgba(216, 222, 232, 0.2);
  --shadow: 0 24px 80px rgba(0, 0, 0, 0.45);
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  color: var(--white);
  background:
    radial-gradient(circle at 75% 5%, rgba(77, 179, 255, 0.18), transparent 26rem),
    radial-gradient(circle at 10% 10%, rgba(214, 166, 74, 0.11), transparent 20rem),
    linear-gradient(180deg, var(--navy-950), #02040a 74%);
  font-family: Inter, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  line-height: 1.6;
}

img { max-width: 100%; display: block; }
a { color: inherit; text-decoration: none; }

.container { width: min(1120px, calc(100% - 36px)); margin: 0 auto; }
.section-shell { position: relative; overflow: hidden; }

.site-header {
  position: sticky;
  top: 0;
  z-index: 20;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  padding: 14px max(18px, calc((100vw - 1120px) / 2));
  background: rgba(3, 8, 20, 0.82);
  border-bottom: 1px solid var(--border);
  backdrop-filter: blur(18px);
}

.brand { display: flex; align-items: center; gap: 12px; font-weight: 900; letter-spacing: 0.02em; }
.brand img { width: 46px; height: 46px; border-radius: 50%; }
.brand span { font-family: Rajdhani, Inter, sans-serif; font-size: 1.25rem; text-transform: uppercase; }

.nav { display: flex; align-items: center; gap: 22px; color: var(--silver); font-weight: 700; font-size: 0.92rem; }
.nav a { transition: color .2s ease; }
.nav a:hover { color: var(--white); }
.nav-toggle { display: none; }

.hero { min-height: 760px; display: grid; place-items: center; text-align: center; padding: 96px 18px 70px; }
.hero-bg {
  position: absolute; inset: 0;
  background-image: url("assets/hero-space.png");
  background-size: cover;
  background-position: center;
  filter: saturate(1.02) contrast(1.06);
  transform: scale(1.02);
}
.hero-overlay {
  position: absolute; inset: 0;
  background:
    radial-gradient(circle at center, rgba(6, 13, 28, 0.24), rgba(2, 4, 10, 0.91) 72%),
    linear-gradient(180deg, rgba(3, 8, 20, 0.45), var(--navy-950));
}
.hero-content { position: relative; z-index: 1; width: min(840px, 100%); }
.eyebrow, .section-kicker {
  color: var(--gold);
  text-transform: uppercase;
  letter-spacing: 0.18em;
  font-weight: 900;
  font-size: 0.78rem;
}
.hero-logo { width: min(265px, 56vw); margin: 22px auto 10px; filter: drop-shadow(0 26px 70px rgba(0, 0, 0, 0.6)); }
h1, h2, h3 { font-family: Rajdhani, Inter, sans-serif; line-height: 1; margin: 0; }
h1 { font-size: clamp(3.4rem, 10vw, 7.8rem); text-transform: uppercase; letter-spacing: -0.04em; text-shadow: 0 10px 40px rgba(0,0,0,.65); }
h2 { font-size: clamp(2.2rem, 5vw, 4rem); text-transform: uppercase; letter-spacing: -0.02em; }
h3 { font-size: 1.35rem; }
.hero-subtitle { color: var(--silver); font-size: clamp(1rem, 2vw, 1.24rem); width: min(710px, 100%); margin: 20px auto 0; }
.hero-actions { display: flex; justify-content: center; gap: 14px; flex-wrap: wrap; margin-top: 34px; }

.btn {
  display: inline-flex; align-items: center; justify-content: center;
  min-height: 48px; padding: 0 22px;
  border-radius: 999px;
  font-weight: 900;
  letter-spacing: 0.03em;
  transition: transform .2s ease, border-color .2s ease, background .2s ease;
}
.btn:hover { transform: translateY(-2px); }
.btn-primary { color: #061021; background: linear-gradient(135deg, var(--silver), #ffffff 40%, var(--gold)); box-shadow: 0 15px 40px rgba(77, 179, 255, 0.18); }
.btn-secondary { color: var(--white); border: 1px solid var(--border); background: rgba(255,255,255,0.06); }

.quick-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 14px; margin-top: -52px; position: relative; z-index: 5; }
.stat-card, .panel, .rules-grid article, .content-card, .mission-strip, .final-cta, figure {
  background: linear-gradient(180deg, rgba(16, 41, 77, 0.72), rgba(5, 13, 28, 0.82));
  border: 1px solid var(--border);
  border-radius: 24px;
  box-shadow: var(--shadow);
  backdrop-filter: blur(14px);
}
.stat-card { min-height: 128px; padding: 22px; }
.stat-card span, .muted-label { color: var(--silver-soft); font-size: 0.82rem; text-transform: uppercase; letter-spacing: 0.12em; font-weight: 800; }
.stat-card strong { display: block; margin-top: 8px; font-family: Rajdhani; font-size: 1.6rem; line-height: 1; }
.status-card a { display: inline-block; margin-top: 10px; color: var(--blue); font-weight: 800; }

.two-column { display: grid; grid-template-columns: 0.8fr 1.2fr; gap: 34px; align-items: start; padding: 110px 0 70px; }
.section-copy p:not(.section-kicker), .section-heading p, .final-cta p { color: var(--silver); max-width: 650px; }
.panel { padding: 28px; }
.steps { margin: 0; padding-left: 22px; display: grid; gap: 18px; }
.steps li::marker { color: var(--gold); font-weight: 900; }
.steps strong { display: block; color: var(--white); }
.steps span { color: var(--silver); }
.join-box { margin-top: 24px; padding: 18px; border-radius: 18px; border: 1px solid var(--border); background: rgba(255,255,255,0.04); }
.join-box a { display: block; color: var(--blue); font-weight: 900; margin-top: 4px; word-break: break-all; }

.mission-strip { display: grid; grid-template-columns: 1fr auto; gap: 28px; align-items: center; padding: 30px; margin-top: 20px; }
.mission-strip code { color: var(--gold); }
.countdown { display: grid; grid-template-columns: repeat(4, 88px); gap: 10px; }
.countdown div { text-align: center; padding: 16px 10px; border: 1px solid var(--border); border-radius: 18px; background: rgba(255,255,255,0.04); }
.countdown strong { display: block; font-family: Rajdhani; font-size: 2rem; line-height: 1; }
.countdown span { color: var(--silver-soft); font-size: 0.72rem; text-transform: uppercase; font-weight: 800; }

.section-heading { padding-top: 100px; margin-bottom: 26px; }
.split-heading { display: flex; justify-content: space-between; align-items: end; gap: 20px; }
.rules-grid, .cards-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; }
.rules-grid article, .content-card { padding: 24px; }
.rules-grid p, .content-card p { color: var(--silver); margin-bottom: 0; }
.tag { display: inline-block; margin-bottom: 14px; padding: 5px 10px; border-radius: 999px; color: #061021; background: var(--gold); font-size: 0.75rem; font-weight: 900; text-transform: uppercase; letter-spacing: .08em; }

.gallery-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 16px; }
figure { margin: 0; overflow: hidden; }
figure img, .gallery-placeholder { width: 100%; aspect-ratio: 1 / 0.72; object-fit: cover; }
.gallery-placeholder { display: grid; place-items: center; color: var(--silver-soft); background: linear-gradient(135deg, rgba(255,255,255,.06), rgba(77,179,255,.1)); font-weight: 900; text-transform: uppercase; letter-spacing: .12em; }
figcaption { padding: 14px 16px 16px; color: var(--silver); font-weight: 800; }

.final-cta { display: flex; justify-content: space-between; align-items: center; gap: 24px; padding: 34px; margin: 100px auto; }
.final-cta .btn { min-width: 240px; width: max-content; white-space: nowrap; flex: 0 0 auto; padding-left: 30px; padding-right: 30px; }
.site-footer { display: flex; justify-content: space-between; gap: 20px; width: min(1120px, calc(100% - 36px)); margin: 0 auto; padding: 34px 0 46px; color: var(--silver-soft); border-top: 1px solid var(--border); }
.site-footer a, .site-footer button { color: var(--white); font-weight: 800; }
.site-footer button { background: transparent; border: 0; padding: 0; font: inherit; cursor: pointer; text-align: left; }
.site-footer button:hover { text-decoration: underline; }

@media (max-width: 860px) {
  .nav { display: none; position: absolute; top: 75px; right: 18px; left: 18px; flex-direction: column; padding: 20px; border: 1px solid var(--border); border-radius: 20px; background: rgba(3,8,20,.96); }
  .nav.open { display: flex; }
  .nav-toggle { display: inline-flex; background: transparent; color: var(--white); border: 1px solid var(--border); border-radius: 12px; padding: 8px 12px; font-size: 1.1rem; }
  .quick-grid, .rules-grid, .cards-grid, .gallery-grid { grid-template-columns: 1fr 1fr; }
  .two-column, .mission-strip { grid-template-columns: 1fr; }
  .countdown { grid-template-columns: repeat(4, 1fr); }
  .final-cta, .split-heading, .site-footer { flex-direction: column; align-items: flex-start; }
}

@media (max-width: 560px) {
  .hero { min-height: 690px; padding-top: 76px; }
  .brand span { display: none; }
  .quick-grid, .rules-grid, .cards-grid, .gallery-grid { grid-template-columns: 1fr; }
  .countdown { grid-template-columns: 1fr 1fr; width: 100%; }
  .hero-actions .btn { width: 100%; }
  .final-cta .btn { width: max-content; max-width: 100%; }
}

/* Keep the final CTA button text on one line on all screen sizes. */
.final-cta .final-apply-btn {
  min-width: 285px;
  width: 285px;
  max-width: none;
  white-space: nowrap;
  flex: 0 0 285px;
  word-break: keep-all;
}

@media (max-width: 560px) {
  .final-cta .final-apply-btn {
    width: 285px;
    min-width: 285px;
    max-width: none;
  }
}


/* Bottom CTA uses shorter text so it cannot stack on narrow layouts. */
.final-cta .final-apply-btn {
  min-width: 170px;
  width: auto;
  max-width: 100%;
  white-space: nowrap;
  flex: 0 0 auto;
  text-align: center;
}
