/* ═══════════════════════════════════════
   SCALIX PRIME — Design System
   ═══════════════════════════════════════ */

:root {
  /* Brand colors */
  --prime-deep: #0C5C91;
  --prime-mid: #0B7A7C;
  --prime-light: #45A78F;
  --indigo: #6366f1;
  --indigo-light: #818cf8;
  --emerald: #10b981;
  --emerald-light: #34d399;
  --amber: #f59e0b;
  --red: #ef4444;
  --pink: #ec4899;
  --cyan: #06b6d4;

  /* Surfaces */
  --bg-primary: #06070B;
  --bg-secondary: #0A0B10;
  --bg-card: #0F1118;
  --bg-card-hover: #141620;
  --bg-input: #12141E;
  --border: rgba(255, 255, 255, 0.06);
  --border-hover: rgba(255, 255, 255, 0.12);

  /* Text */
  --text-primary: #f1f5f9;
  --text-secondary: #94a3b8;
  --text-muted: #64748b;

  /* Gradients */
  --grad-prime: linear-gradient(135deg, #0C5C91, #0B7A7C, #45A78F);
  --grad-indigo: linear-gradient(135deg, #818cf8, #6366f1);
  --grad-emerald: linear-gradient(135deg, #34d399, #10b981);

  /* Effects */
  --glow-prime: 0 0 40px rgba(11, 122, 124, 0.15);
  --glow-indigo: 0 0 40px rgba(99, 102, 241, 0.15);
  --glow-emerald: 0 0 40px rgba(16, 185, 129, 0.15);

  /* Spacing */
  --section-padding: 6rem 0;
  --container-width: 1200px;
  --radius: 12px;
  --radius-lg: 16px;
}

/* ═══ Reset ═══ */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; -webkit-font-smoothing: antialiased; }
body {
  font-family: 'Inter', system-ui, -apple-system, sans-serif;
  background: var(--bg-primary);
  color: var(--text-primary);
  line-height: 1.6;
  overflow-x: hidden;
}
a { color: inherit; text-decoration: none; }
img, svg { max-width: 100%; display: block; }
button { cursor: pointer; border: none; background: none; font: inherit; color: inherit; }

/* ═══ Typography ═══ */
h1 { font-size: clamp(2.5rem, 5vw, 4rem); font-weight: 800; line-height: 1.1; letter-spacing: -0.03em; }
h2 { font-size: clamp(2rem, 4vw, 3rem); font-weight: 700; line-height: 1.15; letter-spacing: -0.02em; }
h3 { font-size: 1.5rem; font-weight: 700; line-height: 1.3; }
h4 { font-size: 1.125rem; font-weight: 600; line-height: 1.4; }
p { color: var(--text-secondary); }
.text-gradient {
  background: var(--grad-prime);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}
.text-gradient-indigo {
  background: var(--grad-indigo);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

/* ═══ Layout ═══ */
.container { max-width: var(--container-width); margin: 0 auto; padding: 0 2rem; }
.section { padding: var(--section-padding); position: relative; }
.section-label {
  display: inline-block;
  font-size: 0.75rem;
  font-weight: 700;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  padding: 0.35rem 1rem;
  border-radius: 20px;
  border: 1px solid var(--border);
  color: var(--text-muted);
  margin-bottom: 1rem;
}
.section-header { text-align: center; max-width: 700px; margin: 0 auto 4rem; }
.section-header p { margin-top: 1rem; font-size: 1.1rem; }

/* ═══ Grid ═══ */
.grid-2 { display: grid; grid-template-columns: repeat(2, 1fr); gap: 2rem; }
.grid-3 { display: grid; grid-template-columns: repeat(3, 1fr); gap: 2rem; }
.grid-4 { display: grid; grid-template-columns: repeat(4, 1fr); gap: 1.5rem; }

/* ═══ Navbar ═══ */
.navbar {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 1000;
  padding: 1rem 0;
  backdrop-filter: blur(20px);
  background: rgba(6, 7, 11, 0.8);
  border-bottom: 1px solid var(--border);
  transition: all 0.3s;
}
.navbar .container {
  display: flex;
  align-items: center;
  justify-content: space-between;
}
.nav-logo {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  font-weight: 700;
  font-size: 1.25rem;
}
.nav-logo svg, .nav-logo img { width: 36px; height: 36px; }
.nav-logo span { opacity: 0.5; font-weight: 400; margin-left: 0.25rem; }
.nav-links { display: flex; align-items: center; gap: 2rem; }
.nav-links a {
  font-size: 0.9rem;
  color: var(--text-secondary);
  transition: color 0.2s;
  font-weight: 500;
}
.nav-links a:hover { color: var(--text-primary); }
.nav-cta {
  padding: 0.5rem 1.25rem !important;
  background: var(--grad-prime) !important;
  border-radius: 8px !important;
  color: white !important;
  font-weight: 600 !important;
  font-size: 0.875rem !important;
  transition: opacity 0.2s !important;
}
.nav-cta:hover { opacity: 0.9; }
.navbar.scrolled {
  padding: 0.6rem 0;
  background: rgba(6, 7, 11, 0.95);
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.3);
}

/* ═══ Hero ═══ */
.hero {
  min-height: 100vh;
  display: flex;
  align-items: center;
  padding-top: 5rem;
  position: relative;
  overflow: hidden;
}
.hero::before {
  content: '';
  position: absolute;
  top: -50%;
  left: -20%;
  width: 140%;
  height: 140%;
  background: radial-gradient(ellipse at 30% 50%, rgba(11, 122, 124, 0.08) 0%, transparent 60%),
              radial-gradient(ellipse at 70% 30%, rgba(99, 102, 241, 0.06) 0%, transparent 50%);
  pointer-events: none;
}
.hero .container { position: relative; z-index: 1; }
.hero-content { max-width: 720px; }
.hero-badge {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.4rem 1rem;
  border-radius: 20px;
  border: 1px solid rgba(11, 122, 124, 0.3);
  background: rgba(11, 122, 124, 0.08);
  font-size: 0.8rem;
  font-weight: 600;
  color: var(--prime-light);
  margin-bottom: 1.5rem;
}
.hero-badge .dot {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--emerald);
  animation: pulse-dot 2s infinite;
}
@keyframes pulse-dot {
  0%, 100% { opacity: 1; }
  50% { opacity: 0.3; }
}
.hero h1 { margin-bottom: 1.5rem; }
.hero p { font-size: 1.2rem; max-width: 560px; margin-bottom: 2rem; }
.hero-actions { display: flex; gap: 1rem; flex-wrap: wrap; }

/* ═══ Buttons ═══ */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.75rem 1.75rem;
  border-radius: 10px;
  font-weight: 600;
  font-size: 0.95rem;
  transition: all 0.2s;
}
.btn-primary {
  background: var(--grad-prime);
  color: white;
  box-shadow: 0 4px 20px rgba(11, 122, 124, 0.25);
}
.btn-primary:hover { transform: translateY(-1px); box-shadow: 0 8px 30px rgba(11, 122, 124, 0.35); }
.btn-secondary {
  background: var(--bg-card);
  border: 1px solid var(--border);
  color: var(--text-primary);
}
.btn-secondary:hover { border-color: var(--border-hover); background: var(--bg-card-hover); }

