/* ============== TURKOL DESIGN TOKENS ============== */
:root {
  /* Brand */
  --blue-100: #EAF1FF;
  --blue-200: #CFE0FF;
  --blue-300: #9FB9FF;
  --blue-400: #7FB3FF;
  --blue-500: #5C7FFF;
  --blue-600: #3D5FFF;   /* primary */
  --blue-700: #2547F0;
  --blue-800: #1F3FE6;
  --blue-900: #16329C;

  /* Neutrals (cool) — tuned for WCAG AA contrast on light bg */
  --ink-1000: #0B0C10;
  --ink-900:  #15171C;
  --ink-800:  #1A1B1F;   /* logo wordmark */
  --ink-700:  #292B33;
  --ink-600:  #3D3F49;
  --ink-500:  #43475A;   /* body lead, 8.0:1 on bg */
  --ink-400:  #555A6D;   /* sub-labels, 5.8:1 on bg */
  --ink-300:  #6A6F82;   /* corner badges, 4.6:1 on bg */
  --ink-200:  #D7DAE2;
  --ink-100:  #ECEEF3;
  --ink-50:   #F5F6FA;
  --ink-0:    #FFFFFF;

  --bg: #FBFBFD;
  --surface: #FFFFFF;
  --line: #E7E9F0;

  /* Accent (subtle, brand-adjacent) */
  --cyan-500: oklch(72% 0.13 220);
  --violet-500: oklch(60% 0.14 280);

  /* Type */
  --font-sans: "Inter", system-ui, -apple-system, "Segoe UI", sans-serif;
  --font-display: "Space Grotesk", "Inter", sans-serif;
  --font-mono: "JetBrains Mono", ui-monospace, "SF Mono", monospace;

  /* Radii / shadows */
  --r-xs: 6px;
  --r-sm: 10px;
  --r-md: 14px;
  --r-lg: 20px;
  --r-xl: 28px;
  --r-2xl: 40px;

  --sh-1: 0 1px 2px rgba(15,23,42,.04), 0 1px 1px rgba(15,23,42,.03);
  --sh-2: 0 6px 18px rgba(15,23,42,.06), 0 2px 4px rgba(15,23,42,.04);
  --sh-3: 0 24px 60px -16px rgba(15,23,42,.18), 0 8px 18px rgba(15,23,42,.06);
  --sh-blue: 0 18px 40px -12px rgba(61,95,255,.45);

  /* Layout */
  --container: 1240px;
  --gutter: 28px;
}

* { box-sizing: border-box; }
html, body { margin: 0; padding: 0; }
html { scroll-behavior: smooth; }

/* Accessibility skip link */
.skip-link {
  position: absolute;
  left: -9999px;
  top: 0;
  z-index: 1000;
  background: var(--blue-700);
  color: white;
  padding: 10px 16px;
  border-radius: 0 0 8px 0;
  font-size: 14px;
}
.skip-link:focus { left: 0; }

/* Nav dot pulse */
.nav-dot {
  width: 6px; height: 6px; border-radius: 50%;
  background: #22c55e;
  box-shadow: 0 0 0 3px rgba(34,197,94,.18);
  display: inline-block;
}
.nav-btn { height: 40px; font-size: 14px; }
.btn .ic { transition: transform .2s ease; }
.btn:hover .ic { transform: translateX(3px); }

/* prefers-reduced-motion */
@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;
  }
}
body {
  font-family: var(--font-sans);
  font-size: 16px;
  line-height: 1.55;
  color: var(--ink-800);
  background: var(--bg);
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

a { color: inherit; text-decoration: none; }
button { font: inherit; cursor: pointer; border: 0; background: none; color: inherit; }
img { max-width: 100%; display: block; }

::selection { background: var(--blue-600); color: white; }

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

.section {
  padding-block: clamp(72px, 10vw, 140px);
  position: relative;
}

.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-family: var(--font-mono);
  font-size: 12px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--blue-900);
  background: var(--blue-100);
  border: 1px solid color-mix(in oklab, var(--blue-600) 15%, transparent);
  padding: 6px 12px;
  border-radius: 999px;
}
.eyebrow .dot {
  width: 6px; height: 6px; border-radius: 50%;
  background: var(--blue-600);
  box-shadow: 0 0 0 4px color-mix(in oklab, var(--blue-600) 22%, transparent);
  animation: pulse 1.8s ease-in-out infinite;
}

