/* ===========================================================
   MeshCentral landing — sirius.com.ua
   Стилістика: workos.com — мінімалізм, великі заголовки,
   тонкі межі, м'які тіні, акуратна типографіка.
   =========================================================== */

/* ---------- CSS Variables / Design tokens ---------- */
:root {
  /* Палітра акценту — синій (default) */
  --accent-50:  #eff6ff;
  --accent-100: #dbeafe;
  --accent-200: #bfdbfe;
  --accent-400: #60a5fa;
  --accent-500: #3b82f6;
  --accent-600: #2563eb;
  --accent-700: #1d4ed8;
  --accent-800: #1e40af;

  --accent:        var(--accent-600);
  --accent-hover:  var(--accent-700);
  --accent-soft:   var(--accent-50);
  --accent-ring:   color-mix(in srgb, var(--accent) 35%, transparent);

  /* Нейтральна шкала */
  --gray-25:  #fcfcfd;
  --gray-50:  #f8fafc;
  --gray-100: #f1f5f9;
  --gray-150: #ebeff5;
  --gray-200: #e2e8f0;
  --gray-300: #cbd5e1;
  --gray-400: #94a3b8;
  --gray-500: #64748b;
  --gray-600: #475569;
  --gray-700: #334155;
  --gray-800: #1e293b;
  --gray-900: #0f172a;
  --gray-950: #060a14;

  /* Семантика (світла тема — за замовч.) */
  --bg:         #ffffff;
  --bg-soft:    var(--gray-50);
  --bg-elev:    #ffffff;
  --surface:    #ffffff;
  --surface-2:  var(--gray-50);
  --border:     var(--gray-200);
  --border-strong: var(--gray-300);
  --text:       var(--gray-900);
  --text-muted: var(--gray-500);
  --text-soft:  var(--gray-600);
  --invert-bg:  var(--gray-950);
  --invert-text:#ffffff;

  /* Тіні */
  --shadow-xs: 0 1px 2px rgba(15,23,42,.04);
  --shadow-sm: 0 1px 3px rgba(15,23,42,.06), 0 1px 2px rgba(15,23,42,.04);
  --shadow-md: 0 4px 8px -2px rgba(15,23,42,.06), 0 2px 4px -2px rgba(15,23,42,.05);
  --shadow-lg: 0 12px 24px -8px rgba(15,23,42,.10), 0 4px 8px -4px rgba(15,23,42,.06);
  --shadow-xl: 0 24px 48px -12px rgba(15,23,42,.18);

  /* Радіуси */
  --r-xs: 6px;
  --r-sm: 8px;
  --r-md: 12px;
  --r-lg: 16px;
  --r-xl: 24px;
  --r-pill: 999px;

  /* Геометрія */
  --container: 1200px;
  --gutter: 32px;
  --section-py: clamp(72px, 9vw, 128px);

  /* Типографіка */
  --font-sans: 'Manrope', system-ui, -apple-system, 'Segoe UI', sans-serif;
  --font-mono: ui-monospace, 'JetBrains Mono', SFMono-Regular, Menlo, monospace;
}

/* Темна тема */
:root[data-theme="dark"] {
  --bg:         #0a0c12;
  --bg-soft:    #0e1118;
  --bg-elev:    #11151d;
  --surface:    #11151d;
  --surface-2:  #161b25;
  --border:     #1f2530;
  --border-strong: #2a3140;
  --text:       #f4f6fa;
  --text-muted: #8b94a7;
  --text-soft:  #b7bfd0;
  --invert-bg:  #f4f6fa;
  --invert-text:#0a0c12;

  --shadow-xs: 0 1px 2px rgba(0,0,0,.4);
  --shadow-sm: 0 1px 3px rgba(0,0,0,.5);
  --shadow-md: 0 6px 14px -4px rgba(0,0,0,.5);
  --shadow-lg: 0 18px 36px -10px rgba(0,0,0,.55);
  --shadow-xl: 0 30px 60px -16px rgba(0,0,0,.7);

  --accent-soft: color-mix(in srgb, var(--accent) 14%, transparent);
}

/* Акценти */
:root[data-accent="blue"] {
  --accent-50:#eff6ff; --accent-100:#dbeafe; --accent-200:#bfdbfe;
  --accent-400:#60a5fa; --accent-500:#3b82f6; --accent-600:#2563eb;
  --accent-700:#1d4ed8; --accent-800:#1e40af;
  --accent: var(--accent-600); --accent-hover: var(--accent-700);
}
:root[data-accent="violet"] {
  --accent-50:#f5f3ff; --accent-100:#ede9fe; --accent-200:#ddd6fe;
  --accent-400:#a78bfa; --accent-500:#8b5cf6; --accent-600:#7c3aed;
  --accent-700:#6d28d9; --accent-800:#5b21b6;
  --accent: var(--accent-600); --accent-hover: var(--accent-700);
}
:root[data-accent="indigo"] {
  --accent-50:#eef2ff; --accent-100:#e0e7ff; --accent-200:#c7d2fe;
  --accent-400:#818cf8; --accent-500:#6366f1; --accent-600:#4f46e5;
  --accent-700:#4338ca; --accent-800:#3730a3;
  --accent: var(--accent-600); --accent-hover: var(--accent-700);
}
:root[data-accent="graphite"] {
  --accent-50:#f1f5f9;  --accent-100:#e2e8f0; --accent-200:#cbd5e1;
  --accent-400:#64748b; --accent-500:#475569; --accent-600:#334155;
  --accent-700:#1e293b; --accent-800:#0f172a;
  --accent: var(--accent-700); --accent-hover: var(--accent-800);
}
:root[data-theme="dark"][data-accent="graphite"] {
  --accent: #94a3b8; --accent-hover: #cbd5e1;
}

