/* ============================================================
   Nivalo marketing site — landing v2
   Static CSS, no build step. Values mirror the v2 design.
   ============================================================ */

:root {
  --bg: #030b14;
  --bg-raised: #06111d;
  --bg-card: #081522;
  --bg-console: #040d18;
  --bg-console-side: #050f1b;
  --bg-console-cell: #061020;
  --bg-console-panel: #071322;
  --bg-pill: #0a1826;

  --text: #f4f8ff;
  --muted: #9fb1c4;
  --dim: #6d8299;
  --faint: #44586d;

  --code-base: #55708c;
  --code-comment: #587a97;
  --code-key: #7da2c1;
  --code-string: #7fd6f7;
  --code-plain: #cfe2f3;
  --code-keyword: #6cb5f0;

  --cyan: #22aee5;
  --cyan-bright: #45c2f2;
  --cyan-ink: #04121f;
  --blue: #1495ff;
  --green: #62e0a8;
  --amber: #f5b94d;
  --red: #ff6f61;

  --line-rgb: 148, 170, 197;
  --cyan-rgb: 34, 174, 229;

  --font-sans: Inter, system-ui, -apple-system, sans-serif;
  --font-mono: ui-monospace, 'SF Mono', Menlo, Consolas, monospace;

  color-scheme: dark;
}

