/* =========================================================
   Surge Drama — Orbital Storyboard landing
   Differentiator: neon portal orbit + horizontal track +
   clip-path shard collage (not a standard card-grid landing)
   ========================================================= */

:root {
  --bg: #0a0614;
  --bg-elev: #140a22;
  --bg-glass: rgba(255, 255, 255, 0.06);
  --text: #f8f5ff;
  --muted: rgba(248, 245, 255, 0.68);
  --pink: #ff2d8a;
  --magenta: #e0116e;
  --orange: #ff7a00;
  --gold: #f5c542;
  --violet: #7b3fff;
  --border: rgba(255, 255, 255, 0.12);
  --glow-pink: 0 0 28px rgba(255, 45, 138, 0.45);
  --glow-gold: 0 0 24px rgba(245, 197, 66, 0.35);
  --grad-hot: linear-gradient(105deg, #f5c542 0%, #ff7a00 42%, #ff2d8a 100%);
  --grad-pink: linear-gradient(135deg, #ff7a9a 0%, #ff2d8a 55%, #c4006e 100%);
  --font-display: "Bebas Neue", Impact, sans-serif;
  --font-body: "Sora", system-ui, sans-serif;
  --radius: 1.25rem;
  --nav-h: 4.5rem;
  --ease: cubic-bezier(0.22, 1, 0.36, 1);
  --max: 72rem;
}

[data-theme="light"] {
  --bg: #f7f2fb;
  --bg-elev: #ffffff;
  --bg-glass: rgba(20, 10, 34, 0.04);
  --text: #1a0a28;
  --muted: rgba(26, 10, 40, 0.65);
  --border: rgba(26, 10, 40, 0.12);
  --glow-pink: 0 0 24px rgba(255, 45, 138, 0.25);
}

*,
*::before,
*::after {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  font-family: var(--font-body);
  color: var(--text);
  background: var(--bg);
  line-height: 1.6;
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
}

img {
  max-width: 100%;
  height: auto;
  display: block;
}

a {
  color: inherit;
  text-decoration: none;
}

button {
  font: inherit;
  border: none;
  background: none;
  color: inherit;
  cursor: pointer;
}

.skip-link {
  position: absolute;
  left: -999px;
  top: 0;
  z-index: 1000;
  padding: 0.75rem 1rem;
  background: var(--pink);
  color: #fff;
}

.skip-link:focus {
  left: 1rem;
  top: 1rem;
}

/* ---------- Ambient field ---------- */
.orbit-field {
  position: fixed;
  inset: 0;
  pointer-events: none;
  z-index: 0;
  overflow: hidden;
}

.orbit-field__mesh {
  position: absolute;
  inset: 0;
  background:
    radial-gradient(ellipse 60% 40% at 15% 10%, rgba(255, 45, 138, 0.18), transparent 55%),
    radial-gradient(ellipse 50% 45% at 85% 20%, rgba(245, 197, 66, 0.12), transparent 50%),
    radial-gradient(ellipse 70% 50% at 50% 100%, rgba(123, 63, 255, 0.16), transparent 55%);
}

.orbit-field__ribbon {
  position: absolute;
  width: 140%;
  height: 2px;
  background: var(--grad-hot);
  opacity: 0.35;
  filter: blur(1px);
  transform-origin: center;
}

.orbit-field__ribbon--a {
  top: 28%;
  left: -20%;
  transform: rotate(-18deg);
  box-shadow: 0 0 40px rgba(255, 45, 138, 0.5);
  animation: ribbon-drift 18s ease-in-out infinite alternate;
}

.orbit-field__ribbon--b {
  bottom: 22%;
  left: -10%;
  transform: rotate(12deg);
  opacity: 0.22;
  animation: ribbon-drift 22s ease-in-out infinite alternate-reverse;
}

.orbit-field__sparkles span {
  position: absolute;
  width: 3px;
  height: 3px;
  border-radius: 50%;
  background: #fff;
  opacity: 0.35;
  animation: twinkle 4s ease-in-out infinite;
}

@keyframes ribbon-drift {
  from { translate: 0 0; }
  to { translate: 4% 2%; }
}

@keyframes twinkle {
  0%, 100% { opacity: 0.15; transform: scale(0.8); }
  50% { opacity: 0.7; transform: scale(1.2); }
}

/* ---------- Nav ---------- */
.nav {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 100;
  padding: 0.85rem 1rem;
  transition: padding 0.25s var(--ease), background 0.25s var(--ease);
}

.nav.is-scrolled {
  padding-top: 0.55rem;
  padding-bottom: 0.55rem;
}

.nav__shell {
  max-width: var(--max);
  margin: 0 auto;
  display: flex;
  align-items: center;
  gap: 1rem;
  padding: 0.55rem 0.85rem;
  border-radius: 999px;
  background: rgba(10, 6, 20, 0.55);
  border: 1px solid var(--border);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  transition: box-shadow 0.25s var(--ease);
}

[data-theme="light"] .nav__shell {
  background: rgba(255, 255, 255, 0.82);
}

.nav.is-scrolled .nav__shell {
  box-shadow: 0 12px 40px rgba(0, 0, 0, 0.35);
}

.nav__brand {
  display: flex;
  align-items: center;
  gap: 0.45rem;
  flex-shrink: 0;
}

.nav__icon {
  width: 36px;
  height: 36px;
  border-radius: 10px;
}

.nav__logo {
  height: 36px;
  width: auto;
}

.nav__links {
  display: none;
  gap: 1.35rem;
  margin-left: auto;
  margin-right: auto;
  font-size: 0.9rem;
  font-weight: 500;
}

.nav__links a {
  opacity: 0.78;
  transition: opacity 0.2s, color 0.2s;
}

.nav__links a:hover,
.nav__links a:focus-visible {
  opacity: 1;
  color: var(--gold);
}

.nav__actions {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  margin-left: auto;
}

.theme-toggle {
  width: 2.4rem;
  height: 2.4rem;
  border-radius: 999px;
  display: grid;
  place-items: center;
  border: 1px solid var(--border);
  transition: background 0.2s, border-color 0.2s;
}

.theme-toggle:hover {
  background: var(--bg-glass);
  border-color: var(--pink);
}

.theme-toggle .icon-sun { display: none; }
.theme-toggle .icon-moon { display: block; }
[data-theme="light"] .theme-toggle .icon-sun { display: block; }
[data-theme="light"] .theme-toggle .icon-moon { display: none; }

.nav__burger {
  width: 2.4rem;
  height: 2.4rem;
  border-radius: 999px;
  display: grid;
  place-items: center;
  border: 1px solid var(--border);
}

.nav__burger i { width: 1.15rem; height: 1.15rem; }

@media (min-width: 900px) {
  .nav__links { display: flex; }
  .nav__burger { display: none; }
  .nav__actions { margin-left: 0; }
}

/* Mobile drawer */
@media (max-width: 899px) {
  .nav__links {
    position: fixed;
    top: calc(var(--nav-h) + 0.5rem);
    left: 1rem;
    right: 1rem;
    display: flex;
    flex-direction: column;
    gap: 0;
    padding: 0.5rem;
    border-radius: var(--radius);
    background: rgba(14, 8, 28, 0.96);
    border: 1px solid var(--border);
    backdrop-filter: blur(20px);
    transform: translateY(-12px);
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.25s var(--ease), transform 0.25s var(--ease);
  }

  [data-theme="light"] .nav__links {
    background: rgba(255, 255, 255, 0.98);
  }

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

  .nav__links a {
    padding: 0.9rem 1rem;
    border-radius: 0.75rem;
  }

  .nav__links a:hover {
    background: var(--bg-glass);
  }
}

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  padding: 0.85rem 1.35rem;
  border-radius: 999px;
  font-weight: 600;
  font-size: 0.95rem;
  transition: transform 0.2s var(--ease), box-shadow 0.2s, filter 0.2s, background 0.2s, border-color 0.2s;
  cursor: pointer;
}

.btn i { width: 1.1rem; height: 1.1rem; }

.btn--sm {
  padding: 0.55rem 1rem;
  font-size: 0.85rem;
}

.btn--lg {
  padding: 1rem 1.6rem;
  font-size: 1rem;
}

.btn--surge {
  background: var(--grad-hot);
  color: #1a0a10;
  box-shadow: var(--glow-pink);
}

.btn--surge:hover {
  filter: brightness(1.08);
  box-shadow: 0 0 36px rgba(255, 45, 138, 0.55);
}

.btn--surge:focus-visible {
  outline: 2px solid var(--gold);
  outline-offset: 3px;
}

.btn--ghost {
  background: var(--bg-glass);
  border: 1px solid var(--border);
  color: var(--text);
}

.btn--ghost:hover {
  border-color: var(--pink);
  background: rgba(255, 45, 138, 0.1);
}

/* ---------- Shared section bits ---------- */
main { position: relative; z-index: 1; }

.section-head {
  max-width: 40rem;
  margin: 0 auto 2.5rem;
  text-align: center;
  padding: 0 1.25rem;
}

.section-head--row {
  max-width: var(--max);
  margin-left: auto;
  margin-right: auto;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 1rem;
  text-align: center;
  margin-bottom: 1.75rem;
}

.section-head--row .section-sub {
  max-width: 28rem;
  margin: 0;
  text-align: center;
}

.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  font-size: 0.8rem;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--gold);
  margin: 0 0 0.75rem;
}

