:root {
  --bg: #080808;
  --bg-2: #111111;
  --panel: rgba(22, 22, 22, 0.76);
  --panel-strong: rgba(18, 18, 18, 0.9);
  --panel-soft: rgba(255, 255, 255, 0.025);
  --line: rgba(210, 210, 210, 0.12);
  --line-strong: rgba(220, 220, 220, 0.22);
  --text: #ececec;
  --muted: #a6a6a6;
  --accent: #bda98e;
  --accent-soft: #8c8172;
  --shadow: 0 30px 90px rgba(0,0,0,0.52);
  --radius: 10px;
  --clip: polygon(12px 0, 100% 0, 100% calc(100% - 12px), calc(100% - 12px) 100%, 0 100%, 0 12px);
  --max: 1680px;
}

* { box-sizing: border-box; }
html {
  scroll-behavior: smooth;
  background:
    radial-gradient(circle at 20% 18%, rgba(66, 54, 102, 0.22), transparent 24%),
    radial-gradient(circle at 78% 12%, rgba(52, 78, 122, 0.18), transparent 22%),
    linear-gradient(180deg, #06070c 0%, #090b12 38%, #06070b 100%);
}
body {
  margin: 0;
  color: var(--text);
  font-family: Inter, system-ui, sans-serif;
  background: transparent;
  line-height: 1.65;
  overflow-x: hidden;
  position: relative;
}

body::before {
  content: "";
  position: fixed;
  inset: 0;
  background: rgba(110, 12, 12, 0.10);
  pointer-events: none;
  z-index: 1;
}

.background-stack {
  position: fixed;
  inset: 0;
  pointer-events: none;
  z-index: 0;
  overflow: hidden;
}

.starfield-bg,
.shader-bg,
.core-planet-wrap,
.background-stack .ambient-noise,
.background-stack .grid-overlay,
.background-stack .orb {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  display: block;
  pointer-events: none;
}

.starfield-bg {
  z-index: 0;
  opacity: 1;
}

.core-planet-wrap {
  z-index: 1;
  overflow: hidden;
}

.core-planet {
  position: absolute;
  left: 50%;
  top: 50%;
  width: min(40vmin, 470px);
  aspect-ratio: 1;
  object-fit: cover;
  border-radius: 50%;
  transform: translate(-50%, -50%) scale(1.05);
  transform-origin: center;
  opacity: 0.76;
  filter: saturate(0.9) brightness(0.72) contrast(1.08) drop-shadow(0 0 30px rgba(255, 170, 102, 0.16));
  mix-blend-mode: screen;
  mask-image: radial-gradient(circle at center, rgba(255,255,255,0.98) 0 34%, rgba(255,255,255,0.88) 48%, rgba(255,255,255,0.34) 62%, transparent 76%);
  -webkit-mask-image: radial-gradient(circle at center, rgba(255,255,255,0.98) 0 34%, rgba(255,255,255,0.88) 48%, rgba(255,255,255,0.34) 62%, transparent 76%);
  will-change: transform;
}

.shader-bg {
  z-index: 2;
  opacity: 0;
  transition: opacity 0.6s ease;
}

.shader-bg.is-ready {
  opacity: 0.9;
}

.shader-bg.is-fallback {
  opacity: 0;
}

.shader-fallback .hero__video-fallback {
  opacity: 1;
}

.shader-fallback .ambient-noise,
.shader-fallback .grid-overlay,
.shader-fallback .orb {
  display: block;
}

.shader-status {
  position: fixed;
  right: 1rem;
  bottom: 1rem;
  z-index: 30;
  padding: 0.55rem 0.8rem;
  color: #f0d9aa;
  background: rgba(20, 10, 10, 0.82);
  border: 1px solid rgba(213, 184, 112, 0.35);
  border-radius: 6px;
  clip-path: var(--clip);
  font-size: 0.78rem;
  letter-spacing: 0.06em;
  text-transform: uppercase;
}

.shader-status[data-tone="loading"] {
  color: #f0d9aa;
}

.shader-status[data-tone="ready"] {
  color: #b5f2c4;
  border-color: rgba(114, 214, 143, 0.38);
}

.shader-status[data-tone="warn"] {
  color: #ffd9a8;
  border-color: rgba(255, 173, 92, 0.38);
}

.shader-status[data-tone="error"] {
  color: #ffb0b0;
  border-color: rgba(255, 99, 99, 0.4);
}

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

.ambient-noise,
.grid-overlay,
.orb {
  display: none;
}

.background-stack .ambient-noise,
.background-stack .grid-overlay,
.background-stack .orb {
  z-index: 3;
}

.background-stack .orb {
  z-index: 4;
}

.ambient-noise {
  opacity: 0.04;
  background-image:
    radial-gradient(circle at 25% 25%, rgba(255,255,255,0.12) 0 1px, transparent 1px),
    radial-gradient(circle at 75% 60%, rgba(255,255,255,0.12) 0 1px, transparent 1px);
  background-size: 180px 180px, 240px 240px;
  mix-blend-mode: screen;
}

.grid-overlay {
  opacity: 0.11;
  background-image:
    linear-gradient(rgba(255,255,255,0.025) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255,255,255,0.025) 1px, transparent 1px);
  background-size: 52px 52px;
  mask-image: linear-gradient(to bottom, rgba(255,255,255,0.45), transparent 82%);
}

