/* ---------- Tokens ---------- */
:root {
  --bg: #07060c;
  --bg-raised: #0d0b16;
  --card: rgba(255, 255, 255, .028);
  --card-hover: rgba(255, 255, 255, .045);
  --border: rgba(255, 255, 255, .08);
  --border-strong: rgba(255, 255, 255, .14);
  --text: #f4f2ff;
  --muted: #a6a1bd;
  --subtle: #77718f;
  --brand: #7c5cff;
  --brand-deep: #673de6;
  --brand-soft: #b7a5ff;
  --brand-tint: rgba(124, 92, 255, .12);
  --glow: rgba(124, 92, 255, .45);
  --radius-xl: 28px;
  --radius-lg: 20px;
  --radius: 14px;
  --radius-sm: 10px;
  --container: 1200px;
  --gutter: 24px;
  --header-h: 72px;
  --font-display: "Space Grotesk", "Inter", system-ui, sans-serif;
  --font-body: "Inter", system-ui, -apple-system, "Segoe UI", sans-serif;
  --ease: cubic-bezier(.2, .7, .2, 1);
  color-scheme: dark;
}

/* ---------- Base ---------- */
*, *::before, *::after { box-sizing: border-box; }
[hidden] { display: none !important; } /* never let a display rule override the hidden attribute */
html { scroll-behavior: smooth; scroll-padding-top: calc(var(--header-h) + 16px); -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font-family: var(--font-body);
  font-size: 16px;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  overflow-x: hidden;
}
h1, h2, h3 { margin: 0; font-family: var(--font-display); font-weight: 600; color: var(--text); text-wrap: balance; }
h1 { font-size: clamp(42px, 5.6vw, 72px); line-height: 1.02; letter-spacing: -.04em; }
h2 { font-size: clamp(32px, 3.8vw, 50px); line-height: 1.08; letter-spacing: -.035em; }
h3 { font-size: 19px; line-height: 1.3; letter-spacing: -.015em; }
p { margin: 0; text-wrap: pretty; }
a { color: inherit; text-decoration: none; }
button, input, select, textarea { font: inherit; color: inherit; }
button { cursor: pointer; }
img, video, svg { display: block; max-width: 100%; }
:focus-visible { outline: 2px solid var(--brand-soft); outline-offset: 3px; border-radius: 6px; }
::selection { background: rgba(124, 92, 255, .4); }

