/* ==========================================================================
   TVMamba IPTV Player — tvmamba.app
   Hand-built design system. Dark, cinematic, orange.
   ========================================================================== */

/* ---------- Font ---------- */
@font-face {
  font-family: "Inter";
  src: url("../fonts/inter-var.woff2") format("woff2-variations");
  font-weight: 100 900;
  font-style: normal;
  font-display: swap;
}

/* ---------- Tokens ---------- */
:root {
  --bg-0: #05070b;
  --bg-1: #0b0e14;
  --surface: #10151d;
  --surface-2: #151c27;
  --surface-3: #1b2230;
  --line: rgba(255, 255, 255, 0.08);
  --line-strong: rgba(255, 255, 255, 0.14);
  --text: #eef1f6;
  --muted: #9aa3b2;
  --muted-2: #6d7684;
  --orange: #ff7a00;
  --amber: #ffb454;
  --orange-deep: #ff6a00;
  --on-accent: #221603;
  --grad-accent: linear-gradient(135deg, #ffad4e 0%, #ff7200 100%);
  --glow: rgba(255, 122, 0, 0.16);
  --radius: 16px;
  --radius-lg: 24px;
  --font: "Inter", system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
  --nav-h: 76px;
  --ease-out: cubic-bezier(0.22, 1, 0.36, 1);
}

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

html {
  scroll-behavior: smooth;
  scroll-padding-top: calc(var(--nav-h) + 16px);
  -webkit-text-size-adjust: 100%;
  overflow-x: clip;
}

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

img, svg, video { display: block; max-width: 100%; height: auto; }
a { color: inherit; text-decoration: none; }
ul, ol { margin: 0; padding: 0; list-style: none; }
button { font: inherit; color: inherit; background: none; border: 0; cursor: pointer; }
h1, h2, h3, h4 { margin: 0; line-height: 1.08; letter-spacing: -0.02em; font-weight: 800; }
p { margin: 0; }
strong { font-weight: 700; color: var(--text); }

::selection { background: rgba(255, 122, 0, 0.35); color: #fff; }

:focus-visible {
  outline: 2px solid var(--amber);
  outline-offset: 3px;
  border-radius: 6px;
}

.skip-link {
  position: absolute;
  left: 16px;
  top: -64px;
  z-index: 200;
  padding: 10px 18px;
  background: var(--grad-accent);
  color: var(--on-accent);
  font-weight: 700;
  border-radius: 999px;
  transition: top 0.25s var(--ease-out);
}
.skip-link:focus-visible { top: 12px; }

/* ---------- Type scale ---------- */
.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-size: 0.8125rem;
  font-weight: 700;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--amber);
}
.eyebrow::before {
  content: "";
  width: 26px;
  height: 2px;
  background: var(--grad-accent);
  border-radius: 2px;
}
.eyebrow--center::after {
  content: "";
  width: 26px;
  height: 2px;
  background: var(--grad-accent);
  border-radius: 2px;
}

.h-display {
  font-size: clamp(2.6rem, 6.4vw, 4.9rem);
  letter-spacing: -0.035em;
  line-height: 1.02;
}
.h-section {
  font-size: clamp(2rem, 4.4vw, 3.35rem);
  letter-spacing: -0.03em;
  line-height: 1.06;
}
.h-sub { font-size: clamp(1.3rem, 2.4vw, 1.75rem); letter-spacing: -0.02em; }

.lead {
  font-size: clamp(1.075rem, 1.6vw, 1.25rem);
  line-height: 1.65;
  color: var(--muted);
  font-weight: 450;
}

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

/* ---------- Layout ---------- */
.container { width: min(1180px, 92vw); margin-inline: auto; }
.section { padding-block: clamp(5rem, 10vw, 8.5rem); position: relative; }
.section-head { max-width: 720px; margin-bottom: clamp(2.5rem, 5vw, 4rem); }
.section-head .h-section { margin-top: 18px; }
.section-head .lead { margin-top: 18px; }
.section-head--center { margin-inline: auto; text-align: center; }
.section-head--center .eyebrow { justify-content: center; }

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  padding: 15px 30px;
  border-radius: 999px;
  font-weight: 700;
  font-size: 1rem;
  letter-spacing: -0.01em;
  white-space: nowrap;
  transition: transform 0.35s var(--ease-out), box-shadow 0.35s var(--ease-out),
              background-color 0.35s var(--ease-out), border-color 0.35s var(--ease-out);
  will-change: transform;
}
.btn svg { width: 18px; height: 18px; flex: none; }

