/* ========================================
   VoiceUse Landing Page Styles
   Dark terminal-elegant theme
   ======================================== */

/* ---- CSS Variables ---- */
:root {
  --bg-primary: #0a0a0f;
  --bg-secondary: #111118;
  --bg-tertiary: #1a1a24;
  --bg-card: #13131f;
  --bg-card-hover: #1a1a2e;
  --text-primary: #e8e8f0;
  --text-secondary: #a0a0b8;
  --text-muted: #6a6a80;
  --accent-cyan: #00f0ff;
  --accent-cyan-dim: rgba(0, 240, 255, 0.1);
  --accent-amber: #ffb800;
  --accent-amber-dim: rgba(255, 184, 0, 0.1);
  --border-color: rgba(255, 255, 255, 0.06);
  --border-hover: rgba(0, 240, 255, 0.2);
  --font-mono: 'JetBrains Mono', 'Fira Code', monospace;
  --font-body: 'Space Grotesk', system-ui, sans-serif;
  --radius-sm: 8px;
  --radius-md: 12px;
  --radius-lg: 16px;
  --transition-fast: 0.15s ease;
  --transition-base: 0.25s ease;
  --transition-slow: 0.4s ease;
}

/* ---- Reset & Base ---- */
*, *::before, *::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html {
  scroll-behavior: smooth;
  scroll-padding-top: 80px;
}

body {
  font-family: var(--font-body);
  background: var(--bg-primary);
  color: var(--text-primary);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  overflow-x: hidden;
}

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

ul {
  list-style: none;
}

img, svg {
  display: block;
  max-width: 100%;
}

/* ---- Utility ---- */
.container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 24px;
}

/* ---- Navigation ---- */
.nav {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 1000;
  background: rgba(10, 10, 15, 0.8);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  border-bottom: 1px solid var(--border-color);
  transition: var(--transition-base);
}

.nav.scrolled {
  background: rgba(10, 10, 15, 0.95);
  border-bottom-color: rgba(255, 255, 255, 0.1);
}

.nav-inner {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 24px;
  height: 68px;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.logo {
  display: flex;
  align-items: center;
  gap: 10px;
  font-family: var(--font-mono);
  font-weight: 700;
  font-size: 1.25rem;
  letter-spacing: -0.02em;
}

.logo-icon {
  width: 32px;
  height: 32px;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--accent-cyan);
}

.logo-icon svg {
  width: 100%;
  height: 100%;
}

.logo-text {
  background: linear-gradient(135deg, var(--text-primary), var(--accent-cyan));
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.nav-toggle {
  display: none;
  flex-direction: column;
  gap: 5px;
  background: none;
  border: none;
  cursor: pointer;
  padding: 4px;
}

.nav-toggle span {
  display: block;
  width: 24px;
  height: 2px;
  background: var(--text-primary);
  border-radius: 2px;
  transition: var(--transition-base);
}

.nav-toggle[aria-expanded="true"] span:nth-child(1) {
  transform: rotate(45deg) translate(5px, 5px);
}

.nav-toggle[aria-expanded="true"] span:nth-child(2) {
  opacity: 0;
}

.nav-toggle[aria-expanded="true"] span:nth-child(3) {
  transform: rotate(-45deg) translate(5px, -5px);
}

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

.nav-links a {
  padding: 8px 14px;
  font-size: 0.9rem;
  font-weight: 500;
  color: var(--text-secondary);
  border-radius: var(--radius-sm);
  transition: var(--transition-fast);
}

.nav-links a:hover {
  color: var(--text-primary);
  background: rgba(255, 255, 255, 0.04);
}

.nav-links .nav-cta {
  background: var(--accent-cyan-dim);
  color: var(--accent-cyan);
  border: 1px solid rgba(0, 240, 255, 0.15);
}

.nav-links .nav-cta:hover {
  background: rgba(0, 240, 255, 0.15);
  border-color: rgba(0, 240, 255, 0.3);
}

/* ---- Hero Section ---- */
.hero {
  position: relative;
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 120px 24px 80px;
  overflow: hidden;
}

.hero-bg {
  position: absolute;
  inset: 0;
  z-index: 0;
}

.grid-overlay {
  position: absolute;
  inset: 0;
  background-image:
    linear-gradient(rgba(0, 240, 255, 0.03) 1px, transparent 1px),
    linear-gradient(90deg, rgba(0, 240, 255, 0.03) 1px, transparent 1px);
  background-size: 60px 60px;
  mask-image: radial-gradient(ellipse at center, black 30%, transparent 70%);
  -webkit-mask-image: radial-gradient(ellipse at center, black 30%, transparent 70%);
}

#voiceWave {
  position: absolute;
  bottom: 10%;
  left: 50%;
  transform: translateX(-50%);
  width: 100%;
  max-width: 900px;
  height: 200px;
  opacity: 0.4;
}

