/* =====================================================
   MarsGroup — style.css
   Design system: dark space theme, accent orange-red
   ===================================================== */

/* ── Reset & base ───────────────────────────────── */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

:root {
  --bg:        #0b0c10;
  --bg-2:      #12131a;
  --bg-3:      #1a1b26;
  --surface:   #1e2030;
  --border:    rgba(255,255,255,.08);
  --accent:    #e05a2b;
  --accent-h:  #f07040;
  --accent-2:  #c44420;
  --text:      #e8eaf0;
  --muted:     #8b90a8;
  --white:     #ffffff;
  --radius:    12px;
  --radius-lg: 20px;
  --shadow:    0 4px 32px rgba(0,0,0,.55);
  --transition: .22s cubic-bezier(.4,0,.2,1);
  --font-body: 'Inter', system-ui, sans-serif;
  --font-head: 'Space Grotesk', 'Inter', system-ui, sans-serif;
}

html { scroll-behavior: smooth; font-size: 16px; }

body {
  font-family: var(--font-body);
  background: var(--bg);
  color: var(--text);
  line-height: 1.65;
  overflow-x: hidden;
}

a { color: inherit; text-decoration: none; }

h1, h2, h3 { font-family: var(--font-head); line-height: 1.2; }

/* ── Utilities ──────────────────────────────────── */
.container {
  width: min(1120px, 100% - 2.5rem);
  margin-inline: auto;
}

.section-header {
  text-align: center;
  margin-bottom: 3rem;
}
.section-header h2 {
  font-size: clamp(1.75rem, 4vw, 2.5rem);
  font-weight: 700;
  margin-bottom: .5rem;
}
.section-header p { color: var(--muted); font-size: 1.05rem; }

/* ── Buttons ────────────────────────────────────── */
.btn {
  display: inline-flex;
  align-items: center;
  gap: .4rem;
  padding: .7rem 1.5rem;
  border-radius: 8px;
  font-size: .95rem;
  font-weight: 600;
  cursor: pointer;
  transition: background var(--transition), color var(--transition),
              box-shadow var(--transition), transform var(--transition);
  border: 2px solid transparent;
  white-space: nowrap;
}
.btn:hover { transform: translateY(-2px); }
.btn:active { transform: translateY(0); }

.btn--primary {
  background: var(--accent);
  color: var(--white);
}
.btn--primary:hover {
  background: var(--accent-h);
  box-shadow: 0 6px 24px rgba(224,90,43,.35);
}

.btn--ghost {
  background: transparent;
  color: var(--text);
  border-color: var(--border);
}
.btn--ghost:hover {
  border-color: var(--accent);
  color: var(--accent);
}

.btn--sm { padding: .5rem 1rem; font-size: .85rem; }
.btn--full { width: 100%; justify-content: center; }
.btn--wide { width: 100%; justify-content: center; padding: .85rem; }

/* ── Badge ──────────────────────────────────────── */
.badge {
  display: inline-block;
  background: rgba(224,90,43,.15);
  color: var(--accent-h);
  border: 1px solid rgba(224,90,43,.35);
  border-radius: 100px;
  padding: .35rem 1rem;
  font-size: .8rem;
  font-weight: 600;
  letter-spacing: .04em;
  margin-bottom: 1.25rem;
}

/* ── Tag ────────────────────────────────────────── */
.tag {
  display: inline-block;
  background: rgba(224,90,43,.18);
  color: var(--accent-h);
  border-radius: 6px;
  padding: .2rem .6rem;
  font-size: .75rem;
  font-weight: 600;
  letter-spacing: .06em;
  text-transform: uppercase;
  margin-bottom: .6rem;
}

/* ── NAV ────────────────────────────────────────── */
.nav {
  position: fixed;
  inset: 0 0 auto 0;
  z-index: 100;
  backdrop-filter: blur(16px) saturate(160%);
  -webkit-backdrop-filter: blur(16px) saturate(160%);
  background: rgba(11,12,16,.72);
  border-bottom: 1px solid var(--border);
}
.nav__inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 64px;
}
.nav__logo {
  display: flex;
  align-items: center;
  gap: .55rem;
  font-family: var(--font-head);
  font-weight: 700;
  font-size: 1.1rem;
  letter-spacing: -.02em;
}
.nav__links {
  display: flex;
  align-items: center;
  gap: 1.75rem;
  font-size: .9rem;
  font-weight: 500;
}
.nav__links a:not(.btn) { color: var(--muted); transition: color var(--transition); }
.nav__links a:not(.btn):hover { color: var(--text); }

/* ── HERO ───────────────────────────────────────── */
.hero {
  position: relative;
  min-height: 100svh;
  display: flex;
  align-items: center;
  overflow: hidden;
}

