/* Base design tokens (:root) live in the synced ./tokens.css, linked before this
   file in index.html. Only responsive --gutter overrides + local layout helpers
   remain here. The synced token file is byte-identical to neutrino-console's
   console-frontend/src/tokens.css — do not edit it here. */

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

html {
  scroll-behavior: smooth;
}

body {
  font-family: "Inter", -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  color: var(--ink);
  background: var(--white);
  line-height: 1.5;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

h1, h2, h3 {
  font-weight: 700;
  line-height: 1.15;
  letter-spacing: -0.021em;
  color: var(--ink);
}

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

em { font-style: italic; }

code {
  font-family: "JetBrains Mono", ui-monospace, SFMono-Regular, Menlo, monospace;
  font-size: 0.9em;
  padding: 1px 5px;
  border-radius: 4px;
  background: var(--gray-100);
  border: 1px solid var(--gray-200);
  color: var(--gray-800);
}

/* Keyboard focus — visible on every interactive element */

a:focus-visible,
.btn:focus-visible,
.table-scroll:focus-visible {
  outline: 2px solid var(--accent);
  outline-offset: 3px;
  border-radius: var(--radius-sm);
}

/* Skip link */

.skip-link {
  position: absolute;
  left: 12px;
  top: -48px;
  z-index: 20;
  background: var(--ink);
  color: var(--white);
  padding: 10px 16px;
  border-radius: var(--radius-sm);
  font-size: 14px;
  font-weight: 600;
  transition: top 0.15s ease;
}

.skip-link:focus { top: 12px; }

/* Buttons */

.btn {
  display: inline-block;
  border-radius: var(--radius-sm);
  font-weight: 600;
  font-size: 15px;
  letter-spacing: -0.005em;
  padding: 13px 24px;
  border: 1px solid transparent;
  transition: background 0.15s ease, border-color 0.15s ease, color 0.15s ease;
}

.btn-primary { background: var(--ink); color: var(--white); }
.btn-primary:hover { background: var(--gray-700); }
.btn-secondary { background: var(--white); color: var(--ink); border-color: var(--gray-300); }
.btn-secondary:hover { border-color: var(--ink); }
.btn-sm { font-size: 14px; padding: 10px 18px; }
.btn-lg { font-size: 16px; padding: 15px 30px; }

/* Nav */

.nav {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 22px var(--gutter);
  background: var(--white);
  position: sticky;
  top: 0;
  z-index: 10;
  border-bottom: 1px solid var(--gray-200);
}

.logo { display: flex; align-items: center; gap: 10px; }
.logo-mark { display: block; width: 24px; height: 24px; }
.logo-word { font-size: 20px; font-weight: 700; letter-spacing: -0.03em; color: var(--ink); }

.nav-links { display: flex; gap: 28px; }
.nav-links a { font-size: 14.5px; font-weight: 500; color: var(--gray-600); transition: color 0.15s ease; }
.nav-links a:hover { color: var(--ink); }

/* Hero */

.hero {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 24px;
  padding: 104px var(--gutter) 88px;
  background: var(--white);
  text-align: center;
}

.hero h1 {
  font-size: 60px;
  font-weight: 800;
  line-height: 1.04;
  letter-spacing: -0.03em;
  max-width: 900px;
}

.hero-lead {
  max-width: 780px;
  font-size: 21px;
  font-weight: 500;
  line-height: 1.5;
  color: var(--ink);
}

.hero-lead strong { color: var(--accent); font-weight: 700; }

.hero-sub {
  max-width: 700px;
  font-size: 17px;
  line-height: 1.65;
  color: var(--gray-600);
}

.hero-ctas {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 14px;
  align-items: center;
  margin-top: 4px;
}

/* Project-status line — explicit, not a marketing claim */

.status-line {
  max-width: 720px;
  margin-top: 14px;
  padding: 16px 22px;
  border: 1px solid var(--gray-200);
  border-left: 3px solid var(--accent);
  border-radius: var(--radius-sm);
  background: var(--gray-50);
  font-size: 15px;
  line-height: 1.6;
  color: var(--gray-700);
  text-align: left;
}

.status-tag {
  display: inline-block;
  margin-right: 8px;
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--accent);
}

/* Sections */

.section {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 40px;
  padding: 92px var(--gutter);
  background: var(--white);
}