.hero-content {
  position: relative;
  z-index: 1;
  text-align: center;
  max-width: 760px;
}

.hero-badge {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 6px 16px;
  background: var(--accent-cyan-dim);
  border: 1px solid rgba(0, 240, 255, 0.15);
  border-radius: 100px;
  font-family: var(--font-mono);
  font-size: 0.8rem;
  color: var(--accent-cyan);
  margin-bottom: 32px;
}

.badge-dot {
  width: 6px;
  height: 6px;
  background: var(--accent-cyan);
  border-radius: 50%;
  animation: pulse-dot 2s ease-in-out infinite;
}

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

.hero-title {
  font-family: var(--font-mono);
  font-size: clamp(2.5rem, 6vw, 4.5rem);
  font-weight: 800;
  line-height: 1.1;
  letter-spacing: -0.03em;
  margin-bottom: 24px;
}

.hero-title .line {
  display: block;
}

.hero-title .accent {
  background: linear-gradient(135deg, var(--accent-cyan), #00a8b5);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.hero-subtitle {
  font-size: clamp(1rem, 2vw, 1.25rem);
  color: var(--text-secondary);
  max-width: 540px;
  margin: 0 auto 40px;
  line-height: 1.7;
}

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

.btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 12px 24px;
  font-family: var(--font-body);
  font-size: 0.95rem;
  font-weight: 600;
  border-radius: var(--radius-md);
  border: none;
  cursor: pointer;
  transition: var(--transition-base);
  text-decoration: none;
}

.btn-primary {
  background: linear-gradient(135deg, var(--accent-cyan), #00c8d4);
  color: var(--bg-primary);
  box-shadow: 0 4px 24px rgba(0, 240, 255, 0.2);
}

.btn-primary:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 32px rgba(0, 240, 255, 0.3);
}

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

.btn-secondary:hover {
  background: var(--bg-card-hover);
  border-color: var(--border-hover);
}

.btn-large {
  padding: 16px 32px;
  font-size: 1rem;
}

.hero-stats {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 32px;
  flex-wrap: wrap;
}

.stat {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 4px;
}

.stat-value {
  font-family: var(--font-mono);
  font-size: 2rem;
  font-weight: 700;
  color: var(--accent-cyan);
  line-height: 1;
}

.stat-label {
  font-size: 0.8rem;
  color: var(--text-muted);
  text-transform: uppercase;
  letter-spacing: 0.08em;
}

.stat-divider {
  width: 1px;
  height: 40px;
  background: var(--border-color);
}

.hero-scroll {
  position: absolute;
  bottom: 32px;
  left: 50%;
  transform: translateX(-50%);
  z-index: 1;
}

.mouse {
  display: block;
  width: 22px;
  height: 36px;
  border: 2px solid var(--text-muted);
  border-radius: 12px;
  position: relative;
}

.wheel {
  position: absolute;
  top: 6px;
  left: 50%;
  transform: translateX(-50%);
  width: 3px;
  height: 6px;
  background: var(--text-muted);
  border-radius: 2px;
  animation: scroll-wheel 2s ease-in-out infinite;
}

@keyframes scroll-wheel {
  0%, 100% { opacity: 1; top: 6px; }
  50% { opacity: 0; top: 16px; }
}

/* ---- Section Header ---- */
.section-header {
  text-align: center;
  max-width: 600px;
  margin: 0 auto 64px;
}

.section-tag {
  display: inline-block;
  font-family: var(--font-mono);
  font-size: 0.75rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.12em;
  color: var(--accent-cyan);
  margin-bottom: 16px;
}

