/* ============================================
   ClearCorex — Enterprise SaaS Landing
   styles.css
   ============================================ */

/* ===== Theme tokens ===== */
:root {
  /* Light theme */
  --bg: #ffffff;
  --bg-soft: #f8fafc;
  --bg-elev: #ffffff;
  --bg-dark: #0a0e1a;
  --bg-dark-2: #0f172a;

  --text: #0a0e1a;
  --text-muted: #475569;
  --text-light: #94a3b8;
  --text-on-dark: #e2e8f0;
  --text-on-dark-muted: #94a3b8;

  --border: #e2e8f0;
  --border-2: #cbd5e1;
  --border-dark: #1e293b;

  --primary: #3b82f6;
  --primary-2: #2563eb;
  --primary-3: #1d4ed8;
  --accent: #22d3a4;
  --accent-2: #8b5cf6;
  --accent-3: #ec4899;
  --danger: #ef4444;
  --warn: #f59e0b;
  --success: #10b981;

  --grad: linear-gradient(135deg, #3b82f6 0%, #8b5cf6 50%, #22d3a4 100%);
  --grad-2: linear-gradient(135deg, #3b82f6 0%, #22d3a4 100%);
  --grad-soft: linear-gradient(135deg, rgba(59, 130, 246, 0.1) 0%, rgba(34, 211, 164, 0.1) 100%);

  --radius-sm: 8px;
  --radius: 14px;
  --radius-lg: 20px;
  --radius-xl: 28px;

  --shadow-sm: 0 1px 2px rgba(15, 23, 42, 0.06);
  --shadow: 0 4px 6px -1px rgba(15, 23, 42, 0.08), 0 2px 4px -2px rgba(15, 23, 42, 0.04);
  --shadow-md: 0 10px 24px -8px rgba(15, 23, 42, 0.15);
  --shadow-lg: 0 24px 48px -12px rgba(15, 23, 42, 0.18);
  --shadow-xl: 0 30px 60px -15px rgba(15, 23, 42, 0.25);
  --shadow-glow: 0 0 60px rgba(59, 130, 246, 0.25);

  --container: 1240px;

  --transition: 0.2s cubic-bezier(0.4, 0, 0.2, 1);
}

[data-theme="dark"] {
  --bg: #0a0e1a;
  --bg-soft: #0f172a;
  --bg-elev: #131b2e;

  --text: #e2e8f0;
  --text-muted: #94a3b8;
  --text-light: #64748b;

  --border: #1e293b;
  --border-2: #334155;

  color-scheme: dark;
}

/* ===== Reset ===== */
*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  font-family: 'Inter', -apple-system, BlinkMacSystemFont, sans-serif;
  font-size: 16px;
  line-height: 1.6;
  color: var(--text);
  background: var(--bg);
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  transition: background 0.3s ease, color 0.3s ease;
}
img, svg { max-width: 100%; display: block; }
a { color: inherit; text-decoration: none; }
button { font-family: inherit; cursor: pointer; border: none; background: none; color: inherit; }
ul { list-style: none; padding: 0; margin: 0; }
h1, h2, h3, h4, h5 { margin: 0; line-height: 1.15; letter-spacing: -0.025em; }
input, textarea { font-family: inherit; }

.container {
  width: 100%;
  max-width: var(--container);
  margin: 0 auto;
  padding: 0 24px;
}

.grad-text {
  background: var(--grad);
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
  color: transparent;
}

.mono { font-family: 'JetBrains Mono', monospace; font-size: 0.92em; }

/* ===== Scroll progress ===== */
.scroll-progress {
  position: fixed;
  top: 0; left: 0;
  height: 3px;
  width: 0%;
  background: var(--grad);
  z-index: 1000;
  transition: width 0.1s ease-out;
}

/* ===== Buttons ===== */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 11px 20px;
  border-radius: 10px;
  font-weight: 600;
  font-size: 14.5px;
  transition: all var(--transition);
  cursor: pointer;
  border: 1px solid transparent;
  white-space: nowrap;
  letter-spacing: -0.01em;
}
.btn svg { width: 18px; height: 18px; }
.btn-sm { padding: 8px 14px; font-size: 13.5px; }
.btn.full { width: 100%; }

.btn-primary {
  background: var(--text);
  color: var(--bg);
  box-shadow: 0 4px 14px rgba(10, 14, 26, 0.25);
}
.btn-primary:hover {
  transform: translateY(-1px);
  box-shadow: 0 8px 20px rgba(10, 14, 26, 0.35);
}
[data-theme="dark"] .btn-primary {
  background: white;
  color: #0a0e1a;
}

.btn-ghost {
  background: transparent;
  color: var(--text);
  border-color: var(--border-2);
}
.btn-ghost:hover {
  background: var(--bg-soft);
  border-color: var(--text-muted);
}

.btn-ghost-d {
  background: rgba(255, 255, 255, 0.06);
  color: white;
}
.btn-ghost-d:hover { background: rgba(255, 255, 255, 0.12); }

.btn-light {
  background: white;
  color: #0a0e1a;
}
.btn-light:hover { transform: translateY(-1px); box-shadow: var(--shadow-lg); }

.btn-link {
  font-size: 14px;
  color: var(--text-muted);
  font-weight: 500;
  padding: 8px 4px;
}
.btn-link:hover { color: var(--text); }

/* ===== Announcement Bar ===== */
.announce-bar {
  background: linear-gradient(90deg, #1e293b 0%, #0f172a 100%);
  color: white;
  font-size: 13.5px;
  position: relative;
  z-index: 99;
}
.announce-inner {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 12px;
  padding: 10px 24px;
  flex-wrap: wrap;
}
.announce-tag {
  background: var(--grad);
  color: white;
  padding: 2px 8px;
  border-radius: 4px;
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.05em;
}
.announce-link {
  color: white;
  font-weight: 600;
  border-bottom: 1px solid rgba(255, 255, 255, 0.3);
}
.announce-link:hover { border-color: white; }
.announce-close {
  position: absolute;
  right: 16px;
  top: 50%;
  transform: translateY(-50%);
  color: white;
  font-size: 22px;
  line-height: 1;
  opacity: 0.6;
  padding: 4px 8px;
}
.announce-close:hover { opacity: 1; }

/* ===== Navigation ===== */
.nav-wrap {
  position: sticky;
  top: 0;
  z-index: 90;
  background: rgba(255, 255, 255, 0.8);
  backdrop-filter: saturate(180%) blur(16px);
  -webkit-backdrop-filter: saturate(180%) blur(16px);
  border-bottom: 1px solid transparent;
  transition: border-color 0.2s, background 0.3s;
}
[data-theme="dark"] .nav-wrap {
  background: rgba(10, 14, 26, 0.8);
}
.nav-wrap.scrolled {
  border-bottom-color: var(--border);
}
.nav {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 68px;
  gap: 32px;
}
.brand {
  display: flex;
  align-items: center;
  gap: 10px;
  font-weight: 700;
  font-size: 17px;
  color: var(--text);
  flex-shrink: 0;
}
.brand-mark {
  width: 32px;
  height: 32px;
  display: grid;
  place-items: center;
  border-radius: 9px;
  background: var(--grad);
  color: white;
  box-shadow: 0 4px 12px rgba(59, 130, 246, 0.3);
}
.brand-mark.sm { width: 22px; height: 22px; border-radius: 6px; }
.brand-mark svg { width: 20px; height: 20px; }
.brand-mark.sm svg { width: 14px; height: 14px; }

.nav-links {
  display: flex;
  align-items: center;
  gap: 4px;
  margin-left: auto;
  margin-right: auto;
}
.nav-links li { position: relative; }
.nav-links a, .nav-trigger {
  display: flex;
  align-items: center;
  gap: 4px;
  color: var(--text-muted);
  font-weight: 500;
  font-size: 14.5px;
  padding: 8px 12px;
  border-radius: 8px;
  transition: all var(--transition);
}
.nav-trigger svg { width: 14px; height: 14px; transition: transform 0.2s; }
.nav-links a:hover, .nav-trigger:hover { color: var(--text); background: var(--bg-soft); }
.has-mega:hover .nav-trigger svg { transform: rotate(180deg); }

/* Mega panel */
.mega-panel {
  position: absolute;
  top: calc(100% + 8px);
  left: 50%;
  transform: translateX(-50%) translateY(-8px);
  min-width: 540px;
  background: var(--bg-elev);
  border: 1px solid var(--border);
  border-radius: 16px;
  padding: 16px;
  box-shadow: var(--shadow-xl);
  opacity: 0;
  visibility: hidden;
  transition: all 0.25s ease;
}
.has-mega:hover .mega-panel,
.has-mega:focus-within .mega-panel {
  opacity: 1;
  visibility: visible;
  transform: translateX(-50%) translateY(0);
}
.mega-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 4px;
}
.mega-item {
  display: flex;
  align-items: flex-start;
  gap: 12px;
  padding: 12px;
  border-radius: 10px;
  transition: background var(--transition);
}
.mega-item:hover { background: var(--bg-soft); }
.mega-ico {
  width: 36px;
  height: 36px;
  border-radius: 9px;
  display: grid;
  place-items: center;
  flex-shrink: 0;
}
.mega-ico svg { width: 18px; height: 18px; }
.mega-item strong { display: block; font-size: 14px; color: var(--text); margin-bottom: 2px; font-weight: 600; }
.mega-item span:last-child { display: block; font-size: 12.5px; color: var(--text-muted); line-height: 1.4; }

