/* ═══════════════════════════════════════════
   RESET & BASE
   ═══════════════════════════════════════════ */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

:root {
  --bg-primary: #0a0c10;
  --bg-secondary: #0f1218;
  --bg-card: #12161e;
  --bg-card-hover: #181d28;
  --border: #1e2530;
  --border-accent: #1a3a4a;
  --text-primary: #e0e4ec;
  --text-secondary: #8892a4;
  --text-muted: #5a6478;
  --accent: #3a8fb7;
  --accent-glow: #2a7da8;
  --accent-dim: #1a3a4a;
  --accent-bright: #5bbce6;
  --danger: #c0392b;
  --success: #27ae60;
  --header-height: 60px;
  --section-pad: clamp(4rem, 8vw, 7rem);
  --container: 1100px;
  --radius: 6px;
  --radius-lg: 10px;
  --font: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', system-ui, sans-serif;
  --mono: 'SF Mono', 'Cascadia Code', 'Fira Code', 'Consolas', monospace;
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation-duration: 0.01ms !important; transition-duration: 0.01ms !important; }
}

html { scroll-behavior: smooth; scroll-padding-top: var(--header-height); }

body {
  font-family: var(--font);
  background: var(--bg-primary);
  color: var(--text-primary);
  line-height: 1.65;
  font-size: 16px;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}

/* Subtle grid background */
body::before {
  content: '';
  position: fixed;
  inset: 0;
  background-image:
    linear-gradient(rgba(58, 143, 183, 0.03) 1px, transparent 1px),
    linear-gradient(90deg, rgba(58, 143, 183, 0.03) 1px, transparent 1px);
  background-size: 60px 60px;
  pointer-events: none;
  z-index: 0;
}

/* Noise overlay */
body::after {
  content: '';
  position: fixed;
  inset: 0;
  opacity: 0.015;
  background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 256 256' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.9' numOctaves='4' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
  pointer-events: none;
  z-index: 0;
}

/* ═══════════════════════════════════════════
   UTILITY
   ═══════════════════════════════════════════ */
.container { max-width: var(--container); margin: 0 auto; padding: 0 1.5rem; position: relative; z-index: 1; }
.small-caps { font-variant: small-caps; letter-spacing: 0.12em; text-transform: lowercase; }
.label {
  font-size: 0.7rem;
  font-weight: 600;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--accent);
}
.sr-only { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0,0,0,0); border: 0; }

/* ═══════════════════════════════════════════
   SCROLL REVEAL
   ═══════════════════════════════════════════ */
.reveal {
  opacity: 0;
  transform: translateY(24px);
  transition: opacity 0.7s ease, transform 0.7s ease;
}
.reveal.visible {
  opacity: 1;
  transform: translateY(0);
}

/* ═══════════════════════════════════════════
   HEADER / NAV
   ═══════════════════════════════════════════ */
.site-header {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  height: var(--header-height);
  background: rgba(10, 12, 16, 0.88);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--border);
  z-index: 100;
  display: flex;
  align-items: center;
}

.nav-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  width: 100%;
  max-width: var(--container);
  margin: 0 auto;
  padding: 0 1.5rem;
}

.nav-brand {
  display: flex;
  align-items: center;
  gap: 0.6rem;
  text-decoration: none;
  color: var(--text-primary);
  font-weight: 600;
  font-size: 1rem;
  letter-spacing: 0.04em;
}

.nav-brand svg { flex-shrink: 0; }

.nav-links { display: flex; gap: 0; list-style: none; }
.nav-links a {
  display: block;
  padding: 0.5rem 0.85rem;
  font-size: 0.78rem;
  font-weight: 500;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--text-secondary);
  text-decoration: none;
  transition: color 0.2s;
  position: relative;
}
.nav-links a::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 50%;
  width: 0;
  height: 1px;
  background: var(--accent);
  transition: width 0.3s, left 0.3s;
}
.nav-links a:hover,
.nav-links a:focus-visible { color: var(--text-primary); }
.nav-links a:hover::after,
.nav-links a:focus-visible::after { width: 60%; left: 20%; }