@keyframes pulse {
  0%,100% { box-shadow: 0 0 0 4px color-mix(in oklab, var(--blue-600) 22%, transparent); }
  50% { box-shadow: 0 0 0 8px color-mix(in oklab, var(--blue-600) 6%, transparent); }
}

h1, h2, h3, h4 {
  font-family: var(--font-display);
  font-weight: 600;
  letter-spacing: -0.02em;
  color: var(--ink-900);
  text-wrap: balance;
  margin: 0;
}
h1 { font-size: clamp(44px, 6vw, 76px); line-height: 1.02; letter-spacing: -0.035em; }
h2 { font-size: clamp(32px, 4vw, 52px); line-height: 1.05; letter-spacing: -0.028em; }
h3 { font-size: clamp(20px, 1.6vw, 24px); line-height: 1.2; }
h4 { font-size: 17px; line-height: 1.3; }

p { margin: 0; }
.lead { font-size: 19px; line-height: 1.55; color: var(--ink-500); max-width: 60ch; }

/* ============== BUTTONS ============== */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  height: 48px;
  padding: 0 22px;
  border-radius: 999px;
  font-weight: 500;
  font-size: 15px;
  transition: transform .18s ease, box-shadow .18s ease, background .18s ease, color .18s ease;
  white-space: nowrap;
}
.btn-primary {
  background-color: var(--blue-700);
  color: white;
  box-shadow: var(--sh-blue);
}
.btn-primary:hover { transform: translateY(-1px); box-shadow: 0 22px 48px -12px rgba(61,95,255,.55); }
.btn-ghost {
  background: var(--surface);
  color: var(--ink-800);
  border: 1px solid var(--line);
  box-shadow: var(--sh-1);
}
.btn-ghost:hover { border-color: var(--ink-300); }
.btn-link {
  height: auto;
  padding: 0;
  background: none;
  color: var(--blue-700);
  border-radius: 0;
}
.btn-link:hover { color: var(--blue-800); }
.btn .arr {
  width: 18px; height: 18px;
  transition: transform .2s ease;
}
.btn:hover .arr { transform: translateX(3px); }

/* ============== NAV ============== */
.nav {
  position: fixed;
  inset: 0 0 auto 0;
  z-index: 100;
  padding: 14px 0;
  transition: backdrop-filter .2s, background .2s, border-color .2s;
  border-bottom: 1px solid transparent;
}
.nav.scrolled {
  background: color-mix(in oklab, white 80%, transparent);
  backdrop-filter: saturate(180%) blur(14px);
  -webkit-backdrop-filter: saturate(180%) blur(14px);
  border-bottom-color: var(--line);
}
.nav-inner {
  display: flex;
  align-items: center;
  gap: 32px;
}
.logo-wrap { display: flex; align-items: center; gap: 12px; }
.logo-wrap img { height: 28px; width: auto; }
.nav-links {
  display: flex;
  gap: 4px;
  margin-left: 20px;
}
.nav-link {
  padding: 8px 14px;
  font-size: 14.5px;
  color: var(--ink-600);
  border-radius: 999px;
  transition: background .15s, color .15s;
}
.nav-link:hover { background: var(--ink-50); color: var(--ink-900); }
.nav-cta { margin-left: auto; display: flex; gap: 10px; align-items: center; }
.nav-mini {
  font-size: 14px; color: var(--ink-500);
  display: inline-flex; align-items: center; gap: 6px;
}
@media (max-width: 880px) {
  .nav-links, .nav-mini { display: none; }
}

/* ============== HERO ============== */
.hero {
  position: relative;
  padding-top: 140px;
  padding-bottom: 80px;
  overflow: hidden;
}
.hero-grid {
  display: grid;
  grid-template-columns: 1.05fr 1fr;
  gap: 48px;
  align-items: center;
}
@media (max-width: 1000px) {
  .hero-grid { grid-template-columns: 1fr; gap: 56px; }
}
.hero h1 .swap {
  position: relative;
  display: inline-block;
  color: var(--blue-700);
}
/* underline glow removed — was decorative pseudo causing scanner incomplete */
.swap-mask {
  display: inline-block;
  vertical-align: bottom;
  height: 1.05em;
  overflow: hidden;
  position: relative;
}
.swap-track {
  display: inline-block;
  transition: transform .55s cubic-bezier(.22,1,.36,1);
}
.hero h1 .swap-item { display: block; height: 1.05em; line-height: 1.05; }