/* ---------- Reset / Base ---------- */
*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  font-family: var(--font-sans);
  background: var(--bg);
  color: var(--text);
  font-size: 16px;
  line-height: 1.55;
  font-feature-settings: "ss01", "ss02", "cv11";
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  transition: background .25s ease, color .25s ease;
}
img, svg { display: block; max-width: 100%; }
a { color: inherit; text-decoration: none; }
button { font: inherit; cursor: pointer; }
:focus-visible {
  outline: 2px solid var(--accent);
  outline-offset: 2px;
  border-radius: 4px;
}

/* ---------- Layout ---------- */
.container {
  width: 100%;
  max-width: var(--container);
  margin: 0 auto;
  padding: 0 var(--gutter);
}
section { padding-block: var(--section-py); }

/* ---------- Eyebrow / labels ---------- */
.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-size: 13px;
  font-weight: 600;
  letter-spacing: .02em;
  color: var(--accent);
  padding: 6px 12px;
  background: var(--accent-soft);
  border: 1px solid color-mix(in srgb, var(--accent) 18%, transparent);
  border-radius: var(--r-pill);
  text-transform: uppercase;
}
.eyebrow .dot {
  width: 6px; height: 6px;
  border-radius: 50%;
  background: var(--accent);
  box-shadow: 0 0 0 4px color-mix(in srgb, var(--accent) 22%, transparent);
}

