/* PMOstats Landing Page – landing.css */

@import url('https://api.fontshare.com/v2/css?f[]=clash-display@400,500,600,700&display=swap');
@import url('https://fonts.googleapis.com/css2?family=Inter:wght@400;600;700&display=swap');

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

p, h1, h2, h3, h4, h5, h6 { text-wrap: balance; }

:root {
  --black: #050303;
  --white: #ffffff;
  --muted: #9f9f9f;
  --red-from: #ff1014;
  --red-to: #ff7b00;
  --border-subtle: rgba(255,255,255,0.08);
  --border-medium: rgba(255,255,255,0.16);
  --card-bg: rgba(20,20,20,0.8);
  /* Hover transitions — tunable for consistent feel (Interface Craft) */
  --hover-duration: 0.2s;
  --hover-ease: cubic-bezier(0.25, 0.46, 0.45, 0.94);
  --hover-lift: -2px;
}

html { scroll-behavior: smooth; overflow-x: hidden; -webkit-overflow-scrolling: touch; }

body {
  font-family: 'Inter', system-ui, sans-serif;
  background: var(--black);
  color: var(--white);
  line-height: 1.6;
  overflow-x: hidden;
}

/* ── FONTS ── */
.title-large,
.title-medium,
.navbar-logo-text,
.footer-logo-text {
  font-family: 'Clash Display', 'Inter', system-ui, sans-serif;
}

/* ── TYPOGRAPHY ── */
/* Section titles: gradient text (white → semi-transparent white). Hero stays solid white. */
.title-large,
.title-medium,
.title-small {
  background-image: linear-gradient(to right bottom, rgb(255, 255, 255) 30%, rgba(255, 255, 255, 0.5));
  background-color: transparent;
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
  color: transparent;
}

/* Hero title: solid white, no gradient */
.hero-copy .title-large {
  background-image: none;
  background-color: transparent;
  -webkit-background-clip: unset;
  background-clip: unset;
  -webkit-text-fill-color: unset;
  color: var(--white);
}

.title-large {
  font-size: clamp(28px, 3vw, 40px);
  font-weight: 600;
  line-height: 1.1;
  letter-spacing: 0.01em;
}

.title-medium {
  font-size: 24px;
  font-weight: 600;
  line-height: 1.25;
  letter-spacing: 0.004em;
}

.title-small {
  font-size: 17px;
  font-weight: 600;
  line-height: 1.41;
}

.body-text {
  font-size: 17px;
  font-weight: 400;
  line-height: 1.6;
  color: var(--white);
}

.body-text.muted { color: var(--muted); }

