/* TS IPTV home page. Loaded after site.css; only the home page uses it.
   Motion: everything that moves is off under prefers-reduced-motion (bottom of the file). */

:root {
  --radius-lg: 28px;
  --radius-md: 20px;
  --glass: rgba(22, 26, 50, 0.55);
  --glass-stroke: rgba(255, 255, 255, 0.08);
  --violet: #7c5cff;
  --ease-out: cubic-bezier(0.22, 1, 0.36, 1);
  --ease-spring: cubic-bezier(0.34, 1.56, 0.64, 1);
}

body.home { overflow-x: hidden; }
body.home main { display: block; }

.container { max-width: 72rem; margin: 0 auto; padding: 0 1.25rem; }
.container.narrow { max-width: 50rem; }

.grad {
  background: linear-gradient(100deg, var(--accent) 0%, var(--accent-cyan) 45%, var(--violet) 100%);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

/* ---- scroll progress (CSS scroll-driven where supported) ---------------------------------- */
.scroll-progress {
  position: fixed;
  inset: 0 0 auto 0;
  height: 3px;
  z-index: 100;
  transform-origin: 0 50%;
  transform: scaleX(0);
  background: linear-gradient(90deg, var(--accent), var(--accent-cyan), var(--violet));
  will-change: transform;
}
@supports (animation-timeline: scroll()) {
  .scroll-progress { animation: grow-x linear both; animation-timeline: scroll(root); }
}
@keyframes grow-x { to { transform: scaleX(1); } }

/* ---- buttons ---------------------------------------------------------------------------------- */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 0.55rem;
  min-height: 48px;
  padding: 0.75rem 1.35rem;
  border-radius: 14px;
  font: inherit;
  font-weight: 700;
  text-decoration: none;
  cursor: pointer;
  border: 0;
  transition: transform 0.25s var(--ease-out), box-shadow 0.25s var(--ease-out), background-color 0.2s, color 0.2s;
}
.btn-primary {
  color: var(--navy-900);
  background: linear-gradient(120deg, var(--accent), var(--accent-cyan));
  box-shadow: 0 10px 30px -10px rgba(0, 245, 160, 0.6);
}
.btn-primary:hover { color: var(--navy-900); transform: translateY(-2px); box-shadow: 0 16px 40px -12px rgba(0, 245, 160, 0.75); }
.btn-ghost {
  color: var(--text);
  background: rgba(255, 255, 255, 0.06);
  border: 1px solid var(--glass-stroke);
  backdrop-filter: blur(8px);
}
.btn-ghost:hover { color: var(--accent); background: rgba(255, 255, 255, 0.1); transform: translateY(-2px); }

/* ---- hero ------------------------------------------------------------------------------------- */
.hero {
  position: relative;
  padding: clamp(3rem, 8vw, 6.5rem) 0 clamp(3rem, 6vw, 5rem);
  isolation: isolate;
}
.aurora { position: absolute; inset: -10% -10% auto; height: 120%; z-index: -2; pointer-events: none; filter: blur(70px); opacity: 0.75; }
.aurora span { position: absolute; border-radius: 50%; mix-blend-mode: screen; }
.aurora span:nth-child(1) { width: 46vw; height: 46vw; left: 2%; top: 4%; background: radial-gradient(circle, rgba(0, 245, 160, 0.45), transparent 65%); animation: drift-a 18s ease-in-out infinite alternate; }
.aurora span:nth-child(2) { width: 40vw; height: 40vw; right: 4%; top: -6%; background: radial-gradient(circle, rgba(124, 92, 255, 0.5), transparent 65%); animation: drift-b 22s ease-in-out infinite alternate; }
.aurora span:nth-child(3) { width: 36vw; height: 36vw; left: 38%; top: 34%; background: radial-gradient(circle, rgba(0, 217, 233, 0.38), transparent 65%); animation: drift-c 26s ease-in-out infinite alternate; }
.aurora.small { inset: 0; height: 100%; filter: blur(60px); opacity: 0.55; }
@keyframes drift-a { to { transform: translate(8vw, 6vh) scale(1.15); } }
@keyframes drift-b { to { transform: translate(-10vw, 8vh) scale(0.9); } }
@keyframes drift-c { to { transform: translate(-6vw, -8vh) scale(1.2); } }

