/* ═══════════════════════════════════════════════════════════
   16xVS Landing Page — Carbon Mint Design System
   © 2026 BotVibe AI LLC, Clintwood, VA
   ═══════════════════════════════════════════════════════════ */

/* ── CSS Variables ─────────────────────────────────────── */
:root {
  /* Carbon Mint Palette */
  --bg-primary:    #0a0a0f;
  --bg-secondary:  #12121a;
  --bg-card:       #161622;
  --bg-card-hover: #1a1a2a;
  --anthracite:    #2D3436;
  --cyan:          #00D2FF;
  --purple:        #635BFF;
  --mint:          #00FFC2;
  --slate:         #636E72;
  --white:         #DFE6E9;
  --white-bright:  #F0F3F5;
  --text-muted:    #8B95A1;
  --text-dim:      #4A5568;
  --border:        rgba(99, 110, 114, 0.2);
  --border-hover:  rgba(0, 210, 255, 0.3);

  /* Gradients */
  --gradient-brand: linear-gradient(135deg, #00D2FF 0%, #635BFF 50%, #D946EF 100%);
  --gradient-hero:  linear-gradient(180deg, rgba(0, 210, 255, 0.08) 0%, rgba(99, 91, 255, 0.04) 50%, transparent 100%);
  --gradient-card:  linear-gradient(145deg, rgba(0, 210, 255, 0.05), rgba(99, 91, 255, 0.03));

  /* Typography */
  --font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', system-ui, sans-serif;
  --font-mono: 'SF Mono', 'Fira Code', 'Cascadia Code', Consolas, monospace;

  /* Scale Factor: 1.125 (Major Second) */
  --fs-xs:   0.790rem;  /* ~12.6px */
  --fs-sm:   0.889rem;  /* ~14.2px */
  --fs-base: 1rem;      /* 16px */
  --fs-md:   1.125rem;  /* 18px */
  --fs-lg:   1.266rem;  /* 20.3px */
  --fs-xl:   1.424rem;  /* 22.8px */
  --fs-2xl:  1.602rem;  /* 25.6px */
  --fs-3xl:  2.027rem;  /* 32.4px */
  --fs-4xl:  2.566rem;  /* 41.1px */
  --fs-5xl:  3.247rem;  /* 51.9px */
  --fs-hero: clamp(2.5rem, 5vw + 1rem, 4.5rem);

  /* Spacing */
  --space-xs:  0.25rem;
  --space-sm:  0.5rem;
  --space-md:  1rem;
  --space-lg:  1.5rem;
  --space-xl:  2rem;
  --space-2xl: 3rem;
  --space-3xl: 4rem;
  --space-4xl: 6rem;
  --space-5xl: 8rem;

  /* Layout */
  --max-width: 1200px;
  --header-height: 72px;

  /* Transitions */
  --ease-out: cubic-bezier(0.16, 1, 0.3, 1);
  --ease-spring: cubic-bezier(0.34, 1.56, 0.64, 1);
  --duration-fast: 150ms;
  --duration-normal: 300ms;
  --duration-slow: 500ms;

  /* Borders */
  --radius-sm: 6px;
  --radius-md: 10px;
  --radius-lg: 16px;
  --radius-xl: 24px;
  --radius-full: 9999px;
}

/* ── Reset & Base ──────────────────────────────────────── */
*, *::before, *::after {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
  scroll-padding-top: var(--header-height);
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

body {
  font-family: var(--font-family);
  font-size: var(--fs-base);
  line-height: 1.6;
  color: var(--white);
  background-color: var(--bg-primary);
  overflow-x: hidden;
}

a {
  color: var(--cyan);
  text-decoration: none;
  transition: color var(--duration-fast) var(--ease-out);
}

a:hover {
  color: var(--mint);
}

img {
  display: block;
  max-width: 100%;
  height: auto;
}

ul, ol {
  list-style: none;
}

button {
  cursor: pointer;
  border: none;
  background: none;
  font-family: inherit;
  color: inherit;
}

::selection {
  background: rgba(0, 210, 255, 0.3);
  color: var(--white-bright);
}

/* ── Container ─────────────────────────────────────────── */
.container {
  width: 100%;
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 0 var(--space-xl);
}

/* ── Section Base ──────────────────────────────────────── */
.section {
  padding: var(--space-5xl) 0;
  position: relative;
}

.section-header {
  text-align: center;
  max-width: 720px;
  margin: 0 auto var(--space-3xl);
}

.section-tag {
  display: inline-block;
  font-size: var(--fs-xs);
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.12em;
  color: var(--cyan);
  background: rgba(0, 210, 255, 0.1);
  border: 1px solid rgba(0, 210, 255, 0.2);
  padding: var(--space-xs) var(--space-md);
  border-radius: var(--radius-full);
  margin-bottom: var(--space-lg);
}

.section-title {
  font-size: var(--fs-4xl);
  font-weight: 800;
  line-height: 1.2;
  letter-spacing: -0.02em;
  color: var(--white-bright);
  margin-bottom: var(--space-md);
}

.section-desc {
  font-size: var(--fs-md);
  color: var(--text-muted);
  line-height: 1.7;
}

/* ── Buttons ───────────────────────────────────────────── */
.btn {
  display: inline-flex;
  align-items: center;
  gap: var(--space-sm);
  font-weight: 600;
  font-size: var(--fs-sm);
  border-radius: var(--radius-md);
  padding: 0.65rem 1.4rem;
  transition: all var(--duration-normal) var(--ease-out);
  white-space: nowrap;
  position: relative;
  overflow: hidden;
}

.btn-primary {
  background: var(--purple);
  color: #fff;
  border: 1px solid transparent;
}

.btn-primary:hover {
  background: #7C75FF;
  color: #fff;
  transform: translateY(-1px);
  box-shadow: 0 8px 30px rgba(99, 91, 255, 0.35);
}

.btn-ghost {
  background: transparent;
  color: var(--white);
  border: 1px solid var(--border);
}

.btn-ghost:hover {
  border-color: var(--cyan);
  color: var(--cyan);
  background: rgba(0, 210, 255, 0.05);
}

.btn-lg {
  padding: 0.85rem 2rem;
  font-size: var(--fs-base);
  border-radius: var(--radius-lg);
}

.btn-arrow {
  transition: transform var(--duration-fast) var(--ease-out);
}

.btn:hover .btn-arrow {
  transform: translateX(3px);
}

/* ═══════════════════════════════════════════════════════════
   HEADER
   ═══════════════════════════════════════════════════════════ */
.site-header {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 1000;
  height: var(--header-height);
  transition: all var(--duration-normal) var(--ease-out);
  background: rgba(10, 10, 15, 0.6);
  backdrop-filter: blur(20px) saturate(1.5);
  -webkit-backdrop-filter: blur(20px) saturate(1.5);
  border-bottom: 1px solid transparent;
}

.site-header.scrolled {
  background: rgba(10, 10, 15, 0.92);
  border-bottom-color: var(--border);
}

.header-inner {
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 0 var(--space-xl);
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.logo-link {
  display: flex;
  align-items: center;
  gap: var(--space-sm);
  text-decoration: none;
  color: var(--white-bright);
}

.logo-img {
  border-radius: var(--radius-sm);
}

.logo-text {
  font-size: var(--fs-xl);
  font-weight: 800;
  letter-spacing: -0.02em;
}

.logo-x {
  color: var(--cyan);
  font-style: italic;
  margin: 0 1px;
}

.header-nav {
  display: flex;
  align-items: center;
  gap: var(--space-lg);
}

.nav-link {
  font-size: var(--fs-sm);
  color: var(--text-muted);
  font-weight: 500;
  position: relative;
  padding: var(--space-xs) 0;
}

.nav-link::after {
  content: '';
  position: absolute;
  bottom: -2px;
  left: 0;
  width: 0;
  height: 2px;
  background: var(--gradient-brand);
  border-radius: 1px;
  transition: width var(--duration-normal) var(--ease-out);
}

.nav-link:hover {
  color: var(--white);
}

.nav-link:hover::after {
  width: 100%;
}

.btn-nav {
  margin-left: var(--space-sm);
}

/* Mobile Toggle */
.mobile-toggle {
  display: none;
  flex-direction: column;
  gap: 5px;
  width: 28px;
  padding: 4px 0;
}

.mobile-toggle span {
  display: block;
  height: 2px;
  background: var(--white);
  border-radius: 2px;
  transition: all var(--duration-normal) var(--ease-out);
  transform-origin: center;
}

.mobile-toggle.active span:nth-child(1) {
  transform: translateY(7px) rotate(45deg);
}

.mobile-toggle.active span:nth-child(2) {
  opacity: 0;
}

.mobile-toggle.active span:nth-child(3) {
  transform: translateY(-7px) rotate(-45deg);
}

/* Mobile Nav Overlay */
.mobile-nav-overlay {
  position: fixed;
  inset: 0;
  z-index: 999;
  background: rgba(10, 10, 15, 0.97);
  backdrop-filter: blur(20px);
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0;
  pointer-events: none;
  transition: opacity var(--duration-normal) var(--ease-out);
}

.mobile-nav-overlay.active {
  opacity: 1;
  pointer-events: all;
}

.mobile-nav-content {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: var(--space-xl);
}

.mobile-nav-link {
  font-size: var(--fs-2xl);
  font-weight: 600;
  color: var(--white);
}

.btn-mobile {
  margin-top: var(--space-lg);
}

/* ═══════════════════════════════════════════════════════════
   HERO
   ═══════════════════════════════════════════════════════════ */
.hero {
  position: relative;
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: calc(var(--header-height) + var(--space-3xl)) var(--space-xl) var(--space-3xl);
  overflow: hidden;
}

.hero-bg-grid {
  position: absolute;
  inset: 0;
  background-image:
    linear-gradient(rgba(0, 210, 255, 0.03) 1px, transparent 1px),
    linear-gradient(90deg, rgba(0, 210, 255, 0.03) 1px, transparent 1px);
  background-size: 60px 60px;
  mask-image: radial-gradient(ellipse at center, black 30%, transparent 70%);
  -webkit-mask-image: radial-gradient(ellipse at center, black 30%, transparent 70%);
}

.hero-glow {
  position: absolute;
  top: -20%;
  left: 50%;
  transform: translateX(-50%);
  width: 800px;
  height: 800px;
  background: radial-gradient(circle, rgba(0, 210, 255, 0.12) 0%, rgba(99, 91, 255, 0.06) 40%, transparent 70%);
  pointer-events: none;
  animation: heroGlowPulse 8s ease-in-out infinite;
}

@keyframes heroGlowPulse {
  0%, 100% { opacity: 0.6; transform: translateX(-50%) scale(1); }
  50% { opacity: 1; transform: translateX(-50%) scale(1.1); }
}

.hero-content {
  position: relative;
  z-index: 1;
  text-align: center;
  max-width: 850px;
}

.hero-badge {
  display: inline-flex;
  align-items: center;
  gap: var(--space-sm);
  font-size: var(--fs-xs);
  font-weight: 500;
  color: var(--text-muted);
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid var(--border);
  padding: 0.35rem 1rem;
  border-radius: var(--radius-full);
  margin-bottom: var(--space-xl);
  animation: fadeInDown 0.8s var(--ease-out) both;
}

.badge-dot {
  width: 6px;
  height: 6px;
  background: var(--mint);
  border-radius: 50%;
  animation: badgePulse 2s ease-in-out infinite;
}

@keyframes badgePulse {
  0%, 100% { opacity: 1; box-shadow: 0 0 0 0 rgba(0, 255, 194, 0.4); }
  50% { opacity: 0.7; box-shadow: 0 0 0 6px rgba(0, 255, 194, 0); }
}

.hero-title {
  font-size: var(--fs-hero);
  font-weight: 900;
  line-height: 1.1;
  letter-spacing: -0.03em;
  color: var(--white-bright);
  margin-bottom: var(--space-xl);
  animation: fadeInUp 0.8s var(--ease-out) 0.1s both;
}

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

.hero-subtitle {
  font-size: var(--fs-lg);
  color: var(--text-muted);
  line-height: 1.7;
  max-width: 640px;
  margin: 0 auto var(--space-2xl);
  animation: fadeInUp 0.8s var(--ease-out) 0.2s both;
}

.hero-cta-group {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: var(--space-md);
  margin-bottom: var(--space-3xl);
  animation: fadeInUp 0.8s var(--ease-out) 0.3s both;
}

.hero-stats {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: var(--space-xl);
  animation: fadeInUp 0.8s var(--ease-out) 0.4s both;
}

.stat-item {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: var(--space-xs);
}

.stat-value {
  font-size: var(--fs-2xl);
  font-weight: 800;
  font-family: var(--font-mono);
  color: var(--mint);
}

.stat-label {
  font-size: var(--fs-xs);
  color: var(--text-muted);
  text-transform: uppercase;
  letter-spacing: 0.1em;
}

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

/* ═══════════════════════════════════════════════════════════
   VISUALIZER
   ═══════════════════════════════════════════════════════════ */
.visualizer-section {
  background: var(--bg-secondary);
  border-top: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
}

.visualizer-card {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius-xl);
  padding: var(--space-2xl);
  position: relative;
  overflow: hidden;
}

.visualizer-card::before {
  content: '';
  position: absolute;
  inset: 0;
  background: var(--gradient-card);
  pointer-events: none;
}

.visualizer-grid-wrapper {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: var(--space-2xl);
  align-items: start;
  position: relative;
  z-index: 1;
}

/* Input Side */
.visualizer-input-side {
  display: flex;
  flex-direction: column;
  gap: var(--space-lg);
}

.viz-label {
  font-size: var(--fs-sm);
  color: var(--text-muted);
  font-weight: 500;
}

.viz-input {
  width: 100%;
  padding: 0.9rem 1.2rem;
  font-size: var(--fs-2xl);
  font-family: var(--font-family);
  color: var(--white-bright);
  background: var(--bg-primary);
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  outline: none;
  transition: all var(--duration-normal) var(--ease-out);
  text-align: center;
}

.viz-input:focus {
  border-color: var(--cyan);
  box-shadow: 0 0 0 3px rgba(0, 210, 255, 0.15);
}

.viz-input::placeholder {
  color: var(--text-dim);
  font-size: var(--fs-md);
}

.viz-presets {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: var(--space-sm);
}

.viz-preset-label {
  font-size: var(--fs-xs);
  color: var(--text-dim);
  margin-right: var(--space-xs);
}

.viz-preset {
  width: 38px;
  height: 38px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: var(--fs-md);
  color: var(--white);
  background: var(--bg-primary);
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  transition: all var(--duration-fast) var(--ease-out);
}

.viz-preset:hover {
  border-color: var(--cyan);
  color: var(--cyan);
  transform: translateY(-2px);
  box-shadow: 0 4px 12px rgba(0, 210, 255, 0.15);
}

.viz-info-card {
  display: flex;
  gap: var(--space-md);
  padding: var(--space-md);
  background: rgba(0, 210, 255, 0.04);
  border: 1px solid rgba(0, 210, 255, 0.1);
  border-radius: var(--radius-md);
}

.viz-info-icon {
  flex-shrink: 0;
  margin-top: 2px;
}

.viz-info-title {
  font-size: var(--fs-sm);
  font-weight: 600;
  color: var(--cyan);
  margin-bottom: var(--space-xs);
}

.viz-info-text {
  font-size: var(--fs-xs);
  color: var(--text-muted);
  line-height: 1.6;
}

/* Grid Side */
.visualizer-grid-side {
  display: flex;
  flex-direction: column;
  gap: var(--space-md);
}

.viz-grid-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.viz-grid-label {
  font-size: var(--fs-sm);
  font-weight: 600;
  color: var(--white);
  font-family: var(--font-mono);
}

.viz-active-count {
  font-size: var(--fs-xs);
  color: var(--mint);
  font-family: var(--font-mono);
}

.viz-grid-container {
  display: grid;
  grid-template-columns: repeat(16, 1fr);
  gap: 2px;
  aspect-ratio: 1;
  background: var(--bg-primary);
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  padding: 6px;
}

.viz-cell {
  aspect-ratio: 1;
  border-radius: 2px;
  background: rgba(99, 110, 114, 0.15);
  transition: all var(--duration-normal) var(--ease-spring);
}

.viz-cell.active {
  background: var(--mint);
  box-shadow: 0 0 8px rgba(0, 255, 194, 0.4);
}

.viz-grid-footer {
  text-align: center;
}

.viz-bit-label {
  font-size: var(--fs-xs);
  color: var(--text-dim);
  font-family: var(--font-mono);
}

/* ═══════════════════════════════════════════════════════════
   FEATURES
   ═══════════════════════════════════════════════════════════ */
.features-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: var(--space-xl);
}

.feature-card {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: var(--space-2xl);
  transition: all var(--duration-normal) var(--ease-out);
  position: relative;
  overflow: hidden;
}

.feature-card::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 2px;
  background: var(--gradient-brand);
  opacity: 0;
  transition: opacity var(--duration-normal) var(--ease-out);
}