.orb {
  filter: blur(70px);
  opacity: 0.11;
  animation: drift 14s ease-in-out infinite alternate;
}

.orb-a {
  background: radial-gradient(circle at 15% 20%, rgba(189, 169, 142, 0.55), transparent 18%);
}

.orb-b {
  background: radial-gradient(circle at 82% 26%, rgba(110, 110, 110, 0.45), transparent 18%);
  animation-duration: 17s;
}

@keyframes drift {
  0% { transform: scale(1) translate3d(0, 0, 0); }
  100% { transform: scale(1.08) translate3d(1.5%, -1%, 0); }
}

@keyframes fallbackDrift {
  0% {
    transform: scale(1) translate3d(0, 0, 0);
    filter: saturate(1) brightness(1);
  }
  100% {
    transform: scale(1.06) translate3d(0, -1.5%, 0);
    filter: saturate(1.1) brightness(1.08);
  }
}

.shell {
  width: min(calc(100% - 2rem), var(--max));
  margin: 0 auto;
  position: relative;
  z-index: 3;
}

.platform-bar {
  position: relative;
  z-index: 10;
  background: rgba(2, 6, 12, 0.84);
  border-bottom: 1px solid rgba(255,255,255,0.05);
  backdrop-filter: blur(16px);
  text-transform: uppercase;
  letter-spacing: 0.08em;
  font-size: 0.74rem;
}

.platform-bar__inner,
.main-nav__inner,
.site-footer__inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
}

.platform-bar__inner { padding: 0.55rem 0; }

.platform-links {
  display: flex;
  align-items: center;
  gap: 1rem;
  flex-wrap: wrap;
  color: var(--muted);
}

.audio-controls {
  display: inline-flex;
  align-items: center;
  gap: 0.7rem;
}

.volume-control {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  color: var(--accent);
}

.volume-control span {
  text-transform: uppercase;
  letter-spacing: 0.08em;
  font-size: 0.72rem;
}

.volume-control input[type="range"] {
  width: 96px;
  accent-color: #cda85d;
  cursor: pointer;
}

.platform-links a:hover,
.nav-links a:hover {
  color: var(--text);
}

.sound-toggle {
  color: var(--accent);
  border: 1px solid rgba(189, 169, 142, 0.26);
  background: rgba(189, 169, 142, 0.08);
  border-radius: 6px;
  clip-path: var(--clip);
  padding: 0.4rem 0.8rem;
  cursor: pointer;
  text-transform: uppercase;
  letter-spacing: 0.08em;
}

.main-nav {
  position: sticky;
  top: 0;
  z-index: 20;
  background: rgba(10, 10, 10, 0.76);
  border-bottom: 1px solid rgba(255,255,255,0.06);
  backdrop-filter: blur(20px);
  transition: background 0.25s ease, border-color 0.25s ease;
}

