:root {
  --bg: #0b0f19;
  --bg-alt: #0f1424;
  --surface: #131a2b;
  --surface-border: #232c42;
  --text: #e7ecf7;
  --text-muted: #9aa5bd;
  --accent: #4f9dff;
  --accent-soft: #1c2a45;
  --radius: 14px;
  --max-width: 1120px;
  font-size: 16px;
}

* { box-sizing: border-box; }

html, body {
  margin: 0;
  padding: 0;
}
html { scroll-behavior: smooth; }

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

a { color: var(--accent); text-decoration: none; }
a:hover { text-decoration: underline; }

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

h1, h2, h3 { line-height: 1.25; margin: 0 0 12px; font-weight: 650; }
h1 { font-size: clamp(2rem, 4vw, 3rem); }
h2 { font-size: clamp(1.5rem, 3vw, 2.1rem); }
h3 { font-size: 1.15rem; margin-bottom: 8px; }
p { margin: 0 0 16px; color: var(--text-muted); }

.eyebrow {
  text-transform: uppercase;
  letter-spacing: 0.12em;
  font-size: 0.78rem;
  font-weight: 700;
  color: var(--accent);
  margin: 0 0 10px;
}

/* ---------- Header ---------- */
.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  backdrop-filter: blur(10px);
  background: rgba(11, 15, 25, 0.85);
  border-bottom: 1px solid var(--surface-border);
}

.nav {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 68px;
}

.brand {
  display: flex;
  align-items: center;
  gap: 10px;
  font-weight: 700;
  font-size: 1.15rem;
  color: var(--text);
}
.brand:hover { text-decoration: none; }

.brand-logo {
  height: 68px;
  width: auto;
  object-fit: contain;
  border-radius: 8px;
  display: block;
  flex-shrink: 0;
}

.nav-links {
  display: flex;
  align-items: center;
  gap: 22px;
}

.nav-links a {
  color: var(--text-muted);
  font-size: 0.94rem;
  font-weight: 500;
}
.nav-links a:hover { color: var(--text); text-decoration: none; }

.nav-toggle {
  display: none;
  flex-direction: column;
  gap: 5px;
  background: none;
  border: none;
  cursor: pointer;
  padding: 8px;
}
.nav-toggle span {
  width: 22px;
  height: 2px;
  background: var(--text);
  display: block;
}

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 12px 22px;
  border-radius: 999px;
  font-weight: 600;
  font-size: 0.95rem;
  cursor: pointer;
  border: 1px solid transparent;
  transition: transform 0.15s ease, background 0.15s ease, border-color 0.15s ease;
}
.btn:hover { text-decoration: none; transform: translateY(-1px); }