.hero-stats {
  display: grid;
  grid-template-columns: repeat(3, auto);
  gap: 32px;
  margin-top: 36px;
  padding-top: 28px;
  border-top: 1px solid var(--line);
  width: max-content;
  max-width: 100%;
}
.hero-stat .num {
  font-family: var(--font-display);
  font-size: 32px;
  font-weight: 600;
  color: var(--ink-900);
  letter-spacing: -0.02em;
}
.hero-stat .lbl {
  font-size: 13px;
  color: var(--ink-500);
  margin-top: 2px;
}
@media (max-width: 540px) {
  .hero-stats { grid-template-columns: repeat(3, 1fr); gap: 16px; width: 100%; }
  .hero-stat .num { font-size: 24px; }
}

.hero-cta {
  display: flex;
  gap: 14px;
  margin-top: 32px;
  flex-wrap: wrap;
}

/* Hero visual: animated data viz panel */
.hero-viz {
  position: relative;
  aspect-ratio: 1 / 1;
  width: 100%;
  max-width: 580px;
  margin-left: auto;
}
.viz-frame {
  position: absolute; inset: 0;
  border-radius: var(--r-2xl);
  background-color: #0B0C10;
  overflow: hidden;
  box-shadow: 0 40px 80px -30px rgba(15,23,42,.55), inset 0 1px 0 rgba(255,255,255,.06);
}
.viz-grid {
  position: absolute; inset: 0;
  background-image:
    linear-gradient(rgba(255,255,255,.045) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255,255,255,.045) 1px, transparent 1px);
  background-size: 36px 36px;
  mask-image: radial-gradient(120% 120% at 50% 40%, black 35%, transparent 75%);
}
.viz-radar {
  position: absolute;
  left: 50%; top: 52%;
  width: 520px; height: 520px;
  transform: translate(-50%, -50%);
  pointer-events: none;
}
.viz-svg {
  position: absolute; inset: 0;
  width: 100%; height: 100%;
}
.node-card {
  position: absolute;
  background-color: #14182E;
  border: 1px solid rgba(255,255,255,.10);
  border-radius: 12px;
  padding: 10px 12px;
  font-size: 12px;
  color: white;
  box-shadow: 0 12px 30px -10px rgba(0,0,0,.55);
  min-width: 150px;
}
.node-card .nc-row { display: flex; align-items: center; gap: 8px; }
.node-card .nc-tag {
  font-family: var(--font-mono);
  font-size: 10px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--blue-300);
}
.node-card .nc-val {
  font-family: var(--font-display);
  font-size: 18px;
  font-weight: 600;
  margin-top: 2px;
}
.node-card .nc-sub {
  font-size: 11px;
  color: rgba(255,255,255,.55);
  margin-top: 2px;
}
.node-card .live-dot {
  width: 6px; height: 6px; border-radius: 50%;
  background: #4ade80; box-shadow: 0 0 0 4px rgba(74,222,128,.18);
  animation: pulse 1.8s ease-in-out infinite;
}
.node-card.float { animation: floaty 6s ease-in-out infinite; }
.node-card.float-2 { animation: floaty 7.5s ease-in-out -2s infinite; }
.node-card.float-3 { animation: floaty 5s ease-in-out -4s infinite; }
@keyframes floaty {
  0%,100% { transform: translateY(0); }
  50% { transform: translateY(-8px); }
}

.viz-caption {
  position: absolute;
  bottom: 18px; left: 18px;
  display: flex; align-items: center; gap: 10px;
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: rgba(255,255,255,.55);
}

/* Constellation dots */
.dot-pulse { fill: var(--blue-500); }
.dot-pulse-ring {
  fill: none; stroke: var(--blue-400);
  transform-box: fill-box;
  transform-origin: center;
  animation: ring 2.4s ease-out infinite;
}
@keyframes ring {
  0% { r: 6; opacity: 0.7; }
  100% { r: 28; opacity: 0; }
}

.flow-line {
  fill: none;
  stroke: rgba(127,179,255,.55);
  stroke-width: 1.2;
  stroke-dasharray: 4 6;
  animation: dash 2s linear infinite;
}
@keyframes dash {
  to { stroke-dashoffset: -20; }
}