* { box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font-family: var(--font-sans);
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

::selection { background: rgba(var(--cyan-rgb), .35); }

@keyframes nv-pulse {
  0%, 100% { opacity: 1; }
  50% { opacity: .35; }
}

@media (prefers-reduced-motion: reduce) {
  * { animation-duration: .01ms !important; animation-iteration-count: 1 !important; }
  html { scroll-behavior: auto; }
}

img { display: block; }

.container {
  max-width: 1160px;
  margin: 0 auto;
  padding-left: clamp(16px, 4vw, 28px);
  padding-right: clamp(16px, 4vw, 28px);
}

/* ---------- shared primitives ---------- */

.hex {
  display: inline-block;
  flex: none;
  background: var(--cyan);
  clip-path: polygon(50% 0, 100% 25%, 100% 75%, 50% 100%, 0 75%, 0 25%);
}

.eyebrow {
  display: flex;
  align-items: center;
  gap: 9px;
  margin: 0;
  font-size: 11px;
  font-weight: 600;
  letter-spacing: .17em;
  text-transform: uppercase;
  color: var(--cyan);
}

.eyebrow .hex { width: 9px; height: 10px; }

.section-title {
  margin: 16px 0 0;
  font-size: clamp(26px, 3.6vw, 36px);
  line-height: 1.15;
  letter-spacing: -.025em;
  font-weight: 650;
  text-wrap: balance;
}

.section-sub {
  margin: 14px 0 0;
  font-size: 15.5px;
  line-height: 1.65;
  color: var(--muted);
  text-wrap: pretty;
}

.btn {
  display: inline-block;
  text-decoration: none;
  font-size: 15px;
  font-weight: 600;
  padding: 13px 24px;
  border-radius: 9px;
  white-space: nowrap;
}

.btn-primary {
  background: var(--cyan);
  color: var(--cyan-ink);
}
.btn-primary:hover { background: var(--cyan-bright); }

.btn-ghost {
  color: var(--text);
  font-weight: 500;
  border: 1px solid rgba(var(--line-rgb), .28);
}
.btn-ghost:hover {
  border-color: rgba(var(--line-rgb), .55);
  background: rgba(var(--line-rgb), .07);
}

code.inline-code {
  font-family: var(--font-mono);
  font-size: 12.5px;
  color: var(--code-plain);
  background: rgba(var(--line-rgb), .1);
  border-radius: 4px;
  padding: 1px 5px;
}

/* ---------- header ---------- */

.site-header {
  position: sticky;
  top: 0;
  z-index: 60;
  background: rgba(3, 11, 20, .78);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  border-bottom: 1px solid rgba(var(--line-rgb), .1);
}

.site-header .container {
  height: 62px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
}

.brand {
  display: flex;
  align-items: center;
  gap: 10px;
  text-decoration: none;
  flex: none;
}

.brand .brand-symbol { height: 27px; width: auto; }
.brand .brand-wordmark { height: 15px; width: auto; margin-top: 2px; }

.site-nav {
  display: flex;
  align-items: center;
  gap: 4px;
}

.site-nav a {
  color: var(--muted);
  text-decoration: none;
  font-size: 13.5px;
  font-weight: 500;
  padding: 8px 12px;
  border-radius: 7px;
  white-space: nowrap;
  flex: none;
}
.site-nav a:hover { color: var(--text); background: rgba(var(--line-rgb), .08); }

.header-actions {
  display: flex;
  align-items: center;
  gap: 10px;
  flex: none;
}

.header-login {
  color: var(--text);
  text-decoration: none;
  font-size: 13.5px;
  font-weight: 500;
  padding: 8px 14px;
  border-radius: 8px;
  border: 1px solid rgba(var(--line-rgb), .25);
  white-space: nowrap;
  flex: none;
}
.header-login:hover { border-color: rgba(var(--line-rgb), .5); background: rgba(var(--line-rgb), .07); }

.header-cta {
  background: var(--cyan);
  color: var(--cyan-ink);
  text-decoration: none;
  font-size: 13.5px;
  font-weight: 600;
  padding: 9px 15px;
  border-radius: 8px;
  white-space: nowrap;
  flex: none;
}
.header-cta:hover { background: var(--cyan-bright); }

@media (max-width: 799.98px) {
  .site-nav { display: none; }
}
@media (max-width: 459.98px) {
  .header-login { display: none; }
}

/* ---------- hero ---------- */

.hero {
  position: relative;
  overflow: hidden;
}

.hero-bg,
.hero-shade {
  position: absolute;
  inset: 0;
}

.hero-bg {
  background: url('assets/hero-network-bg.jpg') right center / cover no-repeat;
}

.hero-shade {
  background:
    linear-gradient(90deg, rgba(3,11,20,.95) 0%, rgba(3,11,20,.82) 40%, rgba(3,11,20,.42) 70%, rgba(3,11,20,.16) 100%),
    linear-gradient(180deg, rgba(3,11,20,.55) 0%, rgba(3,11,20,.1) 34%, rgba(3,11,20,.14) 58%, var(--bg) 100%);
}

.hero-inner {
  position: relative;
  padding-top: clamp(72px, 11vh, 128px);
  padding-bottom: clamp(64px, 9vh, 108px);
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  text-align: left;
}

.hero h1 {
  margin: 20px 0 0;
  font-size: clamp(34px, 6vw, 60px);
  line-height: 1.06;
  letter-spacing: -.032em;
  font-weight: 650;
  max-width: 640px;
  text-wrap: balance;
}

.hero-sub {
  margin: 22px 0 0;
  max-width: 560px;
  font-size: clamp(15.5px, 1.6vw, 17.5px);
  line-height: 1.65;
  color: var(--muted);
  text-wrap: pretty;
}

.hero-actions {
  margin-top: 32px;
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  justify-content: flex-start;
}

.hero-fineprint {
  margin: 18px 0 0;
  font-size: 12px;
  color: var(--dim);
  font-family: var(--font-mono);
}

/* ---------- console mockup ---------- */

.console-section {
  max-width: 1160px;
  margin: 0 auto;
  padding: clamp(16px, 3vw, 36px) clamp(12px, 3vw, 28px) 0;
}

.console-frame {
  border: 1px solid rgba(var(--line-rgb), .17);
  border-radius: 14px;
  background: var(--bg-console);
  box-shadow: 0 50px 110px -40px rgba(0, 0, 0, .75), 0 0 0 1px rgba(var(--cyan-rgb), .05);
  overflow: hidden;
}

.console-chrome {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 10px 14px;
  background: var(--bg-console-side);
  border-bottom: 1px solid rgba(var(--line-rgb), .1);
}

.console-chrome-dots { display: flex; gap: 6px; flex: none; }
.console-chrome-dots span { width: 9px; height: 9px; border-radius: 50%; }
.console-chrome-dots span:nth-child(1) { background: rgba(var(--line-rgb), .25); }
.console-chrome-dots span:nth-child(2) { background: rgba(var(--line-rgb), .18); }
.console-chrome-dots span:nth-child(3) { background: rgba(var(--line-rgb), .12); }

.console-chrome-url {
  flex: 1;
  display: flex;
  justify-content: center;
  min-width: 0;
}

.console-chrome-url span {
  font-family: var(--font-mono);
  font-size: 11.5px;
  color: var(--muted);
  background: var(--bg-pill);
  border: 1px solid rgba(var(--line-rgb), .12);
  border-radius: 99px;
  padding: 5px 16px;
  max-width: 100%;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.console-chrome-spacer { width: 39px; flex: none; }

.console-body { display: flex; align-items: stretch; }

/* sidebar */

.console-sidebar {
  width: 188px;
  flex: none;
  background: var(--bg-console-side);
  border-right: 1px solid rgba(var(--line-rgb), .1);
  display: flex;
  flex-direction: column;
  padding: 14px 10px 12px;
}

@media (max-width: 899.98px) {
  .console-sidebar { display: none; }
}

.console-sidebar-brand {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 2px 8px 14px;
}
.console-sidebar-brand .brand-symbol { height: 19px; width: auto; }
.console-sidebar-brand .brand-wordmark { height: 11px; width: auto; margin-top: 1px; }

.console-menu {
  display: flex;
  flex-direction: column;
  gap: 2px;
  font-size: 12.5px;
  font-weight: 500;
  color: var(--muted);
}

.console-menu-item {
  display: flex;
  align-items: center;
  gap: 9px;
  padding: 7px 9px;
  border-radius: 7px;
}

.console-menu-item.active {
  background: rgba(var(--cyan-rgb), .12);
  color: var(--text);
  box-shadow: inset 2px 0 0 var(--cyan);
}

.console-menu-item .menu-label { flex: 1; }

.console-menu-badge {
  font-size: 10px;
  font-weight: 600;
  color: var(--cyan);
  background: rgba(var(--cyan-rgb), .14);
  border-radius: 99px;
  padding: 1px 7px;
}

.console-sidebar-org {
  margin-top: auto;
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 10px 8px 0;
  border-top: 1px solid rgba(var(--line-rgb), .1);
}

.console-sidebar-org .hex {
  width: 16px;
  height: 18px;
  background: rgba(var(--cyan-rgb), .3);
}

.console-sidebar-org .org-name {
  flex: 1;
  font-size: 11.5px;
  color: var(--muted);
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.console-sidebar-org .org-plan {
  font-size: 9.5px;
  font-weight: 600;
  letter-spacing: .06em;
  color: var(--cyan);
  border: 1px solid rgba(var(--cyan-rgb), .35);
  border-radius: 99px;
  padding: 2px 7px;
}

/* console main */

.console-main {
  flex: 1;
  min-width: 0;
  display: flex;
  flex-direction: column;
}

.console-device-header {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 10px;
  padding: 13px 16px;
  border-bottom: 1px solid rgba(var(--line-rgb), .1);
}

.console-breadcrumb {
  display: flex;
  align-items: center;
  gap: 7px;
  min-width: 0;
}
.console-breadcrumb .crumb-root { font-size: 12.5px; color: var(--dim); }
.console-breadcrumb .crumb-sep { font-size: 12px; color: var(--faint); }
.console-breadcrumb .crumb-device {
  font-size: 13.5px;
  font-weight: 600;
  color: var(--text);
  font-family: var(--font-mono);
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.status-chip {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: 11px;
  font-weight: 600;
  padding: 3px 10px;
  border-radius: 99px;
  border: 1px solid;
  white-space: nowrap;
}

.status-chip .status-dot {
  width: 6.5px;
  height: 6.5px;
  border-radius: 50%;
  background: currentColor;
}

.status-chip.sw-green { color: var(--green); background: rgba(98,224,168,.1); border-color: rgba(98,224,168,.32); }
.status-chip.sw-amber { color: var(--amber); background: rgba(245,185,77,.1); border-color: rgba(245,185,77,.32); }
.status-chip.sw-amber .status-dot { animation: nv-pulse 1.2s ease-in-out infinite; }

.console-header-actions { margin-left: auto; display: flex; gap: 8px; }

.console-btn {
  cursor: pointer;
  border: none;
  background: var(--cyan);
  color: var(--cyan-ink);
  font-family: inherit;
  font-size: 12px;
  font-weight: 600;
  padding: 7px 13px;
  border-radius: 7px;
  white-space: nowrap;
}
.console-btn:hover { background: var(--cyan-bright); }

/* metric row */

.console-metrics {
  display: grid;
  grid-template-columns: repeat(6, minmax(0, 1fr));
  gap: 1px;
  background: rgba(var(--line-rgb), .1);
  border-bottom: 1px solid rgba(var(--line-rgb), .1);
  margin: 0;
}

@media (max-width: 1149.98px) {
  .console-metrics { grid-template-columns: repeat(3, minmax(0, 1fr)); }
}
@media (max-width: 639.98px) {
  .console-metrics { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}

.console-metric { background: var(--bg-console-cell); padding: 11px 16px; }

.console-metric dt {
  font-size: 10px;
  font-weight: 600;
  letter-spacing: .1em;
  text-transform: uppercase;
  color: var(--dim);
}

.console-metric dd {
  margin: 4px 0 0;
  font-size: 14.5px;
  font-weight: 600;
  color: var(--text);
  font-variant-numeric: tabular-nums;
}

.console-metric dd.metric-status-online { color: var(--green); }
.console-metric dd.metric-status-wait { color: var(--amber); }
.console-metric dd.metric-mono { font-family: var(--font-mono); }

/* panel grid */

.console-panels {
  display: flex;
  flex-wrap: wrap;
  gap: 13px;
  padding: 13px;
  background: var(--bg-console);
}

.console-col-main {
  flex: 1.7 1 440px;
  min-width: 0;
  display: flex;
  flex-direction: column;
  gap: 13px;
}

.console-col-side {
  flex: 1 1 285px;
  min-width: 0;
  display: flex;
  flex-direction: column;
  gap: 13px;
}

.console-panel {
  background: var(--bg-console-panel);
  border: 1px solid rgba(var(--line-rgb), .11);
  border-radius: 10px;
  overflow: hidden;
}

.console-panel-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  padding: 10px 14px;
  border-bottom: 1px solid rgba(var(--line-rgb), .09);
}

.console-panel-head .panel-title { font-size: 12px; font-weight: 600; color: var(--text); }

.panel-live-note {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-family: var(--font-mono);
  font-size: 10.5px;
  color: var(--dim);
  white-space: nowrap;
}

.panel-live-note .live-dot {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  animation: nv-pulse 1.8s ease-in-out infinite;
}
.panel-live-note .live-dot.dot-green { background: var(--green); }
.panel-live-note .live-dot.dot-cyan { background: var(--cyan); }

/* telemetry chart */

.chart-wrap { position: relative; padding: 10px 14px 4px; }

.chart-wrap svg { display: block; width: 100%; height: 208px; }

.chart-axis-label {
  position: absolute;
  left: 16px;
  transform: translateY(-50%);
  font-family: var(--font-mono);
  font-size: 9.5px;
  color: var(--faint);
}

.chart-boot-overlay {
  position: absolute;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  background: rgba(7, 19, 34, .72);
}

.chart-boot-overlay span {
  font-family: var(--font-mono);
  font-size: 11.5px;
  color: var(--muted);
  animation: nv-pulse 1.6s ease-in-out infinite;
}

.chart-legend {
  display: flex;
  flex-wrap: wrap;
  gap: 14px;
  padding: 8px 14px 12px;
}

.chart-legend .legend-item {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  font-size: 11.5px;
  color: var(--muted);
}

.chart-legend .legend-swatch { width: 8px; height: 8px; border-radius: 2px; }

.chart-legend .legend-value {
  font-family: var(--font-mono);
  color: var(--text);
  font-variant-numeric: tabular-nums;
}

/* commands panel */

.cmd-lifecycle {
  font-family: var(--font-mono);
  font-size: 10.5px;
  color: var(--dim);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  min-width: 0;
}

.cmd-row { padding: 9px 14px; border-top: 1px solid rgba(var(--line-rgb), .07); }

.cmd-row-line {
  display: flex;
  align-items: center;
  gap: 10px;
  flex-wrap: wrap;
}

.cmd-name { font-family: var(--font-mono); font-size: 12px; color: var(--text); }

.cmd-meta {
  font-size: 11px;
  color: var(--dim);
  flex: 1;
  min-width: 120px;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.cmd-chip {
  font-size: 9.5px;
  font-weight: 600;
  letter-spacing: .07em;
  text-transform: uppercase;
  padding: 2.5px 8px;
  border-radius: 99px;
  border: 1px solid;
  white-space: nowrap;
}

.cmd-chip.sw-green { color: var(--green); background: rgba(98,224,168,.1); border-color: rgba(98,224,168,.32); }
.cmd-chip.sw-amber { color: var(--amber); background: rgba(245,185,77,.1); border-color: rgba(245,185,77,.32); }
.cmd-chip.sw-gray { color: var(--muted); background: rgba(159,177,196,.08); border-color: rgba(159,177,196,.28); }
.cmd-chip.sw-blue { color: var(--blue); background: rgba(20,149,255,.1); border-color: rgba(20,149,255,.34); }
.cmd-chip.sw-cyan { color: var(--cyan); background: rgba(var(--cyan-rgb),.1); border-color: rgba(var(--cyan-rgb),.34); }
.cmd-chip.sw-red { color: var(--red); background: rgba(255,111,97,.1); border-color: rgba(255,111,97,.32); }

.cmd-time {
  font-family: var(--font-mono);
  font-size: 10.5px;
  color: var(--faint);
  font-variant-numeric: tabular-nums;
}

.cmd-progress {
  margin-top: 8px;
  display: flex;
  align-items: center;
  gap: 9px;
}

.cmd-progress-track {
  flex: 1;
  height: 3px;
  border-radius: 99px;
  background: rgba(var(--cyan-rgb), .14);
  overflow: hidden;
}

.cmd-progress-fill {
  height: 100%;
  border-radius: 99px;
  background: var(--cyan);
  transition: width .9s linear;
}

.cmd-progress-label {
  font-family: var(--font-mono);
  font-size: 10px;
  color: var(--cyan);
  font-variant-numeric: tabular-nums;
}

/* events panel */

.event-list { min-height: 216px; }

.event-row {
  display: flex;
  align-items: baseline;
  gap: 9px;
  padding: 7.5px 14px;
  border-top: 1px solid rgba(var(--line-rgb), .06);
}

.event-time {
  font-family: var(--font-mono);
  font-size: 10.5px;
  color: var(--faint);
  flex: none;
  font-variant-numeric: tabular-nums;
}

.event-dot {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  flex: none;
  position: relative;
  top: -1px;
}
.event-dot.ev-info { background: rgba(var(--cyan-rgb), .85); }
.event-dot.ev-warning { background: var(--amber); }
.event-dot.ev-error { background: var(--red); }

.event-name {
  font-family: var(--font-mono);
  font-size: 11.5px;
  color: var(--code-plain);
  flex: none;
}

.event-detail {
  font-size: 11px;
  color: var(--dim);
  min-width: 0;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

/* payload panel */

.payload-panel { flex: 1; }

.payload-panel .console-panel-head { padding: 8px 14px; }

.pill-toggle {
  cursor: pointer;
  font-family: inherit;
  font-size: 10.5px;
  font-weight: 600;
  padding: 3.5px 10px;
  border-radius: 99px;
  border: 1px solid rgba(var(--line-rgb), .2);
  white-space: nowrap;
  background: transparent;
  color: var(--muted);
}

.pill-toggle.active {
  background: rgba(var(--cyan-rgb), .14);
  color: var(--code-string);
  border-color: rgba(var(--cyan-rgb), .4);
}

.payload-parsed {
  margin: 0;
  padding: 12px 14px;
  font-family: var(--font-mono);
  font-size: 11.5px;
  line-height: 1.75;
  color: var(--code-base);
  overflow-x: auto;
}

.payload-raw {
  padding: 12px 14px;
  font-family: var(--font-mono);
  font-size: 11px;
  line-height: 1.7;
  color: var(--muted);
  word-break: break-all;
}

.tok-key { color: var(--code-key); }
.tok-str { color: var(--code-string); }
.tok-num { color: var(--green); }
.tok-comment { color: var(--code-comment); }
.tok-kw { color: var(--code-keyword); }

/* caption row */

.console-caption {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 10px;
  padding: 14px 4px 0;
}

.console-caption-note {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-family: var(--font-mono);
  font-size: 11px;
  color: var(--dim);
}

.console-caption-note .live-dot {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--green);
  animation: nv-pulse 1.8s ease-in-out infinite;
}

.replay-btn {
  cursor: pointer;
  background: none;
  border: 1px solid rgba(var(--line-rgb), .22);
  color: var(--muted);
  font-family: inherit;
  font-size: 11.5px;
  font-weight: 500;
  padding: 6px 12px;
  border-radius: 7px;
  white-space: nowrap;
}
.replay-btn:hover { color: var(--text); border-color: rgba(var(--line-rgb), .45); }

/* ---------- workflow ---------- */

.workflow {
  padding: clamp(72px, 10vw, 120px) 0 0;
  scroll-margin-top: 70px;
}

.workflow-steps {
  margin-top: 48px;
  max-width: 800px;
  display: flex;
  flex-direction: column;
}

/* wide screens: intro column left (sticky), timeline right */
@media (min-width: 1080px) {
  .workflow .container {
    display: grid;
    grid-template-columns: minmax(0, 5fr) minmax(0, 8fr);
    gap: clamp(32px, 5vw, 72px);
    align-items: start;
  }
  .workflow-intro {
    position: sticky;
    top: 92px;
  }
  .workflow-steps {
    margin-top: 6px;
    max-width: none;
  }
}

.workflow-step {
  display: flex;
  gap: clamp(14px, 3vw, 24px);
  padding-bottom: 36px;
}

.workflow-step:last-child { padding-bottom: 0; }

.workflow-marker {
  flex: none;
  display: flex;
  flex-direction: column;
  align-items: center;
}

.workflow-badge {
  width: 36px;
  height: 40px;
  flex: none;
  background: rgba(var(--cyan-rgb), .4);
  clip-path: polygon(50% 0, 100% 25%, 100% 75%, 50% 100%, 0 75%, 0 25%);
  display: grid;
  place-items: center;
}

.workflow-badge span {
  width: 33px;
  height: 37px;
  background: var(--bg-card);
  clip-path: polygon(50% 0, 100% 25%, 100% 75%, 50% 100%, 0 75%, 0 25%);
  display: grid;
  place-items: center;
  font-family: var(--font-mono);
  font-size: 11.5px;
  font-weight: 600;
  color: var(--cyan);
}

.workflow-line {
  flex: 1;
  width: 0;
  margin-top: 8px;
  border-left: 1.5px dashed rgba(115, 215, 242, .28);
}

.workflow-content { min-width: 0; padding-top: 2px; }

.workflow-content h3 {
  margin: 0;
  font-size: 17px;
  font-weight: 600;
  letter-spacing: -.01em;
}

.workflow-content p {
  margin: 7px 0 0;
  font-size: 14px;
  line-height: 1.65;
  color: var(--muted);
  max-width: 56ch;
  text-wrap: pretty;
}

.workflow-code {
  display: inline-block;
  max-width: 100%;
  overflow-x: auto;
  margin-top: 10px;
  font-family: var(--font-mono);
  font-size: 11.5px;
  color: var(--code-key);
  background: var(--bg-raised);
  border: 1px solid rgba(var(--line-rgb), .13);
  border-radius: 7px;
  padding: 7px 11px;
  white-space: nowrap;
}

/* ---------- pillars ---------- */

.pillars {
  margin-top: clamp(72px, 10vw, 120px);
  padding: clamp(64px, 8vw, 96px) 0;
  background: var(--bg-raised);
  border-top: 1px solid rgba(var(--line-rgb), .09);
  border-bottom: 1px solid rgba(var(--line-rgb), .09);
  scroll-margin-top: 70px;
}

.pillars .section-title { max-width: 640px; }
.pillars .section-sub { max-width: 620px; }

.pillar-grid {
  margin-top: 44px;
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(min(100%, 310px), 1fr));
  gap: 16px;
}

.pillar-card {
  background: var(--bg-card);
  border: 1px solid rgba(var(--line-rgb), .12);
  border-radius: 12px;
  padding: 24px 24px 26px;
}

.pillar-card .hex { width: 11px; height: 12px; display: block; }

.pillar-card h3 {
  margin: 14px 0 0;
  font-size: 16px;
  font-weight: 600;
  letter-spacing: -.01em;
}

.pillar-card p {
  margin: 8px 0 0;
  font-size: 13.5px;
  line-height: 1.65;
  color: var(--muted);
  text-wrap: pretty;
}

.pillar-row {
  margin-top: 16px;
  display: flex;
  flex-wrap: wrap;
  gap: 16px;
  align-items: stretch;
}

.pillar-wide {
  flex: 1.6 1 460px;
  min-width: 0;
  background: var(--bg-card);
  border: 1px solid rgba(var(--line-rgb), .12);
  border-radius: 12px;
  overflow: hidden;
  display: flex;
  flex-wrap: wrap;
  align-items: stretch;
}

.pillar-wide-copy {
  flex: 1.3 1 300px;
  min-width: 0;
  padding: 24px 24px 26px;
  display: flex;
  flex-direction: column;
  justify-content: center;
}

.pillar-wide-copy .hex { width: 11px; height: 12px; display: block; }

.pillar-wide-copy h3 {
  margin: 14px 0 0;
  font-size: 16px;
  font-weight: 600;
  letter-spacing: -.01em;
}

.pillar-wide-copy p {
  margin: 8px 0 0;
  font-size: 13.5px;
  line-height: 1.65;
  color: var(--muted);
  text-wrap: pretty;
}

.pillar-wide-visual {
  flex: 1 1 260px;
  min-width: 0;
  position: relative;
  min-height: 250px;
}

.pillar-wide-visual img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center 60%;
}

.pillar-wide-visual .visual-fade {
  position: absolute;
  inset: 0;
  background:
    linear-gradient(90deg, var(--bg-card) 0%, rgba(8,21,34,0) 34%),
    linear-gradient(180deg, var(--bg-card) 0%, rgba(8,21,34,0) 26%);
  pointer-events: none;
}

.pillar-stack {
  flex: 1 1 300px;
  min-width: 0;
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.pillar-stack .pillar-card { flex: 1; }

/* ---------- developers ---------- */

.developers {
  padding: clamp(72px, 10vw, 120px) 0 0;
  scroll-margin-top: 70px;
}

.developers .container {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(min(100%, 420px), 1fr));
  gap: clamp(28px, 4vw, 56px);
  align-items: start;
}

.dev-points {
  margin: 26px 0 0;
  padding: 0;
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 18px;
}

.dev-points li { display: flex; gap: 12px; }

.dev-points .hex { width: 9px; height: 10px; margin-top: 5px; }

.dev-points p {
  margin: 0;
  font-size: 14px;
  line-height: 1.6;
  color: var(--muted);
  text-wrap: pretty;
}

.dev-points strong { color: var(--text); font-weight: 600; }

.code-panel {
  background: var(--bg-raised);
  border: 1px solid rgba(var(--line-rgb), .13);
  border-radius: 12px;
  overflow: hidden;
  min-width: 0;
}

.code-tabs {
  display: flex;
  gap: 6px;
  flex-wrap: wrap;
  padding: 10px 12px;
  border-bottom: 1px solid rgba(var(--line-rgb), .1);
}

.code-tab {
  cursor: pointer;
  font-family: inherit;
  font-size: 11.5px;
  font-weight: 600;
  padding: 5px 12px;
  border-radius: 99px;
  border: 1px solid rgba(var(--line-rgb), .2);
  white-space: nowrap;
  background: transparent;
  color: var(--muted);
}

.code-tab.active {
  background: rgba(var(--cyan-rgb), .14);
  color: var(--code-string);
  border-color: rgba(var(--cyan-rgb), .4);
}

.code-sample {
  margin: 0;
  padding: 18px 20px;
  font-family: var(--font-mono);
  font-size: 12.5px;
  line-height: 1.75;
  color: var(--code-plain);
  overflow-x: auto;
  min-height: 336px;
}

.code-sample.envelope { color: var(--code-base); }

.code-panel-note {
  padding: 11px 20px;
  border-top: 1px solid rgba(var(--line-rgb), .1);
  font-size: 12px;
  line-height: 1.6;
  color: var(--dim);
}

[hidden] { display: none !important; }

/* ---------- pricing ---------- */

.pricing {
  padding: clamp(72px, 10vw, 120px) 0 0;
  scroll-margin-top: 70px;
}

.pricing .container {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
}

.pricing .section-title { max-width: 560px; }
.pricing .section-sub { max-width: 540px; }

.pricing-banner {
  margin-top: 40px;
  width: 100%;
  max-width: 800px;
  border-radius: 14px;
  border: 1px solid rgba(var(--line-rgb), .14);
  overflow: hidden;
  position: relative;
}

.pricing-banner img {
  width: 100%;
  aspect-ratio: 21 / 8;
  object-fit: cover;
  object-position: center 42%;
}

.pricing-banner .banner-shade {
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, rgba(3,11,20,.3) 0%, rgba(3,11,20,0) 38%, rgba(3,11,20,.5) 100%);
  pointer-events: none;
}

.pricing-banner .banner-tag {
  position: absolute;
  left: 14px;
  bottom: 12px;
  font-family: var(--font-mono);
  font-size: 11px;
  color: var(--code-plain);
  background: rgba(3, 11, 20, .6);
  border: 1px solid rgba(var(--line-rgb), .22);
  border-radius: 99px;
  padding: 4px 12px;
  white-space: nowrap;
  backdrop-filter: blur(4px);
}

.plan-grid {
  margin-top: 24px;
  width: 100%;
  max-width: 800px;
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(min(100%, 290px), 1fr));
  gap: 18px;
  text-align: left;
}

.plan-card {
  background: var(--bg-raised);
  border: 1px solid rgba(var(--line-rgb), .14);
  border-radius: 14px;
  padding: 28px;
  display: flex;
  flex-direction: column;
}

.plan-card.plan-featured {
  border-color: rgba(var(--cyan-rgb), .42);
  box-shadow: 0 24px 60px -34px rgba(var(--cyan-rgb), .35);
}

.plan-head {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 10px;
}

.plan-head h3 { margin: 0; font-size: 16px; font-weight: 600; }
.plan-featured .plan-head h3 { color: var(--cyan); }
.plan-head .plan-for { font-size: 11px; color: var(--dim); }

.plan-price {
  margin-top: 14px;
  display: flex;
  align-items: baseline;
  gap: 6px;
}

.plan-price .price-amount {
  font-size: 34px;
  font-weight: 650;
  letter-spacing: -.02em;
  font-variant-numeric: tabular-nums;
}

.plan-price .price-period { font-size: 13px; color: var(--muted); }

.plan-features {
  margin: 22px 0 0;
  padding: 0;
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 11px;
}

.plan-features li {
  display: flex;
  gap: 10px;
  font-size: 13.5px;
  line-height: 1.5;
  color: var(--muted);
}

.plan-features .hex { width: 8px; height: 9px; margin-top: 4px; }
.plan-features strong { color: var(--text); font-weight: 600; }

.plan-cta {
  margin-top: 26px;
  text-align: center;
  text-decoration: none;
  font-size: 14px;
  font-weight: 600;
  padding: 11px 18px;
  border-radius: 9px;
  white-space: nowrap;
}

.plan-cta.cta-ghost {
  color: var(--text);
  border: 1px solid rgba(var(--line-rgb), .28);
}
.plan-cta.cta-ghost:hover {
  border-color: rgba(var(--line-rgb), .55);
  background: rgba(var(--line-rgb), .07);
}

.plan-cta.cta-primary {
  background: var(--cyan);
  color: var(--cyan-ink);
  padding: 12px 18px;
}
.plan-cta.cta-primary:hover { background: var(--cyan-bright); }

.pricing-contact { margin: 22px 0 0; font-size: 13px; color: var(--dim); }
.pricing-contact a { color: var(--cyan); text-decoration: none; }
.pricing-contact a:hover { text-decoration: underline; }

/* ---------- final CTA ---------- */

.final-cta { padding: clamp(80px, 11vw, 140px) 0; }

.final-cta .container {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
}

.final-cta .cta-symbol { height: 52px; width: auto; }

.final-cta h2 {
  margin: 26px 0 0;
  font-size: clamp(28px, 4.2vw, 42px);
  line-height: 1.12;
  letter-spacing: -.028em;
  font-weight: 650;
  max-width: 600px;
  text-wrap: balance;
}

.final-cta p {
  margin: 16px 0 0;
  max-width: 520px;
  font-size: 15.5px;
  line-height: 1.65;
  color: var(--muted);
  text-wrap: pretty;
}

.final-cta .cta-actions {
  margin-top: 30px;
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  justify-content: center;
}

/* ---------- footer ---------- */

.site-footer { border-top: 1px solid rgba(var(--line-rgb), .1); }

.site-footer .container {
  padding-top: 30px;
  padding-bottom: 30px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 18px;
}

.footer-brand { display: flex; align-items: center; gap: 10px; }
.footer-brand .brand-symbol { height: 22px; width: auto; }
.footer-brand .brand-wordmark { height: 12px; width: auto; margin-top: 1px; }
.footer-brand .footer-copyright { margin-left: 8px; font-size: 12px; color: var(--faint); }

.footer-links {
  display: flex;
  align-items: center;
  gap: 20px;
  flex-wrap: wrap;
}

.footer-links a {
  color: var(--muted);
  text-decoration: none;
  font-size: 13px;
}
.footer-links a:hover { color: var(--text); }