.icon-blue { background: rgba(59, 130, 246, 0.1); color: var(--primary); }
.icon-purple { background: rgba(139, 92, 246, 0.1); color: var(--accent-2); }
.icon-green { background: rgba(34, 211, 164, 0.1); color: var(--accent); }
.icon-orange { background: rgba(245, 158, 11, 0.1); color: var(--warn); }
.icon-pink { background: rgba(236, 72, 153, 0.1); color: var(--accent-3); }

.nav-cta {
  display: flex;
  align-items: center;
  gap: 8px;
}

/* Icon buttons */
.icon-btn {
  width: 36px;
  height: 36px;
  display: grid;
  place-items: center;
  border-radius: 8px;
  color: var(--text-muted);
  transition: all var(--transition);
}
.icon-btn:hover { background: var(--bg-soft); color: var(--text); }
.icon-btn svg { width: 18px; height: 18px; }
.ico-moon { display: none; }
[data-theme="dark"] .ico-sun { display: none; }
[data-theme="dark"] .ico-moon { display: block; }

/* Lang switch */
.lang-switch { position: relative; }
.lang-btn {
  display: flex;
  align-items: center;
  gap: 6px;
  padding: 6px 10px;
  border-radius: 8px;
  color: var(--text-muted);
  font-weight: 500;
  font-size: 13.5px;
  transition: all var(--transition);
}
.lang-btn:hover { background: var(--bg-soft); color: var(--text); }
.lang-btn svg { width: 14px; height: 14px; }
.lang-btn .caret { transition: transform 0.2s; }
.lang-switch.open .caret { transform: rotate(180deg); }

.lang-menu {
  position: absolute;
  top: calc(100% + 6px);
  right: 0;
  background: var(--bg-elev);
  border: 1px solid var(--border);
  border-radius: 10px;
  padding: 4px;
  box-shadow: var(--shadow-lg);
  min-width: 160px;
  opacity: 0;
  visibility: hidden;
  transform: translateY(-4px);
  transition: all 0.2s ease;
  z-index: 50;
}
.lang-switch.open .lang-menu {
  opacity: 1;
  visibility: visible;
  transform: translateY(0);
}
.lang-menu button {
  display: block;
  width: 100%;
  text-align: left;
  padding: 8px 12px;
  border-radius: 6px;
  font-size: 14px;
  color: var(--text);
  transition: background var(--transition);
}
.lang-menu button:hover { background: var(--bg-soft); }

.nav-toggle {
  display: none;
  width: 36px; height: 36px;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  gap: 4px;
}
.nav-toggle span {
  display: block;
  width: 20px;
  height: 2px;
  background: var(--text);
  border-radius: 2px;
  transition: 0.3s;
}

/* ===== Hero ===== */
.hero {
  position: relative;
  padding: 64px 0 80px;
  overflow: hidden;
}
.hero-bg {
  position: absolute;
  inset: 0;
  pointer-events: none;
  z-index: 0;
}
.blob {
  position: absolute;
  border-radius: 50%;
  filter: blur(100px);
}
.blob-1 {
  width: 600px; height: 600px;
  background: radial-gradient(circle, rgba(59, 130, 246, 0.3) 0%, transparent 70%);
  top: -200px; left: -150px;
  animation: float 22s ease-in-out infinite;
}
.blob-2 {
  width: 500px; height: 500px;
  background: radial-gradient(circle, rgba(139, 92, 246, 0.25) 0%, transparent 70%);
  top: 100px; right: -100px;
  animation: float 28s ease-in-out infinite reverse;
}
.grid-overlay {
  position: absolute;
  inset: 0;
  background-image:
    linear-gradient(rgba(15, 23, 42, 0.04) 1px, transparent 1px),
    linear-gradient(90deg, rgba(15, 23, 42, 0.04) 1px, transparent 1px);
  background-size: 48px 48px;
  mask-image: radial-gradient(ellipse at center, black 30%, transparent 70%);
  -webkit-mask-image: radial-gradient(ellipse at center, black 30%, transparent 70%);
}
[data-theme="dark"] .grid-overlay {
  background-image:
    linear-gradient(rgba(255, 255, 255, 0.04) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255, 255, 255, 0.04) 1px, transparent 1px);
}

@keyframes float {
  0%, 100% { transform: translate(0, 0); }
  50% { transform: translate(50px, -40px); }
}

.hero-grid {
  position: relative;
  z-index: 1;
  display: grid;
  grid-template-columns: 1fr 1.05fr;
  gap: 48px;
  align-items: center;
}

.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 5px 5px 5px 14px;
  background: var(--bg-elev);
  border: 1px solid var(--border);
  border-radius: 100px;
  font-size: 13px;
  font-weight: 500;
  color: var(--text-muted);
  margin-bottom: 24px;
  transition: all var(--transition);
}
.eyebrow:hover { border-color: var(--border-2); transform: translateY(-1px); }
.eyebrow-tag {
  background: var(--grad);
  color: white;
  padding: 3px 8px;
  border-radius: 100px;
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.05em;
}
.eyebrow svg { width: 14px; height: 14px; margin-left: 4px; margin-right: 8px; }

.hero-title {
  font-size: clamp(38px, 5.5vw, 64px);
  font-weight: 800;
  margin-bottom: 24px;
  letter-spacing: -0.035em;
  line-height: 1.05;
}
.hero-sub {
  font-size: 18px;
  color: var(--text-muted);
  margin: 0 0 36px;
  max-width: 560px;
  line-height: 1.6;
}
.hero-actions {
  display: flex;
  gap: 12px;
  margin-bottom: 32px;
  flex-wrap: wrap;
}
.hero-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 18px;
}
.meta-item {
  display: flex;
  align-items: center;
  gap: 6px;
  font-size: 13.5px;
  color: var(--text-muted);
}
.meta-item svg {
  width: 16px; height: 16px;
  color: var(--accent);
  background: rgba(34, 211, 164, 0.12);
  border-radius: 50%;
  padding: 2px;
}

/* ===== Hero Product Window ===== */
.hero-visual { position: relative; }

.product-window {
  background: var(--bg-elev);
  border: 1px solid var(--border);
  border-radius: 16px;
  overflow: hidden;
  box-shadow: var(--shadow-xl), 0 0 80px rgba(59, 130, 246, 0.12);
  position: relative;
}
[data-theme="dark"] .product-window {
  background: #0f172a;
  border-color: #1e293b;
}