/* ============== LOGO MARQUEE ============== */
.trust {
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
  padding: 36px 0;
  background: white;
}
.trust-label {
  text-align: center;
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--ink-400);
  margin-bottom: 24px;
}
.marquee {
  position: relative;
  overflow: hidden;
  mask-image: linear-gradient(90deg, transparent, black 8%, black 92%, transparent);
}
.marquee-track {
  display: flex;
  gap: 64px;
  width: max-content;
  animation: scroll 40s linear infinite;
  align-items: center;
}
@keyframes scroll {
  to { transform: translateX(-50%); }
}
.client-logo {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 200px;
  height: 72px;
  padding: 0 12px;
  flex: none;
  filter: grayscale(1) contrast(0.95);
  opacity: .58;
  transition: opacity .25s ease, filter .25s ease, transform .25s ease;
}
.client-logo:hover { opacity: 1; filter: none; transform: scale(1.04); }
.client-logo img {
  max-height: 52px;
  max-width: 170px;
  width: auto;
  height: auto;
  object-fit: contain;
}

/* ============== PRODUCTS GALLERY ============== */
.products-gallery {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 18px;
}
@media (max-width: 980px) { .products-gallery { grid-template-columns: 1fr; } }

.product-card {
  position: relative;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--r-xl);
  overflow: hidden;
  display: flex;
  flex-direction: column;
  transition: transform .25s ease, box-shadow .25s ease, border-color .25s;
}
.product-card:hover {
  transform: translateY(-4px);
  box-shadow: var(--sh-3);
  border-color: color-mix(in oklab, var(--blue-600) 30%, var(--line));
}
.product-card .pc-shot {
  position: relative;
  aspect-ratio: 16 / 10;
  overflow: hidden;
}
.product-card .pc-body {
  padding: 24px 26px 26px;
  display: flex;
  flex-direction: column;
  gap: 14px;
  flex: 1;
}
.product-card .pc-head {
  display: flex; align-items: center; justify-content: space-between;
  gap: 12px;
}
.product-card .pc-domain {
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: .04em;
  color: var(--ink-400);
}
.product-card .pc-status {
  font-family: var(--font-mono);
  font-size: 10px;
  letter-spacing: .08em;
  text-transform: uppercase;
  padding: 3px 8px;
  border-radius: 999px;
  background: rgba(22,101,52,.14);
  color: #14532d;
  display: inline-flex; align-items: center; gap: 6px;
}
.product-card .pc-status .live-dot {
  width: 6px; height: 6px; border-radius: 50%;
  background: #166534; box-shadow: 0 0 0 3px rgba(22,101,52,.18);
  animation: pulse 1.8s infinite;
  display: inline-block;
}
.product-card h3 { font-size: 22px; }
.product-card .pc-desc { font-size: 14.5px; color: var(--ink-500); line-height: 1.55; }
.product-card .pc-feats {
  list-style: none; padding: 0; margin: 6px 0 0;
  display: flex; flex-direction: column; gap: 8px;
}
.product-card .pc-feats li {
  display: flex; gap: 10px; align-items: flex-start;
  font-size: 13.5px; color: var(--ink-700);
}
.product-card .pc-feats li svg { flex: none; color: var(--blue-700); margin-top: 2px; }
.product-card .pc-foot {
  margin-top: auto;
  display: flex; gap: 10px; align-items: center; justify-content: space-between;
  padding-top: 8px;
}
.product-card .pc-link {
  display: inline-flex; align-items: center; gap: 8px;
  font-size: 14px; font-weight: 500; color: var(--blue-700);
}
.product-card .pc-link svg { transition: transform .2s; }
.product-card:hover .pc-link svg { transform: translateX(3px); }
.product-card .pc-tags { display: flex; gap: 6px; flex-wrap: wrap; }
.product-card .pc-tag {
  font-family: var(--font-mono);
  font-size: 10.5px;
  letter-spacing: .04em;
  text-transform: uppercase;
  padding: 4px 8px;
  border-radius: 6px;
  background: var(--ink-50);
  color: var(--ink-500);
}

/* Product shot variants — solid dark colors for contrast */
.shot-spatly {
  background-color: #0E1330;
  position: relative;
}
.shot-techsupport {
  background-color: #11206E;
}
.shot-certvo {
  background-color: #0B0C10;
}

