/* =========================================================
   SELENE landing page styles
   Dark space-themed, fully responsive.
   Plain CSS — no preprocessors or frameworks.

   IMAGES EXPECTED IN ./img/  (filenames match Anima's export)
   ----------------------------------------------------------
   img/asset-3.png                                          — SELENE logo mark (nav + footer)
   img/shine-light-glow-small-stars-with-earth-realistic-
       style-from-cosmos-globe-is-centered-frame-
       illustration-background-1.png                        — Hero Earth
   img/frame-2147226327-2.svg                               — Mega Constellations bg
   img/rectangle-3671.png                                   — Trade-off image 1
   img/rectangle-3672.png                                   — Trade-off image 2
   img/frame-2147226298.jpg                                 — Solution satellite
   img/frame-2147226327.svg                                 — Tested satellite bg
   img/group-1116606349.png                                 — Moon
   img/ellipse-10348.png                                    — Dr. Yoav portrait
   img/ellipse-10348-2.png                                  — Dr. Alex portrait

   If any image is missing, a CSS-generated fallback shows instead.
   ========================================================= */

:root {
  --bg: #04060f;
  --bg-2: #070b1c;
  --surface: rgba(255, 255, 255, 0.04);
  --surface-border: rgba(255, 255, 255, 0.08);
  --text: #e9ecf5;
  --text-dim: #9aa3bd;
  --text-muted: #6b7390;
  --accent: #4b8bff;
  --accent-2: #7aa8ff;
  --accent-glow: rgba(75, 139, 255, 0.45);
  --radius: 14px;
  --radius-lg: 22px;
  --font-display: 'Space Grotesk', 'Inter', system-ui, sans-serif;
  --font-body: 'Inter', system-ui, -apple-system, sans-serif;
  --maxw: 1180px;
}

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

html { scroll-behavior: smooth; }

body {
  font-family: var(--font-body);
  background-color: var(--bg);
  color: var(--text);
  line-height: 1.55;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
  overflow-x: hidden;
}

a { color: inherit; text-decoration: none; }
img { max-width: 100%; display: block; }
button { font: inherit; cursor: pointer; border: none; background: none; color: inherit; }
input, textarea { font: inherit; }

.visually-hidden {
  position: absolute; width: 1px; height: 1px;
  padding: 0; margin: -1px; overflow: hidden;
  clip: rect(0, 0, 0, 0); white-space: nowrap; border: 0;
}

/* ===================== NAV ===================== */
.nav {
  position: fixed;
  top: 0; left: 0; right: 0;
  z-index: 50;
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 18px clamp(20px, 4vw, 60px);
  backdrop-filter: blur(10px);
  background: rgba(4, 6, 15, 0.55);
  border-bottom: 1px solid rgba(255, 255, 255, 0.04);
}

.logo {
  display: flex;
  align-items: center;
  gap: 10px;
  font-family: var(--font-display);
  font-weight: 600;
  letter-spacing: 0.08em;
}

.logo-img { width: 26px; height: 26px; object-fit: contain; }