.hero__bg {
  position: absolute;
  inset: 0;
  pointer-events: none;
}

/* Animated planet */
.hero__planet {
  position: absolute;
  right: -6vw;
  top: 50%;
  transform: translateY(-50%);
  width: clamp(300px, 48vw, 680px);
  aspect-ratio: 1;
  border-radius: 50%;
  background: radial-gradient(circle at 35% 35%, #c44218 0%, #7a1a05 45%, #200800 100%);
  box-shadow:
    inset -40px -40px 80px rgba(0,0,0,.7),
    0 0 120px rgba(196,68,32,.22),
    0 0 300px rgba(196,68,32,.08);
  animation: float 8s ease-in-out infinite;
}

/* Surface texture lines */
.hero__planet::after {
  content: '';
  position: absolute;
  inset: 10% 15% 30% 20%;
  border-radius: 50%;
  background:
    linear-gradient(130deg, rgba(255,120,60,.12) 0%, transparent 60%),
    radial-gradient(ellipse at 60% 40%, rgba(220,80,30,.15) 0%, transparent 55%);
}

/* Orbital ring */
.hero__ring {
  position: absolute;
  right: -6vw;
  top: 50%;
  transform: translateY(-50%) rotateX(72deg);
  width: clamp(360px, 58vw, 820px);
  aspect-ratio: 1;
  border-radius: 50%;
  border: 2px solid rgba(224,90,43,.18);
  box-shadow: 0 0 40px rgba(224,90,43,.08);
  animation: spin 40s linear infinite;
}
.hero__ring::before {
  content: '';
  position: absolute;
  inset: -1px;
  border-radius: 50%;
  border: 1px dashed rgba(224,90,43,.1);
}

/* Stars canvas */
.stars {
  position: absolute;
  inset: 0;
  background-image:
    radial-gradient(1px 1px at 15% 20%, rgba(255,255,255,.8) 0%, transparent 100%),
    radial-gradient(1px 1px at 80% 10%, rgba(255,255,255,.6) 0%, transparent 100%),
    radial-gradient(1.5px 1.5px at 35% 70%, rgba(255,255,255,.7) 0%, transparent 100%),
    radial-gradient(1px 1px at 60% 55%, rgba(255,255,255,.5) 0%, transparent 100%),
    radial-gradient(1px 1px at 90% 80%, rgba(255,255,255,.6) 0%, transparent 100%),
    radial-gradient(1px 1px at 5% 90%, rgba(255,255,255,.4) 0%, transparent 100%),
    radial-gradient(1px 1px at 70% 30%, rgba(255,255,255,.7) 0%, transparent 100%),
    radial-gradient(1.5px 1.5px at 25% 45%, rgba(255,255,255,.5) 0%, transparent 100%),
    radial-gradient(1px 1px at 50% 85%, rgba(255,255,255,.6) 0%, transparent 100%),
    radial-gradient(1px 1px at 42% 15%, rgba(255,255,255,.8) 0%, transparent 100%);
}

@keyframes float {
  0%, 100% { transform: translateY(-50%); }
  50%       { transform: translateY(calc(-50% - 18px)); }
}
@keyframes spin {
  from { transform: translateY(-50%) rotateX(72deg) rotateZ(0deg); }
  to   { transform: translateY(-50%) rotateX(72deg) rotateZ(360deg); }
}

.hero__content {
  position: relative;
  z-index: 2;
  max-width: 580px;
  padding-block: 8rem 5rem;
}
.hero__content h1 {
  font-size: clamp(2.8rem, 7vw, 5.2rem);
  font-weight: 700;
  letter-spacing: -.03em;
  margin-bottom: 1.25rem;
  line-height: 1.1;
}
.hero__content h1 em {
  font-style: normal;
  color: var(--accent);
}
.hero__sub {
  font-size: 1.1rem;
  color: var(--muted);
  margin-bottom: 2rem;
  max-width: 460px;
  line-height: 1.7;
}
.hero__cta { display: flex; gap: 1rem; flex-wrap: wrap; }

/* ── STATS STRIP ────────────────────────────────── */
.stats-strip {
  background: var(--bg-2);
  border-top: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
  padding: 2.5rem 0;
}
.stats-strip__grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 1.5rem;
}
.stat-card {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: .3rem;
}
.stat-card__value {
  font-family: var(--font-head);
  font-size: clamp(1.6rem, 4vw, 2.4rem);
  font-weight: 700;
  color: var(--accent-h);
}
.stat-card__label {
  font-size: .82rem;
  color: var(--muted);
  font-weight: 500;
  letter-spacing: .04em;
  text-align: center;
}

