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

/* ── Tokens ── */
:root {
  --canvas:        #0C151C;
  --canvas-soft:   #111D27;
  --canvas-elev:   #162430;
  --surface-hover: #1F3244;
  --ink:           #E5F0F3;
  --ink-2:         #B8CDD8;
  --ink-muted:     #7A9BB0;
  --ink-faint:     #4A6780;
  --hairline:      rgba(107,153,195,.18);
  --hairline-s:    rgba(107,153,195,.32);
  --red:           #C70003;
  --red-h:         #E00004;
  --red-a:         #8F0002;
  --red-glow:      rgba(199,0,3,.35);
  --blue:          #6B99C3;
  --blue-h:        #7FAFD4;
  --blue-glow:     rgba(107,153,195,.25);
  --glass:         rgba(22,36,48,.55);
  --glass-s:       rgba(22,36,48,.72);
  --glass-sub:     rgba(22,36,48,.38);
  --gborder:       rgba(107,153,195,.22);
  --gborder-b:     rgba(229,240,243,.12);
  --blur:          blur(16px) saturate(1.25);
  --blur-s:        blur(24px) saturate(1.25);
  --ease:          cubic-bezier(.4,0,.2,1);
  --spring:        cubic-bezier(.34,1.56,.64,1);
}

html  { scroll-behavior: smooth; }

body {
  font-family: 'Inter', -apple-system, system-ui, sans-serif;
  font-feature-settings: 'lnum' 1, 'locl' 1;
  background: var(--canvas);
  color: var(--ink);
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}

::selection { background: rgba(199,0,3,.35); color: var(--ink); }

a { text-decoration: none; }

::-webkit-scrollbar { width: 5px; }
::-webkit-scrollbar-track { background: var(--canvas); }
::-webkit-scrollbar-thumb { background: rgba(107,153,195,.3); border-radius: 9999px; }

/* ── Container ── */
.container { max-width: 1240px; margin: 0 auto; padding: 0 32px; }

/* ── Utility ── */
.eyebrow {
  font-size: 11px; font-weight: 600; letter-spacing: .14em;
  text-transform: uppercase; color: var(--blue); margin-bottom: 16px;
}
.accent-line {
  width: 48px; height: 3px; background: var(--red);
  border-radius: 9999px; margin-bottom: 16px;
}
.section-title {
  font-size: clamp(28px,3.5vw,40px); font-weight: 700;
  letter-spacing: -.8px; line-height: 1.15; color: var(--ink);
}
.glass-card {
  background: var(--glass); border: 1px solid var(--gborder);
  backdrop-filter: var(--blur); -webkit-backdrop-filter: var(--blur);
  border-radius: 20px;
}
.glass-card:hover { border-color: rgba(107,153,195,.4); }

/* ── Buttons ── */
.btn-primary {
  display: inline-flex; align-items: center; gap: 8px;
  background: var(--red); color: #fff; border: none;
  border-radius: 9999px; padding: 14px 28px;
  font-size: 15px; font-weight: 600; letter-spacing: .025em;
  cursor: pointer; transition: background .2s var(--ease), transform .2s var(--spring), box-shadow .2s var(--ease);
}
.btn-primary:hover {
  background: var(--red-h);
  transform: translateY(-2px);
  box-shadow: 0 0 28px var(--red-glow);
}
.btn-primary:active { background: var(--red-a); transform: scale(.97); }

.btn-secondary {
  display: inline-flex; align-items: center; gap: 8px;
  background: transparent; color: var(--ink);
  border: 1px solid var(--hairline-s); border-radius: 9999px;
  padding: 14px 28px; font-size: 15px; font-weight: 600;
  cursor: pointer; transition: background .2s, border-color .2s, transform .2s var(--spring);
}
.btn-secondary:hover {
  background: var(--glass-sub); border-color: var(--blue);
  transform: translateY(-2px);
}

/* ── Navbar ── */
.nav {
  position: fixed; inset: 0 0 auto; height: 64px; z-index: 100;
  display: flex; align-items: center; justify-content: space-between;
  padding: 0 32px;
  background: var(--glass-sub);
  backdrop-filter: var(--blur); -webkit-backdrop-filter: var(--blur);
  border-bottom: 1px solid transparent;
  transition: background .3s, border-color .3s;
}
.nav.scrolled { background: var(--glass-s); border-color: var(--gborder); }

.nav-logo { display: flex; align-items: center; gap: 10px; }
.nav-logo-svg { height: 28px; width: auto; display: block; }
.nav-logo-name {
  font-size: 15px; font-weight: 700; letter-spacing: .14em;
  color: var(--ink); text-transform: uppercase;
}

.nav-links { display: flex; gap: 32px; align-items: center; }
.nav-links a {
  font-size: 13px; font-weight: 500; letter-spacing: .15em;
  text-transform: uppercase; color: var(--ink-2);
  transition: color .2s;
}
.nav-links a:hover { color: var(--ink); }

.nav-right { display: flex; align-items: center; gap: 16px; }
.nav-lang { font-size: 13px; color: var(--ink-muted); cursor: pointer; letter-spacing: .08em; }
.nav-lang span { color: var(--ink-faint); }

.nav-burger { display: none; background: none; border: none; color: var(--ink); cursor: pointer; padding: 4px; }

.mobile-menu {
  display: none; flex-direction: column;
  position: fixed; top: 64px; inset-inline: 0; z-index: 99;
  max-height: calc(100dvh - 64px);
  background: rgba(14,24,32,.97); border-bottom: 1px solid var(--gborder);
  backdrop-filter: var(--blur-s); -webkit-backdrop-filter: var(--blur-s);
  box-shadow: 0 24px 48px rgba(0,0,0,.4);
}
.mobile-menu.open { display: flex; }

/* ── Hero ── */
.hero {
  position: relative; height: 100vh; min-height: 560px;
  display: grid; grid-template-columns: 1fr 1fr;
  overflow: hidden; padding-top: 64px;
  background: #0c151c;
}
#network-canvas, #chat-canvas { position: absolute; inset: 0; width: 100%; height: 100%; pointer-events: none; z-index: 0; }

/* Left content column */
.hero-inner {
  position: relative; z-index: 2;
  display: flex; flex-direction: column; justify-content: center;
  padding: 100px 48px 80px 32px;
  max-width: 620px; margin-left: auto;
}

/* Hero left */
.hero-badge-wrap { margin-bottom: 28px; }
.hero-badge {
  display: inline-flex; align-items: center; gap: 8px;
  background: var(--glass-sub); border: 1px solid var(--gborder);
  backdrop-filter: var(--blur); border-radius: 9999px; padding: 6px 16px 6px 6px;
}
.hero-badge-tag {
  background: var(--red); color: #fff; font-size: 10px; font-weight: 700;
  letter-spacing: .1em; text-transform: uppercase; border-radius: 9999px; padding: 3px 8px;
}
.hero-badge-text { font-size: 13px; color: var(--ink-2); }

.hero-headline {
  font-size: clamp(44px,5.5vw,72px); font-weight: 800; line-height: 1.0;
  letter-spacing: -2.5px; color: var(--ink); margin-bottom: 24px;
  white-space: nowrap;
}

.hero-body { font-size: 16px; line-height: 1.65; color: var(--ink-2); margin-bottom: 36px; max-width: 560px; }

.hero-ctas { display: flex; gap: 12px; flex-wrap: wrap; margin-bottom: 36px; }