/* ═══ Stats Bar ═══ */
.stats-bar {
  display: flex;
  gap: 3rem;
  margin-top: 3.5rem;
  padding-top: 2rem;
  border-top: 1px solid var(--border);
}
.stat-item .stat-number {
  font-size: 1.75rem;
  font-weight: 800;
  background: var(--grad-prime);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}
.stat-item .stat-label {
  font-size: 0.8rem;
  color: var(--text-muted);
  margin-top: 0.2rem;
}

/* ═══ Cards ═══ */
.card {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 2rem;
  transition: all 0.3s;
  position: relative;
  overflow: hidden;
}
.card:hover {
  border-color: var(--border-hover);
  transform: translateY(-2px);
  box-shadow: var(--glow-prime);
}
.card-accent {
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 2px;
}
.card-accent-prime { background: var(--grad-prime); }
.card-accent-indigo { background: var(--grad-indigo); }
.card-accent-emerald { background: var(--grad-emerald); }
.card-icon {
  width: 48px;
  height: 48px;
  border-radius: 12px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.5rem;
  margin-bottom: 1.25rem;
}
.card-icon-prime { background: rgba(11, 122, 124, 0.12); color: var(--prime-light); }
.card-icon-indigo { background: rgba(99, 102, 241, 0.12); color: var(--indigo-light); }
.card-icon-emerald { background: rgba(16, 185, 129, 0.12); color: var(--emerald-light); }
.card h3 { margin-bottom: 0.75rem; }
.card p { font-size: 0.95rem; }
.card-tag {
  display: inline-block;
  font-size: 0.7rem;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  padding: 0.2rem 0.6rem;
  border-radius: 4px;
  margin-top: 1rem;
}

