:root {
  --bg: #070a12;
  --bg-2: #0b1020;
  --surface: #101625;
  --elevated: #161e31;
  --border: #26324a;
  --primary: #4f7cff;
  --violet: #8b5cf6;
  --cyan: #22d3ee;
  --success: #22c55e;
  --warning: #f59e0b;
  --danger: #ef4444;
  --text: #f8fafc;
  --secondary: #cbd5e1;
  --muted: #64748b;
  --gradient: linear-gradient(135deg, #4f7cff 0%, #8b5cf6 50%, #22d3ee 100%);
  color-scheme: dark;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  min-width: 320px;
  margin: 0;
  overflow-x: hidden;
  background:
    linear-gradient(rgba(7, 10, 18, 0.84), rgba(7, 10, 18, 0.92)),
    url("/resources/backgrounds/png/premium_mesh_2400x1600.png") center top / cover fixed no-repeat,
    radial-gradient(circle at 30% 10%, rgba(79, 124, 255, 0.16), transparent 34rem),
    radial-gradient(circle at 86% 22%, rgba(34, 211, 238, 0.12), transparent 30rem),
    linear-gradient(180deg, var(--bg), #050812 72%, var(--bg));
  color: var(--text);
  font-family: Inter, Roboto, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  line-height: 1.5;
}

a { color: inherit; text-decoration: none; }
img { display: block; max-width: 100%; }
button, input, textarea, select { font: inherit; }
button { cursor: pointer; }

.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
}

.animated-background {
  position: fixed;
  inset: 0;
  z-index: -1;
  overflow: hidden;
  background: url("/resources/backgrounds/png/premium_mesh_1920x1080.png") center / cover no-repeat;
  opacity: 0.5;
  pointer-events: none;
}

.mesh {
  position: absolute;
  width: 72vw;
  height: 72vw;
  filter: blur(70px);
  opacity: 0.22;
  transform: translateZ(0);
  animation: mesh-drift 18s ease-in-out infinite alternate;
}
.mesh-a {
  top: -28vw;
  left: -22vw;
  background: conic-gradient(from 120deg, rgba(79,124,255,0.55), rgba(139,92,246,0.22), transparent, rgba(34,211,238,0.35));
}
.mesh-b {
  right: -30vw;
  bottom: -26vw;
  background: conic-gradient(from 260deg, rgba(34,211,238,0.42), transparent, rgba(139,92,246,0.32), rgba(79,124,255,0.28));
  animation-delay: -7s;
}

.wave-line {
  position: absolute;
  left: 8vw;
  right: 8vw;
  height: 1px;
  background: linear-gradient(90deg, transparent, rgba(34, 211, 238, 0.36), rgba(139, 92, 246, 0.28), transparent);
  opacity: 0.45;
  animation: wave-slide 9s linear infinite;
}
.wave-a { top: 28vh; }
.wave-b { top: 62vh; animation-delay: -4s; }

.marketing-nav {
  position: sticky;
  top: 0;
  z-index: 50;
  display: grid;
  grid-template-columns: auto 1fr auto;
  gap: 24px;
  align-items: center;
  min-height: 76px;
  padding: 14px clamp(18px, 4vw, 56px);
  border-bottom: 1px solid transparent;
  background: rgba(7, 10, 18, 0.54);
  backdrop-filter: blur(18px);
  transition: background 220ms ease, border-color 220ms ease, box-shadow 220ms ease;
}
.marketing-nav.is-scrolled {
  border-color: rgba(255, 255, 255, 0.08);
  background: rgba(7, 10, 18, 0.86);
  box-shadow: 0 18px 60px rgba(0, 0, 0, 0.32);
}

.brand-lockup {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  min-height: 44px;
  font-weight: 800;
}
.brand-lockup img {
  width: 42px;
  height: 42px;
  border-radius: 12px;
  box-shadow: 0 16px 36px rgba(79, 124, 255, 0.24);
}
.brand-lockup span { display: grid; line-height: 1.05; }
.brand-lockup small { color: var(--muted); font-size: 12px; font-weight: 700; }

.nav-links {
  display: flex;
  justify-content: center;
  gap: 8px;
}
.nav-links a,
.nav-link-button {
  min-height: 42px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 999px;
  padding: 0 14px;
  color: var(--secondary);
  transition: color 180ms ease, background 180ms ease;
}
.nav-button {
  border: 0;
  font: inherit;
  cursor: pointer;
  background: transparent;
}
.nav-button[hidden],
[hidden] {
  display: none !important;
}
.nav-links a:hover,
.nav-links a:focus-visible,
.nav-links a.active,
.nav-link-button:hover,
.nav-link-button:focus-visible {
  color: var(--text);
  background: rgba(255, 255, 255, 0.07);
}
.nav-actions { display: flex; align-items: center; gap: 10px; }

.mobile-menu-button {
  display: none;
  width: 44px;
  height: 44px;
  border: 1px solid rgba(255,255,255,0.1);
  border-radius: 14px;
  background: rgba(16, 22, 37, 0.8);
}
.mobile-menu-button span:not(.sr-only) {
  display: block;
  width: 18px;
  height: 2px;
  margin: 4px auto;
  border-radius: 99px;
  background: var(--text);
}

.button {
  position: relative;
  max-width: 100%;
  min-height: 52px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  overflow: hidden;
  border: 0;
  border-radius: 16px;
  padding: 0 20px;
  background: var(--gradient);
  color: white;
  font-weight: 850;
  text-align: center;
  white-space: normal;
  box-shadow: 0 18px 48px rgba(79, 124, 255, 0.28);
  transition: transform 180ms ease, box-shadow 180ms ease, filter 180ms ease;
}
.button:hover,
.button:focus-visible {
  transform: translateY(-2px);
  box-shadow: 0 24px 70px rgba(79, 124, 255, 0.36);
}
.button-sm { min-height: 44px; padding: 0 16px; }
.button-secondary {
  border: 1px solid rgba(255,255,255,0.1);
  background: rgba(22, 30, 49, 0.76);
  box-shadow: none;
}
.shimmer::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(110deg, transparent 0%, rgba(255,255,255,0.28) 42%, transparent 68%);
  transform: translateX(-120%);
  transition: transform 560ms ease;
}
.shimmer:hover::after,
.shimmer:focus-visible::after {
  transform: translateX(120%);
}

