:root {
  color-scheme: dark;
  --bg: #050914;
  --bg-2: #07111f;
  --surface: rgba(13, 22, 36, 0.86);
  --surface-2: rgba(20, 33, 52, 0.78);
  --surface-3: #101c2d;
  --text: #f4f8ff;
  --muted: #9fb0c7;
  --muted-2: #72839a;
  --line: rgba(149, 180, 255, 0.16);
  --line-strong: rgba(118, 210, 255, 0.28);
  --accent: #36d8ff;
  --accent-2: #5d7cff;
  --accent-3: #9b6dff;
  --success: #42d392;
  --warning: #ffb453;
  --danger: #ff5f6d;
  --shadow: 0 24px 80px rgba(0, 0, 0, 0.36);
  --radius: 8px;
  --header-h: 76px;
}

:root[data-theme="light"] {
  color-scheme: light;
  --bg: #f5f8ff;
  --bg-2: #eaf1fb;
  --surface: rgba(255, 255, 255, 0.9);
  --surface-2: rgba(239, 245, 255, 0.88);
  --surface-3: #ffffff;
  --text: #101927;
  --muted: #5f6f85;
  --muted-2: #7d8ca1;
  --line: rgba(35, 58, 93, 0.14);
  --line-strong: rgba(36, 151, 207, 0.28);
  --shadow: 0 24px 80px rgba(34, 53, 82, 0.14);
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  font-family: Inter, "Segoe UI", system-ui, -apple-system, BlinkMacSystemFont, sans-serif;
  background:
    linear-gradient(135deg, var(--bg) 0%, var(--bg-2) 44%, #0b1024 100%);
  color: var(--text);
  line-height: 1.6;
}

body::before {
  content: "";
  position: fixed;
  inset: 0;
  z-index: -2;
  background:
    linear-gradient(90deg, rgba(54, 216, 255, 0.05), transparent 34%, rgba(155, 109, 255, 0.06)),
    repeating-linear-gradient(90deg, rgba(255,255,255,0.025) 0 1px, transparent 1px 96px);
  pointer-events: none;
}

a {
  color: inherit;
}

img,
svg,
canvas {
  max-width: 100%;
}

button,
input,
textarea,
select {
  font: inherit;
}

.container {
  width: min(1180px, calc(100% - 32px));
  margin: 0 auto;
}

.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  border-bottom: 1px solid var(--line);
  background: color-mix(in srgb, var(--bg) 82%, transparent);
  backdrop-filter: blur(18px);
}

.header-inner {
  min-height: var(--header-h);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 11px;
  color: var(--text);
  text-decoration: none;
}

.brand-mark {
  display: grid;
  place-items: center;
  width: 38px;
  height: 38px;
  border: 1px solid rgba(255,255,255,0.16);
  border-radius: var(--radius);
  background: linear-gradient(135deg, var(--accent), var(--accent-2) 58%, var(--accent-3));
  color: #02111e;
  font-weight: 900;
  box-shadow: 0 0 28px rgba(54, 216, 255, 0.24);
}

.brand strong {
  display: block;
  line-height: 1;
  font-size: 18px;
}

.brand small {
  display: block;
  margin-top: 3px;
  color: var(--muted);
  font-size: 11px;
  font-weight: 650;
}

.main-nav {
  display: flex;
  align-items: center;
  gap: 4px;
  flex-wrap: wrap;
}

.main-nav a,
.footer-links a {
  color: var(--muted);
  text-decoration: none;
  font-weight: 700;
}

.main-nav a {
  padding: 9px 10px;
  border-radius: var(--radius);
  font-size: 14px;
}

.main-nav a:hover,
.main-nav a:focus-visible,
.footer-links a:hover {
  color: var(--text);
  background: var(--surface-2);
  outline: none;
}

.header-actions,
.hero-actions,
.section-actions,
.link-row,
.checkout-actions {
  display: flex;
  align-items: center;
  gap: 12px;
  flex-wrap: wrap;
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  min-height: 42px;
  padding: 10px 16px;
  border: 1px solid transparent;
  border-radius: var(--radius);
  background: var(--surface-2);
  color: var(--text);
  font-weight: 800;
  text-decoration: none;
  cursor: pointer;
  transition: transform 0.18s ease, border-color 0.18s ease, background 0.18s ease, box-shadow 0.18s ease;
}

.btn:hover,
.btn:focus-visible {
  transform: translateY(-1px);
  outline: none;
  border-color: var(--line-strong);
  box-shadow: 0 14px 42px rgba(0, 0, 0, 0.22);
}

.btn-primary {
  background: linear-gradient(135deg, var(--accent), var(--accent-2));
  color: #03111f;
  box-shadow: 0 0 28px rgba(54, 216, 255, 0.18);
}

.btn-secondary {
  border-color: var(--line);
  background: var(--surface);
}

.btn-ghost {
  border-color: var(--line);
  background: transparent;
}

.btn-large {
  min-height: 50px;
  padding: 13px 20px;
  font-size: 16px;
}

.theme-toggle {
  width: 44px;
  height: 42px;
  padding: 0;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--surface);
  color: var(--text);
  cursor: pointer;
}

.theme-toggle::before {
  content: "D";
  font-weight: 900;
}

:root[data-theme="light"] .theme-toggle::before {
  content: "L";
}

.hero {
  padding: 84px 0 60px;
}

.hero-product {
  min-height: calc(100vh - var(--header-h));
  display: grid;
  align-items: center;
}

