/* ==========================================================================
   PingSphere — core stylesheet
   Direction: "network operations center at 2am"
   Instrument-panel precision · hairline grids · telemetry monospace
   ========================================================================== */

/* --------------------------------------------------------------------------
   1. Tokens
   -------------------------------------------------------------------------- */
:root {
  /* Surfaces — tonal ramp, never pure black */
  --ink-950: #05070d;
  --ink-900: #0b0f19;
  --ink-850: #0e1421;
  --ink-800: #111827;
  --ink-700: #161f33;
  --ink-600: #1d2740;
  --ink-500: #27324f;

  /* Ink */
  --text: #f8fafc;
  --text-2: #a9b4c7;
  --text-3: #8a96a9;

  /* Signal */
  --blue: #1e90ff;
  --blue-2: #57aaff;
  --blue-3: #a5d0ff;
  --purple: #6c63ff;
  --purple-2: #948dff;
  --teal: #2fd9c8;
  --amber: #f0b429;

  /* Lines */
  --line: rgba(148, 163, 184, 0.11);
  --line-2: rgba(148, 163, 184, 0.19);
  --line-3: rgba(148, 163, 184, 0.32);

  /* Glass */
  --glass: rgba(17, 24, 39, 0.55);
  --glass-2: rgba(22, 31, 51, 0.7);
  --glass-brd: rgba(148, 163, 184, 0.14);

  /* Tinted, directional shadows — never flat gray */
  --sh-sm: 0 1px 2px rgba(3, 6, 14, 0.5);
  --sh-md: 0 12px 28px -12px rgba(4, 8, 20, 0.8), 0 2px 6px rgba(4, 8, 20, 0.45);
  --sh-lg: 0 40px 80px -32px rgba(4, 8, 20, 0.9), 0 8px 24px -12px rgba(30, 144, 255, 0.16);
  --sh-glow: 0 0 0 1px rgba(30, 144, 255, 0.22), 0 24px 60px -28px rgba(30, 144, 255, 0.42);

  /* Radii */
  --r-xs: 6px;
  --r-sm: 10px;
  --r: 14px;
  --r-lg: 20px;
  --r-xl: 28px;
  --r-pill: 999px;

  /* Type */
  --f-display: "Archivo", "Archivo Expanded", ui-sans-serif, sans-serif;
  --f-body: "Hanken Grotesk", ui-sans-serif, sans-serif;
  --f-mono: "IBM Plex Mono", ui-monospace, "SFMono-Regular", monospace;

  /* Modular scale — 1.25 */
  --t-xs: 0.75rem;
  --t-sm: 0.8125rem;
  --t-base: 1rem;
  --t-md: clamp(1.0625rem, 0.3vw + 1rem, 1.1875rem);
  --t-lg: clamp(1.25rem, 0.6vw + 1.1rem, 1.5rem);
  --t-xl: clamp(1.5rem, 1vw + 1.25rem, 2rem);
  --t-2xl: clamp(1.95rem, 2vw + 1.4rem, 2.85rem);
  --t-3xl: clamp(2.4rem, 3.6vw + 1.4rem, 4.1rem);
  --t-4xl: clamp(2.9rem, 5.4vw + 1.2rem, 5.75rem);

  /* Motion */
  --ease: cubic-bezier(0.22, 1, 0.36, 1);
  --ease-io: cubic-bezier(0.65, 0, 0.35, 1);
  --dur: 0.4s;

  /* Layout */
  --wrap: 1240px;
  --gutter: clamp(1.15rem, 4vw, 3rem);
  --nav-h: 72px;
}

/* --------------------------------------------------------------------------
   2. Reset & base
   -------------------------------------------------------------------------- */
*,
*::before,
*::after { box-sizing: border-box; }

* { margin: 0; }

html {
  -webkit-text-size-adjust: 100%;
  scroll-behavior: smooth;
  scroll-padding-top: calc(var(--nav-h) + 24px);
}

body {
  font-family: var(--f-body);
  font-size: var(--t-md);
  line-height: 1.68;
  color: var(--text-2);
  background: var(--ink-900);
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  text-rendering: optimizeLegibility;
  overflow-x: clip;
  font-variant-ligatures: common-ligatures;
}

img, svg, video, canvas { display: block; max-width: 100%; }
img { height: auto; }

a { color: inherit; text-decoration: none; }

button, input, select, textarea { font: inherit; color: inherit; }

h1, h2, h3, h4, h5 {
  font-family: var(--f-display);
  color: var(--text);
  font-weight: 700;
  line-height: 1.06;
  letter-spacing: -0.028em;
  text-wrap: balance;
}

p { text-wrap: pretty; }

::selection {
  background: rgba(30, 144, 255, 0.32);
  color: #fff;
}

:focus-visible {
  outline: 2px solid var(--blue-2);
  outline-offset: 3px;
  border-radius: 4px;
}

/* Scrollbar */
::-webkit-scrollbar { width: 11px; height: 11px; }
::-webkit-scrollbar-track { background: var(--ink-950); }
::-webkit-scrollbar-thumb {
  background: var(--ink-600);
  border: 3px solid var(--ink-950);
  border-radius: 99px;
}
::-webkit-scrollbar-thumb:hover { background: var(--ink-500); }

/* --------------------------------------------------------------------------
   3. Atmosphere — layered background, never a flat fill
   -------------------------------------------------------------------------- */
.atmos {
  position: fixed;
  inset: 0;
  z-index: 0;
  pointer-events: none;
}

/* Gradient mesh */
.atmos::before {
  content: "";
  position: absolute;
  inset: 0;
  background:
    radial-gradient(58rem 40rem at 12% -8%, rgba(30, 144, 255, 0.17), transparent 62%),
    radial-gradient(46rem 36rem at 96% 4%, rgba(108, 99, 255, 0.16), transparent 60%),
    radial-gradient(70rem 48rem at 50% 118%, rgba(108, 99, 255, 0.1), transparent 66%);
}

/* Hairline engineering grid */
.atmos::after {
  content: "";
  position: absolute;
  inset: 0;
  background-image:
    linear-gradient(to right, rgba(148, 163, 184, 0.05) 1px, transparent 1px),
    linear-gradient(to bottom, rgba(148, 163, 184, 0.05) 1px, transparent 1px);
  background-size: 76px 76px;
  mask-image: radial-gradient(120% 90% at 50% 0%, #000 8%, transparent 72%);
  -webkit-mask-image: radial-gradient(120% 90% at 50% 0%, #000 8%, transparent 72%);
}

/* Grain — the cheapest premium signal */
.grain {
  position: fixed;
  inset: -50%;
  z-index: 1;
  pointer-events: none;
  opacity: 0.05;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='220' height='220'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.82' numOctaves='3' stitchTiles='stitch'/%3E%3CfeColorMatrix type='saturate' values='0'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
  animation: grain 7s steps(6) infinite;
  will-change: transform;
}

@keyframes grain {
  0%, 100% { transform: translate(0, 0); }
  16% { transform: translate(-3%, -2%); }
  33% { transform: translate(2%, -4%); }
  50% { transform: translate(-2%, 3%); }
  66% { transform: translate(3%, 2%); }
  83% { transform: translate(-3%, 1%); }
}

/* --------------------------------------------------------------------------
   4. Layout primitives
   -------------------------------------------------------------------------- */
.wrap {
  width: min(100% - var(--gutter) * 2, var(--wrap));
  margin-inline: auto;
}

.wrap-wide { --wrap: 1440px; }

main { position: relative; z-index: 2; }

section { position: relative; }

/* Section rhythm. Equal above and below; resolves to 82px at 1366 and 104px
   at 1920, keeping every breakpoint inside the 80-120px band. Height is
   always content-driven - no fixed or min heights on section content. */
.sect { padding-block: clamp(3.5rem, 6vw, 6.5rem); }
.sect-tight { padding-block: clamp(3rem, 4.6vw, 5.5rem); }

/* Hairline section separator with a tick mark, like a schematic */
.rule {
  position: relative;
  height: 1px;
  background: linear-gradient(90deg, transparent, var(--line-2) 12%, var(--line-2) 88%, transparent);
}
.rule::after {
  content: "";
  position: absolute;
  left: 50%;
  top: -3px;
  width: 7px;
  height: 7px;
  transform: translateX(-50%) rotate(45deg);
  background: var(--ink-900);
  border: 1px solid var(--line-3);
}

/* --------------------------------------------------------------------------
   5. Typographic components
   -------------------------------------------------------------------------- */
.kicker {
  display: inline-flex;
  align-items: center;
  gap: 0.6rem;
  font-family: var(--f-mono);
  font-size: var(--t-xs);
  font-weight: 500;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--blue-2);
}

.kicker::before {
  content: "";
  width: 26px;
  height: 1px;
  background: linear-gradient(90deg, transparent, var(--blue));
}

.kicker-num {
  font-family: var(--f-mono);
  font-size: var(--t-xs);
  letter-spacing: 0.18em;
  color: var(--text-3);
}

.h-sect {
  font-size: var(--t-2xl);
  margin-block: 0.85rem 1rem;
  max-width: 20ch;
}

.h-sect.wide { max-width: 28ch; }

.lede {
  font-size: var(--t-md);
  color: var(--text-2);
  max-width: 62ch;
}

.sect-head {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 0.85fr);
  gap: clamp(1.5rem, 4vw, 4rem);
  align-items: end;
  margin-bottom: clamp(2.5rem, 5vw, 4rem);
}

