/* =========================================================
   CTI Consolidated - styles
   ========================================================= */

@font-face {
  font-family: "Space Grotesk";
  src: url("/fonts/space-grotesk-latin-wght-normal.woff2") format("woff2-variations");
  font-weight: 300 700;
  font-style: normal;
  font-display: swap;
}
@font-face {
  font-family: "Inter";
  src: url("/fonts/inter-latin-wght-normal.woff2") format("woff2-variations");
  font-weight: 100 900;
  font-style: normal;
  font-display: swap;
}
@font-face {
  font-family: "JetBrains Mono";
  src: url("/fonts/jetbrains-mono-latin-400-normal.woff2") format("woff2");
  font-weight: 400;
  font-display: swap;
}
@font-face {
  font-family: "JetBrains Mono";
  src: url("/fonts/jetbrains-mono-latin-500-normal.woff2") format("woff2");
  font-weight: 500;
  font-display: swap;
}

:root {
  --bg: #05070d;
  --bg-2: #080c16;
  --surface: rgba(14, 20, 34, 0.72);
  --surface-solid: #0c1220;
  --surface-hover: rgba(20, 30, 50, 0.85);
  --line: rgba(140, 170, 210, 0.12);
  --line-strong: rgba(140, 170, 210, 0.24);

  --text: #e8f7ff;
  --text-muted: #9fb3c8;
  --text-dim: #6b7f96;

  --cyan: #22e4f5;
  --violet: #8b5cf6;
  --green: #34d399;
  --danger: #ff6b81;

  --grad: linear-gradient(120deg, var(--cyan), var(--violet));
  --glow: 0 0 0 1px rgba(34, 228, 245, 0.25), 0 10px 40px -10px rgba(34, 228, 245, 0.35);

  --font-display: "Space Grotesk", "Segoe UI", system-ui, sans-serif;
  --font-body: "Inter", "Segoe UI", system-ui, -apple-system, sans-serif;
  --font-mono: "JetBrains Mono", ui-monospace, "Cascadia Code", Consolas, monospace;

  --radius: 14px;
  --radius-sm: 8px;
  --container: 1200px;
  --gutter: clamp(16px, 4vw, 32px);
  --header-h: 76px;
}

/* ---------- Reset / base ---------- */
*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: calc(var(--header-h) + 12px); -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font-family: var(--font-body);
  font-size: 1rem;
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}
img, svg { display: block; max-width: 100%; }
a { color: inherit; }
h1, h2, h3 { font-family: var(--font-display); line-height: 1.12; margin: 0; letter-spacing: -0.02em; }
p { margin: 0; }
ul, ol { margin: 0; padding: 0; list-style: none; }
button, input, textarea, select { font: inherit; color: inherit; }
::selection { background: rgba(34, 228, 245, 0.3); }

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

.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: absolute; left: 16px; top: -60px; z-index: 100;
  background: var(--cyan); color: #001018; padding: 10px 16px; border-radius: var(--radius-sm);
  font-weight: 600; text-decoration: none; transition: top .2s;
}
.skip-link:focus { top: 12px; }

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

.text-gradient {
  background: var(--grad);
  -webkit-background-clip: text; background-clip: text;
  color: transparent;
}

.eyebrow {
  display: inline-flex; align-items: center; gap: 10px;
  font-family: var(--font-mono); font-size: 0.8rem; letter-spacing: 0.08em; text-transform: uppercase;
  color: var(--cyan);
}

.pulse-dot {
  width: 8px; height: 8px; border-radius: 50%; background: var(--green);
  box-shadow: 0 0 0 0 rgba(52, 211, 153, 0.6);
  animation: pulse 2s infinite;
  flex: none;
}
@keyframes pulse {
  0% { box-shadow: 0 0 0 0 rgba(52, 211, 153, 0.55); }
  70% { box-shadow: 0 0 0 9px rgba(52, 211, 153, 0); }
  100% { box-shadow: 0 0 0 0 rgba(52, 211, 153, 0); }
}