.section-title {
  font-family: var(--font-mono);
  font-size: clamp(1.75rem, 4vw, 2.75rem);
  font-weight: 700;
  line-height: 1.2;
  margin-bottom: 16px;
}

.section-desc {
  color: var(--text-secondary);
  font-size: 1.05rem;
  line-height: 1.7;
}

/* ---- Features Section ---- */
.features {
  padding: 120px 0;
  background: var(--bg-secondary);
}

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

.feature-card {
  background: var(--bg-card);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-lg);
  padding: 32px;
  transition: var(--transition-base);
}

.feature-card:hover {
  background: var(--bg-card-hover);
  border-color: var(--border-hover);
  transform: translateY(-4px);
  box-shadow: 0 12px 40px rgba(0, 0, 0, 0.3);
}

.feature-icon {
  width: 48px;
  height: 48px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: var(--accent-cyan-dim);
  border: 1px solid rgba(0, 240, 255, 0.1);
  border-radius: var(--radius-md);
  color: var(--accent-cyan);
  margin-bottom: 20px;
}

.feature-icon svg {
  width: 24px;
  height: 24px;
}

.feature-card h3 {
  font-family: var(--font-mono);
  font-size: 1.1rem;
  font-weight: 600;
  margin-bottom: 10px;
}

.feature-card p {
  color: var(--text-secondary);
  font-size: 0.92rem;
  line-height: 1.6;
}

/* ---- How It Works Section ---- */
.how-it-works {
  padding: 120px 0;
  background: var(--bg-primary);
}

.pipeline {
  display: flex;
  flex-direction: column;
  gap: 0;
  max-width: 700px;
  margin: 0 auto;
}

.pipeline-step {
  display: flex;
  align-items: flex-start;
  gap: 24px;
  padding: 32px;
  background: var(--bg-card);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-lg);
  position: relative;
  margin-bottom: 16px;
}

.pipeline-step:last-child {
  margin-bottom: 0;
}

.pipeline-step:last-child .step-arrow {
  display: none;
}

.step-number {
  font-family: var(--font-mono);
  font-size: 1.5rem;
  font-weight: 800;
  color: var(--accent-cyan);
  line-height: 1;
  min-width: 44px;
}

.step-content h3 {
  font-family: var(--font-mono);
  font-size: 1.1rem;
  font-weight: 600;
  margin-bottom: 6px;
}

.step-content p {
  color: var(--text-secondary);
  font-size: 0.92rem;
  line-height: 1.6;
}

.step-arrow {
  position: absolute;
  bottom: -28px;
  left: 50%;
  transform: translateX(-50%);
  width: 24px;
  height: 24px;
  color: var(--text-muted);
  z-index: 2;
}

.step-arrow svg {
  width: 100%;
  height: 100%;
}

/* ---- Downloads Section ---- */
.downloads {
  padding: 120px 0;
  background: var(--bg-secondary);
}

.download-cards {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
  margin-bottom: 48px;
}

.download-card {
  background: var(--bg-card);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-lg);
  padding: 36px 32px;
  text-align: center;
  transition: var(--transition-base);
}

.download-card:hover {
  background: var(--bg-card-hover);
  border-color: var(--border-hover);
  transform: translateY(-4px);
}

.download-platform {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 12px;
  margin-bottom: 20px;
  color: var(--text-primary);
}

.download-platform span {
  font-family: var(--font-mono);
  font-size: 1.1rem;
  font-weight: 600;
}

.download-info {
  display: flex;
  justify-content: center;
  gap: 16px;
  margin-bottom: 24px;
  font-family: var(--font-mono);
  font-size: 0.8rem;
}

.download-version {
  color: var(--accent-cyan);
  background: var(--accent-cyan-dim);
  padding: 2px 10px;
  border-radius: 100px;
}

.download-size {
  color: var(--text-muted);
}

.btn-download {
  width: 100%;
  justify-content: center;
  background: var(--bg-tertiary);
  color: var(--text-primary);
  border: 1px solid var(--border-color);
}

.btn-download:hover {
  background: var(--accent-cyan-dim);
  border-color: rgba(0, 240, 255, 0.2);
  color: var(--accent-cyan);
}

.download-alt {
  text-align: center;
}

.download-alt p {
  color: var(--text-secondary);
  margin-bottom: 16px;
}

