:root {
  color-scheme: light;
  --bg: #f5fbfa;
  --bg-strong: #e8f5f3;
  --surface: #ffffff;
  --surface-soft: #f7fbfb;
  --ink: #07151f;
  --muted: #526675;
  --quiet: #7f929d;
  --line: #d8e5e4;
  --line-strong: #b7ccca;
  --teal: #0f8a86;
  --teal-dark: #096361;
  --blue: #1b5f93;
  --aqua: #bceee7;
  --amber: #d59b2d;
  --danger: #9f3d35;
  --shadow: 0 24px 70px rgba(16, 51, 60, 0.14);
  --radius: 8px;
  --max: 1280px;
  --header-height: 76px;
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  background: var(--bg);
  color: var(--ink);
  font-size: 16px;
  line-height: 1.5;
}

body::before {
  position: fixed;
  inset: 0;
  z-index: -1;
  pointer-events: none;
  content: "";
  background:
    linear-gradient(110deg, rgba(188, 238, 231, 0.34), transparent 38%),
    linear-gradient(180deg, #ffffff 0%, var(--bg) 52%, #eef7f6 100%);
}

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

img {
  display: block;
  max-width: 100%;
}

button,
input,
select,
textarea {
  font: inherit;
}

.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  display: grid;
  grid-template-columns: auto 1fr auto;
  align-items: center;
  gap: 28px;
  height: var(--header-height);
  padding: 0 clamp(18px, 4vw, 56px);
  border-bottom: 1px solid rgba(216, 229, 228, 0.82);
  background: rgba(246, 251, 250, 0.88);
  backdrop-filter: blur(18px);
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  color: var(--ink);
  font-size: 1rem;
  font-weight: 760;
  letter-spacing: 0;
}

.brand-mark {
  display: grid;
  grid-template-columns: repeat(3, 8px);
  align-items: end;
  gap: 3px;
  width: 34px;
  height: 34px;
  padding: 7px 5px;
  border: 1px solid var(--line-strong);
  border-radius: 8px;
  background: #fff;
  box-shadow: 0 8px 24px rgba(13, 70, 73, 0.11);
}

.brand-mark span {
  width: 8px;
  border-radius: 3px;
  background: var(--teal);
}

.brand-mark span:nth-child(1) {
  height: 10px;
  background: var(--blue);
}

.brand-mark span:nth-child(2) {
  height: 16px;
}

.brand-mark span:nth-child(3) {
  height: 7px;
  background: var(--amber);
}

.nav-links {
  justify-self: center;
  display: flex;
  align-items: center;
  gap: 26px;
  color: #354a57;
  font-size: 0.9rem;
  font-weight: 660;
}

.nav-links a {
  padding: 10px 0;
}

.nav-links a:hover,
.nav-links a:focus-visible {
  color: var(--teal-dark);
}

.header-cta {
  display: inline-flex;
  min-height: 42px;
  align-items: center;
  justify-content: center;
  padding: 0 17px;
  border: 1px solid var(--ink);
  border-radius: 8px;
  background: var(--ink);
  color: #fff;
  font-size: 0.88rem;
  font-weight: 740;
}

.section-shell {
  width: min(var(--max), calc(100% - 40px));
  margin: 0 auto;
}

.section-shell.compact {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(340px, 0.78fr);
  gap: 68px;
  align-items: start;
}

.hero-section {
  display: grid;
  grid-template-columns: minmax(0, 0.92fr) minmax(480px, 1fr);
  align-items: center;
  gap: clamp(36px, 5vw, 76px);
  padding: 58px 0 48px;
}

.hero-copy h1 {
  margin: 0;
  color: var(--ink);
  font-size: clamp(4.1rem, 7vw, 6.4rem);
  line-height: 0.86;
  font-weight: 840;
  letter-spacing: 0;
}

.hero-lede {
  max-width: 690px;
  margin: 28px 0 0;
  color: #102d3a;
  font-size: clamp(2rem, 3.5vw, 3.35rem);
  line-height: 1;
  font-weight: 780;
  letter-spacing: 0;
}

