/* ==========================================================================
   Space Marine Idle — Landing
   Mobile-first · no frameworks
   ========================================================================== */

:root {
  --void: #0a0a0c;
  --void-2: #0f1115;
  --panel: #12151b;
  --panel-2: #171b22;
  --line: #262c36;
  --metal-1: #e6e9ee;
  --metal-2: #a3aab5;
  --metal-3: #6b7380;
  --metal-4: #3a414c;
  --cyan: #22d3ee;
  --cyan-dim: rgba(34, 211, 238, .14);
  --lime: #84cc16;
  --lime-dim: rgba(132, 204, 22, .14);
  --orange: #f97316;
  --orange-dim: rgba(249, 115, 22, .14);

  --font-display: "Orbitron", "Rajdhani", ui-sans-serif, system-ui, sans-serif;
  --font-tech: "Rajdhani", "Orbitron", ui-sans-serif, system-ui, sans-serif;
  --font-body: "Inter", system-ui, -apple-system, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;

  --radius: 4px;
  --cut: 14px;
  --container: 1180px;
  --header-h: 64px;
  --ease: cubic-bezier(.2, .7, .2, 1);
}

/* ---------- Reset ---------- */
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; scroll-padding-top: calc(var(--header-h) + 12px); }
body {
  margin: 0;
  min-height: 100vh;
  background: var(--void);
  color: var(--metal-2);
  font: 400 1rem/1.65 var(--font-body);
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
  overflow-x: hidden;
}
img, svg, picture, canvas { display: block; max-width: 100%; }
img { height: auto; }
a { color: inherit; text-decoration: none; }
:where(ul[role="list"]) { list-style: none; margin: 0; padding: 0; }
h1, h2, h3 { color: var(--metal-1); margin: 0; line-height: 1.1; }
p { margin: 0; }
button { font: inherit; }

/* Subtle noise + vignette over the whole page */
body::before {
  content: "";
  position: fixed; inset: 0;
  pointer-events: none; z-index: 100;
  background:
    radial-gradient(ellipse at center, transparent 55%, rgba(0,0,0,.55) 100%),
    repeating-linear-gradient(0deg, rgba(255,255,255,.012) 0 1px, transparent 1px 3px);
}

/* ---------- Accessibility ---------- */
.skip-link {
  position: absolute; left: 12px; top: -60px; z-index: 200;
  padding: 10px 16px; background: var(--cyan); color: var(--void);
  font: 700 .85rem var(--font-tech); letter-spacing: .12em; text-transform: uppercase;
  transition: top .2s;
}
.skip-link:focus { top: 12px; }
:focus { outline: none; }
:focus-visible {
  outline: 2px solid var(--cyan);
  outline-offset: 3px;
  box-shadow: 0 0 0 6px rgba(34,211,238,.18);
  border-radius: 2px;
}

/* ---------- Layout ---------- */
.container { width: min(100% - 2.5rem, var(--container)); margin-inline: auto; }
.section { position: relative; padding: clamp(4.5rem, 10vw, 8rem) 0; }
.section__head { max-width: 720px; margin: 0 auto clamp(2.5rem, 6vw, 4rem); text-align: center; }
.section__title {
  font: 800 clamp(1.6rem, 5.2vw, 2.75rem)/1.12 var(--font-display);
  text-transform: uppercase; letter-spacing: .04em;
  margin: .6rem 0 1rem;
}
.section__lead { font-size: clamp(1rem, 2.4vw, 1.125rem); color: var(--metal-2); }

.eyebrow {
  display: inline-flex; align-items: center; gap: .55rem;
  font: 600 .78rem/1 var(--font-tech);
  letter-spacing: .32em; text-transform: uppercase;
  color: var(--cyan);
}
.eyebrow--lime { color: var(--lime); }
.eyebrow--orange { color: var(--orange); }

.text-glow { color: var(--cyan); text-shadow: 0 0 24px rgba(34,211,238,.45); }
.text-lime { color: var(--lime); }
.text-orange { color: var(--orange); }

