/* ==========================================================================
   Exosail, main stylesheet
   Structure: 1 tokens · 2 base · 3 layout · 4 components · 5 header/footer
              6 home · 7 inner pages · 8 motion · 9 utilities · 10 responsive
   ========================================================================== */

/* ---------- Fonts (self-hosted, latin subset, variable) ---------- */
@font-face {
  font-family: 'Sora';
  src: url('../fonts/sora-latin-var.woff2') format('woff2');
  font-weight: 100 800;
  font-style: normal;
  font-display: swap;
}
@font-face {
  font-family: 'Inter';
  src: url('../fonts/inter-latin-var.woff2') format('woff2');
  font-weight: 100 900;
  font-style: normal;
  font-display: swap;
}

/* ==========================================================================
   1. Tokens
   ========================================================================== */
:root {
  color-scheme: dark;

  /* Blues */
  --abyss: #040714;
  --midnight: #070d22;
  --navy: #0b1e4f;
  --royal: #1d4ed8;
  --blue: #2563eb;
  --electric: #3b82f6;
  --sky: #38bdf8;
  --ice: #7dd3fc;
  --frost: #e0f2fe;
  --cyan: #22d3ee;

  /* Surfaces */
  --bg: var(--abyss);
  --bg-2: #060b1d;
  --surface: rgba(16, 27, 61, 0.5);
  --surface-2: rgba(22, 36, 80, 0.55);
  --surface-solid: #0a1330;
  --border: rgba(148, 178, 255, 0.11);
  --border-strong: rgba(148, 178, 255, 0.22);

  /* Text */
  --text: #eaf0ff;
  --text-muted: #a3b1d6;
  --text-dim: #8b99c2;

  /* Status */
  --ok: #34d399;
  --warn: #fbbf24;

  /* Gradients */
  --grad: linear-gradient(120deg, #1d4ed8 0%, #2563eb 25%, #3b82f6 50%, #38bdf8 85%, #7dd3fc 100%);
  --grad-button: linear-gradient(120deg, #1d4ed8 0%, #2563eb 100%); /* white text stays above 4.5:1 */
  --grad-soft: linear-gradient(135deg, rgba(37, 99, 235, 0.22), rgba(56, 189, 248, 0.08));
  --grad-text: linear-gradient(100deg, #e0f2fe 0%, #7dd3fc 28%, #3b82f6 50%, #7dd3fc 72%, #e0f2fe 100%);
  --grad-line: linear-gradient(90deg, transparent, rgba(125, 211, 252, 0.6), transparent);

  /* Type */
  --font-display: 'Sora', 'Inter', system-ui, -apple-system, 'Segoe UI', Roboto, sans-serif;
  --font-body: 'Inter', system-ui, -apple-system, 'Segoe UI', Roboto, 'Helvetica Neue', Arial, sans-serif;
  --font-mono: ui-monospace, 'SF Mono', 'JetBrains Mono', 'Cascadia Code', Menlo, Consolas, monospace;

  --fs-xs: 0.78rem;
  --fs-sm: 0.9rem;
  --fs-base: 1rem;
  --fs-md: 1.125rem;
  --fs-lg: clamp(1.15rem, 0.9rem + 0.6vw, 1.35rem);
  --fs-h4: clamp(1.15rem, 1rem + 0.4vw, 1.35rem);
  --fs-h3: clamp(1.35rem, 1.1rem + 0.9vw, 1.85rem);
  --fs-h2: clamp(2rem, 1.25rem + 3vw, 3.6rem);
  --fs-h1: clamp(2.6rem, 1.2rem + 5.6vw, 6.2rem);
  --fs-page-h1: clamp(2.4rem, 1.3rem + 4.4vw, 5rem);

  /* Space & shape */
  --container: 1240px;
  --gutter: clamp(16px, 4vw, 40px);
  --section: clamp(80px, 9vw, 136px);
  --radius-sm: 12px;
  --radius: 20px;
  --radius-lg: 28px;
  --header-h: 72px;

  /* Motion */
  --ease-out: cubic-bezier(0.16, 1, 0.3, 1);
  --ease-in-out: cubic-bezier(0.65, 0, 0.35, 1);
  --ease-spring: cubic-bezier(0.34, 1.56, 0.64, 1);

  /* Effects */
  --shadow-lg: 0 30px 80px -30px rgba(0, 0, 0, 0.8);
  --shadow-glow: 0 0 0 1px rgba(59, 130, 246, 0.35), 0 24px 70px -24px rgba(37, 99, 235, 0.65);
}

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

html {
  -webkit-text-size-adjust: 100%;
  text-size-adjust: 100%;
  scroll-padding-top: calc(var(--header-h) + 24px);
  background: var(--bg);
}

@media (prefers-reduced-motion: no-preference) {
  html {
    scroll-behavior: smooth;
  }
}

body {
  margin: 0;
  min-height: 100vh;
  font-family: var(--font-body);
  font-size: var(--fs-base);
  line-height: 1.65;
  color: var(--text);
  background: var(--bg);
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  text-rendering: optimizeLegibility;
  overflow-x: hidden;
}

@supports (overflow: clip) {
  body {
    overflow-x: clip;
  }
}

/* Ambient background: grain + top aurora */
body::before {
  content: '';
  position: fixed;
  inset: 0;
  z-index: -2;
  pointer-events: none;
  background:
    radial-gradient(60vw 40vw at 85% -10%, rgba(37, 99, 235, 0.18), transparent 60%),
    radial-gradient(50vw 40vw at -10% 10%, rgba(56, 189, 248, 0.08), transparent 60%),
    linear-gradient(180deg, var(--bg) 0%, var(--bg-2) 100%);
}

body::after {
  content: '';
  position: fixed;
  inset: 0;
  z-index: 100;
  pointer-events: none;
  opacity: 0.045;
  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='.85' numOctaves='3' stitchTiles='stitch'/%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,
input,
select,
textarea {
  font: inherit;
  color: inherit;
}

button {
  cursor: pointer;
  background: none;
  border: 0;
  padding: 0;
}

h1,
h2,
h3,
h4,
h5 {
  font-family: var(--font-display);
  font-weight: 600;
  line-height: 1.12;
  letter-spacing: -0.025em;
  margin: 0 0 0.5em;
  text-wrap: balance;
}

h2 {
  font-size: var(--fs-h2);
  letter-spacing: -0.035em;
  line-height: 1.05;
}

h3 {
  font-size: var(--fs-h3);
}

h4 {
  font-size: var(--fs-h4);
}

p {
  margin: 0 0 1em;
  text-wrap: pretty;
}

ul,
ol {
  margin: 0;
  padding: 0;
}

::selection {
  background: rgba(59, 130, 246, 0.45);
  color: #fff;
}

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

.sr-only {
  position: absolute !important;
  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: 1000;
  padding: 10px 16px;
  border-radius: 10px;
  background: var(--blue);
  color: #fff;
  font-weight: 600;
  transform: translateY(-160%);
  transition: transform 0.2s var(--ease-out);
}

.skip-link:focus {
  transform: none;
}

.icon {
  width: 1.25em;
  height: 1.25em;
  flex: none;
  stroke: currentColor;
  fill: none;
  stroke-width: 1.75;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.icon--fill {
  fill: currentColor;
  stroke: none;
}

/* Scrollbar */
@supports selector(::-webkit-scrollbar) {
  ::-webkit-scrollbar {
    width: 10px;
    height: 10px;
  }
  ::-webkit-scrollbar-track {
    background: var(--bg);
  }
  ::-webkit-scrollbar-thumb {
    background: linear-gradient(var(--royal), var(--sky));
    border-radius: 10px;
    border: 2px solid var(--bg);
  }
}

/* ==========================================================================
   3. Layout
   ========================================================================== */
.container {
  width: 100%;
  max-width: calc(var(--container) + var(--gutter) * 2);
  margin-inline: auto;
  padding-inline: var(--gutter);
}

.container--narrow {
  max-width: calc(860px + var(--gutter) * 2);
}

.section {
  position: relative;
  padding-block: var(--section);
}

.section--tight {
  padding-block: calc(var(--section) * 0.6);
}

.section--flush-top {
  padding-top: 0;
}

.section-head {
  max-width: 780px;
  margin: 0 auto clamp(48px, 6vw, 80px);
  text-align: center;
}

.section-head--left {
  margin-inline: 0;
  text-align: left;
}

.section-head p {
  color: var(--text-muted);
  font-size: var(--fs-lg);
  margin-inline: auto;
  max-width: 640px;
}

.section-head--left p {
  margin-inline: 0;
}

.grid {
  display: grid;
  gap: clamp(16px, 2vw, 24px);
}

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

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

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

.divider {
  height: 1px;
  border: 0;
  margin: 0;
  background: var(--grad-line);
  opacity: 0.6;
}

/* ==========================================================================
   4. Components
   ========================================================================== */

/* ---------- Eyebrow ---------- */
.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 7px 14px 7px 12px;
  margin-bottom: 22px;
  border: 1px solid rgba(125, 211, 252, 0.22);
  border-radius: 999px;
  background: linear-gradient(135deg, rgba(37, 99, 235, 0.16), rgba(56, 189, 248, 0.06));
  font-family: var(--font-mono);
  font-size: 0.72rem;
  font-weight: 500;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--ice);
}

.eyebrow::before {
  content: '';
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: var(--sky);
  box-shadow: 0 0 0 0 rgba(56, 189, 248, 0.6);
  animation: ping 2.4s var(--ease-out) infinite;
}

/* ---------- Text ---------- */
.display {
  font-size: var(--fs-h1);
  font-weight: 600;
  line-height: 1;
  letter-spacing: -0.045em;
}

.lead {
  font-size: var(--fs-lg);
  color: var(--text-muted);
  line-height: 1.6;
}

.text-gradient {
  background: var(--grad-text);
  background-size: 200% 100%;
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
  -webkit-text-fill-color: transparent;
  animation: shimmer 8s linear infinite;
}

.text-muted {
  color: var(--text-muted);
}

.mono {
  font-family: var(--font-mono);
}

/* ---------- Buttons ---------- */
.btn {
  --btn-pad-y: 14px;
  --btn-pad-x: 24px;
  position: relative;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  padding: var(--btn-pad-y) var(--btn-pad-x);
  border-radius: 999px;
  font-weight: 600;
  font-size: 0.95rem;
  line-height: 1.2;
  letter-spacing: -0.005em;
  white-space: nowrap;
  isolation: isolate;
  overflow: hidden;
  transition: transform 0.35s var(--ease-out), box-shadow 0.35s var(--ease-out), background-color 0.3s, border-color 0.3s, color 0.3s;
  will-change: transform;
}

.btn .icon {
  width: 1.1em;
  height: 1.1em;
  transition: transform 0.35s var(--ease-out);
}

.btn:hover .icon {
  transform: translateX(3px);
}

.btn--primary {
  color: #fff;
  background: var(--grad-button);
  background-size: 160% 100%;
  background-position: 0% 50%;
  box-shadow: 0 12px 34px -12px rgba(37, 99, 235, 0.9), inset 0 1px 0 rgba(255, 255, 255, 0.28), inset 0 -1px 0 rgba(0, 0, 0, 0.15);
}

.btn--primary::after {
  content: '';
  position: absolute;
  inset: 0;
  z-index: -1;
  background: linear-gradient(110deg, transparent 30%, rgba(255, 255, 255, 0.35) 50%, transparent 70%);
  transform: translateX(-120%);
  transition: transform 0.8s var(--ease-out);
}

.btn--primary:hover {
  background-position: 100% 50%;
  box-shadow: 0 18px 44px -12px rgba(56, 189, 248, 0.75), inset 0 1px 0 rgba(255, 255, 255, 0.3);
}

.btn--primary:hover::after {
  transform: translateX(120%);
}

.btn--ghost {
  color: var(--text);
  background: rgba(255, 255, 255, 0.035);
  border: 1px solid var(--border-strong);
  -webkit-backdrop-filter: blur(10px);
  backdrop-filter: blur(10px);
}

.btn--ghost:hover {
  border-color: rgba(125, 211, 252, 0.5);
  background: rgba(59, 130, 246, 0.1);
}

.btn--light {
  color: var(--abyss);
  background: #fff;
  box-shadow: 0 12px 34px -12px rgba(255, 255, 255, 0.45);
}

.btn--light:hover {
  background: var(--frost);
}

.btn--sm {
  --btn-pad-y: 10px;
  --btn-pad-x: 18px;
  font-size: 0.88rem;
}

.btn--lg {
  --btn-pad-y: 17px;
  --btn-pad-x: 30px;
  font-size: 1rem;
}

.btn--block {
  width: 100%;
}

.link-arrow {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-weight: 600;
  color: var(--ice);
  transition: color 0.25s, gap 0.35s var(--ease-out);
}

.link-arrow .icon {
  width: 1em;
  height: 1em;
}

.link-arrow:hover {
  color: #fff;
  gap: 12px;
}

/* ---------- Cards ---------- */
.card {
  position: relative;
  padding: clamp(24px, 3vw, 34px);
  border-radius: var(--radius);
  border: 1px solid var(--border);
  background: linear-gradient(180deg, rgba(20, 33, 74, 0.5) 0%, rgba(9, 15, 36, 0.55) 100%);
  overflow: hidden;
  isolation: isolate;
  transition: border-color 0.4s, transform 0.5s var(--ease-out), box-shadow 0.5s var(--ease-out);
}

.card h3,
.card h4 {
  margin-bottom: 0.45em;
}

.card p {
  color: var(--text-muted);
}

.card p:last-child {
  margin-bottom: 0;
}

/* Cursor spotlight + gradient border (driven by --mx/--my from JS) */
.spotlight {
  --mx: 50%;
  --my: 50%;
}

.spotlight::before,
.spotlight::after {
  content: '';
  position: absolute;
  inset: 0;
  border-radius: inherit;
  pointer-events: none;
  opacity: 0;
  transition: opacity 0.4s;
}

.spotlight::before {
  z-index: -1;
  background: radial-gradient(420px circle at var(--mx) var(--my), rgba(56, 189, 248, 0.12), transparent 45%);
}

.spotlight::after {
  padding: 1px;
  background: radial-gradient(260px circle at var(--mx) var(--my), rgba(125, 211, 252, 0.75), transparent 45%);
  -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);
}

.spotlight:hover::before,
.spotlight:hover::after {
  opacity: 1;
}

.card:hover {
  border-color: var(--border-strong);
}

.icon-tile {
  display: grid;
  place-items: center;
  width: 52px;
  height: 52px;
  margin-bottom: 22px;
  border-radius: 14px;
  color: var(--ice);
  background: linear-gradient(145deg, rgba(59, 130, 246, 0.28), rgba(14, 25, 60, 0.4));
  border: 1px solid rgba(125, 211, 252, 0.22);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.1), 0 10px 30px -12px rgba(37, 99, 235, 0.7);
}

.icon-tile .icon {
  width: 24px;
  height: 24px;
}

/* ---------- Chips / tags ---------- */
.chip {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 6px 12px;
  border-radius: 999px;
  font-size: 0.8rem;
  font-weight: 500;
  color: var(--text-muted);
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid var(--border);
  white-space: nowrap;
}

.chip--accent {
  color: var(--ice);
  background: rgba(56, 189, 248, 0.08);
  border-color: rgba(56, 189, 248, 0.25);
}

.chips {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.check-list {
  list-style: none;
  display: grid;
  gap: 12px;
}

.check-list li {
  position: relative;
  padding-left: 32px;
  color: var(--text-muted);
}

.check-list li::before {
  content: '';
  position: absolute;
  left: 0;
  top: 0.2em;
  width: 20px;
  height: 20px;
  border-radius: 50%;
  background:
    url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%237dd3fc' stroke-width='3' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M20 6 9 17l-5-5'/%3E%3C/svg%3E") center / 12px no-repeat,
    rgba(56, 189, 248, 0.14);
  border: 1px solid rgba(56, 189, 248, 0.3);
}

.check-list strong {
  color: var(--text);
  font-weight: 600;
}

/* ---------- Marquee ---------- */
.marquee {
  --gap: clamp(32px, 5vw, 64px);
  --speed: 40s;
  position: relative;
  display: flex;
  overflow: hidden;
  user-select: none;
  -webkit-mask-image: linear-gradient(90deg, transparent, #000 12%, #000 88%, transparent);
  mask-image: linear-gradient(90deg, transparent, #000 12%, #000 88%, transparent);
}

.marquee__track {
  display: flex;
  flex: none;
  gap: var(--gap);
  padding-right: var(--gap);
  min-width: 100%;
  justify-content: space-around;
  animation: marquee var(--speed) linear infinite;
}

.marquee--reverse .marquee__track {
  animation-direction: reverse;
}

.marquee:hover .marquee__track {
  animation-play-state: paused;
}

.tech-logo {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-family: var(--font-display);
  font-size: 1.15rem;
  font-weight: 600;
  letter-spacing: -0.01em;
  color: var(--text-dim);
  white-space: nowrap;
  transition: color 0.3s;
}

.tech-logo:hover {
  color: var(--text);
}

.tech-logo .icon {
  width: 22px;
  height: 22px;
  color: var(--sky);
  opacity: 0.8;
}

/* ---------- Accordion (FAQ) ---------- */
.faq {
  display: grid;
  gap: 12px;
}

.faq details {
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  background: rgba(14, 23, 54, 0.45);
  transition: border-color 0.3s, background-color 0.3s;
}

.faq details[open] {
  border-color: rgba(125, 211, 252, 0.3);
  background: rgba(20, 34, 78, 0.5);
}

.faq summary {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  padding: 20px 24px;
  font-family: var(--font-display);
  font-weight: 600;
  font-size: 1.04rem;
  letter-spacing: -0.01em;
  cursor: pointer;
  list-style: none;
}

.faq summary::-webkit-details-marker {
  display: none;
}

.faq summary::after {
  content: '';
  flex: none;
  width: 28px;
  height: 28px;
  border-radius: 50%;
  border: 1px solid var(--border-strong);
  background:
    linear-gradient(var(--ice), var(--ice)) center / 11px 1.75px no-repeat,
    linear-gradient(var(--ice), var(--ice)) center / 1.75px 11px no-repeat;
  transition: transform 0.4s var(--ease-out), background-color 0.3s;
}

.faq details[open] summary::after {
  transform: rotate(135deg);
  background-color: rgba(56, 189, 248, 0.12);
}

.faq__body {
  color: var(--text-muted);
}

.faq__body > * {
  padding-inline: 24px;
}

.faq__body > :last-child {
  margin-bottom: 0;
  padding-bottom: 22px;
}

/* ---------- Forms ---------- */
.field {
  display: grid;
  gap: 8px;
}

.field label,
.field legend {
  font-size: 0.86rem;
  font-weight: 600;
  color: var(--text);
}

.field .optional {
  color: var(--text-dim);
  font-weight: 400;
}

.input,
.select,
.textarea {
  width: 100%;
  padding: 14px 16px;
  border-radius: var(--radius-sm);
  border: 1px solid var(--border-strong);
  background: rgba(6, 11, 29, 0.6);
  color: var(--text);
  font-size: 0.98rem;
  transition: border-color 0.25s, box-shadow 0.25s, background-color 0.25s;
}

.input::placeholder,
.textarea::placeholder {
  color: var(--text-dim);
}

.input:hover,
.select:hover,
.textarea:hover {
  border-color: rgba(125, 211, 252, 0.35);
}

.input:focus,
.select:focus,
.textarea:focus {
  outline: none;
  border-color: var(--sky);
  background: rgba(8, 15, 40, 0.8);
  box-shadow: 0 0 0 4px rgba(56, 189, 248, 0.15);
}

.textarea {
  min-height: 150px;
  resize: vertical;
}

.select {
  appearance: none;
  padding-right: 44px;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%237dd3fc' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='m6 9 6 6 6-6'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 14px center;
  background-size: 18px;
}

.select option {
  background: var(--surface-solid);
  color: var(--text);
}

.field.is-invalid .input,
.field.is-invalid .textarea,
.field.is-invalid .select {
  border-color: #f87171;
  box-shadow: 0 0 0 4px rgba(248, 113, 113, 0.12);
}

.field__error {
  min-height: 0;
  font-size: 0.8rem;
  color: #fca5a5;
}

.field__error:empty {
  display: none;
}

.choice-group {
  border: 0;
  padding: 0;
  margin: 0;
  display: grid;
  gap: 10px;
}

.choice-group legend {
  padding: 0;
  margin-bottom: 10px;
  font-size: 0.86rem;
  font-weight: 600;
  color: var(--text);
}

.choice-group legend .optional {
  color: var(--text-dim);
  font-weight: 400;
}

.choice-group .chips {
  gap: 10px;
}

.choice {
  position: relative;
}

.choice input {
  position: absolute;
  opacity: 0;
  inset: 0;
  cursor: pointer;
}

.choice span {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 10px 16px;
  border-radius: 999px;
  border: 1px solid var(--border-strong);
  background: rgba(255, 255, 255, 0.03);
  font-size: 0.88rem;
  font-weight: 500;
  color: var(--text-muted);
  transition: all 0.25s var(--ease-out);
}

.choice input:hover + span {
  border-color: rgba(125, 211, 252, 0.45);
  color: var(--text);
}

.choice input:checked + span {
  color: #fff;
  border-color: transparent;
  background: var(--grad-button);
  box-shadow: 0 8px 22px -10px rgba(37, 99, 235, 0.9);
}

.choice input:focus-visible + span {
  outline: 2px solid var(--sky);
  outline-offset: 3px;
}

/* ---------- Tabs ---------- */
.tabs__list {
  position: relative;
  display: inline-flex;
  gap: 4px;
  padding: 6px;
  border-radius: 999px;
  border: 1px solid var(--border);
  background: rgba(8, 14, 36, 0.7);
  -webkit-backdrop-filter: blur(12px);
  backdrop-filter: blur(12px);
  max-width: 100%;
  overflow-x: auto;
  scrollbar-width: none;
}

.tabs__list::-webkit-scrollbar {
  display: none;
}

.tabs__indicator {
  position: absolute;
  top: 6px;
  bottom: 6px;
  left: 0;
  width: 0;
  border-radius: 999px;
  background: var(--grad);
  box-shadow: 0 8px 24px -8px rgba(37, 99, 235, 0.9);
  transition: transform 0.5s var(--ease-out), width 0.5s var(--ease-out);
  z-index: 0;
}

.tabs__tab {
  position: relative;
  z-index: 1;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 11px 20px;
  border-radius: 999px;
  font-weight: 600;
  font-size: 0.92rem;
  color: var(--text-muted);
  white-space: nowrap;
  transition: color 0.3s;
}

.tabs__tab .icon {
  width: 18px;
  height: 18px;
}

.tabs__tab:hover {
  color: var(--text);
}

.tabs__tab[aria-selected='true'] {
  color: #fff;
}

.tabs__panel[hidden] {
  display: none;
}

.tabs__panel {
  animation: panel-in 0.7s var(--ease-out);
}

/* ---------- Window / mock UI chrome ---------- */
.window {
  position: relative;
  border-radius: var(--radius-lg);
  border: 1px solid var(--border-strong);
  background: linear-gradient(180deg, rgba(14, 24, 56, 0.92), rgba(6, 11, 28, 0.96));
  box-shadow: var(--shadow-lg), 0 0 0 1px rgba(0, 0, 0, 0.4), 0 0 120px -40px rgba(37, 99, 235, 0.55);
  overflow: hidden;
}

.window::before {
  content: '';
  position: absolute;
  inset: 0;
  pointer-events: none;
  border-radius: inherit;
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.06), transparent 30%);
}

.window__bar {
  display: flex;
  align-items: center;
  gap: 14px;
  padding: 14px 18px;
  border-bottom: 1px solid var(--border);
  background: rgba(4, 8, 22, 0.55);
}

.window__dots {
  display: flex;
  gap: 7px;
}

.window__dots i {
  width: 11px;
  height: 11px;
  border-radius: 50%;
  background: #1f2b4d;
}

.window__dots i:nth-child(1) {
  background: #3b82f6;
}

.window__dots i:nth-child(2) {
  background: #38bdf8;
}

.window__dots i:nth-child(3) {
  background: #7dd3fc;
}

.window__title {
  flex: 1;
  font-family: var(--font-mono);
  font-size: 0.75rem;
  color: var(--text-dim);
  text-align: center;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.live-pill {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  padding: 4px 10px;
  border-radius: 999px;
  font-family: var(--font-mono);
  font-size: 0.68rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--ok);
  background: rgba(52, 211, 153, 0.1);
  border: 1px solid rgba(52, 211, 153, 0.25);
}

.live-pill::before {
  content: '';
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: currentColor;
  animation: blink 1.6s ease-in-out infinite;
}

/* ==========================================================================
   5. Header & footer
   ========================================================================== */
.scroll-progress {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  height: 2px;
  z-index: 60;
  transform-origin: 0 50%;
  transform: scaleX(0);
  background: var(--grad);
  box-shadow: 0 0 12px rgba(56, 189, 248, 0.7);
  pointer-events: none;
}

.site-header {
  position: fixed;
  inset: 0 0 auto;
  z-index: 50;
  height: var(--header-h);
  transition: transform 0.5s var(--ease-out), background-color 0.4s, border-color 0.4s, -webkit-backdrop-filter 0.4s, backdrop-filter 0.4s;
  border-bottom: 1px solid transparent;
  view-transition-name: site-header;
}

.site-header.is-scrolled {
  background: rgba(4, 7, 20, 0.72);
  -webkit-backdrop-filter: blur(18px) saturate(140%);
  backdrop-filter: blur(18px) saturate(140%);
  border-bottom-color: var(--border);
}

.site-header.is-hidden {
  transform: translateY(-100%);
}

.site-header__inner {
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
}

.brand {
  display: inline-flex;
  align-items: center;
  flex: none;
  border-radius: 8px;
}

.brand img {
  width: auto;
  height: 30px;
}

.nav {
  display: flex;
  align-items: center;
  gap: 2px;
  padding: 5px;
  border-radius: 999px;
  border: 1px solid var(--border);
  background: rgba(10, 17, 42, 0.5);
  -webkit-backdrop-filter: blur(12px);
  backdrop-filter: blur(12px);
}

.nav a {
  position: relative;
  padding: 8px 15px;
  border-radius: 999px;
  font-size: 0.9rem;
  font-weight: 500;
  color: var(--text-muted);
  transition: color 0.25s, background-color 0.25s;
}

.nav a:hover {
  color: var(--text);
  background: rgba(255, 255, 255, 0.05);
}

.nav a[aria-current='page'] {
  color: #fff;
  background: rgba(59, 130, 246, 0.2);
  box-shadow: inset 0 0 0 1px rgba(125, 211, 252, 0.25);
}

.header-actions {
  display: flex;
  align-items: center;
  gap: 10px;
}

.menu-toggle {
  display: none;
  position: relative;
  width: 46px;
  height: 46px;
  border-radius: 50%;
  border: 1px solid var(--border-strong);
  background: rgba(10, 17, 42, 0.6);
}

.menu-toggle span {
  position: absolute;
  left: 13px;
  right: 13px;
  height: 1.75px;
  border-radius: 2px;
  background: var(--text);
  transition: transform 0.45s var(--ease-out), top 0.45s var(--ease-out);
}

.menu-toggle span:nth-child(1) {
  top: 18px;
}

.menu-toggle span:nth-child(2) {
  top: 26px;
}

.menu-open .menu-toggle span:nth-child(1) {
  top: 22px;
  transform: rotate(45deg);
}

.menu-open .menu-toggle span:nth-child(2) {
  top: 22px;
  transform: rotate(-45deg);
}

.mobile-menu {
  position: fixed;
  inset: 0;
  z-index: 45;
  display: flex;
  flex-direction: column;
  padding: calc(var(--header-h) + 24px) var(--gutter) 32px;
  background: rgba(4, 7, 20, 0.96);
  -webkit-backdrop-filter: blur(20px);
  backdrop-filter: blur(20px);
  overflow-y: auto;
  visibility: hidden;
  opacity: 0;
  clip-path: circle(0% at calc(100% - 40px) 36px);
  transition: clip-path 0.7s var(--ease-in-out), opacity 0.4s, visibility 0s linear 0.7s;
}

.menu-open .mobile-menu {
  visibility: visible;
  opacity: 1;
  clip-path: circle(150% at calc(100% - 40px) 36px);
  transition: clip-path 0.8s var(--ease-in-out), opacity 0.3s, visibility 0s;
}

.mobile-menu nav {
  display: grid;
  gap: 4px;
}

.mobile-menu nav a {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 14px 4px;
  font-family: var(--font-display);
  font-size: clamp(1.7rem, 7vw, 2.4rem);
  font-weight: 600;
  letter-spacing: -0.03em;
  border-bottom: 1px solid var(--border);
  opacity: 0;
  transform: translateY(24px);
  transition: opacity 0.5s var(--ease-out), transform 0.6s var(--ease-out), color 0.2s;
}

.mobile-menu nav a .icon {
  width: 24px;
  height: 24px;
  color: var(--sky);
}

.mobile-menu nav a[aria-current='page'] {
  color: var(--ice);
}

.menu-open .mobile-menu nav a {
  opacity: 1;
  transform: none;
  transition-delay: calc(0.15s + var(--i, 0) * 0.05s);
}

.mobile-menu__foot {
  margin-top: auto;
  padding-top: 32px;
  display: grid;
  gap: 16px;
  opacity: 0;
  transition: opacity 0.5s 0.4s;
}

.menu-open .mobile-menu__foot {
  opacity: 1;
}

.mobile-menu__foot a.mail {
  color: var(--text-muted);
}

html.menu-open,
html.menu-open body {
  overflow: hidden;
}

/* Footer */
.site-footer {
  position: relative;
  padding-top: clamp(64px, 7vw, 96px);
  border-top: 1px solid var(--border);
  background: linear-gradient(180deg, rgba(6, 11, 29, 0) 0%, rgba(6, 11, 29, 0.9) 40%);
  overflow: hidden;
}

.footer-grid {
  display: grid;
  grid-template-columns: 1.4fr repeat(4, 1fr);
  gap: 40px;
}

.footer-brand p {
  max-width: 320px;
  margin-top: 20px;
  color: var(--text-muted);
  font-size: 0.95rem;
}

.footer-col__title {
  margin-bottom: 18px;
  line-height: 1.4;
  font-family: var(--font-mono);
  font-size: 0.72rem;
  font-weight: 500;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--text-dim);
}

.footer-col ul {
  list-style: none;
  display: grid;
  gap: 11px;
}

.footer-col a {
  font-size: 0.94rem;
  color: var(--text-muted);
  transition: color 0.2s;
}

.footer-col a:hover {
  color: #fff;
}

.socials {
  display: flex;
  gap: 10px;
  margin-top: 26px;
}

.socials a {
  display: grid;
  place-items: center;
  width: 42px;
  height: 42px;
  border-radius: 50%;
  border: 1px solid var(--border-strong);
  color: var(--text-muted);
  transition: all 0.3s var(--ease-out);
}

.socials a:hover {
  color: #fff;
  border-color: transparent;
  background: var(--blue);
  transform: translateY(-3px);
}

.socials .icon {
  width: 18px;
  height: 18px;
}

.footer-bottom {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  margin-top: 64px;
  padding-block: 26px;
  border-top: 1px solid var(--border);
  font-size: 0.86rem;
  color: var(--text-dim);
}

.footer-bottom a:hover {
  color: var(--text);
}

.footer-bottom .status {
  display: inline-flex;
  align-items: center;
  gap: 8px;
}

.footer-bottom .status::before {
  content: '';
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--ok);
  box-shadow: 0 0 10px var(--ok);
}