.btn-primary {
  background: var(--grad-accent);
  color: var(--on-accent);
  box-shadow: 0 10px 30px -10px rgba(255, 122, 0, 0.55);
}
.btn-primary:hover {
  transform: translateY(-2px);
  box-shadow: 0 18px 42px -12px rgba(255, 122, 0, 0.65);
}
.btn-primary:active { transform: translateY(0); }

.btn-ghost {
  border: 1px solid var(--line-strong);
  color: var(--text);
  background: rgba(255, 255, 255, 0.02);
}
.btn-ghost:hover { border-color: rgba(255, 180, 84, 0.55); background: rgba(255, 122, 0, 0.07); transform: translateY(-2px); }

.btn-sm { padding: 10px 22px; font-size: 0.9375rem; }

/* ---------- Navigation ---------- */
.site-nav {
  position: fixed;
  inset: 0 0 auto 0;
  z-index: 100;
  height: var(--nav-h);
  transition: background-color 0.4s var(--ease-out), border-color 0.4s var(--ease-out),
              height 0.4s var(--ease-out), backdrop-filter 0.4s var(--ease-out);
  border-bottom: 1px solid transparent;
}
.site-nav.scrolled {
  height: 62px;
  background: rgba(5, 7, 11, 0.78);
  -webkit-backdrop-filter: blur(18px);
  backdrop-filter: blur(18px);
  border-bottom-color: var(--line);
}
.nav-inner {
  height: 100%;
  display: flex;
  align-items: center;
  gap: 28px;
}
.nav-logo { display: flex; align-items: center; gap: 12px; flex: none; }
.nav-logo img { height: 26px; width: auto; }
.nav-links {
  display: flex;
  gap: 6px;
  margin-inline: auto;
}
.nav-links a {
  padding: 9px 14px;
  border-radius: 999px;
  font-size: 0.9375rem;
  font-weight: 550;
  color: var(--muted);
  transition: color 0.25s, background-color 0.25s;
}
.nav-links a:hover { color: var(--text); background: rgba(255, 255, 255, 0.05); }
.nav-links a.active { color: var(--amber); }

.menu-btn {
  display: none;
  width: 46px;
  height: 46px;
  border-radius: 12px;
  border: 1px solid var(--line-strong);
  align-items: center;
  justify-content: center;
  flex: none;
}
.menu-btn svg { width: 20px; height: 20px; }
.menu-btn .icon-close { display: none; }
.menu-btn[aria-expanded="true"] .icon-open { display: none; }
.menu-btn[aria-expanded="true"] .icon-close { display: block; }

.mobile-menu {
  position: fixed;
  inset: 0;
  z-index: 90;
  background: rgba(5, 7, 11, 0.96);
  -webkit-backdrop-filter: blur(20px);
  backdrop-filter: blur(20px);
  display: flex;
  flex-direction: column;
  justify-content: center;
  padding: 100px 8vw 48px;
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.35s var(--ease-out), visibility 0.35s;
}
.mobile-menu.open { opacity: 1; visibility: visible; }
.mobile-menu a {
  display: block;
  padding: 14px 0;
  font-size: clamp(1.6rem, 6vw, 2.2rem);
  font-weight: 750;
  letter-spacing: -0.02em;
  color: var(--text);
  border-bottom: 1px solid var(--line);
}
.mobile-menu a:hover { color: var(--amber); }
.mobile-menu .btn { margin-top: 28px; align-self: flex-start; }

/* ---------- Hero ---------- */
.hero {
  position: relative;
  min-height: 100svh;
  display: flex;
  flex-direction: column;
  justify-content: center;
  padding-top: calc(var(--nav-h) + 3rem);
  padding-bottom: 4rem;
  overflow: clip;
}
.hero-bg {
  position: absolute;
  inset: 0;
  pointer-events: none;
  background:
    radial-gradient(ellipse 90% 55% at 50% -8%, rgba(255, 122, 0, 0.13), transparent 60%),
    radial-gradient(ellipse 60% 45% at 50% 108%, rgba(255, 122, 0, 0.07), transparent 65%),
    var(--bg-0);
}
.hero-inner { position: relative; text-align: center; }
.hero-inner .eyebrow { justify-content: center; }
.hero-title { margin-top: 22px; }
.hero-sub {
  max-width: 620px;
  margin: 24px auto 0;
  font-size: clamp(1.075rem, 1.7vw, 1.3rem);
  line-height: 1.6;
  color: var(--muted);
}
.hero-actions {
  margin-top: 36px;
  display: flex;
  gap: 14px;
  justify-content: center;
  flex-wrap: wrap;
}
.hero-trust {
  margin-top: 22px;
  font-size: 0.9375rem;
  color: var(--muted-2);
  display: inline-flex;
  align-items: center;
  gap: 9px;
}
.hero-trust svg { width: 15px; height: 15px; color: var(--amber); flex: none; }

