:root {
  --bg: #f7f9fa;
  --bg-alt: #eef3f4;
  --surface: #ffffff;
  --text: #13202a;
  --muted: #55656f;
  --line: #d9e2e6;
  --accent: #0f8a7e;
  --accent-2: #2f6fd6;
  --accent-text: #ffffff;
  --glow-1: rgb(15 138 126 / 0.18);
  --glow-2: rgb(47 111 214 / 0.14);
  --term-bg: #0e1a1f;
  --term-text: #d6e4e8;
  --term-dim: #7b9098;
  --term-ok: #4fd1a5;
  --term-acc: #f5b651;
  --shadow: 0 1px 2px rgb(16 32 42 / 0.06), 0 12px 32px -16px rgb(16 32 42 / 0.18);
  --radius: 14px;
  --mono: ui-monospace, "SF Mono", "Cascadia Code", Menlo, Consolas, monospace;
  color-scheme: light;
}
@media (prefers-color-scheme: dark) {
  :root {
    --bg: #0b1418;
    --bg-alt: #0f1b20;
    --surface: #12212a;
    --text: #e3edf0;
    --muted: #93a6ae;
    --line: #22343c;
    --accent: #3cc2b1;
    --accent-2: #6f9cf0;
    --accent-text: #062723;
    --glow-1: rgb(60 194 177 / 0.16);
    --glow-2: rgb(111 156 240 / 0.12);
    --term-bg: #071013;
    --shadow: 0 1px 2px rgb(0 0 0 / 0.3), 0 16px 40px -20px rgb(0 0 0 / 0.6);
    color-scheme: dark;
  }
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font: 16px/1.6 system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
  -webkit-font-smoothing: antialiased;
}
a { color: var(--accent); }
code {
  font-family: var(--mono);
  font-size: 0.88em;
  background: var(--bg-alt);
  border: 1px solid var(--line);
  border-radius: 5px;
  padding: 0.05em 0.35em;
  white-space: nowrap;
}
h1, h2, h3 { line-height: 1.2; letter-spacing: -0.02em; margin: 0 0 0.5em; }
h1 { font-size: clamp(2.2rem, 5.5vw, 3.6rem); max-width: 14ch; }
h1.h-wide { max-width: 20ch; }
.h-section { font-size: clamp(1.6rem, 3.4vw, 2.3rem); }
h3 { font-size: 1.12rem; }

.wrap { width: min(1080px, 100% - 32px); margin-inline: auto; }
.eyebrow {
  display: flex; align-items: center; gap: 8px;
  margin: 0 0 14px;
  color: var(--accent);
  font-size: 0.82rem; font-weight: 650; letter-spacing: 0.08em; text-transform: uppercase;
}

/* Nav */
.nav {
  position: sticky; top: 0; z-index: 20;
  background: color-mix(in srgb, var(--bg) 86%, transparent);
  backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--line);
}
.nav-inner { display: flex; align-items: center; gap: 28px; height: 62px; }
.nav-inner > .btn { margin-left: auto; }
.brand { display: flex; align-items: center; gap: 10px; color: var(--text); text-decoration: none; font-weight: 650; font-size: 1.05rem; }
.logo { width: 28px; height: 28px; flex: none; }
.logo-bg { fill: var(--accent); }
.logo-brick { fill: var(--accent-text); }

.nav-menu { display: flex; align-items: center; gap: 22px; font-size: 0.95rem; }
.nav-menu > a, .menu summary { color: var(--muted); text-decoration: none; cursor: pointer; }
.nav-menu > a:hover, .menu summary:hover, .menu[open] summary { color: var(--text); }
.menu { position: relative; }
.menu summary { list-style: none; display: flex; align-items: center; gap: 6px; }
.menu summary::-webkit-details-marker { display: none; }
.menu summary::after {
  content: ""; width: 6px; height: 6px; margin-top: -3px;
  border-right: 1.5px solid currentColor; border-bottom: 1.5px solid currentColor;
  transform: rotate(45deg); transition: transform 0.15s ease;
}
.menu[open] summary::after { transform: rotate(225deg); margin-top: 3px; }
.menu-panel {
  position: absolute; top: calc(100% + 14px); left: -14px;
  width: 320px; padding: 8px;
  background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius);
  box-shadow: var(--shadow);
}
.menu-item {
  display: flex; gap: 12px; align-items: flex-start;
  padding: 12px; border-radius: 10px;
  color: var(--text); text-decoration: none;
}
.menu-item:hover, .menu-item:focus-visible { background: var(--bg-alt); }
.menu-item b { display: block; font-weight: 650; }
.menu-item small { display: block; color: var(--muted); font-size: 0.86rem; }

