/* ============================================================
   Perceptive Algorithms — Main Stylesheet
   ============================================================ */

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

:root {
  --bg:           #0a0e1a;
  --bg-card:      #111827;
  --border:       rgba(79, 142, 247, 0.18);
  --border-sub:   rgba(255, 255, 255, 0.06);
  --text:         #e8eaf0;
  --text-muted:   #8891a8;
  --text-dim:     #4f5a72;
  --accent:       #4f8ef7;
  --accent-hi:    #6aa0f9;
  --accent-glow:  rgba(79, 142, 247, 0.12);
  --radius:       12px;
  --radius-sm:    8px;
  --ease:         0.2s ease;
}

html { scroll-behavior: smooth; }

body {
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
  background: var(--bg);
  color: var(--text);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}

h1, h2, h3, h4 { line-height: 1.2; font-weight: 700; letter-spacing: -0.02em; }
p { line-height: 1.7; }
a { color: var(--accent); text-decoration: none; }
a:hover { color: var(--accent-hi); }

/* ── Layout ───────────────────────────────────────────────── */
.container { max-width: 1100px; margin: 0 auto; padding: 0 2rem; }
section { padding: 84px 0; }
.section-rule { border: none; border-top: 1px solid var(--border-sub); margin: 0; }

/* ── Labels ───────────────────────────────────────────────── */
.label {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.13em;
  text-transform: uppercase;
  color: var(--accent);
  background: var(--accent-glow);
  border: 1px solid var(--border);
  padding: 4px 12px;
  border-radius: 100px;
  margin-bottom: 1.25rem;
}

.section-heading {
  font-size: clamp(1.75rem, 4vw, 2.5rem);
  margin-bottom: 1rem;
}

.section-sub {
  font-size: 1.05rem;
  color: var(--text-muted);
  max-width: 56ch;
  line-height: 1.75;
}

/* ── Buttons ──────────────────────────────────────────────── */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 11px 22px;
  border-radius: var(--radius-sm);
  font-size: 0.9rem;
  font-weight: 600;
  cursor: pointer;
  border: none;
  transition: all var(--ease);
  font-family: inherit;
}