/* TV stage */
.hero-stage {
  position: relative;
  margin: clamp(3rem, 6vw, 5rem) auto 0;
  width: min(980px, 100%);
  perspective: 1200px;
}
.hero-glow {
  position: absolute;
  inset: 8% -6% -18% -6%;
  background: radial-gradient(ellipse 55% 60% at 50% 62%, rgba(255, 122, 0, 0.24), transparent 70%);
  filter: blur(30px);
  pointer-events: none;
}

.tv-frame {
  position: relative;
  border-radius: 22px;
  padding: clamp(8px, 1.4vw, 14px);
  background: linear-gradient(160deg, #2a2f3a 0%, #0d1017 22%, #171c26 78%, #05070b 100%);
  box-shadow:
    0 40px 90px -30px rgba(0, 0, 0, 0.9),
    0 0 0 1px rgba(255, 255, 255, 0.06),
    inset 0 1px 0 rgba(255, 255, 255, 0.12);
}
.tv-screen {
  position: relative;
  border-radius: 12px;
  overflow: hidden;
  background: #050805;
  aspect-ratio: 16 / 9;
}
.tv-screen img { width: 100%; height: 100%; object-fit: cover; }
.tv-screen::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(115deg, rgba(255, 255, 255, 0.07) 0%, transparent 28%);
  pointer-events: none;
}
.tv-stand {
  width: 34%;
  height: 10px;
  margin: 14px auto 0;
  border-radius: 0 0 14px 14px;
  background: linear-gradient(180deg, #1a1f2a, #05070b);
  box-shadow: 0 18px 30px -8px rgba(0, 0, 0, 0.8);
}

/* Floating chips */
.chip {
  position: absolute;
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 12px 18px;
  border-radius: 14px;
  background: rgba(16, 21, 29, 0.82);
  -webkit-backdrop-filter: blur(14px);
  backdrop-filter: blur(14px);
  border: 1px solid var(--line-strong);
  box-shadow: 0 20px 50px -18px rgba(0, 0, 0, 0.8);
  font-size: 0.875rem;
  font-weight: 650;
  white-space: nowrap;
  z-index: 3;
}
.chip svg { width: 18px; height: 18px; color: var(--amber); flex: none; }
.chip small { display: block; font-size: 0.75rem; color: var(--muted); font-weight: 500; }
.chip--tl { top: 6%; left: -4%; }
.chip--tr { top: 20%; right: -5%; }
.chip--bl { bottom: 8%; left: -2%; }

.scroll-cue {
  position: absolute;
  left: 50%;
  bottom: 22px;
  transform: translateX(-50%);
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 8px;
  color: var(--muted-2);
  font-size: 0.75rem;
  letter-spacing: 0.18em;
  text-transform: uppercase;
}
.scroll-cue span:last-child {
  width: 1px;
  height: 42px;
  background: linear-gradient(180deg, var(--amber), transparent);
  animation: cue 2.2s var(--ease-out) infinite;
}
@keyframes cue {
  0% { transform: scaleY(0); transform-origin: top; }
  45% { transform: scaleY(1); transform-origin: top; }
  55% { transform: scaleY(1); transform-origin: bottom; }
  100% { transform: scaleY(0); transform-origin: bottom; }
}

/* ---------- Intro / proof points ---------- */
.intro-grid {
  display: grid;
  grid-template-columns: 0.9fr 1.1fr;
  gap: clamp(2.5rem, 6vw, 6rem);
  align-items: start;
}
.intro-sticky { position: sticky; top: calc(var(--nav-h) + 3rem); }
.intro-copy p + p { margin-top: 1.2em; }
.intro-copy .lead + p { margin-top: 1.4em; }

.proof-row {
  margin-top: clamp(3rem, 6vw, 4.5rem);
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 18px;
}
.proof {
  padding: 26px 26px 28px;
  border-radius: var(--radius-lg);
  background: linear-gradient(170deg, var(--surface) 0%, rgba(16, 21, 29, 0.4) 100%);
  border: 1px solid var(--line);
  transition: transform 0.4s var(--ease-out), border-color 0.4s var(--ease-out);
}
.proof:hover { transform: translateY(-4px); border-color: rgba(255, 180, 84, 0.35); }
.proof svg { width: 26px; height: 26px; color: var(--amber); }
.proof h3 { margin-top: 16px; font-size: 1.125rem; font-weight: 700; letter-spacing: -0.01em; }
.proof p { margin-top: 8px; font-size: 0.9375rem; color: var(--muted); }

/* ---------- Web remote ---------- */
.remote-section {
  background:
    radial-gradient(ellipse 55% 60% at 85% 40%, rgba(255, 122, 0, 0.08), transparent 65%),
    var(--bg-1);
  border-block: 1px solid var(--line);
  overflow: clip;
}
.remote-grid {
  display: grid;
  grid-template-columns: 1.05fr 0.95fr;
  gap: clamp(3rem, 6vw, 5rem);
  align-items: center;
}
.remote-visual { position: relative; display: flex; justify-content: center; }
.phone-frame {
  position: relative;
  width: min(300px, 68vw);
  border-radius: 40px;
  padding: 10px;
  background: linear-gradient(165deg, #262c38, #0a0d13 30%, #151a24 75%, #05070b);
  box-shadow:
    0 50px 100px -35px rgba(0, 0, 0, 0.95),
    0 0 0 1px rgba(255, 255, 255, 0.07),
    inset 0 1px 0 rgba(255, 255, 255, 0.14);
}
.phone-frame::before {
  content: "";
  position: absolute;
  top: 20px;
  left: 50%;
  transform: translateX(-50%);
  width: 34%;
  height: 20px;
  border-radius: 12px;
  background: #05070b;
  z-index: 2;
}
.phone-screen {
  border-radius: 32px;
  overflow: hidden;
  background: #0b0e14;
}
.phone-screen img { width: 100%; }
.remote-visual .phone-glow {
  position: absolute;
  inset: 10% -20% -10%;
  background: radial-gradient(ellipse 50% 55% at 50% 55%, rgba(255, 122, 0, 0.2), transparent 70%);
  filter: blur(40px);
  pointer-events: none;
  z-index: -1;
}
.remote-tablet {
  position: absolute;
  right: -6%;
  bottom: -8%;
  width: 46%;
  border-radius: 18px;
  padding: 7px;
  background: linear-gradient(165deg, #262c38, #0a0d13 40%, #05070b);
  box-shadow: 0 40px 80px -30px rgba(0, 0, 0, 0.9), 0 0 0 1px rgba(255, 255, 255, 0.07);
  transform: rotate(3deg);
}
.remote-tablet .phone-screen { border-radius: 12px; }

.remote-steps { margin-top: 40px; display: grid; gap: 4px; }
.remote-step {
  display: grid;
  grid-template-columns: 56px 1fr;
  gap: 18px;
  padding: 20px 0;
  border-top: 1px solid var(--line);
}
.remote-step:last-child { border-bottom: 1px solid var(--line); }
.step-num {
  width: 44px;
  height: 44px;
  border-radius: 14px;
  display: grid;
  place-items: center;
  background: rgba(255, 122, 0, 0.1);
  border: 1px solid rgba(255, 180, 84, 0.3);
  color: var(--amber);
  font-weight: 800;
  font-size: 0.9375rem;
}
.remote-step h3 { font-size: 1.125rem; font-weight: 700; letter-spacing: -0.01em; }
.remote-step p { margin-top: 6px; font-size: 0.9375rem; color: var(--muted); }

.chip-row { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 32px; }
.tag-chip {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 9px 16px;
  border-radius: 999px;
  border: 1px solid var(--line-strong);
  background: rgba(255, 255, 255, 0.02);
  font-size: 0.875rem;
  font-weight: 600;
  color: var(--text);
}
.tag-chip svg { width: 15px; height: 15px; color: var(--amber); }

/* ---------- Showcase (pinned story) ---------- */
.showcase-pin { position: relative; }
.showcase-grid {
  display: grid;
  grid-template-columns: 0.85fr 1.15fr;
  gap: clamp(2.5rem, 5vw, 5rem);
  align-items: start;
}
.show-chapters { display: grid; gap: clamp(3rem, 30vh, 12rem); padding-block: 12vh; }
.show-chapter { max-width: 420px; }
.showcase-grid.show-live .show-chapter { opacity: 0.35; transition: opacity 0.5s var(--ease-out); }
.showcase-grid.show-live .show-chapter.current { opacity: 1; }
.show-chapter .step-label {
  font-size: 0.8125rem;
  font-weight: 700;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--amber);
}
.show-chapter h3 { margin-top: 12px; font-size: clamp(1.4rem, 2.6vw, 1.9rem); letter-spacing: -0.02em; }
.show-chapter p { margin-top: 12px; color: var(--muted); font-size: 1rem; }
.show-visual.show-live { position: sticky; top: calc(var(--nav-h) + 4vh); }
.show-tv-stack { position: relative; }
.show-slide + .show-slide { margin-top: 1rem; }
.show-tv-stack.show-live .show-slide {
  position: absolute;
  inset: 0;
  opacity: 0;
  transition: opacity 0.6s var(--ease-out), transform 0.6s var(--ease-out);
  transform: scale(1.03);
}
.show-tv-stack.show-live .show-slide:first-child { position: relative; }
.show-tv-stack.show-live .show-slide.current { opacity: 1; transform: scale(1); }
.show-tv-stack.show-live .show-slide + .show-slide { margin-top: 0; }
.show-slide img { width: 100%; border-radius: 12px; aspect-ratio: 16 / 9; object-fit: cover; }
.placeholder-flag {
  position: absolute;
  left: 12px;
  bottom: 12px;
  padding: 6px 12px;
  border-radius: 8px;
  background: rgba(5, 7, 11, 0.8);
  border: 1px solid rgba(255, 180, 84, 0.4);
  color: var(--amber);
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  z-index: 2;
}

/* ---------- Features ---------- */
.feat-hero {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: clamp(2.5rem, 5vw, 5rem);
  align-items: center;
  padding: clamp(2.2rem, 4vw, 3.5rem);
  border-radius: calc(var(--radius-lg) + 8px);
  background:
    radial-gradient(ellipse 70% 90% at 90% 10%, rgba(255, 122, 0, 0.1), transparent 60%),
    linear-gradient(170deg, var(--surface) 0%, rgba(13, 17, 24, 0.6) 100%);
  border: 1px solid var(--line);
  overflow: hidden;
}
.feat-hero .media { position: relative; border-radius: var(--radius-lg); overflow: hidden; }
.feat-hero .media img { border-radius: var(--radius-lg); }
.feat-hero h3 { font-size: clamp(1.5rem, 2.8vw, 2.1rem); letter-spacing: -0.025em; }
.feat-hero .lead { margin-top: 16px; font-size: 1.05rem; }
.feat-hero .chip-row { margin-top: 24px; }

.feat-groups {
  margin-top: clamp(2.5rem, 5vw, 4rem);
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 18px;
}
.feat-group {
  padding: 26px 24px 28px;
  border-radius: var(--radius-lg);
  background: var(--surface);
  border: 1px solid var(--line);
  transition: transform 0.4s var(--ease-out), border-color 0.4s var(--ease-out);
}
.feat-group:hover { transform: translateY(-4px); border-color: rgba(255, 180, 84, 0.3); }
.feat-group > svg { width: 26px; height: 26px; color: var(--amber); }
.feat-group h3 { margin-top: 16px; font-size: 1.0625rem; font-weight: 700; }
.feat-group ul { margin-top: 14px; display: grid; gap: 9px; }
.feat-group li {
  position: relative;
  padding-left: 16px;
  font-size: 0.9rem;
  color: var(--muted);
  line-height: 1.45;
}
.feat-group li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 0.55em;
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--orange);
  opacity: 0.7;
}