.hero-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.02fr) minmax(340px, 0.98fr);
  align-items: center;
  gap: 48px;
}

.eyebrow,
.badge,
.plan-label,
.scenario-label,
.status-badge {
  display: inline-flex;
  align-items: center;
  width: fit-content;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--surface);
  color: var(--muted);
  padding: 6px 10px;
  font-size: 13px;
  font-weight: 800;
}

h1,
h2,
h3 {
  margin: 0;
  line-height: 1.08;
  letter-spacing: 0;
}

h1 {
  margin-top: 18px;
  font-size: 76px;
}

h2 {
  font-size: 42px;
}

h3 {
  font-size: 21px;
}

p {
  margin: 0;
}

.hero-subtitle {
  margin-top: 10px;
  color: var(--accent);
  font-size: 25px;
  font-weight: 850;
}

.lead {
  max-width: 720px;
  margin-top: 22px;
  color: var(--muted);
  font-size: 21px;
}

.lead-ru {
  margin-top: 12px;
  font-size: 18px;
}

.hero-actions {
  margin-top: 30px;
}

.trust-strip {
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
  margin-top: 30px;
}

.trust-strip span,
.audience-grid span,
.payment-method,
.download-pill {
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--surface);
  padding: 10px 12px;
  color: var(--muted);
  font-weight: 750;
}

.hero-visual {
  position: relative;
  min-height: 560px;
  display: grid;
  place-items: center;
}

.tunnel-lines {
  position: absolute;
  inset: 28px 0;
  border: 1px solid rgba(54, 216, 255, 0.14);
  border-radius: var(--radius);
  background:
    linear-gradient(90deg, transparent, rgba(54,216,255,0.08), transparent),
    repeating-linear-gradient(0deg, transparent 0 28px, rgba(255,255,255,0.035) 28px 29px);
  transform: perspective(700px) rotateX(58deg);
  transform-origin: center;
}

.device-mockup {
  position: relative;
  z-index: 1;
  width: min(390px, 100%);
  border: 1px solid var(--line-strong);
  border-radius: var(--radius);
  background: linear-gradient(180deg, rgba(13, 22, 36, 0.96), rgba(7, 13, 24, 0.92));
  box-shadow: var(--shadow), 0 0 58px rgba(54, 216, 255, 0.13);
  padding: 18px;
}

.mockup-top,
.protection-list div,
.server-row,
.order-line,
.download-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
}

.mockup-top strong {
  display: block;
  font-size: 18px;
}

.mockup-top span,
.protection-list small,
.muted,
.notice {
  color: var(--muted);
}

.status-dot {
  width: 12px;
  height: 12px;
  border-radius: 50%;
  background: var(--muted-2);
}

.status-dot.active {
  background: var(--success);
  box-shadow: 0 0 18px rgba(66, 211, 146, 0.7);
}

.protected-ring {
  display: grid;
  place-items: center;
  min-height: 250px;
  margin: 16px 0;
  border: 1px solid rgba(54, 216, 255, 0.18);
  border-radius: var(--radius);
  background:
    linear-gradient(180deg, rgba(54,216,255,0.10), transparent 60%),
    radial-gradient(circle at center, rgba(54,216,255,0.13), transparent 58%);
}

.protected-ring button {
  width: 168px;
  height: 168px;
  border: 1px solid rgba(54,216,255,0.42);
  border-radius: 50%;
  background: linear-gradient(135deg, var(--accent), var(--accent-2));
  color: #04111d;
  font-size: 22px;
  font-weight: 900;
  box-shadow: inset 0 0 22px rgba(255,255,255,0.28), 0 0 36px rgba(54, 216, 255, 0.24);
}

.protection-list {
  display: grid;
  gap: 10px;
}

.protection-list div {
  justify-content: flex-start;
  padding: 12px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: rgba(255,255,255,0.035);
}

.mini-icon {
  display: grid;
  place-items: center;
  flex: 0 0 32px;
  width: 32px;
  height: 32px;
  border-radius: var(--radius);
  background: rgba(54, 216, 255, 0.14);
  color: var(--accent);
  font-weight: 900;
}

.platform-stack {
  position: absolute;
  right: 0;
  bottom: 42px;
  z-index: 2;
  display: grid;
  gap: 8px;
}

.platform-stack a {
  min-width: 112px;
  padding: 10px 12px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: color-mix(in srgb, var(--surface) 86%, transparent);
  color: var(--text);
  text-decoration: none;
  font-weight: 850;
  box-shadow: var(--shadow);
}

.section {
  padding: 86px 0;
}

.section-tight {
  padding: 56px 0;
}

.section-band {
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
  background: rgba(255,255,255,0.025);
}

.section-head {
  display: flex;
  align-items: end;
  justify-content: space-between;
  gap: 24px;
  margin-bottom: 28px;
}

.section-head p,
.section-subtitle {
  max-width: 620px;
  color: var(--muted);
}

.section-head h2,
.page-hero h1 {
  margin-top: 12px;
}

.pricing-grid,
.grid-3,
.grid-4,
.grid-2,
.scenario-grid,
.device-grid,
.faq-grid,
.form-grid,
.checkout-grid {
  display: grid;
  gap: 16px;
}

.pricing-grid {
  grid-template-columns: repeat(3, minmax(0, 1fr));
}

.grid-2,
.scenario-grid,
.checkout-grid {
  grid-template-columns: repeat(2, minmax(0, 1fr));
}

.grid-3 {
  grid-template-columns: repeat(3, minmax(0, 1fr));
}