.container { width: 100%; max-width: calc(var(--container) + var(--gutter) * 2); margin-inline: auto; padding-inline: var(--gutter); }
.sr-only { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0; }
.skip { position: absolute; left: 16px; top: -60px; z-index: 100; background: var(--brand); color: #fff; padding: 10px 16px; border-radius: 8px; font-weight: 600; }
.skip:focus { top: 12px; }
.sprite { position: absolute; width: 0; height: 0; overflow: hidden; }
.hp { position: absolute; left: -10000px; width: 1px; height: 1px; overflow: hidden; }
.ico { width: 18px; height: 18px; flex: none; fill: none; stroke: currentColor; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; }

/* ---------- Surfaces ---------- */
.card {
  position: relative;
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
}
.glass {
  background: rgba(16, 13, 28, .66);
  -webkit-backdrop-filter: blur(20px) saturate(140%);
  backdrop-filter: blur(20px) saturate(140%);
}
/* Gradient hairline border that works on translucent surfaces */
.gborder { position: relative; border: 0; }
.gborder::before {
  content: ""; position: absolute; inset: 0; border-radius: inherit; padding: 1px; pointer-events: none;
  background: linear-gradient(140deg, rgba(183, 165, 255, .55), rgba(255, 255, 255, .07) 38%, rgba(255, 255, 255, .05) 62%, rgba(124, 92, 255, .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);
}
.grid-lines {
  position: absolute; inset: 0; pointer-events: none;
  background-image:
    linear-gradient(rgba(255, 255, 255, .045) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255, 255, 255, .045) 1px, transparent 1px);
  background-size: 64px 64px;
  -webkit-mask-image: radial-gradient(ellipse 70% 60% at 50% 30%, #000 20%, transparent 75%);
  mask-image: radial-gradient(ellipse 70% 60% at 50% 30%, #000 20%, transparent 75%);
}

/* ---------- Badges & pills ---------- */
.badge {
  display: inline-flex; align-items: center; gap: 8px;
  padding: 6px 14px 6px 12px;
  border-radius: 999px;
  border: 1px solid rgba(183, 165, 255, .22);
  background: rgba(124, 92, 255, .1);
  color: var(--brand-soft);
  font-size: 13px; font-weight: 500; line-height: 1.4;
}
.badge-dot, .live-dot {
  width: 7px; height: 7px; border-radius: 50%;
  background: var(--brand-soft); box-shadow: 0 0 0 3px rgba(183, 165, 255, .18);
}
.pill {
  display: inline-flex; align-items: center;
  padding: 3px 10px; border-radius: 999px;
  background: var(--brand-tint); color: var(--brand-soft);
  font-size: 12px; font-weight: 600; letter-spacing: .01em;
}

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  height: 44px; padding: 0 20px;
  border-radius: 12px; border: 1px solid transparent;
  font-size: 15px; font-weight: 600; line-height: 1; white-space: nowrap;
  transition: transform .2s var(--ease), box-shadow .2s var(--ease), background-color .2s var(--ease), border-color .2s var(--ease);
}
.btn .ico { width: 16px; height: 16px; transition: transform .2s var(--ease); }
.btn:hover .ico { transform: translateX(3px); }
.btn-primary {
  color: #fff;
  background: linear-gradient(180deg, #8a6bff 0%, #6a3ff0 100%);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, .25), 0 0 0 1px rgba(124, 92, 255, .55), 0 10px 30px -10px var(--glow);
}
.btn-primary:hover { transform: translateY(-1px); box-shadow: inset 0 1px 0 rgba(255, 255, 255, .3), 0 0 0 1px rgba(150, 125, 255, .8), 0 16px 40px -12px rgba(124, 92, 255, .7); }
.btn-ghost { color: var(--text); background: rgba(255, 255, 255, .04); border-color: var(--border-strong); }
.btn-ghost:hover { background: rgba(255, 255, 255, .08); border-color: rgba(255, 255, 255, .24); }
.btn-light { color: #140f2b; background: #fff; box-shadow: 0 10px 30px -10px rgba(255, 255, 255, .35); }
.btn-light:hover { transform: translateY(-1px); background: #efeaff; }
.btn-sm { height: 38px; padding: 0 16px; font-size: 14px; border-radius: 10px; }
.btn-lg { height: 52px; padding: 0 26px; font-size: 16px; border-radius: 14px; }
.btn-block { width: 100%; }

/* ---------- Header ---------- */
.site-header {
  position: fixed; inset: 0 0 auto; z-index: 50;
  height: var(--header-h);
  border-bottom: 1px solid transparent;
  transition: background-color .3s var(--ease), border-color .3s var(--ease), backdrop-filter .3s var(--ease);
}
.site-header.scrolled {
  background: rgba(7, 6, 12, .72);
  -webkit-backdrop-filter: blur(18px) saturate(150%);
  backdrop-filter: blur(18px) saturate(150%);
  border-bottom-color: var(--border);
}
.header-row { height: 100%; display: flex; align-items: center; gap: 40px; }
.brand { display: inline-flex; align-items: center; flex: none; color: #f8f9fa; }
.logo { display: block; height: 28px; width: auto; aspect-ratio: 880 / 171; }
.nav { display: flex; align-items: center; gap: 4px; margin-inline: auto; }
.nav a { padding: 8px 14px; border-radius: 10px; color: var(--muted); font-size: 14.5px; font-weight: 500; transition: color .2s, background-color .2s; }
.nav a:hover { color: var(--text); background: rgba(255, 255, 255, .05); }
.header-actions { display: flex; align-items: center; gap: 10px; }
.menu-toggle {
  display: none; width: 40px; height: 40px; border-radius: 10px;
  border: 1px solid var(--border-strong); background: rgba(255, 255, 255, .04);
  flex-direction: column; align-items: center; justify-content: center; gap: 5px;
}
.menu-toggle span { width: 16px; height: 1.5px; background: var(--text); border-radius: 2px; transition: transform .25s var(--ease); }
.menu-toggle[aria-expanded="true"] span:first-child { transform: translateY(3.25px) rotate(45deg); }
.menu-toggle[aria-expanded="true"] span:last-child { transform: translateY(-3.25px) rotate(-45deg); }

/* ---------- Hero ---------- */
.hero { position: relative; padding: calc(var(--header-h) + 72px) 0 0; overflow: hidden; isolation: isolate; }
.hero-bg { position: absolute; inset: 0; z-index: -1; }
.hero-bg img {
  width: 100%; height: 100%; object-fit: cover; object-position: center 40%;
  opacity: .32; filter: saturate(115%);
  -webkit-mask-image: linear-gradient(180deg, #000 0%, rgba(0, 0, 0, .7) 55%, transparent 100%);
  mask-image: linear-gradient(180deg, #000 0%, rgba(0, 0, 0, .7) 55%, transparent 100%);
}
.hero-glow {
  position: absolute; inset: 0;
  background:
    radial-gradient(60% 50% at 18% 30%, rgba(7, 6, 12, .92), transparent 70%),
    radial-gradient(45% 55% at 82% 38%, rgba(124, 92, 255, .28), transparent 70%),
    linear-gradient(180deg, rgba(7, 6, 12, .55), rgba(7, 6, 12, .2) 40%, var(--bg) 100%);
}
.hero-grid { display: grid; grid-template-columns: minmax(0, 1.08fr) minmax(0, .92fr); gap: 56px; align-items: center; padding-bottom: 88px; }
.hero-copy .badge { margin-bottom: 24px; }
.hero h1 {
  max-width: 14ch;
  background: linear-gradient(180deg, #ffffff 30%, #cbbfff 100%);
  -webkit-background-clip: text; background-clip: text; color: transparent;
}
.hero-lede { margin-top: 24px; max-width: 34em; color: #c9c4dc; font-size: 18px; line-height: 1.65; }
.hero-ctas { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 36px; }
.trust { list-style: none; margin: 40px 0 0; padding: 24px 0 0; border-top: 1px solid var(--border); display: flex; flex-wrap: wrap; gap: 12px 28px; color: var(--muted); font-size: 14px; }
.trust li { display: inline-flex; align-items: center; gap: 8px; }
.trust .ico { color: var(--brand-soft); width: 17px; height: 17px; }

/* ---------- Request builder ---------- */
.builder { border-radius: var(--radius-xl); padding: 28px; box-shadow: 0 40px 100px -40px rgba(124, 92, 255, .55), 0 0 0 1px rgba(0, 0, 0, .2); }
.builder-head { display: flex; justify-content: space-between; align-items: flex-start; gap: 16px; margin-bottom: 22px; }
.builder h2 { font-size: 22px; letter-spacing: -.025em; }
.builder-head p { margin-top: 4px; font-size: 14px; color: var(--muted); }
.builder-status {
  display: inline-flex; align-items: center; gap: 8px; flex: none;
  padding: 5px 11px; border-radius: 999px; border: 1px solid var(--border);
  background: rgba(255, 255, 255, .03); font-size: 12.5px; color: var(--muted);
}
.builder fieldset { border: 0; margin: 0 0 16px; padding: 0; min-width: 0; }
.builder legend { padding: 0; margin-bottom: 8px; font-size: 12.5px; font-weight: 500; color: var(--subtle); letter-spacing: .01em; }
.choices { display: flex; flex-wrap: wrap; gap: 8px; }
.choices-2 { display: grid; grid-template-columns: 1fr 1fr; }
.choices label { position: relative; display: block; }
.choices input { position: absolute; inset: 0; width: 100%; height: 100%; margin: 0; opacity: 0; cursor: pointer; z-index: 1; }
.choices span {
  display: flex; flex-direction: column; justify-content: center;
  min-height: 38px; padding: 8px 15px;
  border-radius: 10px; border: 1px solid var(--border);
  background: rgba(255, 255, 255, .03);
  color: #d7d2ea; font-size: 14px; font-weight: 500; line-height: 1.3;
  transition: border-color .2s var(--ease), background-color .2s var(--ease), color .2s var(--ease), box-shadow .2s var(--ease);
}
.choices-2 span { padding: 12px 14px; border-radius: 12px; }
.choices span b { font-weight: 600; font-size: 14.5px; }
.choices span small { margin-top: 2px; font-size: 12.5px; color: var(--subtle); font-weight: 400; }
.choices label:hover span { border-color: var(--border-strong); background: rgba(255, 255, 255, .055); }
.choices input:checked + span {
  color: #fff; border-color: rgba(150, 125, 255, .85);
  background: linear-gradient(180deg, rgba(124, 92, 255, .28), rgba(124, 92, 255, .14));
  box-shadow: 0 0 0 3px rgba(124, 92, 255, .14), inset 0 1px 0 rgba(255, 255, 255, .08);
}
.choices input:checked + span small { color: var(--brand-soft); }
.choices input:focus-visible + span { outline: 2px solid var(--brand-soft); outline-offset: 2px; }
.summary {
  display: flex; gap: 12px; align-items: flex-start;
  margin: 22px 0 16px; padding: 14px 16px;
  border-radius: 14px; border: 1px solid rgba(124, 92, 255, .25);
  background: linear-gradient(180deg, rgba(124, 92, 255, .12), rgba(124, 92, 255, .05));
}
.summary .ico { color: var(--brand-soft); margin-top: 2px; }
.summary p { font-size: 15px; line-height: 1.5; color: #e6e1f7; min-height: 3em; }
.builder-note { margin-top: 12px; text-align: center; font-size: 13px; color: var(--subtle); }

/* ---------- Marquee ---------- */
.marquee {
  position: relative; overflow: hidden;
  border-block: 1px solid var(--border);
  background: rgba(255, 255, 255, .015);
  -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; width: max-content; animation: marquee 48s linear infinite; }
.marquee span {
  display: inline-flex; align-items: center; gap: 48px; padding: 22px 0 22px 48px;
  font-family: var(--font-display); font-size: 17px; font-weight: 500; color: #8f89a8; letter-spacing: -.01em; white-space: nowrap;
}
.marquee span::after { content: ""; width: 6px; height: 6px; border-radius: 2px; transform: rotate(45deg); background: rgba(124, 92, 255, .6); }
@keyframes marquee { to { transform: translateX(-50%); } }

/* ---------- Sections ---------- */
.section { position: relative; padding: 100px 0; }
.section-head { max-width: 720px; margin: 0 auto 64px; text-align: center; display: flex; flex-direction: column; align-items: center; gap: 18px; }
.section-head p { color: var(--muted); font-size: 18px; max-width: 36em; }
.lead { color: var(--muted); font-size: 18px; line-height: 1.65; }

/* Services */
#services::before {
  content: ""; position: absolute; inset: 0 0 auto; height: 700px; pointer-events: none;
  background: radial-gradient(50% 60% at 50% 0%, rgba(124, 92, 255, .14), transparent 70%);
}
.services { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 24px; }
.service { border-radius: var(--radius-xl); background: linear-gradient(180deg, rgba(255, 255, 255, .045), rgba(255, 255, 255, .015)); padding: 10px; display: flex; flex-direction: column; transition: transform .35s var(--ease), box-shadow .35s var(--ease); }
.service:hover { transform: translateY(-4px); box-shadow: 0 30px 80px -40px rgba(124, 92, 255, .6); }
.film { margin: 0; border-radius: 20px; overflow: hidden; background: #05040a; border: 1px solid var(--border); }
.film video { width: 100%; height: auto; aspect-ratio: 16 / 10; object-fit: cover; }
.film figcaption {
  display: flex; justify-content: space-between; align-items: center; gap: 12px;
  padding: 10px 14px; border-top: 1px solid var(--border);
  font-size: 12.5px; color: var(--subtle);
}
.film-toggle {
  border: 1px solid var(--border); background: rgba(255, 255, 255, .04);
  border-radius: 999px; padding: 3px 12px; font-size: 12px; color: var(--muted);
}
.film-toggle:hover { color: var(--text); border-color: var(--border-strong); }
.service-body { padding: 26px 22px 22px; display: flex; flex-direction: column; flex: 1; }
.service-title { display: flex; align-items: center; gap: 12px; margin-bottom: 14px; }
.service-title h3 { font-size: 24px; letter-spacing: -.03em; }
.service-title .pill { margin-left: auto; }
.service-icon, .feature-icon, .tile-icon {
  display: grid; place-items: center; flex: none;
  width: 40px; height: 40px; border-radius: 12px;
  background: linear-gradient(180deg, rgba(124, 92, 255, .22), rgba(124, 92, 255, .08));
  border: 1px solid rgba(124, 92, 255, .3); color: var(--brand-soft);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, .08);
}
.service-body > p { color: var(--muted); }
.checks { list-style: none; margin: 22px 0 28px; padding: 0; display: grid; gap: 12px; flex: 1; align-content: start; }
.checks li { display: flex; gap: 12px; align-items: flex-start; font-size: 15px; color: #dcd7ee; }
.checks .ico {
  width: 20px; height: 20px; padding: 3px; margin-top: 1px; border-radius: 50%;
  background: rgba(124, 92, 255, .18); color: var(--brand-soft); stroke-width: 2.6;
}

/* Compare */
.compare { margin-top: 24px; border-radius: var(--radius-xl); padding: 32px; background: rgba(255, 255, 255, .022); }
.compare-head { display: flex; justify-content: space-between; align-items: baseline; gap: 24px; flex-wrap: wrap; margin-bottom: 20px; }
.compare-head h3 { font-size: 22px; letter-spacing: -.025em; }
.compare-head p { color: var(--muted); font-size: 15px; }
.compare-scroll { overflow-x: auto; border-radius: var(--radius); border: 1px solid var(--border); }
.compare table { width: 100%; min-width: 620px; border-collapse: collapse; font-size: 15px; }
.compare th, .compare td { padding: 16px 20px; text-align: left; vertical-align: top; border-bottom: 1px solid var(--border); }
.compare tbody tr:last-child > * { border-bottom: 0; }
.compare thead th { background: rgba(255, 255, 255, .03); font-family: var(--font-display); font-size: 15px; font-weight: 600; color: var(--brand-soft); }
.compare tbody th { width: 22%; font-weight: 500; color: var(--text); }
.compare td { color: var(--muted); width: 39%; }
.compare tbody tr:hover > * { background: rgba(255, 255, 255, .02); }
.compare-note { margin-top: 16px; font-size: 13.5px; color: var(--subtle); }

/* Hardware */
.hardware-grid { display: grid; grid-template-columns: minmax(0, 1.05fr) minmax(0, .95fr); gap: 72px; align-items: center; }
.hardware-visual { position: relative; }
.hardware-visual::before {
  content: ""; position: absolute; inset: 8% 6%; z-index: -1; border-radius: 50%;
  background: radial-gradient(closest-side, rgba(124, 92, 255, .45), transparent); filter: blur(40px);
}
.hardware-frame { border-radius: var(--radius-xl); overflow: hidden; background: #05040a; }
.hardware-frame img { width: 100%; height: auto; aspect-ratio: 3 / 2; object-fit: cover; }
.float-chip {
  position: absolute; display: inline-flex; align-items: center; gap: 8px;
  padding: 10px 14px; border-radius: 12px; border: 1px solid var(--border-strong);
  font-size: 14px; font-weight: 500; box-shadow: 0 18px 40px -18px rgba(0, 0, 0, .8);
}
.float-chip .ico { color: var(--brand-soft); }
.chip-a { top: 24px; left: -20px; }
.chip-b { bottom: 28px; right: -20px; }
.hardware-copy { display: flex; flex-direction: column; align-items: flex-start; gap: 20px; }
.feature-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px; width: 100%; margin: 8px 0 8px; }
.feature { padding: 20px; border-radius: var(--radius); border: 1px solid var(--border); background: var(--card); transition: border-color .25s, background-color .25s; }
.feature:hover { border-color: var(--border-strong); background: var(--card-hover); }
.feature-icon { width: 36px; height: 36px; border-radius: 10px; margin-bottom: 14px; }
.feature h3 { font-size: 16px; }
.feature p { margin-top: 6px; font-size: 14px; color: var(--muted); line-height: 1.55; }

/* Steps */
.steps { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 16px; position: relative; }
.steps::before {
  content: ""; position: absolute; top: 47px; left: 12%; right: 12%; height: 1px;
  background: linear-gradient(90deg, transparent, rgba(124, 92, 255, .6), rgba(183, 165, 255, .6), rgba(124, 92, 255, .6), transparent);
}
.step { padding: 28px 24px 28px; background: rgba(13, 11, 22, .9); }
.step-num {
  display: grid; place-items: center; width: 40px; height: 40px; margin-bottom: 22px; border-radius: 50%;
  font-family: var(--font-display); font-weight: 600; font-size: 16px; color: #fff;
  background: linear-gradient(180deg, #8a6bff, #5a2fe0);
  box-shadow: 0 0 0 6px rgba(124, 92, 255, .12), 0 8px 24px -6px var(--glow);
}
.step h3 { font-size: 18px; }
.step p { margin-top: 10px; color: var(--muted); font-size: 15px; }

/* Bento */
.bento { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 16px; }
.tile { padding: 28px; overflow: hidden; transition: border-color .25s, transform .3s var(--ease); }
.tile:hover { border-color: rgba(124, 92, 255, .35); transform: translateY(-2px); }
.spot::after {
  content: ""; position: absolute; inset: 0; border-radius: inherit; pointer-events: none; opacity: 0; transition: opacity .3s;
  background: radial-gradient(320px circle at var(--x, 50%) var(--y, 50%), rgba(124, 92, 255, .14), transparent 60%);
}
.spot:hover::after { opacity: 1; }
.tile-icon { margin-bottom: 40px; }
.tile h3 { font-size: 19px; }
.tile p { margin-top: 8px; color: var(--muted); font-size: 15px; }

/* Residency */
.residency-grid { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 72px; align-items: center; }
.residency-copy { display: flex; flex-direction: column; align-items: flex-start; gap: 20px; }
.checks-lg { margin: 4px 0; gap: 14px; }
.checks-lg li { font-size: 16px; }
.coords { display: inline-flex; align-items: center; gap: 8px; font-size: 13.5px; color: var(--subtle); font-variant-numeric: tabular-nums; }
.coords .ico { width: 16px; height: 16px; color: var(--brand-soft); }
.globe { border-radius: var(--radius-xl); padding: 16px; overflow: hidden; background: radial-gradient(80% 70% at 50% 45%, rgba(124, 92, 255, .1), transparent 70%), var(--card); }
.globe svg { width: 100%; height: auto; }
.globe-grid { stroke: rgba(183, 165, 255, .14); stroke-width: 1; }
.globe-orbit { stroke: rgba(183, 165, 255, .2); stroke-dasharray: 3 7; }
.routes path { stroke: rgba(183, 165, 255, .25); stroke-width: 1.5; }
.routes-flow path { stroke: #b7a5ff; stroke-width: 2; stroke-linecap: round; stroke-dasharray: 10 300; animation: flow 4.5s linear infinite; }
.routes-flow path:nth-child(2) { animation-delay: 1.5s; }
.routes-flow path:nth-child(3) { animation-delay: 3s; }
@keyframes flow { from { stroke-dashoffset: 310; } to { stroke-dashoffset: 0; } }
.globe .node { fill: #7c5cff; stroke: rgba(183, 165, 255, .6); stroke-width: 2; }
.pulse-ring { fill: none; stroke: rgba(183, 165, 255, .55); stroke-width: 1.5; transform-origin: 222px 205px; animation: pulse 2.8s var(--ease) infinite; }
@keyframes pulse { 0% { transform: scale(.45); opacity: 1; } 100% { transform: scale(1.6); opacity: 0; } }
.label-box { fill: rgba(16, 13, 28, .9); stroke: rgba(183, 165, 255, .35); }
.label { fill: #e8e3fb; font: 500 13px var(--font-body); }

/* FAQ */
.faq-grid { display: grid; grid-template-columns: minmax(0, .8fr) minmax(0, 1.2fr); gap: 72px; align-items: start; }
.faq-side { position: sticky; top: calc(var(--header-h) + 32px); display: flex; flex-direction: column; align-items: flex-start; gap: 18px; }
.faq-contact { margin-top: 18px; padding: 24px; width: 100%; max-width: 360px; }
.faq-contact h3 { font-size: 17px; }
.faq-contact p { margin: 6px 0 18px; color: var(--muted); font-size: 14.5px; }
.faq-list { display: grid; gap: 12px; }
.faq-list details { border-radius: var(--radius); transition: border-color .25s, background-color .25s; }
.faq-list details[open] { border-color: rgba(124, 92, 255, .32); background: rgba(124, 92, 255, .06); }
.faq-list summary {
  display: flex; justify-content: space-between; align-items: center; gap: 20px;
  padding: 20px 22px; cursor: pointer; list-style: none;
  font-family: var(--font-display); font-size: 17px; font-weight: 500; letter-spacing: -.01em;
}
.faq-list summary::-webkit-details-marker { display: none; }
.faq-list summary::after {
  content: ""; flex: none; width: 28px; height: 28px; border-radius: 50%;
  border: 1px solid var(--border-strong);
  background:
    linear-gradient(var(--brand-soft), var(--brand-soft)) center / 10px 1.5px no-repeat,
    linear-gradient(var(--brand-soft), var(--brand-soft)) center / 1.5px 10px no-repeat;
  transition: transform .3s var(--ease);
}
.faq-list details[open] summary::after { transform: rotate(45deg); }
.faq-list details p { padding: 0 22px 22px; color: var(--muted); font-size: 15.5px; max-width: 46em; }

/* CTA */
.section-cta { padding-top: 40px; }
.cta-panel {
  position: relative; overflow: hidden; isolation: isolate;
  border-radius: 32px; padding: 88px 32px;
  text-align: center; display: flex; flex-direction: column; align-items: center; gap: 16px;
  background: linear-gradient(180deg, #120d26, #0b0817);
}
.cta-glow { position: absolute; inset: 0; z-index: -1; background: radial-gradient(60% 80% at 50% 0%, rgba(124, 92, 255, .45), transparent 70%); }
.cta-panel .grid-lines { z-index: -1; }
.cta-panel h2 { font-size: clamp(34px, 4.4vw, 56px); }
.cta-panel > p { color: #c9c4dc; font-size: 18px; }
.cta-actions { display: flex; flex-wrap: wrap; justify-content: center; gap: 12px; margin-top: 16px; }
.cta-panel .cta-note { margin-top: 8px; font-size: 14px; color: var(--subtle); }

/* Footer */
.site-footer { padding: 72px 0 40px; border-top: 1px solid var(--border); margin-top: 40px; }
.footer-grid { display: grid; grid-template-columns: 1.6fr 1fr 1fr 1fr; gap: 40px; }
.footer-brand p { margin-top: 14px; max-width: 26em; color: var(--muted); font-size: 14.5px; }
.site-footer h3 { font-family: var(--font-body); font-size: 13px; font-weight: 600; color: var(--text); margin-bottom: 14px; }
.footer-grid > div:not(.footer-brand) { display: flex; flex-direction: column; align-items: flex-start; gap: 10px; }
.footer-grid > div:not(.footer-brand) :is(a, button) { padding: 0; border: 0; background: none; color: var(--muted); font-size: 14.5px; transition: color .2s; }
.footer-grid > div:not(.footer-brand) :is(a, button):hover { color: var(--text); }
.footer-bottom { position: relative; display: flex; justify-content: space-between; gap: 16px; flex-wrap: wrap; margin-top: 56px; padding-top: 24px; font-size: 13.5px; color: var(--subtle); }

.footer-bottom::before { content: ""; position: absolute; top: 0; left: var(--gutter); right: var(--gutter); height: 1px; background: var(--border); }

/* ---------- Dialog ---------- */
dialog {
  width: min(620px, calc(100% - 32px)); max-height: calc(100dvh - 32px);
  padding: 36px; border: 1px solid var(--border-strong); border-radius: 24px;
  background: linear-gradient(180deg, #15112a, #0d0a19); color: var(--text);
  box-shadow: 0 50px 120px -30px rgba(124, 92, 255, .45), 0 0 0 1px rgba(0, 0, 0, .4);
}
dialog[open] { animation: rise .35s var(--ease); }
@keyframes rise { from { opacity: 0; transform: translateY(12px) scale(.98); } }
dialog::backdrop { background: rgba(4, 3, 10, .7); -webkit-backdrop-filter: blur(6px); backdrop-filter: blur(6px); }
.dialog-close {
  position: absolute; top: 16px; right: 16px; width: 36px; height: 36px; border-radius: 10px;
  display: grid; place-items: center; border: 1px solid var(--border); background: rgba(255, 255, 255, .04); color: var(--muted);
}
.dialog-close svg { width: 16px; height: 16px; fill: none; stroke: currentColor; stroke-width: 2; stroke-linecap: round; }
.dialog-close:hover { color: var(--text); border-color: var(--border-strong); }
dialog h2 { font-size: 28px; padding-right: 44px; }
.dialog-lede { margin: 8px 0 26px; color: var(--muted); font-size: 15px; }
.form-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 14px; margin-bottom: 14px; }
dialog label { display: grid; gap: 7px; font-size: 13px; font-weight: 500; color: #cfc9e3; }
dialog input, dialog select, dialog textarea {
  width: 100%; padding: 12px 14px; border-radius: 11px;
  border: 1px solid var(--border-strong); background: rgba(255, 255, 255, .035);
  font-size: 15px; transition: border-color .2s, box-shadow .2s, background-color .2s;
}
dialog select { appearance: none; background-image: linear-gradient(45deg, transparent 50%, var(--muted) 50%), linear-gradient(135deg, var(--muted) 50%, transparent 50%); background-position: calc(100% - 20px) 52%, calc(100% - 15px) 52%; background-size: 5px 5px; background-repeat: no-repeat; padding-right: 36px; }
dialog select option { background: #15112a; }
dialog input::placeholder, dialog textarea::placeholder { color: #6f6a87; }
dialog input:focus, dialog select:focus, dialog textarea:focus { outline: none; border-color: rgba(150, 125, 255, .9); box-shadow: 0 0 0 4px rgba(124, 92, 255, .18); background-color: rgba(255, 255, 255, .05); }
dialog textarea { resize: vertical; min-height: 110px; }
#enquiry-form.is-partner .service-only { display: none; }
.form-error { min-height: 1.4em; margin: 10px 0 8px; font-size: 14px; color: #ff8fa3; }
.sent { text-align: center; padding: 12px 0 4px; display: flex; flex-direction: column; align-items: center; }
.sent-mark { width: 68px; height: 68px; margin-bottom: 18px; fill: none; stroke: var(--brand-soft); stroke-width: 2.5; stroke-linecap: round; stroke-linejoin: round; filter: drop-shadow(0 0 18px rgba(124, 92, 255, .6)); }
.sent-mark path { stroke-dasharray: 40; stroke-dashoffset: 40; animation: draw .5s .15s var(--ease) forwards; }
@keyframes draw { to { stroke-dashoffset: 0; } }
.sent h2 { padding: 0; }
.sent p { margin-top: 10px; color: var(--muted); }
.sent .btn { margin-top: 26px; min-width: 150px; }

/* ---------- Reveal ---------- */
.js .reveal { opacity: 0; transform: translateY(18px); transition: opacity .7s var(--ease), transform .7s var(--ease); }
.js .reveal.in { opacity: 1; transform: none; }

/* ---------- Responsive ---------- */
@media (max-width: 1080px) {
  .hero-grid { grid-template-columns: minmax(0, 1fr); gap: 48px; }
  .hero h1 { max-width: 16ch; }
  .builder { max-width: 620px; }
  .hardware-grid, .residency-grid { grid-template-columns: minmax(0, 1fr); gap: 56px; }
  .hardware-visual { max-width: 680px; }
  .steps { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .steps::before { display: none; }
  .bento { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .faq-grid { grid-template-columns: minmax(0, 1fr); gap: 32px; }
  .faq-side { position: static; }
  .faq-contact { display: none; }
  .footer-grid { grid-template-columns: 1fr 1fr 1fr; }
  .footer-brand { grid-column: 1 / -1; }
}

@media (max-width: 900px) {
  .menu-toggle { display: inline-flex; }
  .nav {
    position: fixed; top: var(--header-h); left: 0; right: 0;
    flex-direction: column; align-items: stretch; gap: 2px; margin: 0;
    padding: 12px var(--gutter) 20px;
    background: #08070e; border-bottom: 1px solid var(--border);
    -webkit-backdrop-filter: blur(18px); backdrop-filter: blur(18px);
    opacity: 0; visibility: hidden; transform: translateY(-8px);
    transition: opacity .25s var(--ease), transform .25s var(--ease), visibility .25s;
  }
  .nav.open { opacity: 1; visibility: visible; transform: none; }
  .nav a { padding: 14px 12px; font-size: 16px; color: var(--text); }
  .header-actions { margin-left: auto; }
  .site-header.menu-open { background: rgba(7, 6, 12, .96); border-bottom-color: var(--border); }
  .services { grid-template-columns: minmax(0, 1fr); }
}

@media (max-width: 640px) {
  :root { --gutter: 16px; --header-h: 64px; }
  .header-actions .btn-sm { padding: 0 12px; font-size: 13.5px; height: 36px; }
  .logo { height: 24px; }
  .hero { padding-top: calc(var(--header-h) + 40px); }
  .hero-lede { font-size: 16.5px; }
  .hero-ctas .btn { flex: 1 1 auto; }
  .hero-grid { padding-bottom: 64px; }
  .trust { gap: 10px 20px; }
  .builder { padding: 20px 16px; border-radius: 22px; }
  .builder-status { display: none; }
  .section { padding: 84px 0; }
  .section-head { margin-bottom: 44px; }
  .section-head p, .lead { font-size: 16.5px; }
  .service-body { padding: 22px 12px 12px; }
  .service-title .pill { display: none; }
  .service-title h3 { font-size: 21px; }
  .compare { padding: 22px 16px; }
  .compare-scroll { overflow: visible; border: 0; border-radius: 0; }
  .compare table, .compare tbody, .compare tr, .compare th, .compare td { display: block; width: auto; min-width: 0; }
  .compare thead { display: none; }
  .compare tbody { display: grid; gap: 10px; }
  .compare tr { border: 1px solid var(--border); border-radius: var(--radius); padding: 14px 16px; }
  .compare tbody th { width: auto; padding: 0 0 10px; border: 0; font-family: var(--font-display); font-size: 16px; }
  .compare td { display: grid; grid-template-columns: 104px minmax(0, 1fr); gap: 12px; padding: 8px 0; border: 0; border-top: 1px solid var(--border); font-size: 14.5px; }
  .compare td::before { content: attr(data-label); color: var(--brand-soft); font-weight: 500; font-size: 13px; }
  .compare tbody tr:last-child > * { border-bottom: 0; }
  .compare tbody tr:last-child td + td, .compare td + td { border-top: 1px solid var(--border); }
  .compare tbody tr:hover > * { background: none; }
  .feature-grid, .steps, .bento { grid-template-columns: minmax(0, 1fr); }
  .chip-a { left: 10px; top: 10px; }
  .chip-b { right: 10px; bottom: 10px; }
  .float-chip { padding: 8px 12px; font-size: 13px; }
  .tile-icon { margin-bottom: 24px; }
  .faq-list summary { font-size: 16px; padding: 18px; }
  .faq-list details p { padding: 0 18px 18px; }
  .cta-panel { padding: 64px 20px; border-radius: 24px; }
  .cta-actions { width: 100%; }
  .cta-actions .btn { flex: 1 1 100%; }
  .footer-grid { grid-template-columns: 1fr 1fr; }
  dialog { padding: 28px 18px; border-radius: 20px; }
  .form-grid { grid-template-columns: minmax(0, 1fr); }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation: none !important; transition: none !important; }
  .js .reveal { opacity: 1; transform: none; }
  .marquee-track { transform: none; }
  .sent-mark path { stroke-dashoffset: 0; }
}
