/* Simple, modern, clean styling for Dictation App core website */
:root {
  --bg: #0c0d0e;
  --surface: #141618;
  --surface-border: #24282c;
  --surface-hover: #1c1f22;
  --text: #f0f2f5;
  --text-muted: #8b949e;
  --accent: #3b82f6;
  --accent-hover: #2563eb;
  --accent-glow: rgba(59, 130, 246, 0.15);
  --success: #10b981;
  --danger: #ef4444;
  --font: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Oxygen, Ubuntu, Cantarell, "Helvetica Neue", sans-serif;
  --font-mono: ui-monospace, SFMono-Regular, "SF Mono", Menlo, Consolas, monospace;
  --max-w: 1120px;
}

@media (prefers-color-scheme: light) {
  :root {
    --bg: #f8fafc;
    --surface: #ffffff;
    --surface-border: #e2e8f0;
    --surface-hover: #f1f5f9;
    --text: #0f172a;
    --text-muted: #64748b;
    --accent: #2563eb;
    --accent-hover: #1d4ed8;
    --accent-glow: rgba(37, 99, 235, 0.08);
  }
}

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

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

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

.container {
  max-width: var(--max-w);
  margin: 0 auto;
  padding: 0 24px;
}

/* Nav */
nav {
  border-bottom: 1px solid var(--surface-border);
  background: rgba(12, 13, 14, 0.8);
  backdrop-filter: blur(12px);
  position: sticky;
  top: 0;
  z-index: 100;
}

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

.brand {
  display: flex;
  align-items: center;
  gap: 10px;
  font-weight: 700;
  font-size: 1.15rem;
  letter-spacing: -0.02em;
}

.brand-badge {
  background: var(--surface-hover);
  border: 1px solid var(--surface-border);
  font-size: 0.72rem;
  padding: 2px 8px;
  border-radius: 999px;
  color: var(--text-muted);
  font-family: var(--font-mono);
}

.nav-links {
  display: flex;
  align-items: center;
  gap: 24px;
  font-size: 0.92rem;
  color: var(--text-muted);
}

.nav-links a:hover {
  color: var(--text);
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  font-weight: 600;
  font-size: 0.95rem;
  padding: 10px 20px;
  border-radius: 8px;
  transition: all 0.15s ease;
  cursor: pointer;
}

.btn-primary {
  background: var(--accent);
  color: #fff;
  border: 1px solid transparent;
}

.btn-primary:hover {
  background: var(--accent-hover);
}

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

.btn-secondary:hover {
  background: var(--surface-hover);
}

/* Hero Section */
.hero {
  padding: 80px 0 60px;
  text-align: center;
}

.pill {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 6px 14px;
  border-radius: 999px;
  background: var(--surface);
  border: 1px solid var(--surface-border);
  font-size: 0.85rem;
  color: var(--text-muted);
  margin-bottom: 24px;
}

.pill-accent {
  color: var(--accent);
  font-weight: 600;
}

h1 {
  font-size: clamp(2.5rem, 5vw, 4rem);
  font-weight: 800;
  letter-spacing: -0.035em;
  line-height: 1.1;
  max-width: 900px;
  margin: 0 auto 20px;
}

.hero p {
  font-size: clamp(1.1rem, 2vw, 1.3rem);
  color: var(--text-muted);
  max-width: 720px;
  margin: 0 auto 36px;
  line-height: 1.5;
}

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

/* WPM Comparison Widget */
.wpm-widget {
  background: var(--surface);
  border: 1px solid var(--surface-border);
  border-radius: 16px;
  padding: 32px;
  max-width: 860px;
  margin: 0 auto 80px;
  box-shadow: 0 20px 40px rgba(0,0,0,0.3);
}

.wpm-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 24px;
  text-align: left;
}

@media (max-width: 640px) {
  .wpm-grid {
    grid-template-columns: 1fr;
  }
}

.wpm-card {
  padding: 24px;
  border-radius: 12px;
  background: rgba(255, 255, 255, 0.02);
  border: 1px solid var(--surface-border);
}

.wpm-card.highlight {
  border-color: var(--accent);
  background: var(--accent-glow);
}

.wpm-number {
  font-size: 3rem;
  font-weight: 800;
  line-height: 1;
  margin: 12px 0 8px;
}