.grid-4,
.device-grid {
  grid-template-columns: repeat(4, minmax(0, 1fr));
}

.align-center {
  align-items: center;
}

.card,
.pricing-card,
.scenario-card,
.device-card,
.panel,
.faq-item,
.flow-card,
.start-panel,
.checkout-panel,
.spic-word article,
.reseller-ladder > div,
.steps-grid article {
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--surface);
  box-shadow: 0 18px 60px rgba(0, 0, 0, 0.16);
}

.card,
.pricing-card,
.scenario-card,
.device-card,
.panel,
.faq-item,
.flow-card,
.checkout-panel,
.spic-word article,
.reseller-ladder > div,
.steps-grid article {
  padding: 22px;
}

.pricing-card {
  display: flex;
  min-height: 360px;
  flex-direction: column;
  gap: 16px;
}

.pricing-card h3 {
  font-size: 40px;
}

.pricing-card.featured,
.device-card.featured,
.checkout-panel.featured {
  border-color: rgba(54, 216, 255, 0.44);
  background:
    linear-gradient(180deg, rgba(54,216,255,0.10), transparent 42%),
    var(--surface);
}

.pricing-card .btn,
.device-card .btn {
  margin-top: auto;
}

.check-list,
.list {
  display: grid;
  gap: 8px;
  margin: 0;
  padding-left: 18px;
  color: var(--muted);
}

.check-list li::marker {
  color: var(--accent);
}

.spic-word {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 16px;
}

.spic-word strong {
  display: block;
  color: var(--accent);
  font-size: 58px;
  line-height: 1;
}

.spic-word h3 {
  margin-top: 14px;
}

.spic-word p,
.card p,
.pricing-card p,
.scenario-card p,
.device-card p,
.faq-item p,
.checkout-panel p,
.flow-card span {
  color: var(--muted);
}

.flow-compare {
  display: grid;
  gap: 14px;
}

.flow-card {
  display: grid;
  gap: 8px;
}

.flow-card strong {
  font-size: 22px;
}

.muted-card {
  opacity: 0.72;
}

.scenario-card ol {
  display: grid;
  gap: 10px;
  margin: 16px 0 0;
  padding-left: 20px;
  color: var(--muted);
}

.card-kicker {
  display: block;
  color: var(--accent);
  font-size: 28px;
  font-weight: 900;
  margin-bottom: 10px;
}

.card h3 + p,
.pricing-card h3 + p,
.scenario-card h3 + p,
.device-card h3 + p,
.panel h2 + p,
.checkout-panel h2 + p,
.faq-item summary + p {
  margin-top: 12px;
}

.plan-option strong,
.plan-option span,
.plan-option small,
.payment-method strong,
.payment-method small {
  display: block;
}

.plan-option small,
.payment-method small {
  color: var(--muted);
  font-weight: 650;
}

.reseller-ladder {
  display: grid;
  grid-template-columns: 1fr 1fr 1.2fr;
  gap: 16px;
  margin-top: 18px;
}

.reseller-ladder span,
.reseller-ladder small {
  display: block;
  color: var(--muted);
}

.reseller-ladder strong {
  display: block;
  margin: 6px 0;
  font-size: 22px;
}

.progress {
  height: 12px;
  overflow: hidden;
  border-radius: var(--radius);
  background: rgba(255,255,255,0.09);
}

.progress span {
  display: block;
  height: 100%;
  background: linear-gradient(90deg, var(--accent), var(--accent-3));
}

.steps-grid {
  display: grid;
  grid-template-columns: repeat(5, minmax(0, 1fr));
  gap: 14px;
}

.steps-3 {
  grid-template-columns: repeat(3, minmax(0, 1fr));
  margin-top: 24px;
}

.steps-grid span {
  display: grid;
  place-items: center;
  width: 34px;
  height: 34px;
  margin-bottom: 14px;
  border-radius: var(--radius);
  background: rgba(54,216,255,0.13);
  color: var(--accent);
  font-weight: 900;
}

.audience-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 10px;
}

.device-card span {
  display: inline-flex;
  color: var(--accent);
  font-weight: 900;
  margin-bottom: 12px;
}

.link-row {
  margin-top: 26px;
}

.link-row a {
  color: var(--accent);
  font-weight: 850;
  text-decoration: none;
}

.start-panel {
  padding: 34px;
  text-align: center;
}

.start-panel .btn {
  margin-top: 24px;
}

.faq-grid {
  grid-template-columns: repeat(2, minmax(0, 1fr));
}

.faq-item summary {
  cursor: pointer;
  font-weight: 850;
}

.faq-item p {
  margin-top: 12px;
}

.page-hero {
  padding: 72px 0 36px;
}

.page-hero h1 {
  font-size: 58px;
}

.page-hero .lead {
  max-width: 820px;
}

.checkout-grid {
  align-items: start;
}

.checkout-panel {
  display: grid;
  gap: 18px;
}

label {
  display: grid;
  gap: 7px;
  color: var(--muted);
  font-weight: 750;
}

input,
textarea,
select {
  width: 100%;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--surface-2);
  color: var(--text);
  padding: 12px 13px;
  outline: none;
}

textarea {
  resize: vertical;
}

input:focus,
textarea:focus,
select:focus {
  border-color: var(--accent);
  box-shadow: 0 0 0 3px rgba(54,216,255,0.11);
}

.inline-fields {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 12px;
}

.plan-selector,
.payment-selector {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 10px;
}

.plan-option,
.payment-method {
  text-align: left;
  cursor: pointer;
}