/* ---------- Headings ---------- */
h1, h2, h3, h4 {
  margin: 0;
  letter-spacing: -0.02em;
  line-height: 1.08;
  font-weight: 700;
  color: var(--text);
}
h1 { font-size: clamp(40px, 5.6vw, 76px); letter-spacing: -0.03em; }
h2 { font-size: clamp(32px, 4vw, 52px); }
h3 { font-size: clamp(20px, 1.6vw, 24px); line-height: 1.25; }
.lead {
  font-size: clamp(17px, 1.4vw, 20px);
  line-height: 1.55;
  color: var(--text-soft);
  max-width: 60ch;
}
.section-head { max-width: 720px; margin-bottom: 56px; }
.section-head .eyebrow { margin-bottom: 16px; }
.section-head h2 + p { margin-top: 18px; }

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  font-weight: 600;
  font-size: 15px;
  line-height: 1;
  padding: 14px 22px;
  border-radius: var(--r-sm);
  border: 1px solid transparent;
  transition: transform .12s ease, background .15s ease,
              box-shadow .2s ease, border-color .2s ease, color .2s ease;
  white-space: nowrap;
}
.btn:active { transform: translateY(1px); }
.btn-primary {
  background: var(--accent);
  color: #fff;
  box-shadow: 0 1px 0 rgba(255,255,255,.16) inset,
              0 6px 14px -4px var(--accent-ring);
}
.btn-primary:hover { background: var(--accent-hover); box-shadow: 0 10px 20px -6px var(--accent-ring); }
.btn-ghost {
  background: transparent;
  color: var(--text);
  border-color: var(--border);
}
.btn-ghost:hover { background: var(--surface-2); border-color: var(--border-strong); }
.btn-invert {
  background: var(--invert-bg);
  color: var(--invert-text);
}
.btn-invert:hover { background: color-mix(in srgb, var(--invert-bg) 88%, #fff); }
.btn-lg { padding: 16px 28px; font-size: 16px; }
.btn .arrow { transition: transform .15s ease; }
.btn:hover .arrow { transform: translateX(3px); }

/* ---------- Header ---------- */
.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  backdrop-filter: saturate(180%) blur(12px);
  -webkit-backdrop-filter: saturate(180%) blur(12px);
  background: color-mix(in srgb, var(--bg) 78%, transparent);
  border-bottom: 1px solid transparent;
  transition: border-color .2s ease, background .2s ease;
}
.site-header.is-scrolled { border-bottom-color: var(--border); }
.nav {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 68px;
}
.logo {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-weight: 700;
  letter-spacing: -0.01em;
  font-size: 16px;
}
.logo-mark {
  width: 28px; height: 28px;
  border-radius: 7px;
  background: linear-gradient(135deg, var(--accent), var(--accent-800));
  display: grid; place-items: center;
  color: #fff;
  box-shadow: var(--shadow-sm), inset 0 1px 0 rgba(255,255,255,.18);
}
.logo-mark svg { width: 16px; height: 16px; }
.logo-name b { font-weight: 700; }
.logo-name span { color: var(--text-muted); font-weight: 500; }

.nav-links {
  display: flex;
  align-items: center;
  gap: 28px;
  list-style: none;
  padding: 0; margin: 0;
}
.nav-links a {
  font-size: 14px;
  font-weight: 500;
  color: var(--text-soft);
  transition: color .15s ease;
}
.nav-links a:hover { color: var(--text); }
.nav-cta { display: flex; align-items: center; gap: 10px; }
.nav-toggle {
  display: none;
  width: 40px; height: 40px;
  border-radius: var(--r-sm);
  background: transparent;
  border: 1px solid var(--border);
  align-items: center; justify-content: center;
}
.nav-toggle svg { width: 18px; height: 18px; color: var(--text); }

/* ---------- Hero ---------- */
.hero {
  position: relative;
  padding-top: clamp(56px, 8vw, 96px);
  padding-bottom: clamp(64px, 9vw, 120px);
  overflow: hidden;
}
.hero-grid-bg {
  position: absolute;
  inset: 0;
  background-image:
    linear-gradient(to right, color-mix(in srgb, var(--border) 60%, transparent) 1px, transparent 1px),
    linear-gradient(to bottom, color-mix(in srgb, var(--border) 60%, transparent) 1px, transparent 1px);
  background-size: 64px 64px;
  mask-image: radial-gradient(ellipse 80% 70% at 50% 30%, #000 30%, transparent 75%);
  -webkit-mask-image: radial-gradient(ellipse 80% 70% at 50% 30%, #000 30%, transparent 75%);
  pointer-events: none;
  opacity: .6;
}
.hero-glow {
  position: absolute;
  top: -120px; left: 50%;
  width: 900px; height: 600px;
  transform: translateX(-50%);
  background: radial-gradient(closest-side, color-mix(in srgb, var(--accent) 22%, transparent), transparent 70%);
  filter: blur(20px);
  pointer-events: none;
  opacity: .85;
}
.hero-inner {
  position: relative;
  display: grid;
  grid-template-columns: 1.05fr 1fr;
  gap: 64px;
  align-items: center;
}
.hero-copy h1 { margin-top: 20px; }
.hero-copy .lead { margin-top: 22px; }
.hero-actions {
  margin-top: 36px;
  display: flex;
  gap: 12px;
  flex-wrap: wrap;
}
.hero-meta {
  margin-top: 22px;
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-size: 14px;
  color: var(--text-muted);
}
.hero-meta .badge {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 4px 10px;
  border-radius: var(--r-pill);
  background: var(--surface-2);
  border: 1px solid var(--border);
  font-weight: 500;
  color: var(--text-soft);
}
.hero-meta .badge::before {
  content: "";
  width: 6px; height: 6px;
  border-radius: 50%;
  background: #16a34a;
  box-shadow: 0 0 0 3px rgba(22,163,74,.18);
}

/* Hero visual — network mesh */
.hero-visual {
  position: relative;
  aspect-ratio: 1 / 1;
  max-width: 560px;
  margin-inline-start: auto;
  width: 100%;
}
.mesh-card {
  position: absolute;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--r-md);
  box-shadow: var(--shadow-lg);
  padding: 10px 12px;
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 12.5px;
  font-weight: 600;
  color: var(--text);
  z-index: 2;
  backdrop-filter: blur(8px);
}
.mesh-card .pulse {
  width: 8px; height: 8px;
  border-radius: 50%;
  background: #16a34a;
  box-shadow: 0 0 0 4px rgba(22,163,74,.18);
}
.mesh-card.is-warn .pulse { background: #f59e0b; box-shadow: 0 0 0 4px rgba(245,158,11,.2); }
.mesh-card .role { color: var(--text-muted); font-weight: 500; font-size: 11px; display: block; }
.mesh-card.c-1 { top: 6%;   left: 4%;  }
.mesh-card.c-2 { top: 18%;  right: 2%; }
.mesh-card.c-3 { bottom: 22%; left: 0%;  }
.mesh-card.c-4 { bottom: 6%; right: 8%; }
.mesh-hub {
  position: absolute;
  inset: 38% 38% 38% 38%;
  display: grid; place-items: center;
  background: linear-gradient(160deg, var(--accent), var(--accent-800));
  color: #fff;
  border-radius: 22px;
  box-shadow:
    0 24px 48px -12px var(--accent-ring),
    inset 0 1px 0 rgba(255,255,255,.25);
  z-index: 3;
}
.mesh-hub::after {
  content: "";
  position: absolute;
  inset: -14px;
  border-radius: 36px;
  border: 1px dashed color-mix(in srgb, var(--accent) 45%, transparent);
  animation: spin 30s linear infinite;
}
.mesh-hub svg { width: 38%; height: 38%; }
.mesh-svg {
  position: absolute;
  inset: 0;
  width: 100%; height: 100%;
  z-index: 1;
}
.mesh-line {
  stroke: var(--border-strong);
  stroke-width: 1.5;
  fill: none;
  stroke-dasharray: 4 6;
  opacity: .65;
}
.mesh-line.live {
  stroke: var(--accent);
  stroke-dasharray: 6 8;
  opacity: 1;
  animation: dash 1.4s linear infinite;
  filter: drop-shadow(0 0 6px color-mix(in srgb, var(--accent) 50%, transparent));
}
@keyframes dash { to { stroke-dashoffset: -28; } }
@keyframes spin { to { transform: rotate(360deg); } }

/* ---------- Trust strip ---------- */
.trust-strip {
  border-top: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
  padding-block: 32px;
  background: var(--bg);
}
.trust-strip .container {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 28px;
}
.trust-strip .label {
  font-size: 12px;
  text-transform: uppercase;
  letter-spacing: .14em;
  color: var(--text-muted);
  font-weight: 600;
}
.trust-stats {
  display: flex;
  align-items: center;
  gap: 40px;
  flex-wrap: wrap;
}
.trust-stat {
  display: flex;
  flex-direction: column;
  gap: 2px;
}
.trust-stat b {
  font-size: 22px;
  font-weight: 700;
  letter-spacing: -.01em;
  color: var(--text);
}
.trust-stat span {
  font-size: 13px;
  color: var(--text-muted);
}

/* ---------- Features (What is MeshCentral) ---------- */
.features-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 20px;
}
.feature-card {
  position: relative;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--r-lg);
  padding: 28px 24px 26px;
  box-shadow: var(--shadow-xs);
  transition: transform .2s ease, box-shadow .25s ease, border-color .2s ease;
  overflow: hidden;
}
.feature-card::before {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, var(--accent-soft), transparent 50%);
  opacity: 0;
  transition: opacity .25s ease;
  pointer-events: none;
}
.feature-card:hover {
  transform: translateY(-3px);
  border-color: color-mix(in srgb, var(--accent) 30%, var(--border));
  box-shadow: var(--shadow-lg);
}
.feature-card:hover::before { opacity: .6; }
.feature-icon {
  position: relative;
  width: 44px; height: 44px;
  border-radius: 10px;
  display: grid; place-items: center;
  background: var(--accent-soft);
  color: var(--accent);
  margin-bottom: 18px;
  border: 1px solid color-mix(in srgb, var(--accent) 20%, transparent);
}
.feature-icon svg { width: 22px; height: 22px; }
.feature-card h3 { position: relative; margin-bottom: 8px; }
.feature-card p { position: relative; color: var(--text-soft); font-size: 15px; margin: 0; }

