/* ═══════════════════════════════════════════════════════════════
   NEURON Design System — 2026
   Premium dark-mode website for the NEURON programming language
   ═══════════════════════════════════════════════════════════════ */

@import url('https://fonts.googleapis.com/css2?family=Inter:wght@300;400;500;600;700;800;900&family=JetBrains+Mono:wght@400;500;600&display=swap');

/* ── Design Tokens ── */
:root {
  --bg-void: #05050a;
  --bg-primary: #09090b;
  --bg-elevated: #111114;
  --bg-card: rgba(17, 17, 20, 0.7);
  --bg-card-hover: rgba(24, 24, 28, 0.85);
  --bg-code: #0c0c10;

  --border: rgba(255, 255, 255, 0.06);
  --border-hover: rgba(139, 92, 246, 0.4);
  --border-focus: rgba(139, 92, 246, 0.6);

  --text-primary: #f4f4f5;
  --text-secondary: #a1a1aa;
  --text-muted: #52525b;
  --text-inverse: #09090b;

  --violet: #8b5cf6;
  --violet-light: #a78bfa;
  --blue: #3b82f6;
  --cyan: #22d3ee;
  --emerald: #34d399;
  --amber: #fbbf24;
  --rose: #fb7185;

  --gradient-brand: linear-gradient(135deg, #8b5cf6, #3b82f6, #22d3ee);
  --gradient-glow: radial-gradient(ellipse at 50% 0%, rgba(139,92,246,0.15), transparent 60%);

  --font-sans: 'Inter', system-ui, -apple-system, sans-serif;
  --font-mono: 'JetBrains Mono', 'Fira Code', ui-monospace, monospace;

  --container: 1200px;
  --radius-sm: 8px;
  --radius-md: 12px;
  --radius-lg: 16px;
  --radius-xl: 24px;

  --ease-out: cubic-bezier(0.16, 1, 0.3, 1);
  --ease-spring: cubic-bezier(0.34, 1.56, 0.64, 1);
  --dur-fast: 150ms;
  --dur-norm: 300ms;
  --dur-slow: 500ms;
}

/* ── Reset & Base ── */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; background: var(--bg-void); color: var(--text-primary); font-family: var(--font-sans); line-height: 1.6; -webkit-font-smoothing: antialiased; }
html, body { overflow-x: hidden; max-width: 100%; }
body { position: relative; }

/* Ambient background glow */
body::before {
  content: '';
  position: fixed;
  top: -40%; left: -20%;
  width: 140%; height: 140%;
  background:
    radial-gradient(ellipse at 20% 0%, rgba(139,92,246,0.08) 0%, transparent 50%),
    radial-gradient(ellipse at 80% 20%, rgba(59,130,246,0.06) 0%, transparent 50%),
    radial-gradient(ellipse at 50% 80%, rgba(34,211,238,0.04) 0%, transparent 50%);
  z-index: -1;
  pointer-events: none;
  animation: ambient-drift 40s ease-in-out infinite alternate;
}
@keyframes ambient-drift {
  0% { transform: translate(0, 0) scale(1); }
  100% { transform: translate(-3%, 2%) scale(1.05); }
}

a { color: inherit; }
img { max-width: 100%; display: block; }

/* ── Container & Utilities ── */
.container { max-width: var(--container); margin: 0 auto; padding: 0 2rem; }
.text-center { text-align: center; }
.section-label {
  display: inline-block;
  text-transform: uppercase;
  letter-spacing: 0.15em;
  font-size: 0.7rem;
  font-weight: 600;
  color: var(--violet-light);
  margin-bottom: 1rem;
}
.section-title {
  font-size: clamp(2rem, 5vw, 3.25rem);
  font-weight: 800;
  line-height: 1.12;
  letter-spacing: -0.03em;
  margin-bottom: 0;
}
.section-subtitle {
  font-size: 1.0625rem;
  color: var(--text-secondary);
  max-width: 600px;
  margin: 1rem auto 0;
  line-height: 1.7;
}
.gradient-text {
  background: var(--gradient-brand);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

/* ── Buttons ── */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.5625rem 1.125rem;
  border-radius: var(--radius-sm);
  font-size: 0.875rem;
  font-weight: 500;
  text-decoration: none;
  transition: all var(--dur-norm) var(--ease-out);
  cursor: pointer;
  border: none;
  font-family: var(--font-sans);
  white-space: nowrap;
}
.btn-ghost {
  background: transparent;
  color: var(--text-secondary);
  border: 1px solid var(--border);
}
.btn-ghost:hover {
  border-color: var(--border-hover);
  color: var(--text-primary);
  background: rgba(139,92,246,0.05);
}
.btn-primary {
  background: var(--gradient-brand);
  color: #fff;
  box-shadow: 0 0 20px rgba(139,92,246,0.25);
}
.btn-primary:hover {
  box-shadow: 0 0 32px rgba(139,92,246,0.45);
  transform: translateY(-1px);
}

