/* ==========================================================================
   Star Voyage — main stylesheet
   Deep space-navy + starlight-gold theme
   ========================================================================== */

:root {
  --bg: #0D1420;
  --bg-2: #101A2C;
  --bg-deep: #0A0F1A;
  --panel: #1B2A4A;
  --panel-2: #16223C;
  --line: #24365E;
  --gold: #E8C15A;
  --gold-bright: #F3D27A;
  --gold-ink: #0D1420;
  --text: #E8EEF7;
  --muted: #B9C4D4;
  --radius: 16px;
  --shadow: 0 20px 50px -20px #000000;
}

* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  font-family: "Segoe UI", "Inter", system-ui, -apple-system, Roboto, "Helvetica Neue", Arial, sans-serif;
  font-size: 16px;
  line-height: 1.6;
  background-color: var(--bg);
  color: var(--text);
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
}

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

a {
  color: inherit;
}

.container {
  width: 100%;
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 24px;
}

.skip-link {
  position: absolute;
  left: -9999px;
  top: 0;
  background: var(--gold);
  color: var(--gold-ink);
  padding: 10px 16px;
  z-index: 200;
  font-weight: 700;
  text-decoration: none;
  border-radius: 0 0 8px 0;
}
.skip-link:focus {
  left: 0;
}

/* ---------- Buttons ---------- */
.btn {
  display: inline-block;
  padding: 14px 28px;
  border-radius: 10px;
  font-weight: 700;
  font-size: 16px;
  text-decoration: none;
  border: 1px solid transparent;
  cursor: pointer;
  transition: background-color 0.2s ease, border-color 0.2s ease, color 0.2s ease, transform 0.2s ease;
}
.btn:active {
  transform: translateY(1px);
}
.btn-gold {
  background: var(--gold);
  color: var(--gold-ink);
}
.btn-gold:hover {
  background: var(--gold-bright);
}
.btn-ghost {
  color: var(--text);
  border-color: var(--line);
}
.btn-ghost:hover {
  border-color: var(--gold);
  color: var(--gold);
}

/* ---------- Navigation (.orbit-nav) ---------- */
.orbit-nav {
  position: sticky;
  top: 0;
  z-index: 100;
  background: var(--bg-deep);
  border-bottom: 1px solid var(--line);
}
.nav-inner {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 24px;
  height: 72px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  position: relative;
}
.brand {
  display: flex;
  align-items: center;
  gap: 11px;
  text-decoration: none;
  color: var(--text);
  font-weight: 800;
  font-size: 1.15rem;
  letter-spacing: 0.02em;
}
.orbit-mark {
  position: relative;
  width: 24px;
  height: 24px;
  border: 2px solid var(--gold);
  border-radius: 50%;
  display: inline-block;
  flex-shrink: 0;
}
.orbit-dot {
  position: absolute;
  border-radius: 50%;
}
.orbit-dot.dot-1 {
  width: 6px;
  height: 6px;
  background: var(--gold);
  top: -3px;
  left: 50%;
  margin-left: -3px;
}
.orbit-dot.dot-2 {
  width: 5px;
  height: 5px;
  background: var(--text);
  bottom: 2px;
  left: -3px;
}
.orbit-dot.dot-3 {
  width: 5px;
  height: 5px;
  background: var(--muted);
  bottom: 2px;
  right: -3px;
}
.wordmark {
  white-space: nowrap;
}
.nav-links {
  display: flex;
  list-style: none;
  gap: 28px;
  align-items: center;
}
.nav-links a {
  color: var(--muted);
  text-decoration: none;
  font-weight: 600;
  font-size: 0.98rem;
  padding: 8px 2px;
  position: relative;
  transition: color 0.2s ease;
}
.nav-links a:hover {
  color: var(--text);
}
.nav-links a.active {
  color: var(--gold);
}
.nav-links a.active::after {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  bottom: -2px;
  height: 2px;
  background: var(--gold);
}
.nav-cta {
  background: var(--gold);
  color: var(--gold-ink);
  padding: 11px 20px;
  border-radius: 9px;
  font-weight: 700;
  text-decoration: none;
  font-size: 0.98rem;
  white-space: nowrap;
  transition: background-color 0.2s ease;
}
.nav-cta:hover {
  background: var(--gold-bright);
}
.nav-toggle {
  display: none;
  flex-direction: column;
  gap: 5px;
  background: none;
  border: none;
  cursor: pointer;
  padding: 8px;
}
.nav-toggle .bar {
  width: 24px;
  height: 2px;
  background: var(--text);
  border-radius: 2px;
}

