:root {
  color-scheme: dark;
  --bg: #030611;
  --panel: rgba(8, 17, 38, 0.76);
  --panel-strong: rgba(8, 18, 42, 0.94);
  --line: rgba(124, 220, 255, 0.2);
  --text: #effaff;
  --muted: #9cb8ca;
  --cyan: #66e7ff;
  --blue: #577bff;
  --violet: #a75cff;
  --pink: #ff4da6;
  --orange: #ff8a4c;
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body { margin: 0; min-width: 320px; color: var(--text); background: var(--bg); overflow-x: hidden; }
a { color: inherit; }
.space-canvas { position: fixed; inset: 0; z-index: -3; pointer-events: none; }
.aurora { position: fixed; z-index: -2; width: 58vw; height: 58vw; border-radius: 50%; filter: blur(90px); opacity: 0.18; pointer-events: none; }
.aurora-one { top: -28vw; left: -14vw; background: var(--violet); }
.aurora-two { top: 18vh; right: -32vw; background: var(--blue); }

.site-header { position: sticky; top: 0; z-index: 20; min-height: 72px; display: flex; align-items: center; justify-content: space-between; gap: 28px; padding: 14px clamp(22px, 5vw, 76px); border-bottom: 1px solid rgba(145, 222, 255, 0.13); background: rgba(3, 7, 18, 0.76); backdrop-filter: blur(18px); }
.brand { display: inline-flex; align-items: center; gap: 11px; color: #f4fbff; font-weight: 800; letter-spacing: 0.02em; text-decoration: none; }
.brand-mark { width: 25px; height: 25px; border: 2px solid var(--cyan); transform: rotate(45deg); box-shadow: 0 0 16px rgba(102, 231, 255, 0.58), inset 0 0 10px rgba(102, 231, 255, 0.35); }
nav { display: flex; align-items: center; gap: clamp(16px, 3vw, 34px); }
nav a { color: #b8cedb; font-size: 0.92rem; font-weight: 650; text-decoration: none; }
nav a:hover, nav a:focus-visible { color: #fff; }
nav .nav-play { padding: 9px 15px; border: 1px solid rgba(102, 231, 255, 0.5); border-radius: 7px; color: var(--cyan); background: rgba(30, 128, 172, 0.14); }

main { width: min(1240px, calc(100% - 44px)); margin: 0 auto; }
.hero { min-height: calc(100vh - 72px); display: grid; grid-template-columns: minmax(0, 1.02fr) minmax(400px, 0.98fr); align-items: center; gap: clamp(42px, 7vw, 94px); padding: 76px 0 90px; }
.eyebrow { margin: 0 0 14px; color: var(--cyan); font-size: 0.78rem; font-weight: 800; letter-spacing: 0.18em; text-transform: uppercase; }
h1, h2, h3, p { overflow-wrap: break-word; }
h1 { max-width: 760px; margin: 0; font-size: clamp(3.2rem, 7.1vw, 6.8rem); line-height: 0.94; letter-spacing: -0.058em; }
h1 span { color: transparent; background: linear-gradient(95deg, var(--cyan), #8b9cff 48%, #f05dff); background-clip: text; -webkit-background-clip: text; }
.hero-lead { max-width: 650px; margin: 27px 0 0; color: #b4c9d7; font-size: clamp(1rem, 1.65vw, 1.22rem); line-height: 1.7; }
.hero-actions { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 32px; }
.button { display: inline-flex; min-height: 48px; align-items: center; justify-content: center; padding: 12px 22px; border: 1px solid transparent; border-radius: 8px; font-weight: 800; text-decoration: none; transition: transform 160ms ease, border-color 160ms ease, box-shadow 160ms ease; }
.button:hover, .button:focus-visible { transform: translateY(-2px); }
.button-primary { color: #001018; background: linear-gradient(110deg, #64e8ff, #71a9ff); box-shadow: 0 0 26px rgba(81, 204, 255, 0.25); }
.button-secondary { border-color: rgba(141, 194, 225, 0.3); color: #dbeef8; background: rgba(20, 42, 70, 0.48); }
.honesty-note { max-width: 610px; margin: 19px 0 0; color: #738fa3; font-size: 0.88rem; line-height: 1.55; }

.sector-display { position: relative; width: min(100%, 550px); aspect-ratio: 1; justify-self: center; overflow: hidden; border: 1px solid rgba(107, 218, 255, 0.28); border-radius: 50%; background: radial-gradient(circle at 50% 52%, rgba(36, 85, 136, 0.38), rgba(4, 9, 23, 0.92) 62%); box-shadow: 0 0 90px rgba(53, 99, 205, 0.2), inset 0 0 80px rgba(9, 198, 255, 0.08); }
.sector-grid { position: absolute; inset: 0; opacity: 0.2; background-image: linear-gradient(rgba(114, 219, 255, 0.2) 1px, transparent 1px), linear-gradient(90deg, rgba(114, 219, 255, 0.2) 1px, transparent 1px); background-size: 42px 42px; mask-image: radial-gradient(circle, black, transparent 73%); }
.orbit { position: absolute; top: 50%; left: 50%; border: 1px dashed rgba(93, 223, 255, 0.5); border-radius: 50%; transform: translate(-50%, -50%); }
.orbit-outer { width: 72%; height: 72%; animation: rotate-orbit 34s linear infinite; }
.orbit-inner { width: 45%; height: 45%; border-color: rgba(198, 113, 255, 0.35); animation: rotate-orbit 23s linear infinite reverse; }
.station { position: absolute; top: 50%; left: 50%; width: 100px; height: 100px; transform: translate(-50%, -50%); }
.station-core { position: absolute; inset: 25px; border: 3px solid #b9f6ff; border-radius: 50%; background: radial-gradient(circle, white 0 8%, #5ce8ff 22%, #224e83 55%, #0c172b 56%); box-shadow: 0 0 26px #56dfff; }
.station::before, .station::after { content: ""; position: absolute; top: 48px; width: 100%; height: 4px; background: #a5c7d8; transform: rotate(45deg); }
.station::after { transform: rotate(-45deg); }
.station-array { position: absolute; top: 40px; width: 31px; height: 20px; border: 2px solid #6adfff; background: repeating-linear-gradient(90deg, #174d7a 0 5px, #43a9d3 6px 8px); }
.station-array-left { right: 82px; }
.station-array-right { left: 82px; }
.ship { position: absolute; top: 18%; left: 55%; width: 54px; height: 36px; transform: rotate(112deg); filter: drop-shadow(0 0 13px rgba(91, 229, 255, 0.75)); animation: ship-hover 3.8s ease-in-out infinite; }
.ship::before { content: ""; position: absolute; border-left: 52px solid #71e9ff; border-top: 18px solid transparent; border-bottom: 18px solid transparent; }
.ship span { position: absolute; z-index: 2; left: 13px; top: 13px; width: 13px; height: 10px; border-radius: 50%; background: white; box-shadow: 0 0 10px white; }
.hostile { position: absolute; width: 17px; height: 17px; border: 2px solid #ff5c83; transform: rotate(45deg); box-shadow: 0 0 12px #ff365f; }
.hostile-one { top: 64%; left: 18%; }
.hostile-two { top: 72%; right: 20%; border-color: #ff9a55; box-shadow: 0 0 12px #ff6c35; }
.sector-readout { position: absolute; right: 11%; bottom: 12%; display: grid; gap: 4px; text-align: right; font-family: ui-monospace, SFMono-Regular, Consolas, monospace; font-size: 0.69rem; letter-spacing: 0.08em; }
.sector-readout span { color: #7694aa; }
.sector-readout strong { color: #6cf0ca; }

.game-overview, .development { padding: 110px 0; }
.section-heading { max-width: 760px; margin-bottom: 44px; }
.section-heading h2, .final-cta h2 { margin: 0; font-size: clamp(2.3rem, 5vw, 4.6rem); line-height: 1.03; letter-spacing: -0.045em; }
.section-heading > p:last-child { color: var(--muted); font-size: 1.06rem; line-height: 1.7; }
.mode-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 20px; }
.mode-card { position: relative; min-height: 410px; padding: clamp(28px, 4vw, 48px); overflow: hidden; border: 1px solid var(--line); border-radius: 18px; background: linear-gradient(145deg, rgba(11, 25, 51, 0.91), rgba(5, 10, 24, 0.92)); }
.mode-card::after { content: ""; position: absolute; width: 270px; height: 270px; right: -120px; bottom: -150px; border-radius: 50%; filter: blur(30px); opacity: 0.22; }
.arcade-card::after { background: #317dff; }
.defense-card::after { background: #f04dcd; }
.mode-signal { position: absolute; top: 22px; right: 28px; color: rgba(193, 232, 255, 0.12); font-size: 5rem; font-weight: 900; }
.mode-label { margin: 0 0 50px; color: var(--cyan); font: 700 0.78rem/1 ui-monospace, monospace; letter-spacing: 0.16em; text-transform: uppercase; }
.defense-card .mode-label { color: #ff8dde; }
.mode-card h3 { max-width: 420px; margin: 0; font-size: clamp(1.75rem, 3vw, 2.5rem); letter-spacing: -0.03em; }
.mode-card > p:not(.mode-label) { max-width: 520px; color: #a6bdcc; font-size: 1rem; line-height: 1.65; }
.mode-card ul { display: grid; gap: 9px; margin: 24px 0 0; padding: 0; color: #c4d8e3; list-style: none; }
.mode-card li::before { content: ""; display: inline-block; width: 7px; height: 7px; margin-right: 10px; border-radius: 50%; background: var(--cyan); box-shadow: 0 0 8px var(--cyan); }
.defense-card li::before { background: #ff7ed8; box-shadow: 0 0 8px #ff7ed8; }

.development { display: grid; grid-template-columns: minmax(260px, 0.7fr) minmax(500px, 1.3fr); gap: clamp(50px, 8vw, 110px); align-items: start; }
.development-heading { position: sticky; top: 110px; }
.status-board { overflow: hidden; border: 1px solid var(--line); border-radius: 16px; background: rgba(5, 12, 27, 0.76); }
.status-board article { display: grid; grid-template-columns: 12px 1fr auto; align-items: center; gap: 17px; min-height: 108px; padding: 21px 25px; border-bottom: 1px solid rgba(129, 208, 243, 0.12); }
.status-board article:last-child { border-bottom: 0; }
.status-light { width: 9px; height: 9px; border-radius: 50%; }
.status-light.ready { background: #55edc0; box-shadow: 0 0 11px #55edc0; }
.status-light.planned { background: #ffba68; box-shadow: 0 0 11px rgba(255, 186, 104, 0.7); }
.status-board strong { font-size: 1rem; }
.status-board p { margin: 5px 0 0; color: #89a4b6; font-size: 0.88rem; line-height: 1.45; }
.status-word { color: #8ba8ba; font: 700 0.72rem/1 ui-monospace, monospace; letter-spacing: 0.11em; text-transform: uppercase; }
.infrastructure-status { grid-column: 2; margin: -82px 20px 0; color: #718c9e; font-size: 0.82rem; line-height: 1.5; }

.final-cta { margin: 90px 0 120px; padding: clamp(48px, 8vw, 92px); border: 1px solid rgba(101, 220, 255, 0.25); border-radius: 22px; background: radial-gradient(circle at 80% 20%, rgba(91, 77, 240, 0.24), transparent 38%), linear-gradient(120deg, rgba(11, 32, 61, 0.92), rgba(8, 11, 27, 0.94)); text-align: center; }
.final-cta p:not(.eyebrow) { max-width: 690px; margin: 22px auto 30px; color: #a9c0cf; font-size: 1.05rem; line-height: 1.7; }

footer { min-height: 86px; display: flex; align-items: center; justify-content: center; gap: 30px; padding: 20px; border-top: 1px solid rgba(126, 211, 244, 0.12); color: #6f899a; font-size: 0.84rem; }
footer a { color: #a7c5d6; }

@keyframes rotate-orbit { to { transform: translate(-50%, -50%) rotate(360deg); } }
@keyframes ship-hover { 50% { transform: translateY(-9px) rotate(112deg); } }

@media (max-width: 900px) {
  .hero { grid-template-columns: 1fr; padding-top: 80px; }
  .sector-display { width: min(88vw, 530px); }
  .development { grid-template-columns: 1fr; }
  .development-heading { position: static; }
  .infrastructure-status { grid-column: 1; margin: -30px 12px 0; }
}

@media (max-width: 680px) {
  .site-header { min-height: 64px; }
  .brand span:last-child { display: none; }
  nav a:not(.nav-play) { display: none; }
  main { width: min(100% - 28px, 1240px); }
  .hero { min-height: auto; padding: 68px 0 72px; }
  h1 { font-size: clamp(3rem, 16vw, 4.8rem); }
  .mode-grid { grid-template-columns: 1fr; }
  .mode-card { min-height: 360px; }
  .status-board article { grid-template-columns: 10px 1fr; }
  .status-word { grid-column: 2; }
  footer { flex-wrap: wrap; gap: 16px; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation-duration: 0.001ms !important; animation-iteration-count: 1 !important; scroll-behavior: auto !important; }
}