.section-alt {
  background: var(--gray-50);
  border-top: 1px solid var(--gray-200);
  border-bottom: 1px solid var(--gray-200);
}

.section-body {
  display: flex;
  flex-direction: column;
  gap: 16px;
  max-width: 780px;
  width: 100%;
}

.section-body-center { text-align: center; align-items: center; }

.kicker {
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--gray-500);
}

.section-header {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 14px;
  text-align: center;
  max-width: 820px;
}

.section-header h2 { font-size: 38px; letter-spacing: -0.025em; }
.section-header p { font-size: 18px; line-height: 1.6; color: var(--gray-600); }

.statement { font-size: 19px; line-height: 1.6; color: var(--ink); }
.statement strong { color: var(--accent); font-weight: 700; }
.muted { color: var(--gray-500); }

/* 2. Where this is going — the spine, carries visual weight */

.vision { gap: 44px; }

.vision .section-header h2 { font-size: 42px; }

.target-diagram {
  width: 100%;
  max-width: 940px;
  height: auto;
  filter: drop-shadow(0 18px 40px rgba(10, 10, 10, 0.07));
}

.target-panel {
  width: 100%;
  max-width: 860px;
  padding: 34px 40px;
  border: 1px solid var(--gray-200);
  border-radius: var(--radius);
  background: var(--white);
}

.target-panel-lead {
  font-size: 13px;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--gray-500);
  margin-bottom: 18px;
}

.target-list {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.target-list li {
  position: relative;
  padding-left: 26px;
  font-size: 17px;
  line-height: 1.6;
  color: var(--gray-700);
}

.target-list li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 10px;
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--accent);
}

.target-list strong { color: var(--ink); font-weight: 700; }

.principle {
  max-width: 780px;
  text-align: center;
  font-size: 22px;
  line-height: 1.45;
  color: var(--gray-500);
}

.principle strong { color: var(--ink); font-weight: 700; }

.principle-note {
  max-width: 760px;
  text-align: center;
  font-size: 17px;
  line-height: 1.65;
  color: var(--gray-600);
}

.principle-note strong { color: var(--ink); font-weight: 700; }

/* 3. Runtime — horizontal walk-through strip */

.runtime-strip {
  list-style: none;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: center;
  gap: 10px 8px;
  max-width: var(--maxw);
  width: 100%;
}

.runtime-strip li {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 9px 14px 9px 9px;
  border: 1px solid var(--gray-200);
  border-radius: 999px;
  background: var(--white);
  font-size: 14px;
  font-weight: 600;
  color: var(--ink);
  white-space: nowrap;
}

.runtime-strip li:not(:last-child)::after {
  content: "→";
  margin-left: 6px;
  color: var(--gray-400);
  font-weight: 400;
}

.rn-num {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 22px;
  height: 22px;
  border-radius: 50%;
  background: var(--ink);
  color: var(--white);
  font-size: 12px;
  font-weight: 700;
}

/* Runtime — detailed step cards */

.runtime-steps {
  list-style: none;
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 18px;
  max-width: var(--maxw);
  width: 100%;
  counter-reset: none;
}

.runtime-step {
  display: flex;
  gap: 18px;
  padding: 24px 24px;
  border: 1px solid var(--gray-200);
  border-radius: var(--radius);
  background: var(--white);
}

.runtime-step-num {
  flex-shrink: 0;
  width: 34px;
  height: 34px;
  border-radius: 50%;
  background: var(--ink);
  color: var(--white);
  font-size: 15px;
  font-weight: 700;
  display: flex;
  align-items: center;
  justify-content: center;
}

.runtime-step-body { display: flex; flex-direction: column; gap: 8px; min-width: 0; }
.runtime-step-body h3 { font-size: 18px; font-weight: 600; }
.runtime-step-body p { font-size: 15px; line-height: 1.6; color: var(--gray-600); }

/* Load-bearing status-honesty callout */

.status-honesty {
  max-width: var(--maxw);
  width: 100%;
  padding: 20px 24px;
  border: 1px solid var(--gray-300);
  border-left: 3px solid var(--ink);
  border-radius: var(--radius-sm);
  background: var(--white);
  font-size: 16px;
  line-height: 1.65;
  color: var(--gray-700);
}