.label-gradient {
  font-size: 13px;
  font-weight: 700;
  line-height: 1.69;
  background: linear-gradient(180deg, var(--red-from), var(--red-to));
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.section-copy {
  display: flex;
  flex-direction: column;
  gap: 12px;
  max-width: 720px;
}

.section-copy.text-center { text-align: center; align-items: center; }

/* ── LEGAL PAGES (privacy, terms) ── */
body.legal-page {
  background: var(--black);
  color: var(--white);
}

.legal-page .legal-wrap {
  max-width: 720px;
  margin: 0 auto;
  padding: 0 24px;
  padding-top: calc(80px + env(safe-area-inset-top));
  padding-bottom: 48px;
}

.legal-page .page-content {
  font-size: 17px;
  font-weight: 400;
  line-height: 1.6;
  color: var(--white);
  font-family: 'Inter', system-ui, sans-serif;
}

.legal-page .page-content p { margin: 0 0 0.75em; }
.legal-page .page-content ul,
.legal-page .page-content ol { margin: 0 0 0.75em; padding-left: 1.25em; }
.legal-page .page-content li { margin-bottom: 0.25em; }

.legal-page .page-content h1 {
  font-family: 'Clash Display', 'Inter', system-ui, sans-serif;
  font-size: clamp(28px, 3vw, 40px);
  font-weight: 600;
  line-height: 1.1;
  color: var(--white);
  margin: 0 0 8px;
}

.legal-page .page-content h2 {
  font-size: 24px;
  font-weight: 600;
  color: var(--white);
  margin: 1.5em 0 0.5em;
  font-family: 'Inter', system-ui, sans-serif;
}

.legal-page .page-content h3 {
  font-size: 17px;
  font-weight: 600;
  color: var(--white);
  margin: 1em 0 0.35em;
  font-family: 'Inter', system-ui, sans-serif;
}

.legal-page .page-content .tagline {
  font-size: 14px;
  color: var(--muted);
  margin: 0 0 24px;
}

.legal-page .page-content a {
  color: var(--white);
  text-decoration: underline;
  text-underline-offset: 2px;
  transition: opacity var(--hover-duration) var(--hover-ease);
}
.legal-page .page-content a:hover { opacity: 0.85; }
.legal-page .page-content a:focus-visible {
  outline: 2px solid rgba(255,255,255,0.5);
  outline-offset: 2px;
}

/* ── NAVBAR ── */


.navbar {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 100;
  display: flex;
  align-items: center;
  justify-content: space-between;
  background: rgba(0, 0, 0, 0.5);
  border-radius: 0;
  /* Keep top padding stable on scroll; respect notch/safe area so content never touches top edge */
  padding: max(16px, env(safe-area-inset-top)) 40px 16px 40px;
  backdrop-filter: blur(12px) saturate(180%);
  -webkit-backdrop-filter: blur(12px) saturate(180%);
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
}

/* Gradient logo (same as facepile text): mask over gradient */
.navbar-logo a {
  text-decoration: none;
  display: inline-block;
}

.logo-gradient-wrap {
  display: inline-block;
  line-height: 0;
  background: linear-gradient(180deg, #E0F5FF 0%, #FFE4F2 100%);
  -webkit-mask-image: url(../images/shared/logo.svg);
  mask-image: url(../images/shared/logo.svg);
  -webkit-mask-size: contain;
  mask-size: contain;
  -webkit-mask-repeat: no-repeat;
  mask-repeat: no-repeat;
  -webkit-mask-position: center;
  mask-position: center;
}

.logo-gradient-wrap img {
  visibility: hidden;
  display: block;
}

.navbar-logo-img {
  height: 32px;
  width: auto;
  display: block;
}

.navbar-right {
  display: flex;
  align-items: center;
  gap: 16px;
}

.nav-signin {
  background: none;
  border: none;
  color: var(--white);
  font-size: 14px;
  font-weight: 600;
  font-family: inherit;
  cursor: pointer;
  padding: 5px 0;
  text-decoration: none;
  transition: opacity var(--hover-duration) var(--hover-ease), color var(--hover-duration) var(--hover-ease);
}
.nav-signin:hover {
  opacity: 0.85;
}
.nav-signin:focus-visible {
  outline: 2px solid rgba(255,255,255,0.5);
  outline-offset: 4px;
}

/* Feature request link: same font style as Sign in, regular weight */
.nav-feature-request {
  color: var(--white);
  font-size: 14px;
  font-weight: 400;
  font-family: inherit;
  text-decoration: none;
  padding: 5px 0;
  transition: opacity var(--hover-duration) var(--hover-ease), color var(--hover-duration) var(--hover-ease);
}
.nav-feature-request:hover {
  opacity: 0.85;
}
.nav-feature-request:focus-visible {
  outline: 2px solid rgba(255,255,255,0.5);
  outline-offset: 4px;
}

/* White button style: fill #E3E3E3 80%, gradient stroke, drop shadows */
/* Use box-shadow for “border” so it never gets cropped by rounding or overflow. */
.nav-signup {
  background: none;
  border: none;
  color: var(--white);
  font-size: 14px;
  font-weight: 600;
  font-family: inherit;
  cursor: pointer;
  padding: 9px 20px;
  border-radius: 100px;
  box-shadow: 0 0 0 1px rgba(255, 255, 255, 0.4);
  text-decoration: none;
  transition: box-shadow var(--hover-duration) var(--hover-ease), transform var(--hover-duration) var(--hover-ease);
}
.nav-signup:hover {
  box-shadow: 0 0 0 1px rgba(255, 255, 255, 0.7);
  transform: translateY(var(--hover-lift));
}
.nav-signup:focus-visible {
  outline: 2px solid rgba(255, 255, 255, 0.5);
  outline-offset: 4px;
}

.nav-divider {
  width: 1px;
  height: 18px;
  background: rgba(255,255,255,0.3);
}

.nav-getapp-icon {
  width: 24px;
  height: 24px;
  flex-shrink: 0;
}

/* Get App: style guide — fill #E3E3E3 80%, gradient stroke, two drop shadows. Padding/size unchanged. */
.nav-getapp {
  display: flex;
  align-items: center;
  gap: 4px;
  position: relative;
  color: #000;
  font-size: 14px;
  font-weight: 600;
  text-decoration: none;
  padding: 5px 14px 5px 10px;
  border-radius: 100px;
  border: none;
  /* Stroke: linear gradient 0% #FDFDFD → 100% #F1F1F1 (0% opacity) */
  background: linear-gradient(180deg, #FDFDFD 0%, rgba(241, 241, 241, 0) 100%);
  /* Drop shadow 1: 0 2px 4px #000 10%. Drop shadow 2: 0 0 0 1px #000 16%. */
  box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1), 0 0 0 1px rgba(0, 0, 0, 0.16);
  transition: transform var(--hover-duration) var(--hover-ease), box-shadow var(--hover-duration) var(--hover-ease);
}
/* Fill: #E3E3E3 80% — sits inside gradient stroke */
.nav-getapp::before {
  content: '';
  position: absolute;
  inset: 1px;
  border-radius: 99px;
  background: rgba(227, 227, 227, 0.8);
  z-index: -1;
}
.nav-getapp:hover {
  transform: translateY(var(--hover-lift));
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15), 0 0 0 1px rgba(0, 0, 0, 0.12);
}
.nav-getapp:focus-visible {
  outline: 2px solid rgba(0,0,0,0.3);
  outline-offset: 4px;
}

.nav-getapp svg { flex-shrink: 0; }

/* ── AUTH MODAL (aligned with landing: glass, Clash Display, tokens) ── */
.auth-overlay {
  position: fixed;
  inset: 0;
  z-index: 200;
  background: rgba(5, 3, 3, 0.75);
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 24px;
  backdrop-filter: blur(12px) saturate(120%);
  -webkit-backdrop-filter: blur(12px) saturate(120%);
  /* Entrance: opacity animated by JS */
}

/* Match passwords (gate) modal: same border-radius and padding. Background and border match navbar. */
.auth-modal {
  position: relative;
  direction: ltr;
  width: 100%;
  max-width: 400px;
  padding: 32px 32px 24px 32px;
  background: rgba(20, 20, 20, 0.5);
  border: none;
  border-radius: 40px;
  box-shadow: 0 0 0 1px rgba(255, 255, 255, 0.08);
  backdrop-filter: blur(12px) saturate(180%);
  -webkit-backdrop-filter: blur(12px) saturate(180%);
  /* Entrance: scale + opacity animated by JS */
}
.auth-modal::before {
  background: transparent;
}

/* Top-right corner; first in DOM, positioned so it never follows flex flow */
.auth-modal-close {
  position: absolute !important;
  top: 16px !important;
  right: 16px !important;
  bottom: auto !important;
  left: auto !important;
  width: 40px;
  height: 40px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: var(--border-subtle);
  border: none;
  color: var(--muted);
  font-size: 22px;
  font-weight: 400;
  line-height: 1;
  cursor: pointer;
  border-radius: 100px;
  z-index: 10;
  transition: color var(--hover-duration) var(--hover-ease), background var(--hover-duration) var(--hover-ease), transform var(--hover-duration) var(--hover-ease);
}
.auth-modal-close::before { background: rgba(255, 255, 255, 0.06); }
.auth-modal-close:hover {
  color: var(--white);
  background: var(--border-medium);
}
.auth-modal-close:hover::before { background: rgba(255, 255, 255, 0.12); }
.auth-modal-close:focus-visible {
  outline: 2px solid rgba(255, 255, 255, 0.5);
  outline-offset: 2px;
}

.auth-panel { display: block; }

.auth-panel-title {
  font-family: 'Clash Display', 'Inter', system-ui, sans-serif;
  font-size: 22px;
  font-weight: 600;
  line-height: 1.25;
  letter-spacing: 0.004em;
  margin-bottom: 16px;
  color: var(--white);
}
.auth-panel-title:has(+ .auth-panel-note) {
  margin-bottom: 4pt;
}

.auth-panel-note {
  font-size: 14px;
  color: var(--muted);
  line-height: 1.5;
  margin-bottom: 24px;
}

.auth-panel input[type="email"],
.auth-panel input[type="password"] {
  display: block;
  width: 100%;
  margin-bottom: 12px;
  padding: 14px 20px;
  border: none;
  background: var(--border-subtle);
  border-radius: 100px;
  color: var(--white);
  font-size: 16px;
  font-family: inherit;
  transition: background var(--hover-duration) var(--hover-ease), background-color var(--hover-duration) var(--hover-ease), box-shadow var(--hover-duration) var(--hover-ease);
}
.auth-panel input::before { background: rgba(255, 255, 255, 0.04); }
.auth-panel input:hover {
  background: var(--border-medium);
}
.auth-panel input:hover::before { background: rgba(255, 255, 255, 0.06); }
.auth-panel input:focus {
  outline: none;
  background: rgba(255, 255, 255, 0.35);
  box-shadow: 0 0 0 1px var(--border-medium);
}
.auth-panel input:focus::before { background: rgba(255, 255, 255, 0.06); }

.auth-panel input::placeholder { color: var(--muted); }

/* Primary CTA — same visual style as Get App (fill #E3E3E3 80%, gradient stroke, two drop shadows). Padding/size kept for modal. */
.auth-panel .btn-primary {
  position: relative;
  display: block;
  width: 100%;
  margin-top: 16px;
  padding: 12px 20px;
  border: none;
  color: #000;
  font-size: 16px;
  font-weight: 600;
  font-family: inherit;
  cursor: pointer;
  border-radius: 100px;
  /* Stroke: linear gradient 0% #FDFDFD → 100% #F1F1F1 (0% opacity) */
  background: linear-gradient(180deg, #FDFDFD 0%, rgba(241, 241, 241, 0) 100%);
  /* Drop shadow 1: 0 2px 4px #000 10%. Drop shadow 2: 0 0 0 1px #000 16%. */
  box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1), 0 0 0 1px rgba(0, 0, 0, 0.16);
  transition: transform var(--hover-duration) var(--hover-ease), box-shadow var(--hover-duration) var(--hover-ease);
}
/* Fill: #E3E3E3 80% — sits inside gradient stroke (same as Get App) */
.auth-panel .btn-primary::before {
  content: '';
  position: absolute;
  inset: 1px;
  border-radius: 99px;
  background: rgba(227, 227, 227, 0.8);
  z-index: -1;
}
.auth-panel .btn-primary:hover {
  transform: translateY(var(--hover-lift));
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15), 0 0 0 1px rgba(0, 0, 0, 0.12);
}
.auth-panel .btn-primary:active {
  transform: translateY(0);
}
.auth-panel .btn-primary:focus-visible {
  outline: 2px solid rgba(0, 0, 0, 0.3);
  outline-offset: 2px;
}

