/* ==========================================================================
   Janova Tech — company profile
   One deliberate dark world ("observatory night"), taken from the logo:
   navy space, azure and cyan light, a thin line of gold.
   Tokens → base → layout → components → sections → responsive.
   ========================================================================== */

/* ---------- Tokens ---------- */
:root {
  color-scheme: dark;

  --void: #030914;
  --void-2: #050E1F;
  --abyss: #081733;
  --panel: rgba(11, 28, 62, .46);
  --panel-solid: #0A1A38;
  --field: #061330;

  --line: rgba(140, 180, 255, .12);
  --line-2: rgba(140, 180, 255, .22);
  --line-3: rgba(140, 190, 255, .34);

  --ink: #EAF1FF;
  --ink-2: #BAC8E2;
  --mute: #8396B8;
  --faint: #5A6C8F;

  --azure: #1E8BFF;
  --royal: #0B4FC4;
  --cyan: #2FD8FF;
  --cyan-2: #8BE7FF;
  --cyan-soft: rgba(47, 216, 255, .14);
  --gold: #E5B95C;
  --gold-2: #F4D48E;
  --gold-soft: rgba(229, 185, 92, .16);
  --ok: #3DDC97;
  --ok-soft: rgba(61, 220, 151, .14);
  --warn: #F5B84B;
  --rose: #FF8A8A;

  --grad-brand: linear-gradient(100deg, #1E7BFF 0%, #18A8F2 52%, #2FDCF5 100%);
  --grad-gold: linear-gradient(100deg, #C9923A 0%, #F4D48E 50%, #C9923A 100%);

  --font-display: "Unbounded", "Plus Jakarta Sans", ui-sans-serif, system-ui, sans-serif;
  --font-sans: "Plus Jakarta Sans", ui-sans-serif, system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
  --font-mono: "JetBrains Mono", ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
  --font-serif: "Instrument Serif", ui-serif, Georgia, serif;

  --container: 1240px;
  --gutter: clamp(16px, 4vw, 40px);
  --header-h: 72px;
  --section-y: clamp(88px, 11vw, 168px);

  --r-sm: 10px;
  --r: 18px;
  --r-lg: 28px;

  --ease-out: cubic-bezier(.22, 1, .36, 1);
  --ease-io: cubic-bezier(.76, 0, .24, 1);
  --ease-soft: cubic-bezier(.4, 0, .2, 1);
}

/* ---------- Base ---------- */
*, *::before, *::after { box-sizing: border-box; }

html {
  -webkit-text-size-adjust: 100%;
  text-size-adjust: 100%;
  background: var(--void);
  scroll-padding-top: var(--header-h);
}
html.lenis, html.lenis body { height: auto; }
.lenis.lenis-smooth { scroll-behavior: auto !important; }

body {
  margin: 0;
  min-height: 100vh;
  font-family: var(--font-sans);
  font-size: 16px;
  line-height: 1.65;
  color: var(--ink);
  background: var(--void);
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  overflow-x: clip;
}

/* Fixed sky: two soft light sources and a faint grain */
body::before {
  content: "";
  position: fixed;
  inset: 0;
  z-index: -2;
  pointer-events: none;
  background:
    radial-gradient(60vw 50vh at 85% -10%, rgba(30, 139, 255, .16), transparent 70%),
    radial-gradient(50vw 60vh at -10% 40%, rgba(11, 79, 196, .14), transparent 70%),
    radial-gradient(40vw 40vh at 60% 110%, rgba(47, 216, 255, .07), transparent 70%),
    var(--void);
}
body::after {
  content: "";
  position: fixed;
  inset: 0;
  z-index: -1;
  pointer-events: none;
  opacity: .06;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='160' height='160'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.9' numOctaves='2' stitchTiles='stitch'/%3E%3CfeColorMatrix values='0 0 0 0 1 0 0 0 0 1 0 0 0 0 1 0 0 0 .55 0'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
}

img, svg, video, canvas { display: block; max-width: 100%; }
img { height: auto; }
a { color: inherit; text-decoration: none; }
button { font: inherit; color: inherit; background: none; border: 0; padding: 0; cursor: pointer; }
input, textarea, select, button { font-family: inherit; }
h1, h2, h3, h4, p, ul, ol, figure, dl, dd { margin: 0; }
ul, ol { padding: 0; list-style: none; }
fieldset { margin: 0; padding: 0; border: 0; min-width: 0; }
legend { padding: 0; }
b, strong { font-weight: 650; }
::selection { background: rgba(47, 216, 255, .3); color: #fff; }
:focus-visible { outline: 2px solid var(--cyan); outline-offset: 3px; border-radius: 8px; }
[hidden] { display: none !important; }

.sprite { position: absolute; width: 0; height: 0; overflow: hidden; }
.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;
}
.skip-link {
  position: fixed; top: 12px; left: 12px; z-index: 300;
  padding: 10px 16px; border-radius: 999px;
  background: var(--ink); color: var(--void); font-weight: 600; font-size: .875rem;
  transform: translateY(-180%); transition: transform .3s var(--ease-out);
}
.skip-link:focus { transform: none; }

.icon { width: 20px; height: 20px; flex: none; }
.icon--sm { width: 16px; height: 16px; }
.mono { font-family: var(--font-mono); }

.container {
  width: 100%;
  max-width: var(--container);
  margin-inline: auto;
  padding-inline: var(--gutter);
}

/* ---------- Typography ---------- */
.display {
  font-family: var(--font-display);
  font-weight: 500;
  font-size: clamp(2.15rem, 1.1rem + 3.3vw, 3.95rem);
  line-height: 1.06;
  letter-spacing: -0.035em;
  text-wrap: balance;
}
.h2 {
  font-family: var(--font-display);
  font-weight: 500;
  font-size: clamp(1.75rem, 1.05rem + 2.3vw, 3.1rem);
  line-height: 1.1;
  letter-spacing: -0.032em;
  text-wrap: balance;
}
.lead {
  font-size: clamp(1.04rem, .98rem + .3vw, 1.2rem);
  line-height: 1.7;
  color: var(--ink-2);
  text-wrap: pretty;
}
.hl {
  background: var(--grad-brand);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}
.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-family: var(--font-mono);
  font-size: .75rem;
  font-weight: 500;
  letter-spacing: .14em;
  text-transform: uppercase;
  color: var(--cyan-2);
  margin-bottom: 20px;
}
.eyebrow .dot {
  width: 6px; height: 6px; border-radius: 50%;
  background: var(--gold);
  box-shadow: 0 0 0 4px var(--gold-soft), 0 0 14px rgba(229, 185, 92, .7);
}

/* ---------- Buttons ---------- */
.btn {
  position: relative;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  height: 50px;
  padding: 0 24px;
  border-radius: 999px;
  font-size: .95rem;
  font-weight: 600;
  letter-spacing: -0.005em;
  white-space: nowrap;
  isolation: isolate;
  overflow: hidden;
  transition: transform .4s var(--ease-out), box-shadow .4s var(--ease-out), border-color .3s, background-color .3s, color .3s;
  will-change: transform;
}
.btn-sm { height: 40px; padding: 0 16px; font-size: .875rem; }
.btn-block { width: 100%; }
.btn-primary {
  color: #03122B;
  background: var(--grad-brand);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, .35), 0 12px 32px -12px rgba(30, 139, 255, .75);
}
.btn-primary::after {
  content: "";
  position: absolute;
  inset: 0;
  z-index: -1;
  background: linear-gradient(105deg, transparent 30%, rgba(255, 255, 255, .55) 50%, transparent 70%);
  transform: translateX(-120%);
  transition: transform .9s var(--ease-out);
}
.btn-primary:hover { box-shadow: inset 0 1px 0 rgba(255, 255, 255, .35), 0 16px 44px -10px rgba(47, 216, 255, .75); }
.btn-primary:hover::after { transform: translateX(120%); }
.btn-ghost {
  color: var(--ink);
  border: 1px solid var(--line-2);
  background: rgba(255, 255, 255, .03);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
}
.btn-ghost:hover { border-color: rgba(47, 216, 255, .55); background: rgba(47, 216, 255, .06); }
.btn .icon { transition: transform .4s var(--ease-out); }
.btn:hover .icon { transform: translateX(3px); }