.sect-head > .lede { padding-bottom: 0.45rem; }

@media (max-width: 860px) {
  .sect-head { grid-template-columns: 1fr; gap: 1rem; align-items: start; }
}

.grad-text {
  background: linear-gradient(104deg, var(--blue-3) 0%, var(--blue) 34%, var(--purple-2) 78%);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

/* --------------------------------------------------------------------------
   6. Buttons
   -------------------------------------------------------------------------- */
.btn {
  --btn-bg: transparent;
  position: relative;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.6rem;
  padding: 0.85rem 1.5rem;
  border: 1px solid var(--line-2);
  border-radius: var(--r-pill);
  background: var(--btn-bg);
  font-family: var(--f-display);
  font-size: 0.95rem;
  font-weight: 600;
  letter-spacing: -0.01em;
  color: var(--text);
  cursor: pointer;
  isolation: isolate;
  overflow: hidden;
  transition: transform var(--dur) var(--ease), border-color var(--dur) var(--ease),
    box-shadow var(--dur) var(--ease), color var(--dur) var(--ease);
}

.btn svg { flex: none; transition: transform var(--dur) var(--ease); }
.btn:hover { transform: translateY(-2px); }
.btn:active { transform: translateY(0); }
.btn:hover svg.arw { transform: translateX(3px); }

.btn-primary {
  border-color: transparent;
  background: linear-gradient(118deg, var(--blue) 0%, #3d7bff 46%, var(--purple) 100%);
  color: #fff;
  box-shadow: 0 10px 30px -12px rgba(30, 144, 255, 0.65), inset 0 1px 0 rgba(255, 255, 255, 0.22);
}

/* Sheen sweep on hover */
.btn-primary::after {
  content: "";
  position: absolute;
  inset: 0;
  z-index: -1;
  background: linear-gradient(105deg, transparent 30%, rgba(255, 255, 255, 0.32) 48%, transparent 66%);
  transform: translateX(-120%);
  transition: transform 0.75s var(--ease);
}
.btn-primary:hover::after { transform: translateX(120%); }
.btn-primary:hover { box-shadow: 0 16px 42px -14px rgba(30, 144, 255, 0.8), inset 0 1px 0 rgba(255, 255, 255, 0.28); }

.btn-ghost {
  background: rgba(148, 163, 184, 0.05);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
}
.btn-ghost:hover {
  border-color: rgba(30, 144, 255, 0.45);
  box-shadow: 0 0 0 4px rgba(30, 144, 255, 0.08);
}

.btn-sm { padding: 0.6rem 1.1rem; font-size: 0.875rem; }
.btn-block { width: 100%; }

/* Text link with animated underline */
.tlink {
  display: inline-flex;
  align-items: center;
  gap: 0.45rem;
  font-family: var(--f-mono);
  font-size: var(--t-sm);
  letter-spacing: 0.06em;
  color: var(--blue-2);
  padding-bottom: 2px;
  background-image: linear-gradient(var(--blue), var(--blue));
  background-size: 0% 1px;
  background-repeat: no-repeat;
  background-position: 0 100%;
  transition: background-size 0.45s var(--ease), color 0.3s var(--ease);
}
.tlink:hover { background-size: 100% 1px; color: var(--blue-3); }
.tlink svg { transition: transform 0.35s var(--ease); }
.tlink:hover svg { transform: translateX(3px); }

/* Outbound link to a live PingSphere platform. The icon travels diagonally
   so it reads as "leaves this site" rather than "continues on this page". */
.tlink-out:hover svg { transform: translate(2px, -2px); }
.svc-link { margin-top: 1.15rem; }

/* Visually hidden, still announced — used for "opens in a new tab" */
.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip-path: inset(50%);
  white-space: nowrap;
  border: 0;
}

/* --------------------------------------------------------------------------
   7. Glass surface
   -------------------------------------------------------------------------- */
.glass {
  position: relative;
  background: linear-gradient(158deg, rgba(30, 41, 66, 0.62), rgba(11, 15, 25, 0.5));
  border: 1px solid var(--glass-brd);
  border-radius: var(--r-lg);
  backdrop-filter: blur(18px) saturate(140%);
  -webkit-backdrop-filter: blur(18px) saturate(140%);
  box-shadow: var(--sh-md);
}

/* Top highlight — the "lit edge" that sells glass */
.glass::before {
  content: "";
  position: absolute;
  inset: 0 0 auto 0;
  height: 1px;
  background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.22) 20%, rgba(255, 255, 255, 0.22) 80%, transparent);
  border-radius: inherit;
  pointer-events: none;
}

/* --------------------------------------------------------------------------
   8. Preloader — boot sequence
   -------------------------------------------------------------------------- */
.boot {
  position: fixed;
  inset: 0;
  z-index: 200;
  display: grid;
  place-content: center;
  justify-items: center;
  gap: 1.5rem;
  background: var(--ink-950);
  transition: opacity 0.6s var(--ease), visibility 0.6s;
}

.boot.done { opacity: 0; visibility: hidden; }

.boot-mark { width: 58px; height: 58px; }
.boot-mark .ps-wave { animation: ps-trace-loop 2.4s var(--ease-io) infinite; }
.boot-mark .ps-core { animation: ps-core 2.4s var(--ease-io) infinite; }

.boot-bar {
  width: 190px;
  height: 2px;
  background: rgba(148, 163, 184, 0.16);
  overflow: hidden;
  border-radius: 2px;
}

.boot-bar i {
  display: block;
  height: 100%;
  width: 40%;
  background: linear-gradient(90deg, var(--blue), var(--purple));
  animation: bootSlide 1.15s var(--ease-io) infinite;
}

@keyframes bootSlide {
  0% { transform: translateX(-110%); }
  100% { transform: translateX(320%); }
}

.boot-txt {
  font-family: var(--f-mono);
  font-size: var(--t-xs);
  letter-spacing: 0.28em;
  text-transform: uppercase;
  color: var(--text-3);
}

/* --------------------------------------------------------------------------
   9. Header / navigation
   -------------------------------------------------------------------------- */
.skip {
  position: absolute;
  left: 1rem;
  top: -100px;
  z-index: 300;
  padding: 0.7rem 1.1rem;
  border-radius: var(--r-sm);
  background: var(--blue);
  color: #fff;
  font-weight: 600;
  transition: top 0.25s var(--ease);
}
.skip:focus { top: 1rem; }

.hdr {
  position: fixed;
  inset: 0 0 auto 0;
  z-index: 100;
  height: var(--nav-h);
  display: flex;
  align-items: center;
  border-bottom: 1px solid transparent;
  transition: background 0.4s var(--ease), border-color 0.4s var(--ease), backdrop-filter 0.4s;
}

.hdr.stuck {
  background: rgba(8, 12, 21, 0.78);
  border-bottom-color: var(--line);
  backdrop-filter: blur(20px) saturate(160%);
  -webkit-backdrop-filter: blur(20px) saturate(160%);
}

.hdr-in {
  width: min(100% - var(--gutter) * 2, 1440px);
  margin-inline: auto;
  display: flex;
  align-items: center;
  gap: clamp(1rem, 3vw, 2.75rem);
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 0.7rem;
  font-family: var(--f-display);
  font-weight: 700;
  font-size: 1.2rem;
  letter-spacing: -0.03em;
  color: var(--text);
  flex: none;
}