.hero-body {
  max-width: 620px;
  margin: 24px 0 0;
  color: var(--muted);
  font-size: 1.15rem;
  line-height: 1.65;
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 14px;
  margin-top: 36px;
}

.button {
  display: inline-flex;
  min-height: 52px;
  align-items: center;
  justify-content: center;
  padding: 0 22px;
  border-radius: 8px;
  font-size: 0.94rem;
  font-weight: 760;
  letter-spacing: 0;
  transition: transform 160ms ease, border-color 160ms ease, background 160ms ease;
}

.button:hover {
  transform: translateY(-1px);
}

.button.primary {
  border: 1px solid var(--teal-dark);
  background: var(--teal-dark);
  color: #fff;
  box-shadow: 0 16px 36px rgba(9, 99, 97, 0.24);
}

.button.secondary {
  border: 1px solid var(--line-strong);
  background: rgba(255, 255, 255, 0.74);
  color: var(--ink);
}

.button.full {
  width: 100%;
}

.hero-visual {
  min-width: 0;
}

.boundary-map {
  position: relative;
  overflow: hidden;
  padding: 16px;
  border: 1px solid var(--line-strong);
  border-radius: 8px;
  background:
    linear-gradient(140deg, rgba(255, 255, 255, 0.92), rgba(233, 247, 246, 0.86)),
    repeating-linear-gradient(0deg, transparent 0, transparent 39px, rgba(15, 99, 97, 0.06) 40px),
    repeating-linear-gradient(90deg, transparent 0, transparent 39px, rgba(15, 99, 97, 0.06) 40px);
  box-shadow: var(--shadow);
}

.boundary-map::after {
  position: absolute;
  inset: 78px 28px 128px;
  content: "";
  border: 1px dashed rgba(15, 138, 134, 0.38);
  border-radius: 8px;
  pointer-events: none;
}

.map-header {
  position: relative;
  z-index: 1;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
  padding: 18px 18px 16px;
  border: 1px solid rgba(216, 229, 228, 0.92);
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.86);
}

.map-header span {
  color: var(--teal-dark);
  font-size: 0.76rem;
  font-weight: 820;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.map-header strong {
  color: #142d39;
  font-size: 0.95rem;
}

.map-grid {
  position: relative;
  z-index: 1;
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 16px;
  padding: 22px 8px 16px;
}

.map-grid::before,
.map-grid::after {
  position: absolute;
  content: "";
  background: rgba(11, 110, 107, 0.24);
  pointer-events: none;
}

.map-grid::before {
  top: 50%;
  right: 8%;
  left: 8%;
  height: 1px;
}

.map-grid::after {
  top: 16%;
  bottom: 16%;
  left: 50%;
  width: 1px;
}

.map-node {
  position: relative;
  z-index: 1;
  min-height: 142px;
  padding: 17px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.92);
}

.map-node::before {
  display: block;
  width: 32px;
  height: 5px;
  margin-bottom: 14px;
  border-radius: 4px;
  content: "";
  background: var(--teal);
}

.map-node.private::before {
  background: var(--blue);
}

.map-node.team::before {
  background: #19865c;
}

.map-node.gateway::before {
  background: var(--amber);
}

.node-label {
  display: block;
  color: var(--quiet);
  font-size: 0.74rem;
  font-weight: 820;
  letter-spacing: 0.06em;
  text-transform: uppercase;
}

.map-node strong {
  display: block;
  margin-top: 8px;
  color: #102d3a;
  font-size: 1.08rem;
  line-height: 1.2;
}

.map-node small {
  display: block;
  margin-top: 9px;
  color: var(--muted);
  font-size: 0.86rem;
  line-height: 1.45;
}

.answer-card {
  position: relative;
  z-index: 1;
  margin: 2px 10px 0;
  padding: 16px;
  border: 1px solid rgba(9, 99, 97, 0.35);
  border-radius: 8px;
  background: #07151f;
  color: #fff;
}

