/* =========================================================
   Kaevor — Unified Dark Design System
   Goal: Premium enterprise tech company aesthetic.
   All pages use this single stylesheet.
   ========================================================= */

/* ─── DESIGN TOKENS ───────────────────────────────────── */
:root {
  --font: Inter, system-ui, -apple-system, Segoe UI, Roboto, Arial, sans-serif;

  /* Dark base — "black diamond": near-black with cool undertone, not flat */
  --bg0: #07080c;
  --bg1: #0c0e15;

  /* Surfaces */
  --surface:  #141821;
  --surface2: #1a1f2e;

  /* Text */
  --text:   #f6f8fb;
  --muted:  #9aa6bb;
  --muted2: #8396ae;

  /* Borders */
  --stroke:  rgba(255,255,255,.11);
  --stroke2: rgba(255,255,255,.07);

  /* Accent — deep indigo/purple, plus a champagne sheen for premium "diamond" moments */
  --accent:    #6c47ff;
  --accent2:   #9b7bff;
  --accentInk: #ffffff;
  --sheen:     #f3d9a8;
  --sheen2:    #e8c27a;

  /* Shadows — layered for real elevation, not a single flat blur */
  --shadow:   0 32px 80px -12px rgba(0,0,0,.55), 0 12px 32px -8px rgba(0,0,0,.45);
  --shadow2:  0 16px 40px -10px rgba(0,0,0,.45), 0 4px 12px -2px rgba(0,0,0,.35);
  --shadowGlow: 0 0 0 1px rgba(108,71,255,.18), 0 20px 60px -10px rgba(108,71,255,.30);

  /* Radii */
  --radius:  18px;
  --radius2: 26px;

  /* Layout */
  --container: 1180px;

  /* Timing */
  --t:  220ms;
  --t2: 480ms;
  --ease: cubic-bezier(.16,1,.3,1);
}

/* ─── RESET / BASE ────────────────────────────────────── */
*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; }

body {
  margin: 0;
  font-family: var(--font);
  color: var(--text);
  font-size: 17px;
  letter-spacing: -.005em;
  background:
    radial-gradient(ellipse 90% 55% at 14% 4%,  rgba(108,71,255,.20) 0%, transparent 52%),
    radial-gradient(ellipse 70% 55% at 88% 78%, rgba(31,203,255,.13) 0%, transparent 55%),
    radial-gradient(ellipse 55% 45% at 95% 2%,  rgba(155,123,255,.13) 0%, transparent 60%),
    radial-gradient(ellipse 60% 40% at 4% 92%,  rgba(108,71,255,.10) 0%, transparent 58%),
    linear-gradient(180deg, var(--bg0) 0%, var(--bg1) 100%);
  background-attachment: fixed;
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}
/* Fine diamond-dust grain — pure CSS, no image request, very low opacity */
body::before {
  content: "";
  position: fixed; inset: 0; z-index: 9998; pointer-events: none;
  opacity: .035; mix-blend-mode: overlay;
  background-image:
    radial-gradient(circle at 1px 1px, rgba(255,255,255,.9) 1px, transparent 0);
  background-size: 3px 3px;
}