.brand-mark {
  width: 34px;
  height: 34px;
  flex: none;
}
.brand b { font-weight: 700; }
.brand span { color: var(--blue-2); font-weight: 500; }

/* --- Globe-wave mark ---------------------------------------------------
   Path length of the waveform polyline is ~130 units in a 100x100 viewBox;
   140 fully clears it, so offset:140 hides the line and 0 draws it. */
.ps-wave {
  stroke-dasharray: 140;
  stroke-dashoffset: 0;
}
.ps-core {
  transform-box: fill-box;
  transform-origin: center;
}

@keyframes ps-trace {
  from { stroke-dashoffset: 140; }
  to { stroke-dashoffset: 0; }
}

@keyframes ps-trace-loop {
  0% { stroke-dashoffset: 140; }
  55%, 100% { stroke-dashoffset: 0; }
}

@keyframes ps-core {
  0%, 100% { transform: scale(1); opacity: 1; }
  45% { transform: scale(1.5); opacity: 0.7; }
}

/* Re-trace the waveform on hover instead of spinning the mark */
.brand:hover .ps-wave { animation: ps-trace 0.95s var(--ease) both; }
.brand:hover .ps-core { animation: ps-core 0.95s var(--ease); }

.nav {
  display: flex;
  align-items: center;
  gap: 0.25rem;
  margin-left: auto;
}

.nav a {
  position: relative;
  padding: 0.5rem 0.85rem;
  border-radius: var(--r-sm);
  font-size: 0.925rem;
  font-weight: 500;
  color: var(--text-2);
  transition: color 0.25s var(--ease), background 0.25s var(--ease);
}

.nav a:hover, .nav a[aria-current="page"] { color: var(--text); background: rgba(148, 163, 184, 0.07); }

.nav a[aria-current="page"]::after {
  content: "";
  position: absolute;
  left: 0.85rem;
  right: 0.85rem;
  bottom: 0.15rem;
  height: 1.5px;
  border-radius: 2px;
  background: linear-gradient(90deg, var(--blue), var(--purple));
}

.hdr-cta { display: flex; align-items: center; gap: 0.6rem; flex: none; }

/* Mobile toggle */
.burger {
  display: none;
  width: 42px;
  height: 42px;
  align-items: center;
  justify-content: center;
  border: 1px solid var(--line-2);
  border-radius: var(--r-sm);
  background: rgba(148, 163, 184, 0.06);
  cursor: pointer;
}

.burger i {
  display: block;
  width: 17px;
  height: 1.5px;
  background: var(--text);
  border-radius: 2px;
  position: relative;
  transition: background 0.2s var(--ease);
}
.burger i::before, .burger i::after {
  content: "";
  position: absolute;
  left: 0;
  width: 17px;
  height: 1.5px;
  background: var(--text);
  border-radius: 2px;
  transition: transform 0.35s var(--ease);
}
.burger i::before { top: -5.5px; }
.burger i::after { top: 5.5px; }

.burger[aria-expanded="true"] i { background: transparent; }
.burger[aria-expanded="true"] i::before { transform: translateY(5.5px) rotate(45deg); }
.burger[aria-expanded="true"] i::after { transform: translateY(-5.5px) rotate(-45deg); }

/* Mobile drawer */
.drawer {
  position: fixed;
  inset: var(--nav-h) 0 0 0;
  z-index: 99;
  padding: 1.5rem var(--gutter) 3rem;
  background: rgba(8, 12, 21, 0.96);
  backdrop-filter: blur(22px);
  -webkit-backdrop-filter: blur(22px);
  border-top: 1px solid var(--line);
  display: flex;
  flex-direction: column;
  gap: 0.2rem;
  overflow-y: auto;
  transform: translateY(-8px);
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.3s var(--ease), transform 0.3s var(--ease), visibility 0.3s;
}

.drawer.open { opacity: 1; visibility: visible; transform: none; }

.drawer a {
  padding: 0.95rem 0.25rem;
  border-bottom: 1px solid var(--line);
  font-family: var(--f-display);
  font-size: 1.15rem;
  font-weight: 600;
  color: var(--text);
  display: flex;
  justify-content: space-between;
  align-items: center;
}
.drawer a span { font-family: var(--f-mono); font-size: var(--t-xs); color: var(--text-3); }
.drawer .btn { margin-top: 1.5rem; }

@media (max-width: 1040px) {
  .nav { display: none; }
  .burger { display: inline-flex; }
  .hdr-cta .btn-primary { display: none; }
}

/* --------------------------------------------------------------------------
   10. Hero
   -------------------------------------------------------------------------- */
/* Sized so the hero + capability marquee clear a 1080p viewport's usable
   height (~960px after browser chrome), leaving the next section peeking. */
.hero {
  position: relative;
  padding-top: calc(var(--nav-h) + clamp(1.5rem, 3.2vw, 2.75rem));
  padding-bottom: clamp(1.25rem, 2vw, 1.75rem);
  overflow: hidden;
}

.hero-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.02fr) minmax(0, 0.98fr);
  gap: clamp(2rem, 4vw, 4rem);
  align-items: center;
}

/* 44rem lets the copy use the full grid column instead of stopping 62px
   short of it — that reclaimed width drops the headline by a whole line. */
.hero-copy { max-width: 44rem; }

.hero-badge {
  display: inline-flex;
  align-items: center;
  gap: 0.65rem;
  padding: 0.4rem 0.5rem 0.4rem 0.45rem;
  border: 1px solid var(--line-2);
  border-radius: var(--r-pill);
  background: rgba(148, 163, 184, 0.06);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  font-family: var(--f-mono);
  font-size: var(--t-xs);
  letter-spacing: 0.06em;
  color: var(--text-2);
  margin-bottom: 1rem;
}

.hero-badge b {
  padding: 0.2rem 0.55rem;
  border-radius: var(--r-pill);
  background: linear-gradient(120deg, var(--blue), var(--purple));
  color: #fff;
  font-weight: 600;
  font-size: 0.68rem;
  letter-spacing: 0.12em;
}

.dot-live {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--teal);
  box-shadow: 0 0 0 0 rgba(47, 217, 200, 0.6);
  animation: ping 2.2s var(--ease-io) infinite;
}

@keyframes ping {
  0% { box-shadow: 0 0 0 0 rgba(47, 217, 200, 0.55); }
  70% { box-shadow: 0 0 0 9px rgba(47, 217, 200, 0); }
  100% { box-shadow: 0 0 0 0 rgba(47, 217, 200, 0); }
}

.hero h1 {
  font-size: clamp(2.7rem, 4.8vw + 1.05rem, 5.35rem);
  line-height: 0.98;
  letter-spacing: -0.04em;
  font-weight: 700;
  font-stretch: 108%;
  margin-bottom: 0.95rem;
}

.hero h1 em {
  font-style: normal;
  display: inline-block;
  background: linear-gradient(96deg, var(--blue-3), var(--blue) 40%, var(--purple-2));
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

.hero-sub {
  font-size: clamp(1.02rem, 0.5vw + 0.95rem, 1.2rem);
  line-height: 1.55;
  color: var(--text-2);
  max-width: 36rem;
  margin-bottom: 1.5rem;
}

.hero-actions { display: flex; flex-wrap: wrap; gap: 0.8rem; margin-bottom: 1.85rem; }
.hero-actions:last-child { margin-bottom: 0; }

/* Globe stage */
.hero-viz {
  position: relative;
  aspect-ratio: 1 / 1;
  max-width: 640px;
  margin-inline: auto;
  width: 100%;
}

.hero-viz canvas {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
}

/* Rotating measurement ring around globe */
.viz-ring {
  position: absolute;
  inset: 6%;
  border: 1px dashed rgba(148, 163, 184, 0.16);
  border-radius: 50%;
  animation: spin 90s linear infinite;
}
.viz-ring::after {
  content: "";
  position: absolute;
  top: -3px;
  left: 50%;
  width: 5px;
  height: 5px;
  margin-left: -2.5px;
  border-radius: 50%;
  background: var(--blue-2);
  box-shadow: 0 0 12px 2px rgba(30, 144, 255, 0.8);
}
.viz-ring.r2 { inset: 15%; animation-duration: 130s; animation-direction: reverse; border-style: solid; border-color: rgba(148, 163, 184, 0.09); }
.viz-ring.r2::after { background: var(--purple-2); box-shadow: 0 0 12px 2px rgba(108, 99, 255, 0.8); }

@keyframes spin { to { transform: rotate(360deg); } }

/* Floating readout chips over the globe */
.viz-chip {
  position: absolute;
  display: flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.5rem 0.75rem;
  border: 1px solid var(--glass-brd);
  border-radius: var(--r-sm);
  background: rgba(11, 15, 25, 0.72);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  box-shadow: var(--sh-md);
  font-family: var(--f-mono);
  font-size: 0.7rem;
  letter-spacing: 0.04em;
  color: var(--text-2);
  white-space: nowrap;
  animation: float 7s var(--ease-io) infinite;
}
.viz-chip b { color: var(--text); font-weight: 600; }
.viz-chip.c1 { top: 13%; left: -3%; }
.viz-chip.c2 { top: 46%; right: -5%; animation-delay: -2.3s; }
.viz-chip.c3 { bottom: 12%; left: 6%; animation-delay: -4.6s; }

@keyframes float {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(-9px); }
}