.plan-option[aria-pressed="true"],
.payment-method[aria-pressed="true"] {
  border-color: var(--accent);
  background: rgba(54,216,255,0.11);
  color: var(--text);
}

.order-box {
  display: none;
}

.order-box.visible,
.access-box.visible {
  display: grid;
}

.order-summary {
  display: grid;
  gap: 10px;
}

.order-line {
  padding: 12px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: rgba(255,255,255,0.035);
}

.license-box,
.code-box {
  overflow-wrap: anywhere;
  border: 1px dashed var(--line-strong);
  border-radius: var(--radius);
  background: rgba(54,216,255,0.07);
  padding: 14px;
  color: var(--accent);
  font-family: "Cascadia Mono", "SFMono-Regular", Consolas, monospace;
}

.status-badge.pending {
  color: var(--warning);
  border-color: rgba(255,180,83,0.34);
}

.status-badge.success {
  color: var(--success);
  border-color: rgba(66,211,146,0.34);
}

.status-badge.danger {
  color: var(--danger);
  border-color: rgba(255,95,109,0.34);
}

.download-row {
  padding: 14px 0;
  border-bottom: 1px solid var(--line);
}

.download-row:last-child {
  border-bottom: 0;
}

.download-row strong,
.download-row span {
  display: block;
}

.download-row span {
  color: var(--muted);
  font-size: 14px;
}

.toast {
  position: fixed;
  right: 20px;
  bottom: 20px;
  z-index: 80;
  max-width: 360px;
  transform: translateY(18px);
  opacity: 0;
  pointer-events: none;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--surface-3);
  color: var(--text);
  padding: 12px 14px;
  box-shadow: var(--shadow);
  transition: opacity 0.18s ease, transform 0.18s ease;
}

.toast.visible {
  transform: translateY(0);
  opacity: 1;
}

.mobile-cta {
  display: none;
}

.site-footer {
  padding: 46px 0 28px;
  border-top: 1px solid var(--line);
  background: rgba(0,0,0,0.14);
}

.footer-grid {
  display: grid;
  grid-template-columns: 0.9fr 1.4fr;
  gap: 28px;
}

.footer-links {
  display: flex;
  flex-wrap: wrap;
  justify-content: flex-end;
  gap: 10px 16px;
}

.copyright,
.footer-legal,
.legal-notice {
  margin-top: 26px;
  color: var(--muted-2);
  font-size: 13px;
}

.legal-notice p + p {
  margin-top: 10px;
}

.table-shell {
  overflow-x: auto;
  border: 1px solid var(--line);
  border-radius: var(--radius);
}

table {
  width: 100%;
  border-collapse: collapse;
}

th,
td {
  padding: 13px;
  border-bottom: 1px solid var(--line);
  text-align: left;
}

th {
  color: var(--muted);
}

@media (max-width: 1060px) {
  .main-nav {
    display: none;
  }

  .hero-grid,
  .grid-2,
  .scenario-grid,
  .checkout-grid,
  .footer-grid {
    grid-template-columns: 1fr;
  }

  .grid-4,
  .device-grid,
  .spic-word,
  .audience-grid,
  .steps-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .reseller-ladder,
  .pricing-grid,
  .grid-3 {
    grid-template-columns: 1fr;
  }

  .footer-links {
    justify-content: flex-start;
  }
}

@media (max-width: 720px) {
  :root {
    --header-h: 66px;
  }

  .container {
    width: min(100% - 24px, 1180px);
  }

  .header-actions .btn-secondary,
  .brand small {
    display: none;
  }

  .hero {
    padding: 46px 0 34px;
  }

  .hero-product {
    min-height: auto;
  }

  h1,
  .page-hero h1 {
    font-size: 42px;
  }

  h2 {
    font-size: 31px;
  }

  .hero-subtitle {
    font-size: 20px;
  }

  .lead {
    font-size: 17px;
  }

  .hero-visual {
    min-height: 470px;
  }

  .platform-stack {
    position: static;
    width: 100%;
    margin-top: 12px;
  }

  .section {
    padding: 58px 0;
  }

  .section-head {
    display: grid;
    align-items: start;
  }

  .grid-4,
  .device-grid,
  .spic-word,
  .audience-grid,
  .steps-grid,
  .steps-3,
  .faq-grid,
  .inline-fields,
  .plan-selector,
  .payment-selector {
    grid-template-columns: 1fr;
  }

  .pricing-above-fold {
    padding-top: 24px;
  }

  .protected-ring button {
    width: 138px;
    height: 138px;
    font-size: 19px;
  }

  .mobile-cta {
    position: sticky;
    bottom: 0;
    z-index: 60;
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 8px;
    padding: 10px 12px;
    border-top: 1px solid var(--line);
    background: color-mix(in srgb, var(--bg) 88%, transparent);
    backdrop-filter: blur(16px);
  }
}

.partner-hero .hero-grid {
  align-items: center;
}

.partner-status-card {
  display: grid;
  gap: 16px;
}

.partner-status-card > strong {
  color: var(--accent);
  font-size: 42px;
  line-height: 1;
}

.partner-topbar {
  display: grid;
  grid-template-columns: minmax(220px, 320px) auto 1fr;
  align-items: end;
  gap: 14px;
}

.partner-kpi-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 16px;
}

.featured-kpi {
  border-color: rgba(54, 216, 255, 0.44);
  background:
    linear-gradient(180deg, rgba(54,216,255,0.10), transparent 48%),
    var(--surface);
}