.feature-card:hover {
  border-color: var(--border-hover);
  transform: translateY(-4px);
  box-shadow: 0 20px 60px rgba(0, 0, 0, 0.3);
}

.feature-card:hover::before {
  opacity: 1;
}

.feature-icon-wrap {
  width: 56px;
  height: 56px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: rgba(0, 210, 255, 0.08);
  border: 1px solid rgba(0, 210, 255, 0.15);
  border-radius: var(--radius-md);
  margin-bottom: var(--space-lg);
}

.feature-title {
  font-size: var(--fs-xl);
  font-weight: 700;
  color: var(--white-bright);
  margin-bottom: var(--space-md);
}

.feature-desc {
  font-size: var(--fs-sm);
  color: var(--text-muted);
  line-height: 1.7;
  margin-bottom: var(--space-lg);
}

.feature-bullets {
  display: flex;
  flex-direction: column;
  gap: var(--space-sm);
}

.feature-bullets li {
  font-size: var(--fs-xs);
  color: var(--text-muted);
  padding-left: var(--space-lg);
  position: relative;
}

.feature-bullets li::before {
  content: '';
  position: absolute;
  left: 0;
  top: 7px;
  width: 6px;
  height: 6px;
  background: var(--mint);
  border-radius: 50%;
}

/* ═══════════════════════════════════════════════════════════
   PRICING TABLE
   ═══════════════════════════════════════════════════════════ */