@media (max-width: 980px) {
  .hero-grid { grid-template-columns: 1fr; }
  .hero-copy { max-width: 100%; }
  .hero-viz { max-width: 480px; order: -1; }
  .viz-chip.c1 { left: 0; }
  .viz-chip.c2 { right: 0; }
}

@media (max-width: 560px) {
  .hero-stats { grid-template-columns: 1fr; }
  .viz-chip { display: none; }
}

/* Short desktop viewports (1366x768 laptops). The two-column hero is still
   in play here, so trim vertical rhythm rather than reflow the layout. */
@media (min-width: 981px) and (max-height: 880px) {
  .hero {
    padding-top: calc(var(--nav-h) + 1.15rem);
    padding-bottom: 0.9rem;
  }
  .hero-badge { margin-bottom: 0.8rem; }
  .hero h1 { font-size: clamp(2.4rem, 3.6vw + 0.9rem, 4.15rem); margin-bottom: 0.7rem; }
  .hero-sub { margin-bottom: 1.1rem; }
  .hero-actions { margin-bottom: 1.25rem; }
  .hero-stats div { padding: 0.7rem 0.95rem; }
}

/* Logo / trust marquee */
.marquee {
  position: relative;
  overflow: hidden;
  border-block: 1px solid var(--line);
  padding-block: 1.15rem;
  mask-image: linear-gradient(90deg, transparent, #000 12%, #000 88%, transparent);
  -webkit-mask-image: linear-gradient(90deg, transparent, #000 12%, #000 88%, transparent);
}

.marquee-track {
  display: flex;
  gap: 3.5rem;
  width: max-content;
  animation: slide 42s linear infinite;
}
.marquee:hover .marquee-track { animation-play-state: paused; }

@keyframes slide { to { transform: translateX(-50%); } }

.marquee-item {
  display: inline-flex;
  align-items: center;
  gap: 0.6rem;
  font-family: var(--f-mono);
  font-size: var(--t-sm);
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--text-3);
  white-space: nowrap;
  transition: color 0.3s var(--ease);
}
.marquee-item:hover { color: var(--text-2); }
.marquee-item svg { color: var(--blue); opacity: 0.75; }

/* --------------------------------------------------------------------------
   11. About
   -------------------------------------------------------------------------- */
.about-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.15fr) minmax(0, 0.85fr);
  gap: clamp(2rem, 5vw, 5rem);
  align-items: start;
}

.about-lead {
  font-family: var(--f-display);
  font-size: var(--t-xl);
  font-weight: 500;
  line-height: 1.32;
  letter-spacing: -0.025em;
  color: var(--text);
  margin-bottom: 1.5rem;
  text-wrap: pretty;
}
.about-lead strong { font-weight: 700; color: var(--blue-2); }

.about-body p + p { margin-top: 1.1rem; }

.about-sig {
  margin-top: 2rem;
  padding-top: 1.5rem;
  border-top: 1px solid var(--line);
  display: flex;
  flex-wrap: wrap;
  gap: 2.5rem;
}
.about-sig div { min-width: 8rem; }
.about-sig dt {
  font-family: var(--f-display);
  font-size: clamp(1.7rem, 2vw + 1rem, 2.4rem);
  font-weight: 700;
  letter-spacing: -0.04em;
  color: var(--text);
  line-height: 1;
}
.about-sig dd {
  font-family: var(--f-mono);
  font-size: 0.7rem;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--text-3);
  margin-top: 0.45rem;
}

/* Capability panel — reads like a console */
.panel {
  padding: 1.35rem;
  border-radius: var(--r-lg);
}

.panel-hd {
  display: flex;
  align-items: center;
  gap: 0.55rem;
  padding-bottom: 0.9rem;
  margin-bottom: 0.9rem;
  border-bottom: 1px solid var(--line);
  font-family: var(--f-mono);
  font-size: 0.7rem;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--text-3);
}
.panel-hd em { margin-left: auto; font-style: normal; color: var(--teal); }

.panel-row {
  display: flex;
  align-items: center;
  gap: 0.8rem;
  padding: 0.7rem 0;
  border-bottom: 1px dashed var(--line);
  font-size: 0.925rem;
}
.panel-row:last-child { border-bottom: 0; padding-bottom: 0; }
.panel-row span:first-of-type { color: var(--text); font-weight: 500; }
.panel-row .bar {
  margin-left: auto;
  width: 72px;
  height: 4px;
  border-radius: 4px;
  background: rgba(148, 163, 184, 0.14);
  overflow: hidden;
  flex: none;
}
.panel-row .bar i {
  display: block;
  height: 100%;
  border-radius: inherit;
  background: linear-gradient(90deg, var(--blue), var(--purple));
  width: 0;
  transition: width 1.2s var(--ease);
}
.is-in .panel-row .bar i { width: var(--w, 70%); }

.panel-icn {
  width: 28px;
  height: 28px;
  flex: none;
  display: grid;
  place-items: center;
  border-radius: 7px;
  background: rgba(30, 144, 255, 0.1);
  border: 1px solid rgba(30, 144, 255, 0.18);
  color: var(--blue-2);
}

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

/* --------------------------------------------------------------------------
   12. Services — bento
   -------------------------------------------------------------------------- */
.bento {
  display: grid;
  grid-template-columns: repeat(6, minmax(0, 1fr));
  gap: 1.1rem;
}

.card {
  position: relative;
  padding: clamp(1.4rem, 2vw, 1.9rem);
  border-radius: var(--r-lg);
  overflow: hidden;
  transition: transform 0.5s var(--ease), border-color 0.5s var(--ease), box-shadow 0.5s var(--ease);
}

/* Cursor-tracked glow — set via JS custom props */
.card::after {
  content: "";
  position: absolute;
  inset: -1px;
  border-radius: inherit;
  background: radial-gradient(340px circle at var(--mx, 50%) var(--my, 0%), rgba(30, 144, 255, 0.13), transparent 62%);
  opacity: 0;
  transition: opacity 0.45s var(--ease);
  pointer-events: none;
}

.card:hover {
  transform: translateY(-5px);
  border-color: rgba(30, 144, 255, 0.28);
  box-shadow: var(--sh-lg);
}
.card:hover::after { opacity: 1; }

.svc-1 { grid-column: span 3; }
.svc-2 { grid-column: span 3; }
.svc-3 { grid-column: span 2; }
.svc-4 { grid-column: span 2; }
.svc-5 { grid-column: span 2; }
.svc-6 { grid-column: span 6; }

@media (max-width: 1000px) {
  .bento { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .svc-1, .svc-2, .svc-3, .svc-4, .svc-5 { grid-column: span 1; }
  .svc-6 { grid-column: span 2; }
}
@media (max-width: 640px) {
  .bento { grid-template-columns: 1fr; }
  .svc-6 { grid-column: span 1; }
}

.svc-icn {
  width: 46px;
  height: 46px;
  display: grid;
  place-items: center;
  border-radius: 13px;
  margin-bottom: 1.15rem;
  color: var(--blue-2);
  background: linear-gradient(150deg, rgba(30, 144, 255, 0.18), rgba(108, 99, 255, 0.1));
  border: 1px solid rgba(30, 144, 255, 0.22);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.1), 0 8px 20px -10px rgba(30, 144, 255, 0.5);
  transition: transform 0.5s var(--ease);
}
.card:hover .svc-icn { transform: translateY(-2px) scale(1.04); }