.nav-toggle {
  display: none;
  background: none;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  color: var(--text-secondary);
  padding: 0.4rem;
  cursor: pointer;
}

@media (max-width: 768px) {
  .nav-toggle { display: flex; align-items: center; justify-content: center; }
  .nav-links {
    position: fixed;
    top: var(--header-height);
    left: 0;
    right: 0;
    background: rgba(10, 12, 16, 0.96);
    backdrop-filter: blur(16px);
    flex-direction: column;
    padding: 1rem 1.5rem;
    border-bottom: 1px solid var(--border);
    transform: translateY(-100%);
    opacity: 0;
    pointer-events: none;
    transition: transform 0.3s, opacity 0.3s;
  }
  .nav-links.open {
    transform: translateY(0);
    opacity: 1;
    pointer-events: auto;
  }
  .nav-links a { padding: 0.75rem 0; font-size: 0.85rem; }
}

/* ═══════════════════════════════════════════
   BUTTONS
   ═══════════════════════════════════════════ */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.65rem 1.4rem;
  font-family: var(--font);
  font-size: 0.82rem;
  font-weight: 600;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  text-decoration: none;
  border-radius: var(--radius);
  cursor: pointer;
  transition: all 0.25s;
  border: 1px solid transparent;
  line-height: 1.3;
}
.btn:focus-visible {
  outline: 2px solid var(--accent);
  outline-offset: 2px;
}

.btn-primary {
  background: var(--accent);
  color: #fff;
  border-color: var(--accent);
}
.btn-primary:hover {
  background: var(--accent-bright);
  border-color: var(--accent-bright);
  box-shadow: 0 0 20px rgba(58, 143, 183, 0.3);
}

.btn-ghost {
  background: transparent;
  color: var(--text-secondary);
  border-color: var(--border);
}
.btn-ghost:hover {
  color: var(--text-primary);
  border-color: var(--text-secondary);
}

.btn-sm { padding: 0.45rem 1rem; font-size: 0.72rem; }

/* ═══════════════════════════════════════════
   HERO
   ═══════════════════════════════════════════ */
.hero {
  padding-top: calc(var(--header-height) + var(--section-pad));
  padding-bottom: var(--section-pad);
  text-align: center;
  position: relative;
}

.hero::before {
  content: '';
  position: absolute;
  top: 0;
  left: 50%;
  transform: translateX(-50%);
  width: 600px;
  height: 600px;
  background: radial-gradient(circle, rgba(58, 143, 183, 0.06) 0%, transparent 70%);
  pointer-events: none;
}

.hero-eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  margin-bottom: 1.5rem;
}

.status-chip {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  padding: 0.3rem 0.8rem;
  font-size: 0.68rem;
  font-weight: 600;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--accent);
  border: 1px solid var(--accent-dim);
  border-radius: 100px;
  background: rgba(58, 143, 183, 0.06);
}
.status-chip::before {
  content: '';
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--accent);
  animation: pulse-dot 2s ease-in-out infinite;
}
@keyframes pulse-dot {
  0%, 100% { opacity: 0.4; }
  50% { opacity: 1; }
}

.hero-logo {
  margin-bottom: 1.5rem;
}
.hero-logo img {
  width: clamp(180px, 28vw, 280px);
  height: auto;
  border-radius: 50%;
  filter: drop-shadow(0 0 24px rgba(58, 143, 183, 0.25));
}

.hero h1 {
  font-size: clamp(2.8rem, 6vw, 4.5rem);
  font-weight: 700;
  letter-spacing: -0.02em;
  line-height: 1.08;
  margin-bottom: 0.3rem;
}

.hero-descriptor {
  font-size: clamp(1rem, 2vw, 1.25rem);
  font-weight: 300;
  color: var(--text-secondary);
  letter-spacing: 0.15em;
  text-transform: uppercase;
  margin-bottom: 1.5rem;
}

