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

:root {
  --bg: #09090b;
  --bg-card: #111113;
  --bg-card-hover: #16161a;
  --border: #1c1c22;
  --border-light: #27272f;
  --text: #ededf0;
  --text-muted: #8b8b9e;
  --text-dim: #55556a;
  --primary: #6366f1;
  --primary-light: #a5b4fc;
  --accent: #22d3ee;
  --accent-green: #34d399;
  --gradient: linear-gradient(135deg, #6366f1, #22d3ee);
  --gradient-text: linear-gradient(135deg, #a5b4fc, #22d3ee, #818cf8);
  --glow: rgba(99, 102, 241, 0.12);
  --radius: 6px;
  --radius-sm: 4px;
  --radius-lg: 8px;
  --font: 'Inter', -apple-system, BlinkMacSystemFont, sans-serif;
  --mono: 'JetBrains Mono', 'Fira Code', monospace;
}

html { scroll-behavior: smooth; }

body {
  font-family: var(--font);
  background: var(--bg);
  color: var(--text);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}

/* ===== Global Animated Background ===== */
.global-bg {
  position: fixed;
  inset: 0;
  z-index: 0;
  pointer-events: none;
  overflow: hidden;
}

/* Subtle noise */
.bg-noise {
  position: absolute;
  inset: -50%;
  width: 200%;
  height: 200%;
  opacity: 0.03;
  background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 512 512' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.65' numOctaves='4' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
  background-size: 512px 512px;
}

/* Large soft gradient washes — GitHub style */
.bg-glow {
  position: absolute;
  border-radius: 50%;
  filter: blur(120px);
}
.bg-glow-1 {
  width: 900px;
  height: 600px;
  top: -15%;
  left: -10%;
  background: radial-gradient(ellipse, rgba(99, 102, 241, 0.12) 0%, transparent 70%);
}
.bg-glow-2 {
  width: 800px;
  height: 500px;
  top: 30%;
  right: -15%;
  background: radial-gradient(ellipse, rgba(34, 211, 238, 0.08) 0%, transparent 70%);
}

/* ===== Vertical Trail Line — GitHub-style ===== */
.trail-line {
  position: fixed;
  left: 50%;
  top: 0;
  bottom: 0;
  width: 1px;
  background: linear-gradient(180deg,
    transparent 0%,
    rgba(99, 102, 241, 0.15) 15%,
    rgba(99, 102, 241, 0.08) 50%,
    rgba(34, 211, 238, 0.06) 80%,
    transparent 100%
  );
  z-index: 0;
  pointer-events: none;
}
.trail-glow {
  position: absolute;
  left: -3px;
  width: 7px;
  height: 80px;
  border-radius: 4px;
  background: linear-gradient(180deg, transparent, rgba(99, 102, 241, 0.6), rgba(34, 211, 238, 0.4), transparent);
  filter: blur(2px);
  animation: trailMove 6s ease-in-out infinite;
}
@keyframes trailMove {
  0% { top: -80px; opacity: 0; }
  10% { opacity: 1; }
  90% { opacity: 1; }
  100% { top: 100vh; opacity: 0; }
}

/* Ensure all content sits above the background */
.navbar, .hero, section, footer, .modal-overlay { position: relative; z-index: 1; }
.trail-line { z-index: 0; }

a { color: inherit; text-decoration: none; }

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

/* ===== Buttons ===== */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 10px 22px;
  border-radius: var(--radius-sm);
  font-size: 14px;
  font-weight: 500;
  cursor: pointer;
  transition: all 0.2s ease;
  border: none;
  font-family: var(--font);
}
.btn-primary {
  background: var(--primary);
  color: #fff;
}
.btn-primary:hover {
  background: #818cf8;
  box-shadow: 0 0 0 3px rgba(99, 102, 241, 0.15);
}
.btn-outline {
  background: transparent;
  border: 1px solid var(--border-light);
  color: var(--text);
}
.btn-outline:hover {
  border-color: var(--primary-light);
  color: var(--primary-light);
}
.btn-ghost {
  background: transparent;
  color: var(--text-muted);
}
.btn-ghost:hover { color: var(--text); }
.btn-lg {
  padding: 14px 32px;
  font-size: 16px;
  border-radius: var(--radius);
}
.btn-block {
  width: 100%;
  justify-content: center;
}
.btn-arrow { transition: transform 0.2s; }
.btn:hover .btn-arrow { transform: translateX(3px); }

/* ===== Navbar ===== */
.navbar {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 100;
  padding: 14px 0;
  background: rgba(10, 10, 15, 0.8);
  backdrop-filter: blur(20px);
  border-bottom: 1px solid rgba(30, 30, 46, 0.5);
  transition: border-bottom-color 0.3s, box-shadow 0.3s;
}
.navbar.scrolled {
  border-bottom-color: var(--border);
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.3);
}
.nav-container {
  display: flex;
  align-items: center;
  justify-content: space-between;
}
.logo {
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 20px;
  font-weight: 700;
}
.logo-svg { flex-shrink: 0; }
.nav-links {
  display: flex;
  gap: 32px;
}
.nav-links a {
  font-size: 14px;
  color: var(--text-muted);
  transition: color 0.2s;
}
.nav-links a:hover { color: var(--text); }
.nav-links a.active {
  color: var(--primary-light);
}
.nav-actions {
  display: flex;
  align-items: center;
  gap: 12px;
}
.mobile-menu-btn {
  display: none;
  flex-direction: column;
  gap: 5px;
  background: none;
  border: none;
  cursor: pointer;
  padding: 4px;
}
.mobile-menu-btn span {
  display: block;
  width: 22px;
  height: 2px;
  background: var(--text);
  border-radius: 2px;
  transition: all 0.3s;
}
.mobile-menu-btn.active span:nth-child(1) { transform: rotate(45deg) translate(5px, 5px); }
.mobile-menu-btn.active span:nth-child(2) { opacity: 0; }
.mobile-menu-btn.active span:nth-child(3) { transform: rotate(-45deg) translate(5px, -5px); }
.mobile-menu {
  display: none;
  flex-direction: column;
  padding: 20px 24px;
  border-top: 1px solid var(--border);
  gap: 16px;
}
.mobile-menu.open { display: flex; }
.mobile-menu a {
  font-size: 16px;
  color: var(--text-muted);
  padding: 8px 0;
}
.mobile-menu-actions {
  display: flex;
  gap: 12px;
  padding-top: 12px;
  border-top: 1px solid var(--border);
}