.card h3 {
  font-size: var(--t-lg);
  margin-bottom: 0.55rem;
  letter-spacing: -0.03em;
}

.card > p {
  font-size: 0.95rem;
  color: var(--text-2);
  margin-bottom: 1.15rem;
  max-width: 46ch;
}

/* Capability chips */
.chips { display: flex; flex-wrap: wrap; gap: 0.4rem; }

.chips li {
  list-style: none;
  padding: 0.3rem 0.65rem;
  border: 1px solid var(--line-2);
  border-radius: var(--r-xs);
  background: rgba(148, 163, 184, 0.045);
  font-family: var(--f-mono);
  font-size: 0.72rem;
  letter-spacing: 0.02em;
  color: var(--text-2);
  transition: border-color 0.3s var(--ease), color 0.3s var(--ease), background 0.3s var(--ease);
}
.card:hover .chips li { border-color: rgba(30, 144, 255, 0.2); }
.chips li:hover { color: var(--text); background: rgba(30, 144, 255, 0.1); border-color: rgba(30, 144, 255, 0.4); }

.card-index {
  position: absolute;
  top: 1.35rem;
  right: 1.5rem;
  font-family: var(--f-mono);
  font-size: 0.7rem;
  letter-spacing: 0.14em;
  color: var(--text-3);
  opacity: 0.55;
}

/* Custom-dev card: two-column split */
.split {
  display: grid;
  grid-template-columns: minmax(0, 0.85fr) minmax(0, 1.15fr);
  gap: clamp(1.5rem, 3vw, 3rem);
  align-items: center;
}
@media (max-width: 820px) { .split { grid-template-columns: 1fr; } }

.build-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(150px, 1fr));
  gap: 1px;
  background: var(--line);
  border: 1px solid var(--line);
  border-radius: var(--r);
  overflow: hidden;
}

.build-grid li {
  list-style: none;
  padding: 0.7rem 0.85rem;
  background: rgba(11, 15, 25, 0.5);
  font-size: 0.84rem;
  color: var(--text-2);
  display: flex;
  align-items: center;
  gap: 0.5rem;
  transition: background 0.3s var(--ease), color 0.3s var(--ease);
}
.build-grid li::before {
  content: "";
  width: 4px;
  height: 4px;
  flex: none;
  border-radius: 50%;
  background: var(--blue);
  opacity: 0.7;
  transition: transform 0.3s var(--ease);
}
.build-grid li:hover { background: rgba(30, 144, 255, 0.08); color: var(--text); }
.build-grid li:hover::before { transform: scale(1.8); }

.callout {
  margin-top: 1.4rem;
  padding: 1rem 1.2rem;
  border-left: 2px solid var(--blue);
  border-radius: 0 var(--r-sm) var(--r-sm) 0;
  background: linear-gradient(90deg, rgba(30, 144, 255, 0.12), transparent);
  font-family: var(--f-display);
  font-size: var(--t-lg);
  font-weight: 600;
  letter-spacing: -0.025em;
  color: var(--text);
}

/* --------------------------------------------------------------------------
   13. Why choose — dense grid
   -------------------------------------------------------------------------- */
.why-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 1px;
  background: var(--line);
  border: 1px solid var(--line);
  border-radius: var(--r-lg);
  overflow: hidden;
}

.why-item {
  position: relative;
  padding: clamp(1.5rem, 2.4vw, 2.1rem);
  background: rgba(11, 15, 25, 0.6);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  overflow: hidden;
  transition: background 0.45s var(--ease);
}

.why-item::before {
  content: "";
  position: absolute;
  inset: auto 0 0 0;
  height: 2px;
  background: linear-gradient(90deg, var(--blue), var(--purple));
  transform: scaleX(0);
  transform-origin: left;
  transition: transform 0.55s var(--ease);
}
.why-item:hover { background: rgba(22, 31, 51, 0.8); }
.why-item:hover::before { transform: scaleX(1); }

.why-item .n {
  font-family: var(--f-mono);
  font-size: 0.7rem;
  letter-spacing: 0.16em;
  color: var(--text-3);
}

.why-item svg {
  margin: 1.1rem 0 0.9rem;
  color: var(--blue-2);
  transition: transform 0.5s var(--ease), color 0.4s var(--ease);
}
.why-item:hover svg { transform: translateY(-3px); color: var(--purple-2); }

.why-item h3 { font-size: 1.05rem; margin-bottom: 0.4rem; letter-spacing: -0.02em; }
.why-item p { font-size: 0.875rem; color: var(--text-2); line-height: 1.6; }

@media (max-width: 980px) { .why-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 520px) { .why-grid { grid-template-columns: 1fr; } }

/* --------------------------------------------------------------------------
   14. Industries
   -------------------------------------------------------------------------- */
.ind-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(190px, 1fr));
  gap: 0.75rem;
}

.ind {
  display: flex;
  align-items: center;
  gap: 0.85rem;
  padding: 1rem 1.15rem;
  border: 1px solid var(--line);
  border-radius: var(--r);
  background: rgba(17, 24, 39, 0.42);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  font-size: 0.925rem;
  font-weight: 500;
  color: var(--text-2);
  transition: transform 0.4s var(--ease), border-color 0.4s var(--ease), color 0.4s var(--ease), background 0.4s var(--ease);
}

.ind svg { color: var(--blue-2); flex: none; transition: transform 0.4s var(--ease); }
.ind:hover {
  transform: translateY(-3px);
  border-color: rgba(30, 144, 255, 0.35);
  background: rgba(30, 144, 255, 0.07);
  color: var(--text);
}
.ind:hover svg { transform: scale(1.12) rotate(-6deg); }

/* --------------------------------------------------------------------------
   15. Featured solutions — tabbed showcase
   -------------------------------------------------------------------------- */
.show {
  display: grid;
  grid-template-columns: minmax(0, 0.78fr) minmax(0, 1.22fr);
  gap: clamp(1.5rem, 3.5vw, 3.5rem);
  align-items: start;
}

.tabs {
  display: flex;
  flex-direction: column;
  gap: 0.35rem;
}

.tab {
  position: relative;
  display: flex;
  align-items: flex-start;
  gap: 0.9rem;
  width: 100%;
  padding: 1rem 1.1rem;
  border: 1px solid transparent;
  border-radius: var(--r);
  background: transparent;
  text-align: left;
  cursor: pointer;
  transition: background 0.35s var(--ease), border-color 0.35s var(--ease);
}

.tab .t-n {
  font-family: var(--f-mono);
  font-size: 0.7rem;
  letter-spacing: 0.1em;
  color: var(--text-3);
  padding-top: 0.28rem;
  flex: none;
}
.tab strong {
  display: block;
  font-family: var(--f-display);
  font-size: 1.02rem;
  font-weight: 600;
  letter-spacing: -0.025em;
  color: var(--text-2);
  transition: color 0.3s var(--ease);
}
.tab span.t-d {
  display: block;
  font-size: 0.85rem;
  color: var(--text-3);
  margin-top: 0.15rem;
  max-height: 0;
  opacity: 0;
  overflow: hidden;
  transition: max-height 0.45s var(--ease), opacity 0.35s var(--ease), margin 0.35s var(--ease);
}

.tab:hover { background: rgba(148, 163, 184, 0.05); }
.tab:hover strong { color: var(--text); }

.tab[aria-selected="true"] {
  background: linear-gradient(100deg, rgba(30, 144, 255, 0.1), rgba(108, 99, 255, 0.05));
  border-color: rgba(30, 144, 255, 0.24);
}
.tab[aria-selected="true"] strong { color: var(--text); }
.tab[aria-selected="true"] .t-n { color: var(--blue-2); }
.tab[aria-selected="true"] span.t-d { max-height: 6rem; opacity: 1; }

.tab[aria-selected="true"]::before {
  content: "";
  position: absolute;
  left: 0;
  top: 12%;
  bottom: 12%;
  width: 2px;
  border-radius: 2px;
  background: linear-gradient(var(--blue), var(--purple));
}

/* Console mock */
.console {
  border-radius: var(--r-lg);
  overflow: hidden;
  min-height: 430px;
  display: flex;
  flex-direction: column;
}

