/* ============================================================
   NOMADS — COSMIC LANDING (override of main.css for index)
   A breathing universe: starfield + dot globe + orbiting features
   ============================================================ */

:root {
  --c-ink: #050714;
  --c-ink-2: #0a0f1f;
  --c-aurora: #7AB9C9;
  --c-aurora-2: #9BA696;
  --c-aurora-3: #1D5B78;
  --c-gold: #FFD68A;
  --c-rose: #ff7a8a;
  --c-violet: #8a7dff;
  --c-line: rgba(255,255,255,0.08);
  --c-text: #F1F4FA;
  --c-text-soft: #9aa3b8;
}

html.cosmic, html.cosmic body {
  background: var(--c-ink);
  color: var(--c-text);
  font-family: 'Poppins', sans-serif;
  cursor: auto; /* override main.css */
}

html.cosmic body {
  cursor: auto;
  overflow-x: hidden;
  /* Avoid transform on body (would trap fixed cosmos backdrop on mobile) */
  transform: none !important;
  -webkit-transform: none !important;
}

/* Fluid scroll — no scroll-snap (avoids jerky “stutter” scrolling) */
html.cosmic {
  scroll-behavior: smooth;
}

/* Fixed navbar clearance: native #hash jumps + scrollIntoView land below the bar */
html.cosmic #home,
html.cosmic #features,
html.cosmic #how-it-works,
html.cosmic #download {
  scroll-margin-top: 80px;
}

@media (prefers-reduced-motion: reduce) {
  html.cosmic {
    scroll-behavior: auto;
  }
}

html.cosmic .cursor,
html.cosmic .cursor-follower { display: none !important; }

/* ----------- COSMIC BACKDROP (canvas + nebula + grid) ----------- */
.cosmos-stage {
  position: fixed;
  inset: 0;
  z-index: 0;
  pointer-events: none;
  overflow: hidden;
  background:
    radial-gradient(1200px 700px at 70% -10%, rgba(122,185,201,0.15), transparent 60%),
    radial-gradient(900px 800px at 10% 110%, rgba(155,166,150,0.12), transparent 60%),
    radial-gradient(1000px 600px at 90% 60%, rgba(138,125,255,0.08), transparent 70%),
    linear-gradient(180deg, #04060f 0%, #050714 60%, #03040a 100%);
}
#cosmosCanvas {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  display: block;
}
.cosmos-grid {
  position: absolute;
  inset: 0;
  background-image:
    linear-gradient(rgba(122,185,201,0.05) 1px, transparent 1px),
    linear-gradient(90deg, rgba(122,185,201,0.05) 1px, transparent 1px);
  background-size: 60px 60px;
  mask-image: radial-gradient(ellipse at center, black 30%, transparent 75%);
  -webkit-mask-image: radial-gradient(ellipse at center, black 30%, transparent 75%);
  opacity: 0.4;
}
.cosmos-noise {
  position: absolute;
  inset: 0;
  background-image:
    radial-gradient(rgba(255,255,255,0.6) 1px, transparent 1.5px);
  background-size: 3px 3px;
  opacity: 0.02;
  mix-blend-mode: overlay;
}

/* ----------- NAVBAR (cosmic refined) ----------- */
html.cosmic .navbar {
  background: rgba(5, 7, 20, 0.55);
  backdrop-filter: blur(18px) saturate(140%);
  -webkit-backdrop-filter: blur(18px) saturate(140%);
  border-bottom: 1px solid rgba(255,255,255,0.06);
  box-shadow: none;
}
html.cosmic .navbar.scrolled {
  background: rgba(5, 7, 20, 0.85);
}
html.cosmic .nav-menu li a,
html.cosmic .btn-login {
  letter-spacing: 0.08em;
  font-size: 13px;
  text-transform: uppercase;
  font-weight: 600;
}
html.cosmic .logo-img {
  filter: drop-shadow(0 0 18px rgba(122,185,201,0.55));
}

/* ----------- GENERAL TYPOGRAPHY ----------- */
.cosmic-section {
  position: relative;
  z-index: 2;
  padding: 12vh 6vw;
  min-height: 100vh;
  display: flex;
  align-items: center;
}
.cosmic-eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-size: 11px;
  letter-spacing: 0.4em;
  text-transform: uppercase;
  color: var(--c-text-soft);
  font-weight: 600;
}
.cosmic-eyebrow::before {
  content: "";
  width: 28px;
  height: 1px;
  background: linear-gradient(90deg, var(--c-aurora), transparent);
}

