:root {
  --ink: #f4fbff;
  --muted: #a9bdc9;
  --soft: #6f8293;
  --night: #03070d;
  --space: #07111e;
  --panel: rgba(9, 22, 36, 0.86);
  --panel-solid: #0b1724;
  --line: rgba(160, 226, 255, 0.18);
  --cyan: #4de8ff;
  --cyan-2: #12adc6;
  --magenta: #ff5bd6;
  --violet: #7447ff;
  --amber: #ffbe5c;
  --paper: #f6f8fb;
  --shadow: 0 24px 80px rgba(0, 0, 0, 0.42);
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  background: var(--night);
  color: var(--ink);
  font-family: "Segoe UI", Arial, sans-serif;
  line-height: 1.5;
}
a { color: inherit; text-decoration: none; }
img { display: block; max-width: 100%; }

.site-header {
  position: fixed;
  inset: 0 0 auto;
  z-index: 20;
  background: rgba(3, 7, 13, 0.78);
  border-bottom: 1px solid var(--line);
  backdrop-filter: blur(14px);
}
.nav-wrap {
  width: min(1180px, calc(100% - 40px));
  min-height: 64px;
  margin: 0 auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
}
.brand {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-weight: 850;
  font-size: 18px;
  color: #ffffff;
  white-space: nowrap;
}
.brand-mark {
  width: 34px;
  height: 34px;
  display: grid;
  place-items: center;
  border: 1px solid rgba(77, 232, 255, 0.7);
  background: linear-gradient(135deg, #06101e, #4de8ff 48%, #ff5bd6);
  border-radius: 8px;
  color: #03070d;
  font-weight: 950;
}
.nav-links {
  display: flex;
  align-items: center;
  gap: 24px;
  color: var(--muted);
  font-size: 14px;
}
.nav-links a:hover { color: var(--cyan); }
.nav-action {
  padding: 10px 16px;
  background: var(--cyan);
  color: #021017;
  border-radius: 8px;
  font-weight: 850;
}

.hero-console {
  min-height: 94vh;
  display: grid;
  grid-template-columns: minmax(0, 1fr) 390px;
  align-items: end;
  gap: 34px;
  padding: 116px max(20px, calc((100vw - 1180px) / 2)) 70px;
  background:
    linear-gradient(90deg, rgba(3, 7, 13, 0.96), rgba(3, 7, 13, 0.72) 46%, rgba(3, 7, 13, 0.16)),
    linear-gradient(180deg, rgba(3, 7, 13, 0.04), rgba(3, 7, 13, 0.92)),
    url("../assets/nebula-hero.png") center right / cover no-repeat;
}
.hero-copy-block { max-width: 680px; }
.eyebrow,
.section-kicker {
  margin: 0 0 10px;
  color: var(--cyan);
  font-weight: 850;
  text-transform: uppercase;
  font-size: 13px;
  letter-spacing: 0;
}
.hero-console h1 {
  margin: 0;
  color: #fff;
  font-size: 76px;
  line-height: 0.96;
  letter-spacing: 0;
}
.hero-copy {
  max-width: 580px;
  margin: 24px 0 0;
  color: var(--muted);
  font-size: 19px;
}
.cta-row {
  display: flex;
  flex-wrap: wrap;
  gap: 14px;
  margin-top: 32px;
}
.btn {
  min-height: 48px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  padding: 0 20px;
  border-radius: 8px;
  font-weight: 850;
  border: 1px solid rgba(255, 255, 255, 0.16);
  cursor: pointer;
}
.btn-primary { background: linear-gradient(135deg, #63f0ff, #18a8c5); color: #021017; }
.btn-secondary { background: rgba(255, 255, 255, 0.08); color: var(--ink); }
.btn-disabled { cursor: not-allowed; background: rgba(255, 255, 255, 0.12); color: var(--soft); }

.mission-panel {
  align-self: center;
  border: 1px solid rgba(77, 232, 255, 0.3);
  border-radius: 8px;
  background: linear-gradient(180deg, rgba(9, 22, 36, 0.92), rgba(9, 22, 36, 0.62));
  box-shadow: var(--shadow);
  padding: 22px;
  backdrop-filter: blur(12px);
}
.panel-topline {
  display: flex;
  justify-content: space-between;
  color: var(--muted);
  font-size: 13px;
  text-transform: uppercase;
}
.panel-topline strong { color: var(--cyan); }
.scan-ring {
  width: 190px;
  height: 190px;
  margin: 28px auto;
  display: grid;
  place-items: center;
  border-radius: 50%;
  background:
    radial-gradient(circle at center, #07111e 0 52%, transparent 53%),
    conic-gradient(var(--cyan) 0 72%, rgba(255,255,255,.1) 72% 100%);
  box-shadow: 0 0 50px rgba(77, 232, 255, 0.22);
}
.scan-ring span { font-size: 42px; font-weight: 900; }
.signal-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 10px;
}
.signal-grid div {
  min-height: 78px;
  padding: 12px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.045);
}
.signal-grid strong { display: block; font-size: 22px; color: #fff; }
.signal-grid span { color: var(--soft); font-size: 12px; }

.section { padding: 92px 0; }
.wrap { width: min(1180px, calc(100% - 40px)); margin: 0 auto; }
.section h2 { margin: 0; color: #fff; font-size: 42px; line-height: 1.1; }
.section-copy,
.section-head p { color: var(--muted); font-size: 17px; }
.centered { text-align: center; max-width: 760px; margin: 0 auto 34px; }
.dock-section { background: #050b14; }
.split-layout { display: grid; grid-template-columns: .92fr 1.08fr; gap: 40px; align-items: center; }
.route-board {
  border: 1px solid var(--line);
  border-radius: 8px;
  background: linear-gradient(180deg, rgba(12, 31, 50, .78), rgba(8, 18, 30, .86));
  box-shadow: var(--shadow);
  overflow: hidden;
}
.route-row {
  display: grid;
  grid-template-columns: 58px 1fr auto;
  gap: 16px;
  align-items: center;
  padding: 22px;
  border-bottom: 1px solid var(--line);
}
.route-row:last-child { border-bottom: 0; }
.route-row span { color: var(--cyan); font-weight: 900; }
.route-row strong { color: #fff; }
.route-row em { color: var(--soft); font-style: normal; font-size: 13px; }
.route-row.active { background: linear-gradient(90deg, rgba(77, 232, 255, .16), rgba(255, 91, 214, .08)); }
.systems-section {
  background:
    linear-gradient(180deg, rgba(116, 71, 255, 0.14), transparent 280px),
    #07111e;
}
.system-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 18px; }
.system-card {
  min-height: 280px;
  padding: 24px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.045);
  box-shadow: var(--shadow);
}
.system-card.highlight { background: linear-gradient(180deg, rgba(77, 232, 255, .16), rgba(255,255,255,.04)); }
.system-code {
  display: inline-flex;
  min-width: 46px;
  min-height: 34px;
  align-items: center;
  justify-content: center;
  border: 1px solid rgba(77, 232, 255, .45);
  border-radius: 8px;
  color: var(--cyan);
  font-weight: 900;
}
.system-card h3 { margin: 48px 0 12px; color: #fff; font-size: 24px; }
.system-card p { margin: 0; color: var(--muted); }
.briefing-section {
  background:
    linear-gradient(90deg, rgba(3, 7, 13, .95), rgba(3, 7, 13, .64)),
    url("../assets/nebula-hero.png") center / cover fixed no-repeat;
}
.briefing-layout { display: grid; grid-template-columns: 1fr 420px; gap: 34px; align-items: end; }
.briefing-main {
  padding: 32px;
  border-left: 4px solid var(--cyan);
  background: rgba(4, 11, 19, .72);
}
.briefing-main h2 { margin: 0 0 14px; font-size: 40px; }
.briefing-main p { color: var(--muted); }
.briefing-list { display: grid; gap: 12px; }
.briefing-list article {
  padding: 18px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: rgba(9, 22, 36, .84);
}
.briefing-list span { display: block; color: var(--magenta); font-size: 12px; font-weight: 900; text-transform: uppercase; }
.briefing-list strong { color: #fff; }
.download-band { padding: 40px 0; background: #050b14; border-top: 1px solid var(--line); }
.download-layout { display: grid; grid-template-columns: 1fr auto; gap: 22px; align-items: center; }
.download-layout h2 { margin: 0; color: #fff; font-size: 32px; }

.site-footer {
  padding: 34px 0;
  background: #02050a;
  border-top: 1px solid var(--line);
  color: var(--soft);
  font-size: 14px;
}
.footer-grid { display: grid; grid-template-columns: 1fr auto; gap: 24px; align-items: start; }
.footer-links { display: flex; gap: 18px; flex-wrap: wrap; color: var(--muted); }
.site-footer a { color: var(--cyan); }

.legal-page {
  padding-top: 96px;
  background: radial-gradient(circle at 20% 0%, rgba(77, 232, 255, .18), transparent 320px), var(--night);
  min-height: 100vh;
}
.legal-shell { width: min(940px, calc(100% - 40px)); margin: 0 auto; padding: 40px 0 80px; }
.legal-doc,
.contact-panel,
.pay-shell {
  border: 1px solid var(--line);
  border-radius: 8px;
  background: rgba(9, 22, 36, 0.94);
  box-shadow: var(--shadow);
}
.legal-doc { padding: 36px; }
.legal-doc h1,
.contact-panel h1 { margin: 0 0 10px; color: #fff; font-size: 42px; }
.legal-doc h2 { margin: 32px 0 12px; color: #fff; font-size: 23px; }
.legal-doc p,
.legal-doc li { color: var(--muted); }
.legal-doc a,
.contact-card a { color: var(--cyan); }
.legal-meta { color: var(--soft); margin-bottom: 28px; }
.contact-panel { padding: 32px; }
.contact-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 18px; margin-top: 26px; }
.contact-card,
.package-card,
.method-card { border: 1px solid var(--line); border-radius: 8px; background: rgba(255,255,255,.045); box-shadow: var(--shadow); }
.contact-card { padding: 22px; }
.contact-card h3 { margin: 18px 0 10px; color: #fff; font-size: 22px; }
.contact-card p { margin: 0; color: var(--muted); }

.pay-page {
  min-height: 100vh;
  padding-top: 96px;
  background:
    linear-gradient(90deg, rgba(3, 7, 13, 0.94), rgba(3, 7, 13, 0.66)),
    url("../assets/nebula-hero.png") center / cover fixed no-repeat;
}
.pay-shell { width: min(1180px, calc(100% - 40px)); margin: 0 auto 60px; overflow: hidden; }
.pay-store { width: min(1320px, calc(100% - 40px)); }
.pay-top { display: grid; grid-template-columns: 310px minmax(0, 1fr); gap: 0; }
.pay-side { padding: 34px; background: rgba(3, 7, 13, 0.82); border-right: 1px solid var(--line); }
.pay-side h1 { margin: 0 0 16px; color: #fff; font-size: 42px; line-height: 1.05; }
.pay-main { padding: 34px; }
.pay-store .pay-main { background: var(--paper); color: #33414c; }
.timeline { display: grid; gap: 14px; }
.timeline-row { display: grid; grid-template-columns: 90px 1fr; gap: 18px; padding: 18px 0; border-bottom: 1px solid var(--line); }
.timeline-row strong { color: var(--cyan); }
.timeline-row span { color: var(--muted); }
.product-title-row { display: flex; align-items: center; justify-content: space-between; gap: 24px; margin-bottom: 14px; }
.product-title-row h2 { margin: 0; color: #526371; font-size: 22px; }
.product-title-row h2 span { margin-right: 10px; }
.field { display: grid; gap: 8px; margin-bottom: 24px; }
.field label { color: #fff; font-weight: 700; }
.pay-store .field label { color: #314554; }
.field input { width: 100%; min-height: 46px; padding: 0 14px; border-radius: 8px; border: 1px solid var(--line); background: rgba(255,255,255,.08); color: var(--ink); outline: none; }
.pay-store .field input { border-color: #d5dee7; background: #fff; color: #25323a; }
.field input:focus { border-color: rgba(77, 232, 255, .8); }
.package-grid { display: grid; grid-template-columns: repeat(4, minmax(190px, 1fr)); gap: 20px 10px; }
.package-card { padding: 18px; cursor: pointer; transition: border-color .2s ease, transform .2s ease; }
.package-card:hover,
.package-card.active { border-color: rgba(77, 232, 255, .9); transform: translateY(-2px); }
.gem-package-card { min-height: 310px; display: flex; flex-direction: column; align-items: center; justify-content: space-between; border-color: #d5dee7; background: linear-gradient(180deg, #eef8ff 0%, #fff 52%, #fff 100%); box-shadow: none; }
.gem-package-card h3 { margin: 20px 0 10px; color: #506371; font-size: 22px; font-weight: 800; }
.gem-art { width: 132px; height: 96px; object-fit: contain; margin: auto 0; }
.package-price { width: 100%; min-height: 48px; display: flex; align-items: center; justify-content: center; border-radius: 6px; background: #edf1f5; color: #506371; font-size: 24px; font-weight: 900; margin-top: 18px; }
.custom-price-control { width: 100%; display: flex; align-items: center; gap: 8px; margin-top: 18px; }
.custom-currency { width: 28px; min-height: 48px; display: grid; place-items: center; border-radius: 6px; background: #edf1f5; color: #506371; font-weight: 900; }
.custom-stepper { min-width: 0; flex: 1; min-height: 48px; display: grid; grid-template-columns: 42px minmax(0, 1fr) 42px; border: 1px solid #d5dee7; border-radius: 6px; overflow: hidden; background: #fff; }
.custom-stepper button { border: 0; background: #eaf7fb; color: #215261; font-size: 22px; font-weight: 800; cursor: pointer; }
.custom-stepper input { min-width: 0; border: 0; padding: 0 8px; text-align: center; color: #215261; font-size: 16px; font-weight: 800; outline: none; }
.method-row { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 14px; margin: 26px 0; }
.method-card { min-height: 76px; padding: 16px; display: grid; place-items: center; border-color: #d5dee7; background: #fff; color: var(--muted); cursor: pointer; box-shadow: none; }
.method-card.active,
.method-card:hover { border-color: rgba(77, 232, 255, .9); outline: 2px solid rgba(77, 232, 255, .16); }
.payment-logo-img { max-width: 180px; max-height: 42px; object-fit: contain; }
.order-bar { display: flex; justify-content: space-between; align-items: center; gap: 16px; padding-top: 22px; border-top: 1px solid var(--line); }
.order-total strong { color: #fff; font-size: 28px; }
.pay-store .order-bar { border-top-color: #d5dee7; }
.pay-store .order-total { color: #526371; }
.pay-store .order-total strong { color: #274654; }
.status { min-height: 22px; color: var(--cyan-2); margin-top: 12px; }

@media (max-width: 900px) {
  .nav-wrap { width: min(100% - 28px, 1180px); }
  .nav-links { gap: 14px; font-size: 13px; }
  .hero-console { grid-template-columns: 1fr; min-height: 88vh; padding: 100px 20px 50px; background: linear-gradient(180deg, rgba(3,7,13,.72), rgba(3,7,13,.96)), url("../assets/nebula-hero.png") center / cover no-repeat; }
  .hero-console h1 { font-size: 50px; }
  .mission-panel { max-width: 420px; }
  .split-layout,
  .system-grid,
  .briefing-layout,
  .download-layout,
  .footer-grid,
  .contact-grid,
  .pay-top,
  .method-row { grid-template-columns: 1fr; }
  .package-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .pay-side { border-right: 0; border-bottom: 1px solid var(--line); }
}
@media (max-width: 640px) {
  .nav-wrap { min-height: 58px; }
  .brand { font-size: 16px; }
  .brand-mark { width: 30px; height: 30px; }
  .nav-links a:not(.nav-action) { display: none; }
  .hero-console h1 { font-size: 42px; }
  .section { padding: 62px 0; }
  .wrap,
  .legal-shell,
  .pay-shell { width: min(100% - 28px, 1180px); }
  .section h2,
  .legal-doc h1,
  .contact-panel h1 { font-size: 32px; }
  .legal-doc,
  .contact-panel,
  .pay-side,
  .pay-main { padding: 24px; }
  .route-row { grid-template-columns: 48px 1fr; }
  .route-row em { grid-column: 2; }
  .timeline-row { grid-template-columns: 58px 1fr; }
  .order-bar { align-items: stretch; flex-direction: column; }
  .product-title-row { align-items: flex-start; flex-direction: column; }
  .package-grid { grid-template-columns: 1fr; }
  .btn { width: 100%; }
}