.status-honesty .status-tag { color: var(--ink); display: block; margin-bottom: 6px; }
.status-honesty .s-ok { color: var(--ok); font-weight: 700; }
.status-honesty .s-dev { color: var(--accent); font-weight: 700; }
.status-honesty a { color: var(--accent); font-weight: 600; }

/* 4. Where it applies */

.apply-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 20px;
  max-width: var(--maxw);
  width: 100%;
}

.apply-card {
  display: flex;
  flex-direction: column;
  gap: 10px;
  padding: 26px 24px;
  border-radius: var(--radius);
  background: var(--white);
  border: 1px solid var(--gray-200);
}

.apply-card h3 { font-size: 17px; font-weight: 600; line-height: 1.3; }
.apply-card p { font-size: 15px; line-height: 1.6; color: var(--gray-600); }

/* 5. Roadmap — three-way split */

.roadmap-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 20px;
  max-width: var(--maxw);
  width: 100%;
  align-items: start;
}

.roadmap-col {
  display: flex;
  flex-direction: column;
  gap: 16px;
  padding: 26px 24px;
  border-radius: var(--radius);
  background: var(--white);
  border: 1px solid var(--gray-200);
}

.roadmap-col--shipped { border-color: var(--ink); box-shadow: 0 1px 0 var(--ink); }

.roadmap-col h3 {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 8px;
  font-size: 15px;
  font-weight: 600;
  color: var(--gray-600);
}

.roadmap-col ul { list-style: none; display: flex; flex-direction: column; gap: 12px; }

.roadmap-col li {
  position: relative;
  padding-left: 18px;
  font-size: 14.5px;
  line-height: 1.55;
  color: var(--gray-700);
}

.roadmap-col li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 8px;
  width: 5px;
  height: 5px;
  background: var(--gray-400);
}

.roadmap-col--shipped li::before { background: var(--ok); }

/* 6. Problem block */

.problem-block {
  display: flex;
  flex-direction: column;
  gap: 18px;
  max-width: 820px;
  width: 100%;
}

.problem-block p { font-size: 17px; line-height: 1.65; color: var(--gray-700); }
.problem-block strong { color: var(--ink); font-weight: 700; }
.problem-block .aside { color: var(--gray-500); font-size: 14.5px; }

/* Data tables */

.table-caption {
  max-width: var(--maxw);
  width: 100%;
  font-size: 15px;
  font-weight: 700;
  color: var(--ink);
  letter-spacing: 0.01em;
}

.table-caption-note { font-weight: 400; color: var(--gray-500); }

.table-scroll {
  width: 100%;
  max-width: var(--maxw);
  min-width: 0;
  overflow-x: auto;
  border: 1px solid var(--gray-200);
  border-radius: var(--radius);
  background: var(--white);
  -webkit-overflow-scrolling: touch;
}

.data-table { width: 100%; min-width: 680px; border-collapse: collapse; font-size: 15px; }

.data-table thead th {
  text-align: left;
  vertical-align: bottom;
  padding: 16px 18px;
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--gray-600);
  background: var(--gray-50);
  border-bottom: 1px solid var(--gray-300);
}

.data-table .th-note {
  display: block;
  margin-top: 4px;
  font-size: 11px;
  font-weight: 500;
  letter-spacing: 0.01em;
  text-transform: none;
  color: var(--gray-600);
}

.data-table tbody th,
.data-table tbody td {
  padding: 16px 18px;
  vertical-align: top;
  line-height: 1.55;
  border-bottom: 1px solid var(--gray-200);
  color: var(--gray-700);
}

.data-table tbody tr:last-child th,
.data-table tbody tr:last-child td { border-bottom: none; }

.data-table tbody th { text-align: left; font-weight: 700; color: var(--ink); white-space: nowrap; }

.claim-table tbody td, .claim-table thead th { width: 33.33%; }

/* Status badges */

.badge {
  display: inline-block;
  padding: 3px 10px;
  border-radius: 999px;
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.02em;
  white-space: nowrap;
}

