:root {
  --red: #e30613;
  --red-dark: #b00510;
  --gold: #ffc60b;
  --space: #05070f;
  --panel: rgba(20, 23, 32, 0.72);
  --panel-border: rgba(255, 198, 11, 0.16);
  --text: #f2f3f7;
  --text-dim: #b9bec9;
  --font-body: "Quicksand", sans-serif;
  --font-hud: "Orbitron", sans-serif;
}

* { margin: 0; padding: 0; box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
  background: var(--space);
  color: var(--text);
  font-family: var(--font-body);
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
}

::selection { background: var(--red); color: #fff; }

/* ---------- canvas ---------- */
#scene {
  position: fixed;
  inset: 0;
  width: 100%;
  height: 100%;
  display: block;
  z-index: 0;
}

/* ---------- progress bar ---------- */
.scroll-progress {
  position: fixed;
  top: 0; left: 0; right: 0;
  height: 3px;
  z-index: 60;
  background: rgba(255, 255, 255, 0.06);
}
.scroll-progress span {
  display: block;
  height: 100%;
  width: 100%;
  background: linear-gradient(90deg, var(--red), var(--gold));
  transform-origin: left;
  transform: scaleX(0);
}

/* ---------- nav ---------- */
.nav {
  position: fixed;
  top: 0; left: 0; right: 0;
  z-index: 50;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 14px 28px;
  opacity: 0;
  transform: translateY(-12px);
  transition: opacity .5s ease, transform .5s ease, background .3s ease;
  pointer-events: none;
}
.nav.visible {
  opacity: 1;
  transform: translateY(0);
  pointer-events: auto;
  background: rgba(5, 7, 15, 0.55);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border-bottom: 1px solid rgba(255, 255, 255, 0.05);
}
.nav-brand img { height: 44px; width: auto; display: block; filter: drop-shadow(0 2px 6px rgba(0,0,0,.6)); }
.nav-links { display: flex; align-items: center; gap: 26px; }
.nav-links a {
  color: var(--text-dim);
  text-decoration: none;
  font-weight: 600;
  font-size: 0.92rem;
  transition: color .2s;
}
.nav-links a:hover { color: #fff; }
.nav-cta {
  background: var(--red);
  color: #fff !important;
  padding: 9px 18px;
  border-radius: 999px;
  font-weight: 700;
  transition: background .2s, transform .2s;
}
.nav-cta:hover { background: var(--red-dark); transform: translateY(-1px); }

/* ---------- track & panels ---------- */
.track {
  position: relative;
  height: 1620vh; /* total scroll length driving the flight */
  z-index: 10;
}
.panel {
  position: absolute;
  left: 0;
  width: 100%;
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 0 20px;
}

/* ---------- hero ---------- */
.hero { flex-direction: column; justify-content: flex-start; padding-top: 8vh; }
.hero-inner { text-align: center; width: 100%; }
.hero-logo {
  width: min(340px, 68vw);
  filter: drop-shadow(0 10px 40px rgba(227, 6, 19, 0.35));
}
.hero-tag {
  margin-top: 26px;
  font-size: clamp(1.05rem, 2.4vw, 1.45rem);
  color: var(--text-dim);
  font-weight: 500;
}
.hero-tag strong { color: var(--gold); font-weight: 700; }
.hero-ctas { margin-top: 30px; display: flex; gap: 14px; justify-content: center; flex-wrap: wrap; }
.scroll-cue {
  position: absolute;
  bottom: 5vh;
  left: clamp(20px, 6vw, 110px);
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 8px;
  color: var(--text-dim);
  font-size: 0.85rem;
  font-weight: 600;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}
.scroll-cue svg { animation: cue-bounce 1.6s ease-in-out infinite; color: var(--gold); }
@keyframes cue-bounce {
  0%, 100% { transform: translateY(0); opacity: .7; }
  50% { transform: translateY(8px); opacity: 1; }
}

/* ---------- buttons ---------- */
.btn {
  display: inline-block;
  padding: 14px 30px;
  border-radius: 999px;
  font-weight: 700;
  font-size: 1rem;
  text-decoration: none;
  transition: transform .2s, box-shadow .2s, background .2s, border-color .2s;
}
.btn-red {
  background: var(--red);
  color: #fff;
  box-shadow: 0 6px 24px rgba(227, 6, 19, 0.4);
}
.btn-red:hover { background: var(--red-dark); transform: translateY(-2px); box-shadow: 0 10px 30px rgba(227,6,19,.5); }
.btn-ghost {
  border: 1.5px solid rgba(255, 255, 255, 0.35);
  color: var(--text);
}
.btn-ghost:hover { border-color: var(--gold); color: var(--gold); transform: translateY(-2px); }
.btn.big { font-size: 1.1rem; padding: 16px 42px; }

/* ---------- HUD / countdown ---------- */
.hud { pointer-events: none; }
.hud-text {
  font-family: var(--font-hud);
  font-size: clamp(0.85rem, 2vw, 1.15rem);
  letter-spacing: 0.45em;
  color: var(--gold);
  text-shadow: 0 0 24px rgba(255, 198, 11, 0.45);
  text-align: center;
}
.countdown { pointer-events: none; }
.count {
  font-family: var(--font-hud);
  font-weight: 900;
  font-size: clamp(6rem, 22vw, 15rem);
  color: #fff;
  text-shadow: 0 0 60px rgba(227, 6, 19, 0.8), 0 0 20px rgba(255,255,255,.3);
  line-height: 1;
}
.liftoff { pointer-events: none; }
.liftoff-text {
  font-family: var(--font-hud);
  font-weight: 900;
  font-size: clamp(2.2rem, 8vw, 5.5rem);
  color: var(--red);
  -webkit-text-stroke: 1px rgba(255,255,255,.15);
  text-shadow: 0 0 50px rgba(227, 6, 19, 0.9);
  letter-spacing: 0.06em;
  text-align: center;
}

/* ---------- content cards ---------- */
.content {
  align-items: flex-start;
  justify-content: flex-start;
  padding-top: 12vh;
  padding-left: clamp(20px, 6vw, 110px);
}
.card {
  background: var(--panel);
  border: 1px solid var(--panel-border);
  border-radius: 22px;
  padding: clamp(28px, 4.5vw, 56px);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  box-shadow: 0 20px 60px rgba(0, 0, 0, 0.55);
  width: 100%;
}
.card.wide { max-width: 940px; }
.card.center { text-align: center; }
.section-title {
  font-size: clamp(1.8rem, 4.5vw, 3rem);
  font-weight: 700;
  letter-spacing: -0.01em;
}
.section-title .gold { color: var(--gold); }
.section-sub { margin-top: 10px; color: var(--text-dim); font-size: 1.05rem; }

/* category grid */
.grid {
  margin: 34px 0;
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 16px;
}
.tile {
  background: rgba(255, 255, 255, 0.035);
  border: 1px solid rgba(255, 255, 255, 0.07);
  border-radius: 16px;
  padding: 22px 20px;
  transition: transform .25s, border-color .25s, background .25s;
}
.tile:hover {
  transform: translateY(-4px);
  border-color: rgba(255, 198, 11, 0.45);
  background: rgba(255, 255, 255, 0.06);
}
.tile svg { width: 34px; height: 34px; color: var(--gold); margin-bottom: 14px; }
.tile h3 { font-size: 1.02rem; font-weight: 700; margin-bottom: 6px; }
.tile p { font-size: 0.88rem; color: var(--text-dim); line-height: 1.45; }

/* split card */
.card.split {
  max-width: 860px;
  display: flex;
  align-items: center;
  gap: clamp(24px, 5vw, 60px);
}
.split-text { flex: 1; }
.split-text p { margin: 16px 0; color: var(--text-dim); font-size: 1.05rem; line-height: 1.55; }
.split-text .btn { margin-top: 12px; }
.split-badge {
  flex-shrink: 0;
  width: clamp(120px, 20vw, 190px);
  height: clamp(120px, 20vw, 190px);
  border-radius: 50%;
  background: radial-gradient(circle at 35% 30%, rgba(255,198,11,.18), rgba(227,6,19,.12));
  border: 1px solid var(--panel-border);
  display: flex;
  align-items: center;
  justify-content: center;
}
.split-badge svg { width: 55%; height: 55%; color: var(--gold); }

/* value props */
.props {
  margin: 36px 0;
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 22px;
}
.prop { text-align: center; }
.prop-icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 76px;
  height: 76px;
  border-radius: 50%;
  background: var(--red);
  margin-bottom: 16px;
  box-shadow: 0 8px 26px rgba(227, 6, 19, 0.45);
}
.prop-icon svg { width: 38px; height: 38px; color: #fff; }
.prop h3 { font-size: 1.05rem; font-weight: 700; }
.prop p { color: var(--text-dim); font-size: 0.9rem; margin-top: 4px; }

/* contact */
.contact-grid {
  margin-top: 30px;
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 28px;
}
.contact-block h3 {
  color: var(--gold);
  font-size: 0.82rem;
  text-transform: uppercase;
  letter-spacing: 0.18em;
  margin-bottom: 14px;
}
.contact-block p { color: var(--text-dim); line-height: 1.55; margin-bottom: 10px; }
.contact-block .hours { font-weight: 600; color: var(--text); }
.link {
  display: block;
  color: var(--text);
  text-decoration: none;
  font-weight: 600;
  padding: 4px 0;
  transition: color .2s, transform .2s;
}
.link:hover { color: var(--gold); transform: translateX(4px); }

.foot {
  margin-top: 44px;
  padding-top: 26px;
  border-top: 1px solid rgba(255, 255, 255, 0.08);
  display: flex;
  align-items: center;
  gap: 16px;
}
.foot img { height: 42px; }
.foot p { color: var(--text-dim); font-size: 0.88rem; }

/* ---------- reveal defaults (JS enhances) ---------- */
.reveal { opacity: 0; transform: translateY(34px); }

@media (prefers-reduced-motion: reduce) {
  .reveal { opacity: 1; transform: none; }
  .scroll-cue svg { animation: none; }
}

/* ---------- mobile ---------- */
@media (max-width: 900px) {
  .content { justify-content: center; padding-left: 20px; }
}

@media (max-width: 640px) {
  .nav { padding: 10px 16px; }
  .nav-links { gap: 14px; }
  .nav-links a:not(.nav-cta) { display: none; }
  .card.split { flex-direction: column; text-align: center; }
  .content { padding-top: 8vh; }
}