.eyebrow i { width: 1rem; height: 1rem; }

h1, h2, h3 {
  font-family: var(--font-display);
  font-weight: 400;
  letter-spacing: 0.02em;
  line-height: 1.05;
  margin: 0;
}

h2 {
  font-size: clamp(2.4rem, 6vw, 3.75rem);
}

.section-sub {
  margin: 0.85rem 0 0;
  color: var(--muted);
  font-size: 1rem;
}

.text-grad {
  background: var(--grad-hot);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

/* ---------- Hero ---------- */
.hero {
  position: relative;
  min-height: 100svh;
  display: flex;
  align-items: center;
  padding: calc(var(--nav-h) + 1.5rem) 0 4rem;
  overflow: hidden;
}

.hero__bleed {
  position: absolute;
  inset: 0;
  z-index: 0;
}

.hero__bleed-img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center 30%;
  opacity: 0.35;
  filter: saturate(1.15);
}

[data-theme="light"] .hero__bleed-img {
  opacity: 0.22;
}

.hero__bleed-veil {
  position: absolute;
  inset: 0;
  background:
    linear-gradient(105deg, var(--bg) 0%, rgba(10, 6, 20, 0.72) 42%, rgba(10, 6, 20, 0.35) 100%),
    linear-gradient(to top, var(--bg) 0%, transparent 40%);
}