/* ── MISSIONS ───────────────────────────────────── */
.missions {
  padding: 6rem 0;
}
.missions__grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 1.5rem;
}
.mission-card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 1.75rem;
  display: flex;
  flex-direction: column;
  gap: 1.25rem;
  transition: border-color var(--transition), box-shadow var(--transition), transform var(--transition);
}
.mission-card:hover {
  border-color: rgba(224,90,43,.4);
  box-shadow: 0 8px 48px rgba(224,90,43,.12);
  transform: translateY(-4px);
}
.mission-card__head h3 {
  font-size: 1.3rem;
  font-weight: 700;
  margin-bottom: .3rem;
}
.mission-card__dest {
  font-size: .88rem;
  color: var(--muted);
}
.mission-card__details {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: .7rem;
  flex: 1;
}
.mission-card__details li {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding-bottom: .7rem;
  border-bottom: 1px solid var(--border);
}
.mission-card__details li:last-child { border-bottom: none; padding-bottom: 0; }
.detail-label { font-size: .82rem; color: var(--muted); }
.detail-value { font-size: .9rem; font-weight: 600; }
.detail-value.price { color: var(--accent-h); font-size: 1rem; }

/* ── WHY US ─────────────────────────────────────── */
.why {
  background: var(--bg-2);
  padding: 6rem 0;
  border-top: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
}
.why__grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(230px, 1fr));
  gap: 1.5rem;
}
.feature {
  background: var(--bg-3);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 1.75rem;
  transition: border-color var(--transition);
}
.feature:hover { border-color: rgba(224,90,43,.35); }
.feature__icon {
  font-size: 2rem;
  margin-bottom: 1rem;
  display: block;
}
.feature h3 { font-size: 1.1rem; font-weight: 600; margin-bottom: .5rem; }
.feature p { font-size: .88rem; color: var(--muted); line-height: 1.65; }

/* ── CONTACT ────────────────────────────────────── */
.contact { padding: 6rem 0; }
.contact__inner { max-width: 680px; margin-inline: auto; }

.contact-form { display: flex; flex-direction: column; gap: 1.1rem; }

.form-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1.1rem;
}

.form-group { display: flex; flex-direction: column; gap: .45rem; }
.form-group label {
  font-size: .85rem;
  font-weight: 600;
  color: var(--muted);
}
.optional { font-weight: 400; opacity: .6; }

.form-group input,
.form-group select,
.form-group textarea {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 8px;
  color: var(--text);
  font-family: var(--font-body);
  font-size: .95rem;
  padding: .7rem 1rem;
  transition: border-color var(--transition), box-shadow var(--transition);
  outline: none;
  appearance: none;
  resize: vertical;
}
.form-group input::placeholder,
.form-group textarea::placeholder { color: rgba(139,144,168,.5); }

.form-group input:focus,
.form-group select:focus,
.form-group textarea:focus {
  border-color: var(--accent);
  box-shadow: 0 0 0 3px rgba(224,90,43,.18);
}

.form-note {
  font-size: .85rem;
  color: var(--muted);
  min-height: 1.2em;
  text-align: center;
  transition: color var(--transition);
}
.form-note--success { color: #5dba7a; }
.form-note--error   { color: #e05a5a; }

/* ── FOOTER ─────────────────────────────────────── */
.footer {
  border-top: 1px solid var(--border);
  padding: 2rem 0;
  background: var(--bg-2);
}
.footer__inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  flex-wrap: wrap;
}
.footer__copy { font-size: .8rem; color: var(--muted); }
.footer__links { display: flex; gap: 1.25rem; }
.footer__links a {
  font-size: .82rem;
  color: var(--muted);
  transition: color var(--transition);
}
.footer__links a:hover { color: var(--text); }

/* ── Scrollbar ──────────────────────────────────── */
::-webkit-scrollbar { width: 6px; }
::-webkit-scrollbar-track { background: var(--bg); }
::-webkit-scrollbar-thumb { background: var(--surface); border-radius: 3px; }

/* ── Responsive ─────────────────────────────────── */
@media (max-width: 768px) {
  .nav__links { display: none; }   /* simplified — real impl would use hamburger */
  .stats-strip__grid { grid-template-columns: repeat(2, 1fr); }
  .form-row { grid-template-columns: 1fr; }
  .hero__planet { opacity: .35; right: -15vw; }
}

@media (max-width: 480px) {
  .stats-strip__grid { grid-template-columns: repeat(2, 1fr); gap: 1rem; }
  .hero__content h1 { font-size: 2.5rem; }
  .footer__inner { flex-direction: column; text-align: center; }
}

