:root {
  --primary: #1bacac;
  --primary-dark: #118383;
  --secondary: #9662f6;
  --ink: #13202d;
  --muted: #99a0b0;
  --surface: #f8fcfa;
  --background: #f0f0f0;
  --panel: #ffffff;
  --line: #d9e2e4;
  --success: #64a70b;
  --info: #47bce8;
  --warning: #f5bd58;
  --appbar-bg: rgba(248, 252, 250, 0.9);
  --appbar-bg-elevated: rgba(248, 252, 250, 0.98);
  --appbar-border: rgba(217, 226, 228, 0.75);
  --nav-text: #424242;
  --button-secondary-bg: rgba(248, 252, 250, 0.85);
  --stat-bg: rgba(248, 252, 250, 0.78);
  --primary-soft: rgba(27, 172, 172, 0.1);
  --primary-panel: rgba(27, 172, 172, 0.12);
  --secondary-panel: rgba(150, 98, 246, 0.12);
  --shadow-1: 0 2px 4px -1px rgba(6, 24, 44, 0.2);
  --shadow-3: 0 30px 60px rgba(0, 0, 0, 0.12);
  --radius: 6px;
  color-scheme: light;
  font-family: "Public Sans", "Roboto", Arial, sans-serif;
}

@media (prefers-color-scheme: dark) {
  :root {
    --primary: #118383;
    --primary-dark: #1bacac;
    --secondary: #7c51cb;
    --ink: rgba(255, 255, 255, 0.7);
    --muted: rgba(255, 255, 255, 0.5);
    --surface: #121e2d;
    --background: #0e1824;
    --panel: #27272f;
    --line: #192a3f;
    --success: #2cb57e;
    --appbar-bg: rgba(18, 30, 45, 0.9);
    --appbar-bg-elevated: rgba(18, 30, 45, 0.98);
    --appbar-border: rgba(25, 42, 63, 0.85);
    --nav-text: rgba(255, 255, 255, 0.7);
    --button-secondary-bg: rgba(18, 30, 45, 0.85);
    --stat-bg: rgba(18, 30, 45, 0.78);
    --primary-soft: rgba(27, 172, 172, 0.16);
    --primary-panel: rgba(27, 172, 172, 0.18);
    --secondary-panel: rgba(124, 81, 203, 0.18);
    --shadow-1: 0 2px 4px -1px rgba(0, 0, 0, 0.35);
    --shadow-3: 0 30px 60px rgba(0, 0, 0, 0.32);
    color-scheme: dark;
  }
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
  background: var(--background);
}

body {
  margin: 0;
  background: var(--background);
  color: var(--ink);
  font-size: 16px;
  line-height: 1.5;
}

main {
  background: var(--background);
}

a {
  color: inherit;
  text-decoration: none;
}

.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

.appbar {
  position: sticky;
  top: 0;
  z-index: 30;
  min-height: 80px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  padding: 0 42px;
  background: var(--appbar-bg);
  border-bottom: 1px solid var(--appbar-border);
  backdrop-filter: blur(18px);
  transition: box-shadow 180ms ease, background 180ms ease;
}

.appbar[data-elevated="true"] {
  box-shadow: var(--shadow-1);
  background: var(--appbar-bg-elevated);
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 14px;
  min-width: 255px;
}

.brand-logo {
  width: 160px;
  height: 32px;
  display: block;
  flex: 0 0 auto;
}

.brand-logo img {
  width: 160px;
  height: 32px;
  display: block;
}

.brand small {
  display: block;
}

.brand small {
  padding-left: 14px;
  border-left: 1px solid var(--line);
  color: var(--muted);
  font-size: 0.72rem;
  white-space: nowrap;
}

.nav {
  display: flex;
  align-items: center;
  gap: 8px;
  color: var(--nav-text);
}