.answer-card span {
  color: #92dcd6;
  font-size: 0.72rem;
  font-weight: 820;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.answer-card p {
  margin: 8px 0 12px;
  font-size: 1rem;
  font-weight: 720;
}

.answer-sources {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.answer-sources span {
  padding: 7px 9px;
  border: 1px solid rgba(146, 220, 214, 0.28);
  border-radius: 8px;
  color: #dff8f5;
  font-size: 0.72rem;
  letter-spacing: 0;
  text-transform: none;
}

.problem-band {
  padding: 82px 0;
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
  background: rgba(255, 255, 255, 0.7);
}

h2 {
  margin: 0;
  color: #0b2230;
  font-size: clamp(2.05rem, 4vw, 4.1rem);
  line-height: 1;
  font-weight: 800;
  letter-spacing: 0;
}

h3 {
  margin: 0;
  color: #102d3a;
  font-size: 1.08rem;
  line-height: 1.25;
}

.problem-band p,
.section-intro p {
  margin: 20px 0 0;
  color: var(--muted);
  font-size: 1.08rem;
  line-height: 1.7;
}

.split-list {
  display: grid;
  gap: 18px;
}

.split-list div {
  padding: 22px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #fff;
}

.split-list span {
  display: block;
  color: #102d3a;
  font-weight: 800;
}

.split-list p {
  margin-top: 8px;
  font-size: 0.98rem;
}

.product-section,
.architecture-section {
  padding: 108px 0;
}

.section-intro {
  max-width: 840px;
  margin: 0 auto 44px;
  text-align: center;
}

.section-intro.align-left {
  margin-right: 0;
  margin-left: 0;
  text-align: left;
}

.broker-layout {
  display: grid;
  grid-template-columns: 330px minmax(0, 1fr);
  gap: 20px;
  align-items: stretch;
}

.source-rail {
  display: grid;
  gap: 12px;
  align-content: start;
}

.source-tab {
  min-height: 112px;
  padding: 18px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.78);
  color: var(--muted);
  text-align: left;
  cursor: pointer;
}

.source-tab span {
  display: block;
  color: #183440;
  font-size: 0.98rem;
  font-weight: 780;
}

.source-tab small {
  display: block;
  margin-top: 9px;
  font-size: 0.84rem;
  line-height: 1.45;
}

.source-tab.active {
  border-color: rgba(9, 99, 97, 0.54);
  background: #fff;
  box-shadow: 0 18px 42px rgba(16, 51, 60, 0.1);
}

.broker-panel {
  min-height: 486px;
  padding: 24px;
  border: 1px solid var(--line-strong);
  border-radius: 8px;
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.94), rgba(246, 251, 250, 0.92)),
    repeating-linear-gradient(90deg, transparent 0, transparent 43px, rgba(15, 99, 97, 0.04) 44px);
  box-shadow: var(--shadow);
}

.question-row {
  display: grid;
  gap: 10px;
  padding: 20px;
  border: 1px solid rgba(216, 229, 228, 0.9);
  border-radius: 8px;
  background: #07151f;
  color: #fff;
}

.question-row span {
  color: #92dcd6;
  font-size: 0.72rem;
  font-weight: 820;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.question-row strong {
  font-size: 1.18rem;
  line-height: 1.35;
}

.answer-stack {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 14px;
  margin-top: 18px;
}

.answer-piece {
  min-height: 260px;
  padding: 20px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.84);
  opacity: 0.72;
  transition: opacity 160ms ease, transform 160ms ease, border-color 160ms ease;
}

.answer-piece.selected {
  border-color: rgba(9, 99, 97, 0.42);
  opacity: 1;
  transform: translateY(-2px);
}

.answer-piece span {
  color: var(--teal-dark);
  font-size: 0.76rem;
  font-weight: 820;
  letter-spacing: 0.07em;
  text-transform: uppercase;
}

.answer-piece p {
  margin: 16px 0 0;
  color: var(--muted);
  line-height: 1.65;
}

code {
  color: #143f54;
  font-family: "SFMono-Regular", Consolas, "Liberation Mono", monospace;
  font-size: 0.86em;
  font-weight: 700;
}

.clean-section {
  padding: 106px 0;
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
  background: #fff;
}

.pipeline {
  display: grid;
  grid-template-columns: repeat(5, minmax(0, 1fr));
  gap: 0;
  margin-top: 46px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #fff;
  overflow: hidden;
}

.pipeline article {
  position: relative;
  min-height: 270px;
  padding: 24px 20px;
  border-right: 1px solid var(--line);
}

