/* =========================================
   SPACE WATCH — PREMIUM APPLE / GLASS STYLE
========================================= */

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  font-family: -apple-system, BlinkMacSystemFont, "SF Pro Display", "Segoe UI", sans-serif;
  color: #ffffff;
  background: #03040a;
  min-height: 100vh;
  overflow-x: hidden;
}

a {
  color: inherit;
}

.space-background {
  position: fixed;
  inset: 0;
  z-index: -5;
  overflow: hidden;
  background:
    radial-gradient(circle at 50% 0%, rgba(93, 95, 239, 0.35), transparent 36%),
    radial-gradient(circle at 12% 18%, rgba(0, 224, 255, 0.18), transparent 28%),
    radial-gradient(circle at 90% 25%, rgba(255, 112, 204, 0.14), transparent 30%),
    linear-gradient(180deg, #071024 0%, #03040a 52%, #010207 100%);
}

.star-field {
  position: absolute;
  inset: 0;
  opacity: 0.45;
  background-image:
    radial-gradient(circle, rgba(255,255,255,0.9) 1px, transparent 1px),
    radial-gradient(circle, rgba(255,255,255,0.55) 1px, transparent 1px);
  background-size: 90px 90px, 140px 140px;
  background-position: 0 0, 40px 70px;
}

.orb {
  position: absolute;
  border-radius: 50%;
  filter: blur(6px);
  opacity: 0.78;
}

.orb-one {
  width: 420px;
  height: 420px;
  left: -140px;
  top: 110px;
  background: radial-gradient(circle, rgba(74, 222, 255, 0.28), transparent 65%);
}

.orb-two {
  width: 520px;
  height: 520px;
  right: -170px;
  top: 260px;
  background: radial-gradient(circle, rgba(124, 92, 255, 0.34), transparent 66%);
}

.orb-three {
  width: 340px;
  height: 340px;
  left: 35%;
  bottom: -150px;
  background: radial-gradient(circle, rgba(255, 112, 204, 0.18), transparent 64%);
}

/* HEADER */

.site-header {
  width: min(1180px, 92%);
  margin: 0 auto;
  padding: 22px 0;
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.logo {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  text-decoration: none;
  font-weight: 850;
  letter-spacing: -0.03em;
}

.logo-mark {
  width: 36px;
  height: 36px;
  display: grid;
  place-items: center;
  border-radius: 14px;
  background: linear-gradient(135deg, rgba(94, 231, 255, 0.95), rgba(124, 92, 255, 0.95));
  color: #050816;
  box-shadow: 0 16px 38px rgba(94, 231, 255, 0.22);
}

.header-nav {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 7px;
  border: 1px solid rgba(255, 255, 255, 0.13);
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.065);
  backdrop-filter: blur(18px);
}

.header-nav a {
  text-decoration: none;
  font-size: 0.9rem;
  color: #cbd5ff;
  padding: 9px 14px;
  border-radius: 999px;
}

.header-nav a:hover {
  background: rgba(255, 255, 255, 0.09);
  color: #ffffff;
}

/* HERO */

main {
  width: min(1180px, 92%);
  margin: 0 auto;
}

.hero-section {
  min-height: 760px;
  display: grid;
  grid-template-columns: 1.04fr 0.96fr;
  gap: 44px;
  align-items: center;
  padding: 40px 0 80px;
}

.hero-content {
  max-width: 690px;
}

.eyebrow,
.section-kicker {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 9px 14px;
  border-radius: 999px;
  color: #dfe7ff;
  background: rgba(255, 255, 255, 0.075);
  border: 1px solid rgba(255, 255, 255, 0.13);
  backdrop-filter: blur(18px);
  font-size: 0.9rem;
  font-weight: 750;
}

.hero-content h1 {
  margin: 22px 0 20px;
  font-size: clamp(3.4rem, 8vw, 7.6rem);
  line-height: 0.88;
  letter-spacing: -0.055em;
}

.hero-content h1 span {
  display: block;
  background: linear-gradient(135deg, #ffffff, #8eeeff 40%, #a996ff 78%);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

.hero-content p {
  max-width: 610px;
  margin: 0 0 30px;
  color: #b9c4e6;
  font-size: 1.18rem;
  line-height: 1.65;
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 14px;
  margin-bottom: 30px;
}

.primary-button,
.secondary-button,
.refresh-button {
  display: inline-flex;
  justify-content: center;
  align-items: center;
  min-height: 52px;
  padding: 0 22px;
  border-radius: 999px;
  text-decoration: none;
  border: none;
  cursor: pointer;
  font-weight: 850;
  font-size: 0.98rem;
}

.primary-button {
  color: #03040a;
  background: linear-gradient(135deg, #5ee7ff, #ffffff 48%, #a996ff);
  box-shadow:
    0 18px 44px rgba(94, 231, 255, 0.22),
    inset 0 1px 0 rgba(255, 255, 255, 0.75);
}

.secondary-button,
.refresh-button {
  color: #ffffff;
  background: rgba(255, 255, 255, 0.075);
  border: 1px solid rgba(255, 255, 255, 0.16);
  backdrop-filter: blur(18px);
}

.primary-button:hover,
.secondary-button:hover,
.refresh-button:hover {
  transform: translateY(-1px);
}

.trust-row {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 14px;
  max-width: 650px;
}

.trust-row div {
  padding: 16px;
  border-radius: 22px;
  background: rgba(255, 255, 255, 0.065);
  border: 1px solid rgba(255, 255, 255, 0.105);
  backdrop-filter: blur(18px);
}

.trust-row strong {
  display: block;
  font-size: 1.04rem;
}

.trust-row span {
  display: block;
  margin-top: 4px;
  color: #8f9bc5;
  font-size: 0.86rem;
}

/* HERO VISUAL */

.hero-visual {
  display: flex;
  justify-content: center;
}

.planet-card {
  position: relative;
  width: min(480px, 100%);
  aspect-ratio: 1;
  border-radius: 42px;
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.13), rgba(255, 255, 255, 0.055));
  border: 1px solid rgba(255, 255, 255, 0.16);
  box-shadow:
    0 34px 90px rgba(0, 0, 0, 0.45),
    inset 0 1px 0 rgba(255, 255, 255, 0.16);
  backdrop-filter: blur(24px);
  overflow: hidden;
}

.planet-glow {
  position: absolute;
  inset: 12%;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(94, 231, 255, 0.35), transparent 62%);
  filter: blur(18px);
}

.planet {
  position: absolute;
  width: 210px;
  height: 210px;
  left: 50%;
  top: 50%;
  transform: translate(-50%, -50%);
  border-radius: 50%;
  background:
    radial-gradient(circle at 30% 25%, #ffffff 0%, #9df2ff 16%, #5e7dff 43%, #25194f 78%);
  box-shadow:
    0 0 80px rgba(94, 231, 255, 0.36),
    inset -28px -24px 48px rgba(0, 0, 0, 0.38);
}

.orbit {
  position: absolute;
  left: 50%;
  top: 50%;
  border: 1px solid rgba(255, 255, 255, 0.18);
  border-radius: 50%;
  transform: translate(-50%, -50%) rotate(-18deg);
}

.orbit-one {
  width: 330px;
  height: 145px;
}

.orbit-two {
  width: 390px;
  height: 190px;
  transform: translate(-50%, -50%) rotate(22deg);
}

.mini-card {
  position: absolute;
  padding: 14px 16px;
  border-radius: 20px;
  background: rgba(5, 8, 22, 0.58);
  border: 1px solid rgba(255, 255, 255, 0.16);
  backdrop-filter: blur(20px);
  box-shadow: 0 18px 44px rgba(0, 0, 0, 0.34);
}

.mini-card span {
  display: block;
  color: #8f9bc5;
  font-size: 0.78rem;
}

.mini-card strong {
  display: block;
  margin-top: 4px;
  font-size: 1.18rem;
}

.mini-card small {
  display: block;
  margin-top: 4px;
  color: #c8d3f5;
}

.next-launch-card {
  left: 28px;
  top: 34px;
}

.countdown-card {
  right: 28px;
  bottom: 34px;
}

.rocket-trail {
  position: absolute;
  right: 62px;
  top: 96px;
  width: 74px;
  height: 74px;
  display: grid;
  place-items: center;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.105);
  border: 1px solid rgba(255, 255, 255, 0.16);
  box-shadow: 0 0 38px rgba(94, 231, 255, 0.26);
}

.rocket-trail span {
  font-size: 2rem;
  transform: rotate(-28deg);
}

/* SECTIONS */

.launch-section,
.feature-section,
.cta-section {
  padding: 78px 0;
}

.section-heading {
  display: flex;
  justify-content: space-between;
  align-items: end;
  gap: 24px;
  margin-bottom: 14px;
}

.section-heading.centred {
  justify-content: center;
  text-align: center;
}

.section-heading h2,
.cta-card h2 {
  margin: 14px 0 0;
  font-size: clamp(2.2rem, 4vw, 4.4rem);
  letter-spacing: -0.06em;
  line-height: 0.95;
}

.last-updated {
  margin: 0 0 22px;
  color: #8f9bc5;
}

.launch-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 18px;
}

