@import url("https://fonts.googleapis.com/css2?family=Orbitron:wght@600;700;800&family=Outfit:wght@400;500;600;700&display=swap");

:root {
  --bg-top: #070312;
  --bg-mid: #120527;
  --bg-bottom: #1a0838;
  --surface: rgba(22, 10, 42, 0.72);
  --surface-strong: rgba(28, 12, 52, 0.88);
  --surface-border: rgba(255, 255, 255, 0.1);
  --text: #f7f5ff;
  --text-muted: rgba(236, 232, 255, 0.74);
  --cyan: #2ce8f5;
  --cyan-soft: rgba(44, 232, 245, 0.14);
  --cyan-glow: rgba(44, 232, 245, 0.32);
  --magenta: #ff3d85;
  --magenta-soft: rgba(255, 61, 133, 0.14);
  --magenta-glow: rgba(255, 61, 133, 0.28);
  --purple: #9b5cff;
  --yellow: #ffe566;
  --green: #4dff88;
  --focus: #a7f6ff;
  --font-display: "Orbitron", "SF Pro Display", system-ui, sans-serif;
  --font-body: "Outfit", "SF Pro Text", system-ui, sans-serif;
  --link-legal: #f6f0ff;
  --link-legal-hover: #ffffff;
  --radius: 1.1rem;
  --ease-out: cubic-bezier(0.22, 1, 0.36, 1);
}

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

html {
  scroll-behavior: smooth;
  -webkit-text-size-adjust: 100%;
}

html,
body {
  margin: 0;
  padding: 0;
  max-width: 100%;
  overflow-x: hidden;
}

body {
  font-family: var(--font-body);
  color: var(--text);
  background:
    radial-gradient(ellipse 90% 55% at 50% -10%, rgba(155, 92, 255, 0.22), transparent 55%),
    radial-gradient(circle at 12% 18%, rgba(255, 61, 133, 0.12), transparent 38%),
    radial-gradient(circle at 88% 8%, rgba(44, 232, 245, 0.14), transparent 36%),
    linear-gradient(180deg, var(--bg-top) 0%, var(--bg-mid) 42%, var(--bg-bottom) 100%);
  line-height: 1.6;
  min-height: 100vh;
  letter-spacing: 0.01em;
}

body::before {
  content: "";
  position: fixed;
  inset: 0;
  pointer-events: none;
  z-index: 0;
  opacity: 0.028;
  background-image: repeating-linear-gradient(
    0deg,
    transparent,
    transparent 3px,
    rgba(255, 255, 255, 0.55) 3px,
    rgba(255, 255, 255, 0.55) 4px
  );
}

.container {
  position: relative;
  z-index: 1;
  width: min(1120px, 92%);
  margin: 0 auto;
}

.skip-link {
  position: absolute;
  left: -9999px;
}

.skip-link:focus {
  left: 1rem;
  top: 1rem;
  background: #000;
  color: #fff;
  padding: 0.6rem 0.9rem;
  border-radius: 0.5rem;
  z-index: 1000;
}

.site-header {
  position: sticky;
  top: 0;
  background: rgba(7, 3, 18, 0.78);
  border-bottom: 1px solid rgba(44, 232, 245, 0.1);
  box-shadow: 0 8px 32px rgba(0, 0, 0, 0.28);
  z-index: 20;
}

.nav {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  padding: 0.95rem 0;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  color: var(--text);
  text-decoration: none;
}

