/* ==========================================================================
   HelmCode — Design System & Stylesheet
   Mobile-First iPad AI Coding Console Landing Page
   ========================================================================== */

:root {
  --font-sans: 'Plus Jakarta Sans', -apple-system, BlinkMacSystemFont, "SF Pro Display", "Segoe UI", Roboto, sans-serif;
  --font-mono: 'JetBrains Mono', "SF Mono", Menlo, Consolas, Monaco, monospace;

  /* Color Palette */
  --bg-dark: #080a0f;
  --bg-surface: #0e121a;
  --bg-surface-elevated: #151a26;
  --bg-surface-glass: rgba(14, 18, 26, 0.75);
  --bg-card: rgba(18, 24, 38, 0.65);
  --bg-card-hover: rgba(24, 32, 50, 0.85);

  --border-subtle: rgba(255, 255, 255, 0.08);
  --border-focus: rgba(56, 189, 248, 0.4);
  --border-glass: rgba(255, 255, 255, 0.12);

  --text-main: #f1f5f9;
  --text-secondary: #94a3b8;
  --text-muted: #64748b;
  --text-dim: #475569;

  --accent-cyan: #06b6d4;
  --accent-cyan-glow: rgba(6, 182, 212, 0.25);
  --accent-blue: #3b82f6;
  --accent-purple: #8b5cf6;
  --accent-green: #10b981;
  --accent-amber: #f59e0b;
  --accent-pink: #ec4899;

  --gradient-brand: linear-gradient(135deg, #38bdf8 0%, #3b82f6 50%, #8b5cf6 100%);
  --gradient-glow: radial-gradient(circle at 50% 0%, rgba(56, 189, 248, 0.15) 0%, rgba(139, 92, 246, 0.05) 50%, transparent 80%);

  --radius-sm: 6px;
  --radius-md: 12px;
  --radius-lg: 18px;
  --radius-xl: 24px;
  --radius-full: 9999px;

  --shadow-sm: 0 2px 8px rgba(0, 0, 0, 0.3);
  --shadow-md: 0 8px 24px rgba(0, 0, 0, 0.45);
  --shadow-lg: 0 20px 50px rgba(0, 0, 0, 0.6);
  --shadow-glow: 0 0 40px rgba(56, 189, 248, 0.15);

  --container-max: 1200px;
  --container-reading: 840px;
}

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

html {
  font-family: var(--font-sans);
  background-color: var(--bg-dark);
  color: var(--text-main);
  line-height: 1.6;
  scroll-behavior: smooth;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

body {
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  position: relative;
  overflow-x: hidden;
  background-image: 
    radial-gradient(rgba(255, 255, 255, 0.05) 1px, transparent 1px),
    var(--gradient-glow);
  background-size: 32px 32px, 100% 1200px;
  background-repeat: repeat, no-repeat;
  background-position: 0 0, top center;
}

a {
  color: inherit;
  text-decoration: none;
  transition: color 0.2s ease, opacity 0.2s ease;
}

code, pre {
  font-family: var(--font-mono);
}

img {
  max-width: 100%;
  height: auto;
  display: block;
}

/* --------------------------------------------------------------------------
   Layout Containers
   -------------------------------------------------------------------------- */
.container {
  width: 100%;
  max-width: var(--container-max);
  margin: 0 auto;
  padding: 0 24px;
}

.site-main {
  flex: 1 0 auto;
}

/* --------------------------------------------------------------------------
   Buttons & Tags
   -------------------------------------------------------------------------- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  font-weight: 600;
  font-size: 0.95rem;
  padding: 12px 22px;
  border-radius: var(--radius-md);
  border: 1px solid transparent;
  cursor: pointer;
  transition: all 0.2s cubic-bezier(0.16, 1, 0.3, 1);
  white-space: nowrap;
}

.btn-primary {
  background: var(--gradient-brand);
  color: #ffffff;
  box-shadow: 0 4px 18px rgba(56, 189, 248, 0.35);
}

.btn-primary:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 24px rgba(56, 189, 248, 0.5);
  filter: brightness(1.1);
}

.btn-secondary {
  background: rgba(255, 255, 255, 0.05);
  color: var(--text-main);
  border-color: var(--border-subtle);
  backdrop-filter: blur(10px);
}

.btn-secondary:hover {
  background: rgba(255, 255, 255, 0.1);
  border-color: rgba(255, 255, 255, 0.2);
  transform: translateY(-2px);
}

.btn-sm {
  font-size: 0.85rem;
  padding: 8px 14px;
  border-radius: var(--radius-sm);
}

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

.btn-icon {
  flex-shrink: 0;
}

/* --------------------------------------------------------------------------
   Navigation Header
   -------------------------------------------------------------------------- */
.site-header {
  position: sticky;
  top: 0;
  z-index: 100;
  background: var(--bg-surface-glass);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  border-bottom: 1px solid var(--border-subtle);
  transition: background-color 0.3s ease;
}

.header-container {
  max-width: var(--container-max);
  margin: 0 auto;
  padding: 14px 24px;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.brand-logo {
  display: flex;
  align-items: center;
  gap: 12px;
}

.brand-icon {
  width: 34px;
  height: 34px;
  border-radius: 9px;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.4);
}

.brand-text {
  font-size: 1.25rem;
  font-weight: 700;
  letter-spacing: -0.02em;
  background: linear-gradient(180deg, #ffffff 30%, #94a3b8 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
}

.brand-badge {
  font-size: 0.68rem;
  font-weight: 700;
  text-transform: uppercase;
  padding: 2px 7px;
  border-radius: var(--radius-full);
  background: rgba(56, 189, 248, 0.12);
  color: var(--accent-cyan);
  border: 1px solid rgba(56, 189, 248, 0.3);
  letter-spacing: 0.05em;
}

.nav-menu {
  display: flex;
  align-items: center;
}

.nav-list {
  display: flex;
  list-style: none;
  gap: 28px;
}

.nav-link {
  font-size: 0.92rem;
  font-weight: 500;
  color: var(--text-secondary);
}

.nav-link:hover, .nav-link.active {
  color: #ffffff;
}

.nav-actions-mobile {
  display: none;
}

.header-actions {
  display: flex;
  align-items: center;
  gap: 12px;
}

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

.mobile-toggle .bar {
  display: block;
  width: 22px;
  height: 2px;
  background-color: var(--text-main);
  border-radius: 2px;
  transition: all 0.2s ease;
}

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

.hero-pill {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 6px 14px;
  border-radius: var(--radius-full);
  background: rgba(56, 189, 248, 0.08);
  border: 1px solid rgba(56, 189, 248, 0.25);
  font-size: 0.82rem;
  color: var(--accent-cyan);
  margin-bottom: 24px;
  animation: fadeIn 0.8s ease;
}

.hero-pill-badge {
  background: var(--accent-cyan);
  color: #000000;
  font-weight: 700;
  padding: 1px 6px;
  border-radius: var(--radius-full);
  font-size: 0.72rem;
}

.hero-title {
  font-size: clamp(2.3rem, 5.2vw, 4.2rem);
  font-weight: 800;
  line-height: 1.15;
  letter-spacing: -0.035em;
  margin-bottom: 20px;
  max-width: 900px;
  margin-left: auto;
  margin-right: auto;
}

.text-gradient {
  background: var(--gradient-brand);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
}

.hero-subtitle {
  font-size: clamp(1.05rem, 1.8vw, 1.25rem);
  color: var(--text-secondary);
  max-width: 720px;
  margin: 0 auto 36px;
  font-weight: 400;
  line-height: 1.65;
}

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

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

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

.hero-meta-item svg {
  color: var(--accent-cyan);
}

/* --------------------------------------------------------------------------
   App Visual Mockup (iPad Shell)
   -------------------------------------------------------------------------- */
.hero-mockup-wrapper {
  margin-top: 50px;
  position: relative;
  perspective: 1000px;
}

.hero-mockup-glow {
  position: absolute;
  top: 10%;
  left: 10%;
  right: 10%;
  bottom: 0;
  background: radial-gradient(ellipse at center, rgba(56, 189, 248, 0.22) 0%, rgba(139, 92, 246, 0.15) 40%, transparent 70%);
  filter: blur(60px);
  z-index: 0;
  pointer-events: none;
}

.ipad-frame {
  position: relative;
  z-index: 1;
  background: #171b26;
  border-radius: 28px;
  padding: 12px;
  box-shadow: 
    0 0 0 1px rgba(255, 255, 255, 0.15),
    0 25px 70px -10px rgba(0, 0, 0, 0.8),
    0 10px 25px rgba(0, 0, 0, 0.5);
  border: 1px solid rgba(255, 255, 255, 0.1);
  overflow: hidden;
  text-align: left;
}

.ipad-camera {
  position: absolute;
  top: 6px;
  left: 50%;
  transform: translateX(-50%);
  width: 8px;
  height: 8px;
  background: #000000;
  border-radius: 50%;
  border: 1px solid rgba(255, 255, 255, 0.15);
  z-index: 10;
}

.ipad-screen {
  background: #0d1117;
  border-radius: 20px;
  overflow: hidden;
  border: 1px solid rgba(255, 255, 255, 0.06);
  display: flex;
  flex-direction: column;
}

.ipad-screen-shot {
  display: block;
  line-height: 0;
}

.hero-screenshot {
  width: 100%;
  height: auto;
  display: block;
  border-radius: 18px;
}

/* Mockup Header Toolbar */
.mockup-toolbar {
  height: 42px;
  background: #161b22;
  border-bottom: 1px solid #21262d;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 16px;
  font-size: 0.8rem;
  color: var(--text-secondary);
  user-select: none;
}

.mockup-traffic-lights {
  display: flex;
  gap: 7px;
}

.mockup-traffic-lights span {
  width: 10px;
  height: 10px;
  border-radius: 50%;
}

.light-red { background: #ff5f56; }
.light-yellow { background: #ffbd2e; }
.light-green { background: #27c93f; }

.mockup-project-tag {
  display: flex;
  align-items: center;
  gap: 8px;
  font-weight: 600;
  color: var(--text-main);
  background: rgba(255, 255, 255, 0.05);
  padding: 3px 10px;
  border-radius: 6px;
  border: 1px solid rgba(255, 255, 255, 0.06);
}

.mockup-status-dot {
  width: 7px;
  height: 7px;
  background: var(--accent-green);
  border-radius: 50%;
  box-shadow: 0 0 6px var(--accent-green);
}

.mockup-actions {
  display: flex;
  align-items: center;
  gap: 12px;
  font-size: 0.75rem;
}

.mockup-badge-vfs {
  color: var(--accent-cyan);
  background: rgba(6, 182, 212, 0.1);
  padding: 2px 8px;
  border-radius: 4px;
  font-family: var(--font-mono);
  font-size: 0.72rem;
}

/* Mockup Main Split View */
.mockup-workspace {
  flex: 1;
  display: flex;
  overflow: hidden;
}

/* Left: Sidebar */
.mockup-sidebar {
  width: 220px;
  background: #0d1117;
  border-right: 1px solid #21262d;
  display: flex;
  flex-direction: column;
}

.mockup-sidebar-nav {
  display: flex;
  justify-content: space-around;
  padding: 8px 4px;
  border-bottom: 1px solid #21262d;
  color: var(--text-muted);
}

.mockup-sidebar-nav .active {
  color: var(--accent-cyan);
}

.mockup-filetree {
  padding: 10px 0;
  font-family: var(--font-mono);
  font-size: 0.76rem;
  color: var(--text-secondary);
  overflow-y: hidden;
}

.tree-item {
  padding: 5px 14px;
  display: flex;
  align-items: center;
  gap: 6px;
  cursor: pointer;
}

.tree-item:hover {
  background: rgba(255, 255, 255, 0.03);
}

.tree-item.active {
  background: rgba(56, 189, 248, 0.12);
  color: #38bdf8;
  border-left: 2px solid #38bdf8;
}

.tree-item.folder {
  color: var(--text-main);
  font-weight: 500;
}

.tree-level-1 { padding-left: 24px; }
.tree-level-2 { padding-left: 36px; }

/* Center: CodeMirror Editor */
.mockup-editor {
  flex: 1;
  background: #090d13;
  display: flex;
  flex-direction: column;
  position: relative;
  border-right: 1px solid #21262d;
}

.editor-tabs {
  height: 34px;
  background: #10141d;
  border-bottom: 1px solid #21262d;
  display: flex;
  align-items: center;
  padding: 0 8px;
  gap: 4px;
}

.editor-tab {
  display: flex;
  align-items: center;
  gap: 6px;
  padding: 4px 10px;
  font-size: 0.75rem;
  font-family: var(--font-mono);
  color: var(--text-muted);
  border-radius: 4px 4px 0 0;
}

.editor-tab.active {
  background: #090d13;
  color: var(--text-main);
  border-bottom: 2px solid var(--accent-cyan);
}

.editor-code-body {
  flex: 1;
  padding: 14px 12px;
  font-family: var(--font-mono);
  font-size: 0.78rem;
  line-height: 1.6;
  overflow: hidden;
}

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

.line-no {
  color: #4b5563;
  width: 22px;
  text-align: right;
  user-select: none;
}

.line-code {
  color: #e5e7eb;
}

.kw { color: #f472b6; }
.fn { color: #60a5fa; }
.str { color: #34d399; }
.type { color: #fbbf24; }
.com { color: #64748b; font-style: italic; }

/* Right: Agent Commander Panel */
.mockup-commander {
  width: 280px;
  background: #11151f;
  display: flex;
  flex-direction: column;
}

.commander-header {
  height: 34px;
  background: #161c28;
  border-bottom: 1px solid #21262d;
  padding: 0 12px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  font-size: 0.75rem;
  font-weight: 600;
  color: var(--text-main);
}

.agent-tag {
  color: var(--accent-purple);
  background: rgba(139, 92, 246, 0.15);
  padding: 2px 6px;
  border-radius: 4px;
}

.commander-body {
  flex: 1;
  padding: 12px;
  display: flex;
  flex-direction: column;
  gap: 10px;
  font-size: 0.74rem;
  overflow-y: hidden;
}

.chat-bubble {
  padding: 8px 10px;
  border-radius: 8px;
  line-height: 1.45;
}

.chat-user {
  background: rgba(56, 189, 248, 0.12);
  border: 1px solid rgba(56, 189, 248, 0.25);
  color: #e0f2fe;
  align-self: flex-end;
}

.chat-agent {
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid #2d3748;
  color: var(--text-secondary);
}

.chat-agent strong {
  color: #fff;
}

.chat-diff-pill {
  margin-top: 5px;
  padding: 3px 6px;
  background: #090d13;
  border-radius: 4px;
  font-family: var(--font-mono);
  font-size: 0.68rem;
  color: var(--accent-green);
  display: inline-block;
}

.commander-composer {
  padding: 8px;
  background: #161c28;
  border-top: 1px solid #21262d;
}

.composer-input-box {
  background: #090d13;
  border: 1px solid #2d3748;
  border-radius: 6px;
  padding: 6px 8px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  font-size: 0.72rem;
  color: var(--text-muted);
}

.composer-trigger {
  color: var(--accent-cyan);
  font-family: var(--font-mono);
}

/* Bottom Terminal Drawer */
.mockup-terminal {
  height: 90px;
  background: #06090e;
  border-top: 1px solid #21262d;
  padding: 6px 12px;
  font-family: var(--font-mono);
  font-size: 0.72rem;
  display: flex;
  flex-direction: column;
  gap: 3px;
}

.terminal-titlebar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  color: var(--text-muted);
  font-size: 0.68rem;
  margin-bottom: 2px;
}

.term-cmd {
  color: #38bdf8;
}

.term-out {
  color: #94a3b8;
}

.term-success {
  color: var(--accent-green);
}

/* --------------------------------------------------------------------------
   Sections General
   -------------------------------------------------------------------------- */
.section-wrapper {
  padding: 90px 0;
  position: relative;
}

.section-alt {
  background: rgba(14, 18, 26, 0.4);
  border-top: 1px solid var(--border-subtle);
  border-bottom: 1px solid var(--border-subtle);
}

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

.section-tag {
  display: inline-block;
  font-size: 0.8rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--accent-cyan);
  margin-bottom: 12px;
}

.section-title {
  font-size: clamp(1.8rem, 3.2vw, 2.6rem);
  font-weight: 800;
  letter-spacing: -0.025em;
  margin-bottom: 14px;
}

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

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

.feature-card {
  background: var(--bg-card);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-lg);
  padding: 32px 24px;
  transition: all 0.25s ease;
  position: relative;
  overflow: hidden;
}

.feature-card::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 1px;
  background: linear-gradient(90deg, transparent, rgba(56, 189, 248, 0.3), transparent);
  opacity: 0;
  transition: opacity 0.3s ease;
}

.feature-card:hover {
  background: var(--bg-card-hover);
  border-color: rgba(56, 189, 248, 0.3);
  transform: translateY(-4px);
  box-shadow: var(--shadow-md);
}

.feature-card:hover::before {
  opacity: 1;
}

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

.icon-purple {
  background: rgba(139, 92, 246, 0.1);
  color: var(--accent-purple);
  border-color: rgba(139, 92, 246, 0.2);
}

.icon-blue {
  background: rgba(59, 130, 246, 0.1);
  color: var(--accent-blue);
  border-color: rgba(59, 130, 246, 0.2);
}

.icon-green {
  background: rgba(16, 185, 129, 0.1);
  color: var(--accent-green);
  border-color: rgba(16, 185, 129, 0.2);
}

.icon-amber {
  background: rgba(245, 158, 11, 0.1);
  color: var(--accent-amber);
  border-color: rgba(245, 158, 11, 0.2);
}

.icon-pink {
  background: rgba(236, 72, 153, 0.1);
  color: var(--accent-pink);
  border-color: rgba(236, 72, 153, 0.2);
}

.feature-title {
  font-size: 1.22rem;
  font-weight: 700;
  margin-bottom: 10px;
  color: var(--text-main);
}

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

.feature-badge-list {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  margin-top: 18px;
}

.feature-mini-tag {
  font-size: 0.72rem;
  font-family: var(--font-mono);
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid var(--border-subtle);
  padding: 3px 8px;
  border-radius: var(--radius-sm);
  color: var(--text-muted);
}

/* --------------------------------------------------------------------------
   Architecture Section
   -------------------------------------------------------------------------- */
.arch-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 40px;
  align-items: center;
}

.arch-info {
  display: flex;
  flex-direction: column;
  gap: 20px;
}

.arch-step-list {
  display: flex;
  flex-direction: column;
  gap: 18px;
  margin-top: 10px;
}

.arch-step-item {
  display: flex;
  gap: 16px;
}

.arch-step-num {
  width: 32px;
  height: 32px;
  border-radius: 50%;
  background: rgba(56, 189, 248, 0.15);
  color: var(--accent-cyan);
  font-weight: 700;
  font-size: 0.9rem;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  border: 1px solid rgba(56, 189, 248, 0.3);
}

.arch-step-content h4 {
  font-size: 1.05rem;
  font-weight: 600;
  margin-bottom: 4px;
}

.arch-step-content p {
  font-size: 0.88rem;
  color: var(--text-secondary);
}

.arch-diagram-card {
  background: #090c13;
  border: 1px solid var(--border-glass);
  border-radius: var(--radius-xl);
  padding: 30px;
  box-shadow: var(--shadow-lg);
  font-family: var(--font-mono);
  font-size: 0.82rem;
  position: relative;
}

.arch-node {
  background: #131926;
  border: 1px solid #243048;
  border-radius: var(--radius-md);
  padding: 16px;
  margin-bottom: 18px;
  position: relative;
}

.arch-node.client {
  border-color: rgba(56, 189, 248, 0.4);
}

.arch-node.server {
  border-color: rgba(139, 92, 246, 0.4);
}

.arch-node-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 8px;
  font-weight: 600;
  color: #ffffff;
}

.arch-node-label {
  display: inline-flex;
  align-items: center;
  gap: 6px;
}

.arch-node-tags {
  font-size: 0.7rem;
  color: var(--accent-cyan);
}

.arch-connector {
  text-align: center;
  color: var(--text-muted);
  margin: -6px 0 12px;
  font-size: 0.74rem;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
}

.arch-connector::before, .arch-connector::after {
  content: "";
  height: 1px;
  flex: 1;
  background: #243048;
}

/* --------------------------------------------------------------------------
   Quickstart Guide
   -------------------------------------------------------------------------- */
.quickstart-steps {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
}

.step-card {
  background: var(--bg-surface);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-lg);
  padding: 28px;
  position: relative;
}

.step-badge {
  display: inline-block;
  font-size: 0.75rem;
  font-weight: 700;
  color: var(--accent-cyan);
  margin-bottom: 12px;
  text-transform: uppercase;
  letter-spacing: 0.05em;
}

.step-title {
  font-size: 1.15rem;
  font-weight: 700;
  margin-bottom: 8px;
}

.step-desc {
  font-size: 0.88rem;
  color: var(--text-secondary);
  margin-bottom: 16px;
}

.code-box {
  background: #06090e;
  border: 1px solid #1f2937;
  border-radius: var(--radius-sm);
  padding: 12px 14px;
  font-family: var(--font-mono);
  font-size: 0.78rem;
  color: #38bdf8;
  position: relative;
  overflow-x: auto;
  word-break: break-all;
}

/* --------------------------------------------------------------------------
   FAQ Section
   -------------------------------------------------------------------------- */
.faq-grid {
  max-width: 820px;
  margin: 0 auto;
  display: flex;
  flex-direction: column;
  gap: 14px;
}

.faq-item {
  background: var(--bg-card);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-md);
  overflow: hidden;
  transition: all 0.2s ease;
}

.faq-question {
  width: 100%;
  padding: 20px 24px;
  background: transparent;
  border: none;
  color: var(--text-main);
  font-family: var(--font-sans);
  font-size: 1.05rem;
  font-weight: 600;
  text-align: left;
  display: flex;
  align-items: center;
  justify-content: space-between;
  cursor: pointer;
}

.faq-arrow {
  transition: transform 0.25s ease;
  color: var(--text-muted);
}

.faq-item.active .faq-arrow {
  transform: rotate(180deg);
  color: var(--accent-cyan);
}

.faq-answer {
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.3s ease, padding 0.3s ease;
  padding: 0 24px;
  color: var(--text-secondary);
  font-size: 0.95rem;
  line-height: 1.65;
}

.faq-item.active .faq-answer {
  max-height: 300px;
  padding-bottom: 22px;
}

/* --------------------------------------------------------------------------
   Call To Action (CTA)
   -------------------------------------------------------------------------- */
.cta-box {
  background: linear-gradient(135deg, rgba(14, 18, 26, 0.9) 0%, rgba(24, 33, 50, 0.95) 100%);
  border: 1px solid var(--border-glass);
  border-radius: var(--radius-xl);
  padding: 60px 40px;
  text-align: center;
  position: relative;
  overflow: hidden;
  box-shadow: var(--shadow-lg);
}

.cta-box::before {
  content: "";
  position: absolute;
  top: -100px;
  left: 50%;
  transform: translateX(-50%);
  width: 400px;
  height: 200px;
  background: radial-gradient(ellipse, rgba(56, 189, 248, 0.25), transparent 70%);
  pointer-events: none;
}

.cta-title {
  font-size: clamp(1.8rem, 3.5vw, 2.8rem);
  font-weight: 800;
  margin-bottom: 16px;
  letter-spacing: -0.025em;
}

.cta-desc {
  font-size: 1.1rem;
  color: var(--text-secondary);
  max-width: 600px;
  margin: 0 auto 32px;
}

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

/* --------------------------------------------------------------------------
   Footer
   -------------------------------------------------------------------------- */
.site-footer {
  background: #05070a;
  border-top: 1px solid var(--border-subtle);
  padding: 60px 0 30px;
  color: var(--text-secondary);
}

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

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

.footer-logo {
  display: flex;
  align-items: center;
  gap: 10px;
  font-weight: 700;
  font-size: 1.2rem;
  color: #fff;
  margin-bottom: 14px;
}

.footer-logo img {
  border-radius: 8px;
}

.footer-description {
  font-size: 0.88rem;
  line-height: 1.6;
  color: var(--text-muted);
  max-width: 320px;
  margin-bottom: 18px;
}

.footer-socials {
  display: flex;
  gap: 12px;
  color: var(--text-muted);
}

.footer-socials a:hover {
  color: #fff;
}

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

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

.footer-links a {
  font-size: 0.88rem;
  color: var(--text-muted);
}

.footer-links a:hover {
  color: #ffffff;
}

.footer-bottom {
  border-top: 1px solid rgba(255, 255, 255, 0.05);
  padding-top: 24px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  font-size: 0.82rem;
  color: var(--text-dim);
  flex-wrap: wrap;
  gap: 14px;
}

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

.footer-bottom-links a:hover {
  color: var(--text-secondary);
}

.dot-separator {
  color: var(--border-subtle);
}

/* --------------------------------------------------------------------------
   Legal & Markdown Pages (Terms of Service / Privacy Policy)
   -------------------------------------------------------------------------- */
.legal-page-container {
  max-width: var(--container-reading);
  margin: 0 auto;
  padding: 50px 24px 80px;
}

.legal-header {
  border-bottom: 1px solid var(--border-subtle);
  padding-bottom: 30px;
  margin-bottom: 40px;
}

.legal-badge {
  display: inline-block;
  font-size: 0.78rem;
  font-weight: 700;
  color: var(--accent-cyan);
  text-transform: uppercase;
  letter-spacing: 0.06em;
  margin-bottom: 10px;
}

.legal-title {
  font-size: clamp(2rem, 3.5vw, 2.7rem);
  font-weight: 800;
  letter-spacing: -0.03em;
  margin-bottom: 14px;
}

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

.meta-separator {
  color: var(--border-subtle);
}

.markdown-body {
  font-size: 1rem;
  line-height: 1.75;
  color: #cbd5e1;
}

.markdown-body h2 {
  font-size: 1.45rem;
  font-weight: 700;
  color: #ffffff;
  margin-top: 36px;
  margin-bottom: 14px;
  padding-bottom: 8px;
  border-bottom: 1px solid var(--border-subtle);
}

.markdown-body h3 {
  font-size: 1.18rem;
  font-weight: 600;
  color: #f1f5f9;
  margin-top: 24px;
  margin-bottom: 10px;
}

.markdown-body p {
  margin-bottom: 18px;
}

.markdown-body ul, .markdown-body ol {
  margin-bottom: 20px;
  padding-left: 24px;
}

.markdown-body li {
  margin-bottom: 6px;
}

.markdown-body strong {
  color: #ffffff;
}

.markdown-body blockquote {
  border-left: 3px solid var(--accent-cyan);
  background: rgba(6, 182, 212, 0.06);
  padding: 14px 18px;
  border-radius: 0 var(--radius-sm) var(--radius-sm) 0;
  margin-bottom: 22px;
  color: #e2e8f0;
}

.markdown-body code {
  background: rgba(255, 255, 255, 0.08);
  padding: 2px 6px;
  border-radius: 4px;
  font-size: 0.88em;
  color: var(--accent-cyan);
}

/* --------------------------------------------------------------------------
   Animations & Keyframes
   -------------------------------------------------------------------------- */
@keyframes fadeIn {
  from {
    opacity: 0;
    transform: translateY(8px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

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

  .quickstart-steps {
    grid-template-columns: 1fr;
  }

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

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

  .mockup-commander {
    display: none; /* Hide agent split on narrower viewports */
  }
}

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

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

  .mockup-sidebar {
    display: none; /* Mobile view: focus on editor & terminal */
  }

  .header-gh-btn {
    display: none;
  }

  .mobile-toggle {
    display: flex;
  }

  .nav-menu {
    position: fixed;
    top: 65px;
    left: 0;
    right: 0;
    background: var(--bg-surface-elevated);
    border-bottom: 1px solid var(--border-subtle);
    padding: 24px;
    flex-direction: column;
    align-items: flex-start;
    gap: 20px;
    display: none;
    box-shadow: var(--shadow-lg);
  }

  .nav-menu.open {
    display: flex;
  }

  .nav-list {
    flex-direction: column;
    gap: 16px;
    width: 100%;
  }

  .nav-actions-mobile {
    display: block;
    width: 100%;
    margin-top: 10px;
  }

  .nav-actions-mobile .btn {
    width: 100%;
  }

  .hero-section {
    padding: 50px 0 40px;
  }

  .ipad-frame {
    padding: 8px;
    border-radius: 18px;
  }

  .hero-screenshot {
    border-radius: 12px;
  }
}