/* ---------- Big screen ---------- */
.bigscreen { background: var(--bg-1); border-block: 1px solid var(--line); }
.bigscreen-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: clamp(2.5rem, 6vw, 6rem);
  align-items: center;
}
.detail-list { display: grid; gap: 4px; margin-top: 8px; }
.detail-item {
  display: grid;
  grid-template-columns: 46px 1fr;
  gap: 16px;
  padding: 18px 0;
  border-top: 1px solid var(--line);
  align-items: start;
}
.detail-item:last-child { border-bottom: 1px solid var(--line); }
.detail-item svg { width: 24px; height: 24px; color: var(--amber); margin-top: 2px; }
.detail-item h3 { font-size: 1.0625rem; font-weight: 700; }
.detail-item p { margin-top: 5px; font-size: 0.9375rem; color: var(--muted); }
.bigscreen-visual { position: relative; }
.bigscreen-visual .tv-frame { box-shadow: 0 30px 70px -25px rgba(0, 0, 0, 0.85), 0 0 0 1px rgba(255,255,255,0.06); }

/* ---------- How it works ---------- */
.how-steps {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 18px;
  counter-reset: how;
}
.how-step {
  position: relative;
  padding: 30px 28px 32px;
  border-radius: var(--radius-lg);
  background: linear-gradient(170deg, var(--surface) 0%, rgba(16, 21, 29, 0.4) 100%);
  border: 1px solid var(--line);
}
.how-step::before {
  counter-increment: how;
  content: "0" counter(how);
  font-size: 0.875rem;
  font-weight: 800;
  letter-spacing: 0.16em;
  color: var(--amber);
}
.how-step h3 { margin-top: 16px; font-size: 1.25rem; font-weight: 750; letter-spacing: -0.015em; }
.how-step p { margin-top: 10px; font-size: 0.95rem; color: var(--muted); }