/* Product icon: a gradient tile with a stroked 24x24 SVG (products.json "icon") */
.p-icon {
  display: inline-grid; place-items: center; flex: none;
  width: 22px; height: 22px; border-radius: 7px;
  background: linear-gradient(135deg, var(--accent), var(--accent-2));
}
.p-icon svg { width: 70%; height: 70%; fill: none; stroke: var(--accent-text); stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }
.menu-item .p-icon, .console-row .p-icon { width: 34px; height: 34px; border-radius: 9px; }
.p-icon-lg { width: 46px; height: 46px; border-radius: 12px; }

/* Buttons */
.btn {
  display: inline-block;
  padding: 0.75em 1.35em;
  border-radius: 999px;
  background: var(--accent);
  color: var(--accent-text);
  font-weight: 600;
  text-decoration: none;
  border: 1px solid var(--accent);
  transition: transform 0.15s ease, filter 0.15s ease;
}
.btn:hover { filter: brightness(1.08); transform: translateY(-1px); }
.btn:focus-visible, .copy:focus-visible, .product:focus-visible, .menu summary:focus-visible {
  outline: 3px solid color-mix(in srgb, var(--accent) 45%, transparent); outline-offset: 3px;
}
.btn-ghost { background: transparent; color: var(--text); border-color: var(--line); }
.btn-small { padding: 0.45em 1.05em; font-size: 0.92rem; }

/* Hero */
.hero { position: relative; padding: clamp(56px, 10vw, 104px) 0 56px; overflow: hidden; }
.hero .wrap { position: relative; }
.hero-glow {
  position: absolute; inset: -40% -10% auto; height: 120%;
  background:
    radial-gradient(40% 50% at 25% 40%, var(--glow-1), transparent 70%),
    radial-gradient(35% 45% at 75% 30%, var(--glow-2), transparent 70%);
  pointer-events: none;
}
.hero-platform { padding-bottom: clamp(64px, 10vw, 112px); }
.lede { font-size: clamp(1.05rem, 2vw, 1.22rem); color: var(--muted); max-width: 60ch; margin: 0 0 1.7em; }
.cta-row { display: flex; flex-wrap: wrap; gap: 12px; margin-bottom: 48px; }
.hero-platform .cta-row { margin-bottom: 0; }

.term {
  margin: 0;
  background: var(--term-bg);
  color: var(--term-text);
  border-radius: var(--radius);
  box-shadow: 0 24px 60px -24px rgb(0 0 0 / 0.45);
  overflow: hidden;
}
.term-bar { display: flex; gap: 7px; padding: 12px 14px; border-bottom: 1px solid rgb(255 255 255 / 0.06); }
.term-bar span { width: 11px; height: 11px; border-radius: 50%; background: #2a3a41; }
.term pre { margin: 0; padding: 18px 20px 22px; font: 0.86rem/1.7 var(--mono); overflow-x: auto; }
.t-dim { color: var(--term-dim); }
.t-ok { color: var(--term-ok); }
.t-acc { color: var(--term-acc); }

/* Sections */
.section { padding: clamp(60px, 8vw, 96px) 0; }
.section-alt { background: var(--bg-alt); border-block: 1px solid var(--line); }
.section-head { margin-bottom: 32px; }

/* Product card */
.product {
  display: grid; grid-template-columns: 1.1fr 1fr; gap: 32px; align-items: center;
  padding: clamp(24px, 4vw, 40px);
  background: var(--surface); border: 1px solid var(--line); border-radius: calc(var(--radius) + 4px);
  box-shadow: var(--shadow);
  color: var(--text); text-decoration: none;
  transition: border-color 0.15s ease, transform 0.15s ease;
}
.product:hover { border-color: color-mix(in srgb, var(--accent) 55%, var(--line)); transform: translateY(-2px); }
.product h3 { font-size: 1.5rem; }
.product p { color: var(--muted); margin: 0 0 18px; max-width: 52ch; }
.tags { display: flex; flex-wrap: wrap; gap: 8px; list-style: none; padding: 0; margin: 0 0 22px; }
.tags li {
  font-size: 0.82rem; padding: 4px 10px; border-radius: 999px;
  background: var(--bg-alt); border: 1px solid var(--line); color: var(--muted);
}
.more { color: var(--accent); font-weight: 600; }
.product:hover .more span { margin-left: 4px; }
.more span { transition: margin 0.15s ease; }

.product-visual {
  align-self: stretch; display: grid; place-items: center;
  min-height: 220px; padding: 24px;
  border-radius: var(--radius);
  background:
    radial-gradient(60% 70% at 50% 50%, var(--glow-1), transparent 75%),
    var(--bg-alt);
  border: 1px solid var(--line);
}
.route { display: flex; flex-direction: column; align-items: center; width: 100%; max-width: 280px; }
.node {
  width: 100%; padding: 10px 14px; text-align: center;
  background: var(--surface); border: 1px solid var(--line); border-radius: 10px;
  font: 600 0.9rem var(--mono);
}
.node small { display: block; font: 0.78rem system-ui, sans-serif; color: var(--muted); }
.node-accent { border-color: var(--accent); box-shadow: 0 0 0 4px color-mix(in srgb, var(--accent) 16%, transparent); }
.wire {
  width: 2px; height: 26px;
  background: repeating-linear-gradient(to bottom, var(--accent) 0 5px, transparent 5px 9px);
  background-size: 2px 18px;
  animation: flow 1.2s linear infinite;
}
@keyframes flow { to { background-position: 0 18px; } }
.soon { color: var(--muted); margin: 20px 0 0; font-size: 0.95rem; }

/* Platform pillars and tunnel features */
.pillars, .features {
  display: grid; gap: 16px;
  grid-template-columns: repeat(auto-fit, minmax(230px, 1fr));
}
.features { grid-template-columns: repeat(auto-fit, minmax(260px, 1fr)); }
.pillars article, .features article {
  background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius);
  padding: 22px 22px 18px;
}
.pillars p, .features p { margin: 0; color: var(--muted); }