.cosmic-display {
  font-family: 'Poppins', sans-serif;
  font-weight: 900;
  font-size: clamp(40px, 6.5vw, 96px);
  line-height: 0.95;
  letter-spacing: -0.04em;
  margin: 0;
  background: linear-gradient(120deg, #ffffff 0%, var(--c-aurora) 45%, var(--c-aurora-2) 70%, var(--c-gold) 100%);
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
}
.cosmic-display em {
  font-style: italic;
  font-weight: 300;
}
.cosmic-display .stroke {
  -webkit-text-stroke: 1.2px rgba(255,255,255,0.6);
  color: transparent;
}

/* ============================================================
   HERO — THE LIVING ATLAS
   ============================================================ */
.cosmic-hero {
  min-height: 100vh;
  padding: 0;
  position: relative;
  overflow: hidden;
  display: grid;
  place-items: center;
}
.cosmic-hero-stage {
  position: relative;
  width: min(1400px, 96vw);
  height: 100vh;
  max-height: 950px;
  margin: 0 auto;
  display: grid;
  place-items: center;
}

/* GLOBE container */
.globe-wrap {
  position: absolute;
  inset: 0;
  display: grid;
  place-items: center;
  pointer-events: none;
}
.globe-rings {
  position: absolute;
  width: min(85vmin, 720px);
  height: min(85vmin, 720px);
  border-radius: 50%;
  border: 1px dashed rgba(122,185,201,0.18);
  animation: ringSpin 60s linear infinite;
}
.globe-rings::before,
.globe-rings::after {
  content: "";
  position: absolute;
  inset: 8%;
  border-radius: 50%;
  border: 1px solid rgba(155,166,150,0.12);
}
.globe-rings::after {
  inset: 16%;
  border-style: dashed;
  border-color: rgba(255,255,255,0.06);
  animation: ringSpin 90s linear infinite reverse;
}
@keyframes ringSpin { to { transform: rotate(360deg); } }

#globeCanvas {
  position: relative;
  width: min(72vmin, 600px);
  height: min(72vmin, 600px);
  filter: drop-shadow(0 30px 80px rgba(122,185,201,0.35));
}

/* HERO TEXT */
.hero-text-stack {
  position: relative;
  z-index: 5;
  text-align: center;
  pointer-events: none;
  display: flex;
  flex-direction: column;
  gap: 24px;
  align-items: center;
  max-width: 920px;
  padding: 0 20px;
}
.hero-text-stack > * { pointer-events: auto; }