button:focus-visible,
a:focus-visible,
input:focus-visible,
textarea:focus-visible,
select:focus-visible,
summary:focus-visible {
  outline: 3px solid rgba(34, 211, 238, 0.76);
  outline-offset: 3px;
}

.page {
  display: none;
  min-height: 74vh;
  padding: clamp(30px, 5vw, 72px);
  animation: page-in 300ms ease both;
}
.page.active { display: block; }

.hero-section {
  min-height: auto;
  padding: clamp(34px, 7vw, 96px) 0 clamp(44px, 8vw, 110px);
  display: grid;
  grid-template-columns: minmax(0, 0.95fr) minmax(320px, 0.9fr);
  gap: clamp(30px, 5vw, 72px);
  align-items: center;
}
.hero-copy { min-width: 0; }
.eyebrow {
  margin: 0 0 14px;
  color: var(--cyan);
  font-size: 13px;
  font-weight: 850;
  letter-spacing: 0;
  text-transform: uppercase;
}
h1, h2, h3, p { margin-top: 0; }
.hero-copy h1,
.page-hero h1 {
  max-width: 980px;
  margin-bottom: 22px;
  font-size: clamp(42px, 7.2vw, 88px);
  line-height: 0.98;
  letter-spacing: 0;
}
.hero-subtitle,
.page-hero p {
  max-width: 760px;
  color: var(--secondary);
  font-size: clamp(18px, 2vw, 24px);
}
.trust-line {
  display: inline-flex;
  min-height: 36px;
  align-items: center;
  border: 1px solid rgba(34, 211, 238, 0.18);
  border-radius: 999px;
  padding: 7px 13px;
  background: rgba(34, 211, 238, 0.08);
  color: #c8f6ff;
  font-size: 14px;
  font-weight: 800;
}
.hero-actions { display: flex; flex-wrap: wrap; gap: 14px; margin: 28px 0; }
.trust-badges {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}
.trust-badges span,
.badge {
  min-height: 34px;
  display: inline-flex;
  align-items: center;
  border: 1px solid rgba(255,255,255,0.09);
  border-radius: 999px;
  padding: 6px 12px;
  background: rgba(16, 22, 37, 0.66);
  color: var(--secondary);
  font-size: 13px;
  font-weight: 800;
}