/* ═══ Feature Section ═══ */
.feature-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 4rem;
  align-items: center;
  padding: 4rem 0;
}
.feature-row:nth-child(even) { direction: rtl; }
.feature-row:nth-child(even) > * { direction: ltr; }
.feature-visual {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 2rem;
  position: relative;
  overflow: hidden;
}
.feature-visual::after {
  content: '';
  position: absolute;
  inset: 0;
  background: radial-gradient(ellipse at center, rgba(11, 122, 124, 0.05) 0%, transparent 70%);
  pointer-events: none;
}

/* ═══ Comparison Table ═══ */
.comparison-table {
  width: 100%;
  border-collapse: separate;
  border-spacing: 0;
  background: var(--bg-card);
  border-radius: var(--radius-lg);
  overflow: hidden;
  border: 1px solid var(--border);
}
.comparison-table th {
  padding: 1rem 1.25rem;
  text-align: left;
  font-size: 0.8rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--text-muted);
  background: var(--bg-secondary);
  border-bottom: 1px solid var(--border);
}
.comparison-table th.highlight {
  color: var(--prime-light);
  background: rgba(11, 122, 124, 0.06);
}
.comparison-table td {
  padding: 0.85rem 1.25rem;
  font-size: 0.9rem;
  border-bottom: 1px solid var(--border);
  color: var(--text-secondary);
}
.comparison-table td.highlight {
  color: var(--text-primary);
  font-weight: 500;
  background: rgba(11, 122, 124, 0.03);
}
.comparison-table tr:last-child td { border-bottom: none; }
.check { color: var(--emerald); font-weight: 700; }
.cross { color: var(--text-muted); }

/* ═══ Architecture Diagram ═══ */
.arch-diagram {
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
  padding: 1.5rem;
}
.arch-layer {
  display: flex;
  align-items: center;
  gap: 1rem;
  padding: 0.75rem 1rem;
  border-radius: 8px;
  border: 1px solid var(--border);
  background: rgba(255, 255, 255, 0.02);
  font-size: 0.85rem;
}
.arch-layer-label {
  font-size: 0.7rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  min-width: 80px;
}
.arch-layer-items {
  display: flex;
  gap: 0.5rem;
  flex-wrap: wrap;
}
.arch-chip {
  padding: 0.25rem 0.6rem;
  border-radius: 4px;
  font-size: 0.75rem;
  font-weight: 500;
}

/* ═══ Use Case Tabs ═══ */
.use-case-tabs {
  display: flex;
  justify-content: center;
  gap: 0.5rem;
  margin-bottom: 3rem;
}
.use-case-tab {
  padding: 0.6rem 1.5rem;
  border-radius: 8px;
  font-size: 0.9rem;
  font-weight: 500;
  color: var(--text-muted);
  border: 1px solid var(--border);
  transition: all 0.2s;
}
.use-case-tab:hover { color: var(--text-secondary); border-color: var(--border-hover); }
.use-case-tab.active {
  color: var(--text-primary);
  background: var(--bg-card);
  border-color: var(--prime-mid);
  box-shadow: 0 0 20px rgba(11, 122, 124, 0.15);
}
.use-case-content { display: none; }
.use-case-content.active { display: block; }

/* ═══ Deployment Section ═══ */
.deploy-options { display: grid; grid-template-columns: repeat(3, 1fr); gap: 2rem; }
.deploy-card {
  text-align: center;
  padding: 2.5rem 2rem;
}
.deploy-card .card-icon {
  margin: 0 auto 1.25rem;
  width: 56px;
  height: 56px;
  font-size: 1.75rem;
}
.deploy-card h3 { margin-bottom: 0.5rem; }
.deploy-card ul {
  list-style: none;
  margin-top: 1.25rem;
  text-align: left;
}
.deploy-card li {
  font-size: 0.85rem;
  color: var(--text-secondary);
  padding: 0.3rem 0;
  display: flex;
  align-items: center;
  gap: 0.5rem;
}
.deploy-card li::before {
  content: '>';
  color: var(--prime-light);
  font-weight: 700;
  font-size: 0.75rem;
}

