/* ===================== Tokens ===================== */
:root {
  --bg: #ffffff;
  --bg-2: #f5f8fc;
  --surface: rgba(255, 255, 255, 0.82);
  --surface-2: #f1f5f9;
  --border: rgba(15, 23, 42, 0.08);
  --border-strong: rgba(15, 23, 42, 0.14);
  --text: #0f172a;
  --muted: #475569;
  --dim: #64748b;
  --accent: #2563eb;
  --accent-deep: #1d4ed8;
  --accent-light: #3b82f6;
  --accent-tint: rgba(37, 99, 235, 0.28);
  --gradient: linear-gradient(135deg, #1d4ed8, #3b82f6);
  --gradient-soft: linear-gradient(135deg, rgba(37, 99, 235, 0.10), rgba(59, 130, 246, 0.08));
  --error: #dc2626;

  --r-card: 18px;
  --r-sm: 12px;
  --r-panel: 28px;
  --r-pill: 999px;

  --shadow-sm: 0 1px 2px rgba(15, 23, 42, 0.04), 0 4px 16px -6px rgba(15, 23, 42, 0.08);
  --shadow-lg: 0 24px 50px -24px rgba(15, 23, 42, 0.22);
  --glow: 0 0 0 4px rgba(37, 99, 235, 0.12), 0 12px 32px -6px rgba(37, 99, 235, 0.55), 0 0 40px rgba(59, 130, 246, 0.25);
  --ease: cubic-bezier(0.22, 1, 0.36, 1);

  --font-display: "Plus Jakarta Sans", system-ui, sans-serif;
  --font-body: "Inter", system-ui, sans-serif;
  --font-mono: "JetBrains Mono", ui-monospace, monospace;

  --nav-h: 76px;
  --gutter: 24px;
  --section-pad: 120px;
}

/* ===================== Base ===================== */
*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: var(--nav-h); -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  background: var(--bg);
  color: var(--muted);
  font: 400 16px/1.6 var(--font-body);
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  overflow-x: hidden;
}
::selection { background: rgba(37, 99, 235, 0.18); }
h1, h2, h3, h4 { font-family: var(--font-display); color: var(--text); letter-spacing: -0.02em; line-height: 1.15; margin: 0; }
p { margin: 0; }
ul { list-style: none; margin: 0; padding: 0; }
a { color: inherit; text-decoration: none; }
address { font-style: normal; }
button { font: inherit; cursor: pointer; }
:focus-visible { outline: 2px solid var(--accent); outline-offset: 3px; border-radius: 6px; }

.container { width: 100%; max-width: 1200px; margin: 0 auto; padding: 0 var(--gutter); }
.skip-link {
  position: fixed; top: 12px; left: 12px; z-index: 200;
  background: var(--text); color: #fff; padding: 10px 16px; border-radius: var(--r-sm);
  transform: translateY(-200%); transition: transform .2s var(--ease);
}
.skip-link:focus { transform: none; }

#network { position: fixed; inset: 0; width: 100%; height: 100%; z-index: 0; pointer-events: none; }
main, .footer, .nav { position: relative; z-index: 1; }

.icon { width: 24px; height: 24px; fill: none; stroke: currentColor; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; flex-shrink: 0; }

.eyebrow {
  font: 500 12.5px/1.4 var(--font-mono);
  text-transform: uppercase; letter-spacing: 0.12em; color: var(--accent);
  margin-bottom: 16px;
}
.gradient-text { background: var(--gradient); -webkit-background-clip: text; background-clip: text; color: transparent; }