.main-nav.is-scrolled {
  background: rgba(12, 12, 12, 0.92);
  border-bottom-color: rgba(189, 169, 142, 0.18);
}

.main-nav__inner {
  display: grid;
  grid-template-columns: auto 1fr;
  align-items: center;
  padding: 1rem 0;
}

.brand {
  display: flex;
  align-items: center;
  gap: 0.85rem;
}

.brand-mark {
  width: 3rem;
  height: 3rem;
  border-radius: 6px;
  clip-path: var(--clip);
  display: grid;
  place-items: center;
  background: linear-gradient(135deg, rgba(92, 92, 92, 0.28), rgba(35, 35, 35, 0.8));
  border: 1px solid rgba(255,255,255,0.08);
  color: var(--text);
  font-family: Orbitron, sans-serif;
  font-weight: 800;
  box-shadow: var(--shadow);
}

.brand-copy {
  display: flex;
  flex-direction: column;
  text-transform: uppercase;
  letter-spacing: 0.08em;
}

.brand-copy strong {
  font-size: 1rem;
  color: var(--text);
}

.brand-copy em {
  font-style: normal;
  color: var(--muted);
  font-size: 0.72rem;
}

.nav-links {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 1.3rem;
  flex-wrap: wrap;
  color: var(--muted);
  text-transform: uppercase;
  letter-spacing: 0.08em;
  font-size: 0.84rem;
}

.nav-cta,
.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.45rem;
  border-radius: 6px;
  clip-path: var(--clip);
  text-transform: uppercase;
  letter-spacing: 0.08em;
  transition: transform 0.2s ease, border-color 0.2s ease, background 0.2s ease;
}

