/* ============================================================
   SEGUROCLOUD — Design System
   v1.2  ·  Dark enterprise + interaction layer  ·  see DESIGN-SYSTEM.md
   ============================================================ */

/* ---------- 1. TOKENS ---------- */
:root {
  /* Canvas & surfaces — a blue-shifted ink drawn from the logo */
  --ink-950: #04080D;
  --ink-900: #060B12;
  --ink-850: #09111A;
  --ink-800: #0C1620;
  --ink-750: #101C28;
  --ink-700: #152532;
  --line-weak: rgba(150, 205, 240, 0.08);
  --line: rgba(150, 205, 240, 0.14);
  --line-strong: rgba(150, 205, 240, 0.24);

  /* Type */
  --fg: #E8F1F8;
  --fg-2: #9BAFC0;
  --fg-3: #7C90A2;   /* AA on every surface (>=5.2:1) */
  --fg-4: #56697A;   /* decorative / non-text only (>=3.3:1) */

  /* Accents */
  --azure: #2BB8F0;
  --azure-bright: #7CD9FA;
  --azure-deep: #0B3448;
  --azure-wash: rgba(43, 184, 240, 0.10);
  --amber: #F5A65B;
  --amber-wash: rgba(245, 166, 91, 0.12);
  --rose: #FF7A6B;
  --rose-wash: rgba(255, 122, 107, 0.12);

  /* Type families */
  --font-display: "Instrument Sans", "Helvetica Neue", Arial, sans-serif;
  --font-body: "Inter", "Helvetica Neue", Arial, sans-serif;
  --font-mono: "JetBrains Mono", ui-monospace, SFMono-Regular, Menlo, monospace;

  /* Scale — 8px grid */
  --s1: 4px;  --s2: 8px;   --s3: 12px;  --s4: 16px;  --s5: 24px;
  --s6: 32px; --s7: 48px;  --s8: 64px;  --s9: 96px;  --s10: 128px;

  /* Radii */
  --r-sm: 6px;  --r-md: 10px;  --r-lg: 16px;  --r-xl: 24px;  --r-pill: 999px;

  /* Motion */
  --ease: cubic-bezier(0.22, 1, 0.36, 1);
  --fast: 160ms;  --mid: 280ms;  --slow: 520ms;

  /* Layout */
  --wrap: 1200px;
  --wrap-wide: 1360px;
  --nav-h: 68px;
}

/* ---------- 2. RESET ---------- */
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; scroll-padding-top: 96px; }
body {
  margin: 0;
  background: var(--ink-900);
  color: var(--fg);
  font-family: var(--font-body);
  font-size: 16px;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
  overflow-x: hidden;
}
img, svg { max-width: 100%; display: block; }
a { color: inherit; text-decoration: none; }
button { font: inherit; color: inherit; background: none; border: 0; cursor: pointer; }
ul { margin: 0; padding: 0; list-style: none; }
h1, h2, h3, h4, h5 { margin: 0; font-family: var(--font-display); font-weight: 600; letter-spacing: -0.02em; line-height: 1.08; }
p { margin: 0; }
::selection { background: var(--azure); color: var(--ink-950); }
:focus-visible { outline: 2px solid var(--azure); outline-offset: 3px; border-radius: 4px; }

/* ---------- 3. TYPE SCALE ---------- */
.t-display { font-size: clamp(2rem, 4.4vw, 3.6rem); letter-spacing: -0.035em; }
.t-h1      { font-size: clamp(2.2rem, 4.6vw, 3.4rem); letter-spacing: -0.03em; }
.t-h2      { font-size: clamp(1.75rem, 3.2vw, 2.5rem); letter-spacing: -0.025em; }
.t-h3      { font-size: clamp(1.25rem, 2vw, 1.5rem); letter-spacing: -0.018em; }
.t-h4      { font-size: 1.0625rem; letter-spacing: -0.012em; line-height: 1.35; }
.t-lead    { font-size: clamp(1.0625rem, 1.5vw, 1.1875rem); color: var(--fg-2); line-height: 1.65; }
.t-body    { font-size: 0.9375rem; color: var(--fg-2); line-height: 1.7; }
.t-sm      { font-size: 0.875rem; color: var(--fg-2); line-height: 1.6; }
.t-xs      { font-size: 0.8125rem; color: var(--fg-3); line-height: 1.55; }

.eyebrow {
  font-family: var(--font-mono);
  font-size: 0.6875rem;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--azure);
  display: inline-flex;
  align-items: center;
  gap: var(--s2);
}
.eyebrow::before {
  content: "";
  width: 18px; height: 1px;
  background: var(--azure);
  opacity: 0.7;
}
.eyebrow--plain::before { display: none; }
.eyebrow--muted { color: var(--fg-3); }
.eyebrow--muted::before { background: var(--fg-4); }

.index {
  font-family: var(--font-mono);
  font-size: 0.6875rem;
  letter-spacing: 0.12em;
  color: var(--fg-3);
}