.auth-forgot {
  margin-top: 12px;
  font-size: 14px;
}

.auth-forgot a {
  color: var(--muted);
  text-decoration: none;
  transition: color var(--hover-duration) var(--hover-ease);
}
.auth-forgot a:hover { color: var(--white); }
.auth-forgot a:focus-visible {
  outline: 2px solid rgba(255,255,255,0.5);
  outline-offset: 2px;
}

.form-msg { margin-top: 16px; font-size: 14px; }
.form-msg.success { color: #22c55e; }
.form-msg.error { color: #f87171; }

/* ── HERO ── */
.hero {
  position: relative;
  min-height: 100vh;
  overflow: hidden;
}

/* Astronaut floats — will-change for GPU compositing */
.hero-astronaut {
  will-change: transform;
}

.hero-bg {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  pointer-events: none;
}


.hero-gradient {
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  height: 339px;
  background: linear-gradient(to bottom, rgba(38,68,102,0) 0%, rgba(20,35,53,0.5) 50%, #000 100%);
  pointer-events: none;
  z-index: 5;
}

/* Progressive blur strips — stacked, each covering bottom to its top,
   with a gradient mask to feather the top edge smoothly */
.hero-progressive-blur {
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  height: 200px;
  pointer-events: none;
  z-index: 3;
}

.hpb-strip {
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  -webkit-mask-image: linear-gradient(to bottom, transparent 0%, black 50%);
  mask-image:         linear-gradient(to bottom, transparent 0%, black 50%);
}

.hpb-strip:nth-child(1)  { top: 95%; backdrop-filter: blur(0.5px);  -webkit-backdrop-filter: blur(0.5px);  }
.hpb-strip:nth-child(2)  { top: 90%; backdrop-filter: blur(0.8px);  -webkit-backdrop-filter: blur(0.8px);  }
.hpb-strip:nth-child(3)  { top: 85%; backdrop-filter: blur(1px);    -webkit-backdrop-filter: blur(1px);    }
.hpb-strip:nth-child(4)  { top: 80%; backdrop-filter: blur(1.5px);  -webkit-backdrop-filter: blur(1.5px);  }
.hpb-strip:nth-child(5)  { top: 75%; backdrop-filter: blur(2px);    -webkit-backdrop-filter: blur(2px);    }
.hpb-strip:nth-child(6)  { top: 70%; backdrop-filter: blur(2.5px);  -webkit-backdrop-filter: blur(2.5px);  }
.hpb-strip:nth-child(7)  { top: 65%; backdrop-filter: blur(3px);    -webkit-backdrop-filter: blur(3px);    }
.hpb-strip:nth-child(8)  { top: 60%; backdrop-filter: blur(3.5px);  -webkit-backdrop-filter: blur(3.5px);  }
.hpb-strip:nth-child(9)  { top: 55%; backdrop-filter: blur(4px);    -webkit-backdrop-filter: blur(4px);    }
.hpb-strip:nth-child(10) { top: 50%; backdrop-filter: blur(4.5px);  -webkit-backdrop-filter: blur(4.5px);  }
.hpb-strip:nth-child(11) { top: 45%; backdrop-filter: blur(5px);    -webkit-backdrop-filter: blur(5px);    }
.hpb-strip:nth-child(12) { top: 40%; backdrop-filter: blur(5.5px);  -webkit-backdrop-filter: blur(5.5px);  }
.hpb-strip:nth-child(13) { top: 35%; backdrop-filter: blur(6px);    -webkit-backdrop-filter: blur(6px);    }
.hpb-strip:nth-child(14) { top: 30%; backdrop-filter: blur(6.5px);  -webkit-backdrop-filter: blur(6.5px);  }
.hpb-strip:nth-child(15) { top: 25%; backdrop-filter: blur(7px);    -webkit-backdrop-filter: blur(7px);    }
.hpb-strip:nth-child(16) { top: 20%; backdrop-filter: blur(7.5px);  -webkit-backdrop-filter: blur(7.5px);  }
.hpb-strip:nth-child(17) { top: 15%; backdrop-filter: blur(8px);    -webkit-backdrop-filter: blur(8px);    }
.hpb-strip:nth-child(18) { top: 10%; backdrop-filter: blur(8.5px);  -webkit-backdrop-filter: blur(8.5px);  }
.hpb-strip:nth-child(19) { top:  5%; backdrop-filter: blur(9px);    -webkit-backdrop-filter: blur(9px);    }
.hpb-strip:nth-child(20) { top:  0%; backdrop-filter: blur(10px);   -webkit-backdrop-filter: blur(10px);   }

.hero-content {
  position: relative;
  z-index: 4;
  display: flex;
  gap: 24px;
  align-items: center;
  min-height: 100vh;
  padding: 100px;
  max-width: 1440px;
  margin: 0 auto;
}

.hero-scroll-hint {
  position: absolute;
  bottom: 20px;
  left: 50%;
  transform: translateX(-50%);
  z-index: 5;
  opacity: 0.7;
  animation: scrollHintBounce 1.6s ease-in-out infinite;
}

@keyframes scrollHintBounce {
  0%, 100% { transform: translateX(-50%) translateY(0); }
  50%       { transform: translateX(-50%) translateY(6px); }
}

.hero-left {
  display: flex;
  flex-direction: column;
  gap: 40px;
  flex: 1;
  min-width: 0;
}

.hero-copy * {
  text-shadow: 0 4px 20px rgba(0, 0, 0, 0.80);
}

.hero-copy .label-gradient,
.graph-section .label-gradient,
.gamification-section .label-gradient,
.squads-section .label-gradient,
.features-section .label-gradient {
  font-family: 'Clash Display', 'Inter', system-ui, sans-serif;
  font-size: 0.8125rem;
  font-style: normal;
  font-weight: 600;
  line-height: 1.125rem;
  letter-spacing: 0.00813rem;
  text-transform: uppercase;
}

.hero-copy .label-gradient {
  background: none;
  -webkit-background-clip: unset;
  background-clip: unset;
  -webkit-text-fill-color: var(--white);
  color: var(--white);
}

.hero-copy {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.hero-copy .body-text {
  font-size: 14px;
  line-height: 1.5;
}

/* Hero facepile: avatars + "1,000+ Initial beta testers" above App Store badge. Background and border match navbar. */
.hero-facepile {
  display: flex;
  flex-direction: row;
  flex-wrap: nowrap;
  align-items: center;
  gap: 8px;
  padding: 8px 10px;
  border-radius: 100px;
  background: rgba(0, 0, 0, 0.5);
  border: none;
  box-shadow: 0 0 0 1px rgba(255, 255, 255, 0.08);
  backdrop-filter: blur(12px) saturate(180%);
  -webkit-backdrop-filter: blur(12px) saturate(180%);
  /* 12px space to App Store badge: hero-left gap is 40px, so margin compensates */
  margin-bottom: -28px;
  width: max-content;
  isolation: isolate; /* helps backdrop-filter apply correctly */
}
.hero-facepile::before { background: transparent; }

.hero-version {
  position: absolute;
  left: 0;
  right: 0;
  bottom: 40px;
  width: 100%;
  display: flex;
  justify-content: center;
  transform: none;
  margin-bottom: 0;
  z-index: 2;
}

.hero-facepile-avatars {
  display: flex;
  flex-direction: row;
  align-items: center;
  flex-shrink: 0;
}

.hero-facepile-avatars img {
  width: 24px;
  height: 24px;
  border-radius: 50%;
  object-fit: cover;
  margin-left: -8px;
}

.hero-facepile-avatars img:first-child {
  margin-left: 0;
}

.hero-facepile-text {
  font-family: 'Inter', system-ui, sans-serif;
  font-size: 12px;
  font-weight: 700;
  line-height: 1;
  color: #E0F5FF; /* fallback when gradient text not supported */
  background: linear-gradient(180deg, #E0F5FF 0%, #FFE4F2 100%);
  background-clip: text;
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  flex-shrink: 0;
  white-space: nowrap;
}

.appstore-badge-wrap {
  display: inline-block;
}

.appstore-badge {
  display: inline-block;
  transition: transform var(--hover-duration) var(--hover-ease), filter var(--hover-duration) var(--hover-ease);
}
.appstore-badge:hover {
  transform: scale(1.06) translateY(var(--hover-lift));
  filter: brightness(1.08);
}
.appstore-badge:focus-visible {
  outline: 2px solid rgba(255,255,255,0.5);
  outline-offset: 6px;
  border-radius: 8px;
}
.appstore-badge img,
.appstore-badge svg {
  height: 40px;
  width: auto;
  display: block;
}

.hero-quote {
  background: var(--border-subtle);
  border: none;
  border-radius: 40px;
  padding: 24px;
  display: flex;
  flex-direction: column;
  gap: 12px;
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  max-width: 404px;
}
.hero-quote::before { background: var(--card-bg); }

.hero-quote-text {
  font-size: 13px;
  line-height: 1.5;
  color: var(--white);
}

.hero-quote-author {
  display: flex;
  align-items: center;
  gap: 12px;
  font-size: 13px;
  font-weight: 700;
  color: var(--white);
}

.hero-avatar {
  width: 40px;
  height: 40px;
  border-radius: 50%;
  object-fit: cover;
  flex-shrink: 0;
}

.hero-right {
  position: relative;
  flex: 1;
  min-height: 500px;
}

.hero-phone-wrap {
  position: absolute;
  left: 50%;
  top: 0;
  width: min(503px, 100%);
  height: auto;
  aspect-ratio: 503 / 575;
}

.hero-phone {
  width: 100%;
  height: auto;
  display: block;
}

.hero-astronaut-wrap {
  position: absolute;
  left: 50%;
  top: 75%;
  width: min(225px, 44.7%);
  height: auto;
  aspect-ratio: 225 / 204;
}

.hero-astronaut {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  will-change: transform;
}

/* ── GRAPH ── */
.graph-section {
  position: relative;
  background: #000;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 80px;
  overflow: hidden;
  padding: 80px 0 0;
}

.graph-bg {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  pointer-events: none;
}

.graph-gradient-top {
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 160px;
  background: linear-gradient(to bottom, #000, transparent);
  pointer-events: none;
  z-index: 1;
}

.graph-section .section-copy {
  position: relative;
  z-index: 2;
}

.graph-section .section-copy .body-text,
.gamification-section .section-copy .body-text,
.squads-title-block .section-copy .body-text {
  font-size: 14px;
  line-height: 1.5;
}

.graph-image-wrap {
  position: relative;
  width: 778px;
  max-width: 100%;
  z-index: 2;
}

.graph-image {
  width: 100%;
  height: auto;
  display: block;
}

.graph-gradient-bottom {
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  height: 200px;
  background: linear-gradient(to bottom, transparent 0%, rgba(0,0,0,0.5) 50%, #000 100%);
  pointer-events: none;
  z-index: 4;
}

.graph-progressive-blur {
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  height: 200px;
  pointer-events: none;
  z-index: 3;
}

.graph-progressive-blur .hpb-strip {
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  -webkit-mask-image: linear-gradient(to bottom, transparent 0%, black 50%);
  mask-image:         linear-gradient(to bottom, transparent 0%, black 50%);
}

.graph-progressive-blur .hpb-strip:nth-child(1)  { top: 95%; backdrop-filter: blur(0.5px);  -webkit-backdrop-filter: blur(0.5px);  }
.graph-progressive-blur .hpb-strip:nth-child(2)  { top: 90%; backdrop-filter: blur(0.8px);  -webkit-backdrop-filter: blur(0.8px);  }
.graph-progressive-blur .hpb-strip:nth-child(3)  { top: 85%; backdrop-filter: blur(1px);    -webkit-backdrop-filter: blur(1px);    }
.graph-progressive-blur .hpb-strip:nth-child(4)  { top: 80%; backdrop-filter: blur(1.5px);  -webkit-backdrop-filter: blur(1.5px);  }
.graph-progressive-blur .hpb-strip:nth-child(5)  { top: 75%; backdrop-filter: blur(2px);    -webkit-backdrop-filter: blur(2px);    }
.graph-progressive-blur .hpb-strip:nth-child(6)  { top: 70%; backdrop-filter: blur(2.5px);  -webkit-backdrop-filter: blur(2.5px);  }
.graph-progressive-blur .hpb-strip:nth-child(7)  { top: 65%; backdrop-filter: blur(3px);    -webkit-backdrop-filter: blur(3px);    }
.graph-progressive-blur .hpb-strip:nth-child(8)  { top: 60%; backdrop-filter: blur(3.5px);  -webkit-backdrop-filter: blur(3.5px);  }
.graph-progressive-blur .hpb-strip:nth-child(9)  { top: 55%; backdrop-filter: blur(4px);    -webkit-backdrop-filter: blur(4px);    }
.graph-progressive-blur .hpb-strip:nth-child(10) { top: 50%; backdrop-filter: blur(4.5px);  -webkit-backdrop-filter: blur(4.5px);  }
.graph-progressive-blur .hpb-strip:nth-child(11) { top: 45%; backdrop-filter: blur(5px);    -webkit-backdrop-filter: blur(5px);    }
.graph-progressive-blur .hpb-strip:nth-child(12) { top: 40%; backdrop-filter: blur(5.5px);  -webkit-backdrop-filter: blur(5.5px);  }
.graph-progressive-blur .hpb-strip:nth-child(13) { top: 35%; backdrop-filter: blur(6px);    -webkit-backdrop-filter: blur(6px);    }
.graph-progressive-blur .hpb-strip:nth-child(14) { top: 30%; backdrop-filter: blur(6.5px);  -webkit-backdrop-filter: blur(6.5px);  }
.graph-progressive-blur .hpb-strip:nth-child(15) { top: 25%; backdrop-filter: blur(7px);    -webkit-backdrop-filter: blur(7px);    }
.graph-progressive-blur .hpb-strip:nth-child(16) { top: 20%; backdrop-filter: blur(7.5px);  -webkit-backdrop-filter: blur(7.5px);  }
.graph-progressive-blur .hpb-strip:nth-child(17) { top: 15%; backdrop-filter: blur(8px);    -webkit-backdrop-filter: blur(8px);    }
.graph-progressive-blur .hpb-strip:nth-child(18) { top: 10%; backdrop-filter: blur(8.5px);  -webkit-backdrop-filter: blur(8.5px);  }
.graph-progressive-blur .hpb-strip:nth-child(19) { top:  5%; backdrop-filter: blur(9px);    -webkit-backdrop-filter: blur(9px);    }
.graph-progressive-blur .hpb-strip:nth-child(20) { top:  0%; backdrop-filter: blur(10px);   -webkit-backdrop-filter: blur(10px);   }

/* ── GAMIFICATION ── */
.gamification-section {
  position: relative;
  background: #000;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 80px;
  padding-bottom: 120px;
  overflow: hidden;
}

.planets-row {
  position: relative;
  width: 100%;
  height: 421px;
  overflow: hidden;
}

.planet { position: absolute; object-fit: cover; }
.planet-mars   { width: 164px; height: 162px; left: 109px; top: 223px; opacity: 1; }
.planet-neptune { width: 105px; height: 105px; right: 70px; top: 24px; opacity: 1; }
.planet-uranus { width: 48px; height: 48px; left: 34px; top: 57px; opacity: 1; }
.planet-saturn { width: 114px; height: 114px; right: 230px; top: 282px; opacity: 1; }
.planet-jupiter { width: 120px; height: 120px; left: 292px; top: 45px; opacity: 1; }

.gamification-title-block {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 20px;
  width: 720px;
  max-width: 100%;
  padding: 0 24px;
}

.rocket-icon {
  width: 67px;
  height: auto;
  transform: rotate(90deg);
}

.gamification-cards {
  display: flex;
  gap: 24px;
  padding: 0 100px;
}

.gami-card {
  display: flex;
  flex-direction: column;
  flex: 1;
  min-width: 0;
}

.gami-card-image {
  position: relative;
  height: 530px;
  overflow: hidden;
  border-radius: 16px 16px 0 0;
}

.gami-card-image img {
  width: auto;
  height: 100%;
  object-fit: cover;
  display: block;
  margin: 0 auto;
}

/* Dark gradient fade — no backdrop-filter to avoid compositing flicker */
.gami-card-gradient {
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  height: 45%;
  background: linear-gradient(
    to bottom,
    transparent 0%,
    rgba(0,0,0,0.3) 30%,
    rgba(0,0,0,0.7) 60%,
    #000 100%
  );
  z-index: 2;
  pointer-events: none;
}

.gami-card-copy {
  display: flex;
  flex-direction: column;
  gap: 8px;
  text-align: center;
  padding-top: 12px;
}

.gami-card-copy .body-text {
  font-size: 14px;
  line-height: 1.5;
}

.gami-bg-planet-wrap {
  position: absolute;
  left: 50%;
  transform: translateX(-50%);
  top: 24px;
  width: 397px;
  height: 397px;
  pointer-events: none;
}

.gami-bg-planet {
  width: 100%;
  height: 100%;
  object-fit: cover;
  opacity: 1;
  display: block;
}

/* ── SQUADS ── */
.squads-section {
  position: relative;
  background: #000;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 80px;
  padding-bottom: 120px;
  overflow: hidden;
}

.squads-title-block {
  display: flex;
  flex-direction: column;
  align-items: center;
  width: 720px;
  max-width: 100%;
  padding: 0 24px;
}

.squads-image-wrap {
  position: relative;
  width: 398px;
  margin-bottom: 40px;
  overflow: hidden;
}

.squads-header-img {
  width: 100%;
  height: auto;
  display: block;
}

.squads-img-gradient {
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  height: 200px;
  background: linear-gradient(to bottom, transparent 0%, #000 100%);
  z-index: 4;
  pointer-events: none;
}


.squads-body {
  position: relative;
  display: flex;
  align-items: center;
  gap: 24px;
  padding: 80px 100px;
  width: 100%;
}

.squads-bg {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  pointer-events: none;
}

.squads-phone {
  flex: 1;
  display: flex;
  justify-content: center;
  align-items: center;
  align-self: center;
  position: relative;
  z-index: 1;
}

.squads-phone img {
  width: 398px;
  max-width: 100%;
  height: auto;
}

.squads-values {
  display: flex;
  flex-direction: column;
  gap: 4px;
  width: 608px;
  max-width: 100%;
  flex-shrink: 1;
  min-width: 0;
  position: relative;
  z-index: 1;
  align-self: center;
}

/* Background and border match navbar */
.squad-value-card {
  display: flex;
  align-items: center;
  gap: 23px;
  background: rgba(0, 0, 0, 0.5);
  border: none;
  border-radius: 40px;
  padding: 40px;
  box-shadow: 0 0 0 1px rgba(255, 255, 255, 0.08);
  backdrop-filter: blur(12px) saturate(180%);
  -webkit-backdrop-filter: blur(12px) saturate(180%);
}
.squad-value-card::before { background: transparent; }

.squad-icon {
  width: 40px;
  height: 40px;
  object-fit: cover;
  flex-shrink: 0;
}

.squad-value-card .title-small { margin-bottom: 4px; text-wrap: unset; }
.squad-value-card .body-text { text-wrap: unset; }

.squad-value-card .body-text {
  font-size: 14px;
  line-height: 1.5;
}

/* ── TESTIMONIALS ── */
.testimonials-section {
  position: relative;
  background:
    radial-gradient(ellipse 90% 60% at 50% -20%, rgba(255, 16, 20, 0.06) 0%, transparent 45%),
    radial-gradient(ellipse 70% 40% at 80% 100%, rgba(255, 123, 0, 0.04) 0%, transparent 40%),
    #000;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 40px;
  padding: 0 100px 120px;
  overflow: hidden;
}

.testimonials-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  width: 100%;
  max-width: 1440px;
  align-self: stretch;
}

.testimonial-card {
  position: relative;
  display: flex;
  flex-direction: column;
  justify-content: flex-start;
  align-items: flex-start;
  gap: 24px;
  padding: 0 24px;
  min-width: 0;
  text-align: left;
  transition: opacity 0.2s ease;
}

.testimonial-card:first-child {
  padding-left: 0;
}

.testimonial-card:last-child {
  padding-right: 0;
}

.testimonial-card:not(:last-child) {
  border-right: 1px solid var(--border-medium);
}

.testimonial-quote {
  position: relative;
  display: block;
  font-family: Inter, system-ui, sans-serif;
  font-size: 17px;
  font-weight: 400;
  line-height: 1.6;
  margin: 0;
  background: linear-gradient(180deg, rgba(224, 245, 255, 1) 0%, rgba(255, 228, 242, 1) 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.testimonial-author {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 12pt;
  margin-top: auto;
  height: 8.5rem;
  flex-shrink: 0;
}

.testimonial-author-meta {
  display: flex;
  flex-direction: column;
  gap: 2px;
}

.testimonial-avatar {
  width: 40px;
  height: 40px;
  border-radius: 100px;
  object-fit: cover;
  border: none;
  background: var(--border-subtle);
  flex-shrink: 0;
}
.testimonial-avatar::before { background: transparent; }

.testimonial-username {
  font-size: 14px;
  font-weight: 600;
  line-height: 1.4;
  color: var(--white);
}

.testimonial-user-type {
  font-size: 13px;
  font-weight: 400;
  line-height: 1.4;
  color: #b0b0b0;
  transition: color 0.2s ease;
}

.testimonial-card:hover .testimonial-user-type {
  color: #c0c0c0;
}

/* ── FEATURES ── */
.features-section {
  position: relative;
  background: #000;
  display: flex;
  flex-direction: column;
  gap: 32px;
  padding: 0 100px 120px;
  overflow: hidden;
}

.features-bg {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  pointer-events: none;
}

.features-section .section-copy {
  position: relative;
  z-index: 1;
}

.features-grid {
  position: relative;
  z-index: 1;
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
}

/* Features section cards: black fill, gradient only on the 1px border (top→bottom white 16%→0%) */
.feature-card {
  position: relative;
  display: flex;
  flex-direction: column;
  gap: 20px;
  border: none;
  padding: 1px;
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.16) 0%, rgba(255, 255, 255, 0) 100%);
  border-radius: 40px;
  overflow: hidden;
  align-self: stretch;
}
/* Black fill so gradient shows only in the border ring */
.feature-card::before {
  content: '';
  position: absolute;
  inset: 1px;
  border-radius: 39px;
  background: #000000;
  z-index: 0;
  pointer-events: none;
}
.feature-card-copy,
.feature-card-image {
  position: relative;
  z-index: 1;
}

.feature-card-copy {
  display: flex;
  flex-direction: column;
  gap: 4px;
  padding: 40px 40px 0;
  min-height: 180px;
}

.feature-card-copy .title-small,
.feature-card-copy .body-text {
  text-wrap: unset;
}

.feature-card-copy .body-text {
  font-size: 14px;
  line-height: 1.5;
}

.feature-card-image {
  flex: 1;
  overflow: hidden;
  display: flex;
  align-items: center;
  justify-content: center;
}

.feature-card-image img {
  width: 100%;
  height: 100%;
  object-fit: contain;
}

/* ── FOOTER ── */
.site-footer {
  background: #000;
  padding: 0 100px 60px;
  position: relative;
  z-index: 1;
}

.footer-links-row {
  padding-bottom: 40px;
}

.footer-resources {
  display: flex;
  flex-direction: column;
  gap: 20px;
  width: 335px;
}

.footer-label {
  font-size: 13px;
  font-weight: 600;
  color: var(--muted);
  letter-spacing: 0.01em;
  text-transform: uppercase;
}

.footer-resources a {
  font-size: 17px;
  color: var(--white);
  text-decoration: none;
  transition: opacity var(--hover-duration) var(--hover-ease), color var(--hover-duration) var(--hover-ease);
}
.footer-resources a:hover {
  opacity: 0.85;
}
.footer-resources a:focus-visible {
  outline: 2px solid rgba(255,255,255,0.5);
  outline-offset: 2px;
}

.footer-divider {
  border-top: 1px solid var(--border-medium);
  margin-bottom: 40px;
}

.footer-bottom {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 24px;
}

.footer-logo-block {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 40px;
}

.footer-logo-img {
  height: 36px;
  width: auto;
  display: block;
}

.footer-appstore {
  display: inline-block;
  transition: transform var(--hover-duration) var(--hover-ease), opacity var(--hover-duration) var(--hover-ease);
}
.footer-appstore:hover {
  transform: scale(1.04);
  opacity: 0.92;
}
.footer-appstore:focus-visible {
  outline: 2px solid rgba(255,255,255,0.5);
  outline-offset: 6px;
  border-radius: 8px;
}
.footer-appstore img,
.footer-appstore svg {
  height: 40px;
  width: auto;
  display: block;
}

.footer-socials {
  display: flex;
  gap: 8px;
  align-items: center;
}

.footer-socials a {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 40px;
  height: 40px;
  border-radius: 50%;
  color: var(--white);
  text-decoration: none;
  transition: opacity var(--hover-duration) var(--hover-ease), transform var(--hover-duration) var(--hover-ease), background-color var(--hover-duration) var(--hover-ease);
}
.footer-socials a:hover {
  opacity: 1;
  transform: scale(1.1);
  background-color: rgba(255,255,255,0.1);
}
.footer-socials a:focus-visible {
  outline: 2px solid rgba(255,255,255,0.5);
  outline-offset: 2px;
}

/* ─────────────────────────────────────────────────────────────────────────
   FAQ SECTION
──────────────────────────────────────────────────────────────────────────── */
.faq-section {
  padding: 0 100px 120px;
  background: var(--black);
}

.faq-inner {
  max-width: 800px;
  margin: 0 auto;
  display: flex;
  flex-direction: column;
  gap: 64px;
}

.faq-list {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.faq-item {
  background: #141414;
  border: none;
  border-radius: 40px;
  box-shadow: 0 0 0 1px rgba(255, 255, 255, 0.08);
  padding: 0 32px;
}
.faq-item::before { background: transparent; }

.faq-question {
  width: 100%;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 16px;
  padding: 28px 0;
  background: none;
  border: none;
  color: var(--white);
  font-family: inherit;
  font-size: 17px;
  font-weight: 600;
  letter-spacing: -0.02em;
  line-height: 1.4;
  text-align: left;
  cursor: pointer;
  transition: color 0.2s ease;
}

.faq-question:hover { color: rgba(255, 255, 255, 0.75); }

.faq-icon {
  flex-shrink: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--muted);
  font-size: 24px;
  line-height: 1;
  transition: transform 0.35s ease, color 0.35s ease;
}

.faq-icon::before {
  content: '+';
  display: block;
}

.faq-question[aria-expanded="true"] .faq-icon {
  transform: rotate(45deg);
  color: var(--white);
}

.faq-answer {
  overflow: hidden;
  height: 0;
}

.faq-answer p {
  padding-bottom: 28px;
  margin: 0;
}

.footer-copy {
  font-size: 13px;
  color: var(--muted);
}

/* ── FOOTER BACK-TO-TOP ROCKET (Interface Craft) ───────────────────────
 * STORYBOARD:
 *   rest    scale 1, no filter; rocket image rotated -90deg (points up)
 *   hover   scale 1.15, brightness(1.15); uses --hover-duration, --hover-ease
 *   click   smooth scroll to top (window.scrollTo)
 *   focus   white outline for keyboard users
 * ───────────────────────────────────────────────────────────────────── */
.footer-back-top {
  --back-top-margin-top: 20px;       /* 20px below "© ... All rights reserved." */
  --back-top-scale-rest: 1;
  --back-top-scale-hover: 1.15;
  margin-top: var(--back-top-margin-top);
  padding: 0;
  border: none;
  background: none;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  transform: scale(var(--back-top-scale-rest));
  filter: none;
  transition: transform var(--hover-duration) var(--hover-ease),
              filter var(--hover-duration) var(--hover-ease);
}
.footer-back-top:hover {
  transform: scale(var(--back-top-scale-hover));
  filter: brightness(1.15);
}
.footer-back-top:focus-visible {
  outline: 2px solid rgba(255, 255, 255, 0.5);
  outline-offset: 6px;
  border-radius: 8px;
}
.footer-back-top-rocket {
  width: 67px;
  height: auto;
  display: block;
  transform: rotate(0deg); /* asset points up by default */
}

/* ── MOON SECTION ── */
.moon-section {
  position: relative;
  height: 820px;
  overflow: hidden;
  background: #000;
}

.moon-bg {
  position: absolute;
  left: 0;
  top: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center top;
  pointer-events: none;
}

.moon-gradient-top {
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 69px;
  background: linear-gradient(to bottom, #000 0%, rgba(0,0,0,0.5) 50%, transparent 100%);
  backdrop-filter: blur(15px);
  -webkit-backdrop-filter: blur(15px);
  pointer-events: none;
}

/* Astronaut in moon section (e.g. privacy/terms): position over moon */
.moon-section .hero-astronaut-wrap {
  top: auto;
  bottom: 15%;
  transform: translateX(-50%);
  width: min(200px, 35%);
}
.moon-section .hero-astronaut-wrap .hero-astronaut {
  width: 100%;
  height: auto;
  object-fit: contain;
}

/* ─────────────────────────────────────────────────────────────────────────
   HAMBURGER + MOBILE MENU (base styles, always hidden on desktop)
──────────────────────────────────────────────────────────────────────────── */

.nav-hamburger {
  display: none;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  gap: 5px;
  width: 40px;
  height: 40px;
  background: none;
  border: none;
  cursor: pointer;
  padding: 0;
  flex-shrink: 0;
  border-radius: 8px;
  transition: background-color var(--hover-duration) var(--hover-ease);
}
.nav-hamburger:hover {
  background-color: rgba(255,255,255,0.08);
}
.nav-hamburger:focus-visible {
  outline: 2px solid rgba(255,255,255,0.5);
  outline-offset: 2px;
}

.nav-hamburger-bar {
  display: block;
  width: 22px;
  height: 2px;
  background: var(--white);
  border-radius: 2px;
  transition: transform 0.25s ease, opacity 0.25s ease;
}

.nav-hamburger.is-open .nav-hamburger-bar:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.nav-hamburger.is-open .nav-hamburger-bar:nth-child(2) { opacity: 0; }
.nav-hamburger.is-open .nav-hamburger-bar:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

.nav-mobile-menu {
  display: none;
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  z-index: 99;
  background: rgba(0, 0, 0, 0.5);
  backdrop-filter: blur(12px) saturate(180%);
  -webkit-backdrop-filter: blur(12px) saturate(180%);
  transform: translateY(-8px);
  opacity: 0;
  pointer-events: none;
  transition: transform 0.25s ease, opacity 0.25s ease;
}

.nav-mobile-menu.is-open {
  transform: translateY(0);
  opacity: 1;
  pointer-events: auto;
}

.nav-mobile-menu-inner {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 16px;
  padding: 96px 24px 32px; /* 96px pushes content below the navbar */
}

/* Same styles as desktop .nav-signin / .nav-signup; keep full-width and touch-friendly padding on mobile */
.nav-mobile-signin,
.nav-mobile-signup {
  width: 100%;
  max-width: 320px;
  padding: 14px 24px;
  border-radius: 100px;
  font-size: 14px;
  font-weight: 600;
  font-family: inherit;
  cursor: pointer;
  text-align: center;
  text-decoration: none;
}

.nav-mobile-signin {
  background: none;
  border: none;
  color: var(--white);
  transition: opacity var(--hover-duration) var(--hover-ease), color var(--hover-duration) var(--hover-ease);
}
.nav-mobile-signin:hover {
  opacity: 0.85;
}
.nav-mobile-signin:focus-visible {
  outline: 2px solid rgba(255, 255, 255, 0.5);
  outline-offset: 4px;
}

.nav-mobile-signup {
  background: none;
  border: none;
  color: var(--white);
  box-shadow: 0 0 0 1px rgba(255, 255, 255, 0.4);
  transition: box-shadow var(--hover-duration) var(--hover-ease), transform var(--hover-duration) var(--hover-ease);
}
.nav-mobile-signup:hover {
  box-shadow: 0 0 0 1px rgba(255, 255, 255, 0.7);
  transform: translateY(var(--hover-lift));
}
.nav-mobile-signup:focus-visible {
  outline: 2px solid rgba(255, 255, 255, 0.5);
  outline-offset: 4px;
}

.nav-mobile-feature-request {
  width: 100%;
  max-width: 320px;
  padding: 14px 24px;
  border-radius: 100px;
  font-size: 14px;
  font-weight: 400;
  font-family: inherit;
  text-align: center;
  color: var(--white);
  text-decoration: none;
  transition: opacity var(--hover-duration) var(--hover-ease), color var(--hover-duration) var(--hover-ease);
}
.nav-mobile-feature-request:hover {
  opacity: 0.85;
}
.nav-mobile-feature-request:focus-visible {
  outline: 2px solid rgba(255, 255, 255, 0.5);
  outline-offset: 4px;
}

.nav-mobile-socials {
  display: flex;
  gap: 12px;
  align-items: center;
  margin-top: 8px;
}

.nav-mobile-socials a {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 44px;
  height: 44px;
  border-radius: 50%;
  transition: opacity var(--hover-duration) var(--hover-ease), transform var(--hover-duration) var(--hover-ease), background-color var(--hover-duration) var(--hover-ease);
}
.nav-mobile-socials a:hover {
  opacity: 1;
  transform: scale(1.1);
  background-color: rgba(255,255,255,0.1);
}

/* ─────────────────────────────────────────────────────────────────────────
   TABLET  ≤ 1024px
──────────────────────────────────────────────────────────────────────────── */
@media (max-width: 1024px) {

  /* Navbar */
  .navbar { padding: max(16px, env(safe-area-inset-top)) 24px 16px 24px; }

  /* Hero */
  .hero-content { padding: 80px 60px; }
  .hero-right { min-height: 400px; }

  /* Graph */
  .graph-image-wrap { width: 90%; }

  /* Gamification */
  .gamification-cards { padding: 0 40px; }
  .gami-card { flex: 1; }
  .gami-card-image { height: 420px; }
  /* Planets — scale to ~75% at tablet */
  .planets-row { height: 310px; }
  .planet-mars    { width: 123px; height: 122px; left: 82px;  top: 167px; }
  .planet-neptune { width:  79px; height:  79px; right: 53px; top:  18px; }
  .planet-uranus  { width:  36px; height:  36px; left: 26px;  top:  43px; }
  .planet-saturn  { width:  86px; height:  86px; right: 173px; top: 212px; }
  .planet-jupiter { width:  90px; height:  90px; left: 219px; top:  34px; }
  .gami-bg-planet-wrap { width: 300px; height: 300px; }

  /* Squads */
  .squads-body { padding: 60px 40px; }
  .squads-values { width: auto; flex: 1; }

  /* Testimonials — 2 columns, dividers between columns and rows */
  .testimonials-section { padding: 0 60px 80px; }
  .testimonials-grid {
    grid-template-columns: repeat(2, 1fr);
    row-gap: 32px;
    column-gap: 0;
  }
  .testimonial-card:not(:last-child) { border-right: none; }
  .testimonial-card:nth-child(2n - 1) { border-right: 1px solid var(--border-medium); }
  .testimonial-card:nth-child(3) { padding-left: 0; }
  /* Keep right column padding consistent (don’t zero out last-child at tablet) */
  .testimonial-card:nth-child(2n) { padding-right: 0; }

  /* Features */
  .features-section { padding: 0 60px 80px; }
  .features-grid { grid-template-columns: repeat(2, 1fr); }

  /* Footer */
  .site-footer { padding: 0 60px 60px; }
}

/* ─────────────────────────────────────────────────────────────────────────
   MOBILE  ≤ 768px
──────────────────────────────────────────────────────────────────────────── */
@media (max-width: 768px) {

  /* Navbar — show hamburger, hide desktop auth buttons */
  .navbar { padding: max(14px, env(safe-area-inset-top)) 20px 14px 20px; }
  .navbar-right { gap: 8px; }
  .nav-signin,
  .nav-signup,
  .nav-feature-request,
  .nav-divider { display: none; }
  .nav-hamburger { display: flex; }
  .nav-mobile-menu { display: block; }

  /* Hero */
  .hero-content {
    flex-direction: column;
    padding: 100px 24px 60px;
    align-items: flex-start;
    gap: 40px;
  }
  .hero-left {
    width: 100%;
    gap: 24px;
  }
  .hero-facepile {
    margin-bottom: -12px; /* 12px to badge when parent gap is 24px */
  }
  .hero-right {
    width: 100%;
    min-height: 400px;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
  }
  .hero-phone-wrap {
    position: relative;
    left: auto;
    top: auto;
    transform: none !important;
    width: min(503px, 100%);
    margin: 0 auto;
  }
  .hero-astronaut-wrap {
    position: relative;
    left: auto;
    top: auto;
    transform: none !important;
    margin: -60px auto 0;
  }

  /* Graph */
  .graph-section { padding: 60px 0 0; gap: 48px; }
  .graph-section .section-copy { max-width: 100%; padding: 0 24px 80px; }
  .graph-section .graph-intro-copy { margin-bottom: 0; }
  .graph-image-wrap { width: 100%; }
  /* Background image: full width, anchored to bottom, limited height so it’s less zoomed */
  .graph-bg {
    top: auto;
    right: 0;
    bottom: 0;
    left: 0;
    width: 100%;
    height: 85%;
    object-fit: cover;
    object-position: bottom center;
  }

  /* Gamification */
  .gamification-section { gap: 60px; padding-bottom: 80px; }
  .gamification-title-block { width: 100%; padding: 0 24px; }
  .gamification-cards {
    flex-direction: column;
    align-items: center;
    padding: 0 24px;
    gap: 80px;
  }
  .gami-card { width: 100%; max-width: 480px; }
  .gami-card-image { height: 360px; }
  /* Planets — scale to ~55% on mobile */
  .planets-row { height: 220px; }
  .planet-mars    { width:  90px; height:  89px; left:  60px; top: 123px; }
  .planet-neptune { width:  58px; height:  58px; right: 39px; top:  13px; }
  .planet-uranus  { width:  26px; height:  26px; left:  19px; top:  31px; }
  .planet-saturn  { width:  63px; height:  63px; right: 127px; top: 155px; }
  .planet-jupiter { width:  66px; height:  66px; left: 161px; top:  25px; }
  .gami-bg-planet-wrap { width: 220px; height: 220px; }

  /* Squads */
  .squads-section { gap: 40px; padding-bottom: 80px; }
  .squads-title-block { width: 100%; padding: 0 24px; }
  .squads-image-wrap { width: 100%; }
  .squads-body {
    flex-direction: column;
    padding: 0 24px 40px;
    gap: 32px;
  }
  .squads-phone { order: -1; width: 100%; }
  .squads-phone img { width: 100%; max-width: 360px; margin: 0 auto; display: block; }
  .squads-values { width: 100%; }
  .squad-value-card { padding: 24px; border-radius: 40px; }

  /* Testimonials */
  .testimonials-section { padding: 0 24px 60px; gap: 24px; }
  .testimonials-grid { grid-template-columns: 1fr; }
  .testimonial-card { padding: 24px 0; }
  .testimonial-card:not(:last-child) { border-right: none; border-bottom: 1px solid var(--border-medium); }

  /* Features */
  .features-section { padding: 0 24px 60px; gap: 24px; }
  .features-grid { grid-template-columns: repeat(2, 1fr); }
  .feature-card-copy { padding: 40px 24px 0; min-height: auto; }
  .feature-card-image { min-height: 280px; }

  .faq-section { padding-left: 24px; padding-right: 24px; }
  .faq-inner { gap: 40px; }
  .faq-question { font-size: 15px; }

  /* Footer */
  .site-footer { padding: 0 24px 60px; }
  .footer-links-row { padding-bottom: 24px; }
  .footer-resources { width: 100%; }
  .footer-resources a { font-size: 15px; }
  .footer-socials a {
    width: 44px;
    height: 44px;
  }

  /* Typography */
  .title-medium { font-size: 20px; }
  .title-small { font-size: 15px; }
  .body-text { font-size: 15px; }
}

/* ─────────────────────────────────────────────────────────────────────────
   SMALL MOBILE  ≤ 480px
──────────────────────────────────────────────────────────────────────────── */
@media (max-width: 480px) {
  .navbar { padding: max(12px, env(safe-area-inset-top)) 16px 12px 16px; }
  .hero-content { padding: 90px 16px 48px; }
  .features-grid { grid-template-columns: 1fr; }
  .gamification-cards,
  .squads-title-block,
  .graph-section .section-copy,
  .testimonials-section,
  .features-section,
  .faq-section,
  .site-footer { padding-left: 16px; padding-right: 16px; }
  .squads-body { padding-left: 16px; padding-right: 16px; }
  .title-large { font-size: clamp(24px, 7vw, 32px); }
}
