:root {
  color-scheme: dark;
  --bg: #020504;
  --bg-soft: #06100d;
  --panel: rgba(16, 22, 21, 0.86);
  --panel-strong: rgba(20, 27, 25, 0.94);
  --border: rgba(116, 255, 151, 0.16);
  --border-soft: rgba(255, 255, 255, 0.1);
  --text: #f5f7f6;
  --muted: #bfc7d1;
  --dim: #8a949f;
  --green: #35c760;
  --green-bright: #48f47b;
  --teal: #17d8c4;
  --yellow: #d8b93d;
  --red: #ff5c64;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  font-family: Inter, "Segoe UI", Arial, sans-serif;
  color: var(--text);
  background:
    radial-gradient(circle at 25% 8%, rgba(45, 190, 86, 0.1), transparent 34rem),
    linear-gradient(180deg, #000 0%, var(--bg) 38%, #000 100%);
  min-height: 100vh;
  letter-spacing: 0;
  overflow-x: hidden;
}

body::before {
  content: "";
  position: fixed;
  inset: 0;
  pointer-events: none;
  z-index: -1;
  background-image:
    linear-gradient(rgba(69, 255, 127, 0.02) 1px, transparent 1px),
    linear-gradient(90deg, rgba(69, 255, 127, 0.018) 1px, transparent 1px);
  background-size: 80px 80px;
  mask-image: linear-gradient(to bottom, #000, transparent 62%);
}

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

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

button,
input {
  font: inherit;
}

main {
  overflow: hidden;
}

.site-shell {
  width: min(100%, var(--layout-shell));
  margin: 0 auto;
  overflow: hidden;
}

.topbar {
  position: sticky;
  top: 0;
  z-index: 20;
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  align-items: center;
  gap: var(--gap-lg);
  padding: var(--space-7) 0 var(--space-4);
  transition: background 0.25s ease, backdrop-filter 0.25s ease, padding 0.25s ease;
}

.topbar.is-scrolled {
  padding-top: var(--space-3);
  background: rgba(2, 5, 4, 0.72);
  backdrop-filter: blur(18px);
}

.brand {
  display: inline-flex;
  align-items: center;
  width: fit-content;
  white-space: nowrap;
}

.brand img {
  width: 176px;
  height: auto;
}

.brand-mark {
  display: grid;
  place-items: center;
  width: 30px;
  height: 30px;
  color: #001b09;
  background: linear-gradient(135deg, var(--green-bright), var(--green));
  border-radius: var(--radius-md) 0 var(--radius-md) 0;
  font-weight: 900;
  transform: skew(-9deg);
}

.site-nav {
  display: flex;
  align-items: center;
  gap: var(--space-9);
  font-size: 13px;
  font-weight: 650;
  color: #d7ded9;
}

.site-nav a {
  transition: color 0.2s ease;
}

.site-nav a:hover {
  color: var(--green-bright);
}

.topbar-cta {
  justify-self: end;
  padding: var(--space-3) var(--space-5);
  background: linear-gradient(135deg, #48d56a, #219c44);
  color: #001b09;
  border-radius: var(--radius-sm);
  font-size: 12px;
  font-weight: 800;
  box-shadow: var(--shadow-soft);
}

.topbar-actions {
  justify-self: end;
  display: inline-flex;
  align-items: center;
  gap: var(--gap-sm);
}

.language-switcher {
  display: inline-flex;
}

.language-switcher select {
  height: 38px;
  border: var(--surface-border);
  border-radius: var(--radius-sm);
  background: rgba(255, 255, 255, 0.04);
  color: var(--text);
  padding: 0 var(--space-3);
  font-size: 12px;
  font-weight: 800;
}

.language-switcher option {
  background: #050807;
  color: var(--text);
}

.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;
}

.nav-toggle {
  display: none;
  justify-self: end;
  width: 42px;
  height: 42px;
  border: var(--surface-border);
  border-radius: var(--radius-sm);
  background: rgba(255, 255, 255, 0.04);
  padding: var(--space-2);
}

.nav-toggle span {
  display: block;
  height: 2px;
  margin: var(--space-1) 0;
  background: var(--text);
}

.hero {
    display: grid;
    grid-template-columns: minmax(0, 0.92fr) minmax(560px, 1.08fr);
    align-items: center;
    gap: var(--gap-2xl);
    padding: var(--hero-y) 0 var(--space-8);
    height: calc(100vh - 107px);
}

.eyebrow {
  color: var(--green-bright);
  font-size: 13px;
  font-weight: 800;
  text-transform: uppercase;
}

.hero h1 {
  max-width: 620px;
  margin: var(--space-5) 0;
  font-size: clamp(48px, 7vw, 84px);
  line-height: 0.98;
  letter-spacing: 0;
}

.hero h1 span {
  display: block;
  color: var(--green);
}

.hero-copy {
  max-width: 560px;
  color: #d5ddd8;
  font-size: 17px;
  line-height: 1.75;
}

.value-row {
  display: flex;
  flex-wrap: wrap;
  gap: var(--space-7);
  margin-top: var(--space-8);
  color: #e8efeb;
  font-weight: 700;
}

.value-row span {
  display: inline-flex;
  align-items: center;
  gap: var(--space-2);
}

.value-row i {
  display: grid;
  place-items: center;
  width: 24px;
  height: 24px;
  border: var(--surface-border);
  border-color: rgba(72, 244, 123, 0.28);
  border-radius: var(--radius-sm);
  color: var(--green-bright);
  font-size: 12px;
  background: rgba(53, 199, 96, 0.08);
}

.value-row em {
  font-style: normal;
}

.hero-actions,
.cta-actions {
  display: flex;
  flex-wrap: wrap;
  gap: var(--gap-md);
  margin-top: var(--space-9);
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: var(--gap-sm);
  min-height: var(--button-height);
  padding: 0 var(--pad-xl);
  border-radius: var(--radius-md);
  border: var(--border-width) solid transparent;
  font-weight: 800;
  font-size: 14px;
}

.btn-primary {
  color: #031607;
  background: linear-gradient(135deg, #5ff083, #21a549);
  box-shadow: var(--shadow-soft);
}

.btn-secondary {
  border-color: rgba(255, 255, 255, 0.18);
  background: rgba(255, 255, 255, 0.03);
  color: #fff;
}

.trust-row {
  display: flex;
  align-items: center;
  gap: var(--gap-lg);
  margin-top: var(--space-11);
}

.trust-row strong {
  font-size: 13px;
}

.trust-row p {
  margin: var(--space-1) 0 0;
  color: var(--muted);
  font-size: 12px;
}

.avatars {
  display: flex;
}

.avatars span {
  display: grid;
  place-items: center;
  width: 34px;
  height: 34px;
  margin-left: -8px;
  border: 2px solid #050807;
  border-radius: var(--radius-pill);
  background: linear-gradient(135deg, #e7c38a, #7e6044);
  color: #06100d;
  font-size: 10px;
  font-weight: 900;
}

.avatars span:first-child {
  margin-left: 0;
}

.server-panel,
.accordion,
.cta-band,
.newsletter {
  border: var(--brand-border);
  background:
    linear-gradient(145deg, rgba(43, 68, 58, 0.22), rgba(5, 8, 7, 0.94)),
    var(--panel);
  box-shadow: var(--shadow);
}

.product-showcase {
  position: relative;
  min-height: 560px;
  isolation: isolate;
}

.product-showcase::before {
  content: "";
  position: absolute;
  inset: 42px 8px 48px 66px;
  border: var(--border-width) solid rgba(72, 244, 123, 0.12);
  border-radius: var(--radius-xl);
  background: radial-gradient(circle at 70% 18%, rgba(72, 244, 123, 0.08), transparent 34%),
    linear-gradient(145deg, rgba(53, 199, 96, 0.045), rgba(255, 255, 255, 0.018));
  filter: blur(0.2px);
  z-index: -1;
}

.product-shot {
  position: absolute;
  margin: 0;
  overflow: hidden;
  border: var(--border-width) solid rgba(72, 244, 123, 0.32);
  border-radius: var(--radius-xl);
  background: #030706;
  box-shadow: var(--shadow-strong);
}

.product-shot img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.product-shot-main {
  top: 28px;
  right: 0;
  width: min(88%, 720px);
  aspect-ratio: 1366 / 768;
  z-index: 1;
}

.product-shot-secondary {
  left: 0;
  bottom: 20px;
  width: min(64%, 520px);
  aspect-ratio: 3 / 2;
  z-index: 2;
}

.dashboard-card {
  display: grid;
  grid-template-columns: 128px 1fr;
  min-height: 550px;
  border-radius: var(--radius-xl);
  overflow: hidden;
}

.dash-sidebar {
  padding: var(--pad-lg) var(--pad-sm);
  border-right: var(--border-width) solid rgba(255, 255, 255, 0.07);
  background: rgba(0, 0, 0, 0.22);
}

.mini-brand {
  margin-bottom: var(--space-5);
  color: #fff;
  font-size: 12px;
  font-weight: 800;
}

.mini-brand span {
  color: var(--green-bright);
}

.dash-sidebar button {
  display: block;
  width: 100%;
  margin-bottom: 7px;
  padding: var(--space-2);
  border: 0;
  border-radius: var(--radius-sm);
  background: transparent;
  color: #98a49e;
  text-align: left;
  font-size: 11px;
}

.dash-sidebar button.active {
  background: rgba(53, 199, 96, 0.18);
  color: var(--green-bright);
}

.dash-main {
  min-width: 0;
  padding: var(--pad-lg);
}

.dash-head,
.metric-grid,
.system-grid,
.dash-bottom,
.panel-top,
.table-row,
.server-row {
  display: grid;
  gap: var(--gap-sm);
}

.dash-head {
  grid-template-columns: 1fr auto;
  align-items: start;
  margin-bottom: var(--space-5);
}

.dash-head p,
.table-title {
  margin: 0;
  color: #e9efeb;
  font-size: 14px;
  font-weight: 800;
}

.dash-head h2 {
  margin: var(--space-1) 0 0;
  color: var(--dim);
  font-size: 12px;
  font-weight: 600;
}

.window-dots {
  display: flex;
  gap: var(--gap-xs);
}

.window-dots span {
  width: 7px;
  height: 7px;
  border-radius: var(--radius-pill);
  background: rgba(255, 255, 255, 0.28);
}

.metric-grid {
  grid-template-columns: repeat(4, minmax(0, 1fr));
}

.metric-grid article,
.system-grid article,
.dash-bottom article,
.table-card {
  border: var(--surface-border);
  border-radius: var(--radius);
  background: rgba(3, 8, 7, 0.76);
}

.metric-grid article {
  padding: var(--pad-sm);
}

.metric-grid span,
.system-grid span,
.dash-bottom span {
  display: block;
  color: var(--muted);
  font-size: 10px;
  font-weight: 700;
}

.metric-grid strong,
.system-grid strong,
.dash-bottom strong {
  display: block;
  margin-top: 7px;
  color: #fff;
  font-size: 24px;
}

.metric-grid i {
  display: block;
  width: 72px;
  height: 24px;
  margin-top: 8px;
  background: linear-gradient(140deg, transparent 0 16%, var(--green) 17% 20%, transparent 21% 38%, var(--green) 39% 42%, transparent 43% 61%, var(--green) 62% 65%, transparent 66%);
  opacity: 0.8;
}

.system-grid {
  grid-template-columns: repeat(4, minmax(0, 1fr));
  margin-top: var(--space-4);
}

.system-grid article,
.dash-bottom article {
  padding: var(--pad-sm);
}

.bar {
  height: 4px;
  margin-top: 10px;
  overflow: hidden;
  border-radius: var(--radius-pill);
  background: rgba(255, 255, 255, 0.08);
}

.bar i {
  display: block;
  height: 100%;
  background: var(--green);
}

.bar.yellow i {
  background: var(--yellow);
}

.bar.teal i {
  background: var(--teal);
}

.table-card {
  margin-top: var(--space-4);
  padding: var(--pad-md);
}

.table-row {
  grid-template-columns: 1.4fr 1fr 0.7fr 0.8fr;
  padding: var(--space-2) 0;
  border-bottom: var(--border-width) solid rgba(255, 255, 255, 0.06);
  color: #d8e0dc;
  font-size: 12px;
}

.table-row:last-child {
  border-bottom: 0;
}

.table-head {
  color: var(--dim);
  font-size: 10px;
  text-transform: uppercase;
}

.ok {
  color: var(--green-bright);
}

.warn,
.danger {
  color: var(--red);
}

.dash-bottom {
  grid-template-columns: 0.55fr 1fr;
  margin-top: var(--space-4);
}

.chart-card svg {
  width: 100%;
  height: 68px;
  margin-top: 6px;
}

.chart-card polyline {
  fill: none;
  stroke: var(--green);
  stroke-width: 3;
}

.chart-card .chart-alt {
  stroke: var(--yellow);
  opacity: 0.8;
}

.section {
  padding: var(--section-y) 0;
}

.band {
  width: 100%;
  padding: var(--section-y-tight) max(var(--page-gutter), calc((100% - var(--container)) / 2));
  border-top: var(--surface-border);
  border-bottom: var(--surface-border);
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.035), rgba(255, 255, 255, 0.01));
}

.section-heading {
  max-width: 780px;
  margin: 0 auto var(--heading-gap);
  text-align: center;
}

.section-heading h2,
.copy-panel h2,
.why-list h2,
.arch-copy h2,
.use-cases h2,
.cta-band h2 {
  margin: 0;
  font-size: clamp(28px, 4vw, 43px);
  line-height: 1.08;
  letter-spacing: 0;
}

.section-heading p,
.copy-panel p,
.arch-copy p,
.cta-band p {
  color: var(--muted);
  line-height: 1.75;
}

.feature-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: var(--gap-md);
}

.feature-card,
.case-grid article {
  min-height: 178px;
  padding: var(--pad-lg);
  border: var(--surface-border);
  border-radius: var(--radius);
  background: linear-gradient(145deg, rgba(255, 255, 255, 0.055), rgba(255, 255, 255, 0.015));
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.05);
  transition: transform 0.25s ease, border-color 0.25s ease, background 0.25s ease;
}