/* ---------- Why us ---------- */
.why-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 56px;
  align-items: start;
}
.why-list {
  list-style: none;
  padding: 0; margin: 0;
  display: flex;
  flex-direction: column;
  gap: 14px;
}
.why-item {
  display: flex;
  gap: 16px;
  padding: 20px 22px;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--r-md);
  box-shadow: var(--shadow-xs);
  transition: border-color .2s ease, transform .2s ease;
}
.why-item:hover { border-color: var(--border-strong); transform: translateX(2px); }
.why-check {
  flex: none;
  width: 28px; height: 28px;
  border-radius: 50%;
  background: color-mix(in srgb, #16a34a 14%, transparent);
  color: #16a34a;
  display: grid; place-items: center;
  margin-top: 2px;
}
.why-check svg { width: 16px; height: 16px; stroke-width: 2.5; }
.why-item h4 {
  margin: 0 0 4px;
  font-size: 16px;
  font-weight: 600;
  color: var(--text);
}
.why-item p {
  margin: 0;
  color: var(--text-soft);
  font-size: 14.5px;
}
.why-aside {
  position: sticky;
  top: 96px;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--r-lg);
  padding: 32px;
  box-shadow: var(--shadow-md);
}
.why-aside .quote-mark {
  font-family: var(--font-sans);
  font-size: 56px;
  line-height: 1;
  color: var(--accent);
  font-weight: 800;
  margin-bottom: 8px;
}
.why-aside p {
  margin: 0;
  font-size: 17px;
  line-height: 1.55;
  color: var(--text);
}
.why-aside .author {
  margin-top: 22px;
  padding-top: 22px;
  border-top: 1px solid var(--border);
  display: flex;
  align-items: center;
  gap: 12px;
}
.why-aside .avatar {
  width: 40px; height: 40px;
  border-radius: 50%;
  background: linear-gradient(135deg, var(--accent), var(--accent-800));
  color: #fff;
  display: grid; place-items: center;
  font-weight: 700;
  font-size: 14px;
}
.why-aside .author small { display: block; color: var(--text-muted); font-size: 13px; }
.why-aside .author b { font-size: 14px; font-weight: 600; }

/* ---------- Benefits ---------- */
.benefits-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 0;
  border: 1px solid var(--border);
  border-radius: var(--r-lg);
  overflow: hidden;
  background: var(--surface);
}
.benefit {
  position: relative;
  padding: 32px;
  border-right: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
  display: flex;
  gap: 18px;
  transition: background .2s ease;
}
.benefit:hover { background: var(--surface-2); }
.benefit:nth-child(2n) { border-right: none; }
.benefit:nth-last-child(-n+2) { border-bottom: none; }
.benefit-icon {
  flex: none;
  width: 40px; height: 40px;
  border-radius: 10px;
  background: var(--accent-soft);
  color: var(--accent);
  display: grid; place-items: center;
  border: 1px solid color-mix(in srgb, var(--accent) 22%, transparent);
}
.benefit-icon svg { width: 20px; height: 20px; }
.benefit h4 {
  margin: 0 0 6px;
  font-size: 17px;
  font-weight: 600;
}
.benefit p {
  margin: 0;
  color: var(--text-soft);
  font-size: 14.5px;
  line-height: 1.55;
}

