:root {
  --bg-dark: #ffffff;
  --bg-surface: #f9f9fb;
  --bg-surface-elevated: #f4f4f6;
  --bg-surface-glass: rgba(255, 255, 255, 0.95);
  --border-subtle: #e5e5ea;
  --border-medium: #d1d1d6;
  --border-glow: rgba(0, 0, 0, 0.08);
  --primary: #0d0d0d;
  --primary-light: #262626;
  --primary-dark: #000000;
  --accent-cyan: #374151;
  --accent-cyan-light: #4b5563;
  --accent-amber: #4b5563;
  --accent-emerald: #10a37f;
  --text-primary: #0d0d0d;
  --text-secondary: #4b5563;
  --text-muted: #6b7280;
  --font-sans: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
  --font-display: 'Outfit', var(--font-sans);
  --font-mono: 'JetBrains Mono', 'Fira Code', Consolas, monospace;
  --radius-sm: 8px;
  --radius-md: 12px;
  --radius-lg: 16px;
  --radius-full: 9999px;
  --shadow-glow: 0 4px 20px rgba(0, 0, 0, 0.04);
  --shadow-card: 0 2px 12px rgba(0, 0, 0, 0.06);
  --transition-fast: 0.15s ease;
  --transition-normal: 0.25s ease;
}

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

html {
  scroll-behavior: smooth;
  color-scheme: light;
}

body {
  background-color: var(--bg-dark);
  color: var(--text-primary);
  font-family: var(--font-sans);
  line-height: 1.6;
  overflow-x: hidden;
  position: relative;
  background-image: 
    radial-gradient(circle at 50% 0%, #f4f4f7 0%, transparent 60%);
}

/* ── Typography ───────────────────────────────────────────────────────────── */
h1, h2, h3, h4, h5, h6 {
  font-family: var(--font-display);
  font-weight: 700;
  line-height: 1.2;
  color: var(--text-primary);
}

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

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

.section {
  padding: 80px 0;
  position: relative;
  border-bottom: 1px solid #f0f0f2;
}

/* ── Header & Navbar ──────────────────────────────────────────────────────── */
.navbar {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 100;
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  background: rgba(255, 255, 255, 0.9);
  border-bottom: 1px solid var(--border-subtle);
  transition: var(--transition-normal);
}

.navbar-container {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 70px;
}

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

.brand-icon-wrapper {
  width: 38px;
  height: 38px;
  border-radius: var(--radius-sm);
  background: #f4f4f6;
  border: 1px solid var(--border-subtle);
  display: flex;
  align-items: center;
  justify-content: center;
  color: #0d0d0d;
}

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

.nav-link {
  font-size: 0.95rem;
  font-weight: 500;
  color: var(--text-secondary);
  transition: var(--transition-fast);
  display: flex;
  align-items: center;
  gap: 6px;
}

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

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

/* ── Buttons ──────────────────────────────────────────────────────────────── */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  padding: 11px 22px;
  font-size: 0.92rem;
  font-weight: 600;
  border-radius: var(--radius-sm);
  transition: all var(--transition-fast);
  cursor: pointer;
  border: 1px solid transparent;
  text-align: center;
}

.btn-primary {
  background: #0d0d0d;
  color: #ffffff;
  border: 1px solid #0d0d0d;
  box-shadow: 0 2px 6px rgba(0, 0, 0, 0.1);
}

.btn-primary:hover {
  background: #262626;
  border-color: #262626;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
}

.btn-secondary {
  background: #ffffff;
  color: var(--text-primary);
  border: 1px solid var(--border-subtle);
}

.btn-secondary:hover {
  background: #f4f4f6;
  border-color: var(--border-medium);
}

.btn-lg {
  padding: 14px 28px;
  font-size: 1rem;
  border-radius: var(--radius-md);
}

/* ── Badges ───────────────────────────────────────────────────────────────── */
.badge {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 6px 14px;
  border-radius: var(--radius-full);
  font-size: 0.78rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.05em;
}

.badge-glow {
  background: #f4f4f6;
  border: 1px solid var(--border-subtle);
  color: #374151;
}

