:root {
  --blue: #00BFFF;
  --blue-dim: rgba(0,191,255,0.12);
  --blue-border: rgba(0,191,255,0.2);
  --gold: #FFD700;
  --gold-dim: rgba(255,215,0,0.1);
  --dark: #070b15;
  --dark2: #0b1020;
  --dark3: #111827;
  --text: #dde3ef;
  --muted: #aab4cc;
}

*, *::before, *::after { margin: 0; padding: 0; box-sizing: border-box; }
/* Native scroll-snap everywhere — no JS transform-hijack. A tall
   content-pane can scroll the page itself instead of fighting an inner
   overflow, and a scroll/swipe never has to "wait" for anything. */
html, body { overflow-x: hidden; height: auto; }
html { scroll-snap-type: y proximity; }
body {
  background: var(--dark);
  color: var(--text);
  font-family: 'Inter', system-ui, sans-serif;
  line-height: 1.6;
}

/* ── LOADING SCREEN ── */
/* Shown until the hero's first frame has actually loaded, so there's
   never a flash of an empty/black hero. Hidden via JS (loadIdx callback
   in the boot sequence), with a hard timeout fallback. */
#loading-screen {
  position: fixed; inset: 0; z-index: 500;
  background: var(--dark);
  display: flex; flex-direction: column; align-items: center; justify-content: center;
  gap: 1.5rem;
  opacity: 1; visibility: visible;
  transition: opacity 0.5s ease, visibility 0.5s ease;
}
#loading-screen.hidden { opacity: 0; visibility: hidden; pointer-events: none; }
.loading-logo { font-size: 1.6rem; font-weight: 900; letter-spacing: -0.03em; color: #fff; }
.loading-logo em { color: var(--blue); font-style: normal; }
.loading-bar { width: 160px; height: 3px; background: rgba(255,255,255,0.08); border-radius: 999px; overflow: hidden; }
.loading-bar span {
  display: block; height: 100%; width: 40%;
  background: linear-gradient(90deg, var(--blue), var(--gold));
  border-radius: 999px;
  animation: loading-slide 1.1s ease-in-out infinite;
}
@keyframes loading-slide {
  0%   { transform: translateX(-100%); }
  100% { transform: translateX(350%); }
}

/* ── ACCESSIBILITY ── */
.sr-only {
  position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px;
  overflow: hidden; clip: rect(0,0,0,0); white-space: nowrap; border: 0;
}
.skip-link {
  position: absolute; top: -100%; left: 1rem; z-index: 400;
  background: var(--blue); color: #000; font-weight: 700;
  padding: 0.75rem 1.25rem; border-radius: 0 0 8px 8px;
  text-decoration: none; transition: top 0.2s;
}
.skip-link:focus { top: 0; }

:focus-visible {
  outline: 2px solid var(--blue); outline-offset: 2px;
}

@media (prefers-reduced-motion: reduce) {
  .hero-badge span, #scroll-hint .arr { animation: none !important; }
}

/* ── PROGRESS BAR ── */
#progress-bar {
  position: fixed; top: 0; left: 0;
  height: 2px; width: 0%;
  background: linear-gradient(90deg, var(--blue) 0%, var(--gold) 100%);
  z-index: 300; pointer-events: none;
  transition: width 0.3s linear;
}