/* ---------- Galaxy hero (.galaxy-hero) ---------- */
.galaxy-hero {
  background:
    radial-gradient(900px 520px at 78% -10%, #1B2A4A 0%, #0D1420 55%),
    var(--bg);
  padding: 88px 0 104px;
}
.hero-inner {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 24px;
  display: grid;
  grid-template-columns: 1.05fr 0.95fr;
  gap: 56px;
  align-items: center;
}
.hero-kicker {
  color: var(--gold);
  font-weight: 700;
  font-size: 0.82rem;
  text-transform: uppercase;
  letter-spacing: 0.16em;
  margin-bottom: 18px;
}
.hero-copy h1 {
  font-size: clamp(2.3rem, 4.6vw, 3.4rem);
  line-height: 1.08;
  letter-spacing: -0.01em;
  margin-bottom: 22px;
}
.hero-sub {
  color: var(--muted);
  font-size: 1.12rem;
  line-height: 1.65;
  max-width: 34em;
}
.hero-actions {
  display: flex;
  gap: 16px;
  margin-top: 34px;
  flex-wrap: wrap;
}
.hero-stats {
  display: flex;
  gap: 36px;
  margin-top: 44px;
  flex-wrap: wrap;
}
.hero-stat-num {
  display: block;
  font-size: 1.7rem;
  font-weight: 800;
  color: var(--gold);
}
.hero-stat-label {
  color: var(--muted);
  font-size: 0.9rem;
}

.hero-art {
  display: flex;
  justify-content: center;
}
.galaxy-panel {
  position: relative;
  width: 100%;
  max-width: 460px;
  aspect-ratio: 1 / 1;
  background: var(--panel-2);
  border: 1px solid var(--line);
  border-radius: 30px;
  overflow: hidden;
}
.galaxy-panel::before {
  content: "";
  position: absolute;
  inset: 0;
  background: radial-gradient(360px 360px at 50% 50%, #1B2A4A 0%, #101A2C 70%);
}
.ring {
  position: absolute;
  left: 50%;
  top: 50%;
  border-radius: 50%;
  transform: translate(-50%, -50%);
}
.ring-gold {
  width: 86%;
  height: 40%;
  border: 2px solid var(--gold);
  transform: translate(-50%, -50%) rotate(-18deg);
}
.ring-silver {
  width: 64%;
  height: 30%;
  border: 2px solid var(--muted);
  transform: translate(-50%, -50%) rotate(26deg);
}
.core {
  position: absolute;
  left: 50%;
  top: 50%;
  width: 18px;
  height: 18px;
  background: var(--gold);
  border-radius: 50%;
  transform: translate(-50%, -50%);
  box-shadow: 0 0 0 8px #1B2A4A, 0 0 40px 8px #E8C15A;
}
.planet {
  position: absolute;
  border-radius: 50%;
}
.planet-a {
  width: 13px;
  height: 13px;
  background: var(--text);
  top: 30%;
  left: 63%;
}
.planet-b {
  width: 10px;
  height: 10px;
  background: var(--gold);
  top: 53%;
  left: 22%;
}
.planet-c {
  width: 8px;
  height: 8px;
  background: var(--muted);
  top: 71%;
  left: 68%;
}
.planet-d {
  width: 6px;
  height: 6px;
  background: var(--text);
  top: 18%;
  left: 36%;
}
.sparkle {
  position: absolute;
  width: 9px;
  height: 9px;
  background: var(--gold);
  transform: rotate(45deg);
}
.sparkle-1 {
  top: 20%;
  left: 18%;
}
.sparkle-2 {
  top: 66%;
  left: 56%;
  background: var(--muted);
}
.sparkle-3 {
  top: 40%;
  left: 82%;
  background: var(--text);
}

/* ---------- Statement band ---------- */
.statement-band {
  background: var(--panel-2);
  padding: 96px 0;
}
.statement-inner {
  display: grid;
  grid-template-columns: 1fr 1.2fr;
  gap: 56px;
}
.section-kicker {
  color: var(--gold);
  font-weight: 700;
  font-size: 0.82rem;
  text-transform: uppercase;
  letter-spacing: 0.16em;
  margin-bottom: 16px;
}
.statement-heading h2 {
  font-size: clamp(1.8rem, 3vw, 2.4rem);
  line-height: 1.15;
}
.statement-body p {
  color: var(--muted);
  line-height: 1.75;
  margin-bottom: 18px;
}
.statement-points {
  margin-top: 26px;
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}
.point-chip {
  background: var(--panel);
  border: 1px solid var(--line);
  color: var(--text);
  padding: 8px 16px;
  border-radius: 999px;
  font-size: 0.9rem;
  font-weight: 600;
}

/* ---------- Section headings ---------- */
.section-head {
  max-width: 720px;
  margin-bottom: 48px;
}
.section-head h2 {
  font-size: clamp(1.8rem, 3vw, 2.4rem);
  line-height: 1.15;
  margin-bottom: 14px;
}
.section-lede {
  color: var(--muted);
  line-height: 1.7;
}

/* ---------- Star rows (.star-rows) ---------- */
.star-rows {
  padding: 96px 0;
  background: var(--bg);
}
.star-row-list {
  border-top: 1px solid var(--line);
}
.star-row {
  display: flex;
  gap: 24px;
  padding: 34px 0;
  border-bottom: 1px solid var(--line);
  align-items: flex-start;
}
.star-marker {
  width: 16px;
  height: 16px;
  background: var(--gold);
  flex-shrink: 0;
  margin-top: 7px;
}
.star-row h3 {
  font-size: 1.35rem;
  margin-bottom: 8px;
}
.star-row p {
  color: var(--muted);
  line-height: 1.7;
  max-width: 820px;
}

/* ---------- Orbit grid (.orbit-grid) ---------- */
.orbit-grid {
  padding: 96px 0;
  background: var(--bg-2);
}
.orbit-grid-list {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 24px;
}
.orbit-card {
  background: var(--panel);
  border-top: 3px solid var(--gold);
  border-radius: 14px;
  padding: 30px;
}
.card-tag {
  color: var(--gold);
  font-weight: 800;
  font-size: 0.82rem;
  letter-spacing: 0.12em;
}
.orbit-card h3 {
  font-size: 1.25rem;
  margin: 14px 0 10px;
}
.orbit-card p {
  color: var(--muted);
  line-height: 1.7;
}

/* ---------- Mission band (.mission-band) ---------- */
.mission-band {
  padding: 96px 0;
  background: linear-gradient(180deg, #1B2A4A 0%, #16223C 100%);
}
.mission-inner {
  display: grid;
  grid-template-columns: 0.9fr 1.1fr;
  gap: 56px;
  align-items: center;
}
.mission-intro h2 {
  font-size: clamp(1.8rem, 3vw, 2.4rem);
  line-height: 1.15;
}
.mission-stats {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 36px 40px;
}
.mission-num {
  display: block;
  font-size: 3rem;
  font-weight: 800;
  color: var(--gold);
  line-height: 1;
  border-bottom: 2px solid var(--gold);
  padding-bottom: 14px;
  margin-bottom: 14px;
}
.mission-label {
  color: var(--muted);
  font-size: 0.98rem;
}

/* ---------- FAQ ---------- */
.faq {
  padding: 96px 0;
  background: var(--bg);
}
.faq-inner {
  max-width: 820px;
}
.faq-item {
  background: var(--panel-2);
  border: 1px solid var(--line);
  border-radius: 12px;
  margin-bottom: 12px;
  overflow: hidden;
}
.faq-item summary {
  padding: 20px 24px;
  cursor: pointer;
  color: var(--text);
  font-weight: 700;
  list-style: none;
  position: relative;
  padding-right: 56px;
}
.faq-item summary::-webkit-details-marker {
  display: none;
}
.faq-item summary::after {
  content: "+";
  position: absolute;
  right: 24px;
  top: 50%;
  transform: translateY(-50%);
  color: var(--gold);
  font-size: 1.5rem;
  font-weight: 700;
  line-height: 1;
}
.faq-item[open] summary::after {
  content: "–";
}
.faq-item p {
  color: var(--muted);
  line-height: 1.7;
  padding: 0 24px 22px;
}

/* ---------- CTA band ---------- */
.cta {
  padding: 84px 0;
  background: linear-gradient(135deg, #1B2A4A 0%, #24355C 100%);
  border-top: 1px solid var(--line);
}
.cta-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 32px;
  flex-wrap: wrap;
}
.cta-inner h2 {
  font-size: clamp(1.7rem, 3vw, 2.3rem);
  margin-bottom: 10px;
}
.cta-inner p {
  color: var(--muted);
  line-height: 1.7;
  max-width: 40em;
}

/* ---------- Page hero (services / contact) ---------- */
.page-hero {
  padding: 88px 0 64px;
  background: linear-gradient(180deg, #16223C 0%, #0D1420 100%);
  text-align: center;
}
.page-hero h1 {
  font-size: clamp(2.1rem, 4vw, 3rem);
  line-height: 1.1;
  margin-bottom: 18px;
}
.page-hero .hero-sub {
  max-width: 720px;
  margin: 0 auto;
}

/* ---------- Services list ---------- */
.service-list {
  padding: 64px 0 96px;
  background: var(--bg);
}
.service-list-inner {
  max-width: 920px;
  display: grid;
  gap: 24px;
}
.service-card {
  background: var(--panel-2);
  border: 1px solid var(--line);
  border-left: 3px solid var(--gold);
  border-radius: 14px;
  padding: 36px;
}
.service-card h2 {
  font-size: 1.45rem;
  margin-top: 18px;
}
.service-card p {
  color: var(--muted);
  line-height: 1.75;
  margin-top: 12px;
}

/* ---------- Process overview ---------- */
.process-overview {
  padding: 96px 0;
  background: var(--panel-2);
}
.process-steps {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 24px;
}
.process-step {
  background: var(--panel);
  border-radius: 14px;
  padding: 28px;
}
.step-num {
  color: var(--gold);
  font-weight: 800;
  font-size: 1.5rem;
}
.process-step h3 {
  font-size: 1.15rem;
  margin: 12px 0 8px;
}
.process-step p {
  color: var(--muted);
  line-height: 1.7;
}

/* ---------- Contact ---------- */
.contact-split {
  padding: 64px 0 96px;
  background: var(--bg);
}
.contact-split-inner {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 48px;
  align-items: start;
}
.contact-info h2,
.contact-form-wrap h2 {
  font-size: 1.6rem;
  margin-bottom: 16px;
}
.contact-info > p {
  color: var(--muted);
  line-height: 1.7;
  margin-bottom: 8px;
}
.info-block {
  margin: 22px 0;
}
.info-block h3 {
  color: var(--gold);
  font-size: 0.82rem;
  text-transform: uppercase;
  letter-spacing: 0.12em;
  margin-bottom: 6px;
}
.info-block p {
  color: var(--muted);
  line-height: 1.7;
}
.info-block a {
  color: var(--text);
  text-decoration: none;
}
.info-block a:hover {
  color: var(--gold);
}
.mini-faq {
  margin-top: 32px;
}
.mini-faq h3 {
  color: var(--gold);
  font-size: 0.82rem;
  text-transform: uppercase;
  letter-spacing: 0.12em;
  margin-bottom: 12px;
}
.contact-form-wrap {
  background: var(--panel-2);
  border: 1px solid var(--line);
  border-radius: 18px;
  padding: 36px;
}
.field {
  margin-bottom: 18px;
}
.field label {
  display: block;
  color: var(--text);
  font-weight: 600;
  margin-bottom: 8px;
}
.field input,
.field textarea {
  width: 100%;
  background: var(--bg);
  border: 1px solid var(--line);
  color: var(--text);
  padding: 13px 14px;
  border-radius: 9px;
  font-size: 16px;
  font-family: inherit;
}
.field input::placeholder,
.field textarea::placeholder {
  color: var(--muted);
}
.field input:focus,
.field textarea:focus {
  border-color: var(--gold);
  outline: none;
}
.form-note {
  color: var(--muted);
  margin-top: 14px;
  line-height: 1.6;
}

/* ---------- Footer (.comet-footer) ---------- */
.comet-footer {
  background: var(--bg-deep);
  border-top: 1px solid var(--line);
  padding-top: 64px;
}
.footer-grid {
  display: grid;
  grid-template-columns: 1.5fr 1fr 1.2fr;
  gap: 48px;
  padding-bottom: 56px;
}
.footer-brand p {
  color: var(--muted);
  line-height: 1.7;
  margin-top: 18px;
  max-width: 34em;
}
.footer-col h3 {
  color: var(--text);
  font-size: 0.95rem;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  margin-bottom: 18px;
}
.footer-col ul {
  list-style: none;
}
.footer-col li {
  margin-bottom: 12px;
}
.footer-col a {
  color: var(--muted);
  text-decoration: none;
  transition: color 0.2s ease;
}
.footer-col a:hover {
  color: var(--gold);
}
.footer-contact li span {
  color: var(--muted);
  line-height: 1.6;
}
.comet-mark {
  position: relative;
  display: inline-block;
  width: 42px;
  height: 18px;
  flex-shrink: 0;
}
.comet-head {
  position: absolute;
  left: 0;
  top: 2px;
  width: 15px;
  height: 15px;
  background: var(--gold);
  border-radius: 50%;
}
.comet-tail {
  position: absolute;
  left: 11px;
  top: 7px;
  width: 30px;
  height: 4px;
  background: linear-gradient(90deg, var(--muted) 0%, transparent 100%);
  border-radius: 0 4px 4px 0;
}
.legal-bar {
  border-top: 1px solid var(--line);
  padding: 22px 0;
}
.legal-bar-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  flex-wrap: wrap;
}
.legal-bar-inner p {
  color: var(--muted);
  font-size: 0.92rem;
}
.legal-links {
  display: flex;
  gap: 24px;
}
.legal-links a {
  color: var(--muted);
  text-decoration: none;
  font-size: 0.92rem;
  transition: color 0.2s ease;
}
.legal-links a:hover {
  color: var(--gold);
}

/* ---------- Scroll reveal ---------- */
.fade-up {
  opacity: 0;
  transform: translateY(24px);
  transition: opacity 0.6s ease, transform 0.6s ease;
}
.fade-up.visible {
  opacity: 1;
  transform: none;
}

/* ---------- Responsive ---------- */
@media (max-width: 960px) {
  .hero-inner {
    grid-template-columns: 1fr;
    gap: 48px;
  }
  .hero-art {
    order: -1;
  }
  .galaxy-panel {
    max-width: 360px;
  }
  .statement-inner {
    grid-template-columns: 1fr;
    gap: 32px;
  }
  .mission-inner {
    grid-template-columns: 1fr;
    gap: 40px;
  }
  .process-steps {
    grid-template-columns: repeat(2, 1fr);
  }
  .contact-split-inner {
    grid-template-columns: 1fr;
  }
  .footer-grid {
    grid-template-columns: 1fr 1fr;
  }
}

@media (max-width: 720px) {
  .orbit-grid-list {
    grid-template-columns: 1fr;
  }
  .mission-stats {
    grid-template-columns: 1fr 1fr;
  }
  .footer-grid {
    grid-template-columns: 1fr;
    gap: 36px;
  }
}

@media (max-width: 860px) {
  .nav-toggle {
    display: flex;
  }
  .nav-cta {
    display: none;
  }
  .nav-links {
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    background: var(--bg-deep);
    flex-direction: column;
    align-items: stretch;
    gap: 0;
    padding: 8px 24px 20px;
    border-bottom: 1px solid var(--line);
    display: none;
  }
  .nav-links.open {
    display: flex;
  }
  .nav-links a {
    display: block;
    padding: 14px 0;
  }
}