/* CSS fallback if asset-3.png is missing */
.logo-fallback {
  width: 26px; height: 26px;
  border-radius: 50%;
  background: radial-gradient(circle at 30% 30%, #88aaff, #1f3fa0 70%, #061030);
  box-shadow: 0 0 14px var(--accent-glow), inset -2px -2px 6px rgba(0,0,0,0.4);
}

.logo-text { font-size: 14px; letter-spacing: 0.25em; }

/* Hamburger toggle — hidden on desktop, shown on mobile via media query */
.nav-toggle {
  display: none;
  width: 40px;
  height: 40px;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  gap: 5px;
  padding: 0;
  z-index: 51;
}
.nav-toggle span {
  display: block;
  width: 22px;
  height: 2px;
  background: var(--text);
  border-radius: 2px;
  transition: transform 0.25s ease, opacity 0.2s ease;
}
.nav-toggle[aria-expanded="true"] span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.nav-toggle[aria-expanded="true"] span:nth-child(2) { opacity: 0; }
.nav-toggle[aria-expanded="true"] span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

.nav-links {
  display: flex;
  gap: clamp(18px, 3vw, 38px);
  font-size: 14px;
  color: var(--text-dim);
}
.nav-links a { transition: color 0.2s ease; }
.nav-links a:hover { color: var(--text); }

/* ===================== HERO ===================== */
.hero {
  position: relative;
  z-index: 1;
  padding: 140px clamp(20px, 4vw, 60px) 80px;
  overflow: hidden;
  background-image: url('img/earth_background.jpg');
background-size: 130% auto;          /* smaller image */
background-position: right -430px top -30px;   /* push 150px further right */
  background-repeat: no-repeat;
  background-attachment: scroll;
}

/* Left-to-right gradient so the copy stays readable over the image */
.hero-overlay {
  position: absolute;
  inset: 0;
  background:
    linear-gradient(90deg, rgba(4, 6, 15, 0.92) 0%, rgba(4, 6, 15, 0.65) 35%, rgba(4, 6, 15, 0.15) 65%, transparent 90%),
    radial-gradient(ellipse at 10% 60%, rgba(120, 80, 220, 0.10), transparent 60%);
  pointer-events: none;
  z-index: 0;
}

.hero-inner {
  position: relative;
  z-index: 1;
  max-width: var(--maxw);
  margin: 0 auto;
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  align-items: center;
  min-height: 480px;
}


.hero-copy {
  max-width: none;
  padding-right: 55%;   /* probably the sweet spot */
}

.hero-copy .hero-lede {
  font-size: 20px;
  color: var(--text);
  margin-top: 32px;
  margin-bottom: 24px;
}

.hero-copy h1 {
  font-size: clamp(30px, 4.5vw, 48px);
  max-width: 560px;
}

.hero-copy p {
  /* keep your existing font-size and color */
  font-size: 20px;
  color: var(--text);
  max-width: none;            /* was 460px */
  margin-bottom: 32px;
}


.btn-primary {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 14px 26px;
  border-radius: 999px;
  background: linear-gradient(135deg, var(--accent), #2c5ed4);
  color: white;
  font-weight: 500;
  font-size: 14px;
  box-shadow: 0 8px 24px -8px var(--accent-glow);
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}
.btn-primary:hover {
  transform: translateY(-2px);
  box-shadow: 0 12px 28px -8px var(--accent-glow);
}
.btn-primary.btn-full { width: 100%; justify-content: center; }

/* Feature pills */
.features {
  list-style: none;
  position: relative;
  z-index: 1;
  max-width: var(--maxw);
  margin: 80px auto 0;
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 14px;
}
.features li {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 16px 18px;
  background: var(--surface);
  border: 1px solid var(--surface-border);
  border-radius: var(--radius);
  font-size: 14px;
  color: var(--text);
  backdrop-filter: blur(6px);
  transition: border-color 0.2s ease, transform 0.2s ease;
}
.features li:hover {
  border-color: rgba(75, 139, 255, 0.5);
  transform: translateY(-2px);
}
.features svg {
  width: 22px; height: 22px;
  color: var(--accent-2);
  flex-shrink: 0;
}


.hero-copy p {
  /* Existing rule sets size/color/margin — leave it. */
  /* But override the bottom margin for stacked paragraphs: */
  margin-bottom: 18px;
}

.hero-copy p:last-child {
  margin-bottom: 0;
}

.hero-copy .hero-lede {
  font-size: 20px;
  color: var(--text);
  margin-bottom: 24px;
}

.hero-bullets {
  list-style: none;
  margin: 0 0 18px;
  padding: 0;
  display: flex;
  flex-direction: column;
  gap: 8px;
  max-width: 460px;
}
.hero-bullets li {
  position: relative;
  padding-left: 22px;
  color: var(--text);
  font-size: 20px;
  line-height: 1.55;
}
.hero-bullets li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 8px;
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--accent);
  box-shadow: 0 0 8px var(--accent-glow);
}

/* ===================== SECTIONS GENERIC ===================== */
section {
  position: relative;
  z-index: 1;
  padding: 100px clamp(20px, 4vw, 60px);
}

