/* Mascarata Landing Page — Standalone CSS */
:root {
  --bg: #ffffff;
  --bg-alt: #f9fafb;
  --text: #1f2937;
  --text-muted: #6b7280;
  --accent: #5569AA;
  --accent-hover: #45568d;
  --accent-light: rgba(85, 105, 170, 0.1);
  --border: #e5e7eb;
  --panel: #ffffff;
  --green: #10b981;
  --red: #ef4444;
  --code-bg: #1e1e2e;
}

* { box-sizing: border-box; }

body {
  margin: 0;
  padding: 0;
  font-family: 'Inter', -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
  color: var(--text);
  line-height: 1.6;
  background: var(--bg);
  scroll-behavior: smooth;
}

.container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 24px;
}

/* ──────────────────────────────────────
   HEADER
────────────────────────────────────── */
header {
  background: rgba(255, 255, 255, 0.92);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  position: sticky;
  top: 0;
  z-index: 1000;
  border-bottom: 1px solid var(--border);
  padding: 14px 0;
  transition: padding 0.3s, box-shadow 0.3s;
}

.header-content {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 16px;
}

.logo-area {
  display: flex;
  align-items: center;
  gap: 12px;
  text-decoration: none;
  color: inherit;
  flex-shrink: 0;
}

.logo-area img { width: 40px; height: 40px; }

