:root {
  --bg: #0a0e17;
  --bg-alt: #0f1521;
  --card: #111827;
  --accent: #3b82f6;
  --accent-2: #94a3b8;
  --text: #f1f5f9;
  --muted: #94a3b8;
  --border: rgba(148, 163, 184, 0.12);
  --glow: rgba(59, 130, 246, 0.2);
}

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

body {
  font-family: "Inter", sans-serif;
  background: radial-gradient(circle at top, #131c2e 0%, #0a0e17 55%, #070a12 100%);
  color: var(--text);
  min-height: 100vh;
  line-height: 1.6;
}

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

.bg-grid {
  position: fixed;
  inset: 0;
  background-image: linear-gradient(
      rgba(255, 255, 255, 0.03) 1px,
      transparent 1px
    ),
    linear-gradient(90deg, rgba(255, 255, 255, 0.03) 1px, transparent 1px);
  background-size: 48px 48px;
  opacity: 0.3;
  pointer-events: none;
  z-index: 0;
}

.site-header {
  position: relative;
  z-index: 1;
  padding: 32px 6vw 64px;
}

.nav {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding: 12px 0 32px;
}

.logo {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-weight: 600;
  letter-spacing: 0.02em;
}

.logo-icon {
  width: 36px;
  height: 36px;
}

.logo-mark {
  display: inline-grid;
  place-items: center;
  width: 36px;
  height: 36px;
  border-radius: 12px;
  background: linear-gradient(135deg, var(--accent), #2563eb);
  color: #f1f5f9;
  font-family: "Inter", sans-serif;
  font-weight: 700;
  font-size: 18px;
}

.nav-links {
  display: flex;
  gap: 24px;
  font-size: 14px;
  text-transform: uppercase;
  letter-spacing: 0.2em;
}

.nav-links a.active {
  color: var(--accent);
}

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

.nav-toggle span {
  display: block;
  width: 24px;
  height: 2px;
  background: var(--text);
  border-radius: 2px;
  transition: transform 0.3s ease, opacity 0.3s ease;
}

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

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

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

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 12px 22px;
  border-radius: 999px;
  border: 1px solid transparent;
  font-weight: 600;
  transition: transform 0.2s ease, box-shadow 0.2s ease, background 0.2s ease;
}

.btn:hover {
  transform: translateY(-2px);
  box-shadow: 0 12px 30px rgba(0, 0, 0, 0.25);
}

.btn-primary {
  background: linear-gradient(135deg, var(--accent), #2563eb);
  color: #ffffff;
  box-shadow: 0 0 30px var(--glow);
}

.btn-outline {
  border-color: var(--border);
  color: var(--text);
  background: transparent;
}

.btn-ghost {
  border-color: var(--border);
  background: rgba(255, 255, 255, 0.05);
  font-size: 14px;
}

.hero {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 48px;
  align-items: center;
  margin-top: 40px;
}

.hero:only-child,
.hero--single {
  grid-template-columns: 1fr;
  max-width: 720px;
}

.eyebrow {
  text-transform: uppercase;
  letter-spacing: 0.3em;
  font-size: 19px;
  font-weight: 500;
  color: var(--accent-2);
  margin-bottom: 16px;
}

.hero h1 {
  font-family: "Inter", sans-serif;
  font-weight: 700;
  font-size: clamp(1.6rem, 2.4vw, 2.2rem);
  line-height: 1.1;
  margin-bottom: 18px;
}

.hero-tagline {
  font-size: clamp(1.1rem, 1.8vw, 1.4rem);
  font-weight: 500;
  color: var(--accent);
  margin-bottom: 16px;
}

.hero-sub {
  font-size: 1.1rem;
  color: var(--muted);
  max-width: 520px;
}

.hero-actions {
  display: flex;
  gap: 16px;
  margin: 28px 0;
}

.hero-metrics {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 16px;
  padding-top: 12px;
}

.metric {
  font-size: 1.6rem;
  font-weight: 600;
}

.metric-label {
  display: block;
  font-size: 0.85rem;
  color: var(--muted);
}

.hero-card {
  background: linear-gradient(160deg, rgba(255, 255, 255, 0.08), rgba(255, 255, 255, 0.01));
  border: 1px solid var(--border);
  border-radius: 28px;
  padding: 24px;
  box-shadow: 0 40px 90px rgba(0, 0, 0, 0.35);
  backdrop-filter: blur(14px);
}

.hero-card-header {
  display: flex;
  justify-content: space-between;
  font-weight: 600;
  margin-bottom: 18px;
}

.status {
  color: var(--accent);
  font-size: 0.85rem;
}

.hero-card-body {
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.bubble {
  padding: 14px 16px;
  border-radius: 16px;
  max-width: 90%;
  font-size: 0.95rem;
}

.bubble.inbound {
  background: rgba(148, 163, 184, 0.1);
  align-self: flex-start;
}

.bubble.outbound {
  background: rgba(59, 130, 246, 0.15);
  align-self: flex-end;
}

.source-stack {
  display: grid;
  gap: 8px;
}

.source {
  font-size: 0.8rem;
  color: var(--muted);
  border-left: 2px solid var(--accent);
  padding-left: 12px;
}

/* Enrichment Platform hero card styles */
.enrichment-spec {
  display: grid;
  gap: 4px;
  padding: 14px 16px;
  border-radius: 12px;
  background: rgba(11, 15, 20, 0.6);
  font-family: "Inter", monospace;
  font-size: 0.85rem;
}

.spec-line {
  display: block;
}

.spec-key {
  color: var(--accent-2);
}

.enrichment-result {
  display: grid;
  gap: 8px;
  padding: 14px 16px;
  border-radius: 12px;
  background: rgba(34, 197, 94, 0.08);
  border: 1px solid rgba(34, 197, 94, 0.15);
}

.enrichment-result-row {
  display: flex;
  justify-content: space-between;
  font-size: 0.85rem;
  font-family: "Inter", monospace;
}

.enrichment-label {
  color: var(--muted);
}

.enrichment-value {
  color: #4ade80;
  font-weight: 600;
}

/* AgentQA hero card styles */
.qa-result {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 10px 14px;
  border-radius: 12px;
  font-size: 0.9rem;
  font-family: "Inter", monospace;
}

.qa-result.pass {
  background: rgba(34, 197, 94, 0.12);
}

.qa-result.fail {
  background: rgba(239, 68, 68, 0.12);
}

.qa-icon {
  font-size: 0.75rem;
  font-weight: 700;
  letter-spacing: 0.05em;
  padding: 2px 8px;
  border-radius: 6px;
}

.qa-result.pass .qa-icon {
  background: rgba(34, 197, 94, 0.25);
  color: #4ade80;
}

.qa-result.fail .qa-icon {
  background: rgba(239, 68, 68, 0.25);
  color: #f87171;
}

.qa-learning {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 10px 14px;
  border-radius: 12px;
  font-size: 0.85rem;
  background: rgba(99, 102, 241, 0.08);
  border: 1px dashed rgba(99, 102, 241, 0.25);
}

.qa-learn-label {
  font-size: 0.7rem;
  font-weight: 700;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  padding: 2px 8px;
  border-radius: 6px;
  background: rgba(99, 102, 241, 0.15);
  color: #818cf8;
  white-space: nowrap;
}

/* Sections */
.section {
  position: relative;
  z-index: 1;
  padding: 80px 6vw;
}

.section-title {
  margin-bottom: 36px;
}

.section h2 {
  font-size: clamp(1.6rem, 2.4vw, 2.2rem);
  margin-bottom: 8px;
}

.section-sub {
  color: var(--muted);
  max-width: 720px;
}

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

.grid-2 {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 24px;
}

.card {
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: 20px;
  padding: 24px;
  box-shadow: 0 18px 40px rgba(0, 0, 0, 0.2);
}

.card h3 {
  margin-bottom: 12px;
  font-size: 1.2rem;
}

.card ul {
  list-style: none;
  display: grid;
  gap: 10px;
}

.card li::before {
  content: "\2022";
  color: var(--accent);
  margin-right: 8px;
}

/* Product cards on landing */
.product-card {
  display: grid;
  gap: 12px;
}

.product-badge {
  display: inline-flex;
  align-items: center;
  padding: 4px 10px;
  border-radius: 999px;
  background: rgba(59, 130, 246, 0.12);
  color: var(--accent);
  font-weight: 600;
  font-size: 0.75rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  width: fit-content;
}

.product-card .btn {
  width: fit-content;
  margin-top: 4px;
}

.product-tagline {
  font-size: 0.95rem;
  color: var(--accent);
  font-weight: 500;
}

/* Pricing */
.pricing-grid {
  align-items: stretch;
}

.pricing-card {
  position: relative;
  display: grid;
  gap: 12px;
}

.pricing-card ul {
  margin-top: 6px;
}

.pricing-tag {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 6px 12px;
  border-radius: 999px;
  background: rgba(59, 130, 246, 0.15);
  color: var(--accent);
  font-weight: 600;
  font-size: 0.8rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  width: fit-content;
}

.pricing-price {
  font-size: 1.6rem;
  font-weight: 600;
}

.pricing-meta {
  color: var(--muted);
  font-size: 0.95rem;
}

.pricing-card.featured {
  border-color: rgba(59, 130, 246, 0.4);
  box-shadow: 0 20px 50px rgba(59, 130, 246, 0.1);
  background: linear-gradient(160deg, rgba(59, 130, 246, 0.06), rgba(17, 24, 39, 0.95));
}

.pricing-cta {
  margin-top: 10px;
  width: fit-content;
}

.pricing-note {
  margin-top: 20px;
  color: var(--muted);
}

/* Band */
.band {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 40px;
  align-items: center;
  background: linear-gradient(120deg, rgba(59, 130, 246, 0.1), rgba(99, 102, 241, 0.06));
  border-top: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
}

.band-diagram {
  display: grid;
  gap: 16px;
}

.step {
  display: flex;
  align-items: center;
  gap: 14px;
  background: rgba(11, 15, 20, 0.6);
  padding: 16px;
  border-radius: 16px;
  border: 1px solid var(--border);
}

.step-label {
  display: inline-grid;
  place-items: center;
  width: 34px;
  height: 34px;
  border-radius: 12px;
  background: var(--accent);
  color: #0b0f14;
  font-weight: 600;
  flex-shrink: 0;
}

/* Integrations (legacy pill grid — kept for compat) */
.integration-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(160px, 1fr));
  gap: 16px;
  margin-bottom: 16px;
}

.pill {
  padding: 12px 16px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.06);
  border: 1px solid var(--border);
  text-align: center;
  font-size: 0.95rem;
}

