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

:root {
  color-scheme: dark;
  --bg-main: #0a0e10;
  --bg-surface: #111619;
  --bg-surface-elevated: #182024;
  --border-color: rgba(255, 255, 255, 0.08);
  --border-focus: #10b981;
  --text-main: #f3f4f6;
  --text-muted: #9ca3af;
  --text-inverse: #061512;
  
  --emerald: #10b981;
  --emerald-hover: #059669;
  --emerald-glow: rgba(16, 185, 129, 0.15);
  
  --cyan: #06b6d4;
  --cyan-glow: rgba(6, 182, 212, 0.15);
  
  --amber: #f59e0b;
  --shadow-premium: 0 20px 40px rgba(0, 0, 0, 0.4);
  
  --font-heading: 'Outfit', sans-serif;
  --font-body: 'Inter', sans-serif;
  --font-code: 'JetBrains Mono', monospace;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  font-family: var(--font-body);
  color: var(--text-main);
  background: var(--bg-main);
  background-image: 
    radial-gradient(circle at 10% 20%, rgba(16, 185, 129, 0.03) 0%, transparent 40%),
    radial-gradient(circle at 90% 80%, rgba(6, 182, 212, 0.03) 0%, transparent 40%);
  background-attachment: fixed;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}

/* Scrollbar styling */
::-webkit-scrollbar {
  width: 8px;
  height: 8px;
}
::-webkit-scrollbar-track {
  background: var(--bg-main);
}
::-webkit-scrollbar-thumb {
  background: var(--bg-surface-elevated);
  border-radius: 4px;
}
::-webkit-scrollbar-thumb:hover {
  background: var(--text-muted);
}

a {
  color: inherit;
  text-decoration: none;
  transition: color 0.2s ease, opacity 0.2s ease;
}

/* Typography */
h1, h2, h3, h4, h5 {
  font-family: var(--font-heading);
  font-weight: 800;
  letter-spacing: -0.02em;
  margin-top: 0;
}

/* Topbar Header */
.topbar {
  position: sticky;
  top: 0;
  z-index: 100;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  min-height: 72px;
  padding: 12px clamp(20px, 6vw, 80px);
  background: rgba(10, 14, 16, 0.8);
  border-bottom: 1px solid var(--border-color);
  backdrop-filter: blur(16px);
}

.brand {
  display: flex;
  align-items: center;
  gap: 12px;
  font-weight: 900;
  font-family: var(--font-heading);
  font-size: 20px;
  letter-spacing: -0.01em;
  color: #fff;
}

.brand-mark {
  display: grid;
  place-items: center;
  width: 40px;
  height: 40px;
  color: var(--text-inverse);
  background: linear-gradient(135deg, var(--emerald), var(--cyan));
  border-radius: 10px;
  font-weight: 900;
  font-size: 18px;
  box-shadow: 0 4px 12px rgba(16, 185, 129, 0.3);
}

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

.nav a {
  color: var(--text-muted);
  font-size: 14px;
  font-weight: 500;
}

.nav a:hover {
  color: #fff;
}

/* Button UI */
.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 48px;
  padding: 0 24px;
  font-family: var(--font-heading);
  font-weight: 700;
  font-size: 15px;
  border: 1px solid transparent;
  border-radius: 8px;
  cursor: pointer;
  transition: all 0.25s cubic-bezier(0.4, 0, 0.2, 1);
}

.button.primary {
  color: var(--text-inverse);
  background: var(--emerald);
  box-shadow: 0 4px 14px rgba(16, 185, 129, 0.25);
}

.button.primary:hover {
  background: var(--emerald-hover);
  transform: translateY(-2px);
  box-shadow: 0 6px 20px rgba(16, 185, 129, 0.4);
}

.button.secondary {
  color: #fff;
  background: rgba(255, 255, 255, 0.05);
  border-color: var(--border-color);
}

.button.secondary:hover {
  background: rgba(255, 255, 255, 0.1);
  border-color: rgba(255, 255, 255, 0.2);
  transform: translateY(-2px);
}

/* Hero Section */
.hero {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(400px, 600px);
  gap: clamp(32px, 6vw, 84px);
  align-items: center;
  min-height: calc(100vh - 72px);
  padding: clamp(40px, 8vw, 100px) clamp(20px, 6vw, 80px) 60px;
  max-width: 1400px;
  margin: 0 auto;
}

