/* ==========================================================================
   FlowVoice Marketing Landing Page - Stylesheet
   STRICT REQUIREMENT: 100% Solid Color Palette (Zero Gradients Enforced)
   ========================================================================== */

:root {
  /* Solid Color System - Zero Gradients */
  --bg-canvas: #09090b;
  --bg-subtle: #0e0f14;
  --bg-card: #121318;
  --bg-card-hover: #171821;
  --bg-card-active: #1c1d27;
  --bg-input: #0e0f14;

  --border-subtle: #232530;
  --border-muted: #1c1d26;
  --border-focus: #3f4255;

  --text-primary: #f4f4f5;
  --text-secondary: #a1a1aa;
  --text-muted: #71717a;

  /* Solid Accent Colors */
  --emerald-solid: #10b981;
  --emerald-dark: #064e3b;
  --emerald-light: #34d399;
  --emerald-hover: #059669;

  --red-solid: #ef4444;
  --red-dark: #450a0a;
  --red-border: #7f1d1d;

  --amber-solid: #f59e0b;
  --amber-dark: #451a03;
  --amber-border: #78350f;

  /* Spatial Geometry & Radii */
  --radius-xs: 4px;
  --radius-sm: 6px;
  --radius-md: 8px;
  --radius-lg: 12px;
  --radius-pill: 9999px;

  /* Typography */
  --font-sans: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Helvetica, Arial, sans-serif;
  --font-mono: ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, monospace;

  /* Motion & Spring Easing */
  --ease-smooth: cubic-bezier(0.16, 1, 0.3, 1);
  --duration-fast: 0.15s;
  --duration-normal: 0.25s;
}

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

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

body {
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  overflow-x: hidden;
  line-height: 1.6;
}

.container {
  width: 100%;
  max-width: 1120px;
  margin: 0 auto;
  padding: 0 24px;
}

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

/* ==========================================================================
   Navigation Bar
   ========================================================================== */

.site-header {
  position: sticky;
  top: 0;
  z-index: 100;
  background-color: var(--bg-canvas);
  border-bottom: 1px solid var(--border-subtle);
  padding: 14px 0;
}

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

.brand-group {
  display: flex;
  align-items: center;
  gap: 10px;
}

.brand-icon {
  width: 24px;
  height: 24px;
  border-radius: var(--radius-xs);
}

.brand-name {
  font-size: 16px;
  font-weight: 700;
  letter-spacing: -0.02em;
  color: var(--text-primary);
}

.brand-pill {
  font-size: 11px;
  font-family: var(--font-mono);
  font-weight: 600;
  background-color: var(--border-subtle);
  color: var(--text-secondary);
  padding: 2px 8px;
  border-radius: var(--radius-pill);
}

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

.nav-link {
  font-size: 13.5px;
  font-weight: 500;
  color: var(--text-secondary);
  transition: color var(--duration-fast) var(--ease-smooth);
}

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

/* ==========================================================================
   Buttons
   ========================================================================== */

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  font-weight: 600;
  border-radius: var(--radius-sm);
  cursor: pointer;
  transition: all var(--duration-fast) var(--ease-smooth);
  border: 1px solid transparent;
  user-select: none;
}

.btn:active {
  transform: scale(0.98);
}

.btn-primary {
  background-color: var(--text-primary);
  color: #000000;
  border-color: var(--text-primary);
}

.btn-primary:hover {
  background-color: #ffffff;
}

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

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

.btn-emerald {
  background-color: var(--emerald-solid);
  color: #000000;
  border-color: var(--emerald-solid);
}

.btn-emerald:hover {
  background-color: var(--emerald-hover);
}

.btn-sm {
  font-size: 12px;
  padding: 6px 14px;
}

.btn-lg {
  font-size: 14px;
  padding: 11px 22px;
}

.btn-xl {
  font-size: 15px;
  padding: 14px 30px;
}

.icon {
  width: 16px;
  height: 16px;
  flex-shrink: 0;
}

.icon.sm {
  width: 14px;
  height: 14px;
}

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

.hero-section {
  padding: 72px 0 54px 0;
  border-bottom: 1px solid var(--border-subtle);
}

.hero-container {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
}

.hero-badge {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background-color: var(--bg-card);
  border: 1px solid var(--border-subtle);
  padding: 6px 14px;
  border-radius: var(--radius-pill);
  font-size: 12px;
  font-weight: 500;
  color: var(--text-secondary);
  margin-bottom: 24px;
}

.badge-dot {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background-color: var(--emerald-solid);
}

.hero-title {
  font-size: 52px;
  font-weight: 800;
  letter-spacing: -0.035em;
  line-height: 1.12;
  color: var(--text-primary);
  margin-bottom: 20px;
  max-width: 820px;
}

