/* Starwonder homepage hero: text on the left, the Artemis II Earth on the right,
   both inside the 90% column, on a dark starfield.
   Load after home.css. Also sets Inter as the site font (org site only, not the Atlas). */

body {
  font-family: Inter, system-ui, -apple-system, "Segoe UI", sans-serif;
  -webkit-font-smoothing: antialiased;
}

/* Page content spans 90% of the screen width (92% on phones) */
.wrap {
  width: 90%;
  max-width: none;
  margin-left: auto;
  margin-right: auto;
  padding-left: 0;
  padding-right: 0;
}
@media (max-width: 700px) {
  .wrap { width: 92%; }
}

/* ---- Hero ---- */
.hero.hero-earth {
  position: relative;
  min-height: max(680px, 88vh);
  overflow: hidden;
  display: flex;
  align-items: center;
  padding: 0;
  text-align: left;
  background: radial-gradient(ellipse 70% 80% at 72% 50%, #0b1020 0%, #05070e 55%, #03040a 100%);
}

.hero-earth .hero-stars {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  display: block;
}

/* Two equal halves of the 90% column: text left, Earth right.
   Overrides any older hero width/centering rules in home.css. */
.hero.hero-earth .wrap.hero-inner {
  position: relative;
  z-index: 2;
  box-sizing: border-box;
  width: 90%;
  max-width: none;
  margin: 0 auto;
  padding: 64px 0;
  flex: 0 0 auto;
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
  align-items: center;
  gap: clamp(32px, 5vw, 96px);
  text-align: left;
}

.hero.hero-earth .hero-copy {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 24px;
  max-width: 600px;
  margin: 0;
  text-align: left;
}
.hero-earth h1 {
  margin: 0;
  font-size: clamp(34px, 3.4vw, 58px);
  line-height: 1.08;
  font-weight: 600;
  letter-spacing: -0.03em;
  text-wrap: balance;
}
.hero-earth .lede {
  margin: 0;
  font-size: 18px;
  line-height: 1.6;
  color: #b4bccd;
  max-width: 32em;
}
.hero-earth .hero-actions {
  display: flex;
  flex-wrap: wrap;
  justify-content: flex-start;
  gap: 14px;
  margin: 0;
  padding-top: 6px;
}

/* Earth: right-aligned in its half, never taller than the screen allows */
.hero-earth .hero-planet {
  margin: 0;
  justify-self: end;
  width: min(100%, 68vh);
  display: flex;
  flex-direction: column;
  gap: 20px;
}
.hero-earth .hero-planet picture {
  position: relative;
  display: block;
}
/* faint blue atmosphere glow behind the planet */
.hero-earth .hero-planet picture::before {
  content: "";
  position: absolute;
  inset: -8%;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(110,160,255,.22) 0%, rgba(110,160,255,.08) 52%, rgba(110,160,255,0) 70%);
  pointer-events: none;
}
.hero-earth .hero-planet img {
  position: relative;
  display: block;
  width: 100%;
  height: auto;
  animation: hero-float 14s ease-in-out infinite alternate;
}
@keyframes hero-float {
  from { transform: translateY(-6px); }
  to   { transform: translateY(6px); }
}
@media (prefers-reduced-motion: reduce) {
  .hero-earth .hero-planet img { animation: none; }
}

.hero-earth .hero-caption {
  margin: 0;
  text-align: right;
  font-size: 13px;
  line-height: 1.5;
  color: #8a92a5;
}
.hero-earth .hero-caption strong { color: #d7dce6; font-weight: 600; }

/* ---- Mission: thin label on the left, one large statement on the right ---- */
.mission .mission-inner {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 2fr);
  gap: clamp(32px, 5vw, 96px);
  align-items: start;
}
.mission .eyebrow {
  margin: 0;
  padding-top: 0.6em;
  font-weight: 400;
}
.mission .mission-statement {
  margin: 0;
  max-width: 34em;
  font-size: clamp(22px, 2.2vw, 34px);
  line-height: 1.4;
  font-weight: 500;
  letter-spacing: -0.015em;
  color: #e6e9f0;
  text-wrap: pretty;
}
@media (max-width: 860px) {
  .mission .mission-inner { grid-template-columns: minmax(0, 1fr); gap: 16px; }
  .mission .eyebrow { padding-top: 0; }
}

/* ---- Header: logo on the left, menu next to the button on the right ----
   (home.css stretches and centres the menu; this undoes that) */
header.site-header .wrap.header-inner {
  display: flex;
  align-items: center;
  justify-content: flex-start;
  gap: 32px;
}
header.site-header .wrap.header-inner .site-nav {
  flex: 0 0 auto;
  margin-left: auto;
  margin-right: 0;
  justify-content: flex-end;
  position: static;
  transform: none;
  display: flex;
  align-items: center;
  gap: 32px;
}
header.site-header .wrap.header-inner > .btn { flex: 0 0 auto; margin-left: 0; }

