/* ============================================================
   ADVANEXT — Premium corporate site
   Design system + components
   ============================================================ */

/* ---------- Design tokens ---------- */
:root {
  --bg:        #05060a;
  --bg-2:      #080a11;
  --bg-3:      #0b0e17;
  --surface:   rgba(255, 255, 255, 0.028);
  --surface-2: rgba(255, 255, 255, 0.05);
  --border:    rgba(255, 255, 255, 0.08);
  --border-2:  rgba(255, 255, 255, 0.14);

  --text:      #f4f6fb;
  --text-2:    #b9c0d4;
  --text-3:    #7a8399;

  --blue:      #2f6bff;
  --blue-2:    #4f8bff;
  --blue-glow: #2f6bff;
  --violet:    #8b5cf6;
  --violet-2:  #a78bfa;

  --grad:      linear-gradient(120deg, #4f8bff 0%, #2f6bff 42%, #8b5cf6 100%);
  --grad-soft: linear-gradient(120deg, rgba(79,139,255,.16), rgba(139,92,246,.16));

  --radius:    18px;
  --radius-lg: 26px;
  --maxw:      1200px;

  --ease:      cubic-bezier(0.22, 1, 0.36, 1);
  --ease-2:    cubic-bezier(0.16, 1, 0.3, 1);

  --font:      'Inter', system-ui, -apple-system, 'Segoe UI', Roboto, sans-serif;
  --display:   'Space Grotesk', 'Inter', system-ui, sans-serif;
}

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

html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }

