/**
 * PriceDepth Landing Page — Dark Mode Styles
 * Landing-page component styles scoped under html[data-theme="dark"].
 */

/* ====================================================================
   DARK-MODE TOKEN OVERRIDES
   ==================================================================== */
html[data-theme="dark"] {
  --color-bg-elevated: #0d1117;
  --color-bg-panel: #161b22;
  --color-bg-surface: #21262d;
  --color-bg-void: #06080d;
  --color-primary-glow: rgba(0, 212, 170, 0.15);
  --color-accent-dim: #b36a00;
  --color-accent-glow: rgba(255, 149, 0, 0.15);
  --color-info: #60a5fa;
  --shadow-glow: 0 0 40px rgba(0, 212, 170, 0.08);
}

/* ====================================================================
   ANIMATIONS
   ==================================================================== */

/* Glow drift — ambient floating orbs */
@keyframes glow-drift {
  0%, 100% { transform: translate(0, 0) scale(1); opacity: 0.4; }
  33%      { transform: translate(30px, -20px) scale(1.1); opacity: 0.6; }
  66%      { transform: translate(-20px, 15px) scale(0.95); opacity: 0.35; }
}

/* Fade-up with stagger support */
html[data-theme="dark"] .fade-up {
  opacity: 0;
  transform: translateY(30px);
  transition: opacity 0.7s cubic-bezier(0.22, 1, 0.36, 1),
              transform 0.7s cubic-bezier(0.22, 1, 0.36, 1);
}
html[data-theme="dark"] .fade-up.visible {
  opacity: 1;
  transform: translateY(0);
}
html[data-theme="dark"] .fade-up.stagger-1 { transition-delay: 0.1s; }
html[data-theme="dark"] .fade-up.stagger-2 { transition-delay: 0.2s; }
html[data-theme="dark"] .fade-up.stagger-3 { transition-delay: 0.3s; }
html[data-theme="dark"] .fade-up.stagger-4 { transition-delay: 0.4s; }

/* Ticker scroll */
@keyframes ticker-scroll {
  0%   { transform: translateX(0); }
  100% { transform: translateX(-50%); }
}

/* Pulse dot for live indicators */
@keyframes pulse-dot {
  0%, 100% { opacity: 1; transform: scale(1); }
  50%      { opacity: 0.4; transform: scale(0.8); }
}

/* Blink cursor for code blocks */
@keyframes blink-cursor {
  0%, 100% { opacity: 1; }
  50%      { opacity: 0; }
}

/* ====================================================================
   GLOBAL RESETS FOR DARK MODE
   ==================================================================== */
html[data-theme="dark"] img { max-width: 100%; display: block; }
html[data-theme="dark"] html { scroll-behavior: smooth; }
html[data-theme="dark"] .nav { display: none !important; }
html[data-theme="dark"] .tp-shell {
  background: rgba(10, 14, 23, 0.92);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border-bottom: 1px solid #21262d;
}

html[data-theme="dark"] .section {
  padding: 56px 0;
  position: relative;
}

html[data-theme="dark"] .text-center { text-align: center; }

html[data-theme="dark"] .badge {
  display: inline-block;
  background: rgba(0, 212, 170, 0.1);
  color: var(--color-primary);
  font-size: 13px;
  font-weight: 700;
  padding: 6px 16px;
  border-radius: 20px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  border: 1px solid rgba(0, 212, 170, 0.2);
}

html[data-theme="dark"] .section-title {
  font-size: clamp(28px, 4vw, 42px);
  font-weight: 800;
  line-height: 1.15;
  margin: 12px 0;
  color: #f0f6fc;
  letter-spacing: -0.02em;
}

html[data-theme="dark"] .section-subtitle {
  font-size: 17px;
  color: #8b949e;
  max-width: 640px;
  margin: 0 auto 28px;
  line-height: 1.6;
}

html[data-theme="dark"] .section-subtitle a {
  color: var(--color-primary);
  font-weight: 600;
}

html[data-theme="dark"] .section-subtitle a:hover {
  color: #00b392;
}

/* ====================================================================
   BUTTONS (DARK MODE)
   ==================================================================== */
html[data-theme="dark"] .btn:disabled {
  cursor: not-allowed;
  opacity: 0.7;
  transform: none !important;
}

html[data-theme="dark"] .btn-primary {
  background: var(--color-primary);
  color: #0a0e17;
  box-shadow: 0 4px 14px rgba(0, 212, 170, 0.3);
}
html[data-theme="dark"] .btn-primary:hover {
  background: var(--color-primary-dark);
  box-shadow: 0 6px 20px rgba(0, 212, 170, 0.45);
  transform: translateY(-1px);
}
html[data-theme="dark"] .btn-primary:active {
  transform: translateY(0) scale(0.98);
}

html[data-theme="dark"] .btn-ghost {
  background: transparent;
  color: #c9d1d9;
  border: 1px solid #30363d;
  padding: 14px 32px;
  border-radius: var(--radius-md, 12px);
  font-size: 16px;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.25s ease;
}
html[data-theme="dark"] .btn-ghost:hover {
  border-color: var(--color-primary);
  color: #f0f6fc;
  background: rgba(0, 212, 170, 0.05);
}

html[data-theme="dark"] .btn-outline {
  background: transparent;
  color: #c9d1d9;
  border: 2px solid #30363d;
}
html[data-theme="dark"] .btn-outline:hover {
  border-color: var(--color-primary);
  background: rgba(0, 212, 170, 0.05);
  color: #f0f6fc;
}

/* ====================================================================
   TICKER BAR
   ==================================================================== */