/* ===== Hero ===== */
.hero {
  position: relative;
  padding: 180px 0 80px;
  text-align: center;
  overflow: hidden;
}
.hero-glow {
  position: absolute;
  top: -300px;
  left: 50%;
  transform: translateX(-50%);
  width: 1200px;
  height: 800px;
  background: radial-gradient(ellipse 600px 400px at 50% 40%, rgba(99, 102, 241, 0.15) 0%, transparent 70%);
  pointer-events: none;
}
.hero-grid-bg {
  position: absolute;
  inset: 0;
  background-image:
    linear-gradient(rgba(99, 102, 241, 0.03) 1px, transparent 1px),
    linear-gradient(90deg, rgba(99, 102, 241, 0.03) 1px, transparent 1px);
  background-size: 64px 64px;
  mask-image: radial-gradient(ellipse 50% 40% at 50% 40%, black 0%, transparent 70%);
  -webkit-mask-image: radial-gradient(ellipse 50% 40% at 50% 40%, black 0%, transparent 70%);
  pointer-events: none;
}
/* Floating particles in hero */
.hero-particles {
  position: absolute;
  inset: 0;
  pointer-events: none;
  overflow: hidden;
}
.hero-particle {
  position: absolute;
  width: 2px;
  height: 2px;
  border-radius: 50%;
  background: var(--primary-light);
  opacity: 0;
  animation: particleFloat linear infinite;
}
@keyframes particleFloat {
  0% { opacity: 0; transform: translateY(100vh) scale(0); }
  10% { opacity: 0.6; }
  90% { opacity: 0.3; }
  100% { opacity: 0; transform: translateY(-20vh) scale(1); }
}
.hero-badge {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 6px 16px;
  border-radius: var(--radius-sm);
  background: rgba(99, 102, 241, 0.06);
  border: 1px solid rgba(99, 102, 241, 0.2);
  font-size: 12px;
  color: var(--primary-light);
  margin-bottom: 32px;
  font-family: var(--mono);
}
.hero-badge-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--accent);
  animation: pulse-dot 2s infinite;
}
@keyframes pulse-dot {
  0%, 100% { opacity: 1; box-shadow: 0 0 0 0 rgba(0, 206, 201, 0.4); }
  50% { opacity: 0.8; box-shadow: 0 0 0 6px rgba(0, 206, 201, 0); }
}
.hero-title {
  font-size: clamp(40px, 6vw, 72px);
  font-weight: 800;
  line-height: 1.1;
  margin-bottom: 24px;
  letter-spacing: -0.02em;
}
.gradient-text {
  background: var(--gradient-text);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}
.hero-desc {
  max-width: 660px;
  margin: 0 auto 40px;
  font-size: 17px;
  color: var(--text-muted);
  line-height: 1.7;
}
.hero-actions {
  display: flex;
  gap: 16px;
  justify-content: center;
  margin-bottom: 28px;
}
.hero-meta {
  display: flex;
  gap: 20px;
  justify-content: center;
  flex-wrap: wrap;
  font-size: 13px;
  color: var(--text-dim);
  margin-bottom: 60px;
}
.meta-check { color: var(--accent); margin-right: 4px; }

