/* ═══════════════════════════════════════
   RESET & VARIABLES
═══════════════════════════════════════ */
*, *::before, *::after { margin: 0; padding: 0; box-sizing: border-box; }

/* Kill the blue tap-highlight / text-selection flash when tapping
   interactive elements (logo, links, buttons) on mobile. */
html { -webkit-tap-highlight-color: transparent; }
a, button, .nav-logo, .nav-logo-text {
  -webkit-tap-highlight-color: transparent;
  -webkit-user-select: none; user-select: none;
}

:root {
  --bg:       #060A11;
  --bg-card:  rgba(12, 18, 32, 0.72);
  --border:   rgba(255,255,255,0.08);
  --border-h: rgba(96,165,250,0.28);
  --ink:      #EFF6FF;
  --ink-soft: #8B9EC9;
  --ink-mute: #4A5578;
  --accent:   #60A5FA;
  --accent-2: #93C5FD;
  --icon-blue:   #93C5FD;
  --icon-purple: #C4B5FD;
  --r:        12px;
  --r-sm:     8px;
  --ease:     cubic-bezier(0.22, 0.61, 0.36, 1);
  --ease-out: cubic-bezier(0.16, 1, 0.3, 1);
  --card-blur: blur(20px) saturate(150%);
}

/* JS drives smooth scrolling (rAF) — keep CSS scroll-behavior off to avoid conflict. */
/* overscroll-behavior: none kills the rubber-band bounce that otherwise drags
   the fixed background and reveals a bare strip at the very top. */
html { scroll-behavior: auto; overscroll-behavior: none; background: var(--bg); }

body {
  font-family: "Inter", system-ui, -apple-system, sans-serif;
  -webkit-font-smoothing: antialiased;
  color: var(--ink);
  background: var(--bg);
  overflow-x: hidden;
  overscroll-behavior: none;
}

::-webkit-scrollbar { width: 5px; }
::-webkit-scrollbar-thumb { background: rgba(96,165,250,0.20); border-radius: 3px; }

h1, h2, h3 { font-family: "Space Grotesk", system-ui, sans-serif; letter-spacing: -0.025em; }
.mono { font-family: "JetBrains Mono", ui-monospace, monospace; }
.accent { color: var(--accent-2); }

/* ═══════════════════════════════════════
   BACKGROUND
═══════════════════════════════════════ */
.bg-mesh {
  /* Overscan only top/bottom — horizontal overscan would push the page
     wider than the viewport and cause a horizontal-scroll glitch on mobile. */
  position: fixed; top: -80px; bottom: -80px; left: 0; right: 0; z-index: 0; pointer-events: none;
  background:
    radial-gradient(ellipse 1100px 800px at 12% 5%,  rgba(59,130,246,0.05) 0%,transparent 65%),
    radial-gradient(ellipse 900px  700px at 88% 95%, rgba(139,92,246,0.045) 0%,transparent 65%);
}
/* Animated, drifting colour orbs — adds gentle "life" without stealing focus. */
#bg-canvas {
  position: fixed; inset: 0; z-index: 0; pointer-events: none;
}
.bg-grid {
  position: fixed; top: -80px; bottom: -80px; left: 0; right: 0; z-index: 0; pointer-events: none;
  background-image:
    linear-gradient(rgba(255,255,255,0.022) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255,255,255,0.022) 1px, transparent 1px);
  background-size: 64px 64px;
  mask-image: radial-gradient(ellipse 85% 85% at 50% 50%, black 30%, transparent 100%);
}