.hero-mega {
  position: relative;
  font-weight: 900;
  font-size: clamp(64px, 13vw, 220px);
  line-height: 0.85;
  letter-spacing: -0.05em;
  margin: 0;
  text-transform: uppercase;
  background: linear-gradient(180deg, #ffffff 0%, #b9c8e0 50%, #6f7c97 100%);
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
  text-shadow: 0 0 40px rgba(122,185,201,0.25);
  mix-blend-mode: screen;
}
.hero-mega::before,
.hero-mega::after {
  content: attr(data-text);
  position: absolute;
  inset: 0;
  pointer-events: none;
  background: inherit;
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
  filter: blur(0.5px);
}
.hero-mega::before {
  color: var(--c-aurora);
  -webkit-text-fill-color: rgba(122,185,201,0.8);
  transform: translate(-3px, 0);
  mix-blend-mode: screen;
  opacity: 0.7;
  animation: glitch 4s infinite ease-in-out;
}
.hero-mega::after {
  color: var(--c-rose);
  -webkit-text-fill-color: rgba(255,122,138,0.6);
  transform: translate(3px, 0);
  mix-blend-mode: screen;
  opacity: 0.6;
  animation: glitch 4s infinite ease-in-out reverse;
}
@keyframes glitch {
  0%, 92%, 100% { transform: translate(0,0); opacity: 0.55; }
  93% { transform: translate(-4px, 1px); opacity: 0.9; }
  95% { transform: translate(3px, -2px); opacity: 0.8; }
  97% { transform: translate(-2px, 2px); opacity: 0.95; }
}

.hero-tagline {
  font-size: clamp(14px, 1.6vw, 18px);
  letter-spacing: 0.55em;
  text-transform: uppercase;
  color: var(--c-aurora);
  font-weight: 600;
  display: inline-flex;
  align-items: center;
  gap: 16px;
}
.hero-tagline::before,
.hero-tagline::after {
  content: "";
  width: 40px;
  height: 1px;
  background: linear-gradient(90deg, transparent, var(--c-aurora));
}
.hero-tagline::after {
  background: linear-gradient(90deg, var(--c-aurora), transparent);
}

.hero-lede {
  font-size: clamp(17px, 1.85vw, 22px);
  font-weight: 500;
  color: rgba(241, 244, 250, 0.92);
  max-width: 720px;
  margin: 0 auto;
  line-height: 1.45;
  letter-spacing: 0.01em;
}

.hero-sub {
  font-size: clamp(15px, 1.5vw, 19px);
  color: var(--c-text-soft);
  max-width: 640px;
  margin: 0 auto;
  line-height: 1.6;
}

.hero-cta-row {
  display: flex;
  gap: 14px;
  flex-wrap: wrap;
  justify-content: center;
  margin-top: 8px;
}

/* CTA store buttons – holographic */
.holo-btn {
  position: relative;
  display: inline-flex;
  align-items: center;
  gap: 12px;
  padding: 14px 24px;
  border-radius: 999px;
  background: rgba(255,255,255,0.04);
  border: 1px solid rgba(255,255,255,0.12);
  color: var(--c-text);
  text-decoration: none;
  font-weight: 600;
  font-size: 14px;
  letter-spacing: 0.04em;
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  transition: transform .35s cubic-bezier(.2,.8,.2,1), box-shadow .35s, border-color .35s, background .35s;
  overflow: hidden;
}
.holo-btn::before {
  content: "";
  position: absolute;
  inset: -2px;
  border-radius: inherit;
  padding: 2px;
  background: conic-gradient(from 0deg, var(--c-aurora), var(--c-violet), var(--c-rose), var(--c-gold), var(--c-aurora));
  -webkit-mask: linear-gradient(#000 0 0) content-box, linear-gradient(#000 0 0);
  -webkit-mask-composite: xor;
          mask-composite: exclude;
  opacity: 0;
  transition: opacity .35s ease;
}
.holo-btn:hover {
  transform: translateY(-3px) scale(1.02);
  border-color: rgba(255,255,255,0.3);
  box-shadow: 0 18px 40px -12px rgba(122,185,201,0.45);
  background: rgba(255,255,255,0.07);
}
.holo-btn:hover::before { opacity: 1; }
.holo-btn svg { width: 22px; height: 22px; }
.holo-btn .holo-meta {
  display: flex; flex-direction: column; line-height: 1; align-items: flex-start;
}
.holo-btn .holo-meta small {
  font-size: 10px; opacity: 0.7; letter-spacing: 0.2em; text-transform: uppercase;
}
.holo-btn .holo-meta strong { font-size: 15px; font-weight: 700; }

.holo-btn.primary {
  background: linear-gradient(120deg, rgba(122,185,201,0.25), rgba(155,166,150,0.18));
  border-color: rgba(122,185,201,0.5);
}

/* HUD coordinates */
.hud-coordinates {
  position: absolute;
  bottom: 4vh;
  left: 4vw;
  display: flex;
  flex-direction: column;
  gap: 4px;
  font-family: 'Courier New', monospace;
  font-size: 11px;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--c-text-soft);
  z-index: 4;
}
.hud-coordinates b { color: var(--c-aurora); font-weight: 600; }
.hud-coordinates .blip {
  display: inline-block; width: 8px; height: 8px; border-radius: 50%;
  background: var(--c-aurora); margin-right: 6px;
  box-shadow: 0 0 12px var(--c-aurora);
  animation: blip 1.6s ease-in-out infinite;
}
@keyframes blip {
  0%, 100% { transform: scale(1); opacity: 1; }
  50% { transform: scale(1.6); opacity: 0.4; }
}

.hud-status {
  position: absolute;
  bottom: 4vh;
  right: 4vw;
  display: flex;
  flex-direction: column;
  gap: 6px;
  align-items: flex-end;
  font-family: 'Courier New', monospace;
  font-size: 11px;
  letter-spacing: 0.18em;
  color: var(--c-text-soft);
  z-index: 4;
  text-transform: uppercase;
}
.hud-status .live {
  display: inline-flex; align-items: center; gap: 8px;
  color: #6cf3a9;
}
.hud-status .live::before {
  content: ""; width: 7px; height: 7px; border-radius: 50%;
  background: #6cf3a9; box-shadow: 0 0 12px #6cf3a9;
  animation: blip 1.4s infinite;
}

.scroll-hint {
  position: absolute;
  bottom: 16px;
  left: 50%;
  transform: translateX(-50%);
  font-size: 10px;
  letter-spacing: 0.6em;
  text-transform: uppercase;
  color: var(--c-text-soft);
  z-index: 4;
  display: flex;
  align-items: center;
  gap: 10px;
}
.scroll-hint::before {
  content: "";
  width: 1px; height: 50px;
  background: linear-gradient(180deg, transparent, var(--c-aurora));
  animation: scrollLine 2.4s ease-in-out infinite;
}
@keyframes scrollLine {
  0% { transform: scaleY(0); transform-origin: top; }
  50% { transform: scaleY(1); transform-origin: top; }
  51% { transform: scaleY(1); transform-origin: bottom; }
  100% { transform: scaleY(0); transform-origin: bottom; }
}

/* Floating phone in space */
.floating-phone {
  position: absolute;
  right: 6%;
  top: 50%;
  transform: translateY(-50%);
  width: clamp(180px, 22vw, 320px);
  pointer-events: none;
  z-index: 3;
  animation: floatY 8s ease-in-out infinite;
  filter: drop-shadow(0 40px 80px rgba(122,185,201,0.35));
  display: none; /* shown only on wide */
}
.floating-phone img { width: 100%; border-radius: 38px; }
@keyframes floatY {
  0%, 100% { transform: translateY(-52%) rotate(-4deg); }
  50% { transform: translateY(-48%) rotate(-2deg); }
}

@media (min-width: 1100px) {
  .floating-phone { display: block; }
}

/* ============================================================
   FEATURES — Atlas (glass editorial panels)
   ============================================================ */
.features-atlas {
  min-height: auto;
  padding: clamp(40px, 7vh, 72px) 4vw clamp(32px, 5vh, 56px);
  position: relative;
  overflow: visible;
}
.features-atlas-inner {
  width: min(1180px, 100%);
  margin: 0 auto;
}
.features-atlas-head {
  text-align: center;
  max-width: 640px;
  margin: 0 auto 1.5rem;
}
.features-atlas-head h2 {
  margin: 8px 0 10px;
}
.features-atlas-head .cosmic-display {
  font-size: clamp(28px, 4.2vw, 52px);
  line-height: 1.05;
}
.features-atlas-lede {
  color: var(--c-text-soft);
  font-size: clamp(14px, 1.25vw, 16px);
  line-height: 1.45;
  margin: 0 auto;
}

/* Compact grid: 2–3 columns on wide screens so the block isn’t one endless column */
.atlas-stack {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: clamp(12px, 1.5vw, 16px);
}
.atlas-card {
  --atlas-accent: var(--c-aurora);
  --atlas-glow: rgba(122, 185, 201, 0.25);
  position: relative;
  flex: 1 1 100%;
  max-width: 100%;
  min-width: 0;
  display: grid;
  grid-template-columns: auto 1fr;
  gap: clamp(10px, 2vw, 18px);
  align-items: start;
  padding: clamp(14px, 2vw, 20px) clamp(14px, 2.5vw, 22px);
  border-radius: 18px;
  border: 1px solid rgba(255, 255, 255, 0.08);
  background: linear-gradient(135deg, rgba(255, 255, 255, 0.06) 0%, rgba(255, 255, 255, 0.02) 100%);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  box-shadow:
    0 24px 60px -20px rgba(0, 0, 0, 0.5),
    0 0 0 1px rgba(255, 255, 255, 0.04) inset;
  overflow: hidden;
  transition: transform 0.35s ease, box-shadow 0.35s ease, border-color 0.35s ease;
}
@media (min-width: 700px) {
  .atlas-card {
    flex: 1 1 calc(50% - 10px);
    max-width: calc(50% - 10px);
  }
}
@media (min-width: 1080px) {
  .atlas-card {
    flex: 1 1 calc(33.333% - 12px);
    max-width: calc(33.333% - 12px);
  }
}
.atlas-card::before {
  content: "";
  position: absolute;
  left: 0;
  top: 16px;
  bottom: 16px;
  width: 4px;
  border-radius: 4px;
  background: linear-gradient(180deg, var(--atlas-accent), transparent);
  opacity: 0.95;
  box-shadow: 0 0 24px var(--atlas-glow);
}
.atlas-card:hover {
  transform: translateY(-4px);
  border-color: rgba(255, 255, 255, 0.14);
  box-shadow:
    0 32px 70px -24px rgba(0, 0, 0, 0.55),
    0 0 40px var(--atlas-glow);
}
.atlas-card--cyan {
  --atlas-accent: #7ab9c9;
  --atlas-glow: rgba(122, 185, 201, 0.35);
}
.atlas-card--rose {
  --atlas-accent: #ff7a8a;
  --atlas-glow: rgba(255, 122, 138, 0.3);
}
.atlas-card--amber {
  --atlas-accent: #ffd68a;
  --atlas-glow: rgba(255, 214, 138, 0.28);
}
.atlas-card--sage {
  --atlas-accent: #9ba696;
  --atlas-glow: rgba(155, 166, 150, 0.32);
}
.atlas-card--violet {
  --atlas-accent: #8a7dff;
  --atlas-glow: rgba(138, 125, 255, 0.32);
}

.atlas-watermark {
  position: absolute;
  right: clamp(4px, 1.5vw, 12px);
  top: 50%;
  transform: translateY(-50%);
  font-size: clamp(40px, 8vw, 88px);
  font-weight: 900;
  line-height: 1;
  letter-spacing: -0.06em;
  color: rgba(255, 255, 255, 0.04);
  pointer-events: none;
  user-select: none;
  font-variant-numeric: tabular-nums;
}

.atlas-icon {
  width: clamp(44px, 6vw, 52px);
  height: clamp(44px, 6vw, 52px);
  border-radius: 14px;
  display: grid;
  place-items: center;
  flex-shrink: 0;
  background: radial-gradient(circle at 30% 25%, rgba(255, 255, 255, 0.2), transparent 55%),
    linear-gradient(145deg, rgba(255, 255, 255, 0.12), rgba(0, 0, 0, 0.25));
  border: 1px solid rgba(255, 255, 255, 0.12);
  color: var(--atlas-accent);
  box-shadow: 0 8px 28px var(--atlas-glow);
}
.atlas-icon svg {
  width: 55%;
  height: 55%;
}

.atlas-body {
  position: relative;
  z-index: 1;
  min-width: 0;
}
.atlas-body h3 {
  font-size: clamp(0.95rem, 1.5vw, 1.15rem);
  font-weight: 800;
  margin: 0 0 6px;
  letter-spacing: -0.02em;
  color: #f1f4fa;
  line-height: 1.25;
}
.atlas-body p {
  color: var(--c-text-soft);
  font-size: 12px;
  line-height: 1.45;
  margin: 0 0 8px;
  max-width: none;
}
.atlas-body ul {
  list-style: none;
  padding: 0;
  margin: 0;
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 4px 10px;
}
.atlas-body li {
  font-size: 11.5px;
  line-height: 1.35;
  color: rgba(241, 244, 250, 0.88);
  padding-left: 1em;
  position: relative;
}
.atlas-body li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 0.55em;
  width: 5px;
  height: 5px;
  border-radius: 50%;
  background: var(--atlas-accent);
  box-shadow: 0 0 10px var(--atlas-glow);
}

