:root {
  color-scheme: light;
  --bg: #f5f7fa;
  --panel: #ffffff;
  --panel-soft: #eef4f1;
  --ink: #17202a;
  --muted: #5f6d78;
  --line: rgba(23, 32, 42, .13);
  --accent: #23745f;
  --accent-strong: #153f58;
  --shadow: 0 18px 55px rgba(22, 30, 42, .10);
  --radius: 8px;
}
* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  font: 16px/1.6 Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  color: var(--ink);
  background: var(--bg);
}
a { color: inherit; }
.skip-link { position: absolute; left: -999px; top: .5rem; }
.skip-link:focus { left: .5rem; z-index: 5; background: var(--panel); padding: .5rem .75rem; }
.gateway-header {
  position: sticky;
  top: 0;
  z-index: 3;
  background: rgba(245, 247, 250, .92);
  backdrop-filter: blur(14px);
  border-bottom: 1px solid var(--line);
}
.header-inner, .gateway-footer {
  width: min(100% - 2rem, 1180px);
  margin: 0 auto;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 1rem;
  padding: 1rem 0;
}
.brand { display: inline-flex; align-items: center; gap: .7rem; text-decoration: none; }
.brand img { width: 38px; height: 38px; }
.brand strong, .brand small { display: block; }
.brand small, .gateway-footer span, .muted { color: var(--muted); }
nav { display: flex; gap: .45rem; flex-wrap: wrap; justify-content: flex-end; }
nav a, .btn, button {
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: .65rem .9rem;
  background: rgba(255, 255, 255, .55);
  text-decoration: none;
  font-weight: 700;
  cursor: pointer;
}
nav a:hover, .btn:hover, button:hover { border-color: rgba(35, 116, 95, .45); background: var(--panel); }
.btn-primary { background: var(--ink); color: white; border-color: var(--ink); }
main { width: min(100% - 2rem, 1180px); margin: 0 auto; }
.hero {
  min-height: 72svh;
  display: grid;
  align-content: center;
  gap: 1.25rem;
  padding: 4rem 0 2rem;
}
.eyebrow { margin: 0; color: var(--accent-strong); text-transform: uppercase; letter-spacing: 0; font-size: .82rem; font-weight: 800; }
h1, h2, h3, p { margin-top: 0; }
h1 { font-size: 5.6rem; line-height: .94; max-width: 10.5ch; margin-bottom: 0; letter-spacing: 0; }
h2 { font-size: 2rem; line-height: 1.15; letter-spacing: 0; }
.lead { font-size: 1.24rem; max-width: 760px; color: var(--muted); }
.trust { max-width: 760px; padding: 1rem 1.1rem; border-left: 4px solid var(--accent); background: rgba(255, 255, 255, .55); }
.actions { display: flex; flex-wrap: wrap; gap: .75rem; }
.section { padding: clamp(2.6rem, 7vw, 5rem) 0; border-top: 1px solid var(--line); }
.section-head { max-width: 760px; margin-bottom: 1.5rem; }
.grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 1rem; }
.card, .flow-step, .code-card {
  background: var(--panel);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  padding: 1.1rem;
}
.flow-step:nth-child(2) { background: var(--panel-soft); }
.card h3, .flow-step h3 { font-size: 1.02rem; margin-bottom: .35rem; }
.card p, .flow-step p { color: var(--muted); margin-bottom: 0; }
.flow { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: .75rem; }
.flow-step { min-height: 9rem; }
.code-grid { display: grid; gap: 1rem; }
.code-card { box-shadow: none; }
.code-head { display: flex; justify-content: space-between; align-items: center; gap: 1rem; margin-bottom: .75rem; }
pre {
  margin: 0;
  overflow: auto;
  white-space: pre-wrap;
  word-break: break-word;
  border-radius: var(--radius);
  background: #101820;
  color: #e8f2ed;
  padding: 1rem;
  font-size: .92rem;
}
.footer-links { display: flex; flex-wrap: wrap; gap: .5rem; }
@media (max-width: 820px) {
  .header-inner, .gateway-footer { align-items: flex-start; flex-direction: column; }
  nav { justify-content: flex-start; }
  .grid, .flow { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  h1 { font-size: 4.1rem; }
}
@media (max-width: 560px) {
  body { overflow-x: hidden; }
  main, .header-inner, .gateway-footer { width: min(100% - 1rem, 1180px); }
  .hero { min-height: 0; padding: 2.6rem 0 2rem; }
  h1 { font-size: 3.05rem; line-height: .98; }
  h2 { font-size: 1.55rem; }
  .lead { font-size: 1.05rem; }
  .grid, .flow { grid-template-columns: 1fr; }
  .actions .btn, nav a { width: 100%; text-align: center; }
  .code-head { align-items: stretch; flex-direction: column; }
}
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
}

/* === Neumann ecosystem dark harmonisation (overrides legacy light values) === */
.btn, button { background: rgba(143, 178, 199, .06); color: var(--ink); }
.btn:hover, button:hover { border-color: rgba(232, 116, 54, .45); background: rgba(143, 178, 199, .12); }
.btn-primary, .btn-primary:hover { background: var(--accent); color: #190d05; border-color: transparent; }
.btn-primary:hover { box-shadow: 0 0 26px rgba(232, 116, 54, .22); }
.trust { background: rgba(143, 178, 199, .05); border-left-color: var(--accent); }