.footer-wordmark {
  margin: 24px 0 -0.1em;
  font-family: var(--font-display);
  font-weight: 700;
  font-size: clamp(5rem, 22vw, 21rem);
  line-height: 0.8;
  letter-spacing: -0.06em;
  text-align: center;
  background: linear-gradient(180deg, rgba(125, 211, 252, 0.28) 0%, rgba(37, 99, 235, 0.08) 60%, transparent 100%);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
  -webkit-text-fill-color: transparent;
  user-select: none;
  pointer-events: none;
  white-space: nowrap;
}

.back-to-top {
  position: fixed;
  right: 22px;
  bottom: 22px;
  z-index: 40;
  display: grid;
  place-items: center;
  width: 48px;
  height: 48px;
  border-radius: 50%;
  color: #fff;
  background: rgba(10, 17, 42, 0.8);
  border: 1px solid var(--border-strong);
  -webkit-backdrop-filter: blur(10px);
  backdrop-filter: blur(10px);
  opacity: 0;
  visibility: hidden;
  transform: translateY(16px);
  transition: all 0.4s var(--ease-out);
}

.back-to-top.is-visible {
  opacity: 1;
  visibility: visible;
  transform: none;
}

.back-to-top:hover {
  background: var(--blue);
  border-color: transparent;
}

