@import url('https://fonts.googleapis.com/css2?family=Inter:wght@400;500;600&family=Space+Grotesk:wght@500;600;700&display=swap');

:root {
  --bg: #0b0b0d;
  --surface: #121316;
  --surface-2: #17181c;
  --border: #26282e;
  --border-2: #34373e;
  --text: #f1f2f4;
  --text-2: #b9bcc4;
  --muted: #8a8e97;
  --dim: #5a5e67;
  --accent: #f5a623;
  --accent-2: #ffbf52;
  --accent-soft: rgba(245, 166, 35, .08);
  --ok: #9ad3a8;
  --bad: #e5533d;
  --max: 1140px;
  --sans: Inter, system-ui, -apple-system, sans-serif;
  --display: "Space Grotesk", Inter, sans-serif;
  --mono: ui-monospace, "SF Mono", "JetBrains Mono", Menlo, Consolas, monospace;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  overflow-x: clip;
  background: var(--bg);
  color: var(--text);
  font-family: var(--sans);
  font-size: 16px;
  line-height: 1.55;
  -webkit-font-smoothing: antialiased;
}
a { color: inherit; text-decoration: none; }
p { margin: 0; }
h1, h2, h3 {
  font-family: var(--display);
  margin: 0;
  line-height: 1.05;
  letter-spacing: -.03em;
  font-weight: 600;
}
h2 { font-size: clamp(30px, 3.6vw, 44px); }
h3 { font-size: 24px; }
em { font-style: italic; }

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

/* ---------- eyebrow / section heads ---------- */
.eyebrow {
  color: var(--accent);
  font-size: 11px;
  letter-spacing: .22em;
  text-transform: uppercase;
  font-weight: 600;
  margin-bottom: 16px;
}
.section-head { max-width: 640px; margin-bottom: 40px; }
.section-head p:not(.eyebrow) { color: var(--text-2); margin-top: 16px; font-size: 17px; }