/* ===================== Buttons ===================== */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  font: 700 14.5px/1.2 var(--font-display);
  padding: 11px 20px; border-radius: var(--r-pill); border: 1px solid transparent;
  transition: transform .35s var(--ease), box-shadow .35s var(--ease), border-color .35s var(--ease), color .35s var(--ease);
  white-space: nowrap;
}
.btn--lg { padding: 15px 28px; font-size: 15.5px; }
.btn--block { width: 100%; }
.btn--primary { background: var(--gradient); color: #fff; box-shadow: 0 8px 20px -8px rgba(37, 99, 235, 0.55); }
.btn--primary:hover { transform: translateY(-2px); box-shadow: var(--glow); }
.btn--ghost {
  background: rgba(255, 255, 255, 0.85); color: var(--text); border-color: var(--border-strong);
  -webkit-backdrop-filter: blur(6px); backdrop-filter: blur(6px);
}
.btn--ghost:hover { transform: translateY(-2px); border-color: var(--accent); color: var(--accent); box-shadow: var(--shadow-sm); }
.btn .arrow, .text-link .arrow { width: 18px; height: 18px; transition: transform .35s var(--ease); }
.btn:hover .arrow, .text-link:hover .arrow { transform: translateX(4px); }

/* ===================== Nav ===================== */
.nav {
  position: fixed; top: 0; left: 0; right: 0; height: var(--nav-h); z-index: 100;
  border-bottom: 1px solid transparent;
  transition: background .35s var(--ease), box-shadow .35s var(--ease), border-color .35s var(--ease);
}
.nav.is-scrolled {
  background: rgba(255, 255, 255, 0.72);
  -webkit-backdrop-filter: blur(16px) saturate(180%); backdrop-filter: blur(16px) saturate(180%);
  border-bottom-color: var(--border);
  box-shadow: 0 4px 24px -12px rgba(15, 23, 42, 0.12);
}
.nav__inner { height: 100%; display: flex; align-items: center; justify-content: space-between; gap: 24px; }

.logo { display: inline-flex; align-items: center; gap: 11px; min-width: 0; }
.logo__mark { width: 38px; height: 38px; flex-shrink: 0; }
.logo__text { display: flex; flex-direction: column; line-height: 1.1; }
.logo__word { font: 800 20px/1.1 var(--font-display); color: var(--text); letter-spacing: -0.02em; white-space: nowrap; }
.logo__sub { font: 500 10.5px/1.3 var(--font-body); text-transform: uppercase; letter-spacing: 0.08em; color: var(--dim); margin-top: 3px; white-space: nowrap; }

.nav__links { display: flex; gap: 4px; }
.nav__links a {
  font: 500 14.5px/1 var(--font-body); color: var(--muted);
  padding: 10px 16px; border-radius: var(--r-pill);
  transition: background .25s var(--ease), color .25s var(--ease);
}
.nav__links a:hover, .nav__links a.is-active { background: rgba(15, 23, 42, 0.05); color: var(--text); }

.burger {
  display: none; width: 44px; height: 44px; border-radius: var(--r-sm);
  background: #fff; border: 1px solid var(--border-strong);
  flex-direction: column; align-items: center; justify-content: center; gap: 4px; padding: 0;
}
.burger span { display: block; width: 18px; height: 2px; border-radius: 2px; background: var(--text); transition: transform .35s var(--ease), opacity .25s var(--ease); }
.burger[aria-expanded="true"] span:nth-child(1) { transform: translateY(6px) rotate(45deg); }
.burger[aria-expanded="true"] span:nth-child(2) { opacity: 0; }
.burger[aria-expanded="true"] span:nth-child(3) { transform: translateY(-6px) rotate(-45deg); }

.mobile-menu {
  position: absolute; top: var(--nav-h); left: 0; right: 0;
  padding: 0 var(--gutter);
  opacity: 0; transform: translateY(-8px); visibility: hidden; pointer-events: none;
  transition: opacity .3s var(--ease), transform .3s var(--ease), visibility 0s linear .3s;
}
.mobile-menu nav {
  background: rgba(255, 255, 255, 0.97);
  -webkit-backdrop-filter: blur(16px); backdrop-filter: blur(16px);
  border: 1px solid var(--border); border-radius: var(--r-card); box-shadow: var(--shadow-lg);
  padding: 12px; display: flex; flex-direction: column; gap: 2px;
}
.mobile-menu nav a:not(.btn) { font: 500 16px/1 var(--font-body); color: var(--text); padding: 16px 14px; border-radius: var(--r-sm); }
.mobile-menu nav a:not(.btn):hover { background: rgba(15, 23, 42, 0.05); }
.mobile-menu .btn { margin-top: 8px; padding: 14px 20px; }
.mobile-menu.is-open { opacity: 1; transform: none; visibility: visible; pointer-events: auto; transition-delay: 0s; }

/* ===================== Hero ===================== */
.hero {
  position: relative; min-height: 100vh; min-height: 100svh;
  display: flex; align-items: center; justify-content: center;
  padding: calc(var(--nav-h) + 48px) 0 110px; overflow: hidden;
}
.hero__glow { position: absolute; border-radius: 50%; filter: blur(90px); opacity: .6; pointer-events: none; animation: drift 18s var(--ease) infinite alternate; }
.hero__glow--a { width: 520px; height: 520px; background: rgba(96, 165, 250, 0.35); top: -120px; right: -120px; }
.hero__glow--b { width: 460px; height: 460px; background: rgba(147, 197, 253, 0.4); bottom: -120px; left: -120px; animation-delay: -9s; animation-direction: alternate-reverse; }
@keyframes drift {
  0% { transform: translate(0, 0) scale(1); }
  50% { transform: translate(-40px, 30px) scale(1.1); }
  100% { transform: translate(30px, -20px) scale(0.95); }
}
.hero__inner { position: relative; max-width: 880px; text-align: center; display: flex; flex-direction: column; align-items: center; }
.hero__eyebrow { display: inline-flex; align-items: center; gap: 10px; margin-bottom: 24px; }
.pulse { position: relative; width: 8px; height: 8px; border-radius: 50%; background: var(--accent); }
.pulse::after { content: ""; position: absolute; inset: 0; border-radius: 50%; background: var(--accent); animation: pulse 2s ease-out infinite; }
@keyframes pulse { 0% { transform: scale(1); opacity: .6; } 100% { transform: scale(3.2); opacity: 0; } }
.hero__title { font-size: clamp(42px, 7vw, 84px); font-weight: 800; letter-spacing: -0.04em; line-height: 1.05; }
.hero__sub { font-size: clamp(16px, 1.7vw, 20px); color: var(--muted); max-width: 640px; margin-top: 24px; }
.hero__actions { display: flex; gap: 14px; justify-content: center; flex-wrap: wrap; margin-top: 36px; }
.stats {
  display: flex; justify-content: center; gap: 56px; flex-wrap: wrap;
  margin: 52px 0 0; padding-top: 32px; border-top: 1px solid var(--border);
}
.stat { display: flex; flex-direction: column; align-items: center; }
.stat__num { font: 800 32px/1.1 var(--font-display); color: var(--text); letter-spacing: -0.02em; font-variant-numeric: tabular-nums; }
.stat dd { margin: 6px 0 0; font-size: 13.5px; color: var(--dim); }

.scroll-cue {
  position: absolute; bottom: 32px; left: 50%; transform: translateX(-50%);
  width: 26px; height: 42px; border: 2px solid var(--border-strong); border-radius: 14px;
  display: flex; justify-content: center; padding-top: 8px;
}
.scroll-cue span { width: 4px; height: 8px; border-radius: 2px; background: var(--accent); animation: cue 1.8s var(--ease) infinite; }
@keyframes cue { 0% { transform: translateY(0); opacity: 1; } 70% { transform: translateY(12px); opacity: 0; } 100% { transform: translateY(0); opacity: 0; } }

/* ===================== Ticker ===================== */
.ticker {
  border-top: 1px solid var(--border); border-bottom: 1px solid var(--border);
  background: rgba(245, 248, 252, 0.7); padding: 36px 0;
}
.ticker__caption { text-align: center; font-size: 13.5px; color: var(--dim); margin-bottom: 22px; padding: 0 var(--gutter); }
.ticker__viewport {
  overflow: hidden;
  -webkit-mask-image: linear-gradient(90deg, transparent, #000 12%, #000 88%, transparent);
  mask-image: linear-gradient(90deg, transparent, #000 12%, #000 88%, transparent);
}
.ticker__track { display: flex; gap: 14px; width: max-content; animation: marquee 40s linear infinite; }
.ticker__viewport:hover .ticker__track { animation-play-state: paused; }
@keyframes marquee { to { transform: translateX(calc(-50% - 7px)); } }
.badge {
  display: inline-flex; align-items: center; gap: 10px; white-space: nowrap;
  background: #fff; border: 1px solid var(--border); border-radius: var(--r-sm); padding: 12px 20px;
  font: 600 15px/1 var(--font-display); color: var(--muted);
  transition: color .25s var(--ease), border-color .25s var(--ease), box-shadow .25s var(--ease);
}
.badge .icon { width: 20px; height: 20px; color: var(--accent); }
.badge:hover { color: var(--text); border-color: var(--accent-tint); box-shadow: var(--shadow-sm); }

/* ===================== Sections ===================== */
.section { padding: var(--section-pad) 0; }
.section--band { background: linear-gradient(180deg, rgba(245, 248, 252, 0.75), rgba(255, 255, 255, 0.4)); border-top: 1px solid var(--border); }
.section-head { text-align: center; max-width: 720px; margin: 0 auto 64px; }
.section-head h2, .about h2, .contact h2 { font-size: clamp(30px, 4vw, 46px); font-weight: 800; }
.section-intro { font-size: 17px; color: var(--muted); margin-top: 18px; }

.card {
  position: relative; background: var(--surface); border: 1px solid var(--border);
  border-radius: var(--r-card); box-shadow: var(--shadow-sm); min-width: 0;
}

/* ---------- Services ---------- */
.services-grid { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 20px; }
.service {
  padding: 28px; display: flex; flex-direction: column; overflow: hidden;
  transition: transform .45s var(--ease), border-color .45s var(--ease), box-shadow .45s var(--ease), opacity .8s var(--ease);
}
.service::before {
  content: ""; position: absolute; inset: 0; pointer-events: none; opacity: 0;
  background: radial-gradient(400px circle at var(--mx, 50%) var(--my, 50%), rgba(37, 99, 235, 0.09), transparent 60%);
  transition: opacity .35s var(--ease);
}
.service:hover::before { opacity: 1; }
.service:hover { transform: translateY(-8px); border-color: var(--accent-tint); box-shadow: 0 28px 50px -24px rgba(37, 99, 235, 0.35); }
.service > * { position: relative; }
.icon-tile {
  width: 52px; height: 52px; border-radius: 14px; display: grid; place-items: center;
  background: var(--gradient-soft); border: 1px solid rgba(37, 99, 235, 0.18); color: var(--accent);
  margin-bottom: 22px; transition: transform .45s var(--ease), background .45s var(--ease), color .45s var(--ease);
}
.icon-tile .icon { width: 26px; height: 26px; }
.service:hover .icon-tile { transform: scale(1.08) rotate(-4deg); background: var(--gradient); color: #fff; border-color: transparent; }
.service h3 { font-size: 19px; font-weight: 700; margin-bottom: 10px; }
.service p { font-size: 14.5px; color: var(--muted); }
.tags { display: flex; flex-wrap: wrap; gap: 6px; margin-top: auto; padding-top: 20px; }
.tags li {
  font: 400 11px/1 var(--font-mono); color: var(--muted);
  background: var(--surface-2); border: 1px solid var(--border); border-radius: var(--r-pill); padding: 6px 10px;
}
.service--cta { justify-content: center; background: linear-gradient(135deg, rgba(219, 234, 254, 0.8), rgba(239, 246, 255, 0.85)); border-color: var(--accent-tint); }
.text-link { display: inline-flex; align-items: center; gap: 6px; margin-top: 18px; color: var(--accent); font: 700 14.5px/1.2 var(--font-display); }

/* ---------- Solutions ---------- */
.solutions-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 24px; }
.solution { padding: 36px 32px; transition: transform .45s var(--ease), box-shadow .45s var(--ease), opacity .8s var(--ease); }
.solution:hover { transform: translateY(-6px); box-shadow: var(--shadow-lg); }
.solution__num { display: block; font: 500 14px/1 var(--font-mono); color: var(--accent); margin-bottom: 18px; }
.solution h3 { font-size: 23px; font-weight: 700; margin-bottom: 12px; }
.solution > p { color: var(--muted); margin-bottom: 24px; }
.solution--featured {
  background: linear-gradient(160deg, rgba(219, 234, 254, 0.85), rgba(255, 255, 255, 0.9));
  border-color: var(--accent-tint); box-shadow: 0 28px 60px -28px rgba(37, 99, 235, 0.45);
}
.solution--featured:hover { box-shadow: 0 32px 64px -26px rgba(37, 99, 235, 0.5); }
.solution__badge {
  position: absolute; top: 20px; right: 20px;
  background: var(--gradient); color: #fff; font: 700 12px/1 var(--font-display);
  padding: 7px 12px; border-radius: var(--r-pill); box-shadow: 0 6px 16px -6px rgba(37, 99, 235, 0.6);
}

.checklist { display: flex; flex-direction: column; gap: 12px; }
.checklist li { position: relative; padding-left: 30px; font-size: 15px; color: var(--text); }
.checklist li::before {
  content: ""; position: absolute; left: 0; top: 3px; width: 18px; height: 18px; border-radius: 50%;
  background: rgba(37, 99, 235, 0.12) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%232563eb' stroke-width='3' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='m5 12 5 5 9-10'/%3E%3C/svg%3E") center / 11px no-repeat;
}

/* ---------- Process ---------- */
.process { max-width: 1000px; margin: 0 auto; }
.process__steps { position: relative; display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); margin-bottom: 40px; }
.process__rail { position: absolute; top: 26px; left: 12.5%; right: 12.5%; height: 2px; background: #e2e8f0; border-radius: 2px; }
.process__fill { height: 100%; width: 0; background: var(--gradient); border-radius: inherit; transition: width .6s var(--ease), height .6s var(--ease); }
.step {
  position: relative; background: none; border: 0; padding: 0 8px;
  display: flex; flex-direction: column; align-items: center; gap: 14px; text-align: center; min-width: 0;
}
.step:focus-visible { outline-offset: 6px; }
.step__circle {
  width: 54px; height: 54px; border-radius: 50%; display: grid; place-items: center;
  background: #fff; border: 2px solid #e2e8f0; color: #94a3b8;
  font: 800 18px/1 var(--font-display);
  transition: transform .45s var(--ease), background .45s var(--ease), border-color .45s var(--ease), color .45s var(--ease), box-shadow .45s var(--ease);
}
.step__label { font: 600 15px/1.3 var(--font-display); color: var(--dim); transition: color .3s var(--ease); }
.step:hover .step__circle, .step.is-done .step__circle { border-color: var(--accent); color: var(--accent); }
.step[aria-selected="true"] .step__circle {
  background: var(--gradient); border-color: transparent; color: #fff; transform: scale(1.08);
  box-shadow: 0 0 0 6px rgba(37, 99, 235, 0.14), 0 10px 26px -6px rgba(37, 99, 235, 0.6);
}
.step[aria-selected="true"] .step__label { color: var(--text); }

.panel {
  display: grid; grid-template-columns: 1.4fr 1fr; gap: 40px; align-items: center;
  background: var(--surface); border: 1px solid var(--border-strong); border-radius: var(--r-card);
  box-shadow: var(--shadow-sm); padding: 36px 40px;
  animation: panel-in .5s var(--ease);
}
.panel[hidden] { display: none; }
.panel h3 { font-size: 24px; font-weight: 700; margin-bottom: 12px; }
@keyframes panel-in { from { opacity: 0; transform: translateY(12px); } to { opacity: 1; transform: none; } }

/* ---------- About ---------- */
.about { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 72px; align-items: center; }
.about__copy h2 { margin-bottom: 22px; }
.about__copy > p:not(.eyebrow) { margin-bottom: 16px; font-size: 16.5px; }
.values { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 12px; margin-top: 28px; }
.values li { background: #fff; border: 1px solid var(--border); border-radius: var(--r-sm); padding: 16px; box-shadow: var(--shadow-sm); min-width: 0; }
.values strong { display: block; font: 700 15px/1.3 var(--font-display); color: var(--text); margin-bottom: 4px; }
.values span { font-size: 13.5px; color: var(--dim); }

.team { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 18px; padding-bottom: 36px; }
.member:nth-child(even) { transform: translateY(36px); }
.member:nth-child(even).reveal:not(.is-visible) { transform: translateY(64px); }
.portrait {
  aspect-ratio: 4 / 5; border-radius: var(--r-card); border: 1px solid var(--border);
  background: linear-gradient(160deg, #dbeafe, #eff6ff) center / cover no-repeat;
  display: grid; place-items: center; overflow: hidden;
  transition: transform .45s var(--ease), box-shadow .45s var(--ease);
}
.portrait:hover { transform: scale(1.02); box-shadow: var(--shadow-lg); }
.portrait span { font: 800 clamp(40px, 5vw, 64px)/1 var(--font-display); color: rgba(37, 99, 235, 0.22); letter-spacing: -0.02em; }
.member__name { font: 700 16px/1.3 var(--font-display); color: var(--text); margin-top: 14px; }
.member__role { font-size: 13.5px; color: var(--dim); }

/* ---------- Contact ---------- */
.contact {
  display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.15fr); gap: 56px;
  padding: 56px; border-radius: var(--r-panel); border: 1px solid var(--border-strong);
  background:
    radial-gradient(600px circle at 0 0, rgba(59, 130, 246, 0.10), transparent 60%),
    rgba(255, 255, 255, 0.9);
  box-shadow: var(--shadow-lg);
}
.contact__info h2 { margin-bottom: 18px; }
.details { margin-top: 32px; display: flex; flex-direction: column; gap: 16px; }
.details li { display: flex; align-items: center; gap: 12px; color: var(--text); min-width: 0; overflow-wrap: anywhere; }
.details .icon { color: var(--accent); width: 22px; height: 22px; }
.details a:hover { color: var(--accent); }

.form { display: flex; flex-direction: column; gap: 18px; min-width: 0; }
.form__row { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 18px; }
.field { display: flex; flex-direction: column; gap: 7px; min-width: 0; }
.field > span { font: 500 13.5px/1.3 var(--font-body); color: var(--muted); }
.field input, .field select, .field textarea {
  width: 100%; font: 400 15px/1.4 var(--font-body); color: var(--text);
  background: #fff; border: 1px solid var(--border-strong); border-radius: var(--r-sm); padding: 13px 15px;
  transition: border-color .25s var(--ease), box-shadow .25s var(--ease);
}
.field input::placeholder, .field textarea::placeholder { color: #94a3b8; }
.field textarea { resize: vertical; min-height: 110px; }
.field select {
  appearance: none; -webkit-appearance: none; padding-right: 42px;
  background: #fff url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%2364748b' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='m6 9 6 6 6-6'/%3E%3C/svg%3E") right 14px center / 18px no-repeat;
}
.field input:focus, .field select:focus, .field textarea:focus { outline: none; border-color: var(--accent); box-shadow: 0 0 0 4px rgba(37, 99, 235, 0.14); }
.field .is-invalid, .field .is-invalid:focus { border-color: var(--error); box-shadow: 0 0 0 4px rgba(220, 38, 38, 0.10); }
.hp { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }
.form .btn:disabled { opacity: .7; cursor: wait; transform: none; }
.form__status { text-align: center; font-size: 14px; min-height: 22px; }
.form__status.is-error { color: var(--error); }
.form__status.is-success { color: var(--accent); }

/* Success state: fields fade out, confirmation animates in over the same space */
.form { position: relative; }
.form > :not(.form__success) { transition: opacity .35s var(--ease), visibility .35s; }
.form.is-sent > :not(.form__success) { opacity: 0; visibility: hidden; }
.form__success {
  display: none; position: absolute; inset: 0;
  flex-direction: column; align-items: center; justify-content: center; text-align: center; gap: 12px;
  padding: 24px;
}
.form.is-sent .form__success { display: flex; animation: success-in .5s var(--ease) .15s both; }
.form__success h3 { font-size: 26px; font-weight: 800; margin-top: 12px; }
.form__success h3:focus { outline: none; }
.form__success p { max-width: 360px; color: var(--muted); }
.form__success .btn { margin-top: 12px; }
@keyframes success-in { from { opacity: 0; transform: translateY(12px); } to { opacity: 1; transform: none; } }

.success-badge {
  position: relative; width: 84px; height: 84px; border-radius: 50%;
  background: var(--gradient); display: grid; place-items: center;
  box-shadow: 0 0 0 8px rgba(37, 99, 235, 0.12), 0 16px 36px -10px rgba(37, 99, 235, 0.6);
  animation: badge-pop .6s cubic-bezier(0.34, 1.56, 0.64, 1) .2s both;
}
.success-badge svg { width: 52px; height: 52px; fill: none; stroke: #fff; stroke-width: 4; stroke-linecap: round; stroke-linejoin: round; }
.success-badge path { stroke-dasharray: 36; animation: check-draw .45s var(--ease) .6s both; }
.success-badge__ring {
  position: absolute; inset: 0; border-radius: 50%; border: 2px solid var(--accent-light);
  opacity: 0; animation: ring-out 1s var(--ease) .55s;
}
.success-badge__burst { position: absolute; inset: 0; }
.success-badge__burst i {
  position: absolute; top: 50%; left: 50%; width: 7px; height: 7px; margin: -3.5px; border-radius: 50%;
  background: var(--accent-light); opacity: 0;
  animation: burst .8s var(--ease) .6s;
}
.success-badge__burst i:nth-child(even) { width: 5px; height: 5px; margin: -2.5px; background: var(--accent-deep); }
.success-badge__burst i:nth-child(1) { --a: 0deg; }
.success-badge__burst i:nth-child(2) { --a: 45deg; }
.success-badge__burst i:nth-child(3) { --a: 90deg; }
.success-badge__burst i:nth-child(4) { --a: 135deg; }
.success-badge__burst i:nth-child(5) { --a: 180deg; }
.success-badge__burst i:nth-child(6) { --a: 225deg; }
.success-badge__burst i:nth-child(7) { --a: 270deg; }
.success-badge__burst i:nth-child(8) { --a: 315deg; }
@keyframes badge-pop { from { transform: scale(0.4); opacity: 0; } to { transform: scale(1); opacity: 1; } }
@keyframes check-draw { from { stroke-dashoffset: 36; } to { stroke-dashoffset: 0; } }
@keyframes ring-out { from { transform: scale(1); opacity: .8; } to { transform: scale(1.9); opacity: 0; } }
@keyframes burst {
  0% { transform: rotate(var(--a)) translateY(0) scale(.6); opacity: 0; }
  20% { opacity: 1; }
  100% { transform: rotate(var(--a)) translateY(-70px) scale(1); opacity: 0; }
}

/* ===================== Footer ===================== */
.footer { background: rgba(245, 248, 252, 0.85); border-top: 1px solid var(--border); padding: 80px 0 32px; }
.footer__grid { display: grid; grid-template-columns: 1.6fr 1fr 1fr 1.2fr; gap: 40px; }
.footer__grid > * { min-width: 0; }
.footer__brand p { margin-top: 18px; font-size: 14.5px; max-width: 320px; }
.footer__brand strong { color: var(--text); }
.footer h4 { font: 500 13px/1.3 var(--font-mono); text-transform: uppercase; letter-spacing: 0.1em; color: var(--dim); margin-bottom: 18px; }
.footer__grid ul { display: flex; flex-direction: column; gap: 10px; }
.footer__grid a, .footer address { font-size: 14.5px; color: var(--muted); transition: color .25s var(--ease); }
.footer__grid a:hover { color: var(--accent); }
.footer__grid address + p { margin-top: 12px; }
.footer__grid address + p strong { color: var(--text); }
.footer__bottom {
  margin-top: 56px; padding-top: 24px; border-top: 1px solid var(--border);
  display: flex; justify-content: space-between; align-items: center; flex-wrap: wrap; gap: 12px 24px;
  font-size: 13.5px; color: var(--dim);
}
.footer__bottom ul { display: flex; gap: 20px; flex-wrap: wrap; }
.footer__bottom a:hover { color: var(--accent); }

/* ===================== Reveal ===================== */
.reveal { opacity: 0; transform: translateY(28px); transition: opacity .8s var(--ease), transform .8s var(--ease); transition-delay: var(--d, 0s); }
.reveal.is-visible { opacity: 1; transform: none; }
.member:nth-child(even).reveal.is-visible { transform: translateY(36px); }

/* ===================== Responsive ===================== */
@media (max-width: 1080px) {
  .services-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .about { grid-template-columns: minmax(0, 1fr); gap: 56px; }
  .contact { grid-template-columns: minmax(0, 1fr); padding: 40px; gap: 40px; }
  .footer__grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}

@media (max-width: 860px) {
  .nav__links, .nav__cta { display: none; }
  .burger { display: flex; }
  .solutions-grid { grid-template-columns: minmax(0, 1fr); }

  .process__steps { grid-template-columns: minmax(0, 1fr); gap: 22px; }
  .process__rail { top: 27px; bottom: 27px; left: 26px; right: auto; width: 2px; height: auto; }
  .process__fill { width: 100%; height: 0; }
  .step { flex-direction: row; gap: 16px; text-align: left; padding: 0; }
  .panel { grid-template-columns: minmax(0, 1fr); gap: 24px; padding: 28px; }
}

@media (max-width: 600px) {
  :root { --gutter: 16px; --section-pad: 88px; }
  .logo__sub { display: none; }
  .services-grid { grid-template-columns: minmax(0, 1fr); }
  .hero__actions { flex-direction: column; width: 100%; }
  .hero__actions .btn { width: 100%; }
  .stats { gap: 28px; }
  .stat__num { font-size: 26px; }
  .values { grid-template-columns: minmax(0, 1fr); }
  .form__row { grid-template-columns: minmax(0, 1fr); }
  .contact { padding: 28px 20px; border-radius: 22px; }
  .footer__grid { grid-template-columns: minmax(0, 1fr); }
  .section-head { margin-bottom: 48px; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation: none !important; transition: none !important; }
  .reveal { opacity: 1; transform: none; }
  .member:nth-child(even).reveal { transform: translateY(36px); }
}