/* ═══ Lead Form ═══ */
.form-section {
  background: var(--bg-secondary);
  border-top: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
}
.form-wrapper {
  max-width: 600px;
  margin: 0 auto;
}
.form-group { margin-bottom: 1.25rem; }
.form-group label {
  display: block;
  font-size: 0.85rem;
  font-weight: 500;
  color: var(--text-secondary);
  margin-bottom: 0.4rem;
}
.form-group input,
.form-group select,
.form-group textarea {
  width: 100%;
  padding: 0.7rem 1rem;
  background: var(--bg-input);
  border: 1px solid var(--border);
  border-radius: 8px;
  color: var(--text-primary);
  font-size: 0.9rem;
  font-family: inherit;
  transition: border-color 0.2s;
}
.form-group input:focus,
.form-group select:focus,
.form-group textarea:focus {
  outline: none;
  border-color: var(--prime-mid);
  box-shadow: 0 0 0 3px rgba(11, 122, 124, 0.1);
}
.form-group select { appearance: none; cursor: pointer; }
.form-group textarea { resize: vertical; min-height: 80px; }
.form-row { display: grid; grid-template-columns: 1fr 1fr; gap: 1rem; }
.form-success {
  display: none;
  text-align: center;
  padding: 2rem;
}
.form-success.show { display: block; }
.form-success h3 { color: var(--emerald); margin-bottom: 0.5rem; }

/* ═══ Footer ═══ */
.footer {
  padding: 3rem 0 2rem;
  border-top: 1px solid var(--border);
}
.footer-content {
  display: flex;
  justify-content: space-between;
  align-items: center;
}
.footer-left { display: flex; align-items: center; gap: 0.75rem; }
.footer-left img, .footer-left svg { width: 28px; height: 28px; }
.footer-left span { font-weight: 600; }
.footer-center { display: flex; gap: 1.5rem; }
.footer-center a { font-size: 0.8rem; color: var(--text-muted); text-decoration: none; transition: color 0.2s; }
.footer-center a:hover { color: var(--text-primary); }
.footer-right { font-size: 0.8rem; color: var(--text-muted); }

/* ═══════════════════════════════════════
   DEMO PAGE
   ═══════════════════════════════════════ */

.demo-layout {
  display: grid;
  grid-template-columns: 1fr 380px;
  grid-template-rows: auto 1fr;
  height: calc(100vh - 60px);
  margin-top: 60px;
  gap: 0;
}
.demo-toolbar {
  grid-column: 1 / -1;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0.75rem 1.5rem;
  background: var(--bg-secondary);
  border-bottom: 1px solid var(--border);
}
.demo-toolbar-left { display: flex; align-items: center; gap: 1rem; }
.demo-toolbar-left h4 { font-size: 1rem; }
.dataset-switcher { display: flex; gap: 0.35rem; }
.dataset-btn {
  padding: 0.4rem 0.9rem;
  border-radius: 6px;
  font-size: 0.8rem;
  font-weight: 500;
  color: var(--text-muted);
  border: 1px solid transparent;
  transition: all 0.2s;
}
.dataset-btn:hover { color: var(--text-secondary); background: var(--bg-card); }
.dataset-btn.active {
  color: var(--text-primary);
  background: var(--bg-card);
  border-color: var(--prime-mid);
}
.demo-stats { display: flex; gap: 1.5rem; }
.demo-stat {
  font-size: 0.8rem;
  color: var(--text-muted);
}
.demo-stat strong { color: var(--text-primary); margin-right: 0.25rem; }

/* Graph Canvas */
.graph-canvas {
  position: relative;
  background: var(--bg-primary);
  overflow: hidden;
}
.graph-canvas svg { width: 100%; height: 100%; }
.graph-canvas .node { cursor: pointer; }
.graph-canvas .node circle { transition: r 0.2s; }
.graph-canvas .node:hover circle { filter: brightness(1.3); }
.graph-canvas .node text {
  font-size: 10px;
  fill: var(--text-secondary);
  pointer-events: none;
}
.graph-canvas .link { stroke: rgba(255, 255, 255, 0.08); stroke-width: 1; }
.graph-canvas .link.highlighted { stroke: var(--prime-light); stroke-width: 2; opacity: 0.6; }

/* Right Panel */
.demo-panel {
  display: flex;
  flex-direction: column;
  background: var(--bg-secondary);
  border-left: 1px solid var(--border);
  overflow: hidden;
}
.panel-tabs {
  display: flex;
  border-bottom: 1px solid var(--border);
}
.panel-tab {
  flex: 1;
  padding: 0.65rem;
  font-size: 0.75rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  color: var(--text-muted);
  text-align: center;
  border-bottom: 2px solid transparent;
  transition: all 0.2s;
}
.panel-tab:hover { color: var(--text-secondary); }
.panel-tab.active { color: var(--prime-light); border-bottom-color: var(--prime-mid); }
.panel-content {
  flex: 1;
  overflow-y: auto;
  padding: 1rem;
}
.panel-section { display: none; }
.panel-section.active { display: block; }