/* ---------- nav ---------- */
.nav-wrap {
  position: sticky;
  top: 0;
  z-index: 20;
  background: rgba(11, 11, 13, .82);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--border);
}
.nav {
  height: 72px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
}
.brand { display: flex; align-items: center; }
.brand-logo { height: 34px; width: auto; display: block; }
.links { display: flex; gap: 26px; color: var(--text-2); font-size: 14px; }
.links a:hover { color: #fff; }
.nav-actions { display: flex; gap: 8px; align-items: center; }

/* ---------- buttons ---------- */
.button {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  border-radius: 8px;
  padding: 12px 18px;
  font-weight: 600;
  font-size: 14px;
  border: 1px solid var(--border-2);
  transition: border-color .15s ease, background .15s ease, transform .15s ease;
  white-space: nowrap;
  cursor: pointer;
}
.button.small { padding: 8px 13px; font-size: 13px; }
.button.primary { background: var(--accent); color: #141006; border-color: transparent; }
.button.primary:hover { background: var(--accent-2); }
.button.secondary, .button.ghost { background: transparent; color: var(--text); }
.button.secondary:hover, .button.ghost:hover { border-color: #4a4e57; background: rgba(255,255,255,.03); }

/* ---------- hero ---------- */
.hero {
  display: grid;
  grid-template-columns: 1.05fr .95fr;
  align-items: center;
  gap: 56px;
  padding: 80px 0 96px;
  position: relative;
}
.hero::before {
  content: "";
  position: absolute;
  inset: -68px calc(50% - 50vw) 0;
  z-index: -1;
  background-image: radial-gradient(var(--border-2) 1px, transparent 1px);
  background-size: 22px 22px;
  -webkit-mask-image: linear-gradient(180deg, rgba(0,0,0,.6), transparent 85%);
  mask-image: linear-gradient(180deg, rgba(0,0,0,.6), transparent 85%);
  pointer-events: none;
}
h1 { font-size: clamp(56px, 7vw, 96px); font-weight: 700; }
h1 span { color: var(--accent); }
.lead { color: var(--text-2); font-size: 18px; max-width: 540px; margin: 28px 0 32px; }
.hero-actions { display: flex; gap: 10px; flex-wrap: wrap; }
.facts {
  list-style: none;
  padding: 0;
  margin: 40px 0 0;
  display: grid;
  gap: 8px;
  color: var(--muted);
  font-size: 13.5px;
}
.facts li::before { content: ""; display: inline-block; width: 6px; height: 6px; background: var(--accent); border-radius: 1px; margin-right: 12px; vertical-align: 2px; }
.hero-visual { min-width: 0; }
.hero-caption { color: var(--dim); font-size: 12px; letter-spacing: .12em; text-transform: uppercase; margin-top: 14px; text-align: right; }

/* ---------- terminal (hero + developers) ---------- */
.terminal {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 12px;
  overflow: hidden;
  box-shadow: 0 30px 60px -30px rgba(0,0,0,.8);
}
.terminal-bar {
  height: 38px;
  border-bottom: 1px solid var(--border);
  display: flex;
  align-items: center;
  gap: 7px;
  padding: 0 14px;
  background: var(--surface-2);
}
.terminal-bar span { width: 9px; height: 9px; border-radius: 50%; background: #3a3d45; }
.terminal-bar em { margin-left: auto; font-style: normal; color: var(--dim); font-size: 11.5px; font-family: var(--mono); }
.terminal pre {
  margin: 0;
  padding: 22px 24px;
  overflow-x: auto;
  font-family: var(--mono);
  font-size: 13px;
  line-height: 1.75;
  color: #d9dbe0;
}
.terminal code b { font-weight: 500; }
.terminal code i { font-style: normal; color: var(--muted); }
.terminal .p { color: var(--accent); }
.terminal .c { color: var(--dim); }
.terminal .k { color: var(--accent-2); }
.terminal .s { color: #a9b4c9; }
.terminal .v { color: #e6c07b; }
.terminal .n { color: #9ad3a8; }

/* ---------- products ---------- */
.product-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 20px; }
.card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 14px;
}
.product { display: flex; flex-direction: column; overflow: hidden; }
.product-body { padding: 26px 34px 34px; display: flex; flex-direction: column; flex: 1; }
.product-visual {
  background: var(--bg);
  background-image: radial-gradient(var(--border) .8px, transparent .8px);
  background-size: 16px 16px;
  border-bottom: 1px solid var(--border);
  padding: 18px 20px 12px;
}
.viz { display: block; width: 100%; height: auto; font-family: var(--sans); }
.viz .routes use { fill: none; stroke: var(--border-2); stroke-width: 1.2; }
.viz .node rect { fill: var(--surface-2); stroke: var(--border-2); stroke-width: 1; }
.viz .node text { fill: var(--text-2); font-size: 11px; text-anchor: middle; font-weight: 500; }
.viz .node.hot rect { fill: var(--accent-soft); stroke: rgba(245,166,35,.6); }
.viz .node.hot text { fill: var(--text); font-weight: 600; font-size: 12px; }
.viz .node.hot .tiny { fill: var(--muted); font-size: 8.5px; font-weight: 500; letter-spacing: .04em; }
.viz .ring { fill: none; stroke: var(--accent); stroke-width: 1; opacity: 0; animation: ring 2.4s ease-out infinite; transform-box: fill-box; transform-origin: center; }
.viz .pkt { fill: var(--accent); }
.viz .pkt.out { fill: var(--ok); }
.viz .pkt.bad { fill: var(--bad); }
.viz .deny { fill: var(--bad); font-size: 13px; font-weight: 700; opacity: 0; }
@keyframes ring {
  0%   { transform: scale(.9); opacity: 0; }
  20%  { opacity: .55; }
  100% { transform: scale(1.5); opacity: 0; }
}
.kicker {
  display: flex; align-items: center; gap: 8px;
  font-size: 11px; color: var(--muted); letter-spacing: .18em; text-transform: uppercase; font-weight: 600; margin-bottom: 10px;
}
.kicker img { width: 16px; height: 16px; }
.product h3 { font-size: 26px; margin-bottom: 14px; }
.product-lead { color: var(--text-2); font-size: 15.5px; }
.product ul { list-style: none; padding: 0; margin: 26px 0 28px; }
.product li {
  padding: 9px 0;
  border-top: 1px solid var(--border);
  color: var(--text-2);
  font-size: 14px;
  padding-left: 18px;
  position: relative;
}
.product li::before { content: "—"; position: absolute; left: 0; color: var(--accent); }
.product-link { margin-top: auto; font-weight: 600; font-size: 14px; }
.product-link span { color: var(--accent); margin-left: 4px; }

/* ---------- how they fit ---------- */
.band {
  border-top: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
  background: linear-gradient(180deg, rgba(255,255,255,.015), transparent);
  padding: 88px 0;
}
.fit-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 20px; }
.fit-diagram {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 14px;
  padding: 26px 28px 24px;
}
.fit-label { font-family: var(--display); font-weight: 600; font-size: 15px; margin-bottom: 20px; }
.fit-note { color: var(--muted); font-size: 13.5px; margin-top: 20px; }
.flow { display: flex; align-items: center; gap: 12px; flex-wrap: nowrap; }
.node {
  border: 1px solid var(--border-2);
  background: var(--surface-2);
  color: var(--text-2);
  padding: 12px 14px;
  border-radius: 8px;
  font-size: 12.5px;
  font-weight: 500;
  text-align: center;
  line-height: 1.25;
  white-space: nowrap;
}
.node.hot { border-color: rgba(245,166,35,.55); color: var(--text); background: rgba(245,166,35,.06); font-weight: 600; }
.node.sm { padding: 7px 10px; font-size: 11.5px; white-space: nowrap; }
.arrow { flex: 0 0 28px; width: 28px; height: 8px; overflow: visible; }
.arrow line { stroke: var(--border-2); stroke-width: 1.2; stroke-dasharray: 3 3; animation: dash .9s linear infinite; }
.arrow path { fill: none; stroke: var(--border-2); stroke-width: 1.2; stroke-linecap: round; stroke-linejoin: round; }
@keyframes dash { to { stroke-dashoffset: -6; } }
.fanin .sources { display: grid; gap: 6px; }

/* ---------- developers ---------- */
.dev { display: grid; grid-template-columns: 1.15fr .85fr; gap: 56px; align-items: center; }
.dev-copy p:not(.eyebrow) { color: var(--text-2); margin-top: 16px; font-size: 16px; }
.dev-copy h2 { margin-bottom: 4px; }

/* ---------- tiers ---------- */
.tier-product { margin-bottom: 40px; }
.tier-product-head { display: flex; align-items: baseline; gap: 14px; margin-bottom: 14px; flex-wrap: wrap; }
.tier-product-title { font-size: 22px; }
.tier-product-tag { color: var(--accent); font-size: 11px; letter-spacing: .16em; text-transform: uppercase; font-weight: 600; }
.tier-table-wrap { background: var(--surface); border: 1px solid var(--border); border-radius: 14px; overflow-x: auto; margin-bottom: 16px; }
.tier-table { width: 100%; min-width: 700px; border-collapse: collapse; font-size: 13px; }
.tier-table th {
  text-align: center;
  font-size: 11px;
  text-transform: uppercase;
  letter-spacing: .08em;
  color: var(--text);
  font-weight: 600;
  padding: 16px 10px 12px;
  border-bottom: 1px solid var(--border);
  vertical-align: top;
}
.tier-table th:first-child { text-align: left; }
.tier-table th:last-child, .tier-table td:last-child { background: rgba(245,166,35,.05); }
.tier-sub { display: block; color: var(--muted); font-size: 10.5px; text-transform: none; letter-spacing: 0; font-weight: 500; margin-top: 4px; }
.tier-table td { padding: 10px 10px; text-align: center; border-bottom: 1px solid var(--border); color: var(--text-2); white-space: nowrap; }
.tier-table td:first-child { text-align: left; color: var(--text); white-space: normal; min-width: 230px; padding-left: 20px; }
.tier-table tr:last-child td { border-bottom: none; }
.tier-table td.yes { color: var(--accent); font-weight: 600; }
.tier-table td.no { color: var(--dim); }
.tiers-note { color: var(--muted); font-size: 13.5px; }
.tiers-note a { color: var(--text); border-bottom: 1px solid var(--border-2); }

/* ---------- name band ---------- */
.name { padding: 64px 0; }
.name-inner { display: flex; align-items: center; gap: 28px; justify-content: center; }
.name-mark { width: 56px; height: 56px; flex: none; }
.name-line { font-family: var(--display); font-weight: 600; font-size: clamp(20px, 2.4vw, 28px); letter-spacing: -.02em; line-height: 1.2; max-width: 720px; }
.name-line em { color: var(--accent); font-style: normal; }

/* ---------- contact accordion ---------- */
.contact .section-head { margin-bottom: 24px; }
.accordion { max-width: 640px; overflow: hidden; }
.accordion-toggle {
  width: 100%;
  display: flex;
  align-items: center;
  justify-content: space-between;
  background: transparent;
  border: 0;
  color: var(--text);
  font: inherit;
  font-weight: 600;
  font-size: 15px;
  padding: 20px 24px;
  cursor: pointer;
  text-align: left;
}
.accordion-toggle:hover { background: rgba(255,255,255,.02); }
.accordion-icon { position: relative; width: 14px; height: 14px; flex: none; }
.accordion-icon::before, .accordion-icon::after {
  content: "";
  position: absolute;
  background: var(--accent);
  left: 50%; top: 50%;
  transform: translate(-50%, -50%);
  transition: transform .2s ease;
}
.accordion-icon::before { width: 14px; height: 2px; }
.accordion-icon::after { width: 2px; height: 14px; }
.accordion-toggle[aria-expanded="true"] .accordion-icon::after { transform: translate(-50%, -50%) rotate(90deg); }
.accordion-panel { border-top: 1px solid var(--border); padding: 24px; }
.form-row { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; }
.field { margin-bottom: 14px; }
.field label { display: block; font-size: 12.5px; font-weight: 500; color: var(--text-2); margin-bottom: 6px; }
.field input, .field textarea {
  width: 100%;
  background: var(--bg);
  border: 1px solid var(--border-2);
  color: var(--text);
  border-radius: 8px;
  padding: 10px 12px;
  font: inherit;
  font-size: 14px;
  resize: vertical;
}
.field input:focus, .field textarea:focus { outline: none; border-color: var(--accent); }
[hidden] { display: none !important; }
.visually-hidden { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0, 0, 0, 0); white-space: nowrap; border: 0; }
.form-status h3 { font-size: 20px; margin-bottom: 6px; }
.form-status p { color: var(--text-2); }
.form-status.error { color: #e5a08f; font-size: 14px; margin-top: 12px; }
.form-status.error a { color: var(--text); border-bottom: 1px solid var(--border-2); }
.button:disabled { opacity: .6; cursor: default; }

/* ---------- product lockups (brand page) ---------- */
.product-lockup { display: inline-flex; align-items: center; gap: 10px; font-family: var(--display); font-weight: 700; font-size: 22px; letter-spacing: -.01em; }
.product-lockup img { width: 28px; height: 28px; }
.product-lockup b { font-weight: 500; color: var(--text-2); }

/* ---------- motion ---------- */
.cursor { display: inline-block; width: 8px; height: 14px; background: var(--accent); vertical-align: -2px; animation: blink 1.1s steps(1) infinite; }
@keyframes blink { 50% { opacity: 0; } }
@media (prefers-reduced-motion: reduce) {
  .viz .pkt, .viz .deny, .viz .ring, .cursor { display: none; }
  .arrow line { animation: none; stroke-dasharray: none; }
}

/* ---------- footer ---------- */
.footer {
  padding: 36px 0 40px;
  border-top: 1px solid var(--border);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  color: var(--muted);
  font-size: 12.5px;
}
.footer a { color: var(--text-2); }
.footer a:hover { color: var(--text); }
.footer-brand .brand-logo { height: 26px; opacity: .85; }
.footer-tag { letter-spacing: .16em; font-size: 11px; }

/* ---------- responsive ---------- */
@media (max-width: 960px) {
  .links { display: none; }
  .hero { grid-template-columns: 1fr; padding-top: 48px; gap: 40px; }
  .hero-caption { text-align: left; }
  .product-grid, .fit-grid { grid-template-columns: 1fr; }
  .dev { grid-template-columns: 1fr; gap: 36px; }
  .dev .terminal { order: 2; }
  .name-inner { flex-direction: column; text-align: center; gap: 20px; }
}
@media (max-width: 600px) {
  .shell { width: min(100% - 32px, var(--max)); }
  .section { padding: 72px 0; }
  .band { padding: 64px 0; }
  h1 { font-size: 52px; }
  .product-body { padding: 22px 22px 26px; }
  .form-row { grid-template-columns: 1fr; }
  .flow { flex-wrap: wrap; row-gap: 10px; }
  .footer { flex-direction: column; align-items: flex-start; }
}