/* Tunnel: get started */
.start { max-width: 720px; }
.steps { padding-left: 1.3em; margin: 0 0 28px; }
.steps li { margin-bottom: 0.5em; }
.steps li::marker { color: var(--accent); font-weight: 700; }
.code-card { background: var(--term-bg); color: var(--term-text); border-radius: var(--radius); overflow: hidden; }
.code-head {
  display: flex; justify-content: space-between; align-items: center;
  padding: 8px 10px 8px 16px;
  font: 0.8rem var(--mono); color: var(--term-dim);
  border-bottom: 1px solid rgb(255 255 255 / 0.06);
}
.code-card pre { margin: 0; padding: 16px 18px; font: 0.88rem/1.65 var(--mono); overflow-x: auto; }
.code-card code { background: none; border: 0; padding: 0; font-size: inherit; white-space: pre; color: inherit; }
.copy {
  font: 600 0.78rem system-ui, sans-serif;
  color: var(--term-text);
  background: rgb(255 255 255 / 0.08);
  border: 1px solid rgb(255 255 255 / 0.12);
  border-radius: 6px; padding: 4px 10px; cursor: pointer;
}
.copy:hover { background: rgb(255 255 255 / 0.14); }
.note { color: var(--muted); margin: 24px 0 0; }

/* Footer */
.footer { padding: 48px 0; border-top: 1px solid var(--line); font-size: 0.92rem; }
.footer-grid { display: grid; grid-template-columns: 2fr 1fr 1fr; gap: 24px; }
.footer h4 { margin: 4px 0 10px; font-size: 0.82rem; text-transform: uppercase; letter-spacing: 0.08em; color: var(--muted); }
.footer ul { list-style: none; padding: 0; margin: 0; }
.footer li { margin-bottom: 6px; }
.footer li a { color: var(--text); text-decoration: none; }
.footer li a:hover { color: var(--accent); }
.footer-note { color: var(--muted); margin: 12px 0 0; }

/* 404 */
.lost { min-height: 70vh; display: grid; place-content: center; text-align: center; padding: 48px 16px; }
.lost h1 { max-width: none; margin-inline: auto; }
.lost p { color: var(--muted); }

@media (max-width: 760px) {
  .product { grid-template-columns: 1fr; }
  .nav-menu > a { display: none; }
  .footer-grid { grid-template-columns: 1fr 1fr; }
  .footer-grid > :first-child { grid-column: 1 / -1; }
}
@media (max-width: 560px) {
  .term pre { font-size: 0.74rem; padding: 14px; }
  .btn-small { display: none; }
  .menu-panel { width: min(320px, calc(100vw - 32px)); }
}
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .btn, .product, .more span { transition: none; }
  .wire { animation: none; }
}

/* --- Catalog, account panel and platform extras --- */
.section-lede { color: var(--muted); max-width: 62ch; margin: 0; font-size: 1.05rem; }
.menu-label { margin: 6px 12px 4px; font-size: 0.72rem; font-weight: 650; letter-spacing: 0.08em; text-transform: uppercase; color: var(--muted); }
.menu-item b { display: flex; align-items: center; gap: 8px; }