.hero-tagline {
  font-size: clamp(1.1rem, 2.2vw, 1.5rem);
  font-weight: 400;
  color: var(--text-primary);
  margin-bottom: 0.6rem;
}

.hero-cinematic {
  font-size: 0.95rem;
  color: var(--text-muted);
  font-style: italic;
  max-width: 480px;
  margin: 0 auto 2.5rem;
  line-height: 1.7;
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 0.75rem;
  margin-bottom: 2rem;
}

.hero-contacts {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 1.5rem;
  font-size: 0.8rem;
  color: var(--text-muted);
}
.hero-contacts a {
  color: var(--text-secondary);
  text-decoration: none;
  transition: color 0.2s;
  display: flex;
  align-items: center;
  gap: 0.35rem;
}
.hero-contacts a:hover { color: var(--accent); }

/* ═══════════════════════════════════════════
   SECTIONS
   ═══════════════════════════════════════════ */
section {
  padding: var(--section-pad) 0;
  position: relative;
  z-index: 1;
}

.section-header {
  margin-bottom: 3rem;
}
.section-header .label { margin-bottom: 0.5rem; display: block; }
.section-header h2 {
  font-size: clamp(1.6rem, 3.5vw, 2.2rem);
  font-weight: 600;
  letter-spacing: -0.01em;
  margin-bottom: 0.6rem;
}
.section-header p {
  color: var(--text-secondary);
  max-width: 600px;
  font-size: 0.95rem;
}

.section-divider {
  border: none;
  height: 1px;
  background: linear-gradient(90deg, transparent, var(--border), transparent);
  margin: 0;
}

/* ═══════════════════════════════════════════
   CARDS
   ═══════════════════════════════════════════ */
.card {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 1.5rem;
  transition: border-color 0.3s, background 0.3s, box-shadow 0.3s;
}
.card:hover {
  border-color: var(--border-accent);
  background: var(--bg-card-hover);
  box-shadow: 0 4px 24px rgba(0,0,0,0.2);
}

/* ═══════════════════════════════════════════
   HOW IT WORKS — STEPPER
   ═══════════════════════════════════════════ */
.stepper {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 1.5rem;
  position: relative;
}

.stepper::before {
  content: '';
  position: absolute;
  top: 28px;
  left: 10%;
  right: 10%;
  height: 1px;
  background: linear-gradient(90deg, transparent, var(--accent-dim), var(--accent-dim), transparent);
}

.step {
  text-align: center;
  position: relative;
}

.step-number {
  width: 56px;
  height: 56px;
  border-radius: 50%;
  border: 1px solid var(--accent-dim);
  background: var(--bg-secondary);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 1rem;
  position: relative;
}

.step-number svg { color: var(--accent); }

.step h3 {
  font-size: 0.95rem;
  font-weight: 600;
  margin-bottom: 0.5rem;
  letter-spacing: 0.02em;
}

.step p {
  font-size: 0.82rem;
  color: var(--text-secondary);
  line-height: 1.6;
}

.step .tech-tag {
  display: inline-block;
  margin-top: 0.5rem;
  font-size: 0.65rem;
  font-family: var(--mono);
  color: var(--accent);
  background: rgba(58, 143, 183, 0.08);
  padding: 0.15rem 0.5rem;
  border-radius: 3px;
  border: 1px solid var(--accent-dim);
}

@media (max-width: 768px) {
  .stepper { grid-template-columns: 1fr 1fr; }
  .stepper::before { display: none; }
}
@media (max-width: 480px) {
  .stepper { grid-template-columns: 1fr; }
}

/* ═══════════════════════════════════════════
   AGENTS
   ═══════════════════════════════════════════ */
.agents-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(140px, 1fr));
  gap: 0.75rem;
  margin-bottom: 3rem;
}

.agent-card {
  text-align: center;
  padding: 1.2rem 0.75rem;
}