.pulse-dot {
  width: 8px; height: 8px; border-radius: 50%;
  background: var(--lime);
  box-shadow: 0 0 0 0 rgba(132,204,22,.6);
  animation: pulse 2s infinite;
}
@keyframes pulse {
  0% { box-shadow: 0 0 0 0 rgba(132,204,22,.6); }
  70% { box-shadow: 0 0 0 10px rgba(132,204,22,0); }
  100% { box-shadow: 0 0 0 0 rgba(132,204,22,0); }
}

/* ---------- Buttons (angled, HUD style) ---------- */
.btn {
  --bg: transparent; --fg: var(--metal-1); --bd: var(--metal-4);
  position: relative;
  display: inline-flex; align-items: center; justify-content: center; gap: .6rem;
  min-height: 48px; padding: .8rem 1.5rem;
  background: var(--bg); color: var(--fg);
  border: 1px solid var(--bd);
  font: 700 .95rem/1 var(--font-tech);
  letter-spacing: .2em; text-transform: uppercase;
  clip-path: polygon(var(--cut) 0, 100% 0, 100% calc(100% - var(--cut)), calc(100% - var(--cut)) 100%, 0 100%, 0 var(--cut));
  white-space: nowrap;
  cursor: pointer;
  transition: transform .2s var(--ease), background-color .2s, color .2s, box-shadow .25s, border-color .2s;
  -webkit-tap-highlight-color: transparent;
}
.btn svg { width: 1.1em; height: 1.1em; flex: none; }
.btn--primary {
  --bg: var(--cyan); --fg: #031014; --bd: var(--cyan);
  box-shadow: 0 0 0 rgba(34,211,238,0);
}
.btn--primary::after { /* sheen sweep */
  content: ""; position: absolute; inset: 0;
  background: linear-gradient(110deg, transparent 30%, rgba(255,255,255,.55) 50%, transparent 70%);
  transform: translateX(-120%);
  transition: transform .7s var(--ease);
}
.btn--primary:hover { box-shadow: 0 0 32px rgba(34,211,238,.45); transform: translateY(-2px); }
.btn--primary:hover::after { transform: translateX(120%); }
.btn--primary:active { transform: translateY(0); }
.btn--ghost { --bg: rgba(255,255,255,.02); --fg: var(--metal-1); --bd: var(--metal-4); }
.btn--ghost:hover:not(:disabled) { --bd: var(--cyan); --fg: var(--cyan); }
.btn:disabled { cursor: not-allowed; opacity: .6; }
.btn .tag {
  font: 600 .62rem/1 var(--font-tech); letter-spacing: .14em;
  padding: .3rem .45rem; background: var(--orange-dim); color: var(--orange);
  border: 1px solid rgba(249,115,22,.4);
}
.btn--sm { min-height: 40px; padding: .55rem 1rem; font-size: .8rem; --cut: 10px; }
.btn--lg { min-height: 54px; padding: 1rem 1.6rem; }
.btn--xl { min-height: 60px; padding: 1.15rem 2.4rem; font-size: 1.05rem; }
.btn:focus-visible { clip-path: none; }

/* ---------- Header ---------- */
.site-header {
  position: fixed; inset: 0 0 auto; z-index: 50;
  height: var(--header-h);
  transition: background-color .3s, border-color .3s, backdrop-filter .3s;
  border-bottom: 1px solid transparent;
}
.site-header.is-scrolled {
  background: rgba(10,10,12,.82);
  -webkit-backdrop-filter: blur(12px) saturate(140%);
  backdrop-filter: blur(12px) saturate(140%);
  border-bottom-color: var(--line);
}
.nav { height: 100%; display: flex; align-items: center; justify-content: space-between; gap: 1rem; }
.brand { display: inline-flex; align-items: center; gap: .6rem; color: var(--cyan); }
.brand__mark { width: 28px; height: 28px; filter: drop-shadow(0 0 6px rgba(34,211,238,.5)); }
.brand__name {
  font: 800 .72rem/1 var(--font-display); letter-spacing: .14em; text-transform: uppercase; color: var(--metal-1);
  white-space: nowrap;
}
@media (min-width: 400px) { .brand__name { font-size: .82rem; letter-spacing: .2em; } }
.brand__name b { color: var(--cyan); font-weight: 800; }
.nav__links { display: none; gap: 2rem; }
.nav__links a {
  position: relative;
  font: 600 .85rem/1 var(--font-tech); letter-spacing: .22em; text-transform: uppercase; color: var(--metal-2);
  padding: .5rem 0; transition: color .2s;
}
.nav__links a::after {
  content: ""; position: absolute; left: 0; right: 0; bottom: 0; height: 1px;
  background: var(--cyan); transform: scaleX(0); transform-origin: left; transition: transform .3s var(--ease);
}
.nav__links a:hover, .nav__links a.is-active { color: var(--metal-1); }
.nav__links a:hover::after, .nav__links a.is-active::after { transform: scaleX(1); }