.badge-dot {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: #10a37f;
}

/* ── Hero Section ─────────────────────────────────────────────────────────── */
.hero {
  padding: 120px 0 80px;
  position: relative;
  background: linear-gradient(180deg, #f9f9fb 0%, #ffffff 100%);
  border-bottom: 1px solid var(--border-subtle);
}

.hero-header-center {
  text-align: center;
  max-width: 860px;
  margin: 0 auto 36px;
  display: flex;
  flex-direction: column;
  align-items: center;
}

.hero-title {
  font-size: 3.4rem;
  font-weight: 800;
  letter-spacing: -0.03em;
  margin: 18px 0;
  line-height: 1.15;
  color: #0d0d0d;
}

.hero-title .gradient-text {
  color: #374151;
}

.hero-subtitle {
  font-size: 1.15rem;
  color: var(--text-secondary);
  margin-bottom: 30px;
  max-width: 720px;
  line-height: 1.65;
}

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

.hero-meta-list {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 24px;
  padding-top: 16px;
  border-top: 1px solid var(--border-subtle);
  width: 100%;
  max-width: 680px;
}

.hero-meta-item {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 0.85rem;
  color: var(--text-muted);
}

.hero-meta-item svg {
  color: #374151;
}

/* ── Hero Large Horizontal Video Window ───────────────────────────────────── */
.hero-video-container {
  max-width: 1140px;
  margin: 16px auto 0;
  width: 100%;
}

.app-window-preview {
  background: #ffffff;
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-lg);
  box-shadow: 0 12px 36px rgba(0, 0, 0, 0.08);
  overflow: hidden;
  position: relative;
  width: 100%;
}

.app-window-header {
  height: 44px;
  background: #f7f7f8;
  border-bottom: 1px solid var(--border-subtle);
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 18px;
}

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