/* ---------- Comparison ---------- */
.compare-wrap {
  border: 1px solid var(--border);
  border-radius: var(--r-lg);
  background: var(--surface);
  overflow: hidden;
  box-shadow: var(--shadow-sm);
}
.compare-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 15px;
}
.compare-table th,
.compare-table td {
  padding: 18px 22px;
  text-align: left;
  border-bottom: 1px solid var(--border);
  vertical-align: middle;
}
.compare-table thead th {
  background: var(--surface-2);
  font-weight: 600;
  color: var(--text-soft);
  font-size: 13px;
  text-transform: uppercase;
  letter-spacing: .06em;
}
.compare-table thead th.is-us {
  background: linear-gradient(180deg, var(--accent-soft), transparent);
  color: var(--accent);
  position: relative;
}
.compare-table thead th.is-us::after {
  content: "";
  position: absolute;
  inset: auto 0 -1px 0;
  height: 2px;
  background: var(--accent);
}
.compare-table tbody tr:last-child td { border-bottom: none; }
.compare-table td:first-child {
  font-weight: 600;
  color: var(--text);
}
.compare-table td.is-us {
  background: color-mix(in srgb, var(--accent-soft) 60%, transparent);
  color: var(--text);
  font-weight: 600;
}
.compare-cell {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-size: 14.5px;
  color: var(--text-soft);
}
.compare-cell.yes { color: #16a34a; }
.compare-cell.no  { color: var(--text-muted); }
.compare-cell svg { width: 16px; height: 16px; flex: none; }

/* ---------- Pricing ---------- */
.pricing-wrap {
  display: grid;
  grid-template-columns: 1fr 1.4fr;
  gap: 56px;
  align-items: start;
}
.pricing-side h2 { margin-bottom: 18px; }
.pricing-side .lead { margin-bottom: 28px; }
.pricing-side ul {
  list-style: none;
  padding: 0; margin: 0;
  display: flex;
  flex-direction: column;
  gap: 12px;
}
.pricing-side li {
  display: flex;
  gap: 10px;
  font-size: 14.5px;
  color: var(--text-soft);
}
.pricing-side li svg {
  width: 18px; height: 18px;
  color: var(--accent);
  flex: none;
  margin-top: 2px;
}
.pricing-table {
  border: 1px solid var(--border);
  border-radius: var(--r-lg);
  background: var(--surface);
  overflow: hidden;
  box-shadow: var(--shadow-md);
}
.pricing-table table {
  width: 100%;
  border-collapse: collapse;
  font-size: 16px;
}
.pricing-table thead th {
  text-align: left;
  padding: 18px 28px;
  background: var(--surface-2);
  font-size: 13px;
  text-transform: uppercase;
  letter-spacing: .08em;
  color: var(--text-muted);
  font-weight: 600;
  border-bottom: 1px solid var(--border);
}
.pricing-table tbody tr {
  transition: background .15s ease;
}
.pricing-table tbody tr:hover { background: var(--surface-2); }
.pricing-table tbody td {
  padding: 18px 28px;
  border-bottom: 1px solid var(--border);
}
.pricing-table tbody tr:last-child td { border-bottom: none; }
.pricing-table .range {
  font-weight: 600;
  color: var(--text);
}
.pricing-table .range small {
  display: block;
  color: var(--text-muted);
  font-size: 13px;
  font-weight: 500;
  margin-top: 2px;
}
.pricing-table .price {
  font-weight: 700;
  font-size: 18px;
  color: var(--text);
  text-align: right;
}
.pricing-table .price small {
  font-size: 13px;
  font-weight: 500;
  color: var(--text-muted);
  margin-left: 2px;
}
.pricing-foot {
  padding: 18px 28px;
  background: var(--surface-2);
  border-top: 1px solid var(--border);
  font-size: 13.5px;
  color: var(--text-muted);
}

/* ---------- Pricing calculator (slider) ---------- */
.pricing-hero-head {
  max-width: 700px;
  margin-bottom: 48px;
}
.pricing-calc {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--r-xl);
  padding: clamp(32px, 4vw, 56px);
  box-shadow: var(--shadow-lg);
}

/* count display */
.pc-count-row {
  display: flex;
  align-items: baseline;
  gap: 14px;
  margin-bottom: 32px;
}
.pc-count-num {
  font-size: clamp(40px, 5vw, 64px);
  font-weight: 800;
  letter-spacing: -0.04em;
  line-height: 1;
  color: var(--text);
  transition: all .15s ease;
  min-width: 3.5ch;
}
.pc-count-label {
  font-size: clamp(16px, 1.5vw, 20px);
  color: var(--text-muted);
  font-weight: 500;
}