.back-to-top .icon {
  transform: rotate(-90deg);
}

/* ---------- Cookie consent (shown only when analytics is set up) ---------- */
.consent {
  position: fixed;
  z-index: 90;
  right: 16px;
  bottom: 16px;
  left: 16px;
  display: grid;
  gap: 14px;
  max-width: 620px;
  margin-inline: auto;
  padding: 18px 20px;
  border: 1px solid var(--border-strong);
  border-radius: var(--radius);
  background: var(--surface-solid);
  box-shadow: var(--shadow-lg);
  font-size: 0.9rem;
  color: var(--text-muted);
}

.consent p {
  margin: 0;
}

.consent a {
  color: var(--ice);
  text-decoration: underline;
}

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

.consent__actions .btn {
  justify-content: center;
  width: 100%;
}

.link-btn {
  color: inherit;
  font-size: inherit;
}

.link-btn:hover {
  color: var(--text);
}

.link-btn::before {
  content: '·';
  margin: 0 0.55em;
}

/* ==========================================================================
   6. Home
   ========================================================================== */

/* ---------- Hero ---------- */
.hero {
  position: relative;
  padding-top: calc(var(--header-h) + clamp(56px, 9vw, 120px));
  padding-bottom: clamp(40px, 5vw, 72px);
  overflow: hidden;
  isolation: isolate;
}