.hero-copy {
  display: flex;
  flex-direction: column;
  justify-content: center;
}

.eyebrow {
  display: inline-block;
  margin: 0 0 16px;
  color: var(--emerald);
  font-size: 12px;
  font-weight: 800;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  background: var(--emerald-glow);
  padding: 4px 12px;
  border-radius: 999px;
  width: max-content;
}

h1 {
  font-size: clamp(38px, 6.5vw, 68px);
  line-height: 1.05;
  margin-bottom: 24px;
  background: linear-gradient(135deg, #ffffff 60%, rgba(255, 255, 255, 0.7));
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
}

.lede {
  color: var(--text-muted);
  font-size: 18px;
  line-height: 1.6;
  margin-bottom: 32px;
  max-width: 600px;
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 16px;
  margin-bottom: 48px;
}

.proof-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 16px;
  margin: 0;
  padding: 0;
}

.proof-grid div {
  padding: 16px;
  background: var(--bg-surface);
  border: 1px solid var(--border-color);
  border-radius: 10px;
  transition: border-color 0.2s ease;
}

.proof-grid div:hover {
  border-color: rgba(16, 185, 129, 0.3);
}

.proof-grid dt {
  font-family: var(--font-heading);
  font-size: 26px;
  font-weight: 800;
  color: #fff;
  background: linear-gradient(135deg, #fff, var(--cyan));
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
}

.proof-grid dd {
  margin: 4px 0 0;
  color: var(--text-muted);
  font-size: 12px;
  font-weight: 500;
}

/* Bands & Sections general styling */
.band,
.section,
.cta {
  padding: clamp(60px, 8vw, 100px) clamp(20px, 6vw, 80px);
  max-width: 1400px;
  margin: 0 auto;
}

.section-heading {
  max-width: 800px;
  margin-bottom: 48px;
}

.section-heading h2 {
  font-size: clamp(28px, 4vw, 42px);
  line-height: 1.15;
  color: #fff;
}

/* Pain points Section (The Band) */
.band {
  background: radial-gradient(circle at top right, rgba(16, 185, 129, 0.05), transparent), var(--bg-surface);
  border-top: 1px solid var(--border-color);
  border-bottom: 1px solid var(--border-color);
  display: grid;
  grid-template-columns: minmax(0, 1.2fr) minmax(280px, 1fr);
  gap: clamp(32px, 6vw, 80px);
  align-items: center;
  border-radius: 16px;
  margin-top: 20px;
  margin-bottom: 20px;
}

.band h2 {
  font-size: clamp(28px, 4vw, 40px);
  color: #fff;
}

.band p {
  color: var(--text-muted);
  font-size: 17px;
  line-height: 1.65;
}

.pain-list {
  display: grid;
  gap: 16px;
  padding: 0;
  margin: 0;
  list-style: none;
}

.pain-list li {
  position: relative;
  padding: 20px 20px 20px 52px;
  background: rgba(255, 255, 255, 0.02);
  border: 1px solid var(--border-color);
  border-radius: 10px;
  font-size: 15px;
  font-weight: 500;
  color: var(--text-main);
  transition: transform 0.2s ease, border-color 0.2s ease;
}

.pain-list li:hover {
  transform: translateX(4px);
  border-color: rgba(239, 68, 68, 0.3);
}

.pain-list li::before {
  content: "✕";
  position: absolute;
  left: 20px;
  top: 18px;
  width: 24px;
  height: 24px;
  display: grid;
  place-items: center;
  border-radius: 6px;
  background: rgba(239, 68, 68, 0.15);
  color: #ef4444;
  font-size: 12px;
  font-weight: 900;
}

/* Workflow Steps */
.steps {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 24px;
}

.steps article {
  padding: 32px;
  background: var(--bg-surface);
  border: 1px solid var(--border-color);
  border-radius: 12px;
  transition: all 0.25s ease;
  position: relative;
  overflow: hidden;
}

.steps article:hover {
  transform: translateY(-4px);
  border-color: rgba(6, 182, 212, 0.3);
  box-shadow: 0 12px 30px rgba(0, 0, 0, 0.3);
}

.steps span {
  display: grid;
  place-items: center;
  width: 36px;
  height: 36px;
  margin-bottom: 24px;
  color: var(--text-inverse);
  background: var(--cyan);
  border-radius: 8px;
  font-weight: 800;
  font-family: var(--font-heading);
  box-shadow: 0 4px 12px rgba(6, 182, 212, 0.25);
}

.steps h3 {
  font-size: 20px;
  color: #fff;
  margin-bottom: 12px;
}

.steps p {
  color: var(--text-muted);
  font-size: 14px;
  line-height: 1.6;
  margin: 0;
}

/* Interactive Playground (redesigned from .product-shell) */
.product-shell {
  display: flex;
  flex-direction: column;
  background: var(--bg-surface);
  border: 1px solid var(--border-color);
  border-radius: 12px;
  box-shadow: var(--shadow-premium);
  overflow: hidden;
  height: 580px;
  border-color: rgba(16, 185, 129, 0.2);
}

.window-bar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 52px;
  padding: 0 20px;
  background: var(--bg-surface-elevated);
  border-bottom: 1px solid var(--border-color);
}

