/* ════════════════════════════════════════════════
   DWANI - DESIGN SYSTEM (OBSIDIAN MINIMALIST)
   ════════════════════════════════════════════════ */

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

:root {
  /* Color Palette - Obsidian & Cobalt */
  --bg-obsidian: oklch(0.09 0.002 260);    /* Pure Midnight Obsidian */
  --bg-panel: oklch(0.13 0.004 260);       /* Panel Dark Gray */
  --bg-input: oklch(0.16 0.004 260);       /* Input Darker Gray */
  
  --accent-cobalt: oklch(0.60 0.22 255);   /* Premium Cobalt Laser Blue */
  --accent-cobalt-dim: oklch(0.60 0.22 255 / 0.12);
  
  --text-white: oklch(0.98 0.002 260);     /* Stark Crisp White */
  --text-muted: oklch(0.78 0.002 260);     /* Readability Muted Gray */
  --text-dark: oklch(0.55 0.002 260);      /* Subtitle/Secondary Gray */
  --text-dim: oklch(0.38 0.002 260);       /* Extremely Muted Gray */

  /* Borders & Lines */
  --border-light: rgba(255, 255, 255, 0.06);
  --border-medium: rgba(255, 255, 255, 0.12);
  --border-focus: oklch(0.60 0.22 255 / 0.40);
  
  /* System States */
  --live-red: oklch(0.58 0.21 24);
  --live-red-dim: oklch(0.58 0.21 24 / 0.12);
  
  /* Fonts */
  --font-sans: 'Inter', -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
  --font-display: 'Outfit', var(--font-sans);
  --font-mono: SFMono-Regular, Consolas, "Liberation Mono", Menlo, Courier, monospace;

  /* Shadows */
  --shadow-premium: 0 16px 40px rgba(0, 0, 0, 0.65);
}

/* ═══════════════ GENERAL STYLES ═══════════════ */
* {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

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

body {
  overflow-x: hidden;
  line-height: 1.6;
}

html {
  overflow-x: hidden;
}

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

/* Subtle dot layout background pattern */
.grid-bg-landing {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 900px;
  background-image: 
    radial-gradient(var(--border-light) 1px, transparent 1px);
  background-size: 32px 32px;
  pointer-events: none;
  z-index: 0;
  opacity: 0.65;
}

/* Typography styles */
h1, h2, h3, h4 {
  font-family: var(--font-display);
  color: var(--text-white);
  font-weight: 600;
  letter-spacing: -0.02em;
}

/* ═══════════════ BUTTONS & LAYOUTS ═══════════════ */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  font-family: var(--font-sans);
  font-size: 13.5px;
  font-weight: 500;
  padding: 10px 18px;
  border-radius: 8px;
  cursor: pointer;
  text-decoration: none;
  transition: all 0.15s cubic-bezier(0.16, 1, 0.3, 1);
  user-select: none;
}

.btn-primary {
  background: var(--text-white);
  color: var(--bg-obsidian);
  border: 1px solid var(--text-white);
}

.btn-primary:hover {
  opacity: 0.9;
  transform: translateY(-1px);
}

.btn-primary:active {
  transform: translateY(0);
}

.btn-secondary {
  background: transparent;
  color: var(--text-white);
  border: 1px solid var(--border-medium);
}

.btn-secondary:hover {
  background: var(--border-light);
  border-color: var(--text-white);
  transform: translateY(-1px);
}

.btn-secondary:active {
  transform: translateY(0);
}

.btn-lg {
  padding: 12px 24px;
  font-size: 14.5px;
  border-radius: 10px;
}

.badge-tag {
  font-family: var(--font-mono);
  font-size: 10.5px;
  font-weight: 600;
  color: var(--accent-cobalt);
  background: var(--accent-cobalt-dim);
  border: 1px solid rgba(255, 255, 255, 0.05);
  padding: 4px 10px;
  border-radius: 99px;
  letter-spacing: 0.03em;
}