.hero-visual {
  min-width: 0;
  perspective: 1200px;
}
.resource-hero-frame,
.section-art,
.page-banner,
.auth-preview-image,
.portal-preview {
  margin: 0;
}
.hero-product-preview,
.platform-preview,
.activation-flow,
.reseller-flow-panel {
  border: 1px solid rgba(255,255,255,0.1);
  background: linear-gradient(180deg, rgba(15, 23, 42, 0.9), rgba(6, 10, 22, 0.82));
  box-shadow: 0 34px 100px rgba(0,0,0,0.36), 0 18px 70px rgba(34,211,238,0.08);
}
.hero-product-preview {
  position: relative;
  isolation: isolate;
  display: grid;
  gap: 16px;
  width: min(100%, 620px);
  margin-left: auto;
  border-radius: 30px;
  padding: clamp(18px, 3vw, 28px);
  overflow: hidden;
}
.hero-product-preview::before {
  content: "";
  position: absolute;
  inset: -28% auto auto -24%;
  width: 56%;
  aspect-ratio: 1;
  border-radius: 999px;
  background: radial-gradient(circle, rgba(34, 211, 238, 0.24), transparent 66%);
  pointer-events: none;
}
.preview-topline,
.preview-hero-row,
.preview-footer {
  position: relative;
  z-index: 1;
  display: flex;
  align-items: center;
  gap: 12px;
}
.preview-topline img {
  width: 56px;
  height: 56px;
  border-radius: 16px;
  background: rgba(79,124,255,0.12);
  box-shadow: 0 18px 40px rgba(79,124,255,0.22);
}
.preview-topline div {
  display: grid;
  min-width: 0;
  line-height: 1.15;
}
.preview-topline b { font-size: clamp(20px, 3vw, 28px); }
.preview-topline span,
.preview-footer span,
.preview-kicker {
  color: var(--secondary);
  font-size: 13px;
  font-weight: 800;
}
.preview-topline strong {
  margin-left: auto;
  border: 1px solid rgba(34,211,238,0.24);
  border-radius: 999px;
  padding: 6px 10px;
  color: var(--cyan);
  font-size: 12px;
}
.preview-screen {
  position: relative;
  z-index: 1;
  display: grid;
  gap: 18px;
  border: 1px solid rgba(79,124,255,0.2);
  border-radius: 24px;
  padding: clamp(16px, 3vw, 24px);
  background: rgba(3, 7, 18, 0.52);
}
.preview-hero-row {
  justify-content: space-between;
}
.preview-hero-row div {
  display: grid;
  min-width: 0;
  gap: 4px;
}
.preview-hero-row b {
  font-size: clamp(18px, 3vw, 24px);
  line-height: 1.15;
}
.preview-posters {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 14px;
}
.preview-posters span,
.preview-channel-row span {
  border: 1px solid rgba(255,255,255,0.08);
  background: linear-gradient(135deg, rgba(79,124,255,0.95), rgba(34,211,238,0.7));
}
.preview-posters span {
  min-height: clamp(82px, 12vw, 124px);
  border-radius: 18px;
}
.preview-posters span:nth-child(2) { background: linear-gradient(135deg, rgba(139,92,246,0.95), rgba(79,124,255,0.72)); }
.preview-posters span:nth-child(3) { background: linear-gradient(135deg, rgba(34,211,238,0.9), rgba(34,197,94,0.68)); }
.preview-channel-row {
  display: grid;
  grid-template-columns: 1fr repeat(4, minmax(42px, 0.42fr));
  gap: 12px;
  align-items: center;
}
.preview-channel-row b {
  min-width: 0;
  font-size: 18px;
}
.preview-channel-row span {
  height: 48px;
  border-radius: 14px;
  background: rgba(255,255,255,0.06);
}
.preview-footer {
  flex-wrap: wrap;
}
.preview-footer span {
  border: 1px solid rgba(255,255,255,0.08);
  border-radius: 999px;
  padding: 7px 10px;
  background: rgba(255,255,255,0.04);
}
.resource-hero-frame {
  position: relative;
  isolation: isolate;
  border: 1px solid rgba(255,255,255,0.1);
  border-radius: 34px;
  padding: 10px;
  background: linear-gradient(180deg, rgba(22,30,49,0.82), rgba(7,10,18,0.72));
  box-shadow: 0 38px 120px rgba(0,0,0,0.44), 0 24px 80px rgba(79,124,255,0.14);
  overflow: hidden;
}
.resource-hero-frame img:not(.hero-wave) {
  width: 100%;
  border-radius: 26px;
  object-fit: cover;
  aspect-ratio: 16 / 9;
}
.hero-wave {
  position: absolute;
  left: 8%;
  right: 8%;
  bottom: 4%;
  z-index: 2;
  width: 84%;
  opacity: 0.82;
  filter: drop-shadow(0 0 24px rgba(34,211,238,0.4));
  animation: wave-breathe 4.8s ease-in-out infinite;
}
.device-stage {
  position: relative;
  min-height: 620px;
}
.tv-mockup,
.phone-mockup,
.float-card,
.side-device {
  border: 1px solid rgba(255,255,255,0.1);
  background: linear-gradient(180deg, rgba(22, 30, 49, 0.88), rgba(10, 15, 30, 0.88));
  backdrop-filter: blur(20px);
  box-shadow: 0 36px 120px rgba(0, 0, 0, 0.42), inset 0 1px 0 rgba(255,255,255,0.06);
}
.tv-mockup {
  position: absolute;
  inset: 34px 2vw auto 0;
  min-height: 430px;
  border-radius: 28px;
  padding: 22px;
}
.mockup-topbar { display: flex; gap: 7px; margin-bottom: 22px; }
.mockup-topbar span {
  width: 10px;
  height: 10px;
  border-radius: 999px;
  background: rgba(255,255,255,0.24);
}
.tv-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  border: 1px solid rgba(79,124,255,0.2);
  border-radius: 22px;
  padding: 18px;
  background: linear-gradient(135deg, rgba(79,124,255,0.22), rgba(139,92,246,0.14));
}
.tv-row small,
.float-card small,
.phone-mockup p,
.side-device p {
  display: block;
  color: var(--muted);
}
.tv-row strong { font-size: 24px; }
.play-pulse {
  width: 54px;
  height: 54px;
  border-radius: 18px;
  background: var(--gradient);
  box-shadow: 0 0 34px rgba(79,124,255,0.45);
  animation: pulse-glow 2.8s ease-in-out infinite;
}
.content-row {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 12px;
  margin: 20px 0;
}
.content-row span {
  min-height: 110px;
  border-radius: 18px;
  background: linear-gradient(145deg, rgba(255,255,255,0.09), rgba(34,211,238,0.07));
}
.mini-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 12px;
}
.mini-grid article {
  border: 1px solid rgba(255,255,255,0.08);
  border-radius: 18px;
  padding: 14px;
  background: rgba(11, 16, 32, 0.72);
}
.mini-grid small { display: block; color: var(--muted); margin-top: 4px; }

.phone-mockup {
  position: absolute;
  right: 0;
  bottom: 42px;
  width: min(260px, 46vw);
  min-height: 390px;
  border-radius: 34px;
  padding: 28px 18px;
}
.phone-speaker {
  width: 64px;
  height: 6px;
  margin: 0 auto 34px;
  border-radius: 999px;
  background: rgba(255,255,255,0.24);
}
.input-skeleton {
  height: 50px;
  border-radius: 15px;
  margin: 14px 0;
  background: rgba(255,255,255,0.08);
}
.input-skeleton.short { width: 70%; }
.mock-button {
  width: 100%;
  min-height: 48px;
  border: 0;
  border-radius: 15px;
  background: var(--gradient);
  color: white;
  font-weight: 850;
}
.float-card {
  position: absolute;
  display: flex;
  align-items: center;
  gap: 12px;
  border-radius: 20px;
  padding: 14px 16px;
}
.device-card { left: 24px; bottom: 78px; }
.billing-card { right: 54px; top: 0; }
.icon-dot {
  width: 16px;
  height: 16px;
  border-radius: 999px;
}
.icon-dot.cyan { background: var(--cyan); box-shadow: 0 0 24px rgba(34,211,238,0.65); }
.icon-dot.violet { background: var(--violet); box-shadow: 0 0 24px rgba(139,92,246,0.65); }