.btn-primary { background: var(--accent); color: #fff; }
.btn-primary:hover { background: var(--accent-hi); color: #fff; transform: translateY(-1px); }

.btn-outline {
  background: transparent;
  border: 1px solid var(--border-sub);
  color: var(--text-muted);
}
.btn-outline:hover {
  border-color: var(--border);
  color: var(--accent);
  background: var(--accent-glow);
}

/* ── Announcement Bar ────────────────────────────────────── */
.site-announcement {
  background: rgba(79, 142, 247, 0.06);
  border-bottom: 1px solid var(--border);
  padding: 9px 2rem;
  text-align: center;
}
.site-announcement p {
  font-size: 0.775rem;
  color: var(--text-muted);
  line-height: 1.5;
}
.site-announcement strong { color: var(--text); }
.site-announcement a { color: var(--accent); }
.site-announcement a:hover { color: var(--accent-hi); text-decoration: underline; }

/* ── Status Pill ──────────────────────────────────────────── */
.status-pill {
  display: inline-flex;
  align-items: center;
  font-size: 0.6rem;
  font-weight: 700;
  letter-spacing: 0.09em;
  text-transform: uppercase;
  color: var(--accent);
  background: var(--accent-glow);
  border: 1px solid var(--border);
  padding: 2px 8px;
  border-radius: 100px;
  vertical-align: middle;
  margin-left: 8px;
}

/* ── Dev Notice ───────────────────────────────────────────── */
.dev-notice {
  display: flex;
  align-items: flex-start;
  gap: 0.75rem;
  padding: 0.875rem 1.125rem;
  background: rgba(79, 142, 247, 0.06);
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  margin-bottom: 2rem;
  max-width: 52ch;
}
.dev-notice p {
  font-size: 0.83rem;
  color: var(--text-muted);
  line-height: 1.65;
  margin: 0;
}
.dev-notice strong { color: var(--text); }
.dev-notice-icon {
  flex-shrink: 0;
  color: var(--accent);
  margin-top: 2px;
}

/* ── Navigation ───────────────────────────────────────────── */
.site-nav {
  position: sticky;
  top: 0;
  z-index: 100;
  background: rgba(10, 14, 26, 0.88);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  border-bottom: 1px solid var(--border-sub);
}

.nav-inner {
  max-width: 1100px;
  margin: 0 auto;
  padding: 0 2rem;
  height: 60px;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.nav-wordmark {
  font-size: 0.95rem;
  font-weight: 700;
  letter-spacing: -0.02em;
  color: #fff;
}
.nav-wordmark span { color: var(--accent); }

.nav-menu {
  display: flex;
  align-items: center;
  gap: 1.75rem;
  list-style: none;
}
.nav-menu a {
  font-size: 0.85rem;
  color: var(--text-muted);
  transition: color var(--ease);
}
.nav-menu a:hover,
.nav-menu a.active { color: var(--text); }

.nav-menu .nav-action {
  color: var(--accent);
  border: 1px solid var(--border);
  padding: 6px 16px;
  border-radius: 6px;
}
.nav-menu .nav-action:hover {
  background: var(--accent-glow);
  color: var(--accent-hi);
}

/* ── Hero ─────────────────────────────────────────────────── */
.hero {
  padding: 96px 0 88px;
  position: relative;
  overflow: hidden;
}

.hero::after {
  content: '';
  position: absolute;
  top: -150px;
  left: -80px;
  width: 900px;
  height: 700px;
  background: radial-gradient(ellipse at 30% 40%, rgba(79, 142, 247, 0.07) 0%, transparent 65%);
  pointer-events: none;
}

.hero-inner { position: relative; z-index: 1; }

.hero-badge {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-size: 0.75rem;
  font-weight: 600;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--accent);
  background: var(--accent-glow);
  border: 1px solid var(--border);
  padding: 5px 14px 5px 10px;
  border-radius: 100px;
  margin-bottom: 1.75rem;
}

.hero-badge-dot {
  width: 6px;
  height: 6px;
  background: var(--accent);
  border-radius: 50%;
  flex-shrink: 0;
}

.hero h1 {
  font-size: clamp(2.5rem, 6vw, 4rem);
  letter-spacing: -0.04em;
  line-height: 1.08;
  color: #fff;
  margin-bottom: 1.5rem;
}

.hero h1 em {
  font-style: normal;
  color: var(--accent);
}

.hero-description {
  font-size: 1.1rem;
  color: var(--text-muted);
  max-width: 52ch;
  margin-bottom: 2.5rem;
  line-height: 1.8;
}

.hero-actions { display: flex; gap: 0.875rem; flex-wrap: wrap; }

/* ── Platform Columns ─────────────────────────────────────── */
.platform-columns {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.5rem;
  margin-top: 3rem;
}

.platform-col {
  padding: 1.75rem;
  background: var(--bg-card);
  border: 1px solid var(--border-sub);
  border-radius: var(--radius);
  transition: border-color var(--ease);
}
.platform-col:hover { border-color: var(--border); }

.platform-icon {
  width: 42px;
  height: 42px;
  background: var(--accent-glow);
  border: 1px solid var(--border);
  border-radius: 10px;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 1.1rem;
  color: var(--accent);
}

.platform-col h3 { font-size: 1rem; font-weight: 600; margin-bottom: 0.5rem; }
.platform-col p { font-size: 0.875rem; color: var(--text-muted); }

/* ── Capabilities Grid ────────────────────────────────────── */
.capabilities-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.25rem;
  margin-top: 3rem;
}

.cap-card {
  background: var(--bg-card);
  border: 1px solid var(--border-sub);
  border-radius: var(--radius);
  padding: 1.5rem;
  transition: border-color var(--ease), background var(--ease);
}
.cap-card:hover { border-color: var(--border); background: #131e32; }

.cap-num {
  font-size: 0.7rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  color: var(--accent);
  margin-bottom: 0.75rem;
}

.cap-card h3 { font-size: 0.95rem; font-weight: 600; margin-bottom: 0.5rem; }
.cap-card p { font-size: 0.85rem; color: var(--text-muted); }

/* ── Orchestration Callout ────────────────────────────────── */
.orch-callout {
  margin-top: 1.5rem;
  padding: 1.75rem 2rem;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  background: linear-gradient(120deg, rgba(79, 142, 247, 0.07) 0%, rgba(79, 142, 247, 0.02) 100%);
  display: flex;
  gap: 1.25rem;
  align-items: flex-start;
}

.orch-callout-icon {
  flex-shrink: 0;
  width: 32px;
  height: 32px;
  background: var(--accent-glow);
  border: 1px solid var(--border);
  border-radius: 8px;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--accent);
  margin-top: 2px;
}

.orch-callout p { font-size: 0.9rem; color: var(--text-muted); line-height: 1.75; }
.orch-callout strong { color: var(--text); }

/* ── Product Showcase ─────────────────────────────────────── */
.product-showcase {
  margin-top: 3rem;
  background: var(--bg-card);
  border: 1px solid var(--border-sub);
  border-radius: 16px;
  overflow: hidden;
  display: grid;
  grid-template-columns: 1fr 1fr;
}

.product-info { padding: 3rem; }

.product-viz {
  padding: 2.5rem;
  background: linear-gradient(135deg, rgba(79, 142, 247, 0.08) 0%, transparent 70%);
  border-left: 1px solid var(--border-sub);
  display: flex;
  flex-direction: column;
  gap: 0.875rem;
}

.product-for {
  font-size: 0.7rem;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--accent);
  margin-bottom: 0.25rem;
}