.window-dot {
  width: 10px;
  height: 10px;
  border-radius: 50%;
}
.window-dot.red { background: #e5e5ea; }
.window-dot.yellow { background: #d1d1d6; }
.window-dot.green { background: #8e8e93; }

.window-title {
  font-size: 0.82rem;
  color: var(--text-secondary);
  font-family: var(--font-mono);
  display: flex;
  align-items: center;
  gap: 6px;
  font-weight: 600;
}

.app-window-body {
  padding: 0;
  background: #0d0d0d;
}

.hero-video-player {
  width: 100%;
  aspect-ratio: 16 / 9;
  min-height: 480px;
  max-height: 640px;
  display: block;
  object-fit: cover;
  background: #0d0d0d;
}



.agent-live-stage {
  display: flex;
  flex-direction: column;
  gap: 14px;
}

.agent-step-card {
  background: #f9f9fb;
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-sm);
  padding: 14px 18px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  transition: var(--transition-fast);
}

.agent-step-card.active {
  border-color: #0d0d0d;
  background: #ffffff;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.04);
}

.step-info {
  display: flex;
  align-items: center;
  gap: 12px;
}

.step-status-pill {
  font-size: 0.75rem;
  padding: 4px 10px;
  border-radius: var(--radius-full);
  font-weight: 600;
  font-family: var(--font-mono);
}

.step-status-pill.success {
  background: #eefcf6;
  color: #10a37f;
  border: 1px solid #d1fae5;
}

.step-status-pill.processing {
  background: #f4f4f6;
  color: #0d0d0d;
  border: 1px solid var(--border-subtle);
}

/* ── Section Headers ──────────────────────────────────────────────────────── */
.section-header {
  text-align: center;
  max-width: 720px;
  margin: 0 auto 50px;
}

.section-tag {
  color: #4b5563;
  font-size: 0.82rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  margin-bottom: 10px;
  display: inline-block;
}

.section-title {
  font-size: 2.3rem;
  font-weight: 800;
  letter-spacing: -0.02em;
  margin-bottom: 14px;
  color: #0d0d0d;
}

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

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

.feature-card {
  background: #ffffff;
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-md);
  padding: 30px;
  transition: all var(--transition-normal);
  display: flex;
  flex-direction: column;
}

.feature-card:hover {
  border-color: #0d0d0d;
  box-shadow: var(--shadow-card);
  transform: translateY(-2px);
}

.feature-icon-box {
  width: 46px;
  height: 46px;
  border-radius: var(--radius-sm);
  background: #f4f4f6;
  border: 1px solid var(--border-subtle);
  display: flex;
  align-items: center;
  justify-content: center;
  color: #0d0d0d;
  margin-bottom: 20px;
}

.feature-title {
  font-size: 1.2rem;
  margin-bottom: 10px;
  color: #0d0d0d;
}

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

.feature-list {
  margin-top: 18px;
  padding-top: 14px;
  border-top: 1px solid var(--border-subtle);
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.feature-list-item {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 0.85rem;
  color: var(--text-secondary);
}

.feature-list-item svg {
  color: #10a37f;
  flex-shrink: 0;
}

/* ── Interactive Feature Sandbox ──────────────────────────────────────────── */
.sandbox-container {
  background: #ffffff;
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-card);
  overflow: hidden;
}

.sandbox-nav-tabs {
  display: flex;
  background: #f7f7f8;
  border-bottom: 1px solid var(--border-subtle);
  overflow-x: auto;
}

.sandbox-tab {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 16px 26px;
  background: transparent;
  border: none;
  color: var(--text-secondary);
  font-family: var(--font-sans);
  font-size: 0.92rem;
  font-weight: 600;
  cursor: pointer;
  transition: var(--transition-fast);
  border-bottom: 2px solid transparent;
  white-space: nowrap;
}

.sandbox-tab:hover {
  color: var(--text-primary);
  background: #f0f0f3;
}

.sandbox-tab.active {
  color: var(--text-primary);
  background: #ffffff;
  border-bottom-color: #0d0d0d;
}

.sandbox-content-panel {
  display: none;
  padding: 32px;
  background: #ffffff;
}

.sandbox-content-panel.active {
  display: block;
}

/* ── Whiteboard Canvas Simulator ──────────────────────────────────────────── */
.whiteboard-sim-grid {
  display: grid;
  grid-template-columns: 1fr 320px;
  gap: 24px;
  align-items: start;
}

.whiteboard-canvas-wrapper {
  background: #f7f7f8;
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-md);
  height: 380px;
  position: relative;
  overflow: hidden;
  display: flex;
  align-items: center;
  justify-content: center;
}

.whiteboard-canvas-svg {
  width: 100%;
  height: 100%;
}

.whiteboard-controls-card {
  background: #f9f9fb;
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-md);
  padding: 22px;
  display: flex;
  flex-direction: column;
  gap: 14px;
}

.whiteboard-btn-group {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.whiteboard-demo-btn {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 12px 14px;
  background: #ffffff;
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-sm);
  color: var(--text-primary);
  font-size: 0.88rem;
  font-weight: 500;
  cursor: pointer;
  transition: var(--transition-fast);
}

.whiteboard-demo-btn:hover {
  background: #f4f4f6;
  border-color: #0d0d0d;
}

.whiteboard-demo-btn.active {
  background: #0d0d0d;
  border-color: #0d0d0d;
  color: #ffffff;
}

/* ── Voice Engine Waveform Simulator ──────────────────────────────────────── */
.voice-sim-wrapper {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 28px;
  align-items: center;
}

.waveform-display-box {
  background: #f7f7f8;
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-md);
  padding: 28px;
  display: flex;
  flex-direction: column;
  gap: 20px;
}

.waveform-bars {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  height: 60px;
}

.wave-bar {
  width: 6px;
  border-radius: 3px;
  background: #374151;
  height: 10px;
  transition: height 0.15s ease;
}

.waveform-bars.playing .wave-bar {
  animation: waveAnim 0.8s infinite ease-in-out alternate;
}

.waveform-bars.playing .wave-bar:nth-child(2n) { animation-delay: 0.1s; }
.waveform-bars.playing .wave-bar:nth-child(3n) { animation-delay: 0.2s; }
.waveform-bars.playing .wave-bar:nth-child(4n) { animation-delay: 0.3s; }
.waveform-bars.playing .wave-bar:nth-child(5n) { animation-delay: 0.4s; }