.partner-roadmap article p {
  color: var(--muted);
  margin-top: 10px;
}

@media (max-width: 1060px) {
  .partner-topbar,
  .partner-kpi-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (max-width: 720px) {
  .partner-topbar,
  .partner-kpi-grid {
    grid-template-columns: 1fr;
  }
}

/* Multilingual switcher */
.language-switcher {
  position: relative;
  display: inline-flex;
  align-items: center;
  z-index: 90;
}

.language-current {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 7px;
  min-height: 38px;
  padding: 8px 11px;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: linear-gradient(180deg, color-mix(in srgb, var(--surface-2) 92%, white 8%), var(--surface-2));
  color: var(--text);
  font-weight: 900;
  cursor: pointer;
  box-shadow: 0 10px 28px rgba(0,0,0,0.12);
  transition: border-color .2s ease, background .2s ease, transform .2s ease, box-shadow .2s ease;
}

.language-current:hover,
.language-current:focus-visible,
.language-current[aria-expanded="true"] {
  outline: none;
  border-color: var(--line-strong);
  background: var(--surface);
  transform: translateY(-1px);
  box-shadow: 0 16px 36px rgba(0,0,0,0.18);
}

.language-caret {
  color: var(--muted);
  font-size: 12px;
  transition: transform .22s ease, color .22s ease;
}

.language-current[aria-expanded="true"] .language-caret {
  transform: rotate(180deg);
  color: var(--accent);
}

.language-menu {
  position: absolute;
  top: calc(100% + 10px);
  right: 0;
  display: grid;
  gap: 4px;
  min-width: 192px;
  padding: 8px;
  border: 1px solid var(--line);
  border-radius: 18px;
  background: color-mix(in srgb, var(--surface-3) 96%, transparent);
  box-shadow: 0 24px 70px rgba(0,0,0,0.32);
  backdrop-filter: blur(18px);
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
  transform: translateY(8px) scale(.98);
  transform-origin: top right;
  transition: opacity .18s ease, transform .18s ease, visibility .18s ease;
}

.language-menu.open,
.language-menu[data-open="true"] {
  opacity: 1;
  visibility: visible;
  pointer-events: auto;
  transform: translateY(0) scale(1);
}

.language-menu button {
  width: 100%;
  padding: 10px 11px;
  border: 0;
  border-radius: 12px;
  background: transparent;
  color: var(--text);
  text-align: left;
  font-weight: 750;
  cursor: pointer;
  transition: background .16s ease, color .16s ease, transform .16s ease;
}

.language-menu button:hover,
.language-menu button:focus-visible,
.language-menu button[aria-current="true"] {
  outline: none;
  background: var(--surface-2);
  color: var(--accent);
  transform: translateX(2px);
}

html[dir="rtl"] body {
  direction: rtl;
}

html[dir="rtl"] .brand,
html[dir="rtl"] .header-inner,
html[dir="rtl"] .header-actions,
html[dir="rtl"] .hero-actions,
html[dir="rtl"] .section-actions,
html[dir="rtl"] .link-row,
html[dir="rtl"] .checkout-actions,
html[dir="rtl"] .main-nav,
html[dir="rtl"] .footer-links,
html[dir="rtl"] .fake-input {
  flex-direction: row-reverse;
}

html[dir="rtl"] .language-menu {
  right: auto;
  left: 0;
}

html[dir="rtl"] .language-menu button,
html[dir="rtl"] input,
html[dir="rtl"] textarea {
  text-align: right;
}

html[dir="rtl"] .hero-product .hero-copy,
html[dir="rtl"] .section-head,
html[dir="rtl"] .panel,
html[dir="rtl"] .card,
html[dir="rtl"] .pricing-card {
  text-align: right;
}

@media (max-width: 720px) {
  .language-switcher {
    order: -1;
  }
  .language-menu {
    left: 0;
    right: auto;
  }
}

.language-switcher-floating {
  position: fixed;
  top: 16px;
  right: 16px;
}

html[dir="rtl"] .language-switcher-floating {
  right: auto;
  left: 16px;
}

/* Regional pricing */
.pricing-region-panel {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  margin: 0 0 22px;
  padding: 16px;
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  background: color-mix(in srgb, var(--surface-2) 82%, transparent);
  box-shadow: var(--shadow-soft);
}

.pricing-region-panel label {
  display: grid;
  gap: 8px;
  min-width: min(100%, 260px);
  color: var(--muted);
  font-size: 14px;
  font-weight: 800;
}

.pricing-region-panel select {
  width: 100%;
  min-height: 44px;
  padding: 10px 12px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--surface);
  color: var(--text);
  font: inherit;
  font-weight: 800;
}

.pricing-region-panel strong {
  display: block;
  margin-bottom: 4px;
}

.pricing-region-panel .muted {
  margin: 0;
}

html[dir="rtl"] .pricing-region-panel {
  flex-direction: row-reverse;
  text-align: right;
}

html[dir="rtl"] .pricing-region-panel select {
  text-align: right;
}

@media (max-width: 720px) {
  .pricing-region-panel {
    align-items: stretch;
    flex-direction: column;
  }
  html[dir="rtl"] .pricing-region-panel {
    flex-direction: column;
  }
}

/* ═══════════════════════════════════════════════════════════
   PREMIUM UPGRADE — fonts, animations, mobile nav, new sections
   ═══════════════════════════════════════════════════════════ */