/* ── Navigation ── */
.navbar {
  position: fixed;
  top: 0; left: 0; right: 0;
  z-index: 1000;
  background: rgba(5,5,10,0.75);
  backdrop-filter: blur(20px) saturate(180%);
  -webkit-backdrop-filter: blur(20px) saturate(180%);
  border-bottom: 1px solid var(--border);
  height: 64px;
}
.navbar-inner {
  display: flex;
  justify-content: space-between;
  align-items: center;
  height: 100%;
}
.logo {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  font-weight: 700;
  font-size: 1.2rem;
  text-decoration: none;
  color: var(--text-primary);
  flex-shrink: 0;
}
.logo-img { height: 26px; border-radius: 5px; }
.nav-links {
  list-style: none;
  display: flex;
  gap: 0.125rem;
  align-items: center;
}
.nav-links a {
  padding: 0.4375rem 0.75rem;
  font-size: 0.8125rem;
  color: var(--text-secondary);
  text-decoration: none;
  border-radius: var(--radius-sm);
  transition: color var(--dur-fast);
}
.nav-links a:hover { color: var(--text-primary); }
.nav-cta {
  display: flex;
  gap: 0.5rem;
  align-items: center;
}
.nav-toggle {
  display: none;
  background: none;
  border: none;
  cursor: pointer;
  width: 28px;
  height: 20px;
  position: relative;
  flex-direction: column;
  justify-content: space-between;
}
.nav-toggle span {
  display: block;
  width: 100%;
  height: 2px;
  background: var(--text-secondary);
  border-radius: 2px;
  transition: all var(--dur-norm);
}

/* ── Hero Section ── */
.hero {
  padding: 11rem 0 6rem;
  position: relative;
  overflow: hidden;
}
.hero::before {
  content: '';
  position: absolute;
  top: 0; left: 50%;
  transform: translateX(-50%);
  width: 1000px; height: 600px;
  background: radial-gradient(ellipse, rgba(139,92,246,0.12) 0%, rgba(59,130,246,0.06) 40%, transparent 70%);
  pointer-events: none;
}
.hero-badge {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.375rem 1rem;
  background: rgba(139,92,246,0.08);
  border: 1px solid rgba(139,92,246,0.18);
  border-radius: 999px;
  font-size: 0.8rem;
  color: var(--violet-light);
  margin-bottom: 2rem;
}
.hero-badge-dot {
  width: 6px; height: 6px;
  border-radius: 50%;
  background: var(--emerald);
  box-shadow: 0 0 8px var(--emerald);
  animation: pulse 2s ease-in-out infinite;
}
@keyframes pulse {
  0%, 100% { opacity: 1; }
  50% { opacity: 0.4; }
}
.hero h1 {
  font-size: clamp(2.75rem, 7vw, 4.75rem);
  font-weight: 900;
  line-height: 1.05;
  letter-spacing: -0.04em;
  max-width: 780px;
}
.hero-lead {
  font-size: clamp(1.0625rem, 2vw, 1.3125rem);
  color: var(--text-secondary);
  max-width: 560px;
  margin: 1.5rem 0 2.5rem;
  line-height: 1.75;
}
.hero-actions { display: flex; gap: 0.875rem; flex-wrap: wrap; }
.hero-stats {
  margin-top: 4.5rem;
  display: flex;
  gap: 3.5rem;
  flex-wrap: wrap;
}
.hero-stat-value {
  font-size: 2.25rem;
  font-weight: 800;
  font-variant-numeric: tabular-nums;
  background: var(--gradient-brand);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}
.hero-stat-label {
  font-size: 0.75rem;
  color: var(--text-muted);
  text-transform: uppercase;
  letter-spacing: 0.1em;
  margin-top: 0.125rem;
}