.pipeline article:last-child {
  border-right: 0;
}

.pipeline article::after {
  position: absolute;
  top: 31px;
  right: -7px;
  z-index: 2;
  width: 14px;
  height: 14px;
  border-top: 1px solid var(--line);
  border-right: 1px solid var(--line);
  background: #fff;
  content: "";
  transform: rotate(45deg);
}

.pipeline article:last-child::after {
  content: none;
}

.pipeline span {
  display: inline-flex;
  min-width: 34px;
  height: 26px;
  align-items: center;
  justify-content: center;
  border: 1px solid rgba(15, 138, 134, 0.25);
  border-radius: 8px;
  background: #edf9f7;
  color: var(--teal-dark);
  font-size: 0.76rem;
  font-weight: 840;
}

.pipeline h3 {
  margin-top: 22px;
}

.pipeline p {
  margin: 13px 0 0;
  color: var(--muted);
  font-size: 0.93rem;
}

.evidence-layout {
  display: grid;
  grid-template-columns: minmax(0, 1.15fr) minmax(280px, 0.85fr);
  gap: 20px;
  margin-top: 22px;
}

.evidence-panel,
.never-panel {
  padding: 26px;
  border: 1px solid var(--line);
  border-radius: 8px;
}

.evidence-panel {
  background: var(--surface-soft);
}

.never-panel {
  background: #102d3a;
  color: #e8fbf8;
}

.never-panel h3 {
  color: #fff;
}

.never-panel p {
  color: #b7d2d6;
}

.evidence-panel ul {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 10px 24px;
  margin: 18px 0 0;
  padding: 0;
  list-style: none;
}

.evidence-panel li {
  position: relative;
  padding-left: 18px;
  color: var(--muted);
}

.evidence-panel li::before {
  position: absolute;
  top: 0.62em;
  left: 0;
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: var(--teal);
  content: "";
}

.asset-strip {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 18px;
  width: min(1320px, calc(100% - 40px));
  margin: 84px auto 0;
}

.diagram-card {
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #fff;
  box-shadow: 0 18px 54px rgba(16, 51, 60, 0.11);
}

.diagram-card img {
  width: 100%;
  height: 100%;
  min-height: 280px;
  object-fit: cover;
}

.architecture-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 16px;
  margin-top: 42px;
}

.architecture-grid article {
  min-height: 250px;
  padding: 22px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.86);
}

.architecture-grid article::before {
  display: block;
  width: 38px;
  height: 5px;
  margin-bottom: 22px;
  border-radius: 4px;
  background: var(--teal);
  content: "";
}

.architecture-grid article:nth-child(2)::before {
  background: var(--blue);
}

.architecture-grid article:nth-child(3)::before {
  background: var(--amber);
}

.architecture-grid article:nth-child(4)::before {
  background: #19865c;
}

.architecture-grid p {
  margin: 14px 0 0;
  color: var(--muted);
  font-size: 0.94rem;
}

.architecture-visuals {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 18px;
  margin-top: 18px;
}

.architecture-visuals img {
  overflow: hidden;
  width: 100%;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #fff;
  box-shadow: 0 18px 54px rgba(16, 51, 60, 0.11);
}

.roadmap-section {
  padding: 108px 0;
  border-top: 1px solid var(--line);
  background:
    linear-gradient(180deg, #eef7f6, #ffffff 82%),
    var(--bg);
}

.roadmap-layout {
  display: grid;
  grid-template-columns: minmax(0, 0.95fr) minmax(380px, 0.72fr);
  gap: 56px;
  align-items: start;
}

.roadmap-list {
  display: grid;
  gap: 18px;
  margin: 34px 0 0;
  padding: 0;
  list-style: none;
  counter-reset: roadmap;
}

.roadmap-list li {
  position: relative;
  min-height: 92px;
  padding: 20px 20px 20px 76px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.82);
  color: var(--muted);
}

.roadmap-list li::before {
  position: absolute;
  top: 20px;
  left: 20px;
  display: grid;
  width: 36px;
  height: 36px;
  place-items: center;
  border-radius: 8px;
  background: var(--ink);
  color: #fff;
  content: counter(roadmap, decimal-leading-zero);
  counter-increment: roadmap;
  font-size: 0.75rem;
  font-weight: 820;
}