.download-alt code {
  font-family: var(--font-mono);
  background: var(--bg-tertiary);
  padding: 2px 8px;
  border-radius: 4px;
  font-size: 0.9em;
}

.download-alt-links {
  margin-top: 16px;
}

.download-alt-links a {
  color: var(--accent-cyan);
  font-weight: 500;
  transition: var(--transition-fast);
}

.download-alt-links a:hover {
  text-decoration: underline;
}

.dot-separator {
  color: var(--text-muted);
  margin: 0 8px;
}

.code-block {
  position: relative;
  background: var(--bg-primary);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-md);
  padding: 16px 20px;
  margin-bottom: 12px;
  text-align: left;
  max-width: 480px;
  margin-left: auto;
  margin-right: auto;
}

.code-block pre {
  font-family: var(--font-mono);
  font-size: 0.85rem;
  color: var(--text-primary);
  overflow-x: auto;
}

.copy-btn {
  position: absolute;
  top: 12px;
  right: 12px;
  background: none;
  border: none;
  color: var(--text-muted);
  cursor: pointer;
  padding: 4px;
  border-radius: var(--radius-sm);
  transition: var(--transition-fast);
}

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

.copy-btn.copied {
  color: var(--accent-cyan);
}

.install-options {
  max-width: 480px;
  margin: 16px auto 0;
}

/* ---- Plugins Section ---- */
.plugins {
  padding: 120px 0;
  background: var(--bg-primary);
}

.plugins-showcase {
  display: flex;
  flex-direction: column;
  gap: 32px;
}

.plugin-highlight {
  display: grid;
  grid-template-columns: 1fr 1.5fr;
  gap: 48px;
  align-items: center;
  background: var(--bg-card);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-lg);
  padding: 48px;
}

.plugin-visual {
  display: flex;
  align-items: center;
  justify-content: center;
}

.plugin-wave {
  display: flex;
  align-items: center;
  gap: 6px;
  height: 80px;
}

.plugin-wave span {
  width: 6px;
  background: linear-gradient(to top, var(--accent-cyan), transparent);
  border-radius: 3px;
  animation: wave-bar 1.2s ease-in-out infinite;
}

.plugin-wave span:nth-child(1) { height: 20%; animation-delay: 0s; }
.plugin-wave span:nth-child(2) { height: 50%; animation-delay: 0.1s; }
.plugin-wave span:nth-child(3) { height: 80%; animation-delay: 0.2s; }
.plugin-wave span:nth-child(4) { height: 60%; animation-delay: 0.3s; }
.plugin-wave span:nth-child(5) { height: 90%; animation-delay: 0.4s; }
.plugin-wave span:nth-child(6) { height: 40%; animation-delay: 0.5s; }
.plugin-wave span:nth-child(7) { height: 70%; animation-delay: 0.6s; }
.plugin-wave span:nth-child(8) { height: 30%; animation-delay: 0.7s; }
.plugin-wave span:nth-child(9) { height: 85%; animation-delay: 0.8s; }
.plugin-wave span:nth-child(10) { height: 55%; animation-delay: 0.9s; }

@keyframes wave-bar {
  0%, 100% { transform: scaleY(0.6); opacity: 0.6; }
  50% { transform: scaleY(1); opacity: 1; }
}

.plugin-info .plugin-badge {
  display: inline-block;
  font-family: var(--font-mono);
  font-size: 0.7rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--accent-amber);
  background: var(--accent-amber-dim);
  padding: 4px 12px;
  border-radius: 100px;
  margin-bottom: 16px;
}

.plugin-info h3 {
  font-family: var(--font-mono);
  font-size: 1.5rem;
  font-weight: 700;
  margin-bottom: 12px;
}

.plugin-info > p {
  color: var(--text-secondary);
  margin-bottom: 20px;
  line-height: 1.7;
}

.plugin-features {
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.plugin-features li {
  position: relative;
  padding-left: 20px;
  color: var(--text-secondary);
  font-size: 0.92rem;
}

.plugin-features li::before {
  content: '›';
  position: absolute;
  left: 0;
  color: var(--accent-cyan);
  font-weight: 700;
}

.plugin-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 16px;
}

.plugin-mini {
  background: var(--bg-card);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-md);
  padding: 24px;
  text-align: center;
  transition: var(--transition-base);
}