/* ---------- Hero ---------- */
.hero {
  position: relative; isolation: isolate;
  min-height: 100vh;
  min-height: min(100svh, 1000px);
  padding: calc(var(--header-h) + 2.5rem) 0 5rem;
  display: flex; align-items: center;
  overflow: hidden;
}
.hero__bg { position: absolute; inset: 0; z-index: -1; }
.hero__grid {
  position: absolute; inset: -10% -10% 0;
  background-image:
    linear-gradient(rgba(34,211,238,.07) 1px, transparent 1px),
    linear-gradient(90deg, rgba(34,211,238,.07) 1px, transparent 1px);
  background-size: 48px 48px;
  -webkit-mask-image: radial-gradient(ellipse 70% 60% at 60% 45%, #000 20%, transparent 75%);
  mask-image: radial-gradient(ellipse 70% 60% at 60% 45%, #000 20%, transparent 75%);
  transform: translateY(var(--parallax, 0));
}
.hero__glow { position: absolute; border-radius: 50%; filter: blur(80px); opacity: .55; }
.hero__glow--cyan { width: 60vmax; height: 60vmax; right: -20vmax; top: -10vmax; background: radial-gradient(circle, rgba(34,211,238,.35), transparent 65%); }
.hero__glow--orange { width: 40vmax; height: 40vmax; left: -15vmax; bottom: -20vmax; background: radial-gradient(circle, rgba(249,115,22,.22), transparent 65%); }
.hero__stars { position: absolute; inset: 0; width: 100%; height: 100%; opacity: .8; }

.hero__inner { display: grid; gap: 3.5rem; align-items: center; }
.hero__copy { text-align: center; }
.hero__title {
  font: 800 clamp(2.1rem, 9vw, 4.4rem)/1.04 var(--font-display);
  text-transform: uppercase; letter-spacing: .02em;
  margin: 1.1rem 0 1.25rem;
}
.hero__title .text-glow { display: block; }
.hero__sub { max-width: 34rem; margin: 0 auto 2rem; font-size: clamp(1.02rem, 2.8vw, 1.2rem); color: var(--metal-2); }
.hero__ctas { display: flex; flex-direction: column; gap: .9rem; align-items: stretch; max-width: 360px; margin: 0 auto; }
.hero__stats {
  display: flex; justify-content: center; gap: clamp(1.5rem, 5vw, 2.75rem);
  margin-top: 2.5rem; padding-top: 1.75rem; border-top: 1px solid var(--line);
}
.hero__stats li { display: grid; gap: .3rem; text-align: center; }
.hero__stats strong { font: 800 1.5rem/1 var(--font-display); color: var(--metal-1); }
.hero__stats span { font: 600 .7rem/1 var(--font-tech); letter-spacing: .24em; text-transform: uppercase; color: var(--metal-3); }

.hero__device { position: relative; justify-self: center; }

/* Phone mockup */
.phone {
  --w: min(72vw, 300px);
  position: relative;
  width: var(--w); aspect-ratio: 473 / 1024;
  padding: 10px;
  border-radius: 38px;
  background: linear-gradient(145deg, #2a3039, #0d0f13 40%, #1d222a);
  box-shadow:
    0 0 0 1px rgba(255,255,255,.06) inset,
    0 0 0 2px #05060a,
    0 30px 80px -20px rgba(0,0,0,.9),
    0 0 60px -10px rgba(34,211,238,.35);
  transform-style: preserve-3d;
  transition: transform .4s var(--ease);
}
.phone::before { /* side buttons */
  content: ""; position: absolute; right: -3px; top: 22%; width: 3px; height: 14%;
  border-radius: 0 2px 2px 0; background: #2a3039;
}
.phone picture, .phone img { width: 100%; height: 100%; border-radius: 28px; object-fit: cover; }
.phone img { background: var(--void); }
.phone__notch {
  position: absolute; top: 16px; left: 50%; z-index: 2;
  width: 30%; height: 18px; transform: translateX(-50%);
  background: #05060a; border-radius: 12px;
}
.phone__scan {
  position: absolute; inset: 10px; border-radius: 28px; pointer-events: none; overflow: hidden;
}
.phone__scan::after {
  content: ""; position: absolute; left: 0; right: 0; height: 30%;
  background: linear-gradient(180deg, transparent, rgba(34,211,238,.12), transparent);
  animation: scan 5s linear infinite;
}
@keyframes scan { from { top: -30%; } to { top: 100%; } }
.phone--sm { --w: min(62vw, 260px); }

.hud-chip {
  position: absolute;
  padding: .55rem .8rem;
  font: 700 .68rem/1 var(--font-tech); letter-spacing: .18em;
  background: rgba(10,10,12,.85);
  border: 1px solid currentColor;
  -webkit-backdrop-filter: blur(6px); backdrop-filter: blur(6px);
  animation: float 6s ease-in-out infinite;
  white-space: nowrap;
}
.hud-chip--a { color: var(--lime); top: 18%; left: -14%; box-shadow: 0 0 18px rgba(132,204,22,.25); }
.hud-chip--b { color: var(--orange); bottom: 16%; right: -12%; animation-delay: -3s; box-shadow: 0 0 18px rgba(249,115,22,.25); }
@keyframes float { 0%, 100% { transform: translateY(0); } 50% { transform: translateY(-10px); } }

.scroll-cue {
  position: absolute; left: 50%; bottom: 1.5rem; transform: translateX(-50%);
  width: 26px; height: 42px; border: 1px solid var(--metal-4); border-radius: 14px;
  display: none;
}
.scroll-cue span {
  position: absolute; left: 50%; top: 8px; width: 3px; height: 8px; margin-left: -1.5px;
  background: var(--cyan); border-radius: 2px; animation: cue 1.8s ease-in-out infinite;
}
@keyframes cue { 0% { opacity: 0; transform: translateY(0); } 40% { opacity: 1; } 100% { opacity: 0; transform: translateY(14px); } }

/* ---------- Cards / Features ---------- */
.card {
  position: relative;
  background: linear-gradient(180deg, var(--panel-2), var(--panel));
  border: 1px solid var(--line);
  clip-path: polygon(0 0, calc(100% - 20px) 0, 100% 20px, 100% 100%, 20px 100%, 0 calc(100% - 20px));
  transition: transform .35s var(--ease), border-color .3s, box-shadow .3s;
}
.card::before { /* HUD corner */
  content: ""; position: absolute; top: 0; left: 0; width: 28px; height: 2px; background: var(--cyan);
  transition: width .4s var(--ease);
}
.card:hover { transform: translateY(-4px); border-color: rgba(34,211,238,.4); box-shadow: 0 20px 40px -20px rgba(34,211,238,.35); }
.card:hover::before { width: 100%; }

.feature-grid { display: grid; gap: 1rem; }
.feature { padding: 1.75rem 1.5rem 1.6rem; }
.feature__icon {
  width: 52px; height: 52px; padding: 10px; margin-bottom: 1.25rem;
  color: var(--cyan); background: var(--cyan-dim);
  border: 1px solid rgba(34,211,238,.35);
}
.feature__icon--lime { color: var(--lime); background: var(--lime-dim); border-color: rgba(132,204,22,.35); }
.feature__icon--orange { color: var(--orange); background: var(--orange-dim); border-color: rgba(249,115,22,.35); }
.feature__num {
  position: absolute; top: 1.4rem; right: 1.5rem;
  font: 800 1.9rem/1 var(--font-display); color: transparent;
  -webkit-text-stroke: 1px var(--metal-4);
}
.feature h3 { font: 700 1.05rem/1.25 var(--font-display); letter-spacing: .08em; text-transform: uppercase; margin-bottom: .6rem; }
.feature p:last-child { font-size: .96rem; }

/* Spotlight */
.spotlight {
  display: grid; gap: 2.5rem; align-items: center;
  margin-top: clamp(4rem, 10vw, 7rem);
}
.spotlight__media { justify-self: center; position: relative; }
.spotlight__media::before {
  content: ""; position: absolute; inset: 10% -20%; z-index: -1;
  background: radial-gradient(circle, rgba(249,115,22,.22), transparent 65%); filter: blur(40px);
}
.spotlight__copy { text-align: center; }
.spotlight__title {
  font: 800 clamp(1.5rem, 5vw, 2.4rem)/1.12 var(--font-display); text-transform: uppercase; letter-spacing: .03em;
  margin: .7rem 0 1rem;
}
.spotlight__copy > p { max-width: 32rem; margin-inline: auto; }
.checklist { display: inline-grid; gap: .7rem; margin-top: 1.5rem; text-align: left; }
.checklist li { position: relative; padding-left: 1.8rem; color: var(--metal-1); font-weight: 500; }
.checklist li::before {
  content: ""; position: absolute; left: 0; top: .45em; width: 10px; height: 10px;
  background: var(--orange); transform: rotate(45deg); box-shadow: 0 0 10px rgba(249,115,22,.6);
}

/* ---------- Realms ---------- */
.realms { background: linear-gradient(180deg, transparent, rgba(34,211,238,.03) 40%, transparent); }
.realm-grid { display: grid; gap: 1.25rem; max-width: 980px; margin: 0 auto; }
.realm {
  position: relative; overflow: hidden;
  background: var(--panel);
  border: 1px solid var(--line);
  clip-path: polygon(0 0, calc(100% - 24px) 0, 100% 24px, 100% 100%, 24px 100%, 0 calc(100% - 24px));
  transition: transform .35s var(--ease), border-color .3s, box-shadow .3s;
}
.realm__media { position: relative; background: #050608; }
.realm__media img { width: 100%; aspect-ratio: 446 / 234; object-fit: cover; }
.realm__body { padding: 1.5rem 1.5rem 1.75rem; }
.realm__body h3 { font: 800 1.35rem/1.2 var(--font-display); letter-spacing: .06em; text-transform: uppercase; margin: .55rem 0 .7rem; }
.realm__status {
  width: fit-content;
  display: flex; align-items: center; gap: .5rem;
  font: 700 .72rem/1 var(--font-tech); letter-spacing: .26em; text-transform: uppercase; color: var(--lime);
}
.realm--active { border-color: rgba(34,211,238,.45); box-shadow: 0 0 40px -12px rgba(34,211,238,.4); }
.realm--active:hover { transform: translateY(-4px); box-shadow: 0 0 60px -10px rgba(34,211,238,.55); }
.realm--active h3 { color: var(--cyan); }

.realm--locked { border-color: rgba(249,115,22,.3); }
.realm--locked .realm__media img { filter: saturate(.8) brightness(.9); transition: filter .5s; }
.realm--locked:hover .realm__media img { filter: saturate(1.2) brightness(1.1); }
.realm--locked .realm__media::after { /* static flicker */
  content: ""; position: absolute; inset: 0; pointer-events: none;
  background: repeating-linear-gradient(0deg, rgba(249,115,22,.06) 0 2px, transparent 2px 4px);
  animation: flicker 4s steps(1) infinite;
}
@keyframes flicker { 0%, 92%, 100% { opacity: .5; } 93% { opacity: 1; } 95% { opacity: .2; } 97% { opacity: .9; } }
.realm__lock {
  position: absolute; right: 14px; top: 14px; width: 40px; height: 40px; padding: 9px;
  color: var(--orange); background: rgba(10,10,12,.8); border: 1px solid rgba(249,115,22,.5);
}
.realm__status--locked { color: var(--orange); }
.realm--locked h3 { color: var(--metal-2); letter-spacing: .3em; }

.glitch { position: relative; display: block; width: fit-content; }
.glitch::before, .glitch::after {
  content: attr(data-text); position: absolute; inset: 0; opacity: .7;
}
.glitch::before { color: var(--orange); animation: glitch-a 3s infinite steps(1); }
.glitch::after { color: var(--cyan); animation: glitch-b 3s infinite steps(1); }
@keyframes glitch-a { 0%, 88%, 100% { transform: none; clip-path: inset(0 0 100% 0); } 90% { transform: translate(-3px, 0); clip-path: inset(10% 0 55% 0); } 94% { transform: translate(2px, 0); clip-path: inset(60% 0 5% 0); } }
@keyframes glitch-b { 0%, 89%, 100% { transform: none; clip-path: inset(0 0 100% 0); } 91% { transform: translate(3px, 0); clip-path: inset(40% 0 30% 0); } 95% { transform: translate(-2px, 0); clip-path: inset(5% 0 70% 0); } }

/* ---------- Store ---------- */
.store__inner { display: grid; gap: 3rem; align-items: center; }
.store__copy { text-align: center; }
.store__copy .section__lead { max-width: 34rem; margin-inline: auto; }
.store__list { display: grid; gap: .9rem; margin-top: 2rem; text-align: left; }
.store__list li {
  display: flex; gap: 1rem; align-items: flex-start;
  padding: 1rem 1.1rem; background: var(--panel); border: 1px solid var(--line);
  border-left: 2px solid var(--cyan);
}
.store__list strong { display: block; color: var(--metal-1); font: 700 1rem/1.3 var(--font-tech); letter-spacing: .08em; text-transform: uppercase; }
.store__list span:not(.store__ico) { font-size: .93rem; }
.store__ico {
  flex: none; display: grid; place-items: center; width: 34px; height: 34px;
  color: var(--cyan); background: var(--cyan-dim); font-size: .9rem;
}
.store__ico--lime { color: var(--lime); background: var(--lime-dim); }
.store__ico--orange { color: var(--orange); background: var(--orange-dim); }
.store__list li:nth-child(2) { border-left-color: var(--lime); }
.store__list li:nth-child(3) { border-left-color: var(--orange); }
.store__device { justify-self: center; position: relative; }
.store__device::before {
  content: ""; position: absolute; inset: 5% -25%; z-index: -1;
  background: radial-gradient(circle, rgba(132,204,22,.2), transparent 65%); filter: blur(40px);
}

/* ---------- Final CTA ---------- */
.cta__panel {
  position: relative; overflow: hidden; isolation: isolate;
  padding: clamp(3rem, 8vw, 5.5rem) clamp(1.25rem, 5vw, 4rem);
  text-align: center;
  background:
    radial-gradient(ellipse at 50% 120%, rgba(132,204,22,.22), transparent 60%),
    radial-gradient(ellipse at 50% -20%, rgba(34,211,238,.18), transparent 60%),
    var(--panel);
  border: 1px solid rgba(132,204,22,.35);
  clip-path: polygon(0 0, calc(100% - 32px) 0, 100% 32px, 100% 100%, 32px 100%, 0 calc(100% - 32px));
}
.cta__start {
  position: absolute; inset: 0; z-index: -1; opacity: .22;
  filter: blur(3px) saturate(1.2);
}
.cta__start img { width: 100%; height: 100%; object-fit: cover; object-position: center 50%; }
.cta__title {
  font: 800 clamp(1.7rem, 6vw, 3.2rem)/1.08 var(--font-display); text-transform: uppercase; letter-spacing: .03em;
  margin: 1rem auto 1rem; max-width: 18ch;
}
.cta__sub { max-width: 32rem; margin: 0 auto 2.25rem; }
.cta .btn--primary { --bg: var(--lime); --bd: var(--lime); --fg: #0b1302; }
.cta .btn--primary:hover { box-shadow: 0 0 40px rgba(132,204,22,.5); }
.cta__note { margin-top: 1.25rem; font: 600 .75rem/1 var(--font-tech); letter-spacing: .2em; text-transform: uppercase; color: var(--metal-3); }

/* ---------- Footer ---------- */
.site-footer { border-top: 1px solid var(--line); padding: 2.5rem 0 calc(2.5rem + 72px); background: #07070a; }
.footer__inner { display: grid; gap: 1.5rem; justify-items: center; text-align: center; }
.footer__links { display: flex; flex-wrap: wrap; justify-content: center; gap: 1.75rem; }
.footer__links a, .footer__copy a {
  font: 600 .8rem/1 var(--font-tech); letter-spacing: .2em; text-transform: uppercase; color: var(--metal-2);
  transition: color .2s;
}
.footer__links a:hover, .footer__copy a:hover { color: var(--cyan); }
.footer__copy { font-size: .85rem; color: var(--metal-3); }

/* ---------- Sticky mobile CTA ---------- */
.sticky-cta {
  position: fixed; left: 1rem; right: 1rem; bottom: calc(1rem + env(safe-area-inset-bottom));
  z-index: 60;
  transform: translateY(150%); opacity: 0;
  transition: transform .4s var(--ease), opacity .4s;
  box-shadow: 0 10px 40px rgba(0,0,0,.6), 0 0 30px rgba(34,211,238,.35);
}
.sticky-cta.is-visible { transform: none; opacity: 1; }

/* ---------- Scroll reveal ---------- */
.js .reveal {
  opacity: 0;
  transform: translateY(32px);
  transition: opacity .8s var(--ease), transform .8s var(--ease);
  will-change: opacity, transform;
}
.js .reveal--left { transform: translateX(-40px); }
.js .reveal--right { transform: translateX(40px); }
.js .reveal[data-delay="1"] { transition-delay: .08s; }
.js .reveal[data-delay="2"] { transition-delay: .16s; }
.js .reveal[data-delay="3"] { transition-delay: .24s; }
.js .reveal[data-delay="4"] { transition-delay: .32s; }
.js .reveal.is-visible { opacity: 1; transform: none; }

/* ==========================================================================
   Breakpoints (mobile-first)
   ========================================================================== */
@media (min-width: 560px) {
  .hero__ctas { flex-direction: row; max-width: none; justify-content: center; }
  .feature-grid { grid-template-columns: repeat(2, 1fr); }
  .realm-grid { grid-template-columns: repeat(2, 1fr); }
}

@media (min-width: 900px) {
  :root { --header-h: 76px; }
  .nav__links { display: flex; }
  .hero__inner { grid-template-columns: 1.15fr .85fr; gap: 4rem; }
  .hero__copy { text-align: left; }
  .hero__sub { margin-left: 0; }
  .hero__ctas { justify-content: flex-start; }
  .hero__stats { justify-content: flex-start; }
  .hero__title .text-glow { display: inline; }
  .phone { --w: 320px; }
  .phone--sm { --w: 280px; }
  .scroll-cue { display: block; }

  .feature-grid { grid-template-columns: repeat(4, 1fr); }

  .spotlight { grid-template-columns: .8fr 1.2fr; gap: 5rem; }
  .spotlight__copy { text-align: left; }
  .spotlight__copy > p { margin-inline: 0; }

  .store__inner { grid-template-columns: 1.1fr .9fr; gap: 5rem; }
  .store__copy { text-align: left; }
  .store__copy .section__lead { margin-inline: 0; }

  .footer__inner { grid-template-columns: auto 1fr auto; justify-items: stretch; text-align: left; }
  .footer__links { justify-content: center; }
  .site-footer { padding-bottom: 2.5rem; }
  .sticky-cta { display: none; }
}

@media (min-width: 1200px) {
  .phone { --w: 340px; }
}

/* Hover-capable devices only: 3D tilt hint */
@media (hover: hover) and (pointer: fine) {
  .phone[data-tilt] { will-change: transform; }
}

/* ---------- Reduced motion ---------- */
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after {
    animation-duration: .01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: .01ms !important;
    transition-delay: 0s !important;
  }
  .js .reveal, .js .reveal--left, .js .reveal--right { opacity: 1; transform: none; }
  .phone__scan, .hero__stars { display: none; }
  .glitch::before, .glitch::after { display: none; }
}

/* High-contrast / forced colors */
@media (forced-colors: active) {
  .btn, .card, .realm, .cta__panel { clip-path: none; border: 1px solid CanvasText; }
}
