:root {
  --bg: #0b0b1a;
  --bg-2: #11112a;
  --card: rgba(255, 255, 255, 0.04);
  --card-border: rgba(255, 255, 255, 0.09);
  --text: #eef0ff;
  --muted: #a3a7c7;
  --primary: #7c5cff;
  --accent: #22d3ee;
  --pink: #f472b6;
  --grad: linear-gradient(135deg, var(--primary), var(--accent));
  --radius: 18px;
  --shadow: 0 20px 50px -20px rgba(124, 92, 255, 0.45);
  --container: 1180px;
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: 80px; -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  font-family: 'Inter', system-ui, -apple-system, 'Segoe UI', Roboto, sans-serif;
  background: var(--bg);
  color: var(--text);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}
body.no-scroll { overflow: hidden; }
img { max-width: 100%; display: block; }
a { color: inherit; text-decoration: none; }
h1, h2, h3 { line-height: 1.15; margin: 0 0 .5em; letter-spacing: -0.02em; }
p { margin: 0 0 1em; }

.container { width: 100%; max-width: var(--container); margin: 0 auto; padding: 0 20px; }
.container--narrow { max-width: 820px; }
.sr-only { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.skip { position: absolute; left: -999px; top: 10px; background: #fff; color: #000; padding: 8px 14px; border-radius: 8px; z-index: 100; }
.skip:focus { left: 10px; }
:focus-visible { outline: 2px solid var(--accent); outline-offset: 3px; border-radius: 6px; }

.grad { background: var(--grad); -webkit-background-clip: text; background-clip: text; color: transparent; }
.eyebrow {
  display: inline-flex; align-items: center; gap: 8px;
  font-size: .8rem; font-weight: 600; letter-spacing: .08em; text-transform: uppercase;
  color: var(--accent); margin-bottom: 14px;
}
.dot { width: 8px; height: 8px; border-radius: 50%; background: #22c55e; box-shadow: 0 0 0 4px rgba(34, 197, 94, .2); animation: pulse 2s infinite; }
@keyframes pulse { 50% { box-shadow: 0 0 0 8px rgba(34, 197, 94, 0); } }

/* Buttons */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  padding: 14px 26px; border-radius: 999px; border: 0; cursor: pointer;
  font: inherit; font-weight: 600; color: #fff; background: var(--grad);
  box-shadow: var(--shadow); transition: transform .2s, box-shadow .2s, background .2s;
}
.btn:hover { transform: translateY(-2px); box-shadow: 0 24px 50px -16px rgba(124, 92, 255, .65); }
.btn--sm { padding: 10px 18px; font-size: .9rem; }
.btn--block { width: 100%; }
.btn--ghost { background: transparent; border: 1px solid var(--card-border); box-shadow: none; }
.btn--ghost:hover { background: rgba(255, 255, 255, .06); box-shadow: none; }
.btn--outline { background: transparent; border: 1px solid rgba(124, 92, 255, .6); box-shadow: none; }
.btn--outline:hover { background: rgba(124, 92, 255, .15); box-shadow: none; }
.btn--light { background: #fff; color: #1a1040; box-shadow: none; }
.btn--ghost-light { background: transparent; border: 1px solid rgba(255, 255, 255, .5); box-shadow: none; }

/* Navigation */
.nav { position: sticky; top: 0; z-index: 50; background: rgba(11, 11, 26, .7); backdrop-filter: blur(14px); -webkit-backdrop-filter: blur(14px); border-bottom: 1px solid transparent; transition: border-color .3s, background .3s; }
.nav.is-scrolled { border-color: var(--card-border); background: rgba(11, 11, 26, .88); }
.nav__inner { display: flex; align-items: center; justify-content: space-between; height: 72px; }
.brand { display: inline-flex; align-items: center; gap: 10px; font-size: 1.2rem; font-weight: 500; }
.brand strong { font-weight: 800; background: var(--grad); -webkit-background-clip: text; background-clip: text; color: transparent; }
.nav__links { display: flex; align-items: center; gap: 28px; }
.nav__links a:not(.btn) { color: var(--muted); font-weight: 500; font-size: .95rem; transition: color .2s; }
.nav__links a:not(.btn):hover { color: var(--text); }
.nav__toggle { display: none; background: none; border: 0; padding: 10px; cursor: pointer; }
.nav__toggle span { display: block; width: 24px; height: 2px; background: var(--text); margin: 5px 0; border-radius: 2px; transition: transform .3s, opacity .3s; }
.nav__toggle[aria-expanded="true"] span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.nav__toggle[aria-expanded="true"] span:nth-child(2) { opacity: 0; }
.nav__toggle[aria-expanded="true"] span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

/* Hero */
.hero { position: relative; padding: 80px 0 100px; overflow: hidden; }
.hero__glow {
  position: absolute; inset: -20% -10% auto; height: 120%; pointer-events: none;
  background:
    radial-gradient(600px 400px at 20% 20%, rgba(124, 92, 255, .35), transparent 60%),
    radial-gradient(500px 400px at 85% 30%, rgba(34, 211, 238, .22), transparent 60%),
    radial-gradient(400px 300px at 60% 90%, rgba(244, 114, 182, .15), transparent 60%);
}
.hero__inner { position: relative; display: grid; grid-template-columns: 1.05fr 1fr; gap: 60px; align-items: center; }
.hero h1 { font-size: clamp(2.2rem, 5vw, 3.8rem); font-weight: 800; }
.lead { font-size: clamp(1.02rem, 1.6vw, 1.18rem); color: var(--muted); max-width: 560px; }
.hero__cta { display: flex; flex-wrap: wrap; gap: 14px; margin: 28px 0 40px; }
.hero__trust { list-style: none; padding: 0; margin: 0; display: flex; flex-wrap: wrap; gap: 36px; }
.hero__trust strong { display: block; font-size: 1.6rem; font-weight: 800; }
.hero__trust span { color: var(--muted); font-size: .9rem; }

.hero__visual { position: relative; }
.tv { animation: float 6s ease-in-out infinite; }
.tv__screen {
  background: linear-gradient(160deg, #1b1b3a, #0e0e22); border: 10px solid #1d1d36; border-radius: 22px;
  padding: 14px; box-shadow: 0 40px 80px -30px rgba(0, 0, 0, .8), 0 0 0 1px rgba(255, 255, 255, .06), var(--shadow);
  aspect-ratio: 16 / 10;
  display: flex; flex-direction: column;
}
.tv__bar { display: flex; justify-content: space-between; font-size: .75rem; font-weight: 700; color: var(--muted); margin-bottom: 12px; }
.live { color: #ef4444; }
.tv__grid { flex: 1; display: grid; grid-template-columns: repeat(3, 1fr); grid-template-rows: repeat(2, 1fr); gap: 10px; }
.tile { border-radius: 12px; display: flex; align-items: flex-end; padding: 10px; font-weight: 700; font-size: .85rem; position: relative; overflow: hidden; }
.tile::after { content: ''; position: absolute; inset: 0; background: linear-gradient(transparent 40%, rgba(0, 0, 0, .45)); }
.tile span { position: relative; z-index: 1; }
.t1 { background: linear-gradient(135deg, #16a34a, #065f46); }
.t2 { background: linear-gradient(135deg, #7c5cff, #3b1fa8); }
.t3 { background: linear-gradient(135deg, #f472b6, #9d174d); }
.t4 { background: linear-gradient(135deg, #f59e0b, #92400e); }
.t5 { background: linear-gradient(135deg, #22d3ee, #0e7490); }
.t6 { background: linear-gradient(135deg, #64748b, #1e293b); }
.tv__stand { width: 34%; height: 14px; margin: 0 auto; background: #1d1d36; border-radius: 0 0 12px 12px; }
.float {
  position: absolute; padding: 10px 16px; border-radius: 14px; font-size: .85rem; font-weight: 600;
  background: rgba(20, 20, 45, .85); border: 1px solid var(--card-border); backdrop-filter: blur(10px);
  box-shadow: 0 10px 30px -10px rgba(0, 0, 0, .6); white-space: nowrap;
}
.float--a { top: -18px; right: 6%; animation: float 5s ease-in-out infinite reverse; }
.float--b { bottom: 4%; left: -18px; animation: float 7s ease-in-out infinite; }
@keyframes float { 50% { transform: translateY(-12px); } }

/* Sections */
.section { padding: 100px 0; }
.section--alt { background: linear-gradient(180deg, var(--bg-2), var(--bg)); border-top: 1px solid var(--card-border); border-bottom: 1px solid var(--card-border); }
.section__head { text-align: center; max-width: 680px; margin: 0 auto 56px; }
.section__head h2 { font-size: clamp(1.8rem, 3.6vw, 2.7rem); font-weight: 800; }
.section__head p:not(.eyebrow) { color: var(--muted); font-size: 1.08rem; }

/* Features */
.features { display: grid; grid-template-columns: repeat(3, 1fr); gap: 22px; }
.feature { background: var(--card); border: 1px solid var(--card-border); border-radius: var(--radius); padding: 30px; transition: transform .3s, border-color .3s; }
.feature:hover { transform: translateY(-4px); border-color: rgba(124, 92, 255, .5); }
.feature__icon { width: 52px; height: 52px; display: grid; place-items: center; font-size: 1.5rem; border-radius: 14px; background: rgba(124, 92, 255, .14); margin-bottom: 18px; }
.feature h3 { font-size: 1.15rem; }
.feature p { color: var(--muted); margin: 0; }

/* Pricing */
.devices { display: flex; flex-wrap: wrap; justify-content: center; gap: 6px; padding: 6px; margin: 0 auto 14px; width: fit-content; max-width: 100%; background: var(--card); border: 1px solid var(--card-border); border-radius: 999px; }
.devices__btn { font: inherit; font-weight: 600; font-size: .95rem; color: var(--muted); background: transparent; border: 0; padding: 11px 20px; border-radius: 999px; cursor: pointer; transition: color .2s, background .2s; }
.devices__btn:hover { color: var(--text); }
.devices__btn.is-active { color: #fff; background: var(--grad); box-shadow: var(--shadow); }
.devices__hint { text-align: center; color: var(--muted); margin-bottom: 40px; }

.plans { display: grid; grid-template-columns: repeat(4, 1fr); gap: 20px; align-items: stretch; }
.plan { position: relative; display: flex; flex-direction: column; background: var(--card); border: 1px solid var(--card-border); border-radius: var(--radius); padding: 30px 26px; transition: transform .3s, border-color .3s; }
.plan:hover { transform: translateY(-4px); border-color: rgba(124, 92, 255, .45); }
.plan--best { background: linear-gradient(180deg, rgba(124, 92, 255, .2), rgba(34, 211, 238, .06)); border-color: rgba(124, 92, 255, .7); box-shadow: var(--shadow); }
.plan__badge { position: absolute; top: -13px; left: 50%; transform: translateX(-50%); background: var(--grad); color: #fff; font-size: .75rem; font-weight: 700; letter-spacing: .04em; text-transform: uppercase; padding: 5px 14px; border-radius: 999px; white-space: nowrap; }
.plan h3 { font-size: 1.1rem; color: var(--muted); font-weight: 600; }
.plan__price { font-size: 1.5rem; font-weight: 700; margin: 4px 0 2px; }
.plan__price span { font-size: 3.2rem; font-weight: 800; letter-spacing: -0.03em; }
.plan__per { color: var(--muted); font-size: .92rem; margin-bottom: 8px; }
.plan__save { display: inline-block; align-self: flex-start; font-size: .8rem; font-weight: 700; color: #4ade80; background: rgba(74, 222, 128, .12); padding: 4px 10px; border-radius: 999px; }
.plan__save--none { color: var(--muted); background: rgba(255, 255, 255, .06); }
.plan__list { list-style: none; padding: 0; margin: 14px 0 26px; flex: 1; }
.plan__list li { padding: 7px 0 7px 26px; position: relative; font-size: .95rem; border-bottom: 1px dashed rgba(255, 255, 255, .07); }
.plan__list li:last-child { border-bottom: 0; }
.plan__list li::before { content: '✓'; position: absolute; left: 0; color: var(--accent); font-weight: 700; }

.included { list-style: none; padding: 0; margin: 40px 0 0; display: flex; flex-wrap: wrap; justify-content: center; gap: 12px 28px; color: var(--muted); font-size: .95rem; }

.table-wrap { margin: 40px auto 0; max-width: 820px; background: var(--card); border: 1px solid var(--card-border); border-radius: var(--radius); }
.table-wrap summary { cursor: pointer; padding: 18px 24px; font-weight: 600; list-style: none; display: flex; justify-content: space-between; align-items: center; }
.table-wrap summary::-webkit-details-marker { display: none; }
.table-wrap summary::after, .faq summary::after { content: '+'; font-size: 1.4rem; color: var(--accent); transition: transform .2s; }
.table-wrap[open] summary::after, .faq details[open] summary::after { transform: rotate(45deg); }
.table-scroll { overflow-x: auto; padding: 0 12px 16px; }
.price-table { width: 100%; border-collapse: collapse; min-width: 480px; }
.price-table th, .price-table td { padding: 12px; text-align: center; border-bottom: 1px solid var(--card-border); }
.price-table thead th { color: var(--muted); font-weight: 600; font-size: .85rem; text-transform: uppercase; letter-spacing: .05em; }
.price-table tbody th { text-align: left; font-weight: 600; }
.price-table tbody tr:last-child > * { border-bottom: 0; }
.price-table td:last-child { color: var(--accent); font-weight: 700; }

/* Devices */
.device-grid { list-style: none; padding: 0; margin: 0; display: grid; grid-template-columns: repeat(6, 1fr); gap: 16px; }
.device-grid li { display: flex; flex-direction: column; align-items: center; text-align: center; gap: 6px; padding: 26px 12px; background: var(--card); border: 1px solid var(--card-border); border-radius: var(--radius); font-weight: 600; }
.device-grid span { font-size: 2rem; }
.device-grid small { color: var(--muted); font-weight: 400; font-size: .82rem; }

/* Steps */
.steps { list-style: none; padding: 0; margin: 0; display: grid; grid-template-columns: repeat(3, 1fr); gap: 22px; counter-reset: none; }
.step { position: relative; padding: 34px 30px; background: var(--card); border: 1px solid var(--card-border); border-radius: var(--radius); }
.step__num { display: grid; place-items: center; width: 46px; height: 46px; border-radius: 50%; background: var(--grad); font-weight: 800; font-size: 1.2rem; margin-bottom: 18px; box-shadow: var(--shadow); }
.step p { color: var(--muted); margin: 0; }

/* FAQ */
.faq { display: grid; gap: 12px; }
.faq details { background: var(--card); border: 1px solid var(--card-border); border-radius: 14px; transition: border-color .2s; }
.faq details[open] { border-color: rgba(124, 92, 255, .5); }
.faq summary { cursor: pointer; padding: 20px 24px; font-weight: 600; list-style: none; display: flex; justify-content: space-between; align-items: center; gap: 16px; }
.faq summary::-webkit-details-marker { display: none; }
.faq details p { padding: 0 24px 20px; margin: 0; color: var(--muted); }

/* CTA */
.cta {
  display: flex; align-items: center; justify-content: space-between; gap: 30px; flex-wrap: wrap;
  padding: 56px; border-radius: 28px; background: linear-gradient(135deg, #6d4dff, #1fb6d6);
  box-shadow: 0 40px 80px -30px rgba(124, 92, 255, .7); position: relative; overflow: hidden;
}
.cta::before { content: ''; position: absolute; width: 400px; height: 400px; right: -120px; top: -180px; border-radius: 50%; background: rgba(255, 255, 255, .12); }
.cta > * { position: relative; }
.cta h2 { font-size: clamp(1.6rem, 3vw, 2.3rem); font-weight: 800; }
.cta p { margin: 0; color: rgba(255, 255, 255, .88); }
.cta__actions { display: flex; flex-wrap: wrap; gap: 12px; }

/* Footer */
.footer { border-top: 1px solid var(--card-border); padding: 36px 0; color: var(--muted); font-size: .92rem; }
.footer__inner { display: flex; align-items: center; justify-content: space-between; flex-wrap: wrap; gap: 18px; }
.footer nav { display: flex; gap: 22px; flex-wrap: wrap; }
.footer nav a:hover { color: var(--text); }
.footer p { margin: 0; }

/* Legal pages */
.legal { padding: 70px 0 100px; }
.legal h1 { font-size: clamp(2rem, 4vw, 2.8rem); font-weight: 800; }
.legal h2 { font-size: 1.3rem; margin-top: 2em; }
.legal p, .legal li { color: var(--muted); }
.legal a { color: var(--accent); }
.note { padding: 14px 18px; border-radius: 12px; background: rgba(245, 158, 11, .12); border: 1px solid rgba(245, 158, 11, .35); color: #fcd34d !important; }

/* Reveal */
.reveal { opacity: 0; transform: translateY(24px); transition: opacity .7s ease, transform .7s ease; }
.reveal.is-visible { opacity: 1; transform: none; }

/* Responsive */
@media (max-width: 1080px) {
  .plans { grid-template-columns: repeat(2, 1fr); gap: 26px 20px; }
  .device-grid { grid-template-columns: repeat(3, 1fr); }
}
@media (max-width: 900px) {
  .hero { padding: 50px 0 80px; }
  .hero__inner { grid-template-columns: 1fr; gap: 56px; text-align: center; }
  .lead { margin-left: auto; margin-right: auto; }
  .hero__cta, .hero__trust { justify-content: center; }
  .hero__visual { max-width: 520px; margin: 0 auto; width: 100%; }
  .features { grid-template-columns: repeat(2, 1fr); }
  .steps { grid-template-columns: 1fr; }
  .cta { padding: 40px 30px; text-align: center; justify-content: center; }
  .cta__actions { justify-content: center; }

  .nav__toggle { display: block; }
  .nav__links {
    position: fixed; inset: 72px 0 0 0; flex-direction: column; align-items: stretch; gap: 0;
    padding: 20px; background: rgba(11, 11, 26, .98); backdrop-filter: blur(14px);
    opacity: 0; transform: translateY(-10px); transition: opacity .25s ease, transform .25s ease, visibility .25s; visibility: hidden;
  }
  .nav__links.is-open { opacity: 1; transform: none; visibility: visible; }
  .nav__links a:not(.btn) { padding: 16px 4px; font-size: 1.1rem; border-bottom: 1px solid var(--card-border); color: var(--text); }
  .nav__links .btn { margin-top: 20px; }
}
@media (max-width: 600px) {
  .section { padding: 72px 0; }
  .section__head { margin-bottom: 40px; }
  .features, .plans { grid-template-columns: 1fr; }
  .device-grid { grid-template-columns: repeat(2, 1fr); gap: 12px; }
  .hero__trust { gap: 22px; }
  .hero__trust strong { font-size: 1.3rem; }
  .hero__cta .btn { flex: 1 1 100%; }
  .devices { border-radius: 18px; }
  .devices__btn { padding: 10px 14px; font-size: .88rem; flex: 1 1 auto; }
  .float { font-size: .75rem; padding: 8px 12px; }
  .float--a { right: 0; }
  .float--b { left: 0; }
  .cta__actions .btn { flex: 1 1 100%; }
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation: none !important; transition: none !important; scroll-behavior: auto !important; }
  .reveal { opacity: 1; transform: none; }
}