@keyframes waveAnim {
  0% { height: 8px; opacity: 0.3; }
  100% { height: 50px; opacity: 1; }
}

.emotion-tags-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 10px;
}

.emotion-tag-btn {
  padding: 11px;
  border-radius: var(--radius-sm);
  background: #ffffff;
  border: 1px solid var(--border-subtle);
  color: var(--text-secondary);
  font-size: 0.85rem;
  font-family: var(--font-mono);
  display: flex;
  align-items: center;
  gap: 8px;
  cursor: pointer;
  transition: var(--transition-fast);
}

.emotion-tag-btn:hover, .emotion-tag-btn.active {
  background: #f4f4f6;
  border-color: #0d0d0d;
  color: #0d0d0d;
}

/* ── Download Center ──────────────────────────────────────────────────────── */
.download-section {
  background: #f9f9fb;
}

.download-hero-card {
  background: #ffffff;
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-lg);
  padding: 42px;
  box-shadow: var(--shadow-card);
  display: grid;
  grid-template-columns: 1.2fr 0.8fr;
  gap: 36px;
  align-items: center;
  position: relative;
}

.download-meta-table {
  width: 100%;
  border-collapse: collapse;
}

.download-meta-table td {
  padding: 10px 0;
  border-bottom: 1px solid var(--border-subtle);
  font-size: 0.9rem;
}

.download-meta-table td:first-child {
  color: var(--text-muted);
}

.download-meta-table td:last-child {
  text-align: right;
  font-family: var(--font-mono);
  color: var(--text-primary);
  font-weight: 600;
}

/* ── Multi-Agent Architecture Section ─────────────────────────────────────── */
.arch-visualizer-container {
  background: #ffffff;
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-card);
  overflow: hidden;
  display: flex;
  flex-direction: column;
}

.arch-visualizer-header {
  background: #f7f7f8;
  border-bottom: 1px solid var(--border-subtle);
  padding: 14px 24px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 12px;
}

.arch-sim-controls {
  display: flex;
  align-items: center;
  gap: 10px;
}

.arch-scenario-btn {
  padding: 8px 14px;
  border-radius: var(--radius-sm);
  background: #ffffff;
  border: 1px solid var(--border-subtle);
  font-size: 0.82rem;
  font-weight: 600;
  color: var(--text-secondary);
  cursor: pointer;
  transition: var(--transition-fast);
}

.arch-scenario-btn:hover, .arch-scenario-btn.active {
  background: #0d0d0d;
  color: #ffffff;
  border-color: #0d0d0d;
}

.arch-canvas-stage {
  padding: 24px;
  background: #fdfdfd;
  position: relative;
  overflow-x: auto;
}

.arch-svg-flow {
  width: 100%;
  min-width: 1040px;
  height: 480px;
  display: block;
}

.arch-svg-flow path {
  fill: none;
}


.arch-node {
  cursor: pointer;
  transition: all 0.2s ease;
}

.arch-node:hover rect, .arch-node.active rect {
  stroke: #0d0d0d !important;
  stroke-width: 2.2px !important;
  filter: drop-shadow(0 2px 8px rgba(0,0,0,0.12));
}

.arch-node.active text {
  font-weight: 700;
}

.arch-pulse-dot {
  fill: #10a37f;
  filter: drop-shadow(0 0 6px rgba(16, 163, 127, 0.6));
  transition: all 0.5s ease;
}

.arch-inspector-panel {
  background: #f9f9fb;
  border-top: 1px solid var(--border-subtle);
  padding: 24px;
  display: grid;
  grid-template-columns: 1fr 1.2fr;
  gap: 24px;
  align-items: center;
}

.arch-inspector-title {
  font-size: 1.15rem;
  font-weight: 800;
  color: #0d0d0d;
  margin-bottom: 6px;
  display: flex;
  align-items: center;
  gap: 10px;
}

.arch-inspector-desc {
  font-size: 0.88rem;
  color: var(--text-secondary);
  line-height: 1.6;
}

.arch-spec-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 12px;
}