.pricing-section {
  background: var(--bg-secondary);
  border-top: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
}

.pricing-table-wrapper {
  overflow-x: auto;
  border-radius: var(--radius-lg);
  border: 1px solid var(--border);
  background: var(--bg-card);
}

.pricing-table {
  width: 100%;
  border-collapse: collapse;
  font-size: var(--fs-sm);
}

.pricing-table thead {
  background: rgba(0, 210, 255, 0.05);
}

.pricing-table th {
  padding: var(--space-md) var(--space-lg);
  text-align: left;
  font-weight: 600;
  color: var(--cyan);
  font-size: var(--fs-xs);
  text-transform: uppercase;
  letter-spacing: 0.08em;
  border-bottom: 1px solid var(--border);
  white-space: nowrap;
}

.pricing-table td {
  padding: var(--space-md) var(--space-lg);
  border-bottom: 1px solid rgba(99, 110, 114, 0.1);
  vertical-align: middle;
}

.pricing-table tbody tr {
  transition: background var(--duration-fast) var(--ease-out);
}

.pricing-table tbody tr:hover {
  background: rgba(0, 210, 255, 0.03);
}

.pricing-table tbody tr:last-child td {
  border-bottom: none;
}

.script-badge {
  display: inline-block;
  padding: 3px 10px;
  border-radius: var(--radius-full);
  font-size: var(--fs-xs);
  font-weight: 600;
}