img  { max-width: 100%; height: auto; display: block; }
a    { color: inherit; }
button, input, select, textarea { font: inherit; }
::selection { background: rgba(108,71,255,.30); color: #fff; }

h1, h2, h3, h4 { font-weight: 800; letter-spacing: -.03em; }

.container {
  width: min(var(--container), calc(100% - 40px));
  margin-inline: auto;
}
.sr-only {
  position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px;
  overflow: hidden; clip: rect(0,0,0,0); white-space: nowrap; border: 0;
}
.muted  { color: var(--muted);  }
.muted2 { color: var(--muted2); }
.small  { font-size: .92rem; }

/* ─── GLASS CARDS — real frosted glass, not a flat tint ─── */
.glass {
  position: relative;
  background: linear-gradient(165deg, rgba(255,255,255,.09) 0%, rgba(255,255,255,.03) 45%, rgba(255,255,255,.02) 100%);
  backdrop-filter: blur(22px) saturate(140%);
  -webkit-backdrop-filter: blur(22px) saturate(140%);
  border: 1px solid var(--stroke);
  border-radius: var(--radius);
  box-shadow: var(--shadow2), inset 0 1px 0 rgba(255,255,255,.07);
  transition: border-color var(--t2) var(--ease), box-shadow var(--t2) var(--ease), transform var(--t2) var(--ease);
}
.glass::before {
  content: "";
  position: absolute; top: 0; left: 8%; right: 8%; height: 1px;
  background: linear-gradient(90deg, transparent, rgba(255,255,255,.45), transparent);
  pointer-events: none; border-radius: inherit;
}
.glass::after {
  content: "";
  position: absolute; inset: 0; border-radius: inherit; pointer-events: none;
  background: linear-gradient(135deg, rgba(255,255,255,.05) 0%, transparent 30%);
  opacity: 0; transition: opacity var(--t2) var(--ease);
}
.glass:hover {
  border-color: rgba(155,123,255,.40);
  box-shadow: var(--shadow2), inset 0 1px 0 rgba(255,255,255,.10), var(--shadowGlow);
  transform: translateY(-4px);
}
.glass:hover::after { opacity: 1; }
@media (prefers-reduced-motion: reduce) {
  .glass:hover { transform: none; }
}

/* ─── PROGRESS BAR ────────────────────────────────────── */
.progress {
  position: fixed; inset: 0 0 auto 0;
  height: 2px; z-index: 20000; background: transparent;
}
.progress span {
  display: block; height: 100%; width: 0%;
  background: linear-gradient(90deg, var(--accent), var(--accent2));
  box-shadow: 0 0 10px rgba(108,71,255,.40);
}

/* ─── HEADER / NAV ────────────────────────────────────── */
.header {
  position: sticky; top: 0; z-index: 9999;
  padding: 10px 0;
  background: rgba(7,8,12,.72);
  backdrop-filter: blur(24px) saturate(160%);
  -webkit-backdrop-filter: blur(24px) saturate(160%);
  border-bottom: 1px solid var(--stroke2);
}
.header::after {
  content: "";
  position: absolute; left: 0; right: 0; bottom: -1px; height: 1px;
  background: linear-gradient(90deg, transparent, rgba(108,71,255,.45), rgba(31,203,255,.30), transparent);
}
.header, .header * { overflow: visible; }

.header-inner {
  display: flex;
  align-items: center;
  justify-content: flex-start;
  gap: 16px;
  min-height: 60px;
  flex-wrap: wrap;
}

.brand {
  display: flex; align-items: center; gap: 10px;
  text-decoration: none; height: 60px; padding: 0;
  border-radius: 12px;
  transition: background var(--t) ease, transform var(--t) ease;
}
.brand:hover { background: rgba(255,255,255,.04); transform: translateY(-1px); }
.brand-logo {
  width: auto; height: 86px;
  border-radius: 8px; object-fit: contain;
  filter: drop-shadow(0 4px 12px rgba(108,71,255,.20));
}

.nav { display: flex !important; align-items: center; margin-left: auto; }
.nav-list {
  display: flex; align-items: center; gap: 4px;
  list-style: none; margin: 0; padding: 0;
}
.nav-item { position: relative; }

.nav-link {
  display: inline-flex; align-items: center; gap: 6px;
  text-decoration: none;
  color: rgba(241,245,249,.90);
  padding: 8px 12px;
  border-radius: 999px;
  font-size: .95rem;
  transition: background var(--t) ease, color var(--t) ease, transform var(--t) ease;
}
.nav-link:hover {
  background: rgba(255,255,255,.06);
  color: #f1f5f9;
  transform: translateY(-1px);
}
.nav-link.active {
  background: rgba(108,71,255,.16);
  color: #f1f5f9;
  border: 1px solid rgba(108,71,255,.22);
}
.has-dd > .nav-link::after {
  content: "▾"; font-size: 11px; opacity: .55; margin-left: 2px;
}

/* Nav CTA */
.nav-cta {
  text-decoration: none;
  padding: 9px 16px;
  border-radius: 999px;
  border: 1px solid rgba(108,71,255,.35);
  background: rgba(108,71,255,.14);
  font-weight: 700; font-size: .95rem;
  color: #f1f5f9;
  transition: transform var(--t) ease, background var(--t) ease, box-shadow var(--t) ease;
}
.nav-cta:hover {
  transform: translateY(-1px);
  background: rgba(108,71,255,.22);
  box-shadow: 0 8px 24px rgba(108,71,255,.25);
}

/* Dropdown */
.dd {
  position: absolute; left: 0; top: 100%; margin-top: 6px;
  min-width: 220px; padding: 8px;
  border-radius: 16px;
  border: 1px solid var(--stroke);
  background: rgba(14,17,26,.96);
  backdrop-filter: blur(18px);
  -webkit-backdrop-filter: blur(18px);
  box-shadow: var(--shadow);
  display: none; z-index: 10000;
}
.dd-link {
  display: flex; padding: 9px 12px; border-radius: 10px;
  text-decoration: none;
  color: rgba(241,245,249,.88);
  white-space: nowrap; font-size: .94rem;
  transition: background var(--t) ease, color var(--t) ease;
}
.dd-link:hover { background: rgba(255,255,255,.06); color: #f1f5f9; }

.dd.dd-group {
  min-width: 500px; padding: 14px; display: none;
  grid-template-columns: 1fr 1fr; gap: 12px;
}
.dd-col { padding: 4px; }
.dd-title {
  font-size: 11px; letter-spacing: .10em; text-transform: uppercase;
  color: var(--muted2); margin: 4px 8px 10px;
}

.nav-item.has-dd::after {
  content: ""; position: absolute;
  left: -10px; right: -10px; top: calc(100% - 2px); height: 16px;
  background: transparent;
}
@media (min-width: 861px) {
  .nav-item.has-dd:hover > .dd,
  .nav-item.has-dd:focus-within > .dd         { display: block; }
  .nav-item.has-dd:hover > .dd.dd-group,
  .nav-item.has-dd:focus-within > .dd.dd-group { display: grid; }
}

/* Mobile menu icon */
.icon-btn {
  display: none !important; border: none; background: transparent;
  color: var(--text); cursor: pointer;
  padding: 10px; border-radius: 12px;
  transition: background var(--t) ease;
}
.icon-btn:hover { background: rgba(255,255,255,.06); }

.icon-lines {
  width: 18px; height: 12px; display: block; position: relative;
}
.icon-lines::before, .icon-lines::after {
  content: ""; position: absolute; left: 0; right: 0;
  height: 2px; border-radius: 2px;
  background: rgba(241,245,249,.85);
}
.icon-lines::before { top: 0; }
.icon-lines::after  { bottom: 0; }

.icon-x { width: 16px; height: 16px; position: relative; display: block; }
.icon-x::before, .icon-x::after {
  content: ""; position: absolute; inset: 7px 0 auto 0;
  height: 2px; background: rgba(241,245,249,.85);
}
.icon-x::before { transform: rotate(45deg);  }
.icon-x::after  { transform: rotate(-45deg); }

/* ─── MOBILE MENU ─────────────────────────────────────── */
.mobile {
  position: fixed; inset: 0; z-index: 14000;
  background: rgba(0,0,0,.60);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  display: none;
  overflow-y: auto; overscroll-behavior: contain;
}
.mobile.open { display: block; }

.mobile-top {
  width: min(520px, 92vw); margin: 14px auto 0;
  padding: 16px;
  border-radius: var(--radius2);
  background: linear-gradient(165deg, rgba(28,24,48,.92), rgba(20,24,33,.94));
  backdrop-filter: blur(24px) saturate(160%);
  -webkit-backdrop-filter: blur(24px) saturate(160%);
  border: 1px solid rgba(155,123,255,.25);
  box-shadow: var(--shadow);
  display: flex; align-items: center; justify-content: space-between;
}
.mobile-title { font-weight: 800; }

.mobile-links {
  width: min(520px, 92vw); margin: 10px auto;
  padding: 14px;
  border-radius: var(--radius2);
  background: linear-gradient(165deg, rgba(28,24,48,.92), rgba(20,24,33,.94));
  backdrop-filter: blur(24px) saturate(160%);
  -webkit-backdrop-filter: blur(24px) saturate(160%);
  border: 1px solid rgba(155,123,255,.25);
  box-shadow: var(--shadow2);
  display: flex; flex-direction: column; gap: 8px;
}
.mobile-links a {
  text-decoration: none; padding: 11px 14px;
  border-radius: 14px;
  background: rgba(255,255,255,.04);
  border: 1px solid var(--stroke2);
  color: rgba(241,245,249,.92);
  transition: background var(--t) ease, transform var(--t) ease;
}
.mobile-links a:hover { background: rgba(255,255,255,.07); transform: translateY(-1px); }

.mobile-foot {
  width: min(520px, 92vw); margin: 0 auto;
  text-align: center; padding-bottom: 20px;
  color: var(--muted);
}

/* Mobile menu groups */
.mgroup {
  padding: 10px; border-radius: 16px;
  background: rgba(255,255,255,.03);
  border: 1px solid var(--stroke2);
  display: flex; flex-direction: column; gap: 6px;
}
.mtitle {
  font-size: 11px; letter-spacing: .10em;
  text-transform: uppercase; color: var(--muted2);
  padding: 4px 8px 0;
}

/* ─── SECTIONS ────────────────────────────────────────── */
.section { position: relative; padding: 104px 0; }

.section-head {
  max-width: 760px; margin: 0 auto 44px;
  text-align: center;
}
.section-head h1,
.section-head h2 {
  margin: 0 0 16px;
  font-size: clamp(2rem, 3.4vw, 3rem);
  letter-spacing: -.035em;
  line-height: 1.08;
}
.section-head p { margin: 0; font-weight: 500; line-height: 1.7; font-size: 1.08rem; color: var(--muted); }

@media (max-width: 760px) {
  .section { padding: 72px 0; }
}

.section-alt {
  position: relative;
  background:
    radial-gradient(ellipse 60% 80% at 0% 50%, rgba(108,71,255,.07) 0%, transparent 60%),
    rgba(255,255,255,.025);
  border-top: 1px solid var(--stroke2);
  border-bottom: 1px solid var(--stroke2);
}
/* backwards compat */
.section-dark {
  position: relative;
  background:
    radial-gradient(ellipse 60% 80% at 100% 50%, rgba(31,203,255,.06) 0%, transparent 60%),
    rgba(255,255,255,.025);
  border-top: 1px solid var(--stroke2);
  border-bottom: 1px solid var(--stroke2);
}

/* Image background sections */
.section-bg { position: relative; overflow: hidden; }
.section-bg::before {
  content: ""; position: absolute; inset: 0;
  background-image: var(--section-bg);
  background-size: cover; background-position: center;
  opacity: .08; filter: brightness(.6);
  transform: scale(1.02); pointer-events: none; z-index: 0;
}
.section-bg::after {
  content: ""; position: absolute; inset: 0;
  background: linear-gradient(180deg, rgba(11,13,18,.10), rgba(11,13,18,.80));
  pointer-events: none; z-index: 0;
}
.section-bg > .container { position: relative; z-index: 1; }

/* Video background sections */
.section-media { position: relative; overflow: hidden; }
.section-media .bg-video {
  position: absolute; inset: 0;
  width: 100%; height: 100%;
  object-fit: cover; transform: scale(1.02);
  opacity: .12; filter: brightness(.5);
  pointer-events: none; z-index: 0;
}
.section-media .media-overlay {
  position: absolute; inset: 0;
  background: linear-gradient(180deg, rgba(11,13,18,.50), rgba(11,13,18,.88));
  pointer-events: none; z-index: 0;
}
.section-media > .container { position: relative; z-index: 1; }

/* ─── HERO ────────────────────────────────────────────── */
.hero {
  position: relative; min-height: 92vh;
  display: flex; align-items: center;
  overflow: hidden;
}
.hero.hero-soft { --hero-bg: url("../assets/images/hero.jpg"); }
.hero-bg { position: absolute; inset: 0; pointer-events: none; }
.hero-bg.hero-bg-photo {
  background-image: var(--hero-bg);
  background-size: cover; background-position: center;
  background-repeat: no-repeat;
  filter: brightness(.35) saturate(.9);
}
.hero .container,
.hero .hero-grid { position: relative; z-index: 1; }

.hero-grid {
  display: grid;
  grid-template-columns: 1.1fr .9fr;
  gap: 24px; align-items: center;
}

.pill {
  display: inline-flex; align-items: center; gap: 10px;
  padding: 9px 16px; border-radius: 999px;
  background: rgba(255,255,255,.08);
  border: 1px solid rgba(255,255,255,.16);
  color: rgba(241,245,249,.95);
  margin-bottom: 22px;
  font-size: .86rem; font-weight: 700; letter-spacing: .01em;
  backdrop-filter: blur(14px) saturate(160%);
  -webkit-backdrop-filter: blur(14px) saturate(160%);
  box-shadow: 0 1px 0 rgba(255,255,255,.10) inset, 0 8px 24px -8px rgba(108,71,255,.30);
}
.pill .dot {
  width: 8px; height: 8px; border-radius: 99px;
  background: linear-gradient(135deg, var(--accent), var(--accent2));
  box-shadow: 0 0 12px rgba(108,71,255,.65);
  flex-shrink: 0;
  animation: pill-pulse 2.6s ease-in-out infinite;
}
@keyframes pill-pulse {
  0%, 100% { box-shadow: 0 0 8px rgba(108,71,255,.5); }
  50%      { box-shadow: 0 0 16px rgba(108,71,255,.85); }
}
@media (prefers-reduced-motion: reduce) { .pill .dot { animation: none; } }

.hero h1 {
  margin: 0 0 20px;
  font-size: clamp(2.6rem, 4.6vw, 4.4rem);
  line-height: .98; letter-spacing: -.045em;
  font-weight: 800;
  color: #ffffff;
  text-shadow: 0 4px 30px rgba(0,0,0,.55);
}
.lead {
  margin: 0;
  font-size: 1.22rem;
  color: rgba(241,245,249,.88);
  max-width: 56ch; line-height: 1.68;
}
.hero-actions {
  display: flex; gap: 12px; flex-wrap: wrap;
  margin-top: 28px;
}
.hero-links { display: flex; gap: 10px; flex-wrap: wrap; margin-top: 16px; }

/* Hero stats */
.hero-stats {
  display: grid;
  grid-template-columns: repeat(3, minmax(0,1fr));
  gap: 10px; margin-top: 22px;
}
.stat {
  padding: 14px; border-radius: var(--radius);
  background: rgba(255,255,255,.06);
  border: 1px solid rgba(255,255,255,.10);
  backdrop-filter: blur(8px);
  text-decoration: none; color: inherit; display: block;
  transition: transform var(--t) ease, border-color var(--t) ease;
}
.stat:hover {
  transform: translateY(-2px);
  border-color: rgba(108,71,255,.30);
}
.stat-num   { font-weight: 900; font-size: 1.4rem; color: #fff; }
.stat-label { font-size: .88rem; color: var(--muted); margin-top: 4px; }

/* ─── MINI LINKS ──────────────────────────────────────── */
.mini {
  display: inline-flex; align-items: center; gap: 8px;
  padding: 10px 12px; border-radius: 14px;
  text-decoration: none;
  background: rgba(255,255,255,.05);
  border: 1px solid var(--stroke2);
  color: rgba(241,245,249,.90);
  font-size: .9rem;
  transition: transform var(--t) ease, background var(--t) ease;
}
.mini:hover { transform: translateY(-1px); background: rgba(255,255,255,.08); }
.mini-ic {
  width: 26px; height: 26px; border-radius: 10px;
  display: grid; place-items: center;
  background: rgba(108,71,255,.14);
  border: 1px solid rgba(108,71,255,.20);
  font-size: .85rem;
}

/* ─── BADGES ──────────────────────────────────────────── */
.badge {
  display: inline-block;
  font-size: .82rem; font-weight: 600;
  padding: 5px 10px; border-radius: 999px;
  border: 1px solid rgba(108,71,255,.25);
  background: rgba(108,71,255,.12);
  color: var(--accent2);
}
.badge-link { text-decoration: none; cursor: pointer; }
.badge-link:hover { background: rgba(108,71,255,.20); }

/* ─── BUTTONS ─────────────────────────────────────────── */
.btn {
  position: relative; overflow: hidden; isolation: isolate;
  border: none; cursor: pointer;
  display: inline-flex; align-items: center; gap: 10px;
  padding: 13px 24px; border-radius: 14px;
  text-decoration: none; font-weight: 700; font-size: .96rem; letter-spacing: -.005em;
  transition: transform var(--t2) var(--ease), box-shadow var(--t2) var(--ease), background var(--t2) var(--ease);
  will-change: transform;
}
/* shine sweep on hover — premium signature micro-interaction */
.btn::before {
  content: "";
  position: absolute; top: 0; left: -75%; width: 50%; height: 100%;
  background: linear-gradient(115deg, transparent 0%, rgba(255,255,255,.35) 50%, transparent 100%);
  transform: skewX(-18deg);
  transition: left .65s var(--ease);
  z-index: 1; pointer-events: none;
}
.btn:hover::before { left: 125%; }
@media (prefers-reduced-motion: reduce) { .btn::before { display: none; } }

.btn-primary {
  color: var(--accentInk);
  background: linear-gradient(135deg, var(--accent), var(--accent2));
  box-shadow: 0 1px 0 rgba(255,255,255,.25) inset, 0 14px 32px -8px rgba(108,71,255,.45);
}
.btn-primary:hover {
  transform: translateY(-3px);
  box-shadow: 0 1px 0 rgba(255,255,255,.3) inset, 0 20px 44px -8px rgba(108,71,255,.55);
}
.btn-primary:active { transform: translateY(-1px); }
.btn-ghost {
  color: rgba(241,245,249,.92);
  background: rgba(255,255,255,.07);
  border: 1px solid rgba(255,255,255,.16);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
}
.btn-ghost:hover {
  transform: translateY(-3px);
  background: rgba(255,255,255,.12);
  border-color: rgba(155,123,255,.45);
  box-shadow: 0 16px 36px -10px rgba(108,71,255,.30);
}

/* ─── GRIDS ───────────────────────────────────────────── */
.grid-3 {
  display: grid;
  grid-template-columns: repeat(3, minmax(0,1fr));
  gap: 14px;
}

/* ─── FEATURE CARDS ───────────────────────────────────── */
.feature {
  position: relative;
  padding: 28px 24px; border-radius: var(--radius2);
  background: linear-gradient(165deg, rgba(255,255,255,.06) 0%, rgba(255,255,255,.02) 100%);
  backdrop-filter: blur(16px) saturate(140%);
  -webkit-backdrop-filter: blur(16px) saturate(140%);
  border: 1px solid var(--stroke2);
  box-shadow: var(--shadow2);
  transition: border-color var(--t2) var(--ease), transform var(--t2) var(--ease), box-shadow var(--t2) var(--ease);
}
.feature:hover {
  border-color: rgba(155,123,255,.35);
  transform: translateY(-5px);
  box-shadow: var(--shadow2), var(--shadowGlow);
}
.feature h3 { margin: 0 0 10px; letter-spacing: -.025em; font-size: 1.08rem; }

/* ─── SECTORS ─────────────────────────────────────────── */
.cards {
  display: grid;
  grid-template-columns: repeat(3, minmax(0,1fr));
  gap: 14px;
}
.sector {
  padding: 20px; border-radius: var(--radius2);
  background: rgba(255,255,255,.04);
  border: 1px solid var(--stroke2);
  text-decoration: none; position: relative; overflow: hidden;
  box-shadow: var(--shadow2);
  transition: transform var(--t) ease, border-color var(--t) ease;
}
.sector:hover {
  transform: translateY(-2px);
  border-color: rgba(108,71,255,.25);
}
.sector-ic {
  width: 44px; height: 44px; border-radius: 16px;
  display: grid; place-items: center;
  background: rgba(108,71,255,.12);
  border: 1px solid rgba(108,71,255,.20);
  margin-bottom: 14px;
}
.sector h3     { margin: 0 0 8px; }
.sector-foot   { display: inline-block; margin-top: 12px; font-weight: 700; color: var(--accent2); }
.soon {
  display: inline-block; font-size: .78rem; font-weight: 700;
  padding: 3px 8px; border-radius: 6px;
  background: rgba(108,71,255,.12); color: var(--accent2);
  margin-bottom: 6px;
}
.sector.has-bg::before {
  content: ""; position: absolute; inset: 0;
  background-image: var(--bg); background-size: cover; background-position: center;
  opacity: .08; filter: brightness(.4);
}
.sector.has-bg::after {
  content: ""; position: absolute; inset: 0;
  background: linear-gradient(180deg, rgba(11,13,18,.10), rgba(11,13,18,.85));
}
.sector > * { position: relative; z-index: 1; }

/* ─── CALLOUT / CTA BARS ──────────────────────────────── */
.callout { margin-top: 14px; }
.callout-inner {
  position: relative;
  display: flex; align-items: center;
  justify-content: space-between; gap: 16px;
  padding: 32px 36px; border-radius: var(--radius2);
  background: linear-gradient(150deg, rgba(108,71,255,.10), rgba(255,255,255,.04) 60%);
  backdrop-filter: blur(20px) saturate(140%);
  -webkit-backdrop-filter: blur(20px) saturate(140%);
  border: 1px solid rgba(155,123,255,.22);
  box-shadow: var(--shadow2), inset 0 1px 0 rgba(255,255,255,.08);
}

/* ─── IMPACT STATS ────────────────────────────────────── */
.impact {
  display: grid;
  grid-template-columns: repeat(4, minmax(0,1fr));
  gap: 12px;
}
.impact-card {
  padding: 28px 20px; border-radius: var(--radius2);
  background: linear-gradient(165deg, rgba(255,255,255,.06), rgba(255,255,255,.02));
  backdrop-filter: blur(16px) saturate(140%);
  -webkit-backdrop-filter: blur(16px) saturate(140%);
  border: 1px solid var(--stroke2);
  box-shadow: var(--shadow2);
  text-align: center;
  transition: transform var(--t2) var(--ease), border-color var(--t2) var(--ease);
}
.impact-card:hover { transform: translateY(-4px); border-color: rgba(155,123,255,.35); }
.impact-card h3 { font-size: clamp(2.2rem,3.2vw,3.1rem); letter-spacing: -.035em; background: linear-gradient(135deg, #fff, var(--accent2)); -webkit-background-clip: text; background-clip: text; -webkit-text-fill-color: transparent; }

/* ─── CARD — MEDIA (blog cards) ───────────────────────── */
.card-media {
  overflow: hidden; border-radius: var(--radius);
  background: linear-gradient(165deg, rgba(255,255,255,.06), rgba(255,255,255,.02));
  backdrop-filter: blur(16px) saturate(140%);
  -webkit-backdrop-filter: blur(16px) saturate(140%);
  border: 1px solid var(--stroke2);
  box-shadow: var(--shadow2);
  transition: border-color var(--t2) var(--ease), transform var(--t2) var(--ease), box-shadow var(--t2) var(--ease);
}
.card-media:hover {
  border-color: rgba(155,123,255,.35);
  transform: translateY(-5px);
  box-shadow: var(--shadow2), var(--shadowGlow);
}
.card-media .media {
  position: relative; height: 170px; overflow: hidden;
  border-bottom: 1px solid var(--stroke2);
  background: var(--surface);
}
.card-media .media img {
  width: 100%; height: 100%; object-fit: cover; transform: scale(1.02);
}
.card-media .content { padding: 16px 18px 20px; }
.card-media h3 { margin: 0 0 6px; letter-spacing: -.02em; font-size: 1rem; }

/* ─── CARD — MISC ─────────────────────────────────────── */
.card-top h3   { margin: 0 0 6px; letter-spacing: -.02em; }
.card-top p    { margin: 0; color: var(--muted); }
.card-actions  { display: grid; gap: 10px; margin-top: 14px; }
.card-divider  { height: 1px; background: var(--stroke2); margin: 14px 0; }
.card-badges   { display: flex; flex-wrap: wrap; gap: 8px; }

/* Shared paragraph colour inside cards */
.card-media p, .feature p, .sector p, .project p, .impact-card p {
  margin: 0; color: var(--muted); font-size: .98rem;
  font-weight: 500; line-height: 1.65;
}

/* ─── LINK ────────────────────────────────────────────── */
.link {
  text-decoration: none; font-weight: 700;
  color: var(--accent2);
  transition: color var(--t) ease;
}
.link:hover { text-decoration: underline; color: var(--accent); }

/* ─── TAG / PILL ──────────────────────────────────────── */
.tag {
  font-size: .82rem; padding: 6px 10px; border-radius: 999px;
  background: rgba(108,71,255,.10);
  border: 1px solid rgba(108,71,255,.18);
  color: var(--accent2);
}
.tag2 { border-color: rgba(31,203,255,.20); background: rgba(31,203,255,.10); color: #7dd3fc; }

/* ─── PROJECTS ────────────────────────────────────────── */
.projects {
  display: grid;
  grid-template-columns: repeat(3, minmax(0,1fr));
  gap: 14px;
}
.project {
  padding: 20px; border-radius: var(--radius2);
  background: rgba(255,255,255,.04);
  border: 1px solid var(--stroke2);
  box-shadow: var(--shadow2);
  transition: border-color var(--t) ease, transform var(--t) ease;
}
.project:hover { border-color: rgba(108,71,255,.22); transform: translateY(-2px); }
.project-top   { display: flex; gap: 8px; margin-bottom: 10px; }
.project h3    { margin: 0 0 8px; }
.project-foot  {
  display: flex; justify-content: space-between;
  align-items: center; gap: 10px; margin-top: 14px;
}

/* ─── FOOTPRINT / MAP ─────────────────────────────────── */
.footprint { display: grid; grid-template-columns: 1.1fr .9fr; gap: 14px; }
.map, .locations {
  padding: 20px; border-radius: var(--radius2);
  background: rgba(255,255,255,.04);
  border: 1px solid var(--stroke2); box-shadow: var(--shadow2);
}
.map-placeholder {
  min-height: 280px; border-radius: 18px;
  border: 1px dashed rgba(255,255,255,.12);
  background: rgba(255,255,255,.02);
  display: grid; place-items: center; color: var(--muted);
}
.list { list-style: none; padding: 0; margin: 12px 0 0; display: grid; gap: 10px; }
.pin {
  width: 9px; height: 9px; border-radius: 99px; display: inline-block;
  background: var(--accent); margin-right: 10px;
  box-shadow: 0 0 8px rgba(108,71,255,.40);
}

/* ─── PARTNERS / LOGO GRID ────────────────────────────── */
.partners-section {
  position: relative; overflow: hidden;
  padding: 72px 20px; text-align: center;
  background: rgba(255,255,255,.02);
  border-top: 1px solid var(--stroke2);
  border-bottom: 1px solid var(--stroke2);
}
.partners-section h2,
.section-title {
  font-size: clamp(1.3rem, 2vw, 1.7rem);
  font-weight: 700; margin-bottom: 8px;
}
.partners-section p,
.section-subtitle {
  max-width: 640px; margin: 0 auto 40px;
  color: var(--muted); font-weight: 500;
}

/* Logo cards */
.logo-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(160px, 1fr));
  gap: 16px; align-items: center;
}
.logo-tile {
  display: flex; justify-content: center; align-items: center;
  height: 110px; padding: 20px;
  background: linear-gradient(180deg, rgba(255,255,255,.06), rgba(255,255,255,.03));
  backdrop-filter: blur(8px);
  border-radius: 14px;
  border: 1px solid rgba(255,255,255,.09);
  box-shadow: 0 6px 20px rgba(0,0,0,.22);
  text-decoration: none;
  transition: transform .22s ease, box-shadow .22s ease, border-color .22s ease;
  animation: partnerFloat 6.5s ease-in-out infinite;
}
.logo-tile:nth-child(2) { animation-delay: .6s; }
.logo-tile:nth-child(3) { animation-delay: 1.2s; }
.logo-tile:nth-child(4) { animation-delay: 1.8s; }
.logo-tile:nth-child(5) { animation-delay: 2.4s; }
.logo-tile:nth-child(6) { animation-delay: 3.0s; }
@keyframes partnerFloat {
  0%, 100% { transform: translateY(0); }
  50%       { transform: translateY(-7px); }
}
.logo-tile img {
  max-width: 130px; max-height: 80px;
  object-fit: contain;
  filter: grayscale(100%) brightness(1.8);
  transition: filter .22s ease;
}
.logo-tile:hover {
  transform: translateY(-8px) scale(1.02);
  border-color: rgba(108,71,255,.28);
  box-shadow: 0 14px 36px rgba(0,0,0,.30), 0 0 0 1px rgba(108,71,255,.12);
}
.logo-tile:hover img { filter: grayscale(0%) brightness(1); }

/* ─── LOGO ROWS (partners page) ───────────────────────── */
.logo-rows { display: grid; grid-template-columns: repeat(2, minmax(0,1fr)); gap: 14px; }
.logos {
  padding: 20px; border-radius: var(--radius2);
  background: rgba(255,255,255,.04);
  border: 1px solid var(--stroke2); box-shadow: var(--shadow2);
}

/* ─── GALLERY ─────────────────────────────────────────── */
.gallery { display: grid; grid-template-columns: 1.05fr .95fr; gap: 14px; }
.gallery-frame {
  padding: 12px; border-radius: var(--radius2);
  display: flex; align-items: center; gap: 10px;
  background: rgba(255,255,255,.04);
  border: 1px solid var(--stroke2); box-shadow: var(--shadow2);
}
.gallery-viewport {
  flex: 1; border-radius: 16px; overflow: hidden;
  border: 1px solid var(--stroke2);
  background: rgba(255,255,255,.02);
  min-height: 320px; display: grid; place-items: center;
}
.gallery-viewport img {
  width: 100%; height: 320px; object-fit: cover;
  transition: opacity var(--t) ease;
}
.gal-btn {
  width: 40px; height: 40px; border-radius: 14px;
  border: 1px solid var(--stroke2);
  background: rgba(255,255,255,.04);
  color: rgba(241,245,249,.90); cursor: pointer;
  transition: transform var(--t) ease, background var(--t) ease;
}
.gal-btn:hover { transform: translateY(-1px); background: rgba(255,255,255,.08); }
.gallery-meta {
  padding: 20px; border-radius: var(--radius2);
  background: rgba(255,255,255,.04);
  border: 1px solid var(--stroke2); box-shadow: var(--shadow2);
}
.gallery-dots { display: flex; gap: 8px; margin-top: 14px; flex-wrap: wrap; }
.dotbtn {
  width: 8px; height: 8px; border-radius: 99px;
  border: 1px solid rgba(255,255,255,.18);
  background: rgba(255,255,255,.08); cursor: pointer;
}
.dotbtn.active {
  background: var(--accent); border-color: rgba(108,71,255,.30);
  box-shadow: 0 0 8px rgba(108,71,255,.40);
}

/* ─── TESTIMONIALS ────────────────────────────────────── */
.testimonials { display: flex; align-items: center; justify-content: center; gap: 14px; }
.t-btn {
  width: 40px; height: 40px; border-radius: 14px;
  border: 1px solid var(--stroke2);
  background: rgba(255,255,255,.04);
  color: rgba(241,245,249,.90); cursor: pointer;
  transition: background var(--t) ease, transform var(--t) ease;
}
.t-btn:hover { transform: translateY(-1px); background: rgba(255,255,255,.08); }
.t-card {
  width: min(780px, 100%); padding: 20px;
  border-radius: var(--radius2);
  background: rgba(255,255,255,.04);
  border: 1px solid var(--stroke2); box-shadow: var(--shadow2);
}

/* ─── NEWSLETTER ──────────────────────────────────────── */
.newsletter {
  padding: 20px; border-radius: var(--radius2);
  background: rgba(255,255,255,.04);
  border: 1px solid var(--stroke2); box-shadow: var(--shadow2);
  display: flex; align-items: center; justify-content: space-between; gap: 16px;
}
.nl-row, .nl-form {
  display: flex; gap: 10px; align-items: flex-start;
  flex-wrap: wrap; justify-content: flex-start;
}
.nl-row input, .nl-form input {
  min-width: 240px; flex: 1;
}
.form-msg { min-height: 18px; width: 100%; color: var(--muted); }

/* ─── FORMS ───────────────────────────────────────────── */
input, select, textarea {
  padding: 11px 14px; border-radius: 12px;
  border: 1px solid var(--stroke);
  background: rgba(255,255,255,.05);
  color: var(--text);
  outline: none;
  transition: border-color var(--t) ease, box-shadow var(--t) ease;
}
textarea { resize: vertical; min-height: 120px; }
input:focus, select:focus, textarea:focus {
  border-color: rgba(108,71,255,.35);
  box-shadow: 0 0 0 3px rgba(108,71,255,.12);
}
input::placeholder, textarea::placeholder { color: var(--muted2); }
select option { background: #141821; color: var(--text); }

label { font-weight: 700; color: rgba(241,245,249,.90); }
.err  { color: rgba(248,113,113,.95); min-height: 16px; font-size: .88rem; }

/* ─── FAQ ─────────────────────────────────────────────── */
.faq     { max-width: 900px; margin: 0 auto; display: grid; gap: 10px; }
.faq-item {
  padding: 10px; border-radius: var(--radius2);
  background: rgba(255,255,255,.04);
  border: 1px solid var(--stroke2); box-shadow: var(--shadow2);
}
.faq-q {
  width: 100%; display: flex; justify-content: space-between; align-items: center;
  padding: 12px 14px; border: none; background: transparent;
  color: rgba(241,245,249,.92); cursor: pointer; font-weight: 700;
  border-radius: 14px;
  transition: background var(--t) ease;
}
.faq-q:hover { background: rgba(255,255,255,.06); }
.faq-a { padding: 0 14px 14px; color: var(--muted); line-height: 1.65; }

/* ─── CONTACT ─────────────────────────────────────────── */
.contact { display: grid; grid-template-columns: 1.2fr .8fr; gap: 14px; }
.form {
  padding: 20px; border-radius: var(--radius2);
  background: rgba(255,255,255,.04);
  border: 1px solid var(--stroke); box-shadow: var(--shadow2);
}
.row   { display: grid; grid-template-columns: repeat(2, minmax(0,1fr)); gap: 12px; }
.field { display: flex; flex-direction: column; gap: 8px; margin-bottom: 12px; }
.form-actions { display: flex; align-items: center; gap: 10px; flex-wrap: wrap; }
.contact-aside {
  padding: 20px; border-radius: var(--radius2);
  background: rgba(255,255,255,.04);
  border: 1px solid var(--stroke2); box-shadow: var(--shadow2);
}
.aside-links   { display: grid; gap: 10px; margin-top: 10px; }
.aside-divider { height: 1px; background: var(--stroke2); margin: 16px 0; }

/* ─── BULLETS ─────────────────────────────────────────── */
.bullets { margin: 12px 0 0; padding-left: 18px; color: var(--muted); }
.bullets li { margin: 8px 0; }

/* ─── MODAL ───────────────────────────────────────────── */
.modal          { position: fixed; inset: 0; z-index: 16000; display: none; }
.modal.open     { display: block; }
.modal-backdrop { position: absolute; inset: 0; background: rgba(0,0,0,.72); backdrop-filter: blur(6px); -webkit-backdrop-filter: blur(6px); }
.modal-card {
  position: relative; width: min(860px, 94vw); margin: 7vh auto 0;
  padding: 28px; border-radius: var(--radius2);
  background: linear-gradient(165deg, rgba(28,24,48,.95), rgba(20,24,33,.97));
  backdrop-filter: blur(28px) saturate(160%);
  -webkit-backdrop-filter: blur(28px) saturate(160%);
  border: 1px solid rgba(155,123,255,.25);
  box-shadow: var(--shadow), 0 0 80px -20px rgba(108,71,255,.35);
}
.modal-top {
  display: flex; align-items: center;
  justify-content: space-between; gap: 10px; margin-bottom: 14px;
}
.modal-card.role-modal-card { width: min(760px, 94vw); max-height: 86vh; overflow-y: auto; }
.role-grid { display: grid; grid-template-columns: 1fr 1fr 1fr; gap: 20px; }
.role-grid-col p.role-grid-label {
  margin: 0 0 8px; font-weight: 700; font-size: .76rem; letter-spacing: .06em;
  text-transform: uppercase; color: var(--accent2);
}
.role-grid-col ul { margin: 0; padding-left: 16px; line-height: 1.65; color: var(--muted); font-size: .88rem; }
.role-grid-col ul li { margin-bottom: 6px; }
.role-details-btn {
  display: inline-flex; align-items: center; gap: 6px;
  background: none; border: none; padding: 0; cursor: pointer;
  color: var(--accent2); font-size: .9rem; font-weight: 600; font-family: inherit;
}
.role-details-btn:hover { text-decoration: underline; }
@media (max-width: 760px) {
  .role-grid { grid-template-columns: 1fr; gap: 18px; }
}
.video {
  width: 100%; border-radius: 16px;
  border: 1px solid var(--stroke); background: #000;
}

/* ─── FOOTER ──────────────────────────────────────────── */
.footer {
  position: relative;
  padding: 64px 0 24px;
  border-top: 1px solid var(--stroke2);
  background: rgba(7,8,12,.92);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
}
.footer::before {
  content: "";
  position: absolute; top: -1px; left: 0; right: 0; height: 1px;
  background: linear-gradient(90deg, transparent, rgba(108,71,255,.4), rgba(31,203,255,.25), transparent);
}
.footer-grid {
  display: grid;
  grid-template-columns: 1.4fr repeat(3, minmax(0,1fr));
  gap: 16px; align-items: start;
}
.footer-col    { display: flex; flex-direction: column; gap: 8px; }
.footer-col h4 { margin: 0 0 4px; font-size: .88rem; color: rgba(241,245,249,.68); letter-spacing: .08em; text-transform: uppercase; }
.footer-col a  { text-decoration: none; color: rgba(241,245,249,.78); font-size: .94rem; transition: color var(--t) ease; }
.footer-col a:hover { color: var(--accent2); }
.footer-bottom {
  margin-top: 18px; padding-top: 16px;
  border-top: 1px solid var(--stroke2);
  display: flex; justify-content: space-between; align-items: center;
  color: var(--muted); flex-wrap: wrap; gap: 12px;
}
.footer-bottom-left { display: flex; align-items: center; gap: 14px; flex-wrap: wrap; }
.footer-social { display: flex; align-items: center; gap: 8px; }
.footer-social a {
  display: inline-flex; align-items: center; justify-content: center;
  width: 30px; height: 30px; border-radius: 9px;
  background: rgba(255,255,255,.08); border: 1px solid var(--stroke2);
  color: rgba(241,245,249,.88); transition: background var(--t) ease, color var(--t) ease, border-color var(--t) ease, transform var(--t) ease;
}
.footer-social a:hover { background: rgba(108,71,255,.14); border-color: rgba(108,71,255,.30); color: #fff; transform: translateY(-1px); }
.to-top {
  width: 38px; height: 38px; border-radius: 12px;
  border: 1px solid var(--stroke2);
  background: rgba(255,255,255,.04); color: rgba(241,245,249,.70);
  cursor: pointer; transition: background var(--t) ease;
}
.to-top:hover { background: rgba(255,255,255,.08); }

/* ─── WHATSAPP FLOATING BUTTON ───────────────────────────── */
.wa-float {
  position: fixed; right: 22px; bottom: 22px; z-index: 15000;
  display: flex; align-items: center; gap: 10px;
}
.wa-float-tooltip {
  background: rgba(20,24,33,.97); color: #fff; font-size: .84rem; font-weight: 600;
  padding: 9px 14px; border-radius: 12px; border: 1px solid var(--stroke);
  box-shadow: var(--shadow2); white-space: nowrap;
  opacity: 0; transform: translateX(8px); pointer-events: none;
  transition: opacity .25s ease, transform .25s ease;
}
.wa-float:hover .wa-float-tooltip, .wa-float.show-tip .wa-float-tooltip { opacity: 1; transform: translateX(0); }
.wa-float-btn {
  position: relative; width: 56px; height: 56px; border-radius: 50%;
  background: linear-gradient(135deg, #25d366, #1faa56);
  display: flex; align-items: center; justify-content: center;
  box-shadow: 0 10px 28px rgba(37,211,102,.38), 0 2px 8px rgba(0,0,0,.25);
  color: #fff; border: none; cursor: pointer;
  transition: transform .25s ease, box-shadow .25s ease;
}
.wa-float-btn:hover { transform: scale(1.07); box-shadow: 0 14px 34px rgba(37,211,102,.48), 0 2px 8px rgba(0,0,0,.3); }
.wa-float-btn::before {
  content: ""; position: absolute; inset: -6px; border-radius: 50%;
  border: 2px solid rgba(37,211,102,.45);
  animation: wa-pulse 2.4s ease-out infinite;
}
.wa-float-btn svg { width: 28px; height: 28px; position: relative; z-index: 1; }
@keyframes wa-pulse {
  0%   { transform: scale(.92); opacity: .9; }
  70%  { transform: scale(1.35); opacity: 0; }
  100% { transform: scale(1.35); opacity: 0; }
}
@media (prefers-reduced-motion: reduce) {
  .wa-float-btn::before { animation: none; }
}
@media (max-width: 620px) {
  .wa-float { right: 14px; bottom: 14px; }
  .wa-float-btn { width: 50px; height: 50px; }
  .wa-float-btn svg { width: 24px; height: 24px; }
  .wa-float-tooltip { display: none; }
}

/* ─── REVEAL ANIMATION ────────────────────────────────── */
.reveal {
  opacity: 0; transform: translateY(12px);
  transition: opacity var(--t2) ease, transform var(--t2) ease;
}
.reveal.in { opacity: 1; transform: translateY(0); }

/* ─── TYPEWRITER ──────────────────────────────────────── */
.tw          { display: inline; white-space: normal; }
.tw .tw-text { display: inline; }
.tw .tw-caret {
  display: inline-block; vertical-align: -0.12em; margin-left: .10em;
  background: currentColor; opacity: .95;
  animation: tw-blink 850ms steps(1, end) infinite;
}
.tw--headline .tw-caret { width: .10em; height: 1.05em; border-radius: 2px; }
.tw--lead     .tw-caret { width: .08em; height: 1.00em; border-radius: 2px; opacity: .75; }
.tw.is-done .tw-caret   { opacity: .75; }
@keyframes tw-blink {
  0%, 49% { opacity: 1; }
  50%,100% { opacity: 0; }
}

/* ─── LANGUAGE SWITCHER ───────────────────────────────── */
.lang-switcher {
  display: flex; align-items: center; gap: 8px;
  margin-left: 12px; padding-left: 12px;
  border-left: 1px solid rgba(255,255,255,.08);
  position: relative; z-index: 12000; flex: 0 0 auto;
}
.lang-switcher .lang-link {
  display: inline-flex; align-items: center; justify-content: center;
  gap: 6px; height: 32px; min-width: 50px; padding: 0 10px;
  border-radius: 999px; font-weight: 800; font-size: 12.5px; letter-spacing: .2px;
  text-decoration: none; color: rgba(241,245,249,.92);
  background: rgba(255,255,255,.12);
  border: 1px solid rgba(255,255,255,.22);
  transition: transform .15s ease, background .15s ease, border-color .15s ease;
}
.lang-switcher .lang-link:hover {
  transform: translateY(-1px);
  background: rgba(255,255,255,.18); border-color: rgba(108,71,255,.40);
}
.lang-switcher .lang-link.is-active {
  color: #fff; border-color: transparent;
  background: linear-gradient(135deg, var(--accent), var(--accent2));
  box-shadow: 0 6px 18px rgba(108,71,255,.30);
}
.lang-switcher .flag { font-size: 15px; line-height: 1; }
.lang-switcher .code { font-weight: 900; letter-spacing: .08em; }


/* ─── WAVE DIVIDER ────────────────────────────────── */
.wave-divider {
  position: relative;
  height: 56px;
  overflow: hidden;
  pointer-events: none;
  margin-top: -1px;
}
.wave-divider svg {
  position: absolute;
  bottom: 0;
  left: 0;
  width: 100%;
  height: 100%;
}
.wave-1 {
  fill: rgba(108,71,255,.12);
  animation: wave-float 7s ease-in-out infinite;
}
.wave-2 {
  fill: rgba(0,212,255,.06);
  animation: wave-float 10s ease-in-out infinite reverse;
}
@keyframes wave-float {
  0%, 100% { transform: translateY(0); }
  50%       { transform: translateY(-10px); }
}

/* ─── REDUCED MOTION ──────────────────────────────────── */
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .reveal { transition: none; }
  .btn, .mini, .sector, .gal-btn, .t-btn, .stat { transition: none; }
  .section-media .bg-video { display: none; }
  .tw .tw-caret { animation: none; opacity: 0; }
  .logo-tile { animation: none; transition: none; }
  .wave-1, .wave-2 { animation: none; }
}

/* ─── RESPONSIVE ──────────────────────────────────────── */
@media (max-width: 860px) {
  .nav      { display: none !important; }
  .icon-btn { display: inline-flex !important; }
  .lang-switcher { margin-left: auto; padding-left: 0; border-left: none; order: 3; }
  #menuBtn { order: 4; }
  /* Inline 2/3/4-col grid splits (hero visuals, photo galleries, stat
     grids) authored as style="display:grid;grid-template-columns:1fr 1fr..."
     can't be reached by a class selector — collapse them to one column
     on mobile via attribute selector instead. */
  [style*="grid-template-columns:1fr 1fr"] { grid-template-columns: 1fr !important; }
}
@media (max-width: 980px) {
  .hero-grid           { grid-template-columns: 1fr; }
  .hero-stats          { grid-template-columns: repeat(3, minmax(0,1fr)); }
  .grid-3, .cards, .projects { grid-template-columns: 1fr 1fr; }
  .footprint, .gallery, .contact { grid-template-columns: 1fr; }
  .impact              { grid-template-columns: 1fr 1fr; }
  .footer-grid         { grid-template-columns: 1fr 1fr; }
  .newsletter          { flex-direction: column; align-items: flex-start; }
}
@media (max-width: 620px) {
  .hero-stats          { grid-template-columns: 1fr; }
  .grid-3, .cards, .projects, .logo-rows { grid-template-columns: 1fr; }
  .row                 { grid-template-columns: 1fr; }
  .footer-grid         { grid-template-columns: 1fr; }
  .gallery-viewport img { height: 240px; }
  .impact              { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 400px) {
  .impact { grid-template-columns: 1fr; }
}

/* ────────────────────────────────────────────────────────
   PREMIUM COMPONENT ADDITIONS — v2
   Layered depth, real photography, video backgrounds
   ──────────────────────────────────────────────────────── */

/* ─── GRADIENT TEXT ─────────────────────────────── */
.gradient-text {
  background: linear-gradient(135deg, #ffffff 30%, #a78bfa 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

/* ─── VIDEO HERO ────────────────────────────────── */
.hero-video {
  position: absolute; inset: 0;
  width: 100%; height: 100%; object-fit: cover;
  filter: brightness(.28) saturate(.75);
  pointer-events: none; z-index: 0;
}
.hero-overlay {
  position: absolute; inset: 0; z-index: 0;
  background:
    linear-gradient(180deg, rgba(7,9,16,.0) 0%, rgba(7,9,16,.70) 100%),
    linear-gradient(110deg, rgba(7,9,16,.88) 0%, rgba(108,71,255,.10) 55%, rgba(7,9,16,.70) 100%);
}
/* Accent glow spot behind headline */
.hero-glow {
  position: absolute; z-index: 0;
  width: 700px; height: 500px;
  top: -80px; left: -100px;
  background: radial-gradient(ellipse at center, rgba(108,71,255,.18) 0%, transparent 70%);
  pointer-events: none;
}

/* ─── CLOUD VEIL — signature drifting smoke/cloud motif ───
   Soft, slow-moving cloud-like masses in brand purple/cyan + a
   pale white wisp, on a dark "black diamond" ground. Reinforces
   "Kaevor Cloud" literally while reading as premium atmosphere
   rather than decoration. Layer behind hero-glow, in front of base bg. */
.cloud-veil {
  position: absolute; inset: -10% -10%; z-index: 0;
  overflow: hidden; pointer-events: none;
}
.cloud-veil::before, .cloud-veil::after {
  content: ""; position: absolute;
  width: 130%; height: 130%; top: -15%; left: -15%;
  background:
    radial-gradient(ellipse 46% 32% at 26% 30%, rgba(241,245,249,.09) 0%, transparent 62%),
    radial-gradient(ellipse 40% 30% at 70% 58%,  rgba(108,71,255,.26)  0%, transparent 65%),
    radial-gradient(ellipse 34% 26% at 46% 84%,  rgba(31,203,255,.16)  0%, transparent 60%),
    radial-gradient(ellipse 28% 22% at 90% 14%,  rgba(155,123,255,.20) 0%, transparent 58%);
  filter: blur(42px);
  will-change: transform;
  animation: cloud-drift 38s ease-in-out infinite alternate;
}
.cloud-veil::after {
  animation-duration: 52s;
  animation-direction: alternate-reverse;
  opacity: .75;
  filter: blur(52px);
}
@keyframes cloud-drift {
  0%   { transform: translate(0,0) scale(1); }
  50%  { transform: translate(3%, -2.5%) scale(1.07); }
  100% { transform: translate(-2.5%, 3%) scale(1.02); }
}
@media (prefers-reduced-motion: reduce) {
  .cloud-veil::before, .cloud-veil::after { animation: none; }
}

/* ─── LOGO SCROLL STRIP ─────────────────────────── */
.logo-strip {
  overflow: hidden;
  mask-image: linear-gradient(90deg, transparent 0%, black 8%, black 92%, transparent 100%);
  -webkit-mask-image: linear-gradient(90deg, transparent 0%, black 8%, black 92%, transparent 100%);
  padding: 4px 0;
}
.logo-strip-track {
  display: flex; gap: 48px; align-items: center;
  width: max-content;
  animation: strip-scroll 40s linear infinite;
}
.logo-strip-track:hover { animation-play-state: paused; }
@keyframes strip-scroll {
  0%   { transform: translateX(0); }
  100% { transform: translateX(-50%); }
}
.logo-strip-track,
.tscroll { list-style: none; margin: 0; padding: 0; }
.logo-strip-item,
.tscroll-item { list-style: none; }

.logo-strip-item {
  display: flex; align-items: center; justify-content: center;
  flex-shrink: 0; width: 130px; height: 54px;
}
.logo-strip-item img {
  max-width: 110px; max-height: 46px; object-fit: contain;
  filter: grayscale(100%) brightness(2.2) opacity(.55);
  transition: filter .35s ease, transform .35s ease;
}
.logo-strip-item img:hover {
  filter: grayscale(0%) brightness(1) opacity(1);
  transform: scale(1.10);
}

/* ─── TEAM CARDS ────────────────────────────────── */
.team-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0,1fr));
  gap: 14px;
}
.team-card {
  border-radius: var(--radius2); overflow: hidden;
  background: linear-gradient(165deg, rgba(255,255,255,.06), rgba(255,255,255,.02));
  backdrop-filter: blur(16px) saturate(140%);
  -webkit-backdrop-filter: blur(16px) saturate(140%);
  border: 1px solid var(--stroke2);
  transition: border-color var(--t2) var(--ease), transform var(--t2) var(--ease), box-shadow var(--t2) var(--ease);
}
.team-card:hover {
  border-color: rgba(155,123,255,.40);
  transform: translateY(-6px) scale(1.015);
  box-shadow: var(--shadow), var(--shadowGlow);
}
.team-photo {
  position: relative; height: 240px; overflow: hidden;
  background: var(--surface);
}
.team-photo img {
  width: 100%; height: 100%;
  object-fit: cover; object-position: top center;
  transition: transform .5s ease;
}
.team-card:hover .team-photo img { transform: scale(1.06); }
.team-photo-overlay {
  position: absolute; inset: 0;
  background: linear-gradient(180deg, transparent 55%, rgba(7,9,16,.70) 100%);
}
.team-body { padding: 14px 16px 18px; }
.team-body h3 { margin: 0 0 4px; font-size: .97rem; letter-spacing: -.02em; }
.team-role { color: var(--accent2); font-size: .83rem; font-weight: 600; }

/* ─── TESTIMONIAL SCROLL ────────────────────────── */
.tscroll {
  display: flex; gap: 14px;
  overflow-x: auto; scroll-snap-type: x mandatory;
  scrollbar-width: none; -ms-overflow-style: none;
  padding: 4px 2px 14px;
}
.tscroll::-webkit-scrollbar { display: none; }
.tscroll-item {
  flex: 0 0 min(400px, 84vw); scroll-snap-align: start;
  padding: 26px;
  border-radius: var(--radius2);
  background: linear-gradient(165deg, rgba(255,255,255,.07), rgba(255,255,255,.02));
  backdrop-filter: blur(18px) saturate(140%);
  -webkit-backdrop-filter: blur(18px) saturate(140%);
  border: 1px solid var(--stroke2);
  display: flex; flex-direction: column; gap: 14px;
  box-shadow: var(--shadow2);
  transition: border-color var(--t2) var(--ease), transform var(--t2) var(--ease), box-shadow var(--t2) var(--ease);
}
.tscroll-item:hover { border-color: rgba(155,123,255,.35); transform: translateY(-4px); box-shadow: var(--shadow2), var(--shadowGlow); }
.tscroll-stars { color: var(--sheen); font-size: .88rem; letter-spacing: 2px; }
.tscroll-quote {
  font-size: .96rem; line-height: 1.70;
  color: rgba(241,245,249,.90); flex: 1;
}
.tscroll-author {
  display: flex; align-items: center; gap: 12px;
  border-top: 1px solid var(--stroke2); padding-top: 12px;
}
.tscroll-avatar {
  width: 42px; height: 42px; border-radius: 50%;
  object-fit: cover; object-position: top;
  border: 2px solid rgba(108,71,255,.30); flex-shrink: 0;
}
.tscroll-name { font-weight: 700; font-size: .91rem; }
.tscroll-role { font-size: .81rem; color: var(--muted); margin-top: 2px; }

/* ─── TRAINING / COURSE CARDS ───────────────────── */
.course-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0,1fr));
  gap: 14px;
}
.course-card {
  border-radius: var(--radius2); overflow: hidden;
  background: linear-gradient(165deg, rgba(255,255,255,.06), rgba(255,255,255,.02));
  backdrop-filter: blur(16px) saturate(140%);
  -webkit-backdrop-filter: blur(16px) saturate(140%);
  border: 1px solid var(--stroke2);
  box-shadow: var(--shadow2);
  transition: border-color var(--t2) var(--ease), transform var(--t2) var(--ease), box-shadow var(--t2) var(--ease);
  text-decoration: none; display: block; color: inherit;
}
.course-card:hover {
  border-color: rgba(155,123,255,.40);
  transform: translateY(-6px);
  box-shadow: var(--shadow), var(--shadowGlow);
}
.course-thumb {
  height: 160px; overflow: hidden; position: relative;
  border-bottom: 1px solid var(--stroke2);
  background: var(--surface);
}
.course-thumb img {
  width: 100%; height: 100%; object-fit: cover;
  transition: transform .5s ease;
}
.course-card:hover .course-thumb img { transform: scale(1.06); }
.course-badge {
  position: absolute; top: 10px; left: 10px;
  padding: 4px 10px; border-radius: 999px;
  background: rgba(108,71,255,.80);
  backdrop-filter: blur(8px);
  font-size: .76rem; font-weight: 700; color: #fff;
}
.course-body { padding: 14px; }
.course-body h3 { margin: 0 0 6px; letter-spacing: -.02em; font-size: .93rem; }

/* ─── IMPACT SECTION (video bg) ─────────────────── */
.impact-video-section {
  position: relative; overflow: hidden;
}
.impact-video-section .impact-vid {
  position: absolute; inset: 0;
  width: 100%; height: 100%; object-fit: cover;
  filter: brightness(.18) saturate(.5);
  pointer-events: none; z-index: 0;
}
.impact-video-section .impact-overlay {
  position: absolute; inset: 0; z-index: 0;
  background: linear-gradient(135deg,
    rgba(7,9,16,.88) 0%,
    rgba(108,71,255,.18) 50%,
    rgba(7,9,16,.88) 100%
  );
}
.impact-video-section > .container { position: relative; z-index: 1; }
.impact-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0,1fr));
  gap: 12px;
}
.impact-stat {
  padding: 28px 20px; border-radius: var(--radius2);
  background: rgba(255,255,255,.07);
  border: 1px solid rgba(255,255,255,.12);
  backdrop-filter: blur(12px);
  text-align: center;
}
.impact-stat-num {
  font-size: clamp(2.4rem, 4vw, 3.4rem);
  font-weight: 900; letter-spacing: -.04em;
  background: linear-gradient(135deg, #fff, var(--accent2));
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  line-height: 1.1;
}
.impact-stat-label {
  font-size: .88rem; color: rgba(241,245,249,.80);
  margin-top: 8px; line-height: 1.45;
}

/* ─── VIDEO PANEL (events) ──────────────────────── */
.vid-panel {
  position: relative; overflow: hidden;
  border-radius: var(--radius2);
  border: 1px solid var(--stroke2);
  background: var(--surface);
}
.vid-panel video, .vid-panel img.vid-poster {
  width: 100%; aspect-ratio: 16/9; object-fit: cover; display: block;
}
.vid-panel-overlay {
  position: absolute; inset: 0;
  display: flex; align-items: center; justify-content: center;
  background: rgba(7,9,16,.35);
  cursor: pointer;
  transition: background var(--t) ease;
}
.vid-panel:hover .vid-panel-overlay { background: rgba(7,9,16,.15); }
.vid-play {
  width: 68px; height: 68px; border-radius: 50%;
  background: rgba(255,255,255,.16);
  border: 2px solid rgba(255,255,255,.30);
  backdrop-filter: blur(10px);
  display: flex; align-items: center; justify-content: center;
  transition: transform var(--t) ease, background var(--t) ease;
}
.vid-panel:hover .vid-play {
  transform: scale(1.08);
  background: rgba(108,71,255,.40);
  border-color: rgba(108,71,255,.50);
}

/* ─── SPLIT LAYOUT ──────────────────────────────── */
.split {
  display: grid;
  grid-template-columns: 1.1fr .9fr;
  gap: 28px; align-items: center;
}
.split-visual img {
  width: 100%; border-radius: var(--radius2);
  object-fit: cover; display: block;
  border: 1px solid var(--stroke2);
}

/* ─── EVENT SECTION ─────────────────────────────── */
.event-grid {
  display: grid;
  grid-template-columns: 1.35fr .65fr;
  gap: 14px;
}
.event-main {
  border-radius: var(--radius2); overflow: hidden;
  position: relative; min-height: 360px;
  border: 1px solid var(--stroke2);
}
.event-main video, .event-main img.event-cover {
  width: 100%; height: 100%;
  min-height: 360px; object-fit: cover; display: block;
}
.event-main-overlay {
  position: absolute; inset: 0;
  background: linear-gradient(180deg, transparent 30%, rgba(7,9,16,.88) 100%);
}
.event-main-info { position: absolute; bottom: 0; left: 0; right: 0; padding: 24px; }
.event-side { display: flex; flex-direction: column; gap: 14px; }
.event-mini {
  border-radius: var(--radius2); overflow: hidden;
  position: relative; flex: 1;
  border: 1px solid var(--stroke2); min-height: 160px;
}
.event-mini img {
  width: 100%; height: 100%; min-height: 160px;
  object-fit: cover; display: block;
}
.event-mini-overlay {
  position: absolute; inset: 0;
  background: linear-gradient(180deg, transparent 40%, rgba(7,9,16,.82) 100%);
}
.event-mini-info { position: absolute; bottom: 0; left: 0; right: 0; padding: 14px; }

/* ─── STEP CARDS ────────────────────────────────── */
.steps-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0,1fr));
  gap: 14px;
}
.step-item {
  padding: 24px; border-radius: var(--radius2);
  background: rgba(255,255,255,.04);
  border: 1px solid var(--stroke2);
}
.step-num {
  display: block;
  font-size: 3.2rem; font-weight: 900;
  color: rgba(108,71,255,.18);
  letter-spacing: -.05em;
  line-height: 1; margin-bottom: 14px;
}
.step-item h3 { margin: 0 0 8px; }

/* ─── RESPONSIVE ADDITIONS ──────────────────────── */
@media (max-width: 980px) {
  .team-grid   { grid-template-columns: repeat(2, minmax(0,1fr)); }
  .course-grid { grid-template-columns: repeat(2, minmax(0,1fr)); }
  .impact-grid { grid-template-columns: repeat(2, minmax(0,1fr)); }
  .split       { grid-template-columns: 1fr; }
  .event-grid  { grid-template-columns: 1fr; }
  .steps-grid  { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 620px) {
  .team-grid   { grid-template-columns: repeat(2, minmax(0,1fr)); }
  .course-grid { grid-template-columns: 1fr 1fr; }
  .impact-grid { grid-template-columns: repeat(2, minmax(0,1fr)); }
  .steps-grid  { grid-template-columns: 1fr; }
  .event-grid  { grid-template-columns: 1fr; }
}