.window-dots {
  display: flex;
  gap: 8px;
}

.window-dots span {
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background: #ef4444;
}

.window-dots span:nth-child(2) {
  background: var(--amber);
}

.window-dots span:nth-child(3) {
  background: var(--emerald);
}

.window-title {
  font-family: var(--font-heading);
  font-size: 13px;
  font-weight: 700;
  color: var(--text-muted);
  display: flex;
  align-items: center;
  gap: 8px;
}

.playground-preset-select {
  background: var(--bg-main);
  color: #fff;
  border: 1px solid var(--border-color);
  border-radius: 6px;
  padding: 4px 8px;
  font-size: 12px;
  font-weight: 600;
  outline: none;
  cursor: pointer;
}

.playground-preset-select:focus {
  border-color: var(--emerald);
}

.playground-body {
  display: grid;
  grid-template-columns: 240px 1fr;
  height: calc(100% - 52px);
  overflow: hidden;
}

/* Sidebar configuration */
.playground-sidebar {
  background: rgba(10, 14, 16, 0.4);
  border-right: 1px solid var(--border-color);
  display: flex;
  flex-direction: column;
  overflow-y: auto;
}

.sidebar-section-title {
  padding: 14px 18px 6px;
  font-family: var(--font-heading);
  font-size: 11px;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: var(--text-muted);
  font-weight: 700;
}

.sidebar-seed-input-container {
  padding: 0 16px 14px;
  border-bottom: 1px solid var(--border-color);
}

.sidebar-seed-input-container label {
  font-size: 11px;
  color: var(--text-muted);
  display: block;
  margin-bottom: 6px;
  font-weight: 600;
}

.sidebar-seed-input-container input {
  width: 100%;
  background: var(--bg-surface-elevated);
  border: 1px solid var(--border-color);
  border-radius: 6px;
  color: #fff;
  padding: 6px 10px;
  font-family: var(--font-code);
  font-size: 12px;
  outline: none;
}

.sidebar-seed-input-container input:focus {
  border-color: var(--emerald);
}

