/* ============================================================
   FORSYS WEBSITE — BASE.CSS
   Design system tokens, resets, nav, footer, and shared components
   Extracted from forsys-website-concept.netlify.app
   ============================================================ */

/* ── FONTS ───────────────────────────────────────────────── */
@font-face {
  font-family: 'Inter';
  font-style: normal;
  font-weight: 300 900;
  font-display: swap;
  src: url('../fonts/Inter.woff2') format('woff2');
}
@font-face {
  font-family: 'Space Grotesk';
  font-style: normal;
  font-weight: 300 800;
  font-display: swap;
  src: url('../fonts/SpaceGrotesk.woff2') format('woff2');
}

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

/* ── DESIGN TOKENS ───────────────────────────────────────── */
:root {
  /* Core palette */
  --white:          #FFFFFF;
  --lavender:       #ECEEFF;
  --lavender-mid:   #E4E8FF;
  --bg:             #F5F6FF;
  --border:         #E2E6F3;
  --border-strong:  #C9CEEB;

  /* Brand colors */
  --purple:         #6B48FF;
  --purple-dark:    #4B2FD4;
  --teal:           #00B4D8;
  --purple-light:   rgba(107, 72, 255, 0.08);
  --purple-glow:    rgba(107, 72, 255, 0.22);

  /* Text */
  --text-primary:   #0D0D2B;
  --text-secondary: #4A4F6A;
  --text-muted:     #8B90A7;

  /* Gradients */
  --gradient-ai:   linear-gradient(90deg, #6B48FF 0%, #00B4D8 100%);
  --gradient-hero: linear-gradient(160deg, #ECEEFF 0%, #E8EEFF 50%, #EAF4FF 100%);
  --gradient-dark: linear-gradient(135deg, #0D0D2B 0%, #1E1B4B 100%);

  /* Layout */
  --nav-h:          68px;
  --container-max:  1120px;
  --section-pad:    96px 48px;
  --radius-card:    16px;
  --radius-card-lg: 18px;
  --radius-pill:    100px;
}

/* ── BASE ────────────────────────────────────────────────── */
html { scroll-behavior: smooth; }
body {
  font-family: 'Inter', sans-serif;
  background: var(--white);
  color: var(--text-primary);
  overflow-x: hidden;
}

/* ── NAV ─────────────────────────────────────────────────── */
nav {
  position: fixed; top: 0; left: 0; right: 0; z-index: 200;
  display: flex; align-items: center; justify-content: space-between;
  padding: 0 48px; height: var(--nav-h);
  background: rgba(236, 238, 255, 0.92);
  backdrop-filter: blur(20px); -webkit-backdrop-filter: blur(20px);
  border-bottom: 1px solid var(--border);
  transition: box-shadow 0.2s;
}
.nav-logo { display: flex; align-items: center; gap: 10px; text-decoration: none; }
/* .nav-logo-mark — replaced by PNG logo image
.nav-logo-mark {
  width: 34px; height: 34px; border-radius: 8px;
  background: var(--gradient-ai);
  display: flex; align-items: center; justify-content: center;
  font-weight: 900; font-size: 17px; color: #fff;
} */
/* .nav-logo-text — replaced by PNG logo image
.nav-logo-text { font-size: 18px; font-weight: 800; color: var(--text-primary); letter-spacing: -0.4px; } */
.nav-logo-img { height: 48px; width: auto; display: block; transition: filter 0.2s; }
footer .nav-logo-img { filter: brightness(0) invert(1); height: 44px; }

.nav-center { display: flex; align-items: center; gap: 2px; }
.nav-item { position: relative; }
/* Invisible bridge fills the gap between button and panel so :hover stays active */
.nav-item::after { content: ''; position: absolute; top: 100%; left: -8px; right: -8px; height: 12px; }
.nav-link {
  display: flex; align-items: center; gap: 4px;
  color: var(--text-secondary); text-decoration: none;
  font-size: 14px; font-weight: 500; padding: 8px 12px; border-radius: 8px;
  cursor: pointer; white-space: nowrap; background: none; border: none;
  font-family: inherit; transition: color 0.15s, background 0.15s;
}
.nav-link:hover, .nav-item:hover > .nav-link { color: var(--text-primary); background: rgba(13, 13, 43, 0.04); }
.nav-link svg { width: 12px; height: 12px; transition: transform 0.2s; }
.nav-item:hover > .nav-link svg { transform: rotate(180deg); }

/* JS-driven open state — keyboard / click / touch */
.nav-item--open > .nav-link { color: var(--text-primary); background: rgba(13, 13, 43, 0.04); }
.nav-item--open > .nav-link svg { transform: rotate(180deg); }
.nav-item--open .mega-menu { opacity: 1; visibility: visible; pointer-events: auto; transform: translateX(-50%) translateY(0); }
.nav-item--open .mega-menu--wide { transform: translateX(-50%) translateY(0); }
.nav-item--open .dropdown { opacity: 1; visibility: visible; pointer-events: auto; transform: translateY(0); }

/* Focus-visible rings */
.nav-link:focus-visible,
.dropdown a:focus-visible,
.mega-col ul li a:focus-visible,
.btn-nav-ghost:focus-visible,
.btn-nav-primary:focus-visible { outline: 2px solid var(--purple); outline-offset: 2px; }

/* Mega menu */
.mega-menu {
  position: absolute; top: calc(100% + 8px); left: 50%;
  background: var(--white); border: 1.5px solid var(--border);
  border-radius: 16px; padding: 24px; box-shadow: 0 20px 60px rgba(13, 13, 43, 0.12);
  opacity: 0; visibility: hidden; pointer-events: none;
  transition: opacity 0.18s, transform 0.18s, visibility 0.18s;
  transform: translateX(-50%) translateY(-6px); min-width: 860px;
  overflow: hidden;
}
/* Gradient accent line at top of all mega menus */
.mega-menu::before {
  content: ''; position: absolute; top: 0; left: 0; right: 0; height: 3px;
  background: var(--gradient-ai); border-radius: 16px 16px 0 0; z-index: 2;
}
.nav-item:hover .mega-menu { opacity: 1; visibility: visible; pointer-events: auto; transform: translateX(-50%) translateY(0); }
.mega-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 0; }
.mega-col { padding: 0 20px; border-right: 1px solid var(--border); }
.mega-col:first-child { padding-left: 0; }
.mega-col:last-child { border-right: none; padding-right: 0; }
.mega-col-title { font-size: 10.5px; font-weight: 700; letter-spacing: 0.08em; text-transform: uppercase; color: var(--purple); margin-bottom: 12px; }
.mega-col ul { list-style: none; display: flex; flex-direction: column; gap: 1px; }
.mega-col ul li a { display: block; padding: 6px 8px; border-radius: 6px; font-size: 13px; color: var(--text-secondary); text-decoration: none; transition: all 0.12s; font-weight: 500; }
.mega-col ul li a:hover { color: var(--purple); background: var(--purple-light); }
.mega-col ul li a small { display: block; font-size: 11px; color: var(--text-muted); font-weight: 400; margin-top: 1px; }

/* Dropdown */
.dropdown {
  position: absolute; top: calc(100% + 8px); left: 0;
  background: var(--white); border: 1.5px solid var(--border);
  border-radius: 12px; padding: 6px 6px 8px; box-shadow: 0 12px 40px rgba(13, 13, 43, 0.10);
  min-width: 230px; opacity: 0; visibility: hidden; pointer-events: none;
  transition: opacity 0.18s, transform 0.18s, visibility 0.18s; transform: translateY(-6px);
  overflow: hidden;
}
/* Gradient accent line at top of all dropdowns */
.dropdown::before {
  content: ''; position: absolute; top: 0; left: 0; right: 0; height: 3px;
  background: var(--gradient-ai); border-radius: 12px 12px 0 0; z-index: 2;
}
.nav-item:hover .dropdown { opacity: 1; visibility: visible; pointer-events: auto; transform: translateY(0); }
.dropdown a { display: block; padding: 8px 10px; border-radius: 8px; font-size: 13.5px; color: var(--text-secondary); text-decoration: none; transition: all 0.12s; font-weight: 500; }
.dropdown a:hover { color: var(--purple); background: var(--purple-light); }
/* Dropdown group labels & dividers (used in Partnerships) */
.dropdown-group-label {
  display: block; font-size: 10px; font-weight: 700; letter-spacing: 0.1em;
  text-transform: uppercase; color: var(--purple);
  padding: 10px 10px 4px; pointer-events: none;
}
.dropdown-group-label:first-child { padding-top: 14px; }
.dropdown-divider { height: 1px; background: var(--border); margin: 4px 6px 6px; }

/* Nav buttons */
.nav-right { display: flex; align-items: center; gap: 10px; }
.btn-nav-ghost {
  color: var(--text-secondary); font-size: 14px; font-weight: 500;
  text-decoration: none; padding: 8px 18px;
  border: 1.5px solid var(--border-strong); border-radius: var(--radius-pill);
  background: var(--white); transition: all 0.15s;
}
.btn-nav-ghost:hover { color: var(--text-primary); border-color: var(--purple); }
.btn-nav-primary {
  background: var(--purple); color: #fff;
  font-size: 14px; font-weight: 600; text-decoration: none;
  padding: 10px 22px; border-radius: var(--radius-pill); border: none; cursor: pointer;
  box-shadow: 0 4px 16px var(--purple-glow); transition: all 0.15s;
}
.btn-nav-primary:hover { background: var(--purple-dark); transform: translateY(-1px); }

/* ── SHARED LAYOUT ───────────────────────────────────────── */
section { padding: 96px 48px; }
.container { max-width: var(--container-max); margin: 0 auto; }

/* ── SECTION LABEL (outlined pill) ──────────────────────── */
.section-label {
  display: inline-flex; align-items: center;
  font-size: 11.5px; font-weight: 600; letter-spacing: 0.1em;
  text-transform: uppercase; color: var(--purple);
  border: 1.5px solid var(--purple); border-radius: var(--radius-pill);
  padding: 5px 14px; margin-bottom: 18px;
  background: transparent;
}
.section-title {
  font-family: 'Space Grotesk', sans-serif;
  font-size: clamp(32px, 3.8vw, 54px); font-weight: 800;
  letter-spacing: -0.03em; line-height: 1.08;
  color: var(--text-primary); margin-bottom: 14px;
}
.section-sub { font-size: 17px; color: var(--text-secondary); line-height: 1.65; max-width: 560px; }
.section-header { margin-bottom: 52px; }
.text-center { text-align: center; }
.text-center .section-sub { margin: 0 auto; }

/* ── GRADIENT TEXT ───────────────────────────────────────── */
.gradient-text {
  background: var(--gradient-ai);
  -webkit-background-clip: text; -webkit-text-fill-color: transparent; background-clip: text;
}

/* ── BADGE / TAG CHIPS ───────────────────────────────────── */
.tag {
  display: inline-block; font-size: 10.5px; font-weight: 700;
  letter-spacing: 0.06em; text-transform: uppercase;
  border-radius: var(--radius-pill); padding: 3px 10px;
}
.tag-purple { background: var(--purple-light); color: var(--purple); border: 1px solid rgba(107, 72, 255, 0.2); }
.tag-green  { background: #DCFCE7; color: #16A34A; }
.tag-blue   { background: #DBEAFE; color: #2563EB; }

/* ── HERO BADGE (outlined pill, blinking dot) ────────────── */
.hero-badge {
  display: inline-flex; align-items: center; gap: 8px;
  background: transparent; border: 1.5px solid var(--purple);
  border-radius: var(--radius-pill); padding: 7px 18px 7px 14px;
  font-size: 13px; font-weight: 600; color: var(--purple);
  letter-spacing: 0.07em; text-transform: uppercase; margin-bottom: 28px;
}
.badge-dot {
  width: 7px; height: 7px; background: var(--purple); border-radius: 50%;
  animation: blink 2s infinite; flex-shrink: 0;
}
@keyframes blink { 0%, 100% { opacity: 1; transform: scale(1); } 50% { opacity: 0.3; transform: scale(0.65); } }

/* ── HERO BUTTONS (on dark gradient hero sections) ───────── */
.btn-hero-primary {
  background: #fff; color: var(--purple);
  font-size: 15px; font-weight: 700; text-decoration: none;
  padding: 14px 32px; border-radius: var(--radius-pill);
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.18); transition: all 0.2s;
  display: inline-flex; align-items: center; gap: 8px;
}
.btn-hero-primary:hover { background: var(--lavender); transform: translateY(-2px); box-shadow: 0 8px 32px rgba(0, 0, 0, 0.22); }

.btn-hero-secondary {
  color: rgba(255, 255, 255, 0.9); font-size: 15px; font-weight: 500;
  text-decoration: none; padding: 14px 32px;
  border: 1.5px solid rgba(255, 255, 255, 0.4);
  border-radius: var(--radius-pill);
  background: rgba(255, 255, 255, 0.12);
  transition: all 0.2s;
  display: inline-flex; align-items: center; gap: 8px;
}
.btn-hero-secondary:hover { background: rgba(255, 255, 255, 0.22); border-color: rgba(255, 255, 255, 0.7); color: #fff; }

/* ── BUTTONS (CTA strip variants) ───────────────────────── */
.btn-primary {
  background: var(--purple); color: #fff;
  font-size: 15px; font-weight: 600; text-decoration: none;
  padding: 14px 32px; border-radius: var(--radius-pill);
  box-shadow: 0 6px 24px var(--purple-glow); transition: all 0.2s;
  display: inline-flex; align-items: center; gap: 8px;
}
.btn-primary:hover { background: var(--purple-dark); transform: translateY(-2px); box-shadow: 0 10px 32px var(--purple-glow); }

.btn-secondary {
  color: var(--text-secondary); font-size: 15px; font-weight: 500;
  text-decoration: none; padding: 14px 32px;
  border: 1.5px solid var(--border-strong); border-radius: var(--radius-pill);
  background: rgba(255, 255, 255, 0.7); transition: all 0.2s;
  display: inline-flex; align-items: center; gap: 8px;
}
.btn-secondary:hover { color: var(--text-primary); border-color: var(--purple); background: var(--white); }

.btn-cta-white {
  background: #fff; color: var(--purple); font-size: 15px; font-weight: 700;
  text-decoration: none; padding: 14px 32px; border-radius: var(--radius-pill);
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.15); transition: all 0.2s;
  display: inline-flex; align-items: center; gap: 8px;
}
.btn-cta-white:hover { transform: translateY(-2px); box-shadow: 0 8px 32px rgba(0, 0, 0, 0.2); }

.btn-cta-outline {
  color: rgba(255, 255, 255, 0.85); font-size: 15px; font-weight: 500;
  text-decoration: none; padding: 14px 32px;
  border: 1.5px solid rgba(255, 255, 255, 0.3); border-radius: var(--radius-pill); transition: all 0.2s;
  display: inline-flex; align-items: center; gap: 8px;
}
.btn-cta-outline:hover { border-color: rgba(255, 255, 255, 0.7); color: #fff; }

/* ── ACCORDION ───────────────────────────────────────────── */
.accord-list { list-style: none; border-top: 1px solid var(--border); }
.accord-item { border-bottom: 1px solid var(--border); cursor: pointer; transition: background 0.15s; }
.accord-header {
  display: flex; align-items: center; justify-content: space-between;
  padding: 16px 12px; font-size: 15px; font-weight: 600;
  color: var(--text-secondary); transition: color 0.15s;
}
.accord-item.active .accord-header { color: var(--purple); }
.accord-header::after { content: '+'; font-size: 20px; font-weight: 300; color: var(--text-muted); transition: transform 0.2s; }
.accord-item.active .accord-header::after { content: '−'; color: var(--purple); }
.accord-body {
  max-height: 0;
  overflow: hidden;
  padding: 0 12px;
  transition: max-height 0.28s ease, padding-bottom 0.28s ease;
}
.accord-item.active .accord-body {
  max-height: 280px;
  padding-bottom: 16px;
}
.accord-body ul { list-style: none; display: flex; flex-direction: column; gap: 7px; }
.accord-body ul li { font-size: 13px; color: var(--text-secondary); display: flex; align-items: center; gap: 8px; }
.accord-body ul li::before { content: '·'; color: var(--purple); font-size: 20px; line-height: 1; flex-shrink: 0; }

/* ── PLATFORM TABS ───────────────────────────────────────── */
.platform-tabs { display: flex; gap: 8px; margin-bottom: 32px; flex-wrap: wrap; }
.ptab {
  padding: 8px 18px; border-radius: var(--radius-pill); border: 1.5px solid var(--border);
  font-family: Inter, sans-serif; font-size: 13px; font-weight: 600; color: var(--text-secondary);
  cursor: pointer; transition: all 0.18s; background: var(--white);
}
.ptab:hover { border-color: var(--purple); color: var(--purple); }
.ptab.active { background: var(--purple); color: #fff; border-color: var(--purple); }
.platform-content { display: none; }
.platform-content.active { display: block; }

/* ── STATS BAR ───────────────────────────────────────────── */
.stats-bar {
  display: grid; grid-template-columns: repeat(4, 1fr);
  background: var(--white); border: 1.5px solid var(--border);
  border-radius: var(--radius-card-lg); overflow: hidden; max-width: 700px; margin: 0 auto 56px;
  box-shadow: 0 8px 32px rgba(13, 13, 43, 0.08);
}
.stat-item { padding: 22px 14px; text-align: center; border-right: 1px solid var(--border); }
.stat-item:last-child { border-right: none; }
.stat-number {
  font-family: 'Space Grotesk', sans-serif; font-size: 40px; font-weight: 800;
  background: var(--gradient-ai); -webkit-background-clip: text;
  -webkit-text-fill-color: transparent; background-clip: text;
  line-height: 1; margin-bottom: 4px;
}
.stat-label { font-size: 11.5px; color: var(--text-muted); font-weight: 500; }

/* ── CARDS — shared base ─────────────────────────────────── */
.card-base {
  background: var(--bg); border: 1.5px solid var(--border);
  border-radius: var(--radius-card); transition: all 0.2s;
}
.card-base:hover { background: var(--white); border-color: var(--purple); box-shadow: 0 8px 32px rgba(107, 72, 255, 0.10); transform: translateY(-3px); }

/* ── SECTION SURFACE SYSTEM ──────────────────────────────── */
/* White section → lavender card; Lavender section → white card */

.card-on-white {
  background: var(--bg); border: 1.5px solid var(--border);
  border-radius: var(--radius-card); transition: all 0.2s;
}
.card-on-white:hover { background: var(--white); border-color: var(--purple); box-shadow: 0 8px 32px rgba(107, 72, 255, 0.10); transform: translateY(-3px); }

.card-on-bg {
  background: var(--white); border: 1.5px solid var(--border);
  border-radius: var(--radius-card); transition: all 0.2s;
}
.card-on-bg:hover { border-color: var(--purple); box-shadow: 0 8px 32px rgba(107, 72, 255, 0.10); transform: translateY(-3px); }

/* ── CARD TYPOGRAPHY ─────────────────────────────────────── */
.card-title {
  font-family: 'Space Grotesk', sans-serif;
  font-size: 17px; font-weight: 700; line-height: 1.3;
  color: var(--text-primary); margin-bottom: 8px;
}
.card-body {
  font-family: Inter, sans-serif;
  font-size: 13.5px; font-weight: 400; line-height: 1.6;
  color: var(--text-secondary);
}
.card-meta {
  font-family: Inter, sans-serif;
  font-size: 11.5px; font-weight: 500;
  color: var(--text-muted);
}
.card-label {
  font-family: Inter, sans-serif;
  font-size: 10.5px; font-weight: 700;
  letter-spacing: 0.07em; text-transform: uppercase;
  color: var(--text-muted);
}

/* ── SECTION SUBHEADING ──────────────────────────────────── */
.section-subheading {
  font-family: 'Space Grotesk', sans-serif;
  font-size: clamp(20px, 2.4vw, 28px); font-weight: 700;
  letter-spacing: -0.02em; color: var(--text-primary); margin-bottom: 12px;
}

/* ── ICON BADGES ─────────────────────────────────────────── */
.icon-badge {
  width: 52px; height: 52px; border-radius: 14px; flex-shrink: 0;
  background: var(--purple-light); border: 1px solid rgba(107, 72, 255, 0.15);
  display: flex; align-items: center; justify-content: center;
  color: var(--purple);
}
.icon-badge--lg { width: 64px; height: 64px; border-radius: 16px; }
.icon-badge svg { width: 26px; height: 26px; flex-shrink: 0; }
.icon-badge--lg svg { width: 32px; height: 32px; }

/* ── STAT DISPLAY (standalone, outside stats-bar) ────────── */
.stat-display {
  font-family: 'Space Grotesk', sans-serif;
  font-size: 40px; font-weight: 800; line-height: 1;
  background: var(--gradient-ai);
  -webkit-background-clip: text; -webkit-text-fill-color: transparent; background-clip: text;
}
.stat-display-sm {
  font-family: 'Space Grotesk', sans-serif;
  font-size: 28px; font-weight: 800; line-height: 1;
  background: var(--gradient-ai);
  -webkit-background-clip: text; -webkit-text-fill-color: transparent; background-clip: text;
}

/* ── INLINE CONTENT LINK ─────────────────────────────────── */
.content-link {
  font-weight: 600; color: var(--purple); text-decoration: none;
  border-bottom: 1.5px solid transparent; transition: border-color 0.15s;
}
.content-link:hover { border-bottom-color: var(--purple); }

/* ── PARTNER VISUAL PANEL ─────────────────────────────────  */
.platform-visual {
  background: var(--white); border: 1.5px solid var(--border);
  border-radius: 20px; padding: 28px; position: sticky; top: 96px;
  box-shadow: 0 8px 40px rgba(13, 13, 43, 0.07);
  min-height: 360px; display: flex; flex-direction: column; gap: 12px;
}
.pv-header { font-size: 13px; font-weight: 700; color: var(--text-primary); margin-bottom: 8px; }
.pv-row { display: flex; align-items: center; justify-content: space-between; padding: 10px 12px; background: var(--bg); border-radius: 10px; margin-bottom: 6px; }
.pv-row-label { font-size: 13px; color: var(--text-secondary); font-weight: 500; }
.pv-row-val { font-size: 13px; font-weight: 700; color: var(--text-primary); }
.pv-bar-wrap { margin-top: 12px; }
.pv-bar-label { display: flex; justify-content: space-between; font-size: 11px; color: var(--text-muted); margin-bottom: 5px; }
.pv-bar { height: 8px; border-radius: var(--radius-pill); background: var(--lavender); overflow: hidden; margin-bottom: 8px; }
.pv-bar-fill { height: 100%; border-radius: var(--radius-pill); background: var(--gradient-ai); }

/* ── PROGRESS BARS ───────────────────────────────────────── */
.bar-track { height: 6px; border-radius: var(--radius-pill); background: var(--lavender); margin-bottom: 5px; overflow: hidden; }
.bar-fill  { height: 100%; border-radius: var(--radius-pill); background: var(--gradient-ai); }

/* ── TICKER ──────────────────────────────────────────────── */
.ticker-section { background: var(--white); padding: 52px 0; border-top: 1px solid var(--border); border-bottom: 1px solid var(--border); }
.ticker-label { text-align: center; font-size: 16px; font-weight: 700; color: var(--text-primary); margin-bottom: 28px; }
.ticker-wrap { overflow: hidden; position: relative; }
.ticker-wrap::before, .ticker-wrap::after { content: ''; position: absolute; top: 0; bottom: 0; width: 120px; z-index: 2; }
.ticker-wrap::before { left: 0; background: linear-gradient(to right, var(--white), transparent); }
.ticker-wrap::after  { right: 0; background: linear-gradient(to left, var(--white), transparent); }
.ticker-track { display: flex; animation: scroll 28s linear infinite; width: max-content; }
@keyframes scroll { 0% { transform: translateX(0); } 100% { transform: translateX(-50%); } }
.ticker-track:hover { animation-play-state: paused; }
.ticker-item { flex-shrink: 0; padding: 0 40px; height: 64px; font-size: 15px; font-weight: 700; color: var(--text-muted); border-right: 1px solid var(--border); display: flex; align-items: center; gap: 8px; }
.ticker-item img { height: 52px; width: auto; object-fit: contain; }

/* ── TRUSTED STRIP ───────────────────────────────────────── */
.trusted-strip { background: var(--white); padding: 44px 48px; border-bottom: 1px solid var(--border); }
.trusted-label { text-align: center; font-size: 16px; font-weight: 700; color: var(--text-primary); margin-bottom: 28px; }
.trusted-logos { display: flex; align-items: center; justify-content: center; gap: 16px; flex-wrap: nowrap; overflow-x: auto; }
/* Equal-sized box for every logo */
.trusted-badge {
  display: flex; align-items: center; justify-content: center;
  width: 160px; height: 88px;
  background: var(--bg); border: 1.5px solid var(--border);
  border-radius: 12px; padding: 16px 20px;
  position: relative; cursor: default;
  transition: border-color 0.2s, box-shadow 0.2s, background 0.2s;
}
.trusted-badge img { display: block; width: 100%; height: 100%; object-fit: contain; transition: opacity 0.2s; }
.trusted-badge:hover {
  border-color: var(--border-strong);
  background: var(--white);
  box-shadow: 0 4px 16px rgba(13, 13, 43, 0.07);
}
.trusted-badge:hover img { opacity: 1; }
/* CSS tooltip */
.trusted-badge::after {
  content: attr(data-tooltip);
  position: absolute;
  bottom: calc(100% + 10px);
  left: 50%;
  transform: translateX(-50%) translateY(4px);
  background: var(--text-primary);
  color: #fff;
  font-size: 11px; font-weight: 600; letter-spacing: 0.04em;
  padding: 5px 12px;
  border-radius: var(--radius-pill);
  white-space: nowrap;
  opacity: 0; pointer-events: none;
  transition: opacity 0.15s, transform 0.15s;
  z-index: 10;
}
.trusted-badge:hover::after { opacity: 1; transform: translateX(-50%) translateY(0); }

/* ── TESTIMONIAL ─────────────────────────────────────────── */
.testimonial { background: var(--gradient-hero); padding: 96px 48px; border-top: 1px solid var(--border); }
.test-inner { max-width: 820px; margin: 0 auto; text-align: center; }
.test-stars { font-size: 20px; color: var(--purple); letter-spacing: 4px; margin-bottom: 24px; }
.test-quote {
  font-family: 'Space Grotesk', sans-serif;
  font-size: clamp(20px, 2.4vw, 32px); font-weight: 600;
  line-height: 1.45; color: var(--text-primary); margin-bottom: 36px; letter-spacing: -0.015em;
}
.test-author { display: flex; align-items: center; justify-content: center; gap: 14px; }
.test-avatar {
  width: 52px; height: 52px; border-radius: 50%;
  background: var(--gradient-ai); display: flex; align-items: center;
  justify-content: center; font-size: 18px; font-weight: 700; color: #fff;
  box-shadow: 0 4px 16px var(--purple-glow);
}
.test-avatar--logo { width: 80px; height: 80px; background: var(--white); padding: 8px; box-shadow: 0 2px 8px rgba(0,0,0,0.10); border-radius: 12px; }
.test-avatar--logo img { width: 100%; height: 100%; object-fit: contain; border-radius: 0; }
.test-name { font-size: 15px; font-weight: 700; color: var(--text-primary); text-align: left; }
.test-role { font-size: 13px; color: var(--text-muted); text-align: left; }

/* ── TESTIMONIAL CAROUSEL ────────────────────────────────── */
.test-carousel { position: relative; }
.test-slide { display: none; animation: testFadeIn 0.4s ease; }
.test-slide.active { display: block; }
@keyframes testFadeIn { from { opacity: 0; transform: translateY(8px); } to { opacity: 1; transform: translateY(0); } }
.test-dots { display: flex; align-items: center; justify-content: center; gap: 10px; margin-top: 36px; }
.test-dot {
  width: 10px; height: 10px; border-radius: 50%;
  background: var(--border-strong); border: none; cursor: pointer;
  transition: all 0.25s; padding: 0;
}
.test-dot.active { width: 28px; border-radius: var(--radius-pill); background: var(--purple); }

/* ── CTA STRIP ───────────────────────────────────────────── */
.cta-section { background: var(--white); padding: 96px 48px; }
.cta-inner {
  max-width: var(--container-max); margin: 0 auto;
  background: var(--gradient-dark);
  border-radius: 24px; padding: 80px 64px; text-align: center; position: relative; overflow: hidden;
}
.cta-inner::after {
  content: ''; position: absolute; inset: 0;
  background-image: radial-gradient(rgba(107, 72, 255, 0.12) 1.5px, transparent 1.5px);
  background-size: 24px 24px; pointer-events: none;
}
.cta-glow {
  position: absolute; width: 600px; height: 600px; border-radius: 50%;
  background: radial-gradient(circle, rgba(107, 72, 255, 0.25), transparent 70%);
  top: 50%; left: 50%; transform: translate(-50%, -50%); pointer-events: none;
}
.cta-title {
  font-family: 'Space Grotesk', sans-serif;
  font-size: clamp(28px, 3.5vw, 48px); font-weight: 800;
  letter-spacing: -0.03em; color: #fff; margin-bottom: 14px;
  position: relative; z-index: 1;
}
.cta-sub { font-size: 17px; color: rgba(255, 255, 255, 0.65); margin-bottom: 40px; position: relative; z-index: 1; }
.cta-btns { display: flex; align-items: center; justify-content: center; gap: 14px; flex-wrap: wrap; position: relative; z-index: 1; }

/* ── FOOTER ──────────────────────────────────────────────── */
footer { background: var(--gradient-dark); padding: 64px 48px 36px; }
.footer-grid { display: grid; grid-template-columns: 1.8fr 1fr 1fr 1fr 1fr; gap: 40px; max-width: var(--container-max); margin: 0 auto 48px; }
.footer-brand p { font-size: 13.5px; color: rgba(255, 255, 255, 0.45); line-height: 1.7; margin-top: 14px; max-width: 240px; }
.footer-logo-text { color: #fff !important; }
.footer-col h4 { font-size: 11px; font-weight: 700; letter-spacing: 0.08em; text-transform: uppercase; color: rgba(255, 255, 255, 0.4); margin-bottom: 18px; }
.footer-col ul { list-style: none; display: flex; flex-direction: column; gap: 10px; }
.footer-col ul a { font-size: 13.5px; color: rgba(255, 255, 255, 0.6); text-decoration: none; transition: color 0.15s; }
.footer-col ul a:hover { color: #fff; }
.footer-social { display: flex; gap: 10px; margin-top: 22px; }
.footer-social a { display: inline-flex; align-items: center; justify-content: center; width: 36px; height: 36px; border-radius: 50%; border: 1px solid rgba(255, 255, 255, 0.15); color: rgba(255, 255, 255, 0.6); transition: color 0.18s, border-color 0.18s, background 0.18s, transform 0.18s; }
.footer-social a:hover { color: #fff; border-color: var(--purple); background: rgba(107, 72, 255, 0.18); transform: translateY(-2px); }
.footer-social a:focus-visible { outline: 2px solid var(--purple); outline-offset: 2px; }
.footer-bottom {
  max-width: var(--container-max); margin: 0 auto;
  display: flex; align-items: center; justify-content: space-between;
  padding-top: 28px; border-top: 1px solid rgba(255, 255, 255, 0.1);
  font-size: 12.5px; color: rgba(255, 255, 255, 0.35);
}
.footer-tagline { background: var(--gradient-ai); -webkit-background-clip: text; -webkit-text-fill-color: transparent; background-clip: text; font-weight: 600; }

/* ── FOOTER POLICY DROPUP ────────────────────────────────── */
.policy-btn {
  position: relative;
  display: inline-flex; align-items: center; gap: 6px;
  background: none; border: 1px solid rgba(255,255,255,0.18);
  color: rgba(255,255,255,0.5); font-family: inherit;
  font-size: 12.5px; font-weight: 500;
  padding: 6px 14px; border-radius: var(--radius-pill);
  cursor: pointer; transition: color 0.15s, border-color 0.15s, background 0.15s;
  white-space: nowrap;
}
.policy-btn svg { width: 10px; height: 10px; transition: transform 0.2s; flex-shrink: 0; }
.policy-btn:hover { color: rgba(255,255,255,0.85); border-color: rgba(255,255,255,0.35); background: rgba(255,255,255,0.06); }
.policy-btn--open { color: rgba(255,255,255,0.85); border-color: rgba(107,72,255,0.6); background: rgba(107,72,255,0.12); }
.policy-btn--open svg { transform: rotate(180deg); }

.policy-dropup {
  position: absolute;
  bottom: calc(100% + 10px); right: 0;
  background: var(--white);
  border: 1px solid var(--border);
  border-radius: 14px;
  box-shadow: 0 -8px 32px rgba(13,13,43,0.18), 0 2px 8px rgba(13,13,43,0.06);
  padding: 6px;
  min-width: 180px;
  opacity: 0; visibility: hidden; pointer-events: none;
  transform: translateY(6px);
  transition: opacity 0.18s ease, transform 0.18s ease, visibility 0.18s;
  z-index: 300;
}
.policy-dropup::after {
  content: '';
  position: absolute;
  bottom: -6px; right: 24px;
  width: 10px; height: 10px;
  background: var(--white);
  border-right: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
  transform: rotate(45deg);
}
.policy-btn--open .policy-dropup {
  opacity: 1; visibility: visible; pointer-events: auto; transform: translateY(0);
}
.policy-dropup a {
  display: block;
  padding: 10px 14px;
  border-radius: 9px;
  font-family: Inter, sans-serif;
  font-size: 13.5px; font-weight: 500;
  color: var(--text-primary);
  text-decoration: none;
  transition: background 0.12s, color 0.12s;
}
.policy-dropup a:hover { background: var(--purple-light); color: var(--purple); }

/* ── WIDE MEGA MENU (What We Do — 5 columns) ─────────────── */
/*
  Uses position:fixed so it's always centered in the viewport
  regardless of which nav-item triggered it.
*/
.mega-menu--wide {
  position: fixed !important;
  top: calc(var(--nav-h) + 8px);
  left: 50%;
  transform: translateX(-50%) translateY(-6px);
  min-width: 1200px;
}
.nav-item:hover .mega-menu--wide {
  transform: translateX(-50%) translateY(0);
}
.mega-grid--wwd {
  grid-template-columns: repeat(5, 1fr);
}
.mega-col--platform {
  padding: 0 20px;
}
/* Colored column titles for platform group */
.mega-col-title--platform { color: var(--purple) !important; }
/* Forsys AI Solutions column — gradient title */
.mega-col--ai .mega-col-title {
  background: var(--gradient-ai);
  -webkit-background-clip: text; -webkit-text-fill-color: transparent; background-clip: text;
}
/* AI Managed Services standalone column — left accent border */
.mega-col--managed {
  border-left: 2px solid var(--purple);
  padding-left: 18px;
}
/* Thin divider between sub-sections within a column */
.mega-sub-divider { height: 1px; background: var(--border); margin: 14px 0 12px; }
/* Sub-section header inside a column (e.g. "Technology" under Services) */
.mega-sub-header {
  font-size: 10px; font-weight: 700; letter-spacing: 0.08em;
  text-transform: uppercase; color: var(--text-primary);
  margin: 0 0 8px 8px;
}
.mega-col ul + .mega-sub-header {
  margin-top: 16px;
}

/* ── REDUCED MOTION ──────────────────────────────────────── */
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation-duration: 0.01ms !important; transition-duration: 0.01ms !important; }
  .ticker-track { animation: none; }
}

/* ── HAMBURGER BUTTON ────────────────────────────────────── */
.nav-burger {
  display: none;
  flex-direction: column; justify-content: center; align-items: center;
  gap: 5px; width: 44px; height: 44px;
  background: none; border: none; cursor: pointer; padding: 0;
  border-radius: 8px; transition: background 0.15s; flex-shrink: 0;
}
.nav-burger:hover { background: var(--bg); }
.nav-burger span {
  display: block; width: 22px; height: 2px;
  background: var(--text-primary); border-radius: 2px;
  transition: transform 0.25s, opacity 0.25s;
}
.nav-burger:focus-visible { outline: 2px solid var(--purple); outline-offset: 2px; }
.nav-open .nav-burger span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.nav-open .nav-burger span:nth-child(2) { opacity: 0; transform: scaleX(0); }
.nav-open .nav-burger span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

/* Mobile backdrop (injected by JS) */
.nav-backdrop {
  display: none; position: fixed; inset: 0;
  background: rgba(13, 13, 43, 0.45); z-index: 149;
}
.nav-backdrop.active { display: block; }

/* ── RESPONSIVE ──────────────────────────────────────────── */
@media (max-width: 1024px) {
  .nav-center { display: none; }
  .nav-burger  { display: flex; }
  .btn-nav-ghost { display: none; }
  .footer-grid { grid-template-columns: 1fr 1fr; }

}

/* ── MOBILE DRAWER (appended to body by JS to escape backdrop-filter) ── */
.nav-center.mob-drawer-open {
  display: flex !important; flex-direction: column;
  position: fixed; top: 0; right: 0; bottom: 0;
  width: min(320px, 90vw);
  background: var(--white); z-index: 250;
  padding-top: 12px; padding-bottom: 40px;
  overflow-y: auto;
  box-shadow: -4px 0 40px rgba(13, 13, 43, 0.15);
  animation: nav-slide-in 0.25s ease;
}
@keyframes nav-slide-in {
  from { transform: translateX(100%); }
  to   { transform: translateX(0); }
}

/* Close button inside drawer — hidden unless inside open drawer */
.nav-mob-close { display: none; }
.nav-center.mob-drawer-open .nav-mob-close {
  display: flex; align-items: end; justify-content: end;
  width: 52px; height: 52px; flex-shrink: 0;
  background: #fff; border: 1.5px solid #fff;
  border-radius: 0%; cursor: pointer;
  color: var(--text-primary);
  margin: 0 10px 16px auto;
  transition: background 0.15s, border-color 0.15s;
}
.nav-mob-close svg { width: 24px; height: 24px; }
.nav-mob-close:hover { background: var(--lavender); border-color: var(--purple); color: var(--purple); }
.nav-mob-close:focus-visible { outline: 2px solid var(--purple); outline-offset: 2px; }

.nav-center.mob-drawer-open .nav-item {
  position: static; border-bottom: 1px solid var(--border);
  width: 100%; text-align: left;
}
.nav-center.mob-drawer-open .nav-link {
  display: flex; width: 100%; justify-content: space-between; align-items: center;
  padding: 14px 20px; font-size: 14px; font-weight: 600;
  color: var(--text-primary); background: none; border: none;
  cursor: pointer; text-align: left;
}
.nav-center.mob-drawer-open .nav-link:hover { background: var(--bg); }

/* Sub-menus hidden by default; shown via .mob-open */
.nav-center.mob-drawer-open .dropdown,
.nav-center.mob-drawer-open .mega-menu {
  display: none; position: static;
  opacity: 1; visibility: visible; pointer-events: auto;
  transform: none; box-shadow: none;
  border: none; border-radius: 0;
  border-top: 1px solid var(--border);
  padding: 8px 0; min-width: unset; width: 100%;
}
.nav-center.mob-drawer-open .nav-item.mob-open .dropdown,
.nav-center.mob-drawer-open .nav-item.mob-open .mega-menu { display: block; }

.nav-center.mob-drawer-open .dropdown a {
  display: block; padding: 9px 20px 9px 28px;
  font-size: 13.5px; border-radius: 0; color: var(--text-secondary);
}
.nav-center.mob-drawer-open .dropdown a:hover { background: var(--bg); color: var(--purple); }
.nav-center.mob-drawer-open .dropdown .dropdown-group-label { padding-left: 20px; }
.nav-center.mob-drawer-open .dropdown .dropdown-divider { margin: 4px 20px; }

/* Mega menu stacked columns */
.nav-center.mob-drawer-open .mega-menu--wide {
  position: static !important; transform: none !important; min-width: unset;
}
.nav-center.mob-drawer-open .mega-grid { grid-template-columns: 1fr; }
.nav-center.mob-drawer-open .mega-col {
  border-right: none; border-bottom: 1px solid var(--bg);
  padding: 10px 20px;
}
.nav-center.mob-drawer-open .mega-col:last-child { border-bottom: none; }
.nav-center.mob-drawer-open .mega-col ul li a { padding: 6px 8px; font-size: 13px; }
.nav-center.mob-drawer-open .mega-col-title { font-size: 10px; margin-bottom: 6px; }
.nav-center.mob-drawer-open .mega-col--platform { padding: 10px 20px; }
.nav-center.mob-drawer-open .mega-sub-header { margin-left: 0; }
@media (max-width: 768px) {
  nav { padding: 0 20px; }
  section { padding: 64px 24px; }
  .cta-inner { padding: 48px 24px; }
  .stats-bar { grid-template-columns: repeat(2, 1fr); }
  .footer-grid { grid-template-columns: 1fr; }
}