.plugin-mini:hover {
  border-color: var(--border-hover);
}

.plugin-mini h4 {
  font-family: var(--font-mono);
  font-size: 0.85rem;
  font-weight: 600;
  margin-bottom: 6px;
}

.plugin-mini p {
  color: var(--text-muted);
  font-size: 0.85rem;
}

/* ---- Safety Section ---- */
.safety {
  padding: 120px 0;
  background: var(--bg-secondary);
}

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

.safety-card {
  background: var(--bg-card);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-lg);
  padding: 36px 32px;
  transition: var(--transition-base);
}

.safety-card:hover {
  background: var(--bg-card-hover);
  border-color: var(--border-hover);
}

.safety-icon {
  width: 48px;
  height: 48px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: var(--accent-amber-dim);
  border: 1px solid rgba(255, 184, 0, 0.1);
  border-radius: var(--radius-md);
  color: var(--accent-amber);
  margin-bottom: 20px;
}

.safety-icon svg {
  width: 24px;
  height: 24px;
}

.safety-card h3 {
  font-family: var(--font-mono);
  font-size: 1.1rem;
  font-weight: 600;
  margin-bottom: 10px;
}

.safety-card p {
  color: var(--text-secondary);
  font-size: 0.92rem;
  line-height: 1.6;
}

/* ---- CTA Section ---- */
.cta {
  padding: 120px 0;
  background: var(--bg-primary);
  position: relative;
  overflow: hidden;
}

.cta::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: radial-gradient(ellipse at center, rgba(0, 240, 255, 0.04) 0%, transparent 70%);
  pointer-events: none;
}

.cta-content {
  position: relative;
  z-index: 1;
  text-align: center;
  max-width: 600px;
  margin: 0 auto;
}

.cta-content h2 {
  font-family: var(--font-mono);
  font-size: clamp(1.75rem, 4vw, 2.75rem);
  font-weight: 700;
  margin-bottom: 16px;
}

.cta-content p {
  color: var(--text-secondary);
  font-size: 1.1rem;
  margin-bottom: 40px;
}

.cta-actions {
  display: flex;
  gap: 16px;
  justify-content: center;
  flex-wrap: wrap;
}

/* ---- Footer ---- */
.footer {
  padding: 48px 0;
  background: var(--bg-secondary);
  border-top: 1px solid var(--border-color);
}

.footer-inner {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 24px;
}

.footer-brand {
  display: flex;
  align-items: center;
  gap: 10px;
  font-family: var(--font-mono);
  font-weight: 700;
  font-size: 1.1rem;
}

.footer-brand .logo-icon {
  width: 28px;
  height: 28px;
  color: var(--accent-cyan);
}

.footer-links {
  display: flex;
  gap: 24px;
  flex-wrap: wrap;
  justify-content: center;
}

.footer-links a {
  color: var(--text-secondary);
  font-size: 0.9rem;
  transition: var(--transition-fast);
}

.footer-links a:hover {
  color: var(--accent-cyan);
}

.footer-copy {
  color: var(--text-muted);
  font-size: 0.85rem;
  text-align: center;
}

/* ---- Scroll Animations ---- */
.reveal {
  opacity: 0;
  transform: translateY(30px);
  transition: opacity 0.6s ease, transform 0.6s ease;
}

.reveal.visible {
  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; }

/* ---- Responsive ---- */
@media (max-width: 992px) {
  .features-grid {
    grid-template-columns: repeat(2, 1fr);
  }

  .plugin-highlight {
    grid-template-columns: 1fr;
    text-align: center;
  }

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

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

@media (max-width: 768px) {
  .nav-toggle {
    display: flex;
  }

  .nav-links {
    position: fixed;
    top: 68px;
    left: 0;
    right: 0;
    background: rgba(10, 10, 15, 0.98);
    flex-direction: column;
    padding: 24px;
    gap: 4px;
    border-bottom: 1px solid var(--border-color);
    transform: translateY(-100%);
    opacity: 0;
    pointer-events: none;
    transition: var(--transition-base);
  }

  .nav-links.open {
    transform: translateY(0);
    opacity: 1;
    pointer-events: all;
  }

  .nav-links a {
    width: 100%;
    text-align: center;
    padding: 12px;
  }

  .hero-stats {
    gap: 20px;
  }

  .stat-divider {
    display: none;
  }

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

  .download-cards {
    grid-template-columns: 1fr;
    max-width: 400px;
    margin-left: auto;
    margin-right: auto;
  }

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

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

  .pipeline-step {
    flex-direction: column;
    text-align: center;
  }

  .step-arrow {
    position: relative;
    bottom: auto;
    left: auto;
    transform: none;
    margin-top: 8px;
  }

  .step-arrow svg {
    transform: rotate(90deg);
  }
}

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

  .hero-actions {
    flex-direction: column;
    align-items: center;
  }

  .btn {
    width: 100%;
    max-width: 280px;
    justify-content: center;
  }

  .cta-actions {
    flex-direction: column;
    align-items: center;
  }
}

