/* Landing page only -- /privacy and /support use styles.css alone.
   Every section is fully visible without JavaScript (and with reduced
   motion); landing.js adds classes on <html> to switch sections into their
   animated layouts. */

html.lenis,
html.lenis body {
  height: auto;
}

.lenis.lenis-smooth {
  scroll-behavior: auto !important;
}

body.landing {
  overflow-x: clip;
}

.landing .site-header {
  background: rgba(11, 14, 20, 0.55);
}

.eyebrow {
  display: inline-block;
  font-size: 13px;
  font-weight: 600;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--visited);
  margin-bottom: 14px;
}

.display {
  font-family: var(--display);
  font-weight: 700;
  letter-spacing: -0.02em;
  line-height: 1.04;
  margin: 0;
}

/* ---------- Hero ---------- */
.l-hero {
  position: relative;
  min-height: 100svh;
  display: grid;
  place-items: center;
  padding: 88px 0 64px;
  text-align: center;
  background:
    radial-gradient(90% 60% at 50% 38%, rgba(71, 37, 105, 0.85) 0%, rgba(45, 27, 78, 0.55) 40%, transparent 72%),
    var(--bg);
  overflow: hidden;
}

/* Sized so the title, tagline and badge still fit in the first screen
   on a laptop; the title overlaps the bottom of the globe slightly. */
.globe-wrap {
  position: relative;
  width: min(84vw, 54svh, 560px);
  aspect-ratio: 1;
  margin: 0 auto -4%;
}

.globe-wrap canvas {
  position: relative;
  z-index: 1;
  width: 100%;
  height: 100%;
  display: block;
}

/* A soft atmosphere halo behind the globe. */
.globe-wrap::before {
  content: '';
  position: absolute;
  inset: 4%;
  border-radius: 50%;
  box-shadow: 0 0 120px 20px rgba(47, 230, 168, 0.12), 0 0 60px 4px rgba(34, 211, 238, 0.1);
  pointer-events: none;
}

.l-hero h1 {
  position: relative;
  z-index: 2;
  font-size: clamp(56px, 10vw, 104px);
  text-shadow: 0 8px 40px rgba(11, 14, 20, 0.6);
}

.l-hero .tagline {
  font-family: var(--display);
  font-weight: 600;
  font-size: clamp(22px, 3.6vw, 34px);
  margin: 10px 0 18px;
  color: rgba(245, 240, 255, 0.92);
}

.l-hero .lede {
  max-width: 560px;
  margin: 0 auto 30px;
  color: rgba(245, 240, 255, 0.72);
  font-size: clamp(16px, 2.2vw, 19px);
}

.scroll-cue {
  position: absolute;
  left: 50%;
  bottom: 24px;
  width: 26px;
  height: 42px;
  margin-left: -13px;
  border: 2px solid rgba(245, 247, 250, 0.35);
  border-radius: 14px;
}

.scroll-cue::after {
  content: '';
  position: absolute;
  left: 50%;
  top: 8px;
  width: 4px;
  height: 8px;
  margin-left: -2px;
  border-radius: 2px;
  background: rgba(245, 247, 250, 0.7);
  animation: cue 1.8s ease-in-out infinite;
}

@keyframes cue {
  0% { transform: translateY(0); opacity: 1; }
  70% { transform: translateY(12px); opacity: 0; }
  100% { transform: translateY(0); opacity: 0; }
}

/* ---------- Showcase (phone + features) ---------- */
.showcase {
  position: relative;
  padding: 96px 0;
}

.showcase-head {
  text-align: center;
  margin-bottom: 56px;
}

.showcase-head h2 {
  font-size: clamp(34px, 6vw, 60px);
}