.console-bar {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.75rem 1rem;
  border-bottom: 1px solid var(--line);
  background: rgba(5, 7, 13, 0.5);
}
.console-bar i {
  width: 9px; height: 9px; border-radius: 50%;
  background: rgba(148, 163, 184, 0.25);
}
.console-bar i:first-child { background: #ff5f57; }
.console-bar i:nth-child(2) { background: #febc2e; }
.console-bar i:nth-child(3) { background: #28c840; }
.console-bar em {
  margin-left: 0.7rem;
  font-family: var(--f-mono);
  font-style: normal;
  font-size: 0.72rem;
  letter-spacing: 0.05em;
  color: var(--text-3);
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.console-body { padding: 1.25rem; flex: 1; }

.pane { display: none; animation: paneIn 0.5s var(--ease) both; }
.pane.on { display: block; }

@keyframes paneIn {
  from { opacity: 0; transform: translateY(10px); }
  to { opacity: 1; transform: none; }
}

.metrics {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(120px, 1fr));
  gap: 0.7rem;
  margin-bottom: 1.1rem;
}
.metrics div {
  padding: 0.85rem 0.95rem;
  border: 1px solid var(--line);
  border-radius: var(--r-sm);
  background: rgba(148, 163, 184, 0.035);
}
.metrics dt {
  font-family: var(--f-mono);
  font-size: 0.65rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--text-3);
}
.metrics dd {
  font-family: var(--f-display);
  font-size: 1.35rem;
  font-weight: 700;
  letter-spacing: -0.03em;
  color: var(--text);
  margin-top: 0.25rem;
}
.metrics dd small { font-size: 0.6em; color: var(--text-3); font-weight: 500; margin-left: 2px; }
.metrics dd.up { color: var(--teal); }

/* Terminal listing */
.term {
  font-family: var(--f-mono);
  font-size: 0.78rem;
  line-height: 1.9;
  color: var(--text-2);
  background: rgba(5, 7, 13, 0.55);
  border: 1px solid var(--line);
  border-radius: var(--r-sm);
  padding: 0.9rem 1rem;
  overflow-x: auto;
}
.term .c-key { color: var(--blue-2); }
.term .c-val { color: var(--text); }
.term .c-ok { color: var(--teal); }
.term .c-mut { color: var(--text-3); }
.term .c-warn { color: var(--amber); }
.term .prompt { color: var(--purple-2); }

/* Rows list (billing / notify mocks) */
.rows { border: 1px solid var(--line); border-radius: var(--r-sm); overflow: hidden; }
.rows-hd, .rows-r {
  display: grid;
  grid-template-columns: minmax(0, 1.6fr) minmax(0, 1fr) minmax(0, 0.9fr) minmax(0, 0.8fr);
  gap: 0.75rem;
  padding: 0.65rem 0.9rem;
  align-items: center;
  font-size: 0.8rem;
}
.rows-hd {
  background: rgba(5, 7, 13, 0.55);
  border-bottom: 1px solid var(--line);
  font-family: var(--f-mono);
  font-size: 0.65rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--text-3);
}
.rows-r { border-bottom: 1px dashed var(--line); transition: background 0.3s var(--ease); }
.rows-r:last-child { border-bottom: 0; }
.rows-r:hover { background: rgba(30, 144, 255, 0.06); }
.rows-r b { color: var(--text); font-weight: 600; }
.rows-r span { font-family: var(--f-mono); font-size: 0.75rem; }

.pill {
  justify-self: start;
  padding: 0.15rem 0.55rem;
  border-radius: var(--r-pill);
  font-family: var(--f-mono);
  font-size: 0.65rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  border: 1px solid;
}
.pill.ok { color: var(--teal); border-color: rgba(47, 217, 200, 0.35); background: rgba(47, 217, 200, 0.09); }
.pill.warn { color: var(--amber); border-color: rgba(240, 180, 41, 0.35); background: rgba(240, 180, 41, 0.09); }
.pill.info { color: var(--blue-2); border-color: rgba(30, 144, 255, 0.35); background: rgba(30, 144, 255, 0.09); }

@media (max-width: 900px) {
  .show { grid-template-columns: 1fr; }
  .console { min-height: 0; }
  .rows-hd, .rows-r { grid-template-columns: minmax(0, 1.4fr) minmax(0, 1fr) minmax(0, 0.8fr); }
  .rows-hd > :nth-child(4), .rows-r > :nth-child(4) { display: none; }
}
@media (max-width: 520px) {
  .rows-hd, .rows-r { grid-template-columns: minmax(0, 1.4fr) minmax(0, 0.9fr); }
  .rows-hd > :nth-child(3), .rows-r > :nth-child(3) { display: none; }
}

/* --------------------------------------------------------------------------
   16. Process — schematic timeline
   -------------------------------------------------------------------------- */
.proc {
  position: relative;
  display: grid;
  grid-template-columns: repeat(6, minmax(0, 1fr));
  gap: 1.5rem;
  padding-top: 2.75rem;
}

.proc::before {
  content: "";
  position: absolute;
  top: 2.75rem;
  left: 0;
  right: 0;
  height: 1px;
  background: repeating-linear-gradient(90deg, var(--line-2) 0 8px, transparent 8px 15px);
}

.proc-line {
  position: absolute;
  top: 2.75rem;
  left: 0;
  height: 1px;
  width: 0;
  background: linear-gradient(90deg, var(--blue), var(--purple));
  box-shadow: 0 0 10px rgba(30, 144, 255, 0.7);
  transition: width 1.9s var(--ease);
}
.is-in .proc-line { width: 100%; }

.step { position: relative; padding-top: 1.9rem; }

.step .node {
  position: absolute;
  top: -0.4rem;
  left: 0;
  width: 15px;
  height: 15px;
  border-radius: 50%;
  background: var(--ink-900);
  border: 1.5px solid var(--line-3);
  display: grid;
  place-items: center;
  transition: border-color 0.4s var(--ease), box-shadow 0.4s var(--ease);
}
.step .node::after {
  content: "";
  width: 5px;
  height: 5px;
  border-radius: 50%;
  background: var(--line-3);
  transition: background 0.4s var(--ease);
}
.step:hover .node { border-color: var(--blue); box-shadow: 0 0 0 5px rgba(30, 144, 255, 0.12); }
.step:hover .node::after { background: var(--blue-2); }

.step .n {
  font-family: var(--f-mono);
  font-size: 0.7rem;
  letter-spacing: 0.16em;
  color: var(--blue-2);
}
.step h3 { font-size: 1.05rem; margin: 0.55rem 0 0.4rem; letter-spacing: -0.025em; }
.step p { font-size: 0.85rem; color: var(--text-2); line-height: 1.6; }

@media (max-width: 1000px) { .proc { grid-template-columns: repeat(3, minmax(0, 1fr)); row-gap: 2.5rem; } }
@media (max-width: 620px) {
  .proc { grid-template-columns: 1fr; padding-top: 0; }
  .proc::before, .proc-line { display: none; }
  .step { padding-top: 0; padding-left: 2rem; border-left: 1px dashed var(--line-2); padding-bottom: 0.5rem; }
  .step .node { top: 0.35rem; left: -8px; }
}

/* --------------------------------------------------------------------------
   18. CTA band
   -------------------------------------------------------------------------- */
.cta {
  position: relative;
  padding: clamp(2.5rem, 5vw, 4.25rem);
  border-radius: var(--r-xl);
  overflow: hidden;
  text-align: center;
  background:
    radial-gradient(60% 100% at 50% 0%, rgba(30, 144, 255, 0.2), transparent 70%),
    linear-gradient(160deg, rgba(30, 41, 66, 0.7), rgba(11, 15, 25, 0.6));
  border: 1px solid var(--glass-brd);
  backdrop-filter: blur(18px);
  -webkit-backdrop-filter: blur(18px);
}

.cta::before {
  content: "";
  position: absolute;
  inset: 0;
  background-image:
    linear-gradient(to right, rgba(148, 163, 184, 0.06) 1px, transparent 1px),
    linear-gradient(to bottom, rgba(148, 163, 184, 0.06) 1px, transparent 1px);
  background-size: 44px 44px;
  mask-image: radial-gradient(70% 70% at 50% 40%, #000, transparent);
  -webkit-mask-image: radial-gradient(70% 70% at 50% 40%, #000, transparent);
  pointer-events: none;
}

.cta > * { position: relative; }
.cta h2 { font-size: var(--t-2xl); margin: 0.9rem auto 1rem; max-width: 22ch; }
.cta p { max-width: 54ch; margin-inline: auto; }
.cta .hero-actions { justify-content: center; margin: 2rem 0 0; }

/* --------------------------------------------------------------------------
   19. Contact
   -------------------------------------------------------------------------- */
.contact-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.05fr) minmax(0, 0.95fr);
  gap: clamp(1.5rem, 3vw, 2.5rem);
  align-items: start;
}
@media (max-width: 900px) { .contact-grid { grid-template-columns: 1fr; } }

.form { padding: clamp(1.5rem, 2.5vw, 2.15rem); border-radius: var(--r-lg); }

.field { margin-bottom: 1.05rem; }
.field-row { display: grid; grid-template-columns: 1fr 1fr; gap: 1.05rem; }
@media (max-width: 560px) { .field-row { grid-template-columns: 1fr; } }

.field label {
  display: block;
  font-family: var(--f-mono);
  font-size: 0.68rem;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--text-3);
  margin-bottom: 0.45rem;
}
.field label .req { color: var(--blue-2); }