.window-bar {
  display: flex;
  align-items: center;
  gap: 6px;
  padding: 12px 16px;
  background: var(--bg-soft);
  border-bottom: 1px solid var(--border);
}
[data-theme="dark"] .window-bar { background: #131b2e; border-color: #1e293b; }

.dot-r, .dot-y, .dot-g {
  width: 10px; height: 10px;
  border-radius: 50%;
}
.dot-r { background: #ef4444; }
.dot-y { background: #f59e0b; }
.dot-g { background: #22d3a4; }
.window-title {
  margin-left: 10px;
  font-size: 12px;
  color: var(--text-muted);
  font-family: 'JetBrains Mono', monospace;
  flex: 1;
}
.window-status {
  display: flex;
  align-items: center;
  gap: 5px;
  font-size: 11px;
  color: var(--accent);
  font-weight: 600;
}
.status-dot {
  width: 6px; height: 6px;
  border-radius: 50%;
  background: var(--accent);
  box-shadow: 0 0 8px var(--accent);
  animation: pulse 1.8s ease-in-out infinite;
}
@keyframes pulse {
  0%, 100% { opacity: 1; }
  50% { opacity: 0.4; }
}

.product-body {
  display: grid;
  grid-template-columns: 180px 1fr;
  min-height: 460px;
}
.product-side {
  border-right: 1px solid var(--border);
  padding: 16px 12px;
  background: var(--bg);
}
[data-theme="dark"] .product-side { background: #0a0e1a; border-color: #1e293b; }

.side-label {
  font-size: 10.5px;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--text-light);
  padding: 0 8px;
  margin-bottom: 8px;
}
.side-item {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 7px 8px;
  border-radius: 6px;
  font-size: 13px;
  color: var(--text-muted);
  margin-bottom: 2px;
  cursor: pointer;
  transition: all var(--transition);
}
.side-item:hover { background: var(--bg-soft); color: var(--text); }
.side-item.active {
  background: var(--grad-soft);
  color: var(--primary);
  font-weight: 500;
}
.side-item svg { width: 16px; height: 16px; flex-shrink: 0; }
.side-badge {
  margin-left: auto;
  font-size: 10px;
  background: var(--border);
  color: var(--text-muted);
  padding: 1px 6px;
  border-radius: 100px;
  font-weight: 600;
}

.product-main {
  padding: 16px 18px;
  display: flex;
  flex-direction: column;
  gap: 14px;
  overflow: hidden;
}
.product-toolbar {
  display: flex;
  align-items: center;
  gap: 10px;
}
.search-pill {
  flex: 1;
  display: flex;
  align-items: center;
  gap: 8px;
  background: var(--bg-soft);
  border: 1px solid var(--border);
  border-radius: 8px;
  padding: 7px 12px;
  font-size: 12.5px;
  color: var(--text-muted);
}
.search-pill svg { width: 14px; height: 14px; }
.toolbar-actions { display: flex; align-items: center; gap: 6px; }
.chip {
  font-size: 11px;
  font-weight: 600;
  padding: 4px 9px;
  border-radius: 100px;
  display: inline-flex;
  align-items: center;
  gap: 4px;
}
.chip-blue {
  background: rgba(59, 130, 246, 0.12);
  color: var(--primary);
}
.chip-blue::before {
  content: '';
  width: 5px; height: 5px;
  border-radius: 50%;
  background: var(--primary);
  animation: pulse 1.5s infinite;
}
.chip-icon {
  width: 28px; height: 28px;
  display: grid;
  place-items: center;
  border-radius: 7px;
  background: var(--bg-soft);
  border: 1px solid var(--border);
  color: var(--text-muted);
}
.chip-icon svg { width: 14px; height: 14px; }

.kpi-row {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 10px;
}
.kpi {
  background: var(--bg-soft);
  border: 1px solid var(--border);
  border-radius: 10px;
  padding: 10px 12px;
}
.kpi-num {
  font-family: 'JetBrains Mono', monospace;
  font-size: 18px;
  font-weight: 700;
  color: var(--text);
  letter-spacing: -0.02em;
}
.kpi-num.bad { color: var(--danger); }
.kpi-num.warn { color: var(--warn); }
.kpi-num.accent { color: var(--accent); }
.kpi-lbl {
  font-size: 11px;
  color: var(--text-muted);
  margin-top: 2px;
}
.kpi-trend {
  font-size: 10.5px;
  font-weight: 600;
  margin-top: 4px;
}
.kpi-trend.up { color: var(--success); }
.kpi-trend.down { color: var(--danger); }

.product-table {
  background: var(--bg-soft);
  border: 1px solid var(--border);
  border-radius: 10px;
  padding: 6px;
  font-size: 12px;
}
.ptr {
  display: grid;
  grid-template-columns: 1.6fr 0.9fr 0.6fr 0.7fr;
  gap: 8px;
  padding: 7px 10px;
  border-radius: 6px;
  align-items: center;
}
.ptr-head {
  font-size: 10.5px;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: var(--text-light);
  padding: 6px 10px;
}
.ptr:not(.ptr-head):hover { background: var(--bg); }
.ptr .strike { text-decoration: line-through; opacity: 0.6; }
.ptr .muted { color: var(--text-light); font-size: 11px; }
.tag {
  font-size: 11px;
  font-weight: 600;
  padding: 2px 7px;
  border-radius: 100px;
  display: inline-block;
  width: fit-content;
}
.tag.green { background: rgba(34, 211, 164, 0.12); color: var(--accent); }
.tag.red { background: rgba(239, 68, 68, 0.12); color: var(--danger); }
.tag.yellow { background: rgba(245, 158, 11, 0.12); color: var(--warn); }

/* Floating cards */
.float-card {
  position: absolute;
  background: var(--bg-elev);
  border: 1px solid var(--border);
  border-radius: 12px;
  padding: 12px 14px;
  box-shadow: var(--shadow-xl);
  display: flex;
  align-items: center;
  gap: 10px;
  z-index: 5;
  animation: floatCard 6s ease-in-out infinite;
}
[data-theme="dark"] .float-card { background: #131b2e; border-color: #1e293b; }
.float-1 { top: 20%; left: -40px; }
.float-2 { bottom: 18%; right: -40px; animation-delay: 1s; }
@keyframes floatCard {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(-10px); }
}
.fc-ico {
  width: 36px; height: 36px;
  border-radius: 9px;
  background: rgba(34, 211, 164, 0.12);
  display: grid;
  place-items: center;
  flex-shrink: 0;
}
.fc-ico svg { width: 18px; height: 18px; }
.fc-title { font-size: 13px; font-weight: 700; color: var(--text); }
.fc-sub { font-size: 11px; color: var(--text-muted); margin-top: 1px; }
.fc-spark {
  display: flex;
  align-items: flex-end;
  gap: 3px;
  height: 28px;
  width: 36px;
}
.fc-spark span {
  flex: 1;
  background: var(--grad-2);
  border-radius: 2px;
  animation: sparkRise 1.5s ease-out;
}
.fc-spark span:nth-child(1) { height: 30%; }
.fc-spark span:nth-child(2) { height: 55%; }
.fc-spark span:nth-child(3) { height: 40%; }
.fc-spark span:nth-child(4) { height: 75%; }
.fc-spark span:nth-child(5) { height: 100%; }
@keyframes sparkRise {
  from { height: 0%; opacity: 0; }
}

/* ===== Marquee ===== */
.marquee-wrap {
  margin-top: 80px;
  text-align: center;
}
.marquee-label {
  font-size: 12.5px;
  color: var(--text-muted);
  text-transform: uppercase;
  letter-spacing: 0.12em;
  font-weight: 500;
  margin: 0 0 24px;
}
.marquee {
  position: relative;
  overflow: hidden;
  mask-image: linear-gradient(90deg, transparent, black 10%, black 90%, transparent);
  -webkit-mask-image: linear-gradient(90deg, transparent, black 10%, black 90%, transparent);
}
.marquee-track {
  display: flex;
  gap: 64px;
  width: max-content;
  animation: marquee 40s linear infinite;
}
@keyframes marquee {
  to { transform: translateX(calc(-50% - 32px)); }
}
.marquee-logo {
  font-weight: 700;
  font-size: 22px;
  color: var(--text-light);
  letter-spacing: -0.02em;
  white-space: nowrap;
  opacity: 0.7;
  transition: opacity 0.2s;
}
.marquee-logo:hover { opacity: 1; }

/* ===== Stats Bar ===== */
.stats-bar {
  background: var(--bg-soft);
  border-top: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
  padding: 56px 0;
}
.stats-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 32px;
  text-align: center;
}
.stat-num {
  font-family: 'JetBrains Mono', monospace;
  font-size: clamp(32px, 4vw, 48px);
  font-weight: 800;
  letter-spacing: -0.03em;
  background: var(--grad);
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
  margin-bottom: 8px;
}
.stat-num .suffix { background: inherit; -webkit-background-clip: text; background-clip: text; }
.stat-lbl {
  font-size: 14px;
  color: var(--text-muted);
  font-weight: 500;
}

/* ===== Sections ===== */
.section { padding: 100px 0; }
.section-soft { background: var(--bg-soft); }
.section-dark {
  background: var(--bg-dark);
  color: white;
}
.section-dark .section-sub,
.section-dark .text-muted { color: var(--text-on-dark-muted); }

.section-head {
  text-align: center;
  max-width: 760px;
  margin: 0 auto 64px;
}
.kicker {
  display: inline-block;
  padding: 5px 12px;
  background: var(--grad-soft);
  color: var(--primary);
  border: 1px solid rgba(59, 130, 246, 0.2);
  border-radius: 100px;
  font-size: 11.5px;
  font-weight: 700;
  letter-spacing: 0.1em;
  margin-bottom: 20px;
}
.kicker.dark, .kicker.light {
  background: rgba(255, 255, 255, 0.08);
  color: white;
  border-color: rgba(255, 255, 255, 0.1);
}
.section-title {
  font-size: clamp(32px, 4.5vw, 52px);
  font-weight: 800;
  margin-bottom: 18px;
  letter-spacing: -0.03em;
  line-height: 1.1;
}
.section-sub {
  font-size: 18px;
  color: var(--text-muted);
  max-width: 640px;
  margin: 0 auto;
}

/* ===== Bento Features ===== */
.bento {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  grid-auto-rows: minmax(280px, auto);
  gap: 20px;
}
.bento-card {
  background: var(--bg-elev);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 28px;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  position: relative;
  overflow: hidden;
  transition: all 0.3s ease;
}
.bento-card:hover {
  transform: translateY(-3px);
  border-color: var(--border-2);
  box-shadow: var(--shadow-lg);
}
.bento-lg {
  grid-column: span 2;
}
.bento-content { position: relative; z-index: 2; }
.feat-badge {
  display: inline-block;
  padding: 4px 10px;
  background: rgba(59, 130, 246, 0.1);
  color: var(--primary);
  border-radius: 100px;
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  margin-bottom: 14px;
}
.feat-badge.purple { background: rgba(139, 92, 246, 0.1); color: var(--accent-2); }
.feat-badge.green { background: rgba(34, 211, 164, 0.1); color: var(--accent); }
.feat-badge.orange { background: rgba(245, 158, 11, 0.1); color: var(--warn); }
.feat-badge.blue { background: rgba(59, 130, 246, 0.1); color: var(--primary); }
.bento-card h3 {
  font-size: 22px;
  font-weight: 700;
  margin-bottom: 8px;
}
.bento-card p {
  color: var(--text-muted);
  font-size: 14.5px;
  margin: 0;
  max-width: 480px;
}
.bento-vis {
  margin-top: 24px;
  display: flex;
  flex-direction: column;
  gap: 6px;
}
.vis-pill {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 8px 12px;
  background: var(--bg-soft);
  border-radius: 8px;
  font-family: 'JetBrains Mono', monospace;
  font-size: 12.5px;
  border: 1px solid var(--border);
}
.vis-pill .vis-meta { margin-left: auto; font-weight: 700; color: var(--text-muted); }
.vis-pill.green { border-color: rgba(34, 211, 164, 0.25); }
.vis-pill.red { border-color: rgba(239, 68, 68, 0.25); color: var(--danger); }
.vis-pill.yellow { border-color: rgba(245, 158, 11, 0.25); color: var(--warn); }
.vis-dot {
  width: 6px; height: 6px;
  border-radius: 50%;
  background: var(--accent);
  box-shadow: 0 0 6px var(--accent);
}
.vis-dot.red { background: var(--danger); box-shadow: 0 0 6px var(--danger); }
.vis-dot.yellow { background: var(--warn); box-shadow: 0 0 6px var(--warn); }

.vis-stack { gap: 4px; }
.stack-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 8px 12px;
  background: var(--bg-soft);
  border-radius: 8px;
  font-size: 12px;
  border: 1px solid var(--border);
}
.stack-row.dim { opacity: 0.5; }
.stack-row .check { color: var(--accent); font-weight: 700; }
.stack-row .x { color: var(--danger); font-weight: 700; }

.vis-files {
  flex-direction: row;
  flex-wrap: wrap;
  gap: 6px;
}
.file-chip {
  font-family: 'JetBrains Mono', monospace;
  font-size: 12px;
  padding: 6px 12px;
  background: var(--bg-soft);
  border: 1px solid var(--border);
  border-radius: 6px;
  font-weight: 600;
  color: var(--text-muted);
}

.risk-bar {
  position: relative;
  background: var(--bg-soft);
  border-radius: 6px;
  overflow: hidden;
  height: 28px;
  border: 1px solid var(--border);
}
.risk-fill {
  height: 100%;
  background: var(--grad-2);
  border-radius: 6px;
  animation: fillBar 1.5s ease-out;
}
@keyframes fillBar {
  from { width: 0; }
}
.risk-bar span {
  position: absolute;
  right: 10px;
  top: 50%;
  transform: translateY(-50%);
  font-family: 'JetBrains Mono', monospace;
  font-size: 12px;
  font-weight: 700;
  color: var(--text);
}

.vis-int {
  align-items: center;
  justify-content: center;
}
.int-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 8px;
}
.int-cell {
  width: 48px; height: 48px;
  border-radius: 10px;
  background: var(--bg-soft);
  border: 1px solid var(--border);
  display: grid;
  place-items: center;
  font-weight: 700;
  font-size: 14px;
  color: var(--text-muted);
  transition: all 0.2s;
}
.int-cell:hover { transform: translateY(-2px); border-color: var(--primary); color: var(--primary); }

/* ===== Steps ===== */
.steps {
  display: grid;
  grid-template-columns: 1fr auto 1fr auto 1fr;
  gap: 16px;
  align-items: stretch;
  max-width: 1100px;
  margin: 0 auto;
}
.step {
  background: var(--bg-elev);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 32px;
  position: relative;
  transition: all 0.3s;
}
.step:hover { box-shadow: var(--shadow-md); transform: translateY(-3px); }
.step-num {
  font-family: 'JetBrains Mono', monospace;
  font-size: 13px;
  font-weight: 700;
  color: var(--primary);
  margin-bottom: 16px;
}
.step h3 { font-size: 19px; font-weight: 700; margin-bottom: 8px; }
.step p { color: var(--text-muted); margin: 0; font-size: 14.5px; }
.step-arrow {
  display: grid;
  place-items: center;
  color: var(--border-2);
}
.step-arrow svg { width: 24px; height: 24px; }

/* ============================================
   Auto-Playing Verification Engine Demo
   ============================================ */
.autodemo {
  background: #0a0e1a;
  border: 1px solid #1e293b;
  border-radius: var(--radius-lg);
  overflow: hidden;
  box-shadow: 0 40px 100px -25px rgba(0, 0, 0, 0.6), 0 0 80px rgba(59, 130, 246, 0.08);
  max-width: 1180px;
  margin: 0 auto;
}
.autodemo .window-bar {
  background: #131b2e;
  border-color: #1e293b;
  padding: 13px 18px;
}
.autodemo .window-title { color: var(--text-on-dark-muted); flex: 1; }

.autodemo-grid {
  display: grid;
  grid-template-columns: 0.9fr 1.2fr 1.1fr;
  min-height: 520px;
}
.ad-col {
  border-right: 1px solid rgba(255, 255, 255, 0.05);
  padding: 18px;
  display: flex;
  flex-direction: column;
  min-width: 0;
}
.ad-col:last-child { border-right: none; }
.ad-col-pipeline {
  background: linear-gradient(180deg, rgba(59, 130, 246, 0.04) 0%, transparent 100%);
}

.ad-col-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 14px;
  padding-bottom: 12px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.05);
}
.ad-col-title {
  font-size: 11px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: #94a3b8;
}
.ad-col-meta {
  font-family: 'JetBrains Mono', monospace;
  font-size: 11.5px;
  color: #64748b;
  display: inline-flex;
  align-items: center;
  gap: 6px;
}
.ad-col-meta.engine-running {
  color: #22d3a4;
  background: rgba(34, 211, 164, 0.08);
  padding: 3px 9px;
  border-radius: 100px;
  border: 1px solid rgba(34, 211, 164, 0.2);
  font-size: 11px;
  font-weight: 600;
}