/* ---- Reduced Motion ---- */
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
  }

  html {
    scroll-behavior: auto;
  }

  .reveal {
    opacity: 1;
    transform: none;
    transition: none;
  }
}

/* ========================================
   Documentation Pages Styles
   ======================================== */

/* ---- Docs Layout ---- */
.docs-layout {
  display: grid;
  grid-template-columns: 260px 1fr;
  gap: 48px;
  max-width: 1200px;
  margin: 0 auto;
  padding: 100px 24px 80px;
  min-height: 100vh;
}

/* ---- Docs Sidebar ---- */
.docs-sidebar {
  position: sticky;
  top: 88px;
  height: calc(100vh - 120px);
  overflow-y: auto;
  padding-right: 16px;
}

.docs-sidebar::-webkit-scrollbar {
  width: 4px;
}

.docs-sidebar::-webkit-scrollbar-thumb {
  background: var(--border-color);
  border-radius: 2px;
}

.docs-sidebar-title {
  font-family: var(--font-mono);
  font-size: 0.7rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.12em;
  color: var(--text-muted);
  margin-bottom: 16px;
  padding-bottom: 12px;
  border-bottom: 1px solid var(--border-color);
}

.docs-nav {
  display: flex;
  flex-direction: column;
  gap: 2px;
}

.docs-nav a {
  display: block;
  padding: 8px 12px;
  font-size: 0.9rem;
  color: var(--text-secondary);
  border-radius: var(--radius-sm);
  transition: var(--transition-fast);
  border-left: 2px solid transparent;
}

.docs-nav a:hover {
  color: var(--text-primary);
  background: rgba(255, 255, 255, 0.03);
}

.docs-nav a.active {
  color: var(--accent-cyan);
  background: var(--accent-cyan-dim);
  border-left-color: var(--accent-cyan);
  font-weight: 500;
}

.docs-nav-section {
  margin-top: 20px;
}

.docs-nav-section-title {
  font-family: var(--font-mono);
  font-size: 0.65rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: var(--text-muted);
  padding: 8px 12px;
}

/* ---- Docs Content ---- */
.docs-content {
  min-width: 0;
}

.docs-content h1 {
  font-family: var(--font-mono);
  font-size: 2.25rem;
  font-weight: 700;
  line-height: 1.2;
  margin-bottom: 16px;
  padding-bottom: 16px;
  border-bottom: 1px solid var(--border-color);
}

.docs-content h2 {
  font-family: var(--font-mono);
  font-size: 1.5rem;
  font-weight: 600;
  margin-top: 48px;
  margin-bottom: 16px;
  padding-bottom: 8px;
  border-bottom: 1px solid var(--border-color);
}

.docs-content h3 {
  font-family: var(--font-mono);
  font-size: 1.15rem;
  font-weight: 600;
  margin-top: 32px;
  margin-bottom: 12px;
  color: var(--accent-cyan);
}

.docs-content h4 {
  font-family: var(--font-mono);
  font-size: 1rem;
  font-weight: 600;
  margin-top: 24px;
  margin-bottom: 10px;
}

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

.docs-content ul,
.docs-content ol {
  margin-bottom: 16px;
  padding-left: 24px;
}

.docs-content li {
  color: var(--text-secondary);
  margin-bottom: 8px;
  line-height: 1.6;
}

.docs-content li::marker {
  color: var(--accent-cyan);
}

.docs-content strong {
  color: var(--text-primary);
  font-weight: 600;
}