/* ── Variables upgrade ── */
:root {
  --radius-lg: 14px;
  --shadow-soft: 0 8px 32px rgba(0,0,0,0.18);
  --font-display: 'Syne', 'Inter', system-ui, sans-serif;
  --font-body: 'Inter', 'Segoe UI', system-ui, sans-serif;
  --glow-cyan: 0 0 40px rgba(54,216,255,0.22);
  --glow-purple: 0 0 40px rgba(155,109,255,0.18);
}

body { font-family: var(--font-body); }
h1, h2 { font-family: var(--font-display); letter-spacing: 0; }
body.nav-open { overflow: hidden; }

/* ── @keyframes ── */
@keyframes pulse-ring {
  0%,100% { box-shadow: inset 0 0 22px rgba(255,255,255,0.28), 0 0 36px rgba(54,216,255,0.24); }
  50%      { box-shadow: inset 0 0 28px rgba(255,255,255,0.38), 0 0 60px rgba(54,216,255,0.42); }
}
@keyframes fade-up {
  from { opacity: 0; transform: translateY(28px); }
  to   { opacity: 1; transform: translateY(0); }
}
@keyframes shimmer-line {
  0%   { transform: translateX(-100%); }
  100% { transform: translateX(200%); }
}
@keyframes gradient-drift {
  0%,100% { background-position: 0% 50%; }
  50%      { background-position: 100% 50%; }
}
@keyframes float-y {
  0%,100% { transform: translateY(0); }
  50%      { transform: translateY(-10px); }
}
@keyframes spin-slow {
  to { transform: rotate(360deg); }
}
@keyframes dot-pulse {
  0%,100% { box-shadow: 0 0 0 0 rgba(66,211,146,0.6); }
  50%      { box-shadow: 0 0 0 8px rgba(66,211,146,0); }
}

/* Apply animations */
.protected-ring button { animation: pulse-ring 2.6s ease-in-out infinite; }
.status-dot.active     { animation: dot-pulse 2s ease-in-out infinite; }
.hero-visual           { animation: float-y 5s ease-in-out infinite; }

/* Scroll reveal — added via JS IntersectionObserver */
/* Reveal animation — only active when JS adds js-reveal to <html> */
.reveal { transition: opacity 0.6s ease, transform 0.6s ease; }
html.js-reveal .reveal { opacity: 0; transform: translateY(32px); }
html.js-reveal .reveal.visible { opacity: 1; transform: none; }
.reveal-delay-1 { transition-delay: 0.1s; }
.reveal-delay-2 { transition-delay: 0.2s; }
.reveal-delay-3 { transition-delay: 0.3s; }
.reveal-delay-4 { transition-delay: 0.4s; }

/* ── Hero animated gradient text ── */
.hero-gradient-text {
  background: linear-gradient(135deg, var(--accent) 0%, var(--accent-2) 40%, var(--accent-3) 70%, var(--accent) 100%);
  background-size: 200% 200%;
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  animation: gradient-drift 5s ease infinite;
}

/* ── Mobile hamburger nav ── */
.nav-toggle {
  display: none;
  width: 42px;
  height: 42px;
  padding: 0;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--surface);
  color: var(--text);
  cursor: pointer;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 5px;
}
.nav-toggle span {
  display: block;
  width: 20px;
  height: 2px;
  background: currentColor;
  border-radius: 2px;
  transition: transform 0.22s ease, opacity 0.22s ease;
}
.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); }

.mobile-nav-drawer {
  display: none;
  position: fixed;
  inset: var(--header-h) 0 0 0;
  z-index: 45;
  background: color-mix(in srgb, var(--bg) 96%, transparent);
  backdrop-filter: blur(24px);
  padding: 24px;
  overflow-y: auto;
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
  transform: translateX(100%);
  transition: transform 0.28s cubic-bezier(0.4, 0, 0.2, 1), opacity 0.22s ease, visibility 0.22s ease;
}
.mobile-nav-drawer.open { opacity: 1; visibility: visible; pointer-events: auto; transform: translateX(0); }
.mobile-nav-drawer nav a {
  display: block;
  padding: 14px 0;
  border-bottom: 1px solid var(--line);
  color: var(--text);
  text-decoration: none;
  font-size: 20px;
  font-weight: 700;
}
.mobile-nav-drawer .drawer-actions {
  display: grid;
  gap: 10px;
  margin-top: 24px;
}

@media (max-width: 1060px) {
  .nav-toggle { display: flex; }
  .mobile-nav-drawer { display: block; }
}

/* ── Theme toggle — sun/moon icons ── */
.theme-toggle::before { content: none; }
.theme-toggle { position: relative; overflow: hidden; }
.theme-toggle .icon-sun,
.theme-toggle .icon-moon {
  position: absolute;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 18px;
  transition: opacity 0.22s ease, transform 0.22s ease;
}
.theme-toggle .icon-sun  { opacity: 0; transform: rotate(90deg) scale(0.7); }
.theme-toggle .icon-moon { opacity: 1; transform: none; }
:root[data-theme="light"] .theme-toggle .icon-sun  { opacity: 1; transform: none; }
:root[data-theme="light"] .theme-toggle .icon-moon { opacity: 0; transform: rotate(-90deg) scale(0.7); }