.feature-card:hover,
.case-grid article:hover {
  transform: translateY(-4px);
  border-color: var(--border);
  background: linear-gradient(145deg, rgba(53, 199, 96, 0.07), rgba(255, 255, 255, 0.02));
}

.feature-card h3,
.case-grid h3,
.workflow h3 {
  margin: var(--space-5) 0 var(--space-2);
  font-size: 17px;
}

.feature-card p,
.case-grid p,
.workflow p {
  margin: 0;
  color: #d1dad5;
  font-size: 14px;
  line-height: 1.65;
}

.feature-icon,
.case-icon {
  position: relative;
  display: grid;
  place-items: center;
  width: 54px;
  height: 54px;
  border-radius: var(--radius);
  background: rgba(255, 255, 255, 0.06);
}

.case-icon {
  color: var(--muted);
  font-size: 28px;
}

.case-grid article:hover .case-icon {
  color: var(--green-bright);
}

.feature-icon img {
  width: 48px;
  height: 48px;
  object-fit: contain;
  filter: drop-shadow(0 12px 22px rgba(0, 0, 0, 0.38));
}

.feature-icon::before,
.feature-icon::after {
  content: "";
  position: absolute;
}

.split-section {
  display: grid;
  grid-template-columns: 1fr 1fr;
  align-items: center;
  gap: var(--space-12);
}