/* Hero right — seamless video panel */
.hero-video-panel {
  position: relative; overflow: hidden;
}
.hero-video-panel video {
  display: block; width: 100%; height: 100%;
  object-fit: cover; object-position: center;
}
/* Left fade: blends video into the dark background */
.hero-video-panel::before {
  content: ''; position: absolute; inset: 0; z-index: 1; pointer-events: none;
  background: linear-gradient(to right, #0c151c 0%, rgba(12,21,28,.3) 28%, transparent 60%);
}
/* Top fade: blends with nav */
.hero-video-panel::after {
  content: ''; position: absolute; inset: 0; z-index: 1; pointer-events: none;
  background: linear-gradient(to bottom, #0c151c 0%, transparent 18%, transparent 82%, #0c151c 100%);
}

/* ── Stats section ── */
.stats-section {
  background: var(--canvas-soft);
  border-top: 1px solid var(--hairline);
  border-bottom: 1px solid var(--hairline);
  padding: 56px 32px;
}
.stats-grid {
  display: grid; grid-template-columns: repeat(4,1fr);
  gap: 0;
}
.stats-item {
  text-align: center;
  padding: 8px 24px;
  border-right: 1px solid var(--hairline);
}
.stats-item:last-child { border-right: none; }

.stats-val {
  font-size: clamp(36px, 4vw, 52px); font-weight: 800;
  letter-spacing: -2px; line-height: 1;
  color: var(--ink); margin-bottom: 12px;
  display: flex; align-items: baseline; justify-content: center; gap: 2px;
}
.stats-num    { display: inline-block; }
.stats-suffix { color: var(--red); }
.stats-unit   { font-size: clamp(20px, 2vw, 28px); font-weight: 700; color: var(--ink-2); letter-spacing: -1px; }
.stats-label  { font-size: 14px; color: var(--ink-muted); line-height: 1.4; }

@media (max-width: 640px) {
  .stats-grid { grid-template-columns: repeat(2,1fr); gap: 32px 0; }
  .stats-item { padding: 8px; }
  .stats-item:nth-child(2) { border-right: none; }
  .stats-item:nth-child(3) { border-right: 1px solid var(--hairline); }
}

/* ══ FEATURES BENTO ══ */
.features-section { background: var(--canvas); padding: 80px 20px; }

.features-header {
  display: flex; justify-content: space-between; align-items: flex-end;
  gap: 40px; margin-bottom: 48px;
}
.features-header-left { flex: 1; }
.features-title {
  font-size: clamp(32px,4vw,48px); font-weight: 800;
  letter-spacing: -1.5px; line-height: 1.06; color: var(--ink); margin-bottom: 14px;
}
.features-lead { font-size: 15px; line-height: 1.65; color: var(--ink-2); max-width: 440px; }
.features-kpi {
  flex-shrink: 0; text-align: center;
  background: var(--glass); border: 1px solid var(--gborder);
  backdrop-filter: var(--blur); border-radius: 20px; padding: 22px 32px;
}
.features-kpi-num {
  font-size: 44px; font-weight: 800; letter-spacing: -2px; line-height: 1; color: var(--ink);
}
.features-kpi-num sup { font-size: 24px; color: var(--red); vertical-align: super; }
.features-kpi-lbl { font-size: 12px; color: var(--ink-muted); margin-top: 6px; line-height: 1.4; }

/* Bento grid */
.features-bento {
  display: grid;
  grid-template-columns: 1fr 1fr;
  /*grid-template-rows: 340px 260px;*/  
  gap: 14px;
}

/* Base card */
.f-card {
  position: relative; overflow: hidden;
  background: rgba(22,36,48,.62);
  border: 1px solid rgba(107,153,195,.18);
  backdrop-filter: blur(20px) saturate(1.2);
  -webkit-backdrop-filter: blur(20px) saturate(1.2);
  border-radius: 24px; padding: 32px;
  transition: border-color .3s var(--ease), transform .3s var(--ease);
  cursor: default;
}
.f-card:hover { border-color: rgba(107,153,195,.38); transform: translateY(-2px); }

/* Cursor spotlight */
.f-card::before {
  content: ''; position: absolute; inset: 0; border-radius: inherit;
  background: radial-gradient(480px circle at var(--mx,-300px) var(--my,-300px), rgba(107,153,195,.11), transparent 60%);
  pointer-events: none; z-index: 0; opacity: 0; transition: opacity .4s;
}
.f-card:hover::before { opacity: 1; }

/* Animated gradient border rim */
.f-card::after {
  content: ''; position: absolute; inset: 0; border-radius: inherit; pointer-events: none;
  background: linear-gradient(135deg, rgba(107,153,195,0) 0%, rgba(107,153,195,.45) 40%, rgba(199,0,3,.3) 70%, rgba(107,153,195,0) 100%);
  -webkit-mask: linear-gradient(#fff 0 0) content-box, linear-gradient(#fff 0 0);
  mask: linear-gradient(#fff 0 0) content-box, linear-gradient(#fff 0 0);
  -webkit-mask-composite: xor; mask-composite: exclude;
  padding: 1px; opacity: 0; transition: opacity .35s;
}
.f-card:hover::after { opacity: 1; }

.f-card--main { grid-row: 1 / 3; display: flex; flex-direction: column; }
.f-card > * { position: relative; z-index: 1; }

/* Live chip */
.f-chip {
  display: inline-flex; align-items: center; gap: 6px;
  background: rgba(107,153,195,.1); border: 1px solid rgba(107,153,195,.22);
  border-radius: 9999px; padding: 4px 12px 4px 8px;
  font-size: 10px; font-weight: 700; letter-spacing: .12em; text-transform: uppercase;
  color: var(--blue); margin-bottom: 18px; align-self: flex-start;
}
.f-chip-dot { width: 6px; height: 6px; border-radius: 50%; background: var(--red); animation: chipPulse 2s ease-in-out infinite; }
.f-chip em { font-style: normal; color: var(--blue); }
@keyframes chipPulse { 0%,100%{opacity:1;} 50%{opacity:.25;} }

.f-card-title { font-size: 20px; font-weight: 700; letter-spacing: -.4px; color: var(--ink); margin-bottom: 10px; }
.f-card-body  { font-size: 13px; line-height: 1.65; color: var(--ink-2); }
.f-card-link {
  display: inline-flex; align-items: center; gap: 6px; margin-top: 20px;
  font-size: 13px; font-weight: 600; letter-spacing: .02em;
  color: var(--red); text-decoration: none;
  transition: gap .2s var(--spring), color .2s;
}
.f-card-link svg { width: 15px; height: 15px; transition: transform .2s var(--spring); }
.f-card-link:hover { color: #fff; gap: 10px; }
.f-card-link:hover svg { transform: translateX(3px); }

.main-glow { position:absolute; bottom:-80px; right:-60px; width:320px; height:320px; border-radius:50%; background:radial-gradient(circle,rgba(199,0,3,.1),transparent 70%); pointer-events:none; }

/* ── CARD 2/3: Case list (AI-agents + RPA) ── */
.f-cases { margin-top: 20px; display: flex; flex-direction: column; gap: 10px; }
.f-case {
  display: flex; align-items: flex-start; gap: 9px;
  font-size: 12.5px; line-height: 1.55; color: var(--ink-2);
}
.f-case-mark {
  flex-shrink: 0; margin-top: 2px;
  width: 15px; height: 15px; border-radius: 50%;
  background: rgba(107,153,195,.12);
  display: flex; align-items: center; justify-content: center;
}
.f-case-mark svg { width: 9px; height: 9px; stroke: var(--blue); fill: none; stroke-width: 2.5; stroke-linecap: round; stroke-linejoin: round; }
.f-case strong { color: var(--ink); font-weight: 600; }

/* ── CARD 3: AI Products ── */
/* ── Product list (main card) ── */
.prod-list { margin-top: 20px; display: flex; flex-direction: column; flex: 1; }
.prod-item {
  display: flex; align-items: center; justify-content: space-between;
  gap: 12px; padding: 20px 0;
  border-bottom: 1px solid rgba(107,153,195,.12);
  text-decoration: none; color: inherit;
  transition: background .2s, padding-left .2s;
  border-radius: 8px;
  margin: 0 -8px; padding-left: 8px; padding-right: 8px;
}
.prod-item:last-child { border-bottom: none; }
.prod-item:hover { background: rgba(107,153,195,.07); padding-left: 14px; }
.prod-item:hover .prod-item-arrow { opacity: 1; transform: translateX(0); color: var(--red); }
.prod-item:hover .prod-item-name { color: var(--ink); }
.prod-item:hover .prod-item-icon { background: rgba(199,0,3,.15); border-color: rgba(199,0,3,.3); }
.prod-item:hover .prod-item-icon svg { stroke: var(--red); }

.prod-item-left { display: flex; align-items: center; gap: 14px; flex: 1; min-width: 0; }
.prod-item-icon {
  width: 36px; height: 36px; border-radius: 10px; flex-shrink: 0;
  background: rgba(107,153,195,.1); border: 1px solid rgba(107,153,195,.2);
  display: flex; align-items: center; justify-content: center;
  transition: background .2s, border-color .2s;
}
.prod-item-icon svg { width: 16px; height: 16px; stroke: var(--blue); fill: none; stroke-width: 1.5; stroke-linecap: round; stroke-linejoin: round; transition: stroke .2s; }
.prod-item-name { font-size: 14px; font-weight: 600; color: var(--ink-2); margin-bottom: 2px; transition: color .2s; }
.prod-item-desc { font-size: 12px; color: var(--ink-faint); line-height: 1.4; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.prod-item-arrow {
  flex-shrink: 0; width: 20px; height: 20px; opacity: 0;
  transform: translateX(-6px);
  transition: opacity .2s, transform .2s var(--spring), color .2s;
  color: var(--ink-muted);
}
.prod-item-arrow svg { width: 16px; height: 16px; stroke: currentColor; fill: none; stroke-width: 1.5; stroke-linecap: round; stroke-linejoin: round; }

.prod-footer {
  display: flex; align-items: flex-start; gap: 9px; margin-top: 20px;
  padding: 12px 16px; border-radius: 10px;
  background: rgba(107,153,195,.07); border: 1px solid rgba(107,153,195,.14);
  font-size: 12px; line-height: 1.5; color: var(--ink-muted);
}
.prod-footer svg { width: 14px; height: 14px; flex-shrink: 0; margin-top: 1px; color: var(--blue); }
.prod-footer strong { color: var(--ink-2); font-weight: 600; }

.prod-tags { margin-top:18px; display:flex; flex-wrap:wrap; gap:8px; }
.prod-tag {
  display:inline-flex; align-items:center; gap:6px;
  background:rgba(22,36,48,.75); border:1px solid rgba(107,153,195,.2);
  border-radius:9999px; padding:6px 14px;
  font-size:12px;font-weight:500;color:var(--ink-2);
  animation: floatT var(--fd,3s) ease-in-out var(--fdy,0s) infinite;
  transition: border-color .2s, background .2s;
}
.prod-tag:hover { border-color:var(--blue); background:rgba(107,153,195,.1); }
.prod-tag-dot { width:6px;height:6px;border-radius:50%;background:var(--tc,var(--blue)); }
@keyframes floatT { 0%,100%{transform:translateY(0);} 50%{transform:translateY(-5px);} }

.prod-grid { margin-top:16px; display:grid; grid-template-columns:1fr 1fr; gap:10px; }
.prod-metric {
  background:rgba(12,21,28,.5); border:1px solid rgba(107,153,195,.14);
  border-radius:12px; padding:12px 14px;
}
.prod-metric-val { font-size:22px;font-weight:800;letter-spacing:-1px;color:var(--ink); }
.prod-metric-val b { color:var(--red);font-weight:800; }
.prod-metric-lbl { font-size:11px;color:var(--ink-muted);margin-top:2px; }

/* ── Marquee ── */
.features-marquee {
  margin-top:48px; overflow:hidden;
  border-top:1px solid var(--hairline); border-bottom:1px solid var(--hairline);
  padding:16px 0;
}
.marquee-track { display:flex; align-items:center; }
.marquee-inner {
  display:flex; align-items:center; gap:40px; width:max-content;
  animation: marqueeRun 28s linear infinite;
}
.marquee-inner:hover { animation-play-state:paused; }
.m-item {
  font-size:12px;font-weight:600;letter-spacing:.14em;text-transform:uppercase;
  color:var(--ink-faint);white-space:nowrap;transition:color .2s;cursor:default;
}
.m-item:hover { color:var(--ink-2); }
.m-sep { width:4px;height:4px;border-radius:50%;background:rgba(199,0,3,.5);flex-shrink:0; }
@keyframes marqueeRun { from{transform:translateX(0);} to{transform:translateX(-50%);} }

/* ── About ── */
/* ── About intro ── */
.about-section { background: var(--canvas-soft); padding: 100px 20px; border-top: 1px solid var(--hairline); }
.about-intro { display: flex; justify-content: center; }
.about-intro-text { max-width: 720px; }
.about-body { font-size: 16px; line-height: 1.65; color: var(--ink-2); margin-bottom: 16px; }

/* ── Steps section ── */
/* ── Steps scroll-scrub section ── */
.steps-section { background: var(--canvas); border-top: 1px solid var(--hairline); }

.steps-scroll-driver { height: 500vh; position: relative; }

.steps-sticky {
  position: sticky; top: 0; height: 100vh;
  display: grid; grid-template-columns: 1fr 1fr;
  overflow: hidden; background: var(--canvas);
}

/* Left: video */
.steps-video-col {
  position: relative; display: flex; align-items: center; justify-content: center;
  background: var(--canvas-soft); border-right: 1px solid var(--hairline);
  overflow: hidden;
}
.steps-video-wrap {
  position: relative; width: 100%; height: 100%;
}
.steps-video-wrap video {
  width: 100%; height: 100%; object-fit: cover; display: block;
}
/* fade edges */
.steps-video-wrap::after {
  content: ''; position: absolute; inset: 0; pointer-events: none;
  background:
    linear-gradient(to bottom, var(--canvas) 0%, transparent 12%, transparent 88%, var(--canvas) 100%),
    linear-gradient(to right, transparent 70%, var(--canvas) 100%);
}
/* progress bar */
.steps-video-progress {
  position: absolute; bottom: 40px; left: 50%; transform: translateX(-50%);
  width: 120px; height: 2px; background: rgba(107,153,195,.2);
  border-radius: 9999px; z-index: 2;
}
.steps-video-progress-fill {
  height: 100%; width: 0%; background: var(--red);
  border-radius: 9999px; transition: width .1s linear;
}

/* Right: steps */
.steps-cards-col {
  position: relative;
  display: flex; flex-direction: column; justify-content: center;
  padding: 64px 56px; gap: 0;
}
.steps-col-header { margin-bottom: 40px; }
.steps-col-title {
  font-size: clamp(28px, 3vw, 40px); font-weight: 700;
  letter-spacing: -.8px; line-height: 1.15; color: var(--ink);
  margin-top: 12px;
}

/* Step cards — initially hidden, revealed by JS */
.steps-cards-list { display: flex; flex-direction: column; gap: 0; }

.step-card {
  display: flex; gap: 20px; align-items: flex-start;
  padding: 22px 0; position: relative;
  opacity: 0; transform: translateY(18px);
  transition: opacity .5s cubic-bezier(.4,0,.2,1), transform .5s cubic-bezier(.34,1.56,.64,1);
}
.step-card.active { opacity: 1; transform: translateY(0); }

.step-line {
  position: absolute; left: 19px; bottom: 0; width: 2px;
  height: calc(100% - 40px - 22px);
  background: linear-gradient(to bottom, var(--red), rgba(199,0,3,0));
  transform-origin: top; transform: scaleY(0);
  transition: transform .4s var(--ease) .2s;
}
.step-card.active .step-line { transform: scaleY(1); }
.step-card:last-child .step-line { display: none; }

.step-content { flex: 1; }
.step-num {
  min-width: 40px; height: 40px; border-radius: 50%;
  background: var(--canvas-elev); border: 1px solid var(--gborder);
  display: flex; align-items: center; justify-content: center;
  font-size: 11px; font-weight: 700; color: var(--ink-muted); flex-shrink: 0;
  transition: background .4s, border-color .4s, color .4s;
}
.step-card.active .step-num {
  background: var(--red); border-color: var(--red); color: #fff;
}
.step-title { font-size: 16px; font-weight: 600; color: var(--ink); margin-bottom: 6px; }
.step-body  { font-size: 14px; line-height: 1.55; color: var(--ink-2); }

/* "Keep scrolling" cue — tells the user the pinned block still has more
   steps to reveal. Centered under the cards column; fades out once the
   reveal is well underway. */
.steps-scroll-hint {
  position: absolute; left: 50%; bottom: 28px; transform: translateX(-50%);
  z-index: 3; pointer-events: none;
  display: flex; flex-direction: column; align-items: center; gap: 10px;
  padding: 16px 26px;
  border: 1px solid rgba(199,0,3,.3);
  border-radius: 9999px;
  background: rgba(199,0,3,.07);
  backdrop-filter: var(--blur);
  opacity: 1; transition: opacity .5s var(--ease);
}
.steps-scroll-hint.is-hidden { opacity: 0; }
.steps-scroll-hint-text {
  font-size: 13px; font-weight: 700; letter-spacing: .1em; text-transform: uppercase;
  color: var(--ink-2);
}
.steps-scroll-hint-arrow {
  width: 22px; height: 22px; stroke: var(--red);
  animation: stepsHintBounce 1.6s ease-in-out infinite;
}
@keyframes stepsHintBounce {
  0%, 100% { transform: translateY(0);   opacity: .5; }
  50%      { transform: translateY(6px); opacity: 1;  }
}

/* ── AI Chat section ── */
.ai-chat-section {
  background: var(--canvas);
  border-top: 1px solid var(--hairline);
  border-bottom: 1px solid var(--hairline);
  padding: 100px 32px;
}
.ai-chat-layout {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 80px;
  text-align: center;
}
.ai-chat-text { max-width: 680px; }
.ai-chat-text .accent-line { margin: 0 auto 16px; }
.ai-chat-widget { width: 100%; max-width: 900px; }
.ai-chat-desc {
  font-size: 16px; line-height: 1.7; color: var(--ink-2);
  margin-bottom: 28px; max-width: 100%;
}
.ai-chat-powered {
  display: inline-flex; align-items: center; gap: 8px;
  font-size: 13px; color: var(--ink-muted);
  background: var(--glass); border: 1px solid var(--gborder);
  border-radius: 9999px; padding: 8px 16px;
  backdrop-filter: var(--blur);
  margin: 0 auto;
}
.ai-chat-powered strong { color: var(--blue); font-weight: 600; }
.ai-chat-powered svg { color: var(--blue); flex-shrink: 0; }

/* Chat box */
.ai-chat-widget { display: flex; flex-direction: column; gap: 16px; }

.ai-chat-box {
  background: var(--glass);
  border: 1px solid var(--gborder);
  backdrop-filter: var(--blur-s); -webkit-backdrop-filter: var(--blur-s);
  border-radius: 30px;
  overflow: hidden;
  transition: border-color .3s var(--ease), box-shadow .3s var(--ease);
  cursor: text;
}
.ai-chat-box:focus-within,
.ai-chat-box.active {
  border-color: rgba(107,153,195,.45);
  box-shadow: 0 0 0 1px rgba(107,153,195,.15), 0 8px 32px rgba(0,0,0,.2);
}

/* Input row */
.ai-chat-input-row {
  display: flex; align-items: center; gap: 4px;
  padding: 10px 12px;
}
.ai-chat-field {
  flex: 1; position: relative;
}
.ai-chat-field input {
  width: 100%; background: transparent; border: none; outline: none;
  font-family: inherit; font-size: 15px; color: var(--ink);
  padding: 8px 4px; position: relative; z-index: 1;
}
.ai-chat-ph {
  position: absolute; inset: 0;
  display: flex; align-items: center; padding: 0 4px;
  font-size: 15px; color: var(--ink-2);
  pointer-events: none; user-select: none;
  white-space: nowrap; overflow: hidden;
}
/* individual letter spans set by JS */
.ai-chat-ph span {
  display: inline-block;
  transition: opacity .25s, filter .35s, transform .35s var(--spring);
}
.ai-chat-ph span.ph-out {
  opacity: 0; filter: blur(10px); transform: translateY(-8px);
}
.ai-chat-ph span.ph-in {
  opacity: 0; filter: blur(10px); transform: translateY(10px);
}

.ai-chat-icon-btn {
  width: 38px; height: 38px; border-radius: 50%; border: none;
  background: transparent; color: var(--ink-muted);
  display: flex; align-items: center; justify-content: center;
  cursor: pointer; transition: background .2s, color .2s; flex-shrink: 0;
}
.ai-chat-icon-btn:hover { background: var(--surface-hover); color: var(--ink); }

.ai-chat-send {
  width: 40px; height: 40px; border-radius: 50%; border: none;
  background: var(--red); color: #fff;
  display: flex; align-items: center; justify-content: center;
  cursor: pointer; flex-shrink: 0;
  transition: background .2s, transform .2s var(--spring), box-shadow .2s;
}
.ai-chat-send:hover {
  background: var(--red-h);
  transform: scale(1.07);
  box-shadow: 0 0 18px var(--red-glow);
}
.ai-chat-send:active { transform: scale(.95); }

/* Expanded controls */
.ai-chat-controls {
  display: flex; gap: 8px; padding: 0 16px 14px;
  max-height: 0; overflow: hidden;
  opacity: 0; transform: translateY(8px);
  transition: max-height .35s var(--ease), opacity .3s, transform .3s var(--spring), padding .3s;
  padding-bottom: 0;
}
.ai-chat-box.active .ai-chat-controls {
  max-height: 60px; opacity: 1; transform: translateY(0); padding-bottom: 14px;
}

.ai-chat-toggle {
  display: inline-flex; align-items: center; gap: 6px;
  padding: 7px 14px; border-radius: 9999px; border: 1px solid var(--hairline);
  background: var(--glass-sub); color: var(--ink-muted);
  font-size: 13px; font-weight: 500; cursor: pointer;
  transition: background .2s, border-color .2s, color .2s;
}
.ai-chat-toggle:hover { background: var(--surface-hover); color: var(--ink); }
.ai-chat-toggle.on {
  background: rgba(107,153,195,.12);
  border-color: rgba(107,153,195,.4);
  color: var(--blue);
}

/* Hint bubbles */
.ai-chat-hints { display: flex; flex-wrap: wrap; gap: 8px; justify-content: center; }
.ai-chat-hint {
  font-size: 13px; color: var(--ink-muted); border: 1px solid var(--hairline);
  background: var(--glass-sub); border-radius: 9999px; padding: 7px 16px;
  cursor: pointer; transition: border-color .2s, color .2s, background .2s;
  backdrop-filter: var(--blur);
}
.ai-chat-hint:hover { border-color: var(--blue); color: var(--ink); background: var(--surface-hover); }


/* ── Solutions ── */
.solutions-section { background: var(--canvas); padding: 100px 10px; }
.solutions-section .container { position: relative; z-index: 1; }
.solutions-header { text-align: center; margin-bottom: 60px; }
.solutions-grid { display: grid; grid-template-columns: repeat(2,1fr); gap: 20px; }

.sol-card {
  background: var(--glass); border: 1px solid var(--gborder);
  backdrop-filter: var(--blur); border-radius: 20px; padding: 28px 28px 32px;
  position: relative; overflow: hidden;
  transition: border-color .2s, transform .2s;
}
.sol-card:hover { border-color: rgba(107,153,195,.4); transform: translateY(-2px); }
.sol-glow { position: absolute; top: 0; right: 0; width: 140px; height: 140px; border-radius: 0 0 0 140px; filter: blur(24px); }
.sol-head { display: flex; align-items: center; gap: 12px; margin-bottom: 20px; }
.sol-icon {
  width: 42px; height: 42px; border-radius: 10px;
  background: rgba(107,153,195,.12); border: 1px solid rgba(107,153,195,.2);
  display: flex; align-items: center; justify-content: center; flex-shrink: 0;
}
.sol-icon svg { width: 20px; height: 20px; stroke: var(--blue); fill: none; stroke-width: 1.5; stroke-linecap: round; stroke-linejoin: round; }
.sol-tag { font-size: 11px; font-weight: 600; letter-spacing: .1em; text-transform: uppercase; color: var(--ink-muted); }
.sol-title { font-size: 20px; font-weight: 700; letter-spacing: -.3px; color: var(--ink); margin-bottom: 12px; }
.sol-body  { font-size: 14px; line-height: 1.6; color: var(--ink-2); }

/* ── Advantages ── */
/* ── Advantages — split editorial layout ── */
.advantages-section {
  background: var(--canvas);
  border-top: 1px solid var(--hairline);
  border-bottom: 1px solid var(--hairline);
  overflow: hidden;
}

.adv-split {
  display: grid;
  grid-template-columns: 1fr 1fr;
}

/* ── Left: full-bleed image panel ── */
.adv-visual-col {
  position: relative;
  border-right: 1px solid var(--hairline);
}
.adv-visual-inner {
  position: sticky; top: 64px;
  height: 100%;
  overflow: hidden;
}

/* Image fills entire column, anchored to bottom */
.adv-img {
  position: absolute;
  inset: 0;
  width: 100%; height: 100%;
  display: block;
  object-fit: cover;
  object-position: center 60%;
}

/* Dark gradient from top → fades into image below mid-point */
.adv-img-overlay {
  position: absolute; inset: 0;
  background:
    linear-gradient(to bottom,
      var(--canvas-soft) 0%,
      rgba(12,21,28,.82) 30%,
      rgba(12,21,28,.2) 62%,
      transparent 100%);
  pointer-events: none;
}

/* Text block at top of panel */
.adv-kicker {
  position: absolute;
  top: 0; left: 0; right: 0;
  padding: 56px 52px 0;
  z-index: 2;
}
.adv-headline {
  font-size: clamp(28px, 3vw, 40px);
  font-weight: 700; letter-spacing: -.8px;
  line-height: 1.05; color: var(--ink);
  margin-top: 16px;
}

/* ── Right: editorial item list ── */
.adv-items-col {
  display: flex; flex-direction: column;
  justify-content: center;
  padding: 80px 60px;
  background: var(--canvas-soft);
}

/* Stagger reveal via JS — items start invisible */
.adv-item-reveal {
  opacity: 0;
  transform: translateX(24px);
  transition:
    opacity .5s var(--ease),
    transform .55s var(--spring),
    border-color .25s var(--ease);
  transition-delay: calc(var(--adv-i) * 100ms);
}
.adv-item-reveal.visible {
  opacity: 1;
  transform: translateX(0);
}

/* Each item row */
.adv-item {
  display: grid;
  grid-template-columns: 48px 1fr 20px;
  gap: 0 20px;
  align-items: center;
  padding: 30px 0;
  border-bottom: 1px solid var(--hairline);
  cursor: default;
  position: relative;
}
.adv-item:first-child { border-top: 1px solid var(--hairline); }

/* Hover: red bar slides in from left */
.adv-item::before {
  content: ''; position: absolute;
  left: -2px; top: 58%; transform: translateY(-50%);
  width: 2px; height: 0; border-radius: 9999px;
  background: var(--red);
  transition: height .35s var(--spring);
}
.adv-item:hover::before         { height: 38%; }
.adv-item:hover                 { border-color: var(--hairline-s); }
.adv-item:hover .adv-item-num  { color: var(--red); }
.adv-item:hover .adv-item-arrow { opacity: 1; transform: translateX(0); }

/* Number */
.adv-item-num {
  font-size: 11px; font-weight: 700;
  letter-spacing: .12em; text-transform: uppercase;
  color: var(--ink-faint);
  font-variant-numeric: tabular-nums;
  transition: color .25s var(--ease);
  align-self: flex-start;
  padding-top: 4px;
}

.adv-item-body  { display: flex; flex-direction: column; gap: 7px; }
.adv-item-title {
  font-size: 16px; font-weight: 600;
  letter-spacing: -.25px; color: var(--ink);
  line-height: 1.3;
}
.adv-item-text  {
  font-size: 13.5px; line-height: 1.65;
  color: var(--ink-muted); max-width: 42ch;
}

.adv-item-arrow {
  color: var(--blue); opacity: 0;
  transform: translateX(-8px);
  transition: opacity .2s var(--ease), transform .3s var(--spring);
  align-self: center; flex-shrink: 0;
}

/* ── Mobile ── */
@media (max-width: 860px) {
  .adv-split            { grid-template-columns: 1fr; }
  .adv-visual-col       { border-right: none; border-bottom: 1px solid var(--hairline); }
  .adv-visual-inner     { position: relative; top: 0; height: 56vw; min-height: 260px; max-height: 380px; }
  .adv-img              { width: 140%; }
  .adv-kicker           { padding: 32px 28px 0; }
  .adv-headline         { font-size: clamp(28px, 6vw, 40px); }
  .adv-items-col        { padding: 40px 28px 60px; }
  .adv-item             { grid-template-columns: 36px 1fr 18px; gap: 0 14px; }
}

/* ── On-premise ── */
.onprem-section {
  background: var(--canvas-soft);
  border-top: 1px solid var(--hairline);
  border-bottom: 1px solid var(--hairline);
  padding: 100px 20px;
  overflow: hidden;
}
.onprem-grid {
  display: grid;
  grid-template-columns: 7fr 5fr;
  gap: 72px;
  align-items: center;
}

.onprem-title {
  font-size: clamp(28px, 3.2vw, 42px);
  font-weight: 700; letter-spacing: -.8px; line-height: 1.12;
  color: var(--ink);
  margin-top: 16px; margin-bottom: 18px;
}
.onprem-title em { font-style: normal; color: var(--blue); }
.onprem-lead {
  font-size: 15px; line-height: 1.7; color: var(--ink-2);
  max-width: 54ch;
  margin-bottom: 44px;
}

.onprem-items { display: flex; flex-direction: column; }
.onprem-item {
  display: grid;
  grid-template-columns: 52px 1fr;
  gap: 22px;
  padding: 28px 0;
  border-top: 1px solid var(--hairline);
}
.onprem-items .onprem-item:last-child { border-bottom: 1px solid var(--hairline); }

.onprem-item-icon {
  width: 52px; height: 52px; border-radius: 14px;
  background: rgba(199,0,3,.08); border: 1px solid rgba(199,0,3,.18);
  display: flex; align-items: center; justify-content: center;
  flex-shrink: 0;
}
.onprem-item-icon svg { width: 24px; height: 24px; stroke: var(--red); fill: none; stroke-width: 1.5; stroke-linecap: round; stroke-linejoin: round; }

.onprem-item-title { font-size: 17px; font-weight: 700; letter-spacing: -.3px; color: var(--ink); margin-bottom: 8px; }
.onprem-item-text  { font-size: 13.5px; line-height: 1.7; color: var(--ink-muted); max-width: 58ch; }

/* Visual panel */
.onprem-visual { display: flex; justify-content: center; }
.onprem-panel {
  position: relative; width: 100%; max-width: 380px;
  background: var(--glass); border: 1px solid var(--gborder);
  backdrop-filter: var(--blur); -webkit-backdrop-filter: var(--blur);
  border-radius: 28px; padding: 44px 32px 32px;
  overflow: hidden;
}
.onprem-panel-glow {
  position: absolute; top: -80px; right: -80px;
  width: 260px; height: 260px; border-radius: 50%;
  background: radial-gradient(circle, rgba(199,0,3,.12), transparent 70%);
  pointer-events: none;
}

.onprem-perimeter {
  position: relative;
  width: 200px; height: 200px;
  margin: 0 auto 40px;
  display: flex; align-items: center; justify-content: center;
}
.onprem-perimeter-ring { position: absolute; inset: 0; border-radius: 50%; border: 1.5px dashed rgba(107,153,195,.3); }
.onprem-perimeter-ring.r1 { animation: onpremRingSpin 40s linear infinite; }
.onprem-perimeter-ring.r2 { inset: 28px; border-color: rgba(199,0,3,.25); animation: onpremRingSpin 30s linear infinite reverse; }
@keyframes onpremRingSpin { to { transform: rotate(360deg); } }

.onprem-server {
  position: relative; z-index: 1;
  width: 80px; height: 80px; border-radius: 20px;
  background: rgba(199,0,3,.1); border: 1px solid rgba(199,0,3,.25);
  display: flex; align-items: center; justify-content: center;
  box-shadow: 0 0 40px rgba(199,0,3,.15);
}
.onprem-server svg { width: 34px; height: 34px; stroke: var(--red); fill: none; stroke-width: 1.5; stroke-linecap: round; stroke-linejoin: round; }

.onprem-badge {
  position: absolute; bottom: -8px; left: 50%; transform: translateX(-50%);
  display: inline-flex; align-items: center; gap: 7px;
  background: var(--canvas-soft); border: 1px solid var(--hairline-s);
  border-radius: 9999px; padding: 6px 14px;
  font-size: 10px; font-weight: 700; letter-spacing: .06em; text-transform: uppercase;
  color: var(--ink-2); white-space: nowrap;
}
.onprem-badge .dot { width: 6px; height: 6px; border-radius: 50%; background: var(--blue); animation: chipPulse 2s ease-in-out infinite; }

.onprem-panel-tags { display: flex; flex-wrap: wrap; gap: 8px; justify-content: center; margin-bottom: 28px; }
.onprem-tag {
  font-size: 11px; font-weight: 600; letter-spacing: .02em;
  color: var(--ink-2); background: rgba(255,255,255,.03); border: 1px solid var(--hairline);
  border-radius: 8px; padding: 6px 12px;
}

.onprem-panel-foot {
  display: flex; align-items: center; gap: 10px;
  padding-top: 24px; border-top: 1px solid var(--hairline);
  font-size: 12.5px; color: var(--ink-muted); line-height: 1.5;
}
.onprem-panel-foot svg { width: 16px; height: 16px; stroke: var(--blue); fill: none; stroke-width: 1.5; flex-shrink: 0; }

@media (max-width: 860px) {
  .onprem-grid    { grid-template-columns: 1fr; gap: 48px; }
  .onprem-lead    { max-width: none; }
  .onprem-item    { grid-template-columns: 44px 1fr; gap: 16px; padding: 24px 0; }
  .onprem-item-icon { width: 44px; height: 44px; }
  .onprem-item-icon svg { width: 20px; height: 20px; }
  .onprem-panel   { max-width: 420px; }
}

/* ── CTA ── */
.cta-section { background: var(--canvas); padding: 100px 10px; }
.cta-wrap { max-width: 900px; margin: 0 auto; text-align: center; }
.cta-card {
  position: relative; overflow: hidden;
  background: var(--glass); border: 1px solid var(--gborder);
  backdrop-filter: var(--blur-s); border-radius: 28px; padding: 64px 48px;
}
.cta-glow-top {
  position: absolute; top: -60px; left: 50%; transform: translateX(-50%);
  width: 400px; height: 200px;
  background: radial-gradient(ellipse, rgba(199,0,3,.2), transparent);
  filter: blur(30px); pointer-events: none;
}
.cta-glow-br {
  position: absolute; bottom: -40px; right: -40px; width: 200px; height: 200px;
  background: radial-gradient(ellipse, rgba(107,153,195,.2), transparent);
  filter: blur(24px); pointer-events: none;
}
.cta-title {
  font-size: clamp(28px,4vw,48px); font-weight: 700; letter-spacing: -1px;
  line-height: 1.1; color: var(--ink); margin-bottom: 20px;
}
.cta-body { font-size: 16px; line-height: 1.65; color: var(--ink-2); max-width: 540px; margin: 0 auto 40px; }
.cta-btns { display: flex; gap: 12px; justify-content: center; flex-wrap: wrap; }

/* CTA large button variant */
.btn-primary-lg { padding: 16px 32px; font-size: 15px; }
.btn-secondary-lg {
  display: inline-flex; align-items: center; gap: 8px;
  background: transparent; color: var(--ink);
  border: 1px solid var(--hairline-s); border-radius: 9999px;
  padding: 16px 28px; font-size: 15px; font-weight: 600;
  cursor: pointer; transition: border-color .2s, transform .2s var(--spring), background .2s;
}
.btn-secondary-lg:hover { border-color: var(--blue); transform: translateY(-2px); background: var(--glass-sub); }

/* ══════════════════════════════════════════════
   FOOTER REDESIGN
   ══════════════════════════════════════════════ */

.ft {
  background: #070d12;
  background-image: radial-gradient(rgba(229,240,243,.05) 1px, transparent 1px);
  background-size: 24px 24px;
  position: relative;
}

/* ── Signature accent bar ── */
.ft-top-rule {
  display: flex;
  align-items: center;
  height: 3px;
}
.ft-top-rule-red {
  width: 72px;
  height: 3px;
  background: var(--red);
  flex-shrink: 0;
}
.ft-top-rule-line {
  flex: 1;
  height: 1px;
  background: rgba(229,240,243,.08);
}

/* ── Main body ── */
.ft-body {
  display: grid;
  grid-template-columns: 5fr 7fr;
  gap: 80px;
  padding: 72px clamp(24px, 4vw, 80px) 64px;
  border-bottom: 1px solid rgba(229,240,243,.07);
  align-items: start;
}

/* ── Left: brand + headline + contacts ── */
.ft-brand {
  display: flex;
  align-items: center;
  gap: 10px;
  text-decoration: none;
  margin-bottom: 36px;
}
.ft-brand-svg {
  width: 32px;
  height: 32px;
  flex-shrink: 0;
}
.ft-brand-name {
  font-size: 15px;
  font-weight: 700;
  letter-spacing: .12em;
  color: #E5F0F3;
}
.ft-brand-logo {
  height: 36px;
  width: auto;
  display: block;
}

.ft-headline {
  font-size: clamp(28px, 2.6vw, 44px);
  font-weight: 700;
  letter-spacing: -1.5px;
  line-height: 1.08;
  color: #E5F0F3;
  margin-bottom: 36px;
}
.ft-headline em {
  font-style: normal;
  color: var(--blue);
}

.ft-cta-btn {
  display: inline-flex;
  margin-bottom: 44px;
}

/* ── Contact links ── */
.ft-contact-list {
  display: flex;
  flex-direction: column;
  gap: 10px;
}
.ft-contact-row {
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 13px;
  color: rgba(229,240,243,.38);
  text-decoration: none;
  transition: color .18s;
  line-height: 1.4;
}
.ft-contact-row:hover { color: rgba(229,240,243,.72); }
.ft-contact-addr { cursor: default; }
.ft-contact-addr:hover { color: rgba(229,240,243,.38); }
.ft-contact-row svg { flex-shrink: 0; opacity: .5; }

/* ── Right: nav ── */
.ft-nav {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 40px;
  padding-top: 10px;
}
.ft-nav-label {
  font-size: 10px;
  font-weight: 700;
  letter-spacing: .14em;
  text-transform: uppercase;
  color: rgba(229,240,243,.28);
  margin-bottom: 18px;
}
.ft-nav-col a {
  display: block;
  font-size: 14px;
  color: rgba(229,240,243,.52);
  text-decoration: none;
  padding: 5px 0;
  transition: color .18s, transform .18s;
}
.ft-nav-col a:hover {
  color: #E5F0F3;
  transform: translateX(3px);
}

/* ── Bottom bar ── */
.ft-bottom {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 20px 0;
  flex-wrap: wrap;
  gap: 12px;
}
.ft-copy {
  font-size: 12px;
  color: rgba(229,240,243,.22);
}
.ft-legal {
  display: flex;
  gap: 28px;
}
.ft-legal a {
  font-size: 12px;
  color: rgba(229,240,243,.22);
  text-decoration: none;
  transition: color .18s;
}
.ft-legal a:hover { color: rgba(229,240,243,.52); }

/* ── Footer nav image ── */
.ft-nav {
  position: relative;
}
.ft-nav-img-wrap {
  grid-column: 1 / -1;
  display: flex;
  justify-content: flex-end;
  margin-top: 32px;
  pointer-events: none;
}
.ft-nav-img {
  width: 220px;
  height: auto;
  object-fit: contain;
  opacity: 0.82;
  filter: drop-shadow(0 8px 32px rgba(199,0,3,.18));
  user-select: none;
}

/* ── Footer responsive ── */
@media (max-width: 900px) {
  .ft-body {
    grid-template-columns: 1fr;
    gap: 48px;
    padding: 56px 0 48px;
  }
  .ft-nav {
    grid-template-columns: repeat(3, 1fr);
    gap: 24px;
  }
  .ft-headline { font-size: clamp(26px, 7vw, 36px); }
}
@media (max-width: 560px) {
  .ft-nav { grid-template-columns: 1fr 1fr; }
  .ft-bottom { flex-direction: column; align-items: flex-start; gap: 10px; }
  .ft-legal { gap: 16px; }
}

/* ── Scroll animations ── */
.fade-up { opacity: 0; transform: translateY(28px); transition: opacity .6s var(--ease), transform .6s var(--ease); }
.fade-up.visible { opacity: 1; transform: translateY(0); }
.fade-right { opacity: 0; transform: translateX(24px); transition: opacity .5s var(--ease), transform .5s var(--ease); }
.fade-right.visible { opacity: 1; transform: translateX(0); }
.fade-left { opacity: 0; transform: translateX(-20px); transition: opacity .5s var(--ease), transform .5s var(--ease); }
.fade-left.visible { opacity: 1; transform: translateX(0); }
.scale-in { opacity: 0; transform: scale(.94); transition: opacity .8s var(--ease), transform .8s var(--ease); }
.scale-in.visible { opacity: 1; transform: scale(1); }

/* delay helpers */
.d1 { transition-delay: .1s; } .d2 { transition-delay: .2s; }
.d3 { transition-delay: .3s; } .d4 { transition-delay: .4s; }
.d5 { transition-delay: .5s; } .d6 { transition-delay: .6s; }

/* ── Chat Modal ── */
.chat-modal {
  position: fixed; inset: 0; z-index: 200;
  display: flex; align-items: center; justify-content: center;
  padding: 24px;
  pointer-events: none; opacity: 0;
  transition: opacity .3s var(--ease);
}
.chat-modal.open { pointer-events: all; opacity: 1; }

.chat-modal-backdrop {
  position: fixed; inset: 0;
  background: rgba(6,12,18,.65);
  backdrop-filter: blur(6px);
  cursor: pointer;
}

.chat-modal-panel {
  position: relative; z-index: 1;
  width: min(900px, calc(100vw - 48px));
  height: min(780px, calc(100vh - 48px));
  background: var(--canvas-soft);
  border: 1px solid var(--gborder);
  border-radius: 28px;
  display: flex; flex-direction: column;
  overflow: hidden;
  box-shadow: 0 32px 100px rgba(0,0,0,.6);
  transform: translateY(16px) scale(.97);
  transition: transform .4s var(--spring);
}
.chat-modal.open .chat-modal-panel { transform: translateY(0) scale(1); }

/* Header */
.chat-modal-header {
  display: flex; align-items: center; justify-content: space-between;
  padding: 16px 20px;
  border-bottom: 1px solid var(--hairline);
  background: var(--glass); backdrop-filter: var(--blur);
  flex-shrink: 0;
}
.chat-modal-bot { display: flex; align-items: center; gap: 12px; }
.chat-modal-avatar {
  width: 40px; height: 40px; border-radius: 12px;
  background: var(--red); display: flex; align-items: center; justify-content: center;
  color: #fff; flex-shrink: 0;
}
.chat-modal-avatar svg { width: 20px; height: 20px; }
.chat-modal-bot-name { font-size: 14px; font-weight: 600; color: var(--ink); }
.chat-modal-bot-status { display: flex; align-items: center; gap: 6px; font-size: 12px; color: var(--ink-muted); margin-top: 2px; }
.chat-modal-status-dot {
  width: 7px; height: 7px; border-radius: 50%; background: #22c55e;
  box-shadow: 0 0 6px rgba(34,197,94,.6);
  animation: pulse-dot 2s infinite;
}
@keyframes pulse-dot {
  0%,100% { opacity: 1; } 50% { opacity: .5; }
}
.chat-modal-close {
  width: 32px; height: 32px; border-radius: 50%; border: none;
  background: var(--glass-sub); color: var(--ink-muted);
  display: flex; align-items: center; justify-content: center;
  cursor: pointer; transition: background .2s, color .2s;
}
.chat-modal-close:hover { background: var(--surface-hover); color: var(--ink); }

/* Messages */
.chat-modal-messages {
  flex: 1; overflow-y: auto; padding: 20px 16px;
  display: flex; flex-direction: column; gap: 12px;
  scroll-behavior: smooth;
}
.chat-modal-messages::-webkit-scrollbar { width: 4px; }
.chat-modal-messages::-webkit-scrollbar-thumb { background: rgba(107,153,195,.2); border-radius: 9999px; }

/* Message bubbles */
.chat-msg { display: flex; gap: 10px; animation: msgIn .3s var(--spring) both; }
@keyframes msgIn { from { opacity: 0; transform: translateY(10px); } to { opacity: 1; transform: translateY(0); } }

.chat-msg--user { flex-direction: row-reverse; }

.chat-msg-bubble {
  max-width: 78%; padding: 11px 15px;
  font-size: 14px; line-height: 1.6; border-radius: 18px;
}
.chat-msg--bot .chat-msg-bubble {
  background: var(--glass); border: 1px solid var(--gborder);
  color: var(--ink); border-bottom-left-radius: 4px;
}
.chat-msg-bubble--md p { margin: 0 0 10px; }
.chat-msg-bubble--md p:last-child { margin-bottom: 0; }
.chat-msg-bubble--md strong { font-weight: 600; color: var(--ink); }
.chat-msg-bubble--md em { font-style: italic; color: var(--ink-2); }
.chat-msg--user .chat-msg-bubble {
  background: var(--red); color: #fff;
  border-bottom-right-radius: 4px;
}

/* Sources */
.chat-msg-sources { margin-top: 8px; display: flex; flex-direction: column; gap: 4px; }
.chat-msg-source {
  font-size: 12px; color: var(--blue);
  display: flex; align-items: center; gap: 4px;
  text-decoration: none; transition: color .2s;
}
.chat-msg-source:hover { color: var(--blue-h); }
.chat-msg-source svg { width: 11px; height: 11px; flex-shrink: 0; }

/* Follow-up suggestions */
.chat-suggestions { display: flex; flex-direction: column; gap: 6px; margin-top: 8px; }
.chat-suggestion {
  font-size: 13px; color: var(--ink-2);
  background: var(--glass-sub); border: 1px solid var(--hairline);
  border-radius: 12px; padding: 8px 12px; cursor: pointer; text-align: left;
  transition: border-color .2s, color .2s, background .2s;
}
.chat-suggestion:hover { border-color: var(--blue); color: var(--ink); background: var(--surface-hover); }

/* Typing indicator */
.chat-typing { display: flex; align-items: center; gap: 4px; padding: 12px 15px; }
.chat-typing span {
  width: 7px; height: 7px; border-radius: 50%;
  background: var(--ink-muted); display: inline-block;
  animation: typing-dot 1.2s infinite;
}
.chat-typing span:nth-child(2) { animation-delay: .2s; }
.chat-typing span:nth-child(3) { animation-delay: .4s; }
@keyframes typing-dot {
  0%,60%,100% { opacity: .25; transform: translateY(0); }
  30% { opacity: 1; transform: translateY(-4px); }
}

/* Footer — mirrors ai-chat-box */
.chat-modal-footer {
  flex-shrink: 0; padding: 16px 20px 18px;
  border-top: 1px solid var(--hairline);
  background: var(--glass); backdrop-filter: var(--blur);
}
/* Reuse ai-chat-box styles but scoped to modal */
.chat-modal-footer .ai-chat-box {
  background: var(--canvas-elev);
  border-color: var(--gborder);
}
.chat-modal-footer .ai-chat-box:focus-within,
.chat-modal-footer .ai-chat-box.active {
  border-color: rgba(107,153,195,.45);
  box-shadow: 0 0 0 1px rgba(107,153,195,.12);
}
.chat-modal-footer .ai-chat-field input {
  font-size: 15px;
}
/* Send button in modal footer — disabled state */
.chat-modal-footer .ai-chat-send:disabled {
  background: var(--canvas-elev); color: var(--ink-faint); cursor: default;
  transform: none; box-shadow: none;
}
.chat-modal-powered {
  font-size: 11px; color: var(--ink-faint); text-align: center; margin-top: 10px;
}
.chat-modal-powered strong { color: var(--ink-muted); }

@media (max-width: 600px) {
  .chat-modal { padding: 0; align-items: flex-end; }
  .chat-modal-panel { width: 100%; border-radius: 24px 24px 0 0; height: 90dvh; }
}

@keyframes cf-spin { to { stroke-dashoffset: 0; transform: rotate(360deg); transform-origin: 12px 12px; } }

/* ══════════════════════════════
   Contact Form Modal
══════════════════════════════ */
.cf-modal {
  position: fixed; inset: 0; z-index: 300;
  display: flex; align-items: center; justify-content: center;
  padding: 24px;
  pointer-events: none; opacity: 0;
  transition: opacity .3s var(--ease);
}
.cf-modal.open { pointer-events: all; opacity: 1; }

.cf-backdrop {
  position: fixed; inset: 0;
  background: rgba(6,12,18,.72);
  backdrop-filter: blur(8px);
  cursor: pointer;
}

/* Panel — split grid */
.cf-panel {
  position: relative; z-index: 1;
  display: grid; grid-template-columns: 380px 1fr;
  width: min(860px, calc(100vw - 48px));
  max-height: calc(100vh - 48px);
  border-radius: 28px; overflow: hidden;
  box-shadow: 0 40px 120px rgba(0,0,0,.65), inset 0 1px 0 rgba(229,240,243,.06);
  transform: translateY(28px) scale(.96);
  transition: transform .45s var(--spring);
}
.cf-modal.open .cf-panel { transform: translateY(0) scale(1); }

/* ── Left brand panel ── */
.cf-brand {
  position: relative; overflow: hidden;
  background: var(--canvas);
  border-right: 1px solid var(--hairline);
  display: flex; flex-direction: column;
  padding: 48px 44px;
  gap: 0;
}

/* Diagonal red stripe decoration */
.cf-deco-stripe {
  position: absolute;
  top: -80px; right: -60px;
  width: 200px; height: 500px;
  background: linear-gradient(135deg, var(--red) 0%, transparent 55%);
  opacity: .08;
  transform: rotate(12deg);
  pointer-events: none;
}
.cf-deco-dot {
  position: absolute;
  border-radius: 50%;
  background: var(--red);
  opacity: .12;
}
.cf-deco-dot--1 { width: 180px; height: 180px; bottom: 40px; right: -60px; }
.cf-deco-dot--2 { width: 80px;  height: 80px;  top: 140px; left: -28px; opacity: .07; }
.cf-deco-dot--3 { width: 12px;  height: 12px;  top: 220px; right: 44px; opacity: .3; }

/* Logo */
.cf-brand-logo {
  display: flex; align-items: center; gap: 10px;
  margin-bottom: 56px; position: relative; z-index: 1;
}
.cf-brand-logo svg { width: 28px; height: 28px; }
.cf-brand-logo span {
  font-size: 14px; font-weight: 700; letter-spacing: .16em;
  color: var(--ink); text-transform: uppercase;
}

/* Headline */
.cf-brand-copy { flex: 1; position: relative; z-index: 1; }
.cf-brand-headline {
  font-size: clamp(26px, 2.4vw, 34px); font-weight: 800;
  letter-spacing: -1px; line-height: 1.1;
  color: var(--ink); margin-bottom: 20px;
}
.cf-brand-sub {
  font-size: 14px; line-height: 1.7;
  color: var(--ink-muted); max-width: 28ch;
}

/* Trust metrics */
.cf-trust {
  display: flex; flex-direction: column; gap: 20px;
  position: relative; z-index: 1;
  border-top: 1px solid var(--hairline);
  padding-top: 28px; margin-top: auto;
}
.cf-trust-item { display: flex; align-items: baseline; gap: 8px; }
.cf-trust-num {
  font-size: 22px; font-weight: 800; letter-spacing: -.5px;
  color: var(--ink);
}
.cf-trust-label { font-size: 13px; color: var(--ink-muted); }

/* ── Right form panel ── */
.cf-form-wrap {
  background: var(--canvas-soft);
  padding: 44px 48px 40px;
  overflow-y: auto; position: relative;
}
.cf-form-wrap::-webkit-scrollbar { width: 3px; }
.cf-form-wrap::-webkit-scrollbar-thumb { background: var(--hairline); border-radius: 9999px; }

/* Close button */
.cf-close {
  position: absolute; top: 20px; right: 20px;
  width: 36px; height: 36px; border-radius: 50%; border: none;
  background: var(--glass); color: var(--ink-muted);
  display: flex; align-items: center; justify-content: center;
  cursor: pointer; transition: background .2s, color .2s, transform .2s var(--spring);
}
.cf-close:hover { background: var(--canvas-elev); color: var(--ink); transform: rotate(90deg); }

/* Form head */
.cf-form-head { margin-bottom: 36px; }
.cf-form-title {
  font-size: clamp(22px, 2vw, 28px); font-weight: 700;
  letter-spacing: -.6px; color: var(--ink); line-height: 1.2;
  margin-top: 4px;
}

/* Form layout */
.cf-form { display: flex; flex-direction: column; gap: 0; }

/* Field wrapper */
.cf-field {
  position: relative; padding-bottom: 28px;
  /* stagger-in animation */
  opacity: 0; transform: translateY(14px);
  transition: opacity .4s var(--ease), transform .45s var(--spring);
  transition-delay: calc(var(--fi, 0) * 80ms + 120ms);
}
.cf-field--submit { padding-bottom: 0; }
.cf-modal.open .cf-field { opacity: 1; transform: translateY(0); }

/* Floating label input */
.cf-input {
  width: 100%; background: transparent; border: none; outline: none;
  font-family: inherit; font-size: 15px; color: var(--ink);
  padding: 20px 0 6px; display: block;
  border-bottom: 1px solid var(--hairline);
  transition: border-color .2s;
}
.cf-textarea { resize: none; min-height: 80px; line-height: 1.5; }

/* Animated accent line grows from left on focus */
.cf-line {
  position: absolute; bottom: 28px; left: 0;
  height: 2px; width: 0; border-radius: 9999px;
  background: var(--red);
  transition: width .35s var(--spring);
  pointer-events: none;
}
.cf-field--textarea .cf-line { bottom: 28px; }
.cf-input:focus ~ .cf-line { width: 100%; }

/* Floating label */
.cf-label {
  position: absolute; left: 0; top: 20px;
  font-size: 15px; color: var(--ink-muted);
  pointer-events: none;
  transition: top .22s var(--ease), font-size .22s var(--ease), color .22s var(--ease);
  transform-origin: left;
}
/* Float up when filled or focused */
.cf-input:focus + .cf-label,
.cf-input:not(:placeholder-shown) + .cf-label {
  top: 2px; font-size: 11px; letter-spacing: .08em;
  text-transform: uppercase; color: var(--blue);
}
.cf-input:focus { border-color: transparent; }

/* Validation shake */
@keyframes cf-shake {
  0%,100% { transform: translateX(0); }
  20%      { transform: translateX(-6px); }
  40%      { transform: translateX(6px); }
  60%      { transform: translateX(-4px); }
  80%      { transform: translateX(4px); }
}
.cf-field.invalid { animation: cf-shake .4s var(--ease); }
.cf-field.invalid .cf-label { color: var(--red) !important; }
.cf-field.invalid .cf-input { border-color: rgba(199,0,3,.35); }
.cf-field.invalid .cf-line  { background: var(--red); width: 100%; }

/* Submit button */
.cf-submit {
  position: relative; overflow: hidden;
  width: 100%; padding: 16px 24px;
  background: var(--red); color: #fff; border: none; border-radius: 14px;
  font-family: inherit; font-size: 15px; font-weight: 600; letter-spacing: .02em;
  display: flex; align-items: center; justify-content: center; gap: 10px;
  cursor: pointer;
  transition: background .2s var(--ease), transform .2s var(--spring), box-shadow .2s;
}
.cf-submit:hover { background: var(--red-h); transform: translateY(-2px); box-shadow: 0 8px 28px rgba(199,0,3,.28); }
.cf-submit:active { transform: scale(.97); box-shadow: none; }

/* Shimmer sweep on hover */
.cf-submit-shimmer {
  position: absolute; inset: 0;
  background: linear-gradient(105deg, transparent 40%, rgba(255,255,255,.18) 50%, transparent 60%);
  transform: translateX(-100%);
  transition: transform .5s var(--ease);
  pointer-events: none;
}
.cf-submit:hover .cf-submit-shimmer { transform: translateX(100%); }

.cf-submit-icon { flex-shrink: 0; transition: transform .25s var(--spring); }
.cf-submit:hover .cf-submit-icon { transform: translateX(4px); }

/* Agree checkbox */
.cf-field--agree { padding-bottom: 20px; }
.cf-agree-label {
  display: flex; align-items: flex-start; gap: 12px;
  cursor: pointer; user-select: none;
}
.cf-agree-input {
  position: absolute; opacity: 0; width: 0; height: 0; pointer-events: none;
}
.cf-agree-box {
  flex-shrink: 0; width: 20px; height: 20px; border-radius: 6px;
  border: 1.5px solid var(--hairline-s);
  background: var(--canvas-elev);
  display: flex; align-items: center; justify-content: center;
  margin-top: 1px;
  transition: border-color .2s var(--ease), background .2s var(--ease), transform .15s var(--spring);
}
.cf-agree-box svg { width: 12px; height: 10px; opacity: 0; transform: scale(.5); transition: opacity .2s, transform .25s var(--spring); }
.cf-agree-input:checked ~ .cf-agree-box {
  background: var(--red); border-color: var(--red);
  transform: scale(1.08);
}
.cf-agree-input:checked ~ .cf-agree-box svg { opacity: 1; transform: scale(1); }
.cf-agree-label:hover .cf-agree-box { border-color: var(--blue); }
.cf-agree-text {
  font-size: 13px; line-height: 1.55; color: var(--ink-muted);
}
.cf-agree-text a { color: var(--blue); text-decoration: underline; text-underline-offset: 2px; }
.cf-agree-text a:hover { color: var(--blue-h); }

/* Submit disabled state */
.cf-submit:disabled {
  background: var(--canvas-elev); color: var(--ink-faint);
  cursor: not-allowed; transform: none !important; box-shadow: none !important;
}
.cf-submit:disabled .cf-submit-shimmer { display: none; }

/* Mobile */
@media (max-width: 680px) {
  .cf-modal { padding: 0; align-items: flex-end; }
  .cf-panel  { grid-template-columns: 1fr; width: 100%; border-radius: 24px 24px 0 0; max-height: 92dvh; }
  .cf-brand  { display: none; }
  .cf-form-wrap { padding: 36px 24px 32px; }
}

/* ── Responsive ── */
@media (max-width: 860px) {
  .btn-primary, .btn-secondary { padding: 8px 15px; font-size: 14px; }
  .hero { grid-template-columns: 1fr !important; }
  .hero-inner { padding: 10px; max-width: 100%; margin: 0; order: 2; }
  .hero-badge-wrap { display: flex; justify-content: center; }
  .hero-headline { white-space: normal; font-size: clamp(36px,9vw,56px); }
  .hero-video-panel { min-height: 300px; order: 1; }
  .hero-video-panel::before { background: linear-gradient(to bottom, #0c151c 0%, transparent 20%); }
  /* Video scrub is desktop-only: collapse the 500vh scroll-jack driver so
     mobile scrolls this section at a normal pace instead of a 5-screen crawl. */
  .steps-scroll-driver { height: auto !important; }
  .steps-sticky { position: static !important; height: auto !important; grid-template-columns: 1fr !important; }
  .steps-video-col { display: none; }
  .steps-cards-col { padding: 40px 20px; }
  .steps-scroll-hint { display: none; }
  .solutions-grid { grid-template-columns: 1fr !important; }
  .features-bento { grid-template-columns: 1fr !important; grid-template-rows: auto !important; }
  .prod-item-desc { white-space: normal; }
  .f-card--main { grid-row: auto !important; }
  .features-header { flex-direction: column; align-items: flex-start; }
}
@media (max-width: 768px) {
  .hero-stats   { grid-template-columns: repeat(2,1fr); }
  .stats-section { padding: 20px; }
  .container { padding: 0; } /* !!! Особое внимание */
  .ai-chat-section { padding: 40px 10px; }
  .ai-chat-desc { font-size: 14px; line-height: 1.3; }
  .ai-chat-layout { gap: 40px; }
  .stat-col:nth-child(2) { border-right: none; }
  .stat-col:nth-child(3) { border-right: 1px solid var(--hairline); border-top: 1px solid var(--hairline); }
  .stat-col:nth-child(4) { border-right: none; border-top: 1px solid var(--hairline); }
  .feature-strip { grid-template-columns: 1fr !important; }
  .feature-col   { border-right: none !important; border-bottom: 1px solid var(--hairline); }
  .feature-col:last-child { border-bottom: none; }
  .cta-title { font-size: clamp(24px, 4vw, 48px); }
  .cta-card { padding: 40px 24px; }
  .ft { padding: 0px 10px; }
  .ft-body { padding: 30px 0; }
}
@media (prefers-reduced-motion: reduce) {
  .fade-up, .fade-right, .fade-left, .scale-in { transition: none; opacity: 1; transform: none; }
  .float-card { animation: none; }
  .step-card { transition: none; opacity: 1; transform: none; }
  .step-line { transition: none; }
  .steps-scroll-hint-arrow { animation: none; }
}

/* ══════════════════════════════════════════════════════
   HORIZONTAL TIMELINE — "Как это работает"
══════════════════════════════════════════════════════ */

.stl-section { overflow: hidden; }
.stl-header  { position: relative; z-index: 1; }

/* ── Track ── */
.stl-track-wrap {
  position: relative;
  height: 56px;
  margin-bottom: 40px;
}

/* Background rail */
.stl-line-bg {
  position: absolute;
  top: 50%; left: 6%;
  width: 88%; height: 1px;
  background: var(--hairline);
  transform: translateY(-50%);
}

/* Animated fill */
.stl-line-fill {
  position: absolute;
  top: 50%; left: 6%;
  width: 88%; height: 2px;
  background: linear-gradient(to right, var(--red), rgba(199,0,3,.4));
  transform: translateY(-50%) scaleX(0);
  transform-origin: left center;
  transition: transform .9s cubic-bezier(.16,1,.3,1);
  border-radius: 2px;
}
.stl-line-fill.is-drawn {
  transform: translateY(-50%) scaleX(1);
}

/* ── Dots row ── */
.stl-dots {
  position: absolute;
  inset: 0;
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  align-items: center;
}

.stl-dot-wrap {
  display: flex;
  justify-content: center;
  align-items: center;
  position: relative;
}

/* Pulse ring — appears after dot activates */
.stl-dot-ring {
  position: absolute;
  width: 40px; height: 40px;
  border-radius: 50%;
  border: 1.5px solid rgba(199,0,3,.5);
  opacity: 0;
  transform: scale(.5);
  transition: opacity .3s, transform .3s;
}
.stl-dot-wrap.is-active .stl-dot-ring {
  opacity: 1;
  transform: scale(1);
  animation: stl-pulse 2s ease-out infinite;
}

@keyframes stl-pulse {
  0%   { opacity: .7; transform: scale(1); }
  70%  { opacity: 0;  transform: scale(1.7); }
  100% { opacity: 0;  transform: scale(1.7); }
}

/* Dot itself */
.stl-dot {
  width: 28px; height: 28px;
  border-radius: 50%;
  background: var(--canvas-elev);
  border: 2px solid var(--hairline-s);
  display: flex; align-items: center; justify-content: center;
  position: relative; z-index: 1;
  transition: background .3s, border-color .3s, transform .35s var(--spring);
}
.stl-dot span {
  font-size: 9px; font-weight: 800; letter-spacing: .06em;
  color: var(--ink-faint);
  transition: color .3s;
}
.stl-dot-wrap.is-active .stl-dot {
  background: var(--red);
  border-color: var(--red);
  transform: scale(1.15);
}
.stl-dot-wrap.is-active .stl-dot span {
  color: #fff;
}

/* ── Cards row ── */
.stl-cards {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 20px;
}

.stl-card {
  opacity: 0;
  transform: translateY(28px);
  transition:
    opacity .45s cubic-bezier(.16,1,.3,1) calc(var(--si) * 160ms + 300ms),
    transform .45s cubic-bezier(.16,1,.3,1) calc(var(--si) * 160ms + 300ms);
  padding: 24px;
  background: var(--canvas-elev);
  border: 1px solid var(--hairline);
  border-top: 2px solid transparent;
  border-radius: 16px;
  transition-property: opacity, transform, border-top-color;
}
.stl-card.is-active {
  opacity: 1;
  transform: translateY(0);
  border-top-color: var(--red);
}

.stl-card-title {
  font-size: 14px; font-weight: 700;
  color: var(--ink); margin-bottom: 10px;
  letter-spacing: -.1px;
}
.stl-card-body {
  font-size: 13px; line-height: 1.6;
  color: var(--ink-muted);
}

/* ── Responsive ── */
@media (max-width: 860px) {
  .stl-track-wrap { display: none; }
  .stl-cards {
    grid-template-columns: 1fr 1fr;
    gap: 14px;
  }
  .stl-card {
    opacity: 1; transform: none;
    border-top-color: var(--red);
  }
}
@media (max-width: 500px) {
  .stl-cards { grid-template-columns: 1fr; }
}

/* ══════════════════════════════════════════════════════
   STATS REDESIGN — s-sec with parallax + red wet-glass tiles
══════════════════════════════════════════════════════ */
.srev-section {
  position: relative;
  overflow: hidden;
  padding: 120px 0 128px;
}

/* Zoom parallax background layer */
.srev-bg {
  position: absolute;
  inset: 0;
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
  will-change: transform;
  z-index: 0;
  transform-origin: center center;
}

/* Dark overlay — keeps text readable */
.srev-overlay {
  position: absolute;
  inset: 0; z-index: 1;
  background:
    linear-gradient(to bottom, rgba(12,21,28,.72) 0%, rgba(12,21,28,.50) 50%, rgba(12,21,28,.80) 100%),
    radial-gradient(ellipse 80% 60% at 50% 50%, rgba(199,0,3,.18) 0%, transparent 65%);
}

.srev-header {
  margin-bottom: 64px;
}

/* 3-col asymmetric grid — avoids the generic equal-3 ban */
.srev-grid {
  display: grid;
  grid-template-columns: 1fr 1fr 1fr;
  gap: 16px;
}

/* Tile entry — slide up only, opacity stays 1 so backdrop-filter works immediately */
.srev-tile {
  transform: translateY(52px);
  transition: transform .55s cubic-bezier(.16,1,.3,1) calc(var(--tile-i) * 80ms);
}
.srev-tile.is-visible {
  transform: translateY(0);
}

/* Wet-glass tile inner */
.srev-tile-inner {
  position: relative;
  overflow: hidden;
  background: #6a18192e;
  border: 1px solid rgb(80 7 8 / 40%);
  border-top: 1px solid rgba(255,255,255,.15);  /* top refraction line */
  border-left: 1px solid rgba(255,255,255,.10);
  backdrop-filter: blur(18px) saturate(1.6) brightness(1.08);
  -webkit-backdrop-filter: blur(18px) saturate(1.6) brightness(1.08);
  border-radius: 20px;
  padding: 36px 28px 32px;
  box-shadow:
    inset 0 1px 0 rgba(255,255,255,.12),
    inset 0 -1px 0 rgba(0,0,0,.18),
    0 8px 32px rgba(199,0,3,.14),
    0 2px 8px rgba(0,0,0,.20);
  transition: transform .3s cubic-bezier(.34,1.56,.64,1), box-shadow .3s ease;
  min-height: 190px;
}
.srev-tile:hover .srev-tile-inner {
  transform: translateY(-4px) scale(1.01);
  box-shadow:
    inset 0 1px 0 rgba(255,255,255,.18),
    inset 0 -1px 0 rgba(0,0,0,.18),
    0 16px 48px rgba(199,0,3,.22),
    0 4px 12px rgba(0,0,0,.24);
}

/* Animated highlight streak — the "wet" effect */
.srev-tile-shine {
  position: absolute;
  top: 0; left: -60%;
  width: 50%; height: 100%;
  background: linear-gradient(105deg, transparent 30%, rgba(255,255,255,.10) 50%, transparent 70%);
  transform: skewX(-12deg);
  pointer-events: none;
  transition: left .55s cubic-bezier(.16,1,.3,1);
}
.srev-tile:hover .srev-tile-shine {
  left: 130%;
}

/* Tile text */
.srev-tile-num {
  font-size: clamp(36px, 4.5vw, 46px);
  font-weight: 700;
  letter-spacing: -2px;
  line-height: 1;
  color: #fff;
  margin-bottom: 10px;
}
.srev-tile-label {
  font-size: 14px;
  font-weight: 700;
  color: rgba(255,255,255,.90);
  letter-spacing: .02em;
  margin-bottom: 8px;
  text-transform: uppercase;
  font-size: 11px;
  letter-spacing: .12em;
}
.srev-tile-note {
  font-size: 13px;
  line-height: 1.55;
  color: rgba(229,240,243,.65);
}

/* Responsive */
@media (max-width: 900px) {
  .srev-grid { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 560px) {
  .srev-grid { grid-template-columns: 1fr; gap: 12px; }
  .srev-section { padding: 80px 0 88px; }
  .srev-bg { position: absolute; background-attachment: scroll; }
}
@media (prefers-reduced-motion: reduce) {
  .srev-tile { opacity: 1; transform: none; transition: none; }
  .srev-bg { will-change: auto; }
}

/* ══════════════════════════════════════════════
   MEGA MENU / NAVBAR REDESIGN
   ══════════════════════════════════════════════ */

/* Wrap for desktop nav items */
.nm-items {
  display: flex;
  align-items: center;
  gap: 2px;
  flex: 1;
  justify-content: center;
}

/* Trigger button (Сервисы / Продукты) */
.nm-trigger {
  display: flex;
  align-items: center;
  gap: 5px;
  padding: 8px 14px;
  border: none;
  background: transparent;
  color: rgba(229,240,243,.75);
  font-size: 15px;
  font-weight: 500;
  letter-spacing: .01em;
  cursor: pointer;
  border-radius: 8px;
  transition: color .18s, background .18s;
  white-space: nowrap;
  position: relative;
}
.nm-trigger:hover,
.nm-trigger[aria-expanded="true"] {
  color: #E5F0F3;
  background: rgba(229,240,243,.07);
}
.nm-trigger--active {
  color: #E5F0F3;
}
.nm-trigger--active::after {
  content: '';
  position: absolute;
  bottom: 2px;
  left: 14px;
  right: 14px;
  height: 2px;
  background: var(--red);
  border-radius: 2px;
}

/* Plain link (Контакты) */
.nm-link {
  display: flex;
  align-items: center;
  padding: 8px 14px;
  color: rgba(229,240,243,.75);
  font-size: 15px;
  font-weight: 500;
  letter-spacing: .01em;
  text-decoration: none;
  border-radius: 8px;
  transition: color .18s, background .18s;
  white-space: nowrap;
}
.nm-link:hover,
.nm-link[aria-current="page"] {
  color: #E5F0F3;
  background: rgba(229,240,243,.07);
}

/* Caret arrow */
.nm-caret {
  transition: transform .22s cubic-bezier(.16,1,.3,1);
  flex-shrink: 0;
  opacity: .6;
}
.nm-trigger[aria-expanded="true"] .nm-caret {
  transform: rotate(180deg);
}

/* Item wrapper (positions the drop) */
.nm-item {
  position: relative;
}

/* Dropdown panel */
.nm-drop {
  position: absolute;
  top: calc(100% + 10px);
  left: 50%;
  transform: translateX(-50%) translateY(-6px);
  background: rgba(14,24,32,.92);
  backdrop-filter: blur(20px) saturate(1.5);
  -webkit-backdrop-filter: blur(20px) saturate(1.5);
  border: 1px solid rgba(229,240,243,.10);
  border-top: 1px solid rgba(229,240,243,.18);
  border-radius: 14px;
  padding: 8px;
  box-shadow: 0 24px 48px rgba(0,0,0,.55), 0 0 0 1px rgba(0,0,0,.25) inset;
  opacity: 0;
  pointer-events: none;
  transition: opacity .2s cubic-bezier(.16,1,.3,1), transform .22s cubic-bezier(.16,1,.3,1);
  z-index: 200;
}
.nm-drop.is-open {
  opacity: 1;
  pointer-events: auto;
  transform: translateX(-50%) translateY(0);
}


/* Panel item row */
.nm-panel-item {
  display: flex;
  align-items: flex-start;
  gap: 12px;
  padding: 10px 12px;
  border-radius: 8px;
  text-decoration: none;
  transition: background .15s;
  position: relative;
}
.nm-panel-item:hover {
  background: rgba(229,240,243,.06);
}

/* Icon container */
.nm-panel-icon {
  width: 36px;
  height: 36px;
  border-radius: 8px;
  background: rgba(199,0,3,.18);
  border: 1px solid rgba(199,0,3,.30);
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  margin-top: 1px;
}
.nm-panel-icon svg {
  width: 16px;
  height: 16px;
  stroke: var(--red);
  stroke-width: 1.8;
}
.nm-panel-icon--ghost {
  background: rgba(229,240,243,.06);
  border-color: rgba(229,240,243,.12);
}
.nm-panel-icon--ghost svg {
  stroke: rgba(229,240,243,.5);
}

/* Text */
.nm-panel-text { flex: 1; min-width: 0; }
.nm-panel-title {
  font-size: 14.5px;
  font-weight: 600;
  color: #E5F0F3;
  line-height: 1.3;
  margin-bottom: 3px;
}
.nm-panel-desc {
  font-size: 12.5px;
  color: rgba(229,240,243,.48);
  line-height: 1.45;
}

/* "All" row arrow */
.nm-panel-arrow {
  width: 14px;
  height: 14px;
  stroke: rgba(229,240,243,.35);
  flex-shrink: 0;
  align-self: center;
  transition: stroke .15s, transform .15s;
}
.nm-panel-item--all:hover .nm-panel-arrow {
  stroke: rgba(229,240,243,.7);
  transform: translateX(2px);
}

/* Divider */
.nm-divider {
  height: 1px;
  background: rgba(229,240,243,.08);
  margin: 4px 0;
}
.nm-drop-grid + .nm-divider {
  grid-column: 1 / -1;
}

/* ── Mobile menu — accordion, mirrors desktop mega-menu ── */
.mm-scroll {
  display: flex; flex-direction: column; gap: 2px;
  padding: 16px 16px 24px;
  overflow-y: auto;
}

/* Top-level plain link (Главная / Контакты) — same visual language as .nm-link */
.mm-link {
  display: flex; align-items: center;
  padding: 13px 12px;
  color: rgba(229,240,243,.8);
  font-size: 15px; font-weight: 500; letter-spacing: .01em;
  text-decoration: none;
  border-radius: 10px;
  transition: color .18s, background .18s;
}
.mm-link:hover,
.mm-link[aria-current="page"] { color: #E5F0F3; background: rgba(229,240,243,.07); }

/* Accordion group (Услуги / Продукты) */
.mm-item { display: flex; flex-direction: column; }
.mm-trigger {
  display: flex; align-items: center; justify-content: space-between;
  width: 100%; padding: 13px 12px;
  background: transparent; border: none;
  color: rgba(229,240,243,.8);
  font-size: 15px; font-weight: 500; letter-spacing: .01em;
  border-radius: 10px;
  cursor: pointer;
  transition: color .18s, background .18s;
}
.mm-trigger:hover,
.mm-trigger[aria-expanded="true"] { color: #E5F0F3; background: rgba(229,240,243,.07); }
.mm-trigger--active { color: #E5F0F3; }
.mm-caret {
  flex-shrink: 0; opacity: .6;
  transition: transform .25s cubic-bezier(.16,1,.3,1);
}
.mm-trigger[aria-expanded="true"] .mm-caret { transform: rotate(180deg); }

/* Accordion panel — CSS-only grid-rows expand, driven by aria-expanded */
.mm-drop {
  display: grid;
  grid-template-rows: 0fr;
  transition: grid-template-rows .3s cubic-bezier(.16,1,.3,1);
}
.mm-trigger[aria-expanded="true"] + .mm-drop { grid-template-rows: 1fr; }
.mm-drop-inner {
  overflow: hidden; min-height: 0;
  display: flex; flex-direction: column;
  padding: 2px 4px 8px;
}

@media (max-width: 900px) {
  .nm-items, .nav-right { display: none; }
  .nav-burger { display: block; }
}
@media (prefers-reduced-motion: reduce) {
  .mm-drop, .mm-caret { transition: none; }
}

/* ══════════════════════════════════════════════
   HERO PAGE ANIMATION  (.ha universal system)
   ══════════════════════════════════════════════ */

@keyframes ha-in {
  from {
    opacity: 0;
    transform: translateY(30px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@keyframes ha-in-scale {
  from {
    opacity: 0;
    transform: translateY(24px) scale(0.97);
  }
  to {
    opacity: 1;
    transform: translateY(0) scale(1);
  }
}

@keyframes ha-in-stat {
  from {
    opacity: 0;
    transform: translateY(16px) scale(0.95);
  }
  to {
    opacity: 1;
    transform: translateY(0) scale(1);
  }
}

.ha {
  opacity: 0;
  animation: ha-in 0.70s cubic-bezier(0.16, 1, 0.3, 1) forwards;
  animation-delay: calc(var(--i, 0) * 110ms + 80ms);
}

.ha--h1 {
  opacity: 0;
  animation: ha-in-scale 0.80s cubic-bezier(0.16, 1, 0.3, 1) forwards;
  animation-delay: calc(var(--i, 0) * 110ms + 80ms);
}

/* Stats counter pulse when they appear */
.ha--stat {
  opacity: 0;
  animation: ha-in-stat 0.60s cubic-bezier(0.16, 1, 0.3, 1) forwards;
  animation-delay: calc(var(--i, 0) * 110ms + 80ms);
}

/* Breadcrumb: very subtle left slide */
@keyframes ha-in-crumb {
  from {
    opacity: 0;
    transform: translateX(-14px);
  }
  to {
    opacity: 1;
    transform: translateX(0);
  }
}

.ha--crumb {
  opacity: 0;
  animation: ha-in-crumb 0.55s cubic-bezier(0.16, 1, 0.3, 1) forwards;
  animation-delay: calc(var(--i, 0) * 110ms + 80ms);
}

/* Badge: scale from small */
@keyframes ha-in-badge {
  from {
    opacity: 0;
    transform: translateY(10px) scale(0.90);
  }
  to {
    opacity: 1;
    transform: translateY(0) scale(1);
  }
}

.ha--badge {
  opacity: 0;
  animation: ha-in-badge 0.55s cubic-bezier(0.16, 1, 0.3, 1) forwards;
  animation-delay: calc(var(--i, 0) * 110ms + 80ms);
}

/* CTA row: slide + fade */
.ha--cta {
  opacity: 0;
  animation: ha-in 0.65s cubic-bezier(0.16, 1, 0.3, 1) forwards;
  animation-delay: calc(var(--i, 0) * 110ms + 80ms);
}

/* ── Reduced motion: show everything immediately ── */
@media (prefers-reduced-motion: reduce) {
  .ha, .ha--h1, .ha--stat, .ha--crumb, .ha--badge, .ha--cta {
    opacity: 1 !important;
    transform: none !important;
    animation: none !important;
  }
}

/* ══════════════════════════════════════════════
   CLIENTS MARQUEE SECTION
   ══════════════════════════════════════════════ */

.cl-section {
  background: var(--canvas-soft);
  border-top: 1px solid var(--hairline);
  border-bottom: 1px solid var(--hairline);
  padding: 88px 20px;
  overflow: hidden;
}

/* ── Header: 4/6 asymmetric grid ── */
.cl-header {
  display: grid;
  grid-template-columns: 4fr 6fr;
  gap: 72px;
  align-items: start;
  margin-bottom: 56px;
}

.cl-title {
  font-size: clamp(32px, 4vw, 48px);
  font-weight: 800;
  letter-spacing: -2.5px;
  line-height: .95;
  color: var(--ink);
  margin-top: 16px;
}

.cl-head-right {
  display: flex;
  flex-direction: column;
  gap: 28px;
  padding-top: 4px;
}
.cl-sub {
  font-size: 15px;
  line-height: 1.75;
  color: var(--ink-2);
}
.cl-industries {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}
.cl-industries span {
  font-size: 11px;
  font-weight: 500;
  letter-spacing: .04em;
  color: rgba(229,240,243,.42);
  background: rgba(229,240,243,.05);
  border: 1px solid rgba(229,240,243,.09);
  border-radius: 6px;
  padding: 5px 11px;
}

@media (max-width: 900px) {
  .cl-header { grid-template-columns: 1fr; gap: 32px; }
}

/* ── Marquee ── */
.cl-marquee-wrap {
  position: relative;
  width: 100%;
  /* fade edges */
  -webkit-mask-image: linear-gradient(to right, transparent 0%, #000 10%, #000 90%, transparent 100%);
  mask-image: linear-gradient(to right, transparent 0%, #000 10%, #000 90%, transparent 100%);
}

.cl-marquee-track {
  display: flex;
  width: max-content;
  animation: cl-scroll 38s linear infinite;
}

.cl-marquee-track:hover {
  animation-play-state: paused;
}

@keyframes cl-scroll {
  from { transform: translateX(0); }
  to   { transform: translateX(-50%); }
}

.cl-marquee-row {
  display: flex;
  align-items: center;
  gap: 64px;
  padding: 0 32px;
}

/* ── Logo item ── */
.cl-logo-item {
  display: flex;
  align-items: center;
  flex-shrink: 0;
  padding: 12px 0;
}

.cl-logo-item img {
  height: 40px;
  width: auto;
  display: block;
  /* monochrome blue tint */
  filter: brightness(0) saturate(100%) invert(60%) sepia(30%) saturate(400%) hue-rotate(180deg) brightness(0.85);
  opacity: 0.65;
  transition: filter 0.35s cubic-bezier(0.16,1,0.3,1), opacity 0.35s cubic-bezier(0.16,1,0.3,1), transform 0.35s cubic-bezier(0.16,1,0.3,1);
  pointer-events: auto;
}

/* SVG logos */
.cl-logo-item img[src$=".svg"] {
  filter: brightness(0) saturate(100%) invert(60%) sepia(30%) saturate(400%) hue-rotate(180deg) brightness(0.85);
  opacity: 0.65;
}

.cl-logo-item:hover img {
  filter: none;
  opacity: 1;
  transform: scale(1.06);
}

@media (prefers-reduced-motion: reduce) {
  .cl-marquee-track { animation: none; }
}

@media (max-width: 560px) {
  .cl-marquee-row { gap: 40px; }
  .cl-logo-item img { height: 32px; }
}

/* ══════════════════════════════
   Cookie consent banner
══════════════════════════════ */
.cookie-banner {
  position: fixed;
  left: 0; right: 0; bottom: 24px;
  margin: 0 auto;
  z-index: 260;
  width: min(480px, calc(100vw - 48px));
  display: flex;
  align-items: flex-start;
  gap: 14px;
  padding: 20px 22px;
  border-radius: 18px;
  background: rgb(22 36 48 / 29%);
  border: 1px solid var(--gborder);
  backdrop-filter: var(--blur);
  -webkit-backdrop-filter: var(--blur);
  box-shadow: 0 24px 60px rgba(0,0,0,.45);
  opacity: 0;
  transform: translateY(calc(100% + 48px));
  pointer-events: none;
  transition: opacity .4s var(--ease), transform .45s var(--spring);
}
.cookie-banner.visible {
  opacity: 1;
  transform: translateY(0);
  pointer-events: auto;
}
.cookie-banner-icon {
  flex-shrink: 0;
  width: 36px; height: 36px;
  border-radius: 10px;
  background: rgba(199,0,3,.1);
  border: 1px solid rgba(199,0,3,.2);
  display: flex; align-items: center; justify-content: center;
}
.cookie-banner-icon svg { width: 17px; height: 17px; stroke: var(--red); fill: none; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; }
.cookie-banner-body { min-width: 0; display: flex; align-items: center; }
.cookie-banner-text {
  font-size: 13px; line-height: 1.55; color: var(--ink-2);
  margin-right: 30px;
}
.cookie-banner-ok {
  display: inline-flex; align-items: center;
  background: var(--red); color: #fff; border: none;
  border-radius: 9999px; padding: 9px 22px;
  font-size: 13px; font-weight: 600; letter-spacing: .02em;
  cursor: pointer;
  transition: background .2s var(--ease), transform .2s var(--spring), box-shadow .2s var(--ease);
}
.cookie-banner-ok:hover {
  background: var(--red-h);
  transform: translateY(-1px);
  box-shadow: 0 0 20px var(--red-glow);
}
.cookie-banner-ok:active { background: var(--red-a); transform: scale(.97); }

@media (max-width: 560px) {
  .cookie-banner {
    right: 12px; left: 12px; bottom: 12px;
    width: auto;
    padding: 16px 18px;
  }
}
@media (prefers-reduced-motion: reduce) {
  .cookie-banner { transition: opacity .3s var(--ease); transform: none; }
  .cookie-banner.visible { transform: none; }
}

/* ═══════════════════════════════════════
   LEGAL PAGES (privacy policy / terms of service)
═══════════════════════════════════════ */
.lg-hero {
  padding: 140px 0 56px;
  background: var(--canvas);
  position: relative;
  overflow: hidden;
}
.lg-hero::before {
  content: ''; position: absolute; inset: 0; pointer-events: none;
  background: radial-gradient(ellipse 60% 50% at 15% 20%, rgba(199,0,3,.07) 0%, transparent 60%);
}
.lg-hero .container { position: relative; z-index: 1; }

.lg-breadcrumb {
  display: flex; align-items: center; gap: 8px;
  font-size: 13px; color: var(--ink-faint);
  margin-bottom: 28px;
}
.lg-breadcrumb a { color: var(--ink-muted); transition: color .2s var(--ease); }
.lg-breadcrumb a:hover { color: var(--ink); }

.lg-kicker {
  display: inline-flex; align-items: center; gap: 8px;
  background: var(--glass); border: 1px solid var(--gborder);
  backdrop-filter: blur(16px); -webkit-backdrop-filter: blur(16px);
  border-radius: 9999px; padding: 6px 16px 6px 6px;
  width: fit-content; margin-bottom: 24px;
}
.lg-kicker-tag {
  background: var(--red); color: #fff;
  font-size: 10px; font-weight: 700; letter-spacing: .1em;
  text-transform: uppercase; border-radius: 9999px; padding: 3px 8px;
}
.lg-kicker-text { font-size: 13px; color: var(--ink-2); }

.lg-headline {
  font-size: clamp(34px, 4.2vw, 52px);
  font-weight: 800;
  letter-spacing: -1.8px;
  line-height: 1.08;
  color: var(--ink);
  max-width: 780px;
  margin-bottom: 14px;
}

.lg-meta {
  font-size: 14px;
  color: var(--ink-faint);
}

/* Content typography */
.lg-body {
  padding: 8px 0 120px;
  background: var(--canvas);
}
.lg-content {
  max-width: 780px;
  color: var(--ink-2);
  font-size: 15.5px;
  line-height: 1.75;
}
.lg-content > *:first-child { margin-top: 0; }

.lg-content h2 {
  font-size: 21px;
  font-weight: 700;
  letter-spacing: -.3px;
  color: var(--ink);
  margin: 48px 0 18px;
  padding-top: 28px;
  border-top: 1px solid var(--hairline);
}
.lg-content h2:first-child { padding-top: 0; border-top: none; margin-top: 0; }

.lg-content p { margin: 0 0 16px; }

.lg-content strong { color: var(--ink); font-weight: 600; }

.lg-content ul,
.lg-content ol {
  margin: 0 0 16px;
  padding-left: 22px;
}
.lg-content li { margin-bottom: 8px; }
.lg-content li > ul,
.lg-content li > ol {
  margin-top: 8px;
  margin-bottom: 0;
}
.lg-content li::marker {
  color: var(--ink-faint);
}

.lg-content a { color: var(--blue); text-decoration: underline; text-underline-offset: 2px; }

.lg-sign {
  margin-top: 32px;
  padding: 20px 24px;
  background: var(--glass);
  border: 1px solid var(--gborder);
  border-radius: 12px;
  display: inline-flex;
  flex-direction: column;
  gap: 4px;
}
.legal-sign-role { font-size: 13px; color: var(--ink-faint); }
.legal-sign-name { font-size: 15px; color: var(--ink); font-weight: 600; }

@media (max-width: 600px) {
  .lg-hero { padding: 100px 0 40px; }
  .lg-headline { letter-spacing: -1px; }
  .lg-content { font-size: 15px; }
  .lg-content h2 { font-size: 19px; margin: 40px 0 16px; }
}