.grid-glow {
  position: absolute;
  inset: 0;
  z-index: -1;
  background-image:
    linear-gradient(rgba(255, 255, 255, 0.045) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255, 255, 255, 0.045) 1px, transparent 1px);
  background-size: 56px 56px;
  -webkit-mask-image: radial-gradient(ellipse 70% 60% at 50% 35%, #000 30%, transparent 75%);
  mask-image: radial-gradient(ellipse 70% 60% at 50% 35%, #000 30%, transparent 75%);
}

.hero-inner {
  display: grid;
  grid-template-columns: minmax(0, 1.05fr) minmax(0, 1fr);
  gap: clamp(2rem, 5vw, 4rem);
  align-items: center;
}
.hero-top { display: flex; align-items: center; justify-content: space-between; gap: 1rem; flex-wrap: wrap; margin-bottom: 1.5rem; }
.pill {
  display: inline-flex;
  align-items: center;
  gap: 0.55rem;
  padding: 0.4rem 0.85rem 0.4rem 0.6rem;
  border-radius: 999px;
  border: 1px solid rgba(0, 245, 160, 0.35);
  background: rgba(0, 245, 160, 0.08);
  color: var(--text);
  font-size: 0.88rem;
  font-weight: 600;
  text-decoration: none;
  transition: border-color 0.2s, background-color 0.2s;
}
.pill:hover { color: var(--text); border-color: var(--accent); background: rgba(0, 245, 160, 0.14); }
.pill svg { opacity: 0.7; transition: transform 0.25s var(--ease-out); }
.pill:hover svg { transform: translateX(3px); }
.pill-dot, .live { width: 8px; height: 8px; border-radius: 50%; background: var(--accent); box-shadow: 0 0 0 0 rgba(0, 245, 160, 0.7); animation: pulse 2s infinite; flex: none; }
@keyframes pulse { 70% { box-shadow: 0 0 0 10px rgba(0, 245, 160, 0); } 100% { box-shadow: 0 0 0 0 rgba(0, 245, 160, 0); } }

.hero h1 {
  font-size: clamp(2.3rem, 4.6vw, 3.7rem);
  line-height: 1.05;
  letter-spacing: -0.03em;
  font-weight: 800;
  margin: 0 0 1.25rem;
}
.hero-lead { font-size: clamp(1.02rem, 1.4vw, 1.18rem); color: #c7cad8; line-height: 1.65; max-width: 34rem; margin: 0 0 2rem; }
.hero-cta { display: flex; flex-wrap: wrap; gap: 0.85rem; }
.hero-note { margin: 1.4rem 0 0; color: var(--text-dim); font-size: 0.9rem; }
.hero-note a { color: var(--text); text-decoration-color: rgba(255, 255, 255, 0.25); text-underline-offset: 3px; }
.hero-note .dot { margin: 0 0.5rem; opacity: 0.6; }

.hero-stage { position: relative; padding: 0 6% 9% 0; perspective: 1200px; }
.hero-stage .device-tv { transform-style: preserve-3d; }
.hero-stage .device-phone { position: absolute; width: 27%; right: 0; bottom: 0; }
.badge-float {
  position: absolute;
  left: -2%;
  bottom: 14%;
  display: inline-flex;
  align-items: center;
  gap: 0.55rem;
  padding: 0.55rem 0.9rem;
  border-radius: 14px;
  background: var(--glass);
  border: 1px solid var(--glass-stroke);
  backdrop-filter: blur(14px);
  font-size: 0.85rem;
  font-weight: 600;
  box-shadow: 0 20px 40px -20px rgba(0, 0, 0, 0.7);
  animation: bob 6s ease-in-out infinite;
}
.float { animation: bob 7s ease-in-out infinite; }
@keyframes bob { 50% { transform: translateY(-10px); } }

/* ---- device frames ---------------------------------------------------------------------------- */
.device-tv { position: relative; }
.device-tv .screen {
  position: relative;
  aspect-ratio: 16 / 9;
  border-radius: 16px;
  overflow: hidden;
  background: #05061a;
  border: 10px solid #090a14;
  box-shadow: 0 0 0 1px rgba(255, 255, 255, 0.07), 0 40px 80px -30px rgba(0, 0, 0, 0.9), 0 0 120px -40px rgba(0, 217, 233, 0.35);
}
.device-tv .stand { width: 28%; height: 10px; margin: 0 auto; border-radius: 0 0 10px 10px; background: linear-gradient(#1a1d33, #0d0f1f); }
.device-phone .screen {
  position: relative;
  aspect-ratio: 540 / 1140;
  border-radius: 28px;
  overflow: hidden;
  background: #05061a;
  border: 7px solid #090a14;
  box-shadow: 0 0 0 1px rgba(255, 255, 255, 0.09), 0 40px 70px -25px rgba(0, 0, 0, 0.9);
}
.device-tv.small .screen { border-width: 6px; border-radius: 12px; }
.device-phone.small .screen { border-width: 5px; border-radius: 22px; }
.screen video, .screen img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; display: block; }

/* ---- platforms marquee ------------------------------------------------------------------------ */
.platforms { padding: 1rem 0 0.5rem; border-block: 1px solid rgba(255, 255, 255, 0.05); background: rgba(12, 13, 44, 0.4); }
.marquee {
  display: flex;
  overflow: hidden;
  -webkit-mask-image: linear-gradient(90deg, transparent, #000 10%, #000 90%, transparent);
  mask-image: linear-gradient(90deg, transparent, #000 10%, #000 90%, transparent);
}
.marquee-track { flex: none; display: flex; gap: 0.75rem; margin: 0; padding: 0 0.75rem 0 0; list-style: none; animation: marquee 38s linear infinite; }
.marquee:hover .marquee-track { animation-play-state: paused; }
.marquee-track li {
  margin: 0 0 0.5rem;
  padding: 0.45rem 1rem;
  border-radius: 999px;
  border: 1px solid var(--glass-stroke);
  background: rgba(255, 255, 255, 0.03);
  color: #c7cad8;
  font-size: 0.9rem;
  font-weight: 600;
  white-space: nowrap;
}
@keyframes marquee { to { transform: translateX(-100%); } }

/* ---- sections --------------------------------------------------------------------------------- */
.section { padding: clamp(4rem, 9vw, 7.5rem) 0; position: relative; }
.section-head { max-width: 46rem; margin: 0 0 clamp(2rem, 5vw, 3.5rem); }
.section-head.row { max-width: none; display: flex; justify-content: space-between; align-items: end; gap: 1.5rem; }
.eyebrow {
  margin: 0 0 0.75rem;
  color: var(--accent);
  font-size: 0.82rem;
  font-weight: 700;
  letter-spacing: 0.14em;
  text-transform: uppercase;
}
.hero h1, .section h2, .cta-card h2, .story-step h3 { text-wrap: balance; }
.section h2 { font-size: clamp(1.9rem, 4vw, 3rem); line-height: 1.1; letter-spacing: -0.025em; font-weight: 800; margin: 0; }
.section-lead { margin: 1.1rem 0 0; color: #b9bdcc; font-size: 1.08rem; line-height: 1.65; }

/* ---- reveal on scroll ------------------------------------------------------------------------- */
.js [data-reveal] {
  opacity: 0;
  transform: translateY(28px) scale(0.985);
  filter: blur(6px);
  transition: opacity 0.9s var(--ease-out), transform 0.9s var(--ease-out), filter 0.9s var(--ease-out);
  transition-delay: var(--d, 0ms);
}
.js [data-reveal].is-in { opacity: 1; transform: none; filter: none; }

/* Hero: plays once on load, no JS needed (visible to crawlers and link previews too). */
.rise { animation: rise 0.9s var(--ease-out) both; animation-delay: var(--d, 0ms); }
@keyframes rise { from { opacity: 0; transform: translateY(24px); filter: blur(6px); } }

/* ---- scroll story: Play on TV ----------------------------------------------------------------- */
.story-grid { display: grid; grid-template-columns: minmax(0, 0.85fr) minmax(0, 1.15fr); gap: clamp(2rem, 5vw, 4.5rem); align-items: start; }
.story-steps { list-style: none; margin: 0; padding: 0; }
.story-step {
  display: flex;
  gap: 1.1rem;
  margin: 0;
  min-height: 46vh;
  padding: 1.25rem 0;
  opacity: 0.38;
  transition: opacity 0.5s var(--ease-out);
}
.story-step:last-child { min-height: 30vh; }
.story-step.is-active { opacity: 1; }
.story-step h3 { margin: 0.15rem 0 0.5rem; font-size: clamp(1.2rem, 2vw, 1.5rem); line-height: 1.25; }
.story-step p { margin: 0; color: #b9bdcc; }
.step-num {
  flex: none;
  display: grid;
  place-items: center;
  width: 44px;
  height: 44px;
  border-radius: 14px;
  font-weight: 800;
  color: var(--text-dim);
  border: 1px solid var(--stroke);
  background: var(--navy-800);
  transition: all 0.5s var(--ease-out);
}
.story-step.is-active .step-num { color: var(--navy-900); border-color: transparent; background: linear-gradient(135deg, var(--accent), var(--accent-cyan)); box-shadow: 0 10px 30px -10px rgba(0, 245, 160, 0.7); }
.story-stage { position: sticky; top: 7rem; padding: 0 8% 10% 0; }
.story-stage .device-phone { position: absolute; width: 26%; right: 0; bottom: 0; }
.story-stage .screen video, .story-stage .screen img { transition: opacity 0.45s var(--ease-out); }
.story-stage .send-a { opacity: 0; }
.story-stage.is-send .send-a { opacity: 1; }
.story-stage.is-send video { opacity: 0; }

/* ---- bento ------------------------------------------------------------------------------------ */
.bento { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); grid-auto-flow: dense; gap: 1rem; }
.tile {
  position: relative;
  overflow: hidden;
  border-radius: var(--radius-lg);
  padding: 1.5rem;
  background: linear-gradient(180deg, rgba(22, 26, 50, 0.9), rgba(12, 13, 44, 0.9));
  border: 1px solid var(--glass-stroke);
  isolation: isolate;
  transition: transform 0.5s var(--ease-out), border-color 0.3s;
}
.tile::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: -1;
  opacity: 0;
  transition: opacity 0.3s;
  background: radial-gradient(420px circle at var(--mx, 50%) var(--my, 50%), rgba(0, 217, 233, 0.16), transparent 45%);
}
.tile:hover { border-color: rgba(0, 217, 233, 0.35); transform: translateY(-3px); }
.tile:hover::before { opacity: 1; }
.tile h3 { margin: 0 0 0.4rem; font-size: 1.15rem; }
.tile p { margin: 0; color: #b0b4c4; font-size: 0.95rem; line-height: 1.55; }
.tile-wide { grid-column: span 2; }
.tile-tall { grid-row: span 2; display: flex; flex-direction: column; }
.tile-tall .tile-media { margin-top: auto; padding-top: 1.25rem; width: 74%; align-self: center; }
.tile-wide .tile-media { margin-top: 1.25rem; }
.tile-land { grid-column: span 2; }
.tile-land .tile-media.land { position: relative; margin-top: 1.25rem; aspect-ratio: 1280 / 576; border-radius: 14px; overflow: hidden; border: 6px solid #090a14; }
.tile-land .tile-media.land video { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.tile-icon {
  width: 46px;
  height: 46px;
  display: grid;
  place-items: center;
  margin-bottom: 1rem;
  border-radius: 14px;
  background: linear-gradient(135deg, rgba(0, 245, 160, 0.18), rgba(124, 92, 255, 0.18));
  border: 1px solid var(--glass-stroke);
}
.tile-icon svg, .trust-icon svg, .gal-nav svg { width: 24px; height: 24px; fill: none; stroke: var(--accent); stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; }
.chips { display: flex; flex-wrap: wrap; gap: 0.5rem; margin: 1.25rem 0 0; padding: 0; list-style: none; }
.chips li { margin: 0; }
.chips a {
  display: inline-block;
  padding: 0.45rem 0.85rem;
  border-radius: 999px;
  border: 1px solid var(--glass-stroke);
  background: rgba(255, 255, 255, 0.04);
  color: var(--text);
  font-size: 0.88rem;
  font-weight: 600;
  text-decoration: none;
  transition: all 0.2s;
}
.chips a:hover { color: var(--navy-900); background: var(--accent); border-color: var(--accent); }

/* ---- tutorials -------------------------------------------------------------------------------- */
.tutorials { background: radial-gradient(ellipse 80% 60% at 50% 0%, rgba(124, 92, 255, 0.1), transparent 70%); }
.tut { display: grid; gap: 1.5rem; }
.tut-tabs { display: grid; grid-template-columns: repeat(5, minmax(0, 1fr)); gap: 0.6rem; }
.tut-tabs button {
  position: relative;
  display: grid;
  gap: 0.2rem;
  text-align: left;
  padding: 0.9rem 1rem 1.1rem;
  border-radius: var(--radius-md);
  border: 1px solid var(--glass-stroke);
  background: rgba(255, 255, 255, 0.03);
  color: var(--text-dim);
  font: inherit;
  cursor: pointer;
  overflow: hidden;
  transition: all 0.25s var(--ease-out);
}
.tut-tabs button:hover { color: var(--text); border-color: rgba(255, 255, 255, 0.16); }
.tut-tabs button[aria-selected="true"] { color: var(--text); border-color: rgba(0, 245, 160, 0.4); background: rgba(0, 245, 160, 0.06); }
.tut-n { font-size: 0.78rem; font-weight: 800; letter-spacing: 0.1em; color: var(--accent); }
.tut-t { font-weight: 700; line-height: 1.3; }
.tut-bar { position: absolute; left: 0; right: 0; bottom: 0; height: 3px; background: rgba(255, 255, 255, 0.06); }
.tut-bar i { display: block; height: 100%; width: 100%; transform: scaleX(0); transform-origin: 0 50%; will-change: transform; background: linear-gradient(90deg, var(--accent), var(--accent-cyan)); }
.tut-panel {
  display: grid;
  grid-template-columns: minmax(0, 1.3fr) minmax(0, 1fr);
  gap: clamp(1.5rem, 4vw, 3rem);
  align-items: center;
  padding: clamp(1.25rem, 3vw, 2.5rem);
  border-radius: var(--radius-lg);
  border: 1px solid var(--glass-stroke);
  background: linear-gradient(180deg, rgba(22, 26, 50, 0.8), rgba(12, 13, 44, 0.8));
}
.tut-stage { display: grid; place-items: center; min-height: 26rem; }
.tut-stage .device-phone { width: min(15rem, 60%); }
.tut-stage .device-tv { width: 100%; }
.tut-stage.duo { position: relative; padding: 0 9% 12% 0; }
.tut-stage.duo .device-phone { position: absolute; right: 0; bottom: 0; width: 23%; }
.tut-stage > * { animation: fade-in 0.5s var(--ease-out); }
@keyframes fade-in { from { opacity: 0; transform: translateY(10px) scale(0.98); } }
.tut-steps { counter-reset: s; list-style: none; padding: 0; margin: 0 0 1.75rem; }
.tut-steps li { counter-increment: s; position: relative; padding: 0 0 0 2.6rem; margin: 0 0 1.1rem; font-size: 1.05rem; line-height: 1.5; }
.tut-steps li::before {
  content: counter(s);
  position: absolute;
  left: 0;
  top: -0.1rem;
  width: 1.85rem;
  height: 1.85rem;
  display: grid;
  place-items: center;
  border-radius: 10px;
  font-size: 0.85rem;
  font-weight: 800;
  color: var(--navy-900);
  background: linear-gradient(135deg, var(--accent), var(--accent-cyan));
}
.tut-steps b { color: var(--text); }

/* ---- gallery ---------------------------------------------------------------------------------- */
.gal-nav { display: flex; gap: 0.5rem; }
.gal-nav button {
  width: 48px;
  height: 48px;
  display: grid;
  place-items: center;
  border-radius: 14px;
  border: 1px solid var(--glass-stroke);
  background: rgba(255, 255, 255, 0.04);
  cursor: pointer;
  transition: all 0.2s;
}
.gal-nav button:hover { border-color: var(--accent); background: rgba(0, 245, 160, 0.08); }
.gal-track {
  display: flex;
  gap: 1.25rem;
  overflow-x: auto;
  scroll-snap-type: x mandatory;
  padding: 0.5rem max(1.25rem, calc((100vw - 72rem) / 2 + 1.25rem)) 1.5rem;
  scrollbar-width: none;
  overscroll-behavior-x: contain;
}
.gal-track::-webkit-scrollbar { display: none; }
.gal-track:focus-visible { outline-offset: -4px; }
.shot { flex: none; margin: 0; scroll-snap-align: center; border-radius: 22px; overflow: hidden; border: 1px solid var(--glass-stroke); background: var(--navy-800); transition: transform 0.5s var(--ease-out); }
.shot:hover { transform: translateY(-6px); }
.shot img { display: block; width: 100%; height: 100%; object-fit: cover; }
.shot.phone { width: clamp(13rem, 22vw, 17rem); aspect-ratio: 560 / 1211; }
.shot.tv { height: calc(clamp(13rem, 22vw, 17rem) * 1211 / 560); aspect-ratio: 16 / 9; }
.shot.tv img { object-fit: contain; background: #05061a; }
.gal-note { margin: 0.5rem 0 0; color: var(--text-dim); font-size: 0.85rem; }

/* ---- trust ------------------------------------------------------------------------------------ */
.trust { padding-top: 0; }
.trust-card {
  display: flex;
  gap: 1.5rem;
  align-items: flex-start;
  padding: clamp(1.5rem, 4vw, 2.5rem);
  border-radius: var(--radius-lg);
  border: 1px solid rgba(251, 191, 36, 0.28);
  background: linear-gradient(135deg, rgba(251, 191, 36, 0.08), rgba(12, 13, 44, 0.6));
}
.trust-card h2 { font-size: clamp(1.25rem, 2.4vw, 1.6rem) !important; margin-bottom: 0.6rem !important; letter-spacing: -0.01em !important; }
.trust-card p { color: #c7cad8; margin: 0; }
.trust-icon { flex: none; width: 52px; height: 52px; display: grid; place-items: center; border-radius: 16px; background: rgba(251, 191, 36, 0.12); }
.trust-icon svg { stroke: #fbbf24; }
.trust-links { display: flex; flex-wrap: wrap; gap: 1.25rem; margin-top: 1rem !important; }
.trust-links a { font-weight: 600; }

/* ---- FAQ -------------------------------------------------------------------------------------- */
.faq-list { display: grid; gap: 0.75rem; }
.faq details {
  border-radius: var(--radius-md);
  border: 1px solid var(--glass-stroke);
  background: rgba(255, 255, 255, 0.03);
  transition: border-color 0.25s, background-color 0.25s;
  interpolate-size: allow-keywords;
}
.faq details[open] { border-color: rgba(0, 245, 160, 0.3); background: rgba(0, 245, 160, 0.04); }
.faq summary {
  list-style: none;
  cursor: pointer;
  padding: 1.1rem 3.25rem 1.1rem 1.35rem;
  position: relative;
  font-weight: 700;
  font-size: 1.05rem;
}
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after {
  content: "";
  position: absolute;
  right: 1.35rem;
  top: 50%;
  width: 12px;
  height: 12px;
  margin-top: -9px;
  border-right: 2px solid var(--accent);
  border-bottom: 2px solid var(--accent);
  transform: rotate(45deg);
  transition: transform 0.35s var(--ease-out), margin 0.35s var(--ease-out);
}
.faq details[open] summary::after { transform: rotate(-135deg); margin-top: -3px; }
.faq-a { padding: 0 1.35rem 1.2rem; color: #c7cad8; }
.faq-a p { margin: 0; }
.faq details::details-content { block-size: 0; overflow: hidden; transition: block-size 0.4s var(--ease-out), content-visibility 0.4s allow-discrete; }
.faq details[open]::details-content { block-size: auto; }

/* ---- CTA -------------------------------------------------------------------------------------- */
.cta { padding-top: 0; }
.cta-card {
  position: relative;
  overflow: hidden;
  isolation: isolate;
  text-align: center;
  padding: clamp(3rem, 7vw, 5rem) 1.5rem;
  border-radius: 36px;
  border: 1px solid var(--glass-stroke);
  background: linear-gradient(180deg, rgba(22, 26, 50, 0.85), rgba(3, 4, 29, 0.9));
}
.cta-card img { border-radius: 18px; box-shadow: 0 20px 50px -15px rgba(0, 245, 160, 0.55); }
.cta-card h2 { margin: 1.5rem auto 2rem !important; max-width: 40rem; }
.cta-card .hero-cta { justify-content: center; }

/* ---- video dialog ----------------------------------------------------------------------------- */
.video-dialog {
  width: min(64rem, 94vw);
  padding: 0;
  border: 1px solid var(--glass-stroke);
  border-radius: 20px;
  background: #000;
  color: var(--text);
  overflow: visible;
}
.video-dialog::backdrop { background: rgba(3, 4, 29, 0.8); backdrop-filter: blur(8px); }
.video-dialog .video-frame { display: block; width: 100%; aspect-ratio: 16 / 9; border-radius: 20px; background: #000; overflow: hidden; }
.video-dialog .video-frame iframe { display: block; width: 100%; height: 100%; border: 0; }
.video-dialog .close {
  position: absolute;
  top: -3rem;
  right: 0;
  width: 44px;
  height: 44px;
  border-radius: 12px;
  border: 1px solid var(--glass-stroke);
  background: rgba(255, 255, 255, 0.08);
  color: var(--text);
  font-size: 1.5rem;
  line-height: 1;
  cursor: pointer;
}
.video-dialog[open] { animation: pop 0.35s var(--ease-spring); }
@keyframes pop { from { opacity: 0; transform: scale(0.94); } }

/* ---- responsive ------------------------------------------------------------------------------- */
@media (max-width: 980px) {
  .hero-inner { grid-template-columns: 1fr; }
  .hero-stage { max-width: 40rem; margin: 0 auto; width: 100%; }
  .bento { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .tut-tabs { grid-template-columns: repeat(5, minmax(9rem, 1fr)); overflow-x: auto; scrollbar-width: none; }
  .tut-panel { grid-template-columns: 1fr; }
  .story-grid { grid-template-columns: 1fr; }
  .story-stage { position: sticky; top: 4.5rem; z-index: 2; order: -1; max-width: 34rem; margin: 0 auto; width: 100%; padding-bottom: 12%; background: linear-gradient(var(--navy-900) 85%, transparent); }
  .story-step { min-height: 0; padding: 1.25rem 0; opacity: 1; }
}
@media (max-width: 640px) {
  .bento { grid-template-columns: 1fr; }
  .tile-wide, .tile-land { grid-column: auto; }
  .tile-tall { grid-row: auto; }
  .tile-tall .tile-media { width: 60%; }
  .section-head.row { flex-direction: column; align-items: flex-start; }
  .badge-float { display: none; }
  .tut-stage { min-height: 0; }
}

/* ---- reduced motion: no drifting, bobbing, marquee or reveal transforms ------------------------ */
@media (prefers-reduced-motion: reduce) {
  .aurora span, .float, .badge-float, .pill-dot, .live, .marquee-track { animation: none !important; }
  .marquee { overflow-x: auto; }
  .js [data-reveal] { opacity: 1; transform: none; filter: none; transition: none; }
  .rise { animation: none; }
  .tile, .shot, .btn { transition: none; }
  .tile:hover, .shot:hover, .btn:hover { transform: none; }
  .scroll-progress { display: none; }
}