.server-panel {
  margin-top: var(--space-8);
  padding: var(--pad-lg);
  border-radius: var(--radius-lg);
}

.panel-top {
  grid-template-columns: 1fr auto;
  align-items: center;
  margin-bottom: var(--space-4);
}

.panel-top span {
  color: var(--green-bright);
  font-weight: 800;
}

.panel-top button {
  border: 0;
  border-radius: var(--radius-sm);
  padding: var(--space-2) var(--space-3);
  background: var(--green);
  color: #031607;
  font-size: 11px;
  font-weight: 800;
}

.server-row {
  grid-template-columns: 1.2fr 1fr 0.8fr 0.5fr;
  padding: var(--space-2) 0;
  border-bottom: var(--surface-border);
  color: #dce5e0;
  font-size: 12px;
}

.server-row.head {
  color: var(--dim);
  font-size: 10px;
  text-transform: uppercase;
}

.server-row b {
  color: var(--green-bright);
}

.accordion {
  border-color: var(--border-soft);
  border-radius: var(--radius-lg);
  overflow: hidden;
}

.accordion-item {
  border-bottom: var(--surface-border);
}

.accordion-item:last-child {
  border-bottom: 0;
}

.accordion-item button {
  display: flex;
  align-items: center;
  justify-content: space-between;
  width: 100%;
  min-height: var(--space-13);
  padding: 0 var(--pad-xl);
  border: 0;
  background: transparent;
  color: #fff;
  text-align: left;
  font-weight: 800;
}