.phone {
  position: relative;
  width: min(72vw, 300px);
  aspect-ratio: 393 / 852;
  border-radius: 15% / 7%;
  padding: 3.2%;
  background: linear-gradient(145deg, #3a3d46, #15171c 40%, #0a0b0e);
  box-shadow:
    0 0 0 1.5px rgba(255, 255, 255, 0.14) inset,
    0 40px 90px rgba(0, 0, 0, 0.55),
    0 0 0 1px rgba(0, 0, 0, 0.6);
}

.phone-screen {
  position: relative;
  width: 100%;
  height: 100%;
  border-radius: 12.5% / 5.8%;
  overflow: hidden;
  background: #0b0e14;
  transform: translateZ(0);
}

.phone-screen img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.phone-island {
  position: absolute;
  top: 2.4%;
  left: 50%;
  width: 31%;
  height: 3.6%;
  margin-left: -15.5%;
  border-radius: 999px;
  background: #000;
  z-index: 2;
}

/* List layout (default: no JS, phones, reduced motion): one phone per step. */
.steps {
  display: grid;
  gap: 72px;
}

.step {
  display: grid;
  justify-items: center;
  gap: 28px;
  text-align: center;
}

.step-text {
  max-width: 460px;
}

.step h3,
.stage-texts h3 {
  font-family: var(--display);
  font-weight: 700;
  font-size: clamp(28px, 4.4vw, 42px);
  line-height: 1.1;
  margin: 0 0 12px;
}

.step p,
.stage-texts p {
  margin: 0;
  color: var(--text-muted);
  font-size: 17px;
}

.stage {
  display: none;
}

/* Pinned layout (desktop with motion, enabled by landing.js): one fixed
   phone whose screen changes, with the step texts stacked beside it. */
html.is-pinned .showcase {
  padding: 0;
}

html.is-pinned .showcase-head {
  padding-top: 120px;
  margin-bottom: 0;
}

html.is-pinned .stage {
  display: grid;
  grid-template-columns: 1fr 1fr;
  align-items: center;
  gap: 48px;
  height: 100vh;
  max-width: var(--max);
  margin: 0 auto;
  padding: 0 20px;
}

html.is-pinned .stage .phone {
  width: min(36vh, 330px);
  justify-self: center;
}

html.is-pinned .stage-texts {
  position: relative;
  height: 300px;
}

html.is-pinned .stage-texts .step-text {
  position: absolute;
  inset: 0 auto auto 0;
  text-align: left;
}

html.is-pinned .steps {
  display: none;
}

.stage-dots {
  position: absolute;
  left: 0;
  bottom: 0;
  display: flex;
  gap: 8px;
}

.stage-dots span {
  position: relative;
  width: 28px;
  height: 4px;
  border-radius: 2px;
  background: rgba(255, 255, 255, 0.16);
  overflow: hidden;
}

.stage-dots span i {
  position: absolute;
  inset: 0;
  background: var(--visited);
  transform: scaleX(0);
  transform-origin: left;
}

/* ---------- Flight path ---------- */
.flight {
  padding: 110px 0;
  text-align: center;
  overflow: hidden;
}

.flight h2,
.stats h2,
.collections h2 {
  font-size: clamp(32px, 5.4vw, 54px);
}

.flight .section-lede {
  margin-bottom: 40px;
}

.flight-map {
  position: relative;
  width: 100%;
  max-width: 1100px;
  margin: 0 auto;
}

.flight-map svg {
  display: block;
  width: 100%;
  height: auto;
  overflow: visible;
}

.route-line {
  fill: none;
  stroke: url(#routeGradient);
  stroke-width: 2.4;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.stop circle {
  fill: var(--bg);
  stroke: var(--visited);
  stroke-width: 2;
}

.stop text {
  fill: var(--text);
  font: 600 13px var(--body);
  letter-spacing: 0.06em;
}

.plane {
  fill: #fff;
}

/* ---------- Stats ---------- */
.stats {
  padding: 100px 0;
  text-align: center;
  background: linear-gradient(180deg, transparent, rgba(45, 27, 78, 0.35) 50%, transparent);
}

.stats-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 16px;
  margin-top: 48px;
}

.stat-card {
  padding: 30px 14px;
  border-radius: var(--radius);
  background: var(--surface);
  border: 1px solid var(--surface-border);
}

.stat-card b {
  display: block;
  font-family: var(--display);
  font-weight: 700;
  font-size: clamp(34px, 3.6vw, 46px);
  line-height: 1;
  white-space: nowrap;
  color: var(--accent, var(--text));
  font-variant-numeric: tabular-nums;
}

.stat-card span {
  display: block;
  margin-top: 10px;
  color: var(--text-muted);
  font-size: 15px;
}

/* ---------- Collections ---------- */
.collections {
  padding: 110px 0 120px;
  text-align: center;
  overflow: hidden;
}

.cards {
  display: flex;
  gap: 14px;
  margin-top: 48px;
  padding: 8px 20px 24px;
  overflow-x: auto;
  scroll-snap-type: x mandatory;
  -webkit-overflow-scrolling: touch;
  scrollbar-width: none;
}

.cards::-webkit-scrollbar {
  display: none;
}

.c-card {
  flex: 0 0 220px;
  height: 300px;
  scroll-snap-align: center;
  border-radius: 24px;
  padding: 22px;
  text-align: left;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  background: linear-gradient(155deg, var(--a), var(--b));
  border: 1px solid rgba(255, 255, 255, 0.14);
  box-shadow: 0 24px 60px rgba(0, 0, 0, 0.45);
}

.c-card .c-icon {
  font-size: 38px;
  line-height: 1;
}

.c-card h3 {
  font-family: var(--display);
  font-weight: 700;
  font-size: 24px;
  line-height: 1.15;
  margin: 0 0 6px;
}

.c-card p {
  margin: 0;
  font-size: 14px;
  color: rgba(255, 255, 255, 0.78);
}

/* Fan layout (desktop with motion): cards stacked in the middle, fanned
   out by landing.js as the section scrolls into view. */
html.is-fanned .cards {
  position: relative;
  display: block;
  height: 380px;
  overflow: visible;
  padding: 0;
  max-width: var(--max);
  margin-left: auto;
  margin-right: auto;
}

html.is-fanned .c-card {
  position: absolute;
  left: 50%;
  top: 30px;
  width: 220px;
  margin-left: -110px;
  will-change: transform;
}

/* ---------- Final CTA ---------- */
.cta {
  padding: 120px 0 130px;
  text-align: center;
  background:
    radial-gradient(70% 80% at 50% 100%, rgba(71, 37, 105, 0.7), transparent 70%),
    var(--bg);
}

.cta h2 {
  font-size: clamp(38px, 7vw, 72px);
  margin-bottom: 18px;
}

.cta p {
  color: var(--text-muted);
  font-size: 18px;
  margin: 0 auto 34px;
  max-width: 520px;
}

.cta .mail {
  display: inline-block;
  margin-top: 26px;
  font-weight: 600;
}

@media (max-width: 520px) {
  .l-hero {
    padding-top: 84px;
  }

  .showcase,
  .flight,
  .stats,
  .collections {
    padding-top: 72px;
    padding-bottom: 72px;
  }

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

  .stat-card {
    padding: 22px 12px;
  }
}

@media (prefers-reduced-motion: reduce) {
  .scroll-cue::after {
    animation: none;
  }
}