/* ---- Closing statement: fills the screen, large light text, nothing else ---- */
.closing {
  min-height: 100vh;
  display: flex;
  align-items: center;
  padding: 96px 0;
}
.closing .closing-statement {
  margin: 0;
  max-width: 24em;
  font-size: clamp(28px, 3.1vw, 52px);
  line-height: 1.15;
  font-weight: 400;
  letter-spacing: -0.04em;
  color: #f2f4f8;
  text-wrap: pretty;
}
@media (max-width: 860px) {
  .closing { min-height: 80vh; padding: 72px 0; }
}

/* ---- Footer: one quiet line ---- */
.site-footer.site-footer-min { padding: 32px 0 40px; }
.site-footer-min p {
  margin: 0;
  font-size: 14px;
  color: #7f889d;
}
.site-footer-min a {
  color: #d7dce6;
  text-decoration: underline;
  text-decoration-color: rgba(215,220,230,.35);
  text-underline-offset: 3px;
}
.site-footer-min a:hover { color: #ffffff; text-decoration-color: currentColor; }

/* ---- No separations between sections: one continuous dark page ---- */
.site-header,
.hero,
.section,
.section-alt,
.site-footer {
  border-top: 0;
  border-bottom: 0;
  box-shadow: none;
}
.section,
.section-alt {
  background: transparent;
}
.hero.hero-earth {
  /* fade the hero's starfield into the page instead of ending on an edge */
  -webkit-mask-image: linear-gradient(180deg, #000 85%, transparent 100%);
          mask-image: linear-gradient(180deg, #000 85%, transparent 100%);
}

/* ---- The Atlas: intro, big screenshot, feature list, use cases ---- */
/* Intro, in the look of Project EDITH's sections:
   large light heading on the left, text and captioned image on the right */
.atlas .atlas-intro {
  display: grid;
  grid-template-columns: minmax(0, 5fr) minmax(0, 7fr);
  gap: clamp(32px, 5vw, 96px);
  align-items: start;
}
.atlas .atlas-intro h2 {
  margin: 0;
  max-width: 9em;
  font-size: clamp(32px, 3.1vw, 52px);
  line-height: 1.08;
  font-weight: 400;
  letter-spacing: -0.04em;
  color: #f2f4f8;
}
.atlas .atlas-intro-body p {
  margin: 0 0 28px;
  font-size: clamp(19px, 1.6vw, 26px);
  line-height: 1.55;
  font-weight: 400;
  letter-spacing: -0.015em;
  color: #9aa3b6;
}
.atlas .atlas-intro-body p:last-of-type { margin-bottom: 0; }

.atlas .atlas-hero-shot { margin: clamp(40px, 4.5vw, 64px) 0 0; }
.atlas .atlas-hero-shot a {
  display: block;
  border-radius: 12px;
  overflow: hidden;
  box-shadow: 0 30px 80px rgba(0,0,0,.5), 0 0 0 1px rgba(255,255,255,.06);
}
.atlas .atlas-hero-shot img { display: block; width: 100%; height: auto; }
.atlas .atlas-hero-shot figcaption {
  margin-top: 14px;
  font-size: 14px;
  color: #7f889d;
}

/* Feature list: text on the left, screenshot or video on the right */
.atlas .atlas-features {
  display: flex;
  flex-direction: column;
  gap: clamp(64px, 9vw, 140px);
  margin-top: clamp(88px, 10vw, 160px);
}
.atlas .atlas-feature {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1.5fr);
  gap: clamp(32px, 5vw, 96px);
  align-items: center;
}
.atlas .atlas-feature-text { max-width: 460px; }
.atlas .atlas-feature .atlas-stat {
  margin: 0 0 8px;
  font-size: clamp(40px, 4.4vw, 68px);
  line-height: 1;
  font-weight: 600;
  letter-spacing: -0.04em;
  color: #f2f4f8;
  white-space: nowrap;
}
.atlas .atlas-feature h3 {
  margin: 0 0 14px;
  font-size: 20px;
  line-height: 1.3;
  font-weight: 600;
  color: #dfe3ec;
}
.atlas .atlas-feature p { margin: 0; font-size: 17px; line-height: 1.6; color: #a9b2c7; }
.atlas .atlas-feature .atlas-try { margin-top: 16px; color: #7f889d; font-size: 15px; }

/* Screenshot / video frame. It takes the exact shape of each image, so nothing is
   ever cropped. The 16:10 dark panel is only used while a file is missing. */
.atlas .atlas-media {
  position: relative;
  margin: 0;
  border-radius: 14px;
  overflow: hidden;
  background: radial-gradient(ellipse at 70% 30%, #121a33 0%, #0a0d18 70%);
  box-shadow: 0 24px 60px rgba(0,0,0,.45), 0 0 0 1px rgba(255,255,255,.06);
}
.atlas .atlas-media:not(:has(img, video)) { aspect-ratio: 16 / 10; }
.atlas .atlas-media img,
.atlas .atlas-media video {
  position: relative;
  z-index: 1;
  display: block;
  width: 100%;
  height: auto;
}
/* shown only until the real screenshot or video is added */
.atlas .atlas-media-placeholder {
  position: absolute;
  inset: 0;
  display: grid;
  place-items: center;
  font-size: 14px;
  color: #5d6579;
}

/* ---- For educators: same layout as the Atlas intro ---- */
.educators .educators-inner {
  display: grid;
  grid-template-columns: minmax(0, 5fr) minmax(0, 7fr);
  gap: clamp(32px, 5vw, 96px);
  align-items: start;
}
.educators h2 {
  margin: 0;
  max-width: 9em;
  font-size: clamp(32px, 3.1vw, 52px);
  line-height: 1.08;
  font-weight: 400;
  letter-spacing: -0.04em;
  color: #f2f4f8;
}
.educators .educators-body p {
  margin: 0 0 28px;
  font-size: clamp(19px, 1.6vw, 26px);
  line-height: 1.55;
  letter-spacing: -0.015em;
  color: #9aa3b6;
}
.educators .educators-body .btn { margin-top: 8px; }

@media (max-width: 860px) {
  .atlas .atlas-intro,
  .atlas .atlas-feature,
  .educators .educators-inner { grid-template-columns: minmax(0, 1fr); }
  .educators h2 { max-width: none; }
  .atlas .atlas-intro h2 { max-width: none; }
  .atlas .atlas-feature { gap: 24px; }
  .atlas .atlas-feature-text { max-width: none; }
}

/* Phones and narrow tablets: Earth on top, text below */
@media (max-width: 860px) {
  .hero.hero-earth { min-height: 0; display: block; }
  .hero.hero-earth .wrap.hero-inner {
    width: 92%;
    grid-template-columns: minmax(0, 1fr);
    gap: 32px;
    padding: 40px 0 64px;
  }
  .hero-earth .hero-planet {
    order: -1;
    justify-self: center;
    width: min(100%, 420px);
  }
  .hero-earth .hero-caption { text-align: center; }
  .hero.hero-earth .hero-copy { max-width: none; }
}
/* ======================================================================
   Phones (720px and below, the same breakpoint home.css uses):
   tighter spacing, readable sizes, nothing wider than the screen.
   Tablets use the 860px rules above.
   ====================================================================== */
html, body { overflow-x: clip; }
img, video { max-width: 100%; }

@media (max-width: 720px) {
  /* Header: logo and the Atlas button only. home.css hides the menu here,
     but the header rules above switch it back on, so hide it again.
     (The hero has its own "For Educators" button.) */
  header.site-header .wrap.header-inner { gap: 16px; }
  header.site-header .wrap.header-inner .site-nav { display: none; }
  header.site-header .wrap.header-inner > .btn { margin-left: auto; }
  .site-header .brand-logo { height: 26px; }

  /* Hero: Earth on top, then the text; the two buttons share one row */
  .hero.hero-earth .wrap.hero-inner { gap: 28px; padding: 24px 0 56px; }
  .hero-earth .hero-planet { width: min(80%, 340px); }
  .hero-earth h1 { font-size: clamp(30px, 8.6vw, 40px); line-height: 1.1; }
  .hero-earth .lede { font-size: 17px; }
  .hero-earth .hero-actions { width: 100%; max-width: none; gap: 10px; }
  .hero-earth .hero-actions .btn { width: auto; flex: 1 1 140px; padding: 0 16px; }

  /* Mission */
  .mission .mission-statement { font-size: 21px; line-height: 1.45; }

  /* Atlas */
  .atlas .atlas-intro { gap: 20px; }
  .atlas .atlas-intro h2 { font-size: 30px; }
  .atlas .atlas-intro-body p { font-size: 17px; margin-bottom: 18px; }
  .atlas .atlas-hero-shot { margin-top: 28px; }
  .atlas .atlas-hero-shot a,
  .atlas .atlas-media { border-radius: 10px; }
  .atlas .atlas-features { gap: 64px; margin-top: 72px; }
  .atlas .atlas-feature { gap: 20px; }
  .atlas .atlas-feature .atlas-stat { font-size: 40px; }
  .atlas .atlas-feature h3 { font-size: 18px; margin-bottom: 10px; }
  .atlas .atlas-feature p { font-size: 16px; }

  /* Educators (home.css already makes the button full width here) */
  .educators .educators-inner { gap: 20px; }
  .educators h2 { font-size: 30px; }
  .educators .educators-body p { font-size: 17px; margin-bottom: 18px; }

  /* Closing: no longer forced to full height, text sized for a phone */
  .closing { min-height: 0; padding: 88px 0; }
  .closing .closing-statement { font-size: 25px; line-height: 1.25; letter-spacing: -0.03em; }

  /* Footer */
  .site-footer.site-footer-min { padding: 24px 0 32px; }
  .site-footer-min p { font-size: 13px; line-height: 1.6; }
}