.roadmap-list span {
  display: block;
  margin-bottom: 4px;
  color: #102d3a;
  font-weight: 800;
}

.preview-form {
  padding: 28px;
  border: 1px solid var(--line-strong);
  border-radius: 8px;
  background: #fff;
  box-shadow: var(--shadow);
}

.preview-form h2 {
  font-size: clamp(1.8rem, 3vw, 2.6rem);
}

.preview-form p {
  margin: 12px 0 22px;
  color: var(--muted);
}

.preview-form label {
  display: grid;
  gap: 8px;
  margin-top: 16px;
}

.preview-form label span {
  color: #183440;
  font-size: 0.82rem;
  font-weight: 760;
}

.preview-form input,
.preview-form select,
.preview-form textarea {
  width: 100%;
  min-height: 48px;
  padding: 12px 13px;
  border: 1px solid var(--line-strong);
  border-radius: 8px;
  background: #fbfefe;
  color: var(--ink);
  font-size: 0.95rem;
}

.preview-form textarea {
  resize: vertical;
}

.preview-form .button {
  margin-top: 20px;
}

.form-status {
  min-height: 24px;
  margin-bottom: 0;
  color: var(--teal-dark);
  font-size: 0.9rem;
  font-weight: 700;
}

.site-footer {
  padding: 34px 0;
  border-top: 1px solid var(--line);
  background: #07151f;
  color: #d9eeec;
}

.footer-layout {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
}

.site-footer .brand {
  color: #fff;
}

.site-footer p {
  margin: 0;
  color: #a8c3c8;
}

.site-footer a:last-child {
  color: #92dcd6;
  font-weight: 760;
}

@media (max-width: 1060px) {
  .hero-section,
  .section-shell.compact,
  .broker-layout,
  .roadmap-layout {
    grid-template-columns: 1fr;
  }

  .hero-section {
    padding-top: 52px;
  }

  .hero-visual {
    max-width: 720px;
  }

  .pipeline,
  .architecture-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .pipeline article:nth-child(2n) {
    border-right: 0;
  }

  .pipeline article::after {
    content: none;
  }
}

@media (max-width: 760px) {
  :root {
    --header-height: 66px;
  }

  .site-header {
    grid-template-columns: auto auto;
    gap: 14px;
    padding: 0 18px;
  }

  .nav-links {
    display: none;
  }

  .header-cta {
    min-height: 38px;
    padding: 0 12px;
    font-size: 0.8rem;
  }

  .section-shell {
    width: min(100% - 28px, var(--max));
  }

  .hero-section {
    min-height: auto;
    padding: 48px 0 34px;
  }

  .hero-copy h1 {
    font-size: 4.3rem;
  }

  .hero-lede {
    font-size: 2.15rem;
  }

  .hero-body,
  .problem-band p,
  .section-intro p {
    font-size: 1rem;
  }

  .map-grid,
  .answer-stack,
  .evidence-layout,
  .asset-strip,
  .architecture-visuals,
  .pipeline,
  .architecture-grid,
  .evidence-panel ul {
    grid-template-columns: 1fr;
  }

  .hero-visual {
    display: none;
  }

  .hero-actions,
  .footer-layout {
    align-items: stretch;
    flex-direction: column;
  }

  .button {
    width: 100%;
  }

  .map-grid::before,
  .map-grid::after,
  .boundary-map::after {
    content: none;
  }

  .map-node,
  .answer-piece,
  .pipeline article,
  .architecture-grid article {
    min-height: auto;
  }

  .product-section,
  .clean-section,
  .architecture-section,
  .roadmap-section,
  .problem-band {
    padding: 72px 0;
  }

  .source-tab {
    min-height: auto;
  }

  .broker-panel,
  .preview-form {
    padding: 18px;
  }

  .site-footer p {
    max-width: 280px;
  }
}

@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    scroll-behavior: auto !important;
    transition-duration: 0.001ms !important;
    animation-duration: 0.001ms !important;
    animation-iteration-count: 1 !important;
  }
}