/* ── Premium pricing cards ── */
.pricing-card {
  position: relative;
  overflow: hidden;
  transition: transform 0.22s ease, box-shadow 0.22s ease;
}
.pricing-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 28px 80px rgba(0,0,0,0.28), var(--glow-cyan);
}
.pricing-card.featured {
  border-color: rgba(54,216,255,0.5);
  box-shadow: 0 0 0 1px rgba(54,216,255,0.2), var(--glow-cyan);
}
.pricing-card.featured::after {
  content: "";
  position: absolute;
  top: 0; left: -60%; width: 40%; height: 100%;
  background: linear-gradient(90deg, transparent, rgba(255,255,255,0.06), transparent);
  animation: shimmer-line 3.2s ease-in-out infinite;
  pointer-events: none;
}
.pricing-card .badge-popular {
  position: absolute;
  top: -1px; right: 18px;
  padding: 5px 14px;
  background: var(--accent);
  color: #03111f;
  font-size: 11px;
  font-weight: 900;
  border-radius: 0 0 var(--radius) var(--radius);
  letter-spacing: 0.04em;
}
.pricing-card h3 {
  background: linear-gradient(135deg, var(--text) 40%, var(--muted) 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

/* ── Product lineup section ── */
.product-lineup {
  display: grid;
  grid-template-columns: repeat(5, minmax(0, 1fr));
  gap: 14px;
}
.product-card {
  position: relative;
  display: flex;
  flex-direction: column;
  gap: 12px;
  padding: 22px 18px;
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  background: var(--surface);
  transition: transform 0.2s ease, border-color 0.2s ease, box-shadow 0.2s ease;
  overflow: hidden;
}
.product-card:hover {
  transform: translateY(-4px);
  border-color: var(--line-strong);
  box-shadow: var(--shadow), var(--glow-cyan);
}
.product-card.pro-card {
  border-color: rgba(54,216,255,0.4);
  background: linear-gradient(160deg, rgba(54,216,255,0.09), transparent 55%), var(--surface);
}
.product-card.btw-card {
  border-color: rgba(155,109,255,0.4);
  background: linear-gradient(160deg, rgba(155,109,255,0.09), transparent 55%), var(--surface);
}
.product-card .product-icon {
  font-size: 26px;
  line-height: 1;
}
.product-card .product-name {
  font-size: 16px;
  font-weight: 900;
  margin: 0;
  font-family: var(--font-display);
}
.product-card .product-tagline {
  font-size: 13px;
  color: var(--muted);
  margin: 0;
  line-height: 1.5;
  flex: 1;
}
.product-card .product-badge {
  align-self: flex-start;
  padding: 4px 9px;
  border: 1px solid var(--line);
  border-radius: 4px;
  font-size: 11px;
  font-weight: 800;
  color: var(--muted);
  text-transform: uppercase;
  letter-spacing: 0.04em;
}
.product-card.pro-card .product-badge { color: var(--accent); border-color: rgba(54,216,255,0.3); }
.product-card.btw-card .product-badge { color: var(--accent-3); border-color: rgba(155,109,255,0.3); }

@media (max-width: 1060px) { .product-lineup { grid-template-columns: repeat(3, minmax(0, 1fr)); } }
@media (max-width: 720px)  { .product-lineup { grid-template-columns: repeat(2, minmax(0, 1fr)); } }

/* ── Bridge-to-World section ── */
.btw-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 48px;
  align-items: center;
}
.btw-visual {
  position: relative;
  min-height: 320px;
  display: grid;
  gap: 12px;
  align-content: center;
}
.btw-route {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 14px 18px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--surface);
  font-size: 14px;
  font-weight: 750;
}
.btw-route .route-dot {
  width: 10px; height: 10px;
  border-radius: 50%;
  flex-shrink: 0;
}
.btw-route .route-dot.green  { background: var(--success); box-shadow: 0 0 8px rgba(66,211,146,0.6); }
.btw-route .route-dot.cyan   { background: var(--accent);  box-shadow: 0 0 8px rgba(54,216,255,0.6); }
.btw-route .route-dot.purple { background: var(--accent-3);box-shadow: 0 0 8px rgba(155,109,255,0.6); }
.btw-route small { margin-left: auto; color: var(--muted); font-size: 12px; }
.btw-badge {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 6px 14px;
  border: 1px solid rgba(155,109,255,0.4);
  border-radius: var(--radius);
  background: rgba(155,109,255,0.09);
  color: var(--accent-3);
  font-size: 13px;
  font-weight: 800;
  margin-bottom: 14px;
}
@media (max-width: 1060px) { .btw-grid { grid-template-columns: 1fr; } }

/* ── DNS server section ── */
.dns-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 16px;
}
.dns-card {
  padding: 24px;
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  background: var(--surface);
  transition: transform 0.2s ease;
}
.dns-card:hover { transform: translateY(-3px); }
.dns-card .dns-icon {
  width: 46px; height: 46px;
  display: grid; place-items: center;
  border-radius: var(--radius);
  background: rgba(54,216,255,0.12);
  color: var(--accent);
  font-size: 22px;
  margin-bottom: 16px;
}
.dns-card h3 { font-size: 18px; margin-bottom: 10px; }
.dns-card p  { color: var(--muted); font-size: 14px; line-height: 1.6; margin: 0; }
@media (max-width: 720px) { .dns-grid { grid-template-columns: 1fr; } }