/* Queue column */
.ad-queue {
  flex: 1;
  display: flex;
  flex-direction: column;
  gap: 4px;
  position: relative;
  overflow: hidden;
  mask-image: linear-gradient(180deg, transparent 0%, black 12%, black 88%, transparent 100%);
  -webkit-mask-image: linear-gradient(180deg, transparent 0%, black 12%, black 88%, transparent 100%);
}
.ad-q-item {
  font-family: 'JetBrains Mono', monospace;
  font-size: 12px;
  color: #94a3b8;
  padding: 7px 10px;
  border-radius: 6px;
  background: rgba(255, 255, 255, 0.02);
  border: 1px solid rgba(255, 255, 255, 0.04);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  display: flex;
  align-items: center;
  gap: 8px;
  flex-shrink: 0;
  transition: all 0.4s ease;
  animation: queueSlide 0.5s ease backwards;
}
.ad-q-item.active {
  background: rgba(59, 130, 246, 0.12);
  border-color: rgba(59, 130, 246, 0.4);
  color: white;
  box-shadow: 0 0 0 1px rgba(59, 130, 246, 0.4), 0 0 20px rgba(59, 130, 246, 0.25);
}
.ad-q-item.done { opacity: 0.3; transform: translateX(-12px); }
.ad-q-item::before {
  content: '';
  width: 4px; height: 4px;
  border-radius: 50%;
  background: currentColor;
  opacity: 0.5;
  flex-shrink: 0;
}
@keyframes queueSlide {
  from { opacity: 0; transform: translateY(-12px); }
  to { opacity: 1; transform: translateY(0); }
}

/* Pipeline column */
.ad-current {
  background: rgba(255, 255, 255, 0.02);
  border: 1px solid rgba(255, 255, 255, 0.06);
  border-radius: 10px;
  padding: 14px 16px;
  margin-bottom: 16px;
}
.ad-current-label {
  font-size: 10.5px;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: #64748b;
  margin-bottom: 4px;
  font-weight: 600;
}
.ad-current-email {
  font-family: 'JetBrains Mono', monospace;
  font-size: 16px;
  color: white;
  font-weight: 600;
  letter-spacing: -0.01em;
  min-height: 22px;
  word-break: break-all;
}

