/* RedSide Security - site stylesheet (2026 redesign)
   One system for every public page: tokens, layout, components, motion.
   Brand: RedSide red #f12c35 on white, near-black ink, one dark band.
   Motion follows a quiet micro-interaction spec: hero enters once on load, linked cards lift 2px,
   buttons step 1px and press, underlines draw; nothing reveals on scroll. */

@font-face {
  font-family: 'Inter';
  font-style: normal;
  font-weight: 400 800;
  font-display: swap;
  src: url('/static/fonts/inter-latin-var.woff2') format('woff2');
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}

/* ---------------------------------------------------------------- tokens */
:root {
  --brand: #f12c35;            /* logo red: accents, marks, red on dark */
  --action: #dc1f2a;           /* red for text and fills on light grounds (4.9:1 on white) */
  --action-hover: #bf1922;
  --brand-deep: #991b1b;
  --brand-tint: #fff1f1;
  --brand-tint-2: #ffe3e4;

  --ink: #14161b;
  --ink-2: #2c3038;
  --muted: #4a5059;            /* body grey: 8.1:1 on white, 7.6:1 on --surface */
  --line: #e6e7eb;
  --line-strong: #d3d5db;
  --bg: #ffffff;
  --surface: #f6f7f9;

  --dark: #0e1014;
  --dark-2: #161920;
  --dark-3: #1f232b;
  --dark-line: rgba(255, 255, 255, .09);
  --dark-ink: #f3f4f6;
  --dark-muted: #a9aeb8;       /* 8.5:1 on --dark */

  --font: 'Inter', ui-sans-serif, -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, 'Helvetica Neue', Arial, sans-serif;

  --r-sm: 8px;
  --r: 12px;
  --r-lg: 18px;
  --r-xl: 24px;

  --wrap: 1240px;
  --gutter: clamp(20px, 4.5vw, 48px);
  --pad-x: max(var(--gutter), calc((100% - var(--wrap)) / 2));
  --section-y: clamp(80px, 9vw, 128px);
  --nav-h: 72px;
  --topbar-h: 40px;

  --shadow-sm: 0 1px 2px rgba(20, 22, 27, .05);
  --shadow: 0 1px 2px rgba(20, 22, 27, .04), 0 8px 24px -12px rgba(20, 22, 27, .12);
  --shadow-lg: 0 2px 4px rgba(20, 22, 27, .04), 0 24px 48px -20px rgba(20, 22, 27, .22);

  --ease: cubic-bezier(.2, .8, .2, 1);
  --ease-enter: cubic-bezier(.22, 1, .36, 1);
  --m-in: 150ms;
  --m-out: 120ms;
  --m-press: 90ms;
  --m-card-in: 180ms;
  --m-image: 600ms;
}

/* ---------------------------------------------------------------- base */
*, *::before, *::after { box-sizing: border-box; }
* { margin: 0; padding: 0; }

html {
  -webkit-text-size-adjust: 100%;
  text-size-adjust: 100%;
  scroll-padding-top: calc(var(--nav-h) + var(--topbar-h) + 16px);
}
@media (prefers-reduced-motion: no-preference) { html { scroll-behavior: smooth; } }

body {
  font-family: var(--font);
  font-size: 1rem;
  line-height: 1.6;
  color: var(--ink);
  background: var(--bg);
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  text-rendering: optimizeLegibility;
  font-feature-settings: 'cv11', 'ss01';
  overflow-x: clip;
}