/* Terminal Mockup */
.terminal-window {
  background: #090a0b;
  border: 1px solid var(--surface-border);
  border-radius: 12px;
  overflow: hidden;
  max-width: 860px;
  margin: 0 auto 80px;
  text-align: left;
}

.terminal-header {
  background: #141618;
  padding: 12px 16px;
  display: flex;
  align-items: center;
  gap: 8px;
  border-bottom: 1px solid var(--surface-border);
}

.dot {
  width: 10px;
  height: 10px;
  border-radius: 50%;
}
.dot-red { background: #ef4444; }
.dot-yellow { background: #f59e0b; }
.dot-green { background: #10b981; }

.terminal-body {
  padding: 24px;
  font-family: var(--font-mono);
  font-size: 0.9rem;
  line-height: 1.7;
}

/* Features Grid */
.features-section {
  padding: 60px 0;
  border-top: 1px solid var(--surface-border);
}

.section-head {
  text-align: center;
  max-width: 680px;
  margin: 0 auto 48px;
}

.section-head h2 {
  font-size: 2.2rem;
  font-weight: 700;
  letter-spacing: -0.02em;
  margin-bottom: 12px;
}

.section-head p {
  color: var(--text-muted);
  font-size: 1.1rem;
}

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

.card {
  background: var(--surface);
  border: 1px solid var(--surface-border);
  border-radius: 12px;
  padding: 28px;
  transition: transform 0.15s ease, border-color 0.15s ease;
}

.card:hover {
  border-color: #3b82f6;
  transform: translateY(-2px);
}

.card-icon {
  font-size: 1.8rem;
  margin-bottom: 16px;
  display: inline-block;
}

.card h3 {
  font-size: 1.25rem;
  font-weight: 600;
  margin-bottom: 10px;
  letter-spacing: -0.01em;
}

.card p {
  color: var(--text-muted);
  font-size: 0.95rem;
}

/* Calculator Table */
.calc-table {
  width: 100%;
  border-collapse: collapse;
  margin: 24px 0;
  text-align: left;
}

.calc-table th, .calc-table td {
  padding: 14px 18px;
  border-bottom: 1px solid var(--surface-border);
}

.calc-table th {
  color: var(--text-muted);
  font-size: 0.85rem;
  text-transform: uppercase;
  letter-spacing: 0.05em;
}

/* Footer */
footer {
  border-top: 1px solid var(--surface-border);
  padding: 60px 0 40px;
  margin-top: 100px;
  color: var(--text-muted);
  font-size: 0.9rem;
}

.footer-grid {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr 1fr;
  gap: 40px;
  margin-bottom: 48px;
}

@media (max-width: 768px) {
  .footer-grid {
    grid-template-columns: 1fr 1fr;
  }
}

.footer-col h4 {
  color: var(--text);
  font-size: 0.95rem;
  margin-bottom: 16px;
}

.footer-col ul {
  list-style: none;
}

.footer-col li {
  margin-bottom: 10px;
}

.footer-bottom {
  display: flex;
  align-items: center;
  justify-content: space-between;
  border-top: 1px solid var(--surface-border);
  padding-top: 24px;
}

/* Docs Layout & Components */
.docs-layout {
  display: grid;
  grid-template-columns: 260px 1fr;
  gap: 48px;
  margin: 40px auto 80px;
  align-items: start;
}

@media (max-width: 860px) {
  .docs-layout {
    grid-template-columns: 1fr;
    gap: 32px;
  }
}

.docs-sidebar {
  position: sticky;
  top: 90px;
  background: var(--surface);
  border: 1px solid var(--surface-border);
  border-radius: 12px;
  padding: 20px;
}

.docs-nav-group {
  margin-bottom: 24px;
}

.docs-nav-group:last-child {
  margin-bottom: 0;
}

.docs-nav-title {
  font-size: 0.72rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--text-muted);
  margin-bottom: 8px;
  padding-left: 8px;
}

.docs-nav-list {
  list-style: none;
}

.docs-nav-list li {
  margin-bottom: 4px;
}

.docs-nav-list a {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 0.88rem;
  color: var(--text-muted);
  padding: 8px 10px;
  border-radius: 6px;
  transition: all 0.15s ease;
}

.docs-nav-list a:hover {
  color: var(--text);
  background: var(--surface-hover);
}

.docs-nav-list a.active {
  color: #3b82f6;
  background: var(--accent-glow);
  font-weight: 600;
  border-left: 2px solid var(--accent);
}

.docs-content {
  min-width: 0;
}

.docs-content h1 {
  font-size: 2.2rem;
  font-weight: 700;
  letter-spacing: -0.03em;
  margin-bottom: 12px;
}

.docs-content .lead {
  font-size: 1.15rem;
  color: var(--text-muted);
  margin-bottom: 32px;
  line-height: 1.6;
}

.docs-content h2 {
  font-size: 1.35rem;
  font-weight: 600;
  margin: 40px 0 16px;
  letter-spacing: -0.01em;
  border-bottom: 1px solid var(--surface-border);
  padding-bottom: 8px;
  color: var(--text);
}

.docs-content h3 {
  font-size: 1.1rem;
  font-weight: 600;
  margin: 24px 0 12px;
  color: var(--text);
}

.docs-content p {
  color: var(--text-muted);
  margin-bottom: 16px;
  line-height: 1.7;
}

.docs-content ul, .docs-content ol {
  margin: 0 0 20px 24px;
  color: var(--text-muted);
  line-height: 1.7;
}

.docs-content li {
  margin-bottom: 8px;
}

.callout {
  background: var(--surface);
  border: 1px solid var(--surface-border);
  border-left: 4px solid var(--accent);
  border-radius: 6px 10px 10px 6px;
  padding: 16px 20px;
  margin: 24px 0;
}

.callout-title {
  font-weight: 600;
  color: var(--text);
  margin-bottom: 6px;
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 0.95rem;
}

.callout p {
  margin-bottom: 0;
  font-size: 0.92rem;
  color: var(--text-muted);
}

.callout.callout-success {
  border-left-color: var(--success);
}

.callout.callout-warning {
  border-left-color: #f59e0b;
}

.step-box {
  background: var(--surface);
  border: 1px solid var(--surface-border);
  border-radius: 10px;
  padding: 20px;
  margin-bottom: 20px;
}

.step-header {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-bottom: 12px;
}

.step-num {
  width: 28px;
  height: 28px;
  background: var(--accent);
  color: white;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 0.85rem;
  font-weight: 700;
  flex-shrink: 0;
}


/* Interactive Calculator & Sandbox */
.calc-card {
  background: var(--surface);
  border: 1px solid var(--surface-border);
  border-radius: 16px;
  padding: 32px;
  margin: 32px 0 60px;
}

.calc-inputs {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 32px;
  margin-bottom: 32px;
}

@media (max-width: 768px) {
  .calc-inputs {
    grid-template-columns: 1fr;
  }
}

.calc-slider-group label {
  display: flex;
  justify-content: space-between;
  font-size: 0.95rem;
  font-weight: 600;
  margin-bottom: 8px;
}

.calc-slider {
  width: 100%;
  accent-color: var(--accent);
  cursor: pointer;
  height: 6px;
  background: var(--surface-border);
  border-radius: 4px;
}

.calc-results {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 16px;
  background: var(--bg);
  border: 1px solid var(--surface-border);
  border-radius: 12px;
  padding: 24px;
  text-align: center;
}

@media (max-width: 768px) {
  .calc-results {
    grid-template-columns: 1fr;
  }
}

.calc-stat-value {
  font-size: 1.8rem;
  font-weight: 800;
  font-family: var(--font-mono);
  color: #3b82f6;
  margin-bottom: 4px;
}

.calc-stat-label {
  font-size: 0.85rem;
  color: var(--text-muted);
}

.sandbox-tabs {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
  margin-bottom: 16px;
}

.sandbox-btn {
  background: var(--surface);
  border: 1px solid var(--surface-border);
  color: var(--text-muted);
  padding: 8px 14px;
  border-radius: 8px;
  font-size: 0.85rem;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.15s ease;
}

.sandbox-btn:hover, .sandbox-btn.active {
  background: var(--accent-glow);
  color: #3b82f6;
  border-color: #3b82f6;
}

.sandbox-stream-text {
  min-height: 80px;
  line-height: 1.7;
}

.waveform-bar {
  display: inline-block;
  width: 3px;
  height: 12px;
  background: #3b82f6;
  margin: 0 1px;
  border-radius: 2px;
  animation: wave 1s ease-in-out infinite;
}

@keyframes wave {
  0%, 100% { height: 4px; }
  50% { height: 18px; }
}