.nav a {
  min-height: 38px;
  display: inline-flex;
  align-items: center;
  padding: 0 14px;
  border-radius: var(--radius);
  font-size: 0.82rem;
  font-weight: 600;
}

.nav a:hover,
.nav a:focus-visible {
  background: var(--primary-soft);
  color: var(--primary-dark);
  outline: none;
}

.nav .nav-cta {
  background: var(--primary);
  color: white;
  box-shadow: var(--shadow-1);
}

.nav .nav-cta:hover,
.nav .nav-cta:focus-visible {
  background: var(--primary-dark);
  color: white;
}

.nav-toggle {
  display: none;
  width: 42px;
  height: 42px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--surface);
  cursor: pointer;
}

.nav-toggle span:not(.sr-only) {
  display: block;
  width: 18px;
  height: 2px;
  margin: 4px auto;
  background: var(--ink);
}

.section {
  width: min(1180px, calc(100% - 44px));
  margin: 0 auto;
  padding: 88px 0;
}

.hero {
  min-height: calc(100vh - 80px);
  display: grid;
  grid-template-columns: minmax(0, 0.9fr) minmax(520px, 1.1fr);
  align-items: center;
  gap: 44px;
  padding-top: 48px;
  padding-bottom: 46px;
}

.eyebrow {
  margin: 0 0 14px;
  color: var(--primary-dark);
  font-size: 0.78rem;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.08em;
}

h1,
h2,
h3,
p {
  margin-top: 0;
}

h1 {
  margin-bottom: 22px;
  font-size: clamp(3.1rem, 7vw, 5.75rem);
  line-height: 0.96;
  letter-spacing: 0;
}

h2 {
  margin-bottom: 18px;
  font-size: clamp(2rem, 4vw, 3.25rem);
  line-height: 1.06;
  letter-spacing: 0;
}

h3 {
  margin-bottom: 10px;
  font-size: 1.05rem;
}

.hero-lede,
.split p,
.impact-copy p,
.cta p {
  color: var(--muted);
  font-size: 1.08rem;
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin: 28px 0;
}

.button {
  min-height: 44px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0 20px;
  border-radius: var(--radius);
  font-weight: 800;
  font-size: 0.82rem;
  text-transform: uppercase;
  letter-spacing: 0.04em;
}

.button.primary {
  background: var(--primary);
  color: white;
  box-shadow: 0 18px 35px rgba(27, 172, 172, 0.25);
}

.button.primary:hover,
.button.primary:focus-visible {
  background: var(--primary-dark);
  outline: none;
}

.button.secondary {
  border: 1px solid var(--line);
  background: var(--button-secondary-bg);
}

.button.secondary:hover,
.button.secondary:focus-visible {
  border-color: var(--primary);
  color: var(--primary-dark);
  outline: none;
}

.hero-stats {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 10px;
  margin: 34px 0 0;
}

.hero-stats div {
  padding: 16px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--stat-bg);
}

.hero-stats dt {
  font-size: 1.25rem;
  font-weight: 900;
}

.hero-stats dd {
  margin: 4px 0 0;
  color: var(--muted);
  font-size: 0.78rem;
}

.workspace {
  overflow: hidden;
  border: 1px solid #192a3f;
  border-radius: var(--radius);
  background: #0e1824;
  box-shadow: var(--shadow-3);
}

.workspace-toolbar {
  height: 54px;
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 0 16px;
  color: rgba(255, 255, 255, 0.7);
  background: #121e2d;
  border-bottom: 1px solid #192a3f;
  font-size: 0.82rem;
}

.status-dot {
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background: var(--success);
  box-shadow: 0 0 0 5px rgba(100, 167, 11, 0.14);
}

.icon-button {
  margin-left: auto;
  width: 36px;
  height: 36px;
  border: 1px solid #192a3f;
  border-radius: var(--radius);
  background: rgba(27, 172, 172, 0.14);
  color: var(--primary);
  cursor: pointer;
}

