:root {
  color-scheme: dark;
  --ground: #0B1226;
  --ground-deep: #070C1B;
  --panel: #121B36;
  --panel-lift: #17213F;
  --line: #243055;
  --line-soft: #1B2440;
  --ink: #EEF2FF;
  --ink-soft: #9AA7CC;
  --ink-faint: #6B789F;
  --blue: #4F8CFF;
  --blue-deep: #1A56DB;
  --cyan: #22D3EE;
  --violet: #7C3AED;
  --live: #34D399;
  --wip: #FBBF24;
  --grid: 34px;
}

* { box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
  margin: 0;
  background: var(--ground);
  color: var(--ink);
  font-family: "IBM Plex Sans", ui-sans-serif, system-ui, -apple-system, sans-serif;
  font-size: 16px;
  line-height: 1.62;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
  overflow-x: hidden;
}

img, svg { max-width: 100%; }
a { color: inherit; }

:where(a, button, [tabindex]):focus-visible {
  outline: 2px solid var(--blue);
  outline-offset: 3px;
  border-radius: 2px;
}

.shell { max-width: 1080px; margin-inline: auto; padding-inline: 24px; }

.eyebrow {
  font-family: "IBM Plex Mono", ui-monospace, SFMono-Regular, monospace;
  font-size: 11px;
  font-weight: 500;
  letter-spacing: .15em;
  text-transform: uppercase;
  color: var(--ink-faint);
  margin: 0;
}

h1, h2, h3 {
  font-family: Archivo, ui-sans-serif, system-ui, sans-serif;
  letter-spacing: -.018em;
  text-wrap: balance;
  margin: 0;
}

.mark { display: block; height: auto; }

.brand { display: flex; align-items: center; gap: 12px; text-decoration: none; flex: none; }
.brand .mark { width: 38px; }