/* Contact / Map section */
.contact-grid {
  display: grid;
  grid-template-columns: 1fr 1.2fr;
  gap: 24px;
  align-items: stretch;
}
@media (max-width: 900px) { .contact-grid { grid-template-columns: 1fr; } }
.contact-card {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--r-lg);
  padding: 36px;
  display: flex;
  flex-direction: column;
  gap: 24px;
}
.contact-info-row {
  display: flex;
  gap: 14px;
  align-items: flex-start;
}
.contact-info-row .ci-icon {
  flex: none;
  width: 40px; height: 40px;
  border-radius: 10px;
  background: var(--blue-100);
  color: var(--blue-700);
  display: grid; place-items: center;
}
.contact-info-row .ci-label {
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: .08em;
  text-transform: uppercase;
  color: var(--ink-400);
  margin-bottom: 4px;
}
.contact-info-row .ci-value {
  font-family: var(--font-display);
  font-size: 17px;
  color: var(--ink-900);
  line-height: 1.4;
  font-weight: 500;
}
.contact-info-row .ci-sub {
  font-size: 13.5px;
  color: var(--ink-500);
  margin-top: 4px;
}
.map-frame {
  border-radius: var(--r-lg);
  overflow: hidden;
  border: 1px solid var(--line);
  background: var(--ink-50);
  min-height: 420px;
  position: relative;
}
.map-frame iframe { width: 100%; height: 100%; min-height: 420px; border: 0; display: block; filter: grayscale(0.2) contrast(1.05); }

/* About strip */
.about-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 56px;
  align-items: center;
}
@media (max-width: 900px) { .about-grid { grid-template-columns: 1fr; gap: 36px; } }
.about-pillars {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 18px;
  margin-top: 28px;
}
@media (max-width: 540px) { .about-pillars { grid-template-columns: 1fr; } }
.pillar {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--r-md);
  padding: 18px;
}
.pillar .p-icon {
  width: 32px; height: 32px;
  border-radius: 8px;
  background: var(--blue-100);
  color: var(--blue-700);
  display: grid; place-items: center;
  margin-bottom: 10px;
}
.pillar h3, .pillar h4 { font-size: 15px; line-height: 1.3; margin-bottom: 4px; letter-spacing: -0.005em; }
.pillar p { font-size: 13.5px; color: var(--ink-500); line-height: 1.5; }
.about-collage {
  position: relative;
  aspect-ratio: 5 / 4;
  border-radius: var(--r-2xl);
  background-color: #0E1330;
  overflow: hidden;
  padding: 28px;
  color: white;
  box-shadow: 0 30px 60px -20px rgba(15,23,42,.4);
}

/* ============== SERVICES ============== */
.section-head {
  display: grid;
  grid-template-columns: 1fr auto;
  align-items: end;
  gap: 24px;
  margin-bottom: 56px;
}
.section-head .h-text { max-width: 720px; }
.section-head .h-text .lead { margin-top: 16px; }
@media (max-width: 800px) {
  .section-head { grid-template-columns: 1fr; }
}

.services-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 18px;
}
@media (max-width: 980px) { .services-grid { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 600px) { .services-grid { grid-template-columns: 1fr; } }

.service-card {
  position: relative;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--r-lg);
  padding: 28px;
  overflow: hidden;
  transition: transform .25s ease, border-color .25s, box-shadow .25s;
  min-height: 260px;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  cursor: pointer;
}
.service-card:hover {
  transform: translateY(-4px);
  border-color: color-mix(in oklab, var(--blue-600) 40%, var(--line));
  box-shadow: var(--sh-3);
}
.service-card .sc-icon {
  width: 48px; height: 48px;
  border-radius: 12px;
  background: var(--blue-100);
  color: var(--blue-700);
  display: grid; place-items: center;
  margin-bottom: 18px;
  transition: background .2s, color .2s;
}
.service-card:hover .sc-icon {
  background: var(--blue-600);
  color: white;
}
.service-card .sc-title { margin-bottom: 8px; }
.service-card .sc-desc { color: var(--ink-500); font-size: 14.5px; line-height: 1.55; }
.service-card .sc-tags {
  display: flex; gap: 6px; flex-wrap: wrap;
  margin-top: 18px;
}
.service-card .sc-tag {
  font-family: var(--font-mono);
  font-size: 10.5px;
  letter-spacing: .04em;
  text-transform: uppercase;
  padding: 4px 8px;
  border-radius: 6px;
  background: var(--ink-50);
  color: var(--ink-500);
}
.service-card .sc-corner {
  position: absolute;
  top: 24px; right: 24px;
  font-family: var(--font-mono);
  color: var(--ink-300);
  font-size: 12px;
}
/* hover glow pseudo removed — replaced by border-color change on hover */