.icon-button::before {
  content: "";
  display: block;
  width: 0;
  height: 0;
  margin: 0 auto;
  border-top: 7px solid transparent;
  border-bottom: 7px solid transparent;
  border-left: 11px solid currentColor;
  transform: translateX(1px);
}

.graph-stage {
  position: relative;
  min-height: 360px;
  background:
    linear-gradient(rgba(255, 255, 255, 0.045) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255, 255, 255, 0.045) 1px, transparent 1px),
    #0e1824;
  background-size: 28px 28px;
}

.links,
.wire {
  position: absolute;
  pointer-events: none;
}

.links {
  inset: 0;
}

.wire {
  height: 4px;
  border-radius: 99px;
  background-image: repeating-linear-gradient(90deg, rgba(71, 188, 232, 0.72) 0 9px, transparent 9px 20px);
  animation: wire-flow 1.5s linear infinite;
}

.wire::before,
.wire::after {
  content: "";
  position: absolute;
  top: -4px;
  width: 12px;
  height: 12px;
  border-radius: 50%;
  border: 2px solid rgba(71, 188, 232, 0.64);
  background: #0e1824;
}

.wire::before {
  left: -5px;
}

.wire::after {
  right: -5px;
}

.wire-a {
  left: 22%;
  top: 31%;
  width: 22%;
  transform: rotate(24deg);
}

.wire-b {
  left: 22%;
  top: 60%;
  width: 22%;
  transform: rotate(-25deg);
}

.wire-c {
  left: 47%;
  top: 50%;
  width: 10%;
}

.wire-d {
  left: 68%;
  top: 50%;
  width: 11%;
}

@keyframes wire-flow {
  to { background-position: 20px 0; }
}

.node {
  position: absolute;
  left: calc(var(--x) * 1%);
  top: calc(var(--y) * 8%);
  width: 150px;
  min-height: 92px;
  padding: 13px;
  border: 1px solid #192a3f;
  border-left: 4px solid var(--primary);
  border-radius: var(--radius);
  background: #121e2d;
  color: rgba(255, 255, 255, 0.82);
  box-shadow: 0 18px 35px rgba(0, 0, 0, 0.32);
}

.node.aggregator { border-left-color: var(--secondary); }
.node.output { border-left-color: var(--success); }
.node.custom { border-left-color: var(--warning); }

.node-kind {
  display: block;
  margin-bottom: 8px;
  color: rgba(255, 255, 255, 0.5);
  font-size: 0.7rem;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.08em;
}

.node strong,
.node small {
  display: block;
}

.node small {
  margin-top: 8px;
  color: rgba(255, 255, 255, 0.5);
  font-size: 0.75rem;
}

.strip {
  width: min(1180px, calc(100% - 44px));
  margin: 0 auto;
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 16px;
  padding: 0;
  background: transparent;
}

.strip-card {
  min-height: 112px;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 14px;
  padding: 18px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--surface);
  color: var(--muted);
  font-weight: 800;
  text-align: center;
  box-shadow: var(--shadow-1);
}

.strip-card-image {
  width: 34px;
  height: 34px;
  flex: 0 0 auto;
  object-fit: contain;
}

.strip-card span {
  display: block;
}

.strip-card > svg {
  width: 42px;
  height: 42px;
  flex: 0 0 auto;
  color: var(--secondary);
}

.strip-card > svg path,
.strip-card > svg circle {
  fill: none;
  stroke: currentColor;
  stroke-width: 3;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.split {
  display: grid;
  grid-template-columns: minmax(0, 0.75fr) minmax(0, 1.25fr);
  gap: 44px;
  align-items: start;
}

.steps {
  display: grid;
  gap: 14px;
}

.steps article,
.card,
.architecture-map article,
.component-columns > div,
.impact-grid article {
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--surface);
  box-shadow: var(--shadow-1);
}

.steps article {
  position: relative;
  padding: 22px 22px 22px 78px;
}