/* ---------- Platforms ---------- */
.plat-list { border-top: 1px solid var(--line); }
.plat-row {
  display: grid;
  grid-template-columns: 1.2fr 1.6fr auto;
  gap: 24px;
  align-items: center;
  padding: 26px 8px;
  border-bottom: 1px solid var(--line);
  transition: background-color 0.3s;
}
.plat-row:hover { background: rgba(255, 255, 255, 0.02); }
.plat-row h3 { font-size: 1.2rem; font-weight: 700; letter-spacing: -0.01em; }
.plat-row p { color: var(--muted); font-size: 0.95rem; }
.badge {
  padding: 8px 16px;
  border-radius: 999px;
  font-size: 0.8125rem;
  font-weight: 700;
  letter-spacing: 0.02em;
  white-space: nowrap;
}
.badge-full { background: rgba(255, 122, 0, 0.12); color: var(--amber); border: 1px solid rgba(255, 180, 84, 0.35); }
.badge-remote { background: rgba(255, 255, 255, 0.05); color: var(--text); border: 1px solid var(--line-strong); }

/* ---------- Premium ---------- */
.premium-section {
  background:
    radial-gradient(ellipse 60% 70% at 50% 0%, rgba(255, 122, 0, 0.09), transparent 65%),
    var(--bg-1);
  border-block: 1px solid var(--line);
}
.price-cards {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 20px;
  max-width: 860px;
  margin-inline: auto;
}
.price-card {
  position: relative;
  padding: 34px 32px 36px;
  border-radius: calc(var(--radius-lg) + 4px);
  background: var(--surface);
  border: 1px solid var(--line);
  display: flex;
  flex-direction: column;
}
.price-card--hero {
  border-color: rgba(255, 180, 84, 0.45);
  background:
    radial-gradient(ellipse 90% 70% at 50% -20%, rgba(255, 122, 0, 0.14), transparent 60%),
    var(--surface);
  box-shadow: 0 30px 70px -30px rgba(255, 122, 0, 0.35);
}
.price-flag {
  position: absolute;
  top: -14px;
  left: 32px;
  padding: 6px 14px;
  border-radius: 999px;
  background: var(--grad-accent);
  color: var(--on-accent);
  font-size: 0.75rem;
  font-weight: 800;
  letter-spacing: 0.06em;
  text-transform: uppercase;
}
.price-card h3 { font-size: 1.3rem; font-weight: 750; }
.price-amount {
  margin-top: 16px;
  font-size: clamp(1.9rem, 3.4vw, 2.5rem);
  font-weight: 800;
  letter-spacing: -0.03em;
}
.price-amount small { font-size: 0.95rem; font-weight: 600; color: var(--muted); letter-spacing: 0; }
.price-note { margin-top: 8px; font-size: 0.9rem; color: var(--amber); font-weight: 600; }
.price-card ul { margin-top: 22px; display: grid; gap: 11px; }
.price-card li {
  position: relative;
  padding-left: 26px;
  font-size: 0.9375rem;
  color: var(--muted);
}
.price-card li svg {
  position: absolute;
  left: 0;
  top: 2px;
  width: 16px;
  height: 16px;
  color: var(--amber);
}
.price-card .btn { margin-top: auto; }
.price-card .btn-wrap { margin-top: 28px; }
.premium-footnote {
  margin-top: 28px;
  text-align: center;
  font-size: 0.875rem;
  color: var(--muted-2);
  max-width: 640px;
  margin-inline: auto;
}