.agent-card .agent-icon {
  width: 40px;
  height: 40px;
  border-radius: 50%;
  border: 1px solid var(--border);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 0.6rem;
  color: var(--accent);
}

.agent-card h4 {
  font-size: 0.78rem;
  font-weight: 600;
  letter-spacing: 0.04em;
  margin-bottom: 0.2rem;
}

.agent-card .agent-role {
  font-size: 0.68rem;
  color: var(--text-muted);
  text-transform: uppercase;
  letter-spacing: 0.08em;
}

/* Spotlight */
.spotlight {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 2.5rem;
  align-items: start;
  margin-bottom: 3rem;
}

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

.spotlight-narrative h3 {
  font-size: 1.15rem;
  font-weight: 600;
  margin-bottom: 0.3rem;
}

.spotlight-narrative .spotlight-role {
  font-size: 0.78rem;
  color: var(--accent);
  text-transform: uppercase;
  letter-spacing: 0.1em;
  margin-bottom: 1rem;
}

.spotlight-narrative p {
  font-size: 0.9rem;
  color: var(--text-secondary);
  margin-bottom: 1rem;
}

.spotlight-guardrail {
  font-size: 0.82rem;
  font-weight: 500;
  color: var(--text-primary);
  border-left: 2px solid var(--accent);
  padding-left: 0.8rem;
  margin-top: 1rem;
}

.submodules { list-style: none; }
.submodules li {
  padding: 0.6rem 0.8rem;
  border-bottom: 1px solid var(--border);
  font-size: 0.85rem;
  display: flex;
  align-items: center;
  gap: 0.6rem;
  color: var(--text-secondary);
}
.submodules li:last-child { border-bottom: none; }
.submodules li::before {
  content: '';
  width: 4px;
  height: 4px;
  border-radius: 50%;
  background: var(--accent);
  flex-shrink: 0;
}

/* Custom domains */
.custom-domains {
  border-top: 1px solid var(--border);
  padding-top: 2.5rem;
}
.custom-domains h3 {
  font-size: 1.1rem;
  font-weight: 600;
  margin-bottom: 0.5rem;
}
.custom-domains > p {
  font-size: 0.9rem;
  color: var(--text-secondary);
  margin-bottom: 1.5rem;
  max-width: 600px;
}

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

.domain-tag {
  padding: 0.4rem 0.9rem;
  font-size: 0.75rem;
  font-weight: 500;
  color: var(--text-secondary);
  border: 1px solid var(--border);
  border-radius: 100px;
  letter-spacing: 0.04em;
  transition: border-color 0.2s, color 0.2s;
}
.domain-tag:hover {
  border-color: var(--accent-dim);
  color: var(--text-primary);
}

/* ═══════════════════════════════════════════
   GOVERNANCE
   ═══════════════════════════════════════════ */
.governance-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 1rem;
}