/* ============== PRODUCT SHOWCASE ============== */
.product {
  background-color: #0B0C10;
  color: white;
  border-radius: var(--r-2xl);
  padding: 64px;
  display: grid;
  grid-template-columns: 0.9fr 1.1fr;
  gap: 48px;
  align-items: center;
  overflow: hidden;
  position: relative;
}
.product * { position: relative; }
@media (max-width: 980px) {
  .product { grid-template-columns: 1fr; padding: 36px; }
}
.product h2 { color: white; }
.product .lead { color: rgba(255,255,255,.65); }
.product .eyebrow {
  background: rgba(127,179,255,.12);
  color: var(--blue-300);
  border-color: rgba(127,179,255,.3);
}
.product-features {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 18px 28px;
  margin-top: 28px;
  margin-bottom: 28px;
}
.product-feat {
  display: flex; gap: 12px; align-items: flex-start;
  font-size: 14.5px;
  color: rgba(255,255,255,.8);
}
.product-feat .check {
  flex: none;
  width: 22px; height: 22px;
  border-radius: 6px;
  background: rgba(127,179,255,.14);
  color: var(--blue-300);
  display: grid; place-items: center;
}
.product-shot {
  position: relative;
  aspect-ratio: 4 / 3;
  background: #0E1124;
  border: 1px solid rgba(255,255,255,.08);
  border-radius: var(--r-lg);
  overflow: hidden;
  box-shadow: 0 40px 80px -20px rgba(0,0,0,.6);
}

/* ============== STATS ============== */
.stats-row {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 0;
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
}
.stat-cell {
  padding: 36px 28px;
  border-right: 1px solid var(--line);
  display: flex; flex-direction: column; gap: 6px;
}
.stat-cell:last-child { border-right: 0; }
.stat-cell .num {
  font-family: var(--font-display);
  font-size: clamp(36px, 4vw, 56px);
  font-weight: 600;
  letter-spacing: -0.025em;
  color: var(--ink-900);
  line-height: 1;
}
.stat-cell .num .unit { font-size: 0.5em; color: var(--blue-700); margin-left: 4px; }
.stat-cell-text .num { font-size: clamp(22px, 2.6vw, 32px); line-height: 1.1; }
.stat-cell-text .num .unit { font-size: 0.7em; }
.stat-cell .lbl { font-size: 13px; color: var(--ink-500); }
.stat-cell .sub {
  font-family: var(--font-mono);
  font-size: 11px;
  color: var(--ink-400);
  letter-spacing: 0.05em;
  text-transform: uppercase;
  margin-top: 2px;
}
@media (max-width: 760px) {
  .stats-row { grid-template-columns: repeat(2, 1fr); }
  .stat-cell { border-right: 0; border-bottom: 1px solid var(--line); }
  .stat-cell:nth-child(even) { border-right: 0; }
  .stat-cell:nth-child(2n+1) { border-right: 1px solid var(--line); }
  .stat-cell:nth-last-child(-n+2) { border-bottom: 0; }
}

/* ============== PROCESS ============== */
.process-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 0;
  position: relative;
}
/* Connector line replaced by inline svg/element to avoid pseudo-element scanner incomplete */
.process-grid .process-line {
  position: absolute;
  top: 32px; left: 0; right: 0;
  height: 1px;
  background-color: var(--ink-200);
  opacity: .8;
}
.process-step {
  padding: 0 24px 0 0;
  position: relative;
}
.process-step .stp-num {
  width: 64px; height: 64px;
  border-radius: 50%;
  background: white;
  border: 1px solid var(--line);
  display: grid; place-items: center;
  font-family: var(--font-display);
  font-size: 24px;
  color: var(--blue-700);
  margin-bottom: 24px;
  position: relative;
  z-index: 1;
  box-shadow: var(--sh-1);
  transition: background .2s, color .2s, transform .2s;
}
.process-step:hover .stp-num {
  background: var(--blue-600);
  color: white;
  transform: scale(1.05);
}
.process-step h3 { margin-bottom: 6px; }
.process-step p { font-size: 14.5px; color: var(--ink-500); line-height: 1.55; }
.process-step .stp-tags {
  display: flex; gap: 6px; flex-wrap: wrap;
  margin-top: 14px;
  font-family: var(--font-mono);
  font-size: 11px;
  color: var(--ink-400);
}
.process-step .stp-tags span { color: var(--ink-500); }
.process-step .stp-tags .arrow { color: var(--blue-700); margin-right: 4px; }
@media (max-width: 900px) {
  .process-grid { grid-template-columns: 1fr 1fr; gap: 36px 24px; }
  .process-grid .process-line { display: none; }
}
@media (max-width: 540px) {
  .process-grid { grid-template-columns: 1fr; }
}