.accordion-item button span:last-child {
  display: grid;
  place-items: center;
  flex: 0 0 auto;
  width: 24px;
  height: 24px;
  color: var(--green-bright);
  font-size: 20px;
  transition: transform 0.28s ease, color 0.28s ease;
}

.accordion-body {
  height: 0;
  overflow: hidden;
  padding: 0 var(--pad-xl);
  color: var(--muted);
  line-height: 1.7;
  opacity: 0;
  transform: translateY(-8px);
  transition: height 0.36s ease, opacity 0.28s ease, transform 0.28s ease;
  will-change: height, opacity, transform;
}

.accordion-item.open .accordion-body {
  opacity: 1;
  transform: translateY(0);
}

.accordion-item.open button span:last-child {
  transform: rotate(180deg);
  color: #fff;
}

.accordion-content {
  padding-bottom: var(--pad-xl);
}

.accordion-body ul {
  margin: 0 0 var(--space-4);
  padding-left: var(--space-5);
}

.accordion-body li::marker {
  color: var(--green);
}

.accordion-body a,
.arch-copy a {
  color: var(--green-bright);
  font-weight: 800;
}

.workflow-section {
  padding-top: var(--section-y-tight);
}

.workflow {
  position: relative;
  display: grid;
  grid-template-columns: repeat(5, minmax(0, 1fr));
  gap: 0;
  padding: var(--pad-xl);
  border: var(--surface-border);
  border-radius: var(--radius-lg);
  background: rgba(255, 255, 255, 0.025);
}

.workflow::before {
  content: "";
  position: absolute;
  left: 7%;
  right: 7%;
  top: 45px;
  border-top: var(--border-width) dashed rgba(72, 244, 123, 0.35);
}

.workflow article {
  position: relative;
  padding: var(--space-10) var(--pad-lg) var(--space-2);
}

.workflow span {
  position: absolute;
  top: 0;
  left: 18px;
  display: grid;
  place-items: center;
  width: 44px;
  height: 44px;
  border-radius: var(--radius-pill);
  background: var(--green);
  color: #031607;
  font-size: 16px;
  font-weight: 900;
}

.capability-row {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  margin-top: var(--space-7);
  border: var(--surface-border);
  border-radius: var(--radius-lg);
  background: linear-gradient(135deg, rgba(53, 199, 96, 0.08), rgba(255, 255, 255, 0.02));
}

.capability-row article {
  padding: var(--pad-xl) var(--pad-lg);
  border-right: var(--surface-border);
}

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

.capability-row strong {
  display: block;
  color: var(--text);
  font-size: 15px;
  line-height: 1.35;
}

.capability-row span {
  display: block;
  margin-top: var(--space-3);
  color: var(--muted);
  font-size: 13px;
  line-height: 1.6;
}

.roadmap-hero {
  padding-bottom: var(--section-y-tight);
}

.roadmap-hero .section-heading h1 {
  margin: var(--space-5) 0;
  font-size: clamp(46px, 7vw, 86px);
  line-height: 0.98;
}

.roadmap-status {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: var(--gap-md);
  margin-top: var(--space-10);
}

.roadmap-status article,
.roadmap-card {
  border: var(--surface-border);
  border-radius: var(--radius-lg);
  background: linear-gradient(145deg, rgba(255, 255, 255, 0.045), rgba(255, 255, 255, 0.014));
}

.roadmap-status article {
  padding: var(--pad-xl);
}

.roadmap-status strong,
.roadmap-status span {
  display: block;
}

.roadmap-status strong {
  color: var(--text);
  font-size: 16px;
}

.roadmap-status span {
  margin-top: var(--space-3);
  color: var(--muted);
  font-size: 13px;
  line-height: 1.6;
}