.floating { animation: float 7s ease-in-out infinite; }
.floating-slow { animation: float 9s ease-in-out infinite reverse; }

.section,
.page-hero {
  max-width: 1240px;
  margin: 0 auto clamp(56px, 8vw, 112px);
}
.section-heading {
  max-width: 820px;
  margin-bottom: 28px;
}
.inline-heading {
  display: flex;
  max-width: none;
  align-items: end;
  justify-content: space-between;
  gap: 18px;
}
.section-heading h2,
.split-panel h2,
.auth-side-preview h1 {
  font-size: clamp(30px, 4.4vw, 58px);
  line-height: 1.04;
  letter-spacing: 0;
}
.muted { color: var(--secondary); }

.feature-grid,
.pricing-grid,
.download-grid,
.reseller-cards,
.contact-grid,
.metric-grid,
.economics-grid,
.how-grid,
.device-workbench {
  display: grid;
  gap: 18px;
}
.feature-grid.compact { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.feature-grid.full-grid,
.reseller-cards { grid-template-columns: repeat(4, minmax(0, 1fr)); }
.pricing-grid { grid-template-columns: repeat(4, minmax(0, 1fr)); }
.download-grid,
.contact-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.metric-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.economics-grid,
.how-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.device-workbench { grid-template-columns: minmax(320px, 0.9fr) minmax(280px, 1.1fr); align-items: stretch; margin-bottom: 18px; }
.compact-metrics { grid-template-columns: repeat(2, minmax(0, 1fr)); }

.feature-card,
.glass-card,
.price-card,
.metric-card,
.premium-form,
.auth-card,
.warning-card,
.legal-banner {
  border: 1px solid rgba(255,255,255,0.09);
  border-radius: 24px;
  background: rgba(16, 22, 37, 0.72);
  backdrop-filter: blur(14px);
  box-shadow: inset 0 1px 0 rgba(255,255,255,0.05);
}
.feature-card,
.glass-card,
.price-card,
.metric-card {
  min-height: 190px;
  padding: 22px;
  transition: transform 220ms ease, border-color 220ms ease, box-shadow 220ms ease, background 220ms ease;
}
.feature-card:hover,
.price-card:hover,
.glass-card:hover,
.metric-card:hover {
  transform: translateY(-6px);
  border-color: rgba(79, 124, 255, 0.46);
  box-shadow: 0 20px 60px rgba(79, 124, 255, 0.18);
  background: rgba(22, 30, 49, 0.82);
}
.feature-card span {
  display: inline-flex;
  min-width: 38px;
  min-height: 38px;
  align-items: center;
  justify-content: center;
  border-radius: 14px;
  margin-bottom: 18px;
  background: rgba(79,124,255,0.12);
  color: var(--cyan);
  font-weight: 900;
}
.feature-icon {
  width: 42px;
  height: 42px;
  border: 1px solid rgba(79,124,255,0.24);
  border-radius: 15px;
  margin-bottom: 18px;
  padding: 9px;
  background: rgba(79,124,255,0.12);
  box-shadow: inset 0 1px 0 rgba(255,255,255,0.06), 0 14px 32px rgba(79,124,255,0.16);
}
.feature-card h3,
.price-card h3,
.glass-card h3 { margin-bottom: 8px; font-size: 22px; }
.feature-card p,
.price-card p,
.glass-card p,
.metric-card p { color: var(--secondary); }

.split-panel {
  display: grid;
  grid-template-columns: 0.8fr 1.2fr;
  gap: 26px;
  align-items: center;
}
.comparison {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 16px;
}
.comparison article {
  border: 1px solid rgba(255,255,255,0.09);
  border-radius: 24px;
  padding: 22px;
  background: rgba(16,22,37,0.76);
}
.comparison ul {
  list-style: none;
  padding: 0;
  margin: 0;
  display: grid;
  gap: 10px;
  color: var(--secondary);
}
.comparison li {
  position: relative;
  padding-left: 28px;
}
.good-list li::before,
.bad-list li::before {
  position: absolute;
  left: 0;
  top: 0;
  font-weight: 900;
}
.good-list li::before { content: "✓"; color: var(--success); }
.bad-list li::before { content: "×"; color: var(--danger); }

.price-card {
  position: relative;
  overflow: hidden;
}
.price-card::before {
  content: "";
  position: absolute;
  inset: 0 0 auto;
  height: 4px;
  background: var(--accent, var(--gradient));
}
.accent-cyan { --accent: linear-gradient(90deg, var(--cyan), var(--primary)); }
.accent-blue { --accent: linear-gradient(90deg, var(--primary), #6aa2ff); }
.accent-violet { --accent: linear-gradient(90deg, var(--violet), var(--primary)); }
.accent-dark { --accent: linear-gradient(90deg, var(--border), var(--muted)); }
.price {
  margin: 18px 0;
  color: var(--text);
  font-size: clamp(24px, 3vw, 34px);
  font-weight: 950;
}
.highlighted {
  border-color: rgba(139, 92, 246, 0.42);
  box-shadow: 0 0 0 1px rgba(139,92,246,0.1), 0 24px 80px rgba(139,92,246,0.18);
}

.reseller-economics {
  max-width: 1240px;
  margin: 28px auto;
}
.economics-grid .metric-card {
  min-height: 160px;
  border-color: rgba(34, 211, 238, 0.18);
  background: linear-gradient(180deg, rgba(16,22,37,0.86), rgba(7,10,18,0.78));
}
.economics-grid .metric-card span {
  color: var(--cyan);
}
.qr-approval-card {
  min-height: auto;
}
.platform-preview,
.activation-flow,
.reseller-flow-panel {
  max-width: 1240px;
  margin: 28px auto clamp(28px, 5vw, 62px);
  border-radius: 26px;
  padding: clamp(18px, 3vw, 26px);
}
.platform-preview {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 14px;
}
.platform-preview article,
.activation-flow article,
.reseller-flow-panel article {
  min-width: 0;
  border: 1px solid rgba(255,255,255,0.08);
  border-radius: 18px;
  padding: 16px;
  background: rgba(255,255,255,0.045);
}
.platform-preview span {
  display: inline-flex;
  min-height: 30px;
  align-items: center;
  border-radius: 999px;
  margin-bottom: 14px;
  padding: 4px 10px;
  background: rgba(34,211,238,0.1);
  color: var(--cyan);
  font-size: 12px;
  font-weight: 900;
}
.platform-preview b,
.activation-flow b,
.reseller-flow-panel b {
  display: block;
  margin-bottom: 5px;
  font-size: 18px;
}
.platform-preview small,
.activation-flow span,
.reseller-flow-panel span {
  color: var(--secondary);
}
.activation-flow,
.reseller-flow-panel {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 14px;
}
.reseller-flow-panel {
  grid-template-columns: repeat(4, minmax(0, 1fr));
}
.activation-flow article {
  position: relative;
}
.activation-flow article:not(:last-child)::after {
  content: "";
  position: absolute;
  top: 50%;
  right: -15px;
  width: 16px;
  height: 2px;
  background: linear-gradient(90deg, rgba(34,211,238,0.58), transparent);
}
.download-panel {
  display: grid;
  grid-template-columns: minmax(260px, 0.82fr) minmax(0, 1.18fr);
  gap: 18px;
  max-width: 1240px;
  margin: 28px auto clamp(24px, 4vw, 44px);
  border: 1px solid rgba(255,255,255,0.1);
  border-radius: 28px;
  padding: clamp(18px, 3vw, 28px);
  background:
    linear-gradient(135deg, rgba(79,124,255,0.12), transparent 48%),
    linear-gradient(180deg, rgba(15, 23, 42, 0.9), rgba(6, 10, 22, 0.82));
  box-shadow: 0 30px 100px rgba(0,0,0,0.34);
}
.download-brand-preview,
.download-steps,
.download-steps article {
  min-width: 0;
}
.download-brand-preview {
  display: flex;
  align-items: center;
  gap: 16px;
  border: 1px solid rgba(255,255,255,0.08);
  border-radius: 22px;
  padding: 18px;
  background: rgba(255,255,255,0.045);
}
.download-brand-preview img {
  width: clamp(70px, 10vw, 112px);
  height: clamp(70px, 10vw, 112px);
  border-radius: 24px;
  background: rgba(79,124,255,0.1);
  box-shadow: 0 20px 52px rgba(79,124,255,0.22);
}
.download-brand-preview div {
  display: grid;
  gap: 6px;
}
.download-brand-preview b {
  font-size: clamp(28px, 4vw, 44px);
  line-height: 1;
}
.download-brand-preview span,
.download-steps small {
  color: var(--secondary);
}
.download-steps {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 14px;
}
.download-steps article {
  border: 1px solid rgba(255,255,255,0.08);
  border-radius: 18px;
  padding: 16px;
  background: rgba(255,255,255,0.045);
}
.download-steps span {
  display: inline-flex;
  width: 32px;
  height: 32px;
  align-items: center;
  justify-content: center;
  border-radius: 999px;
  margin-bottom: 16px;
  background: var(--gradient);
  color: white;
  font-weight: 900;
}
.download-steps b {
  display: block;
  margin-bottom: 5px;
  font-size: 18px;
}
.platform-download-grid {
  max-width: 1240px;
  margin: 0 auto clamp(22px, 4vw, 42px);
}
.download-card {
  display: grid;
  align-content: start;
  gap: 10px;
}
.download-card .badge {
  width: max-content;
}
.download-card .button {
  width: max-content;
  min-width: 144px;
  margin-top: 6px;
}

.legal-banner,
.warning-card {
  padding: 16px 18px;
  color: var(--secondary);
}
.warning-card {
  border-color: rgba(245, 158, 11, 0.42);
  color: #fde68a;
}

.faq-list {
  display: grid;
  gap: 12px;
}

.section-art,
.page-banner {
  position: relative;
  max-width: 1240px;
  margin: 28px auto clamp(28px, 5vw, 62px);
  border: 1px solid rgba(255,255,255,0.1);
  border-radius: 28px;
  padding: 8px;
  background: rgba(16,22,37,0.62);
  box-shadow: 0 30px 100px rgba(0,0,0,0.36), 0 18px 70px rgba(79,124,255,0.12);
  overflow: hidden;
}
.section-art img,
.page-banner img,
.auth-preview-image img,
.portal-preview img,
.split-media-card img {
  width: 100%;
  height: auto;
  border-radius: 22px;
  object-fit: contain;
}
.section-art-slim img,
.page-banner img {
  aspect-ratio: 16 / 6;
}
.tv-banner img {
  aspect-ratio: 16 / 9;
}
.section-art img {
  aspect-ratio: 16 / 9;
}
.auth-preview-image {
  border: 1px solid rgba(255,255,255,0.09);
  border-radius: 26px;
  padding: 7px;
  background: rgba(16,22,37,0.62);
  box-shadow: 0 24px 80px rgba(0,0,0,0.3);
  overflow: hidden;
}
.portal-preview {
  margin-top: 22px;
  border: 1px solid rgba(255,255,255,0.09);
  border-radius: 24px;
  padding: 7px;
  background: rgba(16,22,37,0.62);
  overflow: hidden;
}
.split-media-card {
  display: grid;
  grid-template-columns: minmax(0, 0.72fr) minmax(220px, 0.28fr);
  align-items: center;
  gap: 18px;
  min-height: auto;
}
.split-media-card img {
  max-height: 220px;
}
details {
  border: 1px solid rgba(255,255,255,0.09);
  border-radius: 18px;
  background: rgba(16,22,37,0.72);
  overflow: hidden;
}
summary {
  min-height: 58px;
  display: flex;
  align-items: center;
  cursor: pointer;
  padding: 0 18px;
  font-weight: 850;
}
details p {
  margin: 0;
  padding: 0 18px 18px;
  color: var(--secondary);
  animation: details-in 180ms ease;
}

.premium-form {
  max-width: 900px;
  margin: 30px auto 0;
  padding: clamp(20px, 4vw, 34px);
}
.form-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 14px;
}
label {
  display: grid;
  gap: 8px;
  color: var(--secondary);
  font-weight: 750;
}
input,
textarea,
select {
  width: 100%;
  min-height: 52px;
  border: 1px solid rgba(255,255,255,0.1);
  border-radius: 14px;
  background: rgba(7, 10, 18, 0.74);
  color: var(--text);
  padding: 0 14px;
  transition: border-color 180ms ease, box-shadow 180ms ease, background 180ms ease;
}
textarea {
  min-height: 112px;
  padding-top: 13px;
  resize: vertical;
}
input:focus,
textarea:focus,
select:focus {
  border-color: rgba(79, 124, 255, 0.76);
  background: rgba(11, 16, 32, 0.94);
  box-shadow: 0 0 0 5px rgba(79,124,255,0.13);
}
.check {
  display: flex;
  align-items: flex-start;
  gap: 11px;
  min-width: 0;
  line-height: 1.45;
  overflow-wrap: anywhere;
}
.check input {
  flex: 0 0 18px;
  width: 18px;
  min-height: 18px;
  margin-top: 3px;
  accent-color: var(--primary);
}
.form-status {
  min-height: 26px;
  color: var(--cyan);
}
.form-status[data-type="error"] { color: var(--danger); }
.form-status[data-type="success"] { color: var(--success); }

.auth-page {
  min-height: calc(100vh - 76px);
  place-items: center;
}
.auth-page.active { display: grid; }
.auth-layout {
  width: min(1120px, 100%);
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(360px, 440px);
  gap: clamp(26px, 6vw, 76px);
  align-items: center;
}
.auth-side-preview {
  display: grid;
  gap: 20px;
}
.auth-side-preview p,
.auth-card p { color: var(--secondary); }
.auth-brand { margin-bottom: 16px; }
.side-device {
  max-width: 430px;
  border-radius: 28px;
  padding: 20px;
}
.side-screen {
  min-height: 220px;
  border-radius: 22px;
  margin-bottom: 16px;
  padding: 18px;
  background:
    linear-gradient(135deg, rgba(79,124,255,0.26), rgba(139,92,246,0.12)),
    rgba(7,10,18,0.82);
}
.side-screen span {
  display: block;
  height: 34px;
  border-radius: 12px;
  margin-bottom: 12px;
  background: rgba(255,255,255,0.1);
}
.auth-card {
  width: min(440px, 100%);
  border-radius: 28px;
  padding: clamp(22px, 4vw, 34px);
  box-shadow: 0 30px 100px rgba(0,0,0,0.45);
}
.compact-auth {
  margin-inline: auto;
}
.auth-kicker {
  display: inline-flex;
  min-height: 32px;
  align-items: center;
  border-radius: 999px;
  margin-bottom: 14px;
  padding: 5px 11px;
  background: rgba(34,211,238,0.1);
  color: var(--cyan);
  font-size: 13px;
  font-weight: 850;
}
.auth-card h2,
.auth-card h1 {
  margin-bottom: 8px;
  font-size: clamp(30px, 4vw, 44px);
  line-height: 1.04;
}
.auth-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
  margin: 2px 0 8px;
}
.auth-row a,
.auth-link a { color: var(--cyan); font-weight: 850; }
.password-wrap {
  position: relative;
}
.password-wrap input {
  padding-right: 74px;
}
.toggle-password {
  position: absolute;
  top: 7px;
  right: 7px;
  min-height: 38px;
  border: 0;
  border-radius: 11px;
  padding: 0 11px;
  background: rgba(255,255,255,0.07);
  color: var(--secondary);
}
.auth-submit {
  width: 100%;
  margin-top: 8px;
}
.spinner {
  display: none;
  width: 18px;
  height: 18px;
  border: 2px solid rgba(255,255,255,0.35);
  border-top-color: white;
  border-radius: 50%;
  animation: spin 700ms linear infinite;
}
.button.is-loading .spinner,
.auth-submit.is-loading .spinner { display: inline-block; }
.button.is-loading span,
.auth-submit.is-loading span { opacity: 0.75; }
.auth-alert {
  border: 1px solid rgba(239, 68, 68, 0.36);
  border-radius: 14px;
  padding: 12px;
  background: rgba(239, 68, 68, 0.1);
  color: #fecaca;
}
.auth-alert[data-type="success"] {
  border-color: rgba(34, 197, 94, 0.36);
  background: rgba(34,197,94,0.1);
  color: #bbf7d0;
}
.auth-alert[data-type="info"] {
  border-color: rgba(34, 211, 238, 0.36);
  background: rgba(34,211,238,0.1);
  color: #cffafe;
}
.auth-alert.shake-once { animation: shake 280ms ease; }
.field-error {
  min-height: 18px;
  color: #fecaca;
}
.auth-legal {
  border-top: 1px solid rgba(255,255,255,0.08);
  margin-top: 18px;
  padding-top: 16px;
  font-size: 13px;
}
.benefit-list {
  display: grid;
  gap: 12px;
  padding: 0;
  list-style: none;
}
.benefit-list li {
  border: 1px solid rgba(255,255,255,0.09);
  border-radius: 16px;
  padding: 13px 15px;
  background: rgba(16,22,37,0.72);
}

.app-shell {
  grid-template-columns: 270px minmax(0, 1fr);
  gap: 24px;
}
.app-shell.active { display: grid; }
.portal-nav {
  align-self: start;
  position: sticky;
  top: 96px;
  border: 1px solid rgba(255,255,255,0.09);
  border-radius: 22px;
  padding: 18px;
  background: rgba(16,22,37,0.82);
}
.portal-nav a {
  display: block;
  border-radius: 12px;
  padding: 10px 12px;
  color: var(--secondary);
}
.portal-nav a:hover,
.portal-nav a.active {
  background: rgba(255,255,255,0.07);
  color: var(--text);
}
.workspace { min-width: 0; }
.portal-status-badge {
  display: inline-flex;
  max-width: 100%;
  min-height: 38px;
  align-items: center;
  border: 1px solid rgba(245, 158, 11, 0.38);
  border-radius: 999px;
  margin: 0 0 16px;
  padding: 7px 13px;
  background: rgba(245, 158, 11, 0.12);
  color: #fde68a;
  font-size: 14px;
  font-weight: 850;
  overflow-wrap: anywhere;
}
.portal-status-badge[data-type="success"] {
  border-color: rgba(34, 197, 94, 0.38);
  background: rgba(34, 197, 94, 0.12);
  color: #bbf7d0;
}
.portal-status-badge[data-type="info"] {
  border-color: rgba(34, 211, 238, 0.34);
  background: rgba(34, 211, 238, 0.1);
  color: #cffafe;
}
.dashboard-live-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 18px;
  margin-top: 18px;
}
.metric-card span {
  display: block;
  margin-top: 8px;
  font-size: 30px;
  font-weight: 950;
}
.portal-locked-state {
  grid-template-columns: 1fr;
}
.locked-card {
  min-height: auto;
  border-color: rgba(245, 158, 11, 0.34);
  background: rgba(120, 53, 15, 0.18);
}
.locked-card p {
  margin: 8px 0 0;
  color: #fde68a;
}
.auth-referral-banner {
  border: 1px solid rgba(34, 211, 238, 0.32);
  border-radius: 12px;
  padding: 10px 12px;
  background: rgba(34, 211, 238, 0.1);
  color: var(--cyan);
  font-weight: 800;
}
.referral-code-result {
  display: grid;
  gap: 8px;
  border: 1px solid rgba(34, 211, 238, 0.24);
  border-radius: 16px;
  padding: 14px;
  background: rgba(34, 211, 238, 0.08);
}
.referral-code-result small {
  color: var(--secondary);
}
.referral-code-result b {
  width: max-content;
  max-width: 100%;
  border-radius: 12px;
  padding: 9px 12px;
  background: rgba(7, 10, 18, 0.78);
  color: var(--cyan);
  font-family: ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, "Liberation Mono", monospace;
  overflow-wrap: anywhere;
}
.portal-list {
  display: grid;
  gap: 10px;
}
.portal-form {
  display: grid;
  gap: 14px;
}
.portal-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  align-items: center;
}
.portal-list-item {
  display: grid;
  gap: 6px;
  border: 1px solid rgba(255,255,255,0.08);
  border-radius: 16px;
  padding: 14px;
  background: rgba(255,255,255,0.04);
}
.portal-list-item b {
  color: var(--text);
}
.portal-list-item span,
.portal-list-item small {
  color: var(--secondary);
}
.status-pill {
  width: max-content;
  border: 1px solid rgba(34, 211, 238, 0.24);
  border-radius: 999px;
  padding: 4px 9px;
  color: var(--cyan);
  background: rgba(34, 211, 238, 0.08);
  font-size: 12px;
  font-weight: 800;
  text-transform: uppercase;
}
table {
  width: 100%;
  overflow: hidden;
  border-collapse: collapse;
  border: 1px solid rgba(255,255,255,0.09);
  border-radius: 20px;
  background: rgba(16,22,37,0.76);
}
th, td {
  border-bottom: 1px solid rgba(255,255,255,0.07);
  padding: 14px;
  text-align: left;
}
th {
  color: var(--muted);
  font-size: 12px;
  letter-spacing: 0.04em;
  text-transform: uppercase;
}
.table-button {
  min-height: 38px;
  border: 1px solid rgba(255,255,255,0.1);
  border-radius: 12px;
  background: rgba(255,255,255,0.07);
  color: var(--text);
}