.launch-card,
.feature-card,
.cta-card {
  position: relative;
  border-radius: 30px;
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.105), rgba(255, 255, 255, 0.052));
  border: 1px solid rgba(255, 255, 255, 0.135);
  box-shadow:
    0 28px 80px rgba(0, 0, 0, 0.32),
    inset 0 1px 0 rgba(255, 255, 255, 0.12);
  backdrop-filter: blur(22px);
}

.launch-card {
  padding: 24px;
}

.launch-card.featured {
  border-color: rgba(94, 231, 255, 0.24);
  box-shadow:
    0 28px 90px rgba(94, 231, 255, 0.12),
    0 28px 80px rgba(0, 0, 0, 0.32);
}

.launch-card-top {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  gap: 18px;
  margin-bottom: 20px;
}

.launch-provider {
  display: inline-block;
  margin-bottom: 8px;
  color: #8eeeff;
  font-weight: 850;
  font-size: 0.86rem;
}

.launch-card h3 {
  margin: 0;
  font-size: 1.45rem;
  letter-spacing: -0.035em;
}

.status-pill {
  flex-shrink: 0;
  border-radius: 999px;
  padding: 8px 12px;
  font-size: 0.78rem;
  font-weight: 850;
  border: 1px solid rgba(255, 255, 255, 0.16);
}