/* Floating Code Card */
.hero-code-float {
  position: absolute;
  right: -1%;
  top: 26%;
  width: clamp(320px, 28vw, 460px);
  transform: rotate(1.5deg);
  pointer-events: none;
  animation: float 8s ease-in-out infinite;
}
@keyframes float {
  0%, 100% { transform: translateY(0) rotate(1.5deg); }
  50% { transform: translateY(-14px) rotate(0.5deg); }
}
.code-window {
  background: var(--bg-code);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  overflow: hidden;
  box-shadow: 0 30px 60px rgba(0,0,0,0.5), 0 0 80px rgba(139,92,246,0.08);
}
.code-window-bar {
  height: 36px;
  background: rgba(255,255,255,0.025);
  border-bottom: 1px solid var(--border);
  display: flex;
  align-items: center;
  padding: 0 14px;
  gap: 7px;
}
.code-window-dot { width: 10px; height: 10px; border-radius: 50%; }
.code-window-body {
  padding: 1.25rem;
  font-family: var(--font-mono);
  font-size: 0.78rem;
  line-height: 1.85;
  color: var(--text-secondary);
  white-space: pre;
}

/* Syntax highlighting */
.hl-kw { color: var(--violet-light); }
.hl-type { color: var(--cyan); }
.hl-fn { color: var(--blue); }
.hl-str { color: var(--emerald); }
.hl-num { color: var(--amber); }
.hl-comment { color: var(--text-muted); font-style: italic; }
.hl-op { color: var(--rose); }
.hl-decorator { color: var(--amber); }

/* ── Features Section ── */
.features-section { padding: 6rem 0; }
.features-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.25rem;
  margin-top: 3rem;
}
.feature-card {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 2rem;
  position: relative;
  overflow: hidden;
  transition: all var(--dur-norm) var(--ease-out);
}
.feature-card::before {
  content: '';
  position: absolute;
  top: 0; left: 0; right: 0;
  height: 2px;
  background: var(--gradient-brand);
  opacity: 0;
  transition: opacity var(--dur-norm);
}
.feature-card:hover {
  border-color: var(--border-hover);
  transform: translateY(-3px);
  box-shadow: 0 12px 40px rgba(0,0,0,0.3);
  background: var(--bg-card-hover);
}
.feature-card:hover::before { opacity: 1; }
.feature-icon {
  width: 40px; height: 40px;
  border-radius: var(--radius-sm);
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 1.125rem;
  background: rgba(139,92,246,0.1);
  color: var(--violet-light);
}
.feature-card h3 {
  font-size: 1.0625rem;
  font-weight: 600;
  margin-bottom: 0.625rem;
}
.feature-card p {
  font-size: 0.875rem;
  color: var(--text-secondary);
  line-height: 1.65;
}

/* ── Playground Section ── */
.playground-section { padding: 6rem 0; }
.playground-card {
  margin-top: 3rem;
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  overflow: hidden;
  display: grid;
  grid-template-columns: 1fr 1fr;
  box-shadow: 0 30px 60px rgba(0,0,0,0.35);
}
.editor-side { background: var(--bg-code); }
.terminal-side {
  background: var(--bg-void);
  border-left: 1px solid var(--border);
}
.panel-header {
  height: 44px;
  background: rgba(255,255,255,0.02);
  border-bottom: 1px solid var(--border);
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 1rem;
}
.tab-group { display: flex; gap: 0; }
.tab-btn {
  background: none;
  border: none;
  padding: 0.5rem 0.875rem;
  font-size: 0.75rem;
  font-family: var(--font-sans);
  color: var(--text-muted);
  cursor: pointer;
  border-bottom: 2px solid transparent;
  transition: all var(--dur-fast);
}
.tab-btn.active {
  color: var(--violet-light);
  border-bottom-color: var(--violet);
}
.tab-btn:hover:not(.active) { color: var(--text-secondary); }
.panel-actions { display: flex; gap: 0.5rem; align-items: center; }
.copy-btn {
  background: none;
  border: none;
  color: var(--text-muted);
  cursor: pointer;
  font-size: 0.75rem;
  display: flex;
  align-items: center;
  gap: 0.3rem;
  padding: 0.25rem 0.5rem;
  border-radius: var(--radius-sm);
  font-family: var(--font-sans);
  transition: all var(--dur-fast);
}
.copy-btn:hover { background: rgba(255,255,255,0.05); color: var(--text-secondary); }
.run-btn {
  background: var(--violet);
  color: #fff;
  border: none;
  padding: 0.375rem 0.875rem;
  border-radius: var(--radius-sm);
  font-size: 0.75rem;
  font-weight: 500;
  cursor: pointer;
  display: flex;
  align-items: center;
  gap: 0.375rem;
  font-family: var(--font-sans);
  transition: all var(--dur-fast);
}
.run-btn:hover { background: var(--violet-light); }
.editor-body {
  padding: 1.25rem;
  font-family: var(--font-mono);
  font-size: 0.8rem;
  line-height: 1.9;
  min-height: 280px;
  color: var(--text-secondary);
  display: flex;
  gap: 1rem;
}
.line-numbers {
  color: var(--text-muted);
  user-select: none;
  text-align: right;
  min-width: 1.5rem;
  opacity: 0.4;
}
.code-content { flex: 1; white-space: pre-wrap; }
.terminal-dots { display: flex; align-items: center; gap: 7px; }
.terminal-body {
  padding: 1.25rem;
  font-family: var(--font-mono);
  font-size: 0.78rem;
  line-height: 1.85;
  min-height: 280px;
  overflow-y: auto;
  max-height: 380px;
}
.term-line { margin-bottom: 0.25rem; }
.term-prompt { color: var(--emerald); font-weight: 500; }
.term-error { color: var(--rose); }
.term-warning { color: var(--amber); }
.term-success { color: var(--emerald); }