.roadmap-section {
  padding-top: var(--section-y-tight);
}

.roadmap-timeline {
  position: relative;
  display: grid;
  gap: var(--space-8);
  max-width: 900px;
  margin: 0 auto;
}

.roadmap-timeline::before {
  content: "";
  position: absolute;
  top: 0;
  bottom: 0;
  left: 34px;
  border-left: var(--border-width) dashed rgba(72, 244, 123, 0.24);
}

.roadmap-item {
  position: relative;
  display: grid;
  grid-template-columns: 68px 1fr;
  gap: var(--gap-lg);
}

.roadmap-marker {
  position: relative;
  z-index: 2;
  display: grid;
  place-items: start center;
}

.roadmap-marker span {
  display: grid;
  place-items: center;
  width: 68px;
  height: 68px;
  border: var(--brand-border);
  border-radius: var(--radius-pill);
  background: rgba(4, 12, 9, 0.95);
  color: var(--green-bright);
  font-weight: 900;
}

.roadmap-item.is-current .roadmap-marker span {
  background: var(--green);
  color: #031607;
}

.roadmap-card {
  padding: var(--pad-2xl);
}

.roadmap-card-head {
  display: flex;
  justify-content: space-between;
  gap: var(--gap-md);
  margin-bottom: var(--space-5);
  color: var(--muted);
  font-size: 13px;
}

.roadmap-card-head strong {
  color: var(--green-bright);
}

.roadmap-card h2 {
  margin: 0;
  font-size: clamp(28px, 4vw, 42px);
  line-height: 1.1;
}

.roadmap-card p {
  margin: var(--space-4) 0 var(--space-5);
  color: var(--muted);
  line-height: 1.7;
}

.roadmap-card ul {
  display: grid;
  gap: var(--space-3);
  margin: 0;
  padding: 0;
  list-style: none;
}

.roadmap-card li {
  position: relative;
  padding-left: var(--space-7);
  color: #dce5e0;
  line-height: 1.55;
}

.roadmap-card li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 8px;
  width: 10px;
  height: 6px;
  border-left: 2px solid var(--green-bright);
  border-bottom: 2px solid var(--green-bright);
  transform: rotate(-45deg);
}

.about-hero {
  padding-bottom: var(--section-y-tight);
}

.about-hero .section-heading h1 {
  margin: var(--space-5) 0;
  font-size: clamp(46px, 7vw, 86px);
  line-height: 0.98;
}

.about-grid,
.principles-grid {
  display: grid;
  gap: var(--gap-md);
}

.about-grid {
  grid-template-columns: repeat(3, 1fr);
}

.about-card,
.principles-grid article {
  border: var(--surface-border);
  border-radius: var(--radius-lg);
  background: linear-gradient(145deg, rgba(255, 255, 255, 0.045), rgba(255, 255, 255, 0.014));
}

.about-card {
  padding: var(--pad-2xl);
}

.about-card span {
  display: grid;
  place-items: center;
  width: 52px;
  height: 52px;
  border: var(--surface-border);
  border-color: rgba(72, 244, 123, 0.28);
  border-radius: var(--radius);
  color: var(--green-bright);
  font-size: 22px;
  background: rgba(53, 199, 96, 0.08);
}

.about-card h2 {
  margin: var(--space-6) 0 var(--space-3);
  font-size: clamp(24px, 3vw, 34px);
  line-height: 1.12;
}

.about-card p {
  margin: 0;
  color: var(--muted);
  line-height: 1.7;
}

.principles-grid {
  grid-template-columns: repeat(4, 1fr);
}

.principles-grid article {
  padding: var(--pad-xl);
}

.principles-grid strong,
.principles-grid span {
  display: block;
}

.principles-grid strong {
  color: var(--text);
  font-size: 15px;
}

.principles-grid span {
  margin-top: var(--space-3);
  color: var(--muted);
  font-size: 13px;
  line-height: 1.6;
}

.about-build {
  padding-top: var(--section-y-tight);
}

.operations-section {
  padding-top: var(--section-y-tight);
}

.operations-grid {
  display: grid;
  grid-template-columns: 1.15fr 1fr;
  gap: var(--gap-md);
}

.topology-card,
.terminal-card,
.logs-card {
  border: var(--surface-border);
  border-radius: var(--radius-lg);
  background: linear-gradient(145deg, rgba(255, 255, 255, 0.045), rgba(255, 255, 255, 0.014));
}

.topology-card {
  grid-row: span 2;
  padding: var(--pad-xl);
}

.terminal-card,
.logs-card {
  padding: var(--pad-lg);
}

.ops-card-head {
  display: flex;
  align-items: start;
  justify-content: space-between;
  gap: var(--gap-md);
  margin-bottom: var(--space-6);
}

.ops-card-head span {
  color: var(--green-bright);
  font-size: 12px;
  font-weight: 800;
  text-transform: uppercase;
}

.ops-card-head strong {
  color: var(--text);
  font-size: 14px;
  text-align: right;
}

.topology-map {
  position: relative;
  display: grid;
  place-items: center;
  min-height: 360px;
  border: var(--surface-border);
  border-radius: var(--radius);
  background:
    linear-gradient(rgba(72, 244, 123, 0.035) 1px, transparent 1px),
    linear-gradient(90deg, rgba(72, 244, 123, 0.03) 1px, transparent 1px),
    rgba(0, 0, 0, 0.2);
  background-size: 44px 44px;
}