.arch-spec-box {
  background: #ffffff;
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-sm);
  padding: 10px 14px;
}

.arch-spec-label {
  font-size: 0.72rem;
  font-weight: 700;
  text-transform: uppercase;
  color: var(--text-muted);
  letter-spacing: 0.05em;
  margin-bottom: 4px;
}

.arch-spec-val {
  font-family: var(--font-mono);
  font-size: 0.82rem;
  color: #0d0d0d;
  font-weight: 600;
}


/* ── Quick Start Terminal Codeblocks ──────────────────────────────────────── */
.terminal-card {
  background: #ffffff;
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-md);
  overflow: hidden;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.04);
}

.terminal-header {
  background: #f7f7f8;
  padding: 10px 16px;
  border-bottom: 1px solid var(--border-subtle);
  display: flex;
  align-items: center;
  justify-content: space-between;
}

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

.copy-btn {
  background: transparent;
  border: 1px solid var(--border-subtle);
  color: var(--text-secondary);
  cursor: pointer;
  display: flex;
  align-items: center;
  gap: 6px;
  font-size: 0.75rem;
  font-family: var(--font-mono);
  transition: var(--transition-fast);
  padding: 4px 10px;
  border-radius: 4px;
  background: #ffffff;
}

.copy-btn:hover {
  color: #0d0d0d;
  border-color: #0d0d0d;
  background: #f4f4f6;
}

.terminal-body {
  padding: 18px 20px;
  font-family: var(--font-mono);
  font-size: 0.88rem;
  line-height: 1.7;
  color: #1f2937;
  background: #ffffff;
  overflow-x: auto;
}

.terminal-line {
  display: flex;
  gap: 12px;
}

.terminal-prompt {
  color: #6b7280;
  user-select: none;
}

.terminal-comment {
  color: #9ca3af;
  font-style: italic;
}

/* ── FAQ Section ──────────────────────────────────────────────────────────── */
.faq-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 18px;
}

.faq-item {
  background: #ffffff;
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-md);
  padding: 24px;
}

.faq-question {
  font-size: 1.05rem;
  font-weight: 700;
  margin-bottom: 8px;
  display: flex;
  align-items: center;
  gap: 10px;
  color: #0d0d0d;
}

.faq-question svg {
  color: #374151;
  flex-shrink: 0;
}

.faq-answer {
  color: var(--text-secondary);
  font-size: 0.92rem;
  line-height: 1.6;
}

/* ── Footer ───────────────────────────────────────────────────────────────── */
.footer {
  border-top: 1px solid var(--border-subtle);
  background: #f7f7f8;
  padding: 50px 0 24px;
}

.footer-grid {
  display: grid;
  grid-template-columns: 1.5fr 1fr 1fr 1fr;
  gap: 36px;
  margin-bottom: 36px;
}

.footer-brand p {
  color: var(--text-muted);
  font-size: 0.88rem;
  margin-top: 10px;
  max-width: 300px;
}

.footer-heading {
  font-size: 0.85rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  margin-bottom: 16px;
  color: var(--text-primary);
}

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

.footer-link {
  font-size: 0.88rem;
  color: var(--text-secondary);
  transition: var(--transition-fast);
}

.footer-link:hover {
  color: #0d0d0d;
}

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

/* ── Responsive Media Queries ─────────────────────────────────────────────── */
@media (max-width: 1024px) {
  .hero-grid, .download-hero-card, .whiteboard-sim-grid, .voice-sim-wrapper {
    grid-template-columns: 1fr;
  }
  .features-grid {
    grid-template-columns: repeat(2, 1fr);
  }
  .hero-title {
    font-size: 2.6rem;
  }
  .footer-grid {
    grid-template-columns: 1fr 1fr;
  }
}

@media (max-width: 768px) {
  .features-grid, .faq-grid {
    grid-template-columns: 1fr;
  }
  .nav-links {
    display: none;
  }
  .hero-title {
    font-size: 2rem;
  }
  .footer-grid {
    grid-template-columns: 1fr;
  }
  .footer-bottom {
    flex-direction: column;
    gap: 10px;
    text-align: center;
  }
}