.gov-card h4 {
  font-size: 0.9rem;
  font-weight: 600;
  margin-bottom: 0.4rem;
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

.gov-card h4 svg { color: var(--accent); flex-shrink: 0; }

.gov-card p {
  font-size: 0.84rem;
  color: var(--text-secondary);
  line-height: 1.6;
}

/* ═══════════════════════════════════════════
   DEPLOYMENT
   ═══════════════════════════════════════════ */
.deploy-layout {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 2.5rem;
  align-items: start;
}

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

.deploy-features { list-style: none; }
.deploy-features li {
  padding: 0.65rem 0;
  font-size: 0.88rem;
  color: var(--text-secondary);
  border-bottom: 1px solid rgba(30, 37, 48, 0.5);
  display: flex;
  align-items: flex-start;
  gap: 0.6rem;
}
.deploy-features li:last-child { border-bottom: none; }
.deploy-features li svg { color: var(--accent); flex-shrink: 0; margin-top: 0.15rem; }

.llm-providers {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  margin-top: 1rem;
}

.llm-badge {
  padding: 0.3rem 0.7rem;
  font-size: 0.7rem;
  font-family: var(--mono);
  color: var(--text-secondary);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  background: var(--bg-secondary);
}

/* Architecture diagram */
.arch-diagram {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 2rem;
  display: flex;
  align-items: center;
  justify-content: center;
}

.arch-diagram svg { width: 100%; max-width: 380px; height: auto; }

/* ═══════════════════════════════════════════
   STATUS / WAITLIST
   ═══════════════════════════════════════════ */
#status { background: var(--bg-secondary); }

.waitlist-layout {
  display: grid;
  grid-template-columns: 1fr 1.2fr;
  gap: 3rem;
  align-items: start;
}

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

.waitlist-info .status-large {
  font-size: 1.3rem;
  font-weight: 600;
  margin-bottom: 0.3rem;
}

.waitlist-info .status-sub {
  font-size: 0.88rem;
  color: var(--text-secondary);
  margin-bottom: 1.5rem;
  line-height: 1.7;
}

.waitlist-info .waitlist-note {
  font-size: 0.82rem;
  color: var(--text-muted);
  border-left: 2px solid var(--border);
  padding-left: 0.8rem;
}

.waitlist-form {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 2rem;
}

.waitlist-form h3 {
  font-size: 1rem;
  font-weight: 600;
  margin-bottom: 1.5rem;
}

.form-group {
  margin-bottom: 1.2rem;
}

.form-group label {
  display: block;
  font-size: 0.75rem;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--text-secondary);
  margin-bottom: 0.35rem;
}

.form-group input,
.form-group select,
.form-group textarea {
  width: 100%;
  padding: 0.6rem 0.8rem;
  font-family: var(--font);
  font-size: 0.88rem;
  background: var(--bg-secondary);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  color: var(--text-primary);
  transition: border-color 0.2s;
}

.form-group input:focus,
.form-group select:focus,
.form-group textarea:focus {
  outline: none;
  border-color: var(--accent);
  box-shadow: 0 0 0 2px rgba(58, 143, 183, 0.15);
}

.form-group textarea { resize: vertical; min-height: 80px; }

.form-group select { cursor: pointer; appearance: auto; }

.form-check {
  display: flex;
  align-items: flex-start;
  gap: 0.5rem;
  margin-bottom: 1.5rem;
}

.form-check input[type="checkbox"] {
  margin-top: 0.2rem;
  accent-color: var(--accent);
  width: 16px;
  height: 16px;
  flex-shrink: 0;
  cursor: pointer;
}

.form-check label {
  font-size: 0.8rem;
  color: var(--text-secondary);
  cursor: pointer;
  line-height: 1.5;
}

.form-error {
  color: var(--danger);
  font-size: 0.75rem;
  margin-top: 0.25rem;
  display: none;
}

/* ═══════════════════════════════════════════
   FOOTER
   ═══════════════════════════════════════════ */
.site-footer {
  border-top: 1px solid var(--border);
  padding: 3rem 0 2rem;
  text-align: center;
  position: relative;
  z-index: 1;
}

.footer-tagline {
  font-size: 0.95rem;
  font-weight: 500;
  margin-bottom: 1rem;
  color: var(--text-secondary);
}

.footer-links {
  display: flex;
  justify-content: center;
  gap: 1.5rem;
  margin-bottom: 1.5rem;
}

.footer-links a {
  font-size: 0.8rem;
  color: var(--text-muted);
  text-decoration: none;
  transition: color 0.2s;
}
.footer-links a:hover { color: var(--accent); }

.footer-disclaimer {
  font-size: 0.72rem;
  color: var(--text-muted);
  max-width: 480px;
  margin: 0 auto;
}

/* ═══════════════════════════════════════════
   FOCUS STATES (Accessibility)
   ═══════════════════════════════════════════ */
a:focus-visible,
button:focus-visible,
input:focus-visible,
select:focus-visible,
textarea:focus-visible {
  outline: 2px solid var(--accent);
  outline-offset: 2px;
}