/* ═══════════════════════════════════════
   NAVIGATION
═══════════════════════════════════════ */
.nav-wrap {
  position: fixed; top: 14px; left: 50%; transform: translateX(-50%);
  z-index: 100; width: calc(100% - 48px); max-width: 1120px;
  transition: transform 0.35s var(--ease), opacity 0.35s var(--ease);
}
.nav-wrap.hidden { transform: translateX(-50%) translateY(-120%); opacity: 0; }
.nav {
  display: flex; align-items: center; justify-content: space-between;
  padding: 11px 18px;
  background: rgba(6,10,17,0.55);
  backdrop-filter: blur(20px) saturate(160%);
  -webkit-backdrop-filter: blur(20px) saturate(160%);
  border: 1px solid rgba(255,255,255,0.10); border-radius: 14px;
  box-shadow: 0 4px 24px rgba(0,0,0,0.42), 0 1px 0 rgba(255,255,255,0.06) inset;
}
.nav-logo { display: flex; align-items: center; gap: 10px; text-decoration: none; color: var(--ink); flex-shrink: 0; min-width: 0; }
.nav-logo img { height: 22px; width: auto; flex-shrink: 0; filter: brightness(0) invert(1); opacity: 0.9; }
.nav-logo-text { font-family: "Space Grotesk", sans-serif; font-size: 14px; font-weight: 700; letter-spacing: -0.04em; white-space: nowrap; }
.nav-links { display: flex; align-items: center; gap: 2px; }
.nav-link {
  font-family: "JetBrains Mono", monospace; font-size: 11px; font-weight: 500; letter-spacing: 0.04em;
  color: var(--ink-soft); text-decoration: none; padding: 6px 11px; border-radius: 8px;
  border: none; background: none; cursor: pointer;
  transition: color 0.2s, background 0.2s;
}
.nav-link:hover { color: var(--ink); background: rgba(255,255,255,0.05); }
.nav-right { display: flex; align-items: center; gap: 10px; }
.lang-btn {
  font-family: "JetBrains Mono", monospace; font-size: 11px; font-weight: 700; letter-spacing: 0.12em;
  color: var(--ink-soft); background: none;
  border: 1px solid rgba(255,255,255,0.12); border-radius: 7px;
  padding: 6px 10px; cursor: pointer;
  transition: color 0.2s, border-color 0.2s, background 0.2s;
}
.lang-btn:hover { color: var(--ink); border-color: rgba(96,165,250,0.40); background: rgba(96,165,250,0.06); }
.theme-btn {
  display: flex; align-items: center; justify-content: center;
  width: 32px; height: 30px; padding: 0;
  color: var(--ink-soft); background: none;
  border: 1px solid rgba(255,255,255,0.12); border-radius: 7px; cursor: pointer;
  transition: color 0.2s, border-color 0.2s, background 0.2s;
}
.theme-btn:hover { color: var(--ink); border-color: rgba(96,165,250,0.40); background: rgba(96,165,250,0.06); }
.theme-btn svg { width: 15px; height: 15px; stroke: currentColor; fill: none; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; }
.theme-btn .icon-moon { display: none; }
.theme-btn .icon-sun  { display: block; }
[data-theme="light"] .theme-btn .icon-sun  { display: none; }
[data-theme="light"] .theme-btn .icon-moon { display: block; }
.nav-cta {
  padding: 8px 16px;
  background: linear-gradient(135deg, #2563EB, #7C3AED);
  border: 1px solid rgba(255,255,255,0.15); border-radius: 8px;
  font-family: "JetBrains Mono", monospace; font-size: 11px; font-weight: 600; letter-spacing: 0.06em;
  color: #fff; cursor: pointer;
  box-shadow: 0 4px 16px rgba(37,99,235,0.32);
  transition: transform 0.18s, box-shadow 0.18s, background 0.2s;
}
.nav-cta:hover { background: linear-gradient(135deg,#3B82F6,#8B5CF6); box-shadow: 0 6px 22px rgba(37,99,235,0.48); transform: translateY(-1px); }
/* ── BURGER BUTTON ── */
.burger-btn {
  display: none; align-items: center; justify-content: center;
  width: 34px; height: 34px; padding: 0; flex-shrink: 0;
  background: none; border: 1px solid rgba(255,255,255,0.12); border-radius: 8px;
  cursor: pointer; color: var(--ink-soft);
  transition: background 0.2s, border-color 0.2s, color 0.2s;
}
.burger-btn:hover { background: rgba(255,255,255,0.06); border-color: rgba(96,165,250,0.38); color: var(--ink); }
.burger-btn svg { width: 17px; height: 17px; stroke: currentColor; fill: none; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; }
@media (max-width: 768px) {
  .nav-links { display: none; }
  .nav-cta { display: none; }
  .nav-wrap { width: calc(100% - 32px); top: 10px; }
  .burger-btn { display: flex; }
  .container { padding: 0 16px; }
  .hero { min-height: auto; padding: 124px 16px 64px; align-items: flex-start; }
  /* Section spacing */
  .section { padding-top: 72px; }
  .hero + .section { padding-top: 44px; }
  .cta-section { padding: 72px 0; }
  /* Typography */
  .section-sub { font-size: 14px; margin-bottom: 32px; }
  .eyebrow { margin-bottom: 12px; }
  /* Cards */
  .service-card { padding: 20px 18px; }
  .roi-card { padding: 22px 18px; }
  .roi-icon { margin-bottom: 14px; }
  .fw-card { padding: 18px 16px; }
  .step-card { padding: 18px 16px; }
  .case-card { padding: 18px 16px; }
  /* CTA form card */
  .cta-grid > div > .card { padding: 24px 18px !important; }
}
@media (max-width: 480px) {
  .hero-btns { flex-direction: column; align-items: stretch; }
  .hero-btns .btn-primary, .hero-btns .btn-secondary { justify-content: center; width: 100%; }
  /* Tighter spacing on small phones */
  .section { padding-top: 52px; }
  .hero + .section { padding-top: 28px; }
  .cta-section { padding: 52px 0; }
  .container { padding: 0 16px; }
  .section-title { font-size: 22px; margin-bottom: 10px; }
  .section-sub { font-size: 13.5px; margin-bottom: 26px; }
  .hero-sub { font-size: 14.5px; }
  .cta-title { font-size: 24px; }
  .cta-sub { font-size: 14px; margin-bottom: 22px; }
  /* Card padding on small screens */
  .service-card, .roi-card, .fw-card, .step-card, .case-card { padding: 16px 14px; }
  .cta-grid > div > .card { padding: 20px 14px !important; }
}

/* ── MOBILE MENU ── */
.mobile-menu {
  position: fixed; inset: 0; z-index: 98;
  opacity: 0; pointer-events: none;
  transition: opacity 0.25s var(--ease);
}
.mobile-menu.open { opacity: 1; pointer-events: auto; }
.mobile-menu-bg {
  position: absolute; inset: 0;
  background: rgba(4,7,14,0.78);
  backdrop-filter: blur(8px); -webkit-backdrop-filter: blur(8px);
}
.mobile-menu-panel {
  position: absolute; top: 0; left: 0; right: 0;
  background: rgba(6,10,17,0.97);
  border-bottom: 1px solid rgba(255,255,255,0.10);
  box-shadow: 0 16px 48px rgba(0,0,0,0.55);
  padding: 70px 20px 28px;
  transform: translateY(-20px);
  transition: transform 0.32s var(--ease);
}
.mobile-menu.open .mobile-menu-panel { transform: translateY(0); }
.mobile-nav-links { display: flex; flex-direction: column; gap: 2px; }
.mobile-nav-link {
  font-family: "JetBrains Mono", monospace; font-size: 14px; font-weight: 500;
  letter-spacing: 0.04em; color: var(--ink-soft); text-decoration: none;
  padding: 14px 16px; border-radius: 9px; display: block;
  transition: color 0.18s, background 0.18s;
}
.mobile-nav-link:hover, .mobile-nav-link:active { color: var(--ink); background: rgba(255,255,255,0.05); }
.mobile-menu-sep { height: 1px; background: rgba(255,255,255,0.08); margin: 14px 0; }
.mobile-menu-cta {
  display: block; width: 100%; padding: 15px;
  background: linear-gradient(135deg, #2563EB, #7C3AED);
  border: 1px solid rgba(255,255,255,0.15); border-radius: 10px;
  font-family: "JetBrains Mono", monospace; font-size: 12px; font-weight: 700;
  letter-spacing: 0.08em; text-transform: uppercase; color: #fff; cursor: pointer;
  box-shadow: 0 6px 22px rgba(37,99,235,0.30); text-align: center;
  transition: background 0.2s, box-shadow 0.2s;
}
.mobile-menu-cta:hover { background: linear-gradient(135deg,#3B82F6,#8B5CF6); box-shadow: 0 8px 30px rgba(37,99,235,0.50); }
[data-theme="light"] .mobile-menu-bg { background: rgba(15,23,42,0.38); }
[data-theme="light"] .mobile-menu-panel {
  background: rgba(255,255,255,0.98);
  border-bottom-color: rgba(15,23,42,0.10);
  box-shadow: 0 16px 48px rgba(15,23,42,0.12);
}
[data-theme="light"] .mobile-nav-link:hover { background: rgba(15,23,42,0.05); }
[data-theme="light"] .mobile-menu-sep { background: rgba(15,23,42,0.08); }
[data-theme="light"] .burger-btn { border-color: rgba(15,23,42,0.14); }
[data-theme="light"] .burger-btn:hover { background: rgba(15,23,42,0.05); border-color: rgba(37,99,235,0.40); }
.mobile-lang-btn {
  display: block; width: 100%; padding: 12px; margin-top: 8px;
  background: none; border: 1px solid rgba(255,255,255,0.10); border-radius: 10px;
  font-family: "JetBrains Mono", monospace; font-size: 11px; font-weight: 700;
  letter-spacing: 0.12em; text-transform: uppercase;
  color: var(--ink-soft); cursor: pointer; text-align: center;
  transition: background 0.2s, color 0.2s, border-color 0.2s;
}
.mobile-lang-btn:hover, .mobile-lang-btn:active { background: rgba(96,165,250,0.08); border-color: rgba(96,165,250,0.28); color: var(--ink); }
[data-theme="light"] .mobile-lang-btn { border-color: rgba(15,23,42,0.10); }
[data-theme="light"] .mobile-lang-btn:hover { background: rgba(37,99,235,0.05); border-color: rgba(37,99,235,0.30); }

/* ═══════════════════════════════════════
   SCROLL ANIMATIONS  (smooth reveal)
═══════════════════════════════════════ */
/* The whole section content block reveals as one unit … */
.reveal {
  opacity: 0;
  transform: translate3d(0, 40px, 0);
  transition: opacity 0.75s var(--ease-out), transform 0.75s var(--ease-out);
}
.reveal.in-view { opacity: 1; transform: translate3d(0, 0, 0); }

/* … and the items inside it stagger in gently. */
.reveal .reveal-child {
  opacity: 0;
  transform: translate3d(0, 26px, 0);
  transition: opacity 0.6s var(--ease-out), transform 0.6s var(--ease-out);
}
.reveal.in-view .reveal-child { opacity: 1; transform: translate3d(0, 0, 0); }
.reveal.in-view .reveal-child:nth-child(1)  { transition-delay: 0.04s; }
.reveal.in-view .reveal-child:nth-child(2)  { transition-delay: 0.08s; }
.reveal.in-view .reveal-child:nth-child(3)  { transition-delay: 0.12s; }
.reveal.in-view .reveal-child:nth-child(4)  { transition-delay: 0.16s; }
.reveal.in-view .reveal-child:nth-child(5)  { transition-delay: 0.20s; }
.reveal.in-view .reveal-child:nth-child(6)  { transition-delay: 0.24s; }
.reveal.in-view .reveal-child:nth-child(7)  { transition-delay: 0.28s; }
.reveal.in-view .reveal-child:nth-child(8)  { transition-delay: 0.32s; }
.reveal.in-view .reveal-child:nth-child(9)  { transition-delay: 0.36s; }
.reveal.in-view .reveal-child:nth-child(10) { transition-delay: 0.40s; }
.reveal.in-view .reveal-child:nth-child(11) { transition-delay: 0.44s; }
.reveal.in-view .reveal-child:nth-child(12) { transition-delay: 0.48s; }

@media (prefers-reduced-motion: reduce) {
  .reveal, .reveal .reveal-child {
    opacity: 1 !important; transform: none !important; transition: none !important;
  }
}

/* ═══════════════════════════════════════
   LAYOUT
═══════════════════════════════════════ */
.container { width: 100%; max-width: 1120px; margin: 0 auto; padding: 0 24px; }
.section { position: relative; z-index: 1; padding: 150px 0 0; }
/* Tighten the gap between the hero and the first section. */
.hero + .section { padding-top: 64px; }

.eyebrow {
  display: inline-flex; align-items: center; gap: 10px;
  font-family: "JetBrains Mono", monospace; font-size: 11px; font-weight: 600;
  letter-spacing: 0.22em; text-transform: uppercase; color: var(--ink-mute);
  margin-bottom: 18px;
}
.eyebrow::before { content: ""; display: block; width: 22px; height: 1px; background: var(--ink-mute); }
.section-title { font-size: clamp(24px, 3vw, 36px); font-weight: 700; line-height: 1.2; margin-bottom: 14px; }
.section-sub { font-size: 15px; line-height: 1.75; color: var(--ink-soft); max-width: 600px; margin-bottom: 44px; }

/* ═══════════════════════════════════════
   GLASS CARD
═══════════════════════════════════════ */
.card {
  background: var(--bg-card);
  backdrop-filter: var(--card-blur);
  -webkit-backdrop-filter: var(--card-blur);
  border: 1px solid var(--border); border-radius: var(--r);
  box-shadow: 0 10px 36px rgba(0,0,0,0.32), 0 1px 0 rgba(255,255,255,0.05) inset;
  transition: border-color 0.25s, box-shadow 0.25s, transform 0.25s;
}
.card:hover {
  border-color: var(--border-h);
  box-shadow: 0 18px 52px rgba(0,0,0,0.50), 0 0 28px rgba(96,165,250,0.06);
  transform: translateY(-4px);
}

/* ═══════════════════════════════════════
   BUTTONS
═══════════════════════════════════════ */
.btn-primary, .btn-secondary {
  display: inline-flex; align-items: center; gap: 10px; padding: 13px 26px;
  border-radius: 10px; cursor: pointer;
  font-family: "JetBrains Mono", monospace; font-size: 12px; font-weight: 600;
  letter-spacing: 0.06em; text-transform: uppercase;
  transition: transform 0.18s, box-shadow 0.18s, background 0.2s, border-color 0.2s;
}
.btn-primary {
  background: linear-gradient(135deg, #2B6FFF, #9350FF); color: #fff;
  border: 1px solid rgba(255,255,255,0.15);
  box-shadow: 0 6px 26px rgba(100,60,220,0.42), 0 1px 0 rgba(255,255,255,0.14) inset;
}
.btn-primary:hover { transform: translateY(-2px); box-shadow: 0 10px 34px rgba(100,60,220,0.60); }
.btn-primary:active { transform: translateY(0); }
.btn-secondary {
  background: rgba(139,92,246,0.10); color: var(--ink);
  border: 1px solid rgba(139,92,246,0.28);
  box-shadow: 0 4px 16px rgba(0,0,0,0.28);
}
.btn-secondary:hover { transform: translateY(-2px); background: rgba(139,92,246,0.20); border-color: rgba(139,92,246,0.50); }
.btn-secondary:active { transform: translateY(0); }

/* ═══════════════════════════════════════
   HERO
═══════════════════════════════════════ */
.hero {
  position: relative; z-index: 1; overflow: hidden;
  min-height: 100vh; display: flex; align-items: center; justify-content: center;
  padding: 120px 24px 40px; text-align: center;
}
.hero-orb-1 { position: absolute; width: 550px; height: 550px; top: -8%; left: -4%; border-radius: 50%; background: rgba(37,99,235,0.08); filter: blur(80px); pointer-events: none; }
.hero-orb-2 { position: absolute; width: 450px; height: 450px; bottom: -4%; right: -4%; border-radius: 50%; background: rgba(139,92,246,0.07); filter: blur(80px); pointer-events: none; }
.hero-content { max-width: 840px; width: 100%; }
.hero-eyebrow {
  display: inline-flex; align-items: center; gap: 8px;
  font-family: "JetBrains Mono", monospace; font-size: 11px; font-weight: 600;
  letter-spacing: 0.22em; text-transform: uppercase; color: var(--ink-mute);
  margin-bottom: 26px; opacity: 0; animation: fadeUp 0.7s var(--ease) 0.1s forwards;
}
.hero-dot { width: 5px; height: 5px; border-radius: 50%; background: var(--accent); box-shadow: 0 0 8px rgba(96,165,250,0.8); animation: pulse 2s infinite; }
.hero-h1 {
  font-size: clamp(30px, 4.5vw, 56px); font-weight: 700; line-height: 1.15; letter-spacing: -0.035em;
  margin-bottom: 22px; opacity: 0; animation: fadeUp 0.7s var(--ease) 0.22s forwards;
}
.hero-dim { color: rgba(239,246,255,0.48); }
.hero-sub {
  font-size: 16px; line-height: 1.75; color: var(--ink-soft);
  max-width: 560px; margin: 0 auto 38px;
  opacity: 0; animation: fadeUp 0.7s var(--ease) 0.34s forwards;
}
.hero-btns { display: flex; gap: 12px; justify-content: center; flex-wrap: wrap; opacity: 0; animation: fadeUp 0.7s var(--ease) 0.46s forwards; }

@keyframes fadeUp { from { opacity: 0; transform: translateY(32px); } to { opacity: 1; transform: translateY(0); } }
@keyframes pulse  { 0%,100% { opacity: 1; } 50% { opacity: 0.35; } }

/* ═══════════════════════════════════════
   SERVICES
═══════════════════════════════════════ */
.services-grid { display: grid; grid-template-columns: repeat(3,1fr); gap: 14px; }
@media (max-width: 1024px) { .services-grid { grid-template-columns: repeat(2,1fr); } }
@media (max-width: 640px)  { .services-grid { grid-template-columns: 1fr; } }
.service-card { padding: 26px 22px; display: flex; flex-direction: column; gap: 12px; }
.svc-icon {
  width: 42px; height: 42px; border-radius: 10px; flex-shrink: 0;
  background: linear-gradient(135deg, rgba(37,99,235,0.18), rgba(139,92,246,0.12));
  border: 1px solid rgba(96,165,250,0.16);
  display: flex; align-items: center; justify-content: center; color: var(--icon-blue);
}
.svc-icon svg { width: 19px; height: 19px; stroke: currentColor; fill: none; stroke-width: 1.6; stroke-linecap: round; stroke-linejoin: round; }
.svc-name { font-size: 15px; font-weight: 700; letter-spacing: -0.02em; }
.svc-desc { font-size: 13px; color: var(--ink-soft); line-height: 1.7; flex: 1; }
.svc-more {
  display: inline-flex; align-items: center; gap: 6px;
  font-family: "JetBrains Mono", monospace; font-size: 10.5px; font-weight: 600;
  letter-spacing: 0.12em; text-transform: uppercase; color: var(--ink-mute);
  background: none; border: none; padding: 0; cursor: pointer; transition: color 0.2s;
}
.svc-more:hover { color: var(--accent); }
.svc-more .arrow { display: inline-block; transition: transform 0.2s; }
.svc-more:hover .arrow { transform: translateX(3px); }

/* ═══════════════════════════════════════
   ROI
═══════════════════════════════════════ */
.roi-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; }
@media (max-width: 640px) { .roi-grid { grid-template-columns: 1fr; } }
.roi-card { padding: 30px 26px; }
.roi-icon {
  width: 44px; height: 44px; border-radius: 10px;
  display: flex; align-items: center; justify-content: center; margin-bottom: 18px;
}
.roi-icon svg { width: 21px; height: 21px; stroke: currentColor; fill: none; stroke-width: 1.6; stroke-linecap: round; stroke-linejoin: round; }
.roi-title { font-size: 16px; font-weight: 700; letter-spacing: -0.02em; margin-bottom: 10px; line-height: 1.3; }
.roi-desc { font-size: 13.5px; color: var(--ink-soft); line-height: 1.72; }
.roi-badge {
  display: inline-flex; align-items: center; gap: 6px;
  margin-top: 18px; padding: 5px 11px; border-radius: 4px;
  font-family: "JetBrains Mono", monospace; font-size: 10px; font-weight: 600;
  letter-spacing: 0.12em; text-transform: uppercase;
}
.roi-badge svg { width: 9px; height: 9px; }

/* ═══════════════════════════════════════
   PRACTICAL CASES
═══════════════════════════════════════ */
.cases-grid { display: grid; grid-template-columns: repeat(3,1fr); gap: 14px; }
@media (max-width: 1024px) { .cases-grid { grid-template-columns: repeat(2,1fr); } }
@media (max-width: 560px)  { .cases-grid { grid-template-columns: 1fr; } }
.case-card { padding: 22px 20px; display: flex; flex-direction: column; gap: 11px; }
.case-top { display: flex; align-items: center; gap: 12px; }
.case-icon {
  width: 38px; height: 38px; border-radius: 9px; flex-shrink: 0;
  background: rgba(96,165,250,0.08); border: 1px solid rgba(96,165,250,0.16);
  display: flex; align-items: center; justify-content: center; color: var(--accent-2);
}
.case-icon svg { width: 18px; height: 18px; stroke: currentColor; fill: none; stroke-width: 1.6; stroke-linecap: round; stroke-linejoin: round; }
.case-name { font-size: 14px; font-weight: 700; letter-spacing: -0.02em; line-height: 1.3; }
.case-desc { font-size: 12.5px; color: var(--ink-soft); line-height: 1.65; }
.cases-note {
  margin-top: 34px; text-align: center;
  font-size: 13.5px; color: var(--ink-soft); line-height: 1.7;
}

/* ═══════════════════════════════════════
   FOR WHOM
═══════════════════════════════════════ */
.forwhom-grid { display: grid; grid-template-columns: repeat(2,1fr); gap: 14px; }
@media (max-width: 640px) { .forwhom-grid { grid-template-columns: 1fr; } }
.fw-card { padding: 24px 22px; display: flex; flex-direction: column; gap: 11px; }
.fw-icon {
  width: 40px; height: 40px; border-radius: 10px;
  background: rgba(96,165,250,0.08); border: 1px solid rgba(96,165,250,0.14);
  display: flex; align-items: center; justify-content: center; color: var(--accent);
}
.fw-icon svg { width: 17px; height: 17px; stroke: currentColor; fill: none; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; }
.fw-label { font-size: 14px; font-weight: 600; line-height: 1.4; letter-spacing: -0.01em; }
.fw-desc { font-size: 13px; color: var(--ink-soft); line-height: 1.65; }

/* ═══════════════════════════════════════
   HOW WE WORK
═══════════════════════════════════════ */
.how-grid { display: grid; grid-template-columns: repeat(5,1fr); gap: 12px; }
@media (max-width: 1024px) { .how-grid { grid-template-columns: repeat(3,1fr); } }
@media (max-width: 640px)  { .how-grid { grid-template-columns: 1fr; } }
.step-card { padding: 22px 18px; display: flex; flex-direction: column; gap: 10px; }
.step-num {
  width: 34px; height: 34px; border-radius: 50%;
  background: linear-gradient(135deg, #1E3A6E, #2563EB);
  border: 1px solid rgba(96,165,250,0.32);
  display: flex; align-items: center; justify-content: center;
  font-family: "JetBrains Mono", monospace; font-size: 11.5px; font-weight: 700;
  box-shadow: 0 0 0 4px var(--bg), 0 4px 12px rgba(37,99,235,0.24);
}
.step-icon { width: 26px; height: 26px; color: rgba(200,218,255,0.75); }
.step-icon svg { width: 100%; height: 100%; stroke: currentColor; fill: none; stroke-width: 1.6; stroke-linecap: round; stroke-linejoin: round; }
.step-title { font-size: 14px; font-weight: 700; letter-spacing: -0.02em; }
.step-desc { font-size: 12.5px; color: var(--ink-soft); line-height: 1.65; flex: 1; }
.step-meta {
  font-family: "JetBrains Mono", monospace; font-size: 10px; font-weight: 600;
  letter-spacing: 0.18em; text-transform: uppercase; color: var(--ink-mute);
  padding-top: 10px; border-top: 1px dashed rgba(255,255,255,0.07); margin-top: auto;
}

/* ═══════════════════════════════════════
   CTA / CONTACT
═══════════════════════════════════════ */
.cta-section { position: relative; z-index: 1; padding: 160px 0; }
.cta-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 72px; align-items: start; }
@media (max-width: 768px) { .cta-grid { grid-template-columns: 1fr; gap: 48px; } }
.cta-title { font-size: clamp(26px, 3vw, 40px); font-weight: 700; letter-spacing: -0.03em; line-height: 1.15; margin-bottom: 18px; }
.cta-sub { font-size: 15px; color: var(--ink-soft); line-height: 1.75; margin-bottom: 30px; }
.social-row { display: flex; gap: 11px; flex-wrap: wrap; }
.social-btn {
  width: 48px; height: 48px; border-radius: 12px;
  border: 1px solid rgba(96,165,250,0.32);
  background: rgba(96,165,250,0.10); color: var(--accent-2);
  display: flex; align-items: center; justify-content: center;
  text-decoration: none; cursor: pointer;
  box-shadow: 0 4px 14px rgba(0,0,0,0.22);
  transition: transform 0.18s var(--ease), background 0.2s, border-color 0.2s, color 0.2s, box-shadow 0.2s;
}
.social-btn svg { width: 22px; height: 22px; }
.social-btn:hover { transform: translateY(-2px); background: rgba(96,165,250,0.20); border-color: rgba(96,165,250,0.55); color: #fff; box-shadow: 0 8px 22px rgba(37,99,235,0.28); }
.social-btn:active { transform: translateY(0); }

/* ═══════════════════════════════════════
   FORM
═══════════════════════════════════════ */
.form-group { margin-bottom: 14px; }
.form-label {
  display: block; font-family: "JetBrains Mono", monospace; font-size: 10px; font-weight: 600;
  letter-spacing: 0.16em; text-transform: uppercase; color: var(--ink-mute); margin-bottom: 6px;
}
.req { color: rgba(96,165,250,0.6); }
.form-input, .form-textarea {
  width: 100%; background: rgba(10,16,30,0.80);
  border: 1px solid rgba(255,255,255,0.08); border-radius: var(--r-sm);
  padding: 10px 13px; font-size: 14px; font-family: "Inter", system-ui, sans-serif;
  color: var(--ink); outline: none;
  transition: border-color 0.2s, box-shadow 0.2s;
  -webkit-appearance: none;
}
.form-input::placeholder, .form-textarea::placeholder { color: var(--ink-mute); }
.form-input:focus, .form-textarea:focus { border-color: rgba(96,165,250,0.38); box-shadow: 0 0 0 3px rgba(96,165,250,0.07); }
.form-input.err { border-color: rgba(239,68,68,0.50); }
.form-textarea { resize: vertical; min-height: 86px; }
.form-err { font-size: 11px; color: #F87171; margin-top: 4px; }
.form-submit {
  width: 100%; padding: 13px; margin-top: 6px;
  background: linear-gradient(135deg, #2B6FFF, #9350FF); color: #fff;
  border: 1px solid rgba(255,255,255,0.15); border-radius: 10px;
  font-family: "JetBrains Mono", monospace; font-size: 12px; font-weight: 700;
  letter-spacing: 0.08em; text-transform: uppercase; cursor: pointer;
  box-shadow: 0 6px 26px rgba(100,60,220,0.40);
  transition: transform 0.18s, box-shadow 0.18s, background 0.2s;
}
.form-submit:hover { transform: translateY(-1px); box-shadow: 0 10px 32px rgba(100,60,220,0.58); }
.form-submit:active { transform: translateY(0); }
.form-submit:disabled { opacity: 0.55; cursor: not-allowed; transform: none; }
.success-state { text-align: center; padding: 28px 16px; }
.success-icon {
  width: 54px; height: 54px; border-radius: 50%; margin: 0 auto 18px;
  background: linear-gradient(135deg, rgba(37,99,235,0.22), rgba(139,92,246,0.18));
  border: 1px solid rgba(96,165,250,0.32);
  display: flex; align-items: center; justify-content: center;
  color: var(--icon-blue); font-size: 22px; box-shadow: 0 0 26px rgba(96,165,250,0.12);
}
.success-title { font-family: "Space Grotesk", sans-serif; font-size: 19px; font-weight: 700; margin-bottom: 8px; }
.success-text { font-size: 14px; color: var(--ink-soft); line-height: 1.65; }

/* ═══════════════════════════════════════
   FOOTER + FAB
═══════════════════════════════════════ */
.site-footer {
  position: relative; z-index: 1; text-align: center; padding: 28px 24px;
  font-family: "JetBrains Mono", monospace; font-size: 10.5px;
  letter-spacing: 0.14em; text-transform: uppercase; color: var(--ink-mute);
}
.fab {
  position: fixed; right: 24px; z-index: 200;
  width: 50px; height: 50px; border-radius: 12px;
  background: rgba(8,14,28,0.88); border: 1px solid rgba(96,165,250,0.20); color: var(--ink);
  display: flex; align-items: center; justify-content: center;
  cursor: pointer; box-shadow: 0 8px 22px rgba(0,0,0,0.46); backdrop-filter: blur(12px);
  transition: background 0.2s, border-color 0.2s, transform 0.15s, box-shadow 0.2s;
}
.fab:hover { background: rgba(37,99,235,0.18); border-color: rgba(96,165,250,0.42); transform: translateY(-2px); box-shadow: 0 8px 28px rgba(37,99,235,0.26); }
.fab:active { transform: translateY(0); }
.fab svg { width: 19px; height: 19px; stroke: currentColor; fill: none; stroke-width: 1.7; stroke-linecap: round; stroke-linejoin: round; }
.fab-form { bottom: 84px; }
.fab-chat { bottom: 24px; }
@media (max-width: 640px) { .fab { right: 14px; width: 44px; height: 44px; } .fab-form { bottom: 78px; } .fab-chat { bottom: 20px; } }

/* ═══════════════════════════════════════
   MODAL
═══════════════════════════════════════ */
.modal-overlay {
  position: fixed; inset: 0; z-index: 300;
  background: rgba(4,7,14,0.82); backdrop-filter: blur(10px); -webkit-backdrop-filter: blur(10px);
  display: flex; align-items: center; justify-content: center; padding: 24px 16px;
  opacity: 0; pointer-events: none;
  transition: opacity 0.25s var(--ease);
}
.modal-overlay.open { opacity: 1; pointer-events: auto; }
.modal-box {
  width: 100%; max-width: 500px;
  background: rgba(9,14,28,0.97); border: 1px solid rgba(255,255,255,0.11); border-radius: 14px;
  box-shadow: 0 32px 80px rgba(0,0,0,0.66), 0 1px 0 rgba(255,255,255,0.07) inset;
  padding: 34px 34px 30px; position: relative;
  transform: translateY(20px) scale(0.96);
  transition: transform 0.30s var(--ease);
}
.modal-overlay.open .modal-box { transform: translateY(0) scale(1); }
@media (max-width: 560px) {
  .modal-overlay { align-items: flex-start; overflow-y: auto; padding: 16px; }
  .modal-box { padding: 22px 16px 18px; margin: auto; max-height: none; }
}
.modal-close {
  position: absolute; top: 14px; right: 14px; width: 28px; height: 28px;
  background: rgba(255,255,255,0.05); border: 1px solid rgba(255,255,255,0.10); border-radius: 6px;
  cursor: pointer; display: flex; align-items: center; justify-content: center;
  color: var(--ink-mute); font-size: 13px; line-height: 1;
  transition: background 0.2s, color 0.2s;
}
.modal-close:hover { background: rgba(255,255,255,0.09); color: var(--ink); }
.modal-eyebrow {
  font-family: "JetBrains Mono", monospace; font-size: 10px; font-weight: 600;
  letter-spacing: 0.22em; text-transform: uppercase; color: var(--ink-mute);
  margin-bottom: 12px; display: flex; align-items: center; gap: 8px;
}
.modal-eyebrow::before { content: ""; display: block; width: 18px; height: 1px; background: var(--ink-mute); }
.modal-title { font-size: clamp(19px, 3vw, 24px); font-weight: 700; letter-spacing: -0.025em; margin-bottom: 7px; }
.modal-sub { font-size: 13px; color: var(--ink-soft); line-height: 1.65; margin-bottom: 24px; }

/* ═══════════════════════════════════════
   CHAT
═══════════════════════════════════════ */
.chat-box {
  width: 100%; max-width: min(840px, 90vw);
  background: rgba(9,14,28,0.97); border: 1px solid rgba(255,255,255,0.11); border-radius: 14px;
  box-shadow: 0 32px 80px rgba(0,0,0,0.66); overflow: hidden; position: relative;
  transform: translateY(20px) scale(0.96);
  transition: transform 0.30s var(--ease);
}
.modal-overlay.open .chat-box { transform: translateY(0) scale(1); }
@media (max-width: 640px) {
  .chat-box { max-width: 100%; }
  .chat-body { max-height: min(300px, 38vh); min-height: 120px; }
}
.chat-head {
  display: flex; align-items: center; gap: 13px; padding: 14px 18px;
  border-bottom: 1px solid rgba(255,255,255,0.06);
  background: linear-gradient(180deg, rgba(12,18,32,0.70), transparent);
}
.chat-avatar {
  width: 38px; height: 38px; border-radius: 8px; flex-shrink: 0;
  background: linear-gradient(135deg, #1E3A5F, #2D4F8A);
  border: 1px solid rgba(96,165,250,0.18); box-shadow: 0 0 14px rgba(37,99,235,0.22);
  position: relative; display: flex; align-items: center; justify-content: center;
}
.chat-avatar::before {
  content: ""; position: absolute; width: 14px; height: 14px;
  border: 1.5px solid rgba(139,92,246,0.75); border-radius: 3px; transform: rotate(45deg);
}
.chat-avatar::after {
  content: ""; position: absolute; width: 4px; height: 4px;
  background: #A78BFA; border-radius: 1px; transform: rotate(45deg);
  box-shadow: 0 0 7px rgba(167,139,250,0.9);
}
.chat-name-row { font-size: 14px; font-weight: 600; display: flex; align-items: center; gap: 7px; }
.ai-badge {
  font-size: 9px; font-weight: 600; letter-spacing: 0.08em; text-transform: uppercase;
  padding: 2px 7px; border-radius: 3px;
  background: rgba(160,190,255,0.12); border: 1px solid rgba(160,190,255,0.18); color: var(--ink-soft);
}
.chat-status { font-size: 11.5px; color: var(--ink-mute); margin-top: 2px; display: flex; align-items: center; gap: 5px; }
.status-dot { width: 5px; height: 5px; border-radius: 50%; background: #2ecc71; box-shadow: 0 0 7px rgba(46,204,113,0.6); animation: pulse 2s infinite; }
.chat-body {
  padding: 18px 18px 6px; max-height: 380px; min-height: 180px;
  overflow-y: auto; scroll-behavior: smooth;
}
.chat-body::-webkit-scrollbar { width: 4px; }
.chat-body::-webkit-scrollbar-thumb { background: rgba(255,255,255,0.10); border-radius: 2px; }
.msg { display: flex; margin-bottom: 10px; animation: fadeUp 0.28s var(--ease); }
.msg.bot { justify-content: flex-start; }
.msg.user { justify-content: flex-end; }
.bubble { max-width: 80%; padding: 10px 14px; border-radius: 8px; font-size: 13.5px; line-height: 1.65; white-space: pre-wrap; word-wrap: break-word; }
.msg.bot .bubble { background: rgba(10,16,36,0.95); border: 1px solid rgba(255,255,255,0.08); border-top-left-radius: 2px; }
.msg.user .bubble { background: linear-gradient(135deg, #2563EB, #3B82F6); color: #EFF6FF; border-top-right-radius: 2px; }
.typing-wrap { display: inline-flex; align-items: center; gap: 4px; padding: 12px 14px; }
.typing-wrap span { width: 6px; height: 6px; background: var(--ink-mute); border-radius: 50%; opacity: 0.4; animation: bounce 1.4s infinite ease-in-out; }
.typing-wrap span:nth-child(2) { animation-delay: 0.18s; }
.typing-wrap span:nth-child(3) { animation-delay: 0.36s; }
@keyframes bounce { 0%,60%,100% { transform: translateY(0); opacity: 0.4; } 30% { transform: translateY(-5px); opacity: 1; } }
.chat-chips { display: flex; flex-wrap: wrap; gap: 6px; padding: 7px 18px 12px; border-top: 1px dashed rgba(255,255,255,0.07); }
.chip {
  padding: 6px 12px; background: rgba(12,18,32,0.80); border: 1px solid rgba(255,255,255,0.08);
  border-radius: 5px; font-family: "JetBrains Mono", monospace; font-size: 11px; letter-spacing: 0.01em;
  color: var(--ink-soft); cursor: pointer; transition: all 0.18s;
}
.chip::before { content: "> "; opacity: 0.32; }
.chip:hover { background: rgba(96,165,250,0.10); border-color: rgba(96,165,250,0.26); color: var(--ink); }
.chat-input-row {
  display: flex; align-items: flex-end; gap: 8px; padding: 10px 14px 14px;
  border-top: 1px solid rgba(255,255,255,0.06);
  background: linear-gradient(0, rgba(9,14,28,0.60), transparent);
}
.chat-text {
  flex: 1; background: rgba(10,16,30,0.80); border: 1px solid rgba(255,255,255,0.08); border-radius: 7px;
  padding: 10px 13px; font-size: 13.5px; font-family: "Inter", sans-serif; line-height: 1.45;
  color: var(--ink); outline: none; transition: border-color 0.2s;
  resize: none; overflow-y: auto; min-height: 40px; max-height: 132px;
  scrollbar-width: none; /* Firefox — приховуємо смужку скролу */
}
.chat-text::-webkit-scrollbar { width: 0; height: 0; display: none; } /* WebKit/Blink */
.chat-text::placeholder { color: var(--ink-mute); }
.chat-text:focus { border-color: rgba(96,165,250,0.32); }
.chat-text:disabled { opacity: 0.55; cursor: not-allowed; }
.send-btn {
  width: 40px; height: 40px; border: 1px solid rgba(96,165,250,0.40); border-radius: 7px;
  background: rgba(37,99,235,0.20); color: var(--ink); cursor: pointer;
  display: flex; align-items: center; justify-content: center; flex-shrink: 0; font-size: 15px;
  transition: background 0.2s;
}
.send-btn:hover { background: rgba(37,99,235,0.38); }
.send-btn:disabled { opacity: 0.5; cursor: not-allowed; background: rgba(37,99,235,0.12); }

/* ═══════════════════════════════════════
   LIGHT THEME
═══════════════════════════════════════ */
[data-theme="light"] {
  --bg:       #F7F9FC;
  --bg-card:  rgba(255,255,255,0.78);
  --border:   rgba(15,23,42,0.10);
  --border-h: rgba(37,99,235,0.34);
  --ink:      #0F1B33;
  --ink-soft: #4A5878;
  --ink-mute: #8492AE;
  --accent:   #2563EB;
  --accent-2: #2563EB;
  --icon-blue:   #2563EB;
  --icon-purple: #7C3AED;
}
[data-theme="light"] .bg-grid {
  background-image:
    linear-gradient(rgba(15,23,42,0.06) 1px, transparent 1px),
    linear-gradient(90deg, rgba(15,23,42,0.06) 1px, transparent 1px);
}
[data-theme="light"] .nav {
  background: rgba(255,255,255,0.85);
  border-color: rgba(15,23,42,0.10);
  box-shadow: 0 4px 24px rgba(15,23,42,0.10), 0 1px 0 rgba(255,255,255,0.85) inset;
}
[data-theme="light"] .nav-logo img { filter: none; }
[data-theme="light"] .nav-link:hover { background: rgba(15,23,42,0.05); }
[data-theme="light"] .lang-btn,
[data-theme="light"] .theme-btn { border-color: rgba(15,23,42,0.14); }
[data-theme="light"] .lang-btn:hover,
[data-theme="light"] .theme-btn:hover { background: rgba(37,99,235,0.06); border-color: rgba(37,99,235,0.40); }
[data-theme="light"] .card {
  box-shadow: 0 10px 30px rgba(15,23,42,0.08), 0 1px 0 rgba(255,255,255,0.9) inset;
}
[data-theme="light"] .card:hover {
  box-shadow: 0 18px 44px rgba(15,23,42,0.12), 0 0 28px rgba(37,99,235,0.08);
}
[data-theme="light"] .hero-dim { color: rgba(15,27,51,0.42); }
/* In light theme the dark navy step badge/icons read as "too dark" — brighten them. */
[data-theme="light"] .step-icon { color: var(--accent); }
[data-theme="light"] .step-num {
  background: linear-gradient(135deg, #60A5FA, #2563EB);
  border-color: rgba(37,99,235,0.28);
  color: #fff;
  box-shadow: 0 0 0 4px var(--bg), 0 4px 12px rgba(37,99,235,0.22);
}
[data-theme="light"] .step-meta { border-top-color: rgba(15,23,42,0.09); }
[data-theme="light"] .btn-secondary { box-shadow: 0 4px 16px rgba(15,23,42,0.08); }
[data-theme="light"] .form-input,
[data-theme="light"] .form-textarea,
[data-theme="light"] .chat-text { background: #FFFFFF; border-color: rgba(15,23,42,0.12); }
[data-theme="light"] .fab { background: rgba(255,255,255,0.92); box-shadow: 0 8px 22px rgba(15,23,42,0.12); }
[data-theme="light"] .modal-overlay { background: rgba(15,23,42,0.40); }
[data-theme="light"] .modal-box,
[data-theme="light"] .chat-box {
  background: #FFFFFF; border-color: rgba(15,23,42,0.12);
  box-shadow: 0 32px 80px rgba(15,23,42,0.18), 0 1px 0 rgba(255,255,255,0.9) inset;
}
[data-theme="light"] .modal-close { background: rgba(15,23,42,0.05); border-color: rgba(15,23,42,0.10); }
[data-theme="light"] .modal-close:hover { background: rgba(15,23,42,0.09); }
[data-theme="light"] .chat-head {
  border-bottom-color: rgba(15,23,42,0.07);
  background: linear-gradient(180deg, rgba(238,242,248,0.7), transparent);
}
[data-theme="light"] .chat-body::-webkit-scrollbar-thumb { background: rgba(15,23,42,0.16); }
[data-theme="light"] .msg.bot .bubble { background: #EEF2F8; border-color: rgba(15,23,42,0.08); }
[data-theme="light"] .chat-chips { border-top-color: rgba(15,23,42,0.07); }
[data-theme="light"] .chip { background: #EEF2F8; border-color: rgba(15,23,42,0.10); }
[data-theme="light"] .chat-input-row {
  border-top-color: rgba(15,23,42,0.07);
  background: linear-gradient(0deg, rgba(255,255,255,0.6), transparent);
}
[data-theme="light"] .social-btn { background: rgba(37,99,235,0.08); border-color: rgba(37,99,235,0.28); box-shadow: 0 4px 12px rgba(15,23,42,0.10); }
[data-theme="light"] .social-btn:hover { background: rgba(37,99,235,0.16); border-color: rgba(37,99,235,0.50); color: #fff; }

/* ═══════════════════════════════════════
   TOUCH DEVICES — kill sticky :hover
   On touch screens :hover stays applied after a tap, leaving buttons
   looking "lifted"/active. Neutralise the hover lift where there is no
   real pointer so the element returns to its resting state.
═══════════════════════════════════════ */
@media (hover: none), (pointer: coarse) {
  /* Primary / form buttons — return to resting elevation + shadow */
  .btn-primary:hover {
    transform: none;
    box-shadow: 0 6px 26px rgba(100,60,220,0.42), 0 1px 0 rgba(255,255,255,0.14) inset;
  }
  .form-submit:hover { transform: none; box-shadow: 0 6px 26px rgba(100,60,220,0.40); }
  .btn-secondary:hover {
    transform: none;
    background: rgba(139,92,246,0.10);
    border-color: rgba(139,92,246,0.28);
  }
  .nav-cta:hover { transform: none; background: linear-gradient(135deg, #2563EB, #7C3AED); box-shadow: 0 4px 16px rgba(37,99,235,0.32); }
  .mobile-menu-cta:hover { background: linear-gradient(135deg, #2563EB, #7C3AED); box-shadow: 0 6px 22px rgba(37,99,235,0.30); }
  /* Cards */
  .card:hover { transform: none; border-color: var(--border); }
  /* Icon / text buttons — drop the hover tint */
  .lang-btn:hover, .theme-btn:hover, .burger-btn:hover,
  .mobile-lang-btn:hover, .mobile-nav-link:hover,
  .nav-link:hover { background: none; color: var(--ink-soft); }
  .social-btn:hover { transform: none; background: rgba(96,165,250,0.10); border-color: rgba(96,165,250,0.32); color: var(--accent-2); box-shadow: 0 4px 14px rgba(0,0,0,0.22); }
  .fab:hover { transform: none; background: rgba(8,14,28,0.88); }
  .send-btn:hover { background: rgba(37,99,235,0.20); }
  .chip:hover { background: rgba(12,18,32,0.80); color: var(--ink-soft); }
  .svc-more:hover { color: var(--ink-mute); }
}