.hero__canvas {
  position: absolute;
  inset: 0 0 auto;
  z-index: -1;
  width: 100%;
  height: min(100vh, 1000px);
  min-height: 620px;
  -webkit-mask-image: linear-gradient(180deg, transparent 0%, #000 45%, #000 80%, transparent 100%);
  mask-image: linear-gradient(180deg, transparent 0%, #000 45%, #000 80%, transparent 100%);
}

.hero__aurora {
  position: absolute;
  inset: -20% -10% auto;
  height: 900px;
  z-index: -2;
  pointer-events: none;
  opacity: 0.85;
}

/* Soft radial gradients, no filter: blur(), which is costly to re-render while animating */
.hero__aurora i {
  position: absolute;
  border-radius: 50%;
  will-change: transform;
}

.hero__aurora i:nth-child(1) {
  width: 46vw;
  height: 46vw;
  max-width: 720px;
  max-height: 720px;
  left: 8%;
  top: 6%;
  background: radial-gradient(circle, rgba(37, 99, 235, 0.5), rgba(37, 99, 235, 0.12) 40%, transparent 70%);
  animation: drift-a 18s ease-in-out infinite alternate;
}

.hero__aurora i:nth-child(2) {
  width: 40vw;
  height: 40vw;
  max-width: 620px;
  max-height: 620px;
  right: 4%;
  top: 0;
  background: radial-gradient(circle, rgba(56, 189, 248, 0.34), rgba(56, 189, 248, 0.08) 40%, transparent 70%);
  animation: drift-b 22s ease-in-out infinite alternate;
}

.hero__aurora i:nth-child(3) {
  width: 30vw;
  height: 30vw;
  max-width: 480px;
  max-height: 480px;
  left: 40%;
  top: 30%;
  background: radial-gradient(circle, rgba(29, 78, 216, 0.45), rgba(29, 78, 216, 0.1) 40%, transparent 70%);
  animation: drift-c 16s ease-in-out infinite alternate;
}

.hero__grid {
  position: absolute;
  inset: 0;
  z-index: -1;
  pointer-events: none;
  background-image:
    linear-gradient(rgba(148, 178, 255, 0.06) 1px, transparent 1px),
    linear-gradient(90deg, rgba(148, 178, 255, 0.06) 1px, transparent 1px);
  background-size: 64px 64px;
  -webkit-mask-image: radial-gradient(ellipse 70% 55% at 50% 30%, #000 20%, transparent 75%);
  mask-image: radial-gradient(ellipse 70% 55% at 50% 30%, #000 20%, transparent 75%);
}

.hero__inner {
  position: relative;
  text-align: center;
}

.hero__badge {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 6px 14px 6px 6px;
  margin-bottom: 30px;
  border-radius: 999px;
  border: 1px solid var(--border-strong);
  background: rgba(10, 17, 42, 0.65);
  -webkit-backdrop-filter: blur(10px);
  backdrop-filter: blur(10px);
  font-size: 0.86rem;
  color: var(--text-muted);
  transition: border-color 0.3s, color 0.3s;
}

.hero__badge:hover {
  border-color: rgba(125, 211, 252, 0.5);
  color: var(--text);
}

.hero__badge .tag {
  padding: 3px 10px;
  border-radius: 999px;
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: #fff;
  background: var(--grad-button);
}

.hero__badge .icon {
  width: 15px;
  height: 15px;
  transition: transform 0.3s var(--ease-out);
}

.hero__badge:hover .icon {
  transform: translateX(3px);
}

.hero__title {
  max-width: 1100px;
  margin: 0 auto 28px;
}

.hero__title .underline {
  position: relative;
  display: inline-block;
}

.hero__title .underline svg {
  position: absolute;
  left: -2%;
  bottom: -0.16em;
  width: 104%;
  height: 0.28em;
  overflow: visible;
}

.hero__title .underline path {
  stroke-dasharray: 1;
  stroke-dashoffset: 1;
  animation: draw 1.6s 1.1s var(--ease-out) forwards;
}

.hero__lead {
  max-width: 720px;
  margin: 0 auto 40px;
  font-size: clamp(1.08rem, 0.95rem + 0.5vw, 1.3rem);
  color: var(--text-muted);
}

.rotator {
  display: inline-grid;
  vertical-align: bottom;
  color: var(--text);
  font-weight: 600;
}

.rotator > span {
  grid-area: 1 / 1;
  white-space: nowrap;
  text-align: left;
  opacity: 0;
  transition: opacity 0.35s;
}

.rotator > span.is-active {
  opacity: 1;
}

.rotator > span::after {
  content: '';
}

.hero__ctas {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 14px;
}

.hero__meta {
  list-style: none;
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 12px 28px;
  margin-top: 38px;
  font-size: 0.9rem;
  color: var(--text-dim);
}

.hero__meta li {
  display: inline-flex;
  align-items: center;
  gap: 8px;
}

.hero__meta .icon {
  width: 17px;
  height: 17px;
  color: var(--sky);
}

/* Hero product stage */
.hero__stage {
  position: relative;
  margin-top: clamp(72px, 10vw, 150px);
  perspective: 1600px;
}

.hero__stage::before {
  content: '';
  position: absolute;
  left: 10%;
  right: 10%;
  top: 12%;
  height: 70%;
  z-index: -1;
  border-radius: 50%;
  background: radial-gradient(ellipse at center, rgba(37, 99, 235, 0.45), rgba(37, 99, 235, 0.12) 45%, transparent 70%);
  transform: scale(1.3);
}

.console {
  --tilt: 1;
  transform: rotateX(calc(var(--tilt) * 22deg)) scale(calc(1 - var(--tilt) * 0.06)) translateY(calc(var(--tilt) * -10px));
  transform-origin: 50% 0%;
  will-change: transform;
}

.console__body {
  display: grid;
  grid-template-columns: 220px 1fr;
  min-height: 460px;
  text-align: left;
}

.console__side {
  padding: 18px 14px;
  border-right: 1px solid var(--border);
  background: rgba(4, 8, 22, 0.35);
}

.console__label {
  padding: 0 8px 10px;
  font-family: var(--font-mono);
  font-size: 0.66rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--text-dim);
}

.agent-list {
  list-style: none;
  display: grid;
  gap: 4px;
}

.agent-list li {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 9px 10px;
  border-radius: 10px;
  font-size: 0.82rem;
  color: var(--text-muted);
}

.agent-list li.is-active {
  color: var(--text);
  background: rgba(59, 130, 246, 0.14);
  box-shadow: inset 0 0 0 1px rgba(125, 211, 252, 0.18);
}

.agent-list .dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  flex: none;
  background: var(--text-dim);
}

.agent-list .dot--run {
  background: var(--ok);
  box-shadow: 0 0 10px var(--ok);
  animation: blink 1.6s ease-in-out infinite;
}

.agent-list .dot--queue {
  background: var(--warn);
}

.agent-list .count {
  margin-left: auto;
  font-family: var(--font-mono);
  font-size: 0.7rem;
  color: var(--text-dim);
}

.console__main {
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  grid-template-rows: auto auto auto 1fr;
  gap: 16px;
  padding: 18px;
  min-width: 0;
}

.console__label--gap {
  margin-top: 22px;
}

.console__head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
}

.console__title {
  margin: 0;
  font-family: var(--font-display);
  font-size: 1rem;
  font-weight: 600;
  letter-spacing: -0.025em;
}

.console__head small {
  display: block;
  font-family: var(--font-mono);
  font-size: 0.7rem;
  color: var(--text-dim);
  font-weight: 400;
  letter-spacing: 0;
}

.flow {
  position: relative;
  border-radius: 16px;
  border: 1px solid var(--border);
  background:
    radial-gradient(circle at 1px 1px, rgba(148, 178, 255, 0.14) 1px, transparent 0) 0 0 / 18px 18px,
    rgba(4, 8, 22, 0.5);
  padding: 22px 16px;
  overflow: hidden;
}

.flow svg {
  width: 100%;
  height: auto;
  overflow: visible;
}

.flow .edge {
  fill: none;
  stroke: rgba(125, 211, 252, 0.28);
  stroke-width: 1.5;
  stroke-dasharray: 4 5;
  animation: dash 1.2s linear infinite;
}

.flow .pulse {
  fill: var(--ice);
  filter: drop-shadow(0 0 6px var(--sky));
}

.flow .node rect {
  fill: rgba(15, 26, 60, 0.95);
  stroke: rgba(125, 211, 252, 0.3);
  stroke-width: 1;
  transition: stroke 0.3s, fill 0.3s;
}

.flow .node.is-hot rect {
  stroke: var(--sky);
  fill: rgba(30, 64, 175, 0.55);
}

.flow .node text {
  font-family: var(--font-body);
  font-size: 11px;
  font-weight: 600;
  fill: var(--text);
}

.flow .node .sub {
  font-family: var(--font-mono);
  font-size: 8.5px;
  font-weight: 400;
  fill: var(--text-dim);
}

.flow .node circle {
  fill: var(--sky);
}

.kpis {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 12px;
}

.kpi {
  padding: 14px 16px;
  border-radius: 14px;
  border: 1px solid var(--border);
  background: rgba(10, 18, 44, 0.6);
}

.kpi__label {
  font-size: 0.72rem;
  color: var(--text-dim);
}

.kpi__value {
  display: flex;
  align-items: baseline;
  gap: 8px;
  font-family: var(--font-display);
  font-size: 1.35rem;
  font-weight: 600;
  letter-spacing: -0.02em;
  font-variant-numeric: tabular-nums;
}

.kpi__delta {
  font-family: var(--font-body);
  font-size: 0.72rem;
  font-weight: 600;
  color: var(--ok);
}

.spark {
  width: 100%;
  height: 26px;
  margin-top: 6px;
}

.spark path {
  fill: none;
  stroke: var(--sky);
  stroke-width: 1.6;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.spark .area {
  fill: url(#spark-fill);
  stroke: none;
}

.log {
  position: relative;
  min-height: 132px;
  max-height: 150px;
  padding: 12px 14px;
  border-radius: 14px;
  border: 1px solid var(--border);
  background: rgba(2, 5, 15, 0.7);
  font-family: var(--font-mono);
  font-size: 0.74rem;
  line-height: 1.75;
  color: var(--text-muted);
  overflow: hidden;
  -webkit-mask-image: linear-gradient(180deg, transparent 0, #000 30%);
  mask-image: linear-gradient(180deg, transparent 0, #000 30%);
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
}

.log__line {
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  animation: log-in 0.4s var(--ease-out);
}

.log__line .t {
  color: var(--text-dim);
  margin-right: 10px;
}

.log__line .fn {
  color: var(--ice);
}

.log__line .ok {
  color: var(--ok);
}

.log__line .hl {
  color: #fff;
}

.caret::after {
  content: '▍';
  margin-left: 2px;
  color: var(--sky);
  animation: blink 1s steps(2) infinite;
}

/* ---------- Logos strip ---------- */
.logos-strip {
  padding-block: clamp(36px, 5vw, 64px);
}

.logos-strip__label {
  margin-bottom: 26px;
  text-align: center;
  font-size: 0.86rem;
  color: var(--text-dim);
}

/* ---------- Stats ---------- */
.stats {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  border-radius: var(--radius-lg);
  border: 1px solid var(--border);
  background: linear-gradient(180deg, rgba(16, 27, 61, 0.45), rgba(8, 13, 32, 0.45));
  overflow: hidden;
}

.stat {
  position: relative;
  padding: clamp(26px, 3.4vw, 44px) clamp(20px, 2.4vw, 32px);
}

.stat + .stat {
  border-left: 1px solid var(--border);
}

.stat__value {
  font-family: var(--font-display);
  font-size: clamp(2.3rem, 1.6rem + 2.4vw, 3.6rem);
  font-weight: 600;
  line-height: 1;
  letter-spacing: -0.04em;
  font-variant-numeric: tabular-nums;
  background: var(--grad-text);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
  -webkit-text-fill-color: transparent;
}

.stat__label {
  margin-top: 12px;
  font-size: 0.92rem;
  color: var(--text-muted);
}

/* ---------- Bento ---------- */
.bento {
  display: grid;
  grid-template-columns: repeat(6, minmax(0, 1fr));
  grid-auto-rows: minmax(250px, auto);
  gap: clamp(16px, 2vw, 22px);
}

.bento .card {
  display: flex;
  flex-direction: column;
}

.bento__a {
  grid-column: span 4;
  grid-row: span 2;
}

.bento__b {
  grid-column: span 2;
  grid-row: span 2;
}

.bento__c,
.bento__d,
.bento__e {
  grid-column: span 2;
}

.bento__f {
  grid-column: span 6;
}

.bento .card .link-arrow {
  margin-top: auto;
  padding-top: 20px;
}

.bento__visual {
  position: relative;
  flex: 1;
  min-height: 160px;
  margin: 6px -8px 18px;
}

/* Visual: agent network */
.viz-network {
  position: relative;
  width: 100%;
  height: 100%;
  min-height: 260px;
}

@media (max-width: 1100px) {
  .viz-network {
    min-height: 0;
    height: auto;
    aspect-ratio: 600 / 260;
  }
}

.viz-network svg {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  overflow: visible;
}

.viz-network .ln {
  fill: none;
  stroke: rgba(125, 211, 252, 0.25);
  stroke-width: 1.2;
}

.viz-network .ln--flow {
  stroke: var(--sky);
  stroke-width: 1.6;
  stroke-dasharray: 3 9;
  animation: dash 1.4s linear infinite;
  opacity: 0.8;
}

.viz-network .hub {
  fill: url(#hub-grad);
}

.viz-network .sat {
  fill: #0d1838;
  stroke: rgba(125, 211, 252, 0.45);
  stroke-width: 1.2;
}

.viz-network .ring {
  fill: none;
  stroke: rgba(56, 189, 248, 0.5);
  transform-origin: center;
  transform-box: fill-box;
  animation: ripple 3s var(--ease-out) infinite;
}

.viz-network .lbl {
  font-family: var(--font-mono);
  font-size: 10px;
  fill: var(--text-muted);
}

.viz-network .sat-icon {
  fill: none;
  stroke: var(--ice);
  stroke-width: 1.6;
  stroke-linecap: round;
  stroke-linejoin: round;
}

/* Visual: chat bubbles */
.viz-chat {
  display: grid;
  align-content: center;
  gap: 10px;
  padding: 10px 8px;
}

.bubble {
  max-width: 86%;
  padding: 10px 14px;
  border-radius: 16px;
  font-size: 0.82rem;
  line-height: 1.45;
}

.bubble--user {
  justify-self: end;
  border-bottom-right-radius: 6px;
  color: #fff;
  background: var(--grad-button);
}

.bubble--ai {
  justify-self: start;
  border-bottom-left-radius: 6px;
  background: rgba(255, 255, 255, 0.06);
  border: 1px solid var(--border);
  color: var(--text);
}

.typing {
  display: inline-flex;
  gap: 4px;
  padding: 12px 14px;
}

.typing i {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--ice);
  animation: typing 1.2s ease-in-out infinite;
}

.typing i:nth-child(2) {
  animation-delay: 0.15s;
}

.typing i:nth-child(3) {
  animation-delay: 0.3s;
}

/* Visual: bars */
.viz-bars {
  display: flex;
  align-items: flex-end;
  gap: 8px;
  height: 140px;
  padding: 0 10px;
}

.viz-bars i {
  flex: 1;
  height: var(--h);
  border-radius: 6px 6px 3px 3px;
  background: linear-gradient(180deg, var(--sky), rgba(37, 99, 235, 0.35));
  transform-origin: bottom;
  animation: bar 3.6s var(--ease-in-out) infinite alternate;
  animation-delay: calc(var(--i) * -0.4s);
}

.viz-bars i:last-child {
  background: repeating-linear-gradient(-45deg, rgba(125, 211, 252, 0.55) 0 4px, rgba(125, 211, 252, 0.18) 4px 8px);
  border: 1px dashed rgba(125, 211, 252, 0.6);
}

/* Visual: waveform */
.viz-wave {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 4px;
  height: 120px;
}

.viz-wave i {
  width: 4px;
  height: 100%;
  border-radius: 4px;
  background: linear-gradient(180deg, var(--ice), var(--blue));
  transform: scaleY(0.15);
  animation: wave 1.3s ease-in-out infinite;
  animation-delay: calc(var(--i) * -0.09s);
}

/* Visual: workflow steps */
.viz-steps {
  display: grid;
  gap: 8px;
  padding: 6px 8px;
}

.viz-steps div {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 10px 12px;
  border-radius: 12px;
  border: 1px solid var(--border);
  background: rgba(255, 255, 255, 0.03);
  font-size: 0.8rem;
  color: var(--text-muted);
  animation: step-glow 4.8s infinite;
  animation-delay: calc(var(--i) * 1.2s);
}

.viz-steps .icon {
  width: 16px;
  height: 16px;
  color: var(--sky);
}

.viz-steps .ok {
  margin-left: auto;
  color: var(--ok);
}

.strategy-row {
  display: grid;
  grid-template-columns: 1.1fr 1fr;
  align-items: center;
  gap: clamp(24px, 4vw, 56px);
}

.strategy-row .chips {
  margin-top: 18px;
}

.roadmap {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 8px;
}

.roadmap div {
  position: relative;
  padding: 16px 14px;
  border-radius: 14px;
  border: 1px solid var(--border);
  background: rgba(255, 255, 255, 0.025);
  font-size: 0.8rem;
  color: var(--text-muted);
}

.roadmap div strong {
  display: block;
  margin-bottom: 2px;
  font-family: var(--font-display);
  font-size: 0.95rem;
  color: var(--text);
}

.roadmap div::before {
  content: '';
  display: block;
  height: 4px;
  margin-bottom: 14px;
  border-radius: 4px;
  background: linear-gradient(90deg, var(--blue), var(--sky));
  transform-origin: left;
  transform: scaleX(var(--p));
}

/* ---------- Products grid ---------- */
.product-card {
  display: flex;
  flex-direction: column;
  min-height: 100%;
}

.product-card__top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 22px;
}

.product-card__top .icon-tile {
  margin: 0;
}

.product-card h3 {
  display: flex;
  align-items: baseline;
  gap: 8px;
}

.product-card h3 small {
  font-family: var(--font-body);
  font-size: 0.8rem;
  font-weight: 500;
  color: var(--text-dim);
  letter-spacing: 0;
}

.product-card .check-list {
  margin: 8px 0 24px;
  font-size: 0.92rem;
}

.product-card .link-arrow {
  margin-top: auto;
}

/* ---------- Agent demo ---------- */
.demo {
  display: grid;
  grid-template-columns: 0.85fr 1.15fr;
  gap: clamp(24px, 3vw, 40px);
  align-items: stretch;
}

.demo__tasks {
  display: grid;
  gap: 12px;
  align-content: start;
}

.task-btn {
  display: flex;
  align-items: center;
  gap: 14px;
  width: 100%;
  padding: 18px 20px;
  border-radius: 16px;
  border: 1px solid var(--border);
  background: rgba(14, 23, 54, 0.5);
  text-align: left;
  transition: border-color 0.3s, background-color 0.3s, transform 0.4s var(--ease-out);
}

.task-btn:hover {
  border-color: var(--border-strong);
  transform: translateX(4px);
}

.task-btn[aria-pressed='true'] {
  border-color: rgba(125, 211, 252, 0.45);
  background: linear-gradient(135deg, rgba(37, 99, 235, 0.3), rgba(14, 23, 54, 0.6));
  box-shadow: 0 16px 40px -20px rgba(37, 99, 235, 0.9);
}

.task-btn .icon-tile {
  width: 42px;
  height: 42px;
  margin: 0;
  border-radius: 12px;
}

.task-btn .icon-tile .icon {
  width: 20px;
  height: 20px;
}

.task-btn strong {
  display: block;
  font-family: var(--font-display);
  font-size: 0.98rem;
  font-weight: 600;
  letter-spacing: -0.01em;
}

.task-btn small {
  display: block;
  font-size: 0.82rem;
  color: var(--text-dim);
}

.demo__note {
  margin-top: 8px;
  font-size: 0.82rem;
  color: var(--text-dim);
}

.chat {
  display: flex;
  flex-direction: column;
  min-height: 520px;
}

.chat__body {
  flex: 1;
  display: flex;
  flex-direction: column;
  gap: 14px;
  padding: 22px;
  overflow: hidden;
}

.chat__msg {
  max-width: 88%;
  animation: msg-in 0.55s var(--ease-out);
}

.chat__msg--user {
  align-self: flex-end;
  padding: 12px 16px;
  border-radius: 18px 18px 6px 18px;
  background: var(--grad-button);
  color: #fff;
  font-size: 0.92rem;
}

.chat__msg--ai {
  align-self: flex-start;
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  gap: 10px;
  min-width: 0;
}

.chat__avatar {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-size: 0.78rem;
  font-weight: 600;
  color: var(--text-muted);
}

.chat__avatar img {
  width: 26px;
  height: 26px;
  border-radius: 8px;
  background: var(--abyss);
}

.tool {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 4px 10px;
  padding: 9px 12px;
  border-radius: 12px;
  border: 1px solid var(--border);
  background: rgba(2, 6, 18, 0.55);
  font-family: var(--font-mono);
  font-size: 0.76rem;
  color: var(--text-muted);
  animation: msg-in 0.45s var(--ease-out);
}

.tool .spin {
  width: 14px;
  height: 14px;
  flex: none;
  border-radius: 50%;
  border: 2px solid rgba(125, 211, 252, 0.25);
  border-top-color: var(--sky);
  animation: spin 0.8s linear infinite;
}

.tool.is-done .spin {
  border: 0;
  animation: none;
  background: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%2334d399' stroke-width='3' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M20 6 9 17l-5-5'/%3E%3C/svg%3E") center / 14px no-repeat;
}

.tool .fn {
  flex: 1 1 auto;
  min-width: 0;
  overflow-wrap: anywhere;
}

.tool .res {
  margin-left: auto;
  color: var(--ice);
  white-space: nowrap;
}

.answer {
  padding: 14px 16px;
  border-radius: 6px 18px 18px 18px;
  border: 1px solid var(--border);
  background: rgba(255, 255, 255, 0.05);
  font-size: 0.92rem;
  line-height: 1.6;
}

.answer strong {
  color: #fff;
}

.result-card {
  display: grid;
  grid-template-columns: auto 1fr;
  gap: 4px 14px;
  align-items: center;
  padding: 14px 16px;
  border-radius: 14px;
  border: 1px solid rgba(52, 211, 153, 0.3);
  background: linear-gradient(135deg, rgba(52, 211, 153, 0.12), rgba(56, 189, 248, 0.06));
  animation: msg-in 0.5s var(--ease-out);
}

.result-card .big {
  grid-row: span 2;
  font-family: var(--font-display);
  font-size: 1.9rem;
  font-weight: 700;
  letter-spacing: -0.03em;
  color: #fff;
}

.result-card span {
  font-size: 0.8rem;
  color: var(--text-muted);
}

.result-card b {
  font-size: 0.92rem;
  color: var(--ok);
}

.chat__input {
  display: flex;
  align-items: center;
  gap: 12px;
  margin: 0 16px 16px;
  padding: 12px 12px 12px 18px;
  border-radius: 16px;
  border: 1px solid var(--border-strong);
  background: rgba(2, 6, 18, 0.55);
  font-size: 0.9rem;
  color: var(--text-dim);
}

.chat__input > span:first-child {
  flex: 1;
  min-width: 0;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.chat__input .send {
  display: grid;
  place-items: center;
  width: 36px;
  height: 36px;
  border-radius: 10px;
  color: #fff;
  background: var(--grad-button);
}

.chat__input .send .icon {
  width: 16px;
  height: 16px;
}

/* ---------- Process (horizontal pinned on desktop) ---------- */
.process {
  position: relative;
}

.process__pin {
  position: relative;
}

.process__track {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: clamp(16px, 2vw, 24px);
}

.step-card {
  position: relative;
  display: flex;
  flex-direction: column;
  min-height: 380px;
  padding: clamp(26px, 3vw, 36px);
}

.step-card__num {
  font-family: var(--font-display);
  font-size: 4.6rem;
  font-weight: 700;
  line-height: 1;
  letter-spacing: -0.06em;
  margin-bottom: 8px;
  background: linear-gradient(180deg, rgba(125, 211, 252, 0.55), rgba(37, 99, 235, 0.05));
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
  -webkit-text-fill-color: transparent;
}

.step-card .icon-tile {
  margin-top: 28px;
}

.step-card__time {
  display: inline-block;
  margin-top: auto;
  padding-top: 14px;
  font-family: var(--font-mono);
  font-size: 0.72rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--sky);
}

.process__bar {
  height: 2px;
  margin-top: 36px;
  border-radius: 2px;
  background: var(--border);
  overflow: hidden;
}

.process__bar i {
  display: block;
  height: 100%;
  transform-origin: left;
  transform: scaleX(var(--p, 0));
  background: var(--grad);
}

/* Desktop pinned horizontal scroll (enabled by JS with .is-pinned) */
@media (min-width: 1024px) {
  .process.is-pinned {
    height: var(--pin-h, 300vh);
  }
  .process.is-pinned .process__pin {
    position: sticky;
    top: 0;
    height: 100vh;
    display: flex;
    flex-direction: column;
    justify-content: center;
    overflow: hidden;
  }
  .process.is-pinned .process__track {
    display: flex;
    width: max-content;
    gap: 24px;
    will-change: transform;
  }
  .process.is-pinned .step-card {
    width: min(440px, 36vw);
    min-height: min(400px, 44vh);
    flex: none;
  }
  .process.is-pinned .section-head {
    margin-bottom: 48px;
  }
}

/* ---------- Big text marquee (industries) ---------- */
.big-marquee {
  padding-block: clamp(30px, 5vw, 56px);
  border-block: 1px solid var(--border);
  background: linear-gradient(90deg, rgba(37, 99, 235, 0.06), rgba(56, 189, 248, 0.04), rgba(37, 99, 235, 0.06));
}

.big-marquee .marquee {
  --speed: 55s;
}

.big-marquee .marquee + .marquee {
  margin-top: 10px;
}

.big-word {
  display: inline-flex;
  align-items: center;
  gap: clamp(32px, 5vw, 64px);
  font-family: var(--font-display);
  font-size: clamp(2.2rem, 1.2rem + 4vw, 4.8rem);
  font-weight: 600;
  letter-spacing: -0.04em;
  line-height: 1.1;
  white-space: nowrap;
  color: transparent;
  -webkit-text-stroke: 1px rgba(148, 178, 255, 0.35);
  transition: color 0.4s, -webkit-text-stroke-color 0.4s;
}

.big-word:hover {
  color: var(--ice);
  -webkit-text-stroke-color: transparent;
}

.big-word::after {
  content: '';
  width: 0.32em;
  height: 0.32em;
  border-radius: 50%;
  background: var(--grad);
  -webkit-text-stroke: 0;
}

.big-word--solid {
  color: var(--text);
  -webkit-text-stroke: 0;
}

/* ---------- Features (why) ---------- */
.feature {
  padding: 28px 4px 0;
  border-top: 1px solid var(--border);
}

.feature .icon {
  width: 28px;
  height: 28px;
  margin-bottom: 18px;
  color: var(--sky);
}

.feature h3 {
  font-size: 1.2rem;
  margin-bottom: 8px;
}

.feature p {
  color: var(--text-muted);
  margin: 0;
  font-size: 0.97rem;
}

/* ---------- CTA band ---------- */
.cta {
  position: relative;
  padding: clamp(48px, 7vw, 96px) clamp(24px, 5vw, 72px);
  border-radius: clamp(24px, 3vw, 40px);
  overflow: hidden;
  isolation: isolate;
  text-align: center;
  background:
    radial-gradient(120% 140% at 50% 0%, rgba(56, 189, 248, 0.35), transparent 55%),
    linear-gradient(135deg, #0b1e4f 0%, #1d4ed8 55%, #2563eb 100%);
  box-shadow: 0 40px 120px -40px rgba(37, 99, 235, 0.75), inset 0 1px 0 rgba(255, 255, 255, 0.2);
}

.cta::before {
  content: '';
  position: absolute;
  inset: 0;
  z-index: -1;
  background-image:
    linear-gradient(rgba(255, 255, 255, 0.07) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255, 255, 255, 0.07) 1px, transparent 1px);
  background-size: 48px 48px;
  -webkit-mask-image: radial-gradient(ellipse at center, #000 10%, transparent 70%);
  mask-image: radial-gradient(ellipse at center, #000 10%, transparent 70%);
}

.cta__waves {
  position: absolute;
  left: 0;
  bottom: 0;
  z-index: -1;
  width: 200%;
  max-width: none;
  height: 46%;
  opacity: 0.5;
  animation: waves 18s linear infinite;
}

.cta h2 {
  max-width: 820px;
  margin-inline: auto;
}

.cta p {
  max-width: 600px;
  margin: 0 auto 34px;
  font-size: var(--fs-lg);
  color: #fff;
}

.cta__actions {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 14px;
}

.cta .btn--ghost {
  border-color: rgba(255, 255, 255, 0.35);
  background: rgba(4, 7, 20, 0.28);
}

.cta .eyebrow {
  color: #fff;
  border-color: rgba(255, 255, 255, 0.35);
  background: rgba(4, 7, 20, 0.35);
}

.cta .btn--ghost:hover {
  background: rgba(255, 255, 255, 0.16);
  border-color: #fff;
}

/* ==========================================================================
   7. Inner pages
   ========================================================================== */
.page-hero {
  position: relative;
  padding-top: calc(var(--header-h) + clamp(64px, 9vw, 130px));
  padding-bottom: clamp(56px, 7vw, 100px);
  overflow: hidden;
  isolation: isolate;
  text-align: center;
}

.page-hero canvas {
  position: absolute;
  inset: 0;
  z-index: -1;
  width: 100%;
  height: 100%;
  -webkit-mask-image: radial-gradient(ellipse 80% 70% at 50% 40%, #000 30%, transparent 80%);
  mask-image: radial-gradient(ellipse 80% 70% at 50% 40%, #000 30%, transparent 80%);
}

.page-hero::before {
  content: '';
  position: absolute;
  left: 50%;
  top: -260px;
  width: min(1100px, 120vw);
  height: 640px;
  z-index: -2;
  transform: translateX(-50%);
  border-radius: 50%;
  background: radial-gradient(ellipse at center, rgba(37, 99, 235, 0.4), rgba(56, 189, 248, 0.08) 45%, transparent 70%);
  animation: breathe 9s ease-in-out infinite;
}

.page-hero h1 {
  max-width: 980px;
  margin: 0 auto 24px;
  font-size: var(--fs-page-h1);
  font-weight: 600;
  line-height: 1.03;
  letter-spacing: -0.045em;
}

.page-hero .lead {
  max-width: 680px;
  margin: 0 auto 36px;
}

.page-hero .hero__ctas {
  margin-top: 8px;
}

.breadcrumb {
  display: flex;
  justify-content: center;
  gap: 8px;
  margin-bottom: 18px;
  font-size: 0.84rem;
  color: var(--text-dim);
  list-style: none;
}

.breadcrumb a:hover {
  color: var(--text);
}

.breadcrumb li + li::before {
  content: '/';
  margin-right: 8px;
  opacity: 0.6;
}

/* Section sub-nav (services) */
.subnav {
  position: sticky;
  top: calc(var(--header-h) + 12px);
  z-index: 20;
  display: flex;
  justify-content: center;
  margin-bottom: clamp(40px, 6vw, 72px);
  transition: top 0.5s var(--ease-out);
}

.site-header.is-hidden ~ main .subnav {
  top: 12px;
}

.subnav .tabs__list a {
  position: relative;
  z-index: 1;
  padding: 10px 18px;
  border-radius: 999px;
  font-size: 0.88rem;
  font-weight: 600;
  color: var(--text-muted);
  white-space: nowrap;
  transition: color 0.25s, background-color 0.25s;
}

.subnav .tabs__list a:hover {
  color: var(--text);
}

.subnav .tabs__list a.is-active {
  color: #fff;
  background: rgba(59, 130, 246, 0.28);
}

/* Service rows */
.service-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  align-items: center;
  gap: clamp(32px, 6vw, 96px);
  padding-block: clamp(56px, 7vw, 96px);
  border-top: 1px solid var(--border);
}

.service-row:first-of-type {
  border-top: 0;
  padding-top: 0;
}

.service-row:nth-of-type(even) .service-row__visual {
  order: -1;
}

.service-row__num {
  display: block;
  margin-bottom: 12px;
  font-family: var(--font-mono);
  font-size: 0.8rem;
  letter-spacing: 0.14em;
  color: var(--sky);
}

.service-row h2 {
  font-size: clamp(1.9rem, 1.3rem + 2vw, 2.9rem);
}

.service-row .lead {
  margin-bottom: 26px;
}

.service-row .check-list {
  margin-bottom: 28px;
}

.service-row__visual {
  position: relative;
  min-height: 380px;
  border-radius: var(--radius-lg);
  border: 1px solid var(--border);
  background:
    radial-gradient(circle at 70% 20%, rgba(56, 189, 248, 0.16), transparent 50%),
    radial-gradient(circle at 20% 90%, rgba(37, 99, 235, 0.22), transparent 55%),
    linear-gradient(180deg, rgba(16, 27, 61, 0.6), rgba(6, 10, 26, 0.7));
  overflow: hidden;
  display: grid;
  place-items: center;
  padding: clamp(20px, 3vw, 36px);
}

.service-row__visual::before {
  content: '';
  position: absolute;
  inset: 0;
  background: radial-gradient(circle at 1px 1px, rgba(148, 178, 255, 0.12) 1px, transparent 0) 0 0 / 22px 22px;
  -webkit-mask-image: radial-gradient(ellipse at center, #000, transparent 75%);
  mask-image: radial-gradient(ellipse at center, #000, transparent 75%);
}

.service-row__visual > * {
  position: relative;
  width: 100%;
}

.mini-window {
  border-radius: 18px;
  border: 1px solid var(--border-strong);
  background: rgba(6, 11, 28, 0.85);
  box-shadow: var(--shadow-lg);
  overflow: hidden;
}

.mini-window__bar {
  display: flex;
  align-items: center;
  gap: 6px;
  padding: 10px 14px;
  border-bottom: 1px solid var(--border);
  font-family: var(--font-mono);
  font-size: 0.68rem;
  color: var(--text-dim);
}

.mini-window__bar i {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: rgba(125, 211, 252, 0.4);
}

.mini-window__bar span {
  margin-left: 8px;
}

.mini-window__body {
  padding: 16px;
}

/* code block visual */
.code {
  font-family: var(--font-mono);
  font-size: 0.78rem;
  line-height: 1.8;
  color: var(--text-muted);
  white-space: pre;
  overflow: hidden;
}

.code .k {
  color: #93c5fd;
}

.code .s {
  color: #7dd3fc;
}

.code .c {
  color: var(--text-dim);
}

.code .f {
  color: #fff;
}

/* Engagement models */
.model-card {
  display: flex;
  flex-direction: column;
}

.model-card__meta {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 18px;
}

.model-card .check-list {
  margin: 18px 0 26px;
  font-size: 0.93rem;
}

.model-card .btn {
  margin-top: auto;
}

.model-card--featured {
  border-color: rgba(125, 211, 252, 0.35);
  background: linear-gradient(180deg, rgba(29, 78, 216, 0.35) 0%, rgba(9, 15, 36, 0.6) 100%);
  box-shadow: var(--shadow-glow);
}

/* Tech stack */
.stack-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 14px;
}

.stack-group {
  padding: 22px;
  border-radius: var(--radius);
  border: 1px solid var(--border);
  background: rgba(14, 23, 54, 0.4);
}

.stack-group h3 {
  margin-bottom: 14px;
  font-family: var(--font-mono);
  font-size: 0.72rem;
  font-weight: 500;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--sky);
}

/* Products page */
.product-tabs {
  text-align: center;
}

.product-panel {
  display: grid;
  grid-template-columns: 0.9fr 1.1fr;
  gap: clamp(28px, 5vw, 72px);
  align-items: center;
  margin-top: clamp(40px, 5vw, 64px);
  text-align: left;
}

.product-panel h3 {
  font-size: clamp(1.8rem, 1.2rem + 1.8vw, 2.6rem);
  letter-spacing: -0.035em;
}

.product-panel .lead {
  margin-bottom: 26px;
}

.product-panel .check-list {
  margin-bottom: 30px;
}

.product-panel__actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
}

.mock {
  min-height: 420px;
}

.mock__body {
  padding: 20px;
}

/* Harbor search mock */
.search-bar {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 14px 16px;
  border-radius: 14px;
  border: 1px solid rgba(125, 211, 252, 0.35);
  background: rgba(2, 6, 18, 0.6);
  box-shadow: 0 0 0 4px rgba(56, 189, 248, 0.08);
  font-size: 0.92rem;
}

.search-bar .icon {
  color: var(--sky);
}

.search-bar span {
  min-height: 1.4em;
}

.citations {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 12px;
}

.citations .chip {
  font-family: var(--font-mono);
  font-size: 0.72rem;
}

.doc-list {
  display: grid;
  gap: 8px;
  margin-top: 16px;
}

.doc {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 10px 12px;
  border-radius: 12px;
  border: 1px solid var(--border);
  background: rgba(255, 255, 255, 0.025);
  font-size: 0.82rem;
  color: var(--text-muted);
}

.doc .icon {
  width: 18px;
  height: 18px;
  color: var(--ice);
}

.doc .score {
  margin-left: auto;
  font-family: var(--font-mono);
  font-size: 0.72rem;
  color: var(--sky);
}

.relevance {
  width: 60px;
  height: 4px;
  border-radius: 4px;
  background: rgba(255, 255, 255, 0.08);
  overflow: hidden;
}

.relevance i {
  display: block;
  height: 100%;
  width: var(--w);
  background: var(--grad);
}

/* Compass chart mock */
.chart-mock {
  position: relative;
  padding: 16px;
  border-radius: 14px;
  border: 1px solid var(--border);
  background: rgba(2, 6, 18, 0.5);
}

.chart-mock svg {
  width: 100%;
  height: auto;
}

.chart-mock .grid-line {
  stroke: rgba(148, 178, 255, 0.08);
}

.chart-mock .line {
  fill: none;
  stroke: url(#chart-line);
  stroke-width: 2.5;
  stroke-linecap: round;
  stroke-dasharray: 1;
  stroke-dashoffset: 1;
}

.is-drawn .chart-mock .line {
  animation: draw 2s var(--ease-out) forwards;
}

.chart-mock .forecast {
  fill: none;
  stroke: var(--ice);
  stroke-width: 2;
  stroke-dasharray: 5 6;
  opacity: 0;
}

.is-drawn .chart-mock .forecast {
  animation: fade-in 0.8s 1.8s forwards;
}

.chart-mock .band {
  fill: rgba(125, 211, 252, 0.1);
  opacity: 0;
}

.is-drawn .chart-mock .band {
  animation: fade-in 0.8s 1.8s forwards;
}

.chart-mock .area {
  fill: url(#chart-area);
  opacity: 0;
}

.is-drawn .chart-mock .area {
  animation: fade-in 1.2s 0.6s forwards;
}

.chart-legend {
  display: flex;
  gap: 18px;
  margin-top: 10px;
  font-size: 0.74rem;
  color: var(--text-dim);
}

.chart-legend span {
  display: inline-flex;
  align-items: center;
  gap: 6px;
}

.chart-legend i {
  width: 14px;
  height: 3px;
  border-radius: 2px;
  background: var(--sky);
}

.chart-legend i.dash {
  background: repeating-linear-gradient(90deg, var(--ice) 0 4px, transparent 4px 7px);
}

.insight {
  display: flex;
  gap: 12px;
  margin-top: 14px;
  padding: 14px;
  border-radius: 14px;
  border: 1px solid rgba(125, 211, 252, 0.25);
  background: linear-gradient(135deg, rgba(37, 99, 235, 0.2), rgba(56, 189, 248, 0.05));
  font-size: 0.86rem;
  color: var(--text-muted);
}

.insight .icon {
  color: var(--ice);
  margin-top: 2px;
}

.insight strong {
  color: #fff;
}

/* Beacon voice mock */
.voice {
  display: grid;
  gap: 16px;
}

.voice__call {
  display: flex;
  align-items: center;
  gap: 14px;
  padding: 14px;
  border-radius: 14px;
  border: 1px solid var(--border);
  background: rgba(255, 255, 255, 0.03);
}

.voice__avatar {
  position: relative;
  display: grid;
  place-items: center;
  width: 48px;
  height: 48px;
  border-radius: 50%;
  background: var(--grad-button);
  color: #fff;
}

.voice__avatar::after {
  content: '';
  position: absolute;
  inset: -6px;
  border-radius: 50%;
  border: 2px solid rgba(56, 189, 248, 0.5);
  animation: ripple 2s var(--ease-out) infinite;
}

.voice__call strong {
  display: block;
  font-size: 0.92rem;
}

.voice__call small {
  font-family: var(--font-mono);
  font-size: 0.72rem;
  color: var(--text-dim);
}

.voice__call .timer {
  margin-left: auto;
  font-family: var(--font-mono);
  font-size: 0.8rem;
  color: var(--ok);
}

.transcript {
  display: grid;
  gap: 10px;
}

.transcript p {
  margin: 0;
  padding: 10px 14px;
  border-radius: 12px;
  font-size: 0.84rem;
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid var(--border);
  color: var(--text-muted);
}

.transcript p b {
  display: block;
  margin-bottom: 2px;
  font-family: var(--font-mono);
  font-size: 0.66rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--sky);
}

.transcript p.ai {
  border-color: rgba(125, 211, 252, 0.25);
  background: rgba(37, 99, 235, 0.12);
}

/* Integrations orbit */
.orbit-wrap {
  display: grid;
  grid-template-columns: 1fr 1fr;
  align-items: center;
  gap: clamp(32px, 6vw, 80px);
}

.orbit {
  --size: min(560px, 94vw);
  position: relative;
  width: var(--size);
  height: var(--size);
  margin-inline: auto;
  overflow: hidden; /* rotating rings have square bounding boxes; keep them from widening the page */
}

.orbit__ring--outer {
  --inset: 11%;
  --inset-px: calc(var(--size) * 0.11);
  --dur: 60s;
}

.orbit__ring--inner {
  --inset: 28%;
  --inset-px: calc(var(--size) * 0.28);
  --dur: 45s;
}

.orbit__ring {
  position: absolute;
  inset: var(--inset);
  border-radius: 50%;
  border: 1px dashed rgba(125, 211, 252, 0.2);
  animation: spin var(--dur) linear infinite;
}

.orbit__ring--rev {
  animation-direction: reverse;
}

.orbit__item {
  position: absolute;
  top: 50%;
  left: 50%;
  width: 0;
  height: 0;
  transform: rotate(var(--a)) translateX(calc(var(--size) / 2 - var(--inset-px)));
}

.orbit__item span {
  position: absolute;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 7px 12px;
  border-radius: 999px;
  border: 1px solid var(--border-strong);
  background: rgba(10, 17, 42, 0.92);
  font-size: 0.76rem;
  font-weight: 600;
  white-space: nowrap;
  color: var(--text);
  transform: translate(-50%, -50%) rotate(calc(var(--a) * -1));
  box-shadow: 0 8px 24px -10px rgba(0, 0, 0, 0.8);
}

.orbit__ring .orbit__item span {
  animation: counter-spin var(--dur) linear infinite;
}

.orbit__ring--rev .orbit__item span {
  animation-direction: reverse;
}

.orbit__item span::before {
  content: '';
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--sky);
}

.orbit__core {
  position: absolute;
  inset: 39%;
  display: grid;
  place-items: center;
  border-radius: 28%;
  background: radial-gradient(circle at 30% 20%, #12245c, #050816);
  border: 1px solid rgba(125, 211, 252, 0.35);
  box-shadow: 0 0 80px -10px rgba(37, 99, 235, 0.9), inset 0 1px 0 rgba(255, 255, 255, 0.15);
}

.orbit__core img {
  width: 62%;
}

.orbit__core::after {
  content: '';
  position: absolute;
  inset: -14px;
  border-radius: 32%;
  border: 1px solid rgba(56, 189, 248, 0.35);
  animation: ripple 3s var(--ease-out) infinite;
}

/* Security grid */
.security-grid .card {
  padding: 26px;
}

.security-grid .icon-tile {
  width: 44px;
  height: 44px;
  margin-bottom: 16px;
}

.security-grid h3 {
  font-size: 1.05rem;
}

.security-grid p {
  font-size: 0.92rem;
}

/* Solutions page */
.filters {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 10px;
  margin-bottom: clamp(32px, 4vw, 48px);
}

.filter-btn {
  padding: 10px 18px;
  border-radius: 999px;
  border: 1px solid var(--border-strong);
  background: rgba(255, 255, 255, 0.03);
  font-size: 0.88rem;
  font-weight: 600;
  color: var(--text-muted);
  transition: all 0.3s var(--ease-out);
}

.filter-btn:hover {
  color: var(--text);
  border-color: rgba(125, 211, 252, 0.45);
}

.filter-btn[aria-pressed='true'] {
  color: #fff;
  border-color: transparent;
  background: var(--grad-button);
  box-shadow: 0 10px 26px -12px rgba(37, 99, 235, 0.9);
}

.usecase-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: clamp(16px, 2vw, 22px);
}

.usecase {
  display: flex;
  flex-direction: column;
  transition: opacity 0.45s var(--ease-out), transform 0.45s var(--ease-out), border-color 0.4s;
}

.usecase.is-hiding {
  opacity: 0;
  transform: scale(0.96);
}

.usecase[hidden] {
  display: none;
}

.usecase__tags {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  margin-bottom: 18px;
}

.usecase h3 {
  font-size: 1.25rem;
}

.usecase__impact {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 10px;
  margin-top: auto;
  padding-top: 22px;
  border-top: 1px dashed var(--border-strong);
}

.usecase__impact strong {
  display: block;
  font-family: var(--font-display);
  font-size: 1.55rem;
  font-weight: 600;
  letter-spacing: -0.03em;
  background: var(--grad-text);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
  -webkit-text-fill-color: transparent;
}

.usecase__impact span {
  font-size: 0.78rem;
  color: var(--text-dim);
}

.usecase .usecase__body {
  margin-bottom: 4px;
}

.usecase .usecase__body p {
  font-size: 0.94rem;
}

.usecase .usecase__body b {
  color: var(--text);
  font-weight: 600;
}

.note {
  margin-top: 28px;
  text-align: center;
  font-size: 0.84rem;
  color: var(--text-dim);
}

/* Pricing */
.billing-toggle {
  display: inline-flex;
  align-items: center;
  gap: 14px;
  margin-top: 8px;
  font-weight: 600;
  font-size: 0.95rem;
  color: var(--text-muted);
}

.billing-toggle .is-on {
  color: var(--text);
}

.switch {
  position: relative;
  width: 60px;
  height: 32px;
  border-radius: 999px;
  border: 1px solid var(--border-strong);
  background: rgba(10, 17, 42, 0.8);
  transition: background-color 0.3s;
}

.switch::after {
  content: '';
  position: absolute;
  top: 3px;
  left: 3px;
  width: 24px;
  height: 24px;
  border-radius: 50%;
  background: #fff;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.4);
  transition: transform 0.45s var(--ease-spring);
}

.switch[aria-checked='true'] {
  background: var(--grad);
  border-color: transparent;
}

.switch[aria-checked='true']::after {
  transform: translateX(28px);
}

.save-badge {
  padding: 4px 10px;
  border-radius: 999px;
  font-size: 0.74rem;
  font-weight: 700;
  color: var(--ok);
  background: rgba(52, 211, 153, 0.12);
  border: 1px solid rgba(52, 211, 153, 0.3);
}

.plans {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: clamp(16px, 2vw, 24px);
  align-items: stretch;
}

.plan {
  display: flex;
  flex-direction: column;
  padding: clamp(28px, 3vw, 38px);
}

.plan__name {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  margin-bottom: 8px;
}

.plan__name h3 {
  margin: 0;
  font-size: 1.35rem;
}

.plan__desc {
  min-height: 3.2em;
  font-size: 0.94rem;
}

.plan__price {
  display: flex;
  align-items: baseline;
  gap: 6px;
  margin: 18px 0 6px;
}

.plan__price .currency {
  font-family: var(--font-display);
  font-size: 1.4rem;
  font-weight: 600;
  color: var(--text-muted);
}

.plan__price .amount {
  font-family: var(--font-display);
  font-size: clamp(2.8rem, 2.2rem + 2vw, 3.6rem);
  font-weight: 600;
  line-height: 1;
  letter-spacing: -0.05em;
  font-variant-numeric: tabular-nums;
}

.plan__price .per {
  color: var(--text-dim);
  font-size: 0.92rem;
}

.plan__billed {
  min-height: 1.5em;
  font-size: 0.82rem;
  color: var(--text-dim);
}

.plan .btn {
  margin: 26px 0 28px;
}

.plan .check-list {
  font-size: 0.93rem;
}

.plan--featured {
  border-color: transparent;
  background:
    linear-gradient(180deg, rgba(25, 52, 140, 0.75), rgba(9, 15, 36, 0.92)) padding-box,
    var(--grad) border-box;
  border: 1px solid transparent;
  box-shadow: 0 40px 100px -40px rgba(37, 99, 235, 0.9);
  transform: translateY(-12px);
}

.plan--featured:hover {
  border-color: transparent;
}

.badge-popular {
  padding: 5px 12px;
  border-radius: 999px;
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: #fff;
  background: var(--grad-button);
}

.enterprise {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  margin-top: 24px;
  padding: clamp(26px, 3vw, 38px);
}

.enterprise h3 {
  margin-bottom: 6px;
}

.enterprise p {
  margin: 0;
  max-width: 640px;
}

.table-wrap {
  border-radius: var(--radius);
  border: 1px solid var(--border);
  background: rgba(10, 17, 42, 0.45);
  overflow-x: auto;
  -webkit-overflow-scrolling: touch;
}

.compare {
  width: 100%;
  min-width: 680px;
  border-collapse: collapse;
  font-size: 0.93rem;
}

.compare th,
.compare td {
  padding: 16px 22px;
  text-align: center;
  border-bottom: 1px solid var(--border);
}

.compare th:first-child,
.compare td:first-child {
  text-align: left;
  color: var(--text-muted);
}

.compare thead th {
  position: sticky;
  top: 0;
  font-family: var(--font-display);
  font-size: 1rem;
  font-weight: 600;
  color: var(--text);
  background: rgba(10, 17, 42, 0.95);
}

.compare thead th:first-child {
  color: var(--text-dim);
  font-family: var(--font-mono);
  font-size: 0.72rem;
  font-weight: 500;
  letter-spacing: 0.14em;
  text-transform: uppercase;
}

.compare tbody tr {
  transition: background-color 0.2s;
}

.compare th:first-child,
.compare td:first-child {
  position: sticky;
  left: 0;
  z-index: 1;
  background: #080e22;
}

.compare tbody tr:hover {
  background: rgba(59, 130, 246, 0.06);
}

.compare tr.group td {
  padding-top: 26px;
  font-family: var(--font-mono);
  font-size: 0.72rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--sky);
  background: transparent;
}

.compare .yes {
  display: inline-grid;
  place-items: center;
  width: 22px;
  height: 22px;
  border-radius: 50%;
  background:
    url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%237dd3fc' stroke-width='3' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M20 6 9 17l-5-5'/%3E%3C/svg%3E") center / 12px no-repeat,
    rgba(56, 189, 248, 0.14);
}

.compare .no {
  color: var(--text-dim);
}

.compare .col-featured {
  background: rgba(37, 99, 235, 0.08);
}

/* Services pricing (agency) */
.service-plans .card .price-line {
  font-family: var(--font-display);
  font-size: 1.1rem;
  font-weight: 600;
  color: var(--ice);
  margin-bottom: 14px;
}

/* About */
.manifesto {
  font-family: var(--font-display);
  font-size: clamp(1.7rem, 1rem + 2.8vw, 3.3rem);
  font-weight: 500;
  line-height: 1.25;
  letter-spacing: -0.03em;
  text-wrap: balance;
}

.manifesto .w {
  opacity: 0.14;
  transition: opacity 0.3s linear;
}

.manifesto .w.is-lit {
  opacity: 1;
}

.no-js .manifesto .w,
.reduce-motion .manifesto .w {
  opacity: 1;
}

.manifesto .accent {
  color: var(--ice);
}

.value-card {
  min-height: 280px;
  display: flex;
  flex-direction: column;
}

.value-card__num {
  padding-bottom: 28px;
  font-family: var(--font-mono);
  font-size: 0.8rem;
  color: var(--sky);
}

.split {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: clamp(32px, 6vw, 96px);
  align-items: center;
}

.compass-art {
  position: relative;
  aspect-ratio: 1;
  max-width: 480px;
  width: 100%;
  margin-inline: auto;
}

.compass-art svg {
  width: 100%;
  height: 100%;
  overflow: visible;
}

.compass-art .needle {
  transform-origin: 200px 200px;
  animation: needle 7s var(--ease-in-out) infinite;
}

.compass-art .dial {
  transform-origin: 200px 200px;
  animation: spin 90s linear infinite;
}

.principles {
  display: grid;
  gap: 0;
  counter-reset: p;
}

.principle {
  display: grid;
  grid-template-columns: 60px 1fr;
  gap: 18px;
  padding: 24px 0;
  border-top: 1px solid var(--border);
}

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

.principle .icon {
  width: 28px;
  height: 28px;
  color: var(--sky);
}

.principle h3 {
  font-size: 1.15rem;
  margin-bottom: 6px;
}

.principle p {
  margin: 0;
  color: var(--text-muted);
  font-size: 0.97rem;
}

/* Contact */
.contact-grid {
  display: grid;
  grid-template-columns: 1.3fr 0.9fr;
  gap: clamp(24px, 4vw, 48px);
  align-items: start;
}

.form-card {
  padding: clamp(24px, 4vw, 44px);
}

.form-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 20px;
}

.form-grid .full {
  grid-column: 1 / -1;
}

.form-foot {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  margin-top: 8px;
}

.form-foot small {
  max-width: 340px;
  color: var(--text-dim);
  font-size: 0.8rem;
}

.form-foot small a {
  text-decoration: underline;
  text-underline-offset: 2px;
}

.hp-field {
  position: absolute;
  left: -9999px;
  width: 1px;
  height: 1px;
  overflow: hidden;
}

.btn.is-loading {
  pointer-events: none;
  opacity: 0.85;
}

.btn.is-loading .icon {
  display: none;
}

.btn.is-loading::before {
  content: '';
  width: 16px;
  height: 16px;
  border-radius: 50%;
  border: 2px solid rgba(255, 255, 255, 0.35);
  border-top-color: #fff;
  animation: spin 0.7s linear infinite;
}

.form-success {
  display: none;
  text-align: center;
  padding: clamp(24px, 5vw, 56px) 8px;
}

.form-success.is-visible {
  display: block;
  animation: panel-in 0.7s var(--ease-out);
}

.form-success .success-icon {
  display: grid;
  place-items: center;
  width: 84px;
  height: 84px;
  margin: 0 auto 24px;
  border-radius: 50%;
  background: var(--grad-button);
  box-shadow: 0 20px 50px -16px rgba(37, 99, 235, 0.9);
  color: #fff;
}

.form-success .success-icon .icon {
  width: 38px;
  height: 38px;
  stroke-width: 2.5;
  stroke-dasharray: 30;
  stroke-dashoffset: 30;
  animation: check 0.7s 0.3s var(--ease-out) forwards;
}

.form-status {
  font-size: 0.86rem;
  color: #fca5a5;
}

.form-status:empty {
  display: none;
}

.info-stack {
  display: grid;
  gap: 16px;
}

.info-card {
  display: flex;
  gap: 16px;
  padding: 22px;
}

.info-card .icon-tile {
  width: 46px;
  height: 46px;
  margin: 0;
}

.info-card h3,
.next-steps-title {
  margin-bottom: 4px;
  font-size: 1rem;
}

.next-steps-title {
  margin-bottom: 14px;
}

.info-card p,
.info-card a {
  margin: 0;
  font-size: 0.93rem;
  color: var(--text-muted);
}

.info-card a:hover {
  color: #fff;
}

.next-steps {
  list-style: none;
  display: grid;
  gap: 18px;
  counter-reset: s;
  margin-top: 6px;
}

.next-steps li {
  display: grid;
  grid-template-columns: 34px 1fr;
  gap: 14px;
  font-size: 0.93rem;
  color: var(--text-muted);
}

.next-steps li::before {
  counter-increment: s;
  content: counter(s);
  display: grid;
  place-items: center;
  width: 34px;
  height: 34px;
  border-radius: 50%;
  font-family: var(--font-display);
  font-weight: 600;
  font-size: 0.9rem;
  color: var(--ice);
  border: 1px solid rgba(125, 211, 252, 0.3);
  background: rgba(56, 189, 248, 0.08);
}

.next-steps strong {
  display: block;
  color: var(--text);
  font-weight: 600;
}

/* Prose (legal) */
.prose {
  color: var(--text-muted);
  font-size: 1.02rem;
}

.prose h2 {
  margin-top: 2.2em;
  font-size: clamp(1.4rem, 1.1rem + 1vw, 1.9rem);
  color: var(--text);
  letter-spacing: -0.02em;
}

.prose h2:first-child {
  margin-top: 0;
}

.prose ul {
  padding-left: 1.2em;
  margin-bottom: 1em;
}

.prose li {
  margin-bottom: 0.4em;
}

.prose a {
  color: var(--ice);
  text-decoration: underline;
  text-underline-offset: 3px;
}

.prose .updated {
  font-family: var(--font-mono);
  font-size: 0.8rem;
  color: var(--text-dim);
}

.callout {
  padding: 18px 22px;
  margin-bottom: 2em;
  border-radius: var(--radius-sm);
  border: 1px solid rgba(251, 191, 36, 0.3);
  background: rgba(251, 191, 36, 0.06);
  color: #fde68a;
  font-size: 0.92rem;
}

/* Brand page */
.logo-concept {
  display: grid;
  grid-template-columns: 1fr 1.3fr;
  gap: clamp(24px, 4vw, 56px);
  align-items: center;
  padding: clamp(24px, 4vw, 48px);
}

.logo-concept + .logo-concept {
  margin-top: 24px;
}

.logo-concept__label {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 14px;
  font-family: var(--font-mono);
  font-size: 0.76rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--sky);
}

.logo-concept__label .badge-popular {
  font-family: var(--font-body);
  letter-spacing: 0.04em;
}

.logo-concept h3 {
  font-size: clamp(1.6rem, 1.2rem + 1.2vw, 2.2rem);
}

.logo-concept .chips {
  margin: 18px 0 24px;
}

.logo-tiles {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 12px;
}

.logo-tile {
  position: relative;
  display: grid;
  place-items: center;
  min-height: 150px;
  padding: 28px;
  border-radius: 18px;
  border: 1px solid var(--border);
  overflow: hidden;
}

.logo-tile img {
  max-height: 54px;
  width: auto;
}

.logo-tile--mark img {
  max-height: 96px;
}

.logo-tile--dark {
  background: radial-gradient(circle at 50% 0%, rgba(37, 99, 235, 0.25), transparent 70%), #050816;
}

.logo-tile--light {
  background: #fff;
}

.logo-tile--blue {
  background: linear-gradient(135deg, #1d4ed8, #2563eb);
}

.logo-tile--frost {
  background: linear-gradient(135deg, #e0f2fe, #bae6fd);
}

.logo-tile--wide {
  grid-column: 1 / -1;
  min-height: 170px;
}

.logo-tile--wide img {
  max-height: 64px;
}

.downloads {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.downloads a {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 8px 14px;
  border-radius: 999px;
  border: 1px solid var(--border-strong);
  font-size: 0.82rem;
  font-weight: 600;
  color: var(--text-muted);
  transition: all 0.25s;
}

.downloads a:hover {
  color: #fff;
  border-color: var(--sky);
  background: rgba(56, 189, 248, 0.1);
}

.downloads .icon {
  width: 15px;
  height: 15px;
  transform: rotate(90deg);
}

.swatches {
  display: grid;
  grid-template-columns: repeat(5, minmax(0, 1fr));
  gap: 12px;
}

.swatch {
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  min-height: 170px;
  padding: 16px;
  border-radius: 18px;
  border: 1px solid var(--border);
  background: var(--c);
  color: var(--fg, #fff);
  text-align: left;
  transition: transform 0.4s var(--ease-out), box-shadow 0.4s;
}

.swatch:hover {
  transform: translateY(-6px);
  box-shadow: 0 24px 50px -24px var(--c);
}

.swatch strong {
  font-family: var(--font-display);
  font-size: 1rem;
}

.swatch span {
  font-family: var(--font-mono);
  font-size: 0.76rem;
}

.swatch .copied {
  font-family: var(--font-body);
  font-size: 0.72rem;
  font-weight: 700;
  opacity: 0;
  transition: opacity 0.2s;
}

.swatch.is-copied .copied {
  opacity: 1;
}

.type-specimen {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 16px;
}

.type-specimen .card .aa {
  font-size: clamp(4rem, 3rem + 4vw, 7rem);
  line-height: 1;
  letter-spacing: -0.05em;
  margin-bottom: 18px;
  background: var(--grad-text);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
  -webkit-text-fill-color: transparent;
}

/* 404 */
.lost {
  min-height: 100vh;
  display: grid;
  place-items: center;
  padding: calc(var(--header-h) + 40px) var(--gutter) 80px;
  text-align: center;
}

.lost__code {
  font-family: var(--font-display);
  font-size: clamp(7rem, 4rem + 18vw, 16rem);
  font-weight: 700;
  line-height: 0.9;
  letter-spacing: -0.07em;
  background: var(--grad-text);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
  -webkit-text-fill-color: transparent;
}

.lost__boat {
  width: 120px;
  margin: 0 auto 10px;
  animation: bob 3.2s ease-in-out infinite;
}

.lost__sea {
  width: 260px;
  height: 20px;
  margin: -6px auto 28px;
  overflow: hidden;
}

.lost__sea svg {
  width: 200%;
  max-width: none;
  animation: waves 4s linear infinite;
}

/* ---------- Projects (pages generated from data/projects.mts) ---------- */
.project-hero__labels {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  align-items: center;
  gap: 10px 12px;
  margin-bottom: 22px;
}

.project-hero__labels .eyebrow {
  margin-bottom: 0;
}

.project-badge {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 7px 14px;
  border: 1px solid;
  border-radius: 999px;
  font-size: 0.82rem;
  font-weight: 600;
  line-height: 1.3;
}

.project-badge .icon {
  flex: none;
  width: 15px;
  height: 15px;
}

.project-badge--demo {
  color: #fde68a;
  border-color: rgba(251, 191, 36, 0.4);
  background: rgba(251, 191, 36, 0.08);
}

.project-badge--product {
  color: var(--ice);
  border-color: rgba(56, 189, 248, 0.35);
  background: rgba(56, 189, 248, 0.1);
}

.project-badge--case {
  color: #a7f3d0;
  border-color: rgba(52, 211, 153, 0.35);
  background: rgba(52, 211, 153, 0.08);
}

.project-badge--sm {
  padding: 5px 11px;
  font-size: 0.76rem;
}

.project-badge--sm .icon {
  width: 13px;
  height: 13px;
}

.chip--ok {
  color: #a7f3d0;
  background: rgba(52, 211, 153, 0.08);
  border-color: rgba(52, 211, 153, 0.3);
}

.chip--warn {
  color: #fde68a;
  background: rgba(251, 191, 36, 0.08);
  border-color: rgba(251, 191, 36, 0.3);
}

.project-chips {
  list-style: none;
}

.project-card__top {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  align-self: stretch;
  justify-content: space-between;
  gap: 12px;
  margin-bottom: 20px;
}

.project-card__top .icon-tile {
  margin-bottom: 0;
}

.card .project-card__category {
  margin-bottom: 6px;
  font-family: var(--font-mono);
  font-size: 0.72rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--sky);
}

.project-feature h3 {
  font-size: var(--fs-h3);
}

.card .project-feature__summary {
  max-width: 760px;
  font-size: var(--fs-md);
}

.project-feature .project-chips {
  margin: 4px 0 28px;
}

.project-feature__actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
}

.project-grid,
.project-more {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: clamp(16px, 2vw, 22px);
}

.project-card {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
}

.project-card .project-badge {
  margin-bottom: 18px;
}

.project-card h3 {
  font-size: var(--fs-h4);
}

.project-card .project-chips {
  margin: 4px 0 22px;
}

/* The title link covers the whole card, so the card is one big click target. */
.project-card__link::after {
  content: '';
  position: absolute;
  inset: 0;
  z-index: 1;
  border-radius: inherit;
}

.project-card__link:focus-visible {
  outline: none;
}

.project-card__link:focus-visible::after {
  outline: 2px solid var(--sky);
  outline-offset: -2px;
}

.project-card__more {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  margin-top: auto;
  font-weight: 600;
  color: var(--ice);
  transition: gap 0.35s var(--ease-out);
}

.project-card:hover .project-card__more {
  gap: 12px;
}

.project-card__more .icon {
  width: 1em;
  height: 1em;
}

.project-section--snug {
  padding-bottom: clamp(16px, 2vw, 24px);
}

.project-block h2 {
  font-size: var(--fs-h3);
  letter-spacing: -0.025em;
  line-height: 1.12;
}

.project-block .icon-tile {
  margin-bottom: 18px;
}

.project-stack {
  display: grid;
  gap: 18px;
  margin: 0;
}

.project-stack dt {
  margin-bottom: 8px;
  font-family: var(--font-mono);
  font-size: 0.72rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--text-dim);
}

.project-stack dd {
  margin: 0;
}

.project-links {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 12px;
  margin-top: 26px;
  padding-top: 22px;
  border-top: 1px solid var(--border);
}

.card .project-links__label {
  width: 100%;
  margin: 0;
  font-size: 0.86rem;
  font-weight: 600;
  color: var(--text);
}

.check-list--cols {
  grid-template-columns: repeat(2, minmax(0, 1fr));
  column-gap: 32px;
}

.project-more__title {
  margin-bottom: 24px;
  font-size: var(--fs-h3);
}

.project-mini {
  display: flex;
  align-items: flex-start;
  gap: 18px;
  padding: 22px;
}

.project-mini .icon-tile {
  flex: none;
  width: 46px;
  height: 46px;
  margin: 0;
}

.project-mini__body {
  min-width: 0;
}

.project-mini h3 {
  margin-bottom: 12px;
  font-size: 1.1rem;
}

/* ---------- Project demos (assets/js/project-demos.js) ---------- */
.js .pdemo__nojs,
.no-js .pdemo {
  display: none;
}

.section-head .pdemo-badge {
  margin-top: 18px;
  font-size: 1rem;
}

.pdemo__body {
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  gap: 20px;
  padding: clamp(16px, 3vw, 28px);
}

.pdemo__body .field {
  min-width: 0;
}

.pdemo .btn:disabled {
  opacity: 0.5;
  cursor: default;
  pointer-events: none;
}

.pdemo-textbtn {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 4px 8px;
  border-radius: 8px;
  font-size: 0.78rem;
  font-weight: 600;
  color: var(--text-muted);
  transition: color 0.25s;
}

.pdemo-textbtn:hover {
  color: var(--text);
}

.pdemo-textbtn .icon {
  width: 14px;
  height: 14px;
}

.pdemo-status {
  margin: 0;
  font-size: 0.9rem;
  color: var(--text-muted);
}

.pdemo-status:empty {
  display: none;
}

/* Chat */
.pdemo-chat__log {
  display: flex;
  flex-direction: column;
  gap: 12px;
  height: clamp(320px, 52vh, 440px);
  padding: 20px;
  overflow-y: auto;
  overscroll-behavior: contain;
}

.pdemo-chat__log:focus-visible {
  outline-offset: -3px;
}

.pdemo-msg {
  max-width: min(88%, 560px);
  padding: 12px 16px;
  font-size: 0.93rem;
  line-height: 1.55;
  animation: msg-in 0.45s var(--ease-out);
}

.pdemo-msg p {
  margin: 0;
}

.pdemo-msg--user {
  align-self: flex-end;
  border-radius: 18px 18px 6px 18px;
  background: var(--grad-button);
  color: #fff;
}

.pdemo-msg--bot {
  align-self: flex-start;
  border: 1px solid var(--border);
  border-radius: 18px 18px 18px 6px;
  background: rgba(22, 36, 80, 0.75);
}

.pdemo-msg__who {
  display: block;
  margin-bottom: 4px;
  font-size: 0.72rem;
  font-weight: 600;
  color: var(--text-dim);
}

.pdemo-msg__source {
  margin-top: 10px;
  padding-top: 8px;
  border-top: 1px solid var(--border);
  font-family: var(--font-mono);
  font-size: 0.72rem;
  color: var(--ice);
}

.pdemo-msg .btn {
  margin-top: 12px;
}

.pdemo-typing {
  display: inline-flex;
  align-self: flex-start;
  gap: 5px;
  padding: 14px 16px;
  border: 1px solid var(--border);
  border-radius: 18px 18px 18px 6px;
  background: rgba(22, 36, 80, 0.75);
}

.pdemo-typing i {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: var(--ice);
  opacity: 0.3;
  animation: pdemo-blink 1s infinite;
}

.pdemo-typing i:nth-child(2) {
  animation-delay: 0.15s;
}

.pdemo-typing i:nth-child(3) {
  animation-delay: 0.3s;
}

@keyframes pdemo-blink {
  50% {
    opacity: 1;
  }
}

.pdemo-chat__suggest {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 8px 12px;
  padding: 12px 16px;
  border-top: 1px solid var(--border);
}

.pdemo-chat__suggest-label {
  font-size: 0.78rem;
  font-weight: 600;
  color: var(--text-dim);
}

.pdemo-chips {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.pdemo-chip {
  padding: 7px 13px;
  border: 1px solid var(--border-strong);
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.03);
  font-size: 0.82rem;
  font-weight: 500;
  color: var(--text-muted);
  transition: color 0.25s, border-color 0.25s;
}

.pdemo-chip:hover {
  color: var(--text);
  border-color: rgba(125, 211, 252, 0.45);
}

.pdemo-chat__form {
  display: flex;
  gap: 10px;
  padding: 0 16px 16px;
}

.pdemo-chat__form .input {
  flex: 1;
  min-width: 0;
  padding: 12px 14px;
}

.pdemo-chat__form .btn {
  flex: none;
}

.pdemo-chat__status {
  margin-top: -6px;
  padding: 0 16px 14px;
  font-size: 0.82rem;
}

/* Orders report */
.pdemo-csv {
  min-height: 200px;
  font-family: var(--font-mono);
  font-size: 0.78rem;
  line-height: 1.6;
  white-space: pre;
  overflow-x: auto;
}

.pdemo-orders__controls,
.pdemo-leads__controls {
  display: flex;
  flex-wrap: wrap;
  align-items: flex-end;
  justify-content: space-between;
  gap: 16px 28px;
}

.pdemo-file input {
  max-width: 100%;
  font-size: 0.85rem;
  color: var(--text-muted);
}

.pdemo-file input::file-selector-button {
  margin-right: 12px;
  padding: 8px 14px;
  border: 1px solid var(--border-strong);
  border-radius: 10px;
  background: rgba(255, 255, 255, 0.04);
  font: inherit;
  font-weight: 600;
  color: var(--text);
  cursor: pointer;
}

.pdemo-file small {
  font-size: 0.78rem;
  color: var(--text-dim);
}

.pdemo__buttons {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

.pdemo-steps {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 10px;
  list-style: none;
}

.pdemo-steps li {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr);
  align-items: center;
  column-gap: 10px;
  padding: 12px 14px;
  border: 1px solid var(--border);
  border-radius: 14px;
  background: rgba(2, 6, 18, 0.4);
  color: var(--text-dim);
  transition: border-color 0.3s, color 0.3s;
}

.pdemo-steps__dot {
  grid-row: span 2;
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background: #1f2b4d;
}

.pdemo-steps__name {
  font-size: 0.86rem;
  font-weight: 600;
}

.pdemo-steps__result {
  grid-column: 2;
  min-height: 1.2em;
  font-family: var(--font-mono);
  font-size: 0.74rem;
}

.pdemo-steps li.is-active {
  border-color: rgba(125, 211, 252, 0.45);
  color: var(--text);
}

.pdemo-steps li.is-active .pdemo-steps__dot {
  background: var(--sky);
  box-shadow: 0 0 10px var(--sky);
}

.pdemo-steps li.is-done {
  color: var(--text-muted);
}

.pdemo-steps li.is-done .pdemo-steps__dot {
  background: var(--ok);
}

.pdemo-steps li.is-error .pdemo-steps__dot {
  background: #f87171;
}

.pdemo-report,
[data-pdemo-results] {
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  gap: 26px;
}

.pdemo-report[hidden],
[data-pdemo-results][hidden] {
  display: none;
}

.pdemo-report h3 {
  margin-bottom: 12px;
  font-size: var(--fs-h4);
}

.pdemo-totals {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(150px, 1fr));
  gap: 10px;
  margin: 0;
}

.pdemo-totals div {
  padding: 14px 16px;
  border: 1px solid var(--border);
  border-radius: 14px;
  background: rgba(10, 17, 42, 0.5);
}

.pdemo-totals dt {
  font-size: 0.76rem;
  color: var(--text-dim);
}

.pdemo-totals dd {
  margin: 4px 0 0;
  font-family: var(--font-display);
  font-size: 1.2rem;
  font-weight: 600;
  font-variant-numeric: tabular-nums;
}

.pdemo-totals .is-key dd {
  color: var(--ice);
}

.pdemo-table {
  width: 100%;
  min-width: 480px;
  border-collapse: collapse;
  font-size: 0.88rem;
  font-variant-numeric: tabular-nums;
}

.pdemo-table--wide {
  min-width: 760px;
}

.pdemo-table th,
.pdemo-table td {
  padding: 11px 14px;
  border-bottom: 1px solid var(--border);
  text-align: left;
  vertical-align: top;
}

.pdemo-table thead th {
  font-family: var(--font-mono);
  font-size: 0.7rem;
  font-weight: 500;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--text-dim);
}

.pdemo-table tbody th {
  font-weight: 600;
  color: var(--text);
}

.pdemo-table td {
  color: var(--text-muted);
}

.pdemo-table .num {
  text-align: right;
  white-space: nowrap;
}

.pdemo-table .neg {
  color: #fca5a5;
}

.pdemo-table tbody tr:last-child > * {
  border-bottom: 0;
}

.pdemo-flags {
  display: grid;
  gap: 8px;
  list-style: none;
  font-size: 0.88rem;
  color: var(--text-muted);
}

.pdemo-flags li {
  padding: 10px 14px;
  border: 1px solid rgba(251, 191, 36, 0.3);
  border-radius: 12px;
  background: rgba(251, 191, 36, 0.06);
}

.pdemo-flags strong {
  color: #fde68a;
}

.pdemo-assumptions {
  padding-left: 1.2em;
  font-size: 0.86rem;
  color: var(--text-muted);
}

.pdemo-small {
  margin: 0;
  font-size: 0.8rem;
  color: var(--text-dim);
}

/* Lead qualification */
.pdemo-range {
  flex: 1 1 260px;
  max-width: 360px;
}

.pdemo-range input {
  width: 100%;
  accent-color: var(--sky);
}

.pdemo-range output {
  font-family: var(--font-mono);
  color: var(--ice);
}

.pdemo-check {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding-bottom: 8px;
  font-size: 0.9rem;
  font-weight: 600;
  cursor: pointer;
}

.pdemo-check input {
  width: 18px;
  height: 18px;
  accent-color: var(--sky);
}

.pdemo-rules {
  border: 1px solid var(--border);
  border-radius: 14px;
  background: rgba(2, 6, 18, 0.4);
}

.pdemo-rules summary {
  padding: 12px 16px;
  font-size: 0.9rem;
  font-weight: 600;
  cursor: pointer;
}

.pdemo-rules dl {
  display: grid;
  gap: 8px;
  margin: 0;
  padding: 0 16px 14px;
  font-size: 0.86rem;
}

.pdemo-rules dl div {
  display: grid;
  grid-template-columns: 140px minmax(0, 1fr);
  gap: 12px;
}

.pdemo-rules dt {
  color: var(--text-dim);
}

.pdemo-rules dd {
  margin: 0;
  color: var(--text-muted);
}

.pdemo-rules b,
.pdemo-reasons b {
  color: var(--ice);
  font-weight: 600;
}

.pdemo-reasons {
  font-size: 0.8rem;
}

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

.pdemo-draft {
  display: grid;
  gap: 10px;
  padding: 18px;
  border: 1px solid var(--border);
  border-radius: 16px;
  background: rgba(10, 17, 42, 0.5);
}

.pdemo-draft h4 {
  margin: 0;
  font-size: 1rem;
}

.pdemo-draft .textarea {
  min-height: 230px;
  font-size: 0.86rem;
  line-height: 1.55;
}

.pdemo-draft__foot {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
}

/* Sample data, shown to everyone and the only content without JavaScript */
.pdemo-sample {
  margin-top: 20px;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  background: rgba(10, 17, 42, 0.35);
}

.pdemo-sample > summary {
  padding: 16px 20px;
  font-weight: 600;
  cursor: pointer;
}

.pdemo-sample > :not(summary) {
  margin: 0 20px 20px;
}

.pdemo-pre {
  padding: 16px;
  overflow-x: auto;
  border-radius: 12px;
  background: rgba(2, 6, 18, 0.6);
  font-family: var(--font-mono);
  font-size: 0.78rem;
  line-height: 1.6;
  color: var(--text-muted);
}

.pdemo-faq-list {
  display: grid;
  grid-template-columns: minmax(0, 220px) minmax(0, 1fr);
  gap: 4px 24px;
  font-size: 0.9rem;
}

.pdemo-faq-list dt {
  font-weight: 600;
}

.pdemo-faq-list dd {
  margin: 0 0 10px;
  color: var(--text-muted);
}

/* ==========================================================================
   8. Motion
   ========================================================================== */

/* Reveal on scroll, only hidden when JS is running */
.js [data-reveal] {
  opacity: 0;
  transform: translate3d(0, 34px, 0);
  transition:
    opacity 1s var(--ease-out),
    transform 1.1s var(--ease-out),
    filter 1s var(--ease-out);
  transition-delay: calc(var(--d, 0) * 1ms);
}

.js [data-reveal='blur'] {
  filter: blur(10px);
}

.js [data-reveal='left'] {
  transform: translate3d(-48px, 0, 0);
}

.js [data-reveal='right'] {
  transform: translate3d(48px, 0, 0);
}

.js [data-reveal='scale'] {
  transform: scale(0.92);
}

.js [data-reveal='fade'] {
  transform: none;
}

.js [data-reveal].is-in {
  opacity: 1;
  transform: none;
  filter: none;
}

/* Canvases fade in once their first frame is drawn */
.js [data-wave],
.js [data-constellation] {
  opacity: 0;
  transition: opacity 1.4s var(--ease-out);
}

.js [data-wave].is-ready,
.js [data-constellation].is-ready {
  opacity: 1;
}

/* Split headline words */
.split-ready .w {
  display: inline-block;
  overflow: clip;
  vertical-align: top;
  padding-bottom: 0.12em;
  margin-bottom: -0.12em;
}

.split-ready .w--el {
  overflow: visible;
}

.split-ready .w > span {
  display: inline-block;
  transform: translate3d(0, 105%, 0) rotate(4deg);
  transform-origin: 0 100%;
  opacity: 0;
  transition: transform 0.9s var(--ease-out), opacity 0.5s var(--ease-out);
  transition-delay: calc(var(--wi, 0) * 55ms);
}

.split-ready.is-in .w > span {
  transform: none;
  opacity: 1;
}

/* Hero content intro */
.js .hero__inner > *:not(.hero__title) {
  opacity: 0;
  transform: translateY(24px);
  animation: rise 1.1s var(--ease-out) forwards;
}

.js .hero__inner > .hero__badge {
  animation-delay: 0.05s;
}

.js .hero__inner > .hero__lead {
  animation-delay: 0.35s;
}

.js .hero__inner > .hero__ctas {
  animation-delay: 0.5s;
}

.js .hero__inner > .hero__meta {
  animation-delay: 0.65s;
}

/* Page enter */
@media (prefers-reduced-motion: no-preference) {
  @view-transition {
    navigation: auto;
  }

  ::view-transition-old(root) {
    animation: vt-out 0.35s var(--ease-in-out) both;
  }

  ::view-transition-new(root) {
    animation: vt-in 0.6s var(--ease-out) both;
  }
}

@keyframes vt-out {
  to {
    opacity: 0;
    transform: translateY(-12px);
  }
}

@keyframes vt-in {
  from {
    opacity: 0;
    transform: translateY(16px);
  }
}

@keyframes ping {
  0% {
    box-shadow: 0 0 0 0 rgba(56, 189, 248, 0.6);
  }
  70%,
  100% {
    box-shadow: 0 0 0 10px rgba(56, 189, 248, 0);
  }
}

@keyframes shimmer {
  to {
    background-position: -200% 0;
  }
}

@keyframes marquee {
  to {
    transform: translate3d(-100%, 0, 0);
  }
}

@keyframes drift-a {
  to {
    transform: translate3d(12vw, 6vw, 0) scale(1.15);
  }
}

@keyframes drift-b {
  to {
    transform: translate3d(-10vw, 8vw, 0) scale(0.9);
  }
}

@keyframes drift-c {
  to {
    transform: translate3d(-8vw, -4vw, 0) scale(1.25);
  }
}

@keyframes breathe {
  50% {
    opacity: 0.7;
    transform: translateX(-50%) scale(1.08);
  }
}

@keyframes draw {
  to {
    stroke-dashoffset: 0;
  }
}

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

@keyframes blink {
  50% {
    opacity: 0.35;
  }
}

@keyframes dash {
  to {
    stroke-dashoffset: -18;
  }
}

@keyframes log-in {
  from {
    opacity: 0;
    transform: translateY(8px);
  }
}

@keyframes msg-in {
  from {
    opacity: 0;
    transform: translateY(12px) scale(0.98);
  }
}

@keyframes typing {
  0%,
  60%,
  100% {
    transform: translateY(0);
    opacity: 0.5;
  }
  30% {
    transform: translateY(-5px);
    opacity: 1;
  }
}

@keyframes bar {
  0% {
    transform: scaleY(0.55);
  }
  100% {
    transform: scaleY(1);
  }
}

@keyframes wave {
  0%,
  100% {
    transform: scaleY(0.15);
  }
  50% {
    transform: scaleY(var(--s, 0.8));
  }
}

@keyframes step-glow {
  0%,
  100% {
    border-color: var(--border);
    background: rgba(255, 255, 255, 0.03);
  }
  12%,
  25% {
    border-color: rgba(125, 211, 252, 0.45);
    background: rgba(37, 99, 235, 0.16);
  }
}

@keyframes ripple {
  0% {
    transform: scale(0.85);
    opacity: 0.9;
  }
  100% {
    transform: scale(1.5);
    opacity: 0;
  }
}

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

@keyframes counter-spin {
  from {
    transform: translate(-50%, -50%) rotate(calc(var(--a) * -1));
  }
  to {
    transform: translate(-50%, -50%) rotate(calc(var(--a) * -1 - 360deg));
  }
}

@keyframes panel-in {
  from {
    opacity: 0;
    transform: translateY(18px);
  }
}

@keyframes fade-in {
  to {
    opacity: 1;
  }
}

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

@keyframes needle {
  0%,
  100% {
    transform: rotate(-18deg);
  }
  40% {
    transform: rotate(24deg);
  }
  70% {
    transform: rotate(8deg);
  }
}

@keyframes bob {
  0%,
  100% {
    transform: translateY(0) rotate(-3deg);
  }
  50% {
    transform: translateY(-12px) rotate(3deg);
  }
}

@keyframes check {
  to {
    stroke-dashoffset: 0;
  }
}

.is-paused,
.is-paused *,
.is-paused *::before,
.is-paused *::after {
  animation-play-state: paused !important;
}

/* ==========================================================================
   9. Utilities
   ========================================================================== */
.center {
  text-align: center;
}

.mt-0 {
  margin-top: 0;
}

.mt-lg {
  margin-top: clamp(40px, 5vw, 64px);
}

.mb-0 {
  margin-bottom: 0;
}

.hide-sm {
  display: initial;
}

/* ==========================================================================
   10. Responsive
   ========================================================================== */
@media (max-width: 1100px) {
  .footer-grid {
    grid-template-columns: 1.2fr repeat(2, 1fr);
  }
  .footer-brand {
    grid-column: 1 / -1;
  }
  .bento__a {
    grid-column: span 6;
    grid-row: span 1;
  }
  .bento__b {
    grid-column: span 3;
  }
  .bento__c {
    grid-column: span 3;
  }
  .bento__d,
  .bento__e {
    grid-column: span 3;
  }
  .grid-4,
  .stack-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
  .swatches {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }
}

@media (max-width: 1023px) {
  .process__track {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
  .process__bar {
    display: none;
  }
  .step-card {
    min-height: 320px;
  }
}

@media (max-width: 960px) {
  :root {
    --header-h: 66px;
  }
  .nav,
  .header-actions .btn {
    display: none;
  }
  .menu-toggle {
    display: block;
  }
  .grid-3,
  .usecase-grid,
  .plans {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
  .plan--featured {
    transform: none;
  }
  .stats {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
  .stat:nth-child(3) {
    border-left: 0;
  }
  .stat:nth-child(n + 3) {
    border-top: 1px solid var(--border);
  }
  .demo,
  .service-row,
  .product-panel,
  .orbit-wrap,
  .split,
  .contact-grid,
  .logo-concept,
  .strategy-row {
    grid-template-columns: 1fr;
  }
  .service-row:nth-of-type(even) .service-row__visual {
    order: 0;
  }
  .console__body {
    grid-template-columns: minmax(0, 1fr);
  }
  .console__side {
    display: none;
  }
  .chat {
    min-height: 480px;
  }
  .subnav {
    justify-content: flex-start;
  }
  .subnav .tabs__list {
    max-width: 100%;
  }
}

@media (max-width: 700px) {
  .grid-2,
  .grid-3,
  .grid-4,
  .usecase-grid,
  .plans,
  .stack-grid,
  .type-specimen,
  .process__track {
    grid-template-columns: 1fr;
  }
  .bento {
    grid-template-columns: 1fr;
  }
  .bento > * {
    grid-column: auto !important;
    grid-row: auto !important;
  }
  .footer-grid {
    grid-template-columns: 1fr 1fr;
    gap: 36px 24px;
  }
  .kpis {
    grid-template-columns: 1fr 1fr;
  }
  .kpis .kpi:nth-child(3) {
    display: none;
  }
  .form-grid {
    grid-template-columns: 1fr;
  }
  .roadmap {
    grid-template-columns: 1fr 1fr;
  }
  .logo-tiles {
    grid-template-columns: 1fr;
  }
  .swatches {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
  .enterprise {
    flex-direction: column;
    align-items: flex-start;
  }
  .hide-sm {
    display: none;
  }
  .hero__ctas .btn {
    flex: 1 1 100%;
  }
  .flow {
    padding: 14px 8px;
  }
  /* Bigger, simpler flow labels so the scaled-down diagram stays legible */
  .flow .node circle,
  .flow .node .sub {
    display: none;
  }
  .flow .node text {
    font-size: 19px;
    transform: translate(-12px, 9px);
  }
  .console__head small {
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
  }
  .console__title {
    min-width: 0;
  }
  .console__main {
    padding: 12px;
  }
  .log {
    font-size: 0.68rem;
  }
  .back-to-top {
    right: 14px;
    bottom: 14px;
  }
}

@media (max-width: 520px) {
  .orbit__item span {
    padding: 5px 9px;
    font-size: 0.68rem;
  }
  .orbit__ring--outer {
    --inset: 16%;
    --inset-px: calc(var(--size) * 0.16);
  }
  .orbit__ring--inner {
    --inset: 31%;
    --inset-px: calc(var(--size) * 0.31);
  }
  .orbit__core {
    inset: 40%;
  }
  .tabs__tab {
    padding: 10px 13px;
    font-size: 0.86rem;
  }
  .tabs__tab .icon {
    display: none;
  }
}

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

@media (max-width: 420px) {
  .stats {
    grid-template-columns: 1fr;
  }
  .stat + .stat {
    border-left: 0;
    border-top: 1px solid var(--border);
  }
}

/* Single column: side reveals rise instead of sliding in, so they never widen the page */
@media (max-width: 960px) {
  .js [data-reveal='left'],
  .js [data-reveal='right'] {
    transform: translate3d(0, 34px, 0);
  }
}

/* Projects pages */
@media (max-width: 960px) {
  .project-grid,
  .project-more,
  .pdemo-steps {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
  .pdemo-shortlist {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 700px) {
  .project-grid,
  .project-more,
  .check-list--cols,
  .pdemo-faq-list {
    grid-template-columns: 1fr;
  }
  .pdemo-rules dl div {
    grid-template-columns: 1fr;
    gap: 2px;
  }
}

@media (max-width: 420px) {
  .pdemo-steps {
    grid-template-columns: 1fr;
  }
  .pdemo-chat__form {
    flex-wrap: wrap;
  }
  .pdemo-chat__form .btn {
    width: 100%;
  }
}

/* Reduced motion: keep it calm, keep it usable */
@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    animation-duration: 0.001ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.001ms !important;
    scroll-behavior: auto !important;
  }
  .js [data-reveal],
  .split-ready .w > span {
    opacity: 1;
    transform: none;
    filter: none;
  }
  .marquee__track {
    animation: none;
  }
  .console {
    transform: none;
  }
}

@media print {
  .site-header,
  .site-footer,
  .back-to-top,
  .scroll-progress,
  canvas {
    display: none !important;
  }
  body {
    background: #fff;
    color: #000;
  }
}