.topology-map::before,
.topology-map::after {
  content: "";
  position: absolute;
  inset: 50% 15%;
  height: 1px;
  border-top: var(--border-width) dashed rgba(72, 244, 123, 0.28);
}

.topology-map::after {
  transform: rotate(90deg);
}

.topology-core {
  position: relative;
  z-index: 2;
  display: grid;
  place-items: center;
  width: 62px;
  height: 62px;
  border-radius: var(--radius-xl) 0 var(--radius-xl) 0;
  background: var(--green);
  color: #031607;
  font-size: 34px;
  font-weight: 900;
  transform: skew(-9deg);
}

.node {
  position: absolute;
  z-index: 3;
  width: 168px;
  padding: var(--pad-sm);
  border: var(--surface-border);
  border-radius: var(--radius);
  background: rgba(5, 10, 9, 0.92);
}

.node:nth-child(2) {
  top: 34px;
  left: 34px;
}

.node:nth-child(3) {
  right: 34px;
  top: 132px;
}

.node:nth-child(4) {
  left: 22%;
  bottom: 36px;
}

.node span {
  display: inline-block;
  width: 8px;
  height: 8px;
  margin-right: var(--space-2);
  border-radius: var(--radius-pill);
}

.node strong,
.node em {
  display: block;
}

.node strong {
  color: var(--text);
  font-size: 13px;
}

.node em {
  margin-top: var(--space-1);
  color: var(--muted);
  font-size: 12px;
  font-style: normal;
}

.node-online span {
  background: var(--green-bright);
}

.node-degraded span {
  background: var(--yellow);
}

.node-reconnect span {
  background: var(--red);
}

.terminal-card pre {
  margin: 0;
  overflow: auto;
  white-space: pre-wrap;
  color: #d9e2dd;
  font-size: 13px;
  line-height: 1.75;
}

.terminal-card code {
  font-family: "Cascadia Mono", Consolas, monospace;
}

.log-row {
  display: grid;
  grid-template-columns: 1.1fr 1fr auto;
  gap: var(--gap-sm);
  align-items: center;
  padding: var(--space-3) 0;
  border-bottom: var(--surface-border);
  color: var(--muted);
  font-size: 13px;
}

.log-row:last-child {
  border-bottom: 0;
}

.log-row b {
  color: var(--text);
}

.log-row em {
  font-style: normal;
}

.architecture {
  display: grid;
  grid-template-columns: minmax(260px, 0.85fr) minmax(520px, 1.15fr);
  align-items: center;
  gap: var(--space-13);
}

.why-list ul {
  display: grid;
  gap: var(--space-4);
  margin: var(--space-8) 0 0;
  padding: 0;
  list-style: none;
}

.why-list li {
  position: relative;
  margin: 0;
  padding-left: var(--space-8);
  color: #dce5e0;
  line-height: 1.55;
}

.why-list li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 7px;
  width: 12px;
  height: 7px;
  border-left: 2px solid var(--green-bright);
  border-bottom: 2px solid var(--green-bright);
  transform: rotate(-45deg);
}

.arch-diagram {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 112px minmax(0, 1fr);
  align-items: center;
  gap: var(--space-2);
}

.arch-diagram article {
  padding: var(--pad-xl);
  border: var(--brand-border);
  border-radius: var(--radius-lg);
  background: rgba(8, 16, 13, 0.86);
  text-align: center;
}

.arch-diagram h3 {
  margin: 0;
}

.arch-diagram span {
  display: block;
  margin: var(--space-2) 0 var(--space-4);
  color: var(--green-bright);
  font-size: 12px;
}

.arch-diagram p {
  margin: var(--space-2) 0;
  padding: var(--pad-sm);
  border-radius: var(--radius-sm);
  background: rgba(53, 199, 96, 0.09);
  color: #d8e0dc;
  font-size: 13px;
}

.arch-core {
  position: relative;
  z-index: 1;
  display: grid;
  place-items: center;
  width: 64px;
  height: 64px;
  margin: 0 auto;
  color: #031607;
  background: var(--green);
  border-radius: var(--radius-xl) 0 var(--radius-xl) 0;
  font-size: 32px;
  font-weight: 900;
  transform: skew(-9deg);
}

.arch-core::before,
.arch-core::after {
  content: "";
  position: absolute;
  top: 50%;
  width: 88px;
  border-top: var(--border-width) dashed rgba(72, 244, 123, 0.45);
}

.arch-core::before {
  right: 76px;
}

.arch-core::after {
  left: 76px;
}

.arch-copy {
  max-width: 760px;
  margin: 0 auto;
  text-align: center;
}

.arch-copy p {
  margin-top: var(--space-5);
}

.architecture-summary {
  padding-top: var(--section-y-tight);
}

.use-cases {
  padding-top: var(--section-y-tight);
}

.case-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: var(--gap-md);
  margin-top: var(--space-7);
}

.cta-band {
  display: grid;
  grid-template-columns: 1fr auto;
  align-items: center;
  gap: var(--gap-xl);
  width: min(var(--container), calc(100% - var(--page-gutter)));
  margin: 0 auto var(--space-11);
  padding: var(--pad-2xl);
  border-radius: var(--radius-lg);
}

