:root {
  --page-max: 1240px;
  --surface-1: rgba(12, 18, 38, .82);
  --surface-2: rgba(8, 13, 29, .94);
  --line: rgba(148, 163, 184, .14);
  --line-indigo: rgba(129, 140, 248, .22);
  --line-blue: rgba(96, 165, 250, .22);
  --line-teal: rgba(45, 212, 191, .22);
  --line-amber: rgba(251, 191, 36, .22);
}

html { scroll-behavior: smooth; }
body {
  min-height: 100vh;
  background:
    radial-gradient(circle at 50% 2%, rgba(99, 102, 241, .18), transparent 34rem),
    radial-gradient(circle at 84% 16%, rgba(59, 130, 246, .09), transparent 24rem),
    #020617;
}

.skip-link {
  position: fixed;
  left: 1rem;
  top: -5rem;
  z-index: 1000;
  padding: .8rem 1rem;
  border-radius: .75rem;
  background: #f8fafc;
  color: #020617;
  font-weight: 800;
}
.skip-link:focus { top: 1rem; }

.site-nav {
  position: sticky;
  top: 0;
  z-index: 80;
  border-bottom: 1px solid rgba(129, 140, 248, .12);
  background: rgba(2, 6, 23, .84);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
}

.site-nav__inner,
.page-shell,
.footer__inner {
  width: min(var(--page-max), calc(100% - 3rem));
  margin: 0 auto;
}

.site-nav__inner {
  min-height: 76px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1.5rem;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: .85rem;
}