.btn-primary {
  background: var(--accent);
  color: #06101f;
}
.btn-primary:hover { background: #6badff; }

.btn-ghost {
  border-color: var(--surface-border);
  color: var(--text);
}
.btn-ghost:hover { border-color: var(--accent); }

.btn-sm { padding: 9px 18px; font-size: 0.88rem; }

/* ---------- Hero ---------- */
.hero {
  padding: 96px 0 72px;
  background:
    radial-gradient(600px 300px at 15% 0%, rgba(79, 157, 255, 0.16), transparent 60%),
    radial-gradient(500px 260px at 85% 10%, rgba(124, 196, 255, 0.10), transparent 60%);
}

.hero-inner { max-width: 820px; }

.hero-lede {
  font-size: 1.08rem;
  max-width: 640px;
}

.hero-actions {
  display: flex;
  gap: 14px;
  margin: 28px 0 48px;
  flex-wrap: wrap;
}

.hero-stats {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 24px;
  margin: 0;
  padding-top: 28px;
  border-top: 1px solid var(--surface-border);
}
.hero-stats dt {
  color: var(--text);
  font-weight: 700;
  font-size: 1rem;
}
.hero-stats dd {
  margin: 4px 0 0;
  color: var(--text-muted);
  font-size: 0.88rem;
}

/* ---------- Sections ---------- */
.section { padding: 84px 0; }
.section-alt { background: var(--bg-alt); }
.section-lede { max-width: 680px; font-size: 1.02rem; }

.grid {
  display: grid;
  gap: 22px;
  margin-top: 36px;
}
.grid-2 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.grid-3 { grid-template-columns: repeat(3, minmax(0, 1fr)); }

.card {
  background: var(--surface);
  border: 1px solid var(--surface-border);
  border-radius: var(--radius);
  padding: 26px;
}
.card-outline {
  background: transparent;
}
.card p:last-child { margin-bottom: 0; }
.card-kicker {
  color: var(--accent);
  font-size: 0.75rem;
  font-weight: 700;
  letter-spacing: 0.06em;
  margin-bottom: 8px;
  text-transform: uppercase;
}

/* ---------- Evidence ---------- */
.evidence-panel {
  display: grid;
  grid-template-columns: 1.35fr 1fr;
  gap: 28px;
  margin-top: 36px;
  padding: 30px;
  background: linear-gradient(135deg, rgba(79, 157, 255, 0.12), rgba(19, 26, 43, 0.92));
  border: 1px solid rgba(79, 157, 255, 0.32);
  border-radius: var(--radius);
}
.status-badge {
  display: inline-block;
  margin-bottom: 14px;
  padding: 5px 11px;
  border-radius: 999px;
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.05em;
  text-transform: uppercase;
}
.status-operational {
  color: #a9f3ce;
  background: rgba(54, 211, 153, 0.12);
  border: 1px solid rgba(54, 211, 153, 0.28);
}
.evidence-facts {
  margin: 0;
  display: grid;
  align-content: start;
  gap: 12px;
}
.evidence-facts div {
  padding: 13px 15px;
  background: rgba(11, 15, 25, 0.5);
  border: 1px solid var(--surface-border);
  border-radius: 10px;
}
.evidence-facts dt {
  color: var(--text-muted);
  font-size: 0.78rem;
  text-transform: uppercase;
  letter-spacing: 0.05em;
}
.evidence-facts dd {
  margin: 3px 0 0;
  color: var(--text);
  font-weight: 650;
}
.evidence-schema { margin-top: 22px; }
.disclosure {
  margin: 24px 0 0;
  padding: 18px 20px;
  color: var(--text-muted);
  background: rgba(255, 190, 92, 0.06);
  border: 1px solid rgba(255, 190, 92, 0.2);
  border-radius: 10px;
}
.disclosure strong { color: #ffd08a; }

.tech-grid .tech-item {
  background: var(--surface);
  border: 1px solid var(--surface-border);
  border-radius: var(--radius);
  padding: 26px;
}

/* ---------- Product flow / governance ---------- */
.product-flow {
  display: grid;
  grid-template-columns: 1fr auto 1fr auto 1fr;
  gap: 18px;
  align-items: stretch;
  margin-top: 36px;
}
.lineage-item {
  background: var(--surface);
  border: 1px solid var(--surface-border);
  border-radius: var(--radius);
  padding: 26px;
}
.lineage-item p:last-child { margin-bottom: 0; }
.flow-step {
  display: block;
  color: var(--text-muted);
  font-size: 0.75rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  margin-bottom: 8px;
}
.lineage-tag {
  color: var(--accent);
  font-size: 0.82rem;
  font-weight: 600;
  letter-spacing: 0.02em;
  margin: 0 0 10px;
}
.lineage-arrow {
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--text-muted);
  font-size: 1.4rem;
  padding-top: 8px;
}
.business-model,
.resource-plan {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 22px;
  margin-top: 28px;
}
.business-model > div,
.resource-plan > div {
  padding: 24px 26px;
  background: rgba(79, 157, 255, 0.05);
  border-left: 2px solid var(--accent);
  border-radius: 0 var(--radius) var(--radius) 0;
}
.business-model p:last-child,
.resource-plan p:last-child { margin-bottom: 0; }
.provenance-note,
.future-note {
  margin: 24px 0 0;
  color: var(--text-muted);
  font-size: 0.9rem;
}
.future-note {
  padding-top: 18px;
  border-top: 1px solid var(--surface-border);
}
.comparison-card { position: relative; }
.comparison-focus {
  border-color: rgba(79, 157, 255, 0.55);
  box-shadow: inset 0 3px 0 var(--accent);
}
@media (max-width: 720px) {
  .product-flow {
    grid-template-columns: 1fr;
  }
  .lineage-arrow {
    transform: rotate(90deg);
    padding: 0;
  }
}

/* ---------- Roadmap ---------- */
.roadmap {
  list-style: none;
  margin: 36px 0 0;
  padding: 0;
  display: grid;
  gap: 18px;
}
.roadmap li {
  background: var(--surface);
  border: 1px solid var(--surface-border);
  border-radius: var(--radius);
  padding: 22px 26px;
  position: relative;
}
.roadmap-phase {
  display: inline-block;
  font-size: 0.75rem;
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--accent);
  background: var(--accent-soft);
  padding: 4px 10px;
  border-radius: 999px;
  margin-bottom: 10px;
}
.roadmap li p:last-child { margin-bottom: 0; }