.cta-band .cta-actions {
  margin-top: 0;
}

.footer {
  display: grid;
  grid-template-columns: 1fr 360px 0.9fr;
  gap: var(--space-11);
  width: min(var(--container), calc(100% - var(--page-gutter)));
  margin: 0 auto;
  padding: var(--pad-lg) 0 var(--space-10);
  border-top: var(--surface-border);
}

.footer p {
  color: var(--muted);
  line-height: 1.7;
}

.newsletter {
  align-self: start;
  padding: var(--pad-lg);
  border-radius: var(--radius-lg);
}

.newsletter label {
  display: block;
  margin-bottom: var(--space-4);
  font-size: 13px;
  font-weight: 800;
}

.newsletter div {
  display: grid;
  grid-template-columns: 1fr auto;
  gap: var(--gap-xs);
}

.newsletter input {
  min-width: 0;
  height: var(--control-height);
  border: var(--surface-border);
  border-radius: var(--radius-sm);
  background: rgba(0, 0, 0, 0.28);
  color: #fff;
  padding: 0 var(--pad-sm);
}

.newsletter button {
  border: 0;
  border-radius: var(--radius-sm);
  background: var(--green);
  color: #031607;
  padding: 0 var(--pad-md);
  font-weight: 800;
}

.form-message {
  min-height: 20px;
  margin: var(--space-2) 0 0;
  font-size: 12px;
}

.footer-links {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: var(--space-8);
}

.footer-links h3 {
  margin: 0 0 var(--space-3);
  font-size: 13px;
}

.footer-links a {
  display: block;
  margin: var(--space-2) 0;
  color: var(--muted);
  font-size: 13px;
}

.copyright {
  grid-column: 1 / -1;
  margin: 0;
  padding-top: var(--pad-xl);
  border-top: var(--surface-border);
  font-size: 12px;
}

.reveal {
  opacity: 0;
  transform: translateY(22px);
  transition: opacity 0.7s ease, transform 0.7s ease;
}

.reveal.is-visible {
  opacity: 1;
  transform: translateY(0);
}

@media (max-width: 1080px) {
  .topbar {
    grid-template-columns: 1fr auto;
    width: min(var(--container), calc(100% - var(--page-gutter-mobile)));
  }

  .nav-toggle {
    display: block;
  }

  .site-nav,
  .topbar-actions {
    display: none;
  }

  .site-nav.is-open {
    position: absolute;
    top: calc(100% + var(--space-2));
    left: 0;
    right: 0;
    display: grid;
    gap: 0;
    padding: var(--pad-sm);
    border: var(--surface-border);
    border-radius: var(--radius);
    background: rgba(4, 8, 7, 0.97);
  }

  .site-nav.is-open a {
    padding: var(--pad-sm);
    border-bottom: var(--surface-border);
  }

  .site-nav.is-open a:last-child {
    border-bottom: 0;
  }

  .hero,
  .split-section,
  .architecture,
  .cta-band,
  .footer {
    grid-template-columns: 1fr;
  }

  .architecture {
    gap: var(--space-10);
    align-items: stretch;
  }

  .why-list {
    max-width: 720px;
  }

  .arch-copy {
    max-width: 760px;
  }

  .hero {
    gap: var(--space-8);
    align-items: start;
  }

  .product-showcase {
    min-height: 560px;
    width: min(100%, 860px);
    margin: 0 auto;
  }

  .product-shot-main {
    width: 86%;
  }

  .product-shot-secondary {
    width: 58%;
  }

  .feature-grid,
  .case-grid,
  .about-grid,
  .roadmap-status,
  .principles-grid,
  .capability-row {
    grid-template-columns: repeat(2, 1fr);
  }

  .operations-grid {
    grid-template-columns: 1fr;
  }

  .topology-card {
    grid-row: auto;
  }

  .workflow {
    grid-template-columns: 1fr;
    gap: var(--gap-md);
  }

  .workflow::before {
    display: none;
  }
}

@media (min-width: 721px) and (max-width: 1080px) {
  .hero-content {
    max-width: 720px;
  }

  .hero h1 {
    max-width: 760px;
    font-size: clamp(56px, 8vw, 76px);
  }

  .hero-copy {
    max-width: 680px;
  }

  .split-section {
    align-items: start;
  }

  .footer {
    grid-template-columns: 1fr 1fr;
  }

  .footer-links,
  .copyright {
    grid-column: 1 / -1;
  }

  .footer-links {
    grid-template-columns: repeat(3, 1fr);
  }
}