.script-badge.latin { background: rgba(0, 210, 255, 0.12); color: var(--cyan); }
.script-badge.hindi { background: rgba(255, 165, 0, 0.12); color: #FFA500; }
.script-badge.arabic { background: rgba(217, 70, 239, 0.12); color: #D946EF; }
.script-badge.russian { background: rgba(99, 91, 255, 0.12); color: var(--purple); }
.script-badge.chinese { background: rgba(0, 255, 194, 0.12); color: var(--mint); }

.example-text {
  font-family: var(--font-family);
  color: var(--white);
  font-weight: 500;
}

.token-old {
  color: var(--text-muted);
  font-family: var(--font-mono);
}

.token-new {
  color: var(--mint);
  font-family: var(--font-mono);
  font-weight: 600;
}

.savings {
  font-weight: 700;
  font-family: var(--font-mono);
  font-size: var(--fs-xs);
}

.savings.neutral { color: var(--text-muted); }
.savings.positive { color: var(--mint); }

.pricing-note {
  display: flex;
  align-items: center;
  gap: var(--space-sm);
  margin-top: var(--space-lg);
  font-size: var(--fs-xs);
  color: var(--text-dim);
}

/* ═══════════════════════════════════════════════════════════
   FAQ
   ═══════════════════════════════════════════════════════════ */
.faq-list {
  max-width: 780px;
  margin: 0 auto;
  display: flex;
  flex-direction: column;
  gap: var(--space-md);
}

.faq-item {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  overflow: hidden;
  transition: border-color var(--duration-normal) var(--ease-out);
}

.faq-item[open] {
  border-color: rgba(0, 210, 255, 0.2);
}

.faq-question {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: var(--space-lg) var(--space-xl);
  cursor: pointer;
  font-size: var(--fs-base);
  font-weight: 600;
  color: var(--white);
  transition: color var(--duration-fast);
  user-select: none;
  list-style: none;
}

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

.faq-question:hover {
  color: var(--cyan);
}

.faq-chevron {
  flex-shrink: 0;
  transition: transform var(--duration-normal) var(--ease-out);
  color: var(--text-dim);
}

.faq-item[open] .faq-chevron {
  transform: rotate(180deg);
  color: var(--cyan);
}

.faq-answer {
  padding: 0 var(--space-xl) var(--space-lg);
  animation: faqExpand var(--duration-normal) var(--ease-out);
}

.faq-answer p {
  font-size: var(--fs-sm);
  color: var(--text-muted);
  line-height: 1.8;
}

.faq-answer a {
  color: var(--cyan);
  text-decoration: underline;
  text-underline-offset: 2px;
}

@keyframes faqExpand {
  from { opacity: 0; transform: translateY(-8px); }
  to { opacity: 1; transform: translateY(0); }
}

/* ═══════════════════════════════════════════════════════════
   FOOTER
   ═══════════════════════════════════════════════════════════ */
.site-footer {
  background: var(--bg-primary);
  border-top: 1px solid var(--border);
  padding: var(--space-3xl) 0 var(--space-xl);
}

.footer-grid {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr;
  gap: var(--space-3xl);
}

.footer-logo-row {
  display: flex;
  align-items: center;
  gap: var(--space-sm);
  margin-bottom: var(--space-md);
}

.footer-logo-img {
  border-radius: var(--radius-sm);
}

.footer-logo-text {
  font-size: var(--fs-xl);
  font-weight: 800;
}

.footer-tagline {
  font-size: var(--fs-sm);
  color: var(--text-muted);
  margin-bottom: var(--space-sm);
}

.footer-patent {
  font-size: var(--fs-xs);
  color: var(--text-dim);
}

.footer-col-title {
  font-size: var(--fs-xs);
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: var(--text-muted);
  margin-bottom: var(--space-lg);
}

.footer-links {
  display: flex;
  flex-direction: column;
  gap: var(--space-sm);
}

.footer-links a {
  font-size: var(--fs-sm);
  color: var(--text-dim);
  transition: color var(--duration-fast);
}

.footer-links a:hover {
  color: var(--white);
}

.footer-divider {
  height: 1px;
  background: var(--border);
  margin: var(--space-2xl) 0 var(--space-lg);
}

.footer-bottom {
  text-align: center;
}

.footer-bottom p {
  font-size: var(--fs-xs);
  color: var(--text-dim);
}

/* ═══════════════════════════════════════════════════════════
   MODALS
   ═══════════════════════════════════════════════════════════ */
.modal-overlay {
  position: fixed;
  inset: 0;
  z-index: 2000;
  background: rgba(10, 10, 15, 0.85);
  backdrop-filter: blur(10px);
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0;
  pointer-events: none;
  transition: opacity var(--duration-normal) var(--ease-out);
  padding: var(--space-xl);
}

.modal-overlay.active {
  opacity: 1;
  pointer-events: all;
}

.modal-content {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius-xl);
  max-width: 640px;
  width: 100%;
  max-height: 80vh;
  overflow-y: auto;
  transform: translateY(20px) scale(0.97);
  transition: transform var(--duration-normal) var(--ease-spring);
}

.modal-overlay.active .modal-content {
  transform: translateY(0) scale(1);
}

.modal-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: var(--space-xl);
  border-bottom: 1px solid var(--border);
  position: sticky;
  top: 0;
  background: var(--bg-card);
  z-index: 1;
}