/* ---------- Gallery ---------- */
.gallery-section { overflow: clip; }
.gal-viewport { position: relative; }
.gal-track {
  display: flex;
  gap: 22px;
  padding-inline: max(4vw, calc((100vw - 1180px) / 2));
  overflow-x: auto;
  scroll-snap-type: x mandatory;
  scrollbar-width: none;
  padding-bottom: 8px;
}
.gal-track::-webkit-scrollbar { display: none; }
.gal-item {
  flex: none;
  width: min(760px, 82vw);
  scroll-snap-align: center;
}
.gal-item figure { margin: 0; }
.gal-item .frame {
  border-radius: var(--radius-lg);
  overflow: hidden;
  border: 1px solid var(--line);
  background: var(--surface);
  position: relative;
}
.gal-item img { width: 100%; aspect-ratio: 16 / 9; object-fit: cover; }
.gal-item .frame--portrait img { aspect-ratio: auto; }
.gal-item figcaption {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  gap: 16px;
  padding: 14px 6px 0;
  font-size: 0.9375rem;
  font-weight: 600;
}
.gal-item figcaption span { color: var(--muted-2); font-weight: 500; font-size: 0.8125rem; }
.gal-progress {
  margin: 26px auto 0;
  width: min(280px, 60vw);
  height: 2px;
  border-radius: 2px;
  background: var(--line);
  overflow: hidden;
}
.gal-progress span {
  display: block;
  height: 100%;
  width: 20%;
  border-radius: 2px;
  background: var(--grad-accent);
  transition: transform 0.2s linear, width 0.2s linear;
}