.ad-stages {
  display: flex;
  flex-direction: column;
  gap: 6px;
  flex: 1;
}
.ad-stages li {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 9px 14px;
  border-radius: 8px;
  font-size: 13px;
  color: #64748b;
  background: rgba(255, 255, 255, 0.02);
  border: 1px solid rgba(255, 255, 255, 0.04);
  transition: all 0.3s ease;
  position: relative;
  overflow: hidden;
}
.ad-stage-name { display: inline-flex; align-items: center; gap: 10px; }
.ad-stage-name::before {
  content: '';
  width: 6px; height: 6px;
  border-radius: 50%;
  background: #334155;
  flex-shrink: 0;
  transition: all 0.2s;
}
.ad-stage-icon {
  width: 18px; height: 18px;
  display: grid;
  place-items: center;
  font-size: 12px;
  color: #334155;
}

.ad-stages li.running {
  background: rgba(59, 130, 246, 0.08);
  border-color: rgba(59, 130, 246, 0.25);
  color: #cbd5e1;
}
.ad-stages li.running .ad-stage-name::before {
  background: var(--primary);
  box-shadow: 0 0 10px var(--primary);
  animation: pulse 1s ease-in-out infinite;
}
.ad-stages li.running .ad-stage-icon::after {
  content: '';
  width: 12px; height: 12px;
  border: 1.5px solid var(--primary);
  border-right-color: transparent;
  border-radius: 50%;
  animation: spin 0.7s linear infinite;
}
@keyframes spin { to { transform: rotate(360deg); } }

.ad-stages li.pass {
  background: rgba(34, 211, 164, 0.06);
  border-color: rgba(34, 211, 164, 0.2);
  color: #a7f3d0;
}
.ad-stages li.pass .ad-stage-name::before { background: var(--accent); box-shadow: 0 0 8px var(--accent); }
.ad-stages li.pass .ad-stage-icon::after { content: '✓'; color: var(--accent); font-weight: 700; }

.ad-stages li.fail {
  background: rgba(239, 68, 68, 0.06);
  border-color: rgba(239, 68, 68, 0.2);
  color: #fca5a5;
}
.ad-stages li.fail .ad-stage-name::before { background: var(--danger); box-shadow: 0 0 8px var(--danger); }
.ad-stages li.fail .ad-stage-icon::after { content: '✕'; color: var(--danger); font-weight: 700; }

.ad-stages li.warn {
  background: rgba(245, 158, 11, 0.06);
  border-color: rgba(245, 158, 11, 0.2);
  color: #fcd34d;
}
.ad-stages li.warn .ad-stage-name::before { background: var(--warn); box-shadow: 0 0 8px var(--warn); }
.ad-stages li.warn .ad-stage-icon::after { content: '!'; color: var(--warn); font-weight: 700; }

.ad-stages li.score .ad-stage-icon {
  font-family: 'JetBrains Mono', monospace;
  font-weight: 700;
  font-size: 12px;
  color: white;
  background: var(--grad-2);
  border-radius: 5px;
  padding: 2px 6px;
  width: auto;
  height: auto;
  min-width: 30px;
}

/* Results column */
.ad-stats {
  display: flex;
  flex-direction: column;
  gap: 10px;
  margin-bottom: 18px;
}
.ad-stat {
  background: rgba(255, 255, 255, 0.02);
  border: 1px solid rgba(255, 255, 255, 0.05);
  border-radius: 8px;
  padding: 9px 12px;
}
.ad-stat-bar {
  height: 3px;
  background: rgba(255, 255, 255, 0.05);
  border-radius: 100px;
  overflow: hidden;
  margin-bottom: 7px;
}
.ad-stat-fill {
  height: 100%;
  border-radius: 100px;
  transition: width 0.5s ease;
}
.ad-stat-fill.green { background: var(--accent); }
.ad-stat-fill.red { background: var(--danger); }
.ad-stat-fill.yellow { background: var(--warn); }
.ad-stat-fill.purple { background: var(--accent-2); }
.ad-stat-row {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 12.5px;
  color: #cbd5e1;
}
.ad-stat-num {
  margin-left: auto;
  font-family: 'JetBrains Mono', monospace;
  font-weight: 700;
  color: white;
  font-size: 13px;
}
.ad-stat-dot {
  width: 7px; height: 7px;
  border-radius: 50%;
  flex-shrink: 0;
}
.ad-stat-dot.green { background: var(--accent); box-shadow: 0 0 6px var(--accent); }
.ad-stat-dot.red { background: var(--danger); box-shadow: 0 0 6px var(--danger); }
.ad-stat-dot.yellow { background: var(--warn); box-shadow: 0 0 6px var(--warn); }
.ad-stat-dot.purple { background: var(--accent-2); box-shadow: 0 0 6px var(--accent-2); }