.product-info h2 { font-size: 1.75rem; margin-bottom: 0.875rem; line-height: 1.2; }
.product-info .tagline { font-size: 0.95rem; color: var(--text-muted); line-height: 1.7; margin-bottom: 1.75rem; }

.product-bullets { list-style: none; display: flex; flex-direction: column; gap: 0.6rem; margin-bottom: 2rem; }
.product-bullets li {
  font-size: 0.875rem;
  color: var(--text-muted);
  display: flex;
  align-items: flex-start;
  gap: 0.625rem;
}
.product-bullets li::before { content: '→'; color: var(--accent); flex-shrink: 0; }

.viz-label {
  font-size: 0.65rem;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--text-dim);
  margin-bottom: 0.25rem;
}

.validation-card {
  background: rgba(10, 14, 26, 0.6);
  border: 1px solid var(--border-sub);
  border-radius: var(--radius-sm);
  padding: 0.875rem 1rem;
}

.validation-card .doc-type {
  font-size: 0.65rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--accent);
  margin-bottom: 4px;
}

.validation-card p { font-size: 0.8rem; color: var(--text-muted); line-height: 1.5; }

.viz-more {
  font-size: 0.75rem;
  color: var(--text-dim);
  text-align: center;
  padding-top: 0.25rem;
}

/* ── Differentiators ──────────────────────────────────────── */
.diff-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.5rem;
  margin-top: 3rem;
}

.diff-card {
  padding: 2rem;
  border: 1px solid var(--border-sub);
  border-radius: var(--radius);
  background: var(--bg-card);
  transition: border-color var(--ease);
}
.diff-card:hover { border-color: var(--border); }

.diff-number {
  font-size: 2.5rem;
  font-weight: 800;
  letter-spacing: -0.05em;
  color: var(--accent);
  opacity: 0.25;
  line-height: 1;
  margin-bottom: 0.875rem;
}

.diff-card h3 { font-size: 1rem; font-weight: 600; margin-bottom: 0.5rem; }
.diff-card p { font-size: 0.875rem; color: var(--text-muted); }