/* ---------- Header ---------- */
.site-header {
  position: fixed;
  top: 0; left: 0; right: 0;
  z-index: 100;
  padding-top: env(safe-area-inset-top, 0px);
  transition: transform .5s var(--ease-out), background-color .4s, border-color .4s, backdrop-filter .4s;
  border-bottom: 1px solid transparent;
}
.site-header.is-scrolled {
  background: rgba(3, 9, 20, .72);
  backdrop-filter: blur(16px) saturate(140%);
  -webkit-backdrop-filter: blur(16px) saturate(140%);
  border-bottom-color: var(--line);
}
.site-header.is-hidden { transform: translateY(-100%); }
.header-inner {
  height: var(--header-h);
  display: flex;
  align-items: center;
  gap: 24px;
}
.brand { display: inline-flex; align-items: center; gap: 12px; flex: none; }
.brand-mark { width: 54px; height: auto; filter: drop-shadow(0 0 12px rgba(47, 216, 255, .25)); transition: transform .6s var(--ease-out); }
.brand:hover .brand-mark { transform: rotate(-6deg) scale(1.05); }
.brand-word { width: 128px; height: 14px; }
.nav { display: flex; align-items: center; gap: 4px; margin-left: auto; }
.nav a {
  position: relative;
  padding: 8px 12px;
  border-radius: 999px;
  font-size: .9rem;
  font-weight: 500;
  color: var(--ink-2);
  transition: color .25s, background-color .25s;
}
.nav a:hover { color: var(--ink); background: rgba(255, 255, 255, .04); }
.nav a.is-current { color: var(--ink); }
.nav a.is-current::after {
  content: "";
  position: absolute;
  left: 50%; bottom: 2px;
  width: 4px; height: 4px; border-radius: 50%;
  background: var(--cyan);
  transform: translateX(-50%);
  box-shadow: 0 0 8px var(--cyan);
}
.header-actions { display: flex; align-items: center; gap: 12px; }

.lang {
  position: relative;
  display: inline-grid;
  grid-template-columns: 1fr 1fr;
  padding: 3px;
  border-radius: 999px;
  border: 1px solid var(--line-2);
  background: rgba(255, 255, 255, .03);
}
.lang button {
  position: relative;
  z-index: 1;
  min-width: 38px;
  height: 30px;
  border-radius: 999px;
  font-family: var(--font-mono);
  font-size: .75rem;
  font-weight: 500;
  letter-spacing: .06em;
  color: var(--mute);
  transition: color .3s;
}
.lang button[aria-pressed="true"] { color: #03122B; }
.lang-pill {
  position: absolute;
  top: 3px; left: 3px;
  width: calc(50% - 3px);
  height: 30px;
  border-radius: 999px;
  background: var(--grad-brand);
  box-shadow: 0 4px 14px -4px rgba(47, 216, 255, .6);
  transition: transform .45s var(--ease-out);
}
html[lang="en"] .lang-pill { transform: translateX(100%); }

.menu-toggle {
  display: none;
  width: 44px; height: 44px;
  border-radius: 12px;
  border: 1px solid var(--line-2);
  align-items: center;
  justify-content: center;
}
.menu-lines { display: grid; gap: 6px; width: 18px; }
.menu-lines i { display: block; height: 1.5px; background: var(--ink); border-radius: 2px; transition: transform .4s var(--ease-out); }
.menu-toggle[aria-expanded="true"] .menu-lines i:first-child { transform: translateY(3.75px) rotate(45deg); }
.menu-toggle[aria-expanded="true"] .menu-lines i:last-child { transform: translateY(-3.75px) rotate(-45deg); }
.mobile-menu {
  border-top: 1px solid var(--line);
  background: rgba(3, 9, 20, .94);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
}
.mobile-menu nav { display: grid; gap: 4px; padding-block: 16px 24px; }
.mobile-menu a:not(.btn) {
  padding: 12px 4px;
  font-size: 1.15rem;
  font-weight: 500;
  border-bottom: 1px solid var(--line);
}
.mobile-menu .btn { margin-top: 16px; }

/* ---------- Hero ---------- */
.hero {
  position: relative;
  isolation: isolate;
  min-height: max(660px, min(100svh, 980px));
  display: flex;
  align-items: center;
  padding-top: calc(var(--header-h) + env(safe-area-inset-top, 0px));
  padding-bottom: 72px;
  overflow: hidden;
}
.hero::after {
  /* soft floor so the hero melts into the page */
  content: "";
  position: absolute;
  left: 0; right: 0; bottom: 0;
  height: 160px;
  z-index: 0;
  pointer-events: none;
  background: linear-gradient(to bottom, transparent, var(--void));
}
.hero-stage { position: absolute; inset: 0; z-index: 0; }
.hero-canvas { width: 100%; height: 100%; touch-action: pan-y; }
.hero-grid {
  position: relative;
  z-index: 1;
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1.08fr);
  align-items: center;
  gap: 24px;
  pointer-events: none;
}
.hero-grid a, .hero-grid button { pointer-events: auto; }
.hero-copy { grid-column: 1; grid-row: 1; max-width: 620px; }
.hero-visual { grid-column: 2; grid-row: 1; aspect-ratio: 1.62; position: relative; }
.hero-fallback { display: none; width: 100%; height: 100%; object-fit: contain; }
.no-webgl .hero-fallback { display: block; }
.no-webgl .hero-canvas, .no-webgl .orbit-labels { display: none; }

.hero h1 { margin-bottom: 26px; }
.hero-lead { max-width: 540px; margin-bottom: 34px; }
.hero-actions { display: flex; flex-wrap: wrap; gap: 12px; margin-bottom: 34px; }
.hero-product {
  display: inline-flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 8px 12px;
  padding: 8px 14px 8px 8px;
  border-radius: 999px;
  border: 1px solid var(--line);
  background: rgba(8, 22, 50, .55);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  font-size: .86rem;
  color: var(--ink-2);
  transition: border-color .3s, color .3s;
}
.hero-product:hover { border-color: rgba(229, 185, 92, .5); color: var(--ink); }
.hero-product-tag {
  padding: 4px 10px;
  border-radius: 999px;
  font-family: var(--font-mono);
  font-size: .68rem;
  letter-spacing: .08em;
  text-transform: uppercase;
  color: #2A1B02;
  background: var(--grad-gold);
}

/* Word rise on load. Starts after fonts are ready (html.is-ready). */
.split-w { display: inline-block; overflow: hidden; vertical-align: top; padding-bottom: .1em; margin-bottom: -.1em; }
.split-w > span { display: inline-block; }
.js .hero .split-w > span { transform: translateY(108%); }
.js.is-ready .hero .split-w > span {
  transform: none;
  transition: transform 1.1s var(--ease-out);
  transition-delay: calc(var(--i, 0) * 60ms + 450ms);
}
.hl .split-w > span {
  background: var(--grad-brand);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}
.js .hero [data-fade] { opacity: 0; transform: translateY(18px); }
.js.is-ready .hero [data-fade] {
  opacity: 1; transform: none;
  transition: opacity 1s var(--ease-out), transform 1s var(--ease-out);
  transition-delay: var(--d, 0ms);
}

.orbit-labels { position: absolute; inset: 0; pointer-events: none; }
.orbit-label {
  position: absolute;
  left: 0; top: 0;
  padding: 5px 10px 5px 8px;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  border-radius: 999px;
  font: 500 .68rem/1 var(--font-mono);
  letter-spacing: .04em;
  color: #D7F4FF;
  background: rgba(4, 14, 34, .72);
  border: 1px solid rgba(47, 216, 255, .3);
  backdrop-filter: blur(6px);
  -webkit-backdrop-filter: blur(6px);
  white-space: nowrap;
  opacity: 0;
  will-change: transform, opacity;
}
.orbit-label::before {
  content: "";
  width: 5px; height: 5px; border-radius: 50%;
  background: var(--cyan);
  box-shadow: 0 0 8px var(--cyan);
}

.scroll-cue {
  position: absolute;
  left: max(var(--gutter), calc((100vw - var(--container)) / 2 + var(--gutter)));
  bottom: 28px;
  z-index: 2;
  display: inline-flex;
  align-items: center;
  gap: 12px;
  font-family: var(--font-mono);
  font-size: .7rem;
  letter-spacing: .16em;
  text-transform: uppercase;
  color: var(--mute);
}
.scroll-cue-line {
  position: relative;
  width: 1px; height: 38px;
  background: var(--line-2);
  overflow: hidden;
}
.scroll-cue-line::after {
  content: "";
  position: absolute;
  left: 0; top: -40%;
  width: 1px; height: 40%;
  background: var(--cyan);
  animation: cue 2.2s var(--ease-io) infinite;
}
@keyframes cue { to { top: 100%; } }