.status-pill.green {
  color: #9fffd0;
  background: rgba(70, 255, 170, 0.11);
  border-color: rgba(70, 255, 170, 0.24);
}

.status-pill.blue {
  color: #8eeeff;
  background: rgba(94, 231, 255, 0.10);
  border-color: rgba(94, 231, 255, 0.24);
}

.launch-info-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 14px;
  margin-bottom: 18px;
}

.launch-info-grid div {
  padding: 16px;
  border-radius: 20px;
  background: rgba(255, 255, 255, 0.065);
  border: 1px solid rgba(255, 255, 255, 0.08);
}

.launch-info-grid span {
  display: block;
  color: #8f9bc5;
  font-size: 0.78rem;
  margin-bottom: 6px;
}

.launch-info-grid strong {
  display: block;
  font-size: 1rem;
}

.launch-card p,
.feature-card p,
.cta-card p {
  color: #b9c4e6;
  line-height: 1.62;
}

.launch-link {
  display: inline-flex;
  margin-top: 10px;
  color: #8eeeff;
  font-weight: 850;
  text-decoration: none;
}

/* FEATURES */

.feature-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 18px;
  margin-top: 28px;
}

.feature-card {
  padding: 26px;
}

.feature-icon {
  display: inline-grid;
  place-items: center;
  width: 48px;
  height: 48px;
  margin-bottom: 18px;
  border-radius: 18px;
  background: rgba(255, 255, 255, 0.09);
  font-size: 1.45rem;
}

.feature-card h3 {
  margin: 0 0 10px;
  font-size: 1.28rem;
  letter-spacing: -0.035em;
}

/* CTA */

.cta-card {
  padding: 46px;
  text-align: center;
  overflow: hidden;
}

.cta-card::before {
  content: "";
  position: absolute;
  width: 320px;
  height: 320px;
  left: 50%;
  top: -190px;
  transform: translateX(-50%);
  border-radius: 50%;
  background: radial-gradient(circle, rgba(94, 231, 255, 0.28), transparent 66%);
  pointer-events: none;
}

.cta-card > * {
  position: relative;
}

.cta-card p {
  max-width: 680px;
  margin: 18px auto 26px;
}

/* FOOTER */

.site-footer {
  width: min(1180px, 92%);
  margin: 0 auto;
  padding: 28px 0 40px;
  color: #697493;
  text-align: center;
  font-size: 0.9rem;
}

/* MOBILE */