/* ── NAV ── */
nav {
  position: fixed; top: 0; left: 0; right: 0; z-index: 200;
  display: flex; align-items: center; justify-content: space-between;
  padding: 0 2rem; height: 64px;
  background: rgba(7,11,21,0.82);
  backdrop-filter: blur(16px);
  border-bottom: 1px solid var(--blue-border);
}
.logo { font-size: 1.4rem; font-weight: 900; letter-spacing: -0.03em; color: #fff; text-decoration: none; cursor: pointer; }
.logo em { color: var(--blue); font-style: normal; }
.nav-links { display: flex; align-items: center; gap: 2rem; }
.nav-links a { color: var(--muted); text-decoration: none; font-size: 0.875rem; font-weight: 500; transition: color 0.2s; cursor: pointer; }
.nav-links a:hover { color: var(--blue); }
.nav-cta { background: var(--blue) !important; color: #000 !important; font-weight: 700 !important; padding: 0.5rem 1.25rem; border-radius: 6px; font-size: 0.85rem !important; }
.nav-cta:hover { opacity: 0.88 !important; }

.lang-switch { display: flex; align-items: center; gap: 0.5rem; padding-right: 0.75rem; margin-right: 0.25rem; border-right: 1px solid rgba(255,255,255,0.12); }
.lang-switch a { color: var(--muted); font-size: 0.78rem; font-weight: 600; letter-spacing: 0.03em; text-decoration: none; transition: color 0.2s; cursor: pointer; }
.lang-switch a:hover { color: var(--blue); }
.lang-switch a.active { color: var(--gold); pointer-events: none; }

/* ── PAGE CONTAINER ── */
#page-container { width: 100%; }

/* ── BASE SECTION ── */
/* height:auto + min-height (not a fixed height) lets a section grow if
   its content needs more than one screen — nothing gets clipped or
   needs its own inner scrollbar. scroll-snap-align turns each section
   into a native snap point. */
.scroll-section {
  position: relative; height: auto; min-height: 100vh; overflow: visible;
  scroll-snap-align: start; scroll-snap-stop: normal;
}

.sticky-wrap {
  /* min-height (not height:100%) because a percentage height can't
     resolve against a parent whose own height is auto — see the
     split-layout comment below for why this matters there. */
  position: relative; min-height: 100vh;
  display: flex; align-items: center;
}

/* ── FULLSCREEN (hero) ── */
.scroll-section.full .sticky-wrap { align-items: center; }

.frame-canvas {
  position: absolute; inset: 0;
  width: 100%; height: 100%;
}

.canvas-gradient { position: absolute; inset: 0; pointer-events: none; }

.section-body {
  position: relative; z-index: 2;
  width: 100%; max-width: 1200px;
  margin: 0 auto; padding: 5rem 3rem 2rem;
}

/* ── SPLIT LAYOUT ── */
/* video is a full-bleed background layer; the content pane overlaps it
   with a wide gradient so the footage dissolves into the dark background
   instead of stopping at a hard edge. Both panes are position:absolute,
   so sticky-wrap has no in-flow children here — its min-height (set on
   the base .sticky-wrap rule above) is what gives top:0/bottom:0 on the
   panes a definite 100vh box to fill; nothing else contributes to it. */

/* video pane — wider than the visible "video side" so it still extends
   under the content pane through the whole fade ramp; otherwise the
   video's own edge arrives before the gradient finishes and the fade
   reads as a hard cut instead of a dissolve. */
.video-pane {
  position: absolute; top: 0; bottom: 0;
  width: 66%; height: 100%;
  z-index: 1; overflow: hidden;
}
.split-left .video-pane  { left: 0; }
.split-right .video-pane { right: 0; }
.video-pane canvas {
  position: absolute; inset: 0;
  width: 100%; height: 100%;
}

/* content pane — overlaps the video's far edge over a wide band, so it
   dissolves gradually instead of cutting off. Alpha-only steps of the
   same dark color (no `transparent` keyword) keep the ramp clean —
   mixing `transparent` with a solid color stop can shift hue mid-fade. */
.content-pane {
  position: absolute; top: 0; bottom: 0;
  width: 60%; height: 100%;
  display: flex; align-items: center;
  overflow-y: auto; z-index: 2;
  scrollbar-width: none; -ms-overflow-style: none; /* Firefox / legacy Edge */
}
.content-pane::-webkit-scrollbar { display: none; } /* Chrome / Safari */
.split-left .content-pane {
  right: 0;
  background: linear-gradient(to right,
    rgba(11,16,32,0)    0%,
    rgba(11,16,32,0.12) 8%,
    rgba(11,16,32,0.28) 16%,
    rgba(11,16,32,0.48) 24%,
    rgba(11,16,32,0.70) 30%,
    rgba(11,16,32,0.90) 35%,
    rgba(11,16,32,1)    40%,
    rgba(11,16,32,1)    100%);
}
.split-right .content-pane {
  left: 0;
  background: linear-gradient(to left,
    rgba(11,16,32,0)    0%,
    rgba(11,16,32,0.12) 8%,
    rgba(11,16,32,0.28) 16%,
    rgba(11,16,32,0.48) 24%,
    rgba(11,16,32,0.70) 30%,
    rgba(11,16,32,0.90) 35%,
    rgba(11,16,32,1)    40%,
    rgba(11,16,32,1)    100%);
}

.split-body {
  padding: 5rem 2.5rem 2.5rem;
  width: 100%;
}
.split-left .split-body  { padding-left: 40%; }
.split-right .split-body { padding-right: 40%; }

/* ── TYPOGRAPHY ── */
.eyebrow {
  display: inline-block; font-size: 0.7rem; font-weight: 700;
  letter-spacing: 0.12em; text-transform: uppercase;
  color: var(--gold); margin-bottom: 1rem;
}

h1 {
  font-size: clamp(2.4rem, 5vw, 4.2rem); font-weight: 900;
  line-height: 1.08; letter-spacing: -0.035em; color: #fff;
  margin-bottom: 1.25rem;
}
h1 em { color: var(--blue); font-style: normal; }

h2 {
  font-size: clamp(1.6rem, 2.8vw, 2.4rem); font-weight: 800;
  line-height: 1.12; letter-spacing: -0.025em; color: #fff;
  margin-bottom: 1rem;
}
h2 em { color: var(--blue); font-style: normal; }

/* ── BUTTONS ── */
.btn-primary {
  display: inline-flex; align-items: center; gap: 0.4rem;
  background: var(--blue); color: #000; font-weight: 700;
  font-size: 0.95rem; padding: 0.875rem 1.875rem;
  border-radius: 8px; text-decoration: none;
  transition: opacity 0.2s, transform 0.2s;
}
.btn-primary:hover { opacity: 0.9; transform: translateY(-1px); }

.btn-outline {
  display: inline-flex; align-items: center; gap: 0.4rem;
  border: 1.5px solid rgba(255,215,0,0.45); color: var(--gold);
  font-weight: 600; font-size: 0.95rem; padding: 0.875rem 1.875rem;
  border-radius: 8px; text-decoration: none;
  transition: background 0.2s, transform 0.2s;
}
.btn-outline:hover { background: var(--gold-dim); transform: translateY(-1px); }

.btn-row { display: flex; flex-wrap: wrap; gap: 0.875rem; margin-top: 2rem; }

/* ── HERO (full) ── */
.hero-badge {
  display: inline-flex; align-items: center; gap: 0.5rem;
  background: var(--blue-dim); border: 1px solid var(--blue-border);
  color: var(--blue); font-size: 0.75rem; font-weight: 600;
  letter-spacing: 0.05em; text-transform: uppercase;
  padding: 0.375rem 1rem; border-radius: 100px; margin-bottom: 1.5rem;
}
.hero-badge span { width: 6px; height: 6px; background: var(--blue); border-radius: 50%; animation: pulse 2s infinite; }

@keyframes pulse { 0%, 100% { opacity: 1; } 50% { opacity: 0.3; } }

.hero-sub { font-size: 1.15rem; font-weight: 600; color: var(--gold); margin-bottom: 1.1rem; line-height: 1.5; }
.hero-perex { font-size: 1rem; color: var(--muted); line-height: 1.8; max-width: 560px; }

.stats-bar { display: flex; gap: 2.5rem; margin-top: 2.5rem; padding-top: 2rem; border-top: 1px solid rgba(255,255,255,0.07); }
.stat-val { font-size: 2rem; font-weight: 900; color: var(--gold); line-height: 1; letter-spacing: -0.03em; }
.stat-lbl { font-size: 0.72rem; font-weight: 600; letter-spacing: 0.08em; text-transform: uppercase; color: var(--muted); margin-top: 0.3rem; }

/* ── PROBLEMS (fullscreen) ── */
.tbl-head { display: grid; grid-template-columns: 1fr 1fr; gap: 1rem; padding: 0 1.5rem; margin-bottom: 0.5rem; }
.tbl-head span { font-size: 0.68rem; font-weight: 700; letter-spacing: 0.1em; text-transform: uppercase; color: var(--muted); }

.prob-card {
  display: grid; grid-template-columns: 1fr 1fr; gap: 0.875rem;
  padding: 1rem 1.25rem;
  background: rgba(11,16,32,0.6); backdrop-filter: blur(8px);
  border: 1px solid rgba(0,191,255,0.1); border-radius: 10px;
  margin-bottom: 0.65rem; transition: border-color 0.25s;
}
.prob-card:hover { border-color: rgba(0,191,255,0.32); }
.prob-issue { font-size: 0.82rem; color: var(--muted); line-height: 1.5; }
.prob-fix { font-size: 0.82rem; color: var(--text); line-height: 1.5; display: flex; gap: 0.5rem; }
.prob-fix::before { content: '✓'; color: var(--gold); font-weight: 800; flex-shrink: 0; }

/* ── BENEFITS (split) ── */
.benefits-grid {
  display: grid; grid-template-columns: 1fr 1fr;
  gap: 0.875rem; margin-top: 1.25rem;
}
.benefit-card {
  background: rgba(11,16,32,0.6); backdrop-filter: blur(8px);
  border: 1px solid rgba(0,191,255,0.1); border-radius: 12px;
  padding: 1.25rem; transition: border-color 0.25s, transform 0.25s;
}
.benefit-card:hover { border-color: var(--blue); transform: translateY(-2px); }
.benefit-card.wide { grid-column: span 2; }
.b-icon { font-size: 1.3rem; margin-bottom: 0.75rem; }
.b-title { font-size: 0.88rem; font-weight: 700; color: #fff; margin-bottom: 0.4rem; }
.b-desc { font-size: 0.78rem; color: var(--muted); line-height: 1.55; }

/* ── DEVICES (fullscreen) ── */
.devices-grid {
  display: grid; grid-template-columns: repeat(2, 1fr);
  gap: 0.65rem; margin-top: 1.5rem;
}
.dev-item {
  display: flex; align-items: center; gap: 0.65rem;
  padding: 0.875rem 1rem;
  background: rgba(11,16,32,0.6); backdrop-filter: blur(8px);
  border: 1px solid rgba(0,191,255,0.1); border-radius: 9px;
  font-size: 0.8rem; color: var(--text);
  transition: border-color 0.2s, color 0.2s; cursor: default;
}
.dev-item:hover { border-color: var(--gold); color: #fff; }
.dev-item span { font-size: 1.1rem; }

/* ── PRICING (full, static) ── */
#pricing {
  height: auto; min-height: 100vh; overflow: visible;
  scroll-snap-align: start;
  background: var(--dark2);
  display: flex; align-items: center; justify-content: center;
  padding: 4rem 3rem;
}
.pricing-inner { max-width: 1100px; width: 100%; }
.pricing-header { text-align: center; margin-bottom: 2rem; }
.pricing-header h2 { margin-bottom: 0.75rem; font-size: clamp(1.8rem, 3.5vw, 3rem); }
.pricing-header p { color: var(--muted); max-width: 500px; margin: 0 auto; }

.price-table { width: 100%; border-collapse: collapse; border-radius: 16px; overflow: hidden; background: var(--dark3); }
.price-table thead tr { background: rgba(0,191,255,0.07); }
.price-table th { padding: 0.9rem 1.25rem; text-align: left; font-size: 0.7rem; font-weight: 700; letter-spacing: 0.1em; text-transform: uppercase; color: var(--blue); border-bottom: 1px solid rgba(0,191,255,0.12); }
.price-table td { padding: 0.9rem 1.25rem; font-size: 0.9rem; color: var(--text); border-bottom: 1px solid rgba(255,255,255,0.04); vertical-align: middle; }
.price-table tbody tr:last-child td { border-bottom: none; }
.price-table tbody tr:hover td { background: rgba(0,191,255,0.03); }
.plan-name { display: inline-block; padding: 0.2rem 0.6rem; background: var(--blue-dim); color: var(--blue); border-radius: 5px; font-size: 0.8rem; font-weight: 700; }
.plan-name.is-prepaid { background: var(--gold-dim); color: var(--gold); }
.price-val { font-size: 1.05rem; font-weight: 800; color: var(--gold); }
.pricing-footer { display: flex; flex-wrap: wrap; gap: 0 2rem; justify-content: center; margin-top: 1.25rem; }
.pricing-footer span { font-size: 0.82rem; color: var(--muted); padding: 0.2rem 0; }
.pricing-footer span::before { content: '· '; color: var(--blue); }

/* ── HOWTO (split) ── */
.steps-list { display: flex; flex-direction: column; gap: 0.75rem; margin-top: 1.5rem; }
.step {
  display: flex; align-items: flex-start; gap: 1rem;
  padding: 1rem 1.25rem;
  background: rgba(11,16,32,0.6); backdrop-filter: blur(8px);
  border: 1px solid rgba(0,191,255,0.1); border-radius: 10px;
  transition: border-color 0.25s;
}
.step:hover { border-color: rgba(255,215,0,0.35); }
.step-num { width: 32px; height: 32px; flex-shrink: 0; background: linear-gradient(135deg, var(--blue) 0%, #009fd4 100%); border-radius: 7px; display: flex; align-items: center; justify-content: center; font-weight: 900; font-size: 0.8rem; color: #000; }
.step h3 { font-size: 0.88rem; font-weight: 700; color: #fff; margin-bottom: 0.25rem; }
.step p { font-size: 0.78rem; color: var(--muted); line-height: 1.5; }

/* ── CTA (fullscreen) ── */
.cta-h2 { font-size: clamp(1.8rem, 3vw, 2.8rem); font-weight: 900; line-height: 1.1; letter-spacing: -0.03em; color: #fff; margin-bottom: 1.25rem; }
.cta-h2 em { color: var(--blue); font-style: normal; }
.cta-desc { font-size: 1rem; color: var(--muted); line-height: 1.75; margin-bottom: 1.75rem; }
.contacts { display: flex; flex-direction: column; gap: 0.65rem; margin-top: 2rem; padding-top: 1.75rem; border-top: 1px solid rgba(255,255,255,0.07); }
.contact-row { display: flex; align-items: center; gap: 0.75rem; font-size: 0.9rem; color: var(--muted); }
.contact-row a { color: var(--blue); text-decoration: none; }
.contact-row a:hover { text-decoration: underline; }
.c-icon { font-size: 1rem; width: 20px; text-align: center; }
.ftr-note { margin-top: 2rem; font-size: 0.75rem; color: var(--muted); opacity: 0.55; }
.ftr-note em { color: var(--blue); font-style: normal; }

/* ── NAV DOTS ── */
#nav-dots { position: fixed; right: 1.5rem; top: 50%; transform: translateY(-50%); z-index: 150; display: flex; flex-direction: column; gap: 0.6rem; }
.ndot { width: 8px; height: 8px; border-radius: 50%; background: rgba(255,255,255,0.22); border: none; cursor: pointer; padding: 0; transition: background 0.3s, transform 0.3s; }
.ndot.active { background: var(--blue); transform: scale(1.5); }
.ndot:hover:not(.active) { background: rgba(255,255,255,0.55); }

/* ── SCROLL / SKIP HINTS ── */
#scroll-hint { position: fixed; bottom: 1.75rem; left: 50%; transform: translateX(-50%); z-index: 150; display: flex; flex-direction: column; align-items: center; gap: 0.4rem; color: var(--muted); font-size: 0.7rem; letter-spacing: 0.1em; text-transform: uppercase; pointer-events: none; opacity: 0; transition: opacity 0.5s; }
#scroll-hint.visible { opacity: 1; }
#scroll-hint .arr { width: 18px; height: 18px; border-right: 2px solid currentColor; border-bottom: 2px solid currentColor; transform: rotate(45deg); animation: arr-bounce 1.6s ease-in-out infinite; margin-top: 2px; }
@keyframes arr-bounce { 0%, 100% { transform: rotate(45deg) translateY(0); opacity: 1; } 50% { transform: rotate(45deg) translateY(5px); opacity: 0.4; } }

/* ── RESPONSIVE ── */
/* Below 900px the split layout stacks (video on top, content below,
   still dissolving into it) instead of sitting side by side — the
   native scroll-snap behavior above already applies at every width. */
@media (max-width: 900px) {
  #pricing { padding: 5rem 1.5rem 3rem; }
  .scroll-section.split-left .sticky-wrap,
  .scroll-section.split-right .sticky-wrap { display: flex; flex-direction: column; }
  /* split-right has content-pane before video-pane in the markup (for
     desktop's left-to-right visual order); force video-then-content
     here regardless of DOM order, otherwise content-pane's negative
     margin-top pulls it up into the *previous* section instead of over
     its own video. */
  .video-pane { position: relative; width: 100%; height: 64vh; flex-shrink: 0; order: 1; }
  .content-pane {
    position: relative; width: 100%; height: auto; min-height: 58vh;
    margin-top: -22vh; top: auto; bottom: auto; overflow-y: visible; order: 2;
  }
  .split-left .content-pane,
  .split-right .content-pane {
    background: linear-gradient(to bottom,
      rgba(11,16,32,0)    0%,
      rgba(11,16,32,0.12) 8%,
      rgba(11,16,32,0.28) 16%,
      rgba(11,16,32,0.48) 24%,
      rgba(11,16,32,0.70) 30%,
      rgba(11,16,32,0.90) 35%,
      rgba(11,16,32,1)    40%,
      rgba(11,16,32,1)    100%);
  }
  .split-left .split-body, .split-right .split-body { padding: 3rem 2.5rem 3rem !important; }
}
@media (max-width: 768px) {
  .nav-links > a:not(.nav-cta) { display: none; }
  .benefits-grid { grid-template-columns: 1fr; }
  .benefit-card.wide { grid-column: span 1; }
  .tbl-head, .prob-card { grid-template-columns: 1fr; }
  .stats-bar { gap: 1.5rem; }
  #nav-dots { right: 0.75rem; }
}
