/* ==========================================================================
   Agena Software — site styles
   Dark "deep-sky" theme. Tokens first, then base, layout, components, pages.
   ========================================================================== */

:root {
  --bg: #070a12;
  --bg-2: #0b0f1a;
  --bg-3: #111827;
  --surface: rgba(255, 255, 255, 0.03);
  --surface-2: rgba(255, 255, 255, 0.055);
  --border: rgba(255, 255, 255, 0.08);
  --border-2: rgba(255, 255, 255, 0.16);
  --text: #e8ecf4;
  --text-2: #b7bfd0;
  --muted: #8d97ad;
  --accent: #4c8dff;
  --accent-2: #22d3ee;
  --accent-soft: rgba(76, 141, 255, 0.14);
  --accent-text: #8ab4ff;
  --grad: linear-gradient(135deg, #4c8dff 0%, #22d3ee 100%);
  --success: #34d399;
  --radius: 18px;
  --radius-sm: 12px;
  --radius-xs: 8px;
  --font-display: "Sora", system-ui, -apple-system, "Segoe UI", sans-serif;
  --font-body: "Inter", system-ui, -apple-system, "Segoe UI", sans-serif;
  --font-mono: "JetBrains Mono", ui-monospace, SFMono-Regular, Menlo, monospace;
  --container: 1180px;
  --gutter: 24px;
  --nav-h: 72px;
  --shadow-lg: 0 30px 80px rgba(0, 0, 0, 0.55);
  --shadow-md: 0 12px 40px rgba(0, 0, 0, 0.35);
  --ease: cubic-bezier(0.22, 1, 0.36, 1);
}

/* ---------- Base ---------- */
*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; -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.65;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  overflow-x: hidden;
}
body::before {
  content: "";
  position: fixed;
  inset: 0;
  pointer-events: none;
  z-index: 0;
  background:
    radial-gradient(900px 500px at 15% -10%, rgba(76, 141, 255, 0.14), transparent 60%),
    radial-gradient(700px 400px at 90% 0%, rgba(34, 211, 238, 0.08), transparent 60%);
}
body > * { position: relative; z-index: 1; }

