:root {
  --bg: #131316;
  --pit: #0e0e11;
  --plate: #2a2a2d;
  --plate-alt: #201f22;
  --plate-2: #353438;
  --text: #e5e1e5;
  --text-muted: #c6c6c6;
  --outline: rgba(71, 71, 71, 0.35);
  --cyan: #00daf3;
  --cyan-dark: #004f58;
  --header-h: 76px;
}

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

html,
body {
  margin: 0;
  padding: 0;
  background: var(--bg);
  color: var(--text);
}

body {
  font-family: "Manrope", sans-serif;
  line-height: 1.6;
}

h1,
h2,
h3 {
  margin: 0 0 0.8rem;
  font-family: "Space Grotesk", sans-serif;
  text-transform: uppercase;
  letter-spacing: -0.03em;
  line-height: 1.1;
}

p {
  margin: 0 0 1rem;
  color: var(--text-muted);
}

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

body {
  --bs-body-bg: var(--bg);
  --bs-body-color: var(--text);
  --bs-body-font-family: "Manrope", sans-serif;
  --bs-card-bg: var(--plate);
  --bs-card-color: var(--text);
  --bs-border-color: rgba(71, 71, 71, 0.4);
  --bs-heading-color: #ffffff;
}

.nav-shell {
  position: fixed;
  inset: 0 0 auto 0;
  z-index: 20;
  height: var(--header-h);
  background: rgba(14, 14, 17, 0.84);
  backdrop-filter: blur(10px);
}

.nav-shell .container {
  height: 100%;
}

.nav-shell .navbar-collapse {
  background: transparent;
}

.brand {
  font-family: "Space Grotesk", sans-serif;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: -0.02em;
}

.nav-link {
  color: var(--text-muted);
}

.nav-link:hover,
.nav-link:focus {
  color: var(--cyan);
}

.btn-cyan {
  --bs-btn-color: #001f24;
  --bs-btn-bg: var(--cyan);
  --bs-btn-border-color: var(--cyan);
  --bs-btn-hover-color: #001f24;
  --bs-btn-hover-bg: #2de8ff;
  --bs-btn-hover-border-color: #2de8ff;
  --bs-btn-active-bg: #00bfd6;
  --bs-btn-active-border-color: #00bfd6;
  box-shadow: 0 0 26px rgba(0, 218, 243, 0.18);
}

.btn-outline-cyan {
  --bs-btn-color: var(--cyan);
  --bs-btn-border-color: rgba(0, 218, 243, 0.55);
  --bs-btn-hover-color: #001f24;
  --bs-btn-hover-bg: var(--cyan);
  --bs-btn-hover-border-color: var(--cyan);
  --bs-btn-active-color: #001f24;
  --bs-btn-active-bg: #00bfd6;
  --bs-btn-active-border-color: #00bfd6;
}

.hero-section {
  min-height: 100svh;
  position: relative;
  overflow: hidden;
  display: grid;
  align-items: center;
  padding-top: calc(var(--header-h) + 2rem);
}

.hero-content {
  z-index: 2;
}

.hero h1,
.hero-section h1,
.section-title {
  font-family: "Space Grotesk", sans-serif;
  text-transform: uppercase;
  letter-spacing: -0.03em;
  color: #fff;
}

.hero-kicker {
  text-transform: uppercase;
  font-weight: 700;
  letter-spacing: 0.1em;
  color: var(--cyan);
  font-size: 0.85rem;
  margin-bottom: 0.8rem;
}

.hero-copy {
  max-width: 64ch;
  color: var(--text-muted);
}

.hero-bg {
  position: absolute;
  inset: 0;
  background:
    radial-gradient(circle at 65% 20%, rgba(0, 218, 243, 0.25), transparent 35%),
    linear-gradient(180deg, rgba(14, 14, 17, 0.25), rgba(14, 14, 17, 0.95)),
    url("https://images.unsplash.com/photo-1478760329108-5c3ed9d495a0?auto=format&fit=crop&w=1920&q=80") center/cover no-repeat;
  filter: grayscale(1) contrast(1.05) brightness(0.5);
  transform-origin: center;
  animation: hero-pan 30s linear infinite alternate;
}

.hero-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, rgba(14, 14, 17, 0.25), rgba(14, 14, 17, 0.9) 72%, var(--bg));
}

.blue-star {
  position: absolute;
  top: 17%;
  left: 66%;
  width: 160px;
  aspect-ratio: 1;
  border-radius: 50%;
  background:
    radial-gradient(circle, rgba(150, 246, 255, 1) 0%, rgba(0, 218, 243, 1) 22%, rgba(0, 80, 92, 0.6) 54%, rgba(0, 0, 0, 0) 72%);
  filter: blur(0.8px);
  box-shadow:
    0 0 30px rgba(0, 218, 243, 0.8),
    0 0 85px rgba(0, 218, 243, 0.35);
  animation: star-pulse 4.2s ease-in-out infinite;
}