@media (max-width: 699px) {
  .atlas-card {
    grid-template-columns: auto 1fr;
    padding-top: 22px;
  }
  .atlas-icon {
    margin-bottom: 0;
  }
  .atlas-watermark {
    top: 6px;
    right: 8px;
    transform: none;
    font-size: clamp(44px, 18vw, 72px);
  }
}

@media (max-width: 380px) {
  .atlas-body ul {
    grid-template-columns: 1fr;
  }
}

/* ============================================================
   JOURNEY — three steps as constellations
   ============================================================ */
.cosmic-journey {
  min-height: 100vh;
  padding: clamp(32px, 5vh, 56px) 6vw 14vh;
  position: relative;
  z-index: 2;
  display: grid;
  place-items: center;
}
.journey-wrap {
  width: min(1200px, 100%);
  margin: 0 auto;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 60px;
}
.journey-head {
  text-align: center;
  max-width: 720px;
}
.journey-head h2 {
  font-size: clamp(38px, 5vw, 76px);
  font-weight: 900;
  line-height: 1.1;
  letter-spacing: -0.03em;
  margin: 0 0 16px;
  color: #f1f4fa;
}
.journey-head p {
  color: var(--c-text-soft);
  font-size: clamp(15px, 1.4vw, 18px);
  line-height: 1.5;
}