/* ── Architecture Section ── */
.arch-section { padding: 6rem 0; }
.arch-pipeline {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0;
  margin-top: 3rem;
  flex-wrap: wrap;
}
.arch-step {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  padding: 1.5rem 1.25rem;
  text-align: center;
  flex: 1;
  min-width: 150px;
  max-width: 200px;
  transition: all var(--dur-norm) var(--ease-out);
}
.arch-step:hover {
  border-color: var(--border-hover);
  transform: translateY(-2px);
}
.arch-step-num {
  font-size: 0.65rem;
  font-weight: 700;
  color: var(--violet-light);
  text-transform: uppercase;
  letter-spacing: 0.15em;
  margin-bottom: 0.5rem;
}
.arch-step h4 { font-size: 0.9rem; font-weight: 600; margin-bottom: 0.25rem; }
.arch-step p { font-size: 0.72rem; color: var(--text-muted); line-height: 1.45; }
.arch-arrow {
  color: var(--text-muted);
  padding: 0 0.625rem;
  flex-shrink: 0;
  opacity: 0.4;
}

/* ── Comparison Section ── */
.comparison-section { padding: 6rem 0; }
.comparison-table-wrap {
  overflow-x: auto;
  border-radius: var(--radius-lg);
  border: 1px solid var(--border);
  background: var(--bg-card);
  margin-top: 3rem;
}
table.comparison-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 0.875rem;
}
.comparison-table th {
  padding: 1rem 1.5rem;
  text-align: left;
  font-weight: 600;
  color: var(--text-muted);
  text-transform: uppercase;
  font-size: 0.7rem;
  letter-spacing: 0.1em;
  border-bottom: 1px solid var(--border);
  background: rgba(255,255,255,0.015);
}
.comparison-table th.neuron-col { color: var(--violet-light); }
.comparison-table td {
  padding: 0.875rem 1.5rem;
  border-bottom: 1px solid var(--border);
  color: var(--text-secondary);
}
.comparison-table tr:last-child td { border-bottom: none; }
.comparison-table tr:hover td { background: rgba(255,255,255,0.015); }
.check { color: var(--emerald); font-weight: 600; }
.cross { color: var(--rose); opacity: 0.5; }