.badge-ok { background: #e7f3ec; color: var(--ok); border: 1px solid #bfe0cc; }
.badge-research { background: #eef1fb; color: var(--accent); border: 1px solid #cdd6f5; }
.badge-note { font-size: 12px; color: var(--gray-500); }

/* Research active line */

.research-active { font-size: 15.5px; line-height: 1.65; color: var(--gray-700); }
.research-active a { color: var(--accent); font-weight: 600; }

/* Inline text links (accent) */

.contact-secondary a,
.research-back a { color: var(--accent); font-weight: 600; }

/* /research page */

.research-head { align-items: center; gap: 36px; }

.research-head .section-header { max-width: 820px; }

.research-head h1 {
  font-size: 42px;
  font-weight: 800;
  letter-spacing: -0.03em;
  line-height: 1.08;
}

.research-stance {
  font-size: 18px;
  line-height: 1.6;
  color: var(--gray-600);
}

.research-stance strong { color: var(--ink); font-weight: 700; }

.summaries {
  display: flex;
  flex-direction: column;
  gap: 20px;
  max-width: 920px;
  width: 100%;
}

.summary {
  padding: 30px 32px;
  border: 1px solid var(--gray-200);
  border-radius: var(--radius);
  background: var(--white);
}

.summary h2 {
  font-size: 22px;
  font-weight: 700;
  letter-spacing: -0.02em;
  margin-bottom: 18px;
  padding-bottom: 16px;
  border-bottom: 1px solid var(--gray-200);
}

.summary-fields { display: flex; flex-direction: column; gap: 14px; }

.sf-row {
  display: grid;
  grid-template-columns: 180px 1fr;
  gap: 16px;
  align-items: baseline;
}

.sf-row dt {
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--gray-500);
  padding-top: 2px;
}

.sf-row dd {
  font-size: 15.5px;
  line-height: 1.62;
  color: var(--gray-700);
}

.research-back { font-size: 15px; }

/* 8. Contact */

.request { display: flex; justify-content: center; padding: 92px var(--gutter); background: var(--white); }

.request-inner {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 16px;
  text-align: center;
  max-width: 640px;
  width: 100%;
}

.request-inner h2 { font-size: 38px; letter-spacing: -0.025em; }
.request-inner > p { font-size: 18px; line-height: 1.6; color: var(--gray-600); }
.contact-secondary { margin-top: 4px; font-size: 14.5px; color: var(--gray-500); }

/* Footer */

.footer {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 32px;
  padding: 44px var(--gutter);
  background: var(--white);
  border-top: 1px solid var(--gray-200);
}

.footer-brand { display: flex; flex-direction: column; gap: 6px; }
.footer .logo-word { font-size: 18px; color: var(--ink); margin-bottom: 4px; }
.footer-tagline { font-size: 13.5px; color: var(--gray-500); }
.footer-links { display: flex; gap: 26px; }
.footer-links a { font-size: 13.5px; font-weight: 500; color: var(--gray-600); transition: color 0.15s ease; }
.footer-links a:hover { color: var(--ink); }

/* Responsive */

@media (max-width: 1200px) {
  :root { --gutter: 48px; }
  .apply-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .roadmap-grid { grid-template-columns: 1fr; }
}

@media (max-width: 900px) {
  .nav { padding: 16px 24px; }
  .nav-links { display: none; }
  :root { --gutter: 24px; }

  .hero { padding: 64px 24px 56px; }
  .hero h1 { font-size: 40px; }
  .hero-lead { font-size: 19px; }

  .section { padding: 64px 24px; }
  .section-header h2, .request-inner h2 { font-size: 28px; }
  .vision .section-header h2 { font-size: 30px; }

  .runtime-steps { grid-template-columns: 1fr; }
  .apply-grid { grid-template-columns: 1fr; }

  .research-head h1 { font-size: 30px; }
  .summary { padding: 24px 22px; }
  .sf-row { grid-template-columns: 1fr; gap: 4px; }
  .sf-row dt { padding-top: 0; }

  .target-panel { padding: 26px 22px; }
  .principle { font-size: 19px; }

  .footer { flex-direction: column; gap: 24px; padding: 40px 24px; }
}

@media (max-width: 600px) {
  .hero-ctas { flex-direction: column; width: 100%; }
  .hero-ctas .btn { width: 100%; text-align: center; }
  .data-table { font-size: 14px; min-width: 560px; }
  .target-list li { font-size: 16px; }
}

/* Reduced motion */

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  * { transition: none !important; }
}