.table-list {
  padding: 8px;
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.table-list-item {
  padding: 10px 12px;
  border-radius: 6px;
  cursor: pointer;
  display: flex;
  flex-direction: column;
  gap: 2px;
  border: 1px solid transparent;
  transition: all 0.2s ease;
}

.table-list-item:hover {
  background: rgba(255, 255, 255, 0.03);
}

.table-list-item.active {
  background: rgba(16, 185, 129, 0.08);
  border-color: rgba(16, 185, 129, 0.2);
}

.table-list-item .table-name {
  font-family: var(--font-code);
  font-size: 12px;
  font-weight: 600;
  color: #fff;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.table-list-item .table-meta {
  display: flex;
  align-items: center;
  justify-content: space-between;
  font-size: 10px;
  color: var(--text-muted);
}

.table-list-item .table-meta input {
  width: 48px;
  background: var(--bg-main);
  border: 1px solid var(--border-color);
  border-radius: 4px;
  color: #fff;
  text-align: right;
  padding: 1px 4px;
  font-family: var(--font-code);
}

.table-list-item .table-meta input:focus {
  border-color: var(--emerald);
}

/* Output pane area */
.playground-content {
  display: flex;
  flex-direction: column;
  overflow: hidden;
}

.content-tabs {
  display: flex;
  align-items: center;
  justify-content: space-between;
  background: var(--bg-surface-elevated);
  border-bottom: 1px solid var(--border-color);
  padding: 0 10px;
  overflow-x: auto;
}

.tabs-group {
  display: flex;
  gap: 4px;
}

.tab-btn {
  background: transparent;
  border: none;
  color: var(--text-muted);
  font-family: var(--font-heading);
  font-size: 13px;
  font-weight: 600;
  padding: 12px 16px;
  cursor: pointer;
  position: relative;
  transition: color 0.2s ease;
  white-space: nowrap;
}

.tab-btn:hover {
  color: #fff;
}

.tab-btn.active {
  color: var(--emerald);
}

.tab-btn.active::after {
  content: "";
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  height: 2px;
  background: var(--emerald);
}

.tab-actions {
  display: flex;
  gap: 8px;
  padding-right: 8px;
}

.tab-action-btn {
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid var(--border-color);
  border-radius: 6px;
  color: var(--text-main);
  font-family: var(--font-heading);
  font-size: 11px;
  font-weight: 700;
  padding: 6px 12px;
  cursor: pointer;
  display: flex;
  align-items: center;
  gap: 6px;
  transition: all 0.2s ease;
}

.tab-action-btn:hover {
  background: rgba(255, 255, 255, 0.1);
  border-color: rgba(255, 255, 255, 0.2);
}

/* Live viewer workspace */
.viewer-workspace {
  flex: 1;
  overflow: auto;
  background: #070a0c;
  position: relative;
}

.editor-textarea {
  width: 100%;
  height: 100%;
  background: transparent;
  border: none;
  color: #a7f3d0;
  font-family: var(--font-code);
  font-size: 13px;
  line-height: 1.5;
  padding: 20px;
  resize: none;
  outline: none;
}

.viewer-workspace pre {
  margin: 0;
  padding: 20px;
  background: transparent;
  font-family: var(--font-code);
  font-size: 13px;
  line-height: 1.5;
  color: #e2e8f0;
}

.viewer-workspace pre code {
  color: #cbd5e1;
}

/* SQL Keyword Highlighting Simulator classes */
.hl-comment { color: #6b7280; font-style: italic; }
.hl-keyword { color: #f43f5e; font-weight: 600; }
.hl-string { color: #34d399; }
.hl-number { color: #38bdf8; }
.hl-builtin { color: #fbbf24; }

.playground-stats-bar {
  height: 32px;
  background: var(--bg-surface-elevated);
  border-top: 1px solid var(--border-color);
  padding: 0 16px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  font-size: 11px;
  color: var(--text-muted);
}

.playground-stats-bar .stats-green {
  color: var(--emerald);
  font-weight: 600;
}

/* ROI Calculator Section */
.calculator {
  display: grid;
  grid-template-columns: minmax(0, 1.2fr) minmax(360px, 480px);
  gap: clamp(32px, 6vw, 80px);
  align-items: center;
  background: radial-gradient(circle at bottom left, rgba(6, 182, 212, 0.04), transparent), var(--bg-surface);
  border: 1px solid var(--border-color);
  border-radius: 16px;
}

.calc-description h2 {
  font-size: clamp(28px, 4vw, 42px);
  color: #fff;
}

.calc-description p {
  color: var(--text-muted);
  font-size: 16px;
  line-height: 1.6;
}

.calc-panel {
  display: grid;
  gap: 20px;
  padding: 32px;
  background: var(--bg-surface-elevated);
  border: 1px solid var(--border-color);
  border-radius: 12px;
  box-shadow: var(--shadow-premium);
}

.calc-panel label {
  display: flex;
  flex-direction: column;
  gap: 8px;
  color: var(--text-main);
  font-size: 14px;
  font-weight: 600;
}

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

.calc-label-header span:last-child {
  font-family: var(--font-code);
  color: var(--cyan);
  font-weight: 700;
}

.calc-panel input[type="range"] {
  -webkit-appearance: none;
  appearance: none;
  width: 100%;
  height: 6px;
  background: var(--bg-main);
  border-radius: 3px;
  outline: none;
  transition: background 0.3s ease;
}

.calc-panel input[type="range"]::-webkit-slider-thumb {
  -webkit-appearance: none;
  appearance: none;
  width: 18px;
  height: 18px;
  border-radius: 50%;
  background: var(--cyan);
  cursor: pointer;
  box-shadow: 0 0 10px rgba(6, 182, 212, 0.5);
  transition: transform 0.1s ease;
}

.calc-panel input[type="range"]::-webkit-slider-thumb:hover {
  transform: scale(1.2);
}

.calc-panel input[type="number"] {
  width: 100%;
  height: 44px;
  padding: 0 14px;
  color: #fff;
  background: var(--bg-main);
  border: 1px solid var(--border-color);
  border-radius: 8px;
  font-family: var(--font-code);
  font-size: 14px;
  outline: none;
}

.calc-panel input[type="number"]:focus {
  border-color: var(--cyan);
}

.calc-panel output {
  display: flex;
  flex-direction: column;
  gap: 4px;
  padding: 20px;
  color: var(--text-inverse);
  background: linear-gradient(135deg, var(--cyan), var(--emerald));
  border-radius: 8px;
  font-family: var(--font-heading);
  text-align: center;
  font-size: 18px;
  font-weight: 800;
  box-shadow: 0 4px 15px rgba(6, 182, 212, 0.25);
  transition: transform 0.2s ease;
}

.calc-panel output span {
  font-size: 12px;
  font-family: var(--font-body);
  font-weight: 500;
  opacity: 0.85;
}

/* Pricing Grid */
.pricing-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 24px;
}

.pricing-grid article {
  display: flex;
  flex-direction: column;
  padding: 36px;
  background: var(--bg-surface);
  border: 1px solid var(--border-color);
  border-radius: 12px;
  position: relative;
  transition: all 0.25s ease;
}

.pricing-grid article:hover {
  transform: translateY(-4px);
  border-color: rgba(255, 255, 255, 0.15);
}

.pricing-grid .featured {
  background: radial-gradient(circle at top right, rgba(16, 185, 129, 0.06), transparent), var(--bg-surface);
  border-color: var(--emerald);
  box-shadow: 0 10px 30px rgba(16, 185, 129, 0.1);
}

.pricing-grid .featured::before {
  content: "Most Popular";
  position: absolute;
  top: -12px;
  left: 24px;
  background: var(--emerald);
  color: var(--text-inverse);
  font-family: var(--font-heading);
  font-size: 11px;
  font-weight: 800;
  text-transform: uppercase;
  padding: 4px 12px;
  border-radius: 999px;
  letter-spacing: 0.05em;
}

.pricing-grid h3 {
  font-size: 22px;
  color: #fff;
  margin-bottom: 6px;
}

.price {
  font-family: var(--font-heading);
  font-size: 42px;
  font-weight: 900;
  color: #fff;
  margin: 16px 0;
  display: flex;
  align-items: baseline;
}

.price span {
  font-size: 15px;
  font-weight: 500;
  color: var(--text-muted);
  margin-left: 4px;
}

.pricing-grid p {
  color: var(--text-muted);
  font-size: 14px;
  line-height: 1.5;
  margin-bottom: 24px;
}

.pricing-features {
  list-style: none;
  padding: 0;
  margin: 0 0 32px;
  display: flex;
  flex-direction: column;
  gap: 12px;
  font-size: 13px;
  color: var(--text-main);
}

.pricing-features li {
  display: flex;
  align-items: center;
  gap: 10px;
}

.pricing-features li::before {
  content: "✓";
  color: var(--emerald);
  font-weight: 900;
}

.pricing-grid .button {
  margin-top: auto;
  width: 100%;
}

/* Call to Action */
.cta {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: clamp(32px, 6vw, 80px);
  background: linear-gradient(135deg, rgba(16, 185, 129, 0.08), rgba(6, 182, 212, 0.08)), var(--bg-surface);
  border: 1px solid var(--border-color);
  border-radius: 16px;
  margin-top: 40px;
  margin-bottom: 60px;
}

.cta div {
  max-width: 700px;
}

.cta h2 {
  font-size: clamp(28px, 4vw, 42px);
  color: #fff;
}

.cta p {
  color: var(--text-muted);
  font-size: 16px;
  line-height: 1.6;
  margin: 0;
}

.cta .button {
  flex-shrink: 0;
}

/* Footer style details */
.footer-note {
  text-align: center;
  padding: 40px clamp(20px, 6vw, 80px);
  color: var(--text-muted);
  font-size: 13px;
  border-top: 1px solid var(--border-color);
  max-width: 1400px;
  margin: 0 auto;
}

/* Custom Rule Configurator Panel UI inside Playground */
.rules-configurator {
  display: flex;
  flex-direction: column;
  gap: 16px;
  padding: 20px;
}

.rule-row {
  display: grid;
  grid-template-columns: 1fr 120px 1fr;
  gap: 12px;
  align-items: center;
}

.rule-row span {
  font-family: var(--font-code);
  font-size: 12px;
  color: var(--text-main);
  overflow: hidden;
  text-overflow: ellipsis;
}

.rule-row select, .rule-row input {
  background: var(--bg-surface-elevated);
  border: 1px solid var(--border-color);
  color: #fff;
  border-radius: 6px;
  padding: 6px 10px;
  font-size: 12px;
  outline: none;
}

.rule-row select:focus, .rule-row input:focus {
  border-color: var(--emerald);
}

/* Responsive Media Queries */
@media (max-width: 1024px) {
  .hero {
    grid-template-columns: 1fr;
    text-align: center;
    padding-top: 60px;
  }
  
  .hero-copy {
    align-items: center;
  }
  
  .hero-actions {
    justify-content: center;
  }
  
  .proof-grid {
    width: 100%;
    max-width: 600px;
  }
  
  .product-shell {
    height: 520px;
  }
}

@media (max-width: 900px) {
  .band,
  .calculator,
  .cta {
    grid-template-columns: 1fr;
    text-align: center;
  }
  
  .band {
    display: flex;
    flex-direction: column;
  }
  
  .steps,
  .pricing-grid {
    grid-template-columns: 1fr;
    max-width: 500px;
    margin: 0 auto;
  }
  
  .cta {
    flex-direction: column;
    align-items: center;
    gap: 24px;
  }
  
  .cta .button {
    width: 100%;
    max-width: 320px;
  }
  
  .calc-panel {
    width: 100%;
  }
}

@media (max-width: 640px) {
  .topbar {
    flex-direction: column;
    gap: 16px;
    padding-top: 16px;
    padding-bottom: 16px;
  }
  
  .nav {
    width: 100%;
    justify-content: center;
    gap: 20px;
  }
  
  .playground-body {
    grid-template-columns: 1fr;
  }
  
  .playground-sidebar {
    border-right: none;
    border-bottom: 1px solid var(--border-color);
    max-height: 180px;
  }
  
  .product-shell {
    height: 640px;
  }
  
  .proof-grid {
    grid-template-columns: 1fr;
  }
}

/* Modal Styles */
.modal-overlay {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: rgba(0, 0, 0, 0.75);
  backdrop-filter: blur(4px);
  z-index: 1000;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 20px;
}

.modal-content {
  background: var(--bg-surface);
  border: 1px solid var(--border-color);
  border-radius: 12px;
  width: 100%;
  max-width: 580px;
  box-shadow: var(--shadow-premium);
  display: flex;
  flex-direction: column;
  overflow: hidden;
  animation: modalFadeIn 0.3s cubic-bezier(0.16, 1, 0.3, 1);
}

@keyframes modalFadeIn {
  from { opacity: 0; transform: scale(0.96) translateY(10px); }
  to { opacity: 1; transform: scale(1) translateY(0); }
}

.modal-header {
  padding: 16px 20px;
  border-bottom: 1px solid var(--border-color);
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.modal-header h3 {
  margin: 0;
  font-size: 18px;
  color: #fff;
}

.modal-close-btn {
  background: transparent;
  border: none;
  color: var(--text-muted);
  font-size: 24px;
  cursor: pointer;
}

.modal-close-btn:hover {
  color: #fff;
}

.modal-body {
  padding: 20px;
  overflow-y: auto;
}

.modal-footer {
  padding: 14px 20px;
  border-top: 1px solid var(--border-color);
  display: flex;
  justify-content: flex-end;
  gap: 12px;
  background: var(--bg-surface-elevated);
}