.journey-track {
  position: relative;
  width: 100%;
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 30px;
  padding: 30px 0 60px;
}
.journey-track::before {
  content: "";
  position: absolute;
  top: 60px; left: 0; right: 0;
  height: 1px;
  background: linear-gradient(90deg, transparent, rgba(122,185,201,0.4), transparent);
}
.journey-step {
  position: relative;
  text-align: center;
  padding: 80px 20px 0;
}
.journey-step .station {
  position: absolute;
  top: 30px; left: 50%;
  transform: translateX(-50%);
  width: 60px; height: 60px;
  border-radius: 50%;
  display: grid;
  place-items: center;
  background: radial-gradient(circle at 30% 30%, var(--c-aurora), var(--c-aurora-3));
  box-shadow:
    0 0 0 6px rgba(122,185,201,0.15),
    0 0 30px rgba(122,185,201,0.55),
    inset -6px -8px 16px rgba(0,0,0,0.4);
  font-weight: 800;
  font-size: 20px;
  color: #fff;
  z-index: 2;
}
.journey-step .station::before {
  content: "";
  position: absolute;
  inset: -16px;
  border-radius: 50%;
  border: 1px dashed rgba(255,255,255,0.1);
  animation: ringSpin 22s linear infinite;
}
.journey-step h3 {
  margin: 14px 0 8px;
  font-size: clamp(20px, 1.8vw, 26px);
  font-weight: 700;
  color: #f1f4fa;
}
.journey-step p {
  color: var(--c-text-soft);
  max-width: 280px;
  margin: 0 auto;
  font-size: 14px;
  line-height: 1.6;
}