/* ---------- Stack marquee ---------- */
.stack {
  position: relative;
  padding-block: 28px 30px;
  border-block: 1px solid var(--line);
  background: linear-gradient(to bottom, rgba(8, 23, 51, .35), rgba(8, 23, 51, .1));
}
.stack-head { margin-bottom: 16px; }
.stack-title { font-size: .72rem; letter-spacing: .14em; text-transform: uppercase; color: var(--mute); }
.marquee {
  overflow: hidden;
  -webkit-mask-image: linear-gradient(90deg, transparent, #000 10%, #000 90%, transparent);
  mask-image: linear-gradient(90deg, transparent, #000 10%, #000 90%, transparent);
}
.marquee-track {
  display: flex;
  width: max-content;
  animation: marquee 46s linear infinite;
}
.marquee:hover .marquee-track { animation-play-state: paused; }
.marquee-track li {
  display: inline-flex;
  align-items: center;
  gap: 28px;
  padding-right: 28px;
  font-family: var(--font-display);
  font-weight: 400;
  font-size: clamp(1rem, .9rem + .5vw, 1.35rem);
  letter-spacing: -0.01em;
  color: var(--ink-2);
  white-space: nowrap;
}
.marquee-track li::after {
  content: "";
  width: 6px; height: 6px;
  transform: rotate(45deg);
  border: 1px solid rgba(229, 185, 92, .7);
}
@keyframes marquee { to { transform: translateX(-50%); } }

/* ---------- Section heads ---------- */
.section-head { max-width: 820px; margin-bottom: clamp(40px, 6vw, 72px); }

/* ---------- Services ---------- */
.services { position: relative; padding-block: var(--section-y); }
.services-head {
  display: grid;
  grid-template-columns: minmax(0, 1.5fr) minmax(0, 1fr);
  gap: 24px 48px;
  align-items: end;
  margin-bottom: clamp(36px, 5vw, 56px);
}
.services-sub { color: var(--mute); max-width: 360px; justify-self: end; }
.services-viewport { position: relative; }
.services-track {
  display: grid;
  gap: 20px;
  padding-inline: var(--gutter);
  max-width: var(--container);
  margin-inline: auto;
}
.service {
  position: relative;
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1.08fr);
  gap: clamp(24px, 4vw, 48px);
  align-items: center;
  padding: clamp(22px, 3.4vw, 44px);
  border-radius: var(--r-lg);
  border: 1px solid var(--line);
  background:
    radial-gradient(120% 90% at 0% 0%, rgba(30, 139, 255, .10), transparent 60%),
    linear-gradient(160deg, rgba(13, 34, 74, .62), rgba(5, 14, 33, .7));
  overflow: hidden;
}
.service::before {
  /* hairline highlight along the top edge */
  content: "";
  position: absolute;
  left: 8%; right: 8%; top: 0;
  height: 1px;
  background: linear-gradient(90deg, transparent, rgba(47, 216, 255, .55), transparent);
}
.service-kicker {
  font-size: .72rem;
  letter-spacing: .12em;
  text-transform: uppercase;
  color: var(--cyan-2);
  margin-bottom: 14px;
}
.service-title {
  font-size: clamp(1.45rem, 1.05rem + 1.25vw, 2.15rem);
  line-height: 1.18;
  letter-spacing: -0.025em;
  font-weight: 650;
  text-wrap: balance;
  margin-bottom: 14px;
}
.service-text { color: var(--ink-2); margin-bottom: 22px; max-width: 46ch; text-wrap: pretty; }
.ticks { display: grid; gap: 10px; }
.ticks li {
  position: relative;
  padding-left: 30px;
  font-size: .95rem;
  color: var(--ink-2);
}
.ticks li::before {
  content: "";
  position: absolute;
  left: 0; top: .18em;
  width: 18px; height: 18px;
  border-radius: 6px;
  background: var(--cyan-soft);
  border: 1px solid rgba(47, 216, 255, .35);
}
.ticks li::after {
  content: "";
  position: absolute;
  left: 6px; top: calc(.18em + 4px);
  width: 6px; height: 9px;
  border: solid var(--cyan);
  border-width: 0 1.6px 1.6px 0;
  transform: rotate(45deg);
}

.service-demo {
  position: relative;
  min-height: 340px;
  border-radius: 20px;
  border: 1px solid var(--line);
  background:
    radial-gradient(70% 60% at 50% 40%, rgba(30, 139, 255, .12), transparent 70%),
    #040E24;
  overflow: hidden;
}
.service-demo::after {
  /* faint instrument grid */
  content: "";
  position: absolute;
  inset: 0;
  pointer-events: none;
  background-image:
    linear-gradient(rgba(140, 180, 255, .05) 1px, transparent 1px),
    linear-gradient(90deg, rgba(140, 180, 255, .05) 1px, transparent 1px);
  background-size: 28px 28px;
  -webkit-mask-image: radial-gradient(80% 70% at 50% 50%, #000, transparent);
  mask-image: radial-gradient(80% 70% at 50% 50%, #000, transparent);
}
.demo-caption {
  position: absolute;
  left: 16px; bottom: 14px;
  z-index: 2;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-size: .68rem;
  letter-spacing: .04em;
  color: var(--mute);
}
.live-dot { width: 6px; height: 6px; border-radius: 50%; background: var(--ok); box-shadow: 0 0 0 0 rgba(61, 220, 151, .6); animation: live 2s infinite; }
@keyframes live { 70% { box-shadow: 0 0 0 7px rgba(61, 220, 151, 0); } 100% { box-shadow: 0 0 0 0 rgba(61, 220, 151, 0); } }

/* Flow demo */
.demo-flow { display: grid; place-items: center; padding: 18px 12px 40px; }
.flow-svg { position: relative; z-index: 1; width: 100%; max-width: 460px; height: auto; overflow: visible; }
.flow-paths path { fill: none; stroke: rgba(120, 170, 255, .22); stroke-width: 1.4; stroke-dasharray: 3 5; }
.flow-node rect { fill: #0A1C40; stroke: rgba(140, 190, 255, .3); stroke-width: 1; transition: stroke .4s, fill .4s; }
.flow-node text { fill: var(--ink-2); font: 500 10.5px var(--font-mono); text-anchor: middle; letter-spacing: .02em; }
.flow-hub rect { fill: #0C2552; stroke: rgba(47, 216, 255, .6); }
.flow-hub .hub-t1 { fill: var(--ink); font-weight: 500; }
.flow-hub .hub-t2 { fill: var(--cyan-2); }
.flow-node.is-hit rect { stroke: var(--cyan); fill: #0F2D5E; }
.flow-packets circle { fill: var(--cyan); filter: drop-shadow(0 0 4px var(--cyan)) drop-shadow(0 0 10px rgba(47, 216, 255, .7)); }
.flow-packets circle.gold { fill: var(--gold-2); filter: drop-shadow(0 0 4px var(--gold)) drop-shadow(0 0 10px rgba(229, 185, 92, .7)); }

/* Chat demo */
.demo-chat { display: flex; flex-direction: column; }
.chat-head {
  position: relative; z-index: 1;
  display: flex; align-items: center; gap: 10px;
  padding: 14px 16px;
  border-bottom: 1px solid var(--line);
  background: rgba(8, 22, 50, .7);
}
.chat-avatar {
  width: 32px; height: 32px; border-radius: 50%;
  display: grid; place-items: center;
  font: 600 .8rem var(--font-display);
  color: #03122B;
  background: var(--grad-brand);
}
.chat-name { display: grid; line-height: 1.2; font-size: .85rem; }
.chat-name small { color: var(--ok); font-size: .7rem; }
.chat-body {
  position: relative; z-index: 1;
  flex: 1;
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  gap: 10px;
  padding: 16px;
  min-height: 290px;
}
.msg {
  max-width: 86%;
  padding: 10px 13px;
  border-radius: 14px;
  font-size: .86rem;
  line-height: 1.5;
  animation: msg-in .55s var(--ease-out) both;
}
.msg-in { align-self: flex-start; background: #10264D; border-top-left-radius: 4px; color: var(--ink); }
.msg-out { align-self: flex-end; background: linear-gradient(135deg, #0E5BD8, #1294E8); border-top-right-radius: 4px; color: #fff; }
.msg-typing { display: inline-flex; gap: 4px; padding: 13px 14px; }
.msg-typing i { width: 6px; height: 6px; border-radius: 50%; background: var(--cyan-2); animation: typing 1.1s infinite; }
.msg-typing i:nth-child(2) { animation-delay: .15s; }
.msg-typing i:nth-child(3) { animation-delay: .3s; }
@keyframes typing { 0%, 60%, 100% { opacity: .25; transform: none; } 30% { opacity: 1; transform: translateY(-3px); } }
@keyframes msg-in { from { opacity: 0; transform: translateY(10px) scale(.98); } }
.extract {
  align-self: stretch;
  padding: 10px 12px 12px;
  border-radius: 14px;
  border: 1px dashed rgba(47, 216, 255, .35);
  background: rgba(47, 216, 255, .05);
  animation: msg-in .55s var(--ease-out) both;
}
.extract-label { display: block; font: 500 .66rem var(--font-mono); letter-spacing: .1em; text-transform: uppercase; color: var(--cyan-2); margin-bottom: 8px; }
.extract-chips { display: flex; flex-wrap: wrap; gap: 6px; }
.extract-chips span {
  padding: 4px 9px;
  border-radius: 8px;
  font-size: .76rem;
  background: rgba(10, 30, 66, .9);
  border: 1px solid var(--line-2);
  animation: msg-in .45s var(--ease-out) both;
}
.extract-chips small { color: var(--mute); margin-right: 5px; }

/* Dashboard demo */
.demo-dash { display: grid; grid-template-columns: 46px minmax(0, 1fr); }
.dash-side {
  position: relative; z-index: 1;
  display: grid; align-content: start; gap: 10px;
  padding: 16px 10px;
  border-right: 1px solid var(--line);
  background: rgba(8, 22, 50, .6);
}
.dash-side i { height: 26px; border-radius: 8px; background: rgba(140, 180, 255, .08); }
.dash-side i.on { background: var(--cyan-soft); border: 1px solid rgba(47, 216, 255, .4); }
.dash-main { position: relative; z-index: 1; padding: 16px; display: grid; gap: 14px; align-content: start; }
.dash-top { display: flex; align-items: center; justify-content: space-between; font-size: .85rem; }
.dash-chip { font-size: .62rem; padding: 3px 8px; border-radius: 999px; color: var(--ok); background: var(--ok-soft); }
.dash-stats { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 8px; }
.dash-stats > div { padding: 10px; border-radius: 10px; background: rgba(10, 28, 62, .8); border: 1px solid var(--line); display: grid; gap: 8px; }
.dash-stats small { font-size: .68rem; color: var(--mute); }
.dash-bar-mini { height: 5px; border-radius: 4px; background: rgba(140, 180, 255, .1); overflow: hidden; }
.dash-bar-mini i { display: block; height: 100%; width: calc(var(--v) * 100%); border-radius: inherit; background: var(--grad-brand); transition: width 1.2s var(--ease-out); }
.dash-chart {
  height: 104px;
  display: flex;
  align-items: flex-end;
  gap: 8px;
  padding: 10px;
  border-radius: 10px;
  background: rgba(10, 28, 62, .5);
  border: 1px solid var(--line);
}
.dash-chart i {
  flex: 1;
  height: calc(var(--h) * 100%);
  border-radius: 5px 5px 2px 2px;
  background: linear-gradient(to top, rgba(30, 139, 255, .35), var(--cyan));
  transition: height 1.1s var(--ease-out);
}
.dash-chart i:nth-child(6) { background: linear-gradient(to top, rgba(229, 185, 92, .35), var(--gold-2)); }
.dash-rows { display: grid; gap: 8px; }
.dash-rows li { display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 8px 10px; border-radius: 9px; background: rgba(10, 28, 62, .5); }
.dash-line { height: 6px; flex: 1; max-width: 60%; border-radius: 4px; background: rgba(140, 180, 255, .14); }
.pill { font-style: normal; font-size: .66rem; font-weight: 600; padding: 3px 9px; border-radius: 999px; transition: background-color .4s, color .4s; }
.pill-new { color: var(--warn); background: rgba(245, 184, 75, .14); }
.pill-sent { color: var(--cyan-2); background: var(--cyan-soft); }
.pill-done { color: var(--ok); background: var(--ok-soft); }

/* Website demo */
.demo-site { display: flex; flex-direction: column; padding: 18px; }
.site-bar {
  position: relative; z-index: 1;
  display: flex; align-items: center; gap: 6px;
  padding: 9px 12px;
  border-radius: 12px 12px 0 0;
  background: #0B1D40;
  border: 1px solid var(--line-2);
  border-bottom: 0;
}
.site-bar i { width: 8px; height: 8px; border-radius: 50%; background: rgba(140, 180, 255, .25); }
.site-url { margin-left: 10px; font-size: .68rem; color: var(--mute); padding: 3px 10px; border-radius: 6px; background: rgba(3, 9, 20, .6); }
.site-canvas {
  position: relative; z-index: 1;
  flex: 1;
  display: grid;
  align-content: start;
  gap: 12px;
  padding: 14px;
  border-radius: 0 0 12px 12px;
  border: 1px solid var(--line-2);
  background: #F4F7FC;
  overflow: hidden;
}
.sb { border-radius: 8px; }
.sb-nav { display: flex; gap: 8px; align-items: center; }
.sb-nav span { height: 8px; border-radius: 4px; background: #CBD5E6; flex: 0 0 34px; }
.sb-nav span:first-child { flex-basis: 60px; height: 12px; background: #0B2556; }
.sb-nav span:nth-child(2) { margin-left: auto; }
.sb-hero { display: grid; gap: 8px; padding: 18px 16px; background: linear-gradient(120deg, #0B2556, #0E58C9); }
.sb-h { height: 12px; width: 72%; border-radius: 4px; background: rgba(255, 255, 255, .92); }
.sb-h2 { width: 48%; }
.sb-p { height: 7px; width: 82%; border-radius: 4px; background: rgba(255, 255, 255, .45); margin-top: 4px; }
.sb-btn { height: 22px; width: 92px; border-radius: 999px; margin-top: 8px; background: linear-gradient(100deg, #1E7BFF, #2FDCF5); }
.sb-cards { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 8px; }
.sb-card { height: 62px; background: #fff; box-shadow: 0 6px 16px -10px rgba(11, 37, 86, .5); border: 1px solid #E3E9F3; }
.site-cursor {
  position: absolute;
  left: 70%; top: 85%;
  width: 16px; height: 16px;
  background: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16'%3E%3Cpath d='M2 1.5v12l3.4-3 2.3 5 2-1-2.2-4.8H12Z' fill='%23030914' stroke='%23fff' stroke-width='1'/%3E%3C/svg%3E") no-repeat center / contain;
  opacity: 0;
}
.site-toast {
  position: absolute;
  right: 14px; top: 14px;
  padding: 6px 10px;
  border-radius: 8px;
  font-size: .66rem;
  color: #fff;
  background: #128C4A;
  opacity: 0;
}
/* the build sequence runs only while the panel is on screen */
.demo-site.is-running .sb-nav { animation: sb-in 8s var(--ease-out) infinite; }
.demo-site.is-running .sb-hero { animation: sb-in 8s var(--ease-out) .25s infinite; }
.demo-site.is-running .sb-card { animation: sb-in 8s var(--ease-out) infinite; }
.demo-site.is-running .sb-card:nth-child(1) { animation-delay: .5s; }
.demo-site.is-running .sb-card:nth-child(2) { animation-delay: .62s; }
.demo-site.is-running .sb-card:nth-child(3) { animation-delay: .74s; }
.demo-site.is-running .site-cursor { animation: cursor-move 8s var(--ease-io) infinite; }
.demo-site.is-running .site-toast { animation: toast 8s var(--ease-out) infinite; }
.demo-site.is-running .sb-btn { animation: btn-press 8s infinite; }
@keyframes sb-in {
  0% { opacity: 0; transform: translateY(14px); filter: grayscale(1) contrast(.6); outline: 1px dashed #8EA3C8; }
  8% { opacity: 1; transform: none; }
  22% { filter: grayscale(1) contrast(.6); outline: 1px dashed #8EA3C8; }
  30%, 92% { opacity: 1; filter: none; outline: 1px dashed transparent; }
  100% { opacity: 0; }
}
@keyframes cursor-move {
  0%, 34% { opacity: 0; left: 78%; top: 92%; }
  40% { opacity: 1; }
  52% { left: 22%; top: 46%; }
  56% { transform: scale(.85); }
  60% { transform: none; }
  90% { opacity: 1; left: 22%; top: 46%; }
  100% { opacity: 0; left: 22%; top: 46%; }
}
@keyframes toast { 0%, 57% { opacity: 0; transform: translateY(-6px); } 61%, 88% { opacity: 1; transform: none; } 94%, 100% { opacity: 0; } }
@keyframes btn-press { 0%, 54% { transform: none; } 56% { transform: scale(.94); } 60% { transform: none; } }

/* Progress under the horizontal track (pinned layout only) */
.services-progress { display: none; margin-top: 28px; }
.sp-track { height: 2px; background: var(--line); border-radius: 2px; overflow: hidden; }
.sp-fill { display: block; height: 100%; width: 100%; background: var(--grad-brand); transform-origin: left; transform: scaleX(0); }
.sp-labels { display: grid; grid-template-columns: repeat(4, 1fr); margin-top: 12px; }
.sp-labels button {
  font-family: var(--font-mono);
  font-size: .72rem;
  letter-spacing: .08em;
  text-transform: uppercase;
  color: var(--faint);
  padding: 6px 0;
  transition: color .3s;
}
.sp-labels button.is-active { color: var(--ink); }
.sp-labels li:not(:first-child) { text-align: center; }
.sp-labels li:last-child { text-align: right; }

/* Horizontal pinned layout (desktop, set by JS) */
.h-scroll .services { padding-block: 0; }
.h-scroll .services-pin {
  height: 100vh;
  display: flex;
  flex-direction: column;
  justify-content: center;
  padding-top: var(--header-h);
}
.h-scroll .services-head { margin-bottom: clamp(24px, 3.5vh, 44px); }
.h-scroll .services-viewport { overflow: hidden; }
.h-scroll .services-track {
  display: flex;
  gap: 24px;
  width: max-content;
  max-width: none;
  margin: 0;
  padding-inline: max(var(--gutter), calc((100vw - var(--container)) / 2 + var(--gutter)));
  will-change: transform;
}
.h-scroll .service { flex: 0 0 min(1060px, 80vw); min-height: min(500px, 56vh); }
.h-scroll .services-progress { display: block; }

/* ---------- Pipeline ---------- */
.pipeline { position: relative; padding-block: var(--section-y); }
.pipeline-grid {
  display: grid;
  grid-template-columns: minmax(0, .9fr) minmax(0, 1.1fr);
  gap: clamp(32px, 5vw, 80px);
  align-items: center;
}
.pipeline .h2 { font-size: clamp(1.75rem, 1rem + 1.9vw, 2.75rem); }
.pipeline-sub { color: var(--mute); margin-top: 16px; max-width: 46ch; }
.stages { position: relative; display: grid; gap: 4px; margin-top: 32px; }
.stages::before {
  content: "";
  position: absolute;
  left: 15px; top: 14px; bottom: 14px;
  width: 1px;
  background: var(--line-2);
}
.stages::after {
  content: "";
  position: absolute;
  left: 15px; top: 14px;
  width: 1px;
  height: calc((100% - 28px) * var(--p, 0));
  background: linear-gradient(to bottom, var(--azure), var(--cyan));
  box-shadow: 0 0 10px var(--cyan);
  transition: height .5s var(--ease-out);
}
.stage {
  position: relative;
  display: grid;
  grid-template-columns: 32px minmax(0, 1fr);
  gap: 16px;
  padding: 8px 0;
  opacity: .42;
  transition: opacity .45s var(--ease-out);
}
.stage-n {
  position: relative;
  z-index: 1;
  width: 31px; height: 31px;
  display: grid; place-items: center;
  border-radius: 50%;
  font-size: .66rem;
  color: var(--mute);
  background: var(--void);
  border: 1px solid var(--line-2);
  transition: color .4s, border-color .4s, box-shadow .4s;
}
.stage b { display: block; font-size: 1.02rem; font-weight: 650; line-height: 1.35; padding-top: 4px; }
.stage p { font-size: .9rem; color: var(--mute); line-height: 1.55; margin-top: 2px; }
.stage.is-done { opacity: .72; }
.stage.is-done .stage-n { color: var(--cyan-2); border-color: rgba(47, 216, 255, .45); }
.stage.is-active { opacity: 1; }
.stage.is-active .stage-n { color: #03122B; background: var(--cyan); border-color: var(--cyan); box-shadow: 0 0 0 5px var(--cyan-soft), 0 0 18px rgba(47, 216, 255, .6); }

.console {
  position: relative;
  display: grid;
  gap: 14px;
  padding: clamp(14px, 2vw, 22px);
  border-radius: var(--r-lg);
  border: 1px solid var(--line-2);
  background:
    radial-gradient(90% 60% at 80% 0%, rgba(30, 139, 255, .14), transparent 60%),
    rgba(6, 17, 40, .78);
  box-shadow: 0 40px 100px -40px rgba(0, 0, 0, .8), inset 0 1px 0 rgba(255, 255, 255, .05);
}
.console-rail { position: relative; height: 64px; }
.rail-svg { position: absolute; inset: 0; width: 100%; height: 100%; }
.rail-base { stroke: var(--line-2); stroke-width: 2; fill: none; vector-effect: non-scaling-stroke; }
.rail-fill { stroke: var(--cyan); stroke-width: 2; fill: none; vector-effect: non-scaling-stroke; stroke-dasharray: 540; stroke-dashoffset: calc(540 - 540 * var(--p, 0)); filter: drop-shadow(0 0 4px var(--cyan)); transition: stroke-dashoffset .5s var(--ease-out); }
.rail-nodes {
  position: relative;
  height: 100%;
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding-inline: calc(5% - 20px);
}
.rail-nodes li {
  width: 40px; height: 40px;
  display: grid; place-items: center;
  border-radius: 12px;
  background: #081733;
  border: 1px solid var(--line-2);
  transition: border-color .4s, background-color .4s, box-shadow .4s, transform .4s var(--ease-out);
}
.rail-nodes svg { width: 20px; height: 20px; fill: none; stroke: var(--mute); stroke-width: 1.5; stroke-linecap: round; stroke-linejoin: round; transition: stroke .4s; }
.rail-nodes li.is-done { border-color: rgba(47, 216, 255, .45); }
.rail-nodes li.is-done svg { stroke: var(--cyan-2); }
.rail-nodes li.is-active { background: #0D2A5C; border-color: var(--cyan); box-shadow: 0 0 0 5px var(--cyan-soft), 0 0 24px rgba(47, 216, 255, .5); transform: translateY(-2px); }
.rail-nodes li.is-active svg { stroke: #fff; }
.rail-packet {
  position: absolute;
  top: 50%;
  left: calc(5% + 90% * var(--p, 0));
  width: 10px; height: 10px;
  margin: -5px 0 0 -5px;
  border-radius: 50%;
  background: #fff;
  box-shadow: 0 0 0 3px rgba(47, 216, 255, .4), 0 0 16px 4px var(--cyan);
  transition: left .5s var(--ease-out);
  pointer-events: none;
}

.console-preview {
  position: relative;
  height: 200px;
  border-radius: 16px;
  border: 1px solid var(--line);
  background: #040D22;
  overflow: hidden;
}
.pv {
  position: absolute;
  inset: 0;
  padding: 18px;
  display: flex;
  flex-direction: column;
  justify-content: center;
  gap: 12px;
  opacity: 0;
  transform: translateY(14px) scale(.985);
  transition: opacity .5s var(--ease-out), transform .6s var(--ease-out);
  pointer-events: none;
}
.pv.is-active { opacity: 1; transform: none; }
.pv-label { font-size: .66rem; letter-spacing: .1em; text-transform: uppercase; color: var(--mute); }
.bubble { max-width: 88%; padding: 12px 14px; border-radius: 14px; font-size: .9rem; line-height: 1.5; }
.bubble-in { background: #10264D; border-top-left-radius: 4px; }
.bubble-out { align-self: flex-end; display: inline-flex; align-items: center; gap: 10px; background: linear-gradient(135deg, #0E5BD8, #1294E8); border-top-right-radius: 4px; }
.doc-chip { padding: 6px 10px; border-radius: 8px; background: rgba(255, 255, 255, .16); font: 500 .76rem var(--font-mono); }
.ticks-2 { color: #9FF0FF; font-size: .78rem; letter-spacing: -2px; }
.reminder { align-self: flex-end; font-size: .72rem; color: var(--gold-2); padding: 5px 10px; border-radius: 999px; background: var(--gold-soft); }
.fields { display: flex; flex-wrap: wrap; gap: 8px; }
.fields span { display: grid; gap: 2px; padding: 8px 12px; border-radius: 10px; background: #0B1F45; border: 1px solid var(--line-2); font-size: .88rem; font-weight: 600; }
.fields span em { font-style: normal; }
.fields small { font: 500 .62rem var(--font-mono); letter-spacing: .08em; text-transform: uppercase; color: var(--cyan-2); }
.price-lines { display: grid; gap: 8px; }
.price-lines li { display: flex; align-items: center; justify-content: space-between; padding: 8px 12px; border-radius: 10px; background: #0A1C40; font-size: .86rem; }
.ok { width: 18px; height: 18px; border-radius: 50%; background: var(--ok-soft); position: relative; flex: none; }
.ok::after { content: ""; position: absolute; left: 6px; top: 3.5px; width: 5px; height: 9px; border: solid var(--ok); border-width: 0 1.6px 1.6px 0; transform: rotate(45deg); }
.pdf-doc { display: flex; align-items: center; gap: 18px; }
.pdf-page {
  position: relative;
  width: 104px; height: 136px;
  flex: none;
  border-radius: 6px;
  background: #F6F8FC;
  box-shadow: 0 16px 30px -12px rgba(0, 0, 0, .7);
  padding: 12px 10px;
  display: grid; align-content: start; gap: 6px;
}
.pdf-logo { width: 34px; height: 9px; border-radius: 2px; background: #0B2556; margin-bottom: 4px; }
.pdf-page .l { height: 4px; border-radius: 2px; background: #C9D3E4; }
.pdf-page .l1 { width: 80%; } .pdf-page .l2 { width: 64%; } .pdf-page .l3 { width: 88%; } .pdf-page .l4 { width: 50%; }
.pdf-table { height: 40px; margin-top: 4px; border-radius: 3px; background: repeating-linear-gradient(to bottom, #E2E8F2 0 9px, #F6F8FC 9px 13px); }
.pdf-meta { display: grid; gap: 4px; font-size: .8rem; }
.pdf-meta small { color: var(--mute); font-size: .72rem; }
.approve { display: flex; align-items: center; gap: 12px; padding: 14px; border-radius: 14px; background: #0A1C40; border: 1px solid var(--line-2); }
.approve-avatar { width: 36px; height: 36px; border-radius: 50%; display: grid; place-items: center; font: 600 .72rem var(--font-mono); color: #2A1B02; background: var(--grad-gold); flex: none; }
.approve-text { display: grid; line-height: 1.3; font-size: .88rem; flex: 1; min-width: 0; }
.approve-text small { color: var(--mute); font-size: .76rem; }
.approve-btn { padding: 8px 14px; border-radius: 999px; font-size: .8rem; font-weight: 650; color: #03122B; background: var(--ok); box-shadow: 0 0 0 0 rgba(61, 220, 151, .6); animation: live 1.8s infinite; flex: none; }

.terminal { border-radius: 14px; border: 1px solid var(--line); background: #020814; overflow: hidden; }
.term-head { display: flex; align-items: center; gap: 6px; padding: 9px 12px; border-bottom: 1px solid var(--line); font-size: .68rem; color: var(--faint); }
.term-head i { width: 8px; height: 8px; border-radius: 50%; background: rgba(140, 180, 255, .18); }
.term-head span { margin-left: 8px; }
.term-lines { display: grid; gap: 3px; padding: 12px 14px; font-size: .72rem; line-height: 1.55; color: var(--ink-2); overflow-x: auto; }
.term-lines li { display: grid; grid-template-columns: 64px 84px minmax(0, 1fr); gap: 8px; white-space: nowrap; transition: opacity .35s, transform .35s var(--ease-out); }
.term-lines time { color: var(--faint); }
.term-lines .k { color: var(--cyan); }
.term-lines .k.ok { color: var(--ok); }
.js .term-lines li.is-off { opacity: .14; }
.console-note { font-size: .74rem; color: var(--faint); }

.h-scroll .pipeline { padding-block: 0; }
.h-scroll .pipeline-pin { min-height: 100vh; display: flex; align-items: center; padding-block: calc(var(--header-h) + 16px) 24px; }
@media (max-height: 820px) {
  .h-scroll .stage:not(.is-active) p { display: none; }
  .h-scroll .console-preview { height: 170px; }
}

/* ---------- Product ---------- */
.product { position: relative; padding-block: var(--section-y); }
.product::before {
  content: "";
  position: absolute;
  left: 0; right: 0; top: 0;
  height: 1px;
  background: linear-gradient(90deg, transparent, var(--line-2), transparent);
}
.product-head { margin-bottom: clamp(36px, 5vw, 64px); }
.product-title-row { display: flex; flex-wrap: wrap; align-items: baseline; gap: 12px 28px; margin-bottom: 20px; }
.product-name {
  font-size: clamp(2.6rem, 1.2rem + 5vw, 5.6rem);
  letter-spacing: -0.045em;
  line-height: 1;
}
.product-name-link { color: inherit; transition: color .3s; }
.product-name-ext { display: inline-block; vertical-align: top; width: .36em; height: .36em; margin: .08em 0 0 .06em; opacity: .4; transition: transform .5s var(--ease-out), opacity .3s, color .3s; }
.product-name-link:hover .product-name-ext { transform: translate(4px, -4px); opacity: 1; color: var(--cyan); }
.product-name-link:hover em { color: var(--cyan-2); }
.product-name em {
  font-family: var(--font-serif);
  font-style: italic;
  font-weight: 400;
  letter-spacing: -0.01em;
  color: #A9CDE6;
}
.product-tagline { font-size: clamp(1rem, .95rem + .35vw, 1.2rem); color: var(--ink-2); max-width: 32ch; }
.product-intro { color: var(--mute); max-width: 68ch; text-wrap: pretty; }
.product-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.35fr) minmax(0, .9fr);
  gap: clamp(32px, 5vw, 72px);
  align-items: start;
}
.device-wrap { position: sticky; top: calc(var(--header-h) + 48px); perspective: 1800px; padding-bottom: 36px; }
.device {
  position: relative;
  border-radius: 18px;
  border: 1px solid var(--line-3);
  background: #0A1730;
  box-shadow: 0 60px 120px -50px rgba(30, 139, 255, .55), 0 30px 60px -30px rgba(0, 0, 0, .8);
  transform-origin: 50% 100%;
  transform: rotateX(var(--tilt-x, 0deg)) rotateY(var(--tilt-y, 0deg)) scale(var(--tilt-s, 1));
  overflow: hidden;
}
.device-bar { display: flex; align-items: center; gap: 6px; padding: 10px 14px; border-bottom: 1px solid var(--line); }
.device-bar i { width: 9px; height: 9px; border-radius: 50%; background: rgba(140, 180, 255, .22); }
.device-bar span { margin-left: 12px; font-size: .7rem; color: var(--mute); padding: 3px 12px; border-radius: 6px; background: rgba(3, 9, 20, .6); }
.device-screen { position: relative; aspect-ratio: 16 / 10; background: #F6F7FA; overflow: hidden; }
.device-screen img {
  position: absolute; inset: 0;
  width: 100%; height: 100%;
  object-fit: cover; object-position: top left;
  opacity: 0;
  transform: scale(1.04);
  transition: opacity .7s var(--ease-out), transform 1.2s var(--ease-out);
}
.device-screen img.is-active { opacity: 1; transform: none; }
.phone {
  position: absolute;
  right: -3%; bottom: 0;
  width: 23%;
  border-radius: 22px;
  border: 5px solid #0B1324;
  outline: 1px solid var(--line-3);
  background: #0B1324;
  overflow: hidden;
  box-shadow: 0 30px 60px -20px rgba(0, 0, 0, .85), 0 0 40px -10px rgba(47, 216, 255, .35);
  animation: float 7s ease-in-out infinite;
}
.phone img { width: 100%; aspect-ratio: 640 / 1100; object-fit: cover; object-position: top; }
@keyframes float { 50% { transform: translateY(-10px); } }
.device-note { margin-top: 14px; font-size: .7rem; letter-spacing: .04em; color: var(--faint); }

.product-side { min-width: 0; }
.features { display: grid; }
.feature {
  position: relative;
  display: grid;
  grid-template-columns: 40px minmax(0, 1fr);
  column-gap: 12px;
  padding-block: 26px;
  border-top: 1px solid var(--line);
  opacity: .5;
  cursor: pointer;
  transition: opacity .5s var(--ease-out);
}
.feature:last-child { border-bottom: 1px solid var(--line); }
.feature-n { grid-row: span 2; font-size: .72rem; color: var(--faint); padding-top: 5px; transition: color .4s; }
.feature h3 { font-size: 1.22rem; font-weight: 650; letter-spacing: -0.015em; line-height: 1.35; margin-bottom: 6px; }
.feature p { color: var(--mute); font-size: .94rem; }
.feature.is-active { opacity: 1; }
.feature.is-active .feature-n { color: var(--cyan); }
.feature::after {
  content: "";
  position: absolute;
  left: 0; top: -1px;
  height: 1px; width: 100%;
  background: var(--grad-brand);
  transform: scaleX(0);
  transform-origin: left;
  transition: transform .8s var(--ease-out);
}
.feature.is-active::after { transform: scaleX(1); }

.product-facts { display: grid; gap: 0; margin-block: 32px 28px; border-radius: var(--r); border: 1px solid var(--line); overflow: hidden; }
.product-facts > div { display: grid; grid-template-columns: 120px minmax(0, 1fr); gap: 12px; padding: 13px 16px; }
.product-facts > div + div { border-top: 1px solid var(--line); }
.product-facts dt { font-family: var(--font-mono); font-size: .68rem; letter-spacing: .1em; text-transform: uppercase; color: var(--mute); padding-top: 3px; }
.product-facts dd { font-size: .94rem; color: var(--ink); }
.product-actions { display: flex; flex-wrap: wrap; gap: 12px; }

/* Desktop: features are tall so scrolling through them switches the screen */
@media (min-width: 1024px) {
  .js .feature { min-height: 34vh; align-content: center; }
  .js .feature:first-child { min-height: 26vh; align-content: start; }
}

/* ---------- Process ---------- */
.process { position: relative; padding-block: var(--section-y); }
.process .container { position: relative; }
.steps { position: relative; z-index: 1; display: grid; grid-template-columns: repeat(5, minmax(0, 1fr)); gap: 28px; }
.step { position: relative; padding-top: 52px; }
.step-node {
  position: absolute;
  left: 0; top: 0;
  width: 22px; height: 22px;
  border-radius: 50%;
  border: 1px solid var(--line-3);
  background: var(--void);
  display: grid; place-items: center;
  transition: border-color .5s, box-shadow .5s;
}
.step-node i { width: 8px; height: 8px; border-radius: 50%; background: var(--line-3); transition: background-color .5s, box-shadow .5s; }
.step.is-lit .step-node { border-color: var(--cyan); box-shadow: 0 0 0 6px var(--cyan-soft); }
.step.is-lit .step-node i { background: var(--cyan); box-shadow: 0 0 12px var(--cyan); }
.step-n { display: block; font-size: .72rem; color: var(--gold); margin-bottom: 10px; letter-spacing: .06em; }
.step h3 { font-size: 1.2rem; font-weight: 650; letter-spacing: -0.015em; margin-bottom: 8px; }
.step p { color: var(--mute); font-size: .94rem; }
.beam {
  position: absolute;
  left: calc(var(--gutter) + 11px);
  right: var(--gutter);
  top: calc(var(--section-head-h, 0px) + 11px);
  height: 1px;
  background: var(--line-2);
  pointer-events: none;
}
.beam-fill {
  position: absolute;
  inset: 0;
  background: linear-gradient(90deg, var(--azure), var(--cyan), var(--gold-2));
  box-shadow: 0 0 12px var(--cyan);
  transform-origin: left;
  transform: scaleX(var(--p, 0));
}

/* ---------- About ---------- */
.about { position: relative; padding-block: var(--section-y); }
.about-grid {
  display: grid;
  grid-template-columns: minmax(0, .95fr) minmax(0, 1.05fr);
  gap: clamp(40px, 6vw, 96px);
  align-items: center;
}
.logo-plate { perspective: 1200px; }
.logo-plate-inner {
  position: relative;
  border-radius: 28px;
  padding: clamp(20px, 3vw, 36px);
  background: #FCFCFC;
  box-shadow: 0 50px 100px -40px rgba(30, 139, 255, .55), 0 0 0 1px rgba(255, 255, 255, .6) inset;
  transform: rotateX(var(--rx, 0deg)) rotateY(var(--ry, 0deg));
  transition: transform .6s var(--ease-out);
  overflow: hidden;
}
.logo-plate-inner::after {
  /* glare that follows the pointer */
  content: "";
  position: absolute;
  inset: 0;
  pointer-events: none;
  background: radial-gradient(40% 40% at var(--gx, 30%) var(--gy, 20%), rgba(255, 255, 255, .55), transparent 70%);
  mix-blend-mode: soft-light;
}
.logo-plate img { width: 100%; }
.logo-plate figcaption { margin-top: 14px; font-size: .7rem; letter-spacing: .1em; text-transform: uppercase; color: var(--faint); }
.about-lead { color: var(--ink-2); font-size: 1.1rem; margin-top: 18px; max-width: 48ch; }
.principles { display: grid; gap: 24px; margin-top: 36px; }
.principles li { display: grid; grid-template-columns: 48px minmax(0, 1fr); gap: 16px; align-items: start; }
.pr-icon {
  width: 48px; height: 48px;
  padding: 9px;
  border-radius: 14px;
  border: 1px solid var(--line-2);
  background: rgba(10, 28, 62, .6);
  fill: none;
  stroke: var(--cyan);
  stroke-width: 1.5;
  stroke-linecap: round;
  stroke-linejoin: round;
}
.principles li:nth-child(2) .pr-icon { stroke: var(--gold-2); }
.principles h3 { font-size: 1.12rem; font-weight: 650; margin-bottom: 4px; }
.principles p { color: var(--mute); font-size: .95rem; }

/* ---------- Contact ---------- */
@property --angle { syntax: "<angle>"; initial-value: 0deg; inherits: false; }
.contact { position: relative; padding-block: var(--section-y) calc(var(--section-y) * .7); }
.contact-card {
  position: relative;
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1.05fr);
  gap: clamp(32px, 5vw, 72px);
  padding: clamp(22px, 4.5vw, 60px);
  border-radius: 32px;
  background:
    radial-gradient(80% 80% at 0% 0%, rgba(30, 139, 255, .16), transparent 60%),
    rgba(6, 17, 40, .82);
  isolation: isolate;
}
.contact-card::before {
  /* rotating light along the border */
  content: "";
  position: absolute;
  inset: 0;
  z-index: -1;
  padding: 1px;
  border-radius: inherit;
  background: conic-gradient(from var(--angle), rgba(140, 180, 255, .14) 0deg, rgba(47, 216, 255, .9) 40deg, rgba(229, 185, 92, .8) 70deg, rgba(140, 180, 255, .14) 110deg, rgba(140, 180, 255, .14) 360deg);
  -webkit-mask: linear-gradient(#000 0 0) content-box, linear-gradient(#000 0 0);
  -webkit-mask-composite: xor;
  mask: linear-gradient(#000 0 0) content-box exclude, linear-gradient(#000 0 0);
  animation: spin-border 9s linear infinite;
}
@keyframes spin-border { to { --angle: 360deg; } }
.contact-lead { color: var(--ink-2); margin-top: 18px; max-width: 44ch; }
.contact-direct { margin-top: 36px; padding-top: 24px; border-top: 1px solid var(--line); }
.contact-label { display: block; font-size: .7rem; letter-spacing: .1em; text-transform: uppercase; color: var(--mute); margin-bottom: 10px; }
.wa-row { display: flex; flex-wrap: wrap; align-items: center; gap: 12px; }
.wa-number { font-family: var(--font-display); font-size: clamp(1.3rem, 1rem + 1.2vw, 1.9rem); font-weight: 500; letter-spacing: -0.02em; user-select: all; }
.wa-number:hover { color: var(--cyan-2); }
.copy-btn { padding: 7px 14px; border-radius: 999px; border: 1px solid var(--line-2); font-size: .8rem; font-weight: 600; color: var(--ink-2); transition: border-color .3s, color .3s; }
.copy-btn:hover { border-color: var(--cyan); color: var(--ink); }
.copy-btn.is-done { border-color: var(--ok); color: var(--ok); }

.contact-form { display: grid; gap: 18px; align-content: start; }
.field { display: grid; gap: 8px; }
.field label, .field legend { font-size: .86rem; font-weight: 600; color: var(--ink-2); }
.field legend { margin-bottom: 10px; }
.field input, .field textarea {
  width: 100%;
  padding: 13px 15px;
  border-radius: 12px;
  border: 1px solid var(--line-2);
  background: var(--field);
  color: var(--ink);
  font-size: 1rem;
  line-height: 1.5;
  transition: border-color .25s, box-shadow .25s;
}
.field textarea { resize: vertical; min-height: 120px; }
.field input::placeholder, .field textarea::placeholder { color: var(--faint); }
.field input:focus, .field textarea:focus { outline: none; border-color: var(--cyan); box-shadow: 0 0 0 4px var(--cyan-soft); }
.field [aria-invalid="true"] { border-color: var(--rose); }
.field-error { font-size: .82rem; color: var(--rose); }
.chips { display: flex; flex-wrap: wrap; gap: 8px; }
.chip {
  padding: 8px 14px;
  border-radius: 999px;
  border: 1px solid var(--line-2);
  font-size: .84rem;
  color: var(--ink-2);
  background: rgba(255, 255, 255, .02);
  transition: border-color .25s, background-color .25s, color .25s;
}
.chip:hover { border-color: rgba(47, 216, 255, .5); }
.chip[aria-pressed="true"] { color: #03122B; background: var(--cyan); border-color: var(--cyan); }
.form-status { font-size: .88rem; color: var(--ok); }
.form-status a { text-decoration: underline; text-underline-offset: 3px; color: var(--cyan-2); }

/* ---------- Footer ---------- */
.site-footer { position: relative; padding-top: clamp(56px, 7vw, 96px); border-top: 1px solid var(--line); overflow: hidden; }
.footer-grid { display: grid; grid-template-columns: minmax(0, 1.5fr) repeat(3, minmax(0, 1fr)); gap: 32px; }
.footer-mark { width: 76px; margin-bottom: 16px; }
.footer-brand p { color: var(--mute); max-width: 32ch; font-size: .95rem; }
.footer-col { display: grid; gap: 10px; align-content: start; }
.footer-col h3 { font-family: var(--font-mono); font-size: .7rem; font-weight: 500; letter-spacing: .12em; text-transform: uppercase; color: var(--faint); margin-bottom: 6px; }
.footer-col a { color: var(--ink-2); font-size: .94rem; width: fit-content; transition: color .25s; }
.footer-col a:hover { color: var(--cyan-2); }
.footer-word {
  position: relative;
  max-width: var(--container);
  margin: clamp(48px, 7vw, 96px) auto 0;
  padding-inline: var(--gutter);
}
.footer-word svg { width: 100%; height: auto; aspect-ratio: 534 / 56; }
.footer-word .fw-glow { position: absolute; top: 0; left: var(--gutter); width: calc(100% - var(--gutter) * 2); }
.fw-base { --wm-a: rgba(234, 241, 255, .07); --wm-b: rgba(47, 216, 255, .09); }
.fw-glow {
  --wm-a: #EAF1FF;
  --wm-b: url(#wm-grad);
  -webkit-mask-image: radial-gradient(circle at var(--mx, 50%) var(--my, 50%), #000 0, rgba(0, 0, 0, .55) 90px, transparent 260px);
  mask-image: radial-gradient(circle at var(--mx, 50%) var(--my, 50%), #000 0, rgba(0, 0, 0, .55) 90px, transparent 260px);
  opacity: var(--glow, .0);
  transition: opacity .6s var(--ease-out);
}
.footer-bottom {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 12px;
  padding-block: 28px calc(28px + env(safe-area-inset-bottom, 0px));
  margin-top: 24px;
  border-top: 1px solid var(--line);
  font-size: .84rem;
  color: var(--faint);
}
.to-top:hover { color: var(--ink); }

/* ---------- Generic reveal (set by JS only) ---------- */
.js [data-reveal] { will-change: transform, opacity; }

/* ==========================================================================
   Responsive
   ========================================================================== */
@media (max-width: 1100px) {
  .nav a { padding: 8px 9px; font-size: .86rem; }
}

@media (max-width: 1023px) {
  .nav, .header-cta { display: none; }
  .menu-toggle { display: inline-flex; }

  .services-head { grid-template-columns: minmax(0, 1fr); }
  .services-sub { justify-self: start; }
  .service { grid-template-columns: minmax(0, 1fr); }
  .service-demo { min-height: 320px; }

  .pipeline-grid { grid-template-columns: minmax(0, 1fr); }
  .stage p { display: block; }

  .product-grid { grid-template-columns: minmax(0, 1fr); }
  .device-wrap { position: relative; top: 0; }
  .features {
    display: flex;
    gap: 12px;
    overflow-x: auto;
    scroll-snap-type: x mandatory;
    margin-inline: calc(var(--gutter) * -1);
    padding-inline: var(--gutter);
    padding-bottom: 6px;
    scrollbar-width: none;
  }
  .features::-webkit-scrollbar { display: none; }
  .feature {
    flex: 0 0 min(82%, 380px);
    scroll-snap-align: start;
    padding: 20px;
    border: 1px solid var(--line);
    border-radius: var(--r);
    background: rgba(8, 22, 50, .5);
  }
  .feature:last-child { border-bottom: 1px solid var(--line); }
  .feature::after { left: 20px; right: 20px; width: auto; }

  .steps { grid-template-columns: minmax(0, 1fr); gap: 0; }
  .step { padding: 0 0 36px 52px; }
  .step:last-child { padding-bottom: 0; }
  .beam {
    left: calc(var(--gutter) + 11px);
    right: auto;
    top: var(--steps-top, 0px);
    bottom: 0;
    width: 1px;
    height: auto;
  }
  .beam-fill { background: linear-gradient(180deg, var(--azure), var(--cyan), var(--gold-2)); transform-origin: top; transform: scaleY(var(--p, 0)); }

  .about-grid { grid-template-columns: minmax(0, 1fr); }
  .logo-plate { max-width: 520px; }

  .contact-card { grid-template-columns: minmax(0, 1fr); }

  .footer-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .footer-brand { grid-column: 1 / -1; }
}

@media (max-width: 959px) {
  .hero { min-height: 0; align-items: flex-start; padding-bottom: 88px; }
  .hero-grid { grid-template-columns: minmax(0, 1fr); gap: 8px; }
  .hero-visual { grid-column: 1; grid-row: 1; aspect-ratio: 1.55; width: min(100%, 620px); justify-self: center; margin-top: 4px; }
  .hero-copy { grid-column: 1; grid-row: 2; }
  .scroll-cue { display: none; }
  .orbit-label:nth-child(3), .orbit-label:nth-child(4) { display: none; }
}

@media (max-width: 560px) {
  :root { --header-h: 64px; }
  .brand-mark { width: 46px; }
  .brand-word { width: 104px; height: 11px; }
  .lang button { min-width: 34px; }
  .hero-visual { aspect-ratio: 1.3; }
  .hero-actions .btn { flex: 1 1 auto; }
  .hero-product { display: grid; grid-template-columns: minmax(0, 1fr) auto; align-items: center; border-radius: 18px; padding: 10px 14px 12px 10px; }
  .hero-product-tag { grid-column: 1 / -1; justify-self: start; }
  .hero-product > span:not(.hero-product-tag) { padding-left: 4px; }
  .service-demo { min-height: 300px; }
  .demo-dash { grid-template-columns: 36px minmax(0, 1fr); }
  .dash-side { padding: 12px 6px; }
  .console-preview { height: 220px; }
  .pdf-page { width: 84px; height: 112px; }
  .term-lines { font-size: .66rem; }
  .term-lines li { grid-template-columns: 58px 72px minmax(0, 1fr); }
  .product-facts > div { grid-template-columns: minmax(0, 1fr); gap: 2px; }
  .phone { width: 28%; right: -2%; }
  .footer-grid { grid-template-columns: minmax(0, 1fr); }
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    animation-duration: .001ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: .001ms !important;
    transition-delay: 0ms !important;
  }
  .marquee-track { animation: none; }
}