/* ── Benchmarks Section ── */
.benchmarks-section { padding: 6rem 0; }
.benchmarks-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1.25rem;
  margin-top: 3rem;
}
.benchmark-card {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 2rem;
}
.benchmark-card h3 { font-size: 1rem; font-weight: 600; margin-bottom: 0.25rem; }
.benchmark-desc { font-size: 0.8rem; color: var(--text-muted); margin-bottom: 1.5rem; }
.bar-row { margin-bottom: 1.25rem; }
.bar-row:last-child { margin-bottom: 0; }
.bar-label {
  font-size: 0.78rem;
  color: var(--text-secondary);
  margin-bottom: 0.375rem;
  display: flex;
  justify-content: space-between;
}
.bar-label span { font-weight: 600; color: var(--text-primary); font-size: 0.78rem; }
.bar-track {
  height: 8px;
  background: rgba(255,255,255,0.04);
  border-radius: 999px;
  overflow: hidden;
}
.bar-fill {
  height: 100%;
  border-radius: 999px;
  width: 0;
  transition: width 1.5s var(--ease-out);
}
.bar-fill.vm { background: linear-gradient(90deg, #52525b, #71717a); }
.bar-fill.jit { background: var(--gradient-brand); }
.bar-fill.pytorch { background: linear-gradient(90deg, #ee4c2c, #ff7043); }

.optimizations-card {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 2rem;
  margin-top: 1.25rem;
}
.optimizations-card h3 { font-size: 1rem; font-weight: 600; margin-bottom: 1.25rem; }
.optim-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 1.5rem;
}
.optim-item strong {
  font-size: 0.8125rem;
  color: var(--text-primary);
  display: block;
  margin-bottom: 0.375rem;
}
.optim-item p { font-size: 0.78rem; color: var(--text-muted); line-height: 1.5; }

/* ── FAQ Section ── */
.faq-section { padding: 6rem 0; }
.faq-list {
  max-width: 720px;
  margin: 3rem auto 0;
  display: flex;
  flex-direction: column;
  gap: 0.625rem;
}
.faq-item {
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  overflow: hidden;
  transition: border-color var(--dur-fast);
}
.faq-item.active { border-color: var(--border-hover); }
.faq-question {
  width: 100%;
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 1.125rem 1.5rem;
  background: none;
  border: none;
  color: var(--text-primary);
  font-size: 0.9375rem;
  font-weight: 500;
  cursor: pointer;
  text-align: left;
  font-family: var(--font-sans);
  gap: 1rem;
}
.faq-icon {
  font-size: 1.25rem;
  color: var(--text-muted);
  transition: transform var(--dur-norm) var(--ease-out);
  flex-shrink: 0;
  line-height: 1;
}
.faq-item.active .faq-icon { transform: rotate(45deg); color: var(--violet-light); }
.faq-answer {
  max-height: 0;
  overflow: hidden;
  transition: max-height var(--dur-slow) var(--ease-out);
}
.faq-item.active .faq-answer { max-height: 300px; }
.faq-answer p {
  padding: 0 1.5rem 1.25rem;
  font-size: 0.875rem;
  color: var(--text-secondary);
  line-height: 1.7;
}

/* ── Pricing Section ── */
.pricing-section { padding: 6rem 0; }
.pricing-toggle-wrap {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.75rem;
  margin: 2rem 0 3rem;
}
.toggle-label { font-size: 0.875rem; color: var(--text-muted); transition: color var(--dur-fast); }
.toggle-label.active { color: var(--text-primary); }
.pricing-toggle {
  width: 48px; height: 26px;
  border-radius: 999px;
  background: var(--bg-elevated);
  border: 1px solid var(--border);
  cursor: pointer;
  position: relative;
  transition: all var(--dur-fast);
}
.pricing-toggle.active { background: rgba(139,92,246,0.2); border-color: var(--violet); }
.toggle-circle {
  width: 20px; height: 20px;
  border-radius: 50%;
  background: var(--text-primary);
  position: absolute;
  top: 2px; left: 2px;
  transition: transform var(--dur-norm) var(--ease-spring);
}
.pricing-toggle.active .toggle-circle { transform: translateX(22px); }
.pricing-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.25rem;
  align-items: start;
}
.pricing-card {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 2.5rem 2rem;
  position: relative;
  transition: all var(--dur-norm) var(--ease-out);
}
.pricing-card:hover {
  transform: translateY(-2px);
  border-color: var(--border-hover);
}
.pricing-card.featured {
  border-color: rgba(139,92,246,0.35);
  box-shadow: 0 0 50px rgba(139,92,246,0.08);
}
.pricing-card.featured::before {
  content: 'Recommended';
  position: absolute;
  top: -12px; left: 50%;
  transform: translateX(-50%);
  padding: 0.25rem 1rem;
  background: var(--gradient-brand);
  border-radius: 999px;
  font-size: 0.7rem;
  font-weight: 600;
  color: #fff;
  white-space: nowrap;
}
.pricing-tier {
  font-size: 0.7rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: var(--text-muted);
  margin-bottom: 0.5rem;
}
.pricing-card h3 { font-size: 1.5rem; font-weight: 700; margin-bottom: 0.5rem; }
.pricing-card .pricing-desc { font-size: 0.875rem; color: var(--text-secondary); margin-bottom: 1.5rem; }
.price-amount { display: flex; align-items: baseline; gap: 0.25rem; margin-bottom: 2rem; }
.price-currency { font-size: 1.25rem; font-weight: 600; color: var(--text-muted); }
.price-value { font-size: 3rem; font-weight: 800; }
.price-period { font-size: 0.8rem; color: var(--text-muted); }
.pricing-features {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
  margin-bottom: 2rem;
}
.pricing-features li {
  display: flex;
  align-items: center;
  gap: 0.625rem;
  font-size: 0.8125rem;
  color: var(--text-secondary);
}
.pricing-features li svg { flex-shrink: 0; color: var(--emerald); }
.pricing-btn {
  display: block;
  width: 100%;
  text-align: center;
  padding: 0.6875rem;
  border-radius: var(--radius-sm);
  font-size: 0.875rem;
  font-weight: 500;
  text-decoration: none;
  transition: all var(--dur-fast);
  cursor: pointer;
  border: none;
  font-family: var(--font-sans);
}
.pricing-btn-outline {
  background: transparent;
  border: 1px solid var(--border);
  color: var(--text-primary);
}
.pricing-btn-outline:hover { border-color: var(--border-hover); }
.pricing-btn-solid {
  background: var(--gradient-brand);
  color: #fff;
}
.pricing-btn-solid:hover { box-shadow: 0 0 24px rgba(139,92,246,0.35); }

/* ── Licensing Section ── */
.licensing-section { padding: 6rem 0; }
.licensing-card {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 3rem;
  max-width: 880px;
  margin: 3rem auto 0;
}
.licensing-card > h3 { font-size: 1.375rem; font-weight: 700; margin-bottom: 0.5rem; }
.licensing-card > p { font-size: 0.9375rem; color: var(--text-secondary); margin-bottom: 2rem; }
.licensing-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 2.5rem;
}
.license-tier h4 { font-size: 1rem; font-weight: 600; margin-bottom: 0.875rem; }
.license-tier.free h4 { color: var(--emerald); }
.license-tier.commercial h4 { color: var(--amber); }
.license-tier ul { list-style: none; display: flex; flex-direction: column; gap: 0.75rem; }
.license-tier li { font-size: 0.8125rem; color: var(--text-secondary); line-height: 1.55; }
.license-tier li strong { color: var(--text-primary); }
.licensing-footnote {
  margin-top: 2rem;
  padding-top: 1.5rem;
  border-top: 1px solid var(--border);
  font-size: 0.78rem;
  color: var(--text-muted);
  text-align: center;
  line-height: 1.8;
}
.licensing-footnote a { color: var(--violet-light); text-decoration: underline; }

/* ── CTA Section ── */
.cta-section { padding: 6rem 0; }
.cta-card {
  text-align: center;
  padding: 5rem 2rem;
  background: radial-gradient(ellipse at center, rgba(139,92,246,0.08), transparent 70%);
  border-radius: var(--radius-xl);
  border: 1px solid var(--border);
  position: relative;
}
.cta-card h2 {
  font-size: clamp(1.75rem, 4vw, 2.5rem);
  font-weight: 800;
  margin-bottom: 1rem;
  letter-spacing: -0.02em;
}
.cta-card p {
  font-size: 1.0625rem;
  color: var(--text-secondary);
  margin-bottom: 2rem;
  max-width: 480px;
  margin-left: auto;
  margin-right: auto;
}

/* ── Footer ── */
.footer {
  padding: 2.5rem 0;
  border-top: 1px solid var(--border);
}
.footer-inner {
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 1.5rem;
}
.footer-links {
  display: flex;
  gap: 1.5rem;
  list-style: none;
  flex-wrap: wrap;
}
.footer-links a {
  font-size: 0.78rem;
  color: var(--text-muted);
  text-decoration: none;
  transition: color var(--dur-fast);
}
.footer-links a:hover { color: var(--text-secondary); }
.footer-copy { font-size: 0.78rem; color: var(--text-muted); }
.footer-copy a { color: var(--text-secondary); text-decoration: underline; }

/* ── Modal ── */
.modal-overlay {
  position: fixed;
  inset: 0;
  z-index: 2000;
  background: rgba(0,0,0,0.7);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  display: none;
  align-items: center;
  justify-content: center;
}
.modal-overlay.active { display: flex; }
.modal-content {
  background: var(--bg-elevated);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 2.5rem;
  max-width: 420px;
  width: 90%;
  position: relative;
}
.modal-close {
  position: absolute;
  top: 1rem; right: 1rem;
  background: none;
  border: none;
  color: var(--text-muted);
  font-size: 1.5rem;
  cursor: pointer;
  line-height: 1;
}
.modal-close:hover { color: var(--text-secondary); }
.modal-content h3 { font-size: 1.25rem; font-weight: 700; margin-bottom: 0.75rem; }
.modal-content > p,
.modal-content #waitlist-form-container p { font-size: 0.875rem; color: var(--text-secondary); margin-bottom: 1.5rem; line-height: 1.65; }
.waitlist-form { display: flex; gap: 0.5rem; }
.waitlist-input {
  flex: 1;
  padding: 0.625rem 1rem;
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  color: var(--text-primary);
  font-size: 0.875rem;
  outline: none;
  font-family: var(--font-sans);
  transition: border-color var(--dur-fast);
}
.waitlist-input:focus { border-color: var(--border-focus); box-shadow: 0 0 0 3px rgba(139,92,246,0.12); }
.waitlist-submit-btn {
  padding: 0.625rem 1.25rem;
  background: var(--gradient-brand);
  color: #fff;
  border: none;
  border-radius: var(--radius-sm);
  font-size: 0.875rem;
  font-weight: 500;
  cursor: pointer;
  font-family: var(--font-sans);
  white-space: nowrap;
}
.success-icon { font-size: 3rem; color: var(--emerald); margin-bottom: 1rem; }

/* ── Scroll Reveal ── */
.reveal {
  opacity: 0;
  transform: translateY(24px);
  transition: opacity 0.7s var(--ease-out), transform 0.7s var(--ease-out);
}
.reveal.revealed {
  opacity: 1;
  transform: translateY(0);
}
.reveal-delay-1 { transition-delay: 0.1s; }
.reveal-delay-2 { transition-delay: 0.2s; }
.reveal-delay-3 { transition-delay: 0.3s; }
.reveal-delay-4 { transition-delay: 0.4s; }
.reveal-delay-5 { transition-delay: 0.5s; }

/* ── Keyframes ── */
@keyframes spin {
  0% { transform: rotate(0deg); }
  100% { transform: rotate(360deg); }
}

/* ── Responsive ── */
@media (max-width: 1024px) {
  .features-grid { grid-template-columns: repeat(2, 1fr); }
  .pricing-grid { grid-template-columns: 1fr; max-width: 420px; margin-left: auto; margin-right: auto; }
  .optim-grid { grid-template-columns: repeat(2, 1fr); }
  .playground-card { grid-template-columns: 1fr; }
  .terminal-side { border-left: none; border-top: 1px solid var(--border); }
  .hero-code-float { display: none; }
  .arch-pipeline { flex-wrap: wrap; justify-content: center; gap: 0.5rem; }
  .arch-arrow { display: none; }
  .arch-step { max-width: none; min-width: 140px; }
}

@media (max-width: 768px) {
  .nav-links {
    display: flex;
    position: absolute;
    top: 64px; left: 0; right: 0;
    background: rgba(5,5,10,0.95);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    flex-direction: column;
    padding: 1rem;
    border-bottom: 1px solid var(--border);
    opacity: 0;
    transform: translateY(-10px);
    pointer-events: none;
    transition: opacity var(--dur-norm) var(--ease-out), transform var(--dur-norm) var(--ease-out);
  }
  .nav-links.open {
    opacity: 1;
    transform: translateY(0);
    pointer-events: auto;
  }
  .nav-cta { display: none; }
  .nav-toggle { display: flex; }
  .features-grid { grid-template-columns: 1fr; }
  .benchmarks-grid { grid-template-columns: 1fr; }
  .licensing-grid { grid-template-columns: 1fr; }
  .hero { padding: 7rem 0 4rem; }
  .hero-stats { gap: 2rem; }
  section { padding: 4rem 0 !important; }
  .section-title { font-size: clamp(1.75rem, 5vw, 2.5rem); }
}

@media (max-width: 480px) {
  .container { padding: 0 1.25rem; }
  .hero h1 { font-size: 2.25rem; }
  .hero-stats { gap: 1.5rem; }
  .hero-stat-value { font-size: 1.75rem; }
  .playground-card { border-radius: var(--radius-md); }
  .editor-body, .terminal-body { font-size: 0.72rem; padding: 1rem; }
}

/* ── Paper Page ── */
.paper-layout {
  display: grid;
  grid-template-columns: 220px 1fr;
  gap: 2.5rem;
  padding: 6rem 0 3rem;
}
.paper-sidebar {
  position: sticky;
  top: 80px;
  align-self: start;
  max-height: calc(100vh - 100px);
  overflow-y: auto;
}
.paper-sidebar h3 {
  font-size: 0.7rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.15em;
  color: var(--text-muted);
  margin-bottom: 1rem;
}
.paper-toc-list { list-style: none; }
.paper-toc-list li a {
  display: block;
  padding: 0.3rem 0;
  font-size: 0.78rem;
  color: var(--text-muted);
  text-decoration: none;
  border-left: 2px solid transparent;
  padding-left: 0.75rem;
  transition: all var(--dur-fast);
}
.paper-toc-list li a:hover { color: var(--text-secondary); border-left-color: var(--border); }
.paper-body {
  font-size: 0.9375rem;
  line-height: 1.85;
  color: var(--text-secondary);
}
.paper-body h1 { font-size: 2rem; font-weight: 800; color: var(--text-primary); margin-bottom: 0.5rem; }
.paper-body h2 {
  font-size: 1.375rem;
  font-weight: 700;
  color: var(--text-primary);
  margin-top: 3rem;
  margin-bottom: 1rem;
  padding-top: 1rem;
  border-top: 1px solid var(--border);
}
.paper-body h3 { font-size: 1.0625rem; font-weight: 600; color: var(--text-primary); margin-top: 2rem; margin-bottom: 0.75rem; }
.paper-body p { margin-bottom: 1rem; }
.paper-body code {
  font-family: var(--font-mono);
  font-size: 0.85em;
  background: rgba(139,92,246,0.08);
  padding: 0.15em 0.4em;
  border-radius: 4px;
  color: var(--violet-light);
}
.paper-body pre {
  background: var(--bg-code);
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  padding: 1.25rem;
  overflow-x: auto;
  margin: 1.5rem 0;
  font-family: var(--font-mono);
  font-size: 0.825rem;
  line-height: 1.7;
}
.paper-body pre code { background: none; padding: 0; color: var(--text-secondary); }
.paper-body table { width: 100%; border-collapse: collapse; margin: 1.5rem 0; font-size: 0.85rem; }
.paper-body th, .paper-body td { padding: 0.625rem 1rem; border: 1px solid var(--border); text-align: left; }
.paper-body th { background: rgba(255,255,255,0.025); font-weight: 600; color: var(--text-primary); }
.paper-body blockquote { border-left: 3px solid var(--violet); padding-left: 1rem; margin: 1.5rem 0; color: var(--text-muted); font-style: italic; }
.paper-body strong { color: var(--text-primary); }
.paper-body hr { border: none; border-top: 1px solid var(--border); margin: 2rem 0; }
.paper-body ul, .paper-body ol { margin: 1rem 0; padding-left: 1.5rem; }
.paper-body li { margin-bottom: 0.5rem; }

@media (max-width: 768px) {
  .paper-sidebar { display: none; }
  .paper-layout { grid-template-columns: 1fr; }
}

/* ── Custom Scrollbars (Premium touch) ── */
::-webkit-scrollbar {
  width: 8px;
  height: 8px;
}
::-webkit-scrollbar-track {
  background: var(--bg-void);
}
::-webkit-scrollbar-thumb {
  background: rgba(255, 255, 255, 0.1);
  border-radius: 4px;
}
::-webkit-scrollbar-thumb:hover {
  background: rgba(255, 255, 255, 0.2);
}

/* ── Card Glow (Cursor-Tracking Radial Gradients) ── */
.feature-card, .pricing-card, .benchmark-card, .cta-card {
  --mouse-x: 0px;
  --mouse-y: 0px;
}
.feature-card:hover, .pricing-card:hover, .benchmark-card:hover, .cta-card:hover {
  background: radial-gradient(800px circle at var(--mouse-x) var(--mouse-y), rgba(139,92,246,0.06), transparent 40%), var(--bg-card-hover) !important;
}

/* ── Pricing Featured Pulse ── */
.pricing-card.featured {
  animation: featured-glow 6s infinite alternate;
}
@keyframes featured-glow {
  0% { box-shadow: 0 0 40px rgba(139,92,246,0.08); }
  100% { box-shadow: 0 0 60px rgba(139,92,246,0.18); }
}