/* ── CTA Section ──────────────────────────────────────────── */
.cta-section { padding: 80px 0; text-align: center; }
.cta-section h2 { font-size: clamp(1.75rem, 4vw, 2.5rem); margin-bottom: 1rem; }
.cta-section p {
  font-size: 1rem;
  color: var(--text-muted);
  max-width: 48ch;
  margin: 0 auto 2.5rem;
  line-height: 1.75;
}
.cta-actions { display: flex; gap: 0.875rem; justify-content: center; flex-wrap: wrap; }

/* ── Footer ───────────────────────────────────────────────── */
.site-footer {
  border-top: 1px solid var(--border-sub);
  padding: 2rem;
}

.footer-inner {
  max-width: 1100px;
  margin: 0 auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 1rem;
}

.footer-wordmark { font-size: 0.875rem; font-weight: 700; color: var(--text-muted); letter-spacing: -0.02em; }
.footer-wordmark span { color: var(--accent); }

.footer-links { display: flex; gap: 1.5rem; list-style: none; }
.footer-links a { font-size: 0.78rem; color: var(--text-dim); }
.footer-links a:hover { color: var(--text-muted); }

.footer-copy { font-size: 0.75rem; color: var(--text-dim); }

/* ============================================================
   PRODUCT PAGE STYLES
   ============================================================ */

.breadcrumb {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  font-size: 0.8rem;
  color: var(--text-dim);
  margin-bottom: 2rem;
}
.breadcrumb a { color: var(--text-muted); }
.breadcrumb a:hover { color: var(--text); }
.breadcrumb-sep { color: var(--text-dim); }

.product-hero h1 { font-size: clamp(2rem, 5vw, 3.25rem); margin-bottom: 0.875rem; }
.product-hero .subtitle {
  font-size: 1.2rem;
  font-weight: 400;
  color: var(--text-muted);
  letter-spacing: -0.01em;
  margin-bottom: 1.25rem;
}
.product-hero .description {
  font-size: 1rem;
  color: var(--text-muted);
  max-width: 58ch;
  margin-bottom: 2.5rem;
  line-height: 1.8;
}

/* Comparison */
.comparison-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1.5rem;
  margin-top: 3rem;
}

.comparison-col { padding: 2rem; border-radius: var(--radius); }

.comparison-col.before {
  background: rgba(255, 255, 255, 0.02);
  border: 1px solid var(--border-sub);
}

.comparison-col.after {
  background: var(--accent-glow);
  border: 1px solid var(--border);
}

.comparison-col h3 {
  font-size: 0.82rem;
  font-weight: 700;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  margin-bottom: 1.25rem;
}
.comparison-col.before h3 { color: var(--text-dim); }
.comparison-col.after h3 { color: var(--accent); }

.comparison-list { list-style: none; display: flex; flex-direction: column; gap: 0.875rem; }
.comparison-list li {
  font-size: 0.875rem;
  color: var(--text-muted);
  display: flex;
  align-items: flex-start;
  gap: 0.625rem;
  line-height: 1.5;
}
.comparison-list li::before { flex-shrink: 0; margin-top: 1px; }
.comparison-col.before .comparison-list li::before { content: '×'; color: var(--text-dim); }
.comparison-col.after .comparison-list li::before { content: '✓'; color: var(--accent); }

/* Product Capabilities */
.prod-cap-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 1.5rem;
  margin-top: 3rem;
}

.prod-cap-card {
  padding: 2rem;
  background: var(--bg-card);
  border: 1px solid var(--border-sub);
  border-radius: var(--radius);
  transition: border-color var(--ease);
}
.prod-cap-card:hover { border-color: var(--border); }

.prod-cap-card h3 { font-size: 1rem; font-weight: 600; margin-bottom: 0.75rem; }
.prod-cap-card > p { font-size: 0.875rem; color: var(--text-muted); margin-bottom: 1rem; }