@media (max-width: 720px) {
  .topbar,
  .hero,
  .section,
  .cta-band,
  .footer {
    width: min(100% - var(--page-gutter-mobile), var(--container));
  }

  .hero {
    margin-top: var(--space-2);
    padding-top: var(--space-2);
    padding-bottom: var(--space-10);
  }

  .hero h1 {
    font-size: clamp(40px, 12vw, 52px);
    line-height: 1.02;
  }

  .hero-copy {
    font-size: 16px;
    line-height: 1.65;
  }

  .hero-actions,
  .cta-actions,
  .value-row {
    flex-direction: column;
    align-items: stretch;
  }

  .btn {
    width: 100%;
  }

  .product-showcase {
    display: grid;
    gap: var(--gap-md);
    min-height: 0;
    margin-top: var(--space-4);
  }

  .product-showcase::before {
    inset: var(--space-5) var(--space-3) var(--space-5);
  }

  .product-shot {
    position: relative;
  }

  .product-shot-main,
  .product-shot-secondary {
    inset: auto;
    width: 100%;
  }

  .product-shot-secondary {
    width: 92%;
    margin-left: 8%;
    margin-top: calc(var(--space-8) * -1);
  }

  .band {
    padding-inline: var(--page-gutter-mobile);
  }

  .metric-grid,
  .system-grid,
  .dash-bottom,
  .feature-grid,
  .case-grid,
  .about-grid,
  .roadmap-status,
  .principles-grid,
  .capability-row,
  .operations-grid,
  .footer-links,
  .newsletter div {
    grid-template-columns: 1fr;
  }

  .table-row {
    grid-template-columns: 1fr 1fr;
  }

  .table-row span:nth-child(3),
  .table-row span:nth-child(4) {
    display: none;
  }

  .server-row {
    grid-template-columns: 1fr 1fr;
  }

  .server-row span:nth-child(2),
  .server-row span:nth-child(4) {
    display: none;
  }

  .arch-diagram {
    grid-template-columns: 1fr;
    gap: var(--gap-lg);
  }

  .architecture-summary {
    padding-top: var(--space-8);
  }

  .why-list ul {
    gap: var(--space-3);
  }

  .section-heading {
    text-align: left;
  }

  .section-heading h2,
  .copy-panel h2,
  .why-list h2,
  .arch-copy h2,
  .use-cases h2,
  .cta-band h2 {
    font-size: clamp(28px, 8vw, 36px);
    line-height: 1.15;
  }

  .workflow {
    padding: var(--pad-lg);
  }

  .workflow article {
    padding: var(--space-7) 0 var(--space-3) 64px;
    min-height: 88px;
  }

  .workflow span {
    top: var(--space-6);
    left: 0;
  }

  .feature-card,
  .case-grid article {
    min-height: auto;
  }

  .roadmap-hero .section-heading h1 {
    font-size: clamp(40px, 11vw, 58px);
  }

  .about-hero .section-heading h1 {
    font-size: clamp(40px, 11vw, 58px);
  }

  .roadmap-item {
    grid-template-columns: 52px 1fr;
    gap: var(--gap-md);
  }

  .roadmap-timeline::before {
    left: 26px;
  }

  .roadmap-marker span {
    width: 52px;
    height: 52px;
    font-size: 13px;
  }

  .roadmap-card {
    padding: var(--pad-lg);
  }

  .topology-card,
  .terminal-card,
  .logs-card {
    padding: var(--pad-md);
  }

  .ops-card-head {
    display: grid;
  }

  .ops-card-head strong {
    text-align: left;
  }

  .topology-map {
    min-height: 420px;
  }

  .node {
    width: min(168px, calc(100% - 32px));
  }

  .node:nth-child(2) {
    top: 24px;
    left: 16px;
  }

  .node:nth-child(3) {
    right: 16px;
    top: 156px;
  }

  .node:nth-child(4) {
    left: 16px;
    bottom: 24px;
  }

  .log-row {
    grid-template-columns: 1fr;
    gap: var(--space-1);
  }

  .accordion-item button {
    min-height: 64px;
    padding-inline: var(--pad-lg);
    gap: var(--gap-md);
  }

  .accordion-body {
    padding-inline: var(--pad-lg);
  }

  .server-panel {
    overflow-x: auto;
  }

  .cta-band {
    padding: var(--pad-xl);
  }

  .newsletter button {
    height: var(--control-height);
  }

  .arch-core::before,
  .arch-core::after {
    display: none;
  }

  .arch-core {
    margin: var(--space-2) auto;
  }

  .capability-row article {
    border-right: 0;
    border-bottom: var(--surface-border);
  }

  .capability-row article:last-child {
    border-bottom: 0;
  }
}

@media (max-width: 480px) {
  .topbar,
  .hero,
  .section,
  .cta-band,
  .footer {
    width: min(100% - 24px, var(--container));
  }

  .brand {
    max-width: 170px;
  }

  .brand img {
    width: 160px;
  }

  .hero h1 {
    font-size: clamp(36px, 12vw, 44px);
  }

  .value-row {
    gap: var(--gap-md);
  }

  .trust-row {
    margin-top: var(--space-8);
  }

  .product-shot {
    border-radius: var(--radius-lg);
  }

  .product-shot-secondary {
    width: 96%;
    margin-left: 4%;
  }

  .band {
    padding-inline: 12px;
  }

  .section {
    padding-block: 72px;
  }

  .feature-icon,
  .case-icon {
    width: 48px;
    height: 48px;
  }

  .feature-icon img {
    width: 42px;
    height: 42px;
  }

  .arch-diagram article,
  .about-card,
  .principles-grid article,
  .roadmap-status article,
  .roadmap-card,
  .why-list,
  .capability-row article,
  .topology-card,
  .terminal-card,
  .logs-card,
  .newsletter {
    padding: var(--pad-md);
  }

  .footer {
    gap: var(--space-8);
  }
}