/* ============== CASES ============== */
.cases-grid {
  display: grid;
  grid-template-columns: 1.4fr 1fr 1fr;
  gap: 18px;
}
@media (max-width: 980px) {
  .cases-grid { grid-template-columns: 1fr 1fr; }
  .case.feature { grid-column: 1 / -1; }
}
@media (max-width: 600px) {
  .cases-grid { grid-template-columns: 1fr; }
}
.case {
  position: relative;
  border-radius: var(--r-lg);
  overflow: hidden;
  min-height: 360px;
  padding: 28px;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  color: white;
  cursor: pointer;
  transition: transform .25s ease;
}
.case:hover { transform: translateY(-3px); }
.case-bg {
  position: absolute; inset: 0;
  z-index: 0;
}
.case-overlay {
  position: absolute; inset: 0;
  background: linear-gradient(160deg, rgba(11,12,16,0) 30%, rgba(11,12,16,.85));
  z-index: 1;
}
.case > * { position: relative; z-index: 2; }
.case .case-tag {
  display: inline-flex;
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: .08em;
  text-transform: uppercase;
  padding: 4px 10px;
  background: rgba(255,255,255,.12);
  border-radius: 999px;
  width: max-content;
  backdrop-filter: blur(6px);
}
.case h3 { color: white; max-width: 18ch; }
.case .case-meta {
  display: flex; gap: 18px;
  font-family: var(--font-mono);
  font-size: 11px;
  color: rgba(255,255,255,.6);
  letter-spacing: 0.05em;
  text-transform: uppercase;
}
.case .case-meta strong { color: white; font-weight: 600; }
.case.feature { min-height: 460px; padding: 36px; }
.case.feature h3 { font-size: 30px; }

/* ============== TECH STACK ============== */
.tech-grid {
  display: grid;
  grid-template-columns: repeat(6, 1fr);
  gap: 14px;
}
@media (max-width: 900px) { .tech-grid { grid-template-columns: repeat(3, 1fr); } }
@media (max-width: 540px) { .tech-grid { grid-template-columns: repeat(2, 1fr); } }
.tech-cell {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--r-md);
  padding: 18px;
  display: flex;
  flex-direction: column;
  gap: 6px;
  align-items: flex-start;
  transition: border-color .2s, transform .2s;
}
.tech-cell:hover { border-color: var(--ink-300); transform: translateY(-2px); }
.tech-cell .tc-icon {
  width: 28px; height: 28px;
  display: grid; place-items: center;
  color: var(--blue-700);
}
.tech-cell .tc-name {
  font-family: var(--font-display);
  font-size: 15px;
  font-weight: 500;
  color: var(--ink-900);
}
.tech-cell .tc-cat {
  font-family: var(--font-mono);
  font-size: 10.5px;
  text-transform: uppercase;
  letter-spacing: .06em;
  color: var(--ink-400);
}

/* ============== TESTIMONIALS ============== */
.test-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 18px;
}
@media (max-width: 800px) { .test-grid { grid-template-columns: 1fr; } }
.testimonial {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--r-lg);
  padding: 32px;
  display: flex; flex-direction: column;
  gap: 20px;
}
.testimonial .quote {
  font-family: var(--font-display);
  font-size: 22px;
  line-height: 1.4;
  color: var(--ink-900);
  letter-spacing: -0.01em;
  text-wrap: pretty;
}
.testimonial .quote-mark {
  display: block;
  font-size: 64px;
  line-height: 0.5;
  margin-top: 14px;
  margin-bottom: 14px;
  color: var(--blue-700);
  font-family: var(--font-display);
}
.testimonial .who {
  display: flex; align-items: center; gap: 12px;
  margin-top: auto;
  padding-top: 18px;
  border-top: 1px solid var(--line);
}
.testimonial .who .avatar {
  width: 40px; height: 40px;
  border-radius: 50%;
  background-color: var(--blue-600);
  color: white;
  display: grid; place-items: center;
  font-family: var(--font-display);
  font-weight: 600;
}
.testimonial .who .name { font-size: 14px; font-weight: 600; }
.testimonial .who .role { font-size: 12.5px; color: var(--ink-500); }

