/* ==========================================================================
   Java Launcher Official Website - Design System & Styles
   ========================================================================== */

:root {
  --font-sans: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Helvetica, Arial, sans-serif;
  --font-mono: 'JetBrains Mono', 'Fira Code', Menlo, Monaco, Consolas, monospace;

  /* Color Palette - Dark Theme (Default) */
  --bg-primary: #090b10;
  --bg-secondary: #0f131c;
  --bg-tertiary: #161b26;
  --bg-card: rgba(22, 27, 38, 0.7);
  --bg-card-hover: rgba(30, 37, 51, 0.85);
  
  --border-subtle: rgba(255, 255, 255, 0.08);
  --border-glow: rgba(99, 102, 241, 0.35);
  --border-active: rgba(255, 255, 255, 0.2);

  --text-primary: #f8fafc;
  --text-secondary: #94a3b8;
  --text-muted: #64748b;
  --text-code: #e2e8f0;

  --accent-indigo: #6366f1;
  --accent-purple: #8b5cf6;
  --accent-pink: #ec4899;
  --accent-cyan: #06b6d4;
  --accent-emerald: #10b981;
  --accent-amber: #f59e0b;
  --accent-sky: #38bdf8;

  --zed-accent: #10b981;
  --zed-gradient: linear-gradient(135deg, #10b981 0%, #06b6d4 100%);
  --vscode-accent: #0ea5e9;
  --vscode-gradient: linear-gradient(135deg, #0ea5e9 0%, #6366f1 100%);
  --hero-gradient: linear-gradient(135deg, #6366f1 0%, #a855f7 50%, #ec4899 100%);

  --shadow-sm: 0 2px 8px rgba(0, 0, 0, 0.3);
  --shadow-md: 0 8px 30px rgba(0, 0, 0, 0.45);
  --shadow-lg: 0 20px 60px rgba(0, 0, 0, 0.6);
  --shadow-glow: 0 0 50px rgba(99, 102, 241, 0.25);
  --shadow-zed-glow: 0 0 50px rgba(16, 185, 129, 0.25);
  --shadow-vscode-glow: 0 0 50px rgba(14, 165, 233, 0.25);

  --radius-sm: 8px;
  --radius-md: 14px;
  --radius-lg: 20px;
  --radius-full: 9999px;

  --transition: all 0.25s cubic-bezier(0.16, 1, 0.3, 1);
}

[data-theme="light"] {
  --bg-primary: #f8fafc;
  --bg-secondary: #f1f5f9;
  --bg-tertiary: #e2e8f0;
  --bg-card: rgba(255, 255, 255, 0.85);
  --bg-card-hover: rgba(255, 255, 255, 1);

  --border-subtle: rgba(0, 0, 0, 0.08);
  --border-glow: rgba(99, 102, 241, 0.3);
  --border-active: rgba(0, 0, 0, 0.2);

  --text-primary: #0f172a;
  --text-secondary: #475569;
  --text-muted: #94a3b8;
  --text-code: #1e293b;

  --shadow-sm: 0 2px 8px rgba(0, 0, 0, 0.05);
  --shadow-md: 0 8px 30px rgba(0, 0, 0, 0.08);
  --shadow-lg: 0 20px 60px rgba(0, 0, 0, 0.12);
  --shadow-glow: 0 0 50px rgba(99, 102, 241, 0.15);
  --shadow-zed-glow: 0 0 50px rgba(16, 185, 129, 0.15);
  --shadow-vscode-glow: 0 0 50px rgba(14, 165, 233, 0.15);
}

/* ==========================================================================
   Base & Reset
   ========================================================================== */

*, *::before, *::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html {
  font-family: var(--font-sans);
  font-size: 16px;
  scroll-behavior: smooth;
  background-color: var(--bg-primary);
  color: var(--text-primary);
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

body {
  min-height: 100vh;
  overflow-x: hidden;
  position: relative;
  background: var(--bg-primary);
  line-height: 1.6;
}

/* Background Ambient Lighting Effect */
.bg-ambient-lights {
  position: fixed;
  inset: 0;
  pointer-events: none;
  z-index: 0;
  overflow: hidden;
}

.ambient-orb {
  position: absolute;
  border-radius: 50%;
  filter: blur(140px);
  opacity: 0.18;
  transition: opacity 0.5s ease;
}

.ambient-orb-1 {
  width: 600px;
  height: 600px;
  top: -150px;
  left: 20%;
  background: radial-gradient(circle, var(--accent-indigo) 0%, transparent 70%);
}

.ambient-orb-2 {
  width: 500px;
  height: 500px;
  top: 35%;
  right: -100px;
  background: radial-gradient(circle, var(--accent-emerald) 0%, transparent 70%);
}

.ambient-orb-3 {
  width: 550px;
  height: 550px;
  bottom: 10%;
  left: -100px;
  background: radial-gradient(circle, var(--accent-sky) 0%, transparent 70%);
}

/* Background Grid Overlay */
.bg-grid-overlay {
  position: fixed;
  inset: 0;
  background-image: 
    linear-gradient(to right, var(--border-subtle) 1px, transparent 1px),
    linear-gradient(to bottom, var(--border-subtle) 1px, transparent 1px);
  background-size: 64px 64px;
  mask-image: radial-gradient(circle at center, black 40%, transparent 85%);
  pointer-events: none;
  z-index: 0;
  opacity: 0.45;
}

.container {
  width: 100%;
  max-width: 1240px;
  margin: 0 auto;
  padding: 0 24px;
  position: relative;
  z-index: 1;
}

/* ==========================================================================
   Header & Navigation
   ========================================================================== */

.site-header {
  position: sticky;
  top: 0;
  z-index: 100;
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  background: rgba(9, 11, 16, 0.75);
  border-bottom: 1px solid var(--border-subtle);
  transition: var(--transition);
}

[data-theme="light"] .site-header {
  background: rgba(248, 250, 252, 0.85);
}

.nav-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 72px;
}

.brand-link {
  display: flex;
  align-items: center;
  gap: 12px;
  text-decoration: none;
  color: var(--text-primary);
  font-weight: 700;
  font-size: 1.25rem;
  letter-spacing: -0.02em;
}

.brand-logo {
  width: 36px;
  height: 36px;
  border-radius: 9px;
  box-shadow: 0 4px 12px rgba(99, 102, 241, 0.35);
  object-fit: cover;
  transition: transform 0.3s ease;
}

.brand-link:hover .brand-logo {
  transform: scale(1.08) rotate(4deg);
}

.brand-title {
  display: flex;
  align-items: center;
  gap: 6px;
}

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

.nav-menu {
  display: flex;
  align-items: center;
  gap: 32px;
  list-style: none;
}

.nav-link {
  text-decoration: none;
  color: var(--text-secondary);
  font-size: 0.95rem;
  font-weight: 500;
  transition: var(--transition);
  position: relative;
}

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

.nav-link.active::after {
  content: '';
  position: absolute;
  bottom: -6px;
  left: 0;
  right: 0;
  height: 2px;
  background: var(--accent-indigo);
  border-radius: 2px;
}

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

.theme-toggle-btn {
  background: var(--bg-tertiary);
  border: 1px solid var(--border-subtle);
  color: var(--text-secondary);
  width: 40px;
  height: 40px;
  border-radius: var(--radius-sm);
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: var(--transition);
}

.theme-toggle-btn:hover {
  color: var(--text-primary);
  border-color: var(--border-active);
}

.lang-toggle-btn {
  background: var(--bg-tertiary);
  border: 1px solid var(--border-subtle);
  color: var(--text-primary);
  padding: 0 12px;
  height: 40px;
  border-radius: var(--radius-sm);
  display: flex;
  align-items: center;
  gap: 6px;
  font-size: 0.82rem;
  font-weight: 700;
  cursor: pointer;
  transition: var(--transition);
  user-select: none;
}

.lang-toggle-btn:hover {
  color: var(--text-primary);
  border-color: var(--border-active);
  background: var(--bg-card-hover);
}

.lang-toggle-btn .lang-badge {
  background: rgba(99, 102, 241, 0.15);
  color: #818cf8;
  padding: 2px 6px;
  border-radius: 4px;
  font-size: 0.72rem;
}

.github-btn-group {
  display: flex;
  align-items: center;
  gap: 8px;
}

.github-btn {
  display: flex;
  align-items: center;
  gap: 7px;
  padding: 8px 13px;
  background: var(--bg-tertiary);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-sm);
  color: var(--text-primary);
  text-decoration: none;
  font-size: 0.84rem;
  font-weight: 600;
  transition: var(--transition);
  white-space: nowrap;
}

.github-btn:hover {
  border-color: var(--border-active);
  background: var(--bg-card-hover);
  transform: translateY(-1px);
}

.github-btn-zed {
  border-color: rgba(16, 185, 129, 0.25);
  color: #34d399;
}

.github-btn-zed:hover {
  border-color: rgba(16, 185, 129, 0.6);
  background: rgba(16, 185, 129, 0.12);
  color: #6ee7b7;
  box-shadow: 0 2px 10px rgba(16, 185, 129, 0.2);
}

.github-btn-vscode {
  border-color: rgba(14, 165, 233, 0.25);
  color: #38bdf8;
}

.github-btn-vscode:hover {
  border-color: rgba(14, 165, 233, 0.6);
  background: rgba(14, 165, 233, 0.12);
  color: #7dd3fc;
  box-shadow: 0 2px 10px rgba(14, 165, 233, 0.2);
}

.mobile-menu-btn {
  display: none;
  background: none;
  border: none;
  color: var(--text-primary);
  cursor: pointer;
}

/* ==========================================================================
   Hero Section
   ========================================================================== */

.hero-section {
  padding: 80px 0 60px;
  text-align: center;
  position: relative;
}

.release-pill {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  line-height: 1;
  padding: 6px 16px;
  border-radius: var(--radius-full);
  background: rgba(99, 102, 241, 0.1);
  border: 1px solid rgba(99, 102, 241, 0.25);
  color: #c7d2fe;
  font-size: 0.85rem;
  font-weight: 600;
  margin-bottom: 28px;
  box-shadow: 0 0 20px rgba(99, 102, 241, 0.15);
  animation: pulse-border 3s infinite;
}

@keyframes pulse-border {
  0%, 100% { border-color: rgba(99, 102, 241, 0.3); }
  50% { border-color: rgba(168, 85, 247, 0.6); }
}

.release-pill .live-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: #34d399;
  box-shadow: 0 0 0 0 rgba(52, 211, 153, 0.55);
  flex: 0 0 8px;
  align-self: center;
  animation: live-dot-breathe 2.2s ease-in-out infinite;
}

@keyframes live-dot-breathe {
  0%, 100% { box-shadow: 0 0 0 0 rgba(52, 211, 153, 0.55); }
  50% { box-shadow: 0 0 0 5px rgba(52, 211, 153, 0); }
}

.release-pill .badge {
  background: var(--accent-indigo);
  color: #ffffff;
  padding: 2px 8px;
  border-radius: var(--radius-full);
  font-size: 0.75rem;
}

.hero-title {
  font-size: clamp(2.5rem, 5.5vw, 4.2rem);
  font-weight: 800;
  line-height: 1.15;
  letter-spacing: -0.04em;
  margin-bottom: 22px;
  color: var(--text-primary);
}

.hero-title .gradient-text {
  background: var(--hero-gradient);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  display: inline-block;
}

.hero-subtitle {
  font-size: clamp(1.05rem, 2vw, 1.25rem);
  color: var(--text-secondary);
  max-width: 780px;
  margin: 0 auto 36px;
  line-height: 1.65;
}

.hero-cta-group {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 16px;
  flex-wrap: wrap;
  margin-bottom: 50px;
}

.btn {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 13px 26px;
  font-size: 1rem;
  font-weight: 600;
  border-radius: var(--radius-md);
  text-decoration: none;
  cursor: pointer;
  transition: var(--transition);
  border: 1px solid transparent;
}

.btn-zed {
  background: var(--zed-gradient);
  color: #042f2e;
  font-weight: 700;
  box-shadow: 0 4px 20px rgba(16, 185, 129, 0.35);
}

.btn-zed:hover {
  transform: translateY(-2px);
  box-shadow: 0 6px 28px rgba(16, 185, 129, 0.5);
  filter: brightness(1.06);
}

.btn-vscode {
  background: var(--vscode-gradient);
  color: #ffffff;
  font-weight: 700;
  box-shadow: 0 4px 20px rgba(14, 165, 233, 0.35);
}

.btn-vscode:hover {
  transform: translateY(-2px);
  box-shadow: 0 6px 28px rgba(14, 165, 233, 0.5);
  filter: brightness(1.06);
}

.btn-ghost {
  background: var(--bg-card);
  color: var(--text-primary);
  border: 1px solid var(--border-subtle);
  backdrop-filter: blur(8px);
}

.btn-ghost:hover {
  background: var(--bg-card-hover);
  border-color: var(--border-active);
  transform: translateY(-2px);
}

/* ==========================================================================
   Interactive Showcase Frame
   ========================================================================== */

.showcase-wrapper {
  max-width: 1080px;
  margin: 0 auto;
  perspective: 1000px;
}

.showcase-switcher {
  display: inline-flex;
  align-items: center;
  background: var(--bg-secondary);
  padding: 6px;
  border-radius: var(--radius-lg);
  border: 1px solid var(--border-subtle);
  margin-bottom: 24px;
  box-shadow: var(--shadow-sm);
}

.switcher-tab {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 10px 22px;
  border-radius: var(--radius-md);
  font-size: 0.95rem;
  font-weight: 600;
  border: none;
  background: transparent;
  color: var(--text-secondary);
  cursor: pointer;
  transition: var(--transition);
}

.switcher-tab.active-zed {
  background: rgba(16, 185, 129, 0.15);
  color: #34d399;
  border: 1px solid rgba(16, 185, 129, 0.35);
  box-shadow: 0 2px 10px rgba(16, 185, 129, 0.2);
}

.switcher-tab.active-vscode {
  background: rgba(14, 165, 233, 0.15);
  color: #38bdf8;
  border: 1px solid rgba(14, 165, 233, 0.35);
  box-shadow: 0 2px 10px rgba(14, 165, 233, 0.2);
}

.editor-window {
  background: var(--bg-secondary);
  border-radius: var(--radius-lg);
  border: 1px solid var(--border-subtle);
  overflow: hidden;
  box-shadow: var(--shadow-lg), var(--shadow-glow);
  text-align: left;
  transition: var(--transition);
}

.editor-titlebar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 14px 20px;
  background: rgba(15, 19, 28, 0.9);
  border-bottom: 1px solid var(--border-subtle);
}