.integration-note {
  color: var(--muted);
}

/* Architecture diagram — schematic / lane style */
.arch {
  display: grid;
  grid-template-columns: 140px auto 1fr auto 140px;
  align-items: stretch;
  gap: 0;
  margin-bottom: 24px;
  font-family: "Inter", monospace;
}

.arch-lane {
  display: flex;
  flex-direction: column;
  gap: 0;
  padding: 16px 0;
}

.arch-lane-label {
  display: block;
  font-size: 0.65rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.18em;
  color: var(--muted);
  margin-bottom: 14px;
}

.arch-nodes {
  list-style: none;
  padding: 0;
  margin: 0;
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.arch-nodes li {
  font-size: 0.82rem;
  color: var(--text);
  padding: 6px 0;
  border-bottom: 1px dashed rgba(148, 163, 184, 0.15);
  line-height: 1.3;
}

.arch-nodes li:last-child {
  border-bottom: none;
}

/* Edge connectors */
.arch-edge {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: 0 20px;
  position: relative;
}

.arch-edge::before {
  content: "";
  width: 36px;
  height: 1px;
  background: linear-gradient(90deg, transparent, var(--muted), transparent);
}

.arch-edge::after {
  content: "";
  position: absolute;
  right: 14px;
  top: 50%;
  transform: translateY(-50%);
  width: 0;
  height: 0;
  border: 4px solid transparent;
  border-left: 5px solid var(--muted);
}

.arch-edge-label {
  position: absolute;
  top: calc(50% - 18px);
  font-size: 0.6rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.2em;
  color: rgba(148, 163, 184, 0.5);
}

/* Primary lane — the platform core */
.arch-lane--primary {
  border-left: 1px dashed rgba(59, 130, 246, 0.25);
  border-right: 1px dashed rgba(59, 130, 246, 0.25);
  padding: 16px 24px;
}

.arch-layers {
  display: flex;
  flex-direction: column;
  gap: 0;
}

.arch-layer {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 10px 0;
  border-bottom: 1px solid rgba(59, 130, 246, 0.08);
  font-size: 0.85rem;
  color: var(--text);
}

.arch-layer:last-child {
  border-bottom: none;
}

.arch-layer-icon {
  color: var(--accent);
  font-size: 0.9rem;
  width: 18px;
  text-align: center;
  flex-shrink: 0;
  opacity: 0.7;
}

.arch-layer-tag {
  font-size: 0.6rem;
  font-weight: 600;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  padding: 1px 6px;
  border-radius: 3px;
  border: 1px solid rgba(59, 130, 246, 0.25);
  color: var(--accent);
  margin-left: auto;
}

@media (max-width: 980px) {
  .arch {
    grid-template-columns: 1fr;
    gap: 0;
  }

  .arch-edge {
    padding: 12px 0;
    flex-direction: row;
  }

  .arch-edge::before {
    width: 1px;
    height: 24px;
    background: linear-gradient(180deg, transparent, var(--muted), transparent);
  }

  .arch-edge::after {
    right: auto;
    top: auto;
    bottom: 6px;
    left: 50%;
    transform: translateX(-50%);
    border: 4px solid transparent;
    border-top: 5px solid var(--muted);
    border-left: 4px solid transparent;
  }

  .arch-edge-label {
    top: auto;
    left: calc(50% + 16px);
    bottom: 12px;
  }

  .arch-lane--primary {
    border-left: none;
    border-right: none;
    border-top: 1px dashed rgba(59, 130, 246, 0.25);
    border-bottom: 1px dashed rgba(59, 130, 246, 0.25);
  }
}

/* CTA */
.cta {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  background: linear-gradient(130deg, rgba(59, 130, 246, 0.12), rgba(99, 102, 241, 0.06));
  border-radius: 28px;
  padding: 48px 6vw;
  margin: 40px 6vw 80px;
}

/* Legal pages */
.legal-page {
  max-width: 720px;
}

.legal-page h1 {
  font-family: "Inter", sans-serif;
  font-weight: 700;
  font-size: clamp(1.6rem, 2.4vw, 2.2rem);
  margin-bottom: 8px;
}

.legal-page h2 {
  font-size: 1.3rem;
  margin-top: 32px;
  margin-bottom: 8px;
}

.legal-page p,
.legal-page ul {
  color: var(--muted);
  margin-bottom: 12px;
}

.legal-page ul {
  list-style: none;
  display: grid;
  gap: 6px;
}

.legal-page li::before {
  content: "\2022";
  color: var(--accent);
  margin-right: 8px;
}

.legal-page a {
  color: var(--accent);
}

.legal-updated {
  font-size: 0.9rem;
  color: var(--muted);
  margin-bottom: 32px;
}

/* Footer */
.site-footer {
  display: flex;
  justify-content: space-between;
  gap: 24px;
  padding: 32px 6vw 48px;
  border-top: 1px solid var(--border);
  color: var(--muted);
}

.footer-links {
  display: grid;
  gap: 10px;
  text-align: right;
}

/* Reveal animation */
.reveal {
  opacity: 0;
  transform: translateY(24px);
  transition: opacity 0.8s ease, transform 0.8s ease;
}

.reveal.visible {
  opacity: 1;
  transform: translateY(0);
}

/* Responsive */
@media (max-width: 980px) {
  .nav-links {
    display: none;
    flex-direction: column;
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    background: var(--bg);
    border: 1px solid var(--border);
    border-radius: 16px;
    padding: 24px;
    gap: 16px;
    z-index: 100;
  }

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

  .nav-toggle {
    display: flex;
  }

  .nav {
    position: relative;
  }

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

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

  .hero-metrics {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .grid-3,
  .grid-2,
  .band {
    grid-template-columns: 1fr;
  }

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

  .site-footer {
    flex-direction: column;
  }

  .footer-links {
    text-align: left;
  }
}

@media (max-width: 600px) {
  .hero-card {
    padding: 18px;
  }

  .cta {
    margin: 24px;
  }
}

/* Quickstart command blocks */
.quickstart-cmd {
  display: block;
  margin-top: 8px;
  padding: 10px 16px;
  background: rgba(0, 0, 0, 0.4);
  border: 1px solid var(--border);
  border-radius: 6px;
  font-family: "SF Mono", "Fira Code", monospace;
  font-size: 0.85rem;
  color: var(--accent);
  white-space: nowrap;
  overflow-x: auto;
}