.hero-lead {
  font-size: 17px;
  color: var(--text-secondary);
  max-width: 680px;
  margin-bottom: 34px;
  line-height: 1.65;
}

.hero-cta-group {
  display: flex;
  gap: 14px;
  margin-bottom: 52px;
}

/* Telemetry Strip */
.telemetry-strip {
  display: flex;
  align-items: center;
  background-color: var(--bg-card);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-md);
  padding: 14px 28px;
  gap: 28px;
}

.metric-item {
  display: flex;
  flex-direction: column;
  align-items: center;
}

.metric-value {
  font-size: 17px;
  font-weight: 700;
  font-family: var(--font-mono);
  color: var(--text-primary);
  letter-spacing: -0.02em;
}

.metric-label {
  font-size: 11px;
  color: var(--text-muted);
  text-transform: uppercase;
  letter-spacing: 0.05em;
  margin-top: 2px;
}

.metric-divider {
  width: 1px;
  height: 28px;
  background-color: var(--border-subtle);
}

/* ==========================================================================
   Interactive Live Typing Simulator
   ========================================================================== */

.demo-section {
  padding: 68px 0;
  background-color: var(--bg-subtle);
  border-bottom: 1px solid var(--border-subtle);
}

.section-header {
  margin-bottom: 40px;
}

.section-header.text-center {
  text-align: center;
}

.section-title {
  font-size: 32px;
  font-weight: 700;
  letter-spacing: -0.025em;
  color: var(--text-primary);
  margin-bottom: 10px;
}

.section-desc {
  font-size: 15px;
  color: var(--text-secondary);
  max-width: 620px;
  margin: 0 auto;
}

.demo-card {
  background-color: var(--bg-card);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-lg);
  overflow: hidden;
}

.mock-window-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 12px 18px;
  background-color: #0c0d11;
  border-bottom: 1px solid var(--border-subtle);
}

.window-controls {
  display: flex;
  gap: 7px;
}

.control {
  width: 11px;
  height: 11px;
  border-radius: 50%;
}

.control.red { background-color: #ef4444; }
.control.yellow { background-color: #eab308; }
.control.green { background-color: #10b981; }

.window-title-tab {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 12px;
  font-family: var(--font-mono);
  color: var(--text-secondary);
}

.window-status-pill {
  display: flex;
  align-items: center;
  gap: 6px;
  font-size: 11.5px;
  color: var(--text-muted);
}

.status-indicator {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background-color: var(--emerald-solid);
}

.demo-toolbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 12px 18px;
  background-color: var(--bg-card);
  border-bottom: 1px solid var(--border-subtle);
}

.mode-toggle-group {
  display: flex;
  gap: 8px;
}

.mode-btn {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  background-color: var(--bg-subtle);
  border: 1px solid var(--border-subtle);
  color: var(--text-secondary);
  padding: 6px 14px;
  border-radius: var(--radius-sm);
  font-size: 12px;
  font-weight: 500;
  cursor: pointer;
  transition: all var(--duration-fast) var(--ease-smooth);
}

.mode-btn:hover {
  background-color: var(--bg-card-hover);
  color: var(--text-primary);
}

.mode-btn.active {
  background-color: var(--border-subtle);
  border-color: var(--border-focus);
  color: var(--text-primary);
  font-weight: 600;
}

.mode-dot {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background-color: var(--text-muted);
}

.mode-btn.active .mode-dot {
  background-color: var(--emerald-solid);
}

.demo-editor-canvas {
  padding: 24px;
  min-height: 240px;
  display: flex;
  flex-direction: column;
}

.spoken-prompt-banner {
  display: flex;
  align-items: baseline;
  gap: 10px;
  background-color: var(--bg-subtle);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-sm);
  padding: 10px 14px;
  margin-bottom: 20px;
}

.spoken-badge {
  font-size: 11px;
  font-family: var(--font-mono);
  font-weight: 700;
  color: var(--emerald-solid);
  text-transform: uppercase;
}

.spoken-text {
  font-size: 13.5px;
  font-style: italic;
  color: var(--text-secondary);
}

.editor-typing-area {
  flex: 1;
  font-family: var(--font-sans);
  font-size: 18px;
  line-height: 1.6;
  color: var(--text-primary);
  padding: 14px 6px;
  min-height: 70px;
  display: flex;
  align-items: baseline;
}

.typing-caret {
  display: inline-block;
  width: 2px;
  height: 20px;
  background-color: var(--emerald-solid);
  margin-left: 2px;
  animation: blink 0.9s infinite;
  vertical-align: text-bottom;
}

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

.demo-telemetry-footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding-top: 18px;
  border-top: 1px solid var(--border-subtle);
  margin-top: 18px;
}

.telemetry-tags {
  display: flex;
  gap: 8px;
}