.field input,
.field select,
.field textarea {
  width: 100%;
  padding: 0.8rem 0.95rem;
  border: 1px solid var(--line-2);
  border-radius: var(--r-sm);
  background: rgba(5, 7, 13, 0.45);
  color: var(--text);
  font-size: 0.95rem;
  transition: border-color 0.3s var(--ease), box-shadow 0.3s var(--ease), background 0.3s var(--ease);
}
.field textarea { resize: vertical; min-height: 128px; line-height: 1.6; }

.field input::placeholder, .field textarea::placeholder { color: #5d6879; }

.field input:focus,
.field select:focus,
.field textarea:focus {
  outline: none;
  border-color: rgba(30, 144, 255, 0.6);
  background: rgba(5, 7, 13, 0.7);
  box-shadow: 0 0 0 4px rgba(30, 144, 255, 0.1);
}

.field select {
  appearance: none;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='14' height='14' fill='none' stroke='%238a96a9' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M3 5l4 4 4-4'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 0.95rem center;
  padding-right: 2.4rem;
}
.field select option { background: var(--ink-800); }

.form-note {
  margin-top: 0.9rem;
  font-size: 0.8rem;
  color: var(--text-3);
  display: flex;
  gap: 0.5rem;
  align-items: flex-start;
}
.form-note svg { flex: none; margin-top: 2px; color: var(--teal); }

.form-status {
  margin-top: 0.9rem;
  padding: 0.75rem 0.95rem;
  border-radius: var(--r-sm);
  border: 1px solid rgba(47, 217, 200, 0.3);
  background: rgba(47, 217, 200, 0.08);
  color: var(--teal);
  font-size: 0.875rem;
  display: none;
}
.form-status.show { display: block; animation: paneIn 0.4s var(--ease) both; }
.form-status.err { border-color: rgba(240, 180, 41, 0.35); background: rgba(240, 180, 41, 0.08); color: var(--amber); }

/* Contact channels */
.chan { display: grid; gap: 0.7rem; margin-bottom: 1.1rem; }

.chan a {
  display: flex;
  align-items: center;
  gap: 0.95rem;
  padding: 1rem 1.15rem;
  border: 1px solid var(--line);
  border-radius: var(--r);
  background: rgba(17, 24, 39, 0.45);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  transition: transform 0.4s var(--ease), border-color 0.4s var(--ease), background 0.4s var(--ease);
}
.chan a:hover {
  transform: translateX(4px);
  border-color: rgba(30, 144, 255, 0.35);
  background: rgba(30, 144, 255, 0.06);
}

.chan-icn {
  width: 40px;
  height: 40px;
  flex: none;
  display: grid;
  place-items: center;
  border-radius: 11px;
  background: rgba(30, 144, 255, 0.12);
  border: 1px solid rgba(30, 144, 255, 0.2);
  color: var(--blue-2);
}
.chan a:nth-child(2) .chan-icn { background: rgba(108, 99, 255, 0.12); border-color: rgba(108, 99, 255, 0.2); color: var(--purple-2); }
.chan a:nth-child(3) .chan-icn { background: rgba(47, 217, 200, 0.1); border-color: rgba(47, 217, 200, 0.2); color: var(--teal); }

.chan b { display: block; color: var(--text); font-size: 0.95rem; font-weight: 600; }
.chan small {
  font-family: var(--f-mono);
  font-size: 0.72rem;
  letter-spacing: 0.03em;
  color: var(--text-3);
}
.chan .arw-r { margin-left: auto; color: var(--text-3); flex: none; transition: transform 0.35s var(--ease); }
.chan a:hover .arw-r { transform: translateX(3px); color: var(--blue-2); }

/* Right-aligned monospace value in a .panel-row */
.panel-val {
  margin-left: auto;
  padding-left: 0.75rem;
  font-family: var(--f-mono);
  font-size: 0.78rem;
  letter-spacing: 0.02em;
  color: var(--text-2);
  text-align: right;
}
.panel-val.ok { color: var(--teal); }

/* --------------------------------------------------------------------------
   20. Footer
   -------------------------------------------------------------------------- */
.ftr {
  position: relative;
  z-index: 2;
  margin-top: clamp(3rem, 6vw, 5rem);
  border-top: 1px solid var(--line);
  background: linear-gradient(180deg, rgba(5, 7, 13, 0.35), rgba(5, 7, 13, 0.8));
}

.ftr-top {
  display: grid;
  grid-template-columns: minmax(0, 1.5fr) repeat(3, minmax(0, 1fr));
  gap: clamp(1.75rem, 4vw, 3.5rem);
  padding-block: clamp(3rem, 5vw, 4.25rem);
}

@media (max-width: 900px) { .ftr-top { grid-template-columns: 1fr 1fr; } .ftr-brand { grid-column: 1 / -1; } }
@media (max-width: 560px) { .ftr-top { grid-template-columns: 1fr; } }

.ftr-brand p { font-size: 0.9rem; max-width: 34ch; margin: 1.1rem 0 1.35rem; }

.ftr h4 {
  font-family: var(--f-mono);
  font-size: 0.68rem;
  font-weight: 500;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--text-3);
  margin-bottom: 1.1rem;
}

.ftr ul { list-style: none; padding: 0; display: grid; gap: 0.6rem; }
.ftr ul a {
  font-size: 0.9rem;
  color: var(--text-2);
  transition: color 0.25s var(--ease), padding-left 0.25s var(--ease);
  display: inline-block;
}
.ftr ul a:hover { color: var(--text); padding-left: 5px; }

.social { display: flex; gap: 0.5rem; }
.social a {
  width: 36px;
  height: 36px;
  display: grid;
  place-items: center;
  border: 1px solid var(--line-2);
  border-radius: var(--r-sm);
  color: var(--text-2);
  transition: color 0.3s var(--ease), border-color 0.3s var(--ease), transform 0.3s var(--ease), background 0.3s var(--ease);
}
.social a:hover { color: var(--text); border-color: rgba(30, 144, 255, 0.45); background: rgba(30, 144, 255, 0.08); transform: translateY(-2px); }

.ftr-btm {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.75rem 1.5rem;
  padding-block: 1.35rem;
  border-top: 1px solid var(--line);
  font-family: var(--f-mono);
  font-size: 0.72rem;
  letter-spacing: 0.05em;
  color: var(--text-3);
}
.ftr-btm nav { display: flex; flex-wrap: wrap; gap: 1.25rem; margin-left: auto; }
.ftr-btm a { transition: color 0.25s var(--ease); }
.ftr-btm a:hover { color: var(--text-2); }

/* Back to top */
.totop {
  position: fixed;
  right: clamp(1rem, 3vw, 2rem);
  bottom: clamp(1rem, 3vw, 2rem);
  z-index: 90;
  width: 44px;
  height: 44px;
  display: grid;
  place-items: center;
  border: 1px solid var(--glass-brd);
  border-radius: 50%;
  background: rgba(11, 15, 25, 0.8);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  color: var(--text-2);
  cursor: pointer;
  box-shadow: var(--sh-md);
  opacity: 0;
  visibility: hidden;
  transform: translateY(12px);
  transition: opacity 0.35s var(--ease), transform 0.35s var(--ease), visibility 0.35s, border-color 0.3s var(--ease), color 0.3s var(--ease);
}
.totop.show { opacity: 1; visibility: visible; transform: none; }
.totop:hover { border-color: rgba(30, 144, 255, 0.5); color: var(--text); }

/* --------------------------------------------------------------------------
   21. Interior page header
   -------------------------------------------------------------------------- */