.prod-cap-list { list-style: none; display: flex; flex-direction: column; gap: 0.45rem; }
.prod-cap-list li {
  font-size: 0.82rem;
  color: var(--text-dim);
  display: flex;
  align-items: flex-start;
  gap: 0.5rem;
  line-height: 1.5;
}
.prod-cap-list li::before { content: '—'; color: var(--accent); flex-shrink: 0; opacity: 0.5; }

/* Architecture */
.arch-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1rem;
  margin-top: 3rem;
}

.arch-agent {
  padding: 1.25rem 1.5rem;
  background: var(--bg-card);
  border: 1px solid var(--border-sub);
  border-radius: var(--radius-sm);
  border-left: 3px solid var(--accent);
}

.arch-agent h4 { font-size: 0.875rem; font-weight: 600; margin-bottom: 0.3rem; }
.arch-agent p { font-size: 0.78rem; color: var(--text-muted); }

.arch-integrations {
  margin-top: 1.5rem;
  padding: 1.5rem 2rem;
  background: rgba(255, 255, 255, 0.02);
  border: 1px solid var(--border-sub);
  border-radius: var(--radius);
}

.arch-integrations h4 {
  font-size: 0.75rem;
  font-weight: 700;
  letter-spacing: 0.09em;
  text-transform: uppercase;
  color: var(--text-dim);
  margin-bottom: 0.875rem;
}

.integration-tags { display: flex; flex-wrap: wrap; gap: 0.5rem; }

.integration-tag {
  font-size: 0.78rem;
  color: var(--text-muted);
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid var(--border-sub);
  padding: 4px 12px;
  border-radius: 100px;
}

/* Target Customers */
.customers-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 1.25rem;
  margin-top: 3rem;
}

.customer-card {
  padding: 1.5rem;
  background: var(--bg-card);
  border: 1px solid var(--border-sub);
  border-radius: var(--radius);
  transition: border-color var(--ease);
}
.customer-card:hover { border-color: var(--border); }
.customer-card h3 { font-size: 0.9rem; font-weight: 600; margin-bottom: 0.4rem; }
.customer-card p { font-size: 0.82rem; color: var(--text-muted); }

/* GTM Roadmap */
.gtm-steps {
  display: flex;
  flex-direction: column;
  gap: 1px;
  background: var(--border-sub);
  border-radius: var(--radius);
  overflow: hidden;
  margin-top: 3rem;
}

.gtm-step {
  display: flex;
  align-items: flex-start;
  gap: 1.5rem;
  padding: 1.75rem 2rem;
  background: var(--bg-card);
  transition: background var(--ease);
}
.gtm-step:hover { background: #131e32; }

.gtm-step-num {
  flex-shrink: 0;
  width: 28px;
  height: 28px;
  background: var(--accent-glow);
  border: 1px solid var(--border);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 0.72rem;
  font-weight: 700;
  color: var(--accent);
  margin-top: 2px;
}

.gtm-step h4 { font-size: 0.9rem; font-weight: 600; margin-bottom: 0.35rem; }
.gtm-step p { font-size: 0.82rem; color: var(--text-muted); line-height: 1.65; }

/* ============================================================
   RESPONSIVE
   ============================================================ */

@media (max-width: 768px) {
  .nav-menu { display: none; }
  section { padding: 56px 0; }
  .hero { padding: 64px 0; }

  .platform-columns,
  .capabilities-grid,
  .diff-grid { grid-template-columns: 1fr; }

  .product-showcase { grid-template-columns: 1fr; }
  .product-viz { border-left: none; border-top: 1px solid var(--border-sub); }

  .comparison-grid,
  .prod-cap-grid,
  .customers-grid { grid-template-columns: 1fr; }

  .arch-grid { grid-template-columns: repeat(2, 1fr); }

  .orch-callout { flex-direction: column; gap: 0.875rem; }
}

@media (max-width: 480px) {
  .container { padding: 0 1.25rem; }
  .hero h1 { font-size: 2.25rem; }
  .arch-grid { grid-template-columns: 1fr; }
  .hero-actions { flex-direction: column; }
  .cta-actions { flex-direction: column; align-items: center; }
}