/* ---------- Buttons ---------- */
.btn {
  position: relative;
  display: inline-flex; align-items: center; justify-content: center; gap: 10px;
  min-height: 48px; padding: 12px 24px;
  font-family: var(--font-display); font-weight: 600; font-size: 0.98rem; letter-spacing: 0.01em;
  text-decoration: none; border-radius: 10px; border: 1px solid transparent; cursor: pointer;
  transition: transform .2s ease, box-shadow .25s ease, background-color .25s ease, border-color .25s ease, color .25s ease;
}
.btn-primary {
  color: #001018;
  background: var(--grad);
  box-shadow: 0 8px 30px -10px rgba(34, 228, 245, 0.55);
}
.btn-primary:hover { transform: translateY(-2px); box-shadow: 0 14px 40px -10px rgba(139, 92, 246, 0.6); }
.btn-ghost {
  color: var(--text);
  border-color: var(--line-strong);
  background: rgba(255, 255, 255, 0.02);
  backdrop-filter: blur(6px);
}
.btn-ghost:hover { border-color: var(--cyan); color: var(--cyan); transform: translateY(-2px); }

/* ---------- Header ---------- */
.site-header {
  position: fixed; inset: 0 0 auto 0; z-index: 50;
  height: var(--header-h);
  transition: background-color .3s ease, border-color .3s ease, backdrop-filter .3s ease;
  border-bottom: 1px solid transparent;
}
.site-header.is-scrolled {
  background: rgba(5, 7, 13, 0.78);
  backdrop-filter: blur(14px) saturate(140%);
  -webkit-backdrop-filter: blur(14px) saturate(140%);
  border-bottom-color: var(--line);
}
.header-inner { height: 100%; display: flex; align-items: center; justify-content: space-between; gap: 24px; }

.brand { display: inline-flex; align-items: center; gap: 12px; text-decoration: none; }
.brand-text { display: flex; flex-direction: column; line-height: 1; font-family: var(--font-display); text-transform: uppercase; }
.brand-text strong { font-size: 1.2rem; font-weight: 700; letter-spacing: 0.22em; }
.brand-text span { font-size: 0.66rem; font-weight: 400; letter-spacing: 0.28em; color: var(--text-muted); margin-top: 5px; }

.site-nav { display: flex; align-items: center; gap: 32px; }
.site-nav ul { display: flex; gap: 28px; }
.site-nav ul a {
  position: relative; text-decoration: none; font-size: 0.94rem; color: var(--text-muted);
  padding: 6px 0; transition: color .2s;
}
.site-nav ul a::after {
  content: ""; position: absolute; left: 0; right: 0; bottom: 0; height: 1px;
  background: var(--grad); transform: scaleX(0); transform-origin: left; transition: transform .25s ease;
}
.site-nav ul a:hover, .site-nav ul a.is-active { color: var(--text); }
.site-nav ul a:hover::after, .site-nav ul a.is-active::after { transform: scaleX(1); }
.nav-cta { min-height: 42px; padding: 9px 18px; font-size: 0.9rem; }

.nav-toggle {
  display: none; width: 44px; height: 44px; border-radius: 10px;
  border: 1px solid var(--line-strong); background: rgba(255,255,255,0.03);
  align-items: center; justify-content: center; flex-direction: column; gap: 6px; cursor: pointer;
}
.nav-toggle-bar { width: 18px; height: 2px; background: var(--text); border-radius: 2px; transition: transform .25s ease; }
.nav-toggle[aria-expanded="true"] .nav-toggle-bar:nth-of-type(2) { transform: translateY(4px) rotate(45deg); }
.nav-toggle[aria-expanded="true"] .nav-toggle-bar:nth-of-type(3) { transform: translateY(-4px) rotate(-45deg); }