.docs-content a {
  color: var(--accent-cyan);
  text-decoration: none;
  border-bottom: 1px solid transparent;
  transition: var(--transition-fast);
}

.docs-content a:hover {
  border-bottom-color: var(--accent-cyan);
}

/* Code blocks */
.docs-content pre {
  background: var(--bg-primary);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-md);
  padding: 16px 20px;
  overflow-x: auto;
  margin-bottom: 20px;
}

.docs-content pre code {
  font-family: var(--font-mono);
  font-size: 0.85rem;
  color: var(--text-primary);
  background: none;
  padding: 0;
}

.docs-content code {
  font-family: var(--font-mono);
  font-size: 0.85em;
  background: var(--bg-tertiary);
  color: var(--accent-cyan);
  padding: 2px 8px;
  border-radius: 4px;
}

/* Tables */
.docs-content table {
  width: 100%;
  border-collapse: collapse;
  margin-bottom: 24px;
  font-size: 0.92rem;
}

.docs-content th {
  font-family: var(--font-mono);
  font-weight: 600;
  text-align: left;
  padding: 12px 16px;
  background: var(--accent-cyan-dim);
  color: var(--accent-cyan);
  border-bottom: 1px solid var(--border-hover);
}

.docs-content td {
  padding: 12px 16px;
  color: var(--text-secondary);
  border-bottom: 1px solid var(--border-color);
}

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

/* Admonition-style callouts */
.docs-callout {
  background: var(--bg-card);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-md);
  padding: 20px 24px;
  margin-bottom: 24px;
  position: relative;
}

.docs-callout::before {
  content: '';
  position: absolute;
  left: 0;
  top: 0;
  bottom: 0;
  width: 3px;
  border-radius: var(--radius-md) 0 0 var(--radius-md);
}

.docs-callout.tip::before {
  background: var(--accent-cyan);
}

.docs-callout.tip {
  border-left: none;
}

.docs-callout.warning::before {
  background: var(--accent-amber);
}

.docs-callout.warning {
  border-left: none;
}

.docs-callout.danger::before {
  background: #ff4757;
}

.docs-callout.danger {
  border-left: none;
}

.docs-callout-title {
  font-family: var(--font-mono);
  font-size: 0.8rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  margin-bottom: 8px;
}

.docs-callout.tip .docs-callout-title {
  color: var(--accent-cyan);
}

.docs-callout.warning .docs-callout-title {
  color: var(--accent-amber);
}

.docs-callout.danger .docs-callout-title {
  color: #ff4757;
}

.docs-callout p:last-child {
  margin-bottom: 0;
}

/* Keyboard keys */
.docs-content kbd {
  font-family: var(--font-mono);
  font-size: 0.8em;
  background: var(--bg-tertiary);
  border: 1px solid var(--border-color);
  border-bottom-width: 2px;
  border-radius: 4px;
  padding: 2px 8px;
  color: var(--text-primary);
}

/* Breadcrumbs */
.docs-breadcrumb {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-bottom: 24px;
  font-size: 0.85rem;
  color: var(--text-muted);
}

.docs-breadcrumb a {
  color: var(--text-secondary);
}

.docs-breadcrumb a:hover {
  color: var(--accent-cyan);
}

.docs-breadcrumb-sep {
  color: var(--text-muted);
}

/* Mermaid diagrams */
.mermaid {
  background: var(--bg-card);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-md);
  padding: 24px;
  margin-bottom: 24px;
  text-align: center;
}

/* Scrollbar for code blocks */
.docs-content pre::-webkit-scrollbar {
  height: 6px;
}

.docs-content pre::-webkit-scrollbar-thumb {
  background: var(--border-color);
  border-radius: 3px;
}

/* Responsive docs */
@media (max-width: 768px) {
  .docs-layout {
    grid-template-columns: 1fr;
    padding-top: 88px;
  }

  .docs-sidebar {
    position: static;
    height: auto;
    border-bottom: 1px solid var(--border-color);
    padding-bottom: 24px;
    margin-bottom: 24px;
  }

  .docs-nav {
    flex-direction: row;
    flex-wrap: wrap;
    gap: 8px;
  }

  .docs-nav a {
    white-space: nowrap;
  }

  .docs-nav-section {
    margin-top: 0;
  }

  .docs-nav-section-title {
    display: none;
  }
}