img, svg, video, canvas { display: block; max-width: 100%; }
img { height: auto; }
button, input, select, textarea { font: inherit; color: inherit; }
button { cursor: pointer; background: none; border: 0; }
a { color: inherit; text-decoration: none; }
ul[class], ol[class] { list-style: none; }
strong { font-weight: 650; }
h1, h2, h3, h4 { line-height: 1.12; letter-spacing: -.02em; font-weight: 700; text-wrap: balance; }
p { text-wrap: pretty; }
::selection { background: var(--brand); color: #fff; }

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

.visually-hidden {
  position: absolute !important; width: 1px; height: 1px; padding: 0; margin: -1px;
  overflow: hidden; clip: rect(0, 0, 0, 0); white-space: nowrap; border: 0;
}

.skip-link {
  position: fixed; left: 16px; top: 12px; z-index: 2000;
  padding: 12px 18px; border-radius: var(--r-sm);
  background: var(--ink); color: #fff; font-weight: 600;
  transform: translateY(-160%);
}
.skip-link:focus, .skip-link:focus-visible { transform: none; outline-color: var(--brand); }

/* links in running text: a faint hairline at rest, an ink line draws on hover */
p a:not([class]), .faq-answer a, .hero-content p a {
  color: var(--action);
  font-weight: 600;
  text-decoration: none;
  background-image: linear-gradient(currentColor, currentColor), linear-gradient(color-mix(in srgb, currentColor 35%, transparent), color-mix(in srgb, currentColor 35%, transparent));
  background-size: 0% 1px, 100% 1px;
  background-position: 0 100%, 0 100%;
  background-repeat: no-repeat;
  padding-bottom: 1px;
  transition: background-size var(--m-out) var(--ease), color var(--m-out) var(--ease);
}
p a:not([class]):is(:hover, :focus-visible), .faq-answer a:is(:hover, :focus-visible), .hero-content p a:is(:hover, :focus-visible) {
  background-size: 100% 1px, 100% 1px;
  color: var(--action-hover);
  transition-duration: var(--m-in);
}

/* ---------------------------------------------------------------- buttons */
.btn {
  --btn-bg: var(--action);
  --btn-ink: #fff;
  --btn-line: var(--action);
  display: inline-flex; align-items: center; justify-content: center; gap: .6em;
  min-height: 48px; padding: 0 22px;
  border-radius: var(--r);
  border: 1px solid var(--btn-line);
  background: var(--btn-bg); color: var(--btn-ink);
  font-size: .975rem; font-weight: 600; line-height: 1.2; letter-spacing: -.005em;
  white-space: nowrap; text-align: center;
  cursor: pointer;
  transition: background-color var(--m-out) var(--ease), border-color var(--m-out) var(--ease), color var(--m-out) var(--ease), transform var(--m-out) var(--ease), box-shadow var(--m-out) var(--ease);
}
.btn i { font-size: .85em; transition: transform var(--m-out) var(--ease); }
.btn-primary { box-shadow: 0 1px 0 rgba(255,255,255,.18) inset, 0 6px 16px -8px rgba(220, 31, 42, .6); }
.btn-primary:hover { --btn-bg: var(--action-hover); --btn-line: var(--action-hover); }
.btn-secondary { --btn-bg: #fff; --btn-ink: var(--ink); --btn-line: var(--line-strong); box-shadow: var(--shadow-sm); }
.btn-secondary:hover { --btn-bg: var(--surface); --btn-line: #b9bcc5; }
.btn:hover { transition-duration: var(--m-in); }
.btn:active { transform: translateY(1px) scale(.985); transition-duration: var(--m-press); }
.btn:disabled, .btn[aria-disabled="true"] { opacity: .55; cursor: not-allowed; transform: none; box-shadow: none; }
@media (hover: hover) and (pointer: fine) {
  .btn:not(:disabled):hover { transform: translateY(-1px); }
  .btn:not(:disabled):active { transform: translateY(1px) scale(.985); }
  .btn:hover .fa-arrow-right, a:hover > .fa-arrow-right, .service-link:hover i { transform: translateX(3px); }
}

/* ---------------------------------------------------------------- top bar + nav */
.navbar {
  position: sticky; top: 0; z-index: 1000;
  background: rgba(255, 255, 255, .86);
  -webkit-backdrop-filter: saturate(160%) blur(14px);
  backdrop-filter: saturate(160%) blur(14px);
  border-bottom: 1px solid transparent;
  transition: border-color var(--m-out) var(--ease), background-color var(--m-out) var(--ease);
}
.navbar.scrolled { border-bottom-color: var(--line); background: rgba(255, 255, 255, .94); }

.top-bar { background: var(--dark); color: var(--dark-ink); font-size: .8125rem; }
.top-bar-inner {
  min-height: var(--topbar-h);
  padding: 6px var(--pad-x);
  display: flex; align-items: center; justify-content: space-between; gap: 16px;
}
.top-bar-alert { display: flex; align-items: center; gap: 12px; min-width: 0; }
.top-bar-pill {
  display: inline-flex; align-items: center; gap: 8px;
  padding: 3px 10px 3px 8px; border-radius: 999px;
  background: rgba(241, 44, 53, .14); color: #ff8a8f;
  font-size: .6875rem; font-weight: 700; letter-spacing: .08em; text-transform: uppercase; white-space: nowrap;
}
.top-bar-pulse { position: relative; width: 7px; height: 7px; border-radius: 50%; background: var(--brand); flex: none; }
.top-bar-pulse::after {
  content: ''; position: absolute; inset: -4px; border-radius: 50%;
  border: 1.5px solid var(--brand); opacity: 0;
}
@media (prefers-reduced-motion: no-preference) {
  .top-bar-pulse::after { animation: live-ring 2.4s var(--ease) infinite; }
}
@keyframes live-ring { 0% { transform: scale(.4); opacity: .9; } 70%, 100% { transform: scale(1.5); opacity: 0; } }
.top-bar-headline { font-weight: 650; white-space: nowrap; }
.top-bar-sub { color: var(--dark-muted); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.top-bar-actions { display: flex; align-items: center; gap: 6px; flex: none; }
.top-bar-phone {
  display: inline-flex; align-items: center; gap: 8px;
  min-height: 30px; padding: 0 10px; border-radius: var(--r-sm);
  color: var(--dark-ink); font-weight: 600; font-variant-numeric: tabular-nums; white-space: nowrap;
  transition: background-color var(--m-out) var(--ease);
}
.top-bar-phone i { color: var(--brand); font-size: .8em; }
.top-bar-phone:hover { background: rgba(255, 255, 255, .08); transition-duration: var(--m-in); }
.top-bar-phone-region { font-size: .6875rem; font-weight: 700; letter-spacing: .06em; color: var(--dark-muted); }
.top-bar-cta {
  display: inline-flex; align-items: center; gap: 6px;
  min-height: 30px; padding: 0 12px; margin-left: 4px; border-radius: var(--r-sm);
  background: var(--action); color: #fff; font-size: .8125rem; font-weight: 650; white-space: nowrap;
  transition: background-color var(--m-out) var(--ease), transform var(--m-out) var(--ease);
}
.top-bar-cta:hover { background: var(--action-hover); transition-duration: var(--m-in); }
.top-bar-cta:active { transform: translateY(1px) scale(.985); }

.nav-bar-main { border-top: 1px solid transparent; }
.nav-container {
  height: var(--nav-h);
  padding: 0 var(--pad-x);
  display: flex; align-items: center; justify-content: space-between; gap: 24px;
}
.logo a { display: flex; align-items: center; min-height: 44px; }
.logo-icon { width: auto; height: 44px; }
.nav-menu { display: flex; align-items: center; gap: 2px; }
.nav-menu a {
  position: relative; display: inline-flex; align-items: center;
  min-height: 44px; padding: 0 12px;
  font-size: .9375rem; font-weight: 500; color: var(--ink-2);
  transition: color var(--m-out) var(--ease);
}
.nav-menu a::after {
  content: ''; position: absolute; left: 12px; right: 12px; bottom: 8px; height: 1px;
  background: currentColor; transform: scaleX(0); transform-origin: right;
  transition: transform var(--m-out) var(--ease);
}
.nav-menu a:hover { color: var(--ink); transition-duration: var(--m-in); }
.nav-menu a:hover::after { transform: scaleX(1); transform-origin: left; transition-duration: var(--m-in); }
.nav-menu a.active { color: var(--ink); }
.nav-menu a.active::after { transform: scaleX(1); height: 2px; background: var(--brand); }
.nav-menu li:last-child a {
  margin-left: 10px; padding: 0 18px; border-radius: var(--r);
  background: var(--ink); color: #fff; font-weight: 600;
  transition: background-color var(--m-out) var(--ease), transform var(--m-out) var(--ease);
}
.nav-menu li:last-child a::after { display: none; }
.nav-menu li:last-child a:hover { background: var(--action); }
@media (hover: hover) and (pointer: fine) { .nav-menu li:last-child a:hover { transform: translateY(-1px); } }
.nav-menu li:last-child a:active { transform: translateY(1px) scale(.985); }

/* featured nav item: AI Pentesting (NEW) - a tinted pill with a filled badge, set apart from the plain links */
.nav-menu .nav-new {
  gap: 8px; margin: 0 4px; padding: 0 8px 0 12px; border-radius: 999px;
  background: var(--brand-tint); border: 1px solid var(--brand-tint-2);
  color: var(--action); font-weight: 650;
  transition: background-color var(--m-out) var(--ease), border-color var(--m-out) var(--ease), color var(--m-out) var(--ease), transform var(--m-out) var(--ease);
}
.nav-menu .nav-new::after { display: none; }
.nav-menu .nav-new:hover { background: var(--brand-tint-2); border-color: #ffc9cc; color: var(--action-hover); }
@media (hover: hover) and (pointer: fine) { .nav-menu .nav-new:hover { transform: translateY(-1px); } }
.nav-menu .nav-new:active { transform: translateY(1px) scale(.985); }
.nav-new-icon { font-size: .8em; }
.nav-new-text { display: inline-flex; flex-direction: column; }
.nav-new-sub { display: none; }
.nav-new-badge {
  display: inline-flex; align-items: center; height: 20px; padding: 0 7px; border-radius: 999px;
  background: var(--action); color: #fff;
  font-size: .625rem; font-weight: 750; letter-spacing: .08em; text-transform: uppercase; line-height: 1;
}

.mobile-toggle {
  display: none; width: 44px; height: 44px; border-radius: var(--r);
  align-items: center; justify-content: center; font-size: 1.15rem; color: var(--ink);
  border: 1px solid var(--line);
}

/* ---------------------------------------------------------------- layout */
main { display: block; }
.section, .stats-section { position: relative; padding: var(--section-y) var(--pad-x); }
.section:nth-of-type(even) { background: var(--surface); }
#home + .section { background: var(--bg); }

.section-header { max-width: 760px; margin-bottom: clamp(40px, 5vw, 64px); }
.section-header--split { max-width: none; display: grid; grid-template-columns: minmax(0, 1.1fr) minmax(0, .9fr); gap: 20px 64px; align-items: start; }
.section-header-aside { padding-top: 38px; }
.section-header-aside > :first-child { margin-top: 0; }
.section-badge {
  display: inline-flex; align-items: center; gap: 10px;
  margin-bottom: 18px;
  font-size: .8125rem; font-weight: 650; letter-spacing: .08em; text-transform: uppercase; color: var(--action);
}
.section-badge::before { content: ''; width: 18px; height: 2px; border-radius: 2px; background: var(--brand); }
.section-title { font-size: clamp(2rem, 3.6vw, 3.1rem); letter-spacing: -.032em; line-height: 1.06; }
.section-subtitle { margin-top: 18px; font-size: clamp(1.0625rem, 1.3vw, 1.1875rem); line-height: 1.6; color: var(--muted); max-width: 640px; }
.section-header--split .section-subtitle { margin-top: 0; }

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

.services-highlights { display: flex; flex-wrap: wrap; gap: 8px 22px; margin-top: 24px; }
.services-highlights li { display: inline-flex; align-items: center; gap: 8px; font-size: .9375rem; font-weight: 550; color: var(--ink-2); }
.services-highlights i { color: var(--brand); font-size: .95em; }

/* ---------------------------------------------------------------- cards */
.card {
  position: relative;
  display: flex; flex-direction: column;
  padding: 28px;
  background: #fff;
  border: 1px solid var(--line);
  border-radius: var(--r-lg);
  transition: transform var(--m-out) var(--ease), border-color var(--m-out) var(--ease), box-shadow var(--m-out) var(--ease);
}
.section:nth-of-type(even) .card { background: #fff; }
.card > * { flex-shrink: 0; }
.card h3 { font-size: 1.1875rem; letter-spacing: -.015em; margin-bottom: 10px; }
.card p { color: var(--muted); font-size: .96875rem; line-height: 1.6; }
@media (hover: hover) and (pointer: fine) {
  .card:has(a, button):hover {
    transform: translateY(-2px);
    border-color: var(--line-strong);
    box-shadow: 0 18px 32px -24px rgba(20, 22, 27, .28);
    transition-duration: var(--m-card-in);
  }
}
.card-icon {
  display: grid; place-items: center; flex: none;
  width: 44px; height: 44px; border-radius: var(--r);
  background: var(--brand-tint); color: var(--action);
  font-size: 1.05rem;
  margin-bottom: 20px;
}

.service-link {
  display: inline-flex; align-items: center; gap: 8px;
  min-height: 44px; margin-top: auto; padding-top: 12px;
  font-size: .9375rem; font-weight: 600; color: var(--action);
  width: fit-content;
}
.service-link span, .service-link { background: none; }
.service-link i { font-size: .8em; transition: transform var(--m-out) var(--ease); }
.service-link:hover { color: var(--action-hover); }

/* ---------------------------------------------------------------- hero */
.hero {
  position: relative; isolation: isolate; overflow: clip;
  display: flex; align-items: flex-start;
  padding: clamp(32px, 3vw, 48px) var(--pad-x) clamp(56px, 6vw, 88px);
  background: var(--bg);
}
.hero-bg {
  position: absolute; inset: 0; z-index: -1;
  background:
    radial-gradient(60% 70% at 85% 30%, rgba(241, 44, 53, .10), transparent 70%),
    radial-gradient(40% 50% at 10% 90%, rgba(241, 44, 53, .05), transparent 70%),
    linear-gradient(var(--bg), var(--bg));
}
.hero-grid {
  position: absolute; inset: 0; z-index: -1;
  background-image: linear-gradient(to right, rgba(20, 22, 27, .055) 1px, transparent 1px), linear-gradient(to bottom, rgba(20, 22, 27, .055) 1px, transparent 1px);
  background-size: 56px 56px;
  -webkit-mask-image: radial-gradient(75% 80% at 70% 40%, #000 20%, transparent 75%);
  mask-image: radial-gradient(75% 80% at 70% 40%, #000 20%, transparent 75%);
}
.hero-inner {
  width: 100%;
  display: grid; grid-template-columns: minmax(0, 1.05fr) minmax(0, .95fr);
  gap: clamp(40px, 5vw, 80px); align-items: center;
}
.hero-content { max-width: 640px; }
.hero-badge {
  display: inline-flex; align-items: center; gap: 10px;
  padding: 6px 14px 6px 8px; margin-bottom: 26px;
  border: 1px solid var(--brand-tint-2); border-radius: 999px; background: #fff;
  font-size: .875rem; font-weight: 600; color: var(--ink-2);
  box-shadow: var(--shadow-sm);
}
.hero-badge i { display: grid; place-items: center; width: 24px; height: 24px; border-radius: 50%; background: var(--brand-tint); color: var(--action); font-size: .75rem; }
.hero h1 {
  font-size: clamp(2.75rem, 5.6vw, 4.75rem);
  line-height: 1.02; letter-spacing: -.042em; font-weight: 750;
  color: var(--ink);
}
.hero h1 .hl { color: var(--brand); }
.hero-content > p {
  margin-top: 24px; max-width: 560px;
  font-size: clamp(1.0625rem, 1.4vw, 1.25rem); line-height: 1.6; color: var(--muted);
}
.cta-buttons { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 36px; }
.cta-buttons .btn { min-height: 52px; padding: 0 26px; font-size: 1rem; }
.hero-facts {
  display: flex; flex-wrap: wrap; gap: 12px 32px;
  margin-top: 44px; padding-top: 28px; border-top: 1px solid var(--line);
}
.hero-facts li { display: flex; flex-direction: column; gap: 2px; }
.hero-facts strong { font-size: 1.375rem; font-weight: 700; letter-spacing: -.02em; color: var(--ink); font-variant-numeric: tabular-nums; }
.hero-facts span { font-size: .875rem; color: var(--muted); }

/* hero visual: the RedSide mark on a dark brand panel.
   On load (about 3 s, once) the outline draws, the two halves slide together and fill.
   Then one slow 10 s loop: a soft light sheen crosses the mark.
   Transform and opacity only; a pause button; a still mark under reduced motion. */
.hero-visual { position: relative; align-self: start; }  /* top-aligned with the hero text, not centred */
.report-mark { display: grid; place-items: center; width: 36px; height: 36px; border-radius: 10px; background: var(--dark); color: var(--brand); flex: none; }
.report-title { display: flex; flex-direction: column; min-width: 0; }
.report-title b { font-size: .9375rem; font-weight: 650; color: var(--ink); }
.report-title span { font-size: .8125rem; color: var(--muted); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.chip--ok { background: #e8f7ee; color: #146c3c; }
.chip--warn { background: #fff4e0; color: #8a4b00; }
.chip--crit { background: var(--brand-tint); color: #b3141d; }
.chip--high { background: #fff0e8; color: #a33a0b; }
.chip--med { background: #fff7db; color: #7a5a00; }
.chip--low { background: #eef1f6; color: #3c4656; }
.chip-dot { width: 6px; height: 6px; border-radius: 50%; background: currentColor; }
.chip {
  display: inline-flex; align-items: center; gap: 6px;
  padding: 4px 10px; border-radius: 999px;
  font-size: .75rem; font-weight: 650; white-space: nowrap;
}




.rl {
  --cycle: 10s;
  position: relative; isolation: isolate; overflow: hidden;
  border-radius: var(--r-xl); border: 1px solid #23262e;
  background:
    radial-gradient(60% 55% at 50% 42%, rgba(241, 44, 53, .16), transparent 70%),
    radial-gradient(80% 60% at 50% 120%, rgba(153, 27, 27, .35), transparent 70%),
    linear-gradient(to right, rgba(255, 255, 255, .035) 1px, transparent 1px) 0 0 / 32px 32px,
    linear-gradient(to bottom, rgba(255, 255, 255, .035) 1px, transparent 1px) 0 0 / 32px 32px,
    linear-gradient(180deg, #13151b, var(--dark));
  box-shadow: 0 1px 0 rgba(255, 255, 255, .06) inset, 0 40px 80px -36px rgba(14, 16, 20, .55), 0 0 0 8px rgba(255, 255, 255, .6);
}
.rl-stage {
  position: relative; aspect-ratio: 6 / 5;
  display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 0;
  padding: 32px 24px;
}
.rl-mark { width: 44%; height: auto; overflow: visible; filter: drop-shadow(0 18px 30px rgba(200, 24, 34, .35)); }
.rl-fill { fill: url(#rlFill); }
.rl-line { fill: none; stroke: #ff6a70; stroke-width: 6; stroke-linejoin: round; stroke-dasharray: 1; stroke-dashoffset: 0; opacity: 0; }
.rl-sheen { opacity: 0; will-change: transform, opacity; }
.rl-word { margin-top: 30px; font-size: clamp(1.375rem, 2.2vw, 1.75rem); font-weight: 750; letter-spacing: -.03em; color: #fff; line-height: 1; }
.rl-word span { font-weight: 500; color: var(--dark-muted); }
.rl-tags { display: flex; flex-wrap: wrap; justify-content: center; gap: 8px; margin-top: 18px; }
.rl-tags li { padding: 5px 11px; border-radius: 999px; font-size: .75rem; font-weight: 600; letter-spacing: .02em; color: #d3d6dc; border: 1px solid rgba(255, 255, 255, .12); background: rgba(255, 255, 255, .04); }

.rl-pause {
  position: absolute; right: 14px; bottom: 14px; z-index: 2;
  display: grid; place-items: center; width: 32px; height: 32px; border-radius: 50%;
  background: rgba(255, 255, 255, .1); color: #fff; font-size: .6875rem; border: 1px solid rgba(255, 255, 255, .14);
  opacity: .8; transition: opacity var(--m-out) var(--ease), transform var(--m-out) var(--ease), background-color var(--m-out) var(--ease);
}
.rl-pause:hover, .rl-pause:focus-visible { opacity: 1; background: rgba(255, 255, 255, .18); }
.rl-pause:active { transform: scale(.94); }
.rl-pause::before { content: ''; position: absolute; inset: -6px; }  /* 44px touch target */

@media (prefers-reduced-motion: no-preference) {
  /* entrance, once: outline draws, halves slide together, fill arrives, outline fades */
  /* held on its first frame until the page has fully loaded and the panel is on screen (script adds .is-go) */
  html.m-enter .rl:not(.is-go) .rl-fill { opacity: 0; }
  html.m-enter .rl:not(.is-go) .rl-half { transform: translate(-130px, -96px); }
  html.m-enter .rl:not(.is-go) :is(.rl-word, .rl-tags) { opacity: 0; }
  html.m-enter .rl.is-go .rl-line { animation: rl-draw 2.6s cubic-bezier(.45, 0, .25, 1) .2s both; }
  html.m-enter .rl.is-go .rl-fill { animation: rl-fill 1.2s var(--ease) 2s both; }
  html.m-enter .rl.is-go .rl-half { animation: rl-join 2.4s cubic-bezier(.33, 0, .2, 1) .3s both; }
  html.m-enter .rl.is-go :is(.rl-word, .rl-tags) { animation: m-rise 1s var(--ease-enter) 2.6s both; }
  /* loop */
  .rl.is-go .rl-sheen { animation: rl-sheen var(--cycle) cubic-bezier(.45, 0, .55, 1) 3.4s infinite; }
  :is(.rl.is-paused, .rl.is-offscreen) .rl-sheen { animation-play-state: paused; }
}
@media (prefers-reduced-motion: reduce) { .rl-pause { display: none; } }
@keyframes rl-draw { 0% { stroke-dashoffset: 1; opacity: 1; } 70% { stroke-dashoffset: 0; opacity: 1; } 100% { stroke-dashoffset: 0; opacity: 0; } }
@keyframes rl-fill { from { opacity: 0; } to { opacity: 1; } }
@keyframes rl-join { from { transform: translate(-130px, -96px); } to { transform: none; } }
@keyframes rl-sheen { 0% { transform: translateX(0); opacity: 0; } 6% { opacity: .85; } 45% { transform: translateX(1240px); opacity: .85; } 50%, 100% { transform: translateX(1240px); opacity: 0; } }

/* hero entrance: once on load, never on scroll (html.m-enter is set in <head> before first paint) */
@media (prefers-reduced-motion: no-preference) {
  html.m-enter .hero[data-enter] .hero-content > * { animation: m-rise .52s var(--ease-enter) both; }
  html.m-enter .hero[data-enter] .hero-content > :nth-child(1) { animation-delay: 0ms; }
  html.m-enter .hero[data-enter] .hero-content > :nth-child(2) { animation-duration: .7s; animation-delay: 40ms; }
  html.m-enter .hero[data-enter] .hero-content > :nth-child(3) { animation-delay: 300ms; }
  html.m-enter .hero[data-enter] .hero-content > :nth-child(4) { animation-delay: 360ms; }
  html.m-enter .hero[data-enter] .hero-content > :nth-child(5) { animation-delay: 420ms; }
  html.m-enter .hero[data-enter] .rl { animation: m-settle .9s var(--ease-enter) both; }
}
@keyframes m-rise { from { opacity: 0; transform: translateY(12px); } to { opacity: 1; transform: none; } }
@keyframes m-settle { from { opacity: .001; transform: scale(.98); } to { opacity: 1; transform: none; } }

/* ---------------------------------------------------------------- trusted by */
.trusted-by-section { padding-top: clamp(48px, 6vw, 72px); padding-bottom: clamp(48px, 6vw, 72px); border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); }
.trusted-by-section .section-header { max-width: none; margin-bottom: 28px; text-align: center; }
.trusted-by-section .section-badge { margin: 0; color: var(--muted); }
.trusted-by-section .section-badge::before { display: none; }
.trusted-by-section { position: relative; }
.trusted-carousel { display: flex; flex-direction: column; gap: 12px; margin: 0 calc(-1 * var(--pad-x)); }
.trusted-carousel-wrap {
  overflow: hidden; touch-action: pan-y;
  -webkit-mask-image: linear-gradient(90deg, transparent, #000 8%, #000 92%, transparent);
  mask-image: linear-gradient(90deg, transparent, #000 8%, #000 92%, transparent);
}
.trusted-carousel-track { display: flex; width: max-content; will-change: transform; }
.trusted-logos { display: flex; flex-wrap: nowrap; gap: 12px; }
.trusted-pause {
  position: absolute; right: var(--pad-x); top: clamp(40px, 5vw, 64px);
  display: grid; place-items: center; width: 32px; height: 32px; border-radius: 50%;
  background: var(--dark); color: #fff; font-size: .6875rem; opacity: .78;
  transition: opacity var(--m-out) var(--ease), transform var(--m-out) var(--ease);
}
.trusted-pause::before { content: ''; position: absolute; inset: -6px; }
.trusted-pause:hover, .trusted-pause:focus-visible { opacity: 1; }
.trusted-pause:active { transform: scale(.94); }
@media (prefers-reduced-motion: reduce) { .trusted-pause { display: none; } .trusted-carousel { margin: 0; } .trusted-carousel-wrap { -webkit-mask-image: none; mask-image: none; } .trusted-carousel-track { width: auto; } .trusted-logos { flex-wrap: wrap; justify-content: center; } .trusted-logo-item[data-trusted-clone] { display: none; } }
.trusted-logo-item {
  flex: none;
  display: flex; align-items: center; justify-content: center;
  width: 176px; height: 84px; padding: 16px 22px;
  border: 1px solid var(--line); border-radius: var(--r); background: #fff;
  transition: border-color var(--m-out) var(--ease), transform var(--m-out) var(--ease);
}
.trusted-logo-item a { display: flex; align-items: center; justify-content: center; width: 100%; height: 100%; }
.trusted-logo-item img {
  max-width: 100%; max-height: 44px; width: auto; height: auto; object-fit: contain;
  filter: grayscale(1) contrast(1.05); opacity: .72;
  transition: filter var(--m-out) var(--ease), opacity var(--m-out) var(--ease);
}
.trusted-logo-item:has(a:focus-visible) { outline: 2px solid var(--action); outline-offset: 2px; }
.trusted-logo-item a:focus-visible { outline: none; }
.trusted-name { font-weight: 650; color: var(--ink-2); text-align: center; font-size: .9375rem; }
@media (hover: hover) and (pointer: fine) {
  .trusted-logo-item:has(a):hover { transform: translateY(-2px); border-color: var(--line-strong); transition-duration: var(--m-card-in); }
  .trusted-logo-item:hover img { filter: none; opacity: 1; transition-duration: var(--m-in); }
}
.trusted-carousel-loading { display: flex; justify-content: center; padding: 24px; color: var(--muted); }
.trusted-carousel-loading.hidden { display: none; }

/* ---------------------------------------------------------------- about */
.about-bg { display: none; }
.ab-hero { display: grid; grid-template-columns: minmax(0, 1.05fr) minmax(0, .95fr); gap: clamp(40px, 6vw, 88px); align-items: start; }
.ab-title { font-size: clamp(2rem, 3.6vw, 3.1rem); letter-spacing: -.032em; line-height: 1.06; }
.ab-title span, .stats-title span { color: var(--brand); }
.ab-lead { margin-top: 22px; font-size: clamp(1.0625rem, 1.3vw, 1.1875rem); color: var(--muted); line-height: 1.65; }
.ab-points { margin-top: 32px; display: grid; gap: 4px; }
.ab-points li { display: grid; grid-template-columns: 40px minmax(0, 1fr); gap: 16px; padding: 16px 0; border-top: 1px solid var(--line); }
.ab-points li:last-child { border-bottom: 1px solid var(--line); }
.ab-points i { display: grid; place-items: center; width: 40px; height: 40px; border-radius: var(--r); background: var(--brand-tint); color: var(--action); }
.ab-points strong { display: block; font-size: 1.0625rem; color: var(--ink); margin-bottom: 2px; }
.ab-points span { color: var(--muted); font-size: .9375rem; line-height: 1.55; }
.ab-actions { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 32px; }

.ab-panel { display: grid; gap: 16px; position: sticky; top: calc(var(--nav-h) + var(--topbar-h) + 24px); }
.ab-metrics { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 1px; background: var(--line); border: 1px solid var(--line); border-radius: var(--r-lg); overflow: hidden; }
.ab-metric { background: #fff; padding: 22px 24px; display: flex; flex-direction: column; gap: 4px; }
.ab-metric strong { font-size: clamp(1.75rem, 2.6vw, 2.25rem); letter-spacing: -.035em; line-height: 1.1; font-weight: 700; color: var(--ink); }
.ab-metric:first-child strong { color: var(--brand); }
.ab-metric--text strong { font-size: 1.1875rem; letter-spacing: -.015em; padding-top: 8px; }
.ab-metric span { font-size: .875rem; color: var(--muted); font-weight: 500; }

.ab-process { background: var(--dark); color: var(--dark-ink); border-radius: var(--r-lg); padding: 28px; }
.ab-process-head { display: flex; align-items: center; justify-content: space-between; gap: 12px; margin-bottom: 18px; }
.ab-process h3 { font-size: 1.125rem; letter-spacing: -.01em; }
.ab-pause {
  position: relative; flex: none; display: grid; place-items: center; width: 32px; height: 32px; border-radius: 50%;
  background: rgba(255, 255, 255, .08); color: #fff; font-size: .6875rem; border: 1px solid rgba(255, 255, 255, .14);
  opacity: .75; transition: opacity var(--m-out) var(--ease), transform var(--m-out) var(--ease), background-color var(--m-out) var(--ease);
}
.ab-pause:hover, .ab-pause:focus-visible { opacity: 1; background: rgba(255, 255, 255, .16); }
.ab-pause:active { transform: scale(.94); }
.ab-pause::before { content: ''; position: absolute; inset: -6px; }
.ab-steps { counter-reset: step; display: grid; gap: 0; }
.ab-steps li { position: relative; counter-increment: step; display: grid; grid-template-columns: 36px minmax(0, 1fr); gap: 16px; padding: 12px 0 18px; }
.ab-steps li::before {
  content: counter(step, decimal-leading-zero);
  position: relative; z-index: 1;
  display: grid; place-items: center; width: 36px; height: 36px; border-radius: 10px;
  background: #24272e; color: #ff8a8f; font-size: .8125rem; font-weight: 700; font-variant-numeric: tabular-nums;
  box-shadow: inset 0 0 0 1px rgba(241, 44, 53, .35);
  transition: background-color .5s var(--ease), color .5s var(--ease), box-shadow .5s var(--ease), transform .5s var(--ease);
}
/* rail between nodes: a quiet track with a red fill that runs toward the next step */
.ab-seg { position: absolute; left: 17px; top: 54px; bottom: -8px; width: 2px; border-radius: 2px; background: rgba(255, 255, 255, .1); overflow: hidden; }
.ab-seg i { position: absolute; inset: 0; background: linear-gradient(180deg, #ff4b53, #c81822); transform: scaleY(0); transform-origin: top; }
.ab-steps li > div { transition: opacity .5s var(--ease), transform .5s var(--ease); }
.ab-steps strong { display: block; font-size: .975rem; color: #fff; padding-top: 7px; }
.ab-steps span { font-size: .875rem; color: var(--dark-muted); line-height: 1.5; }
/* live state (motion allowed, set by script): upcoming steps sit back, the active one comes forward */
.ab-steps.is-live li > div { opacity: .55; }
.ab-steps.is-live li.is-active > div, .ab-steps.is-live li.is-done > div { opacity: 1; }
.ab-steps.is-live li.is-active > div { transform: translateX(4px); }
.ab-steps.is-live li.is-active::before { background: var(--brand); color: #fff; box-shadow: 0 8px 22px -6px rgba(241, 44, 53, .7); transform: scale(1.06); }
.ab-steps.is-live li.is-done::before { content: '\2713'; background: rgba(241, 44, 53, .16); color: #ff6a70; }
@media (prefers-reduced-motion: reduce) { .ab-pause { display: none; } .ab-seg i { transform: none; opacity: .35; } }

/* ---------------------------------------------------------------- sample report */
.rp { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: clamp(40px, 6vw, 88px); align-items: center; }
.rp-lead { margin-top: 20px; font-size: clamp(1.0625rem, 1.3vw, 1.1875rem); color: var(--muted); line-height: 1.65; max-width: 560px; }
.rp-facts { display: flex; gap: 0; margin-top: 28px; border: 1px solid var(--line); border-radius: var(--r-lg); overflow: hidden; max-width: 520px; }
.rp-facts > div { flex: 1; padding: 16px 18px; border-left: 1px solid var(--line); }
.rp-facts > div:first-child { border-left: 0; }
.rp-facts dt { font-size: clamp(1.5rem, 2.2vw, 1.875rem); font-weight: 700; letter-spacing: -.03em; line-height: 1.1; color: var(--ink); }
.rp-facts > div:first-child dt { color: var(--brand); }
.rp-facts dd { margin: 2px 0 0; font-size: .875rem; color: var(--muted); font-weight: 500; }
.rp-inside { margin-top: 28px; display: grid; gap: 2px; }
.rp-inside li { display: grid; grid-template-columns: 36px minmax(0, 1fr); gap: 14px; padding: 12px 0; }
.rp-inside i { display: grid; place-items: center; width: 36px; height: 36px; border-radius: 10px; background: var(--brand-tint); color: var(--action); font-size: .9rem; }
.rp-inside strong { display: block; font-size: 1rem; color: var(--ink); }
.rp-inside span { font-size: .9375rem; color: var(--muted); line-height: 1.5; }
.rp-actions { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 28px; }
.rp-note { margin-top: 14px; font-size: .8125rem; color: var(--muted); }

.rp-visual { background: var(--dark); border-radius: calc(var(--r-lg) + 6px); padding: clamp(28px, 3.4vw, 44px) clamp(20px, 3vw, 40px) clamp(20px, 2.4vw, 28px); position: relative; overflow: hidden; isolation: isolate; }
.rp-visual::before { content: ''; position: absolute; inset: -20% -20% auto; height: 70%; background: radial-gradient(closest-side, rgba(241, 44, 53, .28), transparent); z-index: -1; }
.rp-stack { position: relative; display: block; height: clamp(250px, 26vw, 340px); margin: 0 auto; }
.rp-page {
  position: absolute; left: 50%; top: 0; width: clamp(150px, 15.5vw, 220px); height: auto; border-radius: 6px;
  box-shadow: 0 1px 0 rgba(255, 255, 255, .06), 0 24px 48px -16px rgba(0, 0, 0, .7);
  transition: transform .6s var(--ease), box-shadow .6s var(--ease);
}
.rp-page--a { transform: translateX(-112%) translateY(18px) rotate(-7deg); }
.rp-page--c { transform: translateX(12%) translateY(18px) rotate(7deg); }
.rp-page--b { transform: translateX(-50%); z-index: 2; box-shadow: 0 1px 0 rgba(255, 255, 255, .08), 0 30px 60px -14px rgba(0, 0, 0, .85); }
@media (hover: hover) and (pointer: fine) {
  .rp-stack:hover .rp-page--a { transform: translateX(-122%) translateY(12px) rotate(-9deg); }
  .rp-stack:hover .rp-page--c { transform: translateX(22%) translateY(12px) rotate(9deg); }
  .rp-stack:hover .rp-page--b { transform: translateX(-50%) translateY(-6px); }
}
.rp-stack:focus-visible { outline: 2px solid #fff; outline-offset: 6px; border-radius: 8px; }
.rp-findings { margin-top: clamp(20px, 2.4vw, 28px); border-top: 1px solid var(--dark-line); padding-top: 16px; }
.rp-findings-head { display: flex; justify-content: space-between; font-size: .75rem; font-weight: 650; letter-spacing: .08em; text-transform: uppercase; color: var(--dark-muted); margin-bottom: 6px; }
.rp-findings li { display: grid; grid-template-columns: 70px minmax(0, 1fr) auto; gap: 12px; align-items: center; padding: 9px 0; border-top: 1px solid rgba(255, 255, 255, .06); }
.rp-findings li:first-child { border-top: 0; }
.rp-findings span { font-size: .875rem; color: #e3e5e9; line-height: 1.35; }
.rp-findings em { font-style: normal; font-weight: 700; font-size: .9375rem; color: #fff; font-variant-numeric: tabular-nums; }
.sev { justify-self: start; font-size: .6875rem; font-weight: 700; letter-spacing: .04em; text-transform: uppercase; padding: 4px 8px; border-radius: 6px; }
.sev--high { background: rgba(241, 44, 53, .18); color: #ff7b80; }
.sev--med { background: rgba(245, 158, 11, .16); color: #fbbf24; }
.sev--low { background: rgba(34, 197, 94, .14); color: #4ade80; }
@media (max-width: 1023px) {
  .rp { grid-template-columns: minmax(0, 1fr); }
  .rp-page { width: clamp(130px, 26vw, 210px); }
  .rp-stack { height: clamp(220px, 44vw, 330px); }
}
@media (max-width: 479px) {
  .rp-findings li { grid-template-columns: 62px minmax(0, 1fr) auto; gap: 10px; }
  .rp-facts > div { padding: 14px 12px; }
  .rp-actions .btn { flex: 1 1 100%; justify-content: center; }
}

.ab-ribbon { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 12px 28px; margin: clamp(48px, 6vw, 72px) 0 24px; padding: 22px 0; border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); }
.ab-ribbon span { display: inline-flex; align-items: center; gap: 10px; font-weight: 600; color: var(--ink-2); font-size: .9375rem; }
.ab-ribbon i { color: var(--brand); }
.ab-pillars { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 20px; }
.ab-pillar-head { display: flex; align-items: center; gap: 14px; margin-bottom: 12px; }
.ab-pillar-head .card-icon { margin: 0; }
.ab-pillar-head h3 { margin: 0; }
.ab-footnote { margin-top: 24px; font-size: .8125rem; color: var(--muted); }

/* ---------------------------------------------------------------- services */
.service-card { padding: 28px 28px 22px; }
.service-accent { position: absolute; left: 28px; right: 28px; top: -1px; height: 2px; background: var(--brand); transform: scaleX(0); transform-origin: left; transition: transform var(--m-out) var(--ease); border-radius: 2px; }
@media (hover: hover) and (pointer: fine) { .service-card:hover .service-accent { transform: scaleX(1); transition-duration: 240ms; } }
.service-card-top { display: flex; align-items: flex-start; justify-content: space-between; }
.service-index { font-size: .8125rem; font-weight: 700; color: var(--line-strong); font-variant-numeric: tabular-nums; letter-spacing: .04em; }
.service-lead { color: var(--ink-2) !important; font-weight: 550; margin-bottom: 8px; }
.service-desc { font-size: .9375rem !important; }

.services-cta {
  display: flex; align-items: center; justify-content: space-between; gap: 24px 40px;
  margin-top: clamp(32px, 4vw, 48px); padding: clamp(24px, 3vw, 36px) clamp(24px, 3.2vw, 40px);
  border-radius: var(--r-xl);
  background: var(--dark); color: var(--dark-ink);
  position: relative; overflow: hidden; isolation: isolate;
}
.services-cta::before { content: ''; position: absolute; inset: 0; z-index: -1; background: radial-gradient(60% 140% at 100% 0%, rgba(241, 44, 53, .22), transparent 60%); }
.services-cta-text h3 { font-size: clamp(1.25rem, 2vw, 1.5rem); color: #fff; letter-spacing: -.02em; }
.services-cta-text p { margin-top: 6px; color: var(--dark-muted); max-width: 620px; }
.services-cta .btn-secondary { --btn-bg: transparent; --btn-ink: #fff; --btn-line: rgba(255,255,255,.28); box-shadow: none; }
.services-cta .btn-secondary:hover { --btn-bg: rgba(255,255,255,.08); --btn-line: rgba(255,255,255,.5); }
.team-cta-actions { display: flex; flex-wrap: wrap; gap: 12px; flex: none; }

/* ---------------------------------------------------------------- products (cards come from the API / server render) */
#productsGrid .card img { width: calc(100% + 56px) !important; max-width: none; max-height: none !important; aspect-ratio: 2 / 1; margin: -28px -28px 24px !important; border-radius: var(--r-lg) var(--r-lg) 0 0 !important; object-fit: cover; border-bottom: 1px solid var(--line); }
#productsGrid .card .btn {
  margin-top: auto !important; align-self: flex-start; white-space: normal; text-align: left;
  min-height: 44px; padding: 0; border: 0; background: none; box-shadow: none; color: var(--action); font-size: .9375rem;
}
#productsGrid .card .btn:hover { color: var(--action-hover); transform: none; }
#productsGrid .card p { margin-bottom: 20px; }

/* ---------------------------------------------------------------- case studies */
.use-cases-results {
  display: grid; grid-template-columns: repeat(4, minmax(0, 1fr));
  margin-bottom: 32px; border: 1px solid var(--line); border-radius: var(--r-lg); overflow: hidden; background: #fff;
}
.use-cases-result { padding: 24px 28px; display: flex; flex-direction: column; gap: 4px; }
.use-cases-result + .use-cases-result { border-left: 1px solid var(--line); }
.use-cases-result strong { font-size: clamp(2rem, 3.4vw, 2.75rem); font-weight: 750; letter-spacing: -.04em; line-height: 1; color: var(--ink); font-variant-numeric: tabular-nums; }
.use-cases-result:first-child strong { color: var(--brand); }
.use-cases-result span { font-size: .9375rem; color: var(--muted); }

.case-card { padding: 26px; gap: 14px; }
.case-card h3 { margin: 0; }
.case-card-head { display: flex; align-items: center; justify-content: space-between; gap: 12px; }
.case-card-head .card-icon { margin: 0; }
.industry-badge { padding: 4px 10px; border-radius: 999px; background: var(--surface); border: 1px solid var(--line); font-size: .75rem; font-weight: 650; color: var(--ink-2); }
.case-metric { display: flex; align-items: baseline; gap: 10px; flex-wrap: wrap; padding: 14px 0; border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); }
.case-metric strong { font-size: 1.75rem; font-weight: 750; letter-spacing: -.035em; color: var(--action); line-height: 1; }
.case-metric span { font-size: .875rem; color: var(--muted); line-height: 1.4; flex: 1 1 140px; }
.case-block { display: grid; gap: 2px; }
.case-label { font-size: .6875rem; font-weight: 700; letter-spacing: .08em; text-transform: uppercase; color: var(--ink-2); }
.case-block p { font-size: .9375rem; }
.case-delivered { display: flex; flex-wrap: wrap; gap: 6px; }
.case-delivered li { padding: 4px 10px; border-radius: 999px; background: var(--surface); border: 1px solid var(--line); color: var(--ink-2); font-size: .75rem; font-weight: 600; }
.case-card .service-link { padding-top: 4px; }
.use-cases-note { display: flex; align-items: center; justify-content: center; gap: 8px; margin-top: 28px; font-size: .875rem; color: var(--muted); text-align: center; }

/* ---------------------------------------------------------------- team */
.team-card { align-items: flex-start; padding: 28px; }
.team-photo { width: 88px; height: 88px; margin-bottom: 20px; border-radius: 50%; overflow: hidden; flex: none; box-shadow: 0 0 0 4px #fff, 0 0 0 5px var(--line); }
.team-photo img { width: 100%; height: 100%; object-fit: cover; }
.team-avatar { display: grid; place-items: center; width: 100%; height: 100%; background: var(--dark); color: #fff; font-size: 1.5rem; font-weight: 700; letter-spacing: -.02em; }
.team-card h3 { margin-bottom: 4px; }
.team-role { display: inline-block; font-size: .8125rem; font-weight: 650; letter-spacing: .02em; color: var(--action); margin-bottom: 14px; }
.team-bio { font-size: .9375rem; display: -webkit-box; -webkit-line-clamp: 4; -webkit-box-orient: vertical; overflow: hidden; }
.team-card.is-expanded .team-bio { -webkit-line-clamp: unset; display: block; }
.team-bio-toggle { margin-top: 10px; min-height: 44px; padding: 0; font-size: .875rem; font-weight: 600; color: var(--action); }
.team-bio-toggle:hover { color: var(--action-hover); text-decoration: underline; text-underline-offset: 3px; }
#showMoreTeam, #showMoreCerts { margin-top: 8px; }

/* ---------------------------------------------------------------- certificates */
.certs-intro { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 24px 56px; align-items: center; margin-bottom: 40px; padding: clamp(24px, 3vw, 36px); border: 1px solid var(--line); border-radius: var(--r-xl); background: #fff; }
.certs-intro-label { display: inline-flex; align-items: center; gap: 8px; font-size: .8125rem; font-weight: 650; color: var(--action); margin-bottom: 10px; }
.certs-intro-copy h3 { font-size: clamp(1.25rem, 2vw, 1.5rem); letter-spacing: -.02em; margin-bottom: 10px; }
.certs-intro-copy p { color: var(--muted); }
.certs-highlights { display: grid; gap: 0; }
.certs-highlight { display: grid; grid-template-columns: 40px minmax(0, 1fr); gap: 14px; align-items: center; padding: 12px 0; }
.certs-highlight + .certs-highlight { border-top: 1px solid var(--line); }
.certs-highlight-icon { display: grid; place-items: center; width: 40px; height: 40px; border-radius: var(--r); background: var(--brand-tint); color: var(--action); }
.certs-highlight strong { display: block; font-size: .975rem; }
.certs-highlight span { font-size: .875rem; color: var(--muted); }

.certs-grid { display: grid; grid-template-columns: repeat(5, minmax(0, 1fr)); gap: 16px; }
.cert-card { align-items: center; text-align: center; padding: 24px 16px 20px; gap: 0; }
.cert-badge-wrap { display: grid; place-items: center; width: 84px; height: 84px; margin-bottom: 14px; }
.cert-badge-wrap img { max-width: 84px; max-height: 84px; width: auto; height: auto; object-fit: contain; }
.cert-icon { display: grid; place-items: center; width: 64px; height: 64px; border-radius: 50%; background: var(--brand-tint); color: var(--action); font-size: 1.5rem; }
.cert-card h3 { font-size: .9375rem; line-height: 1.3; margin-bottom: 6px; }
.cert-meta { display: flex; flex-wrap: wrap; justify-content: center; gap: 4px 8px; font-size: .8125rem; color: var(--muted); margin-top: auto; }
.cert-year { font-variant-numeric: tabular-nums; }
.cert-year::before { content: '\00B7'; margin-right: 8px; }
.certs-actions { display: flex; justify-content: center; margin-top: 32px; }
.certs-actions:has(button[style*="none"]) { display: none; }

/* ---------------------------------------------------------------- stats (the dark band) */
.stats-section { background: var(--dark); color: var(--dark-ink); overflow: clip; isolation: isolate; }
.stats-section::before { content: ''; position: absolute; inset: 0; z-index: -1; background: radial-gradient(50% 60% at 90% 0%, rgba(241, 44, 53, .18), transparent 70%), radial-gradient(40% 50% at 0% 100%, rgba(241, 44, 53, .08), transparent 70%); }
.stats-header { display: grid; grid-template-columns: minmax(0, 1.1fr) minmax(0, .9fr); gap: 24px 64px; align-items: end; margin-bottom: clamp(40px, 5vw, 56px); }
.stats-badge { display: inline-flex; align-items: center; gap: 10px; margin-bottom: 18px; font-size: .8125rem; font-weight: 650; letter-spacing: .08em; text-transform: uppercase; color: #ff8a8f; }
.stats-badge-dot { width: 7px; height: 7px; border-radius: 50%; background: var(--brand); }
.stats-title { font-size: clamp(2rem, 3.6vw, 3.1rem); letter-spacing: -.032em; line-height: 1.06; color: #fff; }
.stats-lead { color: var(--dark-muted); font-size: 1.0625rem; line-height: 1.65; }
.stats-grid { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 16px; }
.stat-item { display: flex; flex-direction: column; padding: 26px; border-radius: var(--r-lg); background: var(--dark-2); border: 1px solid var(--dark-line); }
.stat-item--featured { background: linear-gradient(180deg, #2a1215, var(--dark-2) 70%); border-color: rgba(241, 44, 53, .3); }
.stat-top { display: flex; align-items: center; justify-content: space-between; margin-bottom: 26px; }
.stat-icon { display: grid; place-items: center; width: 40px; height: 40px; border-radius: var(--r); background: rgba(255,255,255,.06); color: #ff6b71; }
.stat-tag { font-size: .75rem; font-weight: 600; color: var(--dark-muted); display: inline-flex; align-items: center; gap: 6px; }
.stat-tag--live span { width: 7px; height: 7px; border-radius: 50%; background: #3ddc84; box-shadow: 0 0 0 3px rgba(61, 220, 132, .18); }
.stat-number { font-size: clamp(2.5rem, 4vw, 3.25rem); font-weight: 750; letter-spacing: -.045em; line-height: 1; color: #fff; font-variant-numeric: tabular-nums; }
.stat-ring { display: flex; align-items: center; gap: 16px; }
.circular-progress { width: 56px; height: 56px; flex: none; }
.circular-progress svg { width: 56px; height: 56px; transform: rotate(-90deg); }
.circular-progress circle { fill: none; stroke-width: 10; }
.bg-circle { stroke: rgba(255,255,255,.08); }
.progress-circle { stroke: var(--brand); stroke-linecap: round; stroke-dasharray: 282.74; stroke-dashoffset: calc(282.74 * (1 - .993)); }
.stat-number--ring { font-size: clamp(2.25rem, 3.6vw, 3rem); }
.stat-label { margin-top: 12px; font-size: 1rem; font-weight: 650; color: #fff; letter-spacing: -.01em; }
.stat-desc { margin-top: 6px; font-size: .875rem; color: var(--dark-muted); line-height: 1.55; }
.stat-viz { margin-top: auto; padding-top: 22px; }
.stat-chips { display: flex; flex-wrap: wrap; gap: 6px; }
.stat-chips li { padding: 3px 10px; border-radius: 999px; background: rgba(255,255,255,.06); border: 1px solid var(--dark-line); font-size: .75rem; font-weight: 600; color: var(--dark-ink); }
.stat-meter-label { display: flex; justify-content: space-between; font-size: .75rem; color: var(--dark-muted); margin-bottom: 8px; }
.progress-bar-container { height: 6px; border-radius: 6px; background: rgba(255,255,255,.08); overflow: hidden; }
.progress-bar { height: 100%; width: 99% !important; border-radius: inherit; background: var(--brand); }
.chart-container { display: flex; align-items: flex-end; gap: 6px; height: 48px; }
.chart-bar { flex: 1; border-radius: 3px 3px 0 0; background: rgba(241, 44, 53, .35); }
.chart-bar:last-child { background: var(--brand); }
.stats-cta { display: flex; align-items: center; justify-content: space-between; gap: 20px 40px; margin-top: 24px; padding: 24px 28px; border-radius: var(--r-lg); border: 1px solid var(--dark-line); background: rgba(255,255,255,.03); }
.stats-cta-text strong { display: block; color: #fff; font-size: 1.0625rem; }
.stats-cta-text span { color: var(--dark-muted); font-size: .9375rem; }
.stats-cta-btn { /* styled as .btn-primary on dark */
  display: inline-flex; align-items: center; gap: .6em; flex: none;
  min-height: 48px; padding: 0 22px; border-radius: var(--r);
  background: var(--action); color: #fff; font-weight: 600; font-size: .975rem; white-space: nowrap;
  transition: background-color var(--m-out) var(--ease), transform var(--m-out) var(--ease);
}
.stats-cta-btn i { font-size: .85em; transition: transform var(--m-out) var(--ease); }
.stats-cta-btn:hover { background: var(--action-hover); transition-duration: var(--m-in); }
@media (hover: hover) and (pointer: fine) { .stats-cta-btn:hover { transform: translateY(-1px); } .stats-cta-btn:hover i { transform: translateX(3px); } }
.stats-cta-btn:active { transform: translateY(1px) scale(.985); }
.stats-note { display: flex; align-items: center; gap: 8px; margin-top: 18px; font-size: .8125rem; color: var(--dark-muted); }

/* ---------------------------------------------------------------- FAQ */
#faq { display: grid; grid-template-rows: auto 1fr; grid-template-columns: minmax(0, .8fr) minmax(0, 1.2fr); gap: 0 clamp(40px, 6vw, 96px); align-items: start; }
#faq .section-header { position: sticky; top: calc(var(--nav-h) + var(--topbar-h) + 32px); margin-bottom: 0; }
#faq .faq-cta { grid-column: 1; grid-row: 2; }
.faq-list { grid-column: 2; grid-row: 1 / span 2; border-top: 1px solid var(--line); }
.faq-item { border-bottom: 1px solid var(--line); }
.faq-question {
  display: flex; align-items: center; justify-content: space-between; gap: 24px;
  min-height: 64px; padding: 20px 0;
  font-size: 1.0625rem; font-weight: 600; letter-spacing: -.01em; color: var(--ink);
  cursor: pointer; list-style: none;
  transition: color var(--m-out) var(--ease);
}
.faq-question::-webkit-details-marker { display: none; }
.faq-question::after {
  content: ''; flex: none; width: 28px; height: 28px; border-radius: 50%;
  background: var(--surface) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='12' viewBox='0 0 12 12'%3E%3Cpath d='M6 1v10M1 6h10' stroke='%2314161b' stroke-width='1.6' stroke-linecap='round'/%3E%3C/svg%3E") center / 12px no-repeat;
  border: 1px solid var(--line);
}
.faq-item[open] .faq-question::after { background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='12' viewBox='0 0 12 12'%3E%3Cpath d='M1 6h10' stroke='%23dc1f2a' stroke-width='1.6' stroke-linecap='round'/%3E%3C/svg%3E"); border-color: var(--brand-tint-2); background-color: var(--brand-tint); }
.faq-question:hover { color: var(--action); transition-duration: var(--m-in); }
.faq-answer { padding: 0 52px 24px 0; color: var(--muted); }
.faq-answer p { font-size: 1rem; line-height: 1.7; }
.faq-cta { align-self: start; margin-top: 8px; display: flex; flex-direction: column; align-items: flex-start; gap: 14px; }
.faq-cta p { color: var(--muted); }

/* ---------------------------------------------------------------- contact */
#contact { display: grid; grid-template-columns: minmax(0, .9fr) minmax(0, 1.1fr); gap: 0 clamp(40px, 6vw, 88px); align-items: start; }
#contact .section-header { grid-column: 1; margin-bottom: 32px; }
#contact .success-message { grid-column: 2; grid-row: 1; }
#contact .contact-form { grid-column: 2; grid-row: 1 / span 2; }
#contact .contact-info-grid { grid-column: 1; grid-row: 2; }
.contact-form {
  display: grid; grid-template-columns: 1fr 1fr; gap: 18px 16px;
  padding: clamp(24px, 3vw, 36px);
  background: #fff; border: 1px solid var(--line); border-radius: var(--r-xl);
  box-shadow: var(--shadow);
}
.contact-form .form-group:nth-child(3), .contact-form .form-group:nth-child(4), .contact-form .captcha-wrapper, .contact-form button { grid-column: 1 / -1; }
.form-group, .cm-field { display: flex; flex-direction: column; gap: 8px; }
.form-group label, .cm-field label { font-size: .875rem; font-weight: 600; color: var(--ink-2); }
.form-group :is(input, textarea), .cm-field :is(input, select, textarea) {
  width: 100%; min-height: 48px; padding: 12px 14px;
  border: 1px solid var(--line-strong); border-radius: var(--r);
  background: #fff; color: var(--ink); font-size: 1rem;
  transition: border-color 140ms var(--ease), box-shadow 140ms var(--ease);
}
.form-group textarea, .cm-field textarea { min-height: 140px; resize: vertical; line-height: 1.55; }
.form-group :is(input, textarea)::placeholder, .cm-field :is(input, textarea)::placeholder { color: #8a9099; }
.form-group :is(input, textarea):hover, .cm-field :is(input, select, textarea):hover { border-color: #b9bcc5; }
.form-group :is(input, textarea):focus, .cm-field :is(input, select, textarea):focus { outline: none; border-color: var(--action); box-shadow: 0 0 0 3px rgba(220, 31, 42, .14); }
.captcha-wrapper { min-height: 65px; }
.contact-form button[type="submit"] { width: 100%; min-height: 52px; }
.success-message {
  display: none; align-items: center; gap: 10px; margin-bottom: 16px; padding: 14px 18px;
  border-radius: var(--r); background: #e8f7ee; color: #146c3c; font-weight: 600; border: 1px solid #bfe6cf;
}
.success-message.show { display: flex; }
.contact-info-grid { display: grid; gap: 0; border-top: 1px solid var(--line); }
.contact-info-item { display: grid; grid-template-columns: 44px minmax(0, 1fr); column-gap: 16px; align-items: start; padding: 20px 0; border-bottom: 1px solid var(--line); }
.contact-info-item > i { grid-row: 1 / span 3; display: grid; place-items: center; width: 44px; height: 44px; border-radius: var(--r); background: var(--brand-tint); color: var(--action); }
.contact-info-item h3 { font-size: .8125rem; font-weight: 650; letter-spacing: .06em; text-transform: uppercase; color: var(--muted); margin-bottom: 4px; }
.contact-info-item p { font-size: 1.0625rem; font-weight: 600; color: var(--ink); }
.contact-info-item p a { display: inline-flex; align-items: center; min-height: 32px; color: var(--ink); font-weight: 600; background-size: 0% 1px, 0% 1px; }
.contact-info-item p a:is(:hover, :focus-visible) { color: var(--action); background-size: 100% 1px, 0% 1px; }
.contact-info-item a:hover { color: var(--action); }

/* ---------------------------------------------------------------- contact modal */
.cm-overlay {
  position: fixed; inset: 0; z-index: 3000;
  display: grid; place-items: center; padding: 20px;
  background: rgba(14, 16, 20, .55);
  -webkit-backdrop-filter: blur(6px); backdrop-filter: blur(6px);
  opacity: 0; visibility: hidden;
  transition: opacity 200ms var(--ease), visibility 0s linear 200ms;
}
.cm-overlay.is-open { opacity: 1; visibility: visible; transition: opacity 200ms var(--ease); }
.cm-dialog {
  position: relative; width: min(640px, 100%); max-height: calc(100dvh - 40px); overflow: auto;
  background: #fff; border-radius: var(--r-xl); box-shadow: 0 40px 80px -24px rgba(14, 16, 20, .45);
  transform: translateY(6px); transition: transform 200ms var(--ease-enter);
}
.cm-overlay.is-open .cm-dialog { transform: none; }
.cm-close { position: absolute; top: 14px; right: 14px; display: grid; place-items: center; width: 44px; height: 44px; border-radius: 50%; color: var(--muted); transition: background-color var(--m-out) var(--ease), color var(--m-out) var(--ease); z-index: 1; }
.cm-close:hover { background: var(--surface); color: var(--ink); }
.cm-head { padding: 32px 32px 20px; border-bottom: 1px solid var(--line); background: linear-gradient(180deg, var(--brand-tint), #fff); }
.cm-eyebrow { display: inline-flex; align-items: center; gap: 8px; font-size: .8125rem; font-weight: 650; letter-spacing: .06em; text-transform: uppercase; color: var(--action); }
.cm-title { margin-top: 10px; font-size: clamp(1.5rem, 3vw, 1.875rem); letter-spacing: -.03em; padding-right: 40px; }
.cm-sub { margin-top: 8px; color: var(--muted); font-size: .975rem; }
.cm-perks { display: flex; flex-wrap: wrap; gap: 8px 18px; margin-top: 14px; }
.cm-perks li { display: inline-flex; align-items: center; gap: 6px; font-size: .875rem; font-weight: 600; color: var(--ink-2); }
.cm-perks i { color: #1f9d57; }
.cm-body { padding: 24px 32px 28px; }
.cm-body form { display: grid; gap: 16px; }
.cm-row { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
.cm-field select { appearance: none; background: #fff 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.5l5 5 5-5' fill='none' stroke='%235b616b' stroke-width='1.6' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E") right 14px center / 12px no-repeat; padding-right: 38px; }
.cm-error { display: none; padding: 10px 14px; border-radius: var(--r); background: var(--brand-tint); color: #a3121b; font-size: .875rem; font-weight: 600; }
.cm-error.show { display: block; }
.cm-captcha { min-height: 65px; }
.cm-submit { width: 100%; min-height: 52px; }
.cm-privacy { display: flex; align-items: center; justify-content: center; gap: 8px; font-size: .8125rem; color: var(--muted); text-align: center; }
.cm-success { display: none; padding: 48px 32px; text-align: center; }
.cm-dialog.is-sent .cm-head, .cm-dialog.is-sent .cm-body { display: none; }
.cm-dialog.is-sent .cm-success { display: block; }
.cm-success-icon { display: grid; place-items: center; width: 64px; height: 64px; margin: 0 auto 18px; border-radius: 50%; background: #e8f7ee; color: #1f9d57; font-size: 1.5rem; }
.cm-success h3 { font-size: 1.375rem; margin-bottom: 8px; }
.cm-success p { color: var(--muted); margin-bottom: 24px; }
body.cm-locked { overflow: hidden; }

/* ---------------------------------------------------------------- footer */
.footer { background: var(--dark); color: var(--dark-muted); padding: clamp(56px, 7vw, 88px) var(--pad-x) 36px; }
.footer-content { display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: 32px 48px; align-items: start; }
.footer-brand { display: flex; flex-direction: column; gap: 14px; max-width: 360px; }
.footer-brand img { align-self: flex-start; height: 44px; width: auto; filter: brightness(0) invert(1); }
.footer-brand p { font-size: .9375rem; line-height: 1.6; }
.footer-links { grid-column: 1 / -1; display: flex; flex-wrap: wrap; gap: 4px 4px; padding: 28px 0; border-top: 1px solid var(--dark-line); border-bottom: 1px solid var(--dark-line); }
.footer-links a {
  position: relative; display: inline-flex; align-items: center; min-height: 44px; padding: 0 14px 0 0; margin-right: 14px;
  color: var(--dark-ink); font-size: .9375rem; font-weight: 500;
  transition: color var(--m-out) var(--ease);
}
.footer-links a::after { content: ''; position: absolute; left: 0; right: 14px; bottom: 8px; height: 1px; background: currentColor; transform: scaleX(0); transform-origin: right; transition: transform var(--m-out) var(--ease); }
.footer-links a:hover { color: #fff; }
.footer-links a:hover::after { transform: scaleX(1); transform-origin: left; transition-duration: var(--m-in); }
.social-links { display: flex; gap: 8px; grid-row: 1; grid-column: 2; }
.social-links a {
  display: grid; place-items: center; width: 44px; height: 44px; border-radius: var(--r);
  border: 1px solid var(--dark-line); color: var(--dark-ink);
  transition: background-color var(--m-out) var(--ease), border-color var(--m-out) var(--ease), color var(--m-out) var(--ease), transform var(--m-out) var(--ease);
}
.social-links a:hover { background: var(--brand); border-color: var(--brand); color: #fff; transition-duration: var(--m-in); }
@media (hover: hover) and (pointer: fine) { .social-links a:hover { transform: translateY(-1px); } }
.footer-content > p { grid-column: 1 / -1; font-size: .8125rem; }

/* ---------------------------------------------------------------- floating controls */
.scroll-top {
  position: fixed; left: 24px; bottom: 24px; z-index: 900;
  display: grid; place-items: center; width: 44px; height: 44px; border-radius: 50%;
  background: #fff; color: var(--ink); border: 1px solid var(--line); box-shadow: var(--shadow);
  opacity: 0; visibility: hidden; transform: translateY(6px);
  transition: opacity 200ms var(--ease), transform 200ms var(--ease), visibility 0s linear 200ms, background-color var(--m-out) var(--ease);
}
.scroll-top.visible { opacity: 1; visibility: visible; transform: none; transition: opacity 200ms var(--ease), transform 200ms var(--ease), background-color var(--m-out) var(--ease); }
.scroll-top:hover { background: var(--surface); }

.loading { grid-column: 1 / -1; display: flex; justify-content: center; padding: 48px; color: var(--muted); font-size: 1.25rem; }

/* ---------------------------------------------------------------- responsive */
@media (max-width: 1180px) {
  .nav-menu a { padding: 0 9px; font-size: .9rem; }
  .nav-menu .nav-new { padding: 0 6px 0 10px; }
  .nav-new-icon { display: none; }
  .top-bar-sub { display: none; }
  .certs-grid { grid-template-columns: repeat(4, minmax(0, 1fr)); }
  .stats-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (min-width: 1024px) {
  .nav-menu a { white-space: nowrap; }
}
@media (min-width: 1024px) and (max-width: 1120px) {
  .nav-container { gap: 12px; }
  .nav-menu a { padding: 0 6px; font-size: .875rem; }
  .nav-menu .nav-new { margin: 0 2px; padding: 0 5px 0 9px; gap: 6px; }
  .nav-menu li:last-child a { margin-left: 4px; padding: 0 14px; }
}

@media (max-width: 1023px) {
  :root { --nav-h: 64px; }
  /* backdrop-filter would make the bar the containing block of the fixed menu and clip it to the bar */
  .navbar, .navbar.scrolled { -webkit-backdrop-filter: none; backdrop-filter: none; background: #fff; }
  .mobile-toggle { display: inline-flex; }
  .nav-menu {
    position: fixed; left: 0; right: 0; top: calc(var(--nav-h) + var(--topbar-h)); bottom: 0;
    flex-direction: column; align-items: stretch; gap: 0;
    padding: 16px var(--gutter) 32px; overflow-y: auto;
    background: #fff;
    opacity: 0; visibility: hidden; transform: translateY(-6px);
    transition: opacity 200ms var(--ease), transform 200ms var(--ease), visibility 0s linear 200ms;
  }
  .nav-menu.active { opacity: 1; visibility: visible; transform: none; transition: opacity 200ms var(--ease), transform 200ms var(--ease); }
  .nav-menu li { border-bottom: 1px solid var(--line); }
  .nav-menu a { display: flex; min-height: 56px; padding: 0; font-size: 1.125rem; font-weight: 600; color: var(--ink); }
  .nav-menu a::after { display: none; }
  .nav-menu li:last-child { border: 0; padding-top: 20px; }
  .nav-menu li:last-child a { margin: 0; justify-content: center; }
  .nav-menu li.nav-featured { border-bottom: 0; padding: 10px 0; }
  .nav-menu .nav-new {
    min-height: 72px; margin: 0; padding: 12px 14px; gap: 14px; border-radius: var(--r-lg);
    background: linear-gradient(135deg, var(--brand-tint), #fff 70%); border: 1px solid #ffc9cc;
    color: var(--ink); box-shadow: 0 10px 24px -16px rgba(220, 31, 42, .55);
  }
  .nav-new-icon { display: grid; place-items: center; flex: none; width: 40px; height: 40px; border-radius: 12px; background: var(--action); color: #fff; font-size: 1rem; }
  .nav-new-text { flex: 1; min-width: 0; gap: 2px; }
  .nav-new-label { font-size: 1.125rem; font-weight: 700; }
  .nav-new-sub { display: block; font-size: .8125rem; font-weight: 500; color: var(--muted); }
  .nav-new-badge { height: 22px; padding: 0 8px; font-size: .6875rem; }

  .hero { min-height: auto; padding-top: 40px; }
  .hero-bg { background: radial-gradient(70% 40% at 100% 100%, rgba(241, 44, 53, .08), transparent 70%), var(--bg); }
  .hero-inner { grid-template-columns: minmax(0, 1fr); }
  .hero-content { max-width: 720px; }
  .hero-visual { max-width: 620px; }

  .ab-hero, .certs-intro, .stats-header, .section-header--split { grid-template-columns: minmax(0, 1fr); }
  .ab-panel { position: static; }
  .section-header-aside { padding-top: 0; }
  #faq { grid-template-rows: none; }
  .grid-3, .ab-pillars { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .certs-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .use-cases-results { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .use-cases-result:nth-child(3) { border-left: 0; }
  .use-cases-result:nth-child(n+3) { border-top: 1px solid var(--line); }
  #faq, #contact { grid-template-columns: minmax(0, 1fr); }
  #faq .section-header { position: static; margin-bottom: 32px; }
  #faq .faq-cta, .faq-list, #contact .section-header, #contact .success-message, #contact .contact-form, #contact .contact-info-grid { grid-column: 1; grid-row: auto; }
  #contact .contact-info-grid { margin-top: 32px; }
  .services-cta, .stats-cta { flex-direction: column; align-items: flex-start; }
  .footer-content { grid-template-columns: minmax(0, 1fr); }
  .social-links { grid-column: 1; grid-row: auto; }
}

/* tablet: the hotline headline would run under the phone numbers */
@media (max-width: 920px) { .top-bar-headline { display: none; } .top-bar-alert { overflow: hidden; } }
@media (max-width: 820px) { .top-bar-pill { display: none; } }

@media (max-width: 767px) {
  .hero { padding-top: 24px; }
  .top-bar-headline { display: none; }
  .top-bar-phone--secondary { display: none; }
  .top-bar-phone { padding: 0 8px; }
  .top-bar-phone, .top-bar-cta { min-height: 44px; }
  .top-bar-inner { padding-top: 2px; padding-bottom: 2px; }
  .top-bar-cta span { display: none; }
  .grid-3, .ab-pillars, .stats-grid { grid-template-columns: minmax(0, 1fr); }
  .certs-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px; }
  .contact-form, .cm-row { grid-template-columns: minmax(0, 1fr); }
  .faq-answer { padding-right: 0; }
  .rl-stage { aspect-ratio: 1 / 1; padding: 28px 18px; }
  .rl-mark { width: 52%; }
    .rl-word { margin-top: 24px; }
  .cm-head, .cm-body { padding-left: 22px; padding-right: 22px; }
  .ab-ribbon { flex-direction: column; }
  .cta-buttons .btn, .ab-actions .btn, .team-cta-actions, .team-cta-actions .btn, .services-cta .btn, .stats-cta-btn, .faq-cta .btn { width: 100%; }
  .hero-facts { gap: 16px 28px; }
  .scroll-top { display: none; }
}

@media (max-width: 479px) {
  .top-bar-pill { display: none; }
  .top-bar-inner { padding-left: 12px; padding-right: 12px; }
  .top-bar-phone-region, .top-bar-phone i { display: none; }
  .top-bar-cta { padding: 0 10px; }
  .top-bar-inner { justify-content: center; }
  .use-cases-result { padding: 20px; }
  .card { padding: 22px; }
    #productsGrid .card img { width: calc(100% + 44px) !important; margin: -22px -22px 20px !important; }
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation-duration: .01ms !important; animation-iteration-count: 1 !important; transition-property: color, background-color, border-color, opacity !important; }
}

@media print {
  .navbar, .scroll-top, .cm-overlay, .hero-visual, .rl-pause, .redside-ai-launcher { display: none !important; }
}

/* ================================================================ subpages (/cybersecurity-armenia, /careers, 404)
   Same tokens and components; their markup stays as published, scoped by body.page-sub. */
.page-sub .top-bar { position: relative; z-index: 1001; }
.page-sub .nav {
  position: sticky; top: 0; z-index: 1000;
  display: flex; align-items: center; justify-content: space-between; gap: 16px;
  height: var(--nav-h); padding: 0 var(--pad-x);
  background: rgba(255, 255, 255, .9);
  -webkit-backdrop-filter: saturate(160%) blur(14px); backdrop-filter: saturate(160%) blur(14px);
  border-bottom: 1px solid var(--line);
}
.page-sub .nav .logo { display: flex; align-items: center; min-height: 44px; }
.page-sub .nav .logo img { height: 44px; width: auto; }
.page-sub .nav-actions { display: flex; align-items: center; gap: 8px; }
.page-sub :is(.nav-cta, .btn-nav) {
  display: inline-flex; align-items: center; justify-content: center; gap: .5em;
  min-height: 44px; padding: 0 18px; border-radius: var(--r);
  font-size: .9375rem; font-weight: 600; color: var(--ink-2);
  transition: background-color var(--m-out) var(--ease), color var(--m-out) var(--ease), transform var(--m-out) var(--ease);
}
.page-sub .btn-nav:not(.primary):hover { background: var(--surface); color: var(--ink); }
.page-sub :is(.nav-cta, .btn-nav.primary) { background: var(--ink); color: #fff; }
.page-sub :is(.nav-cta, .btn-nav.primary):hover { background: var(--action); }
@media (hover: hover) and (pointer: fine) { .page-sub :is(.nav-cta, .btn-nav):hover { transform: translateY(-1px); } }
.page-sub :is(.nav-cta, .btn-nav):active { transform: translateY(1px) scale(.985); }

.page-sub .hero {
  display: block; min-height: 0; text-align: left;
  padding: clamp(72px, 9vw, 128px) var(--pad-x) clamp(64px, 7vw, 104px);
  border-bottom: 1px solid var(--line);
  background:
    radial-gradient(55% 80% at 90% 0%, rgba(241, 44, 53, .10), transparent 70%),
    linear-gradient(to right, rgba(20, 22, 27, .045) 1px, transparent 1px) 0 0 / 56px 56px,
    linear-gradient(to bottom, rgba(20, 22, 27, .045) 1px, transparent 1px) 0 0 / 56px 56px,
    var(--bg);
}
.page-sub .hero > * { max-width: 820px; }
.page-sub .badge {
  display: inline-flex; align-items: center; gap: 10px;
  padding: 6px 14px 6px 10px; margin-bottom: 24px;
  border: 1px solid var(--brand-tint-2); border-radius: 999px; background: #fff;
  font-size: .875rem; font-weight: 600; color: var(--ink-2); box-shadow: var(--shadow-sm);
}
.page-sub .badge i { color: var(--action); }
.page-sub .hero h1 { font-size: clamp(2.5rem, 5.4vw, 4.25rem); line-height: 1.03; letter-spacing: -.04em; font-weight: 750; }
.page-sub :is(.hero-lead, .hero .lead) { margin-top: 22px; font-size: clamp(1.0625rem, 1.4vw, 1.25rem); color: var(--muted); line-height: 1.6; }
.page-sub :is(.hero-lead, .hero .lead) strong { color: var(--ink); }
.page-sub .hero-hy { margin-top: 14px; font-size: 1rem; color: var(--muted); line-height: 1.65; padding-left: 16px; border-left: 2px solid var(--brand-tint-2); }
.page-sub .btn-row { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 34px; }
.page-sub .hero > .btn, .page-sub .cta > .btn, .page-sub .role-apply-wrap .btn { margin-top: 32px; }
.page-sub .btn:not(.btn-primary, .btn-secondary) { --btn-bg: var(--action); --btn-ink: #fff; --btn-line: var(--action); box-shadow: 0 1px 0 rgba(255,255,255,.18) inset, 0 6px 16px -8px rgba(220, 31, 42, .6); }
.page-sub .btn:not(.btn-primary, .btn-secondary):hover { --btn-bg: var(--action-hover); --btn-line: var(--action-hover); }
@media (prefers-reduced-motion: no-preference) {
  html.m-enter .page-sub .hero > * { animation: m-rise .52s var(--ease-enter) both; }
  html.m-enter .page-sub .hero > :nth-child(2) { animation-duration: .7s; animation-delay: 40ms; }
  html.m-enter .page-sub .hero > :nth-child(3) { animation-delay: 300ms; }
  html.m-enter .page-sub .hero > :nth-child(4) { animation-delay: 360ms; }
  html.m-enter .page-sub .hero > :nth-child(5) { animation-delay: 420ms; }
}

.page-sub .section, .page-sub .section-alt { padding: var(--section-y) var(--pad-x); background: var(--bg); }
.page-sub .section-alt, .page-sub .section.alt { background: var(--surface); }
.page-sub :is(.section, .section-alt) h2 { font-size: clamp(1.875rem, 3.2vw, 2.75rem); letter-spacing: -.03em; line-height: 1.08; max-width: 820px; }
.page-sub :is(.section, .section-alt) > p, .page-sub .inner > p { margin-top: 16px; max-width: 720px; font-size: 1.0625rem; color: var(--muted) !important; line-height: 1.65; }
.page-sub .section > .grid-3, .page-sub .section > .grid, .page-sub .section > .faq { margin-top: 44px; }
.page-sub .grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(300px, 1fr)); gap: 20px; }
.page-sub .card > i:first-child {
  display: grid; place-items: center; width: 44px; height: 44px; margin-bottom: 20px;
  border-radius: var(--r); background: var(--brand-tint); color: var(--action); font-size: 1.05rem;
}
.page-sub .role-card { cursor: pointer; }
.page-sub .role-card::after { content: 'View role \2192'; margin-top: auto; padding-top: 16px; font-size: .9375rem; font-weight: 600; color: var(--action); }
@media (hover: hover) and (pointer: fine) {
  .page-sub .role-card:hover { transform: translateY(-2px); border-color: var(--line-strong); box-shadow: 0 18px 32px -24px rgba(20, 22, 27, .28); transition-duration: var(--m-card-in); }
}
.page-sub .role-preview { display: -webkit-box; -webkit-line-clamp: 4; -webkit-box-orient: vertical; overflow: hidden; }

.page-sub :is(.why-list, .points) { margin-top: 36px; display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 0 40px; list-style: none; }
.page-sub :is(.why-list, .points) li {
  position: relative; padding: 18px 0 18px 36px; border-top: 1px solid var(--line);
  color: var(--muted); line-height: 1.6;
}
.page-sub :is(.why-list, .points) li::before {
  content: ''; position: absolute; left: 0; top: 21px; width: 20px; height: 20px; border-radius: 50%;
  background: var(--brand-tint) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='10' height='8' viewBox='0 0 10 8'%3E%3Cpath d='M1 4l2.6 2.6L9 1' fill='none' stroke='%23dc1f2a' stroke-width='1.8' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E") center / 10px no-repeat;
}
.page-sub :is(.why-list, .points) strong { color: var(--ink); }

.page-sub .faq { border-top: 1px solid var(--line); max-width: 880px; }
.page-sub .faq details { border-bottom: 1px solid var(--line); }
.page-sub .faq summary {
  display: flex; align-items: center; justify-content: space-between; gap: 24px;
  min-height: 64px; padding: 20px 0; cursor: pointer; list-style: none;
  font-size: 1.0625rem; font-weight: 600; letter-spacing: -.01em;
  transition: color var(--m-out) var(--ease);
}
.page-sub .faq summary::-webkit-details-marker { display: none; }
.page-sub .faq summary::after {
  content: ''; flex: none; width: 28px; height: 28px; border-radius: 50%; border: 1px solid var(--line);
  background: var(--surface) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='12' viewBox='0 0 12 12'%3E%3Cpath d='M6 1v10M1 6h10' stroke='%2314161b' stroke-width='1.6' stroke-linecap='round'/%3E%3C/svg%3E") center / 12px no-repeat;
}
.page-sub .faq details[open] summary::after { background-color: var(--brand-tint); border-color: var(--brand-tint-2); background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='12' viewBox='0 0 12 12'%3E%3Cpath d='M1 6h10' stroke='%23dc1f2a' stroke-width='1.6' stroke-linecap='round'/%3E%3C/svg%3E"); }
.page-sub .faq summary:hover { color: var(--action); }
.page-sub .faq .answer { padding: 0 52px 24px 0; color: var(--muted); line-height: 1.7; }
.page-sub .faq .answer a, .page-sub .section p a { color: var(--action); font-weight: 600; }

.page-sub :is(.cta-block, .cta) {
  position: relative; isolation: isolate; overflow: clip;
  margin: 0 var(--pad-x) var(--section-y); padding: clamp(40px, 6vw, 72px) clamp(24px, 5vw, 72px);
  border-radius: var(--r-xl); background: var(--dark); color: var(--dark-ink); text-align: left;
}
.page-sub .section.alt + .section + .cta, .page-sub .section + .cta-block { margin-top: 0; }
.page-sub :is(.cta-block, .cta)::before { content: ''; position: absolute; inset: 0; z-index: -1; background: radial-gradient(60% 120% at 100% 0%, rgba(241, 44, 53, .25), transparent 60%); }
.page-sub :is(.cta-block, .cta) h2 { font-size: clamp(1.75rem, 3vw, 2.5rem); letter-spacing: -.03em; line-height: 1.1; color: #fff; max-width: 760px; margin-bottom: 14px !important; }
.page-sub :is(.cta-block, .cta) p { color: var(--dark-muted) !important; max-width: 640px !important; margin: 0 0 28px !important; font-size: 1.0625rem; }
.page-sub :is(.cta-block, .cta) .btn { margin-top: 0; }

.page-sub > footer {
  padding: 40px var(--pad-x); background: var(--dark); color: var(--dark-muted);
  font-size: .9375rem; text-align: left;
}
.page-sub > footer p:first-child { display: flex; flex-wrap: wrap; align-items: center; gap: 0 6px; color: var(--dark-line); }
.page-sub > footer a {
  display: inline-flex; align-items: center; min-height: 44px; margin: 0 !important;
  color: var(--dark-ink); font-weight: 500; transition: color var(--m-out) var(--ease);
}
.page-sub > footer p a:not([class]) { background: none; padding: 0; font-weight: 500; color: var(--dark-ink); }
.page-sub > footer a:hover { color: #fff; text-decoration: underline; text-underline-offset: 4px; text-decoration-thickness: 1px; }
.page-sub > footer p + p { font-size: .8125rem; }

/* careers: role modal */
.role-modal {
  position: fixed; inset: 0; z-index: 3000; display: grid; place-items: center; padding: 20px;
  background: rgba(14, 16, 20, .55); -webkit-backdrop-filter: blur(6px); backdrop-filter: blur(6px);
  opacity: 0; visibility: hidden; transition: opacity 200ms var(--ease), visibility 0s linear 200ms;
}
.role-modal.show { opacity: 1; visibility: visible; transition: opacity 200ms var(--ease); }
.role-modal-content {
  width: min(760px, 100%); max-height: calc(100dvh - 40px); overflow: auto;
  background: #fff; border-radius: var(--r-xl); box-shadow: 0 40px 80px -24px rgba(14, 16, 20, .45);
  transform: translateY(6px); transition: transform 200ms var(--ease-enter);
}
.role-modal.show .role-modal-content { transform: none; }
.role-modal-header { position: sticky; top: 0; display: flex; align-items: center; justify-content: space-between; gap: 16px; padding: 22px 28px; background: #fff; border-bottom: 1px solid var(--line); }
.role-modal-header h3 { font-size: 1.375rem; letter-spacing: -.02em; }
.btn-close { display: grid; place-items: center; flex: none; width: 44px; height: 44px; border-radius: 50%; color: var(--muted); transition: background-color var(--m-out) var(--ease); }
.btn-close:hover { background: var(--surface); color: var(--ink); }
.role-markdown { padding: 24px 28px; color: var(--ink-2); line-height: 1.7; }
.role-markdown :is(h4, h3) { margin: 22px 0 8px; font-size: 1.0625rem; color: var(--ink); }
.role-markdown :is(ul, ol) { padding-left: 20px; display: grid; gap: 6px; }
.role-markdown p + p { margin-top: 10px; }
.role-apply-wrap { margin: 0 28px 28px; padding: 22px; border-radius: var(--r-lg); background: var(--surface); }
.role-apply-wrap p { color: var(--muted); }
.role-apply-wrap .btn { margin-top: 14px !important; }

/* 404 */
.page-404 { min-height: 100svh; display: grid; place-items: center; padding: 40px var(--gutter); background:
    radial-gradient(50% 60% at 50% 0%, rgba(241, 44, 53, .10), transparent 70%),
    linear-gradient(to right, rgba(20, 22, 27, .045) 1px, transparent 1px) 0 0 / 56px 56px,
    linear-gradient(to bottom, rgba(20, 22, 27, .045) 1px, transparent 1px) 0 0 / 56px 56px, var(--bg); }
.page-404 .bg-grid { display: none; }
.error-container { max-width: 560px; text-align: center; display: flex; flex-direction: column; align-items: center; }
.error-icon { display: grid; place-items: center; width: 64px; height: 64px; border-radius: 18px; background: var(--dark); color: var(--brand); font-size: 1.5rem; margin-bottom: 28px; }
.error-code { font-size: clamp(5rem, 16vw, 8rem); font-weight: 800; letter-spacing: -.06em; line-height: .9; color: var(--ink); }
.error-container h1 { margin-top: 14px; font-size: clamp(1.75rem, 4vw, 2.25rem); letter-spacing: -.03em; }
.error-container p { margin-top: 12px; color: var(--muted); font-size: 1.0625rem; }
.btn-home {
  display: inline-flex; align-items: center; gap: .6em; margin-top: 32px; min-height: 48px; padding: 0 24px;
  border-radius: var(--r); background: var(--action); color: #fff; font-weight: 600;
  transition: background-color var(--m-out) var(--ease), transform var(--m-out) var(--ease);
}
.btn-home:hover { background: var(--action-hover); }
@media (hover: hover) and (pointer: fine) { .btn-home:hover { transform: translateY(-1px); } }
.btn-home:active { transform: translateY(1px) scale(.985); }

@media (max-width: 767px) {
  .page-sub :is(.why-list, .points) { grid-template-columns: minmax(0, 1fr); }
  .page-sub .btn-row .btn, .page-sub .hero > .btn, .page-sub :is(.cta-block, .cta) .btn { width: 100%; }
  .page-sub .faq .answer { padding-right: 0; }
  .page-sub :is(.cta-block, .cta) { margin-left: var(--gutter); margin-right: var(--gutter); }
  .page-sub .grid { grid-template-columns: minmax(0, 1fr); }
  .page-sub .nav-actions .btn-nav:not(.primary) { display: none; }
}