.test-grid-single { grid-template-columns: 1fr; max-width: 920px; margin: 0 auto; }
.testimonial-feature { padding: 44px; }
.testimonial-feature .quote { font-size: 26px; line-height: 1.4; }
@media (max-width: 700px) { .testimonial-feature { padding: 28px; } .testimonial-feature .quote { font-size: 20px; } }
.testimonial .who .who-logo {
  height: 36px; width: auto; max-width: 140px;
  object-fit: contain;
  filter: grayscale(1) contrast(0.95);
  opacity: .75;
}

/* ============== CTA ============== */
.cta {
  background-color: var(--blue-800);
  color: white;
  border-radius: var(--r-2xl);
  padding: 72px;
  text-align: center;
  position: relative;
  overflow: hidden;
}
.cta * { position: relative; }
.cta h2 { color: white; max-width: 22ch; margin-inline: auto; }
.cta .lead { color: rgba(255,255,255,.75); margin: 18px auto 32px; }
.cta .btn-primary {
  background: white;
  color: var(--blue-800);
  box-shadow: 0 18px 40px -12px rgba(0,0,0,.35);
}
.cta .btn-ghost {
  background: rgba(255,255,255,.08);
  color: white;
  border-color: rgba(255,255,255,.18);
  backdrop-filter: blur(6px);
}
.cta .btn-ghost:hover { background: rgba(255,255,255,.14); }
.cta-actions { display: inline-flex; gap: 14px; flex-wrap: wrap; justify-content: center; }
@media (max-width: 700px) { .cta { padding: 44px 24px; } }

/* ============== FOOTER ============== */
.footer {
  background: var(--ink-1000);
  color: rgba(255,255,255,.78);
  padding: 72px 0 36px;
  margin-top: 96px;
}
.foot-grid {
  display: grid;
  grid-template-columns: 1.5fr 1fr 1fr 1fr;
  gap: 48px;
  margin-bottom: 56px;
}
@media (max-width: 800px) {
  .foot-grid { grid-template-columns: 1fr 1fr; }
}
.foot-brand img { height: 28px; filter: brightness(0) invert(1); margin-bottom: 18px; }
.foot-brand p { font-size: 14px; color: rgba(255,255,255,.78); max-width: 38ch; }
.certvo-badge {
  display: inline-block;
  margin-top: 20px;
  border-radius: 8px;
  transition: transform .2s ease, box-shadow .2s ease;
}
.certvo-badge:hover { transform: translateY(-1px); box-shadow: 0 8px 24px -8px rgba(127,179,255,.45); }
.certvo-badge img { display: block; height: auto; max-width: 160px; filter: none; margin: 0; }
.foot-col h2,
.foot-col h5 {
  font-family: var(--font-mono);
  text-transform: uppercase;
  letter-spacing: .08em;
  font-size: 11px;
  color: rgba(255,255,255,.85);
  margin: 0 0 16px;
  font-weight: 500;
}
.foot-col ul { list-style: none; padding: 0; margin: 0; display: flex; flex-direction: column; gap: 10px; }
.foot-col a { font-size: 14px; color: rgba(255,255,255,.85); transition: color .15s; }
.foot-col a:hover { color: white; }
.foot-bottom {
  border-top: 1px solid rgba(255,255,255,.08);
  padding-top: 28px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-size: 12.5px;
  color: rgba(255,255,255,.78);
  flex-wrap: wrap;
  gap: 14px;
}
.foot-bottom .legal { display: flex; gap: 18px; }
.foot-bottom .legal a { color: rgba(255,255,255,.78); transition: color .15s; }
.foot-bottom .legal a:hover { color: white; }

/* ============== UTILITY: REVEAL ============== */
/* Translate-only reveal — no opacity transition, so accessibility scanners
   always see the rendered foreground/background colors. */
html.js .reveal {
  transform: translateY(24px);
  transition: transform .8s cubic-bezier(.22,1,.36,1);
}
html.js .reveal.in { transform: translateY(0); }
html.js .reveal-stagger > * {
  transform: translateY(16px);
  transition: transform .6s cubic-bezier(.22,1,.36,1);
}
html.js .reveal-stagger.in > * { transform: translateY(0); }
.reveal-stagger.in > *:nth-child(1) { transition-delay: .04s; }
.reveal-stagger.in > *:nth-child(2) { transition-delay: .12s; }
.reveal-stagger.in > *:nth-child(3) { transition-delay: .20s; }
.reveal-stagger.in > *:nth-child(4) { transition-delay: .28s; }
.reveal-stagger.in > *:nth-child(5) { transition-delay: .36s; }
.reveal-stagger.in > *:nth-child(6) { transition-delay: .44s; }