.tag {
  font-size: 11px;
  font-family: var(--font-mono);
  background-color: var(--bg-subtle);
  border: 1px solid var(--border-subtle);
  color: var(--text-secondary);
  padding: 3px 8px;
  border-radius: var(--radius-xs);
}

.tag.latency-tag {
  color: var(--emerald-light);
  border-color: var(--emerald-dark);
  background-color: #064e3b;
}

.audio-wave-bars {
  display: flex;
  align-items: center;
  gap: 3px;
  height: 20px;
}

.wave-bar {
  width: 3px;
  height: 4px;
  background-color: var(--emerald-solid);
  border-radius: 2px;
  transition: height 0.08s ease;
}

/* ==========================================================================
   BYOK Architecture Section
   ========================================================================== */

.byok-section {
  padding: 72px 0;
  border-bottom: 1px solid var(--border-subtle);
}

.badge-label {
  display: inline-block;
  font-size: 11px;
  font-family: var(--font-mono);
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--emerald-solid);
  margin-bottom: 8px;
}

.comparison-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 24px;
  margin-top: 36px;
}

.arch-card {
  background-color: var(--bg-card);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-lg);
  padding: 28px;
}

.arch-card.flowvoice-arch {
  border-color: var(--emerald-solid);
}

.arch-card-header {
  margin-bottom: 24px;
}

.arch-badge {
  display: inline-block;
  font-size: 11px;
  font-family: var(--font-mono);
  font-weight: 600;
  padding: 3px 8px;
  border-radius: var(--radius-xs);
  margin-bottom: 10px;
}

.arch-badge.warning {
  background-color: var(--amber-dark);
  color: #fde68a;
  border: 1px solid var(--amber-border);
}

.arch-badge.success {
  background-color: var(--emerald-dark);
  color: #a7f3d0;
  border: 1px solid var(--emerald-solid);
}

.arch-title {
  font-size: 20px;
  font-weight: 700;
  color: var(--text-primary);
}

.arch-diagram {
  background-color: var(--bg-subtle);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-sm);
  padding: 16px;
  display: flex;
  flex-direction: column;
  gap: 6px;
  margin-bottom: 24px;
}

.arch-node {
  font-size: 12px;
  font-family: var(--font-mono);
  background-color: var(--bg-card);
  border: 1px solid var(--border-subtle);
  padding: 8px 12px;
  border-radius: var(--radius-xs);
  color: var(--text-secondary);
}

.arch-node.alert {
  border-color: var(--red-solid);
  color: #fca5a5;
  background-color: var(--red-dark);
}

.arch-node.highlight {
  border-color: var(--emerald-solid);
  color: #a7f3d0;
  background-color: var(--emerald-dark);
}

.arch-arrow {
  font-size: 11px;
  font-family: var(--font-mono);
  color: var(--text-muted);
  text-align: center;
}

.arch-points {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.arch-points li {
  font-size: 13px;
  color: var(--text-secondary);
  line-height: 1.5;
  padding-left: 20px;
  position: relative;
}

.arch-points li.negative::before {
  content: "✕";
  position: absolute;
  left: 0;
  color: var(--red-solid);
  font-weight: 700;
}

.arch-points li.positive::before {
  content: "✓";
  position: absolute;
  left: 0;
  color: var(--emerald-solid);
  font-weight: 700;
}

/* ==========================================================================
   Engineering Features Grid
   ========================================================================== */

.features-section {
  padding: 72px 0;
  background-color: var(--bg-subtle);
  border-bottom: 1px solid var(--border-subtle);
}

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

.feature-card {
  background-color: var(--bg-card);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-md);
  padding: 24px;
  transition: all var(--duration-fast) var(--ease-smooth);
}

.feature-card:hover {
  background-color: var(--bg-card-hover);
  border-color: var(--border-focus);
  transform: translateY(-2px);
}

.feature-icon-box {
  width: 38px;
  height: 38px;
  background-color: var(--bg-subtle);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-sm);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--emerald-solid);
  margin-bottom: 16px;
}

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

.feature-text {
  font-size: 13px;
  color: var(--text-secondary);
  line-height: 1.6;
}

.feature-text code {
  color: var(--emerald-light);
  background-color: var(--bg-subtle);
  padding: 1px 4px;
  border-radius: 3px;
  font-family: var(--font-mono);
  font-size: 12px;
}

/* ==========================================================================
   4-Step Setup Guide
   ========================================================================== */

.setup-section {
  padding: 72px 0;
  border-bottom: 1px solid var(--border-subtle);
}

.steps-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 18px;
  margin-top: 36px;
}

.step-card {
  background-color: var(--bg-card);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-md);
  padding: 22px;
  display: flex;
  flex-direction: column;
}