.blue-shards span {
  position: absolute;
  top: 22%;
  left: 65%;
  width: 6px;
  height: 6px;
  background: var(--cyan);
  box-shadow: 0 0 12px rgba(0, 218, 243, 0.9), 0 0 25px rgba(0, 218, 243, 0.6);
  opacity: 0;
  animation: shard-fly 8s linear infinite;
}

.blue-shards span:nth-child(1) { --x: 26vw; --y: -21vh; --d: 0s; }
.blue-shards span:nth-child(2) { --x: -28vw; --y: -24vh; --d: 0.7s; }
.blue-shards span:nth-child(3) { --x: 20vw; --y: 28vh; --d: 1.5s; }
.blue-shards span:nth-child(4) { --x: -20vw; --y: 25vh; --d: 2.3s; }
.blue-shards span:nth-child(5) { --x: 34vw; --y: 7vh; --d: 3.1s; }
.blue-shards span:nth-child(6) { --x: -34vw; --y: 12vh; --d: 4s; }
.blue-shards span:nth-child(7) { --x: 13vw; --y: -33vh; --d: 4.7s; }
.blue-shards span:nth-child(8) { --x: -11vw; --y: 35vh; --d: 5.4s; }
.blue-shards span:nth-child(9) { --x: 8vw; --y: 36vh; --d: 6.3s; }
.blue-shards span:nth-child(10) { --x: -5vw; --y: -37vh; --d: 7s; }

.blue-shards span {
  animation-delay: var(--d);
}

.section-surface {
  background: var(--bg);
}

.section-pit {
  background: var(--pit);
}

.panel-card {
  background: var(--plate);
  outline: 1px solid rgba(71, 71, 71, 0.2);
  border-radius: 0;
}

.panel-card-alt {
  background: var(--plate-alt);
}

.board-plate {
  background: var(--plate-2);
  padding: 2rem;
  min-height: 300px;
  display: grid;
  gap: 1.1rem;
  align-content: center;
  outline: 1px solid rgba(71, 71, 71, 0.18);
}

.board-line {
  background: rgba(0, 218, 243, 0.13);
  height: 12px;
}

.board-line span {
  display: block;
  height: 100%;
  background: var(--cyan);
  box-shadow: 0 0 24px rgba(0, 218, 243, 0.35);
}

.pillar {
  border-left: 4px solid var(--cyan);
  padding: 1rem 0 1rem 1rem;
  background: linear-gradient(90deg, rgba(0, 218, 243, 0.08), transparent 65%);
}

.section-intro {
  margin-top: -0.2rem;
  margin-bottom: 1.3rem;
}

.faction-tile {
  min-height: 180px;
  background: linear-gradient(180deg, #1b1b1e, #111114);
  outline: 1px solid rgba(71, 71, 71, 0.2);
  display: grid;
  place-items: end start;
  padding: 1rem;
  font-family: "Space Grotesk", sans-serif;
  text-transform: uppercase;
  letter-spacing: 0.03em;
}

.timeline-item {
  background: var(--plate);
  padding: 1rem;
  position: relative;
  min-height: 132px;
}

.timeline-item::before {
  content: "";
  width: 9px;
  height: 9px;
  background: var(--cyan);
  border-radius: 50%;
  position: absolute;
  top: -5px;
  left: 1rem;
  box-shadow: 0 0 18px rgba(0, 218, 243, 0.6);
}

.cta-box {
  max-width: 860px;
}

.form-dark {
  background: #121216;
  border-color: var(--outline);
  color: var(--text);
}

.form-dark:focus {
  background: #121216;
  border-color: var(--cyan);
  color: var(--text);
  box-shadow: 0 0 0 0.18rem rgba(0, 218, 243, 0.2);
}

.footer-shell {
  background: #0d0d10;
}

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

@keyframes hero-pan {
  from { transform: scale(1.03) translateX(-1.3%); }
  to { transform: scale(1.08) translateX(1.3%); }
}

@keyframes star-pulse {
  0%, 100% { transform: scale(1); }
  50% { transform: scale(1.06); }
}

@keyframes shard-fly {
  0% {
    transform: translate(-50%, -50%) scale(0.4);
    opacity: 0;
  }
  8% {
    opacity: 1;
  }
  100% {
    transform: translate(var(--x), var(--y)) scale(1.2);
    opacity: 0;
  }
}

@media (max-width: 1080px) {
  .nav-shell .navbar-collapse {
    background: rgba(14, 14, 17, 0.95);
    padding: 1rem;
    margin-top: 0.6rem;
    border: 1px solid rgba(71, 71, 71, 0.4);
  }
}

@media (max-width: 680px) {
  :root {
    --header-h: 68px;
  }

  .container {
    width: min(1200px, calc(100% - 1.5rem));
  }

  .hero-section {
    min-height: 88svh;
  }

  .blue-star {
    top: 14%;
    left: 60%;
    width: 100px;
  }

  .timeline-item {
    min-height: 0;
  }
}
