:root {
  --bg: #08111f;
  --bg-soft: #101c33;
  --panel: rgba(8, 20, 37, 0.74);
  --panel-strong: rgba(13, 27, 48, 0.94);
  --line: rgba(149, 184, 255, 0.18);
  --text: #eff6ff;
  --muted: #a6b6cf;
  --red: #ff5d73;
  --blue: #56b4ff;
  --cyan: #68f0e9;
  --gold: #ffcd4f;
  --shadow: 0 30px 80px rgba(0, 0, 0, 0.42);
  --radius-lg: 32px;
  --radius-md: 24px;
  --radius-sm: 18px;
  --max-width: 1180px;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  font-family: "Space Grotesk", sans-serif;
  color: var(--text);
  background:
    radial-gradient(circle at top left, rgba(255, 93, 115, 0.16), transparent 32%),
    radial-gradient(circle at 85% 15%, rgba(86, 180, 255, 0.22), transparent 24%),
    radial-gradient(circle at 50% 100%, rgba(104, 240, 233, 0.14), transparent 26%),
    linear-gradient(180deg, #07101d 0%, #091423 48%, #060c15 100%);
}

body::before {
  content: "";
  position: fixed;
  inset: 0;
  background-image:
    linear-gradient(rgba(255, 255, 255, 0.03) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255, 255, 255, 0.03) 1px, transparent 1px);
  background-size: 72px 72px;
  mask-image: radial-gradient(circle at center, black 48%, transparent 100%);
  pointer-events: none;
  z-index: -1;
}

img,
video {
  display: block;
  max-width: 100%;
}

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

.page-shell {
  width: min(calc(100% - 32px), var(--max-width));
  margin: 0 auto;
  padding-bottom: 48px;
}

.topbar {
  position: sticky;
  top: 18px;
  z-index: 50;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  margin-top: 18px;
  padding: 14px 18px;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: rgba(6, 13, 24, 0.74);
  backdrop-filter: blur(18px);
  box-shadow: var(--shadow);
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  font-family: "Sora", sans-serif;
  font-weight: 700;
  letter-spacing: -0.04em;
}

.brand img {
  width: 42px;
  height: 42px;
  object-fit: cover;
  border-radius: 12px;
}

.nav {
  display: flex;
  align-items: center;
  gap: 22px;
  color: var(--muted);
  font-size: 0.95rem;
}

.nav a:hover,
.nav a:focus-visible {
  color: var(--text);
}

main {
  display: grid;
  gap: 32px;
  margin-top: 28px;
}

section {
  position: relative;
  overflow: clip;
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  background: var(--panel);
  backdrop-filter: blur(18px);
  box-shadow: var(--shadow);
}

.hero {
  display: grid;
  grid-template-columns: 0.95fr 1.05fr;
  gap: 28px;
  padding: 54px;
  min-height: 720px;
}

.hero::after {
  content: "";
  position: absolute;
  inset: auto -10% -20% auto;
  width: 420px;
  height: 420px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(86, 180, 255, 0.35), transparent 68%);
  filter: blur(10px);
}

.eyebrow {
  margin: 0 0 14px;
  color: var(--cyan);
  text-transform: uppercase;
  letter-spacing: 0.22em;
  font-size: 0.76rem;
  font-weight: 700;
}

.hero h1,
.section-heading h2,
.showcase h2,
.cta h2 {
  margin: 0;
  font-family: "Sora", sans-serif;
  line-height: 0.98;
  letter-spacing: -0.06em;
}

.hero h1 {
  max-width: 10ch;
  font-size: clamp(3rem, 7vw, 6.2rem);
}

.hero-text,
.story-card p,
.system-panel p,
.showcase p,
.cta p {
  color: var(--muted);
  line-height: 1.7;
  font-size: 1.02rem;
}

.hero-text {
  max-width: 58ch;
  margin: 22px 0 0;
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 14px;
  margin-top: 30px;
}

.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 52px;
  padding: 0 24px;
  border-radius: 999px;
  border: 1px solid transparent;
  font-weight: 700;
  transition:
    transform 180ms ease,
    border-color 180ms ease,
    background 180ms ease;
}

.button:hover,
.button:focus-visible {
  transform: translateY(-2px);
}