.section-head {
  max-width: 760px;
  margin: 0 auto 50px;
}
.section-head.center { text-align: center; }
.section-head h2,
section h2 {
  font-family: var(--font-display);
  font-size: clamp(30px, 4.5vw, 48px);
  font-weight: 600;
  line-height: 1.1;
  letter-spacing: -0.01em;
}
.section-head p {
  margin-top: 18px;
  color: var(--text);
  font-size: 20px;
}
.section-head p + p {
  margin-top: 6px;
}
.rule {
  display: inline-block;
  width: 56px;
  height: 2px;
  background: var(--accent);
  border-radius: 2px;
  margin: 18px 0;
}
.rule.left { display: block; }

/* ===================== MEDIA FRAMES ===================== */
.media-frame {
  position: relative;
  max-width: var(--maxw);
  margin: 0 auto;
  aspect-ratio: 16 / 7;
  border-radius: var(--radius-lg);
  overflow: hidden;
  border: 1px solid var(--surface-border);
  display: flex;
  align-items: center;
  justify-content: center;
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
}

/* Mega section: just dark — the hero's stretched earth bg handles the visuals above */
.mega {
  background-color: var(--bg);
  padding-top: 40px;
}

/* Mega Constellations — image with gradient fallback */
.mega-frame {
  background-image:
    linear-gradient(180deg, rgba(4,6,15,0.2), rgba(4,6,15,0.5)),
    url('img/frame-2147226327-2.svg'),
    radial-gradient(ellipse at 50% 100%, rgba(75, 139, 255, 0.25), transparent 55%),
    linear-gradient(180deg, #050a1d 0%, #020611 100%);
  background-size: cover, cover, auto, auto;
}

.media-video {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  background: #04060f;
}

.media-credit {
  max-width: var(--maxw);
  margin: 12px auto 0;
  font-size: 12px;
  color: var(--text-muted);
  text-align: center;
  font-style: italic;
  letter-spacing: 0.02em;
}

.tested-frame {
  aspect-ratio: 4 / 3;
  background-image:
    linear-gradient(180deg, rgba(4,6,15,0.2), rgba(4,6,15,0.4)),
    url('img/frame-2147226327.svg'),
    radial-gradient(ellipse at 50% 50%, rgba(180, 140, 80, 0.18), transparent 60%),
    linear-gradient(180deg, #060812 0%, #02040c 100%);
  background-size: cover, cover, auto, auto;
}

.tested-frame .media-video {
  object-fit: cover;
}

.play-btn {
  position: relative;
  width: 72px; height: 72px;
  border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
  background: rgba(255, 255, 255, 0.08);
  border: 1px solid rgba(255, 255, 255, 0.18);
  backdrop-filter: blur(8px);
  color: white;
  transition: transform 0.2s ease, background 0.2s ease;
  animation: pulse 2.4s ease-out infinite;
}
.play-btn:hover {
  transform: scale(1.08);
  background: rgba(255, 255, 255, 0.18);
}
.play-btn svg {
  width: 26px; height: 26px;
  margin-left: 3px;
}
@keyframes pulse {
  0% { box-shadow: 0 0 0 0 rgba(255, 255, 255, 0.25); }
  70% { box-shadow: 0 0 0 18px rgba(255, 255, 255, 0); }
  100% { box-shadow: 0 0 0 0 rgba(255, 255, 255, 0); }
}

/* ===================== TRADE-OFF ===================== */
.tradeoff-grid {
  max-width: var(--maxw);
  margin: 0 auto;
  display: grid;
  grid-template-columns: auto 1fr;
  gap: 60px;
  align-items: stretch;
}
.tradeoff-images {
  display: block;
  position: relative;
  height: 100%;
  aspect-ratio: 978 / 1608;
}
.tradeoff-image {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  border-radius: var(--radius-lg);
  border: 1px solid var(--surface-border);
  display: block;
}
.img-card {
  aspect-ratio: 3 / 4;
  border-radius: var(--radius);
  border: 1px solid var(--surface-border);
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
}
.img-card--a {
  background-image:
    url('img/Rectangle-3671.svg'),
    radial-gradient(ellipse at 30% 70%, rgba(255, 170, 80, 0.5), transparent 60%),
    linear-gradient(180deg, #061025 0%, #02040c 100%);
}
.img-card--b {
  background-image:
    url('img/Rectangle-3672.svg'),
    radial-gradient(ellipse at 50% 80%, rgba(80, 140, 255, 0.4), transparent 60%),
    linear-gradient(180deg, #04081a 0%, #020611 100%);
  margin-top: 30px;
}

.tradeoff-text h2 { margin-bottom: 0; }
.tradeoff-text p {
  color: var(--text);
  font-size: 20px;
  margin: 8px 0 24px;
}
.bullets {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 12px;
}
.bullets li {
  position: relative;
  padding-left: 22px;
  color: var(--text);
  font-size: 20px;
}
.bullets li::before {
  content: "";
  position: absolute;
  left: 0; top: 8px;
  width: 8px; height: 8px;
  border-radius: 50%;
  background: var(--accent);
  box-shadow: 0 0 8px var(--accent-glow);
}

/* ===================== SOLUTION ===================== */
.solution-grid {
  max-width: var(--maxw);
  margin: 0 auto;
  display: grid;
  grid-template-columns: 1fr 1.1fr;
  gap: 60px;
  align-items: center;
}
.solution-text h2 .accent { color: var(--text); }
.solution-text p {
  color: var(--text);
  font-size: 20px;
  margin: 8px 0 16px;
}
.capsule-img {
  aspect-ratio: 4 / 3;
  border-radius: var(--radius-lg);
  border: 1px solid var(--surface-border);
  background-image:
    url('img/frame-2147226298.jpg'),
    radial-gradient(ellipse at 70% 70%, rgba(75, 139, 255, 0.5), transparent 50%),
    linear-gradient(135deg, #03081a 0%, #061533 100%);
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
  position: relative;
  overflow: hidden;
}

.traction-list {
  list-style: none;
  max-width: 720px;
  margin: 24px auto 0;
  display: flex;
  flex-direction: column;
  gap: 8px;
  text-align: left;
}
.traction-list li {
  position: relative;
  padding-left: 26px;
  color: var(--text);
  font-size: 20px;
  line-height: 1.55;
}
.traction-list li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 9px;
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--accent);
  box-shadow: 0 0 8px var(--accent-glow);
}

/* ===================== MOON SECTION ===================== */
.moon-section {
  text-align: center;
  padding: 140px 20px 120px;
  position: relative;
  overflow: hidden;
  background-image:
    linear-gradient(180deg, rgba(4, 6, 15, 0.85) 0%, rgba(4, 6, 15, 0.6) 30%, rgba(4, 6, 15, 0.6) 70%, rgba(4, 6, 15, 0.8) 100%),
    url('img/earth-spacecraft-elements-this-image-furnished-by-nasa 1.svg');
  background-size: cover, cover;
  background-position: center, center;
  background-repeat: no-repeat, no-repeat;
}
.moon-title {
  position: relative;
  z-index: 1;
  font-family: var(--font-display);
  font-size: clamp(28px, 4.5vw, 46px);
  font-weight: 600;
  line-height: 1.15;
  margin-bottom: 30px;
  margin-top: 80px;
  text-shadow: 0 2px 18px rgba(4, 6, 15, 0.9), 0 0 6px rgba(4, 6, 15, 0.7);
}
.chip-row {
  position: relative;
  z-index: 1;
  list-style: none;
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  justify-content: center;
}
.chip-row li {
  padding: 10px 24px;
  border-radius: 999px;
  background: rgba(4, 6, 15, 0.55);
  border: 1px solid rgba(255, 255, 255, 0.28);
  backdrop-filter: blur(8px);
  font-size: 20px;
  font-weight: 500;
  letter-spacing: 0.02em;
}

/* ===================== TEAM ===================== */
.team-grid {
  max-width: 880px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 40px;
}
.member { text-align: center; }
.avatar {
  width: 130px; height: 130px;
  margin: 0 auto 20px;
  border-radius: 50%;
  background: linear-gradient(135deg, #1a2444, #06091a);
  border: 2px solid rgba(75, 139, 255, 0.4);
  box-shadow: 0 0 30px rgba(75, 139, 255, 0.25);
  overflow: hidden;
  position: relative;
}
.avatar img {
  width: 100%; height: 100%;
  object-fit: cover;
  position: relative;
  z-index: 1;
}
.member h3 {
  font-family: var(--font-body);
  font-size: 18px;
  font-weight: 600;
}
.role {
  color: var(--accent-2);
  font-size: 14px;
  margin: 4px 0 14px;
}
.bio {
  color: var(--text);
  font-size: 17px;
  max-width: 280px;
  margin: 0 auto;
}

/* ===================== BANNER ===================== */
.banner {
  text-align: center;
  padding: 80px 20px;
  background: radial-gradient(ellipse at center, rgba(75, 139, 255, 0.10), transparent 60%);
}
.banner h2 {
  font-size: clamp(24px, 3.5vw, 36px);
  margin-bottom: 16px;
}
.banner p {
  color: var(--text);
  max-width: 540px;
  margin: 0 auto;
  font-size: 20px;
}

/* ===================== CONTACT ===================== */
.contact {
  background: linear-gradient(180deg, transparent 0%, rgba(10, 14, 30, 0.6) 100%);
}
.contact-inner {
  max-width: 540px;
  margin: 0 auto;
  text-align: center;
}
.contact h2 {
  font-size: clamp(28px, 3.6vw, 40px);
  margin-bottom: 12px;
}
.contact-lede {
  color: var(--text);
  margin-bottom: 36px;
  font-size: 20px;
}
.contact-form {
  display: flex;
  flex-direction: column;
  gap: 14px;
  text-align: left;
}
.contact-form input,
.contact-form textarea {
  width: 100%;
  padding: 14px 16px;
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid var(--surface-border);
  border-radius: var(--radius);
  color: var(--text);
  font-size: 14px;
  transition: border-color 0.2s ease, background 0.2s ease;
  resize: vertical;
}
.contact-form input::placeholder,
.contact-form textarea::placeholder { color: var(--text-muted); }
.contact-form input:focus,
.contact-form textarea:focus {
  outline: none;
  border-color: var(--accent);
  background: rgba(75, 139, 255, 0.04);
}
.contact-form button:disabled { opacity: 0.7; cursor: wait; }

.form-status {
  margin-top: 6px;
  font-size: 14px;
  min-height: 1.2em;
  text-align: center;
}
.form-status.success {
  color: #6ee7a7;
}
.form-status.error {
  color: #ff8c8c;
}
.email-direct {
  margin-top: 30px;
  font-size: 20px;
  color: var(--text);
}
.email-direct a {
  color: var(--accent-2);
  font-weight: 500;
}
.email-direct a:hover { text-decoration: underline; }

/* ===================== FOOTER ===================== */
.footer {
  position: relative;
  z-index: 1;
  background: #02040c;
  padding: 60px clamp(20px, 4vw, 60px) 24px;
  border-top: 1px solid var(--surface-border);
}
.footer-inner {
  max-width: var(--maxw);
  margin: 0 auto;
  display: grid;
  grid-template-columns: 1.4fr 1fr 1fr;
  gap: 40px;
  align-items: start;
}
.footer-brand {
  display: flex; align-items: center; gap: 10px;
  font-family: var(--font-display);
  letter-spacing: 0.25em;
  font-size: 14px;
  font-weight: 600;
}
.footer-col h4 {
  font-size: 13px;
  font-weight: 600;
  margin-bottom: 14px;
  color: var(--text);
  letter-spacing: 0.05em;
}
.footer-col {
  display: flex;
  flex-direction: column;
  gap: 8px;
}
.footer-col a {
  font-size: 13px;
  color: var(--text-dim);
  transition: color 0.2s ease;
}
.footer-col a:hover { color: var(--text); }

.footer-bottom {
  max-width: var(--maxw);
  margin: 40px auto 0;
  padding-top: 20px;
  border-top: 1px solid var(--surface-border);
  text-align: center;
}
.footer-bottom p {
  font-size: 12px;
  color: var(--text-muted);
}
.footer-credit {
  margin-top: 4px;
  font-size: 11px;
  color: var(--text-muted);
}
.footer-credit span {
  color: var(--text);
  font-weight: 500;
}

/* =========================================================
   LEGAL PAGES (privacy.html, terms.html, accessibility.html)
   ========================================================= */
.legal-page {
  padding: 140px clamp(20px, 4vw, 60px) 80px;
  position: relative;
  z-index: 1;
}
.legal-content {
  max-width: 800px;
  margin: 0 auto;
  color: var(--text-dim);
}
.legal-content h1 {
  font-family: var(--font-display);
  font-size: clamp(32px, 5vw, 48px);
  color: var(--text);
  margin-bottom: 8px;
  letter-spacing: -0.01em;
}
.legal-content .last-updated {
  font-size: 13px;
  color: var(--text-muted);
  margin-bottom: 40px;
}
.legal-content h2 {
  font-family: var(--font-display);
  font-size: clamp(20px, 2.6vw, 24px);
  color: var(--text);
  margin: 40px 0 14px;
  letter-spacing: -0.005em;
}
.legal-content h3 {
  font-family: var(--font-display);
  font-size: 17px;
  color: var(--text);
  margin: 24px 0 10px;
}
.legal-content p {
  font-size: 15px;
  margin-bottom: 14px;
  line-height: 1.7;
}
.legal-content ul,
.legal-content ol {
  margin: 8px 0 18px;
  padding-left: 22px;
}
.legal-content li {
  font-size: 15px;
  margin-bottom: 8px;
  line-height: 1.7;
}
.legal-content a {
  color: var(--accent-2);
  text-decoration: underline;
  text-underline-offset: 3px;
}
.legal-content a:hover { color: var(--accent); }
.legal-content strong { color: var(--text); }

/* =========================================================
   RESPONSIVE
   - 1024px and below: iPad landscape and smaller
   - 768px and below:  iPad portrait, large phones
   - 480px and below:  small phones
   ========================================================= */

/* iPad landscape: lighten hero earth positioning, tighten paddings slightly */
@media (max-width: 1024px) {
  .hero {
    padding: 130px clamp(20px, 4vw, 40px) 60px;
    background-size: 130% auto;
    background-position: 60% 50px;
  }
  .features { gap: 12px; }
  .features li { padding: 14px 14px; font-size: 13px; }
  section { padding: 80px clamp(20px, 4vw, 40px); }
  .tradeoff-grid,
  .solution-grid { gap: 40px; }
}

/* iPad portrait + large phones: collapse multi-column layouts, switch hero to top-aligned image */
@media (max-width: 768px) {
  /* Nav: show hamburger, hide links until toggled */
  .nav { padding: 14px 20px; }
  .nav-toggle { display: flex; }
.nav-links {
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    flex-direction: column;
    gap: 0;
    background: rgba(4, 6, 15, 0.96);
    backdrop-filter: blur(12px);
    padding: 0;
    border-bottom: 0;
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.3s ease, padding 0.3s ease, border-bottom-width 0.3s ease;
  }
  .nav-links.open {
    max-height: 400px;
    padding: 8px 0;
    border-bottom: 1px solid rgba(255, 255, 255, 0.08);
  }
  .nav-links a {
    display: block;
    padding: 14px 24px;
    font-size: 15px;
    color: var(--text);
    border-bottom: 1px solid rgba(255, 255, 255, 0.04);
  }
  .nav-links a:last-child { border-bottom: none; }

  /* ============== HERO ==============
     Figma shows earth as a banner that fills the top ~35-40% of the viewport,
     then hero copy sits BELOW it, left-aligned (not centered).
     We achieve this with a pseudo-element that holds the earth image,
     so the section's body content sits in the lower portion naturally.
  */
  .hero {
    padding: 30px 0 0;
    min-height: auto;
    background-image: none;
  }
 .hero::before {
  content: "";
  display: block;
  width: 100%;
  aspect-ratio: 4 / 3;
  background-image: url('img/earth_background.jpg');
  background-size: auto 250%;
  background-position: 65% 0%;
  background-repeat: no-repeat;
}
  .hero-overlay {
    /* Only darken the area below the earth banner */
    top: auto;
    bottom: 0;
    height: 60%;
    background: linear-gradient(180deg, rgba(4, 6, 15, 0.85) 0%, rgba(4, 6, 15, 1) 30%);
  }
  .hero-inner {
    min-height: auto;
    padding: 30px 24px 50px;
    grid-template-columns: minmax(0, 1fr);
  }
  .hero-copy {
    max-width: none;
    text-align: left;
    margin: 0;
    padding-right: 0;
  }
  .hero-copy h1 { font-size: clamp(28px, 5vw, 40px); }
  .hero-copy .hero-lede { font-size: 18px; }
  .hero-copy p {
    margin-left: 0;
    margin-right: 0;
    font-size: 18px;
  }
  .member h3 { font-size: 22px; }

  /* ============== FEATURES ==============
     Figma: 2x2 grid, smaller compact pills (icon left + single-line label)
  */
  .features {
    grid-template-columns: repeat(2, 1fr);
    margin: 0 24px 0;
    gap: 10px;
    padding: 0;
  }
  .features li {
    padding: 12px 12px;
    font-size: 12px;
    gap: 8px;
  }
  .features svg {
    width: 18px; height: 18px;
  }

  /* ============== SECTIONS ============== */
  section { padding: 60px 24px; }
  .section-head { margin-bottom: 28px; text-align: left; }
  .section-head.center { text-align: left; }
  .section-head .rule,
  .section-head.center .rule { display: block; }

  /* ============== TRADE-OFF / SOLUTION ============== */
  .tradeoff-grid,
  .solution-grid { grid-template-columns: 1fr; gap: 24px; }
  .tradeoff-images { max-width: 100%; margin: 0; order: 2; height: auto; aspect-ratio: auto; }
  .tradeoff-image { width: 100%; height: auto; position: static; aspect-ratio: auto; object-fit: contain; }

  /* Tablet body text — scale down for 481-768 range */
  .section-head p,
  .solution-text p,
  .tradeoff-text p,
  .bullets li,
  .traction-list li,
  .contact-lede,
  .email-direct { font-size: 18px; }

  /* ============== MEDIA FRAMES ============== */
  .media-frame { aspect-ratio: 16 / 10; }
  .tested-frame { aspect-ratio: 4 / 3; }
  .play-btn { width: 56px; height: 56px; }
  .play-btn svg { width: 20px; height: 20px; }

  /* ============== MOON SECTION ============== */
  .moon-section { padding: 50px 24px; }
  .moon-title { margin-top: 16px; }
  .chip-row li { font-size: 17px; }

  /* ============== TEAM ==============
     Figma: portraits are large, square-with-rounded-corners (NOT circles),
     stacked vertically, with name/role/bio below each one, LEFT-aligned.
  */
  .team-grid {
    grid-template-columns: 1fr;
    gap: 40px;
    max-width: 320px;
    margin: 0 auto;
  }
  .member { text-align: center; }
  .avatar {
    width: 100%;
    height: auto;
    aspect-ratio: 1 / 1;
    max-width: 260px;
    border-radius: 50%;
    margin: 0 auto 18px;
    background: none;
    border: 0;
    box-shadow: none;
  }
  .avatar img { border-radius: 50%; }

  /* ============== CONTACT ============== */
  .contact-inner { max-width: 100%; }

  /* ============== FOOTER ============== */
  .footer { padding: 50px 24px 20px; }
  .footer-inner { grid-template-columns: 1fr 1fr; gap: 30px; }
  .footer-brand { grid-column: 1 / -1; }
}

/* Small phones */
@media (max-width: 480px) {
  .hero-copy h1 { font-size: clamp(24px, 6.5vw, 32px); }

  /* Features stay 2x2 even on small phones - matches Figma */
  .features li { font-size: 11px; padding: 10px 10px; }

  section { padding: 50px 20px; }
  .section-head h2,
  section h2 { font-size: clamp(24px, 6.5vw, 32px); }

  .moon-title { font-size: clamp(22px, 6.5vw, 28px); margin-top: 12px; }
  .chip-row { gap: 8px; }
  .chip-row li { padding: 8px 16px; font-size: 15px; }

  .banner h2 { font-size: clamp(22px, 6vw, 28px); }
  .banner p { font-size: 16px; }

  .contact-form input,
  .contact-form textarea { padding: 12px 14px; }

  .footer-inner { grid-template-columns: 1fr; gap: 24px; text-align: left; }
  .footer-col { gap: 6px; }
}