/* ---------- FAQ ---------- */
.faq-list { max-width: 820px; margin-inline: auto; }
.faq-item { border-bottom: 1px solid var(--line); }
.faq-item:first-child { border-top: 1px solid var(--line); }
.faq-item summary {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  padding: 24px 4px;
  cursor: pointer;
  font-size: 1.1rem;
  font-weight: 650;
  letter-spacing: -0.01em;
  list-style: none;
  transition: color 0.25s;
}
.faq-item summary::-webkit-details-marker { display: none; }
.faq-item summary:hover { color: var(--amber); }
.faq-item summary .faq-icon {
  flex: none;
  width: 34px;
  height: 34px;
  border-radius: 50%;
  border: 1px solid var(--line-strong);
  display: grid;
  place-items: center;
  transition: transform 0.35s var(--ease-out), background-color 0.35s, border-color 0.35s;
}
.faq-item summary .faq-icon svg { width: 14px; height: 14px; }
.faq-item[open] summary .faq-icon {
  transform: rotate(45deg);
  background: rgba(255, 122, 0, 0.12);
  border-color: rgba(255, 180, 84, 0.4);
}
.faq-item .faq-body { padding: 0 44px 26px 4px; color: var(--muted); max-width: 700px; }
.faq-item .faq-body a { color: var(--amber); text-decoration: underline; text-underline-offset: 3px; }

/* ---------- Legal ---------- */
.legal-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 18px; }
.legal-card {
  padding: 26px;
  border-radius: var(--radius-lg);
  border: 1px solid var(--line);
  background: var(--surface);
}
.legal-card svg { width: 24px; height: 24px; color: var(--amber); }
.legal-card h3 { margin-top: 14px; font-size: 1.0625rem; font-weight: 700; }
.legal-card p { margin-top: 8px; font-size: 0.9rem; color: var(--muted); }

/* ---------- Final CTA ---------- */
.cta-final {
  position: relative;
  text-align: center;
  overflow: clip;
  background:
    radial-gradient(ellipse 70% 65% at 50% 110%, rgba(255, 122, 0, 0.16), transparent 65%),
    var(--bg-1);
  border-top: 1px solid var(--line);
}
.cta-final .app-icon {
  width: 96px;
  height: 96px;
  margin: 0 auto 30px;
  border-radius: 26px;
  box-shadow: 0 24px 60px -18px rgba(255, 122, 0, 0.45);
}
.cta-final .h-section { max-width: 760px; margin-inline: auto; }
.cta-final .lead { max-width: 560px; margin: 20px auto 0; }
.cta-final .hero-actions { margin-top: 38px; }
.cta-note { margin-top: 20px; font-size: 0.875rem; color: var(--muted-2); }

/* ---------- Footer ---------- */
.site-footer {
  border-top: 1px solid var(--line);
  padding: 56px 0 40px;
  background: var(--bg-0);
}
.footer-grid {
  display: grid;
  grid-template-columns: 1.4fr 1fr 1fr 1fr;
  gap: 36px;
}
.footer-brand img { height: 24px; width: auto; }
.footer-brand p { margin-top: 16px; font-size: 0.875rem; color: var(--muted-2); max-width: 300px; }
.footer-col h4 {
  font-size: 0.8125rem;
  font-weight: 700;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--muted-2);
}
.footer-col ul { margin-top: 16px; display: grid; gap: 10px; }
.footer-col a { font-size: 0.9375rem; color: var(--muted); transition: color 0.25s; }
.footer-col a:hover { color: var(--amber); }
.footer-disclaimer {
  margin-top: 44px;
  padding: 18px 22px;
  border-radius: var(--radius);
  border: 1px solid var(--line);
  background: rgba(255, 255, 255, 0.015);
  font-size: 0.8125rem;
  line-height: 1.6;
  color: var(--muted-2);
}
.footer-bottom {
  margin-top: 28px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 16px;
  flex-wrap: wrap;
  font-size: 0.8125rem;
  color: var(--muted-2);
}
.footer-bottom a { color: var(--muted); }
.footer-bottom a:hover { color: var(--amber); }