.logo-text {
  font-size: 22px;
  font-weight: 700;
  background: linear-gradient(135deg, #5569AA, #7E66AC);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

nav ul {
  display: flex;
  gap: 24px;
  list-style: none;
  margin: 0;
  padding: 0;
}

nav ul a {
  text-decoration: none;
  color: var(--text-muted);
  font-weight: 500;
  font-size: 14px;
  transition: color 0.2s;
}

nav ul a:hover { color: var(--accent); }

/* ── Nav dropdown ── */
.nav-has-dropdown { position: relative; }

.nav-dropdown-toggle::after {
  content: ' ▾';
  font-size: 9px;
  vertical-align: middle;
  opacity: 0.6;
}

.nav-dropdown-menu {
  display: block; /* override inherited nav ul flex */
  position: absolute;
  top: 100%;
  left: -14px;
  list-style: none;
  margin: 0;
  padding: 10px 0 6px;
  gap: 0;
  background: #fff;
  border: 1px solid var(--border);
  border-radius: 10px;
  box-shadow: 0 8px 24px rgba(0,0,0,0.1);
  min-width: 190px;
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
  transition: opacity 0.18s, visibility 0.18s;
  z-index: 200;
}

.nav-has-dropdown:hover .nav-dropdown-menu,
.nav-has-dropdown:focus-within .nav-dropdown-menu,
.nav-has-dropdown.open .nav-dropdown-menu {
  opacity: 1;
  visibility: visible;
  pointer-events: auto;
}

.nav-dropdown-menu li { padding: 0; gap: 0; }

.nav-dropdown-menu li a {
  display: block;
  padding: 8px 18px;
  font-size: 14px;
  color: var(--text-muted);
  font-weight: 500;
  white-space: nowrap;
  transition: background 0.15s, color 0.15s;
}

.nav-dropdown-menu li a:hover {
  background: var(--bg-alt);
  color: var(--accent);
}

.nav-demo-link {
  color: var(--accent) !important;
  font-weight: 600 !important;
}

.header-actions {
  display: flex;
  align-items: center;
  gap: 12px;
  flex-shrink: 0;
}

.version-tag {
  font-size: 11px;
  background: rgba(255,255,255,0.25);
  border-radius: 4px;
  padding: 1px 5px;
  margin-left: 4px;
}

/* Language switcher */
.lang-switcher {
  display: flex;
  align-items: center;
  gap: 1px;
}

.lang-btn {
  background: none;
  border: none;
  cursor: pointer;
  font-size: 12px;
  font-weight: 600;
  padding: 4px 7px;
  border-radius: 4px;
  color: var(--text-muted);
  letter-spacing: 0.05em;
  line-height: 1;
  transition: color 0.15s, background 0.15s;
}

.lang-btn:hover { color: var(--accent); }

.lang-btn.active {
  color: var(--accent);
  background: var(--accent-light);
}

.lang-sep {
  color: var(--border);
  font-size: 12px;
  user-select: none;
  padding: 0 1px;
}

.nav-download-mobile { display: none; }

/* Hamburger */
.hamburger {
  display: none;
  flex-direction: column;
  gap: 5px;
  background: none;
  border: none;
  cursor: pointer;
  padding: 4px;
}

.hamburger span {
  display: block;
  width: 22px;
  height: 2px;
  background: var(--text);
  border-radius: 2px;
  transition: all 0.25s;
}

.hamburger.open span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.hamburger.open span:nth-child(2) { opacity: 0; }
.hamburger.open span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

/* ──────────────────────────────────────
   HERO
────────────────────────────────────── */
.hero {
  padding: 110px 0 90px;
  background:
    radial-gradient(circle at 80% 20%, rgba(126, 102, 172, 0.07), transparent 50%),
    radial-gradient(circle at 20% 80%, rgba(85, 105, 170, 0.07), transparent 50%);
}

.hero-badge {
  display: inline-block;
  background: var(--accent-light);
  color: var(--accent);
  border: 1px solid rgba(85, 105, 170, 0.2);
  border-radius: 20px;
  padding: 5px 16px;
  font-size: 13px;
  font-weight: 600;
  margin-bottom: 28px;
  letter-spacing: 0.3px;
}

.hero h1 {
  font-size: 56px;
  font-weight: 800;
  margin: 0 0 24px;
  letter-spacing: -1.5px;
  line-height: 1.1;
}

.hero-cols {
  display: flex;
  align-items: center;
  gap: 56px;
}

.hero-text {
  flex: 1;
  min-width: 0;
}

.hero-image {
  flex: 0 0 460px;
  max-width: 460px;
}

.hero-img {
  width: 100%;
  height: auto;
  border-radius: 20px;
  display: block;
  filter: drop-shadow(0 16px 48px rgba(85, 105, 170, 0.25));
}

.hero-sub {
  font-size: 19px;
  color: var(--text-muted);
  max-width: 600px;
  margin: 0 auto 40px;
  line-height: 1.65;
}

.hero-ctas {
  display: flex;
  justify-content: flex-start;
  gap: 14px;
  flex-wrap: wrap;
}

/* Stats strip */
.hero-stats {
  display: flex;
  justify-content: flex-start;
  align-items: center;
  gap: 0;
  margin-top: 64px;
  flex-wrap: wrap;
  gap: 20px;
}

.stat {
  text-align: center;
  min-width: 120px;
}

.stat-num {
  display: block;
  font-size: 38px;
  font-weight: 800;
  color: var(--accent);
  line-height: 1;
}

.stat-label {
  display: block;
  font-size: 13px;
  color: var(--text-muted);
  margin-top: 4px;
}

.stat-divider {
  width: 1px;
  height: 40px;
  background: var(--border);
}

/* ──────────────────────────────────────
   GENERIC SECTION
────────────────────────────────────── */
section { padding: 96px 0; }
.bg-alt { background: var(--bg-alt); }

.section-header {
  text-align: center;
  margin-bottom: 64px;
}

.section-header h2 {
  font-size: 36px;
  font-weight: 700;
  margin: 0 0 14px;
  letter-spacing: -0.5px;
}

.section-header p {
  color: var(--text-muted);
  max-width: 580px;
  margin: 0 auto;
  font-size: 17px;
}

/* ──────────────────────────────────────
   WHY MASCARATA
────────────────────────────────────── */
.why-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 30px;
}

.why-col {
  border-radius: 16px;
  padding: 36px;
  border: 1px solid var(--border);
}

.why-col-problems { background: #fff5f5; border-color: #fecaca; }
.why-col-solution { background: #f0fdf4; border-color: #bbf7d0; }

.why-col-title {
  font-size: 18px;
  font-weight: 700;
  margin: 0 0 20px;
}

.why-col-title-bad { color: #dc2626; }
.why-col-title-good { color: #16a34a; }

.why-list {
  list-style: none;
  padding: 0;
  margin: 0;
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.why-list li {
  font-size: 15px;
  display: flex;
  align-items: flex-start;
  gap: 10px;
}

.why-list-bad li::before {
  content: '✗';
  color: var(--red);
  font-weight: 700;
  flex-shrink: 0;
  margin-top: 1px;
}

.why-list-good li::before {
  content: '✓';
  color: var(--green);
  font-weight: 700;
  flex-shrink: 0;
  margin-top: 1px;
}

/* ──────────────────────────────────────
   HOW IT WORKS — ARCHITECTURE FLOW
────────────────────────────────────── */
.arch-flow {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 12px;
  flex-wrap: wrap;
  margin-bottom: 64px;
}

.arch-step {
  text-align: center;
  padding: 24px 28px;
  background: var(--panel);
  border: 1px solid var(--border);
  border-radius: 14px;
  min-width: 180px;
}

.arch-step-center {
  background: var(--accent);
  border-color: var(--accent);
  color: #fff;
  box-shadow: 0 8px 32px rgba(85, 105, 170, 0.25);
}

.arch-step-icon { font-size: 32px; margin-bottom: 10px; }
.arch-logo-icon { width: 36px; height: 36px; filter: brightness(0) invert(1); display: block; }

.arch-step-label {
  font-weight: 700;
  font-size: 16px;
  margin-bottom: 4px;
}

.arch-step-center .arch-step-sub { color: rgba(255,255,255,0.85); }

.arch-step-sub {
  font-size: 13px;
  color: var(--text-muted);
  line-height: 1.4;
}

.arch-arrow {
  font-size: 28px;
  color: var(--accent);
  font-weight: 700;
}

/* How steps */
.how-steps {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: 24px;
}

.how-step {
  display: flex;
  gap: 18px;
  align-items: flex-start;
  padding: 28px;
  background: var(--panel);
  border: 1px solid var(--border);
  border-radius: 14px;
}

.how-step-num {
  width: 40px;
  height: 40px;
  background: var(--accent);
  color: #fff;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 700;
  font-size: 16px;
  flex-shrink: 0;
}

.how-step-body h4 {
  font-size: 16px;
  font-weight: 600;
  margin: 0 0 8px;
}

.how-step-body p {
  font-size: 14px;
  color: var(--text-muted);
  margin: 0;
}

/* ── How it Works — Real-world lab image ─── */
.how-real-world {
  margin: 0 auto 64px;
  max-width: 1000px;
  text-align: center;
}

.how-lab-img {
  width: 100%;
  height: auto;
  border-radius: 20px;
  display: block;
  filter: drop-shadow(0 16px 48px rgba(85, 105, 170, 0.2));
}

/* ──────────────────────────────────────
   PROTOCOLS
────────────────────────────────────── */
.protocols-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 24px;
}

.protocol-card {
  background: var(--panel);
  border: 1px solid var(--border);
  border-radius: 14px;
  padding: 28px;
  transition: transform 0.2s, box-shadow 0.2s;
}

.protocol-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 8px 24px rgba(0,0,0,0.06);
}

.protocol-card-soon {
  opacity: 0.65;
}

.protocol-icon {
  font-size: 28px;
  margin-bottom: 14px;
}

.protocol-card h4 {
  font-size: 18px;
  font-weight: 600;
  margin: 0 0 10px;
}

.protocol-card p {
  font-size: 14px;
  color: var(--text-muted);
  margin: 0 0 16px;
}

.protocol-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
}

.ptag {
  background: var(--accent-light);
  color: var(--accent);
  border-radius: 6px;
  padding: 2px 10px;
  font-size: 12px;
  font-weight: 600;
}

.ptag-soon {
  background: #f3f4f6;
  color: var(--text-muted);
}

/* ──────────────────────────────────────
   CODE BLOCKS (shared)
────────────────────────────────────── */
.code-block {
  background: var(--code-bg);
  border-radius: 12px;
  overflow: hidden;
  max-width: 860px;
  margin: 0 auto;
}

.code-block.hidden { display: none; }

.code-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 10px 20px;
  background: rgba(255,255,255,0.05);
  border-bottom: 1px solid rgba(255,255,255,0.08);
}

.code-lang {
  font-family: 'JetBrains Mono', 'Consolas', monospace;
  font-size: 12px;
  color: rgba(255,255,255,0.4);
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

.code-copy {
  background: rgba(255,255,255,0.08);
  border: 1px solid rgba(255,255,255,0.12);
  color: rgba(255,255,255,0.6);
  border-radius: 6px;
  padding: 3px 12px;
  font-size: 12px;
  cursor: pointer;
  transition: all 0.2s;
}

.code-copy:hover { background: rgba(255,255,255,0.15); color: #fff; }

.code-block pre {
  margin: 0;
  padding: 24px 24px 28px;
  overflow-x: auto;
  font-family: 'JetBrains Mono', 'Consolas', 'Monaco', monospace;
  font-size: 14px;
  line-height: 1.7;
  color: #d4d4d4; /* default: light gray on dark bg */
}

.code-block code { background: none; font-family: inherit; color: inherit; }

/* Code syntax colours — all tested against #1e1e2e background */
.c-comment { color: #6bcb77; }  /* bright green — readable */
.c-cmd     { color: #7ec8e3; }  /* sky blue */
.c-keyword { color: #d899e8; }  /* bright violet */
.c-func    { color: #f0e68c; }  /* khaki yellow */
.c-str     { color: #f4a261; }  /* warm orange */
.c-num     { color: #a8e6a3; }  /* pale green */
.c-json    { color: #7ec8e3; }  /* sky blue */
.c-op      { color: #e0e0e0; }  /* near-white */

/* ──────────────────────────────────────
   USAGE EXAMPLES TABS
────────────────────────────────────── */
.examples-tabs {
  display: flex;
  gap: 6px;
  margin-bottom: 16px;
  max-width: 860px;
  margin-left: auto;
  margin-right: auto;
  flex-wrap: wrap;
}

.ex-tab {
  background: var(--bg-alt);
  border: 1px solid var(--border);
  color: var(--text-muted);
  border-radius: 8px;
  padding: 7px 18px;
  font-size: 13px;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.2s;
}

.ex-tab.active,
.ex-tab:hover {
  background: var(--accent);
  border-color: var(--accent);
  color: #fff;
}

/* ──────────────────────────────────────
   QUICKSTART TABS
────────────────────────────────────── */
.qs-tabs {
  display: flex;
  gap: 6px;
  margin-bottom: 16px;
  max-width: 860px;
  margin-left: auto;
  margin-right: auto;
}

.qs-tab {
  background: var(--panel);
  border: 1px solid var(--border);
  color: var(--text-muted);
  border-radius: 8px;
  padding: 7px 22px;
  font-size: 14px;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.2s;
}

.qs-tab.active,
.qs-tab:hover {
  background: var(--accent);
  border-color: var(--accent);
  color: #fff;
}

/* ──────────────────────────────────────
   FEATURES GRID
────────────────────────────────────── */
.features-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(290px, 1fr));
  gap: 28px;
}

.feature-card {
  background: var(--panel);
  border: 1px solid var(--border);
  border-radius: 14px;
  padding: 28px;
  transition: transform 0.2s, box-shadow 0.2s;
}

.feature-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 10px 30px rgba(0,0,0,0.06);
}

.feature-card .icon {
  width: 48px;
  height: 48px;
  background: var(--accent-light);
  border-radius: 10px;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 18px;
  font-size: 22px;
}

.feature-card h4 {
  font-size: 17px;
  font-weight: 600;
  margin: 0 0 10px;
}

.feature-card p {
  font-size: 14px;
  color: var(--text-muted);
  margin: 0;
}

.feature-card code {
  background: var(--bg-alt);
  border-radius: 4px;
  padding: 1px 5px;
  font-size: 13px;
  font-family: 'JetBrains Mono', 'Consolas', monospace;
}

/* ──────────────────────────────────────
   PRICING
────────────────────────────────────── */
.pricing-grid {
  display: flex;
  justify-content: center;
  gap: 28px;
  flex-wrap: wrap;
  align-items: flex-start;
}

.pricing-card {
  background: var(--panel);
  border: 1px solid var(--border);
  border-radius: 18px;
  padding: 40px 36px;
  width: 100%;
  max-width: 340px;
  position: relative;
}

.pricing-card.featured {
  border: 2px solid var(--accent);
  box-shadow: 0 12px 48px rgba(85, 105, 170, 0.12);
}

.pricing-card .badge {
  position: absolute;
  top: -13px;
  left: 50%;
  transform: translateX(-50%);
  background: var(--accent);
  color: #fff;
  padding: 4px 14px;
  border-radius: 20px;
  font-size: 12px;
  font-weight: 600;
  white-space: nowrap;
}

.pricing-tier {
  font-size: 13px;
  font-weight: 700;
  letter-spacing: 1.5px;
  color: var(--text-muted);
  margin: 0 0 8px;
}

.price {
  font-size: 44px;
  font-weight: 800;
  margin: 0 0 10px;
  letter-spacing: -1px;
}

.price span {
  font-size: 16px;
  font-weight: 400;
  color: var(--text-muted);
}

.pricing-desc {
  font-size: 14px;
  color: var(--text-muted);
  margin: 0 0 24px;
}

.pricing-card ul {
  list-style: none;
  padding: 0;
  margin: 0 0 32px;
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.pricing-card ul li {
  font-size: 14px;
  display: flex;
  align-items: flex-start;
  gap: 10px;
}

.pricing-card ul li::before {
  content: '✓';
  color: var(--green);
  font-weight: 700;
  flex-shrink: 0;
}

.btn-full { width: 100%; }

/* ──────────────────────────────────────
   DOWNLOAD
────────────────────────────────────── */
.download-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 24px;
  max-width: 960px;
  margin: 0 auto 32px;
}

.download-card {
  background: var(--panel);
  border: 1px solid var(--border);
  border-radius: 14px;
  padding: 32px 28px;
  text-align: center;
  transition: transform 0.2s, box-shadow 0.2s;
  display: flex;
  flex-direction: column;
  align-items: center;
}

.download-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 10px 30px rgba(0,0,0,0.06);
}

.dl-icon { font-size: 40px; margin-bottom: 16px; }

.download-card h4 {
  font-size: 20px;
  font-weight: 700;
  margin: 0 0 10px;
}

.download-card p {
  font-size: 14px;
  color: var(--text-muted);
  margin: 0 0 24px;
  flex: 1;
}

.download-card code {
  background: var(--bg-alt);
  border-radius: 4px;
  padding: 1px 5px;
  font-size: 13px;
}

.dl-verify {
  width: 100%;
  margin-top: 16px;
  padding-top: 14px;
  border-top: 1px solid var(--border);
}

.dl-sha-row {
  display: flex;
  align-items: center;
  gap: 5px;
  margin-bottom: 10px;
}

.dl-sha-label {
  font-size: 10px;
  font-weight: 600;
  color: var(--text-muted);
  white-space: nowrap;
  flex-shrink: 0;
}

.dl-sha-val {
  font-family: 'JetBrains Mono', monospace;
  font-size: 9px;
  color: var(--text-muted);
  background: transparent;
  padding: 0;
  flex: 1;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  min-width: 0;
}

.dl-sha-copy {
  background: none;
  border: none;
  cursor: pointer;
  font-size: 12px;
  color: var(--text-muted);
  padding: 0 2px;
  flex-shrink: 0;
  line-height: 1;
  transition: color 0.15s;
}
.dl-sha-copy:hover { color: var(--accent); }

.dl-extra-links {
  display: flex;
  gap: 6px;
}

.dl-extra {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  font-size: 11px;
  color: var(--text-muted);
  text-decoration: none;
  border: 1px solid var(--border);
  border-radius: 5px;
  padding: 3px 9px;
  transition: color 0.15s, border-color 0.15s;
  white-space: nowrap;
}
.dl-extra:hover {
  color: var(--accent);
  border-color: var(--accent);
  text-decoration: none;
}

.download-note {
  text-align: center;
  font-size: 14px;
  color: var(--text-muted);
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
}

.download-note a { color: var(--accent); text-decoration: none; }
.download-note a:hover { text-decoration: underline; }

/* ──────────────────────────────────────
   FOOTER
────────────────────────────────────── */
footer {
  border-top: 1px solid var(--border);
  padding: 72px 0 36px;
  background: var(--bg-alt);
}

.footer-content {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr 1fr;
  gap: 48px;
  margin-bottom: 48px;
}

.footer-brand img { width: 38px; margin-bottom: 12px; }

.footer-brand h5 {
  font-size: 18px;
  font-weight: 700;
  margin: 0 0 10px;
}

.footer-brand p {
  color: var(--text-muted);
  font-size: 14px;
  max-width: 280px;
  margin: 0 0 14px;
}

.footer-contact {
  font-size: 13px;
  color: var(--accent);
  text-decoration: none;
}

.footer-contact:hover { text-decoration: underline; }

footer h5 {
  font-size: 14px;
  font-weight: 600;
  margin: 0 0 16px;
  color: var(--text);
}

footer ul {
  list-style: none;
  padding: 0;
  margin: 0;
}

footer ul li { margin-bottom: 10px; }

footer ul li a {
  text-decoration: none;
  color: var(--text-muted);
  font-size: 14px;
  transition: color 0.2s;
}

footer ul li a:hover { color: var(--accent); }

.footer-bottom {
  padding-top: 28px;
  border-top: 1px solid var(--border);
  text-align: center;
  color: var(--text-muted);
  font-size: 13px;
}

.footer-bottom a { color: var(--text-muted); text-decoration: none; }
.footer-bottom a:hover { color: var(--accent); }
.footer-payment-logos { margin-left: 12px; font-size: 22px; vertical-align: middle; }
.footer-payment-logos .fa-cc-visa { color: #1a1f71; }
.footer-payment-logos .fa-cc-mastercard { color: #eb001b; margin-left: 6px; }

/* ──────────────────────────────────────
   BUTTONS
────────────────────────────────────── */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 7px;
  padding: 11px 26px;
  border-radius: 8px;
  font-weight: 600;
  text-decoration: none;
  transition: all 0.2s;
  font-size: 15px;
  cursor: pointer;
  border: none;
}

.btn-lg { padding: 13px 30px; font-size: 16px; }

.btn-primary { background: var(--accent); color: #fff; }
.btn-primary:hover { background: var(--accent-hover); transform: translateY(-2px); box-shadow: 0 4px 16px rgba(85,105,170,0.3); }

.btn-secondary { background: var(--panel); border: 1px solid var(--border); color: var(--text); }
.btn-secondary:hover { background: var(--bg-alt); transform: translateY(-2px); }

.btn-text {
  background: none;
  color: var(--accent);
  border: none;
  padding: 10px 16px;
  font-weight: 600;
  cursor: pointer;
  text-decoration: none;
  display: inline-flex;
  align-items: center;
  font-size: 15px;
}
.btn-text:hover {
  text-decoration: underline;
  color: var(--accent-hover);
}

.hero-pro-note {
  margin-top: 24px;
  font-size: 14px;
  color: var(--text-muted);
  font-weight: 500;
}

.hero-demo-note {
  margin-top: 8px;
  font-size: 13px;
  color: var(--text-muted);
}

.hero-demo-note a {
  color: var(--accent);
  text-decoration: none;
  font-weight: 500;
}

.hero-demo-note a:hover { text-decoration: underline; }

/* ──────────────────────────────────────
   TOUR POPOVER
────────────────────────────────────── */
.tour-popover {
  position: absolute;
  z-index: 10001;
  background: #fff;
  border-radius: 12px;
  box-shadow: 0 10px 40px rgba(0,0,0,0.15);
  padding: 24px;
  width: 320px;
  border: 1px solid var(--border);
  transition: opacity 0.3s, transform 0.3s;
  display: none;
  opacity: 0;
}

.tour-close {
  position: absolute;
  top: 10px;
  right: 12px;
  background: none;
  border: none;
  font-size: 20px;
  line-height: 1;
  color: var(--text-muted);
  cursor: pointer;
  padding: 2px 6px;
  border-radius: 4px;
  transition: color 0.15s, background 0.15s;
}
.tour-close:hover { color: var(--text); background: var(--bg-alt); }

.tour-popover h4 {
  margin: 0 0 10px;
  font-size: 18px;
  font-weight: 700;
  color: var(--accent);
}

.tour-popover p {
  margin: 0 0 20px;
  font-size: 14px;
  color: var(--text-muted);
  line-height: 1.5;
}

.tour-footer {
  display: flex;
  justify-content: space-between;
  align-items: center;
  border-top: 1px solid var(--border);
  padding-top: 16px;
}

.tour-progress {
  font-size: 12px;
  color: var(--text-muted);
  font-weight: 600;
}

.tour-btns {
  display: flex;
  gap: 8px;
}

.tour-btn {
  padding: 6px 14px;
  border-radius: 6px;
  font-size: 13px;
  font-weight: 600;
  cursor: pointer;
  border: none;
  transition: all 0.2s;
}

.tour-btn-prev {
  background: var(--bg-alt);
  color: var(--text);
  border: 1px solid var(--border);
}
.tour-btn-prev:hover { background: var(--border); }

.tour-btn-next {
  background: var(--accent);
  color: #fff;
}
.tour-btn-next:hover { background: var(--accent-hover); }

/* ──────────────────────────────────────
   SCROLL REVEAL
────────────────────────────────────── */
.reveal {
  opacity: 0;
  transform: translateY(22px);
  transition: opacity 0.6s cubic-bezier(0.4,0,0.2,1), transform 0.6s cubic-bezier(0.4,0,0.2,1);
}

.reveal.visible {
  opacity: 1;
  transform: none;
}

/* ──────────────────────────────────────
   MOBILE
────────────────────────────────────── */
@media (max-width: 900px) {
  .footer-content { grid-template-columns: 1fr 1fr; }
}

@media (max-width: 768px) {
  .hero-cols { flex-direction: column-reverse; gap: 36px; }
  .hero-text { text-align: center; }
  .hero-image { flex: none; width: 100%; max-width: 480px; margin: 0 auto; }
  .hero-ctas { justify-content: center; flex-wrap: wrap; }
  .hero-stats { justify-content: center; }
  .hero h1 { font-size: 38px; }
  .hero-sub { font-size: 17px; }
  .section-header h2 { font-size: 28px; }

  #main-nav {
    display: none;
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    background: #fff;
    border-bottom: 1px solid var(--border);
    padding: 16px 24px 20px;
    box-shadow: 0 8px 24px rgba(0,0,0,0.08);
  }

  #main-nav.open { display: block; }

  #main-nav ul {
    flex-direction: column;
    gap: 14px;
  }

  #main-nav ul a { font-size: 15px; }

  .nav-dropdown-menu {
    position: static;
    opacity: 1;
    visibility: visible;
    pointer-events: auto;
    box-shadow: none;
    border: none;
    background: transparent;
    padding: 4px 0 0 12px;
    transition: none;
  }

  .nav-dropdown-toggle::after { display: none; }

  .nav-download-btn { display: none; }
  .nav-download-mobile { display: list-item; }

  .hamburger { display: flex; }

  header { position: relative; }

  .why-grid { grid-template-columns: 1fr; }

  .arch-flow { flex-direction: column; }
  .arch-arrow { transform: rotate(90deg); }

  .hero-stats { gap: 16px; }
  .stat-divider { display: none; }

  .footer-content { grid-template-columns: 1fr; gap: 32px; }
  .pricing-grid { flex-direction: column; align-items: center; }
  .pricing-card { max-width: 100%; }
}

@media (max-width: 480px) {
  .hero { padding: 72px 0 56px; }
  .hero h1 { font-size: 30px; letter-spacing: -0.5px; }
  section { padding: 64px 0; }
  .how-step { flex-direction: column; gap: 12px; }
}

/* ── Buy PRO Modal ──────────────────────────────────────────────── */
.modal-overlay {
  position: fixed;
  inset: 0;
  background: rgba(0,0,0,0.55);
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 1000;
  padding: 16px;
}
.modal-overlay[hidden] { display: none; }

.modal-box {
  background: #fff;
  border-radius: 16px;
  padding: 36px 32px 28px;
  width: 100%;
  max-width: 440px;
  position: relative;
  box-shadow: 0 24px 64px rgba(0,0,0,0.18);
}
.modal-box--wide {
  max-width: 800px;
  max-height: 90vh;
  overflow-y: auto;
}

/* ── Demo form two-column layout ─── */
.demo-form-cols {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 0 28px;
  margin-bottom: 16px;
}
.demo-form-col {
  display: flex;
  flex-direction: column;
}
.form-row--grow {
  flex: 1;
  display: flex;
  flex-direction: column;
}
.form-row--grow textarea {
  flex: 1;
}
@media (max-width: 620px) {
  .demo-form-cols { grid-template-columns: 1fr; }
}

.modal-close {
  position: absolute;
  top: 14px;
  right: 18px;
  background: none;
  border: none;
  font-size: 24px;
  line-height: 1;
  cursor: pointer;
  color: #6b7280;
  padding: 4px 8px;
}
.modal-close:hover { color: #111; }

.modal-box h3 {
  margin: 0 0 4px;
  font-size: 22px;
  font-weight: 700;
  color: #111;
}

.modal-sub {
  margin: 0 0 20px;
  color: #6b7280;
  font-size: 14px;
}

.form-row {
  display: flex;
  flex-direction: column;
  gap: 4px;
  margin-bottom: 14px;
}

.form-row label {
  font-size: 13px;
  font-weight: 600;
  color: #374151;
}

.form-row input {
  padding: 10px 12px;
  border: 1.5px solid #d1d5db;
  border-radius: 8px;
  font-size: 15px;
  outline: none;
  transition: border-color 0.15s;
  font-family: inherit;
}
.form-row input:focus { border-color: #6366f1; }

.form-row textarea {
  padding: 10px 12px;
  border: 1.5px solid #d1d5db;
  border-radius: 8px;
  font-size: 15px;
  font-family: inherit;
  outline: none;
  transition: border-color 0.15s;
  resize: vertical;
  min-height: 80px;
}
.form-row textarea:focus { border-color: #6366f1; }

.form-row select {
  padding: 10px 12px;
  padding-right: 32px;
  border: 1.5px solid #d1d5db;
  border-radius: 8px;
  font-size: 15px;
  font-family: inherit;
  outline: none;
  background: #fff;
  cursor: pointer;
  transition: border-color 0.15s;
  appearance: none;
  -webkit-appearance: none;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='8' viewBox='0 0 12 8'%3E%3Cpath d='M1 1l5 5 5-5' stroke='%236b7280' stroke-width='1.5' fill='none' stroke-linecap='round'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 12px center;
}
.form-row select:focus { border-color: #6366f1; }

.phone-field { display: flex; gap: 8px; }
.phone-code-select { width: 112px; flex-shrink: 0; }
.phone-field input { flex: 1; min-width: 0; }

.req { color: #ef4444; }
.optional { color: #9ca3af; font-weight: 400; }
.form-hint { font-size: 11px; color: #9ca3af; margin-top: 2px; }

.buy-error {
  color: #dc2626;
  font-size: 13px;
  margin: 0 0 12px;
  padding: 8px 12px;
  background: #fef2f2;
  border-radius: 6px;
}

.payment-methods {
  display: flex;
  gap: 8px;
  margin-top: 4px;
}
.payment-method-btn {
  flex: 1;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 7px;
  padding: 9px 12px;
  border: 1.5px solid var(--border);
  border-radius: 8px;
  background: #fff;
  font-size: 13px;
  font-weight: 500;
  color: var(--text-muted);
  cursor: pointer;
  transition: border-color 0.15s, color 0.15s, background 0.15s;
}
.payment-method-btn:hover {
  border-color: var(--accent);
  color: var(--accent);
}
.payment-method-btn.active {
  border-color: var(--accent);
  color: var(--accent);
  background: var(--accent-light);
}
.payment-method-btn[hidden],
.form-row[hidden],
.demo-success-msg[hidden] {
  display: none !important;
}

/* ──────────────────────────────────────
   FAQ
────────────────────────────────────── */
.faq-list {
  max-width: 780px;
  margin: 0 auto;
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.faq-item {
  border: 1.5px solid var(--border);
  border-radius: 12px;
  background: var(--panel);
  overflow: hidden;
  transition: border-color 0.2s;
}

.faq-item[open] {
  border-color: var(--accent);
}

.faq-q {
  list-style: none;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 16px;
  padding: 18px 22px;
  font-size: 16px;
  font-weight: 600;
  color: var(--text);
  cursor: pointer;
  user-select: none;
  transition: color 0.15s;
}

.faq-q::-webkit-details-marker { display: none; }

.faq-q::after {
  content: '+';
  font-size: 22px;
  font-weight: 400;
  color: var(--accent);
  flex-shrink: 0;
  transition: transform 0.2s;
  line-height: 1;
}

.faq-item[open] .faq-q { color: var(--accent); }
.faq-item[open] .faq-q::after { transform: rotate(45deg); }

.faq-a {
  padding: 0 22px 18px;
  border-top: 1px solid var(--border);
}

.faq-a p {
  margin: 14px 0 0;
  color: var(--text-muted);
  font-size: 15px;
  line-height: 1.7;
}

.faq-a a { color: var(--accent); }
.faq-a code {
  background: var(--bg-alt);
  border: 1px solid var(--border);
  border-radius: 4px;
  padding: 1px 5px;
  font-size: 13px;
  font-family: 'JetBrains Mono', monospace;
}

.modal-note {
  margin: 16px 0 0;
  font-size: 12px;
  color: #9ca3af;
  text-align: center;
  line-height: 1.5;
}

.modal-note-link {
  color: #9ca3af;
  text-decoration: underline;
  font-size: 11px;
}
.modal-note-link:hover { color: #6b7280; }

/* ── How it Works — demo CTA block ─── */
.how-demo-cta {
  margin-top: 48px;
  padding: 28px 32px;
  background: var(--bg-alt);
  border: 1px solid var(--border);
  border-radius: 12px;
  text-align: center;
}

.how-demo-cta p {
  margin: 0 0 16px;
  color: var(--text-muted);
  font-size: 15px;
}

.how-demo-cta p a {
  color: var(--accent);
  text-decoration: none;
  font-weight: 500;
}

.how-demo-cta p a:hover { text-decoration: underline; }

/* ── Demo request modal success ─── */
.demo-success-msg {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  padding: 24px 0 8px;
  color: var(--green);
  font-size: 16px;
  font-weight: 600;
  text-align: center;
}

/* ── Driver Catalog Section ───────────────────────────── */
/* ── Drivers carousel wrapper ─────────────────────────── */
.drivers-carousel-wrap {
  display: flex;
  align-items: center;
  gap: 8px;
  margin: 32px 0 16px;
}

.drivers-carousel-viewport {
  flex: 1;
  overflow: hidden;
}

.drivers-catalog-grid {
  display: flex;
  flex-direction: row;
  gap: 16px;
  /* no wrap — single row */
}

.drivers-catalog-loading {
  white-space: nowrap;
  color: var(--text-muted);
  padding: 32px;
}

.drivers-carousel-btn {
  flex-shrink: 0;
  width: 36px;
  height: 36px;
  border-radius: 50%;
  border: 1px solid var(--border);
  background: var(--panel);
  color: var(--text);
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 14px;
  transition: background .15s, box-shadow .15s;
}

.drivers-carousel-btn:hover {
  background: var(--accent-light);
  box-shadow: 0 2px 8px rgba(0,0,0,.1);
}

.driver-card {
  flex: 0 0 140px;
  background: var(--panel);
  border: 1px solid var(--border);
  border-radius: 10px;
  padding: 12px;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 8px;
  text-align: center;
  transition: box-shadow .15s;
}

.driver-card:hover { box-shadow: 0 4px 16px rgba(0,0,0,.08); }

.driver-card-img {
  width: 80px;
  height: 80px;
  object-fit: contain;
  border-radius: 6px;
  background: #f3f4f6;
}

.driver-card-img--placeholder {
  display: block;
  background: #e5e7eb;
}

.driver-card-name {
  font-size: 13px;
  font-weight: 600;
  color: var(--text);
  line-height: 1.3;
}

.driver-card-meta {
  font-size: 11px;
  color: var(--text-muted);
}

.drivers-catalog-note {
  font-size: 13px;
  color: var(--text-muted);
  text-align: center;
  margin-top: 4px;
}

/* ──────────────────────────────────────
   COOKIE CONSENT BANNER
────────────────────────────────────── */
#cookie-banner {
  position: fixed;
  bottom: 24px;
  left: 50%;
  transform: translateX(-50%);
  z-index: 9999;
  width: min(540px, calc(100vw - 32px));
  background: var(--panel);
  border: 1px solid var(--border);
  border-radius: 12px;
  box-shadow: 0 8px 32px rgba(0, 0, 0, 0.12);
  padding: 16px 20px;
  animation: cookie-slide-up 0.3s ease;
}

@keyframes cookie-slide-up {
  from { opacity: 0; transform: translateX(-50%) translateY(12px); }
  to   { opacity: 1; transform: translateX(-50%) translateY(0); }
}

.cookie-inner {
  display: flex;
  align-items: center;
  gap: 16px;
  flex-wrap: wrap;
}

.cookie-text {
  flex: 1;
  margin: 0;
  font-size: 13px;
  color: var(--text-muted);
  min-width: 200px;
}

.cookie-text a { color: var(--accent); }

.cookie-actions {
  display: flex;
  gap: 8px;
  flex-shrink: 0;
}

.cookie-btn {
  font-size: 13px !important;
  padding: 7px 18px !important;
}

/* ──────────────────────────────────────
   USE CASES SELECTOR
────────────────────────────────────── */
#use-cases { padding: 96px 0; }

.uc-layout {
  display: flex;
  gap: 48px;
  align-items: flex-start;
}

.uc-nav {
  flex-shrink: 0;
  width: 210px;
  display: flex;
  flex-direction: column;
  gap: 2px;
}

.uc-tab {
  position: relative;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  background: none;
  border: none;
  border-left: 3px solid var(--border);
  padding: 9px 14px 9px 14px;
  cursor: pointer;
  text-align: left;
  font-family: inherit;
  font-size: 13px;
  font-weight: 500;
  color: var(--text-muted);
  transition: color 0.2s, border-color 0.2s;
  overflow: hidden;
}

.uc-tab:hover {
  color: var(--text);
  border-left-color: #c7cfe8;
}

.uc-tab.active {
  color: var(--accent);
  border-left-color: var(--accent);
}

.uc-tab-bar {
  position: absolute;
  bottom: 0;
  left: 0;
  height: 2px;
  width: 0;
  background: var(--accent);
  opacity: 0.35;
}

.uc-panel {
  flex: 1;
  min-height: 220px;
}

.uc-story {
  display: none;
}

.uc-story.active {
  display: block;
  animation: uc-fade-in 0.35s ease;
}

@keyframes uc-fade-in {
  from { opacity: 0; transform: translateY(10px); }
  to   { opacity: 1; transform: translateY(0); }
}

.uc-category {
  display: inline-block;
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--accent);
  margin-bottom: 14px;
}

.uc-problem {
  font-size: 19px;
  font-weight: 600;
  line-height: 1.5;
  color: var(--text);
  margin: 0 0 20px 0;
  padding-left: 22px;
  position: relative;
}

.uc-problem::before {
  content: '"';
  position: absolute;
  left: 0;
  top: -6px;
  font-size: 44px;
  line-height: 1;
  font-family: Georgia, serif;
  color: var(--accent);
  opacity: 0.2;
}

.uc-solution {
  font-size: 15px;
  line-height: 1.75;
  color: var(--text-muted);
  margin: 0;
  padding: 18px 22px;
  background: var(--bg-alt);
  border-radius: 10px;
  border-left: 3px solid var(--accent);
}

@media (max-width: 768px) {
  .uc-layout {
    flex-direction: column;
    gap: 24px;
  }

  .uc-nav {
    width: 100%;
    flex-direction: row;
    flex-wrap: nowrap;
    overflow-x: auto;
    gap: 0;
    -ms-overflow-style: none;
    scrollbar-width: none;
  }

  .uc-nav::-webkit-scrollbar { display: none; }

  .uc-tab {
    white-space: nowrap;
    border-left: none;
    border-bottom: 3px solid var(--border);
    padding: 8px 14px 10px;
    flex-shrink: 0;
  }

  .uc-tab.active { border-bottom-color: var(--accent); }

  .uc-tab-bar {
    bottom: 0;
    left: 0;
    height: 2px;
    width: 0;
  }

  .uc-problem { font-size: 16px; }
}