html[data-theme="dark"] .ticker-bar {
  width: 100%;
  background: #06080d;
  border-bottom: 1px solid #21262d;
  overflow: hidden;
  position: relative;
  height: 28px;
  z-index: 10;
}
html[data-theme="dark"] .ticker-bar::before,
html[data-theme="dark"] .ticker-bar::after {
  content: '';
  position: absolute;
  top: 0;
  bottom: 0;
  width: 40px;
  z-index: 2;
  pointer-events: none;
}
html[data-theme="dark"] .ticker-bar::before {
  left: 0;
  background: linear-gradient(to right, #06080d, transparent);
}
html[data-theme="dark"] .ticker-bar::after {
  right: 0;
  background: linear-gradient(to left, #06080d, transparent);
}
html[data-theme="dark"] .ticker-track {
  display: flex;
  align-items: center;
  white-space: nowrap;
  animation: ticker-scroll 60s linear infinite;
  will-change: transform;
  height: 28px;
}
html[data-theme="dark"] .ticker-track:hover {
  animation-play-state: paused;
}
html[data-theme="dark"] .ticker-item {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 0 16px;
  font-size: 11px;
  font-family: var(--font-mono, 'JetBrains Mono', monospace);
  letter-spacing: -0.01em;
  text-decoration: none;
  cursor: pointer;
  border-radius: 4px;
  transition: background 0.15s;
}
html[data-theme="dark"] .ticker-item:hover {
  background: rgba(255,255,255,0.06);
}
html[data-theme="dark"] .ticker-name {
  color: var(--color-accent);
  max-width: 180px;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}
html[data-theme="dark"] .ticker-price {
  color: #f0f6fc;
  font-weight: 500;
}
html[data-theme="dark"] .ticker-change {
  font-weight: 500;
}
html[data-theme="dark"] .ticker-change.up   { color: var(--color-success); }
html[data-theme="dark"] .ticker-change.down { color: var(--color-danger); }
html[data-theme="dark"] .ticker-sep {
  color: #30363d;
  font-size: 8px;
  padding: 0 4px;
  flex-shrink: 0;
}

/* ====================================================================
   HERO
   ==================================================================== */
html[data-theme="dark"] .hero {
  min-height: auto;
  padding: 48px 0 64px;
  position: relative;
  overflow: hidden;
  display: flex;
  align-items: center;
}

/* Ambient gradient orbs */
html[data-theme="dark"] .hero::before {
  content: '';
  position: absolute;
  top: -150px;
  right: -100px;
  width: 600px;
  height: 600px;
  background: radial-gradient(circle, rgba(0, 212, 170, 0.08) 0%, transparent 70%);
  border-radius: 50%;
  animation: glow-drift 12s ease-in-out infinite;
  pointer-events: none;
}
html[data-theme="dark"] .hero::after {
  content: '';
  position: absolute;
  bottom: -100px;
  left: -150px;
  width: 500px;
  height: 500px;
  background: radial-gradient(circle, rgba(255, 149, 0, 0.06) 0%, transparent 70%);
  border-radius: 50%;
  animation: glow-drift 15s ease-in-out infinite reverse;
  pointer-events: none;
}

html[data-theme="dark"] .hero-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 48px;
  align-items: center;
  position: relative;
  z-index: 1;
}

html[data-theme="dark"] .hero-text {
  max-width: 600px;
}

html[data-theme="dark"] .hero h1 {
  font-size: clamp(36px, 5vw, 56px);
  font-weight: 800;
  line-height: 1.08;
  color: #f0f6fc;
  letter-spacing: -0.03em;
  margin-bottom: 24px;
}

html[data-theme="dark"] .hero h1 .gradient-text {
  background: linear-gradient(135deg, #00d4aa, #FF9500);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

html[data-theme="dark"] .hero p.hero-sub {
  font-size: 18px;
  color: #8b949e;
  line-height: 1.6;
  margin-bottom: 28px;
  max-width: 520px;
}

html[data-theme="dark"] .hero-buttons {
  display: flex;
  gap: 16px;
  flex-wrap: wrap;
}

/* Hero terminal / code preview */
html[data-theme="dark"] .hero-terminal {
  background: #0d1117;
  border: 1px solid #21262d;
  border-radius: 12px;
  overflow: hidden;
  box-shadow: 0 20px 60px rgba(0,0,0,0.4), var(--shadow-glow);
}
html[data-theme="dark"] .hero-terminal-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 12px 16px;
  background: #161b22;
  border-bottom: 1px solid #21262d;
}
html[data-theme="dark"] .hero-terminal-dots {
  display: flex;
  gap: 6px;
}
html[data-theme="dark"] .hero-terminal-dots span {
  width: 10px;
  height: 10px;
  border-radius: 50%;
}
html[data-theme="dark"] .hero-terminal-dots .red { background: #f87171; }
html[data-theme="dark"] .hero-terminal-dots .yellow { background: #fbbf24; }
html[data-theme="dark"] .hero-terminal-dots .green { background: #4ade80; }
html[data-theme="dark"] .hero-terminal-endpoint {
  font-family: var(--font-mono, 'JetBrains Mono', monospace);
  font-size: 11px;
  color: #6e7681;
}
html[data-theme="dark"] .hero-terminal-endpoint .method {
  color: var(--color-primary);
  font-weight: 600;
}
html[data-theme="dark"] .hero-terminal-body {
  padding: 20px;
  overflow-x: auto;
  max-height: 380px;
}
html[data-theme="dark"] .hero-terminal-body pre {
  font-family: var(--font-mono, 'JetBrains Mono', monospace);
  font-size: 12px;
  line-height: 1.7;
  color: #c9d1d9;
  margin: 0;
}
html[data-theme="dark"] .json-key { color: #79c0ff; }
html[data-theme="dark"] .json-string { color: #a5d6ff; }
html[data-theme="dark"] .json-number { color: #ffa657; }
html[data-theme="dark"] .json-bracket { color: #6e7681; }
html[data-theme="dark"] .json-bool { color: #ff7b72; }

/* Code syntax highlighting — API preview */
html[data-theme="dark"] .code-keyword { color: #ff7b72; }
html[data-theme="dark"] .code-string { color: #a5d6ff; }
html[data-theme="dark"] .code-func { color: #d2a8ff; }
html[data-theme="dark"] .code-class { color: #ffa657; }
html[data-theme="dark"] .code-cmd { color: #d2a8ff; font-weight: 600; }
html[data-theme="dark"] .code-method { color: #7ee787; font-weight: 600; }
html[data-theme="dark"] .code-var { color: #ffa657; }
html[data-theme="dark"] .code-module { color: #79c0ff; }
html[data-theme="dark"] .code-punct { color: #6e7681; }

/* ====================================================================
   SOCIAL PROOF BAR
   ==================================================================== */
html[data-theme="dark"] .social-proof-bar {
  padding: 28px 0;
  border-top: 1px solid #21262d;
  border-bottom: 1px solid #21262d;
  background: rgba(13, 17, 23, 0.5);
}
html[data-theme="dark"] .social-proof-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 32px;
  text-align: center;
}
html[data-theme="dark"] .social-proof-grid .stat-number {
  font-size: 36px;
  font-weight: 800;
  color: var(--color-primary);
  line-height: 1;
  margin-bottom: 6px;
  font-family: var(--font-mono, 'JetBrains Mono', monospace);
}
html[data-theme="dark"] .social-proof-grid .stat-label {
  font-size: 13px;
  color: #6e7681;
  font-weight: 500;
}

/* ====================================================================
   DEMO SECTION
   ==================================================================== */
html[data-theme="dark"] #demo-card {
  background: #0a0e17;
  padding: 56px 0;
}

/* Card Selector Tabs — dark */
html[data-theme="dark"] .card-tab {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 12px 18px;
  border: 1.5px solid #30363d;
  border-radius: 12px;
  background: #161b22;
  cursor: pointer;
  transition: all 0.15s ease;
  font-family: 'Inter', sans-serif;
  text-align: left;
  white-space: nowrap;
  color: #c9d1d9;
}
html[data-theme="dark"] .card-tab:hover {
  border-color: var(--color-primary);
  background: rgba(0, 212, 170, 0.05);
}
html[data-theme="dark"] .card-tab.active {
  border-width: 2px;
  box-shadow: 0 4px 12px rgba(0,0,0,0.3);
}


html[data-theme="dark"] .tab-group-btn {
  display: flex; align-items: center; gap: 10px;
  padding: 12px 18px; border: 1.5px solid #30363d; border-radius: 12px;
  background: #161b22; cursor: pointer; transition: all 0.15s ease;
  font-family: 'Inter', sans-serif; text-align: left; white-space: nowrap;
  color: #c9d1d9;
}
html[data-theme="dark"] .tab-group-btn:hover {
  border-color: var(--color-primary);
  background: rgba(0, 212, 170, 0.05);
}
html[data-theme="dark"] .tab-group-btn.has-active {
  border-width: 2px;
  box-shadow: 0 4px 12px rgba(0,0,0,0.3);
}
html[data-theme="dark"] .tab-group { position: relative; }
html[data-theme="dark"] .tab-group-btn .chevron { font-size: 10px; color: #6e7681; transition: transform 0.2s; }
html[data-theme="dark"] .tab-group.open .chevron { transform: rotate(180deg); }

html[data-theme="dark"] .tab-dropdown {
  display: none; position: absolute; top: calc(100% + 6px); left: 50%; transform: translateX(-50%);
  z-index: 50; background: #161b22; border: 1px solid #30363d; border-radius: 14px;
  box-shadow: 0 12px 40px rgba(0,0,0,0.5); padding: 12px;
}
html[data-theme="dark"] .tab-group.open .tab-dropdown { display: block; }
html[data-theme="dark"] .tab-dropdown-item {
  display: flex; flex-direction: column; align-items: center; gap: 8px; padding: 12px 8px 10px;
  border-radius: 12px; cursor: pointer; transition: all 0.15s; border: 1.5px solid transparent;
  background: none; font-family: 'Inter', sans-serif; text-align: center; width: 120px;
  color: #c9d1d9;
}
html[data-theme="dark"] .tab-dropdown-item:hover {
  background: #21262d; border-color: #30363d; transform: translateY(-2px);
}
html[data-theme="dark"] .tab-dropdown-item.active {
  background: rgba(0, 212, 170, 0.08); border-color: rgba(0, 212, 170, 0.3);
}
html[data-theme="dark"] .tab-dropdown-item .tab-card-img {
  width: 80px; height: 112px; border-radius: 8px; object-fit: cover;
  box-shadow: 0 4px 12px rgba(0,0,0,0.4);
}
html[data-theme="dark"] .tab-dropdown-item .tab-card-name {
  font-size: 11px; font-weight: 700; color: #f0f6fc; line-height: 1.2;
  overflow: hidden; text-overflow: ellipsis; display: -webkit-box;
  -webkit-line-clamp: 2; -webkit-box-orient: vertical; width: 100%;
}
html[data-theme="dark"] .tab-dropdown-item .tab-card-price {
  font-size: 11px; font-weight: 600;
}
html[data-theme="dark"] .tab-dropdown-grid {
  display: flex; gap: 4px;
}

/* Demo Card Header — dark */
html[data-theme="dark"] .demo-card-header {
  display: flex;
  align-items: flex-start;
  gap: 32px;
  background: #0d1117;
  border: 1px solid #21262d;
  border-radius: 20px;
  padding: 32px;
  margin-bottom: 32px;
  flex-wrap: wrap;
}

html[data-theme="dark"] .stat-label-sm {
  font-size: 11px;
  font-weight: 600;
  color: #6e7681;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  margin-bottom: 6px;
  text-align: center;
  width: 100%;
}

/* Stats Grid — 3-col desktop, 2-col tablet, 1-col mobile */
html[data-theme="dark"] .demo-stats-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 12px;
  width: 100%;
}

html[data-theme="dark"] .stat-box {
  background: #0b1018;
  border: 1px solid #21262d;
  border-radius: 10px;
  padding: 14px 16px;
  min-width: 0;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  transition: border-color 0.2s ease, background 0.2s ease;
}

html[data-theme="dark"] .stat-box:hover {
  border-color: #30363d;
  background: #0d1520;
}

html[data-theme="dark"] .stat-box .stat-value {
  font-size: 26px;
  font-weight: 800;
  line-height: 1.2;
  color: #f0f6fc;
  text-align: center;
  width: 100%;
}

html[data-theme="dark"] .stat-box .stat-value-success {
  font-size: 26px;
  font-weight: 800;
  line-height: 1.2;
  color: #4ade80;
  text-align: center;
  width: 100%;
}

html[data-theme="dark"] .stat-box .stat-value-accent {
  font-size: 26px;
  font-weight: 800;
  line-height: 1.2;
  color: #00d4aa;
  text-align: center;
  width: 100%;
}

html[data-theme="dark"] .stat-box .stat-value-range {
  font-size: 18px;
  font-weight: 700;
  line-height: 1.3;
  color: #c9d1d9;
  font-family: 'JetBrains Mono', monospace;
  text-align: center;
  width: 100%;
}

html[data-theme="dark"] .stat-box .stat-sub {
  font-size: 11px;
  color: #6e7681;
  font-weight: 500;
  margin-top: 2px;
  text-align: center;
  width: 100%;
}

html[data-theme="dark"] #card-title {
  color: #f0f6fc !important;
}
html[data-theme="dark"] #card-meta {
  color: #8b949e !important;
}
html[data-theme="dark"] #stat-price {
  color: #f0f6fc !important;
}
html[data-theme="dark"] #stat-mcap {
  color: #f0f6fc !important;
}

/* Charts Grid — dark */
html[data-theme="dark"] .charts-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 24px;
}
html[data-theme="dark"] .chart-panel {
  background: #0d1117;
  border: 1px solid #21262d;
  border-radius: 20px;
  padding: 28px;
}
html[data-theme="dark"] .chart-panel h4 {
  color: #f0f6fc !important;
}

/* Range toggle — dark */
html[data-theme="dark"] .range-toggle {
  display: flex;
  gap: 4px;
}
html[data-theme="dark"] .range-btn {
  padding: 4px 10px;
  border: 1px solid #30363d;
  border-radius: 6px;
  background: #161b22;
  font-size: 11px;
  font-weight: 600;
  color: #6e7681;
  cursor: pointer;
  transition: all 0.15s;
  font-family: 'Inter', sans-serif;
}
html[data-theme="dark"] .range-btn:hover {
  color: var(--color-primary);
  border-color: var(--color-primary);
}
html[data-theme="dark"] .range-btn.active {
  background: var(--color-primary);
  color: #0a0e17;
  border-color: var(--color-primary);
}

/* Info Tooltip — small circular icon */
html[data-theme="dark"] .info-tip {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 16px;
  height: 16px;
  border-radius: 50%;
  background: #30363d;
  color: #8b949e;
  font-size: 10px;
  font-style: italic;
  font-weight: 600;
  cursor: help;
  position: relative;
  vertical-align: middle;
  margin-left: 4px;
  line-height: 1;
}
html[data-theme="dark"] .info-tip:hover {
  background: #484f58;
  color: #c9d1d9;
}
html[data-theme="dark"] .info-tip::after {
  content: attr(data-tip);
  position: absolute;
  top: calc(100% + 8px);
  right: 0;
  width: 240px;
  padding: 8px 10px;
  background: #161b22;
  color: #c9d1d9;
  font-size: 12px;
  font-style: normal;
  font-weight: 400;
  line-height: 1.4;
  border-radius: 6px;
  border: 1px solid #30363d;
  box-shadow: 0 4px 16px rgba(0,0,0,0.5);
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.15s;
  z-index: 100;
  white-space: normal;
}
html[data-theme="dark"] .info-tip:hover::after {
  opacity: 1;
}

/* Price delta — dark */
html[data-theme="dark"] .price-delta-up { color: var(--color-success); font-weight: 600; }
html[data-theme="dark"] .price-delta-down { color: var(--color-danger); font-weight: 600; }

/* Card 3D tilt */
html[data-theme="dark"] .card-tilt-wrap {
  perspective: 800px;
  display: inline-block;
}
html[data-theme="dark"] #card-img {
  transform-style: preserve-3d;
  transition: transform 0.1s ease, box-shadow 0.1s ease;
  will-change: transform;
}
html[data-theme="dark"] .card-tilt-wrap:not(:hover) #card-img {
  transition: transform 0.45s ease, box-shadow 0.45s ease;
  transform: rotateX(0deg) rotateY(0deg) scale(1);
}

html[data-theme="dark"] #priceChart,
html[data-theme="dark"] #mcapChart { max-height: 260px; }

/* Loading Spinner — dark */
html[data-theme="dark"] .loading-spinner {
  border-color: #30363d;
  border-top-color: var(--color-primary);
}
html[data-theme="dark"] .loading-spinner-text { color: #8b949e; }

/* Tooltip — dark */
html[data-theme="dark"] .tp-tooltip {
  background: #161b22 !important;
  color: #e6edf3 !important;
  border: 1px solid #30363d !important;
}

/* ====================================================================
   PROBLEM SECTION
   ==================================================================== */
html[data-theme="dark"] .problem-section {
  background: #0d1117;
  padding: 56px 0;
  border-top: 1px solid #21262d;
  border-bottom: 1px solid #21262d;
}
html[data-theme="dark"] .problem-section .badge {
  background: rgba(248, 113, 113, 0.1);
  color: #f87171;
  border-color: rgba(248, 113, 113, 0.2);
}
html[data-theme="dark"] .problem-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 20px;
}
html[data-theme="dark"] .problem-card {
  background: #161b22;
  border: 1px solid #21262d;
  border-radius: 16px;
  padding: 24px 28px;
  transition: all 0.25s ease;
}
html[data-theme="dark"] .problem-card:hover {
  border-color: #30363d;
  box-shadow: 0 8px 24px rgba(0,0,0,0.3);
  transform: translateY(-2px);
}
html[data-theme="dark"] .problem-icon {
  width: 48px;
  height: 48px;
  background: rgba(248, 113, 113, 0.1);
  border-radius: 12px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 22px;
  margin-bottom: 16px;
  color: #f87171;
}
html[data-theme="dark"] .problem-card h3 {
  font-size: 18px;
  font-weight: 700;
  margin-bottom: 8px;
  color: #f0f6fc;
}
html[data-theme="dark"] .problem-card p {
  font-size: 15px;
  color: #8b949e;
  line-height: 1.6;
}

/* ====================================================================
   SOLUTION / HOW IT WORKS
   ==================================================================== */
html[data-theme="dark"] .solution-section {
  background: #0a0e17;
  padding: 56px 0;
}
html[data-theme="dark"] .solution-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
}
html[data-theme="dark"] .solution-card {
  background: #0d1117;
  border: 1px solid #21262d;
  border-radius: 16px;
  padding: 28px 24px;
  transition: all 0.25s ease;
}
html[data-theme="dark"] .solution-card:hover {
  border-color: rgba(0, 212, 170, 0.3);
  box-shadow: 0 8px 24px rgba(0,0,0,0.3), 0 0 20px rgba(0, 212, 170, 0.05);
  transform: translateY(-4px);
}
html[data-theme="dark"] .solution-number {
  width: 48px;
  height: 48px;
  background: var(--color-primary);
  color: #0a0e17;
  font-weight: 800;
  font-size: 20px;
  border-radius: 12px;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 20px;
}
html[data-theme="dark"] .solution-card h3 {
  font-size: 20px;
  font-weight: 700;
  margin-bottom: 10px;
  color: #f0f6fc;
}
html[data-theme="dark"] .solution-card p {
  font-size: 15px;
  color: #8b949e;
  line-height: 1.7;
}

/* ====================================================================
   API PREVIEW
   ==================================================================== */
html[data-theme="dark"] .api-section {
  background: #0d1117;
  padding: 56px 0;
  border-top: 1px solid #21262d;
  border-bottom: 1px solid #21262d;
}
html[data-theme="dark"] .api-wrapper {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 48px;
  align-items: start;
}
html[data-theme="dark"] .api-features {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 14px;
  margin-top: 24px;
}
html[data-theme="dark"] .api-features li {
  display: flex;
  align-items: center;
  gap: 12px;
  font-size: 15px;
  font-weight: 500;
  color: #c9d1d9;
}
html[data-theme="dark"] .api-features .check {
  width: 22px;
  height: 22px;
  background: rgba(0, 212, 170, 0.1);
  color: var(--color-primary);
  border-radius: 6px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 13px;
  flex-shrink: 0;
}

/* Code block — dark */
html[data-theme="dark"] .code-block {
  background: #0a0e17;
  border: 1px solid #21262d;
  border-radius: 14px;
  overflow: hidden;
  box-shadow: 0 20px 60px rgba(0,0,0,0.4);
}
html[data-theme="dark"] .code-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 12px 20px;
  background: #161b22;
  border-bottom: 1px solid #21262d;
}
html[data-theme="dark"] .code-dots {
  display: flex;
  gap: 6px;
}
html[data-theme="dark"] .code-dots span {
  width: 10px;
  height: 10px;
  border-radius: 50%;
}
html[data-theme="dark"] .code-dots .red { background: #f87171; }
html[data-theme="dark"] .code-dots .yellow { background: #fbbf24; }
html[data-theme="dark"] .code-dots .green { background: #4ade80; }

/* Code tabs */
html[data-theme="dark"] .code-tabs {
  display: flex;
  gap: 0;
}
html[data-theme="dark"] .code-tab {
  padding: 8px 16px;
  background: transparent;
  border: none;
  color: #6e7681;
  font-size: 12px;
  font-weight: 600;
  font-family: var(--font-mono, 'JetBrains Mono', monospace);
  cursor: pointer;
  transition: all 0.15s;
  border-bottom: 2px solid transparent;
}
html[data-theme="dark"] .code-tab:hover {
  color: #c9d1d9;
}
html[data-theme="dark"] .code-tab.active {
  color: var(--color-primary);
  border-bottom-color: var(--color-primary);
}

html[data-theme="dark"] .code-body {
  padding: 20px;
  overflow-x: auto;
}
html[data-theme="dark"] .code-body pre {
  font-family: var(--font-mono, 'JetBrains Mono', monospace);
  font-size: 12.5px;
  line-height: 1.7;
  color: #c9d1d9;
  margin: 0;
}
html[data-theme="dark"] .code-panel {
  display: none;
}
html[data-theme="dark"] .code-panel.active {
  display: block;
}

/* Copy button */
html[data-theme="dark"] .copy-btn {
  padding: 4px 12px;
  background: #21262d;
  border: 1px solid #30363d;
  border-radius: 6px;
  color: #8b949e;
  font-size: 11px;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.15s;
  font-family: var(--font-sans, 'Inter', sans-serif);
}
html[data-theme="dark"] .copy-btn:hover {
  background: #30363d;
  color: #f0f6fc;
}

html[data-theme="dark"] .code-endpoint {
  font-family: var(--font-mono, 'JetBrains Mono', monospace);
  font-size: 12px;
  color: #6e7681;
}
html[data-theme="dark"] .code-endpoint .method {
  color: var(--color-primary);
  font-weight: 600;
}

/* ====================================================================
   TRUST + COVERAGE
   ==================================================================== */
html[data-theme="dark"] .trust-section {
  background: #0a0e17;
  padding: 56px 0;
}
html[data-theme="dark"] .trust-points {
  display: flex;
  gap: 40px;
  justify-content: center;
  flex-wrap: wrap;
  max-width: 900px;
  margin: 0 auto 32px;
}
html[data-theme="dark"] .trust-point {
  display: flex;
  align-items: flex-start;
  gap: 12px;
  max-width: 260px;
}
html[data-theme="dark"] .trust-point .check-icon {
  font-size: 18px;
  flex-shrink: 0;
  margin-top: 2px;
  color: var(--color-primary);
  font-weight: 700;
}
html[data-theme="dark"] .trust-point strong {
  color: #f0f6fc;
  display: block;
  margin-bottom: 4px;
}
html[data-theme="dark"] .trust-point p {
  font-size: 15px;
  color: #8b949e;
  line-height: 1.5;
  margin: 0;
}

/* Coverage chips */
html[data-theme="dark"] .coverage-label {
  text-align: center;
  font-size: 12px;
  font-weight: 700;
  color: #6e7681;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  margin-bottom: 12px;
}
html[data-theme="dark"] .coverage-grid {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  justify-content: center;
  margin-bottom: 24px;
}
html[data-theme="dark"] .coverage-chip {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: #161b22;
  border: 1px solid #30363d;
  border-radius: 10px;
  padding: 10px 20px;
  font-size: 14px;
  font-weight: 600;
  color: #f0f6fc;
  transition: all 0.2s ease;
  cursor: pointer;
  text-decoration: none;
}
html[data-theme="dark"] .coverage-chip:hover {
  border-color: var(--color-primary);
  background: rgba(0, 212, 170, 0.05);
  transform: translateY(-1px);
}
html[data-theme="dark"] .coverage-chip.live {
  border-color: rgba(0, 212, 170, 0.3);
}
html[data-theme="dark"] .live-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: #4ade80;
  box-shadow: 0 0 6px rgba(74, 222, 128, 0.6);
  animation: pulse-live 2s ease-in-out infinite;
  flex-shrink: 0;
}
@keyframes pulse-live {
  0%, 100% { opacity: 1; box-shadow: 0 0 6px rgba(74, 222, 128, 0.6); }
  50% { opacity: 0.5; box-shadow: 0 0 12px rgba(74, 222, 128, 0.3); }
}

/* ====================================================================
   PRICING SECTION
   ==================================================================== */
html[data-theme="dark"] .pricing-section {
  background: #0d1117;
  padding: 56px 0;
  border-top: 1px solid #21262d;
}
html[data-theme="dark"] .pricing-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
  max-width: 960px;
  margin: 0 auto;
  justify-content: center;
  align-items: start;
}
html[data-theme="dark"] .pricing-card {
  background: #161b22;
  border: 1px solid #21262d;
  border-radius: 16px;
  padding: 28px 24px;
  position: relative;
  transition: all 0.25s ease;
  display: flex;
  flex-direction: column;
  text-align: center;
}
html[data-theme="dark"] .pricing-card:hover {
  border-color: #30363d;
  transform: translateY(-2px);
}
html[data-theme="dark"] .pricing-card.featured {
  border: 2px solid var(--color-primary);
  box-shadow: 0 0 40px rgba(0, 212, 170, 0.08), 0 16px 48px rgba(0,0,0,0.3);
  transform: scale(1.03);
  z-index: 1;
}
html[data-theme="dark"] .pricing-card.featured:hover {
  transform: scale(1.03) translateY(-2px);
}
html[data-theme="dark"] .pricing-popular {
  position: absolute;
  top: -13px;
  left: 50%;
  transform: translateX(-50%);
  background: var(--color-primary);
  color: #0a0e17;
  font-size: 11px;
  font-weight: 700;
  padding: 4px 16px;
  border-radius: 20px;
  text-transform: uppercase;
  letter-spacing: 0.04em;
}
html[data-theme="dark"] .pricing-tier {
  font-size: 13px;
  font-weight: 700;
  color: var(--color-primary);
  text-transform: uppercase;
  letter-spacing: 0.06em;
  margin-bottom: 8px;
  text-align: center;
}
html[data-theme="dark"] .pricing-price {
  font-size: 44px;
  font-weight: 800;
  color: #f0f6fc;
  line-height: 1;
  margin-bottom: 4px;
  text-align: center;
}
html[data-theme="dark"] .pricing-price span {
  font-size: 16px;
  font-weight: 500;
  color: #6e7681;
}
html[data-theme="dark"] .pricing-daily {
  font-size: 13px;
  color: #6e7681;
  margin-bottom: 16px;
  text-align: center;
}
html[data-theme="dark"] .pricing-desc {
  font-size: 14px;
  color: #8b949e;
  margin-bottom: 24px;
  line-height: 1.5;
  text-align: center;
}
html[data-theme="dark"] .pricing-features {
  list-style: none;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 10px;
  margin-bottom: 28px;
  flex: 1;
}
html[data-theme="dark"] .pricing-features li {
  display: flex;
  align-items: flex-start;
  gap: 8px;
  font-size: 14px;
  color: #c9d1d9;
  line-height: 1.5;
}
html[data-theme="dark"] .pricing-features .checkmark {
  color: var(--color-primary);
  font-size: 14px;
  flex-shrink: 0;
  margin-top: 1px;
}
html[data-theme="dark"] .pricing-card .btn {
  width: 100%;
  justify-content: center;
  margin-top: auto;
}

/* ====================================================================
   FOOTER
   ==================================================================== */
html[data-theme="dark"] .footer {
  background: #06080d;
  color: #6e7681;
  padding: 0;
}
html[data-theme="dark"] .footer-inner-wrap {
  padding: 48px 24px;
}
html[data-theme="dark"] .footer-bottom {
  border-top: 1px solid #21262d;
  padding-top: 24px;
  display: flex;
  align-items: center;
  justify-content: space-between;
}
html[data-theme="dark"] .footer-bottom span {
  font-size: 13px;
  color: #6e7681;
}

/* ====================================================================
   HERO TERMINAL -- Glow border + blinking cursor
   ==================================================================== */
html[data-theme="dark"] .hero-terminal {
  border-color: rgba(0, 212, 170, 0.15);
  transition: border-color 0.4s ease, box-shadow 0.4s ease;
}
html[data-theme="dark"] .hero-terminal:hover {
  border-color: rgba(0, 212, 170, 0.3);
  box-shadow: 0 20px 60px rgba(0,0,0,0.4), 0 0 40px rgba(0, 212, 170, 0.1);
}
html[data-theme="dark"] .hero-terminal-body pre::after {
  content: '\2588';
  color: var(--color-primary);
  animation: blink-cursor 1.2s step-end infinite;
  margin-left: 2px;
  font-size: 12px;
}

/* ====================================================================
   SOLUTION -- Connector arrows between cards
   ==================================================================== */
html[data-theme="dark"] .solution-connector {
  display: none;
  align-items: center;
  justify-content: center;
  color: var(--color-primary);
  font-size: 20px;
  opacity: 0.4;
}
@media (min-width: 769px) {
  html[data-theme="dark"] .solution-grid {
    grid-template-columns: 1fr auto 1fr auto 1fr;
  }
  html[data-theme="dark"] .solution-connector {
    display: flex;
    width: 32px;
    position: relative;
  }
  html[data-theme="dark"] .solution-connector::before {
    content: '';
    width: 32px;
    height: 2px;
    background: linear-gradient(90deg, transparent, var(--color-primary), transparent);
    display: block;
  }
  html[data-theme="dark"] .solution-connector::after {
    content: '';
    position: absolute;
    right: 0;
    top: 50%;
    transform: translateY(-50%);
    width: 0;
    height: 0;
    border-left: 6px solid var(--color-primary);
    border-top: 4px solid transparent;
    border-bottom: 4px solid transparent;
  }
}

/* ====================================================================
   API -- Latency badge
   ==================================================================== */
html[data-theme="dark"] .api-latency-badge {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: rgba(0, 212, 170, 0.08);
  border: 1px solid rgba(0, 212, 170, 0.2);
  border-radius: 20px;
  padding: 6px 16px;
  font-size: 13px;
  color: var(--color-primary);
  font-weight: 500;
  margin-bottom: 8px;
  font-family: var(--font-mono, 'JetBrains Mono', monospace);
}
html[data-theme="dark"] .api-latency-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--color-primary);
  box-shadow: 0 0 8px rgba(0, 212, 170, 0.6);
  animation: pulse-dot 2s ease-in-out infinite;
  flex-shrink: 0;
}
html[data-theme="dark"] .api-latency-badge strong {
  color: #f0f6fc;
  font-weight: 700;
}

/* Coming Soon coverage chips */
html[data-theme="dark"] .coverage-chip.soon {
  border-style: dashed;
  opacity: 0.65;
}
html[data-theme="dark"] .coverage-chip.soon:hover {
  opacity: 0.85;
  border-color: var(--color-accent);
}

/* Live dot on coverage chips */
html[data-theme="dark"] .coverage-chip.live::before {
  content: '';
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: #4ade80;
  box-shadow: 0 0 6px rgba(74, 222, 128, 0.6);
  animation: pulse-live 2s ease-in-out infinite;
  flex-shrink: 0;
}

/* Enterprise card gradient border */
html[data-theme="dark"] .pricing-enterprise {
  border: 1px solid rgba(0, 212, 170, 0.15);
  background: linear-gradient(135deg, rgba(0, 212, 170, 0.03) 0%, #161b22 50%, rgba(255, 149, 0, 0.03) 100%);
}
html[data-theme="dark"] .pricing-enterprise:hover {
  border-color: rgba(0, 212, 170, 0.3);
  box-shadow: 0 0 24px rgba(0, 212, 170, 0.05);
}

/* ====================================================================
   PROBLEM CARDS -- red accent glow on hover
   ==================================================================== */
html[data-theme="dark"] .problem-card:hover {
  border-color: rgba(248, 113, 113, 0.2);
  box-shadow: 0 8px 24px rgba(0,0,0,0.3), 0 0 16px rgba(248, 113, 113, 0.04);
}

/* ====================================================================
   SOCIAL PROOF BAR -- gradient border
   ==================================================================== */
html[data-theme="dark"] .social-proof-bar {
  border-image: linear-gradient(90deg, transparent, rgba(0, 212, 170, 0.15), transparent) 1;
  border-image-slice: 1;
}

/* ====================================================================
   RESPONSIVE
   ==================================================================== */

/* <= 1024px */
@media (max-width: 1024px) {
  html[data-theme="dark"] .hero-grid {
    grid-template-columns: 1fr;
    gap: 48px;
  }
  html[data-theme="dark"] .hero-text {
    max-width: 100%;
    text-align: center;
  }
  html[data-theme="dark"] .hero-buttons {
    justify-content: center;
  }
  html[data-theme="dark"] .hero p.hero-sub {
    margin-left: auto;
    margin-right: auto;
  }
  html[data-theme="dark"] .api-wrapper {
    grid-template-columns: 1fr;
    gap: 32px;
  }
  html[data-theme="dark"] .pricing-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

/* <= 768px */
@media (max-width: 768px) {
  html[data-theme="dark"] .hero {
    padding: 36px 0 40px;
  }
  html[data-theme="dark"] .hero-grid {
    gap: 32px;
  }
  html[data-theme="dark"] .pricing-grid {
    grid-template-columns: 1fr;
  }
  html[data-theme="dark"] .pricing-card.featured {
    transform: none;
  }
  html[data-theme="dark"] .pricing-card.featured:hover {
    transform: translateY(-2px);
  }
  html[data-theme="dark"] .problem-grid {
    grid-template-columns: 1fr;
  }
  html[data-theme="dark"] .solution-grid {
    grid-template-columns: 1fr;
  }
  html[data-theme="dark"] .solution-connector {
    display: none;
  }
  html[data-theme="dark"] .charts-grid {
    grid-template-columns: 1fr;
  }
  html[data-theme="dark"] .coverage-chip {
    padding: 8px 14px;
    font-size: 13px;
  }
  html[data-theme="dark"] .section {
    padding: 40px 0;
  }
  html[data-theme="dark"] .section-title {
    font-size: clamp(24px, 5vw, 36px);
  }
  html[data-theme="dark"] .section-subtitle {
    font-size: 15px;
  }
}

/* <= 480px */
@media (max-width: 480px) {
  html[data-theme="dark"] .hero {
    padding: 32px 0 36px;
    min-height: auto;
  }
  html[data-theme="dark"] .hero h1 {
    font-size: clamp(26px, 7vw, 36px);
  }
  html[data-theme="dark"] .hero p.hero-sub {
    font-size: 15px;
    line-height: 1.5;
  }
  html[data-theme="dark"] .hero-terminal {
    max-height: 200px;
    overflow: hidden;
    position: relative;
  }
  html[data-theme="dark"] .hero-terminal::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    height: 40px;
    background: linear-gradient(transparent, #0d1117);
    pointer-events: none;
  }
  html[data-theme="dark"] .hero-terminal-body {
    max-height: 140px;
    overflow: hidden;
  }
  html[data-theme="dark"] .social-proof-grid {
    grid-template-columns: repeat(2, 1fr);
    gap: 16px;
  }
  html[data-theme="dark"] .social-proof-grid .stat-number {
    font-size: 28px;
  }
  html[data-theme="dark"] .section {
    padding: 40px 0;
  }
  html[data-theme="dark"] .card-tab { padding: 10px 14px; font-size: 12px; }
  html[data-theme="dark"] .tab-group-btn { padding: 10px 14px; font-size: 12px; }
  html[data-theme="dark"] .footer-bottom {
    flex-direction: column;
    gap: 8px;
    text-align: center;
  }
  html[data-theme="dark"] .trust-points {
    flex-direction: column;
    align-items: center;
  }
  html[data-theme="dark"] .trust-point {
    max-width: 100%;
  }
}

/* Ticker stays 28px on all sizes */
@media (max-width: 480px) {
  html[data-theme="dark"] .ticker-item {
    padding: 0 10px;
    font-size: 10px;
  }
}

/* Reduced motion — also make fade-up sections visible immediately */
@media (prefers-reduced-motion: reduce) {
  html[data-theme="dark"] .ticker-track { animation: none; }
  html[data-theme="dark"] .hero::before,
  html[data-theme="dark"] .hero::after { animation: none; }
  html[data-theme="dark"] .hero-terminal-body pre::after { animation: none; }
  html[data-theme="dark"] .api-latency-dot { animation: none; }
  html[data-theme="dark"] .coverage-chip.live::before { animation: none; }
  html[data-theme="dark"] .fade-up {
    opacity: 1 !important;
    transform: none !important;
  }
}

/* No-JS fallback — if JS fails to load, show all content */
html[data-theme="dark"]:not(.js-ready) .fade-up {
  opacity: 1;
  transform: none;
}

/* ====================================================================
   CONFIDENCE GAUGE
   ==================================================================== */
html[data-theme="dark"] .confidence-gauge-wrap {
  min-width: 100px;
}

html[data-theme="dark"] .confidence-gauge {
  position: relative;
  width: 100%;
  min-height: 48px;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
}

html[data-theme="dark"] .confidence-arc {
  width: 64px;
  height: 43px;
  margin: 0 auto 2px;
}

html[data-theme="dark"] .confidence-arc-bg {
  fill: none;
  stroke: #21262d;
  stroke-width: 8;
  stroke-linecap: round;
}

html[data-theme="dark"] .confidence-arc-fill {
  fill: none;
  stroke: #4ade80;
  stroke-width: 8;
  stroke-linecap: round;
  transition: stroke-dashoffset 0.8s cubic-bezier(0.22, 1, 0.36, 1),
              stroke 0.4s ease;
  filter: drop-shadow(0 0 6px currentColor);
}

html[data-theme="dark"] .confidence-value {
  font-family: var(--font-mono, 'JetBrains Mono', monospace);
  font-size: 20px;
  font-weight: 700;
  color: #4ade80;
  line-height: 1;
  text-align: center;
  transition: color 0.4s ease;
}
html[data-theme="dark"] .confidence-level {
  font-size: 10px;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  margin-top: 3px;
  text-align: center;
  transition: color 0.4s ease;
}

/* Glow pulse on the gauge */
@keyframes gauge-glow {
  0%, 100% { filter: drop-shadow(0 0 4px currentColor); }
  50% { filter: drop-shadow(0 0 10px currentColor); }
}

html[data-theme="dark"] .confidence-gauge[data-score] .confidence-arc-fill {
  animation: gauge-glow 3s ease-in-out infinite;
}

/* ====================================================================
   SOURCE COUNT PILL
   ==================================================================== */
html[data-theme="dark"] .source-count-pill {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  margin-top: 6px;
  padding: 3px 10px;
  background: rgba(0, 212, 170, 0.08);
  border: 1px solid rgba(0, 212, 170, 0.2);
  border-radius: 12px;
  font-size: 11px;
  font-weight: 600;
  color: var(--color-primary);
  font-family: var(--font-mono, 'JetBrains Mono', monospace);
  letter-spacing: 0.02em;
}

html[data-theme="dark"] .source-count-pill svg {
  color: var(--color-primary);
  opacity: 0.7;
}

/* ====================================================================
   DEMO API BADGE
   ==================================================================== */
html[data-theme="dark"] .demo-api-badge {
  text-align: center;
  margin-top: 28px;
  padding-top: 20px;
  border-top: 1px solid #21262d;
}

html[data-theme="dark"] .demo-api-link {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-family: var(--font-mono, 'JetBrains Mono', monospace);
  font-size: 13px;
  font-weight: 500;
  color: #6e7681;
  text-decoration: none;
  padding: 8px 20px;
  border: 1px solid #21262d;
  border-radius: 8px;
  background: rgba(13, 17, 23, 0.5);
  transition: all 0.2s ease;
}

html[data-theme="dark"] .demo-api-link:hover {
  color: var(--color-primary);
  border-color: rgba(0, 212, 170, 0.3);
  background: rgba(0, 212, 170, 0.05);
}

html[data-theme="dark"] .demo-api-link code {
  color: var(--color-primary);
  font-weight: 700;
  font-size: 13px;
}

html[data-theme="dark"] .demo-api-link svg {
  opacity: 0.5;
}

html[data-theme="dark"] .demo-api-link:hover svg {
  opacity: 1;
  color: var(--color-primary);
}

/* ====================================================================
   RESPONSIVE — New elements
   ==================================================================== */
@media (max-width: 768px) {
  html[data-theme="dark"] .demo-stats-grid {
    grid-template-columns: repeat(2, 1fr);
    gap: 10px;
  }
  html[data-theme="dark"] .stat-box .stat-value,
  html[data-theme="dark"] .stat-box .stat-value-success,
  html[data-theme="dark"] .stat-box .stat-value-accent {
    font-size: 22px;
  }
  html[data-theme="dark"] .stat-box .stat-value-range {
    font-size: 16px;
  }
  html[data-theme="dark"] .demo-card-header {
    gap: 20px;
    padding: 24px;
    justify-content: center;
  }
  html[data-theme="dark"] .card-tilt-wrap {
    align-self: center;
  }
  html[data-theme="dark"] .confidence-gauge-wrap {
    min-width: 0;
  }
  html[data-theme="dark"] .confidence-gauge {
    min-height: auto;
  }
  html[data-theme="dark"] .confidence-arc {
    width: 72px;
    height: 48px;
  }
  html[data-theme="dark"] .confidence-value {
    font-size: 16px;
  }
  html[data-theme="dark"] .chart-panel {
    padding: 20px;
  }
  html[data-theme="dark"] .demo-api-link {
    font-size: 11px;
    padding: 6px 14px;
  }
}

@media (max-width: 480px) {
  html[data-theme="dark"] .demo-stats-grid {
    grid-template-columns: repeat(2, 1fr);
    gap: 8px;
  }
  html[data-theme="dark"] .stat-box {
    padding: 10px 12px;
  }
  html[data-theme="dark"] .stat-box .stat-value,
  html[data-theme="dark"] .stat-box .stat-value-success,
  html[data-theme="dark"] .stat-box .stat-value-accent {
    font-size: 20px;
  }
  html[data-theme="dark"] .demo-card-header {
    gap: 16px;
    padding: 16px;
  }
  html[data-theme="dark"] .confidence-arc {
    width: 64px;
    height: 43px;
  }
  html[data-theme="dark"] .confidence-value {
    font-size: 15px;
  }
  html[data-theme="dark"] .demo-api-badge {
    margin-top: 20px;
    padding-top: 16px;
  }
  html[data-theme="dark"] .demo-api-link {
    font-size: 10px;
    gap: 4px;
    padding: 5px 10px;
  }
}

/* ====================================================================
   HERO SEARCH BAR
   ==================================================================== */

@keyframes search-glow {
  0%, 100% { box-shadow: 0 0 0 1px rgba(0, 212, 170, 0.15), 0 0 20px rgba(0, 212, 170, 0.05); }
  50%      { box-shadow: 0 0 0 1px rgba(0, 212, 170, 0.3), 0 0 30px rgba(0, 212, 170, 0.1); }
}

html[data-theme="dark"] .hero-search {
  margin-top: 28px;
  margin-bottom: 8px;
  width: 100%;
  max-width: 560px;
}

html[data-theme="dark"] .hero-search-form {
  position: relative;
  display: flex;
  align-items: center;
  background: #161b22;
  border: 1px solid #30363d;
  border-radius: 14px;
  overflow: hidden;
  animation: search-glow 3s ease-in-out infinite;
  transition: border-color 0.2s ease, box-shadow 0.2s ease;
}

html[data-theme="dark"] .hero-search-form:focus-within {
  border-color: #00d4aa;
  box-shadow: 0 0 0 1px #00d4aa, 0 0 24px rgba(0, 212, 170, 0.15);
  animation: none;
}

html[data-theme="dark"] .hero-search-icon {
  position: absolute;
  left: 16px;
  top: 50%;
  transform: translateY(-50%);
  color: #6e7681;
  pointer-events: none;
  flex-shrink: 0;
}

html[data-theme="dark"] .hero-search-form input[type="search"] {
  flex: 1;
  height: 52px;
  padding: 0 16px 0 48px;
  background: transparent;
  border: none;
  color: #f0f6fc;
  font-size: 16px;
  font-family: 'Inter', sans-serif;
  outline: none;
}

html[data-theme="dark"] .hero-search-form input[type="search"]::placeholder {
  color: #6e7681;
}

/* Remove default search cancel button in WebKit browsers */
html[data-theme="dark"] .hero-search-form input[type="search"]::-webkit-search-cancel-button {
  -webkit-appearance: none;
}

html[data-theme="dark"] .hero-search-form button[type="submit"] {
  flex-shrink: 0;
  height: 40px;
  padding: 0 20px;
  margin: 6px;
  background: #00d4aa;
  color: #0a0e17;
  border: none;
  border-radius: 10px;
  font-size: 14px;
  font-weight: 600;
  font-family: 'Inter', sans-serif;
  cursor: pointer;
  transition: background 0.15s ease;
}

html[data-theme="dark"] .hero-search-form button[type="submit"]:hover {
  background: #00b392;
}

html[data-theme="dark"] .hero-search-hint {
  margin-top: 10px;
  font-size: 13px;
  color: #6e7681;
  text-align: center;
}

/* ====================================================================
   TRUST / SOCIAL PROOF SECTION
   ==================================================================== */

html[data-theme="dark"] .trust-section {
  padding: 48px 0 56px;
  background: #0a0e17;
}

html[data-theme="dark"] .trust-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 20px;
}

html[data-theme="dark"] .trust-card {
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid rgba(255, 255, 255, 0.06);
  border-radius: 12px;
  padding: 24px;
  transition: border-color 0.2s ease, background 0.2s ease;
}

html[data-theme="dark"] .trust-card:hover {
  border-color: rgba(0, 212, 170, 0.2);
  background: rgba(255, 255, 255, 0.06);
}

html[data-theme="dark"] .trust-icon {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 40px;
  height: 40px;
  border-radius: 10px;
  background: rgba(0, 212, 170, 0.1);
  color: #00d4aa;
  margin-bottom: 14px;
}

html[data-theme="dark"] .trust-card h4 {
  font-size: 16px;
  font-weight: 700;
  color: #f0f6fc;
  margin-bottom: 8px;
}

html[data-theme="dark"] .trust-card p {
  font-size: 14px;
  line-height: 1.55;
  color: #8b949e;
  margin: 0;
}

html[data-theme="dark"] .trust-card a {
  color: #00d4aa;
  text-decoration: none;
}

html[data-theme="dark"] .trust-card a:hover {
  text-decoration: underline;
}

/* Trust section responsive */
@media (max-width: 900px) {
  html[data-theme="dark"] .trust-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (max-width: 540px) {
  html[data-theme="dark"] .trust-grid {
    grid-template-columns: 1fr;
  }
  html[data-theme="dark"] .hero-search-form input[type="search"] {
    font-size: 15px;
  }
  html[data-theme="dark"] .hero-search-form button[type="submit"] {
    padding: 0 14px;
    font-size: 13px;
  }
}

/* ====================================================================
   COMPREHENSIVE MOBILE RESPONSIVENESS AUDIT FIXES
   Targets: 320px (iPhone SE), 375px (iPhone 12/13/14),
            414px (iPhone 14 Plus), 428px (iPhone Pro Max)
   ==================================================================== */

/* -- Prevent horizontal overflow -- */
html[data-theme="dark"] {
  overflow-x: hidden;
  max-width: 100vw;
}

/* -- Hero search on small screens -- */
@media (max-width: 480px) {
  html[data-theme="dark"] .hero-search {
    max-width: 100%;
    margin-top: 20px;
  }
  html[data-theme="dark"] .hero-search-form {
    border-radius: 12px;
  }
  html[data-theme="dark"] .hero-search-form input[type="search"] {
    height: 48px;
    padding-left: 40px;
    font-size: 14px;
  }
  html[data-theme="dark"] .hero-search-icon {
    left: 12px;
    width: 18px;
    height: 18px;
  }
  html[data-theme="dark"] .hero-search-form button[type="submit"] {
    height: 36px;
    padding: 0 12px;
    font-size: 13px;
    border-radius: 8px;
    min-width: 44px;
  }
  html[data-theme="dark"] .hero-search-hint {
    font-size: 12px;
  }
}
@media (max-width: 320px) {
  html[data-theme="dark"] .hero-search-form input[type="search"] {
    font-size: 13px;
    padding-left: 36px;
  }
  html[data-theme="dark"] .hero-search-form button[type="submit"] {
    padding: 0 10px;
    font-size: 12px;
  }
}

/* -- Hero buttons stack vertically on narrow screens -- */
@media (max-width: 380px) {
  html[data-theme="dark"] .hero-buttons {
    flex-direction: column;
    align-items: stretch;
    gap: 12px;
    width: 100%;
  }
  html[data-theme="dark"] .hero-buttons .btn {
    width: 100%;
    justify-content: center;
  }
}

/* -- Card tabs scrollable container on mobile -- */
@media (max-width: 768px) {
  html[data-theme="dark"] #card-tabs-container {
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
    flex-wrap: nowrap !important;
    justify-content: flex-start !important;
    padding-bottom: 8px;
    scrollbar-width: none;
    -ms-overflow-style: none;
    max-width: 100vw;
  }
  html[data-theme="dark"] #card-tabs-container::-webkit-scrollbar {
    display: none;
  }
  html[data-theme="dark"] .card-tab,
  html[data-theme="dark"] .tab-group-btn {
    flex-shrink: 0;
  }
}

/* -- Demo card header stacking on mobile -- */
@media (max-width: 600px) {
  html[data-theme="dark"] .demo-card-header {
    flex-direction: column;
    align-items: center;
    text-align: center;
  }
  html[data-theme="dark"] .demo-card-header .card-tilt-wrap {
    align-self: center;
  }
  html[data-theme="dark"] #card-title {
    font-size: 20px !important;
  }
  html[data-theme="dark"] #card-meta {
    font-size: 13px !important;
  }
}
@media (max-width: 380px) {
  html[data-theme="dark"] #card-title {
    font-size: 18px !important;
  }
}

/* -- Range toggle buttons touch targets -- */
@media (max-width: 768px) {
  html[data-theme="dark"] .range-toggle {
    gap: 4px;
  }
  html[data-theme="dark"] .range-btn {
    min-height: 36px;
    min-width: 44px;
    padding: 6px 10px;
    font-size: 12px;
  }
}
@media (max-width: 480px) {
  html[data-theme="dark"] .range-btn {
    padding: 6px 8px;
    font-size: 11px;
    min-width: 40px;
  }
}

/* -- Chart panels responsive sizing -- */
@media (max-width: 480px) {
  html[data-theme="dark"] .chart-panel {
    padding: 16px 12px;
  }
  html[data-theme="dark"] .chart-panel h4 {
    font-size: 14px !important;
  }
}

/* -- Info tips positioning -- */
@media (max-width: 480px) {
  html[data-theme="dark"] .info-tip {
    display: none;
  }
}

/* -- API section code blocks -- */
@media (max-width: 480px) {
  html[data-theme="dark"] .code-block {
    border-radius: 10px;
  }
  html[data-theme="dark"] .code-header {
    padding: 8px 12px;
    flex-wrap: wrap;
    gap: 8px;
  }
  html[data-theme="dark"] .code-tabs {
    gap: 4px;
  }
  html[data-theme="dark"] .code-tab {
    padding: 6px 10px;
    font-size: 11px;
    min-height: 32px;
  }
  html[data-theme="dark"] .copy-btn {
    font-size: 11px;
    padding: 4px 10px;
  }
  html[data-theme="dark"] .code-body {
    padding: 14px 12px;
  }
  html[data-theme="dark"] .code-body pre {
    font-size: 11px;
    line-height: 1.6;
    white-space: pre-wrap;
    word-break: break-all;
  }
}

/* -- API features list mobile -- */
@media (max-width: 480px) {
  html[data-theme="dark"] .api-features {
    gap: 6px;
    padding-left: 0;
  }
  html[data-theme="dark"] .api-features li {
    font-size: 13px;
    line-height: 1.5;
  }
}

/* -- Problem/solution cards on narrowest screens -- */
@media (max-width: 380px) {
  html[data-theme="dark"] .problem-card,
  html[data-theme="dark"] .solution-card {
    padding: 20px 16px;
  }
  html[data-theme="dark"] .problem-card h3,
  html[data-theme="dark"] .solution-card h3 {
    font-size: 17px;
  }
  html[data-theme="dark"] .problem-card p,
  html[data-theme="dark"] .solution-card p {
    font-size: 13px;
  }
}

/* -- Coverage chips wrapping -- */
@media (max-width: 480px) {
  html[data-theme="dark"] .coverage-grid {
    gap: 8px;
    justify-content: center;
  }
  html[data-theme="dark"] .coverage-chip {
    padding: 8px 12px;
    font-size: 12px;
  }
}

/* -- Pricing section on landing page -- */
@media (max-width: 380px) {
  html[data-theme="dark"] .pricing-card {
    padding: 24px 16px;
  }
  html[data-theme="dark"] .pricing-price {
    font-size: 36px;
  }
  html[data-theme="dark"] .pricing-features li {
    font-size: 13px;
  }
}

/* -- Source count pill -- */
@media (max-width: 480px) {
  html[data-theme="dark"] .source-count-pill {
    font-size: 10px;
    padding: 2px 6px;
  }
}

/* -- Trust points section -- */
@media (max-width: 480px) {
  html[data-theme="dark"] .trust-point {
    gap: 12px;
    padding: 16px;
  }
  html[data-theme="dark"] .trust-point strong {
    font-size: 14px;
  }
  html[data-theme="dark"] .trust-point p {
    font-size: 13px;
  }
}

/* -- Stat boxes on narrowest screens (320px) -- */
@media (max-width: 340px) {
  html[data-theme="dark"] .demo-stats-grid {
    grid-template-columns: 1fr 1fr;
    gap: 6px;
  }
  html[data-theme="dark"] .stat-box {
    padding: 8px 8px;
  }
  html[data-theme="dark"] .stat-box .stat-label-sm {
    font-size: 9px;
  }
  html[data-theme="dark"] .stat-box .stat-value,
  html[data-theme="dark"] .stat-box .stat-value-success,
  html[data-theme="dark"] .stat-box .stat-value-accent {
    font-size: 16px;
  }
  html[data-theme="dark"] .stat-box .stat-value-range {
    font-size: 13px;
  }
}

/* -- Footer for landing dark mode -- */
@media (max-width: 480px) {
  html[data-theme="dark"] .footer {
    padding: 24px 0;
  }
  html[data-theme="dark"] .footer-inner-wrap {
    padding: 0 16px;
  }
  html[data-theme="dark"] .footer-bottom {
    flex-direction: column;
    gap: 8px;
    text-align: center;
  }
  html[data-theme="dark"] .footer-bottom a {
    min-height: 44px;
    display: inline-flex;
    align-items: center;
    padding: 4px;
  }
}

/* -- 320px extreme narrow screen fixes -- */
@media (max-width: 320px) {
  html[data-theme="dark"] .hero h1 {
    font-size: 24px;
  }
  html[data-theme="dark"] .hero p.hero-sub {
    font-size: 14px;
  }
  html[data-theme="dark"] .section-title {
    font-size: 22px;
  }
  html[data-theme="dark"] .section-subtitle {
    font-size: 14px;
  }
  html[data-theme="dark"] .badge {
    font-size: 11px;
    padding: 4px 12px;
  }
  html[data-theme="dark"] .social-proof-grid .stat-number {
    font-size: 24px;
  }
  html[data-theme="dark"] .social-proof-grid .stat-label {
    font-size: 11px;
  }
  html[data-theme="dark"] .container {
    padding: 0 12px;
  }
}