.brand-mark {
  width: 43px;
  height: 43px;
  display: grid;
  place-items: center;
  border-radius: 13px;
  background: linear-gradient(135deg, #4f46e5, #6366f1);
  box-shadow: 0 16px 40px rgba(79, 70, 229, .28);
  font-family: 'JetBrains Mono', monospace;
  font-weight: 800;
  color: white;
}

.brand-name { font-size: 1.08rem; font-weight: 800; letter-spacing: -.02em; }
.brand-tag {
  margin-top: .15rem;
  color: #818cf8;
  font-family: 'JetBrains Mono', monospace;
  font-size: .58rem;
  font-weight: 700;
  letter-spacing: .17em;
  text-transform: uppercase;
}

.nav-actions { display: flex; align-items: center; gap: .8rem; }
.nav-link {
  color: #94a3b8;
  font-size: .84rem;
  font-weight: 600;
  transition: color .18s ease;
}
.nav-link:hover, .nav-link:focus-visible { color: #f8fafc; }

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: .7rem;
  min-height: 52px;
  padding: 0 1.65rem;
  border: 0;
  border-radius: 999px;
  font: inherit;
  font-weight: 800;
  cursor: pointer;
  transition: transform .18s ease, border-color .18s ease, background .18s ease;
}
.btn:hover { transform: translateY(-1px); }
.btn--primary {
  color: white;
  background: linear-gradient(135deg, #4f46e5, #6366f1);
  box-shadow: 0 20px 50px rgba(79, 70, 229, .25);
}
.btn--outline {
  color: #f8fafc;
  border: 1px solid #334155;
  background: rgba(15, 23, 42, .48);
}
.btn--outline:hover { border-color: #64748b; }

.page-shell { padding: 5rem 0 5rem; }

.hero {
  position: relative;
  overflow: hidden;
  max-width: 1100px;
  margin: 0 auto;
  padding: 4.2rem 3.5rem 3.6rem;
  text-align: center;
  border: 1px solid var(--line-indigo);
  border-radius: 34px;
  background:
    radial-gradient(circle at 50% 0, rgba(99, 102, 241, .18), transparent 28rem),
    linear-gradient(180deg, rgba(15, 23, 52, .90), rgba(6, 10, 24, .97));
  box-shadow: inset 0 1px 0 rgba(255,255,255,.04), 0 32px 90px rgba(0,0,0,.32);
}
.hero::after {
  content: "";
  position: absolute;
  inset: 0;
  background-image:
    linear-gradient(rgba(99, 102, 241, .045) 1px, transparent 1px),
    linear-gradient(90deg, rgba(99, 102, 241, .045) 1px, transparent 1px);
  background-size: 38px 38px;
  mask-image: linear-gradient(to bottom, black, transparent 80%);
  pointer-events: none;
}
.hero > * { position: relative; z-index: 1; }
.hero h1 {
  max-width: 1000px;
  margin: 1.6rem auto 1.35rem;
  font-size: clamp(3rem, 6.7vw, 5.5rem);
  line-height: 1.01;
  letter-spacing: -.055em;
  font-weight: 800;
}
.hero h1 span { color: #818cf8; }
.hero p {
  max-width: 820px;
  margin: 0 auto;
  color: #a8b4c8;
  font-size: clamp(1.03rem, 1.7vw, 1.22rem);
  line-height: 1.78;
  font-weight: 300;
}
.hero-actions {
  display: flex;
  justify-content: center;
  flex-wrap: wrap;
  gap: 1rem;
  margin-top: 2.2rem;
}
.hero-note {
  margin-top: 1.5rem;
  color: #64748b;
  font-family: 'JetBrains Mono', monospace;
  font-size: .72rem;
  line-height: 1.6;
}

.section { padding-top: 5rem; }
.section-head { max-width: 790px; margin-bottom: 2.2rem; }
.section-head--center { margin-left: auto; margin-right: auto; text-align: center; }
.section-kicker {
  color: #818cf8;
  font-family: 'JetBrains Mono', monospace;
  font-size: .68rem;
  font-weight: 700;
  letter-spacing: .14em;
  text-transform: uppercase;
}
.section h2 {
  margin: .85rem 0 0;
  font-size: clamp(2.2rem, 4vw, 3.7rem);
  line-height: 1.08;
  letter-spacing: -.04em;
}
.section-intro {
  margin: 1rem 0 0;
  color: #94a3b8;
  line-height: 1.75;
  font-size: 1.03rem;
}

.jobs-grid {
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  align-items: stretch;
  gap: 1rem;
}
.job-card {
  min-width: 0;
  padding: 2.2rem;
  border-radius: 26px;
  background: linear-gradient(180deg, var(--surface-1), var(--surface-2));
  box-shadow: inset 0 1px 0 rgba(255,255,255,.03), 0 20px 60px rgba(0,0,0,.22);
}
.job-card--engine { border: 1px solid var(--line-teal); }
.job-card--ai { border: 1px solid var(--line-blue); }
.job-card__label {
  font-family: 'JetBrains Mono', monospace;
  font-size: .66rem;
  font-weight: 700;
  letter-spacing: .13em;
  text-transform: uppercase;
}
.job-card--engine .job-card__label { color: #2dd4bf; }
.job-card--ai .job-card__label { color: #60a5fa; }
.job-card h3 { margin: 1rem 0 .8rem; font-size: 1.8rem; letter-spacing: -.03em; }
.job-card p { margin: 0; color: #94a3b8; line-height: 1.75; }
.job-list { display: grid; gap: .72rem; margin-top: 1.4rem; }
.job-list div { display: flex; gap: .75rem; color: #cbd5e1; line-height: 1.55; }
.job-list div::before { content: "•"; color: #64748b; }
.job-bridge {
  width: 64px;
  display: grid;
  place-items: center;
  color: #818cf8;
  font-family: 'JetBrains Mono', monospace;
  font-size: .68rem;
  writing-mode: vertical-rl;
  text-transform: uppercase;
  letter-spacing: .14em;
}

.architecture {
  padding: 2rem;
  border: 1px solid var(--line-indigo);
  border-radius: 28px;
  background: linear-gradient(180deg, rgba(10, 16, 35, .96), rgba(4, 8, 20, .98));
  box-shadow: 0 24px 70px rgba(0,0,0,.25);
}
.architecture-flow {
  display: grid;
  grid-template-columns: repeat(5, minmax(0, 1fr));
  gap: .8rem;
  align-items: stretch;
}
.flow-node {
  position: relative;
  min-height: 144px;
  padding: 1.35rem;
  border: 1px solid var(--line);
  border-radius: 20px;
  background: rgba(15, 23, 42, .68);
}
.flow-node:not(:last-child)::after {
  content: "→";
  position: absolute;
  right: -.73rem;
  top: 50%;
  z-index: 3;
  width: 1.45rem;
  height: 1.45rem;
  display: grid;
  place-items: center;
  transform: translateY(-50%);
  border: 1px solid #334155;
  border-radius: 999px;
  background: #07101f;
  color: #818cf8;
  font-size: .8rem;
}
.flow-node__tag {
  font-family: 'JetBrains Mono', monospace;
  font-size: .58rem;
  font-weight: 700;
  letter-spacing: .12em;
  text-transform: uppercase;
}
.flow-node--data .flow-node__tag { color: #94a3b8; }
.flow-node--engine { border-color: var(--line-teal); }
.flow-node--engine .flow-node__tag { color: #2dd4bf; }
.flow-node--context { border-color: var(--line-indigo); }
.flow-node--context .flow-node__tag { color: #818cf8; }
.flow-node--integration { border-color: var(--line-amber); }
.flow-node--integration .flow-node__tag { color: #fbbf24; }
.flow-node--interfaces { border-color: var(--line-blue); }
.flow-node--interfaces .flow-node__tag { color: #60a5fa; }
.flow-node h3 { margin: .85rem 0 .55rem; font-size: 1rem; line-height: 1.35; }
.flow-node p { margin: 0; color: #7f8da3; font-size: .82rem; line-height: 1.58; }
.architecture-note {
  margin: 1.3rem 0 0;
  color: #64748b;
  font-size: .79rem;
  line-height: 1.65;
}

.comparison-shell {
  overflow-x: auto;
  border: 1px solid var(--line);
  border-radius: 26px;
  background: rgba(8, 13, 29, .84);
}
.comparison-table {
  width: 100%;
  min-width: 850px;
  border-collapse: collapse;
}
.comparison-table th,
.comparison-table td {
  padding: 1.25rem 1.35rem;
  border-bottom: 1px solid rgba(148,163,184,.10);
  text-align: left;
  vertical-align: top;
  line-height: 1.58;
}
.comparison-table tr:last-child td { border-bottom: 0; }
.comparison-table th {
  color: #e2e8f0;
  background: rgba(15,23,42,.72);
  font-size: .78rem;
  letter-spacing: .04em;
}
.comparison-table th:first-child { width: 21%; }
.comparison-table th:nth-child(2) { color: #60a5fa; }
.comparison-table th:nth-child(3) { color: #2dd4bf; }
.comparison-table td:first-child { color: #cbd5e1; font-weight: 800; }
.comparison-table td:not(:first-child) { color: #94a3b8; }

.manifest-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 1rem;
}
.manifest-card {
  padding: 2.2rem;
  border: 1px solid var(--line);
  border-radius: 26px;
  background: linear-gradient(180deg, rgba(15,23,42,.70), rgba(6,10,23,.94));
}
.manifest-card--indigo { border-color: var(--line-indigo); }
.manifest-card--slate { border-color: rgba(148,163,184,.18); }
.manifest-card h3 { margin: 0 0 1rem; font-size: 1.55rem; letter-spacing: -.025em; }
.manifest-card p { margin: 0; color: #94a3b8; line-height: 1.78; }
.manifest-emphasis {
  display: grid;
  gap: .5rem;
  margin-top: 1.4rem;
  color: #cbd5e1;
  font-family: 'JetBrains Mono', monospace;
  font-size: .76rem;
  line-height: 1.6;
}

.evidence {
  overflow: hidden;
  border: 1px solid var(--line-indigo);
  border-radius: 30px;
  background: #070c1d;
  box-shadow: 0 30px 90px rgba(0,0,0,.28), 0 0 70px rgba(99,102,241,.08);
}
.evidence-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  padding: 1rem 1.25rem;
  border-bottom: 1px solid #1e293b;
  background: rgba(15,23,42,.78);
}
.evidence-head span { color: #cbd5e1; font-size: .84rem; }
.evidence-head strong {
  color: #2dd4bf;
  font-family: 'JetBrains Mono', monospace;
  font-size: .65rem;
  letter-spacing: .11em;
  text-transform: uppercase;
}
.evidence img { display: block; width: 100%; height: auto; }
.evidence-caption {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 1.5rem;
  padding: 1.35rem 1.5rem;
  border-top: 1px solid #1e293b;
}
.evidence-caption h3 { margin: 0 0 .35rem; font-size: 1.08rem; }
.evidence-caption p { margin: 0; color: #64748b; font-size: .85rem; line-height: 1.55; }

.boundary {
  padding: 2.4rem;
  border: 1px solid var(--line-amber);
  border-radius: 28px;
  background:
    radial-gradient(circle at 0 0, rgba(245,158,11,.11), transparent 25rem),
    rgba(10,15,29,.92);
}
.boundary h2 { font-size: clamp(1.8rem, 3vw, 2.7rem); }
.boundary p { max-width: 900px; margin: 1rem 0 0; color: #94a3b8; line-height: 1.75; }

.footer {
  border-top: 1px solid #1e293b;
  background:
    radial-gradient(circle at 16% 0, rgba(99,102,241,.10), transparent 28rem),
    #020617;
}
.footer__inner { padding: 4rem 0 2.5rem; color: #64748b; font-size: .82rem; }
.footer__top {
  display: grid;
  grid-template-columns: minmax(250px, 1.6fr) repeat(3, minmax(150px, 1fr));
  gap: 2.5rem;
  padding-bottom: 3rem;
}
.footer__identity { max-width: 340px; }
.footer__identity p { margin: 1rem 0 0; line-height: 1.7; }
.footer__heading {
  margin: 0 0 1rem;
  color: #cbd5e1;
  font-family: 'JetBrains Mono', monospace;
  font-size: .65rem;
  font-weight: 700;
  letter-spacing: .13em;
  text-transform: uppercase;
}
.footer__links { display: grid; gap: .75rem; }
.footer__links a, .footer__legal a { color: #94a3b8; transition: color .18s ease; }
.footer__links a:hover, .footer__links a:focus-visible,
.footer__legal a:hover, .footer__legal a:focus-visible { color: #f8fafc; }
.footer__bottom { padding-top: 1.6rem; border-top: 1px solid #1e293b; }
.footer__meta { display: flex; justify-content: space-between; gap: 1rem 2rem; flex-wrap: wrap; }
.footer__legal { display: flex; gap: .55rem 1rem; flex-wrap: wrap; }
.footer__disclaimer { max-width: 1080px; margin: 1.5rem 0 0; color: #475569; font-size: .72rem; line-height: 1.75; }

@media (max-width: 1020px) {
  .architecture-flow { grid-template-columns: 1fr; }
  .flow-node:not(:last-child)::after {
    content: "↓";
    top: auto;
    bottom: -.73rem;
    right: 50%;
    transform: translateX(50%);
  }
  .flow-node { min-height: 0; }
  .jobs-grid { grid-template-columns: 1fr; }
  .job-bridge { width: auto; writing-mode: horizontal-tb; padding: .2rem 0; }
  .footer__top { grid-template-columns: repeat(2, minmax(0,1fr)); }
  .footer__identity { max-width: none; }
}

@media (max-width: 720px) {
  .site-nav__inner, .page-shell, .footer__inner { width: min(100% - 2rem, var(--page-max)); }
  .site-nav__inner { min-height: 68px; }
  .nav-link, .btn--nav { display: none; }
  .page-shell { padding-top: 2rem; }
  .hero { padding: 3rem 1.25rem 2.5rem; border-radius: 26px; }
  .hero-actions .btn { width: 100%; }
  .section { padding-top: 4rem; }
  .manifest-grid { grid-template-columns: 1fr; }
  .evidence-head, .evidence-caption { align-items: flex-start; flex-direction: column; }
  .evidence-caption .btn { width: 100%; }
  .footer__top { grid-template-columns: 1fr; gap: 2rem; }
  .footer__meta { flex-direction: column; }
  .architecture { padding: 1rem; }
}