/* ═══════════════ HEADER ═══════════════ */
header {
  position: sticky;
  top: 0;
  z-index: 100;
  height: 64px;
  display: flex;
  align-items: center;
  border-bottom: 1px solid var(--border-light);
  background: oklch(0.09 0.002 260 / 0.85);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
}

.logo-link {
  display: flex;
  align-items: center;
  gap: 8px;
  text-decoration: none;
}

.logo-text {
  font-family: var(--font-display);
  font-size: 18px;
  font-weight: 700;
  color: var(--text-white);
  letter-spacing: -0.01em;
}

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

.nav-link {
  color: var(--text-muted);
  text-decoration: none;
  font-size: 13.5px;
  font-weight: 450;
  transition: color 0.15s ease;
}

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

/* ═══════════════ HERO SECTION ═══════════════ */
.hero-sec {
  position: relative;
  z-index: 1;
  padding: 96px 24px 64px 24px;
  text-align: center;
  display: flex;
  flex-direction: column;
  align-items: center;
}

.hero-pill {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: var(--bg-panel);
  border: 1px solid var(--border-light);
  padding: 6px 12px;
  border-radius: 99px;
  font-size: 12.5px;
  color: var(--text-muted);
  margin-bottom: 28px;
}

.hero-pill-indicator {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--accent-cobalt);
}

.hero-sec h1 {
  font-size: 58px;
  line-height: 1.12;
  letter-spacing: -0.03em;
  max-width: 800px;
  margin-bottom: 20px;
  color: var(--text-white);
}

.hero-sec p.lead {
  font-size: 17.5px;
  color: var(--text-muted);
  max-width: 640px;
  line-height: 1.6;
  margin-bottom: 32px;
}

.hero-ctas {
  display: flex;
  gap: 16px;
  align-items: center;
  margin-bottom: 24px;
}

.hero-meta {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 6px 18px;
  font-size: 12px;
  color: var(--text-dark);
}

.hero-meta span {
  display: inline-flex;
  align-items: center;
  gap: 18px;
}

.hero-meta span:not(:first-child)::before {
  content: '·';
  color: var(--text-dim);
}

.hero-meta span b {
  color: var(--text-muted);
}

/* ═══════════════ INTERACTIVE SIMULATOR ═══════════════ */
.sim-section {
  padding: 48px 0 80px 0;
  position: relative;
  z-index: 2;
}

.sec-header {
  text-align: center;
  margin-bottom: 48px;
}

.sec-header h2 {
  font-size: 32px;
  letter-spacing: -0.025em;
  margin-bottom: 12px;
}

.sec-header p {
  font-size: 15px;
  color: var(--text-dark);
  max-width: 520px;
  margin: 0 auto;
}

.sim-container {
  display: grid;
  grid-template-columns: 240px 1fr;
  background: var(--bg-panel);
  border: 1px solid var(--border-light);
  border-radius: 14px;
  height: 540px;
  overflow: hidden;
  box-shadow: var(--shadow-premium);
}

/* Sidebar configuration toggles */
.sim-sidebar {
  border-right: 1px solid var(--border-light);
  padding: 24px;
  display: flex;
  flex-direction: column;
  gap: 28px;
  background: oklch(0.11 0.003 260);
}

.sidebar-group-title {
  font-family: var(--font-mono);
  font-size: 10px;
  font-weight: 600;
  text-transform: uppercase;
  color: var(--text-dark);
  letter-spacing: 0.08em;
  margin-bottom: 12px;
}