/* Query Panel */
.query-block { margin-bottom: 1.25rem; }
.query-label {
  font-size: 0.7rem;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--text-muted);
  margin-bottom: 0.4rem;
}
.query-code {
  background: var(--bg-primary);
  border: 1px solid var(--border);
  border-radius: 8px;
  padding: 0.85rem 1rem;
  font-family: 'JetBrains Mono', 'Fira Code', monospace;
  font-size: 0.8rem;
  color: var(--text-secondary);
  line-height: 1.6;
  white-space: pre-wrap;
  word-break: break-word;
}
.query-code .kw { color: var(--indigo-light); }
.query-code .fn { color: var(--emerald-light); }
.query-code .str { color: var(--amber); }
.query-code .num { color: var(--pink); }
.query-code .cmt { color: var(--text-muted); font-style: italic; }

/* Node Info */
.node-info { display: none; }
.node-info.show { display: block; }
.node-info-header {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  margin-bottom: 1rem;
}
.node-info-dot {
  width: 12px;
  height: 12px;
  border-radius: 50%;
}
.node-info-header h4 { font-size: 1rem; }
.node-info-type {
  font-size: 0.7rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--text-muted);
  margin-bottom: 0.75rem;
}
.node-props { list-style: none; }
.node-props li {
  display: flex;
  justify-content: space-between;
  padding: 0.4rem 0;
  border-bottom: 1px solid var(--border);
  font-size: 0.85rem;
}
.node-props li span:first-child { color: var(--text-muted); }
.node-props li span:last-child { color: var(--text-primary); font-weight: 500; }

/* Agent Flow */
.agent-flow {
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
}
.agent-step {
  display: flex;
  align-items: flex-start;
  gap: 0.75rem;
  padding: 0.75rem;
  border-radius: 8px;
  border: 1px solid var(--border);
  background: var(--bg-card);
  transition: all 0.3s;
}
.agent-step.active {
  border-color: var(--prime-mid);
  box-shadow: 0 0 15px rgba(11, 122, 124, 0.1);
}
.agent-step.completed {
  opacity: 1;
  border-color: rgba(16, 185, 129, 0.2);
}
.agent-step.completed .agent-step-content h4::after {
  content: ' \u25BE';
  font-size: 0.7rem;
  color: var(--text-muted);
  margin-left: 0.3rem;
}
.agent-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  margin-top: 5px;
  flex-shrink: 0;
}
.agent-dot.pending { background: var(--text-muted); }
.agent-dot.active { background: var(--prime-light); animation: pulse-dot 1.5s infinite; }
.agent-dot.completed { background: var(--emerald); }
.agent-step-content h4 { font-size: 0.85rem; margin-bottom: 0.2rem; }
.agent-step-content p { font-size: 0.75rem; color: var(--text-muted); }
.agent-step { flex-wrap: wrap; cursor: pointer; }
.agent-connector {
  width: 1px;
  height: 12px;
  background: var(--border);
  margin-left: 3.5px;
}