/* Page header. Kept deliberately shallow: on content-first pages (contact,
   docs) the section below must break the fold on a 1080p screen. The nav is
   fixed, so padding-top always clears --nav-h before adding its own space. */
.phead {
  padding-top: calc(var(--nav-h) + clamp(1.6rem, 2.8vw, 2.6rem));
  padding-bottom: clamp(1.2rem, 2vw, 1.75rem);
  position: relative;
}

.crumbs {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  font-family: var(--f-mono);
  font-size: 0.72rem;
  letter-spacing: 0.1em;
  color: var(--text-3);
  margin-bottom: 0.7rem;
}
.crumbs a { transition: color 0.25s var(--ease); }
.crumbs a:hover { color: var(--blue-2); }
.crumbs svg { opacity: 0.5; }

/* 26ch lets a short page title hold one line at the top of the scale —
   worth ~57px of height versus the previous 18ch, which forced a wrap. */
.phead h1 {
  font-size: clamp(2.1rem, 2.9vw + 1.15rem, 3.35rem);
  letter-spacing: -0.04em;
  max-width: 26ch;
  margin: 0.5rem 0 0.7rem;
}

.phead .lede {
  font-size: clamp(0.98rem, 0.35vw + 0.92rem, 1.08rem);
  line-height: 1.55;
  max-width: 56ch;
}

/* Collapse the doubled gutter where a section follows the header directly.
   Comments between the two elements don't break the adjacency. */
.phead + .sect-tight,
.phead + .sect { padding-top: clamp(1.4rem, 2.2vw, 2rem); }

/* --- Lead-in header variant -------------------------------------------
   For pages where the header and the card row beneath it read as a single
   hero statement (Products). Given extra height so the section that follows
   clears the first screen instead of crowding it. Both values are content
   relative - the block still grows and shrinks with its own copy. */
.phead-lead {
  padding-top: calc(var(--nav-h) + clamp(2.4rem, 4.4vw, 4rem));
  padding-bottom: clamp(1.75rem, 3vw, 2.75rem);
}

.hero-tail { padding-bottom: clamp(4.5rem, 10vw, 12rem); }
.phead-lead + .hero-tail { padding-top: clamp(2rem, 3.4vw, 3rem); }

/* Prose (legal/docs pages) */
.prose { max-width: 76ch; }
.prose h2 {
  font-size: var(--t-lg);
  margin: 2.75rem 0 0.9rem;
  padding-top: 1.75rem;
  border-top: 1px solid var(--line);
  letter-spacing: -0.025em;
}
.prose h2:first-child { margin-top: 0; padding-top: 0; border-top: 0; }
.prose h3 { font-size: 1.05rem; margin: 1.75rem 0 0.6rem; }
.prose p, .prose ul, .prose ol { font-size: 0.975rem; margin-bottom: 1rem; }
.prose ul, .prose ol { padding-left: 1.3rem; display: grid; gap: 0.45rem; }
.prose li::marker { color: var(--blue); }
.prose a { color: var(--blue-2); text-decoration: underline; text-underline-offset: 3px; text-decoration-color: rgba(30,144,255,.4); }
.prose a:hover { text-decoration-color: var(--blue); }
.prose strong { color: var(--text); font-weight: 600; }
.prose code {
  font-family: var(--f-mono);
  font-size: 0.85em;
  padding: 0.12em 0.4em;
  border-radius: 5px;
  background: rgba(148, 163, 184, 0.1);
  border: 1px solid var(--line);
  color: var(--blue-3);
}
.prose > .updated {
  font-family: var(--f-mono);
  font-size: 0.75rem;
  letter-spacing: 0.08em;
  color: var(--text-3);
  padding: 0.6rem 0.9rem;
  border-left: 2px solid var(--blue);
  background: rgba(30, 144, 255, 0.06);
  margin-bottom: 2.25rem;
}

/* Docs / blog / pricing shared list */
.doc-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(290px, 1fr));
  gap: 1.1rem;
}

.doc-card {
  display: flex;
  flex-direction: column;
  padding: 1.5rem;
  border-radius: var(--r-lg);
  transition: transform 0.45s var(--ease), border-color 0.45s var(--ease), box-shadow 0.45s var(--ease);
}
.doc-card:hover { transform: translateY(-4px); border-color: rgba(30, 144, 255, 0.28); box-shadow: var(--sh-lg); }
.doc-card .tag {
  font-family: var(--f-mono);
  font-size: 0.66rem;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--blue-2);
  margin-bottom: 0.85rem;
}
.doc-card h3 { font-size: 1.1rem; margin-bottom: 0.5rem; letter-spacing: -0.025em; }
.doc-card p { font-size: 0.9rem; margin-bottom: 1.25rem; flex: 1; }
.doc-card .meta {
  display: flex;
  align-items: center;
  gap: 0.6rem;
  padding-top: 0.9rem;
  border-top: 1px solid var(--line);
  font-family: var(--f-mono);
  font-size: 0.7rem;
  letter-spacing: 0.06em;
  color: var(--text-3);
}

/* FAQ */
.faq { display: grid; gap: 0.6rem; max-width: 860px; }
.faq details {
  border: 1px solid var(--line);
  border-radius: var(--r);
  background: rgba(17, 24, 39, 0.4);
  overflow: hidden;
  transition: border-color 0.35s var(--ease), background 0.35s var(--ease);
}
.faq details[open] { border-color: rgba(30, 144, 255, 0.28); background: rgba(22, 31, 51, 0.55); }
.faq summary {
  display: flex;
  align-items: center;
  gap: 1rem;
  padding: 1.05rem 1.25rem;
  cursor: pointer;
  list-style: none;
  font-family: var(--f-display);
  font-weight: 600;
  font-size: 1rem;
  letter-spacing: -0.02em;
  color: var(--text);
}
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after {
  content: "";
  margin-left: auto;
  width: 10px;
  height: 10px;
  flex: none;
  border-right: 1.5px solid var(--text-3);
  border-bottom: 1.5px solid var(--text-3);
  transform: rotate(45deg) translate(-2px, -2px);
  transition: transform 0.35s var(--ease), border-color 0.35s var(--ease);
}
.faq details[open] summary::after { transform: rotate(-135deg) translate(-2px, -2px); border-color: var(--blue-2); }
.faq .faq-body { padding: 0 1.25rem 1.25rem; font-size: 0.94rem; color: var(--text-2); }

/* --------------------------------------------------------------------------
   22. Scroll reveal
   -------------------------------------------------------------------------- */
[data-rise] {
  opacity: 0;
  transform: translateY(22px);
  transition: opacity 0.75s var(--ease), transform 0.75s var(--ease);
  transition-delay: var(--d, 0ms);
}
[data-rise].is-in { opacity: 1; transform: none; }

/* Hero staggered load reveal — the one orchestrated moment */
.load [data-load] {
  opacity: 0;
  transform: translateY(26px);
  animation: loadIn 0.95s var(--ease) forwards;
  animation-delay: calc(var(--i, 0) * 90ms + 150ms);
}

@keyframes loadIn {
  to { opacity: 1; transform: none; }
}

.load .hero-viz {
  opacity: 0;
  animation: vizIn 1.5s var(--ease) 0.25s forwards;
}

@keyframes vizIn {
  from { opacity: 0; transform: scale(0.92); }
  to { opacity: 1; transform: none; }
}

/* --------------------------------------------------------------------------
   23. Reduced motion
   -------------------------------------------------------------------------- */
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }

  *,
  *::before,
  *::after {
    animation-duration: 0.001ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.001ms !important;
  }

  .grain { animation: none; }
  .marquee-track { animation: none; }
  .ps-wave { stroke-dashoffset: 0 !important; animation: none !important; }
  .ps-core { animation: none !important; }
  .viz-ring { animation: none; }
  .viz-chip { animation: none; }

  [data-rise] { opacity: 1; transform: none; }
  .load [data-load] { opacity: 1; transform: none; animation: none; }
  .load .hero-viz { opacity: 1; animation: none; }
  .is-in .proc-line { width: 100%; }
}

/* --------------------------------------------------------------------------
   24. Print
   -------------------------------------------------------------------------- */
@media print {
  .atmos, .grain, .hdr, .drawer, .totop, .boot, .hero-viz { display: none !important; }
  body { background: #fff; color: #111; }
  h1, h2, h3, h4 { color: #000; }
}