/* ============================================================
   QUOTE
   ============================================================ */
/* Tight band between Features and How it works (was full viewport + 14vh padding) */
.cosmic-quote-section {
  min-height: auto;
  padding: clamp(28px, 4vh, 48px) 6vw;
  position: relative;
  display: grid;
  place-items: center;
  text-align: center;
  z-index: 2;
}
.cosmic-quote-plane {
  display: block;
  font-size: clamp(24px, 3.2vw, 40px);
  margin-bottom: 10px;
  filter: drop-shadow(0 0 20px rgba(122, 185, 201, 0.5));
}
.cosmic-quote {
  font-size: clamp(20px, 2.8vw, 40px);
  font-weight: 300;
  line-height: 1.35;
  letter-spacing: -0.02em;
  max-width: 900px;
  margin: 0 auto;
  font-style: italic;
  color: rgba(255,255,255,0.92);
}
.cosmic-quote em {
  font-style: italic;
  font-weight: 500;
  background: linear-gradient(120deg, var(--c-aurora), var(--c-gold));
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
}
.cosmic-quote-cite {
  display: block;
  margin-top: 14px;
  font-size: 12px;
  letter-spacing: 0.28em;
  text-transform: uppercase;
  color: var(--c-text-soft);
  font-style: normal;
}

/* ============================================================
   PORTAL (Download)
   ============================================================ */
.cosmic-portal {
  min-height: 100vh;
  padding: 12vh 4vw 14vh;
  position: relative;
  z-index: 2;
  display: grid;
  place-items: center;
  overflow: hidden;
}
.portal-wrap {
  position: relative;
  width: min(1200px, 100%);
  margin: 0 auto;
}

.portal-row {
  display: grid;
  grid-template-columns: minmax(280px, 1.2fr) minmax(260px, 0.8fr);
  gap: clamp(28px, 4vw, 48px);
  align-items: center;
  width: 100%;
}