[data-theme="light"] .hero__bleed-veil {
  background:
    linear-gradient(105deg, var(--bg) 0%, rgba(247, 242, 251, 0.85) 45%, rgba(247, 242, 251, 0.4) 100%),
    linear-gradient(to top, var(--bg) 0%, transparent 40%);
}

.hero__inner {
  position: relative;
  z-index: 1;
  width: min(100% - 2rem, var(--max));
  margin: 0 auto;
  display: grid;
  gap: 2.5rem;
  align-items: center;
}

@media (min-width: 960px) {
  .hero__inner {
    grid-template-columns: 1.05fr 0.95fr;
    gap: 2rem;
  }
}

.hero__brand {
  width: min(200px, 55vw);
  height: auto;
  margin-bottom: 1.1rem;
  filter: drop-shadow(0 8px 24px rgba(255, 45, 138, 0.35));
}

.hero__title {
  font-size: clamp(3rem, 9vw, 5.5rem);
  margin-bottom: 1rem;
}

.hero__line {
  display: block;
}

.hero__line--grad {
  background: var(--grad-hot);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
  font-size: 1.08em;
}

.hero__sub {
  max-width: 28rem;
  color: var(--muted);
  font-size: 1.05rem;
  margin: 0 0 1.5rem;
}

.hero__cta {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
  margin-bottom: 1rem;
}

.hero__note {
  font-size: 0.75rem;
  color: var(--muted);
  opacity: 0.85;
  margin: 0;
  max-width: 26rem;
}

/* Orbital portal composition */
.hero__orbit {
  position: relative;
  height: min(58vw, 460px);
  max-width: 460px;
  margin: 0 auto;
  width: 100%;
}

.portal {
  position: absolute;
  inset: 8% 12%;
  display: grid;
  place-items: center;
}

.portal__ring {
  position: absolute;
  border-radius: 50%;
  border: 2px solid transparent;
}