.modal-header h2 {
  font-size: var(--fs-xl);
  font-weight: 700;
  color: var(--white-bright);
}

.modal-close {
  font-size: 1.8rem;
  color: var(--text-dim);
  width: 36px;
  height: 36px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: var(--radius-sm);
  transition: all var(--duration-fast);
}

.modal-close:hover {
  color: var(--white);
  background: rgba(255, 255, 255, 0.05);
}

.modal-body {
  padding: var(--space-xl);
}

.modal-body h3 {
  font-size: var(--fs-md);
  font-weight: 600;
  color: var(--white);
  margin-bottom: var(--space-sm);
  margin-top: var(--space-lg);
}

.modal-body h3:first-child {
  margin-top: 0;
}

.modal-body p {
  font-size: var(--fs-sm);
  color: var(--text-muted);
  line-height: 1.8;
  margin-bottom: var(--space-md);
}

/* ═══════════════════════════════════════════════════════════
   ANIMATIONS
   ═══════════════════════════════════════════════════════════ */
@keyframes fadeInUp {
  from {
    opacity: 0;
    transform: translateY(24px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@keyframes fadeInDown {
  from {
    opacity: 0;
    transform: translateY(-16px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

/* Scroll-triggered animations */
.animate-on-scroll {
  opacity: 0;
  transform: translateY(30px);
  transition: opacity 0.6s var(--ease-out), transform 0.6s var(--ease-out);
}

.animate-on-scroll.visible {
  opacity: 1;
  transform: translateY(0);
}

/* ═══════════════════════════════════════════════════════════
   RESPONSIVE
   ═══════════════════════════════════════════════════════════ */
@media (max-width: 1024px) {
  .features-grid {
    grid-template-columns: 1fr 1fr;
  }

  .feature-card:last-child {
    grid-column: span 2;
    max-width: 50%;
    margin: 0 auto;
  }
}

@media (max-width: 768px) {
  :root {
    --space-5xl: 5rem;
    --space-4xl: 3.5rem;
  }

  .header-nav {
    display: none;
  }

  .mobile-toggle {
    display: flex;
  }

  .hero-title {
    font-size: clamp(2rem, 8vw, 3rem);
  }

  .hero-cta-group {
    flex-direction: column;
  }

  .hero-stats {
    flex-direction: column;
    gap: var(--space-lg);
  }

  .stat-divider {
    width: 40px;
    height: 1px;
  }

  .visualizer-grid-wrapper {
    grid-template-columns: 1fr;
  }

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

  .feature-card:last-child {
    grid-column: span 1;
    max-width: 100%;
  }

  .footer-grid {
    grid-template-columns: 1fr;
    gap: var(--space-2xl);
  }

  .section-title {
    font-size: var(--fs-3xl);
  }

  .pricing-table th,
  .pricing-table td {
    padding: var(--space-sm) var(--space-md);
    font-size: var(--fs-xs);
  }
}

@media (max-width: 480px) {
  .container {
    padding: 0 var(--space-md);
  }

  .visualizer-card {
    padding: var(--space-lg);
  }

  .viz-presets {
    justify-content: center;
  }

  .faq-question {
    padding: var(--space-md) var(--space-lg);
    font-size: var(--fs-sm);
  }
}

/* ── Reduced Motion ────────────────────────────────────── */
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
  }

  html {
    scroll-behavior: auto;
  }
}