.wordmark { font-family: Archivo, ui-sans-serif, sans-serif; line-height: 1; display: grid; gap: 4px; }
.wordmark .top { font-weight: 800; font-size: 14px; letter-spacing: .34em; color: #FFFFFF; }
.wordmark .bottom { font-weight: 600; font-size: 10.5px; letter-spacing: .19em; color: #FFFFFF; }
.wordmark .bottom b { font-weight: 800; color: var(--blue); }

.topbar {
  position: sticky;
  top: 0;
  z-index: 30;
  background: color-mix(in srgb, var(--ground) 82%, transparent);
  backdrop-filter: blur(14px);
  border-bottom: 1px solid var(--line-soft);
}

.topbar-inner { display: flex; align-items: center; gap: 18px; padding-block: 14px; }

.topnav { display: flex; gap: 26px; margin-left: auto; font-size: 14px; }
.topnav a { text-decoration: none; color: var(--ink-soft); transition: color .15s; }
.topnav a:hover { color: var(--ink); }

.lang {
  display: flex;
  flex: none;
  border: 1px solid var(--line);
  border-radius: 999px;
  overflow: hidden;
  font-family: "IBM Plex Mono", ui-monospace, monospace;
  font-size: 11px;
  letter-spacing: .08em;
}

.lang button {
  appearance: none; border: 0; background: transparent; color: var(--ink-soft);
  padding: 5px 11px; cursor: pointer; font: inherit;
  transition: background .15s, color .15s;
}

.lang button[aria-pressed="true"] { background: var(--blue-deep); color: #fff; }

.stage { position: relative; isolation: isolate; overflow: hidden; }

.stage-glow, .stage-grid { position: absolute; inset: 0; z-index: -1; pointer-events: none; }

.stage-glow {
  background:
    radial-gradient(44% 52% at 72% 38%, rgba(26, 86, 219, .42), transparent 70%),
    radial-gradient(34% 44% at 88% 72%, rgba(124, 58, 237, .26), transparent 72%),
    radial-gradient(40% 50% at 14% 18%, rgba(34, 211, 238, .14), transparent 70%);
}

.stage-grid {
  background-image:
    linear-gradient(rgba(79, 140, 255, .09) 1px, transparent 1px),
    linear-gradient(90deg, rgba(79, 140, 255, .09) 1px, transparent 1px),
    radial-gradient(circle, rgba(79, 140, 255, .3) 1.1px, transparent 1.4px);
  background-size: var(--grid) var(--grid), var(--grid) var(--grid), calc(var(--grid) * 4) calc(var(--grid) * 4);
  -webkit-mask-image: radial-gradient(ellipse 78% 68% at 56% 44%, #000 20%, transparent 78%);
  mask-image: radial-gradient(ellipse 78% 68% at 56% 44%, #000 20%, transparent 78%);
}

.hero { padding-block: 86px 74px; }

.hero-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.14fr) minmax(0, .86fr);
  gap: 50px;
  align-items: center;
}

.hero h1 {
  font-weight: 800;
  font-size: clamp(36px, 5.6vw, 57px);
  line-height: 1.015;
  margin-block: 18px 22px;
}

.hero h1 em {
  font-style: normal;
  background: linear-gradient(104deg, var(--cyan), var(--blue) 46%, var(--violet));
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

.hero-lede { font-size: 17.5px; color: var(--ink-soft); max-width: 52ch; margin: 0; }

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

.btn {
  display: inline-flex; align-items: center; gap: 8px;
  padding: 13px 23px; border-radius: 3px; text-decoration: none;
  font-size: 14.5px; font-weight: 600; border: 1px solid transparent;
  transition: background .18s, border-color .18s, box-shadow .18s, transform .18s;
}

.btn-primary {
  background: linear-gradient(100deg, var(--blue-deep), var(--violet));
  color: #fff;
  box-shadow: 0 8px 28px -10px rgba(79, 140, 255, .7);
}
.btn-primary:hover { transform: translateY(-1px); box-shadow: 0 14px 34px -10px rgba(79, 140, 255, .85); }
.btn-ghost { border-color: var(--line); color: var(--ink); }
.btn-ghost:hover { border-color: var(--blue); }

.hero-art { display: grid; justify-items: center; gap: 30px; }
.hero-art .emblem { width: min(380px, 78vw); }

.emblem .halo { filter: blur(18px); opacity: .85; }
.emblem .depth { opacity: .55; }

.pulse { opacity: .95; }

.flow { width: 100%; max-width: 400px; }
.flow .box { fill: rgba(18, 27, 54, .78); stroke: var(--line); stroke-width: 1; }
.flow .wire { fill: none; stroke: var(--line); stroke-width: 1.5; }
.flow .spark { fill: none; stroke: var(--cyan); stroke-width: 1.8; stroke-linecap: round; }
.flow .t { font-family: "IBM Plex Mono", ui-monospace, monospace; font-size: 11px; fill: var(--ink); }
.flow .t-sub { font-family: "IBM Plex Sans", sans-serif; font-size: 10.5px; fill: var(--ink-faint); }

.facts {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  border-block: 1px solid var(--line-soft);
}

.fact { padding: 28px 24px 28px 0; }
.fact + .fact { border-left: 1px solid var(--line-soft); padding-left: 24px; }

.fact b {
  display: block;
  font-family: Archivo, sans-serif;
  font-weight: 800; font-size: 28px;
  letter-spacing: -.02em; line-height: 1.1;
  font-variant-numeric: tabular-nums;
  background: linear-gradient(100deg, var(--cyan), var(--blue) 58%, var(--violet));
  -webkit-background-clip: text; background-clip: text; color: transparent;
  width: max-content;
}

.fact span { display: block; font-size: 13.5px; color: var(--ink-soft); margin-top: 6px; }

section[id] { padding-block: 82px; scroll-margin-top: 78px; }

.section-head { max-width: 60ch; margin-bottom: 46px; }
.section-head h2 { font-weight: 800; font-size: clamp(26px, 4.2vw, 36px); margin-block: 13px 13px; }
.section-head p { color: var(--ink-soft); margin: 0; }

.service {
  display: grid;
  grid-template-columns: 158px minmax(0, 1fr);
  gap: 32px;
  padding-block: 30px;
  border-top: 1px solid var(--line-soft);
  transition: border-color .2s;
}

.service:last-child { border-bottom: 1px solid var(--line-soft); }
.service:hover { border-top-color: var(--blue); }
.service h3 { font-weight: 600; font-size: 18.5px; margin-bottom: 8px; }
.service p { margin: 0; color: var(--ink-soft); max-width: 62ch; }

.service-key {
  font-family: "IBM Plex Mono", ui-monospace, monospace;
  font-size: 11px; letter-spacing: .12em; text-transform: uppercase;
  color: var(--blue); padding-top: 5px;
}

.products { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 24px; }

.product {
  position: relative;
  background: linear-gradient(168deg, var(--panel-lift), var(--panel));
  border: 1px solid var(--line);
  border-radius: 6px;
  padding: 32px 30px;
  display: flex; flex-direction: column; gap: 16px;
  overflow: hidden;
}

.product::before {
  content: "";
  position: absolute; inset-inline: 0; top: 0; height: 1px;
  background: linear-gradient(90deg, transparent, var(--blue), transparent);
  opacity: .75;
}

.product-top { display: flex; align-items: center; gap: 12px; flex-wrap: wrap; }
.product h3 { font-weight: 800; font-size: 24px; }

.chip {
  font-family: "IBM Plex Mono", ui-monospace, monospace;
  font-size: 10.5px; letter-spacing: .1em; text-transform: uppercase;
  padding: 3px 10px; border-radius: 999px; border: 1px solid var(--line); color: var(--ink-soft);
}

.chip-live { border-color: color-mix(in srgb, var(--live) 45%, transparent); color: var(--live); }
.chip-wip { border-color: color-mix(in srgb, var(--wip) 45%, transparent); color: var(--wip); }

.product p { margin: 0; color: var(--ink-soft); }

.stack {
  display: flex; flex-wrap: wrap; gap: 7px;
  margin: auto 0 0; padding: 6px 0 0; list-style: none;
}

.stack li {
  font-family: "IBM Plex Mono", ui-monospace, monospace;
  font-size: 11px; color: var(--ink-faint);
  border: 1px solid var(--line-soft); border-radius: 3px; padding: 2px 8px;
}

.product-clickable {
  transition: border-color .22s, transform .22s, box-shadow .22s;
}

.product-clickable:hover {
  border-color: color-mix(in srgb, var(--blue) 58%, transparent);
  transform: translateY(-3px);
  box-shadow: 0 26px 54px -26px rgba(26, 86, 219, .6);
}

.product-clickable::before { transition: opacity .22s, filter .22s; }
.product-clickable:hover::before { opacity: 1; filter: brightness(1.5); }
.product-clickable:hover .product-link { gap: 11px; color: var(--ink); }

.product-link {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  align-self: start;
  margin-top: 4px;
  font-family: Archivo, sans-serif;
  font-weight: 600;
  font-size: 14.5px;
  color: var(--blue);
  text-decoration: none;
  transition: gap .18s, color .18s;
}

.product-link::after { content: "→"; }

.product-link::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: 1;
  border-radius: inherit;
}

.product-link:hover { gap: 11px; color: var(--ink); }
.product-link:focus-visible { outline-offset: 4px; }

@media (prefers-reduced-motion: reduce) {
  .product-clickable:hover { transform: none; }
}

.process { counter-reset: step; }

.step {
  display: grid;
  grid-template-columns: 56px minmax(0, 1fr);
  gap: 26px; padding-block: 28px;
  border-top: 1px solid var(--line-soft);
}

.step:last-child { border-bottom: 1px solid var(--line-soft); }

.step::before {
  counter-increment: step;
  content: counter(step, decimal-leading-zero);
  font-family: Archivo, sans-serif; font-weight: 800; font-size: 20px;
  font-variant-numeric: tabular-nums; padding-top: 2px;
  background: linear-gradient(140deg, var(--cyan), var(--violet));
  -webkit-background-clip: text; background-clip: text; color: transparent;
}

.step h3 { font-weight: 600; font-size: 17.5px; margin-bottom: 7px; }
.step p { margin: 0; color: var(--ink-soft); max-width: 62ch; }

.contact-panel {
  position: relative;
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: clamp(34px, 6vw, 62px);
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, max-content);
  gap: 38px; align-items: center;
  background:
    radial-gradient(70% 160% at 88% 50%, rgba(124, 58, 237, .3), transparent 70%),
    radial-gradient(60% 140% at 12% 20%, rgba(26, 86, 219, .34), transparent 72%),
    var(--panel);
  overflow: hidden;
}

.contact-panel h2 { font-weight: 800; font-size: clamp(26px, 4.2vw, 36px); margin-bottom: 13px; }
.contact-panel p { color: var(--ink-soft); margin: 0; max-width: 48ch; }

.mailto {
  display: inline-flex; align-items: center; gap: 9px;
  background: #fff; color: #0B1226; text-decoration: none;
  font-weight: 700; font-size: 15px; padding: 15px 26px; border-radius: 3px;
  white-space: nowrap; transition: transform .18s, box-shadow .18s;
  box-shadow: 0 10px 30px -12px rgba(255, 255, 255, .5);
}

.mailto:hover { transform: translateY(-2px); }

footer { border-top: 1px solid var(--line); padding-block: 40px 56px; background: var(--ground-deep); }

.foot-grid { display: flex; flex-wrap: wrap; gap: 24px 48px; align-items: flex-start; justify-content: space-between; }

.legal {
  font-family: "IBM Plex Mono", ui-monospace, monospace;
  font-size: 11.5px; line-height: 1.95; color: var(--ink-faint); margin: 0;
}

.legal a { color: var(--ink-soft); text-decoration: none; }
.legal a:hover { color: var(--blue); }

@media (max-width: 880px) {
  .hero-grid { grid-template-columns: 1fr; gap: 42px; }
  .hero-art { order: -1; }
  .facts { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .fact:nth-child(3) { border-left: 0; padding-left: 0; }
  .fact:nth-child(3), .fact:nth-child(4) { border-top: 1px solid var(--line-soft); }
  .products { grid-template-columns: 1fr; }
  .contact-panel { grid-template-columns: 1fr; }
}

@media (max-width: 620px) {
  .topnav { display: none; }
  .service, .step { grid-template-columns: 1fr; gap: 10px; }
  .hero { padding-block: 54px 46px; }
  section[id] { padding-block: 60px; }
}

@media (prefers-reduced-motion: no-preference) {
  .pulse { animation: orbit 5.2s linear infinite; }
  @keyframes orbit { from { stroke-dashoffset: 1000; } to { stroke-dashoffset: 0; } }
  .flow .spark { stroke-dasharray: 22 300; animation: wire 3.4s linear infinite; }
  @keyframes wire { from { stroke-dashoffset: 322; } to { stroke-dashoffset: 0; } }
  .emblem .halo { animation: breathe 6s ease-in-out infinite; }
  @keyframes breathe { 0%, 100% { opacity: .62; } 50% { opacity: 1; } }
}