/* ── Competitor comparison ── */
.compare-table-wrap {
  overflow-x: auto;
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
}
.compare-table {
  width: 100%;
  border-collapse: collapse;
  min-width: 680px;
}
.compare-table th,
.compare-table td {
  padding: 15px 18px;
  border-bottom: 1px solid var(--line);
  text-align: center;
  font-size: 14px;
}
.compare-table th { color: var(--muted); font-weight: 800; font-size: 13px; background: var(--surface); }
.compare-table th:first-child,
.compare-table td:first-child { text-align: left; font-weight: 750; }
.compare-table tr:last-child td { border-bottom: none; }
.compare-table .col-spic { background: rgba(54,216,255,0.05); }
.compare-table .col-spic th { color: var(--accent); }
.compare-table td.check  { color: var(--success); font-weight: 900; font-size: 18px; }
.compare-table td.cross  { color: var(--muted-2); font-weight: 900; font-size: 18px; }
.compare-table td.partial{ color: var(--warning); font-size: 12px; font-weight: 800; }
.compare-table .price-spic { color: var(--accent); font-weight: 900; }

/* ── Improved hero ── */
.hero-tagline-dot {
  display: inline-block;
  width: 8px; height: 8px;
  border-radius: 50%;
  background: var(--accent);
  box-shadow: 0 0 12px rgba(54,216,255,0.7);
  margin-right: 8px;
  vertical-align: middle;
}
.hero-copy h1 { line-height: 0.96; }

/* ── Glassmorphism section band upgrade ── */
.section-band {
  background: color-mix(in srgb, var(--bg-2) 70%, transparent);
}

/* ── Shimmer on brand-mark ── */
.brand-mark {
  position: relative;
  overflow: hidden;
}
.brand-mark::after {
  content: "";
  position: absolute;
  top: -50%; left: -50%;
  width: 40%; height: 200%;
  background: linear-gradient(to bottom, transparent, rgba(255,255,255,0.18), transparent);
  transform: skewX(-15deg);
  animation: shimmer-line 3s ease-in-out infinite;
}

/* ── Improved card hover glow ── */
.card:hover {
  border-color: var(--line-strong);
  box-shadow: 0 20px 60px rgba(0,0,0,0.22), var(--glow-cyan);
  transition: border-color 0.2s ease, box-shadow 0.2s ease;
}

/* ── BtW platform badge ── */
.platform-badge {
  display: inline-flex;
  gap: 6px;
  align-items: center;
  padding: 5px 11px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  font-size: 12px;
  font-weight: 800;
  color: var(--muted);
}

/* ── Product lineup responsive ── */
@media (max-width: 720px) {
  .product-lineup { grid-template-columns: 1fr 1fr; }
  .btw-visual { min-height: auto; }
}

/* ── Improved footer ── */
.footer-grid {
  display: grid;
  grid-template-columns: 1fr 1.6fr;
  gap: 40px;
  align-items: start;
}
.footer-bottom {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  margin-top: 28px;
  padding-top: 20px;
  border-top: 1px solid var(--line);
  flex-wrap: wrap;
}
.footer-bottom p { margin: 0; color: var(--muted-2); font-size: 13px; }

/* Scenario assistant: guided flows only, no open-ended chat UI */
.assistant-panel {
  display: grid;
  gap: 18px;
  padding: 24px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background:
    linear-gradient(180deg, rgba(54,216,255,0.08), transparent 46%),
    var(--surface);
  box-shadow: 0 18px 60px rgba(0, 0, 0, 0.16);
}

.assistant-panel-compact {
  margin: 0 0 18px;
}

.assistant-panel-head {
  display: grid;
  gap: 8px;
}

.assistant-panel-head h2,
.assistant-result h3 {
  margin: 0;
}

.assistant-panel-head p,
.assistant-result p {
  margin: 0;
  color: var(--muted);
}

.assistant-choice-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 14px;
}

.assistant-choice-group,
.assistant-button-group {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.assistant-choice-group strong {
  flex-basis: 100%;
  font-size: 13px;
  color: var(--muted-2);
  text-transform: uppercase;
  letter-spacing: 0.04em;
}

.assistant-choice,
.assistant-topic {
  min-height: 42px;
  padding: 10px 13px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: rgba(255, 255, 255, 0.04);
  color: var(--text);
  cursor: pointer;
  font: inherit;
  font-weight: 700;
}

.assistant-choice[aria-pressed="true"],
.assistant-topic[aria-pressed="true"] {
  border-color: rgba(54, 216, 255, 0.62);
  background: rgba(54, 216, 255, 0.14);
  color: var(--accent);
}

.assistant-result {
  display: grid;
  gap: 10px;
  padding: 18px;
  border-left: 3px solid rgba(54, 216, 255, 0.62);
  background: rgba(255, 255, 255, 0.035);
}

.assistant-result .btn {
  width: fit-content;
}

.assistant-steps {
  counter-reset: assistant-step;
  display: grid;
  gap: 10px;
  margin: 0;
  padding: 0;
  list-style: none;
}

.assistant-steps li {
  counter-increment: assistant-step;
  display: grid;
  grid-template-columns: 32px 1fr;
  gap: 10px;
  align-items: start;
  color: var(--muted);
}

.assistant-steps li::before {
  content: counter(assistant-step);
  display: grid;
  width: 28px;
  height: 28px;
  place-items: center;
  border-radius: 50%;
  background: rgba(54, 216, 255, 0.14);
  color: var(--accent);
  font-size: 13px;
  font-weight: 900;
}

.assistant-action-row {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  align-items: center;
}

.assistant-mode-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 16px;
}

.checkout-helper {
  margin-top: 2px;
}

@media (max-width: 980px) {
  .assistant-choice-grid,
  .assistant-mode-grid {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 560px) {
  .assistant-panel {
    padding: 18px;
  }

  .assistant-choice,
  .assistant-topic {
    width: 100%;
  }
}