.button-primary {
  background: linear-gradient(135deg, var(--red), #ff8f57);
  color: #fffaf5;
  box-shadow: 0 18px 34px rgba(255, 93, 115, 0.22);
}

.button-secondary {
  border-color: rgba(255, 255, 255, 0.12);
  background: rgba(255, 255, 255, 0.04);
}

.hero-stats {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 14px;
  margin-top: 36px;
}

.hero-stats article,
.story-card,
.system-panel,
.gallery-card,
.cta,
.showcase-copy {
  border: 1px solid rgba(255, 255, 255, 0.08);
  background: rgba(255, 255, 255, 0.04);
}

.hero-stats article {
  padding: 18px;
  border-radius: 22px;
}

.hero-stats strong {
  display: block;
  margin-bottom: 6px;
  font-size: 2rem;
  font-family: "Sora", sans-serif;
}

.hero-stats span {
  color: var(--muted);
  font-size: 0.92rem;
}

.hero-visual {
  position: relative;
  display: grid;
  place-items: center;
  min-height: 660px;
}

.video-frame {
  position: relative;
  width: min(100%, 620px);
  padding: 10px;
  overflow: hidden;
  border-radius: 42px;
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.16), rgba(255, 255, 255, 0.05));
  box-shadow: var(--shadow);
}

.frame-glow {
  position: absolute;
  inset: -20px;
  border-radius: 50px;
  background: conic-gradient(from 180deg, rgba(255, 93, 115, 0.26), rgba(86, 180, 255, 0.26), rgba(255, 205, 79, 0.22), rgba(255, 93, 115, 0.26));
  filter: blur(34px);
  z-index: -1;
}

.video-frame img,
.video-frame video {
  display: block;
  width: calc(100% + 42px);
  max-width: none;
  margin: -16px -21px;
  aspect-ratio: 4 / 5.6;
  object-fit: cover;
  object-position: center top;
  border-radius: 32px;
  background: #04070d;
}

.floating-card {
  position: absolute;
  max-width: 220px;
  padding: 18px;
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 20px;
  background: rgba(4, 10, 20, 0.72);
  backdrop-filter: blur(16px);
}

.floating-card span {
  display: block;
  margin-bottom: 8px;
  font-family: "Sora", sans-serif;
  font-size: 1.1rem;
}

.floating-card p {
  margin: 0;
  color: var(--muted);
  line-height: 1.55;
}

.card-left {
  top: 13%;
  left: 0;
}

.card-right {
  right: 0;
  bottom: 14%;
}

.story,
.systems,
.gallery,
.showcase,
.cta {
  padding: 40px;
}

.section-heading {
  max-width: 760px;
}

.section-heading h2,
.showcase h2,
.cta h2 {
  font-size: clamp(2rem, 4vw, 3.4rem);
}

.story-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 18px;
  margin-top: 26px;
}

.story-card {
  padding: 28px;
  border-radius: var(--radius-md);
}

.story-card h3,
.system-panel h3 {
  margin: 0 0 10px;
  font-family: "Sora", sans-serif;
  font-size: 1.35rem;
}

.accent-red {
  box-shadow: inset 0 0 0 1px rgba(255, 93, 115, 0.18);
}

.accent-blue {
  box-shadow: inset 0 0 0 1px rgba(86, 180, 255, 0.18);
}

.accent-gold {
  box-shadow: inset 0 0 0 1px rgba(255, 205, 79, 0.18);
}

.systems-layout {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 18px;
  margin-top: 26px;
}

.system-panel {
  display: grid;
  grid-template-columns: 128px 1fr;
  align-items: center;
  gap: 18px;
  padding: 24px;
  border-radius: var(--radius-md);
}

.system-panel img {
  width: 100%;
  max-width: 128px;
  margin-inline: auto;
}

.tower-panel {
  align-items: stretch;
}

.tower-stack {
  display: flex;
  align-items: end;
  justify-content: center;
  gap: 8px;
}

.tower-stack img {
  max-width: 82px;
}

.gallery-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 18px;
  margin-top: 26px;
}

.gallery-card {
  display: grid;
  place-items: center;
  min-height: 0;
  padding: 16px;
  aspect-ratio: 1.45 / 1;
  border-radius: 28px;
  overflow: hidden;
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.05), rgba(255, 255, 255, 0.02)),
    rgba(6, 12, 23, 0.92);
}

.gallery-card.wide {
  grid-column: span 2;
}

.gallery-card-wide {
  aspect-ratio: 1.7 / 1;
}

.gallery-card img,
.showcase-media img {
  width: 100%;
  height: 100%;
  object-fit: contain;
  object-position: center;
}

.gallery-card img {
  border-radius: 20px;
  background: #05090f;
}

.showcase {
  display: grid;
  grid-template-columns: 0.95fr 1.05fr;
  gap: 20px;
  align-items: center;
  min-height: 420px;
}