/* slider track */
.slider-wrap { position: relative; }
.slider-ticks {
  display: flex;
  justify-content: space-between;
  margin-bottom: 8px;
  padding: 0 2px;
}
.slider-ticks span {
  font-size: 12.5px;
  color: var(--text-muted);
  font-weight: 500;
  font-variant-numeric: tabular-nums;
}
.slider-track-wrap {
  position: relative;
  height: 28px;
  display: flex;
  align-items: center;
}
.slider-track {
  position: absolute;
  inset: 50% 0 auto 0;
  transform: translateY(-50%);
  height: 6px;
  border-radius: 999px;
  background: var(--gray-200);
  pointer-events: none;
  overflow: visible;
}
:root[data-theme="dark"] .slider-track { background: var(--border-strong); }
.slider-fill {
  position: absolute;
  left: 0; top: 0; bottom: 0;
  border-radius: 999px;
  background: var(--text);
  transition: width .2s cubic-bezier(.4,0,.2,1);
  width: 0%;
}

/* range input — reset + restyle */
input[type="range"]#pricingSlider {
  -webkit-appearance: none;
  appearance: none;
  width: 100%;
  height: 28px;
  background: transparent;
  cursor: pointer;
  position: relative;
  z-index: 2;
  margin: 0;
  padding: 0;
}
input[type="range"]#pricingSlider::-webkit-slider-thumb {
  -webkit-appearance: none;
  width: 24px; height: 24px;
  border-radius: 50%;
  background: var(--text);
  border: 3px solid var(--bg);
  box-shadow: 0 0 0 1px var(--border-strong), var(--shadow-md);
  transition: transform .1s ease, box-shadow .15s ease;
}
input[type="range"]#pricingSlider:hover::-webkit-slider-thumb {
  transform: scale(1.12);
  box-shadow: 0 0 0 1px var(--border-strong), 0 0 0 6px color-mix(in srgb, var(--text) 10%, transparent), var(--shadow-md);
}
input[type="range"]#pricingSlider:active::-webkit-slider-thumb {
  transform: scale(1.0);
}
input[type="range"]#pricingSlider::-moz-range-thumb {
  width: 24px; height: 24px;
  border-radius: 50%;
  background: var(--text);
  border: 3px solid var(--bg);
  box-shadow: 0 0 0 1px var(--border-strong), var(--shadow-md);
  cursor: pointer;
}
input[type="range"]#pricingSlider:focus-visible {
  outline: none;
}
input[type="range"]#pricingSlider:focus-visible::-webkit-slider-thumb {
  box-shadow: 0 0 0 3px var(--accent-ring), var(--shadow-md);
}

/* chips */
.slider-chips {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 16px;
}
.slider-chip {
  display: inline-flex;
  align-items: center;
  padding: 5px 10px;
  border-radius: var(--r-pill);
  font-size: 12.5px;
  font-weight: 600;
  color: var(--text-muted);
  background: var(--surface-2);
  border: 1px solid var(--border);
  transition: all .18s ease;
  cursor: default;
  user-select: none;
}
.slider-chip.active {
  background: var(--accent-soft);
  border-color: color-mix(in srgb, var(--accent) 30%, transparent);
  color: var(--accent);
}

/* divider */
.pricing-divider {
  border: none;
  border-top: 1px solid var(--border);
  margin: 36px 0 32px;
}

/* output row */
.pricing-output {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  flex-wrap: wrap;
}
.pricing-total {
  display: flex;
  align-items: baseline;
  gap: 8px;
}
.pricing-total-num {
  font-size: clamp(36px, 4.5vw, 56px);
  font-weight: 800;
  letter-spacing: -0.04em;
  line-height: 1;
  color: var(--text);
  transition: all .15s ease;
  font-variant-numeric: tabular-nums;
}
.pricing-total-unit {
  font-size: clamp(18px, 2vw, 22px);
  font-weight: 700;
  color: var(--text);
}
.pricing-note {
  margin-top: 8px;
  font-size: 14px;
  color: var(--text-muted);
}
.pricing-foot-note {
  margin: 20px 0 0;
  font-size: 13px;
  color: var(--text-muted);
}