.legal-page {
  max-width: 900px;
  margin-inline: auto;
}
.legal-page h1 {
  font-size: clamp(38px, 6vw, 72px);
  line-height: 1;
}

.site-footer {
  display: grid;
  grid-template-columns: 1.4fr repeat(5, minmax(120px, 1fr));
  gap: 24px;
  border-top: 1px solid rgba(255,255,255,0.08);
  padding: clamp(28px, 5vw, 62px);
  background: rgba(5, 8, 18, 0.92);
}
.site-footer p,
.site-footer a { color: var(--secondary); }
.site-footer nav {
  display: grid;
  align-content: start;
  gap: 8px;
}
.site-footer h3 {
  margin: 0 0 6px;
  font-size: 14px;
  color: var(--text);
}

.reveal {
  opacity: 0;
  transform: translateY(18px);
  transition: opacity 520ms ease, transform 520ms ease;
}
.reveal.is-visible {
  opacity: 1;
  transform: translateY(0);
}
.delay-1 { transition-delay: 90ms; }
.delay-2 { transition-delay: 160ms; }

@keyframes mesh-drift {
  from { transform: translate3d(0, 0, 0) rotate(0deg) scale(1); }
  to { transform: translate3d(4vw, 3vh, 0) rotate(18deg) scale(1.08); }
}
@keyframes wave-slide {
  from { transform: translateX(-10vw); opacity: 0.08; }
  50% { opacity: 0.5; }
  to { transform: translateX(10vw); opacity: 0.08; }
}
@keyframes wave-breathe {
  0%, 100% { transform: translateY(0) scaleX(1); opacity: 0.68; }
  50% { transform: translateY(-4px) scaleX(1.03); opacity: 0.96; }
}
@keyframes page-in {
  from { opacity: 0; transform: translateY(8px); }
  to { opacity: 1; transform: translateY(0); }
}
@keyframes float {
  0%, 100% { transform: translate3d(0, 0, 0); }
  50% { transform: translate3d(0, -14px, 0); }
}
@keyframes pulse-glow {
  0%, 100% { transform: scale(1); filter: brightness(1); }
  50% { transform: scale(1.06); filter: brightness(1.18); }
}
@keyframes spin { to { transform: rotate(360deg); } }
@keyframes shake {
  0%, 100% { transform: translateX(0); }
  25% { transform: translateX(-5px); }
  75% { transform: translateX(5px); }
}
@keyframes details-in {
  from { opacity: 0; transform: translateY(-4px); }
  to { opacity: 1; transform: translateY(0); }
}