.grad {
  background: linear-gradient(96deg, var(--azure-bright) 0%, var(--azure) 42%, #BFE9FA 100%);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}
.dim { color: var(--fg-3); }

/* ---------- 4. LAYOUT ---------- */
.wrap { width: 100%; max-width: var(--wrap); margin-inline: auto; padding-inline: var(--s5); }
.wrap-wide { width: 100%; max-width: var(--wrap-wide); margin-inline: auto; padding-inline: var(--s5); }
.section { padding-block: clamp(64px, 9vw, 120px); position: relative; }
.section--tight { padding-block: clamp(48px, 6vw, 80px); }
.section--hair { border-top: 1px solid var(--line-weak); }

.stack > * + * { margin-top: var(--s4); }
.stack-sm > * + * { margin-top: var(--s2); }
.stack-lg > * + * { margin-top: var(--s5); }

.grid { display: grid; gap: var(--s5); }
.g-2 { grid-template-columns: repeat(2, 1fr); }
.g-3 { grid-template-columns: repeat(3, 1fr); }
.g-4 { grid-template-columns: repeat(4, 1fr); }
.split { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: clamp(32px, 5vw, 72px); align-items: center; }
/* Hero variant: text column carries the display type, so it gets the extra room.
   Declared as a class (never inline) so the mobile collapse can still override it. */
.split--hero { grid-template-columns: minmax(0, 1.06fr) minmax(0, 0.94fr); }
.head { max-width: 720px; }
.head--center { margin-inline: auto; text-align: center; }
.head .t-h2 { margin-top: var(--s4); }
.head .t-lead { margin-top: var(--s4); }

/* ---------- 5. SURFACE TEXTURES ---------- */
.mesh { position: absolute; inset: 0; pointer-events: none; overflow: hidden; }
.mesh::before {
  content: "";
  position: absolute;
  inset: -20%;
  background:
    radial-gradient(46% 38% at 18% 8%, rgba(43, 184, 240, 0.13), transparent 62%),
    radial-gradient(40% 34% at 84% 22%, rgba(124, 217, 250, 0.07), transparent 64%),
    radial-gradient(52% 40% at 50% 100%, rgba(245, 166, 91, 0.045), transparent 66%);
  filter: blur(4px);
}
.rule-grid {
  position: absolute; inset: 0; pointer-events: none;
  background-image:
    linear-gradient(to right, var(--line-weak) 1px, transparent 1px),
    linear-gradient(to bottom, var(--line-weak) 1px, transparent 1px);
  background-size: 68px 68px;
  -webkit-mask-image: radial-gradient(78% 62% at 50% 30%, #000 0%, transparent 78%);
  mask-image: radial-gradient(78% 62% at 50% 30%, #000 0%, transparent 78%);
}
.noise { position: absolute; inset: 0; pointer-events: none; opacity: 0.4; mix-blend-mode: overlay;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='140' height='140'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.85' numOctaves='3'/%3E%3C/filter%3E%3Crect width='140' height='140' filter='url(%23n)' opacity='0.28'/%3E%3C/svg%3E");
}

/* ---------- 6. NAV ---------- */
.topstrip {
  background: linear-gradient(90deg, var(--azure-deep), #0D2130 58%, var(--ink-800));
  border-bottom: 1px solid var(--line-weak);
  font-size: 0.8125rem;
}
.topstrip .wrap-wide { display: flex; align-items: center; justify-content: space-between; gap: var(--s4); min-height: 38px; }
.topstrip-left { display: flex; align-items: center; gap: var(--s3); color: var(--fg-2); min-width: 0; white-space: nowrap; }
.topstrip-left > span:not(.pulse-dot) { overflow: hidden; text-overflow: ellipsis; }
.topstrip-left a { flex: none; }
.topstrip-right { white-space: nowrap; flex: none; }
.topstrip a { color: var(--azure-bright); font-weight: 500; }
.topstrip a:hover { text-decoration: underline; }
.pulse-dot { width: 7px; height: 7px; border-radius: 50%; background: var(--azure); box-shadow: 0 0 0 0 rgba(43,184,240,0.6); animation: pulse 2.4s var(--ease) infinite; flex: none; }
@keyframes pulse { 0% { box-shadow: 0 0 0 0 rgba(43,184,240,0.55); } 70% { box-shadow: 0 0 0 9px rgba(43,184,240,0); } 100% { box-shadow: 0 0 0 0 rgba(43,184,240,0); } }

.nav {
  position: sticky; top: 0; z-index: 60;
  background: rgba(7, 12, 10, 0.72);
  backdrop-filter: blur(16px) saturate(1.4);
  -webkit-backdrop-filter: blur(16px) saturate(1.4);
  border-bottom: 1px solid var(--line-weak);
}
.nav-inner { display: flex; align-items: center; gap: var(--s6); min-height: var(--nav-h); }
.nav-links { display: flex; align-items: center; gap: var(--s5); margin-left: auto; }
.nav-links a {
  font-size: 0.90625rem; color: var(--fg-2); font-weight: 450;
  padding: 6px 2px; position: relative; transition: color var(--fast) var(--ease);
}
.nav-links a::after {
  content: ""; position: absolute; left: 0; right: 0; bottom: -2px; height: 1px;
  background: var(--azure); transform: scaleX(0); transform-origin: left;
  transition: transform var(--mid) var(--ease);
}
.nav-links a:hover { color: var(--fg); }
.nav-links a:hover::after, .nav-links a[aria-current="page"]::after { transform: scaleX(1); }
.nav-links a[aria-current="page"] { color: var(--fg); }
.nav-cta { display: flex; align-items: center; gap: var(--s3); }
.nav-toggle { display: none; width: 40px; height: 40px; border: 1px solid var(--line); border-radius: var(--r-sm); align-items: center; justify-content: center; }
.nav-toggle span { display: block; width: 16px; height: 1.5px; background: var(--fg); position: relative; transition: var(--mid) var(--ease); }
.nav-toggle span::before, .nav-toggle span::after { content: ""; position: absolute; left: 0; width: 16px; height: 1.5px; background: var(--fg); transition: var(--mid) var(--ease); }
.nav-toggle span::before { top: -5px; }
.nav-toggle span::after { top: 5px; }
.nav.is-open .nav-toggle span { background: transparent; }
.nav.is-open .nav-toggle span::before { top: 0; transform: rotate(45deg); }
.nav.is-open .nav-toggle span::after { top: 0; transform: rotate(-45deg); }

/* Logo */
.logo { display: inline-flex; align-items: center; flex: none; }
/* Wordmark ships as a bitmap at 3x, scaled by height so it stays crisp. */
.logo-img { height: 26px; width: auto; display: block; }
.logo-img--lg { height: 30px; }
.logo:hover .logo-img { opacity: 0.88; transition: opacity var(--fast) var(--ease); }

/* ---------- 7. BUTTONS ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: var(--s2);
  height: 42px; padding-inline: var(--s5);
  border-radius: var(--r-pill);
  font-size: 0.90625rem; font-weight: 550; letter-spacing: -0.005em;
  transition: transform var(--fast) var(--ease), background var(--fast) var(--ease), border-color var(--fast) var(--ease), box-shadow var(--fast) var(--ease);
  white-space: nowrap;
}
.btn:active { transform: translateY(1px); }
.btn--primary { background: var(--azure); color: #03121A; box-shadow: 0 1px 0 rgba(255,255,255,0.24) inset, 0 8px 24px -10px rgba(43,184,240,0.7); }
.btn--primary:hover { background: var(--azure-bright); box-shadow: 0 1px 0 rgba(255,255,255,0.3) inset, 0 12px 30px -10px rgba(43,184,240,0.85); }
.btn--ghost { border: 1px solid var(--line-strong); color: var(--fg); background: rgba(255,255,255,0.02); }
.btn--ghost:hover { border-color: var(--azure); color: var(--azure-bright); background: var(--azure-wash); }
.btn--quiet { color: var(--fg-2); padding-inline: var(--s3); }
.btn--quiet:hover { color: var(--fg); }
.btn--alert { border: 1px solid rgba(255,122,107,0.4); color: #FFB0A5; background: var(--rose-wash); }
.btn--alert:hover { border-color: var(--rose); color: #fff; }
.btn--lg { height: 50px; padding-inline: var(--s6); font-size: 0.96875rem; }
.btn--block { width: 100%; }
.btn-row { display: flex; flex-wrap: wrap; gap: var(--s3); }

.arrow-link { display: inline-flex; align-items: center; gap: 7px; font-size: 0.875rem; font-weight: 500; color: var(--azure); transition: gap var(--fast) var(--ease); }
.arrow-link:hover { gap: 12px; color: var(--azure-bright); }
.arrow-link svg { transition: transform var(--fast) var(--ease); }

/* ---------- 8. CARD SYSTEM ---------- */
/* Signature device: notched top-right corner + hairline border */
.card {
  position: relative;
  background: linear-gradient(168deg, var(--ink-800), var(--ink-850) 70%);
  border: 1px solid var(--line);
  border-radius: var(--r-lg);
  padding: var(--s6);
  transition: border-color var(--mid) var(--ease), transform var(--mid) var(--ease), background var(--mid) var(--ease);
  overflow: hidden;
}
.card::after {
  content: ""; position: absolute; inset: 0; border-radius: inherit; pointer-events: none;
  background: radial-gradient(120% 90% at 0% 0%, rgba(43,184,240,0.09), transparent 55%);
  opacity: 0; transition: opacity var(--mid) var(--ease);
}
.card:hover { border-color: var(--line-strong); transform: translateY(-3px); }
.card:hover::after { opacity: 1; }
.card--flat { background: var(--ink-850); }
.card--flat:hover { transform: none; }
.card--tint { background: linear-gradient(168deg, rgba(43,184,240,0.09), var(--ink-850) 66%); border-color: rgba(43,184,240,0.24); }
.card--pad-sm { padding: var(--s5); }

.card-icon {
  width: 44px; height: 44px; border-radius: var(--r-md);
  display: grid; place-items: center;
  background: var(--azure-wash);
  border: 1px solid rgba(43,184,240,0.22);
  color: var(--azure);
  margin-bottom: var(--s5);
}
.card-icon--amber { background: var(--amber-wash); border-color: rgba(245,166,91,0.24); color: var(--amber); }
.card-icon--rose { background: var(--rose-wash); border-color: rgba(255,122,107,0.24); color: var(--rose); }

.tag {
  display: inline-flex; align-items: center; gap: 6px;
  font-family: var(--font-mono); font-size: 0.6875rem; letter-spacing: 0.1em; text-transform: uppercase;
  padding: 4px 10px; border-radius: var(--r-pill);
  border: 1px solid var(--line); color: var(--fg-3); background: rgba(255,255,255,0.02);
}
.tag--azure { color: var(--azure); border-color: rgba(43,184,240,0.3); background: var(--azure-wash); }
.tag--amber { color: var(--amber); border-color: rgba(245,166,91,0.3); background: var(--amber-wash); }

/* Feature chip list */
.chips { display: flex; flex-wrap: wrap; gap: var(--s2); }
.chip {
  font-size: 0.8125rem; color: var(--fg-2);
  padding: 5px 11px; border-radius: var(--r-sm);
  background: rgba(255,255,255,0.03); border: 1px solid var(--line-weak);
}

/* Checklist */
.checks { display: grid; gap: 10px; }
.checks li { display: grid; grid-template-columns: 18px 1fr; gap: 10px; align-items: start; font-size: 0.90625rem; color: var(--fg-2); }
.checks svg { margin-top: 5px; color: var(--azure); flex: none; }
.checks--muted svg { color: var(--fg-4); }

/* ---------- 9. METRICS ---------- */
.metric-row { display: grid; grid-template-columns: repeat(4, 1fr); gap: 1px; background: var(--line-weak); border: 1px solid var(--line-weak); border-radius: var(--r-lg); overflow: hidden; }
.metric { background: var(--ink-850); padding: var(--s6) var(--s5); text-align: center; }
.metric-val { font-family: var(--font-display); font-size: clamp(1.8rem, 3.4vw, 2.6rem); font-weight: 600; letter-spacing: -0.04em; line-height: 1; color: var(--fg); }
.metric-val em { font-style: normal; color: var(--azure); }
.metric-row--3 { grid-template-columns: repeat(3, 1fr); }
.metric-key { margin-top: 10px; font-family: var(--font-mono); font-size: 0.6875rem; letter-spacing: 0.13em; text-transform: uppercase; color: var(--fg-3); }
.metric-note { margin-top: 6px; font-size: 0.8125rem; color: var(--fg-3); }

.stat-inline { display: flex; align-items: baseline; gap: 10px; }
.stat-inline b { font-family: var(--font-display); font-size: 1.75rem; font-weight: 600; letter-spacing: -0.03em; color: var(--azure); white-space: nowrap; }

/* Inline stat trio — grid so it never orphans a divider */
.stat-trio { display: grid; grid-template-columns: repeat(3, auto); gap: var(--s6); justify-content: start; }
.stat-trio > div { position: relative; }
.stat-trio > div + div { padding-left: var(--s6); }
.stat-trio > div + div::before { content: ""; position: absolute; left: 0; top: 4px; bottom: 4px; width: 1px; background: var(--line); }

/* Card fill helpers — keeps CTAs and stat rows on a common baseline */
.card--fill { display: flex; flex-direction: column; }
.push { margin-top: auto; }

/* ---------- 10. MARQUEE ---------- */
.marquee { overflow: hidden; -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; gap: var(--s9); width: max-content; animation: slide 46s linear infinite; }
.marquee:hover .marquee-track { animation-play-state: paused; }
@keyframes slide { to { transform: translateX(-50%); } }
.marquee-item { font-family: var(--font-display); font-size: 1.0625rem; font-weight: 550; letter-spacing: -0.01em; color: var(--fg-3); white-space: nowrap; transition: color var(--fast) var(--ease); }
.marquee-item:hover { color: var(--fg-2); }

/* ---------- 11. TABLE ---------- */
.table-scroll { overflow-x: auto; border: 1px solid var(--line); border-radius: var(--r-lg); background: var(--ink-850); }
table.cmp { width: 100%; border-collapse: collapse; min-width: 720px; font-size: 0.90625rem; }
table.cmp th, table.cmp td { padding: 15px var(--s5); text-align: left; border-bottom: 1px solid var(--line-weak); }
table.cmp thead th { font-family: var(--font-mono); font-size: 0.6875rem; letter-spacing: 0.12em; text-transform: uppercase; color: var(--fg-3); background: var(--ink-800); position: sticky; top: 0; }
table.cmp tbody th { font-weight: 450; color: var(--fg-2); }
table.cmp td { text-align: center; color: var(--fg-2); }
table.cmp td:first-child { text-align: left; }
table.cmp tr:last-child th, table.cmp tr:last-child td { border-bottom: 0; }
table.cmp tbody tr:hover { background: rgba(255,255,255,0.02); }
.yes { color: var(--azure); }
.no { color: var(--fg-4); }
.cell-note { display: block; font-size: 0.75rem; color: var(--fg-3); margin-top: 2px; }

/* ---------- 12. ACCORDION ---------- */
.acc { border-top: 1px solid var(--line-weak); }
.acc-item { border-bottom: 1px solid var(--line-weak); }
.acc-btn { display: flex; width: 100%; align-items: center; justify-content: space-between; gap: var(--s4); padding: var(--s5) 0; text-align: left; font-family: var(--font-display); font-size: 1.0625rem; font-weight: 550; letter-spacing: -0.015em; transition: color var(--fast) var(--ease); }
.acc-btn:hover { color: var(--azure); }
.acc-sign { position: relative; width: 16px; height: 16px; flex: none; }
.acc-sign::before, .acc-sign::after { content: ""; position: absolute; background: var(--azure); transition: transform var(--mid) var(--ease); }
.acc-sign::before { top: 7.5px; left: 0; width: 16px; height: 1.5px; }
.acc-sign::after { left: 7.5px; top: 0; width: 1.5px; height: 16px; }
.acc-item.is-open .acc-sign::after { transform: scaleY(0); }
.acc-panel { display: grid; grid-template-rows: 0fr; transition: grid-template-rows var(--mid) var(--ease); }
.acc-item.is-open .acc-panel { grid-template-rows: 1fr; }
.acc-panel > div { overflow: hidden; }
.acc-panel p { padding-bottom: var(--s5); max-width: 68ch; }

/* ---------- 13. FORMS ---------- */
.field { display: grid; gap: 7px; }
.field label { font-family: var(--font-mono); font-size: 0.6875rem; letter-spacing: 0.12em; text-transform: uppercase; color: var(--fg-3); }
.field input, .field select, .field textarea {
  width: 100%; font: inherit; font-size: 0.9375rem; color: var(--fg);
  background: var(--ink-900); border: 1px solid var(--line); border-radius: var(--r-md);
  padding: 12px var(--s4); transition: border-color var(--fast) var(--ease), box-shadow var(--fast) var(--ease);
}
.field textarea { min-height: 128px; resize: vertical; }
.field input::placeholder, .field textarea::placeholder { color: var(--fg-3); }
.field input:focus, .field select:focus, .field textarea:focus { outline: none; border-color: var(--azure); box-shadow: 0 0 0 3px var(--azure-wash); }
.field select { appearance: none; background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='8' viewBox='0 0 12 8'%3E%3Cpath d='M1 1.5 6 6.5l5-5' stroke='%237C90A2' stroke-width='1.5' fill='none' stroke-linecap='round'/%3E%3C/svg%3E"); background-repeat: no-repeat; background-position: right 16px center; padding-right: 40px; }

/* ---------- 14. FOOTER ---------- */
.footer { border-top: 1px solid var(--line-weak); background: var(--ink-950); padding-block: var(--s9) var(--s6); }
.footer-grid { display: grid; grid-template-columns: 1.6fr repeat(4, 1fr); gap: var(--s7); }
.footer h5 { font-family: var(--font-mono); font-size: 0.6875rem; letter-spacing: 0.13em; text-transform: uppercase; color: var(--fg-3); font-weight: 400; margin-bottom: var(--s4); }
.footer-links { display: grid; gap: 11px; }
.footer-links a { font-size: 0.875rem; color: var(--fg-2); transition: color var(--fast) var(--ease); }
.footer-links a:hover { color: var(--azure); }
.footer-bottom { margin-top: var(--s8); padding-top: var(--s5); border-top: 1px solid var(--line-weak); display: flex; flex-wrap: wrap; gap: var(--s4); justify-content: space-between; align-items: center; font-size: 0.8125rem; color: var(--fg-3); }
.footer-legal { display: flex; flex-wrap: wrap; gap: var(--s5); }
.footer-legal a:hover { color: var(--fg-2); }

/* ---------- 15. UTILITIES ---------- */
.hr { height: 1px; background: var(--line-weak); border: 0; margin: 0; }
.center { text-align: center; }
.mt-0 { margin-top: 0 !important; }
.reveal { opacity: 0; transform: translateY(18px); transition: opacity var(--slow) var(--ease), transform var(--slow) var(--ease); }
.reveal.in { opacity: 1; transform: none; }
.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: -9999px; top: 0; z-index: 100; background: var(--azure); color: #03121A; padding: 10px 18px; border-radius: 0 0 var(--r-sm) 0; font-weight: 600; }
.skip:focus { left: 0; }

/* ---------- 16. RESPONSIVE ---------- */
@media (max-width: 1024px) {
  .g-4 { grid-template-columns: repeat(2, 1fr); }
  .metric-row, .metric-row--3 { grid-template-columns: repeat(2, 1fr); }
  .footer-grid { grid-template-columns: 1fr 1fr 1fr; gap: var(--s6); }
  .footer-brand { grid-column: 1 / -1; }
}
@media (max-width: 900px) {
  .nav-links {
    position: fixed; inset: calc(var(--nav-h) + 38px) 0 auto 0;
    flex-direction: column; align-items: stretch; gap: 0;
    background: var(--ink-850); border-bottom: 1px solid var(--line);
    padding: var(--s4) var(--s5) var(--s6);
    transform: translateY(-12px); opacity: 0; pointer-events: none;
    transition: opacity var(--mid) var(--ease), transform var(--mid) var(--ease);
    max-height: calc(100dvh - var(--nav-h) - 38px); overflow-y: auto;
  }
  .nav.is-open .nav-links { transform: none; opacity: 1; pointer-events: auto; }
  .nav-links a { padding: 14px 0; border-bottom: 1px solid var(--line-weak); font-size: 1rem; }
  .nav-links a::after { display: none; }
  .nav-toggle { display: flex; margin-left: auto; }
  .nav-cta .btn--ghost { display: none; }
  .nav-inner { gap: var(--s4); }
  .split { grid-template-columns: 1fr; }
  .g-3 { grid-template-columns: 1fr; }
  .g-2 { grid-template-columns: 1fr; }
}
@media (max-width: 640px) {
  .card { padding: var(--s5); }
  .g-4 { grid-template-columns: 1fr; }
  .metric-row, .metric-row--3 { grid-template-columns: 1fr; }
  .footer-grid { grid-template-columns: 1fr 1fr; }
  .topstrip-left span.hide-sm { display: none; }
  .topstrip-right { display: none; }
  .topstrip { font-size: 0.75rem; }
  /* Wordmark + CTA + toggle must fit 342px of content box. */
  .logo-img { height: 21px; }
  .logo-img--lg { height: 26px; }
  .nav-inner { gap: var(--s3); }
  .nav-cta { gap: var(--s2); }
  .nav-cta .btn--primary { height: 38px; padding-inline: var(--s4); font-size: 0.84rem; }
  .btn-row .btn { width: 100%; }
  .stat-trio { grid-template-columns: 1fr 1fr; gap: var(--s4) var(--s5); }
  .stat-trio > div + div { padding-left: 0; }
  .stat-trio > div + div::before { display: none; }
  .stat-trio > div:nth-child(2) { padding-left: var(--s5); }
  .stat-trio > div:nth-child(2)::before { display: block; }
}
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation-duration: 0.01ms !important; animation-iteration-count: 1 !important; transition-duration: 0.01ms !important; scroll-behavior: auto !important; }
  .reveal { opacity: 1; transform: none; }
}

/* ============================================================
   17. ICON SYSTEM
   24px grid, 1.8 stroke. .ic-node marks the accent detail.
   ============================================================ */
.ic {
  width: 22px; height: 22px; flex: none;
  fill: none; stroke: currentColor;
  stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round;
  vector-effect: non-scaling-stroke;
}
.ic-14 { width: 14px; height: 14px; stroke-width: 2.2; }
.ic-16 { width: 16px; height: 16px; stroke-width: 2; }
.ic-18 { width: 18px; height: 18px; }
.ic-28 { width: 28px; height: 28px; stroke-width: 1.6; }
.ic .ic-node { fill: var(--azure); stroke: none; }
.card-icon--amber .ic .ic-node { fill: var(--amber); }
.card-icon--rose .ic .ic-node { fill: var(--rose); }
/* Icon tile gets a subtle inner light and a lift that tracks the card */
.card-icon { position: relative; overflow: hidden; }
.card-icon::after {
  content: ""; position: absolute; inset: 0;
  background: linear-gradient(140deg, rgba(255,255,255,0.14), transparent 62%);
  opacity: 0; transition: opacity var(--mid) var(--ease);
}
.card:hover .card-icon::after { opacity: 1; }
.card:hover .card-icon { transform: translateY(-2px) rotate(-3deg); }
.card-icon { transition: transform var(--mid) var(--ease); }

/* ============================================================
   18. MICRO-INTERACTIONS
   ============================================================ */

/* Scroll progress, seated on the nav's lower edge */
.scroll-progress {
  position: fixed; top: 0; left: 0; height: 2px; width: 100%;
  transform: scaleX(0); transform-origin: 0 50%;
  background: linear-gradient(90deg, var(--azure), var(--azure-bright));
  z-index: 70; pointer-events: none;
  box-shadow: 0 0 12px rgba(43,184,240,0.6);
}

/* Cursor spotlight on cards — JS writes --mx / --my */
.card::before {
  content: ""; position: absolute; inset: 0; border-radius: inherit;
  pointer-events: none; opacity: 0;
  background: radial-gradient(340px circle at var(--mx, 50%) var(--my, 50%), rgba(43,184,240,0.10), transparent 42%);
  transition: opacity var(--mid) var(--ease);
  z-index: 0;
}
.card:hover::before { opacity: 1; }
.card > * { position: relative; z-index: 1; }

/* Magnetic buttons — JS writes --dx / --dy */
.btn { will-change: transform; }
.btn--magnet { transform: translate(var(--dx, 0px), var(--dy, 0px)); }
.btn--primary::after {
  content: ""; position: absolute; inset: 0; border-radius: inherit;
  background: linear-gradient(120deg, transparent 20%, rgba(255,255,255,0.35), transparent 80%);
  transform: translateX(-120%); opacity: 0;
}
.btn--primary { position: relative; overflow: hidden; }
.btn--primary:hover::after { animation: sheen 720ms var(--ease); }
@keyframes sheen { 0% { transform: translateX(-120%); opacity: .9 } 100% { transform: translateX(120%); opacity: 0 } }

/* Reveal: three flavours so sections don't all enter identically */
.reveal { opacity: 0; transform: translateY(18px); transition: opacity var(--slow) var(--ease), transform var(--slow) var(--ease); }
.reveal.in { opacity: 1; transform: none; }
.reveal--left { transform: translateX(-22px); }
.reveal--scale { transform: scale(0.965); }

/* SVG line-draw on entry */
.draw path, .draw line { stroke-dasharray: var(--len, 600); stroke-dashoffset: var(--len, 600); }
.draw.in path, .draw.in line { animation: draw 1.5s var(--ease) forwards; }
@keyframes draw { to { stroke-dashoffset: 0; } }

/* Back to top */
.to-top {
  position: fixed; right: 22px; bottom: 22px; z-index: 65;
  width: 44px; height: 44px; border-radius: 50%;
  display: grid; place-items: center;
  background: var(--ink-800); border: 1px solid var(--line-strong); color: var(--fg-2);
  opacity: 0; transform: translateY(12px) scale(0.9); pointer-events: none;
  transition: all var(--mid) var(--ease);
  backdrop-filter: blur(10px);
}
.to-top.on { opacity: 1; transform: none; pointer-events: auto; }
.to-top:hover { color: var(--azure); border-color: var(--azure); transform: translateY(-2px); }


/* ============================================================
   19. TABS
   ============================================================ */
.tabs { display: flex; gap: var(--s2); position: relative; border-bottom: 1px solid var(--line-weak); overflow-x: auto; scrollbar-width: none; }
.tabs::-webkit-scrollbar { display: none; }
.tab {
  position: relative; display: inline-flex; align-items: center; gap: var(--s2);
  padding: var(--s4) var(--s5); white-space: nowrap;
  font-size: 0.9375rem; font-weight: 500; color: var(--fg-3);
  transition: color var(--fast) var(--ease);
}
.tab:hover { color: var(--fg); }
.tab[aria-selected="true"] { color: var(--fg); }
.tab .ic { opacity: .55; transition: opacity var(--fast) var(--ease); }
.tab[aria-selected="true"] .ic { opacity: 1; color: var(--azure); }
.tab-ink {
  position: absolute; bottom: -1px; height: 2px; background: var(--azure);
  transition: transform var(--mid) var(--ease), width var(--mid) var(--ease);
  box-shadow: 0 0 10px rgba(43,184,240,.7); border-radius: 2px;
}
.tab-panel[hidden] { display: none !important; }
.tab-panel { animation: panelIn var(--mid) var(--ease); }
@keyframes panelIn { from { opacity: 0; transform: translateY(10px) } to { opacity: 1; transform: none } }

/* ============================================================
   20. CANVAS VISUALS
   ============================================================ */
.viz { position: relative; width: 100%; }
.viz canvas { display: block; width: 100%; height: 100%; }
.viz-legend { display: flex; flex-wrap: wrap; gap: var(--s4); align-items: center; }
.viz-key { display: inline-flex; align-items: center; gap: 7px; font-size: 0.8125rem; color: var(--fg-3); }
.viz-key i { width: 9px; height: 9px; border-radius: 50%; display: block; }

/* Simulator */
.sim-controls { display: grid; grid-template-columns: repeat(4, 1fr); gap: var(--s2); }
.sim-btn {
  text-align: left; padding: var(--s4); border-radius: var(--r-md);
  border: 1px solid var(--line); background: var(--ink-850);
  transition: all var(--fast) var(--ease);
}
.sim-btn:hover { border-color: var(--line-strong); background: var(--ink-800); }
.sim-btn[aria-pressed="true"] { border-color: var(--azure); background: var(--azure-wash); }
.sim-btn[aria-pressed="true"].is-attack { border-color: var(--amber); background: var(--amber-wash); }
.sim-btn .sim-t { display: block; font-size: 0.875rem; font-weight: 550; color: var(--fg); }
.sim-btn .sim-d { display: block; font-size: 0.75rem; color: var(--fg-3); margin-top: 3px; }
.sim-stats { display: grid; grid-template-columns: repeat(4, 1fr); gap: 1px; background: var(--line-weak); border: 1px solid var(--line-weak); border-radius: var(--r-md); overflow: hidden; }
.sim-stat { background: var(--ink-850); padding: var(--s4); }
.sim-stat b { display: block; font-family: var(--font-display); font-size: 1.5rem; font-weight: 600; letter-spacing: -0.03em; line-height: 1.1; font-variant-numeric: tabular-nums; }
.sim-stat span { display: block; font-family: var(--font-mono); font-size: 0.6875rem; letter-spacing: .1em; text-transform: uppercase; color: var(--fg-3); margin-top: 5px; }
.bar { height: 4px; border-radius: 2px; background: var(--ink-700); overflow: hidden; margin-top: 9px; }
.bar i { display: block; height: 100%; background: var(--azure); border-radius: 2px; transition: width 240ms linear, background 240ms linear; }

/* Globe */
.globe-wrap { position: relative; width: 100%; aspect-ratio: 1 / 1; max-width: 520px; margin-inline: auto; }
.globe-tip {
  position: absolute; pointer-events: none; z-index: 3;
  background: var(--ink-800); border: 1px solid var(--line-strong); border-radius: var(--r-sm);
  padding: 7px 11px; font-size: 0.8125rem; color: var(--fg); white-space: nowrap;
  opacity: 0; transform: translate(-50%, -140%); transition: opacity var(--fast) var(--ease);
  box-shadow: 0 10px 30px -12px rgba(0,0,0,.9);
}
.globe-tip.on { opacity: 1; }
.globe-tip em { font-style: normal; color: var(--azure); font-family: var(--font-mono); font-size: 0.75rem; }
.globe-wrap canvas { cursor: grab; }
.globe-wrap canvas:active { cursor: grabbing; }

/* Telemetry row sparkline */
.spark { width: 54px; height: 16px; opacity: .85; }

/* ============================================================
   21. RECOMMENDER
   ============================================================ */
.quiz-step { display: grid; gap: var(--s3); }
.quiz-opt {
  display: flex; align-items: center; gap: var(--s3); width: 100%; text-align: left;
  padding: var(--s4) var(--s5); border: 1px solid var(--line); border-radius: var(--r-md);
  background: var(--ink-850); transition: all var(--fast) var(--ease);
}
.quiz-opt:hover { border-color: var(--azure); background: var(--azure-wash); transform: translateX(4px); }
.quiz-opt .ic { color: var(--fg-3); }
.quiz-opt:hover .ic { color: var(--azure); }
.quiz-dots { display: flex; gap: 6px; }
.quiz-dots i { width: 22px; height: 3px; border-radius: 2px; background: var(--ink-700); transition: background var(--mid) var(--ease); }
.quiz-dots i.on { background: var(--azure); }
.quiz-result { animation: panelIn 420ms var(--ease); }

/* ============================================================
   22. MOTION SAFETY
   ============================================================ */
@media (prefers-reduced-motion: reduce) {
  .reveal, .reveal--left, .reveal--scale { opacity: 1 !important; transform: none !important; }
  .draw path, .draw line { stroke-dashoffset: 0 !important; animation: none !important; }
  .btn--magnet { transform: none !important; }
  .scroll-progress { display: none; }
  .card:hover .card-icon { transform: none; }
  .btn--primary:hover::after { animation: none; }
}

/* ============================================================
   23. RESPONSIVE ADDENDA
   ============================================================ */
@media (max-width: 900px) {
  .sim-controls { grid-template-columns: repeat(2, 1fr); }
  .sim-stats { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 640px) {
  .sim-controls { grid-template-columns: 1fr; }
  .to-top { right: 14px; bottom: 14px; }
  .tab { padding: var(--s4) var(--s4); font-size: 0.875rem; }
}

/* ============================================================
   24. LIVE FIGURES
   Generative canvas graphics, one per product. Each carries its
   own accent and a gradient wash at the base.
   ============================================================ */
.figure {
  position: relative; width: 100%; aspect-ratio: 5 / 4;
  border-radius: var(--r-md); overflow: hidden;
  background: linear-gradient(180deg, var(--ink-900), var(--ink-850));
  border: 1px solid var(--line-weak);
  isolation: isolate;
}
.figure canvas { position: absolute; inset: 0; }
/* base wash — the accent bleeds up from the floor of the frame */
.figure::after {
  content: ""; position: absolute; inset: 0; pointer-events: none;
  background: radial-gradient(72% 46% at 50% 108%, var(--fig-wash, rgba(43,184,240,0.34)), transparent 70%);
}
.figure--tall { aspect-ratio: 4 / 5; }
.figure--wide { aspect-ratio: 16 / 9; }
.card:hover .figure { border-color: var(--line); }

.fig-azure { --fig-wash: rgba(43,184,240,0.34); }
.fig-amber { --fig-wash: rgba(245,166,91,0.30); }
.fig-sky   { --fig-wash: rgba(111,201,255,0.30); }

/* Product card that leads with its figure */
.pcard { display: flex; flex-direction: column; padding: 0; overflow: hidden; }
.pcard .figure { border: 0; border-radius: 0; border-bottom: 1px solid var(--line-weak); }
.pcard-body { padding: var(--s6); display: flex; flex-direction: column; flex: 1; }
@media (max-width: 640px) { .pcard-body { padding: var(--s5); } }

/* ============================================================
   25. FORM VALIDATION STATES
   ============================================================ */
.field { position: relative; }
.field-err {
  display: block; font-size: 0.75rem; color: #FFB0A5; margin-top: 5px;
}
.field.has-error input,
.field.has-error textarea { border-color: var(--rose); }
.field.has-error input:focus,
.field.has-error textarea:focus { box-shadow: 0 0 0 3px var(--rose-wash); border-color: var(--rose); }

.form-status {
  font-size: 0.875rem; line-height: 1.55; padding: 11px var(--s4);
  border-radius: var(--r-md); border: 1px solid var(--line);
}
.form-status.is-ok    { color: var(--azure-bright); border-color: rgba(43,184,240,0.34); background: var(--azure-wash); }
.form-status.is-warn  { color: var(--amber);        border-color: rgba(245,166,91,0.34); background: var(--amber-wash); }
.form-status.is-error { color: #FFB0A5;             border-color: rgba(255,122,107,0.36); background: var(--rose-wash); }
.form-status:empty { display: none; }
button[type="submit"][disabled] { opacity: 0.6; cursor: default; }

/* ============================================================
   26. SINGLE-FILE ROUTER
   Used only by the published one-file build, where the seven pages
   live in one document and a hash router swaps between them.
   ============================================================ */
.page[hidden] { display: none !important; }