.steps span {
  position: absolute;
  left: 22px;
  top: 22px;
  width: 36px;
  height: 36px;
  display: grid;
  place-items: center;
  border-radius: var(--radius);
  background: var(--primary-panel);
  color: var(--primary-dark);
  font-weight: 900;
}

.steps p,
.card p,
.architecture-map p,
.component-columns p,
.impact-grid span {
  margin: 0;
  color: var(--muted);
  font-size: 0.93rem;
}

.section-heading {
  max-width: 760px;
  margin-bottom: 34px;
}

.cards {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 16px;
}

.card {
  padding: 22px;
  min-height: 230px;
}

.icon {
  position: relative;
  width: 42px;
  height: 42px;
  display: grid;
  place-items: center;
  margin-bottom: 20px;
  border-radius: var(--radius);
  background: var(--secondary-panel);
  color: var(--secondary);
}

.icon::before,
.icon::after {
  content: "";
  position: absolute;
  display: block;
}

.icon.shield::before {
  width: 20px;
  height: 24px;
  background: currentColor;
  clip-path: polygon(50% 0, 88% 14%, 82% 68%, 50% 100%, 18% 68%, 12% 14%);
}

.icon.lan::before {
  width: 22px;
  height: 16px;
  border: 2px solid currentColor;
  border-top: 0;
}

.icon.lan::after {
  width: 26px;
  height: 18px;
  border-top: 2px solid currentColor;
  border-left: 2px solid currentColor;
  border-right: 2px solid currentColor;
  transform: translateY(-4px);
}

.icon.server::before {
  width: 24px;
  height: 22px;
  border: 2px solid currentColor;
  box-shadow: inset 0 7px 0 rgba(150, 98, 246, 0.2);
}

.icon.server::after {
  width: 4px;
  height: 4px;
  right: 12px;
  bottom: 12px;
  border-radius: 50%;
  background: currentColor;
}

.icon.people::before {
  width: 9px;
  height: 9px;
  top: 10px;
  left: 12px;
  border-radius: 50%;
  background: currentColor;
  box-shadow: 12px 0 0 currentColor;
}

.icon.people::after {
  width: 28px;
  height: 12px;
  left: 7px;
  bottom: 9px;
  border-radius: 12px 12px 3px 3px;
  background: currentColor;
}

.icon.dashboard::before {
  width: 24px;
  height: 20px;
  border: 2px solid currentColor;
  box-shadow: inset 0 -8px 0 rgba(150, 98, 246, 0.2);
}

.icon.dashboard::after {
  width: 2px;
  height: 20px;
  background: currentColor;
  box-shadow: 8px 0 0 currentColor;
}

.icon.api::before {
  width: 24px;
  height: 2px;
  background: currentColor;
  box-shadow: 0 -8px 0 currentColor, 0 8px 0 currentColor;
}

.icon.api::after {
  width: 6px;
  height: 6px;
  left: 8px;
  top: 9px;
  border-radius: 50%;
  background: currentColor;
  box-shadow: 18px 8px 0 currentColor, 18px -8px 0 currentColor;
}

.icon.hub::before {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: currentColor;
  box-shadow: -12px 12px 0 currentColor, 12px 12px 0 currentColor;
}

.icon.hub::after {
  width: 28px;
  height: 18px;
  border-left: 2px solid currentColor;
  border-right: 2px solid currentColor;
  border-bottom: 2px solid currentColor;
  transform: translateY(4px);
}

.impact {
  display: grid;
  grid-template-columns: minmax(0, 0.9fr) minmax(0, 1.1fr);
  gap: 32px;
  align-items: center;
}

.impact-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 14px;
}

.impact-grid article {
  padding: 20px;
}

.impact-grid strong,
.impact-grid span {
  display: block;
}

.impact-grid strong {
  margin-bottom: 8px;
}