.window-controls {
  display: flex;
  align-items: center;
  gap: 8px;
}

.dot {
  width: 12px;
  height: 12px;
  border-radius: 50%;
}

.dot.red { background: #ef4444; }
.dot.yellow { background: #eab308; }
.dot.green { background: #22c55e; }

.window-title {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 0.85rem;
  font-weight: 500;
  color: var(--text-muted);
}

.window-badge {
  font-size: 0.75rem;
  padding: 2px 8px;
  border-radius: 4px;
  font-weight: 600;
}

.window-badge.zed-badge {
  background: rgba(16, 185, 129, 0.15);
  color: #34d399;
}

.window-badge.vscode-badge {
  background: rgba(14, 165, 233, 0.15);
  color: #38bdf8;
}

.editor-body {
  display: grid;
  grid-template-columns: 260px 1fr;
  min-height: 480px;
}

/* Sidebar Simulation */
.editor-sidebar {
  background: rgba(12, 15, 23, 0.85);
  border-right: 1px solid var(--border-subtle);
  padding: 16px;
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.sidebar-heading {
  font-size: 0.75rem;
  font-weight: 700;
  color: var(--text-muted);
  text-transform: uppercase;
  letter-spacing: 0.06em;
}

.tree-list {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.tree-item {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 6px 10px;
  border-radius: var(--radius-sm);
  font-size: 0.85rem;
  color: var(--text-secondary);
  cursor: pointer;
  transition: var(--transition);
}

.tree-item:hover, .tree-item.active {
  background: rgba(255, 255, 255, 0.06);
  color: var(--text-primary);
}

.tree-item .badge-pill {
  margin-left: auto;
  font-size: 0.7rem;
  padding: 1px 6px;
  border-radius: 4px;
}

.badge-dev { background: rgba(16, 185, 129, 0.2); color: #34d399; }
.badge-prod { background: rgba(245, 158, 11, 0.2); color: #fbbf24; }
.badge-group { background: rgba(99, 102, 241, 0.2); color: #a5b4fc; }

/* Editor Main Content Area */
.editor-content-area {
  display: flex;
  flex-direction: column;
  background: var(--bg-secondary);
}

.editor-tabs {
  display: flex;
  background: rgba(15, 19, 28, 0.6);
  border-bottom: 1px solid var(--border-subtle);
  overflow-x: auto;
}

.editor-tab {
  padding: 10px 18px;
  font-size: 0.82rem;
  font-family: var(--font-mono);
  color: var(--text-muted);
  border-right: 1px solid var(--border-subtle);
  display: flex;
  align-items: center;
  gap: 8px;
}

.editor-tab.active {
  background: var(--bg-secondary);
  color: var(--text-primary);
  border-top: 2px solid var(--accent-indigo);
}

.code-view {
  padding: 20px;
  font-family: var(--font-mono);
  font-size: 0.88rem;
  line-height: 1.6;
  overflow-x: auto;
  color: var(--text-code);
  flex: 1;
}

.token-key { color: #38bdf8; }
.token-str { color: #34d399; }
.token-num { color: #f59e0b; }
.token-bool { color: #ec4899; }
.token-comment { color: #64748b; font-style: italic; }

/* Editor Terminal Drawer */
.editor-terminal {
  border-top: 1px solid var(--border-subtle);
  background: #090b10;
  padding: 14px 20px;
  font-family: var(--font-mono);
  font-size: 0.82rem;
  max-height: 160px;
  overflow-y: auto;
}

.terminal-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 8px;
  color: var(--text-muted);
  font-size: 0.75rem;
  text-transform: uppercase;
}

.terminal-line {
  margin-bottom: 4px;
  color: var(--text-secondary);
}

.terminal-prompt { color: #38bdf8; }
.terminal-success { color: #34d399; }
.terminal-accent { color: #a855f7; }

/* ==========================================================================
   Problem vs Solution Grid
   ========================================================================== */

.section {
  padding: 100px 0;
  position: relative;
}

.section-header {
  text-align: center;
  max-width: 720px;
  margin: 0 auto 60px;
}

.section-tag {
  display: inline-block;
  font-size: 0.82rem;
  font-weight: 700;
  color: var(--accent-indigo);
  text-transform: uppercase;
  letter-spacing: 0.08em;
  margin-bottom: 12px;
}

.section-title {
  font-size: clamp(2rem, 3.8vw, 2.75rem);
  font-weight: 800;
  letter-spacing: -0.03em;
  line-height: 1.2;
  margin-bottom: 18px;
}

.section-desc {
  color: var(--text-secondary);
  font-size: 1.1rem;
}

.features-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 24px;
}

.feature-card {
  background: var(--bg-card);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-lg);
  padding: 32px;
  position: relative;
  overflow: hidden;
  backdrop-filter: blur(12px);
  transition: var(--transition);
}

.feature-card:hover {
  background: var(--bg-card-hover);
  border-color: var(--border-glow);
  transform: translateY(-4px);
  box-shadow: var(--shadow-md);
}

.feature-icon-wrapper {
  width: 52px;
  height: 52px;
  border-radius: var(--radius-md);
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 20px;
  font-size: 1.5rem;
}

.icon-purple { background: rgba(99, 102, 241, 0.15); color: #818cf8; }
.icon-emerald { background: rgba(16, 185, 129, 0.15); color: #34d399; }
.icon-cyan { background: rgba(6, 182, 212, 0.15); color: #22d3ee; }
.icon-pink { background: rgba(236, 72, 153, 0.15); color: #f472b6; }

.feature-title {
  font-size: 1.25rem;
  font-weight: 700;
  margin-bottom: 10px;
  color: var(--text-primary);
}

.feature-desc {
  color: var(--text-secondary);
  font-size: 0.95rem;
  line-height: 1.6;
}

/* ==========================================================================
   Dual Edition Deep Dive Cards
   ========================================================================== */

.deep-dive-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 32px;
  margin-top: 40px;
}

.edition-box {
  background: var(--bg-secondary);
  border-radius: var(--radius-lg);
  border: 1px solid var(--border-subtle);
  padding: 40px;
  position: relative;
  overflow: hidden;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
}

.edition-box.zed-box {
  border-top: 4px solid var(--zed-accent);
}

.edition-box.vscode-box {
  border-top: 4px solid var(--vscode-accent);
}

.edition-header {
  display: flex;
  align-items: center;
  gap: 14px;
  margin-bottom: 18px;
}

.edition-icon {
  width: 44px;
  height: 44px;
  border-radius: var(--radius-sm);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.4rem;
}

.edition-name {
  font-size: 1.6rem;
  font-weight: 800;
}

.edition-badge {
  font-size: 0.75rem;
  font-weight: 700;
  padding: 4px 10px;
  border-radius: var(--radius-full);
}

.edition-desc {
  color: var(--text-secondary);
  font-size: 1rem;
  margin-bottom: 24px;
}

.feature-checklist {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 12px;
  margin-bottom: 32px;
}

.feature-checklist li {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  font-size: 0.95rem;
  color: var(--text-secondary);
}

.check-icon {
  color: var(--accent-emerald);
  font-weight: 700;
  flex-shrink: 0;
  margin-top: 2px;
}

/* ==========================================================================
   Comparison Table
   ========================================================================== */

.table-wrapper {
  background: var(--bg-card);
  border-radius: var(--radius-lg);
  border: 1px solid var(--border-subtle);
  overflow-x: auto;
  backdrop-filter: blur(12px);
  box-shadow: var(--shadow-md);
}

.comparison-table {
  width: 100%;
  border-collapse: collapse;
  text-align: left;
  font-size: 0.95rem;
}

.comparison-table th,
.comparison-table td {
  padding: 18px 24px;
  border-bottom: 1px solid var(--border-subtle);
}

.comparison-table th {
  background: rgba(15, 19, 28, 0.85);
  font-size: 0.88rem;
  font-weight: 700;
  color: var(--text-muted);
  text-transform: uppercase;
  letter-spacing: 0.05em;
}

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

.comparison-table td:first-child {
  font-weight: 600;
  color: var(--text-primary);
}

.comparison-table tr:hover td {
  background: rgba(255, 255, 255, 0.02);
}

.pill-status {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 3px 10px;
  border-radius: var(--radius-full);
  font-size: 0.8rem;
  font-weight: 600;
}

.pill-green { background: rgba(16, 185, 129, 0.15); color: #34d399; }
.pill-blue { background: rgba(14, 165, 233, 0.15); color: #38bdf8; }
.pill-red { background: rgba(239, 68, 68, 0.15); color: #f87171; }
.pill-gray { background: rgba(100, 116, 139, 0.15); color: #94a3b8; }

/* ==========================================================================
   Interactive Terminal Demo Section
   ========================================================================== */

.terminal-interactive-box {
  background: #090c13;
  border-radius: var(--radius-lg);
  border: 1px solid var(--border-subtle);
  overflow: hidden;
  box-shadow: var(--shadow-lg), var(--shadow-glow);
  max-width: 960px;
  margin: 0 auto;
}

.terminal-bar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 12px 20px;
  background: #111520;
  border-bottom: 1px solid var(--border-subtle);
}

.terminal-cmd-buttons {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
  padding: 14px 20px;
  background: rgba(17, 21, 32, 0.6);
  border-bottom: 1px solid var(--border-subtle);
}

.cmd-pill {
  background: var(--bg-tertiary);
  border: 1px solid var(--border-subtle);
  color: var(--text-secondary);
  font-family: var(--font-mono);
  font-size: 0.82rem;
  padding: 6px 14px;
  border-radius: var(--radius-sm);
  cursor: pointer;
  transition: var(--transition);
}

.cmd-pill:hover, .cmd-pill.active {
  background: rgba(99, 102, 241, 0.15);
  border-color: var(--accent-indigo);
  color: #c7d2fe;
}

.terminal-viewport {
  padding: 24px;
  font-family: var(--font-mono);
  font-size: 0.88rem;
  line-height: 1.65;
  color: #cbd5e1;
  min-height: 280px;
  max-height: 380px;
  overflow-y: auto;
}

/* ==========================================================================
   Installation Guides (Tabbed)
   ========================================================================== */

.install-tabs {
  display: flex;
  justify-content: center;
  gap: 12px;
  margin-bottom: 30px;
}

.install-tab-btn {
  padding: 10px 24px;
  font-size: 0.95rem;
  font-weight: 600;
  border-radius: var(--radius-full);
  background: var(--bg-secondary);
  border: 1px solid var(--border-subtle);
  color: var(--text-secondary);
  cursor: pointer;
  transition: var(--transition);
}

.install-tab-btn.active {
  background: var(--accent-indigo);
  color: #ffffff;
  border-color: var(--accent-indigo);
  box-shadow: 0 4px 16px rgba(99, 102, 241, 0.4);
}

.install-panel {
  display: none;
  max-width: 820px;
  margin: 0 auto;
}

.install-panel.active {
  display: block;
}

.step-card {
  background: var(--bg-card);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-md);
  padding: 24px;
  margin-bottom: 16px;
  display: flex;
  gap: 20px;
  align-items: flex-start;
}

.step-num {
  width: 32px;
  height: 32px;
  border-radius: 50%;
  background: rgba(99, 102, 241, 0.2);
  color: #a5b4fc;
  font-weight: 700;
  font-size: 0.9rem;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

.step-content {
  flex: 1;
}

.step-title {
  font-size: 1.05rem;
  font-weight: 700;
  margin-bottom: 6px;
  color: var(--text-primary);
}

.code-box {
  background: #090c13;
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-sm);
  padding: 10px 16px;
  font-family: var(--font-mono);
  font-size: 0.85rem;
  color: #38bdf8;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.copy-btn {
  background: transparent;
  border: none;
  color: var(--text-muted);
  cursor: pointer;
  padding: 4px 8px;
  border-radius: 4px;
  font-size: 0.8rem;
  transition: var(--transition);
}

.copy-btn:hover {
  color: var(--text-primary);
  background: rgba(255, 255, 255, 0.1);
}

/* ==========================================================================
   Footer
   ========================================================================== */

.site-footer {
  border-top: 1px solid var(--border-subtle);
  background: var(--bg-secondary);
  padding: 60px 0 30px;
  position: relative;
  z-index: 1;
}

.footer-top {
  display: flex;
  justify-content: space-between;
  gap: 40px;
  flex-wrap: wrap;
  margin-bottom: 40px;
}

.footer-brand {
  max-width: 320px;
}

.footer-desc {
  color: var(--text-secondary);
  font-size: 0.9rem;
  margin-top: 12px;
}

.footer-nav-group {
  display: flex;
  gap: 60px;
  flex-wrap: wrap;
}

.footer-col h4 {
  font-size: 0.85rem;
  font-weight: 700;
  text-transform: uppercase;
  color: var(--text-muted);
  letter-spacing: 0.06em;
  margin-bottom: 16px;
}

.footer-col ul {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.footer-col a {
  text-decoration: none;
  color: var(--text-secondary);
  font-size: 0.9rem;
  transition: var(--transition);
}

.footer-col a:hover {
  color: var(--text-primary);
}

.footer-bottom {
  border-top: 1px solid var(--border-subtle);
  padding-top: 24px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  color: var(--text-muted);
  font-size: 0.85rem;
  flex-wrap: wrap;
  gap: 12px;
}

/* ==========================================================================
   Toast Notification
   ========================================================================== */

.toast {
  position: fixed;
  bottom: 28px;
  right: 28px;
  background: #1e293b;
  color: #ffffff;
  padding: 10px 20px;
  border-radius: var(--radius-sm);
  box-shadow: var(--shadow-md);
  font-size: 0.88rem;
  font-weight: 500;
  z-index: 999;
  opacity: 0;
  transform: translateY(12px);
  transition: all 0.3s cubic-bezier(0.16, 1, 0.3, 1);
  pointer-events: none;
}

.toast.show {
  opacity: 1;
  transform: translateY(0);
}

/* ==========================================================================
   Responsive Queries
   ========================================================================== */

@media (max-width: 900px) {
  .deep-dive-grid {
    grid-template-columns: 1fr;
  }
  .editor-body {
    grid-template-columns: 1fr;
  }
  .editor-sidebar {
    display: none;
  }
  .nav-menu {
    display: none;
  }
  .mobile-menu-btn {
    display: block;
  }
}

@media (max-width: 640px) {
  .hero-title {
    font-size: 2.2rem;
  }
  .hero-cta-group {
    flex-direction: column;
    width: 100%;
  }
  .btn {
    width: 100%;
    justify-content: center;
  }
  .showcase-switcher {
    flex-direction: column;
    width: 100%;
  }
  .switcher-tab {
    width: 100%;
    justify-content: center;
  }
}

.step-note {
  margin-top: 10px;
  padding: 8px 12px;
  border-radius: 8px;
  border: 1px solid rgba(52, 211, 153, 0.28);
  background: rgba(16, 185, 129, 0.08);
  color: #a7f3d0;
  font-size: 0.86rem;
  line-height: 1.55;
}