/* ---------- Hero ---------- */
.hero {
  position: relative; isolation: isolate;
  min-height: 100vh; min-height: 100svh;
  display: flex; align-items: center;
  padding: calc(var(--header-h) + 48px) 0 96px;
  overflow: hidden;
}
.hero::before {
  content: ""; position: absolute; inset: 0; z-index: -3;
  background:
    radial-gradient(60% 50% at 78% 30%, rgba(139, 92, 246, 0.18), transparent 70%),
    radial-gradient(50% 45% at 15% 70%, rgba(34, 228, 245, 0.12), transparent 70%),
    var(--bg);
}
.hero-canvas { position: absolute; inset: 0; width: 100%; height: 100%; z-index: -2; opacity: 0.9; }
.hero-grid {
  position: absolute; inset: 0; z-index: -1; pointer-events: none;
  background-image:
    linear-gradient(var(--line) 1px, transparent 1px),
    linear-gradient(90deg, var(--line) 1px, transparent 1px);
  background-size: 72px 72px;
  mask-image: radial-gradient(ellipse 80% 70% at 50% 40%, #000 30%, transparent 85%);
  -webkit-mask-image: radial-gradient(ellipse 80% 70% at 50% 40%, #000 30%, transparent 85%);
}
.hero::after {
  content: ""; position: absolute; left: 0; right: 0; bottom: 0; height: 160px; z-index: -1;
  background: linear-gradient(to bottom, transparent, var(--bg));
}
.hero-inner { display: grid; grid-template-columns: 1.15fr 0.85fr; gap: 64px; align-items: center; }
.hero-copy h1 {
  font-size: clamp(2.5rem, 5.6vw, 4.6rem);
  font-weight: 700; margin: 22px 0 24px;
}
.lead { font-size: clamp(1.05rem, 1.4vw, 1.2rem); color: var(--text-muted); max-width: 60ch; }
.hero-actions { display: flex; flex-wrap: wrap; gap: 14px; margin-top: 36px; }
.hero-tags { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 40px; }
.hero-tags li {
  font-family: var(--font-mono); font-size: 0.78rem; letter-spacing: 0.08em; text-transform: uppercase;
  color: var(--text-muted); padding: 6px 12px; border: 1px solid var(--line); border-radius: 999px;
  background: rgba(255, 255, 255, 0.02);
}

/* hero console */
.hero-console {
  position: relative;
  background: linear-gradient(180deg, rgba(14, 20, 34, 0.9), rgba(8, 12, 22, 0.9));
  border: 1px solid var(--line-strong);
  border-radius: var(--radius);
  box-shadow: 0 40px 80px -30px rgba(0, 0, 0, 0.8), 0 0 60px -20px rgba(34, 228, 245, 0.25);
  backdrop-filter: blur(10px);
  font-family: var(--font-mono); font-size: 0.86rem;
  overflow: hidden;
}
.hero-console::before {
  content: ""; position: absolute; inset: -1px; border-radius: inherit; padding: 1px; pointer-events: none;
  background: linear-gradient(140deg, rgba(34, 228, 245, 0.6), transparent 35%, transparent 65%, rgba(139, 92, 246, 0.6));
  -webkit-mask: linear-gradient(#000 0 0) content-box, linear-gradient(#000 0 0);
  -webkit-mask-composite: xor; mask-composite: exclude;
}
.console-bar {
  display: flex; align-items: center; gap: 14px; padding: 14px 18px;
  border-bottom: 1px solid var(--line); color: var(--text-dim);
}
.console-dots { display: flex; gap: 6px; }
.console-dots i { width: 10px; height: 10px; border-radius: 50%; background: #1d2638; }
.console-title { flex: 1; font-size: 0.8rem; }
.console-status { display: inline-flex; align-items: center; gap: 8px; color: var(--green); font-size: 0.78rem; }
.console-body { padding: 18px 18px 6px; display: grid; gap: 4px; }
.console-body li {
  display: grid; grid-template-columns: 92px 1fr auto; gap: 12px; align-items: center;
  padding: 10px 12px; border-radius: var(--radius-sm);
  opacity: 0; transform: translateX(-8px);
  transition: opacity .5s ease, transform .5s ease, background-color .3s;
}
.console-body li.is-on { opacity: 1; transform: none; }
.console-body li:hover { background: rgba(34, 228, 245, 0.05); }
.c-cmd { color: var(--cyan); }
.c-cmd::before { content: "> "; color: var(--text-dim); }
.c-arg { color: var(--text-muted); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.c-ok { color: var(--green); white-space: nowrap; }
.c-live { color: var(--violet); white-space: nowrap; animation: blink 1.6s ease-in-out infinite; }
@keyframes blink { 50% { opacity: 0.35; } }
.console-foot {
  display: flex; align-items: center; gap: 8px; padding: 14px 18px 18px; color: var(--text-dim);
  border-top: 1px dashed var(--line); margin-top: 10px; font-size: 0.8rem;
}
.console-cursor { width: 8px; height: 15px; background: var(--cyan); animation: cursor 1s steps(1) infinite; }
@keyframes cursor { 50% { opacity: 0; } }

.scroll-hint {
  position: absolute; left: 50%; bottom: 28px; transform: translateX(-50%);
  width: 26px; height: 42px; border: 1px solid var(--line-strong); border-radius: 20px;
}
.scroll-hint span {
  position: absolute; left: 50%; top: 8px; width: 3px; height: 8px; margin-left: -1.5px;
  border-radius: 2px; background: var(--cyan); animation: scroll 1.8s ease-in-out infinite;
}
@keyframes scroll { 0% { opacity: 0; transform: translateY(0); } 40% { opacity: 1; } 100% { opacity: 0; transform: translateY(14px); } }

/* ---------- Lifecycle strip ---------- */
.lifecycle { border-block: 1px solid var(--line); background: var(--bg-2); }
.lifecycle-track { display: grid; grid-template-columns: repeat(5, 1fr); }
.lifecycle-track li {
  position: relative; display: flex; align-items: baseline; justify-content: center; gap: 12px;
  padding: 28px 12px;
}
.lifecycle-track li + li::before {
  content: ""; position: absolute; left: 0; top: 50%; width: 1px; height: 36px; transform: translateY(-50%);
  background: var(--line-strong);
}
.lc-index { font-family: var(--font-mono); font-size: 0.75rem; color: var(--cyan); }
.lc-verb { font-family: var(--font-display); font-size: clamp(1.05rem, 2vw, 1.4rem); font-weight: 600; letter-spacing: 0.02em; }

/* ---------- Sections ---------- */
.section { position: relative; padding: clamp(80px, 11vw, 140px) 0; }
.section--alt {
  background:
    radial-gradient(50% 60% at 100% 0%, rgba(139, 92, 246, 0.08), transparent 70%),
    radial-gradient(40% 50% at 0% 100%, rgba(34, 228, 245, 0.06), transparent 70%),
    var(--bg-2);
  border-block: 1px solid var(--line);
}
.section-head { max-width: 760px; margin-bottom: clamp(40px, 6vw, 64px); }
.section-head h2 { font-size: clamp(1.9rem, 3.8vw, 3rem); font-weight: 650; margin-top: 16px; }
.section-intro { color: var(--text-muted); font-size: 1.08rem; margin-top: 18px; max-width: 62ch; }

/* ---------- Services ---------- */
.services-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; }
.service-card {
  --mx: 50%; --my: 0%;
  position: relative; display: flex; flex-direction: column;
  padding: 32px 28px 28px;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  overflow: hidden;
  transition: border-color .3s ease, transform .3s ease, background-color .3s ease;
}
.service-card::before {
  content: ""; position: absolute; inset: 0; pointer-events: none; opacity: 0; transition: opacity .3s ease;
  background: radial-gradient(420px circle at var(--mx) var(--my), rgba(34, 228, 245, 0.10), transparent 45%);
}
.service-card:hover { border-color: rgba(34, 228, 245, 0.35); transform: translateY(-4px); }
.service-card:hover::before { opacity: 1; }
.service-card--feature {
  background: linear-gradient(160deg, rgba(34, 228, 245, 0.08), rgba(139, 92, 246, 0.08) 60%, rgba(14, 20, 34, 0.7));
  border-color: rgba(139, 92, 246, 0.35);
}
.service-icon {
  width: 52px; height: 52px; border-radius: 12px; display: grid; place-items: center; margin-bottom: 24px;
  background: linear-gradient(140deg, rgba(34, 228, 245, 0.16), rgba(139, 92, 246, 0.16));
  border: 1px solid rgba(34, 228, 245, 0.25);
}
.service-icon svg { width: 26px; height: 26px; fill: none; stroke: var(--cyan); stroke-width: 1.6; stroke-linecap: round; stroke-linejoin: round; }
.service-card h3 { font-size: 1.3rem; font-weight: 600; margin-bottom: 12px; }
.service-card > p { color: var(--text-muted); font-size: 0.97rem; }
.service-list { margin: 20px 0 26px; display: grid; gap: 9px; }
.service-list li { position: relative; padding-left: 22px; font-size: 0.93rem; color: var(--text); }
.service-list li::before {
  content: ""; position: absolute; left: 0; top: 0.62em; width: 10px; height: 2px; background: var(--grad);
}
.service-link {
  margin-top: auto; display: inline-flex; align-items: center; gap: 8px; align-self: flex-start;
  font-family: var(--font-display); font-weight: 600; font-size: 0.93rem; color: var(--cyan); text-decoration: none;
}
.service-link span { transition: transform .2s; }
.service-link:hover span { transform: translateX(4px); }

/* ---------- Coverage ---------- */
.coverage-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; }
.coverage-card {
  position: relative; padding: 36px 30px;
  border: 1px solid var(--line); border-radius: var(--radius);
  background: rgba(5, 7, 13, 0.55);
}
.coverage-card::after {
  content: ""; position: absolute; left: 30px; right: 30px; top: 0; height: 1px; background: var(--grad); opacity: 0.7;
}
.coverage-label { font-family: var(--font-mono); font-size: 0.75rem; color: var(--text-dim); text-transform: uppercase; letter-spacing: 0.1em; }
.coverage-card h3 { font-size: 1.8rem; margin: 10px 0 14px; }
.coverage-card p { color: var(--text-muted); }
.chip-list { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 22px; }
.chip-list li {
  font-family: var(--font-mono); font-size: 0.75rem; padding: 5px 10px; border-radius: 6px;
  background: rgba(34, 228, 245, 0.07); color: var(--cyan); border: 1px solid rgba(34, 228, 245, 0.18);
}

/* ---------- Approach ---------- */
.steps { display: grid; grid-template-columns: repeat(4, 1fr); gap: 20px; counter-reset: step; position: relative; }
.steps::before {
  content: ""; position: absolute; left: 0; right: 0; top: 27px; height: 1px;
  background: linear-gradient(90deg, transparent, var(--line-strong) 10%, var(--line-strong) 90%, transparent);
}
.step { position: relative; padding-top: 4px; }
.step-num {
  position: relative; display: inline-grid; place-items: center; width: 54px; height: 54px; border-radius: 50%;
  font-family: var(--font-mono); font-weight: 500; color: var(--cyan);
  background: var(--bg); border: 1px solid rgba(34, 228, 245, 0.4);
  box-shadow: 0 0 24px -6px rgba(34, 228, 245, 0.5);
  margin-bottom: 24px;
}
.step h3 { font-size: 1.3rem; margin-bottom: 10px; }
.step p { color: var(--text-muted); font-size: 0.97rem; }

/* ---------- Why ---------- */
.why-layout { display: grid; grid-template-columns: 0.9fr 1.1fr; gap: 64px; align-items: start; }
.why-layout .section-head { position: sticky; top: calc(var(--header-h) + 32px); margin-bottom: 0; }
.why-layout .section-head .btn { margin-top: 32px; }
.why-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 16px; }
.why-item {
  padding: 26px 24px; border-radius: var(--radius); border: 1px solid var(--line);
  background: rgba(5, 7, 13, 0.5); transition: border-color .3s, background-color .3s;
}
.why-item:hover { border-color: rgba(139, 92, 246, 0.4); background: rgba(14, 20, 34, 0.7); }
.why-item h3 { font-size: 1.1rem; margin-bottom: 8px; display: flex; align-items: center; gap: 10px; }
.why-item h3::before { content: ""; width: 8px; height: 8px; border-radius: 2px; background: var(--grad); transform: rotate(45deg); flex: none; }
.why-item p { color: var(--text-muted); font-size: 0.95rem; }

/* ---------- FAQ ---------- */
.faq-layout { display: grid; grid-template-columns: 0.8fr 1.2fr; gap: 64px; align-items: start; }
.faq-list { display: grid; gap: 12px; }
.faq-item { border: 1px solid var(--line); border-radius: var(--radius); background: var(--surface); transition: border-color .3s; }
.faq-item[open] { border-color: rgba(34, 228, 245, 0.35); }
.faq-item summary {
  list-style: none; cursor: pointer; padding: 22px 60px 22px 24px; position: relative;
  font-family: var(--font-display); font-weight: 600; font-size: 1.05rem;
}
.faq-item summary::-webkit-details-marker { display: none; }
.faq-item summary::after {
  content: ""; position: absolute; right: 24px; top: 50%; width: 12px; height: 12px; margin-top: -8px;
  border-right: 2px solid var(--cyan); border-bottom: 2px solid var(--cyan); transform: rotate(45deg);
  transition: transform .25s ease, margin-top .25s ease;
}
.faq-item[open] summary::after { transform: rotate(-135deg); margin-top: -2px; }
.faq-item p { padding: 0 24px 24px; color: var(--text-muted); }

/* ---------- Request form ---------- */
.section--request {
  background:
    radial-gradient(60% 60% at 85% 20%, rgba(139, 92, 246, 0.14), transparent 70%),
    radial-gradient(50% 50% at 10% 90%, rgba(34, 228, 245, 0.10), transparent 70%),
    var(--bg-2);
  border-top: 1px solid var(--line);
}
.request-layout { display: grid; grid-template-columns: 0.85fr 1.15fr; gap: 64px; align-items: start; }
.request-steps { display: grid; gap: 14px; margin-top: 36px; }
.request-steps li { display: flex; align-items: center; gap: 14px; color: var(--text-muted); }
.request-steps span {
  display: grid; place-items: center; width: 32px; height: 32px; border-radius: 50%;
  font-family: var(--font-mono); font-size: 0.8rem; color: var(--cyan); border: 1px solid rgba(34, 228, 245, 0.35);
}

.request-form {
  position: relative; display: grid; gap: 20px;
  padding: clamp(24px, 4vw, 40px);
  background: linear-gradient(180deg, rgba(14, 20, 34, 0.92), rgba(8, 12, 22, 0.92));
  border: 1px solid var(--line-strong); border-radius: calc(var(--radius) + 4px);
  box-shadow: 0 40px 90px -40px rgba(0, 0, 0, 0.9);
}
.field { display: grid; gap: 8px; min-width: 0; }
.field-row { display: grid; grid-template-columns: 1fr 1fr; gap: 20px; }
fieldset.field { border: 0; padding: 0; margin: 0; }
.field label, .field legend { font-size: 0.9rem; font-weight: 500; color: var(--text); }
.field legend { margin-bottom: 12px; padding: 0; }
.req { color: var(--cyan); }
.optional { color: var(--text-dim); font-weight: 400; }

.field input[type="text"], .field input[type="email"], .field input[type="tel"], .field textarea {
  width: 100%; padding: 13px 15px; border-radius: 10px;
  background: rgba(5, 7, 13, 0.75); border: 1px solid var(--line-strong);
  color: var(--text); font-size: 1rem;
  transition: border-color .2s, box-shadow .2s, background-color .2s;
}
.field textarea { resize: vertical; min-height: 130px; line-height: 1.55; }
.field input::placeholder, .field textarea::placeholder { color: var(--text-dim); }
.field input:hover, .field textarea:hover { border-color: rgba(140, 170, 210, 0.38); }
.field input:focus, .field textarea:focus {
  outline: none; border-color: var(--cyan); box-shadow: 0 0 0 3px rgba(34, 228, 245, 0.15); background: rgba(5, 7, 13, 0.95);
}
.field.has-error input, .field.has-error textarea { border-color: var(--danger); }
.field.has-error .option { border-color: rgba(255, 107, 129, 0.45); }
.field-error { min-height: 0; font-size: 0.84rem; color: var(--danger); }
.field-error:empty { display: none; }

.service-options { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }
.option {
  position: relative; display: flex; align-items: flex-start; gap: 12px; cursor: pointer;
  padding: 13px 14px; border-radius: 10px; border: 1px solid var(--line-strong);
  background: rgba(5, 7, 13, 0.6); font-size: 0.92rem; line-height: 1.4;
  transition: border-color .2s, background-color .2s;
}
.option:hover { border-color: rgba(34, 228, 245, 0.4); }
.option input {
  appearance: none; -webkit-appearance: none; flex: none;
  width: 20px; height: 20px; margin: 0; border-radius: 6px; border: 1.5px solid var(--line-strong);
  background: transparent; display: grid; place-items: center; cursor: pointer; transition: background-color .2s, border-color .2s;
}
.option input::after {
  content: ""; width: 10px; height: 6px; border-left: 2px solid #001018; border-bottom: 2px solid #001018;
  transform: rotate(-45deg) translate(1px, -1px) scale(0); transition: transform .15s ease;
}
.option input:checked { background: var(--cyan); border-color: var(--cyan); }
.option input:checked::after { transform: rotate(-45deg) translate(1px, -1px) scale(1); }
.option input:focus-visible { outline: 2px solid var(--cyan); outline-offset: 2px; }
.option:has(input:checked) { border-color: rgba(34, 228, 245, 0.55); background: rgba(34, 228, 245, 0.07); }
.option--consent { border: 0; background: none; padding: 0; color: var(--text-muted); }
.option--consent:hover { border: 0; }
.option--consent a { color: var(--cyan); }

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

.turnstile-slot:empty { display: none; }

.form-actions { display: flex; align-items: center; flex-wrap: wrap; gap: 18px; }
.form-note { color: var(--text-dim); font-size: 0.85rem; }
.btn-submit { min-width: 180px; }
.btn-submit .spinner {
  display: none; width: 18px; height: 18px; border-radius: 50%;
  border: 2px solid rgba(0, 16, 24, 0.3); border-top-color: #001018; animation: spin .8s linear infinite;
}
.btn-submit[aria-busy="true"] { pointer-events: none; opacity: 0.85; }
.btn-submit[aria-busy="true"] .spinner { display: inline-block; }
@keyframes spin { to { transform: rotate(360deg); } }

.form-status:empty { display: none; }
.form-status {
  padding: 16px 18px; border-radius: 10px; font-size: 0.95rem; border: 1px solid;
}
.form-status.is-error { color: #ffd1d8; border-color: rgba(255, 107, 129, 0.45); background: rgba(255, 107, 129, 0.08); }

.form-success { text-align: center; padding: 36px 8px; display: grid; justify-items: center; gap: 14px; }
.form-success-icon {
  width: 72px; height: 72px; border-radius: 50%; display: grid; place-items: center;
  background: rgba(52, 211, 153, 0.1); border: 1px solid rgba(52, 211, 153, 0.45);
  box-shadow: 0 0 40px -8px rgba(52, 211, 153, 0.5);
}
.form-success-icon svg { width: 32px; height: 32px; fill: none; stroke: var(--green); stroke-width: 2.4; stroke-linecap: round; stroke-linejoin: round; }
.form-success h3 { font-size: 1.6rem; }
.form-success p { color: var(--text-muted); max-width: 44ch; }

/* ---------- Footer ---------- */
.site-footer { border-top: 1px solid var(--line); background: var(--bg); padding-top: 64px; }
.footer-inner { display: grid; grid-template-columns: 1.4fr 1fr 0.8fr; gap: 48px; padding-bottom: 48px; }
.footer-brand p { color: var(--text-muted); margin-top: 18px; max-width: 42ch; font-size: 0.95rem; }
.footer-heading { font-family: var(--font-mono); font-size: 0.78rem; font-weight: 500; text-transform: uppercase; letter-spacing: 0.1em; color: var(--text-dim); margin-bottom: 16px; }
.footer-nav ul { display: grid; gap: 10px; }
.footer-nav a { color: var(--text-muted); text-decoration: none; font-size: 0.94rem; transition: color .2s; }
.footer-nav a:hover { color: var(--cyan); }
.footer-bottom {
  display: flex; flex-wrap: wrap; justify-content: space-between; gap: 12px;
  padding-block: 24px 32px; border-top: 1px solid var(--line); color: var(--text-dim); font-size: 0.85rem;
}
.footer-domain { font-family: var(--font-mono); }

/* ---------- Simple pages (privacy, 404) ---------- */
.page { padding: calc(var(--header-h) + 64px) 0 96px; min-height: 70vh; }
.page .container { max-width: 820px; }
.page h1 { font-size: clamp(2.2rem, 5vw, 3.4rem); margin: 16px 0 24px; }
.prose h2 { font-size: 1.4rem; margin: 40px 0 12px; }
.prose p, .prose li { color: var(--text-muted); }
.prose p + p { margin-top: 12px; }
.prose ul { list-style: disc; padding-left: 22px; display: grid; gap: 6px; margin-top: 12px; }
.prose a { color: var(--cyan); }
.page-404 { text-align: center; display: grid; place-items: center; }
.page-404 .code {
  font-family: var(--font-display); font-weight: 700; font-size: clamp(5rem, 18vw, 10rem); line-height: 1;
}
.page-404 p { color: var(--text-muted); margin-bottom: 32px; }

/* ---------- Reveal on scroll ---------- */
.js .reveal { opacity: 0; transform: translateY(24px); transition: opacity .7s ease, transform .7s cubic-bezier(.2,.7,.2,1); }
.js .reveal.is-visible { opacity: 1; transform: none; }

/* ---------- Responsive ---------- */
@media (max-width: 1080px) {
  .hero-inner { grid-template-columns: 1fr; gap: 48px; }
  .hero-console { max-width: 560px; }
  .services-grid { grid-template-columns: repeat(2, 1fr); }
  .steps { grid-template-columns: repeat(2, 1fr); row-gap: 40px; }
  .steps::before { display: none; }
  .why-layout, .faq-layout, .request-layout { grid-template-columns: 1fr; gap: 40px; }
  .why-layout .section-head { position: static; }
  .footer-inner { grid-template-columns: 1fr 1fr; }
  .footer-brand { grid-column: 1 / -1; }
}

@media (max-width: 900px) {
  .nav-toggle { display: inline-flex; }
  .site-nav {
    position: fixed; inset: var(--header-h) 0 auto 0; flex-direction: column; align-items: stretch; gap: 20px;
    padding: 20px var(--gutter) 28px; background: rgba(5, 7, 13, 0.97); backdrop-filter: blur(16px);
    border-bottom: 1px solid var(--line);
    transform: translateY(-12px); opacity: 0; visibility: hidden; transition: opacity .25s, transform .25s, visibility .25s;
  }
  .site-nav.is-open { transform: none; opacity: 1; visibility: visible; }
  .site-nav ul { flex-direction: column; gap: 0; }
  .site-nav ul a { display: block; padding: 14px 0; font-size: 1.05rem; border-bottom: 1px solid var(--line); }
  .site-nav ul a::after { display: none; }
  .nav-cta { width: 100%; min-height: 50px; }
  .site-header.nav-open { background: rgba(5, 7, 13, 0.97); border-bottom-color: var(--line); }
  .coverage-grid { grid-template-columns: 1fr; }
  .lifecycle-track { grid-template-columns: repeat(5, auto); justify-content: space-between; overflow-x: auto; }
  .lifecycle-track li { padding: 22px 10px; flex-direction: column; align-items: center; gap: 2px; }
  .lifecycle-track li + li::before { display: none; }
}

@media (max-width: 640px) {
  :root { --header-h: 68px; }
  .hero { padding-bottom: 80px; }
  .hero-actions .btn { width: 100%; }
  .console-body li { grid-template-columns: 104px 1fr; row-gap: 2px; padding: 8px 10px; }
  .c-cmd { white-space: nowrap; }
  .console-body li .c-ok, .console-body li .c-live { grid-column: 2; }
  .console-body { font-size: 0.8rem; }
  .services-grid, .steps, .why-grid { grid-template-columns: 1fr; }
  .field-row, .service-options { grid-template-columns: 1fr; }
  .lifecycle-track { grid-template-columns: repeat(5, minmax(0, 1fr)); overflow: visible; }
  .lifecycle-track li { padding: 18px 2px; }
  .lc-verb { font-size: 0.82rem; }
  .footer-inner { grid-template-columns: 1fr; gap: 36px; }
  .btn-submit { width: 100%; }
  .scroll-hint { display: none; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation-duration: 0.001ms !important; animation-iteration-count: 1 !important; transition-duration: 0.001ms !important; }
  .js .reveal { opacity: 1; transform: none; }
  .console-body li { opacity: 1; transform: none; }
}