/* ---------- Team ---------- */
.team-grid { grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); }
.subsection-title {
  margin: 40px 0 0;
  font-size: 1.15rem;
}
.stage-list {
  margin: 20px 0 0;
  padding: 0;
  list-style: none;
  display: grid;
  gap: 10px;
}
.stage-list li {
  padding: 12px 16px;
  background: var(--surface);
  border: 1px solid var(--surface-border);
  border-radius: 10px;
  color: var(--text-muted);
}
.stage-list strong { color: var(--text); }
.feature-list {
  margin: 0;
  padding-left: 18px;
  color: var(--text-muted);
}
.feature-list li { margin: 0 0 8px; }
.feature-list li:last-child { margin-bottom: 0; }
.arch-figure {
  margin: 8px 0 0;
}
.arch-figure svg {
  width: 100%;
  height: auto;
  display: block;
  background: #0b0f19;
  border: 1px solid var(--surface-border);
  border-radius: 10px;
}
.arch-figure figcaption {
  margin-top: 10px;
  font-size: 0.88rem;
  color: var(--text-muted);
}
code {
  font-size: 0.86em;
  color: #c9d7f5;
}
.profile-links {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 12px !important;
}
.profile-links a {
  font-weight: 600;
  font-size: 0.9rem;
}
.team-card { max-width: none; }
.avatar-initials {
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--accent);
  font-size: 2rem;
  font-weight: 700;
}
.fine-print {
  margin-top: 28px;
  color: var(--text-muted);
  font-size: 0.9rem;
}
.avatar {
  width: 96px;
  height: 96px;
  border-radius: 50%;
  object-fit: cover;
  object-position: center 20%;
  display: block;
  margin-bottom: 16px;
  border: 2px solid rgba(79, 157, 255, 0.35);
  background: var(--surface-border);
}
.miranda-avatar {
  object-fit: contain;
  object-position: center;
  background: #fff;
}
.team-role {
  color: var(--accent);
  font-size: 0.85rem;
  font-weight: 600;
  margin-bottom: 10px !important;
}
.team-note {
  margin-top: 28px;
  color: var(--text-muted);
  font-size: 0.95rem;
}
.constraints {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 22px;
  margin-top: 28px;
}
.constraint-item {
  border-left: 2px solid var(--accent);
  background: rgba(79, 157, 255, 0.05);
  border-radius: 0 var(--radius) var(--radius) 0;
  padding: 24px 26px;
}
.constraint-item p:last-child { margin-bottom: 0; }
.constraint-label {
  color: var(--accent);
  font-size: 0.75rem;
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  margin-bottom: 8px;
}

/* ---------- Contact ---------- */
.contact-grid {
  display: grid;
  grid-template-columns: 1.2fr 1fr;
  gap: 40px;
  align-items: start;
}
.contact-card {
  background: var(--surface);
  border: 1px solid var(--surface-border);
  border-radius: var(--radius);
  padding: 28px;
}
.contact-card p { margin-bottom: 18px; }
.contact-card p:last-child { margin-bottom: 0; }
.contact-card strong { color: var(--text); display: block; margin-bottom: 4px; font-size: 0.85rem; text-transform: uppercase; letter-spacing: 0.04em; }

/* ---------- Footer ---------- */
.site-footer {
  border-top: 1px solid var(--surface-border);
  padding: 28px 0;
}
.footer-inner {
  display: flex;
  justify-content: space-between;
  gap: 16px;
  flex-wrap: wrap;
  color: var(--text-muted);
  font-size: 0.85rem;
}

/* ---------- Responsive ---------- */
@media (max-width: 860px) {
  .grid-2, .grid-3 { grid-template-columns: 1fr; }
  .evidence-panel { grid-template-columns: 1fr; }
  .business-model, .resource-plan { grid-template-columns: 1fr; }
  .constraints { grid-template-columns: 1fr; }
  .contact-grid { grid-template-columns: 1fr; }
  .hero-stats { grid-template-columns: 1fr; gap: 16px; }
  .product-flow { grid-template-columns: 1fr; }
  .lineage-arrow { transform: rotate(90deg); padding: 0; }
}

@media (max-width: 960px) {
  .nav-links {
    position: absolute;
    top: 68px;
    left: 0;
    right: 0;
    background: var(--bg);
    border-bottom: 1px solid var(--surface-border);
    flex-direction: column;
    align-items: flex-start;
    gap: 0;
    padding: 8px 24px 20px;
    display: none;
  }
  .nav-links.open { display: flex; }
  .nav-links a { width: 100%; padding: 12px 0; border-bottom: 1px solid var(--surface-border); }
  .nav-links a.btn { margin-top: 12px; width: auto; border-bottom: none; }
  .nav-toggle { display: flex; }
}