@media (max-width: 900px) {
  .header-nav {
    display: none;
  }

  .hero-section {
    min-height: auto;
    grid-template-columns: 1fr;
    padding: 34px 0 58px;
  }

  .hero-content {
    text-align: center;
    margin: 0 auto;
  }

  .hero-content p {
    margin-left: auto;
    margin-right: auto;
  }

  .hero-actions {
    justify-content: center;
  }

  .trust-row {
    grid-template-columns: 1fr;
  }

  .hero-visual {
    margin-top: 18px;
  }

  .planet-card {
    max-width: 430px;
  }

  .feature-grid {
    grid-template-columns: 1fr;
  }

  .section-heading {
    display: block;
    text-align: left;
  }

  .refresh-button {
    margin-top: 18px;
  }

  .launch-info-grid {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 560px) {
  main,
  .site-header,
  .site-footer {
    width: min(92%, 430px);
  }

  .site-header {
    padding: 18px 0;
  }

  .hero-content h1 {
    font-size: clamp(3.2rem, 17vw, 5.2rem);
  }

  .hero-content p {
    font-size: 1.04rem;
  }

  .primary-button,
  .secondary-button {
    width: 100%;
  }

  .hero-actions {
    gap: 10px;
  }

  .planet-card {
    border-radius: 34px;
  }

  .planet {
    width: 160px;
    height: 160px;
  }

  .orbit-one {
    width: 260px;
    height: 118px;
  }

  .orbit-two {
    width: 310px;
    height: 150px;
  }

  .mini-card {
    padding: 11px 13px;
    border-radius: 17px;
  }

  .next-launch-card {
    left: 16px;
    top: 18px;
  }

  .countdown-card {
    right: 16px;
    bottom: 18px;
  }

  .rocket-trail {
    right: 34px;
    top: 88px;
    width: 58px;
    height: 58px;
  }

  .launch-section,
  .feature-section,
  .cta-section {
    padding: 54px 0;
  }

  .launch-card,
  .feature-card {
    padding: 20px;
    border-radius: 24px;
  }

  .launch-card-top {
    display: block;
  }

  .status-pill {
    display: inline-block;
    margin-top: 14px;
  }

  .cta-card {
    padding: 30px 20px;
    border-radius: 26px;
  }
}

/* =========================================
   SPACEWATCH LIVE DATA EXTRAS
========================================= */

.schedule-note {
  margin-top: 12px;
  color: #8f9bc5 !important;
  font-size: 0.92rem;
}

.launch-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 14px;
  align-items: center;
  margin-top: 14px;
}

.launch-muted {
  color: #8f9bc5;
  font-weight: 700;
}

.secondary-link {
  opacity: 0.82;
}

.status-pill.red {
  color: #ffb4b4;
  background: rgba(255, 90, 90, 0.12);
  border-color: rgba(255, 90, 90, 0.28);
}

.error-card {
  border-color: rgba(255, 90, 90, 0.28);
}

/* =========================================
   SPACEWATCH MOBILE HERO VISUAL TIGHTENING
========================================= */

@media (max-width: 560px) {
  .hero-visual {
    margin-top: 6px;
  }

  .planet-card {
    width: 100%;
    max-width: 350px;
    aspect-ratio: 1 / 0.92;
    margin: 0 auto;
    border-radius: 30px;
  }

  .planet {
    width: 135px;
    height: 135px;
  }

  .orbit-one {
    width: 230px;
    height: 100px;
  }

  .orbit-two {
    width: 270px;
    height: 130px;
  }

  .mini-card {
    padding: 9px 11px;
    border-radius: 15px;
  }

  .mini-card span {
    font-size: 0.72rem;
  }

  .mini-card strong {
    font-size: 1rem;
  }

  .mini-card small {
    font-size: 0.75rem;
  }

  .next-launch-card {
    left: 16px;
    top: 16px;
    max-width: 210px;
  }

  .countdown-card {
    right: 16px;
    bottom: 16px;
    max-width: 210px;
  }

  .rocket-trail {
    right: 38px;
    top: 76px;
    width: 48px;
    height: 48px;
  }

  .rocket-trail span {
    font-size: 1.55rem;
  }

  .launch-section {
    padding-top: 38px;
  }
}

/* =========================================
   SPACEWATCH STRONG MOBILE HERO FIX
========================================= */

@media (max-width: 560px) {
  .hero-section {
    display: block;
    min-height: auto;
    padding: 24px 0 28px;
  }

  .hero-content {
    margin-bottom: 24px;
  }

  .trust-row {
    gap: 10px;
    margin-bottom: 28px;
  }

  .trust-row div {
    padding: 14px 16px;
    min-height: auto;
  }

  .hero-visual {
    display: block;
    width: 100%;
    margin: 0 auto 0;
  }

  .planet-card {
    position: relative;
    width: 100%;
    max-width: 340px;
    height: 340px;
    aspect-ratio: auto;
    margin: 0 auto;
    overflow: hidden;
  }

  .planet {
    width: 125px;
    height: 125px;
  }

  .orbit-one {
    width: 220px;
    height: 95px;
  }

  .orbit-two {
    width: 255px;
    height: 122px;
  }

  .next-launch-card {
    left: 14px;
    top: 14px;
    max-width: 205px;
  }

  .countdown-card {
    right: 14px;
    bottom: 14px;
    max-width: 205px;
  }

  .mini-card strong {
    font-size: 0.95rem;
    line-height: 1.15;
  }

  .mini-card small {
    font-size: 0.72rem;
    line-height: 1.2;
  }

  .rocket-trail {
    right: 36px;
    top: 78px;
    width: 46px;
    height: 46px;
  }

  .launch-section {
    clear: both;
    padding-top: 42px;
  }

  .section-heading h2 {
    font-size: clamp(2.1rem, 12vw, 3.2rem);
    line-height: 0.95;
  }
}