.app-selector, .variant-selector {
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.select-btn {
  background: transparent;
  border: 1px solid transparent;
  color: var(--text-muted);
  font-family: var(--font-sans);
  font-size: 12.5px;
  font-weight: 500;
  padding: 8px 12px;
  border-radius: 6px;
  text-align: left;
  cursor: pointer;
  display: flex;
  align-items: center;
  gap: 8px;
  transition: all 0.15s ease;
}

.select-btn:hover {
  background: var(--border-light);
  color: var(--text-white);
}

.select-btn.active {
  background: var(--bg-input);
  border-color: var(--border-light);
  color: var(--text-white);
  box-shadow: 0 1px 2px rgba(0, 0, 0, 0.2);
}

/* App Viewport Panel */
.sim-content {
  display: flex;
  flex-direction: column;
  height: 100%;
}

.window-titlebar {
  background: oklch(0.12 0.003 260);
  border-bottom: 1px solid var(--border-light);
  height: 40px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 16px;
}

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

.window-dots .dot {
  width: 10px;
  height: 10px;
  border-radius: 50%;
  opacity: 0.7;
}

.window-dots .dot.red { background: #ff5f56; }
.window-dots .dot.yellow { background: #ffbd2e; }
.window-dots .dot.green { background: #27c93f; }

.window-title {
  font-family: var(--font-mono);
  font-size: 11px;
  color: var(--text-dark);
}

/* Mockup Viewport OS Desktop */
.mockup-viewport {
  flex: 1;
  background: var(--bg-obsidian);
  position: relative;
  overflow: hidden;
  padding: 24px;
}

.mockup-app {
  display: none;
  height: 100%;
  width: 100%;
}

.mockup-app.active {
  display: block;
}

/* VS Code Mockup */
.code-editor {
  font-family: var(--font-mono);
  font-size: 12.5px;
  line-height: 1.7;
  color: oklch(0.85 0.005 260);
}

.editor-line {
  display: flex;
  gap: 16px;
}

.line-num {
  color: var(--text-dim);
  text-align: right;
  width: 24px;
  user-select: none;
}

.line-content {
  color: var(--text-muted);
}

/* Code Syntax Highlighting styles */
.keyword { color: oklch(0.68 0.15 300); }
.string { color: oklch(0.72 0.12 120); }
.comment { color: var(--text-dim); }

.cursor {
  display: inline-block;
  width: 2px;
  height: 14px;
  background: var(--text-white);
  animation: cursor-blink 1s infinite;
  vertical-align: middle;
  margin-left: 2px;
}

@keyframes cursor-blink {
  0%, 49% { opacity: 1; }
  50%, 100% { opacity: 0; }
}

/* Slack Mockup */
.slack-window {
  display: flex;
  flex-direction: column;
  height: 100%;
  font-size: 13px;
}

.slack-history {
  flex: 1;
  overflow-y: auto;
  display: flex;
  flex-direction: column;
  gap: 16px;
  margin-bottom: 16px;
}

.slack-message {
  display: flex;
  gap: 12px;
}

.slack-avatar {
  width: 32px;
  height: 32px;
  border-radius: 4px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 600;
  color: var(--text-white);
  font-size: 11px;
}

.slack-msg-content {
  display: flex;
  flex-direction: column;
  gap: 2px;
}

.slack-msg-user {
  font-weight: 700;
  color: var(--text-white);
}

.slack-msg-text {
  color: var(--text-muted);
}

.slack-input-box {
  background: var(--bg-panel);
  border: 1px solid var(--border-medium);
  border-radius: 8px;
  padding: 10px 14px;
  color: var(--text-muted);
  font-size: 13px;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

/* Terminal Mockup */
.terminal-window {
  font-family: var(--font-mono);
  font-size: 12.5px;
  line-height: 1.6;
  color: oklch(0.85 0.005 260);
}

.terminal-prompt {
  color: var(--accent-cobalt);
  font-weight: 700;
  margin-right: 8px;
  user-select: none;
}

.terminal-output {
  margin-top: 12px;
  color: var(--text-dark);
  font-size: 11.5px;
  white-space: pre-wrap;
  border-top: 1px solid var(--border-light);
  padding-top: 12px;
  display: none;
}

/* HUD Overlay Variant Mockups */
.indicator-overlay {
  position: absolute;
  pointer-events: none;
  z-index: 50;
  transition: all 0.2s cubic-bezier(0.16, 1, 0.3, 1);
  display: none;
}

.indicator-overlay.active {
  display: flex;
}

/* FLOATING PILL HUD */
.indicator-pill {
  bottom: 24px;
  left: 50%;
  transform: translateX(-50%) translateY(12px);
  opacity: 0;
  background: var(--bg-panel);
  border: 1px solid var(--border-medium);
  border-radius: 99px;
  padding: 6px 14px;
  align-items: center;
  gap: 10px;
  box-shadow: var(--shadow-premium);
}

.indicator-pill.recording {
  transform: translateX(-50%) translateY(0);
  opacity: 1;
}

.pill-dot {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--live-red);
  box-shadow: 0 0 6px var(--live-red);
  animation: status-pulse 1.5s infinite;
}

@keyframes status-pulse {
  0%, 100% { opacity: 1; }
  50% { opacity: 0.4; }
}

.pill-canvas {
  width: 60px;
  height: 16px;
  display: block;
}

.pill-time {
  font-family: var(--font-mono);
  font-size: 10px;
  color: var(--text-dark);
}

.pill-text {
  font-size: 12px;
  color: var(--text-white);
  max-width: 220px;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

/* SONIC SOUND ORB HUD */
.indicator-orb {
  bottom: 24px;
  right: 24px;
  width: 40px;
  height: 40px;
  border-radius: 50%;
  border: 1px solid var(--border-medium);
  background: var(--bg-panel);
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: var(--shadow-premium);
  opacity: 0;
  transform: scale(0.9);
  overflow: hidden;
}

.indicator-orb.recording {
  opacity: 1;
  transform: scale(1);
}

.orb-canvas {
  width: 40px;
  height: 40px;
  border-radius: 50%;
  display: block;
}

/* TOP OF WINDOW TIMELINE HUD */
.indicator-bar {
  position: absolute;
  top: 40px;
  left: 50%;
  transform: translateX(-50%) translateY(-20px);
  width: auto;
  background: var(--bg-panel);
  border: 1px solid var(--border-medium);
  border-top: none;
  padding: 6px 12px;
  border-bottom-left-radius: 8px;
  border-bottom-right-radius: 8px;
  display: flex;
  align-items: center;
  gap: 8px;
  box-shadow: 0 4px 12px rgba(0,0,0,0.3);
  opacity: 0;
  transition: all 0.2s cubic-bezier(0.16, 1, 0.3, 1);
  pointer-events: none;
  z-index: 10;
}

.indicator-bar.recording {
  opacity: 1;
  transform: translateX(-50%) translateY(0);
}

.bar-dot {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--live-red);
  box-shadow: 0 0 6px var(--live-red);
  animation: status-pulse 1.5s infinite;
}

.bar-title {
  font-size: 11px;
  color: var(--text-white);
  font-weight: 500;
  letter-spacing: 0.02em;
  white-space: nowrap;
}

/* CORNER STATUS HUD */
.indicator-hud {
  top: 56px;
  right: 16px;
  background: var(--bg-panel);
  border: 1px solid var(--border-medium);
  padding: 10px 14px;
  border-radius: 8px;
  box-shadow: var(--shadow-premium);
  flex-direction: column;
  gap: 6px;
  opacity: 0;
  transform: translateY(-8px);
}

.indicator-hud.recording {
  opacity: 1;
  transform: translateY(0);
}

.hud-title {
  font-size: 9.5px;
  color: var(--text-dark);
  font-family: var(--font-mono);
  text-transform: uppercase;
  letter-spacing: 0.05em;
}

/* Simulator Footer Controls */
.sim-footer-control {
  height: 72px;
  border-top: 1px solid var(--border-light);
  background: oklch(0.11 0.003 260);
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 0 24px;
}

.ptt-btn {
  background: var(--bg-input);
  border: 1px solid var(--border-medium);
  color: var(--text-white);
  padding: 10px 24px;
  border-radius: 99px;
  font-size: 13.5px;
  font-weight: 550;
  cursor: pointer;
  display: flex;
  align-items: center;
  gap: 10px;
  transition: all 0.15s ease;
  user-select: none;
}

.ptt-btn:hover {
  background: var(--border-light);
  border-color: var(--text-white);
}

.ptt-btn.recording {
  background: var(--live-red-dim);
  border-color: var(--live-red);
  color: var(--live-red);
  box-shadow: 0 0 12px var(--live-red-dim);
}

.ptt-btn .mic-icon {
  width: 14px;
  height: 14px;
  fill: currentColor;
}

.keyboard-hint {
  font-size: 10.5px;
  color: var(--text-dark);
  margin-top: 6px;
  text-align: center;
}

.kbd {
  font-family: var(--font-mono);
  background: var(--bg-input);
  border: 1px solid var(--border-medium);
  border-radius: 4px;
  padding: 1px 5px;
  color: var(--text-muted);
}

/* ═══════════════ KEY FEATURES GRID ═══════════════ */
.features-section {
  padding: 80px 0;
  border-top: 1px solid var(--border-light);
}

.features-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
}

.feature-card {
  background: var(--bg-panel);
  border: 1px solid var(--border-light);
  border-radius: 10px;
  padding: 28px;
  transition: all 0.15s ease;
}

.feature-card:hover {
  border-color: var(--border-medium);
  background: oklch(0.145 0.004 260);
}

.feature-icon-wrapper {
  width: 40px;
  height: 40px;
  border-radius: 6px;
  background: var(--bg-input);
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 20px;
  color: var(--text-white);
  border: 1px solid var(--border-light);
}

.feature-card h3 {
  font-size: 16.5px;
  margin-bottom: 10px;
}

.feature-card p {
  font-size: 13px;
  color: var(--text-dark);
  line-height: 1.55;
}

/* ═══════════════ BENCHMARKS SECTION ═══════════════ */
.benchmark-section {
  padding: 80px 0;
  border-top: 1px solid var(--border-light);
}

.benchmark-layout {
  display: grid;
  grid-template-columns: 1.1fr 1fr;
  gap: 48px;
  align-items: center;
}

.benchmark-text h2 {
  font-size: 32px;
  margin-bottom: 16px;
}

.benchmark-text p {
  font-size: 14.5px;
  color: var(--text-muted);
  line-height: 1.6;
  margin-bottom: 24px;
}

.benchmark-stats-mini {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 16px;
}

.stat-item {
  border-left: 1.5px solid var(--text-white);
  padding-left: 14px;
}

.stat-num {
  font-family: var(--font-display);
  font-size: 24px;
  font-weight: 700;
  color: var(--text-white);
}

.stat-lbl {
  font-size: 10px;
  color: var(--text-dark);
  text-transform: uppercase;
  letter-spacing: 0.05em;
  font-family: var(--font-mono);
}

.chart-card {
  background: var(--bg-panel);
  border: 1px solid var(--border-light);
  border-radius: 10px;
  padding: 24px;
}

.chart-title {
  font-size: 13px;
  font-weight: 600;
  color: var(--text-white);
  margin-bottom: 20px;
  display: flex;
  justify-content: space-between;
}

.chart-container {
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.chart-row {
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.chart-row-header {
  display: flex;
  justify-content: space-between;
  font-size: 11.5px;
}

.chart-label {
  color: var(--text-muted);
}

.chart-value {
  font-family: var(--font-mono);
  color: var(--text-dark);
}

.chart-bar-wrapper {
  height: 8px;
  background: var(--bg-input);
  border-radius: 4px;
  overflow: hidden;
}

.chart-bar {
  height: 100%;
  border-radius: 4px;
  transition: width 1.2s cubic-bezier(0.16, 1, 0.3, 1);
  width: 0;
}

.chart-bar.parakeet {
  background: var(--text-white);
}

.chart-bar.nemotron {
  background: var(--accent-cobalt);
}

.chart-bar.whisper {
  background: var(--text-dim);
}

.chart-bar.apple {
  background: oklch(0.24 0.002 260);
}

/* ═══════════════ VOCAB & PLAYGROUND SECTION ═══════════════ */
.vocab-section {
  padding: 80px 0;
  border-top: 1px solid var(--border-light);
}

.vocab-layout {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 48px;
}

.playground-card {
  background: var(--bg-panel);
  border: 1px solid var(--border-light);
  border-radius: 10px;
  padding: 20px;
}

.vocab-table-header {
  display: grid;
  grid-template-columns: 1fr 1fr;
  font-family: var(--font-mono);
  font-size: 10px;
  text-transform: uppercase;
  color: var(--text-dark);
  letter-spacing: 0.05em;
  padding-bottom: 10px;
  border-bottom: 1px solid var(--border-light);
  margin-bottom: 12px;
}

.vocab-list {
  display: flex;
  flex-direction: column;
  gap: 6px;
  margin-bottom: 16px;
}

.vocab-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 12px;
}

.vocab-input {
  background: var(--bg-input);
  border: 1px solid var(--border-light);
  padding: 8px 12px;
  border-radius: 6px;
  color: var(--text-white);
  font-family: var(--font-mono);
  font-size: 12px;
  width: 100%;
}

.vocab-input:focus {
  border-color: var(--border-focus);
  outline: none;
}

.playground-interactive {
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.playground-box {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.playground-textbox {
  width: 100%;
  height: 72px;
  background: var(--bg-input);
  border: 1px solid var(--border-light);
  border-radius: 6px;
  padding: 10px 12px;
  color: var(--text-muted);
  font-family: var(--font-sans);
  font-size: 13px;
  resize: none;
}

.playground-textbox:focus {
  border-color: var(--border-focus);
  outline: none;
}

.playground-output {
  min-height: 48px;
  background: oklch(0.11 0.002 260);
  border: 1px dashed var(--border-medium);
  border-radius: 6px;
  padding: 12px;
  font-size: 13px;
  color: var(--text-white);
  display: flex;
  align-items: center;
}

/* ═══════════════ FAQ SECTION ═══════════════ */
.faq-section {
  padding: 80px 0;
  border-top: 1px solid var(--border-light);
}

.faq-list {
  max-width: 680px;
  margin: 0 auto;
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.faq-item {
  background: var(--bg-panel);
  border: 1px solid var(--border-light);
  border-radius: 8px;
  overflow: hidden;
  transition: all 0.15s ease;
}

.faq-item:hover {
  border-color: var(--border-medium);
}

.faq-trigger {
  width: 100%;
  padding: 18px 20px;
  background: transparent;
  border: none;
  text-align: left;
  color: var(--text-white);
  font-family: var(--font-sans);
  font-size: 14.5px;
  font-weight: 550;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.faq-answer {
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.2s cubic-bezier(0.16, 1, 0.3, 1), padding 0.2s ease;
  color: var(--text-muted);
  font-size: 13px;
  line-height: 1.55;
  padding: 0 20px;
}

.faq-item.active {
  border-color: var(--border-medium);
}

.faq-item.active .faq-answer {
  max-height: 140px;
  padding-bottom: 18px;
}

.faq-chevron {
  width: 12px;
  height: 12px;
  transition: transform 0.2s;
  fill: none;
  stroke: var(--text-dark);
  stroke-width: 2;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.faq-item.active .faq-chevron {
  transform: rotate(180deg);
  stroke: var(--text-white);
}

/* ═══════════════ BOTTOM CTA SECTION ═══════════════ */
.bottom-cta {
  padding: 96px 0;
  border-top: 1px solid var(--border-light);
  text-align: center;
}

.cta-box {
  max-width: 580px;
  margin: 0 auto;
  display: flex;
  flex-direction: column;
  align-items: center;
}

.cta-box h2 {
  font-size: 38px;
  letter-spacing: -0.025em;
  margin-bottom: 16px;
}

.cta-box p {
  font-size: 15.5px;
  color: var(--text-muted);
  margin-bottom: 28px;
  line-height: 1.55;
}

/* ═══════════════ FOOTER ═══════════════ */
footer {
  border-top: 1px solid var(--border-light);
  padding: 36px 0;
  background: oklch(0.08 0.001 260);
  font-size: 12px;
  color: var(--text-dark);
}

.footer-content {
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 16px;
}

.footer-left {
  display: flex;
  align-items: center;
  gap: 10px;
}

.footer-links {
  display: flex;
  gap: 20px;
}

.footer-link {
  color: var(--text-dark);
  text-decoration: none;
  transition: color 0.15s;
}

.footer-link:hover {
  color: var(--text-white);
}

/* ═══════════════ ANIMATIONS & RESPONSIVE ═══════════════ */
@media (prefers-reduced-motion: no-preference) {
  @supports ((animation-timeline: view()) and (animation-range: entry)) {
    @keyframes reveal {
      from { opacity: 0; transform: translateY(20px); }
      to { opacity: 1; transform: translateY(0); }
    }

    .scroll-reveal {
      animation: reveal auto linear both;
      animation-timeline: view();
      animation-range: entry 5% cover 25%;
    }
  }
}

/* Mobile-only CTA blocks — hidden by default, swapped in at ≤600px */
.cta-mobile { display: none; }
.mac-only-note { display: none; }

@media (max-width: 860px) {
  .sim-container {
    grid-template-columns: 1fr;
    height: auto;
  }

  .sim-sidebar {
    border-right: none;
    border-bottom: 1px solid var(--border-light);
    flex-direction: row;
    flex-wrap: wrap;
    justify-content: space-between;
    gap: 12px;
    padding: 16px;
  }

  .sim-sidebar > div {
    flex: 1;
    min-width: 140px;
  }

  .app-selector, .variant-selector {
    flex-direction: row;
    flex-wrap: wrap;
  }

  .select-btn {
    flex: 1;
    justify-content: center;
  }

  .sim-content {
    height: 400px;
  }

  .features-grid {
    grid-template-columns: repeat(2, 1fr);
  }

  .benchmark-layout, .vocab-layout {
    grid-template-columns: 1fr;
    gap: 32px;
  }
}

@media (max-width: 600px) {
  .hero-sec {
    padding: 64px 24px 48px 24px;
  }

  .hero-sec h1 {
    font-size: 38px;
  }

  .hero-sec p.lead {
    font-size: 15px;
  }

  .hero-ctas {
    flex-direction: column;
    width: 100%;
    gap: 12px;
  }

  .hero-ctas .btn {
    width: 100%;
  }

  .cta-box h2 {
    font-size: 28px;
  }

  .features-grid {
    grid-template-columns: 1fr;
  }

  /* Header: hide nav links + version badge so logo + Download fit cleanly */
  .nav-links { display: none; }
  header .badge-tag { display: none; }

  /* Homebrew widget is a CLI command — hidden on phones */
  .brew-install-box { display: none; }

  /* Swap desktop DMG button for mobile copy/email actions */
  .cta-desktop { display: none; }
  .cta-mobile { display: inline-flex; }

  .mac-only-note {
    display: block;
    font-size: 12.5px;
    color: var(--text-dark);
    margin-bottom: 16px;
    line-height: 1.4;
    max-width: 320px;
  }

  .bottom-cta .mac-only-note {
    text-align: center;
  }

  /* Stacked mobile buttons in bottom CTA need spacing */
  .bottom-cta #bottom-copy-link-btn,
  .bottom-cta #bottom-email-link-btn {
    width: 100%;
    max-width: 320px;
    margin-top: 0;
  }

  .bottom-cta #bottom-email-link-btn {
    margin-top: 12px;
  }
}

/* ═══════════════ DEVELOPER CONVERSION ADDITIONS ═══════════════ */

/* Homebrew installation block */
.brew-install-box {
  display: flex;
  align-items: center;
  justify-content: space-between;
  background: var(--bg-panel);
  border: 1px solid var(--border-light);
  border-radius: 8px;
  padding: 8px 16px;
  font-family: var(--font-mono);
  font-size: 13px;
  width: 100%;
  max-width: 380px;
  margin: 16px auto 32px auto;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
}

.brew-prompt {
  color: var(--text-white);
  user-select: all;
}

.brew-copy-btn {
  background: transparent;
  border: 1px solid var(--border-medium);
  color: var(--text-muted);
  font-size: 11px;
  padding: 4px 8px;
  border-radius: 4px;
  cursor: pointer;
  display: flex;
  align-items: center;
  gap: 6px;
  transition: all 0.15s ease;
  font-family: var(--font-sans);
}

.brew-copy-btn:hover {
  background: var(--border-light);
  border-color: var(--text-white);
  color: var(--text-white);
}

.brew-copy-btn.copied {
  background: var(--accent-cobalt-dim);
  border-color: var(--accent-cobalt);
  color: var(--text-white);
}

#hero-copy-link-btn.copied,
#bottom-copy-link-btn.copied {
  background: var(--accent-cobalt);
  border-color: var(--accent-cobalt);
  color: var(--text-white);
}

/* Workflow Integration Bar */
.workflow-integration {
  margin-top: 8px;
  text-align: center;
}

.workflow-title {
  font-size: 11px;
  color: var(--text-dark);
  text-transform: uppercase;
  letter-spacing: 0.05em;
  font-weight: 500;
  display: block;
  margin-bottom: 12px;
}

.workflow-badges {
  display: flex;
  justify-content: center;
  flex-wrap: wrap;
  gap: 8px 16px;
}

.workflow-badges span {
  display: inline-flex;
  align-items: center;
  gap: 16px;
  font-size: 12.5px;
  font-weight: 500;
  color: var(--text-dark);
  transition: color 0.15s ease;
  user-select: none;
}

.workflow-badges span:not(:first-child)::before {
  content: '·';
  color: var(--text-dim);
}

.workflow-badges span:hover {
  color: var(--text-white);
}

/* Comparison Matrix Section */
.comparison-section {
  padding: 80px 0;
  border-top: 1px solid var(--border-light);
}

.comparison-table-wrapper {
  margin-top: 40px;
  border: 1px solid var(--border-light);
  border-radius: 12px;
  overflow: hidden;
  background: var(--bg-panel);
  box-shadow: var(--shadow-premium);
}

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

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

.comparison-table th {
  background: oklch(0.11 0.003 260);
  color: var(--text-white);
  font-weight: 600;
  font-family: var(--font-display);
  font-size: 14.5px;
}

.comparison-table td.feature-name {
  font-weight: 500;
  color: var(--text-white);
}

.comparison-table td.highlight,
.comparison-table th.highlight {
  border-left: 1px solid var(--border-light);
  border-right: 1px solid var(--border-light);
  background: oklch(0.15 0.004 260 / 0.3);
}

.comparison-table td.highlight {
  color: var(--text-white);
  font-weight: 500;
}

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

@media (max-width: 768px) {
  .comparison-table th,
  .comparison-table td {
    padding: 12px 16px;
    font-size: 12.5px;
  }
}

/* Final mobile overrides — placed last so they win cascade vs. base styles
   defined below the main 600px block (e.g. .brew-install-box) */
@media (max-width: 600px) {
  .brew-install-box { display: none; }
}