.brand-mark {
  font-family: var(--font-display);
  font-weight: 800;
  font-size: 1.28rem;
  letter-spacing: 0.12em;
  background: linear-gradient(135deg, #ffffff 0%, #f4b8ff 42%, #ff7a4d 100%);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

.nav-links {
  list-style: none;
  display: flex;
  margin: 0;
  padding: 0;
  gap: 0.35rem 1.15rem;
  flex-wrap: wrap;
}

.nav-links a {
  color: var(--text-muted);
  text-decoration: none;
  font-size: 0.9rem;
  font-weight: 550;
  letter-spacing: 0.03em;
  overflow-wrap: anywhere;
  transition: color 0.2s var(--ease-out);
}

.nav-links a:hover {
  color: var(--cyan);
}

.lang-wrap {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  color: var(--text-muted);
  font-size: 0.85rem;
}

.lang-wrap select {
  background: rgba(255, 255, 255, 0.05);
  color: var(--text);
  border: 1px solid rgba(44, 232, 245, 0.22);
  border-radius: 999px;
  padding: 0.4rem 0.7rem;
  font-family: var(--font-body);
}

.hero {
  padding: 4.25rem 0 3rem;
}

.hero-grid {
  display: grid;
  grid-template-columns: 1.05fr 0.95fr;
  gap: 2rem;
  align-items: center;
}

.hero-grid > * {
  min-width: 0;
}

.hero-visual {
  position: relative;
  width: 100%;
  min-height: 360px;
  border-radius: calc(var(--radius) + 0.2rem);
  overflow: hidden;
  border: 1px solid rgba(255, 255, 255, 0.1);
  background:
    radial-gradient(ellipse 70% 45% at 50% 88%, rgba(255, 61, 133, 0.2), transparent 70%),
    radial-gradient(circle at 50% 35%, rgba(44, 232, 245, 0.1), transparent 50%),
    linear-gradient(165deg, rgba(18, 8, 40, 0.55) 0%, rgba(10, 4, 24, 0.98) 100%);
  box-shadow:
    0 24px 60px rgba(0, 0, 0, 0.42),
    inset 0 1px 0 rgba(255, 255, 255, 0.06);
}

.hero-stage {
  position: absolute;
  inset: 0;
  z-index: 1;
}

.hero-glow {
  position: absolute;
  border-radius: 50%;
  filter: blur(42px);
  pointer-events: none;
}

.hero-glow--cyan {
  width: 46%;
  height: 38%;
  top: 18%;
  left: 28%;
  background: rgba(44, 232, 245, 0.22);
  animation: heroPulse 7s ease-in-out infinite;
}

.hero-glow--magenta {
  width: 42%;
  height: 36%;
  bottom: 8%;
  right: 18%;
  background: rgba(255, 61, 133, 0.2);
  animation: heroPulse 7s ease-in-out infinite 1.2s;
}

.hero-horizon {
  position: absolute;
  left: -10%;
  right: -10%;
  bottom: -18%;
  height: 62%;
  background:
    repeating-linear-gradient(
      90deg,
      transparent,
      transparent 34px,
      rgba(44, 232, 245, 0.16) 34px,
      rgba(44, 232, 245, 0.16) 35px
    ),
    repeating-linear-gradient(
      0deg,
      transparent,
      transparent 28px,
      rgba(255, 61, 133, 0.1) 28px,
      rgba(255, 61, 133, 0.1) 29px
    );
  transform: perspective(420px) rotateX(62deg);
  transform-origin: center top;
  opacity: 0.55;
  mask-image: linear-gradient(180deg, rgba(0, 0, 0, 0.85), transparent 92%);
  -webkit-mask-image: linear-gradient(180deg, rgba(0, 0, 0, 0.85), transparent 92%);
  pointer-events: none;
}

.hero-title-stack {
  position: absolute;
  left: 50%;
  top: 50%;
  transform: translate(-50%, -50%);
  z-index: 3;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.35rem;
  text-align: center;
  pointer-events: none;
  width: max-content;
  max-width: 92%;
}

.hero-welcome {
  margin: 0;
  font-family: var(--font-display);
  font-size: clamp(0.68rem, 2.2vw, 0.82rem);
  font-weight: 700;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: rgba(246, 246, 255, 0.78);
  white-space: nowrap;
}

.hero-game-title {
  position: relative;
  display: inline-block;
  margin: 0;
  font-family: var(--font-display);
  font-size: clamp(2.6rem, 9vw, 3.6rem);
  font-weight: 800;
  letter-spacing: 0.1em;
  line-height: 1;
  white-space: nowrap;
  pointer-events: none;
}

.hero-game-title__outline,
.hero-game-title__fill {
  display: block;
}

.hero-game-title__outline {
  position: absolute;
  inset: 0;
  color: rgba(224, 245, 255, 0.9);
  text-shadow:
    -1px -1px 0 rgba(224, 245, 255, 0.9),
    0 -1px 0 rgba(224, 245, 255, 0.9),
    1px -1px 0 rgba(224, 245, 255, 0.9),
    -1px 0 0 rgba(224, 245, 255, 0.9),
    1px 0 0 rgba(224, 245, 255, 0.9),
    -1px 1px 0 rgba(224, 245, 255, 0.9),
    0 1px 0 rgba(224, 245, 255, 0.9),
    1px 1px 0 rgba(224, 245, 255, 0.9);
}

.hero-game-title__fill {
  position: relative;
  background: linear-gradient(
    180deg,
    #7aefff 0%,
    #c9f8ff 34%,
    #ffffff 48%,
    #ffffff 52%,
    #ff6bd1 58%,
    #ff2f78 78%,
    #6a1a8f 100%
  );
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
  color: transparent;
}

@keyframes heroPulse {
  0%,
  100% {
    opacity: 0.7;
    transform: scale(1);
  }
  50% {
    opacity: 1;
    transform: scale(1.08);
  }
}

.eyebrow {
  color: var(--cyan);
  text-transform: uppercase;
  letter-spacing: 0.16em;
  font-size: 0.74rem;
  font-weight: 650;
  margin-bottom: 0.7rem;
}

h1,
h2,
h3 {
  font-family: var(--font-display);
  line-height: 1.15;
  margin-top: 0;
  letter-spacing: 0.02em;
}

h1 {
  font-size: clamp(2.05rem, 4.4vw, 3.2rem);
  margin-bottom: 1rem;
  font-weight: 800;
  background: linear-gradient(135deg, #ffffff 0%, #e8d4ff 52%, #ffc2d8 100%);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

h2 {
  font-size: clamp(1.45rem, 2.8vw, 2.05rem);
  margin-bottom: 0.7rem;
  font-weight: 700;
}

.section-lead {
  color: var(--text-muted);
  max-width: 64ch;
  margin: 0 0 1.6rem;
  font-size: 1.04rem;
}

.lead {
  color: var(--text-muted);
  max-width: 52ch;
  font-size: 1.08rem;
  line-height: 1.65;
}

.cta-row {
  display: flex;
  gap: 0.8rem;
  flex-wrap: wrap;
  margin-top: 1.55rem;
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 999px;
  padding: 0.78rem 1.3rem;
  text-decoration: none;
  font-weight: 650;
  font-size: 0.94rem;
  letter-spacing: 0.02em;
  transition: transform 160ms var(--ease-out), box-shadow 160ms var(--ease-out),
    background 160ms var(--ease-out);
}

.btn:hover {
  transform: translateY(-2px);
}

.btn-primary {
  color: #041218;
  background: linear-gradient(180deg, #6ff7ff, var(--cyan));
  box-shadow: 0 8px 28px var(--cyan-glow);
}

.btn-secondary {
  color: var(--text);
  border: 1px solid rgba(255, 61, 133, 0.42);
  background: rgba(255, 61, 133, 0.08);
}

.hero-panel,
.card,
.step,
.legal-card,
.stat-pill {
  background: var(--surface);
  border: 1px solid var(--surface-border);
  border-radius: var(--radius);
  box-shadow: 0 12px 36px rgba(0, 0, 0, 0.28);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
}

.hero-panel {
  padding: 1.1rem 1.15rem;
}

.hero-panel h2 {
  font-size: 1.05rem;
  color: var(--cyan);
  margin-bottom: 0.55rem;
}

.hero-panel ol {
  margin: 0;
  padding-left: 1.2rem;
}

.hero-panel li {
  margin-bottom: 0.35rem;
  color: var(--text-muted);
}

.stat-row {
  display: flex;
  flex-wrap: wrap;
  gap: 0.55rem;
  margin-top: 1.25rem;
}

.stat-pill {
  padding: 0.4rem 0.85rem;
  font-size: 0.74rem;
  font-weight: 650;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--cyan);
  border-color: rgba(44, 232, 245, 0.24);
  background: rgba(44, 232, 245, 0.06);
  box-shadow: none;
  backdrop-filter: none;
}

.section {
  padding: 3.2rem 0;
}

.section.alt {
  background: linear-gradient(180deg, rgba(10, 5, 24, 0.55), rgba(10, 5, 24, 0));
  border-top: 1px solid rgba(255, 255, 255, 0.04);
  border-bottom: 1px solid rgba(255, 255, 255, 0.04);
}

.section-header {
  margin-bottom: 1.5rem;
}

.section-tag {
  display: inline-block;
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--magenta);
  margin-bottom: 0.5rem;
}

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

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

.card,
.step,
.legal-card {
  padding: 1.2rem 1.2rem 1.25rem;
  overflow-wrap: anywhere;
  transition: border-color 180ms var(--ease-out), transform 180ms var(--ease-out);
}

.card:hover,
.step:hover {
  border-color: rgba(255, 255, 255, 0.18);
  transform: translateY(-2px);
}

.card h3,
.step h3 {
  font-size: 0.98rem;
  margin-bottom: 0.5rem;
  letter-spacing: 0.03em;
}

.card p,
.step p {
  margin: 0;
  color: var(--text-muted);
  font-size: 0.94rem;
}

.card-icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 2.15rem;
  height: 2.15rem;
  border-radius: 0.65rem;
  font-size: 0.92rem;
  margin-bottom: 0.7rem;
  font-weight: 800;
}

.card.cyan {
  border-color: rgba(44, 232, 245, 0.22);
}
.card.cyan .card-icon {
  background: var(--cyan-soft);
  color: var(--cyan);
}
.card.magenta {
  border-color: rgba(255, 61, 133, 0.22);
}
.card.magenta .card-icon {
  background: var(--magenta-soft);
  color: var(--magenta);
}
.card.purple {
  border-color: rgba(155, 92, 255, 0.24);
}
.card.purple .card-icon {
  background: rgba(155, 92, 255, 0.14);
  color: #c9a4ff;
}
.card.yellow {
  border-color: rgba(255, 229, 102, 0.22);
}
.card.yellow .card-icon {
  background: rgba(255, 229, 102, 0.1);
  color: var(--yellow);
}
.card.green {
  border-color: rgba(77, 255, 136, 0.2);
}
.card.green .card-icon {
  background: rgba(77, 255, 136, 0.1);
  color: var(--green);
}

.rank-ladder {
  display: grid;
  gap: 0.55rem;
  margin-top: 0.65rem;
}

.rank-item {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  padding: 0.7rem 0.9rem;
  border-radius: 0.85rem;
  background: rgba(255, 255, 255, 0.035);
  border: 1px solid rgba(255, 255, 255, 0.07);
  font-size: 0.9rem;
}

.rank-badge {
  flex-shrink: 0;
  width: 2rem;
  height: 2rem;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 800;
  font-size: 0.72rem;
  font-family: var(--font-display);
}

.rank-badge.recruit {
  background: rgba(44, 232, 245, 0.16);
  color: var(--cyan);
}
.rank-badge.pilot {
  background: rgba(77, 255, 136, 0.14);
  color: var(--green);
}
.rank-badge.ace {
  background: rgba(255, 229, 102, 0.12);
  color: var(--yellow);
}
.rank-badge.commander {
  background: rgba(155, 92, 255, 0.18);
  color: #c9a4ff;
}
.rank-badge.legend {
  background: rgba(255, 165, 40, 0.16);
  color: #ffc857;
}

.rank-item span:last-child {
  color: var(--text-muted);
  margin-left: auto;
  font-size: 0.82rem;
}

.support-banner {
  margin-top: 1.75rem;
  padding: 1.25rem 1.35rem;
  border-radius: var(--radius);
  border: 1px solid rgba(44, 232, 245, 0.2);
  background: linear-gradient(135deg, rgba(44, 232, 245, 0.07), rgba(155, 92, 255, 0.1));
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 0.95rem;
}

.support-banner p {
  margin: 0;
  color: var(--text-muted);
  max-width: 52ch;
}

.site-footer {
  border-top: 1px solid rgba(44, 232, 245, 0.1);
  margin-top: 2rem;
  background: rgba(5, 2, 14, 0.55);
}

.footer-grid {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 1rem;
  padding: 1.4rem 0 1.8rem;
}

.footer-grid nav {
  display: flex;
  gap: 0.85rem 1.15rem;
  flex-wrap: wrap;
}

.footer-grid a {
  color: var(--text-muted);
  text-decoration: none;
  font-size: 0.9rem;
}

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

.legal-main {
  padding: 2.6rem 0 3.4rem;
}

.legal-main h1 {
  margin-bottom: 1.2rem;
  color: var(--text);
  background: none;
  -webkit-background-clip: unset;
  background-clip: unset;
}

.legal-grid {
  display: grid;
  gap: 0.95rem;
}

.legal-meta {
  color: var(--text-muted);
  font-size: 0.92rem;
  margin: -0.35rem 0 1.35rem;
}

.legal-card ul {
  margin: 0.35rem 0 0.65rem;
  padding-left: 1.2rem;
  color: var(--text-muted);
}

.legal-card li {
  margin-bottom: 0.45rem;
}

.legal-card li:last-child {
  margin-bottom: 0;
}

.legal-card a,
.legal-links a,
.legal-meta a {
  color: var(--link-legal);
  font-weight: 600;
  text-decoration: underline;
  text-decoration-thickness: 1.5px;
  text-underline-offset: 0.2em;
  text-decoration-color: rgba(255, 255, 255, 0.4);
}

.legal-card a:hover,
.legal-links a:hover,
.legal-meta a:hover {
  color: var(--link-legal-hover);
  text-decoration-color: var(--magenta);
}

.legal-links__sep {
  color: var(--text-muted);
  margin: 0 0.35rem;
}

a:focus-visible,
button:focus-visible,
select:focus-visible {
  outline: 2px solid var(--focus);
  outline-offset: 2px;
  border-radius: 0.45rem;
}

@media (max-width: 960px) {
  .hero-grid,
  .cards,
  .steps,
  .feature-grid,
  .feature-grid.cols-3 {
    grid-template-columns: 1fr;
  }

  .hero {
    padding-top: 2.8rem;
  }

  .hero-visual {
    min-height: 300px;
    order: -1;
  }

  .card:hover,
  .step:hover {
    transform: none;
  }
}

@media (max-width: 860px) {
  .nav {
    flex-direction: column;
    align-items: flex-start;
  }

  .lang-wrap {
    width: 100%;
    justify-content: space-between;
  }

  .lang-wrap select {
    max-width: 58%;
  }

  .nav-links {
    width: 100%;
  }

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

@media (max-width: 430px) {
  .container {
    width: min(1120px, 94%);
  }

  .hero {
    padding-top: 2.2rem;
  }

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

  .lang-wrap {
    flex-direction: column;
    align-items: flex-start;
    gap: 0.35rem;
  }

  .lang-wrap select {
    width: 100%;
    max-width: 100%;
  }

  .cta-row {
    width: 100%;
  }

  .btn {
    width: 100%;
    text-align: center;
  }
}

@media (min-width: 961px) {
  .site-header {
    backdrop-filter: blur(16px);
    -webkit-backdrop-filter: blur(16px);
  }
}

@media (max-width: 960px), (hover: none) and (pointer: coarse) {
  .btn:hover {
    transform: none;
  }

  .section {
    content-visibility: auto;
    contain-intrinsic-size: auto 480px;
  }
}

@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }

  .hero-glow {
    animation: none;
  }

  *,
  *::before,
  *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
  }
}