.architecture {
  width: 100%;
  max-width: none;
  padding-inline: max(22px, calc((100% - 1180px) / 2));
  background: #0e1824;
  color: rgba(255, 255, 255, 0.82);
}

.architecture .eyebrow {
  color: var(--primary);
}

.architecture h2 {
  color: white;
}

.architecture-map {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 16px;
}

.architecture-map article {
  padding: 24px;
  border-color: #192a3f;
  background: #121e2d;
  box-shadow: none;
}

.catalog {
  display: grid;
  grid-template-columns: minmax(0, 0.55fr) minmax(0, 1.45fr);
  gap: 40px;
}

.component-columns {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 16px;
}

.component-columns > div {
  padding: 20px;
}

.cta {
  max-width: none;
  width: 100%;
  padding-inline: max(22px, calc((100% - 900px) / 2));
  text-align: center;
  background: var(--surface);
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
}

.cta h2 {
  max-width: 850px;
  margin-inline: auto;
}

.cta p {
  max-width: 620px;
  margin-inline: auto;
}

.footer {
  min-height: 80px;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 0 42px;
  color: var(--muted);
  font-size: 0.82rem;
}

@media (max-width: 980px) {
  .appbar {
    padding: 0 22px;
  }

  .brand {
    min-width: 0;
  }

  .brand small {
    display: none;
  }

  .nav-toggle {
    display: block;
  }

  .nav {
    position: absolute;
    top: 80px;
    left: 0;
    right: 0;
    display: none;
    flex-direction: column;
    align-items: stretch;
    gap: 0;
    padding: 12px 22px 18px;
    border-bottom: 1px solid var(--line);
    background: var(--surface);
    box-shadow: var(--shadow-1);
  }

  .nav[data-open="true"] {
    display: flex;
  }

  .nav a {
    justify-content: center;
  }

  .hero,
  .split,
  .impact,
  .catalog {
    grid-template-columns: 1fr;
  }

  .hero {
    min-height: auto;
  }

  .workspace {
    min-width: 0;
  }

  .cards,
  .architecture-map,
  .component-columns {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (max-width: 680px) {
  .section {
    width: min(100% - 30px, 1180px);
    padding: 62px 0;
  }

  .hero {
    padding-top: 36px;
  }

  .hero-stats,
  .strip,
  .cards,
  .architecture-map,
  .component-columns,
  .impact-grid {
    grid-template-columns: 1fr;
  }

  .strip {
    width: min(100% - 30px, 1180px);
  }

  .strip-card {
    justify-content: flex-start;
    min-height: 88px;
    text-align: left;
  }

  .graph-stage {
    min-height: 460px;
  }

  .links {
    display: none;
  }

  .node {
    position: relative;
    left: auto;
    top: auto;
    width: calc(100% - 28px);
    margin: 14px;
  }

  .footer {
    padding: 20px 22px;
  }
}

@media (prefers-color-scheme: dark) {
  html,
  body,
  main {
    background: #0e1824;
    color: rgba(255, 255, 255, 0.7);
  }

  .appbar {
    background: rgba(18, 30, 45, 0.9);
    border-bottom-color: rgba(25, 42, 63, 0.85);
  }

  .appbar[data-elevated="true"] {
    background: rgba(18, 30, 45, 0.98);
  }

  .nav,
  .brand small {
    color: rgba(255, 255, 255, 0.7);
  }

  .nav-toggle,
  .strip-card,
  .steps article,
  .card,
  .component-columns > div,
  .impact-grid article,
  .cta {
    background: #121e2d;
    border-color: #192a3f;
  }

  .hero-stats div,
  .button.secondary {
    background: rgba(18, 30, 45, 0.78);
    border-color: #192a3f;
  }

  .hero-lede,
  .split p,
  .impact-copy p,
  .cta p,
  .hero-stats dd,
  .steps p,
  .card p,
  .component-columns p,
  .impact-grid span,
  .footer {
    color: rgba(255, 255, 255, 0.5);
  }
}