h1, h2, h3, h4 {
  font-family: var(--font-display);
  font-weight: 600;
  letter-spacing: -0.02em;
  line-height: 1.12;
  margin: 0 0 0.5em;
  color: var(--text);
}
h1 { font-size: clamp(2.5rem, 5.2vw, 4.4rem); line-height: 1.04; letter-spacing: -0.03em; font-weight: 700; }
h2 { font-size: clamp(1.9rem, 3.3vw, 2.8rem); letter-spacing: -0.025em; }
h3 { font-size: 1.25rem; }
h4 { font-size: 1.05rem; }
p { margin: 0 0 1em; }
p:last-child { margin-bottom: 0; }
a { color: var(--accent-text); text-decoration: none; transition: color 0.2s; }
a:hover { color: #b1cbff; }
strong { font-weight: 600; color: var(--text); }
ul, ol { padding-left: 1.25em; margin: 0 0 1em; }
li { margin-bottom: 0.35em; }
img, svg { display: block; max-width: 100%; }
code, .mono { font-family: var(--font-mono); font-size: 0.92em; }
hr { border: 0; border-top: 1px solid var(--border); margin: 2rem 0; }
::selection { background: rgba(76, 141, 255, 0.35); color: #fff; }

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

.skip-link {
  position: absolute; left: 16px; top: -60px; z-index: 100;
  background: #fff; color: #000; padding: 10px 14px; border-radius: 8px; font-weight: 600;
}
.skip-link:focus { top: 16px; }

.container { width: min(100% - (var(--gutter) * 2), var(--container)); margin-inline: auto; }
.container-narrow { width: min(100% - (var(--gutter) * 2), 820px); margin-inline: auto; }

.section { padding: clamp(72px, 9vw, 120px) 0; position: relative; }
.section-tight { padding: clamp(48px, 6vw, 80px) 0; }
.section-alt { background: linear-gradient(180deg, rgba(255,255,255,0.025), rgba(255,255,255,0.01)); border-top: 1px solid var(--border); border-bottom: 1px solid var(--border); }
.section-head { max-width: 720px; margin-bottom: clamp(36px, 5vw, 56px); }
.section-head.center { margin-inline: auto; text-align: center; }
.lede { font-size: clamp(1.05rem, 1.4vw, 1.25rem); color: var(--text-2); line-height: 1.6; }
.eyebrow {
  display: inline-flex; align-items: center; gap: 10px;
  font-family: var(--font-mono); font-size: 0.75rem; letter-spacing: 0.16em; text-transform: uppercase;
  color: var(--accent-2); margin-bottom: 18px; font-weight: 500;
}
.eyebrow::before { content: ""; width: 22px; height: 1px; background: var(--grad); }
.section-head.center .eyebrow::after { content: ""; width: 22px; height: 1px; background: var(--grad); }
.text-gradient { background: var(--grad); -webkit-background-clip: text; background-clip: text; color: transparent; }
.muted { color: var(--muted); }
.small { font-size: 0.9rem; }

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 10px;
  padding: 14px 22px; border-radius: 12px; font-weight: 600; font-size: 0.95rem;
  border: 1px solid transparent; cursor: pointer; font-family: var(--font-body);
  transition: transform 0.25s var(--ease), box-shadow 0.25s var(--ease), background 0.25s, border-color 0.25s, color 0.2s;
  white-space: nowrap; line-height: 1.2; text-decoration: none;
}
.btn svg { width: 18px; height: 18px; flex: none; }
.btn-primary { background: #fff; color: #070a12; }
.btn-primary:hover { background: #fff; color: #070a12; transform: translateY(-2px); box-shadow: 0 10px 30px rgba(76, 141, 255, 0.25); }
.btn-secondary { background: var(--surface); color: var(--text); border-color: var(--border-2); }
.btn-secondary:hover { background: var(--surface-2); color: #fff; border-color: rgba(255,255,255,0.3); transform: translateY(-2px); }
.btn-accent { background: var(--accent); color: #fff; }
.btn-accent:hover { color: #fff; background: #5f99ff; transform: translateY(-2px); box-shadow: 0 10px 30px rgba(76, 141, 255, 0.35); }
.btn-ghost { background: transparent; color: var(--text-2); padding-inline: 12px; }
.btn-ghost:hover { color: #fff; }
.btn-sm { padding: 10px 16px; font-size: 0.875rem; border-radius: 10px; }
.btn-lg { padding: 17px 28px; font-size: 1.05rem; border-radius: 14px; }
.btn-row { display: flex; flex-wrap: wrap; gap: 14px; align-items: center; }
.link-arrow { display: inline-flex; align-items: center; gap: 8px; font-weight: 600; color: var(--accent-text); }
.link-arrow svg { width: 16px; height: 16px; transition: transform 0.25s var(--ease); }
.link-arrow:hover svg { transform: translateX(4px); }

/* ---------- Header / nav ---------- */
.site-header { position: sticky; top: 0; z-index: 50; border-bottom: 1px solid transparent; transition: border-color 0.3s; }
/* Blur lives on a pseudo-element: a backdrop-filter on the header itself would make it the
   containing block for the fixed mobile nav and would composite the dropdown oddly. */
.site-header::before { content: ""; position: absolute; inset: 0; z-index: -1; background: rgba(7, 10, 18, 0.72); -webkit-backdrop-filter: saturate(160%) blur(14px); backdrop-filter: saturate(160%) blur(14px); transition: background 0.3s; }
.site-header.is-scrolled { border-bottom-color: var(--border); }
.site-header.is-scrolled::before { background: rgba(7, 10, 18, 0.88); }
.nav-wrap { display: flex; align-items: center; justify-content: space-between; height: var(--nav-h); gap: 24px; }
.brand { display: inline-flex; align-items: center; gap: 10px; color: var(--text); font-family: var(--font-display); font-weight: 700; font-size: 1.25rem; letter-spacing: -0.03em; }
.brand:hover { color: #fff; }
.brand-mark { width: 30px; height: 30px; }
.brand-name span { font-weight: 400; color: var(--muted); margin-left: 6px; letter-spacing: -0.01em; }
.site-nav ul { list-style: none; margin: 0; padding: 0; display: flex; align-items: center; gap: 4px; }
.site-nav li { margin: 0; position: relative; }
.nav-link {
  display: inline-flex; align-items: center; gap: 6px; padding: 10px 14px; border-radius: 10px;
  color: var(--text-2); font-weight: 500; font-size: 0.95rem; background: none; border: 0; cursor: pointer; font-family: var(--font-body);
  transition: color 0.2s, background 0.2s;
}
.nav-link:hover, .nav-link[aria-expanded="true"] { color: #fff; background: var(--surface-2); }
.nav-link[aria-current="page"] { color: #fff; }
.nav-link svg { width: 14px; height: 14px; transition: transform 0.25s var(--ease); }
.nav-link[aria-expanded="true"] svg { transform: rotate(180deg); }

.menu {
  position: absolute; top: calc(100% + 10px); left: 0; width: 640px;
  background: #0d1220; border: 1px solid var(--border-2); border-radius: 16px; padding: 10px;
  box-shadow: var(--shadow-lg); display: grid; grid-template-columns: 1fr 1fr; gap: 4px;
  opacity: 0; visibility: hidden; transform: translateY(8px);
  transition: opacity 0.2s, transform 0.25s var(--ease), visibility 0.2s;
}
.has-menu.is-open .menu, .has-menu:hover .menu, .has-menu:focus-within .menu { opacity: 1; visibility: visible; transform: none; }
.menu a { display: grid; grid-template-columns: 38px 1fr; gap: 12px; padding: 12px; border-radius: 12px; color: var(--text); align-items: start; }
.menu a:hover { background: var(--surface-2); }
.menu a .ico { width: 38px; height: 38px; border-radius: 10px; background: var(--accent-soft); display: grid; place-items: center; color: var(--accent-text); }
.menu a .ico svg { width: 20px; height: 20px; }
.menu a strong { display: block; font-size: 0.95rem; font-weight: 600; margin-bottom: 2px; }
.menu a span.desc { display: block; font-size: 0.82rem; color: var(--muted); line-height: 1.4; }
.menu .menu-all { grid-column: 1 / -1; display: flex; justify-content: space-between; align-items: center; padding: 12px 14px; border-top: 1px solid var(--border); border-radius: 0 0 12px 12px; margin-top: 4px; font-weight: 600; color: var(--accent-text); }
.menu .menu-all:hover { background: transparent; color: #fff; }
.menu .menu-all svg { width: 16px; height: 16px; }

.nav-actions { display: flex; align-items: center; gap: 10px; }
.nav-phone { color: var(--text-2); font-weight: 500; font-size: 0.92rem; padding: 10px 12px; font-family: var(--font-mono); font-size: 0.85rem; }
.nav-phone:hover { color: #fff; }
.nav-burger { display: none; width: 44px; height: 44px; border-radius: 10px; border: 1px solid var(--border-2); background: var(--surface); cursor: pointer; flex-direction: column; gap: 5px; align-items: center; justify-content: center; }
.nav-burger span { display: block; width: 18px; height: 2px; background: #fff; border-radius: 2px; transition: transform 0.3s var(--ease), opacity 0.2s; }
.nav-burger[aria-expanded="true"] span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.nav-burger[aria-expanded="true"] span:nth-child(2) { opacity: 0; }
.nav-burger[aria-expanded="true"] span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

/* ---------- Hero (home) ---------- */
.hero { position: relative; overflow: hidden; padding: clamp(64px, 8vw, 110px) 0 clamp(56px, 7vw, 96px); min-height: calc(100vh - var(--nav-h)); display: flex; align-items: center; }
.hero-stars { position: absolute; inset: 0; width: 100%; height: 100%; pointer-events: none; opacity: 0.9; }
.hero-glow { position: absolute; width: 900px; height: 900px; right: -300px; top: -250px; border-radius: 50%; background: radial-gradient(closest-side, rgba(76, 141, 255, 0.22), transparent 70%); pointer-events: none; filter: blur(10px); }
.hero-grid { display: grid; grid-template-columns: 1.1fr 0.9fr; gap: 56px; align-items: center; position: relative; }
.hero h1 { margin-bottom: 22px; max-width: 12ch; }
.hero h1 em { font-style: normal; background: var(--grad); -webkit-background-clip: text; background-clip: text; color: transparent; }
.hero .lede { max-width: 56ch; margin-bottom: 32px; }
.hero-facts { display: flex; flex-wrap: wrap; gap: 10px 28px; margin-top: 40px; padding-top: 28px; border-top: 1px solid var(--border); list-style: none; padding-left: 0; }
.hero-facts li { display: inline-flex; align-items: center; gap: 10px; color: var(--text-2); font-size: 0.92rem; margin: 0; }
.hero-facts li::before { content: ""; width: 6px; height: 6px; border-radius: 50%; background: var(--accent-2); box-shadow: 0 0 10px var(--accent-2); }

/* Phone mock */
.hero-visual { position: relative; display: flex; justify-content: center; }
.phone {
  width: 290px; height: 590px; border-radius: 44px; padding: 12px;
  background: linear-gradient(160deg, #1a2234, #0b0f1a); border: 1px solid rgba(255,255,255,0.18);
  box-shadow: var(--shadow-lg), inset 0 0 0 1px rgba(0,0,0,0.6);
  position: relative; z-index: 2; transform: rotate(-3deg);
}
.phone::after { content: ""; position: absolute; left: 50%; top: 20px; transform: translateX(-50%); width: 84px; height: 24px; border-radius: 12px; background: #050710; z-index: 3; }
.screen { width: 100%; height: 100%; border-radius: 34px; overflow: hidden; background: linear-gradient(180deg, #0f1728 0%, #0a0f1c 100%); display: flex; flex-direction: column; font-size: 12px; color: var(--text); }
.screen-status { display: flex; justify-content: space-between; padding: 14px 22px 0; font-family: var(--font-mono); font-size: 10px; color: var(--muted); }
.screen-status span:last-child { display: inline-flex; gap: 4px; align-items: center; }
.screen-status i { display: inline-block; width: 14px; height: 7px; border: 1px solid var(--muted); border-radius: 2px; position: relative; }
.screen-status i::after { content: ""; position: absolute; left: 1px; top: 1px; bottom: 1px; width: 70%; background: var(--success); border-radius: 1px; }
.screen-bar { display: flex; justify-content: space-between; align-items: center; padding: 34px 20px 10px; }
.screen-bar strong { font-family: var(--font-display); font-size: 16px; letter-spacing: -0.02em; }
.screen-bar .avatar { width: 28px; height: 28px; border-radius: 50%; background: var(--grad); }
.screen-card { margin: 8px 16px; padding: 16px; border-radius: 16px; background: linear-gradient(135deg, rgba(76,141,255,0.9), rgba(34,211,238,0.85)); color: #041020; }
.screen-card small { font-size: 10px; text-transform: uppercase; letter-spacing: 0.1em; opacity: 0.8; font-weight: 600; }
.screen-card .big { font-family: var(--font-display); font-size: 26px; font-weight: 700; letter-spacing: -0.03em; margin: 2px 0 8px; }
.screen-card .trend { display: inline-block; padding: 3px 8px; border-radius: 999px; background: rgba(4,16,32,0.18); font-size: 10px; font-weight: 600; }
.screen-chart { display: flex; align-items: flex-end; gap: 6px; height: 72px; margin: 10px 16px 6px; padding: 0 4px; }
.screen-chart b { flex: 1; border-radius: 4px 4px 2px 2px; background: rgba(255,255,255,0.12); }
.screen-chart b.hot { background: var(--grad); }
.screen-label { display: flex; justify-content: space-between; padding: 0 20px; font-family: var(--font-mono); font-size: 9px; color: var(--muted); }
.screen-list { padding: 10px 16px 0; display: grid; gap: 8px; }
.screen-row { display: grid; grid-template-columns: 32px 1fr auto; gap: 10px; align-items: center; padding: 10px; border-radius: 12px; background: rgba(255,255,255,0.04); border: 1px solid var(--border); }
.screen-row .dot { width: 32px; height: 32px; border-radius: 10px; background: var(--accent-soft); display: grid; place-items: center; color: var(--accent-text); }
.screen-row .dot svg { width: 16px; height: 16px; }
.screen-row .lines { display: grid; gap: 5px; }
.screen-row .lines i { display: block; height: 7px; border-radius: 4px; background: rgba(255,255,255,0.14); }
.screen-row .lines i:last-child { width: 60%; background: rgba(255,255,255,0.08); }
.screen-row .pill { font-family: var(--font-mono); font-size: 9px; padding: 3px 7px; border-radius: 999px; background: rgba(52,211,153,0.15); color: var(--success); }
.screen-nav { margin-top: auto; display: flex; justify-content: space-around; padding: 12px 10px 18px; border-top: 1px solid var(--border); }
.screen-nav i { width: 22px; height: 22px; border-radius: 6px; background: rgba(255,255,255,0.08); display: block; }
.screen-nav i.on { background: var(--accent); box-shadow: 0 0 14px rgba(76,141,255,0.6); }

.float-card {
  position: absolute; z-index: 3; display: flex; gap: 12px; align-items: center;
  padding: 12px 14px; border-radius: 14px; background: rgba(13, 18, 32, 0.9); border: 1px solid var(--border-2);
  box-shadow: var(--shadow-md); -webkit-backdrop-filter: blur(10px); backdrop-filter: blur(10px);
  font-size: 0.82rem; animation: floaty 7s ease-in-out infinite;
}
.float-card .ic { width: 34px; height: 34px; border-radius: 10px; display: grid; place-items: center; background: rgba(52,211,153,0.15); color: var(--success); }
.float-card .ic.blue { background: var(--accent-soft); color: var(--accent-text); }
.float-card .ic svg { width: 18px; height: 18px; }
.float-card strong { display: block; font-size: 0.85rem; }
.float-card span { color: var(--muted); font-family: var(--font-mono); font-size: 0.74rem; }
.float-1 { left: -28px; top: 232px; animation-delay: -2s; }
.float-2 { right: -28px; bottom: 150px; }
@keyframes floaty { 0%, 100% { transform: translateY(0); } 50% { transform: translateY(-10px); } }

/* ---------- Cards & grids ---------- */
.grid { display: grid; gap: 20px; }
.grid-2 { grid-template-columns: repeat(2, 1fr); }
.grid-3 { grid-template-columns: repeat(3, 1fr); }
.grid-4 { grid-template-columns: repeat(4, 1fr); }
.card {
  position: relative; background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius);
  padding: 28px; transition: transform 0.3s var(--ease), border-color 0.3s, background 0.3s;
}
.card:hover { border-color: var(--border-2); background: var(--surface-2); transform: translateY(-3px); }
.card.static:hover { transform: none; }
.card-icon { width: 46px; height: 46px; border-radius: 12px; background: var(--accent-soft); color: var(--accent-text); display: grid; place-items: center; margin-bottom: 20px; }
.card-icon svg { width: 22px; height: 22px; }
.card h3 { margin-bottom: 10px; }
.card p { color: var(--text-2); font-size: 0.95rem; }
.card .link-arrow { margin-top: 18px; font-size: 0.9rem; }
.card-link::after { content: ""; position: absolute; inset: 0; border-radius: inherit; }
.card-num { font-family: var(--font-mono); color: var(--accent-2); font-size: 0.8rem; letter-spacing: 0.1em; margin-bottom: 14px; }

.feature-list { list-style: none; padding: 0; margin: 0; display: grid; gap: 14px; }
.feature-list li { display: grid; grid-template-columns: 24px 1fr; gap: 12px; align-items: start; margin: 0; color: var(--text-2); }
.feature-list li svg { width: 20px; height: 20px; color: var(--accent-2); margin-top: 3px; }
.feature-list li strong { color: var(--text); display: block; margin-bottom: 2px; }
.checklist { list-style: none; padding: 0; margin: 0; display: grid; gap: 10px; }
.checklist li { display: grid; grid-template-columns: 20px 1fr; gap: 10px; align-items: start; margin: 0; color: var(--text-2); font-size: 0.97rem; }
.checklist li::before { content: ""; width: 18px; height: 18px; margin-top: 4px; border-radius: 50%; background: var(--accent-soft) url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%2322d3ee' stroke-width='3' stroke-linecap='round' stroke-linejoin='round'><path d='M20 6L9 17l-5-5'/></svg>") center / 10px no-repeat; }
.checklist.cols-2 { grid-template-columns: 1fr 1fr; }

.split { display: grid; grid-template-columns: 1fr 1fr; gap: clamp(32px, 6vw, 80px); align-items: center; }
.split > * { min-width: 0; }
.split.top { align-items: start; }
.sticky { position: sticky; top: calc(var(--nav-h) + 24px); }

.chips { display: flex; flex-wrap: wrap; gap: 8px; }
.chip { display: inline-flex; align-items: center; gap: 8px; padding: 7px 13px; border-radius: 999px; border: 1px solid var(--border); background: var(--surface); font-size: 0.86rem; color: var(--text-2); font-weight: 500; }
.chip .dot { width: 8px; height: 8px; border-radius: 50%; background: var(--accent); }
.stack-group { padding: 22px 0; border-top: 1px solid var(--border); display: grid; grid-template-columns: 200px 1fr; gap: 20px; align-items: start; }
.stack-group:last-child { border-bottom: 1px solid var(--border); }
.stack-group h4 { margin: 4px 0 0; font-size: 0.95rem; }

/* Process steps */
.steps { display: grid; grid-template-columns: repeat(5, 1fr); gap: 18px; counter-reset: step; }
.step { position: relative; padding-top: 26px; }
.step::before { content: ""; position: absolute; top: 0; left: 0; right: 0; height: 1px; background: var(--border-2); }
.step::after { content: ""; position: absolute; top: -4px; left: 0; width: 9px; height: 9px; border-radius: 50%; background: var(--accent-2); box-shadow: 0 0 0 4px rgba(34,211,238,0.15); }
.step .n { font-family: var(--font-mono); font-size: 0.78rem; color: var(--accent-2); letter-spacing: 0.1em; margin-bottom: 10px; }
.step h3 { font-size: 1.1rem; margin-bottom: 8px; }
.step p { color: var(--text-2); font-size: 0.93rem; }

/* Timeline (process page) */
.timeline { position: relative; display: grid; gap: 8px; }
.timeline::before { content: ""; position: absolute; left: 23px; top: 10px; bottom: 10px; width: 1px; background: linear-gradient(180deg, var(--accent), var(--accent-2), transparent); }
.tl-item { position: relative; display: grid; grid-template-columns: 48px 1fr; gap: 22px; padding: 22px 0; }
.tl-item .tl-n { width: 48px; height: 48px; border-radius: 50%; border: 1px solid var(--border-2); background: #0d1220; display: grid; place-items: center; font-family: var(--font-mono); color: var(--accent-2); font-size: 0.85rem; position: relative; z-index: 1; }
.tl-item .tl-body { padding-top: 8px; }
.tl-item h3 { margin-bottom: 8px; }
.tl-item p { color: var(--text-2); }
.tl-meta { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; margin-top: 18px; }
.tl-meta > div { padding: 16px; border-radius: 12px; background: var(--surface); border: 1px solid var(--border); }
.tl-meta h4 { font-size: 0.78rem; font-family: var(--font-mono); font-weight: 500; text-transform: uppercase; letter-spacing: 0.12em; color: var(--muted); margin-bottom: 10px; }
.tl-meta ul { margin: 0; padding-left: 1.1em; color: var(--text-2); font-size: 0.93rem; }

/* FAQ */
.faq { border-top: 1px solid var(--border); }
.faq:last-of-type { border-bottom: 1px solid var(--border); }
.faq summary { list-style: none; cursor: pointer; display: flex; justify-content: space-between; align-items: center; gap: 20px; padding: 22px 0; font-family: var(--font-display); font-weight: 600; font-size: 1.05rem; color: var(--text); }
.faq summary::-webkit-details-marker { display: none; }
.faq summary .plus { flex: none; width: 28px; height: 28px; border-radius: 50%; border: 1px solid var(--border-2); display: grid; place-items: center; transition: transform 0.3s var(--ease), background 0.2s; }
.faq summary .plus svg { width: 14px; height: 14px; }
.faq[open] summary .plus { transform: rotate(45deg); background: var(--accent-soft); border-color: transparent; }
.faq summary:hover { color: #fff; }
.faq .faq-body { padding: 0 0 24px; color: var(--text-2); max-width: 72ch; }
.faq .faq-body p { margin-bottom: 0.7em; }

/* CTA band */
.cta-band { position: relative; overflow: hidden; border-radius: 28px; border: 1px solid var(--border-2); padding: clamp(40px, 6vw, 72px); background: linear-gradient(135deg, rgba(76,141,255,0.16), rgba(34,211,238,0.06) 60%, rgba(255,255,255,0.02)); text-align: center; }
.cta-band::before { content: ""; position: absolute; inset: -1px; background: radial-gradient(600px 300px at 50% 120%, rgba(34,211,238,0.22), transparent 70%); pointer-events: none; }
.cta-band > * { position: relative; }
.cta-band h2 { max-width: 20ch; margin-inline: auto; }
.cta-band p { color: var(--text-2); max-width: 56ch; margin: 0 auto 28px; }
.cta-band .btn-row { justify-content: center; }
.cta-band .alt { margin-top: 20px; color: var(--muted); font-size: 0.92rem; }
.cta-band .alt a { color: var(--text); font-weight: 600; font-family: var(--font-mono); }

/* ---------- Page hero (inner pages) ---------- */
.page-hero { position: relative; padding: clamp(56px, 7vw, 96px) 0 clamp(40px, 5vw, 64px); overflow: hidden; }
.page-hero::before { content: ""; position: absolute; width: 700px; height: 700px; left: 50%; top: -420px; transform: translateX(-50%); border-radius: 50%; background: radial-gradient(closest-side, rgba(76,141,255,0.18), transparent 70%); pointer-events: none; }
.page-hero .container { position: relative; }
.breadcrumb { display: flex; flex-wrap: wrap; gap: 8px; align-items: center; list-style: none; padding: 0; margin: 0 0 22px; font-family: var(--font-mono); font-size: 0.78rem; color: var(--muted); }
.breadcrumb li { margin: 0; display: flex; gap: 8px; align-items: center; }
.breadcrumb li + li::before { content: "/"; opacity: 0.5; }
.breadcrumb a { color: var(--muted); }
.breadcrumb a:hover { color: var(--text); }
.page-hero h1 { max-width: 16ch; }
.page-hero .lede { max-width: 62ch; }
.page-hero .btn-row { margin-top: 30px; }
.page-hero.center { text-align: center; }
.page-hero.center h1, .page-hero.center .lede { margin-inline: auto; }
.page-hero.center .breadcrumb { justify-content: center; }
.page-hero.center .btn-row { justify-content: center; }

/* Service page extras */
.service-grid-3 .card h3 { font-size: 1.1rem; }
.definition-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 18px; }
.definition { padding: 24px; border-radius: 16px; background: var(--surface); border: 1px solid var(--border); }
.definition h4 { margin-bottom: 8px; font-size: 1.02rem; }
.definition p { color: var(--text-2); font-size: 0.94rem; margin: 0; }
.related { display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; }
.related a { display: flex; justify-content: space-between; align-items: center; gap: 12px; padding: 20px 22px; border-radius: 14px; border: 1px solid var(--border); background: var(--surface); color: var(--text); font-weight: 600; transition: border-color 0.2s, background 0.2s, transform 0.25s var(--ease); }
.related a:hover { border-color: var(--border-2); background: var(--surface-2); transform: translateY(-2px); }
.related a svg { width: 18px; height: 18px; color: var(--accent-text); flex: none; }
.phase { display: grid; grid-template-columns: 150px 1fr; gap: 24px; padding: 24px 0; border-top: 1px solid var(--border); }
.phase:last-child { border-bottom: 1px solid var(--border); }
.phase .ph-when { font-family: var(--font-mono); font-size: 0.8rem; color: var(--accent-2); letter-spacing: 0.08em; padding-top: 4px; }
.phase h4 { margin-bottom: 6px; }
.phase p { color: var(--text-2); font-size: 0.95rem; margin: 0; }
.callout { padding: 26px 28px; border-radius: 16px; border: 1px solid rgba(34,211,238,0.3); background: linear-gradient(135deg, rgba(76,141,255,0.1), rgba(34,211,238,0.05)); }
.callout h4 { display: flex; align-items: center; gap: 10px; margin-bottom: 8px; }
.callout h4 svg { width: 18px; height: 18px; color: var(--accent-2); }
.callout p { color: var(--text-2); margin: 0; font-size: 0.96rem; }
.channel { padding: 26px; border-radius: 16px; background: var(--surface); border: 1px solid var(--border); }
.channel .ch-head { display: flex; align-items: center; gap: 12px; margin-bottom: 12px; }
.channel .ch-dot { width: 12px; height: 12px; border-radius: 50%; box-shadow: 0 0 12px currentColor; background: currentColor; }
.channel h3 { margin: 0; font-size: 1.1rem; }
.channel p { color: var(--text-2); font-size: 0.94rem; }
.channel ul { margin: 12px 0 0; padding-left: 1.1em; color: var(--text-2); font-size: 0.9rem; }
.metrics { display: grid; grid-template-columns: repeat(5, 1fr); gap: 14px; }
.metric { padding: 18px; border-radius: 14px; border: 1px solid var(--border); background: var(--surface); }
.metric b { display: block; font-family: var(--font-display); font-size: 1.3rem; letter-spacing: -0.02em; margin-bottom: 4px; }
.metric span { font-size: 0.85rem; color: var(--muted); }
.plan { padding: 30px; border-radius: 20px; border: 1px solid var(--border); background: var(--surface); display: flex; flex-direction: column; }
.plan.featured { border-color: rgba(76,141,255,0.5); background: linear-gradient(180deg, rgba(76,141,255,0.1), var(--surface)); }
.plan .tag { align-self: flex-start; font-family: var(--font-mono); font-size: 0.72rem; letter-spacing: 0.12em; text-transform: uppercase; color: var(--accent-2); margin-bottom: 14px; }
.plan h3 { margin-bottom: 6px; }
.plan .for { color: var(--muted); font-size: 0.92rem; margin-bottom: 20px; }
.plan .checklist { margin-bottom: 24px; }
.plan .btn { margin-top: auto; }

/* Contact */
.form { display: grid; gap: 18px; }
.form-row { display: grid; grid-template-columns: 1fr 1fr; gap: 18px; }
.field { display: grid; gap: 8px; }
.field label { font-size: 0.88rem; font-weight: 600; color: var(--text-2); }
.field label .req { color: var(--accent-2); }
.field input, .field select, .field textarea {
  width: 100%; padding: 13px 14px; border-radius: 12px; border: 1px solid var(--border-2); background: rgba(255,255,255,0.03);
  color: var(--text); font-family: var(--font-body); font-size: 0.97rem; transition: border-color 0.2s, box-shadow 0.2s, background 0.2s;
}
.field input::placeholder, .field textarea::placeholder { color: rgba(141,151,173,0.6); }
.field input:focus, .field select:focus, .field textarea:focus { outline: none; border-color: var(--accent); box-shadow: 0 0 0 4px rgba(76,141,255,0.18); background: rgba(255,255,255,0.05); }
.field select { appearance: none; background-image: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%238d97ad' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'><path d='M6 9l6 6 6-6'/></svg>"); background-repeat: no-repeat; background-position: right 14px center; background-size: 16px; padding-right: 40px; }
.field select option { background: #0d1220; color: var(--text); }
.field textarea { min-height: 150px; resize: vertical; }
.toggles { display: flex; flex-wrap: wrap; gap: 8px; }
.toggle { position: relative; }
.toggle input { position: absolute; opacity: 0; inset: 0; cursor: pointer; }
.toggle span { display: inline-flex; padding: 8px 14px; border-radius: 999px; border: 1px solid var(--border-2); background: var(--surface); font-size: 0.88rem; color: var(--text-2); transition: all 0.2s; }
.toggle input:checked + span { background: var(--accent-soft); border-color: var(--accent); color: #fff; }
.toggle input:focus-visible + span { outline: 2px solid var(--accent); outline-offset: 2px; }
.form-note { font-size: 0.85rem; color: var(--muted); }
.form-status { display: none; padding: 16px 18px; border-radius: 12px; border: 1px solid rgba(52,211,153,0.4); background: rgba(52,211,153,0.1); color: #c7f5e2; font-size: 0.95rem; }
.form-status.show { display: block; }
.form-status.error { border-color: rgba(248,113,113,0.5); background: rgba(248,113,113,0.1); color: #fecaca; }
.hp { position: absolute; left: -9999px; width: 1px; height: 1px; opacity: 0; }
.contact-aside { display: grid; gap: 18px; }
.contact-card { padding: 24px; border-radius: 16px; border: 1px solid var(--border); background: var(--surface); }
.contact-card h3 { font-size: 0.78rem; font-family: var(--font-mono); font-weight: 500; letter-spacing: 0.14em; text-transform: uppercase; color: var(--accent-2); margin-bottom: 12px; }
.contact-card a.big { font-family: var(--font-display); font-size: 1.15rem; color: var(--text); font-weight: 600; letter-spacing: -0.01em; }
.contact-card a.big:hover { color: var(--accent-text); }
.contact-card p { color: var(--text-2); font-size: 0.95rem; }
.contact-card address { font-style: normal; color: var(--text-2); line-height: 1.55; }
.next-steps { list-style: none; padding: 0; margin: 0; display: grid; gap: 12px; counter-reset: ns; }
.next-steps li { display: grid; grid-template-columns: 28px 1fr; gap: 12px; align-items: start; color: var(--text-2); font-size: 0.94rem; margin: 0; }
.next-steps li::before { counter-increment: ns; content: counter(ns); width: 26px; height: 26px; border-radius: 50%; background: var(--accent-soft); color: var(--accent-text); display: grid; place-items: center; font-family: var(--font-mono); font-size: 0.75rem; }

/* Prose (legal pages) */
.prose { color: var(--text-2); }
.prose h2 { font-size: 1.5rem; margin-top: 2.2em; }
.prose h3 { font-size: 1.15rem; margin-top: 1.8em; }
.prose p, .prose li { font-size: 1rem; }
.prose ul { padding-left: 1.3em; }
.prose .updated { font-family: var(--font-mono); font-size: 0.8rem; color: var(--muted); margin-bottom: 2em; }

/* About */
.principles { display: grid; grid-template-columns: repeat(3, 1fr); gap: 18px; counter-reset: pr; }
.principle { padding: 26px; border-radius: 16px; border: 1px solid var(--border); background: var(--surface); }
.principle::before { counter-increment: pr; content: "0" counter(pr); font-family: var(--font-mono); color: var(--accent-2); font-size: 0.8rem; letter-spacing: 0.12em; display: block; margin-bottom: 14px; }
.principle h3 { font-size: 1.08rem; margin-bottom: 8px; }
.principle p { color: var(--text-2); font-size: 0.94rem; margin: 0; }
.team-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 16px; }
.role { padding: 20px; border-radius: 14px; border: 1px solid var(--border); background: var(--surface); }
.role h4 { font-size: 0.98rem; margin-bottom: 6px; }
.role p { color: var(--muted); font-size: 0.88rem; margin: 0; }
.map-card { border-radius: 20px; border: 1px solid var(--border-2); overflow: hidden; background: #0d1220; }
.map-card .map-visual { height: 240px; position: relative; background: radial-gradient(circle at 60% 50%, rgba(76,141,255,0.25), transparent 50%), linear-gradient(135deg, #0f1728, #0a0f1c); background-size: 100% 100%; }
.map-card .map-visual::before { content: ""; position: absolute; inset: 0; background-image: linear-gradient(rgba(255,255,255,0.05) 1px, transparent 1px), linear-gradient(90deg, rgba(255,255,255,0.05) 1px, transparent 1px); background-size: 32px 32px; }
.map-card .pin { position: absolute; left: 60%; top: 50%; transform: translate(-50%, -50%); width: 16px; height: 16px; border-radius: 50%; background: var(--accent-2); box-shadow: 0 0 0 8px rgba(34,211,238,0.2), 0 0 0 20px rgba(34,211,238,0.08); }
.map-card .map-body { padding: 24px; }
.map-card address { font-style: normal; color: var(--text-2); }

/* ---------- Footer ---------- */
.site-footer { border-top: 1px solid var(--border); background: #05070d; padding: clamp(56px, 7vw, 88px) 0 32px; margin-top: 0; }
.footer-grid { display: grid; grid-template-columns: 1.6fr 1fr 1fr 1.2fr; gap: 40px; }
.footer-grid h4 { font-size: 0.78rem; font-family: var(--font-mono); font-weight: 500; letter-spacing: 0.14em; text-transform: uppercase; color: var(--muted); margin-bottom: 18px; }
.footer-grid ul { list-style: none; padding: 0; margin: 0; display: grid; gap: 10px; }
.footer-grid li { margin: 0; }
.footer-grid a { color: var(--text-2); font-size: 0.95rem; }
.footer-grid a:hover { color: #fff; }
.footer-brand p { color: var(--muted); max-width: 36ch; margin: 16px 0 20px; font-size: 0.95rem; }
.footer-brand address { font-style: normal; color: var(--text-2); font-size: 0.92rem; line-height: 1.6; }
.footer-contact a { display: block; }
.footer-contact .mono { font-family: var(--font-mono); font-size: 0.9rem; }
.footer-bottom { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 12px; margin-top: 56px; padding-top: 24px; border-top: 1px solid var(--border); color: var(--muted); font-size: 0.85rem; }
.footer-bottom ul { list-style: none; display: flex; gap: 20px; padding: 0; margin: 0; }
.footer-bottom a { color: var(--muted); }
.footer-bottom a:hover { color: #fff; }

/* ---------- Reveal ---------- */
.reveal { opacity: 0; transform: translateY(16px); transition: opacity 0.7s var(--ease), transform 0.7s var(--ease); }
.reveal.in { opacity: 1; transform: none; }
.reveal-delay-1 { transition-delay: 0.08s; }
.reveal-delay-2 { transition-delay: 0.16s; }
.reveal-delay-3 { transition-delay: 0.24s; }

/* ---------- Responsive ---------- */
@media (max-width: 1100px) {
  .footer-grid { grid-template-columns: 1.4fr 1fr 1fr; }
  .footer-contact { grid-column: 1 / -1; }
  .steps { grid-template-columns: repeat(3, 1fr); row-gap: 36px; }
  .metrics { grid-template-columns: repeat(3, 1fr); }
  .team-grid { grid-template-columns: repeat(3, 1fr); }
}
@media (max-width: 960px) {
  .site-nav { position: fixed; inset: var(--nav-h) 0 0 0; background: rgba(7,10,18,0.98); padding: 16px var(--gutter) 40px; overflow-y: auto; display: none; }
  .site-nav.is-open { display: block; }
  .site-nav ul { flex-direction: column; align-items: stretch; gap: 2px; }
  .nav-link { width: 100%; justify-content: space-between; padding: 14px 10px; font-size: 1.05rem; border-radius: 12px; }
  .menu { position: static; width: auto; box-shadow: none; border: 0; background: transparent; padding: 0 0 8px 8px; grid-template-columns: 1fr; opacity: 1; visibility: visible; transform: none; display: none; }
  .has-menu.is-open .menu { display: grid; }
  .has-menu:hover .menu { display: none; }
  .has-menu.is-open:hover .menu { display: grid; }
  .menu .menu-all { border-top: 0; }
  .nav-burger { display: inline-flex; }
  .nav-phone { display: none; }
  .hero { min-height: 0; }
  .hero-grid { grid-template-columns: 1fr; gap: 48px; }
  .hero h1 { max-width: none; }
  .hero-visual { padding: 10px 0; }
  .grid-3, .grid-4 { grid-template-columns: repeat(2, 1fr); }
  .split { grid-template-columns: 1fr; }
  .sticky { position: static; }
  .principles, .related { grid-template-columns: 1fr 1fr; }
  .stack-group { grid-template-columns: 1fr; gap: 10px; }
}
@media (max-width: 640px) {
  :root { --gutter: 18px; --nav-h: 64px; }
  .brand-name span { display: none; }
  .nav-actions .btn { display: none; }
  .grid-2, .grid-3, .grid-4, .definition-grid, .form-row, .tl-meta, .principles, .related, .team-grid, .checklist.cols-2 { grid-template-columns: 1fr; }
  .steps { grid-template-columns: 1fr; }
  .metrics { grid-template-columns: 1fr 1fr; }
  .phone { width: 250px; height: 520px; transform: none; }
  .float-1 { left: -6px; top: 200px; }
  .float-2 { right: -6px; bottom: 120px; }
  .card { padding: 22px; }
  .phase { grid-template-columns: 1fr; gap: 6px; }
  .tl-item { grid-template-columns: 40px 1fr; gap: 14px; }
  .tl-item .tl-n { width: 40px; height: 40px; }
  .timeline::before { left: 19px; }
  .footer-grid { grid-template-columns: 1fr; gap: 32px; }
  .cta-band { border-radius: 20px; }
  .btn-row .btn { width: 100%; }
}
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .reveal { opacity: 1; transform: none; transition: none; }
  .float-card { animation: none; }
  *, *::before, *::after { transition-duration: 0.01ms !important; animation-duration: 0.01ms !important; }
}

/* Mobile-only navigation items */
.nav-mobile-only { display: none; }
@media (max-width: 960px) {
  .nav-mobile-only { display: block; margin-top: 6px; }
  .nav-mobile-only .btn { width: 100%; margin-top: 10px; }
}