.step-indicator {
  font-size: 12px;
  font-family: var(--font-mono);
  font-weight: 700;
  color: var(--emerald-solid);
  background-color: var(--emerald-dark);
  border: 1px solid var(--emerald-solid);
  width: 28px;
  height: 28px;
  border-radius: 4px;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 14px;
}

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

.step-desc {
  font-size: 12.5px;
  color: var(--text-secondary);
  line-height: 1.55;
}

.step-desc code {
  color: var(--emerald-light);
  background-color: var(--bg-subtle);
  padding: 1px 4px;
  border-radius: 3px;
  font-family: var(--font-mono);
}

/* ==========================================================================
   Download CTA Section
   ========================================================================== */

.download-section {
  padding: 72px 0;
  background-color: var(--bg-subtle);
  border-bottom: 1px solid var(--border-subtle);
}

.download-card {
  background-color: var(--bg-card);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-lg);
  padding: 56px 24px;
  max-width: 820px;
  margin: 0 auto;
  display: flex;
  flex-direction: column;
  align-items: center;
}

.download-brand-icon {
  width: 52px;
  height: 52px;
  border-radius: var(--radius-sm);
  margin-bottom: 20px;
}

.download-title {
  font-size: 34px;
  font-weight: 800;
  letter-spacing: -0.025em;
  color: var(--text-primary);
  margin-bottom: 12px;
}

.download-desc {
  font-size: 15px;
  color: var(--text-secondary);
  max-width: 520px;
  margin-bottom: 30px;
}

.download-actions {
  margin-bottom: 24px;
}

.download-meta {
  display: flex;
  gap: 12px;
  font-size: 12px;
  font-family: var(--font-mono);
  color: var(--text-muted);
}

/* ==========================================================================
   FAQ Section
   ========================================================================== */

.faq-section {
  padding: 72px 0;
  border-bottom: 1px solid var(--border-subtle);
}

.faq-accordion {
  max-width: 760px;
  margin: 36px auto 0 auto;
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.faq-item {
  background-color: var(--bg-card);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-md);
  overflow: hidden;
}

.faq-question {
  width: 100%;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 16px 20px;
  background: transparent;
  border: none;
  color: var(--text-primary);
  font-size: 15px;
  font-weight: 600;
  text-align: left;
  cursor: pointer;
  transition: color var(--duration-fast) var(--ease-smooth);
}

.faq-question:hover {
  color: var(--emerald-solid);
}

.faq-chevron {
  font-size: 18px;
  color: var(--text-muted);
  font-family: var(--font-mono);
  transition: transform var(--duration-fast) var(--ease-smooth);
}

.faq-item.open .faq-chevron {
  transform: rotate(45deg);
  color: var(--emerald-solid);
}

.faq-answer {
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.25s var(--ease-smooth);
  padding: 0 20px;
}

.faq-item.open .faq-answer {
  max-height: 200px;
  padding-bottom: 18px;
}

.faq-answer p {
  font-size: 13.5px;
  color: var(--text-secondary);
  line-height: 1.6;
}

.faq-answer code {
  color: var(--emerald-light);
  background-color: var(--bg-subtle);
  padding: 2px 5px;
  border-radius: 3px;
  font-family: var(--font-mono);
}

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

.site-footer {
  padding: 32px 0;
  background-color: var(--bg-canvas);
}

.footer-container {
  display: flex;
  align-items: center;
  justify-content: space-between;
}

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

.footer-icon {
  width: 20px;
  height: 20px;
}

.footer-brand {
  font-size: 13.5px;
  font-weight: 700;
  color: var(--text-primary);
}

.footer-copy {
  font-size: 12px;
  color: var(--text-muted);
}

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

.footer-links a {
  font-size: 12.5px;
  color: var(--text-secondary);
  transition: color var(--duration-fast) var(--ease-smooth);
}

.footer-links a:hover {
  color: var(--emerald-solid);
}

/* ==========================================================================
   Responsive Adjustments
   ========================================================================== */

@media (max-width: 900px) {
  .hero-title {
    font-size: 38px;
  }
  .comparison-grid {
    grid-template-columns: 1fr;
  }
  .features-grid {
    grid-template-columns: 1fr 1fr;
  }
  .steps-grid {
    grid-template-columns: 1fr 1fr;
  }
}

@media (max-width: 600px) {
  .nav-links {
    display: none;
  }
  .hero-title {
    font-size: 30px;
  }
  .hero-cta-group {
    flex-direction: column;
    width: 100%;
  }
  .features-grid {
    grid-template-columns: 1fr;
  }
  .steps-grid {
    grid-template-columns: 1fr;
  }
  .telemetry-strip {
    flex-direction: column;
    gap: 14px;
    width: 100%;
  }
  .metric-divider {
    display: none;
  }
  .footer-container {
    flex-direction: column;
    gap: 16px;
    text-align: center;
  }
}