.showcase-backdrop {
  position: absolute;
  inset: 0;
  background:
    radial-gradient(circle at 15% 15%, rgba(255, 205, 79, 0.16), transparent 22%),
    radial-gradient(circle at 75% 65%, rgba(86, 180, 255, 0.18), transparent 28%);
  pointer-events: none;
}

.showcase-copy {
  position: relative;
  z-index: 1;
  padding: 28px;
  border-radius: var(--radius-md);
}

.showcase-media {
  position: relative;
  z-index: 1;
  height: 100%;
  min-height: 340px;
  border-radius: var(--radius-md);
  overflow: hidden;
  border: 1px solid rgba(255, 255, 255, 0.1);
}

.cta {
  text-align: center;
}

.cta p {
  max-width: 720px;
  margin-inline: auto;
}

.cta .button {
  margin-top: 18px;
}

.cta-actions {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 14px;
  margin-top: 18px;
}

.policy-link:hover,
.policy-link:focus-visible {
  color: #a9fff7;
}

.policy-shell {
  padding-bottom: 72px;
}

.policy-main {
  display: grid;
  gap: 22px;
  margin-top: 28px;
}

.policy-hero,
.policy-card {
  padding: 36px;
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  background: var(--panel);
  backdrop-filter: blur(18px);
  box-shadow: var(--shadow);
}

.policy-hero h1,
.policy-card h2 {
  margin: 0;
  font-family: "Sora", sans-serif;
  letter-spacing: -0.05em;
}

.policy-hero h1 {
  max-width: 14ch;
  font-size: clamp(2.8rem, 6vw, 5rem);
  line-height: 1;
}

.policy-lead,
.policy-card p,
.policy-list li,
.policy-meta {
  color: var(--muted);
  line-height: 1.75;
  font-size: 1rem;
}

.policy-lead {
  max-width: 68ch;
  margin: 22px 0 0;
}

.policy-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 12px 24px;
  margin-top: 24px;
}

.policy-card {
  background: rgba(255, 255, 255, 0.04);
}

.policy-card h2 {
  margin-bottom: 14px;
  font-size: clamp(1.5rem, 3vw, 2rem);
}

.policy-list {
  margin: 14px 0 0;
  padding-left: 20px;
}

.policy-list li + li {
  margin-top: 10px;
}

.policy-link {
  color: var(--cyan);
}

.reveal {
  opacity: 0;
  transform: translateY(22px);
  transition:
    opacity 500ms ease,
    transform 500ms ease;
}

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

@media (max-width: 1024px) {
  .hero,
  .showcase,
  .systems-layout,
  .story-grid {
    grid-template-columns: 1fr;
  }

  .gallery-grid {
    grid-template-columns: 1fr 1fr;
  }

  .gallery-card.wide {
    grid-column: auto;
  }

  .gallery-card {
    aspect-ratio: 1.35 / 1;
  }

  .hero {
    min-height: auto;
  }

  .hero h1 {
    max-width: 12ch;
  }

  .hero-visual {
    min-height: 560px;
  }

  .video-frame {
    width: min(100%, 560px);
  }

  .policy-hero,
  .policy-card {
    padding: 28px;
  }
}

@media (max-width: 720px) {
  .page-shell {
    width: min(calc(100% - 20px), var(--max-width));
  }

  .topbar {
    position: static;
    flex-direction: column;
    align-items: stretch;
    border-radius: 28px;
  }

  .brand {
    justify-content: center;
  }

  .nav {
    justify-content: center;
    flex-wrap: wrap;
    gap: 14px;
  }

  .hero,
  .story,
  .systems,
  .gallery,
  .showcase,
  .cta {
    padding: 24px;
  }

  .hero-stats,
  .gallery-grid {
    grid-template-columns: 1fr;
  }

  .cta-actions {
    flex-direction: column;
    align-items: center;
  }

  .gallery-card,
  .gallery-card.wide {
    min-height: auto;
    aspect-ratio: auto;
  }

  .gallery-card img {
    height: auto;
  }

  .system-panel {
    grid-template-columns: 1fr;
    text-align: center;
  }

  .floating-card {
    position: static;
    max-width: none;
    margin-top: 14px;
  }

  .hero-visual {
    gap: 14px;
    min-height: auto;
  }

  .video-frame {
    width: 100%;
    border-radius: 30px;
  }

  .video-frame img,
  .video-frame video {
    width: calc(100% + 28px);
    margin: -10px -14px;
    border-radius: 22px;
  }

  .hero h1 {
    max-width: none;
    font-size: clamp(2.6rem, 15vw, 4rem);
  }

  .policy-hero h1 {
    max-width: none;
    font-size: clamp(2.2rem, 11vw, 3.4rem);
  }
}