.portal__ring--outer {
  inset: -6%;
  border-radius: 50%;
  background: conic-gradient(from 0deg, #f5c542, #ff7a00, #ff2d8a, #7b3fff, #f5c542);
  -webkit-mask: radial-gradient(farthest-side, transparent calc(100% - 4px), #000 calc(100% - 3px));
  mask: radial-gradient(farthest-side, transparent calc(100% - 4px), #000 calc(100% - 3px));
  box-shadow: var(--glow-pink);
  opacity: 0.95;
  animation: spin-slow 28s linear infinite;
}

.portal__ring--inner {
  inset: 2%;
  border: 1.5px solid rgba(255, 122, 0, 0.55);
  border-radius: 50%;
  box-shadow: 0 0 20px rgba(255, 122, 0, 0.35);
  animation: spin-slow 18s linear infinite reverse;
}

.portal__core {
  width: 72%;
  aspect-ratio: 1;
  border-radius: 50%;
  overflow: hidden;
  border: 2px solid rgba(255, 255, 255, 0.18);
  box-shadow: 0 20px 60px rgba(0, 0, 0, 0.45), var(--glow-pink);
}

.portal__core img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
}

.tilt-card {
  position: absolute;
  width: 32%;
  margin: 0;
  border-radius: 1rem;
  overflow: hidden;
  border: 2px solid rgba(255, 255, 255, 0.2);
  box-shadow: 0 16px 40px rgba(0, 0, 0, 0.45), 0 0 20px rgba(255, 45, 138, 0.25);
  animation: float-y 5.5s ease-in-out infinite;
}

.tilt-card img {
  width: 100%;
  aspect-ratio: 9 / 16;
  object-fit: cover;
}

.tilt-card--a {
  top: 4%;
  left: 0;
  transform: rotate(-14deg);
  z-index: 2;
}

.tilt-card--b {
  bottom: 2%;
  right: 0;
  transform: rotate(11deg);
  z-index: 2;
  animation-delay: -2.2s;
}

@keyframes spin-slow {
  to { transform: rotate(360deg); }
}

@keyframes float-y {
  0%, 100% { translate: 0 0; }
  50% { translate: 0 -10px; }
}

.hero__scroll {
  position: absolute;
  bottom: 1.25rem;
  left: 50%;
  transform: translateX(-50%);
  z-index: 2;
  opacity: 0.65;
  animation: bob 2.2s ease-in-out infinite;
}

.hero__scroll i { width: 1.5rem; height: 1.5rem; }

@keyframes bob {
  0%, 100% { translate: 0 0; }
  50% { translate: 0 8px; }
}

/* ---------- Features cascade ---------- */
.features {
  padding: 5rem 0 4rem;
}

.feature-cascade {
  width: min(100% - 2rem, var(--max));
  margin: 0 auto;
  display: grid;
  gap: 1rem;
}

@media (min-width: 768px) {
  .feature-cascade {
    grid-template-columns: repeat(12, 1fr);
    grid-auto-rows: minmax(140px, auto);
    gap: 1.1rem;
  }

  .feature-panel--1 { grid-column: 1 / 7; grid-row: 1; transform: rotate(-1.2deg); }
  .feature-panel--2 { grid-column: 7 / 13; grid-row: 1; transform: rotate(1deg); margin-top: 1.5rem; }
  .feature-panel--3 { grid-column: 2 / 8; grid-row: 2; transform: rotate(0.8deg); }
  .feature-panel--4 { grid-column: 8 / 13; grid-row: 2; transform: rotate(-1deg); margin-top: -0.75rem; }
}

.feature-panel {
  padding: 1.5rem 1.4rem;
  border-radius: var(--radius);
  background: var(--bg-glass);
  border: 1px solid var(--border);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  transition: border-color 0.25s, box-shadow 0.25s, background 0.25s;
}

.feature-panel:hover {
  border-color: rgba(255, 45, 138, 0.45);
  box-shadow: var(--glow-pink);
  background: rgba(255, 45, 138, 0.08);
}

.feature-panel__icon {
  width: 2.6rem;
  height: 2.6rem;
  border-radius: 0.85rem;
  display: grid;
  place-items: center;
  margin-bottom: 1rem;
  background: var(--grad-hot);
  color: #1a0a10;
}

.feature-panel__icon i { width: 1.2rem; height: 1.2rem; }

.feature-panel h3 {
  font-size: 1.65rem;
  margin-bottom: 0.5rem;
}

.feature-panel p {
  margin: 0;
  color: var(--muted);
  font-size: 0.95rem;
}

/* ---------- Channels horizontal track ---------- */
.channels {
  padding: 3rem 0 4.5rem;
}

.track-wrap {
  overflow: hidden;
  mask-image: linear-gradient(90deg, transparent, #000 4%, #000 96%, transparent);
  -webkit-mask-image: linear-gradient(90deg, transparent, #000 4%, #000 96%, transparent);
}

.track {
  display: flex;
  justify-content: safe center;
  gap: 1.15rem;
  overflow-x: auto;
  scroll-snap-type: x mandatory;
  padding: 0.5rem 1.25rem 1.25rem;
  scrollbar-width: thin;
  scrollbar-color: var(--pink) transparent;
  cursor: grab;
}

.track:active { cursor: grabbing; }

.track-card {
  position: relative;
  flex: 0 0 min(72vw, 240px);
  scroll-snap-align: center;
  border-radius: 1.35rem;
  overflow: hidden;
  border: 1px solid var(--border);
  aspect-ratio: 9 / 16;
  transition: transform 0.3s var(--ease), box-shadow 0.3s;
}

.track-card:hover {
  transform: translateY(-6px) rotate(-1deg);
  box-shadow: var(--glow-pink);
}

.track-card img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
}

.track-card__meta {
  position: absolute;
  inset: auto 0 0 0;
  padding: 3.5rem 1rem 1.1rem;
  background: linear-gradient(to top, rgba(8, 4, 16, 0.95), transparent);
}

.track-card__meta h3 {
  font-size: 1.45rem;
  margin: 0.4rem 0 0.25rem;
}

.track-card__meta p {
  margin: 0;
  font-size: 0.82rem;
  color: rgba(255, 255, 255, 0.72);
}

.tag {
  display: inline-block;
  font-size: 0.68rem;
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  padding: 0.28rem 0.55rem;
  border-radius: 999px;
}

.tag--gold { background: rgba(245, 197, 66, 0.2); color: var(--gold); }
.tag--pink { background: rgba(255, 45, 138, 0.22); color: #ff8cbc; }
.tag--orange { background: rgba(255, 122, 0, 0.22); color: #ffb366; }
.tag--violet { background: rgba(123, 63, 255, 0.25); color: #c4a8ff; }

/* ---------- Shard moments — centered screenshot row ---------- */
.moments {
  padding: 3rem 0 5rem;
}

.shard-grid {
  width: min(100% - 2rem, var(--max));
  margin: 0 auto;
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  align-items: stretch;
  gap: 1rem;
}

.shard {
  position: relative;
  margin: 0;
  overflow: hidden;
  flex: 0 1 min(42vw, 200px);
  max-width: 220px;
  aspect-ratio: 9 / 16;
  border: 1px solid var(--border);
  border-radius: 1.15rem;
}

@media (min-width: 768px) {
  .shard {
    flex: 0 1 200px;
  }

  .shard--tall {
    transform: rotate(-2.5deg);
  }

  .shard--wide {
    transform: rotate(1.5deg);
    margin-top: 1.25rem;
  }

  .shard--mid {
    transform: rotate(-1deg);
  }

  .shard--portal {
    transform: rotate(2deg);
    margin-top: 0.75rem;
  }
}

.shard img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
  transition: transform 0.5s var(--ease);
}

.shard:hover img {
  transform: scale(1.06);
}

.shard figcaption {
  position: absolute;
  left: 50%;
  bottom: 0.85rem;
  transform: translateX(-50%);
  width: calc(100% - 1.2rem);
  text-align: center;
  font-family: var(--font-display);
  font-size: 1.35rem;
  letter-spacing: 0.04em;
  text-shadow: 0 2px 12px rgba(0, 0, 0, 0.7);
}

/* ---------- Download ---------- */
.download {
  padding: 2rem 0 5rem;
}

.download__panel {
  width: min(100% - 2rem, var(--max));
  margin: 0 auto;
  display: grid;
  gap: 2rem;
  align-items: center;
  padding: 2rem 1.5rem;
  border-radius: 2rem;
  background:
    radial-gradient(ellipse 50% 60% at 80% 50%, rgba(255, 45, 138, 0.18), transparent 60%),
    var(--bg-elev);
  border: 1px solid var(--border);
  overflow: hidden;
}

@media (min-width: 860px) {
  .download__panel {
    grid-template-columns: 1.2fr 0.8fr;
    padding: 2.5rem 2.5rem 2.5rem 3rem;
  }
}

.download__copy h2 {
  margin-bottom: 0.75rem;
}

.download__copy > p {
  color: var(--muted);
  max-width: 32rem;
}

.download__btns {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
  margin: 1.5rem 0 1rem;
}

.download__legal {
  font-size: 0.75rem;
  color: var(--muted);
  opacity: 0.85;
  max-width: 34rem;
  margin: 0;
}

.download__phone {
  display: flex;
  justify-content: center;
}

.phone-frame {
  width: min(220px, 55vw);
  border-radius: 1.75rem;
  overflow: hidden;
  border: 3px solid rgba(245, 197, 66, 0.55);
  box-shadow: var(--glow-gold), 0 24px 60px rgba(0, 0, 0, 0.45);
  transform: rotate(3deg);
  animation: float-y 6s ease-in-out infinite;
}

.phone-frame img {
  width: 100%;
  aspect-ratio: 9 / 16;
  object-fit: cover;
}

/* ---------- Footer ---------- */
.footer {
  position: relative;
  z-index: 1;
  border-top: 1px solid var(--border);
  padding: 2.5rem 1.25rem 3rem;
  background: rgba(0, 0, 0, 0.25);
}

[data-theme="light"] .footer {
  background: rgba(255, 255, 255, 0.5);
}

.footer__inner {
  max-width: var(--max);
  margin: 0 auto;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 1.25rem;
  text-align: center;
}

.footer__brand img {
  height: 52px;
  width: auto;
}

.footer__links {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 1rem 1.5rem;
  font-size: 0.9rem;
}

.footer__links a {
  color: var(--muted);
  transition: color 0.2s;
  text-decoration: underline;
  text-underline-offset: 3px;
}

.footer__links a:hover {
  color: var(--pink);
}

.footer__copy {
  margin: 0;
  font-size: 0.8rem;
  color: var(--muted);
}

/* ---------- Modal ---------- */
.modal[hidden] { display: none; }

.modal {
  position: fixed;
  inset: 0;
  z-index: 200;
  display: grid;
  place-items: center;
  padding: 1.25rem;
}

.modal__backdrop {
  position: absolute;
  inset: 0;
  background: rgba(4, 2, 10, 0.72);
  backdrop-filter: blur(6px);
  cursor: pointer;
}

.modal__card {
  position: relative;
  width: min(100%, 400px);
  padding: 2rem 1.75rem 1.75rem;
  border-radius: 1.5rem;
  background: var(--bg-elev);
  border: 1px solid var(--border);
  box-shadow: var(--glow-pink), 0 24px 80px rgba(0, 0, 0, 0.5);
  text-align: center;
  z-index: 1;
}

.modal__close {
  position: absolute;
  top: 0.75rem;
  right: 0.75rem;
  width: 2.2rem;
  height: 2.2rem;
  border-radius: 999px;
  display: grid;
  place-items: center;
  border: 1px solid var(--border);
}

.modal__close:hover {
  border-color: var(--pink);
}

.modal__icon {
  width: 3.2rem;
  height: 3.2rem;
  margin: 0 auto 1rem;
  border-radius: 1rem;
  display: grid;
  place-items: center;
  background: var(--grad-hot);
  color: #1a0a10;
}

.modal__icon i { width: 1.4rem; height: 1.4rem; }

.modal__card h2 {
  font-size: 2.2rem;
  margin-bottom: 0.5rem;
}

.modal__card p {
  color: var(--muted);
  margin: 0 0 1.35rem;
}

/* ---------- Reduced motion ---------- */
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }

  .orbit-field__ribbon,
  .portal__ring--outer,
  .portal__ring--inner,
  .tilt-card,
  .phone-frame,
  .hero__scroll,
  .orbit-field__sparkles span {
    animation: none !important;
  }
}