/* ---------- CTA block ---------- */
.cta-block {
  background: var(--invert-bg);
  color: var(--invert-text);
  border-radius: var(--r-xl);
  padding: clamp(48px, 6vw, 80px);
  position: relative;
  overflow: hidden;
  isolation: isolate;
}
.cta-block::before {
  content: "";
  position: absolute;
  inset: -40%;
  background: radial-gradient(ellipse at 80% 20%,
              color-mix(in srgb, var(--accent) 45%, transparent),
              transparent 60%);
  z-index: -1;
}
.cta-block::after {
  content: "";
  position: absolute;
  inset: 0;
  background-image:
    linear-gradient(to right, rgba(255,255,255,.06) 1px, transparent 1px),
    linear-gradient(to bottom, rgba(255,255,255,.06) 1px, transparent 1px);
  background-size: 48px 48px;
  mask-image: radial-gradient(ellipse at 50% 50%, #000, transparent 70%);
  z-index: -1;
}
.cta-block h2 {
  color: var(--invert-text);
  max-width: 18ch;
  margin-bottom: 18px;
}
.cta-block p {
  font-size: 18px;
  color: color-mix(in srgb, var(--invert-text) 70%, transparent);
  max-width: 56ch;
  margin: 0 0 32px;
}
.cta-actions { display: flex; gap: 12px; flex-wrap: wrap; align-items: center; }
.cta-block .btn-primary { background: var(--accent); color: #fff; }
.cta-block .btn-primary:hover { background: var(--accent-hover); }
.cta-block .btn-ghost {
  color: var(--invert-text);
  border-color: color-mix(in srgb, var(--invert-text) 24%, transparent);
}
.cta-block .btn-ghost:hover { background: color-mix(in srgb, var(--invert-text) 8%, transparent); }
.cta-block .note {
  margin-left: 8px;
  font-size: 14px;
  color: color-mix(in srgb, var(--invert-text) 55%, transparent);
}

/* ---------- Form ---------- */
.form-section {
  background: var(--bg-soft);
  border-top: 1px solid var(--border);
}
.form-wrap {
  display: grid;
  grid-template-columns: 1fr 1.2fr;
  gap: 64px;
  align-items: start;
}
.form-side h2 { margin-bottom: 18px; }
.form-side .lead { margin-bottom: 28px; }
.form-contacts {
  display: flex;
  flex-direction: column;
  gap: 16px;
  margin-top: 28px;
}
.form-contact {
  display: flex;
  align-items: center;
  gap: 12px;
  font-size: 14.5px;
  color: var(--text);
}
.form-contact .icon {
  width: 36px; height: 36px;
  border-radius: 10px;
  background: var(--surface);
  border: 1px solid var(--border);
  display: grid; place-items: center;
  color: var(--accent);
}
.form-contact .icon svg { width: 18px; height: 18px; }
.form-contact small { display: block; color: var(--text-muted); font-size: 12px; }

.form-card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--r-lg);
  padding: 36px;
  box-shadow: var(--shadow-lg);
}
.form-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 18px;
}
.form-field { display: flex; flex-direction: column; gap: 6px; }
.form-field.full { grid-column: 1 / -1; }
.form-field label {
  font-size: 13px;
  font-weight: 600;
  color: var(--text);
}
.form-field label .req { color: var(--accent); }
.form-field input,
.form-field select,
.form-field textarea {
  font: inherit;
  font-size: 15px;
  padding: 12px 14px;
  border-radius: var(--r-sm);
  border: 1px solid var(--border);
  background: var(--bg);
  color: var(--text);
  transition: border-color .15s ease, box-shadow .15s ease, background .15s ease;
}
.form-field input:focus,
.form-field select:focus,
.form-field textarea:focus {
  outline: none;
  border-color: var(--accent);
  box-shadow: 0 0 0 4px var(--accent-ring);
}
.form-field textarea { resize: vertical; min-height: 110px; }
.form-field .error-msg {
  font-size: 12.5px;
  color: #dc2626;
  display: none;
}
.form-field.is-invalid input,
.form-field.is-invalid select,
.form-field.is-invalid textarea { border-color: #dc2626; }
.form-field.is-invalid .error-msg { display: block; }
.form-submit {
  margin-top: 22px;
  display: flex;
  align-items: center;
  gap: 14px;
  flex-wrap: wrap;
}
.form-submit small { color: var(--text-muted); font-size: 13px; }
.form-success {
  display: none;
  padding: 18px 20px;
  background: color-mix(in srgb, #16a34a 8%, transparent);
  border: 1px solid color-mix(in srgb, #16a34a 28%, transparent);
  border-radius: var(--r-md);
  color: #15803d;
  font-size: 14.5px;
  font-weight: 500;
  align-items: center;
  gap: 12px;
}
.form-success.is-shown { display: flex; }
.form-success svg { width: 22px; height: 22px; flex: none; }
:root[data-theme="dark"] .form-success { color: #6ee7b7; }

/* ---------- Footer ---------- */
.site-footer {
  background: var(--gray-950);
  color: var(--gray-300);
  padding-block: 64px 32px;
}
:root[data-theme="dark"] .site-footer { background: #050709; }
.footer-grid {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr 1fr;
  gap: 48px;
  margin-bottom: 48px;
}
.footer-brand .logo { color: #fff; }
.footer-brand .logo span { color: var(--gray-400); }
.footer-brand p {
  margin: 18px 0 22px;
  font-size: 14px;
  color: var(--gray-400);
  max-width: 36ch;
}
.footer-socials {
  display: flex;
  gap: 10px;
}
.footer-socials a {
  width: 36px; height: 36px;
  border-radius: 10px;
  background: rgba(255,255,255,.04);
  border: 1px solid rgba(255,255,255,.08);
  display: grid; place-items: center;
  color: var(--gray-300);
  transition: background .15s ease, color .15s ease;
}
.footer-socials a:hover { background: rgba(255,255,255,.08); color: #fff; }
.footer-socials svg { width: 16px; height: 16px; }
.footer-col h5 {
  margin: 0 0 16px;
  font-size: 12px;
  text-transform: uppercase;
  letter-spacing: .12em;
  color: var(--gray-400);
  font-weight: 600;
}
.footer-col ul { list-style: none; padding: 0; margin: 0; display: flex; flex-direction: column; gap: 10px; }
.footer-col a { font-size: 14px; color: var(--gray-300); transition: color .15s ease; }
.footer-col a:hover { color: #fff; }
.footer-bar {
  padding-top: 28px;
  border-top: 1px solid rgba(255,255,255,.08);
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 16px;
  font-size: 13px;
  color: var(--gray-400);
}
.footer-bar .legal { display: flex; gap: 22px; }

/* ---------- Tweaks panel ---------- */
.tweaks-panel {
  position: fixed;
  right: 20px; bottom: 20px;
  width: 280px;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--r-md);
  box-shadow: var(--shadow-xl);
  padding: 18px;
  z-index: 9999;
  font-family: var(--font-sans);
  display: none;
}
.tweaks-panel.is-open { display: block; }
.tweaks-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 14px;
}
.tweaks-head h6 {
  margin: 0;
  font-size: 13px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: .1em;
  color: var(--text-muted);
}
.tweaks-close {
  background: transparent;
  border: 0;
  width: 24px; height: 24px;
  display: grid; place-items: center;
  color: var(--text-muted);
  border-radius: 6px;
}
.tweaks-close:hover { background: var(--surface-2); color: var(--text); }
.tweak-row { margin-bottom: 14px; }
.tweak-row:last-child { margin-bottom: 0; }
.tweak-row .label {
  display: block;
  font-size: 12px;
  font-weight: 600;
  color: var(--text-soft);
  margin-bottom: 8px;
  text-transform: uppercase;
  letter-spacing: .06em;
}
.tweak-seg {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 6px;
  padding: 4px;
  background: var(--surface-2);
  border-radius: var(--r-sm);
}
.tweak-seg button {
  background: transparent;
  border: 0;
  padding: 8px 10px;
  border-radius: 6px;
  font-size: 13px;
  font-weight: 500;
  color: var(--text-soft);
  transition: all .15s ease;
}
.tweak-seg button.is-active {
  background: var(--surface);
  color: var(--text);
  box-shadow: var(--shadow-xs);
}
.tweak-swatches {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 8px;
}
.tweak-swatch {
  height: 40px;
  border-radius: 10px;
  border: 2px solid var(--border);
  cursor: pointer;
  background: var(--swatch);
  position: relative;
  transition: transform .12s ease, border-color .15s ease;
}
.tweak-swatch:hover { transform: translateY(-1px); }
.tweak-swatch.is-active {
  border-color: var(--text);
  box-shadow: 0 0 0 2px var(--bg), 0 0 0 4px var(--text);
}

/* ---------- Responsive ---------- */
@media (max-width: 1024px) {
  .hero-inner { grid-template-columns: 1fr; gap: 56px; }
  .hero-visual { margin-inline: auto; max-width: 480px; }
  .why-grid { grid-template-columns: 1fr; gap: 36px; }
  .why-aside { position: static; }
  .pricing-wrap { grid-template-columns: 1fr; gap: 36px; }
  .form-wrap { grid-template-columns: 1fr; gap: 36px; }
  .features-grid { grid-template-columns: repeat(2, 1fr); }
}

@media (max-width: 1024px) {
  .nav-links { display: none; }
  .nav-toggle { display: inline-flex; }
  .nav-cta .btn-ghost { display: none; }
}

@media (max-width: 768px) {
  :root { --gutter: 20px; }
  h1 { font-size: clamp(34px, 9vw, 48px); }
  h2 { font-size: clamp(28px, 7vw, 38px); }
  .features-grid { grid-template-columns: 1fr; }
  .benefits-grid { grid-template-columns: 1fr; }
  .benefit { border-right: none !important; }
  .benefit:nth-last-child(2) { border-bottom: 1px solid var(--border); }
  .form-grid { grid-template-columns: 1fr; }
  .form-card { padding: 24px; }
  .footer-grid {
    grid-template-columns: 1fr 1fr;
    gap: 36px;
  }
  .footer-brand { grid-column: 1 / -1; }
  .footer-bar { flex-direction: column; align-items: flex-start; }
  .trust-stats { gap: 24px; }
  .compare-table th, .compare-table td { padding: 14px 14px; font-size: 14px; }
  .pricing-table thead th,
  .pricing-table tbody td { padding: 14px 18px; }
  .cta-block { padding: 40px 28px; border-radius: var(--r-lg); }
  .hero-meta { flex-direction: column; align-items: flex-start; }
}

@media (max-width: 480px) {
  :root { --gutter: 16px; --section-py: 64px; }
  .nav { height: 60px; }
  .hero { padding-top: 40px; padding-bottom: 56px; }
  .hero-actions { width: 100%; }
  .hero-actions .btn { flex: 1; justify-content: center; }
  .compare-table thead th:not(:first-child),
  .compare-table tbody td:not(:first-child) {
    font-size: 11px;
    padding: 12px 8px;
  }
  .compare-cell { font-size: 12px; gap: 4px; }
  .compare-cell svg { width: 14px; height: 14px; }
  .pricing-table .price { font-size: 16px; }
  .form-card { padding: 20px; }
  .tweaks-panel { width: calc(100vw - 32px); right: 16px; left: 16px; bottom: 16px; }
}

/* Reduced motion */
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    animation-duration: .01ms !important;
    transition-duration: .01ms !important;
  }
}