/* Large square: rings + three phones */
.portal-visual {
  position: relative;
  width: min(560px, 56vw);
  max-width: 100%;
  aspect-ratio: 1;
  margin: 0 auto;
  display: grid;
  place-items: center;
  justify-self: center;
}

.portal-rings {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  margin: 0;
  pointer-events: none;
}
.portal-rings .ring {
  position: absolute;
  inset: var(--inset, 0);
  border-radius: 50%;
  border: 1px solid rgba(122,185,201,0.18);
  animation: ringSpin var(--dur, 120s) linear infinite var(--dir, normal);
}
.portal-rings .ring.dashed { border-style: dashed; }
.portal-rings .ring.gradient {
  border: none;
  background:
    conic-gradient(from 0deg, transparent 60%, var(--c-aurora) 70%, transparent 90%);
  -webkit-mask: radial-gradient(circle, transparent 49%, #000 50%, #000 51%, transparent 52%);
          mask: radial-gradient(circle, transparent 49%, #000 50%, #000 51%, transparent 52%);
}

.phones-cluster {
  position: relative;
  width: clamp(240px, 30vw, 380px);
  display: grid;
  place-items: center;
  z-index: 4;
  filter: drop-shadow(0 24px 64px rgba(122,185,201,0.45));
}
.phones-cluster img {
  width: 100%;
  border-radius: 28px;
  border: 1px solid rgba(255,255,255,0.08);
  animation: phoneFloat 6s ease-in-out infinite;
}
.phones-cluster .phone-side {
  position: absolute;
  width: 65%;
  opacity: 0.6;
  transform: translate(0, 0) rotate(0);
}
.phones-cluster .phone-side.left {
  left: -55%;
  transform: rotate(-12deg);
  animation: floatLeft 7s ease-in-out infinite;
}
.phones-cluster .phone-side.right {
  right: -55%;
  transform: rotate(12deg);
  animation: floatRight 7s ease-in-out infinite;
}
@keyframes phoneFloat {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(-14px); }
}
@keyframes floatLeft {
  0%, 100% { transform: rotate(-12deg) translateY(0); }
  50% { transform: rotate(-15deg) translateY(-10px); }
}
@keyframes floatRight {
  0%, 100% { transform: rotate(12deg) translateY(0); }
  50% { transform: rotate(15deg) translateY(-10px); }
}

/* Download: large centre phone + side fan (scales with .portal-visual) */
.cosmic-portal .phones-cluster {
  width: clamp(260px, 62%, 360px);
  filter: drop-shadow(0 36px 90px rgba(122, 185, 201, 0.42));
}
.cosmic-portal .phones-cluster .phone-side.left {
  left: -50%;
  transform: rotate(-11deg);
}
.cosmic-portal .phones-cluster .phone-side.right {
  right: -50%;
  transform: rotate(11deg);
}

.cosmic-portal .phones-cluster img,
.cosmic-portal .phones-cluster .phone-side.left,
.cosmic-portal .phones-cluster .phone-side.right {
  animation: none;
}

.portal-content {
  position: relative;
  z-index: 6;
  max-width: none;
  width: 100%;
  text-align: left;
}
html[dir="rtl"] .portal-content {
  text-align: right;
}
.portal-content .cosmic-eyebrow {
  justify-content: flex-start;
}
html[dir="rtl"] .portal-content .cosmic-eyebrow {
  justify-content: flex-end;
}
.portal-content h2 {
  font-size: clamp(28px, 3.8vw, 52px);
  font-weight: 900;
  letter-spacing: -0.03em;
  line-height: 1.15;
  margin-bottom: 14px;
  color: #f1f4fa;
}
.portal-content p {
  color: var(--c-text-soft);
  font-size: 16px;
  margin-bottom: 22px;
  max-width: 520px;
  margin-left: 0;
  margin-right: 0;
}
.portal-content .hero-cta-row.portal-cta {
  justify-content: flex-start;
  flex-wrap: wrap;
}
html[dir="rtl"] .portal-content .hero-cta-row.portal-cta {
  justify-content: flex-end;
}

/* badges row */
.portal-meta {
  display: flex;
  justify-content: flex-start;
  gap: 20px;
  margin-top: 24px;
  flex-wrap: wrap;
  font-size: 11px;
  letter-spacing: 0.25em;
  text-transform: uppercase;
  color: var(--c-text-soft);
}
html[dir="rtl"] .portal-meta {
  justify-content: flex-end;
}
.portal-meta span {
  display: inline-flex; align-items: center; gap: 8px;
}
.portal-meta span::before {
  content: ""; width: 6px; height: 6px; border-radius: 50%;
  background: var(--c-aurora); box-shadow: 0 0 8px var(--c-aurora);
}

@media (max-width: 900px) {
  .portal-row {
    grid-template-columns: 1fr;
    gap: 32px;
  }
  .portal-visual {
    width: min(400px, 88vw);
    order: -1;
    justify-self: center;
  }
  .portal-content {
    text-align: center;
  }
  .portal-content p {
    margin-left: auto;
    margin-right: auto;
  }
  .portal-content .cosmic-eyebrow {
    justify-content: center;
  }
  .portal-content .hero-cta-row.portal-cta,
  .portal-meta {
    justify-content: center;
  }
}

/* ============================================================
   FOOTER
   ============================================================ */
.cosmic-footer {
  position: relative;
  z-index: 2;
  padding: 80px 6vw 40px;
  text-align: center;
  border-top: 1px solid rgba(255,255,255,0.06);
}
.cosmic-footer img.footer-logo { height: 48px; margin-bottom: 18px; }
.cosmic-footer p { color: var(--c-text-soft); font-size: 13px; }
.cosmic-footer .footer-links {
  display: flex; justify-content: center; gap: 28px; margin: 18px 0; flex-wrap: wrap;
}
.cosmic-footer .footer-links a {
  color: var(--c-text); text-decoration: none; opacity: 0.75;
  font-size: 12px; letter-spacing: 0.2em; text-transform: uppercase; font-weight: 600;
  transition: opacity .25s ease, color .25s ease;
}
.cosmic-footer .footer-links a:hover { opacity: 1; color: var(--c-aurora); }

/* ============================================================
   LOGIN MODAL — small refinements
   ============================================================ */
html.cosmic .modal {
  background: rgba(0,0,0,0.72);
  backdrop-filter: blur(8px);
}
html.cosmic .modal-content {
  background: linear-gradient(180deg, #0e1428 0%, #060914 100%);
  border: 1px solid rgba(122,185,201,0.18);
}

/* ============================================================
   RESPONSIVE
   ============================================================ */
@media (max-width: 980px) {
  .cosmic-section { padding: 12vh 5vw; }
  .hero-mega { font-size: clamp(56px, 14vw, 120px); }
  .floating-phone { display: none; }
  .journey-track { grid-template-columns: 1fr; gap: 50px; }
  .journey-track::before { display: none; }
  .hud-coordinates, .hud-status { font-size: 9px; }
  .scroll-hint { display: none; }
}

@media (max-width: 640px) {
  .cosmic-hero-stage { height: 96vh; }
  .hero-mega { font-size: clamp(48px, 16vw, 96px); }
  .hero-tagline { font-size: 11px; letter-spacing: 0.35em; }
  .hero-tagline::before, .hero-tagline::after { width: 20px; }
  .hud-coordinates, .hud-status { display: none; }
  .holo-btn { padding: 12px 18px; font-size: 13px; }
}

/* prefers reduced motion */
@media (prefers-reduced-motion: reduce) {
  .globe-rings, .portal-rings .ring, .station::before,
  .hero-mega::before, .hero-mega::after,
  .floating-phone, .phones-cluster img, .phones-cluster .phone-side,
  .scroll-hint::before, .blip {
    animation: none !important;
  }
}

/* utility */
.no-display { display: none !important; }

/* Reveal on scroll */
[data-reveal] {
  opacity: 0;
  transform: translateY(30px);
  transition: opacity 1s cubic-bezier(.22,.8,.2,1), transform 1s cubic-bezier(.22,.8,.2,1);
}
[data-reveal].reveal-in {
  opacity: 1;
  transform: translateY(0);
}

/* Features atlas: keep readable even if reveal script misses (IO edge cases, script errors). */
.features-atlas [data-reveal] {
  opacity: 1;
  transform: translateY(0);
}

@media (prefers-reduced-motion: reduce) {
  [data-reveal] { opacity: 1; transform: none; }
}