/* ═══ Agent Output Panel ═══ */
.agent-output {
  width: 100%;
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.35s ease, opacity 0.25s ease, margin-top 0.25s ease;
  opacity: 0;
  margin-top: 0;
}
.agent-output.expanded {
  max-height: 500px;
  opacity: 1;
  margin-top: 0.5rem;
  padding-top: 0.5rem;
  border-top: 1px solid var(--border);
}
.ao-stat {
  font-size: 0.75rem;
  color: var(--text-secondary);
  margin-bottom: 0.35rem;
}
.ao-stat strong { color: var(--text-primary); }
.ao-muted { color: var(--text-muted); font-size: 0.7rem; }
.ao-label {
  font-size: 0.65rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--text-muted);
  margin-bottom: 0.35rem;
}
.ao-num {
  text-align: right;
  font-family: 'JetBrains Mono', monospace;
  font-size: 0.75rem;
}
.ao-table {
  width: 100%;
  border-collapse: collapse;
  margin-bottom: 0.35rem;
}
.ao-table th {
  font-size: 0.6rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: var(--text-muted);
  text-align: left;
  padding: 0.2rem 0.35rem;
  border-bottom: 1px solid var(--border);
}
.ao-table td {
  font-size: 0.75rem;
  color: var(--text-secondary);
  padding: 0.2rem 0.35rem;
  border-bottom: 1px solid var(--border);
}
.ao-rel-row {
  display: flex;
  align-items: center;
  gap: 0.3rem;
  font-size: 0.7rem;
  padding: 0.15rem 0;
  color: var(--text-secondary);
  font-family: 'JetBrains Mono', monospace;
}
.ao-rel-src, .ao-rel-tgt { color: var(--text-primary); font-weight: 500; }
.ao-rel-type { color: var(--prime-light); font-weight: 500; }
.ao-rel-arrow { color: var(--text-muted); font-size: 0.6rem; }
.ao-finding {
  display: flex;
  align-items: flex-start;
  gap: 0.5rem;
  padding: 0.3rem 0;
  font-size: 0.7rem;
  color: var(--text-secondary);
}
.ao-finding-text { flex: 1; line-height: 1.4; }
.ao-badge {
  display: inline-block;
  font-size: 0.55rem;
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  padding: 0.1rem 0.4rem;
  border-radius: 3px;
  flex-shrink: 0;
  line-height: 1.4;
}
.ao-badge-critical {
  background: rgba(239, 68, 68, 0.15);
  color: #ef4444;
  border: 1px solid rgba(239, 68, 68, 0.3);
}
.ao-badge-warning {
  background: rgba(245, 158, 11, 0.15);
  color: #f59e0b;
  border: 1px solid rgba(245, 158, 11, 0.3);
}
.ao-badge-info {
  background: rgba(6, 182, 212, 0.15);
  color: #06b6d4;
  border: 1px solid rgba(6, 182, 212, 0.3);
}
.ao-badge-confidence {
  background: rgba(16, 185, 129, 0.12);
  color: var(--emerald);
  border: 1px solid rgba(16, 185, 129, 0.3);
  font-size: 0.7rem;
  padding: 0.2rem 0.6rem;
}
.ao-terminal {
  background: var(--bg-primary);
  border: 1px solid var(--border);
  border-radius: 6px;
  padding: 0.5rem 0.6rem;
  font-family: 'JetBrains Mono', monospace;
  font-size: 0.65rem;
  line-height: 1.6;
}
.ao-log-line {
  display: flex;
  align-items: flex-start;
  gap: 0.4rem;
  color: var(--text-secondary);
}
.ao-log-dir {
  color: var(--prime-light);
  font-weight: 700;
  flex-shrink: 0;
  width: 1em;
}
.ao-insight {
  font-size: 0.75rem;
  color: var(--text-secondary);
  line-height: 1.5;
  margin-bottom: 0.5rem;
  padding: 0.4rem 0.5rem;
  border-left: 2px solid var(--prime-mid);
  background: rgba(11, 122, 124, 0.04);
  border-radius: 0 4px 4px 0;
}
.ao-report-stats {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 0.35rem;
  margin-bottom: 0.5rem;
}
.ao-report-stat {
  text-align: center;
  padding: 0.35rem;
  background: var(--bg-card);
  border-radius: 4px;
  border: 1px solid var(--border);
}
.ao-report-num {
  display: block;
  font-size: 0.9rem;
  font-weight: 700;
  color: var(--text-primary);
  font-family: 'JetBrains Mono', monospace;
}
.ao-report-stat span:last-child {
  font-size: 0.6rem;
  color: var(--text-muted);
  text-transform: uppercase;
  letter-spacing: 0.06em;
}
.ao-confidence { text-align: center; margin-top: 0.25rem; }

/* ═══ Responsive ═══ */
@media (max-width: 1024px) {
  .grid-3 { grid-template-columns: repeat(2, 1fr); }
  .grid-4 { grid-template-columns: repeat(2, 1fr); }
  .feature-row { grid-template-columns: 1fr; gap: 2rem; }
  .feature-row:nth-child(even) { direction: ltr; }
  .deploy-options { grid-template-columns: 1fr; }
  .demo-layout { grid-template-columns: 1fr; grid-template-rows: auto 50vh auto; }
  .demo-panel { border-left: none; border-top: 1px solid var(--border); }
}
@media (max-width: 768px) {
  .grid-2, .grid-3 { grid-template-columns: 1fr; }
  .stats-bar { flex-direction: column; gap: 1.5rem; }
  .nav-links { display: none; }
  .hero { min-height: auto; padding: 8rem 0 4rem; }
  .form-row { grid-template-columns: 1fr; }
  .use-case-tabs { flex-wrap: wrap; }
  .footer-content { flex-direction: column; gap: 1rem; text-align: center; }
}
