@import url('https://fonts.googleapis.com/css2?family=Aldrich&family=Space+Grotesk:wght@400;500;700&display=swap');

:root {
  --bg: #08131b;
  --panel: rgba(8, 24, 34, 0.88);
  --panel-strong: rgba(10, 30, 43, 0.96);
  --line: rgba(136, 214, 255, 0.24);
  --ink: #f5f0de;
  --muted: #a9bfd0;
  --signal: #ff8352;
  --signal-strong: #ffb15f;
  --accent: #6fe1d6;
  --accent-strong: #9ffbf1;
  --shadow: 0 24px 70px rgba(0, 0, 0, 0.38);
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  min-height: 100vh;
  font-family: "Space Grotesk", "Trebuchet MS", sans-serif;
  color: var(--ink);
  background:
    radial-gradient(circle at top left, rgba(255, 131, 82, 0.2), transparent 28%),
    radial-gradient(circle at top right, rgba(111, 225, 214, 0.18), transparent 32%),
    linear-gradient(180deg, #0b1720 0%, #071118 55%, #050c12 100%);
  background-attachment: fixed;
}

body::before {
  content: "";
  position: fixed;
  inset: 0;
  pointer-events: none;
  opacity: 0.12;
  background-image: linear-gradient(to bottom, transparent 0, transparent 6px, rgba(255, 255, 255, 0.2) 7px);
  background-size: 100% 8px;
}

a {
  color: inherit;
}

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

.topbar,
.hero,
.highlights,
.content-grid,
.footer {
  animation: rise-in 600ms ease both;
}

.topbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  margin-bottom: 26px;
  padding: 12px 16px;
  border: 1px solid var(--line);
  border-radius: 20px;
  background: rgba(7, 20, 29, 0.72);
  backdrop-filter: blur(16px);
  box-shadow: var(--shadow);
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  font-family: "Aldrich", sans-serif;
  font-size: 1rem;
  letter-spacing: 0.08em;
  text-decoration: none;
  text-transform: uppercase;
}

.brand img {
  width: 42px;
  height: 42px;
  border-radius: 12px;
  box-shadow: 0 0 28px rgba(255, 131, 82, 0.4);
}

.nav {
  display: inline-flex;
  flex-wrap: wrap;
  gap: 16px;
}

.nav a {
  color: var(--muted);
  text-decoration: none;
}

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

.hero {
  display: grid;
  grid-template-columns: minmax(0, 1.15fr) minmax(320px, 0.85fr);
  gap: 28px;
  align-items: center;
  margin-bottom: 28px;
}

.hero-copy,
.panel,
.card,
.footer {
  border: 1px solid var(--line);
  border-radius: 28px;
  background: linear-gradient(180deg, rgba(10, 30, 43, 0.92), rgba(6, 16, 23, 0.94));
  box-shadow: var(--shadow);
}

.hero-copy {
  padding: 34px;
}

.eyebrow {
  margin: 0 0 14px;
  color: var(--signal-strong);
  font-family: "Aldrich", sans-serif;
  font-size: 0.82rem;
  letter-spacing: 0.18em;
  text-transform: uppercase;
}

h1,
h2,
summary {
  font-family: "Aldrich", sans-serif;
}

h1 {
  margin: 0;
  font-size: clamp(2.4rem, 5vw, 4.6rem);
  line-height: 0.94;
  letter-spacing: 0.02em;
}

.hero-body {
  max-width: 58ch;
  margin: 20px 0 0;
  color: var(--muted);
  font-size: 1.06rem;
  line-height: 1.65;
}

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

.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 50px;
  padding: 0 20px;
  border-radius: 999px;
  font-weight: 700;
  text-decoration: none;
  transition: transform 180ms ease, box-shadow 180ms ease, border-color 180ms ease;
}

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