.badge {
  display: inline-block; flex: none;
  font: 650 0.7rem/1 system-ui, sans-serif; letter-spacing: 0.04em; text-transform: uppercase;
  padding: 5px 8px; border-radius: 999px; border: 1px solid transparent;
}
.badge-on { color: var(--accent); background: color-mix(in srgb, var(--accent) 12%, transparent); border-color: color-mix(in srgb, var(--accent) 30%, transparent); }
.badge-beta { color: var(--accent-2); background: color-mix(in srgb, var(--accent-2) 12%, transparent); border-color: color-mix(in srgb, var(--accent-2) 30%, transparent); }
.badge-soon { color: var(--muted); background: var(--bg-alt); border-color: var(--line); }

.catalog { display: grid; gap: 16px; }
.catalog-many { grid-template-columns: repeat(auto-fill, minmax(300px, 1fr)); }
.catalog-many .product-featured { grid-column: 1 / -1; }
.product:not(.product-featured) { grid-template-columns: 1fr; }
.product-top { display: flex; align-items: center; justify-content: space-between; margin-bottom: 18px; }
.product-cat { margin: 0 0 4px !important; font-size: 0.8rem; font-weight: 600; letter-spacing: 0.06em; text-transform: uppercase; color: var(--muted); }

.split { display: grid; grid-template-columns: 1fr 1fr; gap: clamp(32px, 6vw, 72px); align-items: center; }
.checks { list-style: none; padding: 0; margin: 24px 0 0; }
.checks li { position: relative; padding-left: 28px; margin-bottom: 10px; }
.checks li::before {
  content: ""; position: absolute; left: 2px; top: 0.45em; width: 12px; height: 7px;
  border-left: 2px solid var(--accent); border-bottom: 2px solid var(--accent); transform: rotate(-45deg);
}
.fine { color: var(--muted); font-size: 0.9rem; margin: 20px 0 0; }

.console {
  background: var(--surface); border: 1px solid var(--line); border-radius: calc(var(--radius) + 4px);
  box-shadow: var(--shadow); overflow: hidden;
}
.console-head {
  display: flex; align-items: center; gap: 14px;
  padding: 12px 16px; border-bottom: 1px solid var(--line);
  font-size: 0.88rem; font-weight: 600; color: var(--muted); background: var(--bg-alt);
}
.console-dots { display: flex; gap: 6px; }
.console-dots i { width: 10px; height: 10px; border-radius: 50%; background: var(--line); }
.console-list { list-style: none; margin: 0; padding: 8px; }
.console-row { display: flex; align-items: center; gap: 14px; padding: 12px; border-radius: 10px; }
.console-row + .console-row { border-top: 1px solid var(--line); border-radius: 0; }
.console-name { flex: 1; min-width: 0; }
.console-name b { display: block; }
.console-name small { display: block; color: var(--muted); font-size: 0.86rem; }
.console-more { justify-content: center; color: var(--muted); font-size: 0.9rem; border: 1px dashed var(--line) !important; border-radius: 10px !important; margin-top: 8px; }
.add { font-size: 0.85rem; font-weight: 600; color: var(--accent); padding: 5px 12px; border: 1px solid var(--line); border-radius: 999px; }

.hero-grid {
  position: absolute; inset: 0;
  background-image:
    linear-gradient(var(--line) 1px, transparent 1px),
    linear-gradient(90deg, var(--line) 1px, transparent 1px);
  background-size: 48px 48px;
  mask-image: radial-gradient(70% 60% at 50% 30%, #000, transparent 75%);
  opacity: 0.5;
  pointer-events: none;
}

.pillar-icon {
  display: inline-block; margin-bottom: 14px;
  font: 700 0.8rem var(--mono); color: var(--accent);
  padding: 4px 8px; border-radius: 6px; background: color-mix(in srgb, var(--accent) 10%, transparent);
}

.cta-band { padding: 0 0 clamp(60px, 8vw, 96px); }
.cta-card {
  display: flex; align-items: center; justify-content: space-between; gap: 24px; flex-wrap: wrap;
  padding: clamp(28px, 5vw, 48px);
  border-radius: calc(var(--radius) + 6px);
  background:
    radial-gradient(60% 120% at 0% 0%, var(--glow-1), transparent 70%),
    radial-gradient(60% 120% at 100% 100%, var(--glow-2), transparent 70%),
    var(--surface);
  border: 1px solid var(--line);
}
.cta-card h2 { margin-bottom: 0.25em; }
.cta-card p { margin: 0; color: var(--muted); }

.footer-base { margin-top: 32px; padding-top: 20px; border-top: 1px solid var(--line); color: var(--muted); font-size: 0.85rem; }

@media (max-width: 860px) {
  .split { grid-template-columns: 1fr; }
}