/* ---------- Sub pages (legal / updates) ---------- */
.page-hero {
  padding: calc(var(--nav-h) + clamp(4rem, 8vw, 7rem)) 0 clamp(2.5rem, 5vw, 4rem);
  border-bottom: 1px solid var(--line);
  background:
    radial-gradient(ellipse 70% 60% at 50% -20%, rgba(255, 122, 0, 0.1), transparent 60%),
    var(--bg-0);
}
.page-hero .h-section { margin-top: 16px; }
.page-hero .lead { margin-top: 16px; max-width: 640px; }
.prose { max-width: 760px; padding-block: clamp(3rem, 6vw, 5rem); }
.prose h2 {
  margin-top: 3rem;
  font-size: 1.45rem;
  letter-spacing: -0.02em;
  display: flex;
  align-items: baseline;
  gap: 14px;
}
.prose h2 .num { color: var(--amber); font-size: 0.95rem; font-weight: 700; }
.prose h2:first-child { margin-top: 0; }
.prose h3 { margin-top: 1.8rem; font-size: 1.1rem; }
.prose p, .prose li { color: var(--muted); font-size: 0.9875rem; line-height: 1.7; }
.prose p { margin-top: 1rem; }
.prose ul { margin-top: 1rem; padding-left: 1.2rem; list-style: disc; }
.prose li + li { margin-top: 0.45rem; }
.prose li::marker { color: var(--orange); }
.prose a { color: var(--amber); text-decoration: underline; text-underline-offset: 3px; }
.prose strong { color: var(--text); }

.update-entry {
  padding: 30px 0;
  border-bottom: 1px solid var(--line);
  display: grid;
  grid-template-columns: 170px 1fr;
  gap: 28px;
}
.update-entry:first-of-type { border-top: 1px solid var(--line); }
.update-date { font-size: 0.875rem; color: var(--muted-2); font-weight: 600; padding-top: 4px; }
.update-entry h2 { font-size: 1.3rem; letter-spacing: -0.015em; margin: 0; display: block; }
.update-entry .tag {
  display: inline-block;
  margin-bottom: 10px;
  padding: 4px 12px;
  border-radius: 999px;
  background: rgba(255, 122, 0, 0.1);
  border: 1px solid rgba(255, 180, 84, 0.3);
  color: var(--amber);
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

/* ---------- 404 ---------- */
.nf {
  min-height: 100svh;
  display: grid;
  place-items: center;
  text-align: center;
  padding: 6rem 6vw;
}
.nf .code {
  font-size: clamp(5rem, 18vw, 10rem);
  font-weight: 850;
  letter-spacing: -0.05em;
  background: var(--grad-accent);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
  line-height: 1;
}
.nf p { margin-top: 14px; color: var(--muted); }
.nf .btn { margin-top: 32px; }

/* ---------- Reveal animations (JS-gated) ---------- */
html.js-anim [data-reveal] {
  opacity: 0;
  transform: translateY(34px);
  transition: opacity 0.9s var(--ease-out), transform 0.9s var(--ease-out);
  transition-delay: var(--reveal-delay, 0s);
}
html.js-anim [data-reveal].revealed {
  opacity: 1;
  transform: translateY(0);
}

/* ---------- Responsive ---------- */
@media (max-width: 1080px) {
  .feat-groups { grid-template-columns: repeat(2, 1fr); }
  .chip--tl { left: 0; }
  .chip--tr { right: 0; }
  .chip--bl { left: 2%; }
}

@media (max-width: 920px) {
  .nav-links { display: none; }
  .nav-cta-desktop { display: none; }
  .menu-btn { display: inline-flex; margin-left: auto; }
  .intro-grid, .remote-grid, .showcase-grid, .bigscreen-grid, .feat-hero {
    grid-template-columns: 1fr;
  }
  .intro-sticky { position: static; }
  .remote-visual { order: -1; margin-bottom: 1rem; }
  .show-chapters { gap: 3rem; padding-block: 0; }
  .show-visual, .show-visual.show-live { position: relative; top: 0; margin-bottom: 2.5rem; }
  .show-chapter { max-width: none; }
  .footer-grid { grid-template-columns: 1fr 1fr; }
  .chip { display: none; }
  .chip.chip--static {
    display: inline-flex;
    position: static;
    transform: none !important;
  }
}

@media (max-width: 640px) {
  body { font-size: 1rem; }
  .proof-row, .how-steps, .legal-grid, .price-cards { grid-template-columns: 1fr; }
  .feat-groups { grid-template-columns: 1fr; }
  .plat-row { grid-template-columns: 1fr; gap: 10px; padding: 22px 4px; }
  .hero-actions .btn { width: 100%; max-width: 340px; }
  .remote-tablet { display: none; }
  .update-entry { grid-template-columns: 1fr; gap: 10px; }
  .gal-item { width: 86vw; }
  .footer-bottom { justify-content: center; text-align: center; }
}

/* ---------- Reduced motion ---------- */
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
  }
  html.js-anim [data-reveal] { opacity: 1; transform: none; }
  .scroll-cue span:last-child { animation: none; }
  .show-slide { position: relative; opacity: 1; transform: none; }
  .show-slide + .show-slide { margin-top: 1rem; }
  .show-chapter { opacity: 1; }
  .show-visual { position: relative; top: 0; }
}