.button-primary {
  color: #041018;
  background: linear-gradient(135deg, var(--signal), #ffd27a);
  box-shadow: 0 12px 30px rgba(255, 131, 82, 0.28);
}

.button-secondary {
  color: var(--ink);
  border: 1px solid rgba(159, 251, 241, 0.45);
  background: rgba(8, 22, 31, 0.7);
}

.hero-stage {
  position: relative;
  min-height: 520px;
}

.frame-card {
  position: relative;
  min-height: 520px;
  overflow: hidden;
  border-radius: 28px;
  border: 1px solid rgba(136, 214, 255, 0.25);
  background:
    radial-gradient(circle at 20% 20%, rgba(255, 177, 95, 0.16), transparent 22%),
    radial-gradient(circle at 80% 20%, rgba(111, 225, 214, 0.18), transparent 24%),
    linear-gradient(180deg, rgba(4, 14, 21, 0.88), rgba(5, 12, 19, 0.95));
  box-shadow: var(--shadow);
}

.hud-frame {
  position: absolute;
  inset: 48px 36px 70px;
  width: calc(100% - 72px);
  height: auto;
  opacity: 0.7;
  filter: drop-shadow(0 14px 32px rgba(0, 0, 0, 0.3));
}

.ship,
.heart,
.barrier,
.button-strip {
  position: absolute;
  will-change: transform;
}

.ship {
  animation: drift 4.8s ease-in-out infinite;
}

.ship-idle {
  left: 12%;
  bottom: 32%;
  width: 38%;
}

.ship-firing {
  right: 7%;
  bottom: 16%;
  width: 44%;
  animation-delay: -1.2s;
}

.enemy-ship {
  top: 18%;
  right: 16%;
  width: 16%;
  opacity: 0.8;
}

.heart {
  width: 10%;
  filter: drop-shadow(0 0 18px rgba(255, 131, 82, 0.45));
  animation: pulse 2.1s ease-in-out infinite;
}

.heart-one {
  top: 15%;
  left: 12%;
}

.heart-two {
  top: 15%;
  left: 22%;
  animation-delay: 0.5s;
}

.barrier {
  width: 17%;
  opacity: 0.88;
}

.barrier-top {
  top: 7%;
  left: 46%;
}

.barrier-bottom {
  bottom: 7%;
  left: 22%;
}

.button-strip {
  width: 35%;
  opacity: 0.82;
}

.button-strip img {
  width: 100%;
  display: block;
}

.button-strip.left {
  left: -4%;
  bottom: -2%;
  transform: rotate(-8deg);
}

.button-strip.right {
  right: -2%;
  top: -1%;
  transform: rotate(7deg);
}

.highlights {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 18px;
  margin-bottom: 28px;
}

.card,
.panel,
.footer {
  padding: 24px;
}

.card h2,
.panel h2,
.footer h2 {
  margin: 0 0 12px;
  font-size: 1.35rem;
}

.card p,
.panel p,
.footer p,
.faq-list p,
.checklist {
  color: var(--muted);
  line-height: 1.65;
}

.content-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.1fr) minmax(300px, 0.9fr);
  gap: 18px;
}

.faq-list {
  display: grid;
  gap: 12px;
}

details {
  padding: 16px 18px;
  border-radius: 18px;
  border: 1px solid rgba(159, 251, 241, 0.12);
  background: rgba(255, 255, 255, 0.03);
}

summary {
  cursor: pointer;
  list-style: none;
  font-size: 1rem;
}

summary::-webkit-details-marker {
  display: none;
}

summary::after {
  content: "+";
  float: right;
  color: var(--signal-strong);
}

details[open] summary::after {
  content: "−";
}

.checklist {
  margin: 0;
  padding-left: 20px;
}

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

.status-block {
  margin-top: 22px;
  padding: 18px;
  border-radius: 20px;
  border: 1px solid rgba(255, 177, 95, 0.18);
  background: rgba(255, 177, 95, 0.06);
}

.status-label {
  display: block;
  margin-bottom: 8px;
  color: var(--signal-strong);
  font-family: "Aldrich", sans-serif;
  font-size: 0.82rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
}

.footer {
  display: flex;
  align-items: end;
  justify-content: space-between;
  gap: 18px;
  margin-top: 28px;
}

.footer-copy {
  max-width: 44ch;
}

.footer-copy p {
  margin: 0;
}

.footer-copy p + p {
  margin-top: 10px;
}

.footer-copy a,
.policy-panel a {
  color: var(--accent-strong);
}

.footer-copy a:hover,
.footer-copy a:focus-visible,
.policy-panel a:hover,
.policy-panel a:focus-visible {
  color: var(--signal-strong);
}

.policy-page {
  width: min(860px, 100%);
  margin: 0 auto;
}

.policy-panel {
  padding: 34px;
}

.policy-panel h1 {
  margin-bottom: 18px;
  font-size: clamp(2.2rem, 4vw, 3.6rem);
  line-height: 1;
}

.policy-panel h2 {
  margin: 28px 0 10px;
}

.policy-panel p,
.policy-panel li {
  color: var(--muted);
  line-height: 1.7;
}

.policy-meta {
  margin: 0;
}

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

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

@keyframes drift {
  0%,
  100% {
    transform: translateY(0) translateX(0);
  }
  50% {
    transform: translateY(-10px) translateX(6px);
  }
}

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

@keyframes rise-in {
  from {
    opacity: 0;
    transform: translateY(18px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@media (max-width: 960px) {
  .hero,
  .content-grid,
  .highlights,
  .footer {
    grid-template-columns: 1fr;
    display: grid;
  }

  .hero-stage {
    min-height: 420px;
  }

  .frame-card,
  .hero-copy {
    min-height: auto;
  }

  .footer {
    align-items: start;
  }
}

@media (max-width: 640px) {
  .page-shell {
    width: min(100% - 20px, 1180px);
    padding-top: 18px;
  }

  .topbar {
    align-items: start;
    flex-direction: column;
  }

  .nav {
    gap: 12px;
  }

  h1 {
    font-size: 2.5rem;
  }

  .hero-copy,
  .card,
  .panel,
  .footer {
    padding: 20px;
    border-radius: 22px;
  }

  .hero-stage,
  .frame-card {
    min-height: 340px;
  }

  .hud-frame {
    inset: 42px 16px 56px;
    width: calc(100% - 32px);
  }

  .ship-idle {
    width: 44%;
    left: 8%;
  }

  .ship-firing {
    width: 50%;
    right: 4%;
  }

  .enemy-ship {
    width: 18%;
  }
}