@media (max-width: 1180px) {
  .feature-grid.full-grid,
  .reseller-cards,
  .pricing-grid,
  .site-footer {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
  .hero-section {
    grid-template-columns: 1fr;
  }
  .device-stage {
    min-height: 560px;
  }
}

@media (max-width: 980px) {
  .marketing-nav {
    grid-template-columns: 1fr auto;
  }
  .mobile-menu-button { display: block; }
  .nav-links,
  .nav-actions {
    grid-column: 1 / -1;
    display: none;
    justify-content: stretch;
  }
  .marketing-nav.is-open .nav-links,
  .marketing-nav.is-open .nav-actions {
    display: grid;
  }
  .nav-links a,
  .nav-link-button,
  .nav-actions .button {
    width: 100%;
  }
  .hero-copy h1,
  .page-hero h1 {
    font-size: clamp(38px, 11vw, 68px);
  }
  .feature-grid.compact,
  .feature-grid.full-grid,
  .reseller-cards,
  .pricing-grid,
  .download-grid,
  .contact-grid,
  .metric-grid,
  .economics-grid,
  .how-grid,
  .platform-preview,
  .activation-flow,
  .reseller-flow-panel,
  .download-panel,
  .download-steps,
  .device-workbench,
  .split-panel,
  .comparison,
  .form-grid,
  .auth-layout,
  .dashboard-live-grid,
  .app-shell.active,
  .site-footer {
    grid-template-columns: 1fr;
  }
  .page {
    padding: 26px 18px 48px;
  }
  .resource-hero-frame,
  .section-art,
  .page-banner {
    border-radius: 22px;
    padding: 6px;
  }
  .resource-hero-frame img:not(.hero-wave),
  .section-art img,
  .page-banner img {
    border-radius: 17px;
  }
  .section-art img,
  .page-banner img {
    aspect-ratio: auto;
  }
  .hero-product-preview {
    width: 100%;
    margin-left: 0;
  }
  .activation-flow article:not(:last-child)::after {
    display: none;
  }
  .download-brand-preview {
    align-items: flex-start;
  }
  .split-media-card {
    grid-template-columns: 1fr;
  }
  .device-stage {
    min-height: 520px;
  }
  .tv-mockup {
    inset: 20px 0 auto;
  }
  .phone-mockup {
    width: 220px;
    min-height: 330px;
  }
  .float-card {
    position: relative;
    left: auto;
    right: auto;
    bottom: auto;
    top: auto;
    margin-top: 10px;
  }
  .auth-side-preview {
    display: none;
  }
  .auth-card {
    width: 100%;
  }
  .portal-nav {
    position: static;
  }
}

@media (max-width: 460px) {
  .hero-actions,
  .trust-badges,
  .auth-row {
    align-items: stretch;
    flex-direction: column;
  }
  .button {
    width: 100%;
  }
  .preview-topline,
  .preview-hero-row,
  .preview-footer {
    align-items: flex-start;
  }
  .preview-channel-row {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
  .preview-channel-row b {
    grid-column: 1 / -1;
  }
  .download-brand-preview {
    flex-direction: column;
  }
  .download-card .button {
    width: 100%;
  }
  .content-row {
    grid-template-columns: repeat(2, 1fr);
  }
  .mini-grid {
    grid-template-columns: 1fr;
  }
  .phone-mockup {
    position: relative;
    width: 100%;
    bottom: auto;
    margin-top: 16px;
  }
  .device-stage {
    min-height: auto;
    display: grid;
    gap: 14px;
  }
  .tv-mockup {
    position: relative;
  }
}

@media (prefers-reduced-motion: reduce) {
  * {
    animation-duration: 0.001ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.001ms !important;
    scroll-behavior: auto !important;
  }
}