.ad-stream-label {
  font-size: 10.5px;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: #64748b;
  font-weight: 600;
  margin-bottom: 8px;
}
.ad-stream {
  flex: 1;
  display: flex;
  flex-direction: column;
  gap: 5px;
  overflow: hidden;
  min-height: 160px;
  mask-image: linear-gradient(180deg, black 0%, black 80%, transparent 100%);
  -webkit-mask-image: linear-gradient(180deg, black 0%, black 80%, transparent 100%);
}
.ad-result {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 7px 10px;
  border-radius: 6px;
  font-family: 'JetBrains Mono', monospace;
  font-size: 11.5px;
  background: rgba(255, 255, 255, 0.02);
  border: 1px solid rgba(255, 255, 255, 0.04);
  animation: resultSlide 0.4s ease backwards;
  white-space: nowrap;
  overflow: hidden;
}
.ad-result.valid { color: #a7f3d0; border-color: rgba(34, 211, 164, 0.18); background: rgba(34, 211, 164, 0.04); }
.ad-result.invalid { color: #fca5a5; border-color: rgba(239, 68, 68, 0.18); background: rgba(239, 68, 68, 0.04); }
.ad-result.risky { color: #fcd34d; border-color: rgba(245, 158, 11, 0.18); background: rgba(245, 158, 11, 0.04); }
.ad-result.dispo { color: #c4b5fd; border-color: rgba(139, 92, 246, 0.18); background: rgba(139, 92, 246, 0.04); }
.ad-result-email {
  flex: 1;
  overflow: hidden;
  text-overflow: ellipsis;
}
.ad-result-tag {
  font-size: 10px;
  font-weight: 700;
  padding: 1px 6px;
  border-radius: 100px;
  background: rgba(255, 255, 255, 0.06);
  text-transform: uppercase;
  letter-spacing: 0.04em;
  font-family: 'Inter', sans-serif;
}
.ad-result-score {
  font-weight: 700;
  color: white;
  opacity: 0.8;
  font-size: 11px;
}
@keyframes resultSlide {
  from { opacity: 0; transform: translateX(20px); }
  to { opacity: 1; transform: translateX(0); }
}

.autodemo-foot {
  display: flex;
  align-items: center;
  justify-content: center;
  flex-wrap: wrap;
  gap: 12px;
  padding: 14px 24px;
  background: #131b2e;
  border-top: 1px solid #1e293b;
  font-size: 12.5px;
  color: #94a3b8;
}
.foot-pill {
  background: var(--grad-2);
  color: white;
  font-weight: 600;
  padding: 3px 10px;
  border-radius: 100px;
  font-size: 11.5px;
}
.foot-sep { color: #334155; }

/* Validation feature card check list */
.vis-checks {
  gap: 7px !important;
}
.check-row {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 7px 11px;
  background: var(--bg-soft);
  border: 1px solid var(--border);
  border-radius: 7px;
  font-size: 13px;
  color: var(--text);
}
.check-tick {
  width: 16px; height: 16px;
  display: grid;
  place-items: center;
  border-radius: 50%;
  background: rgba(34, 211, 164, 0.15);
  color: var(--accent);
  font-size: 10px;
  font-weight: 800;
  flex-shrink: 0;
}

/* ===== Solutions ===== */
.solutions-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
}
.sol-card {
  display: block;
  padding: 28px;
  background: var(--bg-elev);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  transition: all 0.3s;
  position: relative;
  overflow: hidden;
}
.sol-card::after {
  content: '';
  position: absolute;
  top: 0; left: 0;
  width: 100%;
  height: 2px;
  background: var(--grad);
  transform: scaleX(0);
  transform-origin: left;
  transition: transform 0.4s ease;
}
.sol-card:hover { transform: translateY(-4px); box-shadow: var(--shadow-lg); border-color: var(--border-2); }
.sol-card:hover::after { transform: scaleX(1); }
.sol-ico {
  width: 44px; height: 44px;
  border-radius: 10px;
  background: var(--grad-soft);
  color: var(--primary);
  display: grid;
  place-items: center;
  margin-bottom: 18px;
}
.sol-ico svg { width: 22px; height: 22px; }
.sol-card h4 { font-size: 18px; font-weight: 700; margin-bottom: 8px; }
.sol-card p { color: var(--text-muted); font-size: 14.5px; margin: 0 0 16px; }
.sol-link {
  font-size: 13.5px;
  font-weight: 600;
  color: var(--primary);
  transition: gap 0.2s;
}

/* ===== Integrations List ===== */
.int-list {
  display: grid;
  grid-template-columns: repeat(8, 1fr);
  gap: 12px;
  max-width: 1000px;
  margin: 0 auto;
}
.int-tile {
  background: var(--bg-elev);
  border: 1px solid var(--border);
  border-radius: 12px;
  padding: 18px 12px;
  text-align: center;
  font-size: 13px;
  font-weight: 600;
  color: var(--text-muted);
  transition: all 0.2s;
  cursor: pointer;
}
.int-tile:hover {
  transform: translateY(-2px);
  border-color: var(--primary);
  color: var(--text);
  box-shadow: var(--shadow-md);
}
.int-cta {
  text-align: center;
  margin-top: 32px;
}

/* ===== Testimonials ===== */
.testimonial-feature {
  background: var(--bg-elev);
  border: 1px solid var(--border);
  border-radius: var(--radius-xl);
  padding: 56px 48px;
  text-align: center;
  max-width: 880px;
  margin: 0 auto 32px;
  position: relative;
  overflow: hidden;
}
.testimonial-feature::before {
  content: '';
  position: absolute;
  top: 0; left: 0; right: 0;
  height: 4px;
  background: var(--grad);
}
.quote-mark {
  font-size: 80px;
  font-family: Georgia, serif;
  color: var(--primary);
  line-height: 0.5;
  margin-bottom: 24px;
  height: 32px;
  opacity: 0.3;
}
.big-quote {
  font-size: 22px;
  line-height: 1.5;
  color: var(--text);
  font-weight: 500;
  margin: 0 0 32px;
  letter-spacing: -0.01em;
}
.quote-author {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 12px;
}
.avatar {
  width: 48px; height: 48px;
  border-radius: 50%;
  background: var(--grad);
  color: white;
  display: grid;
  place-items: center;
  font-weight: 700;
  font-size: 16px;
}
.avatar.sm { width: 36px; height: 36px; font-size: 13px; }
.quote-author strong {
  display: block;
  text-align: left;
  font-size: 15px;
  color: var(--text);
}
.quote-author span {
  display: block;
  text-align: left;
  font-size: 13px;
  color: var(--text-muted);
}

.testimonial-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
}
.testi {
  background: var(--bg-elev);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 28px;
  transition: all 0.3s;
}
.testi:hover { transform: translateY(-3px); box-shadow: var(--shadow-md); }
.stars { color: var(--warn); margin-bottom: 14px; letter-spacing: 2px; font-size: 14px; }
.testi p { color: var(--text); font-size: 15px; margin: 0 0 20px; line-height: 1.55; }
.testi-author {
  display: flex;
  align-items: center;
  gap: 10px;
}

/* ===== Pricing ===== */
.billing-toggle {
  display: inline-flex;
  background: var(--bg-elev);
  border: 1px solid var(--border);
  border-radius: 100px;
  padding: 4px;
  margin-top: 28px;
}
.bt-btn {
  padding: 8px 18px;
  border-radius: 100px;
  font-size: 13.5px;
  font-weight: 600;
  color: var(--text-muted);
  display: flex;
  align-items: center;
  gap: 8px;
  transition: all var(--transition);
}
.bt-btn.active { background: var(--text); color: var(--bg); }
[data-theme="dark"] .bt-btn.active { background: white; color: #0a0e1a; }
.save-pill {
  font-size: 10.5px;
  background: var(--accent);
  color: #064e3b;
  padding: 1px 6px;
  border-radius: 100px;
  font-weight: 700;
}

.pricing-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
  max-width: 1080px;
  margin: 0 auto;
}
.price-card {
  background: var(--bg-elev);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 36px 28px;
  position: relative;
  transition: all 0.3s;
}
.price-card:hover { box-shadow: var(--shadow-md); }
.price-card.featured {
  border-color: var(--primary);
  box-shadow: 0 0 0 1px var(--primary), var(--shadow-lg);
  transform: translateY(-8px);
}
.featured-tag {
  position: absolute;
  top: -12px;
  right: 24px;
  background: var(--grad);
  color: white;
  padding: 4px 12px;
  border-radius: 100px;
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.05em;
  text-transform: uppercase;
}
.price-card h3 { font-size: 20px; font-weight: 700; margin-bottom: 6px; }
.price-tag { color: var(--text-muted); font-size: 13.5px; margin: 0 0 24px; }
.price-amount {
  display: flex;
  align-items: baseline;
  gap: 6px;
  margin-bottom: 24px;
}
.price-amount .amount {
  font-size: 42px;
  font-weight: 800;
  letter-spacing: -0.03em;
  color: var(--text);
}
.price-amount .per { color: var(--text-muted); font-size: 14px; }
.price-feats {
  margin-top: 24px;
  display: flex;
  flex-direction: column;
  gap: 10px;
}
.price-feats li {
  position: relative;
  padding-left: 26px;
  font-size: 14px;
  color: var(--text-muted);
}
.price-feats li::before {
  content: '';
  position: absolute;
  left: 0; top: 7px;
  width: 16px; height: 16px;
  background: var(--grad-soft);
  border-radius: 50%;
}
.price-feats li::after {
  content: '';
  position: absolute;
  left: 4px; top: 10px;
  width: 7px; height: 4px;
  border-left: 1.5px solid var(--accent);
  border-bottom: 1.5px solid var(--accent);
  transform: rotate(-45deg);
}
.price-feats li strong { color: var(--text); }

/* ============================================
   Download Section + Modal
   ============================================ */
.dl-card {
  display: grid;
  grid-template-columns: 1.2fr 1fr;
  gap: 0;
  background: var(--bg-elev);
  border: 1px solid var(--border);
  border-radius: var(--radius-xl);
  overflow: hidden;
  box-shadow: var(--shadow-lg);
  max-width: 1080px;
  margin: 0 auto;
}
.dl-card-left {
  padding: 48px 44px;
  border-right: 1px solid var(--border);
}
.dl-card-right {
  padding: 48px 44px;
  background: linear-gradient(180deg, var(--bg-soft) 0%, var(--bg-elev) 100%);
  display: flex;
  flex-direction: column;
}
.dl-os-badge {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 6px 14px;
  background: var(--grad-soft);
  border: 1px solid rgba(59, 130, 246, 0.2);
  border-radius: 100px;
  font-size: 12.5px;
  font-weight: 600;
  color: var(--primary);
  margin-bottom: 20px;
}
.dl-os-badge svg { width: 16px; height: 16px; }
.dl-h {
  font-size: 28px;
  font-weight: 800;
  margin-bottom: 12px;
  letter-spacing: -0.025em;
}
.dl-desc {
  color: var(--text-muted);
  font-size: 15.5px;
  margin: 0 0 24px;
  line-height: 1.6;
}
.dl-feats {
  display: flex;
  flex-direction: column;
  gap: 10px;
}
.dl-feats li {
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 14.5px;
  color: var(--text);
}
.dl-feats svg {
  width: 18px; height: 18px;
  color: var(--accent);
  background: rgba(34, 211, 164, 0.12);
  border-radius: 50%;
  padding: 2px;
  flex-shrink: 0;
}

.dl-meta-row {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 12px;
  margin-bottom: 24px;
  padding-bottom: 24px;
  border-bottom: 1px dashed var(--border);
}
.dl-meta { display: flex; flex-direction: column; gap: 2px; }
.dl-meta-lbl {
  font-size: 11px;
  color: var(--text-muted);
  text-transform: uppercase;
  letter-spacing: 0.08em;
  font-weight: 600;
}
.dl-meta-val {
  font-family: 'JetBrains Mono', monospace;
  font-size: 15px;
  font-weight: 700;
  color: var(--text);
}

.dl-main-btn {
  width: 100%;
  padding: 16px 22px !important;
  font-size: 16px !important;
  margin-bottom: 14px;
}
.dl-note {
  font-size: 12.5px;
  color: var(--text-muted);
  line-height: 1.55;
  margin: 0 0 20px;
}
.dl-trust-row {
  display: flex;
  flex-wrap: wrap;
  gap: 16px;
  margin-top: auto;
  padding-top: 16px;
  border-top: 1px dashed var(--border);
  font-size: 12.5px;
  color: var(--text-muted);
}
.dl-trust-row span {
  display: inline-flex;
  align-items: center;
  gap: 6px;
}
.dl-trust-row svg {
  width: 14px; height: 14px;
  color: var(--accent);
}

/* CTA actions wrapper */
.cta-actions {
  display: flex;
  justify-content: center;
  margin-bottom: 16px;
}

/* ============================================
   Download Modal
   ============================================ */
.modal-overlay {
  position: fixed;
  inset: 0;
  background: rgba(10, 14, 26, 0.65);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  z-index: 200;
  display: grid;
  place-items: center;
  padding: 20px;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.25s ease;
}
.modal-overlay[hidden] { display: none; }
.modal-overlay.show {
  opacity: 1;
  pointer-events: auto;
}
.modal {
  background: var(--bg-elev);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  width: 100%;
  max-width: 460px;
  padding: 36px 32px 28px;
  box-shadow: var(--shadow-xl);
  position: relative;
  transform: translateY(20px) scale(0.97);
  transition: transform 0.3s cubic-bezier(0.34, 1.56, 0.64, 1);
}
.modal-overlay.show .modal { transform: translateY(0) scale(1); }

.modal-close {
  position: absolute;
  top: 14px;
  right: 14px;
  width: 32px;
  height: 32px;
  border-radius: 8px;
  font-size: 22px;
  line-height: 1;
  color: var(--text-muted);
  background: transparent;
  transition: all var(--transition);
}
.modal-close:hover { background: var(--bg-soft); color: var(--text); }

.modal-icon {
  width: 56px;
  height: 56px;
  border-radius: 14px;
  background: var(--grad-soft);
  color: var(--primary);
  display: grid;
  place-items: center;
  margin-bottom: 20px;
}
.modal-icon.success {
  background: rgba(34, 211, 164, 0.12);
  color: var(--accent);
}
.modal-icon svg { width: 28px; height: 28px; }

.modal-body h3 {
  font-size: 22px;
  font-weight: 700;
  margin-bottom: 8px;
  letter-spacing: -0.02em;
}
.modal-body > p {
  color: var(--text-muted);
  font-size: 14.5px;
  margin: 0 0 22px;
  line-height: 1.55;
}

.modal-form {
  display: flex;
  flex-direction: column;
  gap: 10px;
  margin-bottom: 16px;
}
.modal-form input {
  width: 100%;
  padding: 13px 16px;
  background: var(--bg);
  border: 1.5px solid var(--border);
  border-radius: 10px;
  font-size: 15px;
  color: var(--text);
  outline: none;
  transition: border-color 0.2s;
}
.modal-form input:focus { border-color: var(--primary); }
.modal-form input.invalid { border-color: var(--danger); }
.modal-form .btn {
  padding: 13px 20px;
  font-size: 15px;
  position: relative;
}
.modal-form .btn[disabled] { opacity: 0.7; cursor: not-allowed; transform: none !important; }

.dl-spinner {
  width: 16px;
  height: 16px;
  border: 2px solid currentColor;
  border-right-color: transparent;
  border-radius: 50%;
  animation: spin 0.7s linear infinite;
  display: inline-block;
}

.modal-error {
  font-size: 13px;
  color: var(--danger);
  margin: 4px 0 0;
}

.modal-fine {
  font-size: 11.5px;
  color: var(--text-light);
  text-align: center;
  line-height: 1.5;
  margin: 0;
}

.modal-success { text-align: center; }
.modal-success .modal-icon { margin: 0 auto 20px; }
.modal-success .btn { margin-top: 8px; }

/* ===== Comparison Table ===== */
.compare-wrap {
  max-width: 920px;
  margin: 0 auto;
  background: var(--bg-elev);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  overflow: hidden;
  box-shadow: var(--shadow-md);
}
.compare {
  width: 100%;
  border-collapse: collapse;
}
.compare th, .compare td {
  padding: 16px 20px;
  text-align: left;
  border-bottom: 1px solid var(--border);
  font-size: 14.5px;
}
.compare th {
  background: var(--bg-soft);
  font-weight: 600;
  color: var(--text-muted);
  font-size: 13px;
  text-transform: uppercase;
  letter-spacing: 0.05em;
}
.compare th.us {
  color: var(--primary);
  font-weight: 700;
  text-transform: none;
  letter-spacing: 0;
  font-size: 14.5px;
  display: flex;
  align-items: center;
  gap: 8px;
}
.compare td.us { background: var(--grad-soft); color: var(--text); font-weight: 600; }
.compare td:first-child { color: var(--text); font-weight: 500; }
.compare tbody tr:last-child td { border-bottom: none; }

/* ===== Security ===== */
.security-grid {
  display: grid;
  grid-template-columns: 1.2fr 1fr;
  gap: 56px;
  align-items: center;
}
.security-feats {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 12px;
  margin: 28px 0;
}
.security-feats div {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 14px;
  color: var(--text-on-dark);
}
.security-feats svg { width: 18px; height: 18px; color: var(--accent); flex-shrink: 0; }

.security-badges {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 12px;
}
.badge-card {
  aspect-ratio: 1;
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: var(--radius);
  display: grid;
  place-items: center;
  font-weight: 700;
  font-size: 16px;
  color: white;
  letter-spacing: -0.01em;
  transition: all 0.3s;
}
.badge-card:hover {
  background: rgba(255, 255, 255, 0.08);
  transform: translateY(-3px);
  box-shadow: 0 10px 30px rgba(59, 130, 246, 0.2);
}

/* ===== FAQ ===== */
.faq-list {
  max-width: 820px;
  margin: 0 auto;
  display: flex;
  flex-direction: column;
  gap: 10px;
}
.faq-item {
  background: var(--bg-elev);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  overflow: hidden;
  transition: all 0.2s;
}
.faq-item[open] {
  border-color: var(--border-2);
  box-shadow: var(--shadow-sm);
}
.faq-item summary {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 18px 22px;
  font-weight: 600;
  font-size: 16px;
  color: var(--text);
  cursor: pointer;
  list-style: none;
  user-select: none;
}
.faq-item summary::-webkit-details-marker { display: none; }
.faq-icon {
  width: 24px; height: 24px;
  display: grid;
  place-items: center;
  border-radius: 50%;
  background: var(--bg-soft);
  font-size: 18px;
  font-weight: 400;
  color: var(--text-muted);
  transition: transform 0.2s;
}
.faq-item[open] .faq-icon { transform: rotate(45deg); }
.faq-body {
  padding: 0 22px 22px;
  color: var(--text-muted);
  font-size: 15px;
  line-height: 1.6;
}

/* ===== CTA Card ===== */
.cta-card {
  position: relative;
  background: linear-gradient(135deg, #0a0e1a 0%, #1e293b 100%);
  border-radius: 32px;
  padding: 72px 48px;
  text-align: center;
  color: white;
  overflow: hidden;
}
.cta-bg {
  position: absolute;
  inset: 0;
  background:
    radial-gradient(circle at 20% 30%, rgba(59, 130, 246, 0.4), transparent 50%),
    radial-gradient(circle at 80% 70%, rgba(34, 211, 164, 0.3), transparent 50%),
    radial-gradient(circle at 50% 100%, rgba(139, 92, 246, 0.3), transparent 50%);
}
.cta-content { position: relative; z-index: 1; max-width: 640px; margin: 0 auto; }
.cta-content h2 {
  font-size: clamp(32px, 4.5vw, 48px);
  font-weight: 800;
  margin: 16px 0 18px;
  letter-spacing: -0.03em;
  line-height: 1.1;
}
.cta-content p {
  font-size: 17px;
  color: rgba(226, 232, 240, 0.85);
  margin: 0 0 32px;
}
.cta-form {
  display: flex;
  gap: 8px;
  max-width: 460px;
  margin: 0 auto 14px;
  background: rgba(255, 255, 255, 0.06);
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: 12px;
  padding: 6px;
  backdrop-filter: blur(10px);
}
.cta-form input {
  flex: 1;
  background: transparent;
  border: none;
  outline: none;
  padding: 10px 14px;
  color: white;
  font-size: 15px;
}
.cta-form input::placeholder { color: rgba(255, 255, 255, 0.5); }
.cta-form .btn { flex-shrink: 0; }
.cta-meta {
  font-size: 13px;
  color: rgba(255, 255, 255, 0.6);
  margin-bottom: 36px;
}
.dot-sep { margin: 0 6px; opacity: 0.5; }
.cta-or {
  text-align: center;
  font-size: 12px;
  color: rgba(255, 255, 255, 0.5);
  text-transform: uppercase;
  letter-spacing: 0.12em;
  margin-bottom: 16px;
  position: relative;
}
.cta-or::before, .cta-or::after {
  content: '';
  display: inline-block;
  width: 60px;
  height: 1px;
  background: rgba(255, 255, 255, 0.15);
  vertical-align: middle;
  margin: 0 12px;
}
.download-actions {
  display: flex;
  gap: 10px;
  justify-content: center;
  flex-wrap: wrap;
}

/* ===== Footer ===== */
.footer {
  background: var(--bg-dark);
  color: #cbd5e1;
  padding: 80px 0 32px;
  border-top: 1px solid #1e293b;
}
.footer-grid {
  display: grid;
  grid-template-columns: 1.4fr 3fr;
  gap: 64px;
  margin-bottom: 56px;
}
.footer-brand .brand { color: white; margin-bottom: 16px; }
.footer-desc {
  color: #94a3b8;
  font-size: 14px;
  max-width: 320px;
  margin: 0 0 20px;
  line-height: 1.6;
}
.footer-status {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: rgba(34, 211, 164, 0.08);
  border: 1px solid rgba(34, 211, 164, 0.2);
  padding: 6px 12px;
  border-radius: 100px;
  font-size: 12.5px;
  color: var(--accent);
  margin-bottom: 24px;
  font-weight: 500;
}
.footer-social {
  display: flex;
  gap: 8px;
}
.footer-social a {
  width: 36px; height: 36px;
  display: grid;
  place-items: center;
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.04);
  color: #94a3b8;
  transition: all 0.2s;
}
.footer-social a:hover { background: rgba(255, 255, 255, 0.1); color: white; transform: translateY(-2px); }
.footer-social svg { width: 16px; height: 16px; }

.footer-cols {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 32px;
}
.footer-col h5 {
  color: white;
  font-size: 13px;
  font-weight: 700;
  margin-bottom: 18px;
  text-transform: uppercase;
  letter-spacing: 0.08em;
}
.footer-col ul li { margin-bottom: 11px; }
.footer-col a {
  color: #94a3b8;
  font-size: 14px;
  transition: color 0.2s;
  display: inline-flex;
  align-items: center;
  gap: 8px;
}
.footer-col a:hover { color: white; }
.hire-tag {
  background: rgba(34, 211, 164, 0.15);
  color: var(--accent);
  padding: 1px 7px;
  border-radius: 100px;
  font-size: 10px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.05em;
}

.footer-bottom {
  padding-top: 32px;
  border-top: 1px solid #1e293b;
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 16px;
}
.footer-bottom p {
  margin: 0;
  font-size: 13px;
  color: #64748b;
}
.footer-bottom-right {
  font-size: 13px;
  color: #94a3b8;
}
.footer-bottom-right a { color: #94a3b8; transition: color 0.2s; }
.footer-bottom-right a:hover { color: white; }

/* ===== Cookie Banner ===== */
.cookie-banner {
  position: fixed;
  bottom: 20px;
  left: 20px;
  right: 20px;
  max-width: 720px;
  margin: 0 auto;
  background: var(--bg-elev);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 16px 20px;
  box-shadow: var(--shadow-xl);
  z-index: 80;
  transform: translateY(120%);
  transition: transform 0.4s cubic-bezier(0.4, 0, 0.2, 1);
}
.cookie-banner.show { transform: translateY(0); }
.cookie-inner {
  display: flex;
  align-items: center;
  gap: 14px;
  flex-wrap: wrap;
}
.cookie-inner > svg {
  width: 24px; height: 24px;
  color: var(--text-muted);
  flex-shrink: 0;
}
.cookie-inner p {
  flex: 1;
  margin: 0;
  font-size: 13.5px;
  color: var(--text-muted);
  line-height: 1.5;
  min-width: 200px;
}
.cookie-inner p a { color: var(--primary); text-decoration: underline; }
.cookie-actions {
  display: flex;
  gap: 8px;
}

/* ===== Back to Top ===== */
.back-top {
  position: fixed;
  bottom: 24px;
  right: 24px;
  width: 44px; height: 44px;
  display: grid;
  place-items: center;
  background: var(--text);
  color: var(--bg);
  border-radius: 12px;
  box-shadow: var(--shadow-lg);
  opacity: 0;
  visibility: hidden;
  transform: translateY(10px);
  transition: all 0.3s;
  z-index: 70;
}
[data-theme="dark"] .back-top { background: white; color: #0a0e1a; }
.back-top.show {
  opacity: 1;
  visibility: visible;
  transform: translateY(0);
}
.back-top:hover { transform: translateY(-3px); }
.back-top svg { width: 20px; height: 20px; }

/* ===== Reveal animations ===== */
.reveal {
  opacity: 0;
  transform: translateY(28px);
  transition: opacity 0.8s ease, transform 0.8s ease;
}
.reveal.in {
  opacity: 1;
  transform: translateY(0);
}

/* ===== Responsive ===== */
@media (max-width: 1100px) {
  .nav-links { display: none; }
  .hero-grid { grid-template-columns: 1fr; gap: 48px; }
  .float-1, .float-2 { display: none; }
  .bento { grid-template-columns: repeat(2, 1fr); }
  .bento-lg { grid-column: span 2; }
  .solutions-grid { grid-template-columns: repeat(2, 1fr); }
  .int-list { grid-template-columns: repeat(4, 1fr); }
  .testimonial-grid { grid-template-columns: 1fr; }
  .pricing-grid { grid-template-columns: 1fr; max-width: 480px; }
  .price-card.featured { transform: none; }
  .dl-card { grid-template-columns: 1fr; }
  .dl-card-left { border-right: none; border-bottom: 1px solid var(--border); padding: 36px 28px; }
  .dl-card-right { padding: 36px 28px; }
  .security-grid { grid-template-columns: 1fr; gap: 32px; }
  .footer-grid { grid-template-columns: 1fr; gap: 40px; }
  .steps {
    grid-template-columns: 1fr;
    gap: 12px;
  }
  .step-arrow { transform: rotate(90deg); padding: 8px 0; }
}

@media (max-width: 720px) {
  .nav-toggle { display: flex; }
  .nav-cta .btn-link { display: none; }
  .nav-cta .btn-sm { display: none; }

  .nav-links {
    position: fixed;
    top: 68px; left: 0; right: 0;
    background: var(--bg);
    flex-direction: column;
    padding: 24px;
    gap: 8px;
    border-bottom: 1px solid var(--border);
    transform: translateY(-110%);
    transition: transform 0.3s;
    box-shadow: var(--shadow-lg);
    align-items: stretch;
    display: flex;
  }
  .nav-links.open { transform: translateY(0); }
  .nav-links li { width: 100%; }
  .nav-links a, .nav-trigger { padding: 12px; font-size: 16px; }
  .has-mega .mega-panel { display: none; }

  .section { padding: 64px 0; }
  .section-head { margin-bottom: 40px; }
  .hero { padding: 48px 0 64px; }
  .hero-meta { gap: 12px; }

  .product-body { grid-template-columns: 1fr; min-height: 0; }
  .product-side { border-right: none; border-bottom: 1px solid var(--border); display: none; }
  .kpi-row { grid-template-columns: 1fr 1fr; }

  .stats-grid { grid-template-columns: 1fr 1fr; gap: 24px; }
  .bento { grid-template-columns: 1fr; }
  .bento-lg { grid-column: span 1; }
  .solutions-grid { grid-template-columns: 1fr; }
  .int-list { grid-template-columns: repeat(2, 1fr); }
  .autodemo-grid { grid-template-columns: 1fr; min-height: 0; }
  .ad-col { border-right: none; border-bottom: 1px solid rgba(255, 255, 255, 0.05); }
  .ad-queue { max-height: 200px; }
  .autodemo-foot { font-size: 11.5px; padding: 12px 16px; }
  .foot-sep { display: none; }
  .footer-cols { grid-template-columns: 1fr 1fr; gap: 24px; }

  .testimonial-feature { padding: 40px 24px; }
  .big-quote { font-size: 18px; }
  .cta-card { padding: 48px 24px; }
  .cta-form { flex-direction: column; padding: 12px; }
  .cta-form input { padding: 12px; }
  .compare th, .compare td { padding: 12px; font-size: 13px; }

  .announce-bar { font-size: 12.5px; }
  .announce-link { display: none; }
  .footer-bottom { flex-direction: column; text-align: center; }
}

@media (max-width: 480px) {
  .hero-actions { flex-direction: column; align-items: stretch; }
  .hero-actions .btn { width: 100%; }
  .download-actions { flex-direction: column; }
  .download-actions .btn { width: 100%; }
  .footer-cols { grid-template-columns: 1fr; }
  .stats-grid { grid-template-columns: 1fr; }
  .cookie-banner { left: 12px; right: 12px; bottom: 12px; }
  .cookie-actions { width: 100%; }
  .cookie-actions .btn { flex: 1; }
}

/* ===== Reduced motion ===== */
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    animation-duration: 0.01ms !important;
    transition-duration: 0.01ms !important;
  }
  .reveal { opacity: 1; transform: none; }
}