.nav-cta {
  padding: 0.85rem 1.15rem;
  background: linear-gradient(135deg, #d1b36a, #8f6a2f);
  color: #140f07;
  font-size: 0.82rem;
  font-weight: 700;
}

.button {
  padding: 0.95rem 1.25rem;
  border: 1px solid transparent;
  font-size: 0.84rem;
}

.button:hover,
.nav-cta:hover,
.card:hover,
.module-card:hover,
.news-card:hover,
.media-tile:hover,
.final-panel:hover {
  transform: translateY(-2px);
}

.button--primary {
  background: linear-gradient(135deg, #d5b870, #8d672b);
  color: #140f07;
  font-weight: 700;
}

.button--ghost {
  background: rgba(255,255,255,0.02);
  border-color: rgba(255,255,255,0.1);
  color: var(--text);
}

.hero {
  position: relative;
  min-height: calc(100vh - 110px);
  display: grid;
  align-items: stretch;
  overflow: hidden;
}

.hero__video-wrap,
.hero__shade,
.hero__scan {
  position: absolute;
  inset: 0;
}

.hero__video-wrap {
  overflow: hidden;
}

.hero__video {
  width: 100%;
  height: 100%;
  object-fit: cover;
  opacity: 0.22;
  transform: scale(1.05);
  filter: saturate(0.18) brightness(0.38) contrast(1.08);
}

.hero__video-fallback {
  position: absolute;
  inset: 0;
  background:
    radial-gradient(circle at 50% 50%, rgba(255, 196, 122, 0.2) 0 8%, rgba(255, 196, 122, 0.05) 10%, transparent 24%),
    radial-gradient(circle at 52% 49%, rgba(255, 120, 80, 0.12), transparent 18%),
    radial-gradient(circle at 18% 28%, rgba(160, 130, 255, 0.18), transparent 22%),
    radial-gradient(circle at 78% 18%, rgba(120, 180, 255, 0.14), transparent 20%),
    linear-gradient(180deg, rgba(5, 8, 16, 0.88), rgba(2, 3, 8, 0.98));
  background-size: 100% 100%, 100% 100%, 120% 120%, 120% 120%, 100% 100%;
  background-position: center, center, 0% 0%, 100% 0%, center;
  opacity: 0;
  animation: fallbackDrift 16s ease-in-out infinite alternate;
}

.hero__shade {
  background: transparent;
}

.hero__scan {
  background: transparent;
  opacity: 0;
}

.hero__content {
  min-height: inherit;
  display: grid;
  grid-template-columns: 1.08fr 0.92fr;
  gap: 1rem;
  align-items: center;
  padding: 3rem 0;
}

.hero__copy,
.hero__panel {
  position: relative;
  z-index: 1;
}

.eyebrow,
.section-kicker,
.card__label,
.news-card__meta {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  color: var(--accent);
  text-transform: uppercase;
  letter-spacing: 0.08em;
  font-size: 0.8rem;
}

.eyebrow {
  padding: 0.45rem 0.8rem;
  border-radius: 6px;
  clip-path: var(--clip);
  background: linear-gradient(135deg, rgba(213, 184, 112, 0.22), rgba(141, 103, 43, 0.18));
  border: 1px solid rgba(213, 184, 112, 0.34);
  color: #e3c98d;
  margin-bottom: 1rem;
}

h1, h2, h3, p { margin-top: 0; }

h1, h2, h3,
.brand-mark,
.nav-links,
.nav-cta,
.button,
.platform-bar,
.section-kicker,
.status-pill {
  font-family: Orbitron, Inter, sans-serif;
}

h1 {
  font-size: clamp(3.7rem, 8vw, 7.3rem);
  line-height: 0.88;
  letter-spacing: -0.05em;
  text-transform: uppercase;
  margin-bottom: 1rem;
}

h2 {
  font-size: clamp(2rem, 4vw, 3rem);
  line-height: 1;
  margin-bottom: 1rem;
}

h3 {
  font-size: 1.15rem;
  margin-bottom: 0.6rem;
}

.hero__copy p,
.section-head p,
.card p,
.module-card p,
.news-card p,
.final-panel p,
.status-card span,
.status-card .metric span {
  color: var(--muted);
}

.hero__copy p {
  font-size: 1.05rem;
  max-width: 42rem;
}

.hero__actions {
  display: flex;
  flex-wrap: wrap;
  gap: 1rem;
  margin-top: 2rem;
}

.hero__panel {
  display: flex;
  justify-content: flex-end;
}

.status-card,
.card,
.module-card,
.news-card,
.media-tile,
.final-panel,
.feature-ribbon__grid article {
  border-radius: var(--radius);
  clip-path: var(--clip);
  background: var(--panel);
  border: 1px solid var(--line);
  box-shadow: var(--shadow);
  backdrop-filter: blur(18px);
}

.status-card {
  width: min(100%, 520px);
  overflow: hidden;
}

.status-card__head,
.status-card__body {
  padding: 1.2rem;
}

.status-card__head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  border-bottom: 1px solid rgba(255,255,255,0.06);
  text-transform: uppercase;
  letter-spacing: 0.08em;
  font-size: 0.78rem;
  color: var(--muted);
}

.status-pill {
  color: var(--accent);
  font-size: 0.72rem;
}

.status-card__body {
  display: grid;
  gap: 1rem;
}

.metric strong {
  display: block;
  color: var(--text);
  margin-bottom: 0.2rem;
}

.feature-ribbon {
  margin-top: -2rem;
  position: relative;
  z-index: 2;
}

.feature-ribbon__grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 1rem;
}

.feature-ribbon__grid article {
  padding: 1rem 1.1rem;
}

.feature-ribbon__grid span,
.media-tile span {
  display: inline-block;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  font-size: 0.78rem;
  color: var(--accent);
  margin-bottom: 0.35rem;
}

.feature-ribbon__grid strong,
.media-tile strong {
  display: block;
  font-size: 1rem;
}

.content-block {
  padding: 4rem 0 0;
  position: relative;
  z-index: 1;
}

.content-block--wide {
  background: linear-gradient(180deg, rgba(255,255,255,0.015), rgba(255,255,255,0));
  border-top: 1px solid rgba(255,255,255,0.04);
  border-bottom: 1px solid rgba(255,255,255,0.04);
  margin-top: 4rem;
  padding: 4rem 0;
}