body {
  font-family: var(--font);
  background:
    linear-gradient(180deg, #070910 0%, #060810 40%, #05070d 100%);
  background-color: var(--bg);
  color: var(--text);
  line-height: 1.6;
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

img { max-width: 100%; display: block; }
a { color: inherit; text-decoration: none; }
ul, ol { list-style: none; }
button { font-family: inherit; cursor: pointer; border: none; background: none; }
::selection { background: rgba(79, 139, 255, 0.35); color: #fff; }

/* ---------- Ambient background glow ---------- */
body::before {
  content: "";
  position: fixed;
  inset: 0;
  background:
    radial-gradient(50% 40% at 12% 4%, rgba(47, 107, 255, 0.12), transparent 68%),
    radial-gradient(45% 40% at 100% 16%, rgba(139, 92, 246, 0.10), transparent 68%),
    radial-gradient(60% 45% at 88% 92%, rgba(47, 107, 255, 0.07), transparent 70%);
  pointer-events: none;
  z-index: 0;
}

/* ---------- Layout ---------- */
.container { width: 100%; max-width: var(--maxw); margin: 0 auto; padding: 0 24px; position: relative; z-index: 1; }
.section { padding: clamp(80px, 12vw, 160px) 0; position: relative; z-index: 1; }

.eyebrow {
  font-size: 0.82rem;
  font-weight: 600;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--blue-2);
  margin-bottom: 18px;
}

.section-head { max-width: 760px; margin-bottom: clamp(48px, 6vw, 80px); }
.section-title {
  font-family: var(--display);
  font-weight: 600;
  font-size: clamp(2rem, 4.6vw, 3.4rem);
  line-height: 1.08;
  letter-spacing: -0.02em;
}

.grad {
  background: var(--grad);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
  font-style: normal;
}

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 9px;
  font-weight: 600;
  font-size: 0.95rem;
  padding: 13px 22px;
  border-radius: 999px;
  transition: transform 0.4s var(--ease), box-shadow 0.4s var(--ease), background 0.3s, border-color 0.3s;
  will-change: transform;
  white-space: nowrap;
}
.btn svg { transition: transform 0.4s var(--ease); }
.btn:hover svg { transform: translateX(4px); }

.btn--primary {
  background: var(--grad);
  color: #fff;
  box-shadow: 0 8px 30px -8px rgba(47, 107, 255, 0.6), inset 0 1px 0 rgba(255,255,255,0.25);
}
.btn--primary:hover {
  transform: translateY(-2px);
  box-shadow: 0 16px 44px -10px rgba(79, 139, 255, 0.75), inset 0 1px 0 rgba(255,255,255,0.3);
}

.btn--ghost {
  background: var(--surface);
  color: var(--text);
  border: 1px solid var(--border-2);
  backdrop-filter: blur(10px);
}
.btn--ghost:hover { background: var(--surface-2); border-color: rgba(255,255,255,0.28); transform: translateY(-2px); }

.btn--lg { padding: 16px 28px; font-size: 1rem; }
.btn--sm { padding: 10px 18px; font-size: 0.88rem; }

/* ---------- Scroll progress ---------- */
.scroll-progress {
  position: fixed;
  top: 0; left: 0;
  height: 2px;
  width: 0;
  background: var(--grad);
  z-index: 200;
  box-shadow: 0 0 12px rgba(79,139,255,0.8);
}

/* ============================================================
   NAVBAR
   ============================================================ */
.nav {
  position: fixed;
  top: 0; left: 0; right: 0;
  z-index: 100;
  transition: background 0.4s var(--ease), backdrop-filter 0.4s, border-color 0.4s;
  border-bottom: 1px solid transparent;
}
.nav.scrolled {
  background: rgba(6, 8, 14, 0.72);
  backdrop-filter: blur(18px) saturate(160%);
  border-bottom: 1px solid var(--border);
}
.nav__inner {
  max-width: var(--maxw);
  margin: 0 auto;
  padding: 14px 24px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
}
/* ---------- Brand wordmark ---------- */
.brand { display: inline-flex; flex-direction: column; gap: 2px; line-height: 1; transition: transform 0.4s var(--ease); }
.brand:hover { transform: translateY(-1px); }
.brand__mark {
  font-family: var(--display);
  font-weight: 700;
  font-size: 1.42rem;
  letter-spacing: 0.04em;
  color: #fff;
}
.brand__mark .grad { letter-spacing: 0.04em; }
.brand__tag {
  font-size: 0.56rem;
  font-weight: 600;
  letter-spacing: 0.32em;
  text-transform: uppercase;
  color: var(--text-3);
}

.nav__right { display: flex; align-items: center; gap: 18px; }

/* ---------- Language selector ---------- */
.langsel {
  display: inline-flex;
  padding: 3px;
  gap: 2px;
  border-radius: 999px;
  border: 1px solid var(--border-2);
  background: var(--surface);
  backdrop-filter: blur(10px);
}
.langsel button {
  font-family: var(--font);
  font-size: 0.78rem;
  font-weight: 600;
  letter-spacing: 0.04em;
  color: var(--text-3);
  padding: 5px 11px;
  border-radius: 999px;
  transition: color 0.3s, background 0.3s;
}
.langsel button:hover { color: var(--text); }
.langsel button.active { color: #fff; background: var(--grad); box-shadow: 0 4px 14px -6px rgba(47,107,255,0.7); }

.langsel--mobile { width: 100%; margin: 16px 0 4px; }
.langsel--mobile button { flex: 1; padding: 12px; font-size: 0.95rem; }

.nav__links { display: flex; gap: 34px; }
.nav__links a {
  font-size: 0.92rem;
  font-weight: 500;
  color: var(--text-2);
  position: relative;
  transition: color 0.3s;
}
.nav__links a::after {
  content: "";
  position: absolute;
  left: 0; bottom: -6px;
  width: 0; height: 2px;
  background: var(--grad);
  border-radius: 2px;
  transition: width 0.35s var(--ease);
}
.nav__links a:hover { color: var(--text); }
.nav__links a:hover::after { width: 100%; }

.nav__burger { display: none; flex-direction: column; gap: 5px; padding: 8px; }
.nav__burger span { width: 24px; height: 2px; background: var(--text); border-radius: 2px; transition: 0.35s var(--ease); }
.nav__burger.open span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.nav__burger.open span:nth-child(2) { opacity: 0; }
.nav__burger.open span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

.nav__mobile {
  display: none;
  flex-direction: column;
  gap: 4px;
  padding: 0 24px;
  max-height: 0;
  overflow: hidden;
  background: rgba(6, 8, 14, 0.96);
  backdrop-filter: blur(18px);
  transition: max-height 0.5s var(--ease), padding 0.5s var(--ease);
}
.nav__mobile.open { max-height: 400px; padding: 12px 24px 24px; border-bottom: 1px solid var(--border); }
.nav__mobile a { padding: 14px 0; font-size: 1.05rem; font-weight: 500; color: var(--text-2); border-bottom: 1px solid var(--border); }
.nav__mobile .btn { margin-top: 14px; justify-content: center; }

/* ============================================================
   HERO (left-aligned, cinematic photo background)
   ============================================================ */
.hero {
  position: relative;
  min-height: 100svh;
  display: flex;
  align-items: center;
  overflow: hidden;
  padding: 128px 0 96px;
}

/* --- Media / background --- */
.hero__media { position: absolute; inset: 0; z-index: 0; }
.hero__photo,
.hero__video {
  position: absolute; inset: 0;
  width: 100%; height: 100%;
  object-fit: cover;
  object-position: 66% center;   /* keep the subjects on the right */
}
.hero__photo {
  opacity: 0;
  transform: scale(1.06);
  transition: opacity 1.4s ease;
  animation: kenburns 26s ease-in-out infinite alternate;
}
.hero__photo.loaded { opacity: 1; }
@keyframes kenburns {
  from { transform: scale(1.06) translateX(0); }
  to   { transform: scale(1.14) translateX(-1.5%); }
}
.hero__video { opacity: 0; transition: opacity 1.2s ease; }
.hero__video.loaded { opacity: 1; }   /* if a real video loads, it covers the photo */

.hero__grid {
  position: absolute; inset: 0;
  background-image:
    linear-gradient(rgba(255,255,255,0.05) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255,255,255,0.05) 1px, transparent 1px);
  background-size: 60px 60px;
  mask-image: radial-gradient(120% 90% at 85% 40%, #000 0%, transparent 60%);
  -webkit-mask-image: radial-gradient(120% 90% at 85% 40%, #000 0%, transparent 60%);
  opacity: 0.5;
}
/* Overlay: dark enough on the left for text, lets the bright photo breathe on the right */
.hero__overlay {
  position: absolute; inset: 0;
  background:
    linear-gradient(90deg, var(--bg) 0%, rgba(5,6,10,0.84) 24%, rgba(5,6,10,0.42) 54%, rgba(5,6,10,0.12) 84%, rgba(5,6,10,0.26) 100%),
    linear-gradient(180deg, rgba(5,6,10,0.42) 0%, transparent 26%, transparent 62%, var(--bg) 100%),
    radial-gradient(70% 70% at 80% 38%, rgba(47,107,255,0.12), transparent 60%);
}

/* --- Content --- */
.hero__wrap {
  position: relative; z-index: 2;
  display: flex;
  align-items: center;
  min-height: inherit;
}
.hero__content { max-width: 680px; text-align: left; }

.hero__eyebrow {
  font-size: 0.82rem;
  font-weight: 600;
  letter-spacing: 0.24em;
  text-transform: uppercase;
  color: var(--blue-2);
  margin-bottom: 22px;
}

.hero__title {
  font-family: var(--display);
  font-weight: 700;
  font-size: clamp(2.7rem, 6.4vw, 5rem);
  line-height: 1.03;
  letter-spacing: -0.03em;
  margin-bottom: 26px;
}
.reveal-line { display: block; overflow: hidden; padding-bottom: 0.04em; }
.reveal-line > span {
  display: block;
  transform: translateY(110%);
  transition: transform 1s var(--ease-2);
}
.hero.in .reveal-line:nth-child(1) > span { transition-delay: 0.2s; transform: translateY(0); }
.hero.in .reveal-line:nth-child(2) > span { transition-delay: 0.34s; transform: translateY(0); }

.hero__subtitle {
  font-size: clamp(1.02rem, 1.5vw, 1.2rem);
  color: var(--text-2);
  max-width: 560px;
  margin: 0 0 38px;
  line-height: 1.7;
}
.hero__actions { display: flex; gap: 14px; flex-wrap: wrap; }

/* --- Floating stat card --- */
.hero__card {
  position: absolute;
  right: 0; bottom: 8%;
  display: flex;
  align-items: center;
  gap: 16px;
  max-width: 340px;
  padding: 20px 22px;
  border-radius: var(--radius);
  border: 1px solid var(--border-2);
  background: rgba(12, 15, 24, 0.55);
  backdrop-filter: blur(16px) saturate(150%);
  box-shadow: 0 24px 60px -24px rgba(0,0,0,0.8);
}
.hero__card-icon {
  flex: 0 0 auto;
  width: 48px; height: 48px;
  display: grid; place-items: center;
  border-radius: 12px;
  background: var(--grad-soft);
  border: 1px solid var(--border-2);
  color: var(--blue-2);
}
.hero__card-icon svg { width: 24px; height: 24px; }
.hero__card-num {
  display: block;
  font-family: var(--display);
  font-weight: 700;
  font-size: 1.7rem;
  line-height: 1;
  background: var(--grad);
  -webkit-background-clip: text; background-clip: text; color: transparent;
  margin-bottom: 5px;
}
.hero__card-text { font-size: 0.85rem; color: var(--text-2); line-height: 1.45; }

/* --- Scroll cue --- */
.hero__scroll {
  position: absolute;
  left: 24px; bottom: 26px;
  z-index: 2;
  display: inline-flex;
  align-items: center;
  gap: 12px;
  font-size: 0.72rem;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--text-3);
  transition: color 0.3s;
}
.hero__scroll:hover { color: var(--text-2); }
.hero__scroll-line {
  width: 40px; height: 1px;
  background: linear-gradient(90deg, var(--blue-2), transparent);
  position: relative;
  overflow: hidden;
}
.hero__scroll-line::after {
  content: "";
  position: absolute; left: -50%; top: 0;
  width: 50%; height: 100%;
  background: var(--blue-2);
  animation: scrollRight 2s var(--ease) infinite;
}
@keyframes scrollRight { 0% { left: -50%; } 100% { left: 100%; } }

/* ============================================================
   MARQUEE
   ============================================================ */
.marquee {
  border-top: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
  padding: 26px 0;
  overflow: hidden;
  background: var(--bg-2);
  position: relative; z-index: 1;
  -webkit-mask-image: linear-gradient(90deg, transparent, #000 12%, #000 88%, transparent);
  mask-image: linear-gradient(90deg, transparent, #000 12%, #000 88%, transparent);
}
.marquee__track {
  display: inline-flex;
  align-items: center;
  gap: 34px;
  white-space: nowrap;
  animation: marquee 34s linear infinite;
  font-family: var(--display);
  font-size: clamp(1.1rem, 2.4vw, 1.6rem);
  font-weight: 500;
  color: var(--text-2);
}
.marquee__track .dot { color: var(--blue-2); }
@keyframes marquee { to { transform: translateX(-50%); } }

/* ============================================================
   STATEMENT
   ============================================================ */
.statement { text-align: center; }
.statement__title {
  font-family: var(--display);
  font-weight: 600;
  font-size: clamp(2.1rem, 5.2vw, 4rem);
  line-height: 1.08;
  letter-spacing: -0.025em;
  margin-bottom: 30px;
}
.statement__text {
  max-width: 720px;
  margin: 0 auto;
  font-size: clamp(1.02rem, 1.5vw, 1.2rem);
  color: var(--text-2);
  line-height: 1.75;
}

.stats {
  margin-top: clamp(56px, 8vw, 96px);
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 20px;
}
.stat {
  padding: 34px 20px;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  background: var(--surface);
  transition: border-color 0.4s, transform 0.4s var(--ease), background 0.4s;
}
.stat:hover { border-color: var(--border-2); transform: translateY(-4px); background: var(--surface-2); }
.stat__num {
  display: block;
  font-family: var(--display);
  font-weight: 700;
  font-size: clamp(2.2rem, 4vw, 3.1rem);
  line-height: 1;
  background: var(--grad);
  -webkit-background-clip: text; background-clip: text; color: transparent;
  margin-bottom: 12px;
}
.stat__label { font-size: 0.92rem; color: var(--text-3); }

/* ============================================================
   SOLUTIONS CARDS
   ============================================================ */
.cards {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
}
.card {
  position: relative;
  padding: 32px 30px;
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  background: linear-gradient(180deg, var(--surface), rgba(255,255,255,0.01));
  overflow: hidden;
  transition: transform 0.5s var(--ease), border-color 0.5s;
  transform-style: preserve-3d;
}
.card::before {
  content: "";
  position: absolute; inset: 0;
  border-radius: inherit;
  padding: 1px;
  background: var(--grad);
  -webkit-mask: linear-gradient(#000 0 0) content-box, linear-gradient(#000 0 0);
  -webkit-mask-composite: xor; mask-composite: exclude;
  opacity: 0;
  transition: opacity 0.5s;
}
.card:hover::before { opacity: 1; }
.card:hover { transform: translateY(-6px); border-color: transparent; }

.card__glow {
  position: absolute;
  width: 260px; height: 260px;
  background: radial-gradient(circle, rgba(79,139,255,0.22), transparent 65%);
  border-radius: 50%;
  top: var(--my, 50%); left: var(--mx, 50%);
  transform: translate(-50%, -50%);
  opacity: 0;
  transition: opacity 0.5s;
  pointer-events: none;
}
.card:hover .card__glow { opacity: 1; }

.card__icon {
  width: 54px; height: 54px;
  display: grid; place-items: center;
  border-radius: 14px;
  background: var(--grad-soft);
  border: 1px solid var(--border);
  color: var(--blue-2);
  margin-bottom: 22px;
  transition: transform 0.5s var(--ease);
}
.card:hover .card__icon { transform: scale(1.08) translateY(-2px); }
.card__icon svg { width: 26px; height: 26px; }
.card__title { font-family: var(--display); font-size: 1.28rem; font-weight: 600; margin-bottom: 10px; letter-spacing: -0.01em; }
.card__text { color: var(--text-3); font-size: 0.96rem; line-height: 1.65; }

/* ============================================================
   PROCESS TIMELINE
   ============================================================ */
.timeline { position: relative; }
.timeline__line {
  position: absolute;
  top: 40px; left: 0; right: 0;
  height: 2px;
  background: var(--border);
  border-radius: 2px;
}
.timeline__progress {
  display: block; height: 100%; width: 0;
  background: var(--grad);
  border-radius: 2px;
  box-shadow: 0 0 14px rgba(79,139,255,0.6);
  transition: width 0.1s linear;
}
.timeline__steps {
  display: grid;
  grid-template-columns: repeat(6, 1fr);
  gap: 18px;
}
.tstep { position: relative; padding-top: 0; }
.tstep__num {
  display: inline-grid; place-items: center;
  width: 46px; height: 46px;
  border-radius: 50%;
  background: var(--bg-3);
  border: 1px solid var(--border-2);
  font-family: var(--display);
  font-weight: 600;
  font-size: 0.95rem;
  color: var(--blue-2);
  margin-bottom: 22px;
  position: relative; z-index: 2;
  transition: transform 0.4s var(--ease), border-color 0.4s, box-shadow 0.4s;
}
.tstep:hover .tstep__num {
  transform: scale(1.1);
  border-color: var(--blue);
  box-shadow: 0 0 0 6px rgba(47,107,255,0.12), 0 0 24px rgba(47,107,255,0.4);
}
.tstep__title { font-family: var(--display); font-size: 1.18rem; font-weight: 600; margin-bottom: 8px; }
.tstep__text { font-size: 0.9rem; color: var(--text-3); line-height: 1.6; }

/* ============================================================
   PROBLEMS
   ============================================================ */
.problems { text-align: center; }
.problems__grid { display: flex; flex-wrap: wrap; justify-content: center; gap: 14px; max-width: 860px; margin: 0 auto; }
.chip {
  padding: 12px 22px;
  border-radius: 999px;
  border: 1px solid var(--border-2);
  background: var(--surface);
  font-size: 1rem;
  font-weight: 500;
  color: var(--text-2);
  transition: transform 0.4s var(--ease), border-color 0.4s, color 0.4s, background 0.4s;
}
.chip:hover {
  transform: translateY(-3px);
  color: #fff;
  border-color: rgba(255,80,80,0.4);
  background: rgba(255,80,80,0.08);
}
.problems__arrow { margin: 44px 0; color: var(--blue-2); display: flex; justify-content: center; }
.problems__arrow svg { animation: floatY 2.6s ease-in-out infinite; }
@keyframes floatY { 0%,100% { transform: translateY(0); } 50% { transform: translateY(8px); } }
.problems__result h3 {
  font-family: var(--display);
  font-weight: 600;
  font-size: clamp(1.5rem, 3.4vw, 2.5rem);
  line-height: 1.2;
  max-width: 820px;
  margin: 0 auto;
  letter-spacing: -0.02em;
}

/* ============================================================
   AI SECTION
   ============================================================ */
.ai { overflow: hidden; background: linear-gradient(180deg, var(--bg), var(--bg-2), var(--bg)); }
.ai__canvas { position: absolute; inset: 0; width: 100%; height: 100%; z-index: 0; opacity: 0.7; }
.ai__inner {
  display: grid;
  grid-template-columns: 1.05fr 0.95fr;
  gap: 60px;
  align-items: center;
}
.ai__lead { color: var(--text-2); font-size: 1.08rem; line-height: 1.75; margin: 22px 0 32px; max-width: 520px; }
.ai__list { display: flex; flex-direction: column; gap: 16px; }
.ai__list li { display: flex; align-items: center; gap: 14px; font-size: 1.05rem; color: var(--text); font-weight: 500; }
.ai__list i {
  flex: 0 0 auto;
  width: 26px; height: 26px;
  border-radius: 8px;
  background: var(--grad-soft);
  border: 1px solid var(--border-2);
  position: relative;
}
.ai__list i::after {
  content: "";
  position: absolute; inset: 0;
  background: no-repeat center / 14px url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%234f8bff' stroke-width='3' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M5 12l5 5 9-11'/%3E%3C/svg%3E");
}

/* AI orb visual */
.ai__visual { display: grid; place-items: center; }
.ai__orb {
  position: relative;
  width: min(420px, 82vw);
  aspect-ratio: 1;
  display: grid; place-items: center;
}
.ai__orb-canvas {
  position: absolute; inset: 0;
  width: 100%; height: 100%;
  z-index: 1;
}
.ai__core {
  position: relative;
  z-index: 2;
  width: 32%; aspect-ratio: 1;
  border-radius: 50%;
  display: grid; place-items: center;
  background: radial-gradient(circle at 35% 30%, rgba(79,139,255,0.5), rgba(139,92,246,0.4) 58%, rgba(10,12,20,0.92));
  border: 1px solid var(--border-2);
  box-shadow: 0 0 70px rgba(79,139,255,0.4), inset 0 0 40px rgba(139,92,246,0.35);
  color: #fff;
  animation: breathe 4.5s ease-in-out infinite;
}
.ai__core svg { width: 44%; height: 44%; }
@keyframes breathe {
  0%, 100% { transform: scale(1); box-shadow: 0 0 60px rgba(79,139,255,0.32), inset 0 0 40px rgba(139,92,246,0.3); }
  50%      { transform: scale(1.06); box-shadow: 0 0 90px rgba(79,139,255,0.5), inset 0 0 46px rgba(139,92,246,0.42); }
}

/* ============================================================
   RESULTS / CASES
   ============================================================ */
.cases { display: grid; grid-template-columns: repeat(3, 1fr); gap: 22px; }
.case {
  position: relative;
  padding: 30px;
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  background: linear-gradient(180deg, var(--surface), rgba(255,255,255,0.01));
  transition: transform 0.5s var(--ease), border-color 0.5s;
  overflow: hidden;
}
.case:hover { transform: translateY(-6px); border-color: var(--border-2); }
.case__tag {
  display: inline-block;
  font-size: 0.76rem;
  font-weight: 600;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--blue-2);
  padding: 6px 12px;
  border-radius: 999px;
  background: var(--grad-soft);
  border: 1px solid var(--border);
  margin-bottom: 24px;
}
.case__ba { display: flex; flex-direction: column; gap: 14px; }
.case__before, .case__after { padding: 16px 18px; border-radius: 14px; border: 1px solid var(--border); }
.case__before { background: rgba(255,90,90,0.05); border-color: rgba(255,90,90,0.16); }
.case__after  { background: rgba(79,139,255,0.06); border-color: rgba(79,139,255,0.22); }
.case__before span, .case__after span {
  display: block; font-size: 0.72rem; font-weight: 700; letter-spacing: 0.12em; text-transform: uppercase; margin-bottom: 6px;
}
.case__before span { color: #ff8a8a; }
.case__after span { color: var(--blue-2); }
.case__before p, .case__after p { font-size: 0.9rem; color: var(--text-2); line-height: 1.55; }
.case__sep { display: flex; justify-content: center; color: var(--text-3); }
.case__sep svg { transform: rotate(90deg); }
.case__metrics { display: flex; gap: 14px; margin-top: 26px; padding-top: 24px; border-top: 1px solid var(--border); }
.case__metrics > div { flex: 1; }
.case__metrics strong {
  display: block;
  font-family: var(--display);
  font-size: 1.8rem;
  font-weight: 700;
  background: var(--grad);
  -webkit-background-clip: text; background-clip: text; color: transparent;
  line-height: 1;
  margin-bottom: 6px;
}
.case__metrics em { font-style: normal; font-size: 0.82rem; color: var(--text-3); }

/* ============================================================
   FINAL CTA
   ============================================================ */
.cta {
  text-align: center;
  overflow: hidden;
  background: linear-gradient(180deg, var(--bg), #070912);
}
.cta__canvas { position: absolute; inset: 0; width: 100%; height: 100%; z-index: 0; }
.cta__inner { position: relative; z-index: 2; padding-top: 40px; padding-bottom: 40px; }
.cta__title {
  font-family: var(--display);
  font-weight: 700;
  font-size: clamp(2.6rem, 7vw, 5.2rem);
  line-height: 1.03;
  letter-spacing: -0.03em;
  margin-bottom: 26px;
}
.cta__text { max-width: 600px; margin: 0 auto 40px; color: var(--text-2); font-size: 1.1rem; line-height: 1.7; }

/* ============================================================
   FOOTER
   ============================================================ */
.footer { border-top: 1px solid var(--border); background: var(--bg-2); position: relative; z-index: 1; padding-top: 72px; }
.footer__inner {
  display: grid;
  grid-template-columns: 1.6fr 1fr 1fr 1.1fr;
  gap: 40px;
  padding-bottom: 56px;
}
.brand--footer { margin-bottom: 18px; }
.brand--footer .brand__mark { font-size: 1.6rem; }
.footer__tag { font-family: var(--display); color: var(--text); font-weight: 500; margin-bottom: 12px; }
.footer__desc { color: var(--text-3); font-size: 0.92rem; line-height: 1.6; max-width: 320px; }
.footer__col h4 { font-size: 0.82rem; letter-spacing: 0.14em; text-transform: uppercase; color: var(--text-3); margin-bottom: 20px; }
.footer__col a { display: block; color: var(--text-2); font-size: 0.95rem; padding: 6px 0; transition: color 0.3s, transform 0.3s; }
.footer__col a:hover { color: var(--blue-2); transform: translateX(3px); }
.footer__social { display: flex; gap: 12px; margin-top: 16px; }
.footer__social a {
  width: 40px; height: 40px;
  display: grid; place-items: center;
  border-radius: 12px;
  border: 1px solid var(--border);
  background: var(--surface);
  color: var(--text-2);
  transition: transform 0.35s var(--ease), color 0.35s, border-color 0.35s, background 0.35s;
}
.footer__social a:hover { transform: translateY(-3px); color: #fff; border-color: var(--blue); background: var(--grad-soft); }
.footer__bottom {
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap; gap: 12px;
  padding-top: 26px; padding-bottom: 34px;
  border-top: 1px solid var(--border);
  color: var(--text-3);
  font-size: 0.86rem;
}

/* ============================================================
   TONAL RHYTHM — depth for dark sections, light breathing blocks
   ============================================================ */

/* Soft glow accents so dark sections never read as flat black */
.statement, .process, .problems { position: relative; }
.statement::before, .process::before, .problems::before {
  content: "";
  position: absolute; inset: 0;
  z-index: 0;
  pointer-events: none;
}
.statement::before { background: radial-gradient(60% 55% at 50% 0%, rgba(47,107,255,0.07), transparent 62%); }
.process::before   { background: radial-gradient(55% 60% at 12% 30%, rgba(139,92,246,0.06), transparent 60%); }
.problems::before  { background: radial-gradient(60% 60% at 85% 40%, rgba(47,107,255,0.06), transparent 60%); }
.statement .container, .process .container, .problems .container { position: relative; z-index: 1; }

/* ---------- LIGHT SECTIONS ---------- */
.section--light {
  --text:      #0b1220;
  --text-2:    #444d63;
  --text-3:    #6c7789;
  --surface:   rgba(16, 24, 44, 0.024);
  --surface-2: rgba(16, 24, 44, 0.05);
  --border:    rgba(16, 24, 44, 0.10);
  --border-2:  rgba(16, 24, 44, 0.16);
  --grad-soft: linear-gradient(120deg, rgba(47,107,255,0.12), rgba(139,92,246,0.12));
  color: var(--text);
  background:
    radial-gradient(90% 60% at 82% -10%, rgba(47,107,255,0.07), transparent 55%),
    radial-gradient(70% 50% at 0% 110%, rgba(139,92,246,0.06), transparent 55%),
    linear-gradient(180deg, #f5f7fb 0%, #eceff6 100%);
}
.section--light .eyebrow { color: #2f6bff; }
.section--light .grad { filter: saturate(1.05); }

/* Cards on light */
.section--light .card {
  background: #ffffff;
  border-color: rgba(16,24,44,0.09);
  box-shadow: 0 1px 2px rgba(16,24,44,0.04), 0 18px 40px -26px rgba(16,24,44,0.4);
}
.section--light .card:hover { border-color: transparent; box-shadow: 0 1px 2px rgba(16,24,44,0.05), 0 26px 50px -24px rgba(47,107,255,0.4); }
.section--light .card__glow { background: radial-gradient(circle, rgba(47,107,255,0.14), transparent 65%); }
.section--light .card__icon { background: linear-gradient(135deg, rgba(47,107,255,0.14), rgba(139,92,246,0.14)); border-color: rgba(16,24,44,0.10); color: #2f6bff; }

/* Case cards on light */
.section--light .case {
  background: #ffffff;
  border-color: rgba(16,24,44,0.09);
  box-shadow: 0 1px 2px rgba(16,24,44,0.04), 0 18px 40px -26px rgba(16,24,44,0.4);
}
.section--light .case:hover { border-color: rgba(16,24,44,0.16); box-shadow: 0 1px 2px rgba(16,24,44,0.05), 0 26px 50px -24px rgba(47,107,255,0.35); }
.section--light .case__tag { border-color: rgba(16,24,44,0.08); }
.section--light .case__before { background: rgba(220,66,88,0.06); border-color: rgba(220,66,88,0.18); }
.section--light .case__before span { color: #cc384f; }
.section--light .case__after { background: rgba(47,107,255,0.06); border-color: rgba(47,107,255,0.22); }
.section--light .case__after span { color: #2f6bff; }
.section--light .case__metrics { border-top-color: rgba(16,24,44,0.10); }

/* ============================================================
   SCROLL REVEAL
   ============================================================ */
.reveal { opacity: 0; transform: translateY(34px); transition: opacity 0.9s var(--ease-2), transform 0.9s var(--ease-2); }
.reveal.in { opacity: 1; transform: none; }

/* ============================================================
   RESPONSIVE
   ============================================================ */
@media (max-width: 1100px) {
  .hero__card { right: 24px; bottom: 24px; max-width: 300px; }
}
@media (max-width: 980px) {
  .nav__links, .nav__cta, .nav__right .langsel { display: none; }
  .nav__burger { display: flex; }
  .nav__mobile { display: flex; }
  .cards { grid-template-columns: repeat(2, 1fr); }
  .cases { grid-template-columns: 1fr; max-width: 520px; margin: 0 auto; }
  .stats { grid-template-columns: repeat(2, 1fr); }
  .timeline__steps { grid-template-columns: repeat(3, 1fr); gap: 32px 18px; }
  .timeline__line { display: none; }
  .ai__inner { grid-template-columns: 1fr; gap: 40px; }
  .ai__visual { order: -1; }
  /* Hero: photo becomes ambient behind full-width text */
  .hero__overlay {
    background:
      linear-gradient(180deg, rgba(5,6,10,0.7) 0%, rgba(5,6,10,0.82) 45%, var(--bg) 100%),
      radial-gradient(90% 60% at 70% 20%, rgba(47,107,255,0.18), transparent 60%);
  }
  .hero__photo { object-position: 70% 20%; }
  .hero__card { position: static; margin-top: 40px; max-width: 380px; }
  .hero__scroll { display: none; }
}
@media (max-width: 560px) {
  .container { padding: 0 18px; }
  .cards { grid-template-columns: 1fr; }
  .stats { grid-template-columns: 1fr 1fr; }
  .timeline__steps { grid-template-columns: 1fr 1fr; }
  .hero { padding-top: 104px; min-height: auto; }
  .hero__actions { flex-direction: column; }
  .hero__actions .btn { width: 100%; justify-content: center; }
  .hero__card { max-width: none; }
  .footer__inner { grid-template-columns: 1fr 1fr; }
  .footer__brand { grid-column: 1 / -1; }
}

/* ============================================================
   REDUCED MOTION
   ============================================================ */
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    animation-duration: 0.001ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.001ms !important;
    scroll-behavior: auto !important;
  }
  .reveal, .reveal-line > span { opacity: 1 !important; transform: none !important; }
}