/* ===== Hero Terminal ===== */
.hero-terminal {
  max-width: 860px;
  margin: 0 auto;
  border-radius: var(--radius);
  background: #0c0c14;
  border: 1px solid var(--border);
  overflow: hidden;
  text-align: left;
  box-shadow: 0 20px 60px rgba(0, 0, 0, 0.5);
}
.terminal-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 12px 20px;
  background: rgba(255, 255, 255, 0.02);
  border-bottom: 1px solid var(--border);
}
.terminal-title {
  font-size: 12px;
  color: var(--text-dim);
  font-family: var(--mono);
}
.terminal-body {
  padding: 16px 20px;
  font-family: var(--mono);
  font-size: 12.5px;
  line-height: 2;
  overflow: hidden;
  height: 240px;
}
.terminal-line {
  display: flex;
  gap: 16px;
  white-space: nowrap;
}
.terminal-line.dim { opacity: 0.5; }
.t-time { color: var(--text-dim); }
.t-method { color: #c678dd; font-weight: 500; }
.t-route { color: var(--text-muted); }
.t-model { color: var(--primary-light); min-width: 120px; }
.t-status.success { color: #28c840; }
.t-status.error { color: #ff6b6b; }
.t-latency { color: #d19a66; min-width: 48px; }
.t-tokens { color: var(--text-muted); min-width: 80px; }
.t-cost { color: var(--accent); }
.terminal-cursor { display: flex; gap: 16px; }
.t-waiting { color: var(--text-dim); }
.blink { animation: blink 1.2s infinite; }
@keyframes blink {
  0%, 100% { opacity: 1; }
  50% { opacity: 0.3; }
}
.terminal-line {
  transition: opacity 0.3s ease, transform 0.3s ease;
}
.terminal-line.new-line {
  opacity: 0;
  transform: translateY(8px);
}
.terminal-line:not(.new-line) {
  opacity: 1;
  transform: translateY(0);
}

/* ===== Providers Bar ===== */
.providers-bar {
  padding: 60px 0;
  border-top: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
}
.providers-bar-label {
  text-align: center;
  font-size: 13px;
  color: var(--text-dim);
  text-transform: uppercase;
  letter-spacing: 0.1em;
  margin-bottom: 32px;
}
.providers-scroll {
  display: flex;
  justify-content: center;
  flex-wrap: wrap;
  gap: 12px;
}
.provider-logo {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 10px 20px;
  border-radius: var(--radius-sm);
  background: var(--bg-card);
  border: 1px solid var(--border);
  font-size: 13px;
  font-weight: 500;
  color: var(--text-muted);
  transition: all 0.2s;
}
.provider-logo:hover {
  border-color: var(--border-light);
  color: var(--text);
  background: var(--bg-card-hover);
}
.provider-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  flex-shrink: 0;
}

/* ===== Section Common ===== */
.section-header {
  text-align: center;
  margin-bottom: 64px;
}
.section-tag {
  display: inline-block;
  padding: 4px 12px;
  border-radius: var(--radius-sm);
  background: rgba(99, 102, 241, 0.08);
  border: 1px solid rgba(99, 102, 241, 0.15);
  font-size: 11px;
  color: var(--primary-light);
  margin-bottom: 20px;
  font-family: var(--mono);
  text-transform: uppercase;
  letter-spacing: 0.08em;
}
.section-title {
  font-size: clamp(28px, 4vw, 44px);
  font-weight: 700;
  line-height: 1.2;
  margin-bottom: 16px;
  letter-spacing: -0.01em;
}
.section-desc {
  font-size: 16px;
  color: var(--text-muted);
  max-width: 560px;
  margin: 0 auto;
}

/* ===== Features ===== */
.features {
  padding: 100px 0;
  position: relative;
}
.features-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
}
.feature-card {
  padding: 28px;
  border-radius: var(--radius);
  background: var(--bg-card);
  border: 1px solid var(--border);
  transition: all 0.3s ease;
}
.feature-card:hover {
  border-color: var(--border-light);
  background: var(--bg-card-hover);
}
.feature-highlight {
  border-color: rgba(99, 102, 241, 0.25);
  background: var(--bg-card);
  border-left: 2px solid var(--primary);
}
.feature-icon-wrap {
  width: 40px;
  height: 40px;
  border-radius: var(--radius-sm);
  background: rgba(99, 102, 241, 0.08);
  border: 1px solid rgba(99, 102, 241, 0.12);
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 16px;
  color: var(--primary-light);
}
.feature-card h3 {
  font-size: 17px;
  font-weight: 600;
  margin-bottom: 10px;
}
.feature-card p {
  font-size: 14px;
  color: var(--text-muted);
  line-height: 1.7;
}
.feature-tag {
  display: inline-block;
  margin-top: 14px;
  padding: 3px 10px;
  border-radius: var(--radius-sm);
  background: rgba(34, 211, 238, 0.08);
  border: 1px solid rgba(34, 211, 238, 0.15);
  color: var(--accent);
  font-size: 11px;
  font-weight: 500;
  font-family: var(--mono);
  text-transform: uppercase;
  letter-spacing: 0.04em;
}

/* ===== How It Works ===== */
.how-it-works {
  padding: 100px 0;
  border-top: 1px solid var(--border);
}
.steps-grid {
  display: flex;
  align-items: flex-start;
  gap: 24px;
}
.step-card {
  flex: 1;
  padding: 32px;
  border-radius: var(--radius);
  background: var(--bg-card);
  border: 1px solid var(--border);
}
.step-number {
  font-size: 32px;
  font-weight: 800;
  font-family: var(--mono);
  color: var(--primary);
  margin-bottom: 16px;
  letter-spacing: -0.02em;
}
.step-card h3 {
  font-size: 18px;
  font-weight: 600;
  margin-bottom: 12px;
}
.step-card p {
  font-size: 14px;
  color: var(--text-muted);
  line-height: 1.7;
}
.step-card code {
  font-family: var(--mono);
  font-size: 13px;
  background: rgba(108, 92, 231, 0.1);
  padding: 2px 8px;
  border-radius: 4px;
  color: var(--primary-light);
}
.step-arrow {
  font-size: 24px;
  color: var(--text-dim);
  padding-top: 48px;
  flex-shrink: 0;
}

/* ===== Integration ===== */
.integration {
  padding: 100px 0;
  border-top: 1px solid var(--border);
}
.integration-container {
  display: grid;
  grid-template-columns: 1fr 1.2fr;
  gap: 64px;
  align-items: center;
}
.integration-info .section-tag { margin-bottom: 16px; }
.integration-info .section-title { text-align: left; margin-bottom: 20px; }
.integration-info .section-desc { text-align: left; margin: 0 0 28px; max-width: none; }
.integration-list {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 10px;
}
.integration-list li {
  font-size: 14px;
  color: var(--text-muted);
  display: flex;
  align-items: center;
  gap: 8px;
}
.list-check { color: var(--accent); font-size: 14px; flex-shrink: 0; }

/* ===== Code Block ===== */
.code-block {
  border-radius: var(--radius);
  background: #0c0c14;
  border: 1px solid var(--border);
  overflow: hidden;
}
.code-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 12px 20px;
  background: rgba(255, 255, 255, 0.02);
  border-bottom: 1px solid var(--border);
}
.code-dots { display: flex; gap: 8px; }
.dot { width: 12px; height: 12px; border-radius: 50%; }
.dot.red { background: #ff5f57; }
.dot.yellow { background: #febc2e; }
.dot.green { background: #28c840; }
.code-tabs { display: flex; gap: 4px; }
.code-tab {
  padding: 6px 14px;
  border-radius: 6px;
  background: transparent;
  border: none;
  color: var(--text-dim);
  font-size: 13px;
  font-family: var(--font);
  cursor: pointer;
  transition: all 0.2s;
}
.code-tab.active {
  background: rgba(108, 92, 231, 0.15);
  color: var(--primary-light);
}
.code-tab:hover:not(.active) { color: var(--text-muted); }
.code-content {
  padding: 24px;
  font-family: var(--mono);
  font-size: 13px;
  line-height: 1.8;
  overflow-x: auto;
  color: #c9d1d9;
}
.code-content.hidden { display: none; }
.code-content .kw { color: #c678dd; }
.code-content .str { color: #98c379; }
.code-content .num { color: #d19a66; }
.code-content .cmt { color: #5c6370; font-style: italic; }

/* ===== Models ===== */
.models {
  padding: 100px 0;
  border-top: 1px solid var(--border);
}
.model-filters {
  display: flex;
  justify-content: center;
  gap: 8px;
  margin-bottom: 40px;
  flex-wrap: wrap;
}
.model-filter {
  padding: 6px 14px;
  border-radius: var(--radius-sm);
  background: transparent;
  border: 1px solid var(--border);
  color: var(--text-muted);
  font-size: 12px;
  font-family: var(--mono);
  cursor: pointer;
  transition: all 0.15s;
}
.model-filter.active,
.model-filter:hover {
  background: rgba(108, 92, 231, 0.1);
  border-color: rgba(108, 92, 231, 0.3);
  color: var(--primary-light);
}
.models-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 16px;
  margin-bottom: 40px;
}
.model-card {
  padding: 22px;
  border-radius: var(--radius);
  background: var(--bg-card);
  border: 1px solid var(--border);
  transition: all 0.3s ease;
}
.model-card:hover {
  border-color: var(--border-light);
}
.model-card.hidden-card {
  display: none;
}
.model-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 10px;
}
.model-provider {
  font-size: 11px;
  color: var(--text-dim);
  text-transform: uppercase;
  letter-spacing: 0.05em;
}
.model-badge {
  font-size: 10px;
  padding: 2px 8px;
  border-radius: var(--radius-sm);
  font-weight: 600;
  font-family: var(--mono);
  text-transform: uppercase;
  letter-spacing: 0.04em;
}
.model-badge.hot { background: rgba(255, 107, 107, 0.15); color: #ff6b6b; }
.model-badge.cheap { background: rgba(0, 206, 201, 0.15); color: var(--accent); }
.model-badge.new { background: rgba(108, 92, 231, 0.15); color: var(--primary-light); }
.model-name {
  font-size: 17px;
  font-weight: 600;
  margin-bottom: 14px;
}
.model-pricing {
  display: flex;
  flex-direction: column;
  gap: 6px;
  margin-bottom: 14px;
}
.price-row {
  display: flex;
  justify-content: space-between;
  font-size: 12px;
}
.price-row span:first-child { color: var(--text-dim); }
.price-row span:last-child {
  color: var(--text-muted);
  font-family: var(--mono);
  font-size: 11.5px;
}
.model-tags {
  display: flex;
  gap: 6px;
  flex-wrap: wrap;
  padding-top: 12px;
  border-top: 1px solid var(--border);
}
.mtag {
  font-size: 11px;
  padding: 2px 8px;
  border-radius: 4px;
  background: rgba(255, 255, 255, 0.04);
  color: var(--text-dim);
}
.models-more { text-align: center; }

/* ===== Stats ===== */
.stats {
  padding: 80px 0;
  border-top: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
}
.stats-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 32px;
  text-align: center;
}
.stat-item { position: relative; }
.stat-number {
  font-size: clamp(36px, 4vw, 52px);
  font-weight: 800;
  font-family: var(--mono);
  color: var(--text);
  display: inline;
}
.stat-suffix {
  font-size: clamp(20px, 2vw, 28px);
  font-weight: 700;
  font-family: var(--mono);
  color: var(--primary-light);
  display: inline;
}
.stat-label {
  font-size: 14px;
  color: var(--text-muted);
  margin-top: 4px;
}

/* ===== Use Cases ===== */
.use-cases {
  padding: 100px 0;
  border-top: 1px solid var(--border);
}
.cases-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 20px;
}
.case-card {
  padding: 32px;
  border-radius: var(--radius);
  background: var(--bg-card);
  border: 1px solid var(--border);
  transition: all 0.3s ease;
}
.case-card:hover {
  border-color: var(--border-light);
}
.case-icon {
  font-size: 28px;
  margin-bottom: 16px;
}
.case-card h3 {
  font-size: 17px;
  font-weight: 600;
  margin-bottom: 10px;
}
.case-card p {
  font-size: 14px;
  color: var(--text-muted);
  line-height: 1.7;
}

/* ===== Pricing ===== */
.pricing {
  padding: 100px 0;
  border-top: 1px solid var(--border);
}
.pricing-toggle {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 14px;
  margin-bottom: 48px;
}
.toggle-label {
  font-size: 14px;
  color: var(--text-dim);
  cursor: pointer;
  transition: color 0.2s;
}
.toggle-label.active { color: var(--text); }
.toggle-save {
  font-size: 11px;
  padding: 2px 8px;
  border-radius: 100px;
  background: rgba(0, 206, 201, 0.15);
  color: var(--accent);
  margin-left: 4px;
}
.toggle-switch {
  width: 44px;
  height: 24px;
  border-radius: 12px;
  background: var(--border-light);
  border: none;
  cursor: pointer;
  position: relative;
  transition: background 0.2s;
}
.toggle-switch.active { background: var(--primary); }
.toggle-knob {
  position: absolute;
  top: 3px;
  left: 3px;
  width: 18px;
  height: 18px;
  border-radius: 50%;
  background: #fff;
  transition: transform 0.2s;
}
.toggle-switch.active .toggle-knob { transform: translateX(20px); }
.pricing-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
  align-items: start;
}
.pricing-card {
  padding: 36px;
  border-radius: var(--radius-lg);
  background: var(--bg-card);
  border: 1px solid var(--border);
  position: relative;
  transition: all 0.3s ease;
}
.pricing-card:hover {
  box-shadow: 0 0 0 1px var(--border-light);
}
.pricing-card.popular {
  border-color: var(--primary);
  background: var(--bg-card);
}
.pricing-popular-badge {
  position: absolute;
  top: -12px;
  left: 50%;
  transform: translateX(-50%);
  padding: 4px 20px;
  border-radius: 4px;
  background: var(--primary);
  color: #fff;
  font-size: 12px;
  font-weight: 600;
  white-space: nowrap;
  font-family: var(--mono);
  letter-spacing: 0.03em;
}
.pricing-name {
  font-size: 18px;
  font-weight: 600;
  margin-bottom: 16px;
}
.pricing-price { margin-bottom: 12px; }
.price-amount { font-size: 42px; font-weight: 800; }
.price-period { font-size: 16px; color: var(--text-muted); }
.pricing-desc {
  font-size: 14px;
  color: var(--text-muted);
  margin-bottom: 28px;
}
.pricing-features {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 12px;
  margin-bottom: 32px;
}
.pricing-features li {
  font-size: 14px;
  color: var(--text-muted);
  display: flex;
  align-items: center;
  gap: 8px;
}
.pricing-features li.pf-disabled { color: var(--text-dim); }
.pf-check { color: var(--accent); flex-shrink: 0; }
.pf-x { color: var(--text-dim); flex-shrink: 0; }

/* ===== FAQ ===== */
.faq {
  padding: 100px 0;
  border-top: 1px solid var(--border);
}
.faq-list {
  max-width: 720px;
  margin: 0 auto;
}
.faq-item {
  border-bottom: 1px solid var(--border);
}
.faq-question {
  width: 100%;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 20px 0;
  background: none;
  border: none;
  color: var(--text);
  font-size: 16px;
  font-weight: 500;
  font-family: var(--font);
  cursor: pointer;
  text-align: left;
  transition: color 0.2s;
}
.faq-question:hover { color: var(--primary-light); }
.faq-arrow {
  font-size: 20px;
  color: var(--text-dim);
  transition: transform 0.3s;
  flex-shrink: 0;
  margin-left: 16px;
}
.faq-item.open .faq-arrow { transform: rotate(45deg); }
.faq-answer {
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.3s ease, padding 0.3s ease;
}
.faq-item.open .faq-answer {
  max-height: 300px;
  padding-bottom: 20px;
}
.faq-answer p {
  font-size: 14px;
  color: var(--text-muted);
  line-height: 1.8;
}

/* ===== CTA ===== */
.cta {
  padding: 100px 0;
  border-top: 1px solid var(--border);
}
.cta-container {
  position: relative;
  text-align: center;
  padding: 80px 40px;
  border-radius: var(--radius-lg);
  background: var(--bg-card);
  border: 1px solid var(--border);
  overflow: hidden;
}
.cta-glow {
  position: absolute;
  top: -100px;
  left: 50%;
  transform: translateX(-50%);
  width: 600px;
  height: 400px;
  background: radial-gradient(ellipse, rgba(108, 92, 231, 0.12) 0%, transparent 70%);
  pointer-events: none;
}
.cta-title {
  font-size: clamp(28px, 4vw, 40px);
  font-weight: 700;
  margin-bottom: 16px;
  position: relative;
}
.cta-desc {
  font-size: 16px;
  color: var(--text-muted);
  margin-bottom: 36px;
  position: relative;
}
.cta-actions {
  display: flex;
  gap: 16px;
  justify-content: center;
  position: relative;
}

/* ===== Footer ===== */
.footer {
  padding: 80px 0 40px;
  border-top: 1px solid var(--border);
}
.footer-grid {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr 1fr;
  gap: 48px;
  margin-bottom: 48px;
}
.footer-tagline {
  font-size: 14px;
  color: var(--text-dim);
  margin-top: 16px;
  line-height: 1.6;
}
.footer-social {
  display: flex;
  gap: 16px;
  margin-top: 20px;
}
.footer-social a {
  color: var(--text-dim);
  transition: color 0.2s;
}
.footer-social a:hover { color: var(--text); }
.footer-col h4 {
  font-size: 14px;
  font-weight: 600;
  margin-bottom: 20px;
  color: var(--text);
}
.footer-col a {
  display: block;
  font-size: 14px;
  color: var(--text-muted);
  margin-bottom: 12px;
  transition: color 0.2s;
}
.footer-col a:hover { color: var(--text); }
.footer-bottom {
  padding-top: 32px;
  border-top: 1px solid var(--border);
  display: flex;
  align-items: center;
  justify-content: space-between;
}
.footer-bottom p {
  font-size: 13px;
  color: var(--text-dim);
}
.footer-bottom-links {
  display: flex;
  gap: 24px;
}
.footer-bottom-links a {
  font-size: 13px;
  color: var(--text-dim);
  transition: color 0.2s;
}
.footer-bottom-links a:hover { color: var(--text-muted); }

/* ===== Responsive ===== */
@media (max-width: 1024px) {
  .features-grid { grid-template-columns: repeat(2, 1fr); }
  .models-grid { grid-template-columns: repeat(2, 1fr); }
  .pricing-grid {
    grid-template-columns: 1fr;
    max-width: 420px;
    margin-left: auto;
    margin-right: auto;
  }
  .stats-grid { grid-template-columns: repeat(2, 1fr); gap: 40px; }
  .footer-grid { grid-template-columns: 1fr 1fr; gap: 32px; }
  .steps-grid { flex-direction: column; }
  .step-arrow { display: none; }
  .cases-grid { grid-template-columns: 1fr; }
}

@media (max-width: 768px) {
  .nav-links, .nav-actions { display: none; }
  .mobile-menu-btn { display: flex; }
  .hero { padding: 140px 0 60px; }
  .hero-desc { font-size: 15px; }
  .hero-actions { flex-direction: column; align-items: center; }
  .hero-meta { flex-direction: column; gap: 8px; }
  .hero-terminal { margin: 0 -12px; border-radius: 8px; }
  .terminal-line { font-size: 11px; gap: 10px; }
  .integration-container { grid-template-columns: 1fr; gap: 40px; }
  .features-grid { grid-template-columns: 1fr; }
  .models-grid { grid-template-columns: 1fr; }
  .stats-grid { grid-template-columns: 1fr 1fr; }
  .footer-grid { grid-template-columns: 1fr; gap: 32px; }
  .footer-bottom { flex-direction: column; gap: 16px; text-align: center; }
  .cta-container { padding: 48px 24px; }
}

/* ===== Animations ===== */
.fade-in {
  opacity: 0;
  transform: translateY(24px);
  transition: opacity 0.6s ease, transform 0.6s ease;
}
.fade-in.visible {
  opacity: 1;
  transform: translateY(0);
}
.fade-in:nth-child(2) { transition-delay: 0.08s; }
.fade-in:nth-child(3) { transition-delay: 0.16s; }
.fade-in:nth-child(4) { transition-delay: 0.24s; }
.fade-in:nth-child(5) { transition-delay: 0.12s; }
.fade-in:nth-child(6) { transition-delay: 0.2s; }
.fade-in:nth-child(7) { transition-delay: 0.28s; }
.fade-in:nth-child(8) { transition-delay: 0.32s; }
.fade-in:nth-child(9) { transition-delay: 0.36s; }

/* Scrollbar */
::-webkit-scrollbar { width: 6px; height: 6px; }
::-webkit-scrollbar-track { background: transparent; }
::-webkit-scrollbar-thumb { background: var(--border-light); border-radius: 3px; }
::-webkit-scrollbar-thumb:hover { background: var(--text-dim); }

/* Selection */
::selection { background: rgba(108, 92, 231, 0.3); color: #fff; }


/* ===== Semantic Cache ===== */
.semantic-cache {
  padding: 100px 0;
  border-top: 1px solid var(--border);
}
.cache-container {
  display: grid;
  grid-template-columns: 1.2fr 1fr;
  gap: 64px;
  align-items: center;
}
.cache-demo {
  border-radius: var(--radius);
  background: #0c0c14;
  border: 1px solid var(--border);
  overflow: hidden;
}
.cache-demo-header {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 14px 20px;
  border-bottom: 1px solid var(--border);
  font-size: 13px;
  color: var(--text-dim);
  font-family: var(--mono);
}
.cache-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
}
.cache-dot.live {
  background: #28c840;
  animation: pulse-dot 2s infinite;
}
.cache-row {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 14px 20px;
  border-bottom: 1px solid rgba(30, 30, 46, 0.5);
  font-size: 13px;
}
.cache-label {
  font-family: var(--mono);
  font-size: 11px;
  padding: 3px 10px;
  border-radius: 4px;
  background: rgba(108, 92, 231, 0.1);
  color: var(--primary-light);
  flex-shrink: 0;
}
.cache-text {
  color: var(--text-muted);
  flex: 1;
  min-width: 0;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.cache-badge {
  font-family: var(--mono);
  font-size: 11px;
  padding: 3px 10px;
  border-radius: 4px;
  flex-shrink: 0;
  white-space: nowrap;
}
.cache-badge.miss {
  background: rgba(255, 107, 107, 0.1);
  color: #ff6b6b;
}
.cache-badge.hit {
  background: rgba(0, 206, 201, 0.1);
  color: var(--accent);
}
.cache-savings {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 16px 20px;
  font-size: 13px;
  color: var(--accent);
  background: rgba(0, 206, 201, 0.04);
}
.cache-savings strong {
  color: var(--accent);
}
.cache-info .section-tag { margin-bottom: 16px; }
.cache-info .section-title { text-align: left; margin-bottom: 20px; }
.cache-info .section-desc { text-align: left; margin: 0 0 28px; max-width: none; }

/* ===== Dashboard Mockup ===== */
.dashboard-section {
  padding: 100px 0;
  border-top: 1px solid var(--border);
}
.dashboard-mockup {
  border-radius: var(--radius-lg);
  background: #0c0c14;
  border: 1px solid var(--border);
  overflow: hidden;
  box-shadow: 0 20px 60px rgba(0, 0, 0, 0.4);
}
.dash-topbar {
  display: flex;
  gap: 4px;
  padding: 12px 20px;
  border-bottom: 1px solid var(--border);
  background: rgba(255, 255, 255, 0.02);
}
.dash-tab {
  padding: 6px 16px;
  border-radius: 6px;
  font-size: 13px;
  color: var(--text-dim);
  cursor: default;
}
.dash-tab.active {
  background: rgba(108, 92, 231, 0.12);
  color: var(--primary-light);
}
.dash-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 1px;
  background: var(--border);
  border-bottom: 1px solid var(--border);
}
.dash-card {
  padding: 24px;
  background: #0c0c14;
}
.dash-card-label {
  font-size: 12px;
  color: var(--text-dim);
  margin-bottom: 8px;
}
.dash-card-value {
  font-size: 28px;
  font-weight: 700;
  margin-bottom: 6px;
  font-family: var(--mono);
}
.dash-card-change {
  font-size: 12px;
  font-family: var(--mono);
}
.dash-card-change.up { color: var(--accent); }
.dash-card-change.down { color: #28c840; }
.dash-card-change.neutral { color: var(--text-dim); }
.dash-chart {
  padding: 24px;
}
.dash-chart-title {
  font-size: 13px;
  color: var(--text-dim);
  margin-bottom: 20px;
}
.dash-bars {
  display: flex;
  align-items: flex-end;
  gap: 8px;
  height: 120px;
}
.dash-bar {
  flex: 1;
  height: var(--h);
  background: rgba(108, 92, 231, 0.2);
  border-radius: 4px 4px 0 0;
  position: relative;
  transition: background 0.2s;
}
.dash-bar.active {
  background: var(--gradient);
}
.dash-bar:hover {
  background: rgba(108, 92, 231, 0.35);
}
.dash-bar span {
  position: absolute;
  bottom: -22px;
  left: 50%;
  transform: translateX(-50%);
  font-size: 10px;
  color: var(--text-dim);
  font-family: var(--mono);
}

/* ===== Comparison Table ===== */
.comparison {
  padding: 100px 0;
  border-top: 1px solid var(--border);
}
.comparison-table-wrap {
  overflow-x: auto;
}
.comparison-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 14px;
}
.comparison-table th,
.comparison-table td {
  padding: 18px 24px;
  text-align: left;
  border-bottom: 1px solid var(--border);
}
.comparison-table th {
  font-weight: 600;
  font-size: 15px;
  color: var(--text);
  background: var(--bg-card);
}
.comparison-table th:first-child {
  border-radius: var(--radius-sm) 0 0 0;
}
.comparison-table td:first-child {
  font-weight: 500;
  color: var(--text);
  white-space: nowrap;
}
.comparison-table td {
  color: var(--text-muted);
}
.comparison-table .highlight-col {
  background: rgba(108, 92, 231, 0.04);
  color: var(--primary-light);
  font-weight: 500;
}
.comparison-table th.highlight-col {
  background: rgba(108, 92, 231, 0.1);
  color: var(--primary-light);
}
.comparison-table tr:hover td {
  background: rgba(255, 255, 255, 0.01);
}
.comparison-table tr:hover .highlight-col {
  background: rgba(108, 92, 231, 0.08);
}

/* ===== Testimonials ===== */
.testimonials {
  padding: 100px 0;
  border-top: 1px solid var(--border);
}
.testimonials-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
}
.testimonial-card {
  padding: 28px;
  border-radius: var(--radius);
  background: var(--bg-card);
  border: 1px solid var(--border);
  transition: all 0.3s ease;
}
.testimonial-card:hover {
  border-color: var(--border-light);
}
.testimonial-stars {
  color: #f59e0b;
  font-size: 14px;
  letter-spacing: 2px;
  margin-bottom: 16px;
}
.testimonial-text {
  font-size: 14px;
  color: var(--text-muted);
  line-height: 1.8;
  margin-bottom: 24px;
  font-style: italic;
}
.testimonial-author {
  display: flex;
  align-items: center;
  gap: 12px;
}
.testimonial-avatar {
  width: 40px;
  height: 40px;
  border-radius: var(--radius-sm);
  background: var(--primary);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 16px;
  font-weight: 600;
  color: #fff;
  flex-shrink: 0;
}
.testimonial-name {
  font-size: 14px;
  font-weight: 600;
}
.testimonial-role {
  font-size: 12px;
  color: var(--text-dim);
}

/* ===== New Responsive Rules ===== */
@media (max-width: 1024px) {
  .cache-container { grid-template-columns: 1fr; }
  .cache-info .section-title { text-align: center; }
  .cache-info .section-desc { text-align: center; }
  .dash-grid { grid-template-columns: repeat(2, 1fr); }
  .testimonials-grid { grid-template-columns: 1fr; max-width: 520px; margin: 0 auto; }
}

@media (max-width: 768px) {
  .dash-grid { grid-template-columns: 1fr; }
  .dash-card-value { font-size: 22px; }
  .comparison-table { font-size: 13px; }
  .comparison-table th,
  .comparison-table td { padding: 12px 14px; }
}

/* ===== Auth Modal ===== */
.modal-overlay {
  display: none;
  position: fixed;
  inset: 0;
  z-index: 200;
  background: rgba(0, 0, 0, 0.7);
  backdrop-filter: blur(8px);
  align-items: center;
  justify-content: center;
}
.modal-overlay.open { display: flex; }
.modal {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 36px;
  width: 100%;
  max-width: 420px;
  position: relative;
  animation: modalIn 0.25s ease;
}
@keyframes modalIn {
  from { opacity: 0; transform: translateY(20px) scale(0.97); }
  to { opacity: 1; transform: translateY(0) scale(1); }
}
.modal-close {
  position: absolute;
  top: 16px;
  right: 16px;
  background: none;
  border: none;
  color: var(--text-dim);
  font-size: 24px;
  cursor: pointer;
  line-height: 1;
}
.modal-close:hover { color: var(--text); }
.modal-tabs {
  display: flex;
  gap: 4px;
  margin-bottom: 24px;
  background: rgba(255,255,255,0.03);
  border-radius: var(--radius-sm);
  padding: 4px;
}
.modal-tab {
  flex: 1;
  padding: 10px;
  border: none;
  background: transparent;
  color: var(--text-muted);
  font-size: 14px;
  font-family: var(--font);
  cursor: pointer;
  border-radius: 6px;
  transition: all 0.2s;
}
.modal-tab.active {
  background: rgba(108, 92, 231, 0.15);
  color: var(--primary-light);
}
.modal-form.hidden { display: none; }
.form-group { margin-bottom: 16px; }
.form-group label {
  display: block;
  font-size: 13px;
  color: var(--text-muted);
  margin-bottom: 6px;
}
.form-group input, .form-group textarea {
  width: 100%;
  padding: 10px 14px;
  border-radius: var(--radius-sm);
  border: 1px solid var(--border);
  background: var(--bg);
  color: var(--text);
  font-size: 14px;
  font-family: var(--font);
  transition: border-color 0.2s;
}
.form-group input:focus, .form-group textarea:focus {
  outline: none;
  border-color: var(--primary);
}
.form-error {
  color: #ff6b6b;
  font-size: 13px;
  min-height: 20px;
  margin-bottom: 8px;
}
.modal-success.hidden { display: none; }
.modal-success { text-align: center; }
.success-icon {
  width: 56px;
  height: 56px;
  border-radius: 50%;
  background: rgba(0, 206, 201, 0.15);
  color: var(--accent);
  font-size: 28px;
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto 16px;
}
.modal-success h3 { font-size: 20px; margin-bottom: 8px; }
.modal-success p { font-size: 14px; color: var(--text-muted); margin-bottom: 16px; }
.key-display {
  display: flex;
  align-items: center;
  gap: 8px;
  background: var(--bg);
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  padding: 12px 16px;
  margin-bottom: 12px;
}
.key-display code {
  flex: 1;
  font-family: var(--mono);
  font-size: 13px;
  color: var(--accent);
  word-break: break-all;
}
.btn-copy {
  padding: 6px 14px;
  border-radius: 6px;
  background: rgba(108, 92, 231, 0.15);
  border: none;
  color: var(--primary-light);
  font-size: 12px;
  cursor: pointer;
  font-family: var(--font);
  white-space: nowrap;
}
.btn-copy:hover { background: rgba(108, 92, 231, 0.25); }
.key-warning { font-size: 12px; color: #ff6b6b; margin-bottom: 20px; }

/* ===== Provider Infinite Scroll ===== */
.providers-track {
  overflow: hidden;
  padding: 0 0 20px;
}
.providers-scroll-inner {
  display: flex;
  gap: 12px;
  width: max-content;
  animation: scrollProviders 30s linear infinite;
}
@keyframes scrollProviders {
  0% { transform: translateX(0); }
  100% { transform: translateX(-50%); }
}
.providers-track:hover .providers-scroll-inner {
  animation-play-state: paused;
}

/* ===== Playground ===== */
.playground {
  padding: 100px 0;
  border-top: 1px solid var(--border);
}
.playground-container {
  display: grid;
  grid-template-columns: 280px 1fr;
  gap: 20px;
  border-radius: var(--radius-lg);
  background: #0c0c14;
  border: 1px solid var(--border);
  overflow: hidden;
  min-height: 480px;
}
.playground-sidebar {
  padding: 24px;
  border-right: 1px solid var(--border);
  display: flex;
  flex-direction: column;
  gap: 16px;
}
.pg-field label {
  display: block;
  font-size: 12px;
  color: var(--text-dim);
  margin-bottom: 6px;
  text-transform: uppercase;
  letter-spacing: 0.05em;
}
.pg-field select, .pg-field input[type="number"], .pg-field textarea {
  width: 100%;
  padding: 8px 12px;
  border-radius: 6px;
  border: 1px solid var(--border);
  background: var(--bg);
  color: var(--text);
  font-size: 13px;
  font-family: var(--font);
}
.pg-field select { cursor: pointer; }
.pg-field textarea { resize: vertical; font-size: 12px; }
.pg-slider-row { display: flex; align-items: center; gap: 10px; }
.pg-slider-row input[type="range"] { flex: 1; accent-color: var(--primary); }
.pg-slider-row span { font-family: var(--mono); font-size: 13px; color: var(--text-muted); min-width: 28px; }
.pg-meta {
  margin-top: auto;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 8px;
}
.pg-meta-item {
  display: flex;
  flex-direction: column;
  gap: 2px;
  padding: 8px;
  border-radius: 6px;
  background: rgba(255,255,255,0.02);
}
.pg-meta-item span:first-child { font-size: 10px; color: var(--text-dim); text-transform: uppercase; }
.pg-meta-item span:last-child { font-size: 13px; font-family: var(--mono); color: var(--accent); }
.playground-main {
  display: flex;
  flex-direction: column;
}
.pg-messages {
  flex: 1;
  padding: 24px;
  overflow-y: auto;
  display: flex;
  flex-direction: column;
  gap: 16px;
  max-height: 400px;
}
.pg-msg {
  padding: 12px 16px;
  border-radius: var(--radius-sm);
  font-size: 14px;
  line-height: 1.7;
}
.pg-msg-role {
  display: inline-block;
  font-size: 11px;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  margin-bottom: 4px;
  padding: 2px 8px;
  border-radius: 4px;
}
.pg-msg-user { background: rgba(108, 92, 231, 0.08); }
.pg-msg-user .pg-msg-role { background: rgba(108, 92, 231, 0.2); color: var(--primary-light); }
.pg-msg-assistant { background: rgba(0, 206, 201, 0.06); }
.pg-msg-assistant .pg-msg-role { background: rgba(0, 206, 201, 0.2); color: var(--accent); }
.pg-msg-system { background: rgba(255,255,255,0.02); }
.pg-msg-system .pg-msg-role { background: rgba(255,255,255,0.06); color: var(--text-dim); }
.pg-msg p { color: var(--text-muted); margin: 0; }
.pg-input-row {
  display: flex;
  gap: 12px;
  padding: 16px 24px;
  border-top: 1px solid var(--border);
  align-items: flex-end;
}
.pg-input-row textarea {
  flex: 1;
  padding: 10px 14px;
  border-radius: var(--radius-sm);
  border: 1px solid var(--border);
  background: var(--bg);
  color: var(--text);
  font-size: 14px;
  font-family: var(--font);
  resize: none;
}
.pg-input-row textarea:focus { outline: none; border-color: var(--primary); }
.pg-input-row .btn { flex-shrink: 0; }

/* ===== Dashboard Panels ===== */
.dash-panel { display: none; }
.dash-panel.active { display: block; }
.dash-topbar button {
  cursor: pointer;
  transition: all 0.2s;
}
.dash-topbar button:hover { color: var(--text-muted); }

.dash-logs-table { padding: 16px 20px; font-family: var(--mono); font-size: 12.5px; }
.dash-log-header {
  display: grid;
  grid-template-columns: 80px 1fr 60px 60px 80px 80px;
  gap: 12px;
  padding: 8px 0;
  border-bottom: 1px solid var(--border);
  color: var(--text-dim);
  font-size: 11px;
  text-transform: uppercase;
}
.dash-log-row {
  display: grid;
  grid-template-columns: 80px 1fr 60px 60px 80px 80px;
  gap: 12px;
  padding: 10px 0;
  border-bottom: 1px solid rgba(30,30,46,0.5);
  color: var(--text-muted);
}
.dash-log-row:hover { background: rgba(255,255,255,0.01); }

.dash-compare-grid { padding: 24px; display: flex; flex-direction: column; gap: 16px; }
.compare-item { display: flex; align-items: center; gap: 16px; }
.compare-model { font-size: 13px; font-weight: 500; min-width: 140px; }
.compare-bar-wrap { flex: 1; height: 24px; background: rgba(255,255,255,0.03); border-radius: 4px; overflow: hidden; }
.compare-bar { height: 100%; width: var(--w); background: var(--gradient); border-radius: 4px; transition: width 1s ease; }
.compare-bar.cheap { background: linear-gradient(135deg, #00cec9, #28c840); }
.compare-stats { display: flex; gap: 16px; font-size: 12px; color: var(--text-dim); font-family: var(--mono); min-width: 160px; }

.dash-alerts-list { padding: 20px; display: flex; flex-direction: column; gap: 12px; }
.alert-rule {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 14px 16px;
  border-radius: var(--radius-sm);
  background: rgba(255,255,255,0.02);
  border: 1px solid var(--border);
  font-size: 14px;
  color: var(--text-muted);
}
.alert-icon { font-size: 18px; }
.alert-status {
  margin-left: auto;
  font-size: 12px;
  padding: 3px 10px;
  border-radius: 100px;
  background: rgba(255,255,255,0.04);
  color: var(--text-dim);
}
.alert-status.active-alert {
  background: rgba(0, 206, 201, 0.1);
  color: var(--accent);
}

/* ===== Bar Tooltip ===== */
.bar-tooltip {
  position: absolute;
  top: -28px;
  left: 50%;
  transform: translateX(-50%);
  padding: 3px 8px;
  border-radius: 4px;
  background: var(--bg-card);
  border: 1px solid var(--border);
  font-size: 10px;
  color: var(--text);
  font-family: var(--mono);
  white-space: nowrap;
  pointer-events: none;
}

/* ===== Terminal Stats ===== */
.terminal-stats {
  display: flex;
  gap: 16px;
  margin-left: auto;
}
.terminal-stat {
  font-size: 11px;
  color: var(--text-dim);
  font-family: var(--mono);
  display: flex;
  align-items: center;
  gap: 6px;
}
.terminal-stat-dot { width: 6px; height: 6px; border-radius: 50%; display: inline-block; }
.green-dot { background: #28c840; animation: pulse-dot 2s infinite; }

/* ===== Cache Replay Button ===== */
.cache-replay-btn {
  margin-left: auto;
  background: none;
  border: 1px solid var(--border);
  color: var(--text-dim);
  font-size: 12px;
  padding: 4px 12px;
  border-radius: 100px;
  cursor: pointer;
  font-family: var(--font);
  transition: all 0.2s;
}
.cache-replay-btn:hover { border-color: var(--primary); color: var(--primary-light); }

/* ===== Playground Responsive ===== */
@media (max-width: 768px) {
  .playground-container { grid-template-columns: 1fr; }
  .playground-sidebar { border-right: none; border-bottom: 1px solid var(--border); }
  .pg-messages { max-height: 300px; }
  .dash-log-header, .dash-log-row { grid-template-columns: 60px 1fr 50px 50px; }
  .dash-log-header span:nth-child(5), .dash-log-header span:nth-child(6),
  .dash-log-row span:nth-child(5), .dash-log-row span:nth-child(6) { display: none; }
  .compare-stats { display: none; }
  .compare-model { min-width: 100px; }
}

/* ===== Section Gradient Dividers ===== */
.features, .how-it-works, .integration, .models, .use-cases, .comparison,
.testimonials, .pricing, .faq, .cta, .footer, .semantic-cache, .dashboard-section, .playground {
  border-top: none;
  position: relative;
}
.features::after, .how-it-works::after, .semantic-cache::after,
.dashboard-section::after, .integration::after, .models::after,
.use-cases::after, .comparison::after, .testimonials::after,
.pricing::after, .faq::after, .cta::after, .playground::after {
  content: '';
  position: absolute;
  top: 0;
  left: 50%;
  transform: translateX(-50%);
  width: min(60%, 600px);
  height: 1px;
  background: linear-gradient(90deg, transparent, rgba(99, 102, 241, 0.2), transparent);
  pointer-events: none;
}

/* Section accent glows */
.semantic-cache {
  position: relative;
}
.pricing {
  position: relative;
}
.stats {
  position: relative;
  border-top: none;
  border-bottom: none;
}
.stats::before, .stats::after {
  content: '';
  position: absolute;
  left: 50%;
  transform: translateX(-50%);
  width: min(60%, 600px);
  height: 1px;
  background: linear-gradient(90deg, transparent, rgba(99, 102, 241, 0.15), transparent);
}
.stats::before { top: 0; }
.stats::after { bottom: 0; }

.providers-bar {
  border-top: none;
  border-bottom: none;
  position: relative;
}
.providers-bar::before, .providers-bar::after {
  content: '';
  position: absolute;
  left: 50%;
  transform: translateX(-50%);
  width: min(60%, 600px);
  height: 1px;
  background: linear-gradient(90deg, transparent, rgba(99, 102, 241, 0.12), transparent);
}
.providers-bar::before { top: 0; }
.providers-bar::after { bottom: 0; }

/* CTA glow */
.cta-container {
  overflow: hidden;
}
.cta-glow {
  width: 600px;
  height: 400px;
  background: radial-gradient(ellipse, rgba(99, 102, 241, 0.1) 0%, transparent 70%);
}

/* Feature card hover glow */
.feature-card:hover {
  border-color: var(--border-light);
  background: var(--bg-card-hover);
}
.feature-highlight:hover {
  border-color: rgba(99, 102, 241, 0.3);
}

/* Pricing card popular flat */
.pricing-card.popular {
  border-color: var(--primary);
}
.pricing-card.popular:hover {
  box-shadow: 0 0 0 1px var(--primary);
}

/* Dashboard mockup flat */
.dashboard-mockup {
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.3);
}

/* Hero terminal flat */
.hero-terminal {
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.4);
}

/* Technical monospace accents */
.model-provider {
  font-family: var(--mono);
}
.price-row span:last-child {
  font-family: var(--mono);
  font-size: 11px;
}
.dash-card-value {
  font-family: var(--mono);
}
.t-cost, .t-latency, .t-tokens {
  font-family: var(--mono);
}

/* Comparison table highlight — flat left border */
.comparison-table .highlight-col {
  background: rgba(99, 102, 241, 0.03);
  color: var(--primary-light);
  font-weight: 500;
  border-left: 2px solid rgba(99, 102, 241, 0.3);
}
.comparison-table th.highlight-col {
  background: rgba(99, 102, 241, 0.06);
  color: var(--primary-light);
  border-left: 2px solid rgba(99, 102, 241, 0.3);
}

/* ===== Language Switcher ===== */
.lang-switcher {
  position: relative;
  margin-right: 4px;
}
.lang-trigger {
  display: flex;
  align-items: center;
  gap: 6px;
  padding: 6px 10px;
  border: 1px solid var(--border);
  border-radius: 8px;
  background: transparent;
  color: var(--text-muted);
  font-size: 13px;
  font-family: var(--font);
  cursor: pointer;
  transition: all 0.2s;
  white-space: nowrap;
}
.lang-trigger:hover {
  border-color: var(--border-light);
  color: var(--text);
}
.lang-chevron {
  transition: transform 0.2s;
  opacity: 0.5;
}
.lang-switcher.open .lang-chevron {
  transform: rotate(180deg);
}
.lang-dropdown {
  display: none;
  position: absolute;
  top: calc(100% + 6px);
  right: 0;
  min-width: 140px;
  padding: 4px;
  border-radius: 10px;
  background: var(--bg-card);
  border: 1px solid var(--border);
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.4);
  z-index: 200;
  animation: dropIn 0.15s ease;
}
@keyframes dropIn {
  from { opacity: 0; transform: translateY(-6px); }
  to { opacity: 1; transform: translateY(0); }
}
.lang-switcher.open .lang-dropdown {
  display: block;
}
.lang-option {
  display: flex;
  align-items: center;
  gap: 8px;
  width: 100%;
  padding: 8px 12px;
  border: none;
  border-radius: 6px;
  background: transparent;
  color: var(--text-muted);
  font-size: 13px;
  font-family: var(--font);
  cursor: pointer;
  transition: all 0.15s;
  text-align: left;
}
.lang-option:hover {
  background: rgba(255, 255, 255, 0.04);
  color: var(--text);
}
.lang-option.active {
  background: rgba(108, 92, 231, 0.1);
  color: var(--primary-light);
}

/* Mobile language row */
.mobile-lang-row {
  display: flex;
  gap: 8px;
  padding-bottom: 12px;
}
.mobile-lang-btn {
  width: 36px;
  height: 36px;
  border-radius: 8px;
  border: 1px solid var(--border);
  background: transparent;
  font-size: 16px;
  cursor: pointer;
  transition: all 0.2s;
  display: flex;
  align-items: center;
  justify-content: center;
}
.mobile-lang-btn:hover { border-color: var(--border-light); }
.mobile-lang-btn.active {
  border-color: var(--primary);
  background: rgba(108, 92, 231, 0.1);
}

@media (max-width: 768px) {
  .lang-switcher { display: none; }
}

/* ===== Mobile Enhancements ===== */
@media (max-width: 768px) {
  /* Lang switcher hidden on mobile (use mobile-lang-row instead) */

  /* Terminal: hide less important columns on small screens */
  .t-route { display: none; }
  .t-tokens { display: none; }
  .terminal-body { height: 200px; }
  .terminal-line { gap: 8px; font-size: 10.5px; }
  .t-model { min-width: 80px; font-size: 10px; }

  /* Section titles smaller */
  .section-title { font-size: clamp(22px, 5vw, 36px); }
  .hero-title { font-size: clamp(28px, 7vw, 56px); }

  /* Pricing grid single column */
  .pricing-grid { grid-template-columns: 1fr; max-width: 400px; margin-left: auto; margin-right: auto; }

  /* Steps vertical */
  .steps-grid { flex-direction: column; }
  .step-arrow { display: none; }

  /* Cases single column */
  .cases-grid { grid-template-columns: 1fr; }

  /* Testimonials single column */
  .testimonials-grid { grid-template-columns: 1fr; }

  /* Code block tabs scroll */
  .code-tabs { overflow-x: auto; flex-wrap: nowrap; }
  .code-tab { white-space: nowrap; flex-shrink: 0; }

  /* Comparison table scroll */
  .comparison-table-wrap { -webkit-overflow-scrolling: touch; }
  .comparison-table { min-width: 500px; }

  /* Playground */
  .playground-container { grid-template-columns: 1fr; }
  .playground-sidebar { border-right: none; border-bottom: 1px solid var(--border); }
  .pg-messages { max-height: 280px; }
  .pg-input-row { padding: 12px 16px; }
  .pg-input-row textarea { font-size: 16px; } /* Prevent iOS zoom */

  /* Modal full width on mobile */
  .modal { margin: 16px; max-width: none; border-radius: var(--radius); }

  /* Dashboard mockup */
  .dash-grid { grid-template-columns: repeat(2, 1fr); }
  .dash-bars { gap: 4px; }
  .dash-bar span { font-size: 8px; }

  /* Cache section */
  .cache-container { grid-template-columns: 1fr; gap: 32px; }
  .cache-info .section-title, .cache-info .section-desc { text-align: center; }
  .cache-text { font-size: 12px; }
  .cache-badge { font-size: 9px; padding: 2px 6px; }

  /* Provider scroll */
  .providers-scroll-inner { gap: 8px; }
  .provider-logo { padding: 8px 14px; font-size: 12px; }

  /* Footer */
  .footer-grid { grid-template-columns: 1fr; gap: 28px; }
  .footer-bottom { flex-direction: column; gap: 12px; text-align: center; }
}

/* ===== Extra small screens (< 380px) ===== */
@media (max-width: 380px) {
  .container { padding: 0 16px; }
  .hero { padding: 120px 0 40px; }
  .hero-title { font-size: 26px; }
  .hero-desc { font-size: 14px; }
  .btn-lg { padding: 12px 24px; font-size: 14px; }
  .section-title { font-size: 22px; }
  .terminal-line { font-size: 9px; gap: 6px; }
  .terminal-body { height: 170px; }
  .t-latency { display: none; }
  .model-card { padding: 16px; }
  .feature-card { padding: 20px; }
  .stats-grid { grid-template-columns: 1fr; }
  .dash-grid { grid-template-columns: 1fr; }
}