.section-head {
  max-width: 56rem;
  margin-bottom: 1.8rem;
}

.overview-grid {
  display: grid;
  grid-template-columns: 1.35fr 1fr 1fr;
  gap: 1rem;
}

.card,
.module-card,
.news-card,
.media-tile,
.final-panel {
  position: relative;
  overflow: hidden;
}

.card::before,
.module-card::before,
.news-card::before,
.media-tile::before,
.final-panel::before,
.feature-ribbon__grid article::before {
  content: "";
  position: absolute;
  inset: 0 auto 0 0;
  width: 3px;
  background: linear-gradient(180deg, rgba(189, 169, 142, 0.78), rgba(96, 96, 96, 0.4));
}

.card,
.module-card,
.news-card { padding: 1.2rem; }

.card--large {
  min-height: 260px;
  background:
    linear-gradient(180deg, rgba(28, 20, 20, 0.8), rgba(10, 8, 8, 0.92)),
    radial-gradient(circle at 74% 24%, rgba(189, 169, 142, 0.08), transparent 20%),
    radial-gradient(circle at 24% 70%, rgba(92, 16, 16, 0.12), transparent 24%);
}

.modules-layout {
  display: grid;
  grid-template-columns: 0.95fr 1.05fr;
  gap: 1.2rem;
  align-items: start;
}

.modules-grid,
.news-grid,
.media-grid {
  display: grid;
  gap: 1rem;
}

.modules-grid {
  grid-template-columns: repeat(2, minmax(0, 1fr));
}

.module-card__number {
  color: var(--accent);
  font-family: Orbitron, sans-serif;
  font-size: 1.5rem;
  margin-bottom: 0.6rem;
}

.news-grid {
  grid-template-columns: repeat(3, minmax(0, 1fr));
}

.media-grid {
  grid-template-columns: 1.45fr 1fr 1fr;
  grid-template-rows: 260px 260px;
}

.media-tile {
  min-height: 240px;
  padding: 1.2rem;
  display: flex;
  align-items: end;
  background:
    linear-gradient(180deg, rgba(30, 22, 22, 0.54), rgba(8, 6, 6, 0.9)),
    radial-gradient(circle at 62% 26%, rgba(189, 169, 142, 0.1), transparent 24%),
    radial-gradient(circle at 34% 76%, rgba(110, 18, 18, 0.12), transparent 24%);
}

.media-tile--hero {
  grid-row: span 2;
}

.final-panel {
  padding: 1.4rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
}

.site-footer {
  padding: 3rem 0 2rem;
  color: var(--muted);
  position: relative;
  z-index: 1;
}

.reveal {
  opacity: 0;
  transform: translateY(26px);
  transition: opacity 0.7s ease, transform 0.7s ease;
}

.reveal-delay-1 { transition-delay: 0.12s; }
.reveal-delay-2 { transition-delay: 0.24s; }

.reveal.is-visible {
  opacity: 1;
  transform: translateY(0);
}

@media (max-width: 1200px) {
  .hero__content,
  .modules-layout,
  .overview-grid,
  .feature-ribbon__grid,
  .news-grid,
  .media-grid {
    grid-template-columns: 1fr;
  }

  .media-grid {
    grid-template-rows: auto;
  }

  .media-tile--hero {
    grid-row: auto;
  }

  .hero {
    min-height: auto;
  }

  .hero__panel {
    justify-content: flex-start;
  }
}

@media (max-width: 760px) {
  .platform-bar,
  .nav-links,
  .nav-cta {
    display: none;
  }

  .audio-controls {
    flex-wrap: wrap;
  }

  .main-nav__inner,
  .site-footer__inner,
  .final-panel {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
  }

  .core-planet {
    width: min(38vmin, 240px);
  }

  h1 { font-size: 3rem; }
  .modules-grid { grid-template-columns: 1fr; }
  .feature-ribbon { margin-top: 1rem; }
}
