/* ==========================================================================
   KYZEN GLOBAL — Design System
   Building Technology Capability. Enabling Business Transformation.
   ========================================================================== */

/* ---------- Fonts ---------- */
@font-face {
  font-family: 'Inter';
  font-style: normal;
  font-display: swap;
}

/* ---------- Design Tokens ---------- */
:root {
  /* Brand palette (derived from logo) */
  --navy-950: #060f22;
  --navy-900: #081428;
  --navy-800: #0a1b3d;
  --navy-700: #0f2450;
  --navy-600: #163063;
  --blue-600: #1e63e9;
  --blue-500: #2e7bf6;
  --blue-400: #4f97ff;
  --cyan-500: #1fc4c0;
  --cyan-400: #2dd4c4;
  --cyan-300: #5fe6d8;

  /* Neutrals */
  --white: #ffffff;
  --paper: #f6f8fc;
  --mist: #eef2f9;
  --line: #e2e8f2;
  --slate-100: #f1f5fb;
  --slate-300: #cbd5e6;
  --slate-400: #94a3bd;
  --slate-500: #64748b;
  --slate-600: #475069;
  --slate-700: #334155;
  --ink: #0e1a30;
  --ink-soft: #3a4a66;

  /* Semantic */
  --bg: var(--white);
  --text: var(--ink);
  --text-muted: var(--slate-600);
  --brand: var(--blue-500);
  --brand-deep: var(--navy-800);

  /* Gradients */
  --grad-brand: linear-gradient(120deg, #2563eb 0%, #2e7bf6 42%, #2dd4c4 100%);
  --grad-brand-soft: linear-gradient(120deg, #1e63e9 0%, #2dd4c4 120%);
  /* Light & airy hero — soft daylight wash with brand-tinted glow */
  --grad-hero: radial-gradient(1100px 620px at 88% -14%, rgba(45, 212, 196, .20), transparent 56%),
    radial-gradient(980px 640px at 2% 4%, rgba(46, 123, 246, .18), transparent 52%),
    linear-gradient(178deg, #ffffff 0%, #f4f8ff 52%, #e9f1fc 100%);
  /* Bright brand gradient for the single focal CTA band */
  --grad-cta: linear-gradient(120deg, #1656d8 0%, #2e7bf6 46%, #24c3bd 100%);
  --grad-ink: linear-gradient(120deg, #0a1b3d, #12305f);
  /* On-light gradient text (kept dark enough for AA contrast on white) */
  --grad-text: linear-gradient(100deg, #08348c 0%, #1656d8 48%, #12a79f 100%);

  /* Typography */
  --font-sans: 'Inter', 'Segoe UI', -apple-system, BlinkMacSystemFont, Roboto, Helvetica, Arial, sans-serif;
  --tracking-eyebrow: .16em;

  /* Radii & shadow */
  --r-sm: 10px;
  --r-md: 16px;
  --r-lg: 22px;
  --r-xl: 30px;
  --r-pill: 999px;
  --shadow-sm: 0 2px 8px rgba(12, 27, 61, .06);
  --shadow-md: 0 14px 40px -18px rgba(12, 27, 61, .28);
  --shadow-lg: 0 40px 90px -40px rgba(12, 27, 61, .40);
  --shadow-glow: 0 20px 60px -22px rgba(46, 123, 246, .55);

  /* Layout */
  --container: 1200px;
  --container-wide: 1320px;
  --gutter: clamp(20px, 5vw, 48px);
  --nav-h: 76px;

  /* Motion */
  --ease: cubic-bezier(.22, .61, .36, 1);
  --ease-out: cubic-bezier(.16, 1, .3, 1);

  /* Backward-compatible aliases for existing component styles */
  --purple-950: var(--navy-950);
  --purple-900: var(--navy-900);
  --purple-800: var(--navy-800);
  --purple-700: var(--navy-700);
  --purple-600: var(--navy-600);
  --violet-600: var(--blue-600);
  --violet-500: var(--blue-500);
  --violet-400: var(--blue-400);
  --amber-500: var(--cyan-500);
  --amber-400: var(--cyan-400);
  --amber-300: var(--cyan-300);
}

/* ---------- Reset / Base ---------- */
*,
*::before,
*::after {
  box-sizing: border-box;
}

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

body {
  margin: 0;
  font-family: var(--font-sans);
  color: var(--text);
  background: var(--bg);
  line-height: 1.65;
  font-size: 17px;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
  overflow-x: hidden;
}

.cursor-dot,
.cursor-ring {
  position: fixed;
  left: 0;
  top: 0;
  pointer-events: none;
  z-index: 9999;
  transform: translate(-50%, -50%);
  opacity: 0;
  transition: opacity .2s ease;
}

.cursor-dot {
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background: linear-gradient(135deg, var(--blue-500), var(--cyan-400));
  box-shadow: 0 0 18px rgba(46, 123, 246, .32);
}

.cursor-ring {
  width: 38px;
  height: 38px;
  border: 1px solid rgba(30, 99, 233, .8);
  border-radius: 50%;
  box-shadow: 0 0 24px rgba(31, 196, 192, .16);
  backdrop-filter: blur(2px);
}

.cursor-ring.is-hovering {
  width: 54px;
  height: 54px;
  border-color: rgba(245, 158, 11, .95);
  box-shadow: 0 0 30px rgba(245, 158, 11, .24);
}

img {
  max-width: 100%;
  display: block;
}

a {
  color: inherit;
  text-decoration: none;
}

button {
  font-family: inherit;
  cursor: pointer;
}

ul {
  margin: 0;
  padding: 0;
  list-style: none;
}

h1,
h2,
h3,
h4 {
  line-height: 1.12;
  letter-spacing: -.02em;
  color: var(--ink);
  margin: 0;
  font-weight: 800;
}

p {
  margin: 0;
}

:focus-visible {
  outline: 3px solid var(--blue-400);
  outline-offset: 3px;
  border-radius: 6px;
}

/* ---------- Typographic scale ---------- */
.h-display {
  font-size: clamp(2.4rem, 5.4vw, 4.15rem);
  font-weight: 850;
  letter-spacing: -.035em;
}

.h1 {
  font-size: clamp(2.1rem, 4.2vw, 3.15rem);
  letter-spacing: -.03em;
}

.h2 {
  font-size: clamp(1.75rem, 3vw, 2.5rem);
}

.h3 {
  font-size: clamp(1.25rem, 1.8vw, 1.5rem);
}

.lead {
  font-size: clamp(1.06rem, 1.5vw, 1.28rem);
  color: var(--text-muted);
  line-height: 1.7;
}

.muted {
  color: var(--text-muted);
}

/* ---------- Layout helpers ---------- */
.container {
  width: 100%;
  max-width: var(--container);
  margin-inline: auto;
  padding-inline: var(--gutter);
}

.container.wide {
  max-width: var(--container-wide);
}

.section {
  padding-block: clamp(40px, 5vw, 68px);
  position: relative;
}

.section.tight {
  padding-block: clamp(20px, 3vw, 40px);
}

.section--paper {
  background: var(--paper);
}

.section--mist {
  background: linear-gradient(180deg, var(--white), var(--mist));
}

.center {
  text-align: center;
}

.stack-sm>*+* {
  margin-top: .7rem;
}

.grid {
  display: grid;
  gap: clamp(20px, 2.4vw, 30px);
}

.grid-2 {
  grid-template-columns: repeat(2, 1fr);
}

.grid-3 {
  grid-template-columns: repeat(3, 1fr);
}

.grid-4 {
  grid-template-columns: repeat(4, 1fr);
}

/* ---------- Eyebrow / section head ---------- */
.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: .55rem;
  font-size: .78rem;
  font-weight: 700;
  letter-spacing: var(--tracking-eyebrow);
  text-transform: uppercase;
  color: var(--violet-600);
}

.eyebrow::before {
  content: "";
  width: 26px;
  height: 2px;
  border-radius: 2px;
  background: var(--grad-brand);
}

.eyebrow.on-dark {
  color: var(--amber-300);
}

.eyebrow.center-mark {
  justify-content: center;
}

.section-head {
  max-width: 760px;
  margin-bottom: clamp(38px, 5vw, 60px);
}

.section-head.center {
  margin-inline: auto;
}

.section-head .h2 {
  margin-top: .8rem;
}

.section-head .lead {
  margin-top: 1rem;
}

/* ---------- Buttons ---------- */
.btn {
  --btn-bg: var(--grad-brand);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: .6rem;
  font-weight: 700;
  font-size: .98rem;
  letter-spacing: -.01em;
  padding: .92rem 1.55rem;
  border-radius: var(--r-pill);
  border: 1px solid transparent;
  color: #fff;
  background: var(--btn-bg);
  background-origin: border-box;
  background-clip: border-box;
  box-shadow: var(--shadow-glow);
  transition: transform .25s var(--ease), box-shadow .25s var(--ease), filter .25s var(--ease);
  white-space: nowrap;
}

.btn:hover {
  transform: translateY(-2px);
  box-shadow: 0 26px 60px -20px rgba(46, 123, 246, .7);
  filter: brightness(1.04);
}

.btn:active {
  transform: translateY(0);
}

.btn svg {
  width: 18px;
  height: 18px;
}

.btn--ghost {
  background: transparent;
  color: var(--ink);
  border-color: var(--line);
  box-shadow: none;
}

.btn--ghost:hover {
  background: var(--slate-100);
  border-color: var(--slate-300);
  box-shadow: var(--shadow-sm);
}

.btn--outline-light {
  background: rgba(255, 255, 255, .06);
  color: #fff;
  border-color: rgba(255, 255, 255, .28);
  box-shadow: none;
  backdrop-filter: blur(6px);
}

.btn--outline-light:hover {
  background: rgba(255, 255, 255, .14);
  border-color: rgba(255, 255, 255, .5);
}

.btn--white {
  background: #fff;
  background-image: none;
  --btn-bg: #fff;
  color: var(--purple-950);
  box-shadow: var(--shadow-md);
}

.btn--white:hover {
  box-shadow: 0 26px 60px -22px rgba(0, 0, 0, .4);
}

.btn--sm {
  padding: .75rem 1.4rem;
  font-size: 1rem;
}

.btn-row {
  display: flex;
  flex-wrap: wrap;
  gap: .9rem;
}

/* Text link with arrow */
.link-arrow {
  display: inline-flex;
  align-items: center;
  gap: .4rem;
  font-weight: 700;
  color: var(--violet-600);
  font-size: .95rem;
}

.link-arrow svg {
  width: 17px;
  height: 17px;
  transition: transform .25s var(--ease);
}

.link-arrow:hover svg {
  transform: translateX(4px);
}

.on-dark .link-arrow,
.link-arrow.on-dark {
  color: var(--amber-300);
}

/* ---------- Header / Nav ---------- */
.site-header {
  position: fixed;
  inset: 0 0 auto 0;
  z-index: 100;
  height: 100px;
  display: flex;
  align-items: center;
  transition: background .3s var(--ease), box-shadow .3s var(--ease), backdrop-filter .3s;
}

.site-header .container {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1.5rem;
}

.site-header.scrolled {
  background: rgba(255, 255, 255, .88);
  backdrop-filter: saturate(160%) blur(14px);
  box-shadow: 0 1px 0 rgba(26, 8, 69, .10), 0 12px 30px -24px rgba(26, 8, 69, .4);
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: .6rem;
  margin-right: auto;
}

.brand img {
  height: 80px;
  width: auto;
  transition: opacity .25s;
}

.brand .logo-light {
  display: none;
}

.nav {
  display: flex;
  align-items: center;
  gap: .3rem;
}

.nav a {
  position: relative;
  padding: .55rem .85rem;
  border-radius: var(--r-pill);
  font-weight: 600;
  font-size: .96rem;
  color: var(--slate-700);
  transition: color .2s, background .2s;
}

.nav a::after {
  content: "";
  position: absolute;
  left: 50%;
  bottom: 6px;
  transform: translateX(-50%);
  width: 0;
  height: 2px;
  border-radius: 2px;
  background: var(--grad-brand);
  transition: width .25s var(--ease);
}

.nav a:hover {
  color: var(--ink);
}

.nav a:hover::after,
.nav a.active::after {
  width: 20px;
}

.nav a.active {
  color: var(--ink);
}

.header-actions {
  display: flex;
  align-items: center;
  gap: .7rem;
}

.header-actions .btn {
  padding: .65rem 1.2rem;
  font-size: .95rem;
}

.nav>.btn {
  display: none;
}

.wa-link {
  display: inline-flex;
  align-items: center;
  gap: 0.45rem;
  font-weight: 650;
  font-size: 0.94rem;
  color: inherit;
  transition: opacity 0.25s, transform 0.25s;
}

.wa-link:hover {
  opacity: 0.85;
  transform: translateY(-1px);
}

.wa-link svg {
  width: 23px;
  height: 23px;
  color: #25D366;
  /* WhatsApp green */
}

/* Light & airy hero -> header keeps dark ink content on a transparent bar until scrolled */
.site-header:not(.scrolled) .nav a {
  color: var(--slate-700);
}

.site-header:not(.scrolled) .nav a:hover,
.site-header:not(.scrolled) .nav a.active {
  color: var(--ink);
}

.site-header:not(.scrolled) .brand .logo-dark {
  display: block;
}

.site-header:not(.scrolled) .brand .logo-light {
  display: none;
}

.site-header:not(.scrolled) .btn--ghost {
  color: var(--ink);
  border-color: var(--line);
}

.site-header:not(.scrolled) .btn--ghost:hover {
  background: var(--slate-100);
}

/* Pages without dark hero use solid header from load */
.site-header.solid {
  background: rgba(255, 255, 255, .9);
  backdrop-filter: saturate(160%) blur(14px);
  box-shadow: 0 1px 0 rgba(15, 36, 80, .08);
}

.site-header.solid .nav a {
  color: var(--slate-700);
}

.site-header.solid .brand .logo-dark {
  display: block;
}

.site-header.solid .brand .logo-light {
  display: none;
}

.site-header.solid .btn--ghost {
  color: var(--ink);
  border-color: var(--line);
}

.nav-toggle {
  display: none;
  width: 44px;
  height: 44px;
  border: 1px solid var(--line);
  background: rgba(255, 255, 255, .1);
  border-radius: 12px;
  position: relative;
  align-items: center;
  justify-content: center;
}

.nav-toggle span,
.nav-toggle span::before,
.nav-toggle span::after {
  content: "";
  position: absolute;
  width: 20px;
  height: 2px;
  background: currentColor;
  border-radius: 2px;
  transition: transform .3s var(--ease), opacity .2s;
}

.nav-toggle span::before {
  transform: translateY(-6px);
}

.nav-toggle span::after {
  transform: translateY(6px);
}

.site-header:not(.scrolled):not(.solid) .nav-toggle {
  color: #fff;
  border-color: rgba(255, 255, 255, .35);
}

.site-header.scrolled .nav-toggle,
.site-header.solid .nav-toggle {
  color: var(--ink);
}

body.nav-open .nav-toggle span {
  transform: rotate(45deg);
}

body.nav-open .nav-toggle span::before {
  transform: rotate(90deg);
  opacity: 1;
}

body.nav-open .nav-toggle span::after {
  opacity: 0;
}


/* ---------- Hero ---------- */
.hero {
  position: relative;
  padding-top: calc(var(--nav-h) + clamp(56px, 8vw, 96px));
  padding-bottom: clamp(70px, 9vw, 120px);
  background: var(--grad-hero);
  color: var(--text);
  overflow: hidden;
}

.hero::after {
  content: "";
  position: absolute;
  inset: auto 0 -1px 0;
  height: 1px;
  background: linear-gradient(90deg, transparent, var(--line), transparent);
}

.hero-grid {
  display: grid;
  grid-template-columns: 1.05fr .95fr;
  gap: clamp(32px, 5vw, 68px);
  align-items: center;
}

.hero h1 {
  color: var(--ink);
}

.hero .lead {
  color: var(--ink);
}

.hero .btn-row {
  margin-top: 2rem;
}

.hero-eyebrow {
  color: var(--blue-600);
}

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

/* Decorative particles / glow orbs (soft brand color on light) */
.orb {
  position: absolute;
  border-radius: 50%;
  filter: blur(64px);
  opacity: .7;
  pointer-events: none;
}

.orb-1 {
  width: 420px;
  height: 420px;
  background: radial-gradient(circle, rgba(45, 212, 196, .4), transparent 70%);
  top: -120px;
  right: -80px;
}

.orb-2 {
  width: 380px;
  height: 380px;
  background: radial-gradient(circle, rgba(46, 123, 246, .42), transparent 70%);
  bottom: -160px;
  left: -120px;
}

.hero-mesh {
  position: absolute;
  inset: 0;
  background-image:
    linear-gradient(rgba(20, 48, 99, .05) 1px, transparent 1px),
    linear-gradient(90deg, rgba(20, 48, 99, .05) 1px, transparent 1px);
  background-size: 54px 54px;
  mask-image: radial-gradient(circle at 60% 40%, #000, transparent 76%);
  opacity: .5;
}

/* ---------- Capability spotlight (homepage value section) ---------- */
.cap-spotlight {
  display: grid;
  grid-template-columns: .92fr 1.08fr;
  gap: clamp(30px, 4.5vw, 68px);
  align-items: start;
}

.cap-intro {
  position: sticky;
  top: 96px;
}

.cap-img {
  aspect-ratio: 16 / 10;
  margin-top: 1.7rem;
}

.cap-list {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.cap-item {
  position: relative;
  overflow: hidden;
  width: 100%;
  text-align: left;
  font: inherit;
  color: inherit;
  cursor: pointer;
  display: flex;
  gap: 1rem;
  align-items: flex-start;
  background: #fff;
  border: 1px solid var(--line);
  border-radius: var(--r-lg);
  padding: clamp(1.05rem, 1.5vw, 1.4rem);
  transition: border-color .3s var(--ease), box-shadow .3s var(--ease), transform .3s var(--ease);
}

.cap-item::before {
  content: "";
  position: absolute;
  left: 0;
  top: 0;
  bottom: 0;
  width: 4px;
  background: var(--grad-brand);
  transform: scaleY(0);
  transform-origin: top;
  transition: transform .4s var(--ease);
}

.cap-item:hover {
  border-color: #d3def0;
  box-shadow: var(--shadow-sm);
  transform: translateX(3px);
}

.cap-item:hover,
.cap-item.active {
  box-shadow: var(--shadow-md);
  border-color: #d3def0;
  transform: translateX(3px);
}

.cap-item:hover::before,
.cap-item.active::before {
  transform: scaleY(1);
}

.cap-ic {
  flex: 0 0 auto;
  width: 46px;
  height: 46px;
  border-radius: 13px;
  display: grid;
  place-items: center;
  color: var(--blue-600);
  background: linear-gradient(160deg, rgba(46, 123, 246, .12), rgba(45, 212, 196, .14));
  border: 1px solid var(--line);
  transition: color .3s var(--ease), background .3s var(--ease), box-shadow .3s var(--ease), border-color .3s;
}

.cap-ic svg {
  width: 23px;
  height: 23px;
}

.cap-item:hover .cap-ic,
.cap-item.active .cap-ic {
  color: #fff;
  background: var(--grad-brand);
  box-shadow: var(--shadow-glow);
  border-color: transparent;
}

.cap-body {
  display: flex;
  flex-direction: column;
  min-width: 0;
}

.cap-title {
  display: flex;
  align-items: center;
  gap: .5rem;
  font-weight: 800;
  font-size: 1.08rem;
  color: var(--ink);
  letter-spacing: -.01em;
}

.cap-arrow {
  flex: 0 0 auto;
  width: 18px;
  height: 18px;
  color: var(--blue-600);
  opacity: 0;
  transform: translateX(-5px);
  transition: opacity .3s var(--ease), transform .3s var(--ease);
}

.cap-item:hover .cap-arrow,
.cap-item.active .cap-arrow {
  opacity: 1;
  transform: translateX(0);
}

.cap-desc {
  color: var(--text-muted);
  font-size: .96rem;
  line-height: 1.6;
  max-height: 0;
  opacity: 0;
  overflow: hidden;
  transition: max-height .45s var(--ease), opacity .35s var(--ease), margin-top .4s var(--ease);
}

.cap-item:hover .cap-desc,
.cap-item.active .cap-desc {
  max-height: 220px;
  opacity: 1;
  margin-top: .5rem;
}

@media (max-width: 900px) {
  .cap-spotlight {
    grid-template-columns: 1fr;
    gap: clamp(26px, 6vw, 40px);
  }

  .cap-intro {
    position: static;
  }
}

/* ---------- Homepage centered hero + image carousel ---------- */
.hero--center {
  text-align: center;
  padding-top: calc(var(--nav-h) + clamp(16px, 2vw, 32px));
  padding-bottom: clamp(48px, 6vw, 84px);
}

.hero--center .hero-copy {
  max-width: 960px;
  margin-inline: auto;
  position: relative;
  z-index: 2;
}

.hero--center h1 {
  max-width: 20ch;
  margin-inline: auto;
}

.hero--center .lead {
  margin-inline: auto;
  max-width: 66ch;
}

.hero--center .btn-row {
  justify-content: center;
}

.hero--center .stat-rail {
  margin-top: clamp(1.4rem, 2.4vw, 2rem);
}

.hero--center .stat-cards {
  margin-top: clamp(1.6rem, 2.6vw, 2.4rem);
}

.hero--center .gauges {
  margin-top: clamp(2rem, 3.4vw, 3.2rem);
}

/* Copy + gauges side by side */
.hero-split {
  display: grid;
  grid-template-columns: 1.02fr .98fr;
  gap: clamp(28px, 5vw, 72px);
  align-items: center;
  margin-top: clamp(2.4rem, 4vw, 3.4rem);
}

.hero--center .hero-split {
  text-align: left;
}

.hero--center .hero-split .hero-copy {
  max-width: none;
  margin: 0;
}

.hero--center .hero-split h1 {
  max-width: 18ch;
  margin-inline: 0;
}

.hero--center .hero-split .lead {
  max-width: none;
  margin-inline: 0;
}

.hero--center .hero-split .btn-row {
  justify-content: flex-start;
}

.hero-split .gauges {
  grid-template-columns: 1fr 1fr;
  gap: clamp(18px, 2.2vw, 34px);
  margin-top: 0;
  justify-items: center;
}

.hero-split .gauges .gauge:last-child {
  grid-column: 1 / -1;
}

.hero-split .g-ring {
  width: clamp(120px, 11vw, 150px);
}

@media (max-width: 900px) {
  .hero-split {
    grid-template-columns: 1fr;
    gap: clamp(28px, 6vw, 44px);
  }

  .hero--center .hero-split {
    text-align: center;
  }

  .hero--center .hero-split h1 {
    max-width: 20ch;
    margin-inline: auto;
  }

  .hero--center .hero-split .lead {
    margin-inline: auto;
    max-width: 66ch;
  }

  .hero--center .hero-split .btn-row {
    justify-content: center;
  }

  .hero-split .gauges {
    max-width: 560px;
    margin-inline: auto;
  }
}

@media (max-width: 420px) {
  .hero-split .gauges {
    grid-template-columns: 1fr 1fr;
  }
}

.hero-copy {
  max-width: 960px;
  margin-inline: auto;
  position: relative;
  z-index: 2;
}

.hero-copy .h-display {
  max-width: 20ch;
  margin-inline: auto;
  font-size: clamp(1.8rem, 4vw, 3.4rem);
  line-height: 1.04;
  letter-spacing: -.04em;
}

.hero-copy .lead {
  margin-inline: auto;
  max-width: 66ch;
}

.hero-copy .btn-row {
  justify-content: center;
}

.hero-badge {
  display: inline-flex;
  align-items: center;
  gap: .6rem;
  padding: .55rem .95rem;
  border-radius: var(--r-pill);
  background: rgba(255, 255, 255, 9);
  border: 1px solid var(--line);
  backdrop-filter: blur(8px);
  box-shadow: var(--shadow-sm);
  font-size: .74rem;
  font-weight: 700;
  letter-spacing: .11em;
  text-transform: uppercase;
  color: var(--blue-600);
}

.hero-badge .pulse {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--cyan-500);
  animation: pulse 2.2s infinite;
}

@keyframes pulse {
  0% {
    box-shadow: 0 0 0 0 rgba(31, 196, 192, .55);
  }

  70% {
    box-shadow: 0 0 0 9px rgba(31, 196, 192, 0);
  }

  100% {
    box-shadow: 0 0 0 0 rgba(31, 196, 192, 0);
  }
}

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

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: .6rem;
  font-weight: 700;
  font-size: .98rem;
  letter-spacing: -.01em;
  padding: .92rem 1.55rem;
  border-radius: var(--r-pill);
  border: 1px solid transparent;
  background: var(--btn-bg);
  background-origin: border-box;
  background-clip: border-box;
  box-shadow: var(--shadow-glow);
  transition: transform .25s var(--ease), box-shadow .25s var(--ease), filter .25s var(--ease);
  white-space: nowrap;
}

.btn:hover {
  transform: translateY(-2px);
  box-shadow: 0 26px 60px -20px rgba(46, 123, 246, .7);
  filter: brightness(1.04);
}

.btn:active {
  transform: translateY(0);
}

.btn svg {
  width: 18px;
  height: 18px;
}

.btn--outline-light {
  background: rgba(255, 255, 255, .06);
  color: #fff;
  border-color: rgba(255, 255, 255, .28);
  box-shadow: none;
  backdrop-filter: blur(6px);
}

.btn--outline-light:hover {
  background: rgba(255, 255, 255, .14);
  border-color: rgba(255, 255, 255, .5);
}

.hero .btn--outline-light,
.page-hero .btn--outline-light {
  background: rgba(255, 255, 255, .9);
  color: var(--ink);
  border-color: var(--line);
  box-shadow: var(--shadow-sm);
}

.hero .btn--outline-light:hover,
.page-hero .btn--outline-light:hover {
  background: #fff;
  border-color: var(--slate-300);
}

.btn-row {
  display: flex;
  flex-wrap: wrap;
  gap: .9rem;
}

.hero-carousel {
  position: relative;
  margin-top: clamp(1rem, 1.5vw, 2rem);
  margin-bottom: clamp(2.3rem, 4vw, 3.4rem);
  border-radius: var(--r-xl);
  overflow: hidden;
  box-shadow: var(--shadow-lg);
  border: 1px solid var(--line);
  background: var(--navy-800);
}

.hc-track {
  display: flex;
  transition: transform .7s var(--ease-out);
}

.hc-slide {
  position: relative;
  flex: 0 0 100%;
  margin: 0;
  aspect-ratio: 16 / 6.6;
  overflow: hidden;
}

.hc-slide img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.hc-slide::after {
  content: "";
  position: absolute;
  inset: 0;
  background:
    linear-gradient(180deg, rgba(6, 15, 34, .04) 30%, rgba(6, 15, 34, .74) 100%),
    linear-gradient(90deg, rgba(6, 15, 34, .55), transparent 58%);
}

.hc-cap {
  position: absolute;
  z-index: 2;
  text-align: left;
  left: clamp(1.4rem, 3vw, 2.8rem);
  right: 1.4rem;
  bottom: clamp(1.4rem, 3vw, 2.4rem);
}

.hc-cap .st {
  display: inline-block;
  font-size: .72rem;
  font-weight: 700;
  letter-spacing: .14em;
  text-transform: uppercase;
  color: var(--cyan-300);
}

.hc-cap h3 {
  color: #fff;
  font-size: clamp(1.3rem, 2.4vw, 2rem);
  margin-top: .35rem;
  letter-spacing: -.02em;
}

.hc-cap p {
  color: rgba(226, 236, 255, .86);
  margin-top: .35rem;
  font-size: clamp(.9rem, 1.4vw, 1.05rem);
  max-width: 46ch;
}

.hc-arrow {
  position: absolute;
  z-index: 3;
  top: 50%;
  transform: translateY(-50%);
  width: 46px;
  height: 46px;
  border-radius: 50%;
  display: grid;
  place-items: center;
  color: #fff;
  background: rgba(10, 27, 61, .4);
  border: 1px solid rgba(255, 255, 255, .28);
  backdrop-filter: blur(6px);
  transition: background .2s, transform .2s;
}

.hc-arrow:hover {
  background: rgba(10, 27, 61, .68);
}

.hc-arrow:active {
  transform: translateY(-50%) scale(.94);
}

.hc-arrow svg {
  width: 22px;
  height: 22px;
}

.hc-prev {
  left: clamp(.7rem, 1.6vw, 1.2rem);
}

.hc-next {
  right: clamp(.7rem, 1.6vw, 1.2rem);
}

.hc-dots {
  position: absolute;
  z-index: 3;
  bottom: 1.05rem;
  right: clamp(1.4rem, 3vw, 2.8rem);
  display: flex;
  gap: .5rem;
}

.hc-dot {
  width: 9px;
  height: 9px;
  border-radius: 50%;
  border: none;
  padding: 0;
  background: rgba(255, 255, 255, .42);
  cursor: pointer;
  transition: width .3s var(--ease), background .3s;
}

.hc-dot:hover {
  background: rgba(255, 255, 255, .7);
}

.hc-dot.active {
  width: 26px;
  border-radius: 6px;
  background: var(--grad-brand);
}

.gauges {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: clamp(14px, 2vw, 30px);
  margin-top: clamp(2.2rem, 3.6vw, 3rem);
}

.gauge {
  position: relative;
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
}

.g-ring {
  position: relative;
  width: clamp(128px, 13vw, 168px);
  aspect-ratio: 1;
  display: grid;
  place-items: center;
}

.g-svg {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
}

.g-track {
  fill: none;
  stroke: var(--slate-200, #e6ecf5);
  stroke-width: 7;
}

.g-arc {
  fill: none;
  stroke: url(#gaugeGrad);
  stroke-width: 8;
  stroke-linecap: round;
  stroke-dasharray: 327;
  stroke-dashoffset: 327;
  transform: rotate(-90deg);
  transform-origin: 60px 60px;
  transition: stroke-dashoffset 1.6s cubic-bezier(.22, .61, .36, 1);
  filter: drop-shadow(0 4px 10px rgba(46, 123, 246, .28));
}

.gauge .g-ic {
  position: absolute;
  top: 18%;
  width: 34px;
  height: 34px;
  border-radius: 10px;
  display: grid;
  place-items: center;
  color: #fff;
  background: var(--grad-brand);
  box-shadow: var(--shadow-glow);
}

.gauge .g-ic svg {
  width: 18px;
  height: 18px;
}

.gauge .g-num {
  margin-top: 1.4rem;
  font-size: clamp(1.7rem, 2.6vw, 2.3rem);
  font-weight: 850;
  letter-spacing: -.03em;
  line-height: 1;
  background: var(--grad-brand);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

.gauge .g-cap {
  margin-top: 1rem;
  font-size: .94rem;
  font-weight: 600;
}

.gauge:hover .g-arc {
  filter: drop-shadow(0 6px 16px rgba(45, 212, 196, .42));
}

@media (max-width: 700px) {
  .hc-slide {
    aspect-ratio: 16 / 11;
  }

  .hc-arrow {
    width: 38px;
    height: 38px;
  }

  .hc-cap p {
    display: none;
  }

  .gauges {
    grid-template-columns: 1fr 1fr;
    row-gap: clamp(24px, 6vw, 36px);
  }
}

@media (max-width: 380px) {
  .gauges {
    grid-template-columns: 1fr;
  }
}

@media (prefers-reduced-motion: reduce) {
  .hc-track {
    transition: none;
  }

  .g-arc {
    transition: none;
  }
}

/* Stats row */
.hero-stats-row {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 1.25rem;
  margin-top: 4.5rem;
  max-width: 1100px;
  margin-inline: auto;
  position: relative;
  z-index: 10;
}

/* Background tech glow beam behind stats cards */
.stats-glow-beam {
  position: absolute;
  top: 50%;
  left: 5%;
  right: 5%;
  height: 2px;
  background: linear-gradient(90deg, transparent, rgba(46, 123, 246, .4), rgba(31, 196, 192, .4), transparent);
  filter: blur(4px);
  z-index: -1;
  pointer-events: none;
}

.hero-stat-card {
  position: relative;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  background: rgba(6, 15, 34, .46);
  border: 1px solid rgba(255, 255, 255, .08);
  box-shadow: 0 16px 36px -12px rgba(6, 15, 34, .55),
    inset 0 0 12px 1px rgba(255, 255, 255, .02);
  backdrop-filter: blur(24px);
  -webkit-backdrop-filter: blur(24px);
  border-radius: var(--r-lg);
  padding: 1.5rem;
  text-align: left;
  transition: transform .4s cubic-bezier(.175, .885, .32, 1.275),
    box-shadow .4s var(--ease),
    border-color .4s var(--ease),
    background-color .4s var(--ease);
  overflow: hidden;
}

/* Floating staggered animations */
.stat-card-readiness {
  animation: floaty-card 7s ease-in-out infinite;
}

.stat-card-domains {
  animation: floaty-card 7s ease-in-out infinite 0.7s;
}

.stat-card-programs {
  animation: floaty-card 7s ease-in-out infinite 1.4s;
}

.stat-card-regions {
  animation: floaty-card 7s ease-in-out infinite 2.1s;
}

@keyframes floaty-card {

  0%,
  100% {
    transform: translateY(0);
  }

  50% {
    transform: translateY(-8px);
  }
}

/* Cyber grid lines backdrop on stats cards */
.stat-card-bg-grid {
  position: absolute;
  inset: 0;
  background-image:
    linear-gradient(rgba(255, 255, 255, .015) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255, 255, 255, .015) 1px, transparent 1px);
  background-size: 15px 15px;
  mask-image: radial-gradient(ellipse at 50% 50%, #000, transparent 90%);
  pointer-events: none;
  z-index: 0;
}

.hero-stat-card .stat-card-header {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 1rem;
  z-index: 1;
}

.hero-stat-card .ic {
  width: 38px;
  height: 38px;
  border-radius: 10px;
  display: grid;
  place-items: center;
  color: #fff;
  background: linear-gradient(135deg, var(--blue-500), var(--cyan-400));
  box-shadow: 0 8px 20px -6px rgba(46, 123, 246, .6);
  flex: 0 0 auto;
}

.hero-stat-card .ic svg {
  width: 18px;
  height: 18px;
}

/* Specific glows and colors on hover */
.stat-card-readiness:hover {
  transform: translateY(-12px) scale(1.02);
  background: rgba(10, 27, 61, .56);
  border-color: rgba(46, 123, 246, .5);
  box-shadow: 0 24px 60px -15px rgba(46, 123, 246, .45),
    0 0 1px 1px rgba(46, 123, 246, .3) inset;
}

.stat-card-domains:hover {
  transform: translateY(-12px) scale(1.02);
  background: rgba(8, 28, 56, .56);
  border-color: rgba(31, 196, 192, .5);
  box-shadow: 0 24px 60px -15px rgba(31, 196, 192, .35),
    0 0 1px 1px rgba(31, 196, 192, .3) inset;
}

.stat-card-programs:hover {
  transform: translateY(-12px) scale(1.02);
  background: rgba(12, 24, 52, .56);
  border-color: rgba(79, 151, 255, .5);
  box-shadow: 0 24px 60px -15px rgba(79, 151, 255, .4),
    0 0 1px 1px rgba(79, 151, 255, .3) inset;
}

.stat-card-regions:hover {
  transform: translateY(-12px) scale(1.02);
  background: rgba(10, 24, 48, .56);
  border-color: rgba(31, 196, 192, .5);
  box-shadow: 0 24px 60px -15px rgba(31, 196, 192, .35),
    0 0 1px 1px rgba(31, 196, 192, .3) inset;
}

.hero-stat-card .stat-card-body {
  position: relative;
  z-index: 1;
}

.hero-stat-card .k {
  font-size: 2.1rem;
  font-weight: 900;
  color: #fff;
  letter-spacing: -.04em;
  line-height: 1.1;
}

.hero-stat-card .l {
  font-size: .78rem;
  color: rgba(230, 215, 255, .72);
  text-transform: uppercase;
  letter-spacing: .06em;
  margin-top: .35rem;
  font-weight: 700;
  line-height: 1.3;
}

/* Micro-elements */

/* 1. Pulse indicator */
.live-dot-pulse {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: #10b981;
  position: relative;
  display: inline-block;
  box-shadow: 0 0 10px rgba(16, 185, 129, .7);
}

.live-dot-pulse::after {
  content: "";
  position: absolute;
  inset: -4px;
  border-radius: 50%;
  border: 1px solid #10b981;
  animation: pulse-ring 2s infinite;
}

@keyframes pulse-ring {
  0% {
    transform: scale(0.6);
    opacity: 1;
  }

  100% {
    transform: scale(2.2);
    opacity: 0;
  }
}

/* 2. Sparkline curve animation */
.stat-card-micro-chart {
  margin-top: 1.1rem;
  height: 25px;
  overflow: visible;
  position: relative;
  z-index: 1;
}

.sparkline-svg {
  width: 100%;
  height: 100%;
  overflow: visible;
}

.sparkline-path {
  stroke-dasharray: 200;
  stroke-dashoffset: 200;
  animation: draw-line 2.5s ease-out forwards;
}

@keyframes draw-line {
  to {
    stroke-dashoffset: 0;
  }
}

/* 3. Radar scan rings */
.tech-radar-rings {
  position: relative;
  width: 24px;
  height: 24px;
}

.radar-ring {
  position: absolute;
  top: 50%;
  left: 50%;
  width: 16px;
  height: 16px;
  margin-top: -8px;
  margin-left: -8px;
  border: 1px solid rgba(245, 158, 11, .5);
  border-radius: 50%;
  pointer-events: none;
}

.radar-ring.r1 {
  animation: radar-grow 2.5s linear infinite;
}

.radar-ring.r2 {
  animation: radar-grow 2.5s linear infinite 1.25s;
}

@keyframes radar-grow {
  0% {
    transform: scale(0.5);
    opacity: 1;
  }

  100% {
    transform: scale(2.2);
    opacity: 0;
  }
}

/* 4. Mini tags style */
.stat-card-tags {
  display: flex;
  gap: .35rem;
  margin-top: 1rem;
  z-index: 1;
}

.mini-tag {
  font-size: .68rem;
  font-weight: 700;
  background: rgba(245, 158, 11, .1);
  border: 1px solid rgba(245, 158, 11, .25);
  color: var(--amber-300);
  padding: .2rem .5rem;
  border-radius: 6px;
}

/* 5. Progress bar style */
.stat-card-progress {
  margin-top: 1.2rem;
  z-index: 1;
}

.progress-bar-track {
  width: 100%;
  height: 5px;
  background: rgba(255, 255, 255, .08);
  border-radius: var(--r-pill);
  overflow: hidden;
}

.progress-bar-fill {
  height: 100%;
  background: linear-gradient(90deg, #7c3aed, #a855f7);
  border-radius: var(--r-pill);
  box-shadow: 0 0 8px rgba(168, 85, 247, .6);
  position: relative;
  width: 0;
  transition: width 1.8s cubic-bezier(.1, .8, .2, 1);
}

.hero-stats-row.in .progress-bar-fill {
  /* Triggered via scroll intersection class */
  animation: load-progress 1.8s cubic-bezier(.1, .8, .2, 1) forwards;
}

@keyframes load-progress {
  0% {
    width: 0;
  }

  100% {
    width: 88%;
  }
}

.badge-status-glow {
  font-size: .65rem;
  font-weight: 800;
  text-transform: uppercase;
  color: var(--violet-400);
  background: rgba(168, 85, 247, .15);
  border: 1px solid rgba(168, 85, 247, .3);
  padding: .15rem .45rem;
  border-radius: 6px;
  letter-spacing: .02em;
}

/* 6. Earth Spin */
.earth-spin-icon {
  font-size: 1.1rem;
  animation: y-spin 8s linear infinite;
  display: inline-block;
  transform-style: preserve-3d;
}

@keyframes y-spin {
  0% {
    transform: rotateY(0deg);
  }

  100% {
    transform: rotateY(360deg);
  }
}

.stat-card-footer-info {
  margin-top: 1.2rem;
  z-index: 1;
}

.loc-pills {
  font-size: .68rem;
  font-weight: 800;
  color: rgba(255, 255, 255, .4);
  letter-spacing: .08em;
}

.hero-stat-divider {
  width: 1px;
  height: 48px;
  background: rgba(255, 255, 255, .14);
  margin: 0 1rem;
  flex: 0 0 auto;
}

/* Orb 3 for center hero */
.orb-3 {
  width: 600px;
  height: 600px;
  background: radial-gradient(circle, rgba(124, 58, 237, .25), transparent 70%);
  top: 20%;
  left: 50%;
  transform: translateX(-50%);
  filter: blur(80px);
  opacity: .7;
  pointer-events: none;
}

.hero-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: clamp(32px, 5vw, 68px);
  align-items: stretch;
}

.hero h1 {
  color: var(--ink);
}

.hero .lead {
  color: var(--ink);
}

.hero .btn-row {
  margin-top: 2rem;
}

.hero-eyebrow {
  color: var(--cyan-300);
}

/* Hero visual: command center card cluster */
.hero-visual {
  position: relative;
}

.panel-stack {
  position: relative;
}

.glass {
  background: linear-gradient(160deg, rgba(255, 255, 255, .14), rgba(255, 255, 255, .05));
  border: 1px solid rgba(255, 255, 255, .18);
  border-radius: var(--r-lg);
  backdrop-filter: blur(14px);
  box-shadow: 0 30px 70px -30px rgba(0, 0, 0, .6);
}

.panel-main {
  padding: 1.4rem 1.5rem;
}

.panel-main .p-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 1.1rem;
}

.panel-main .p-title {
  font-weight: 700;
  font-size: .96rem;
  color: #eaf1ff;
}

.dot-row {
  display: flex;
  gap: 6px;
}

.dot-row i {
  width: 9px;
  height: 9px;
  border-radius: 50%;
  background: rgba(255, 255, 255, .35);
}

.dot-row i:nth-child(1) {
  background: #ff6b6b;
}

.dot-row i:nth-child(2) {
  background: #ffd166;
}

.dot-row i:nth-child(3) {
  background: #2dd4c4;
}

.metric-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 12px;
}

.metric {
  background: rgba(255, 255, 255, .06);
  border: 1px solid rgba(255, 255, 255, .1);
  border-radius: 14px;
  padding: .85rem .95rem;
}

.metric .k {
  font-size: 1.5rem;
  font-weight: 800;
  color: #fff;
  letter-spacing: -.02em;
}

.metric .l {
  font-size: .75rem;
  color: rgba(226, 236, 255, .7);
  text-transform: uppercase;
  letter-spacing: .08em;
}

.spark {
  height: 44px;
  margin-top: 12px;
  display: flex;
  align-items: flex-end;
  gap: 5px;
}

.spark i {
  flex: 1;
  border-radius: 4px 4px 0 0;
  background: linear-gradient(180deg, #2dd4c4, #2e7bf6);
  opacity: .85;
}

.chip-float {
  position: absolute;
  display: inline-flex;
  align-items: center;
  gap: .5rem;
  font-size: .82rem;
  font-weight: 700;
  color: #0a1b3d;
  background: #fff;
  padding: .55rem .8rem;
  border-radius: var(--r-pill);
  box-shadow: var(--shadow-lg);
}

.chip-float .ic {
  width: 22px;
  height: 22px;
  border-radius: 50%;
  display: grid;
  place-items: center;
  color: #fff;
  background: var(--grad-brand);
}

.chip-1 {
  top: -18px;
  left: -20px;
}

.chip-2 {
  bottom: -20px;
  right: -12px;
}


.hero-trust {
  display: flex;
  align-items: center;
  gap: 1rem;
  margin-top: 2.2rem;
  padding-top: 1.6rem;
  border-top: 1px solid rgba(255, 255, 255, .12);
}

.hero-trust .ht-ic {
  flex: 0 0 auto;
  width: 44px;
  height: 44px;
  border-radius: 12px;
  display: grid;
  place-items: center;
  color: #fff;
  background: rgba(255, 255, 255, .08);
  border: 1px solid rgba(255, 255, 255, .16);
}

.hero-trust .ht-ic svg {
  width: 22px;
  height: 22px;
}

.hero-trust .loc {
  font-weight: 800;
  color: #fff;
  letter-spacing: -.01em;
}

.hero-trust .loc .dot {
  color: var(--amber-400);
  margin: 0 .15rem;
}

.hero-trust .sub {
  font-size: .84rem;
  color: rgba(226, 236, 255, .68);
  margin-top: .1rem;
}

/* ---------- Redesigned Stat Band Ribbon ---------- */
.stat-band-section {
  padding-block: clamp(12px, 2vw, 24px);
  position: relative;
  z-index: 10;
  margin-top: -30px;
}

.stat-band-ribbon {
  background: rgba(255, 255, 255, .82);
  border: 1px solid var(--line);
  box-shadow: 0 20px 50px -25px rgba(26, 8, 69, .15);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  border-radius: var(--r-xl);
  padding: 1.8rem 2.5rem;
  position: relative;
  overflow: hidden;
  transition: border-color .3s, box-shadow .3s, transform .3s;
}

.stat-band-ribbon::before {
  content: "";
  position: absolute;
  inset: 0;
  border-radius: inherit;
  padding: 1px;
  background: linear-gradient(90deg, transparent, rgba(124, 58, 237, 0.3), rgba(245, 158, 11, 0.3), transparent);
  -webkit-mask: linear-gradient(#000 0 0) content-box, linear-gradient(#000 0 0);
  -webkit-mask-composite: xor;
  mask-composite: exclude;
  pointer-events: none;
}

.stat-band-ribbon:hover {
  transform: translateY(-3px);
  box-shadow: 0 25px 60px -20px rgba(124, 58, 237, .25);
  border-color: rgba(124, 58, 237, .2);
}

.stat-ribbon-grid {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
}

.stat-segment {
  display: flex;
  align-items: center;
  gap: 1.15rem;
  flex: 1;
  padding: .5rem 1rem;
  transition: transform .3s var(--ease), opacity .3s var(--ease);
}

.stat-segment-icon {
  width: 52px;
  height: 52px;
  border-radius: 14px;
  display: grid;
  place-items: center;
  color: var(--violet-600);
  background: linear-gradient(160deg, rgba(46, 123, 246, .12), rgba(45, 212, 196, .14));
  border: 1px solid rgba(124, 58, 237, .14);
  box-shadow: 0 4px 12px rgba(124, 58, 237, .04);
  flex: 0 0 auto;
  transition: color .3s, background .3s, transform .3s;
}

.stat-segment-icon svg {
  width: 24px;
  height: 24px;
  transition: transform .4s cubic-bezier(.175, .885, .32, 1.2);
}

.stat-segment-info {
  display: flex;
  flex-direction: column;
}

.stat-segment .num {
  font-size: clamp(1.8rem, 2.5vw, 2.3rem);
  font-weight: 900;
  line-height: 1.1;
  letter-spacing: -.03em;
  background: var(--grad-brand);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
  transition: transform .3s;
}

.stat-segment .cap {
  font-size: .88rem;
  color: var(--text-muted);
  font-weight: 700;
  letter-spacing: -.01em;
  margin-top: .15rem;
  line-height: 1.3;
}

/* Hover effects for individual segments */
.stat-segment:hover {
  transform: scale(1.04) translateX(2px);
}

.stat-segment:hover .stat-segment-icon {
  color: #fff;
  background: var(--grad-brand);
  border-color: transparent;
  box-shadow: var(--shadow-glow);
  transform: rotate(-8deg);
}

.stat-segment:hover .stat-segment-icon svg {
  transform: scale(1.1);
}

/* Separators with glowing slide-beam */
.stat-ribbon-divider {
  width: 1px;
  height: 48px;
  background: var(--line);
  position: relative;
  flex: 0 0 auto;
}

.divider-beam {
  position: absolute;
  top: 0;
  left: -1px;
  width: 3px;
  height: 15px;
  background: linear-gradient(180deg, var(--violet-500), var(--amber-500));
  border-radius: var(--r-pill);
  opacity: 0.8;
  animation: move-beam 4s ease-in-out infinite;
}

@keyframes move-beam {
  0% {
    top: -10%;
  }

  100% {
    top: 110%;
  }
}

/* Responsive Ribbon */
@media (max-width: 992px) {
  .stat-band-ribbon {
    padding: 1.5rem;
  }

  .stat-segment {
    gap: .8rem;
  }

  .stat-segment-icon {
    width: 44px;
    height: 44px;
    border-radius: 11px;
  }

  .stat-segment-icon svg {
    width: 20px;
    height: 20px;
  }
}

@media (max-width: 860px) {
  .stat-ribbon-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 1.5rem 1rem;
  }

  .stat-ribbon-divider {
    display: none;
  }

  .stat-segment {
    justify-content: center;
  }
}

@media (max-width: 480px) {
  .stat-ribbon-grid {
    grid-template-columns: 1fr;
    gap: 1.2rem;
  }

  .stat-segment {
    justify-content: flex-start;
    padding-inline: 0.5rem;
  }
}

/* ---------- Cards ---------- */
.card {
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: var(--r-lg);
  padding: clamp(1.4rem, 2.4vw, 2rem);
  box-shadow: var(--shadow-sm);
  transition: transform .32s var(--ease), box-shadow .32s var(--ease), border-color .32s;
  position: relative;
  overflow: hidden;
  height: 100%;
}

.card:hover {
  transform: translateY(-6px);
  box-shadow: var(--shadow-md);
  border-color: #d0c5f5;
}

.card .h3 {
  margin-bottom: .55rem;
}

.card p {
  color: var(--text-muted);
  font-size: .98rem;
}

.card-ico {
  width: 54px;
  height: 54px;
  border-radius: 15px;
  display: grid;
  place-items: center;
  color: #fff;
  background: var(--grad-brand);
  margin-bottom: 1.1rem;
  box-shadow: var(--shadow-glow);
}

.card-ico svg {
  width: 26px;
  height: 26px;
}

.card-ico.emoji {
  font-size: 1.6rem;
}

.card--accent-line::before {
  content: "";
  position: absolute;
  inset: 0 auto 0 0;
  width: 4px;
  background: var(--grad-brand);
  transform: scaleY(0);
  transform-origin: top;
  transition: transform .35s var(--ease);
}

.card--accent-line:hover::before {
  transform: scaleY(1);
}

/* Feature list */
.feature {
  display: flex;
  gap: 1rem;
  align-items: flex-start;
}

.feature .fi {
  flex: 0 0 auto;
  width: 46px;
  height: 46px;
  border-radius: 13px;
  display: grid;
  place-items: center;
  background: linear-gradient(160deg, rgba(124, 58, 237, .12), rgba(168, 85, 247, .14));
  color: var(--violet-600);
}

.feature .fi svg {
  width: 22px;
  height: 22px;
}

.feature h4 {
  font-size: 1.08rem;
  margin-bottom: .25rem;
}

.feature p {
  color: var(--text-muted);
  font-size: .95rem;
}

/* Check list */
.check-list {
  display: grid;
  gap: .85rem;
}

.check-list li {
  display: flex;
  gap: .7rem;
  align-items: flex-start;
  font-weight: 600;
  color: var(--slate-700);
}

.check-list li svg {
  flex: 0 0 auto;
  width: 22px;
  height: 22px;
  color: var(--cyan-500);
  margin-top: 1px;
}

.check-list.on-dark li {
  color: rgba(233, 240, 255, .9);
}

.check-list.on-dark li svg {
  color: var(--cyan-400);
}

/* Differentiator tiles (icon grid) */
.diff-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: clamp(12px, 1.4vw, 16px);
}

.diff-tile {
  background: #fff;
  border: 1px solid var(--line);
  border-radius: var(--r-md);
  padding: clamp(1rem, 1.6vw, 1.25rem);
  box-shadow: var(--shadow-sm);
  transition: transform .3s var(--ease), box-shadow .3s var(--ease), border-color .3s;
}

.diff-tile:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-md);
  border-color: rgba(46, 123, 246, .28);
}

.diff-ico {
  width: 42px;
  height: 42px;
  border-radius: 12px;
  display: grid;
  place-items: center;
  margin-bottom: .85rem;
  color: var(--blue-600);
  background: linear-gradient(160deg, rgba(46, 123, 246, .12), rgba(31, 196, 192, .14));
}

.diff-ico svg {
  width: 21px;
  height: 21px;
}

.diff-tile h4 {
  font-size: 1.02rem;
  letter-spacing: -.01em;
  margin-bottom: .25rem;
}

.diff-tile p {
  font-size: .86rem;
  color: var(--text-muted);
  line-height: 1.5;
}

@media (max-width: 520px) {
  .diff-grid {
    grid-template-columns: 1fr;
  }
}

/* Pill tags */
.tag-cloud {
  display: flex;
  flex-wrap: wrap;
  gap: .5rem;
}

.tag {
  font-size: .82rem;
  font-weight: 600;
  color: var(--slate-700);
  background: var(--slate-100);
  border: 1px solid var(--line);
  padding: .38rem .8rem;
  border-radius: var(--r-pill);
}

.card:hover .tag {
  border-color: #d6e0f2;
}

/* ---------- Purpose / Vision / Mission cards ---------- */
.pvm-card {
  position: relative;
  overflow: hidden;
  height: 100%;
  background: #fff;
  border: 1px solid var(--line);
  border-radius: var(--r-xl);
  padding: clamp(1.8rem, 2.6vw, 2.5rem);
  box-shadow: var(--shadow-sm);
  transition: transform .32s var(--ease), box-shadow .32s var(--ease), border-color .32s;
}

.pvm-card:hover {
  transform: translateY(-6px);
  box-shadow: var(--shadow-md);
  border-color: #d3def0;
}

.pvm-card::before {
  content: "";
  position: absolute;
  inset: 0 0 auto 0;
  height: 4px;
  background: var(--grad-brand);
  transform: scaleX(0);
  transform-origin: left;
  transition: transform .45s var(--ease);
}

.pvm-card:hover::before {
  transform: scaleX(1);
}

.pvm-watermark {
  position: absolute;
  top: -20px;
  right: -16px;
  color: rgba(46, 123, 246, .06);
  pointer-events: none;
}

.pvm-watermark svg {
  width: 132px;
  height: 132px;
}

.pvm-ico {
  position: relative;
  z-index: 1;
  width: 60px;
  height: 60px;
  border-radius: 16px;
  display: grid;
  place-items: center;
  color: #fff;
  background: var(--grad-brand);
  box-shadow: var(--shadow-glow);
  margin-bottom: 1.35rem;
}

.pvm-ico svg {
  width: 30px;
  height: 30px;
}

.pvm-kicker {
  position: relative;
  z-index: 1;
  display: inline-block;
  font-size: .74rem;
  font-weight: 700;
  letter-spacing: .14em;
  text-transform: uppercase;
  color: var(--violet-600);
}

.pvm-title {
  position: relative;
  z-index: 1;
  font-size: clamp(1.2rem, 1.7vw, 1.42rem);
  margin: .45rem 0 0;
  letter-spacing: -.02em;
  line-height: 1.25;
}

.pvm-title::after {
  content: "";
  display: block;
  width: 40px;
  height: 3px;
  border-radius: 3px;
  background: var(--grad-brand);
  margin: 1rem 0 1.05rem;
}

.pvm-desc {
  position: relative;
  z-index: 1;
  color: var(--text-muted);
  font-size: .98rem;
}

/* ---------- Process / Steps ---------- */
.steps {
  counter-reset: step;
  display: grid;
  gap: clamp(18px, 2.4vw, 26px);
}

.step {
  position: relative;
}

.step-num {
  width: 52px;
  height: 52px;
  border-radius: 15px;
  display: grid;
  place-items: center;
  font-weight: 800;
  font-size: 1.15rem;
  color: #fff;
  background: var(--grad-ink);
  background-origin: border-box;
  background-clip: border-box;
  margin-bottom: 1rem;
  position: relative;
}

.step-num::after {
  content: "";
  position: absolute;
  inset: -2px;
  border-radius: 17px;
  padding: 2px;
  background: var(--grad-brand);
  background-origin: border-box;
  background-clip: border-box;
  -webkit-mask: linear-gradient(#000 0 0) content-box, linear-gradient(#000 0 0);
  -webkit-mask-composite: xor;
  mask-composite: exclude;
}

.step h4 {
  font-size: 1.14rem;
  margin-bottom: .4rem;
}

.step p {
  color: var(--text-muted);
  font-size: .95rem;
}

/* ---------- Approach timeline (connected process) ---------- */
.approach-split {
  align-items: start;
}

.approach-intro {
  position: sticky;
  top: 104px;
}

.timeline {
  position: relative;
}

.timeline::before {
  content: "";
  position: absolute;
  left: 26px;
  top: 20px;
  bottom: 26px;
  width: 2px;
  border-radius: 2px;
  background: linear-gradient(180deg, rgba(46, 123, 246, .55), rgba(45, 212, 196, .55));
}

.tl-step {
  position: relative;
  display: grid;
  grid-template-columns: 54px 1fr;
  gap: 1.25rem;
  padding-bottom: clamp(1.4rem, 2.4vw, 2rem);
}

.tl-step:last-child {
  padding-bottom: 0;
}

.tl-node {
  position: relative;
  z-index: 1;
  width: 54px;
  height: 54px;
  border-radius: 16px;
  display: grid;
  place-items: center;
  color: #fff;
  background: var(--grad-ink);
  background-origin: border-box;
  background-clip: border-box;
  box-shadow: var(--shadow-md);
  transition: transform .3s var(--ease), box-shadow .3s var(--ease);
}

.tl-node svg {
  width: 24px;
  height: 24px;
}

.tl-node::after {
  content: "";
  position: absolute;
  inset: -2px;
  border-radius: 18px;
  padding: 2px;
  background: var(--grad-brand);
  background-origin: border-box;
  background-clip: border-box;
  -webkit-mask: linear-gradient(#000 0 0) content-box, linear-gradient(#000 0 0);
  -webkit-mask-composite: xor;
  mask-composite: exclude;
}

.tl-step:hover .tl-node {
  transform: translateY(-3px) scale(1.03);
  box-shadow: var(--shadow-glow);
}

.tl-body {
  padding-top: .3rem;
}

.tl-phase {
  font-size: .72rem;
  font-weight: 700;
  letter-spacing: .12em;
  text-transform: uppercase;
  color: var(--violet-600);
}

.tl-body h4 {
  font-size: 1.2rem;
  margin: .2rem 0 .45rem;
  letter-spacing: -.01em;
}

.tl-body p {
  color: var(--text-muted);
  font-size: .97rem;
}

@media (max-width: 920px) {
  .approach-intro {
    position: static;
  }

  .timeline {
    margin-top: .5rem;
  }
}

/* ---------- Split / media ---------- */
.split {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: clamp(32px, 5vw, 64px);
  align-items: center;
}

.media-card {
  border-radius: var(--r-xl);
  padding: 2rem;
  color: #fff;
  background: var(--grad-hero);
  position: relative;
  overflow: hidden;
  box-shadow: var(--shadow-lg);
  min-height: 340px;
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
}

.media-card .orb {
  opacity: .55;
}

/* ---------- Industries chips ---------- */
.pill-grid {
  display: flex;
  flex-wrap: wrap;
  gap: .75rem;
}

.pill-grid .pill {
  display: inline-flex;
  align-items: center;
  gap: .55rem;
  font-weight: 650;
  color: var(--slate-700);
  background: var(--white);
  border: 1px solid var(--line);
  padding: .7rem 1.15rem;
  border-radius: var(--r-pill);
  box-shadow: var(--shadow-sm);
  transition: transform .2s, border-color .2s, color .2s;
}

.pill-grid .pill:hover {
  transform: translateY(-3px);
  border-color: var(--blue-400);
  color: var(--blue-600);
}

.pill-grid .pill svg {
  width: 18px;
  height: 18px;
  color: var(--cyan-500);
}

/* ---------- 3D Cylinder Carousel ---------- */
:root {
  --carousel-tz: 340px;
  --card-w: 280px;
  --card-h: 240px;
}

@media (max-width: 1080px) {
  :root {
    --carousel-tz: 280px;
    --card-w: 250px;
    --card-h: 230px;
  }
}

@media (max-width: 768px) {
  :root {
    --carousel-tz: 220px;
    --card-w: 200px;
    --card-h: 210px;
  }
}

@media (max-width: 480px) {
  :root {
    --carousel-tz: 160px;
    --card-w: 165px;
    --card-h: 200px;
  }
}

.perspective-container {
  perspective: 1200px;
  position: relative;
  width: 100%;
  max-width: 1100px;
  height: 400px;
  margin: 3.5rem auto 1rem auto;
  display: flex;
  align-items: center;
  justify-content: center;
  /* overflow: hidden removed to fix Safari 3D flattening */
}

.carousel-3d {
  width: var(--card-w);
  height: var(--card-h);
  position: relative;
  transform-style: preserve-3d;
  transition: transform 0.8s cubic-bezier(0.16, 1, 0.3, 1);
}

.panel-3d {
  position: absolute;
  width: 100%;
  height: 100%;
  left: 0;
  top: 0;
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: var(--r-md);
  box-shadow: var(--shadow-sm);
  padding: 1.5rem 1.25rem;
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  backface-visibility: hidden;
  transition: transform 0.5s var(--ease-out), border-color 0.3s, box-shadow 0.3s;
  transform: rotateY(calc(var(--i) * 45deg)) translateZ(var(--carousel-tz));
}

.panel-3d::before {
  content: '';
  position: absolute;
  inset: 0;
  background: var(--grad-brand-soft);
  opacity: 0;
  z-index: -1;
  border-radius: inherit;
  transition: opacity 0.4s var(--ease-out);
}

.panel-3d:hover::before {
  opacity: 0.035;
}

.panel-3d:hover {
  transform: rotateY(calc(var(--i) * 45deg)) translateZ(calc(var(--carousel-tz) + 25px)) scale(1.06);
  border-color: rgba(124, 58, 237, 0.35);
  box-shadow: var(--shadow-glow), 0 15px 35px rgba(108, 33, 232, 0.25);
  z-index: 10;
}

.panel-3d .icon-wrap {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 44px;
  height: 44px;
  border-radius: 12px;
  background: var(--slate-100);
  color: var(--violet-600);
  margin-bottom: 1rem;
  transition: transform 0.4s var(--ease-out), background 0.4s var(--ease-out), color 0.4s var(--ease-out), box-shadow 0.4s var(--ease-out);
}

.panel-3d:hover .icon-wrap {
  background: var(--violet-600);
  color: var(--white);
  transform: scale(1.1) rotate(6deg);
  box-shadow: 0 6px 15px -4px rgba(108, 33, 232, 0.45);
}

.panel-3d .icon-wrap svg {
  width: 20px;
  height: 20px;
  stroke-width: 2px;
}

.panel-3d h4 {
  font-size: 1.05rem;
  font-weight: 750;
  color: var(--ink);
  margin: 0 0 0.5rem 0;
}

.panel-3d p {
  font-size: 0.825rem;
  color: var(--slate-600);
  line-height: 1.45;
  margin: 0;
}

/* Control buttons style */
.carousel-control {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  width: 50px;
  height: 50px;
  border-radius: 50%;
  background: var(--white);
  border: 1px solid var(--line);
  color: var(--violet-600);
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  z-index: 20;
  box-shadow: var(--shadow-sm);
  transition: all 0.3s var(--ease-out);
}

.carousel-control:hover {
  background: var(--violet-600);
  color: var(--white);
  border-color: transparent;
  box-shadow: 0 8px 24px rgba(108, 33, 232, 0.3);
  transform: translateY(-50%) scale(1.08);
}

.carousel-control svg {
  width: 22px;
  height: 22px;
}

.carousel-control.prev {
  left: 20px;
}

.carousel-control.next {
  right: 20px;
}

@media (max-width: 768px) {
  .perspective-container {
    perspective: none;
    height: auto;
    margin: 2rem auto;
    padding: 0 10% 4.5rem 10%;
    overflow: hidden;
    display: flex;
    align-items: center;
    justify-content: flex-start;
  }

  .carousel-3d {
    display: flex;
    gap: 5%;
    width: 100%;
    height: auto;
    transform-style: flat;
    transform: translateX(calc(-1 * var(--active-index, 0) * 85%)) !important;
    transition: transform 0.6s cubic-bezier(0.16, 1, 0.3, 1);
  }

  .panel-3d {
    position: relative;
    flex: 0 0 80%;
    width: 80% !important;
    height: auto !important;
    min-height: 230px;
    transform: none !important;
    backface-visibility: visible;
    margin: 0;
    opacity: 0.45;
    scale: 0.94;
    transition: opacity 0.4s var(--ease-out), transform 0.4s var(--ease-out), scale 0.4s var(--ease-out), border-color 0.3s, box-shadow 0.3s;
  }

  .panel-3d.active {
    opacity: 1;
    scale: 1;
    box-shadow: var(--shadow-md), 0 10px 25px rgba(108, 33, 232, 0.12);
    border-color: rgba(124, 58, 237, 0.3);
  }

  .carousel-control {
    top: auto;
    bottom: 1rem;
    transform: none;
    width: 40px;
    height: 40px;
  }

  .carousel-control svg {
    width: 18px;
    height: 18px;
  }

  .carousel-control.prev {
    left: calc(50% - 50px);
  }

  .carousel-control.next {
    right: calc(50% - 50px);
  }

  .carousel-control:hover {
    transform: scale(1.08) !important;
  }

  .panel-3d p {
    font-size: 0.8rem;
  }
}

@media (max-width: 480px) {
  .perspective-container {
    padding: 0 6% 4.5rem 6%;
  }

  .carousel-3d {
    transform: translateX(calc(-1 * var(--active-index, 0) * 93%)) !important;
  }

  .panel-3d {
    flex: 0 0 88%;
    width: 88% !important;
    min-height: 210px;
    padding: 1.25rem 1rem;
  }

  .panel-3d p {
    font-size: 0.75rem;
  }

  .carousel-control.prev {
    left: calc(50% - 48px);
  }

  .carousel-control.next {
    right: calc(50% - 48px);
  }
}

/* ---------- Domain / logo marquee ---------- */
.marquee-wrapper {
  display: flex;
  flex-direction: column;
  gap: 1.5rem;
  margin-top: 1rem;
}

.marquee {
  overflow: hidden;
  -webkit-mask-image: linear-gradient(90deg, transparent, #000 8%, #000 92%, transparent);
  mask-image: linear-gradient(90deg, transparent, #000 8%, #000 92%, transparent);
  padding-block: 0.5rem;
}

.marquee-track {
  display: flex;
  gap: 2rem;
  width: max-content;
  animation: scroll-x 38s linear infinite;
}

.marquee--reverse .marquee-track {
  animation: scroll-x-reverse 38s linear infinite;
}

.marquee:hover .marquee-track {
  animation-play-state: paused;
}

.marquee-item {
  display: inline-flex;
  align-items: center;
  gap: 0.65rem;
  background: var(--white);
  border: 1px solid var(--line);
  padding: 0.8rem 1.6rem;
  border-radius: var(--r-pill);
  font-weight: 750;
  font-size: 1.05rem;
  color: var(--slate-700);
  box-shadow: var(--shadow-sm);
  transition: transform 0.35s var(--ease-out), border-color 0.35s, color 0.35s, box-shadow 0.35s;
  white-space: nowrap;
  cursor: default;
}

.brand-dot {
  width: 9px;
  height: 9px;
  border-radius: 50%;
  background-color: var(--brand-color);
  box-shadow: 0 0 8px var(--brand-color);
  transition: transform 0.35s var(--ease-out);
}

.marquee-item:hover {
  transform: translateY(-4px) scale(1.04);
  border-color: var(--brand-color);
  color: var(--ink);
  box-shadow: 0 8px 20px -6px rgba(26, 8, 69, 0.1), 0 0 14px -1px var(--brand-color);
}

.marquee-item:hover .brand-dot {
  transform: scale(1.2);
}

@keyframes scroll-x {
  to {
    transform: translateX(-50%);
  }
}

@keyframes scroll-x-reverse {
  from {
    transform: translateX(-50%);
  }

  to {
    transform: translateX(0);
  }
}

/* ---------- Framed feature images (image + copy splits) ---------- */
.feature-img {
  position: relative;
  border-radius: var(--r-xl);
  overflow: hidden;
  box-shadow: var(--shadow-lg);
  aspect-ratio: 4 / 3.1;
}

.feature-img img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform .8s var(--ease);
}

.feature-img:hover img {
  transform: scale(1.05);
}

.feature-img::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: 1;
  background: linear-gradient(150deg, rgba(10, 27, 61, .06), rgba(10, 27, 61, .34));
}

.feature-img::after {
  content: "";
  position: absolute;
  inset: 0;
  z-index: 1;
  box-shadow: inset 0 0 0 1px rgba(255, 255, 255, .14);
  border-radius: inherit;
  pointer-events: none;
}

.img-chip {
  position: absolute;
  z-index: 2;
  bottom: 1.1rem;
  left: 1.1rem;
  display: inline-flex;
  align-items: center;
  gap: .6rem;
  background: rgba(255, 255, 255, .92);
  backdrop-filter: blur(8px);
  color: var(--purple-950);
  padding: .6rem .95rem;
  border-radius: var(--r-pill);
  box-shadow: var(--shadow-md);
  font-weight: 700;
  font-size: .86rem;
}

.img-chip .ic {
  width: 26px;
  height: 26px;
  border-radius: 50%;
  display: grid;
  place-items: center;
  color: #fff;
  background: var(--grad-brand);
}

.img-chip .ic svg {
  width: 15px;
  height: 15px;
}

/* Image spotlight cards (image on top, copy below) */
.spot-card {
  padding: 0;
  overflow: hidden;
  display: flex;
  flex-direction: column;
}

.spot-card .spot-media {
  position: relative;
  aspect-ratio: 16 / 9;
  overflow: hidden;
}

.spot-card .spot-media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform .8s var(--ease);
}

.spot-card:hover .spot-media img {
  transform: scale(1.06);
}

.spot-card .spot-media::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, rgba(8, 20, 40, .05), rgba(8, 20, 40, .4));
}

.spot-card .spot-body {
  padding: clamp(1.3rem, 2vw, 1.8rem);
  flex: 1;
}

.spot-card .spot-tag {
  position: absolute;
  z-index: 1;
  top: 1rem;
  left: 1rem;
  font-size: .72rem;
  font-weight: 700;
  letter-spacing: .12em;
  text-transform: uppercase;
  color: #fff;
  background: rgba(10, 27, 61, .55);
  backdrop-filter: blur(6px);
  padding: .4rem .8rem;
  border-radius: var(--r-pill);
  border: 1px solid rgba(255, 255, 255, .2);
}

/* ---------- Service-line image showcase (auto-scroll) ---------- */
.showcase {
  overflow: hidden;
}

.showcase-viewport {
  overflow: hidden;
  margin-top: clamp(30px, 4vw, 46px);
  -webkit-mask-image: linear-gradient(90deg, transparent, #000 6%, #000 94%, transparent);
  mask-image: linear-gradient(90deg, transparent, #000 6%, #000 94%, transparent);
}

.showcase-track {
  display: flex;
  gap: clamp(16px, 1.8vw, 26px);
  width: max-content;
  animation: scroll-x 55s linear infinite;
  will-change: transform;
}

.showcase-track.rev {
  animation-duration: 65s;
  animation-direction: reverse;
  margin-top: clamp(16px, 1.8vw, 26px);
}

.showcase-viewport:hover .showcase-track {
  animation-play-state: paused;
}

.showcase-card {
  position: relative;
  flex: 0 0 auto;
  width: clamp(280px, 30vw, 400px);
  aspect-ratio: 4 / 3;
  border-radius: var(--r-lg);
  overflow: hidden;
  box-shadow: var(--shadow-md);
  background: var(--purple-800);
}

.showcase-card img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform .7s var(--ease);
}

.showcase-card:hover img {
  transform: scale(1.07);
}

.showcase-card .ov {
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, rgba(8, 20, 40, 0) 28%, rgba(8, 20, 40, .55) 62%, rgba(6, 15, 34, .9) 100%);
}

.showcase-card .ov::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(120deg, rgba(124, 58, 237, .22), rgba(245, 158, 11, .16));
  opacity: 0;
  transition: opacity .4s var(--ease);
}

.showcase-card:hover .ov::after {
  opacity: 1;
}

.showcase-card .cap {
  position: absolute;
  left: 1.3rem;
  right: 1.3rem;
  bottom: 1.2rem;
  z-index: 1;
}

.showcase-card .cap .st {
  display: inline-block;
  font-size: .7rem;
  font-weight: 700;
  letter-spacing: .14em;
  text-transform: uppercase;
  color: var(--amber-300);
}

.showcase-card .cap h4 {
  color: #fff;
  font-size: 1.2rem;
  margin-top: .3rem;
  letter-spacing: -.02em;
}

.showcase-card .cap p {
  color: rgba(226, 236, 255, .82);
  font-size: .88rem;
  margin-top: .3rem;
}

@media (prefers-reduced-motion: reduce) {
  .showcase-track {
    animation: none;
  }
}

@media (max-width: 560px) {
  .showcase-card {
    width: 78vw;
  }
}

/* ---------- Solutions pillar switcher ---------- */
.switcher {
  display: grid;
  grid-template-columns: .84fr 1.16fr;
  gap: clamp(18px, 2.4vw, 34px);
  align-items: stretch;
}

.switcher-tabs {
  display: flex;
  flex-direction: column;
  gap: clamp(10px, 1.2vw, 14px);
}

@media (min-width: 861px) {
  .switcher-tabs {
    height: 100%;
  }

  .p-tab {
    flex: 1;
  }
}

.p-tab {
  display: flex;
  align-items: center;
  gap: 1rem;
  width: 100%;
  text-align: left;
  cursor: pointer;
  padding: 1.05rem 1.15rem;
  border-radius: var(--r-lg);
  border: 1px solid var(--line);
  background: #fff;
  position: relative;
  overflow: hidden;
  transition: border-color .3s var(--ease), box-shadow .3s var(--ease), transform .3s var(--ease);
}

.p-tab::before {
  content: "";
  position: absolute;
  inset: 0 auto 0 0;
  width: 4px;
  background: var(--grad-brand);
  transform: scaleY(0);
  transform-origin: center;
  transition: transform .35s var(--ease);
}

.p-tab:hover {
  border-color: #d0c5f5;
}

.p-tab.active {
  border-color: transparent;
  box-shadow: var(--shadow-md);
  transform: translateX(2px);
}

.p-tab.active::before {
  transform: scaleY(1);
}

.p-tab .num {
  font-size: .82rem;
  font-weight: 800;
  color: var(--slate-400);
  letter-spacing: .04em;
  flex: 0 0 auto;
  width: 20px;
  transition: color .3s;
}

.p-tab.active .num {
  color: var(--violet-600);
}

.p-tab .p-ic {
  flex: 0 0 auto;
  width: 46px;
  height: 46px;
  border-radius: 13px;
  display: grid;
  place-items: center;
  color: var(--violet-600);
  background: linear-gradient(160deg, rgba(46, 123, 246, .12), rgba(45, 212, 196, .14));
  transition: color .3s, background .3s;
}

.p-tab .p-ic svg {
  width: 23px;
  height: 23px;
}

.p-tab.active .p-ic {
  color: #fff;
  background: var(--grad-brand);
  box-shadow: var(--shadow-glow);
}

.p-tab .t-copy {
  display: flex;
  flex-direction: column;
  min-width: 0;
}

.p-tab .t-title {
  font-weight: 750;
  color: var(--ink);
  font-size: 1.05rem;
  letter-spacing: -.01em;
}

.p-tab .t-sub {
  font-size: .84rem;
  color: var(--text-muted);
  margin-top: .1rem;
}

.p-tab .t-arrow {
  margin-left: auto;
  flex: 0 0 auto;
  width: 20px;
  height: 20px;
  color: var(--slate-300);
  opacity: 0;
  transform: translateX(-6px);
  transition: opacity .3s, transform .3s, color .3s;
}

.p-tab.active .t-arrow {
  opacity: 1;
  transform: none;
  color: var(--violet-500);
}

.switcher-stage {
  position: relative;
  border-radius: var(--r-xl);
  overflow: hidden;
  background: var(--grad-ink);
  box-shadow: var(--shadow-lg);
  min-height: 440px;
  isolation: isolate;
}

.switcher-stage .orb {
  opacity: .5;
}

.switcher-stage .stage-mesh {
  position: absolute;
  inset: 0;
  background-image: linear-gradient(rgba(255, 255, 255, .045) 1px, transparent 1px), linear-gradient(90deg, rgba(255, 255, 255, .045) 1px, transparent 1px);
  background-size: 46px 46px;
  mask-image: radial-gradient(circle at 70% 30%, #000, transparent 78%);
}

.p-panel {
  display: none;
  flex-direction: column;
  justify-content: center;
  padding: clamp(1.7rem, 3vw, 2.8rem);
  opacity: 0;
  transform: translateY(14px);
  pointer-events: none;
  transition: opacity .5s var(--ease-out), transform .5s var(--ease-out);
}

.p-panel.active {
  display: flex;
  opacity: 1;
  transform: none;
  pointer-events: auto;
}

.p-num-water {
  position: absolute;
  top: clamp(1rem, 2.4vw, 1.8rem);
  right: clamp(1.2rem, 3vw, 2.2rem);
  font-size: clamp(4.5rem, 9vw, 8rem);
  font-weight: 900;
  line-height: 1;
  letter-spacing: -.05em;
  color: rgba(255, 255, 255, .06);
  pointer-events: none;
}

.p-panel-ic {
  width: 60px;
  height: 60px;
  border-radius: 16px;
  display: grid;
  place-items: center;
  color: #fff;
  background: var(--grad-brand);
  box-shadow: var(--shadow-glow);
  margin-bottom: 1.3rem;
}

.p-panel-ic svg {
  width: 30px;
  height: 30px;
}

.p-panel h3 {
  color: #fff;
  font-size: clamp(1.4rem, 2.4vw, 1.9rem);
}

.p-panel>p {
  color: rgba(226, 236, 255, .82);
  margin-top: .7rem;
  max-width: 46ch;
  font-size: 1.02rem;
}

.p-chips {
  display: flex;
  flex-wrap: wrap;
  gap: .5rem;
  margin-top: 1.4rem;
}

.p-chips .chip-d {
  font-size: .82rem;
  font-weight: 600;
  color: rgba(233, 240, 255, .92);
  background: rgba(255, 255, 255, .08);
  border: 1px solid rgba(255, 255, 255, .16);
  padding: .4rem .8rem;
  border-radius: var(--r-pill);
  backdrop-filter: blur(6px);
  transition: background .25s, border-color .25s;
}

.p-chips .chip-d:hover {
  background: rgba(255, 255, 255, .16);
  border-color: rgba(255, 255, 255, .32);
}

.p-panel .link-arrow {
  margin-top: 1.7rem;
}

@media (max-width: 860px) {
  .switcher {
    grid-template-columns: 1fr;
  }

  .switcher-tabs {
    flex-direction: row;
    overflow-x: auto;
    gap: .7rem;
    padding-bottom: .4rem;
    scrollbar-width: none;
    -webkit-overflow-scrolling: touch;
  }

  .switcher-tabs::-webkit-scrollbar {
    display: none;
  }

  .p-tab {
    flex: 0 0 auto;
    width: auto;
    min-width: 220px;
  }

  .p-tab .t-arrow {
    display: none;
  }

  .switcher-stage {
    min-height: auto;
  }

  .p-panel {
    padding: 1.35rem 1.15rem 1.4rem;
  }

  .p-num-water {
    display: none;
  }

  .p-panel>p {
    max-width: none;
    font-size: .97rem;
  }
}

@media (max-width: 460px) {
  .p-tab {
    min-width: 190px;
    padding: .85rem 1rem;
  }

  .p-tab .p-ic {
    width: 40px;
    height: 40px;
  }

  .switcher-stage {
    min-height: auto;
  }

  .p-panel {
    padding: 1.1rem;
  }

  .p-panel-ic {
    width: 50px;
    height: 50px;
    margin-bottom: 1rem;
  }

  .p-panel h3 {
    font-size: 1.25rem;
  }

  .p-chips {
    gap: .4rem;
  }

  .p-chips .chip-d {
    font-size: .76rem;
    padding: .38rem .7rem;
  }

  .p-panel .link-arrow {
    margin-top: 1.2rem;
  }
}

/* ---------- CTA band ---------- */
.cta-band {
  --grad-cta: linear-gradient(120deg, #1656d8 0%, #2e7bf6 46%, #24c3bd 100%);
  position: relative;
  overflow: hidden;
  border-radius: var(--r-xl);
  padding: clamp(40px, 6vw, 76px);
  color: #fff;
  background: var(--grad-cta);
  box-shadow: var(--shadow-lg);
  text-align: center;
}

.cta-band::before {
  content: "";
  position: absolute;
  inset: 0;
  background-image:
    linear-gradient(rgba(255, 255, 255, 0.055) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255, 255, 255, 0.055) 1px, transparent 1px);
  background-size: 48px 48px;
  mask-image: radial-gradient(circle at center, #000 40%, transparent 90%);
  pointer-events: none;
  z-index: 1;
}

.cta-band>*:not(.orb) {
  position: relative;
  z-index: 2;
}

.cta-band h2 {
  color: #fff;
}

.cta-band .lead {
  color: #fff;
  max-width: 640px;
  margin-inline: auto;
  margin-top: 1rem;
}

.cta-band .btn-row {
  justify-content: center;
  margin-top: 2rem;
}

/* ---------- Accordion (domains) ---------- */
.accordion {
  border: 1px solid var(--line);
  border-radius: var(--r-lg);
  overflow: hidden;
  background: #fff;
}

.acc-item+.acc-item {
  border-top: 1px solid var(--line);
}

.acc-head {
  width: 100%;
  display: flex;
  align-items: center;
  gap: 1rem;
  padding: 1.25rem 1.5rem;
  background: none;
  border: none;
  text-align: left;
  font-size: 1.1rem;
  font-weight: 700;
  color: var(--ink);
}

.acc-head .acc-ico {
  width: 42px;
  height: 42px;
  border-radius: 12px;
  display: grid;
  place-items: center;
  font-size: 1.3rem;
  background: linear-gradient(160deg, rgba(124, 58, 237, .12), rgba(168, 85, 247, .14));
  flex: 0 0 auto;
}

.acc-head .chev {
  margin-left: auto;
  width: 22px;
  height: 22px;
  color: var(--slate-400);
  transition: transform .3s var(--ease);
  flex: 0 0 auto;
}

.acc-item.open .chev {
  transform: rotate(180deg);
}

.acc-body {
  max-height: 0;
  overflow: hidden;
  transition: max-height .4s var(--ease);
}

.acc-body-inner {
  padding: 0 1.5rem 1.4rem 5rem;
}

.acc-body-inner .tag-cloud {
  margin-top: .2rem;
}

/* ---------- Forms ---------- */
.form-card {
  background: #fff;
  border: 1px solid var(--line);
  border-radius: var(--r-xl);
  padding: clamp(1.6rem, 3vw, 2.6rem);
  box-shadow: var(--shadow-md);
}

.field {
  margin-bottom: 1.15rem;
}

.field label {
  display: block;
  font-weight: 650;
  font-size: .9rem;
  margin-bottom: .45rem;
  color: var(--slate-700);
}

.field label .req {
  color: #e5484d;
}

.field input,
.field select,
.field textarea {
  width: 100%;
  font: inherit;
  font-size: .98rem;
  color: var(--ink);
  background: var(--slate-100);
  border: 1px solid var(--line);
  border-radius: var(--r-sm);
  padding: .82rem 1rem;
  transition: border-color .2s, box-shadow .2s, background .2s;
}

.field input::placeholder,
.field textarea::placeholder {
  color: var(--slate-400);
}

.field input:focus,
.field select:focus,
.field textarea:focus {
  outline: none;
  border-color: var(--violet-400);
  background: #fff;
  box-shadow: 0 0 0 4px rgba(124, 58, 237, .12);
}

.field textarea {
  resize: vertical;
  min-height: 130px;
}

.field-2 {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 0 1.15rem;
}

.phone-input-group {
  display: flex;
  gap: 0.5rem;
  align-items: stretch;
}

.custom-select-wrapper {
  position: relative;
  flex: 0 0 32%;
  min-width: 120px;
  max-width: 140px;
}

.custom-select-wrapper select {
  display: none !important;
}

.custom-select-trigger {
  width: 100%;
  height: 100%;
  font: inherit;
  font-size: .98rem;
  color: var(--ink);
  background: var(--slate-100);
  border: 1px solid var(--line);
  border-radius: var(--r-sm);
  padding: .82rem 2.2rem .82rem .85rem;
  transition: border-color .2s, box-shadow .2s, background .2s;
  cursor: pointer;
  display: flex;
  align-items: center;
  position: relative;
  user-select: none;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.custom-select-trigger::after {
  content: '';
  position: absolute;
  right: 1rem;
  top: 50%;
  width: 1em;
  height: 1em;
  transform: translateY(-50%);
  background-image: url("data:image/svg+xml;charset=UTF-8,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%2364748b' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpolyline points='6 9 12 15 18 9'%3E%3C/polyline%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: center;
  background-size: 1em;
  pointer-events: none;
  transition: transform 0.2s;
}

.custom-select-wrapper.open .custom-select-trigger::after {
  transform: translateY(-50%) rotate(180deg);
}

.custom-select-wrapper.open .custom-select-trigger {
  border-color: var(--violet-400);
  background: #fff;
  box-shadow: 0 0 0 4px rgba(124, 58, 237, .12);
}

.custom-options {
  position: absolute;
  top: calc(100% + 4px);
  left: 0;
  min-width: 100%;
  width: max-content;
  max-width: 250px;
  background: #fff;
  border: 1px solid var(--line);
  border-radius: var(--r-sm);
  box-shadow: var(--shadow-lg);
  z-index: 100;
  opacity: 0;
  visibility: hidden;
  transform: translateY(-5px);
  transition: opacity 0.2s, transform 0.2s, visibility 0.2s;
  max-height: 200px;
  /* ~5 items */
  overflow-y: auto;
}

.custom-select-wrapper.open .custom-options {
  opacity: 1;
  visibility: visible;
  transform: translateY(0);
}

.custom-select-search-wrap {
  position: sticky;
  top: 0;
  background: #fff;
  padding: 0.5rem;
  z-index: 2;
  border-bottom: 1px solid var(--line);
}

.custom-select-search {
  width: 100%;
  padding: 0.45rem 0.75rem;
  font-size: 0.9rem;
  border: 1px solid var(--line);
  border-radius: var(--r-sm);
  background: var(--slate-50);
  transition: border-color 0.2s;
}

.custom-select-search:focus {
  outline: none;
  border-color: var(--violet-400);
}

.custom-option {
  padding: 0.65rem 1rem;
  font-size: 0.92rem;
  color: var(--slate-800);
  cursor: pointer;
  transition: background 0.15s;
  white-space: nowrap;
}

.custom-option:hover {
  background: var(--slate-50);
}

.custom-option.selected {
  background: var(--violet-50);
  color: var(--violet-600);
  font-weight: 600;
}

.phone-input-group input {
  flex: 1;
}

.form-note {
  font-size: .85rem;
  color: var(--text-muted);
  margin-top: .3rem;
}

.form-success {
  display: none;
  padding: 1rem 1.2rem;
  border-radius: var(--r-sm);
  background: rgba(31, 196, 192, .12);
  border: 1px solid rgba(31, 196, 192, .4);
  color: #0b6b63;
  font-weight: 600;
  margin-bottom: 1.2rem;
}

.form-success.show {
  display: block;
}

/* ---------- Contact info ---------- */
.info-item {
  display: flex;
  gap: 1rem;
  align-items: flex-start;
}

.info-item .fi {
  width: 48px;
  height: 48px;
  border-radius: 13px;
  display: grid;
  place-items: center;
  color: #fff;
  background: var(--grad-brand);
  flex: 0 0 auto;
}

.info-item .fi svg {
  width: 22px;
  height: 22px;
}

.info-item h4 {
  font-size: 1.05rem;
  margin-bottom: .2rem;
}

.info-item p,
.info-item a {
  color: var(--text-muted);
  font-size: .96rem;
}

.info-item a:hover {
  color: var(--violet-600);
}

/* ---------- Breadcrumb / page hero (inner) ---------- */
.page-hero {
  position: relative;
  padding-top: clamp(100px, 12vw, 130px);
  padding-bottom: clamp(32px, 4vw, 56px);
  background: var(--grad-hero);
  color: var(--text);
  overflow: hidden;
  border-bottom: 1px solid var(--line);
}

.page-hero h1 {
  color: var(--ink);
  max-width: 16ch;
}

.page-hero .lead {
  color: var(--text-muted);
  max-width: 60ch;
  margin-top: 1.1rem;
}

.crumb {
  display: flex;
  gap: .5rem;
  align-items: center;
  font-size: .85rem;
  color: var(--slate-500);
  margin-bottom: 1.1rem;
}

.crumb a:hover {
  color: var(--blue-600);
}

.crumb svg {
  width: 14px;
  height: 14px;
  opacity: .6;
}

/* ---------- Inner page hero (centered editorial band) ---------- */
.page-hero--center {
  text-align: left;
  padding-bottom: clamp(32px, 4vw, 48px);
}

.page-hero--center .ph-inner {
  max-width: 880px;
  margin-inline: auto;
  position: relative;
  z-index: 2;
}

.page-hero--center .crumb {
  justify-content: flex-start;
}

.page-hero--center .hero-badge {
  margin-bottom: 1.2rem;
}

.page-hero--center h1 {
  max-width: 22ch;
}

.page-hero--center .lead {
  max-width: 64ch;
}

.page-hero--center .btn-row {
  justify-content: flex-start;
  margin-top: 2rem;
}

/* thin highlight strip below the copy */
.ph-strip {
  margin-top: clamp(2rem, 4vw, 3rem);
  display: flex;
  flex-wrap: wrap;
  justify-content: flex-start;
  gap: .7rem;
}

.ph-strip .ph-item {
  display: inline-flex;
  align-items: center;
  gap: .55rem;
  padding: .6rem 1.05rem;
  border-radius: var(--r-pill);
  background: rgba(255, 255, 255, .72);
  border: 1px solid var(--line);
  box-shadow: var(--shadow-sm);
  font-weight: 650;
  font-size: .9rem;
  color: var(--slate-700);
  backdrop-filter: blur(6px);
}

.ph-strip .ph-item svg {
  width: 18px;
  height: 18px;
  color: var(--blue-600);
}

.ph-strip .ph-item b {
  color: var(--ink);
  font-weight: 800;
}

.ph-strip a.ph-item {
  transition: transform .2s, border-color .2s, color .2s;
}

.ph-strip a.ph-item:hover {
  transform: translateY(-2px);
  border-color: var(--blue-400);
  color: var(--blue-600);
}

.page-hero--center .orb-1 {
  top: -160px;
  right: 8%;
}

.page-hero--center .orb-2 {
  bottom: -200px;
  left: 6%;
}

/* ---------- Inner page hero (split + photo) ---------- */
.page-hero--split .hero-grid {
  align-items: center;
}

.page-hero--split h1 {
  max-width: none;
}

.page-hero--split .lead {
  max-width: 52ch;
}

.page-hero-media {
  position: relative;
  padding: clamp(4px, 1vw, 12px);
}

.page-hero-media .hero-photo {
  aspect-ratio: 4 / 3.05;
}

.page-hero-media .hero-stat {
  padding: .8rem 1rem;
}

.page-hero-media .hero-stat .k {
  font-size: 1.35rem;
}

@media (max-width: 920px) {
  .page-hero-media {
    max-width: 520px;
    margin-inline: auto;
  }
}

/* ---------- Footer ---------- */
.site-footer {
  background: var(--purple-950);
  color: rgba(226, 215, 255, .72);
  padding-top: clamp(56px, 7vw, 86px);
  position: relative;
  overflow: hidden;
}

.site-footer::before {
  content: "";
  position: absolute;
  inset: 0 0 auto 0;
  height: 1px;
  background: linear-gradient(90deg, transparent, rgba(168, 85, 247, .6), rgba(245, 158, 11, .5), transparent);
}

.footer-grid {
  display: grid;
  grid-template-columns: 1.6fr 1fr 1fr 1.3fr;
  gap: clamp(28px, 4vw, 52px);
  padding-bottom: clamp(40px, 5vw, 60px);
}

.footer-brand img {
  height: 100px;
  margin-bottom: 1.1rem;
}

.footer-brand p {
  font-size: .95rem;
  max-width: 34ch;
}

.footer-col h5 {
  color: #fff;
  font-size: .82rem;
  text-transform: uppercase;
  letter-spacing: .12em;
  margin-bottom: 1.1rem;
  font-weight: 700;
}

.footer-col ul {
  display: grid;
  gap: .7rem;
}

.footer-col a {
  font-size: .95rem;
  color: rgba(226, 236, 255, .72);
  transition: color .2s, padding .2s;
}

.footer-col a:hover {
  color: #fff;
  padding-left: 4px;
}

.footer-social {
  display: flex;
  gap: .6rem;
  margin-top: 1.4rem;
}

.footer-social a {
  width: 40px;
  height: 40px;
  border-radius: 11px;
  display: grid;
  place-items: center;
  background: rgba(255, 255, 255, .06);
  border: 1px solid rgba(255, 255, 255, .1);
  color: #cfe0ff;
  transition: transform .2s, background .2s, color .2s;
}

.footer-social a:hover {
  transform: translateY(-3px);
  background: var(--grad-brand);
  color: #fff;
  border-color: transparent;
}

.footer-social svg {
  width: 19px;
  height: 19px;
}

.footer-locations {
  display: flex;
  gap: .6rem;
  align-items: center;
  font-weight: 700;
  color: #fff;
  font-size: .95rem;
}

.footer-locations .sep {
  color: var(--amber-400);
}

.footer-bottom {
  border-top: 1px solid rgba(255, 255, 255, .08);
  padding-block: 1.6rem;
  display: flex;
  flex-wrap: wrap;
  gap: 1rem;
  align-items: center;
  justify-content: space-between;
  font-size: .86rem;
}

.footer-bottom .tagline {
  color: rgba(226, 236, 255, .55);
}

/* ---------- Reveal on scroll ---------- */
.reveal {
  opacity: 0;
  transform: translateY(26px);
  transition: opacity .7s var(--ease-out), transform .7s var(--ease-out);
}

.reveal.in {
  opacity: 1;
  transform: none;
}

.reveal.d1 {
  transition-delay: .08s;
}

.reveal.d2 {
  transition-delay: .16s;
}

.reveal.d3 {
  transition-delay: .24s;
}

.reveal.d4 {
  transition-delay: .32s;
}

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

  .marquee-track {
    animation: none;
  }

  html {
    scroll-behavior: auto;
  }
}

/* ---------- Back to top ---------- */
.to-top {
  position: fixed;
  right: 22px;
  bottom: 22px;
  width: 48px;
  height: 48px;
  border-radius: 14px;
  display: grid;
  place-items: center;
  color: #fff;
  background: var(--grad-brand);
  box-shadow: var(--shadow-glow);
  border: none;
  opacity: 0;
  pointer-events: none;
  transform: translateY(12px);
  transition: opacity .3s, transform .3s;
  z-index: 90;
}

.to-top.show {
  opacity: 1;
  pointer-events: auto;
  transform: none;
}

.to-top:hover {
  filter: brightness(1.05);
}

.to-top svg {
  width: 22px;
  height: 22px;
}

/* ---------- Responsive ---------- */
@media (max-width: 1080px) {
  .footer-grid {
    grid-template-columns: 1fr 1fr;
  }

  .grid-4 {
    grid-template-columns: repeat(2, 1fr);
  }

  .stat-band {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (max-width: 920px) {
  .hero-grid {
    grid-template-columns: 1fr;
  }

  .hero-visual {
    max-width: 480px;
    margin-inline: auto;
    width: 100%;
  }

  .split {
    grid-template-columns: 1fr;
  }

  .split.rev .split-media {
    order: -1;
  }
}

@media (max-width: 860px) {

  .nav,
  .header-actions .btn {
    display: none;
  }

  .nav-toggle {
    display: inline-flex;
    color: var(--ink) !important;
    border-color: var(--ink) !important;
    background: transparent !important;
  }

  .header-actions {
    gap: 0;
  }

  .wa-link {
    font-size: 0;
    gap: 0;
    margin-right: 1rem;
  }

  /* Mobile nav panel */
  .nav {
    position: fixed;
    inset: var(--nav-h) 0 auto 0;
    flex-direction: column;
    align-items: stretch;
    gap: 0;
    background: #fff;
    padding: 1rem var(--gutter) 1.6rem;
    box-shadow: var(--shadow-lg);
    transform: translateY(-120%);
    transition: transform .35s var(--ease);
    border-top: 1px solid var(--line);
  }

  body.nav-open .nav {
    display: flex;
    transform: none;
  }

  .nav a {
    color: var(--ink) !important;
    padding: .95rem .4rem;
    border-bottom: 1px solid var(--mist);
    border-radius: 0;
    font-size: 1.05rem;
  }

  .nav a::after {
    display: none;
  }

  .nav-item-dropdown .dropdown-menu,
  .nav-item-dropdown .mega-menu {
    display: none !important;
  }

  .nav-item-dropdown > a > svg {
    display: none !important;
  }

  .nav .btn {
    display: inline-flex;
    margin-top: 1rem;
  }

  .site-header:not(.scrolled) .nav a {
    color: var(--ink) !important;
  }
}

@media (max-width: 720px) {
  body {
    font-size: 16px;
  }

  .grid-2,
  .grid-3,
  .grid-4 {
    grid-template-columns: 1fr;
  }

  .field-2 {
    grid-template-columns: 1fr;
  }

  .stat-band {
    grid-template-columns: repeat(2, 1fr);
  }

  .footer-grid {
    grid-template-columns: 1fr;
  }

  .footer-bottom {
    flex-direction: column;
    align-items: flex-start;
  }

  .acc-body-inner {
    padding-left: 1.5rem;
  }
}

@media (max-width: 420px) {
  .stat-band {
    grid-template-columns: 1fr;
  }
}

/* Stats Row Responsive Grid */
@media (max-width: 920px) {
  .hero-stats-row {
    grid-template-columns: repeat(2, 1fr);
    max-width: 640px;
    gap: 1rem;
    margin-top: 3.5rem;
  }
}

@media (max-width: 520px) {
  .hero-stats-row {
    grid-template-columns: 1fr;
    max-width: 320px;
    gap: 0.85rem;
    margin-top: 3rem;
  }
}

/* ---------- Redesigned Differentiators Showcase ---------- */
.differentiators-section {
  overflow: hidden;
  position: relative;
}

.diff-showcase-layout {
  display: grid;
  grid-template-columns: 1fr 1.25fr;
  gap: clamp(24px, 4vw, 56px);
  align-items: stretch;
  margin-top: 3.5rem;
}

/* Left side: Vertical Timeline Tabs */
.diff-tabs-list {
  display: flex;
  flex-direction: column;
  gap: 0.85rem;
}

.diff-tab-btn {
  text-align: left;
  background: rgba(255, 255, 255, 0.45);
  border: 1px solid rgba(46, 123, 246, 0.08);
  padding: 1.25rem 1.5rem;
  border-radius: var(--r-md);
  cursor: pointer;
  transition: all 0.3s var(--ease);
  position: relative;
  overflow: hidden;
  display: flex;
  flex-direction: column;
  gap: 0.4rem;
  width: 100%;
}

.diff-tab-btn:hover {
  background: rgba(255, 255, 255, 0.8);
  border-color: rgba(46, 123, 246, 0.2);
  transform: translateY(-2px);
}

.diff-tab-btn.active {
  background: rgba(255, 255, 255, 0.95);
  border-color: rgba(46, 123, 246, 0.35);
  box-shadow: var(--shadow-md), inset 0 0 12px rgba(46, 123, 246, 0.04);
}

.diff-tab-header {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  pointer-events: none;
}

.diff-tab-num {
  font-size: 0.9rem;
  font-weight: 800;
  background: var(--grad-brand);
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
  flex-shrink: 0;
}

.diff-tab-title {
  font-size: 1.1rem;
  font-weight: 750;
  color: var(--ink);
  margin: 0;
  line-height: 1.2;
}

.diff-tab-desc {
  font-size: 0.85rem;
  color: var(--slate-500);
  line-height: 1.45;
  margin: 0;
  transition: color 0.3s;
  pointer-events: none;
}

.diff-tab-btn.active .diff-tab-desc {
  color: var(--slate-700);
}

.diff-tab-progress {
  position: absolute;
  bottom: 0;
  left: 0;
  width: 100%;
  height: 3px;
  background: rgba(46, 123, 246, 0.04);
  pointer-events: none;
}

.diff-tab-progress .progress-bar {
  display: block;
  height: 100%;
  width: 0%;
  background: var(--grad-brand);
  transition: width 0s linear;
}

/* Right side: Interactive Card Display */
.diff-visual-display {
  position: relative;
  background: rgba(255, 255, 255, 0.75);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  border: 1px solid rgba(46, 123, 246, 0.12);
  border-radius: var(--r-xl);
  padding: 3rem;
  box-shadow: var(--shadow-lg);
  overflow: hidden;
  display: flex;
  align-items: stretch;
  min-height: 480px;
}

.diff-visual-card {
  display: none;
  opacity: 0;
  transform: translateY(12px);
  transition: opacity 0.4s ease-out, transform 0.4s ease-out;
  flex-direction: column;
  width: 100%;
}

.diff-visual-card.active {
  display: flex;
  opacity: 1;
  transform: translateY(0);
}

.card-glow-bg {
  position: absolute;
  inset: 0;
  opacity: 0.035;
  filter: blur(60px);
  pointer-events: none;
  z-index: 0;
}

.card-glow-bg.bg-violet {
  background: radial-gradient(circle, var(--blue-500) 0%, transparent 70%);
}

.card-glow-bg.bg-amber {
  background: radial-gradient(circle, var(--cyan-400) 0%, transparent 70%);
}

.card-glow-bg.bg-magenta {
  background: radial-gradient(circle, var(--blue-600) 0%, transparent 70%);
}

.card-glow-bg.bg-rose {
  background: radial-gradient(circle, var(--cyan-300) 0%, transparent 70%);
}

.card-glow-bg.bg-orange {
  background: radial-gradient(circle, var(--brand) 0%, transparent 70%);
}

.card-glow-bg.bg-cyan {
  background: radial-gradient(circle, var(--cyan-400) 0%, transparent 70%);
}

.diff-card-header {
  position: relative;
  z-index: 1;
}

.diff-card-title {
  font-size: 1.85rem;
  font-weight: 850;
  color: var(--ink);
  margin-bottom: 0.85rem;
  letter-spacing: -0.02em;
}

.diff-card-lead {
  font-size: 1.05rem;
  font-weight: 600;
  color: var(--slate-700);
  line-height: 1.5;
  margin-bottom: 1rem;
  position: relative;
  z-index: 1;
}

.diff-card-body {
  font-size: 0.95rem;
  color: var(--text-muted);
  line-height: 1.6;
  margin-bottom: 1.75rem;
  position: relative;
  z-index: 1;
}

/* Custom Rich Assets Styling */
.diff-rich-asset {
  margin-top: auto;
  border-top: 1px solid rgba(46, 123, 246, 0.1);
  padding-top: 1.75rem;
  position: relative;
  z-index: 1;
}

/* Card 1: Enterprise checklist */
.asset-feature-list {
  list-style: none;
  padding: 0;
  margin: 0;
  display: flex;
  flex-direction: column;
  gap: 1rem;
}

.asset-feature-list li {
  display: flex;
  gap: 0.85rem;
  align-items: flex-start;
}

.feature-icon-bullet {
  width: 22px;
  height: 22px;
  border-radius: 50%;
  background: rgba(46, 123, 246, 0.08);
  color: var(--blue-600);
  display: grid;
  place-items: center;
  flex-shrink: 0;
  margin-top: 2px;
}

.feature-icon-bullet svg {
  width: 12px;
  height: 12px;
}

.asset-feature-list li strong {
  display: block;
  font-size: 0.9rem;
  color: var(--ink);
  margin-bottom: 0.15rem;
}

.asset-feature-list li p {
  font-size: 0.8rem;
  color: var(--slate-500);
  margin: 0;
  line-height: 1.4;
}

/* Card 2: Global Hubs Grid */
.asset-hubs-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 0.85rem;
}

.hub-item {
  background: rgba(255, 255, 255, 0.65);
  border: 1px solid rgba(46, 123, 246, 0.08);
  border-radius: var(--r-sm);
  padding: 1rem;
  text-align: center;
  display: flex;
  flex-direction: column;
  gap: 0.25rem;
  transition: all 0.3s;
}

.hub-item:hover {
  transform: translateY(-3px);
  border-color: rgba(46, 123, 246, 0.2);
  background: var(--white);
  box-shadow: var(--shadow-sm);
}

.hub-flag {
  font-size: 1.5rem;
  margin-bottom: 0.15rem;
}

.hub-item strong {
  font-size: 0.9rem;
  color: var(--ink);
}

.hub-item span {
  font-size: 0.72rem;
  color: var(--slate-500);
}

/* Card 3: Vendor Badges */
.asset-label {
  font-size: 0.78rem;
  font-weight: 750;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: var(--slate-500);
  margin-bottom: 0.65rem;
}

.asset-tech-badges {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
}

.tech-badge {
  background: rgba(255, 255, 255, 0.8);
  border: 1px solid rgba(46, 123, 246, 0.08);
  border-radius: var(--r-pill);
  padding: 0.4rem 0.85rem;
  font-size: 0.8rem;
  font-weight: 600;
  color: var(--ink-soft);
  transition: all 0.3s;
}

.tech-badge:hover {
  background: var(--grad-brand);
  color: #fff;
  border-color: transparent;
  transform: translateY(-1px);
  box-shadow: 0 4px 10px rgba(46, 123, 246, 0.15);
}

/* Card 4: Simulated Terminal */
.asset-terminal {
  background: #040a17;
  border-radius: var(--r-sm);
  border: 1px solid rgba(255, 255, 255, 0.08);
  font-family: 'Courier New', Courier, monospace;
  overflow: hidden;
  box-shadow: 0 12px 30px rgba(4, 10, 23, 0.45);
}

.terminal-header {
  background: rgba(255, 255, 255, 0.04);
  padding: 0.5rem 0.85rem;
  display: flex;
  align-items: center;
  gap: 0.35rem;
  border-bottom: 1px solid rgba(255, 255, 255, 0.05);
}

.t-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
}

.t-red {
  background: #ef4444;
}

.t-yellow {
  background: #f59e0b;
}

.t-green {
  background: #10b981;
}

.terminal-title {
  color: rgba(255, 255, 255, 0.35);
  font-size: 0.7rem;
  margin-left: 0.4rem;
}

.terminal-body {
  padding: 1rem;
  font-size: 0.8rem;
  display: flex;
  flex-direction: column;
  gap: 0.4rem;
  line-height: 1.35;
}

.t-line {
  margin: 0;
  color: rgba(255, 255, 255, 0.85);
}

.t-prompt {
  color: var(--cyan-400);
  font-weight: bold;
}

.t-success {
  color: #34d399;
}

.t-info {
  color: #60a5fa;
}

/* Card 5: Engagement Models */
.asset-models-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 0.85rem;
}

.model-card {
  background: rgba(255, 255, 255, 0.65);
  border: 1px solid rgba(46, 123, 246, 0.08);
  border-radius: var(--r-sm);
  padding: 1rem;
  display: flex;
  flex-direction: column;
  gap: 0.4rem;
  align-items: center;
  text-align: center;
  transition: all 0.3s;
}

.model-card:hover {
  transform: translateY(-3px);
  border-color: rgba(46, 123, 246, 0.2);
  background: var(--white);
  box-shadow: var(--shadow-sm);
}

.model-icon {
  width: 32px;
  height: 32px;
  border-radius: 6px;
  background: rgba(46, 123, 246, 0.08);
  color: var(--blue-600);
  display: grid;
  place-items: center;
}

.model-icon svg {
  width: 18px;
  height: 18px;
}

.model-card strong {
  font-size: 0.85rem;
  color: var(--ink);
}

.model-card span {
  font-size: 0.7rem;
  color: var(--slate-500);
  line-height: 1.3;
}

/* Card 6: Lifecycle Timeline Steps */
.asset-lifecycle-steps {
  display: flex;
  justify-content: space-between;
  position: relative;
  padding-block: 0.5rem;
}

.step-line-bg {
  position: absolute;
  top: 18px;
  left: 0;
  right: 0;
  height: 2px;
  background: rgba(46, 123, 246, 0.08);
  z-index: 0;
}

.l-step {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.4rem;
  width: 22%;
  position: relative;
  z-index: 1;
  text-align: center;
}

.l-step-num {
  width: 24px;
  height: 24px;
  border-radius: 50%;
  background: var(--white);
  border: 2px solid var(--blue-500);
  color: var(--blue-600);
  font-weight: 800;
  font-size: 0.75rem;
  display: grid;
  place-items: center;
  transition: all 0.3s;
}

.l-step:hover .l-step-num {
  background: var(--blue-500);
  color: var(--white);
  box-shadow: 0 0 8px rgba(46, 123, 246, 0.35);
}

.l-step strong {
  font-size: 0.75rem;
  color: var(--ink);
  line-height: 1.25;
}

/* Responsive Showcase Layout */
@media (max-width: 920px) {
  .diff-showcase-layout {
    grid-template-columns: 1fr;
    gap: 2rem;
  }

  .diff-tabs-list {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 0.65rem;
  }

  .diff-tab-btn {
    padding: 1rem 1.25rem;
    border-radius: var(--r-sm);
  }

  .diff-tab-desc {
    display: none;
  }

  .diff-visual-display {
    min-height: auto;
    padding: 2rem;
  }
}

@media (max-width: 600px) {
  .diff-tabs-list {
    grid-template-columns: 1fr;
  }

  .asset-hubs-grid,
  .asset-models-grid {
    grid-template-columns: 1fr;
    gap: 0.65rem;
  }

  .asset-lifecycle-steps {
    flex-direction: column;
    align-items: flex-start;
    gap: 1rem;
    padding-left: 0.5rem;
  }

  .step-line-bg {
    left: 12px;
    top: 0;
    bottom: 0;
    width: 2px;
    height: 100%;
  }

  .l-step {
    flex-direction: row;
    text-align: left;
    width: 100%;
    gap: 0.85rem;
  }
}

/* ---------- Scoped Card Overrides for Inner Pages (Cardless Design) ---------- */
body.inner-page .card {
  background: transparent !important;
  border: none !important;
  box-shadow: none !important;
  border-radius: 0 !important;
  padding: 1.5rem 0.5rem !important;
  border-bottom: 1px solid rgba(255, 255, 255, 0.08) !important;
  transition: transform .32s var(--ease), border-color .32s var(--ease) !important;
}

body.inner-page .card::after {
  content: '';
  position: absolute;
  bottom: -1px;
  left: 0;
  width: 0;
  height: 2px;
  background: var(--grad-brand);
  transition: width 0.32s var(--ease);
}

body.inner-page .card:hover {
  transform: translateY(-4px) !important;
  background: transparent !important;
  box-shadow: none !important;
  border-color: transparent !important;
}

body.inner-page .card:hover::after {
  width: 100%;
}

body.inner-page .card .h3 {
  color: var(--white) !important;
  transition: color 0.32s var(--ease) !important;
}

body.inner-page .card:hover .h3 {
  color: var(--brand-color) !important;
}

/* Remove default accent lines from cards on inner pages */
body.inner-page .card--accent-line::before,
body.inner-page .card--accent-line:hover::before {
  display: none !important;
}

/* Spotlight cards (image on top/side, copy below/side) */
body.inner-page .spot-card {
  background: transparent !important;
  border: none !important;
  box-shadow: none !important;
  border-radius: 0 !important;
  padding: 0 !important;
}

body.inner-page .spot-card .spot-body {
  padding: 1.5rem 0 0 0 !important;
  border-bottom: 1.5px solid rgba(255, 255, 255, 0.08) !important;
  transition: border-color 0.4s var(--ease) !important;
  position: relative !important;
}

body.inner-page .spot-card .spot-body::after {
  content: '';
  position: absolute;
  bottom: -1.5px;
  left: 0;
  width: 0;
  height: 2.5px;
  background: var(--grad-brand);
  transition: width 0.4s var(--ease);
}

body.inner-page .spot-card:hover .spot-body::after {
  width: 100%;
}

body.inner-page .spot-card:hover .spot-body {
  border-color: transparent !important;
}

/* ==========================================================================
   SECURE & CLOUD-READY SPECIAL EFFECTS SECTION
   ========================================================================== */

/* Dark section base */
.secure-cloud-section {
  background: radial-gradient(1300px 700px at 50% 50%, rgba(10, 27, 61, 0.95) 0%, rgba(6, 15, 34, 1) 100%) !important;
  color: #ffffff;
  position: relative;
  overflow: hidden;
  padding-block: clamp(60px, 8vw, 100px);
  z-index: 1;
}

/* Canvas Background */
.secure-cloud-section #cyberCanvas {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  pointer-events: none;
  z-index: -1;
  opacity: 0.85;
}

/* Section Header overrides for dark section */
.secure-cloud-section .section-head .eyebrow {
  color: var(--cyan-300) !important;
}

.secure-cloud-section .section-head .h2 {
  color: #ffffff !important;
}

.secure-cloud-section .section-head .lead {
  color: rgba(226, 236, 255, 0.82) !important;
}

/* Glow gradient text class */
.secure-cloud-section .text-glow-gradient {
  background: linear-gradient(120deg, var(--cyan-400) 0%, var(--blue-400) 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  display: inline-block;
  text-shadow: 0 0 30px rgba(47, 212, 196, 0.2);
}

/* Glow Orbs specifically for this section */
.secure-cloud-section .cyber-orb {
  position: absolute;
  border-radius: 50%;
  filter: blur(100px);
  pointer-events: none;
  opacity: 0.18;
  z-index: -1;
  animation: floatOrb 12s infinite alternate ease-in-out;
}

.secure-cloud-section .cyber-orb-1 {
  width: 350px;
  height: 350px;
  background: var(--blue-500);
  top: 10%;
  left: 5%;
}

.secure-cloud-section .cyber-orb-2 {
  width: 400px;
  height: 400px;
  background: var(--cyan-500);
  bottom: 10%;
  right: 5%;
  animation-delay: -6s;
}

@keyframes floatOrb {
  0% {
    transform: translate(0, 0) scale(1);
  }

  100% {
    transform: translate(30px, 40px) scale(1.15);
  }
}

/* Glassmorphic Cyber Cards */
.secure-cloud-section .cyber-card {
  background: rgba(10, 27, 61, 0.6) !important;
  border: 1px solid rgba(255, 255, 255, 0.08) !important;
  border-radius: var(--r-lg) !important;
  box-shadow: 0 10px 30px -10px rgba(0, 0, 0, 0.5) !important;
  overflow: hidden !important;
  display: flex !important;
  flex-direction: column !important;
  padding: 0 !important;
  transition: transform 0.5s var(--ease), box-shadow 0.5s var(--ease), border-color 0.5s var(--ease) !important;
  position: relative !important;
}

/* Specific Card Layout for Inner Pages */
body.inner-page .secure-cloud-section .cyber-card {
  background: rgba(10, 27, 61, 0.6) !important;
  border: 1px solid rgba(255, 255, 255, 0.08) !important;
  border-radius: var(--r-lg) !important;
  box-shadow: 0 10px 30px -10px rgba(0, 0, 0, 0.5) !important;
  padding: 0 !important;
}

body.inner-page .secure-cloud-section .cyber-card .spot-body {
  padding: 1.8rem !important;
  border-bottom: none !important;
}

body.inner-page .secure-cloud-section .cyber-card .spot-body::after {
  display: none !important;
}

/* Cursor following radial border spotlight */
.secure-cloud-section .cyber-card::before {
  content: '';
  position: absolute;
  inset: 0;
  border-radius: inherit;
  padding: 1.5px;
  /* Border thickness */
  background: radial-gradient(300px circle at var(--mouse-x, 0) var(--mouse-y, 0),
      rgba(45, 212, 196, 0.35) 0%,
      rgba(46, 123, 246, 0.2) 50%,
      transparent 100%);
  -webkit-mask: linear-gradient(#fff 0 0) content-box, linear-gradient(#fff 0 0);
  -webkit-mask-composite: xor;
  mask-composite: exclude;
  pointer-events: none;
  z-index: 2;
  opacity: 0;
  transition: opacity 0.4s var(--ease);
}

.secure-cloud-section .cyber-card:hover::before {
  opacity: 1;
}

.secure-cloud-section .cyber-card:hover {
  transform: translateY(-8px) scale(1.005) !important;
  border-color: rgba(45, 212, 196, 0.25) !important;
  box-shadow: 0 20px 40px -15px rgba(10, 27, 61, 0.8),
    0 0 24px -5px rgba(46, 123, 246, 0.25) !important;
}

/* Spot-media structure adaptation */
.secure-cloud-section .cyber-card .spot-media {
  position: relative;
  overflow: hidden;
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
}

.secure-cloud-section .cyber-card .spot-media::after {
  background: linear-gradient(180deg, rgba(8, 20, 40, 0) 40%, rgba(10, 27, 61, 0.75) 100%) !important;
}

/* Spot tags */
.secure-cloud-section .cyber-card .spot-tag {
  background: rgba(10, 27, 61, 0.75) !important;
  border: 1px solid rgba(255, 255, 255, 0.15) !important;
  color: var(--cyan-300) !important;
  text-shadow: 0 0 8px rgba(31, 196, 192, 0.3);
}

/* Spot card text elements */
.secure-cloud-section .cyber-card .spot-body h3 {
  color: #ffffff !important;
  margin-bottom: 0.8rem;
  transition: color 0.3s ease;
}

.secure-cloud-section .cyber-card:hover .spot-body h3 {
  color: var(--cyan-300) !important;
}

.secure-cloud-section .cyber-card .spot-body p {
  color: rgba(226, 236, 255, 0.75) !important;
  font-size: 0.95rem;
  line-height: 1.6;
}

/* Glowing action link */
.secure-cloud-section .cyber-card .link-arrow {
  color: var(--cyan-300) !important;
  font-weight: 600;
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  transition: color 0.3s ease, transform 0.3s ease;
}

.secure-cloud-section .cyber-card .link-arrow svg {
  stroke: var(--cyan-300) !important;
  transition: transform 0.3s ease;
}

.secure-cloud-section .cyber-card:hover .link-arrow {
  color: #ffffff !important;
}

.secure-cloud-section .cyber-card:hover .link-arrow svg {
  stroke: #ffffff !important;
  transform: translateX(4px);
}

/* Page Hero Canvas styling */
.hero-network-canvas {
  position: absolute !important;
  top: 0;
  left: 0;
  width: 100% !important;
  height: 100% !important;
  pointer-events: none !important;
  z-index: 0 !important;
  opacity: 0.85;
}

/* Ensure all other children are stacked above canvas */
.page-hero> :not(.hero-network-canvas),
.hero> :not(.hero-network-canvas) {
  position: relative;
  z-index: 2;
}

/* ==========================================================================
   OUR VALUES - PREMIUM INTERACTIVE BENTO GLOW SECTION
   ========================================================================== */

.values-section {
  position: relative;
  overflow: hidden;
  background: var(--paper) !important;
  padding-block: clamp(60px, 8vw, 100px);
  z-index: 1;
}

/* Polka dot grid background */
.values-grid-dots {
  position: absolute;
  inset: 0;
  background-image: radial-gradient(rgba(14, 26, 48, 0.08) 1px, transparent 1px);
  background-size: 24px 24px;
  mask-image: radial-gradient(circle at 50% 50%, #000 40%, transparent 85%);
  pointer-events: none;
  z-index: -2;
}

/* Ambient glow spotlight blob */
.values-bg-glow {
  position: absolute;
  width: 320px;
  height: 320px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(46, 123, 246, 0.28) 0%, transparent 70%);
  filter: blur(50px);
  pointer-events: none;
  z-index: -1;
  opacity: 0;
  transition: opacity 0.5s ease;
  transform: translate(-50%, -50%);
}

/* Value glassmorphic card */
.values-section .value-card {
  background: rgba(255, 255, 255, 0.65) !important;
  border: 1px solid rgba(226, 232, 240, 0.8) !important;
  border-radius: var(--r-lg) !important;
  padding: 2.2rem 2rem !important;
  display: flex !important;
  flex-direction: column !important;
  align-items: flex-start !important;
  gap: 1.5rem !important;
  box-shadow: 0 10px 30px -15px rgba(12, 27, 61, 0.05) !important;
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  transition: transform 0.4s cubic-bezier(0.25, 1, 0.5, 1),
    box-shadow 0.4s cubic-bezier(0.25, 1, 0.5, 1),
    border-color 0.4s cubic-bezier(0.25, 1, 0.5, 1) !important;
  position: relative;
  overflow: hidden;
  z-index: 1;
}

/* Custom 3D hover highlight spotlight on card border */
.values-section .value-card::before {
  content: '';
  position: absolute;
  inset: 0;
  border-radius: inherit;
  padding: 1.5px;
  background: radial-gradient(180px circle at var(--mouse-x, 0) var(--mouse-y, 0),
      var(--glow-color, rgba(46, 123, 246, 0.35)) 0%,
      transparent 80%);
  -webkit-mask: linear-gradient(#fff 0 0) content-box, linear-gradient(#fff 0 0);
  -webkit-mask-composite: xor;
  mask-composite: exclude;
  pointer-events: none;
  z-index: 2;
  opacity: 0;
  transition: opacity 0.3s ease;
}

.values-section .value-card:hover::before {
  opacity: 1;
}

/* Card hover animation */
.values-section .value-card:hover {
  transform: translateY(-8px) scale(1.02) !important;
  border-color: rgba(255, 255, 255, 0.5) !important;
}

/* Glowing values color schemes */
.val-excellence {
  --glow-color: rgba(31, 196, 192, 0.6);
  --theme-color: var(--cyan-500);
}

.val-excellence:hover {
  box-shadow: 0 20px 40px -20px rgba(31, 196, 192, 0.3) !important;
}

.val-integrity {
  --glow-color: rgba(46, 123, 246, 0.6);
  --theme-color: var(--blue-500);
}

.val-integrity:hover {
  box-shadow: 0 20px 40px -20px rgba(46, 123, 246, 0.3) !important;
}

.val-innovation {
  --glow-color: rgba(124, 58, 237, 0.6);
  --theme-color: #8b5cf6;
}

.val-innovation:hover {
  box-shadow: 0 20px 40px -20px rgba(139, 92, 246, 0.3) !important;
}

.val-collaboration {
  --glow-color: rgba(236, 72, 153, 0.6);
  --theme-color: #ec4899;
}

.val-collaboration:hover {
  box-shadow: 0 20px 40px -20px rgba(236, 72, 153, 0.3) !important;
}

.val-learning {
  --glow-color: rgba(245, 158, 11, 0.6);
  --theme-color: #f59e0b;
}

.val-learning:hover {
  box-shadow: 0 20px 40px -20px rgba(245, 158, 11, 0.3) !important;
}

.val-success {
  --glow-color: rgba(16, 185, 129, 0.6);
  --theme-color: #10b981;
}

.val-success:hover {
  box-shadow: 0 20px 40px -20px rgba(16, 185, 129, 0.3) !important;
}

/* Card Icons */
.values-section .value-card .val-icon {
  width: 52px;
  height: 52px;
  border-radius: 16px;
  display: grid;
  place-items: center;
  background: rgba(255, 255, 255, 0.8);
  border: 1px solid rgba(226, 232, 240, 0.8);
  color: var(--theme-color, var(--blue-500));
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.02);
  transition: transform 0.3s ease, background 0.3s ease, border-color 0.3s ease;
}

.values-section .value-card:hover .val-icon {
  transform: scale(1.1) rotate(6deg);
  background: var(--theme-color);
  color: #ffffff;
  border-color: transparent;
  box-shadow: 0 8px 20px -5px var(--glow-color);
}

.values-section .value-card .val-icon svg {
  width: 24px;
  height: 24px;
  stroke-width: 2.2px;
  transition: transform 0.3s ease;
}

/* Value typography overrides */
.values-section .value-card h4 {
  font-size: 1.22rem !important;
  font-weight: 800 !important;
  color: var(--ink) !important;
  margin: 0 !important;
}

.values-section .value-card p {
  color: var(--slate-600) !important;
  font-size: 0.95rem !important;
  line-height: 1.6 !important;
  margin: 0 !important;
}

.values-section .value-card:hover h4 {
  color: var(--theme-color);
}

/* ==========================================================================
   TRAINING PORTFOLIO PREMIUM DESIGN
   ========================================================================== */

.portfolio-controls {
  display: flex;
  flex-direction: column;
  gap: 1.5rem;
  margin-bottom: 3rem;
  align-items: center;
  width: 100%;
}

@media (min-width: 768px) {
  .portfolio-controls {
    flex-direction: row;
    justify-content: space-between;
  }
}

.portfolio-search-box {
  position: relative;
  width: 100%;
  max-width: 480px;
}

.portfolio-search-box input {
  width: 100%;
  padding: 0.9rem 1rem 0.9rem 2.8rem;
  border-radius: var(--r-md);
  border: 1px solid var(--line);
  background: var(--white);
  color: var(--ink);
  font-family: var(--font-sans);
  font-size: 0.95rem;
  font-weight: 500;
  box-shadow: var(--shadow-sm);
  transition: border-color 0.3s ease, box-shadow 0.3s ease;
}

.portfolio-search-box input:focus {
  outline: none;
  border-color: var(--blue-500);
  box-shadow: 0 0 0 4px rgba(46, 123, 246, 0.12), var(--shadow-md);
}

.portfolio-search-box .search-icon {
  position: absolute;
  left: 1.1rem;
  top: 50%;
  transform: translateY(-50%);
  width: 18px;
  height: 18px;
  color: var(--slate-400);
  pointer-events: none;
  transition: color 0.3s ease;
}

.portfolio-search-box input:focus+.search-icon {
  color: var(--blue-500);
}

.clear-search-btn {
  position: absolute;
  right: 1rem;
  top: 50%;
  transform: translateY(-50%);
  border: none;
  background: none;
  font-size: 1.4rem;
  color: var(--slate-400);
  cursor: pointer;
  padding: 0;
  line-height: 1;
}

.clear-search-btn:hover {
  color: var(--ink);
}

.portfolio-filters {
  display: flex;
  gap: 0.6rem;
  overflow-x: auto;
  width: 100%;
  padding-bottom: 0.5rem;
  scrollbar-width: none;
  /* Firefox */
}

.portfolio-filters::-webkit-scrollbar {
  display: none;
  /* Safari/Chrome */
}

@media (min-width: 768px) {
  .portfolio-filters {
    width: auto;
    padding-bottom: 0;
  }
}

.filter-btn {
  border: 1px solid var(--line);
  background: var(--white);
  color: var(--slate-700);
  padding: 0.75rem 1.3rem;
  border-radius: var(--r-pill);
  font-weight: 600;
  font-size: 0.88rem;
  cursor: pointer;
  white-space: nowrap;
  transition: all 0.3s var(--ease);
  box-shadow: var(--shadow-sm);
}

.filter-btn:hover {
  border-color: var(--blue-400);
  color: var(--blue-600);
  transform: translateY(-1px);
}

.filter-btn.active {
  background: var(--navy-900);
  border-color: var(--navy-900);
  color: var(--white);
  box-shadow: 0 4px 14px rgba(6, 15, 34, 0.15);
}

/* Portfolio Cards Container */
.portfolio-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 1.8rem;
  width: 100%;
  transition: opacity 0.3s ease;
}

@media (min-width: 640px) {
  .portfolio-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (min-width: 1024px) {
  .portfolio-grid {
    grid-template-columns: repeat(3, 1fr);
  }
}

/* Bento layout highlights on large screens */
@media (min-width: 1024px) {
  .portfolio-card.featured-ai {
    grid-column: span 2;
  }

  .portfolio-card.featured-cyber {
    grid-column: span 2;
  }
}

/* Portfolio Card */
.portfolio-card {
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: var(--r-lg);
  padding: 2rem;
  box-shadow: var(--shadow-sm);
  position: relative;
  overflow: hidden;
  height: 100%;
  display: flex;
  flex-direction: column;
  transition: transform 0.4s var(--ease-out), box-shadow 0.4s var(--ease-out), border-color 0.4s;
  z-index: 1;
}

.portfolio-card:hover {
  transform: translateY(-8px);
  box-shadow: var(--shadow-lg);
  border-color: rgba(46, 123, 246, 0.2);
}

/* Cursor following border highlight for portfolio card */
.portfolio-card::before {
  content: '';
  position: absolute;
  inset: 0;
  border-radius: inherit;
  padding: 1.5px;
  background: radial-gradient(280px circle at var(--mouse-x, 0) var(--mouse-y, 0),
      rgba(46, 123, 246, 0.25) 0%,
      rgba(31, 196, 192, 0.15) 50%,
      transparent 100%);
  -webkit-mask: linear-gradient(#fff 0 0) content-box, linear-gradient(#fff 0 0);
  -webkit-mask-composite: xor;
  mask-composite: exclude;
  pointer-events: none;
  z-index: 2;
  opacity: 0;
  transition: opacity 0.4s var(--ease);
}

.portfolio-card:hover::before {
  opacity: 1;
}

.portfolio-card-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 1.5rem;
}

.portfolio-card-icon-wrapper {
  width: 58px;
  height: 58px;
  border-radius: 16px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.7rem;
  box-shadow: 0 8px 20px -6px rgba(0, 0, 0, 0.1);
  position: relative;
  transition: transform 0.3s ease;
}

.portfolio-card:hover .portfolio-card-icon-wrapper {
  transform: scale(1.08) rotate(3deg);
}

/* Gradient themes for card icons */
.ai-grad {
  background: linear-gradient(135deg, #e0e7ff, #c7d2fe);
  color: #4338ca;
}

.cloud-grad {
  background: linear-gradient(135deg, #e0f2fe, #bae6fd);
  color: #0369a1;
}

.cyber-grad {
  background: linear-gradient(135deg, #fee2e2, #fecaca);
  color: #b91c1c;
}

.data-grad {
  background: linear-gradient(135deg, #fef3c7, #fde68a);
  color: #b45309;
}

.devops-grad {
  background: linear-gradient(135deg, #f3e8ff, #e9d5ff);
  color: #6b21a8;
}

.software-grad {
  background: linear-gradient(135deg, #ecfeff, #cffafe);
  color: #0891b2;
}

.network-grad {
  background: linear-gradient(135deg, #dcfce7, #bbf7d0);
  color: #15803d;
}

.enterprise-grad {
  background: linear-gradient(135deg, #f1f5f9, #e2e8f0);
  color: #475569;
}

.agile-grad {
  background: linear-gradient(135deg, #faf5ff, #f3e8ff);
  color: #7e22ce;
}

.course-count {
  font-size: 0.78rem;
  font-weight: 700;
  color: var(--blue-600);
  background: rgba(46, 123, 246, 0.08);
  padding: 0.3rem 0.7rem;
  border-radius: var(--r-pill);
  letter-spacing: 0.02em;
}

.portfolio-card-title {
  font-size: 1.35rem;
  font-weight: 750;
  color: var(--ink);
  margin-bottom: 0.6rem;
  transition: color 0.3s ease;
}

.portfolio-card:hover .portfolio-card-title {
  color: var(--blue-600);
}

.portfolio-card-desc {
  font-size: 0.94rem;
  color: var(--text-muted);
  line-height: 1.5;
  margin-bottom: 1.5rem;
  flex-grow: 1;
}

.portfolio-card-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 0.45rem;
  margin-top: auto;
}

.portfolio-tag {
  font-size: 0.78rem;
  font-weight: 600;
  color: var(--slate-600);
  background: var(--slate-100);
  border: 1px solid var(--line);
  padding: 0.3rem 0.65rem;
  border-radius: var(--r-pill);
  transition: all 0.25s ease;
  cursor: pointer;
}

.portfolio-tag:hover {
  background: var(--navy-900);
  color: var(--white);
  border-color: var(--navy-900);
  transform: translateY(-1px);
  box-shadow: 0 4px 10px rgba(6, 15, 34, 0.12);
}

.portfolio-tag.highlighted {
  background: var(--grad-brand);
  color: var(--white);
  border-color: transparent;
  box-shadow: 0 4px 10px rgba(46, 123, 246, 0.2);
  transform: scale(1.05);
}

/* Empty State Container */
.portfolio-empty-state {
  grid-column: 1 / -1;
  text-align: center;
  padding: 4rem 2rem;
  background: var(--white);
  border: 1px dashed var(--slate-300);
  border-radius: var(--r-lg);
  display: none;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  animation: fadeIn 0.4s ease;
}

.portfolio-empty-state svg {
  width: 64px;
  height: 64px;
  color: var(--slate-400);
  margin-bottom: 1.5rem;
}

.portfolio-empty-state h3 {
  font-size: 1.5rem;
  font-weight: 700;
  color: var(--ink);
  margin-bottom: 0.5rem;
}

.portfolio-empty-state p {
  color: var(--text-muted);
  margin-bottom: 1.5rem;
}

/* Animation for filtering */
.portfolio-card.hidden {
  display: none !important;
}

@keyframes fadeIn {
  from {
    opacity: 0;
    transform: translateY(10px);
  }

  to {
    opacity: 1;
    transform: translateY(0);
  }
}

/* ---------- Talent & Delivery Interactive Dashboard ---------- */

.talent-dashboard {
  display: grid;
  grid-template-columns: 1fr;
  gap: 1.5rem;
  width: 100%;
  margin-top: 1.8rem;
  align-items: stretch;
}

@media (min-width: 992px) {
  .talent-dashboard {
    grid-template-columns: 340px 1fr;
    gap: 2rem;
  }

  .talent-selector {
    height: 100%;
  }

  .talent-tab {
    flex: 1;
  }
}

.talent-selector {
  display: flex;
  flex-direction: column;
  gap: 0.6rem;
  width: 100%;
}

.talent-tab {
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: var(--r-md);
  padding: 0.85rem 1.1rem;
  display: flex;
  align-items: center;
  gap: 0.8rem;
  cursor: pointer;
  text-align: left;
  position: relative;
  transition: all 0.35s var(--ease);
  box-shadow: var(--shadow-sm);
  width: 100%;
}

.talent-tab:hover {
  border-color: var(--blue-400);
  transform: translateX(4px);
  box-shadow: var(--shadow-md);
}

.talent-tab.active {
  background: var(--navy-900);
  border-color: var(--navy-900);
  color: var(--white);
  box-shadow: 0 8px 24px rgba(6, 15, 34, 0.15);
}

.talent-tab .tab-ic {
  font-size: 1.3rem;
  width: 38px;
  height: 38px;
  border-radius: 9px;
  background: var(--slate-100);
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  transition: background 0.3s ease;
}

.talent-tab.active .tab-ic {
  background: rgba(255, 255, 255, 0.08);
}

.talent-tab .tab-copy {
  display: flex;
  flex-direction: column;
  gap: 0.2rem;
  flex-grow: 1;
}

.talent-tab .tab-title {
  font-size: 0.94rem;
  font-weight: 750;
  color: var(--ink);
  transition: color 0.3s ease;
}

.talent-tab.active .tab-title {
  color: var(--white);
}

.talent-tab .tab-subtitle {
  font-size: 0.76rem;
  color: var(--slate-500);
  font-weight: 500;
  transition: color 0.3s ease;
}

.talent-tab.active .tab-subtitle {
  color: var(--slate-300);
}

.talent-tab .tab-badge {
  font-size: 0.7rem;
  font-weight: 700;
  color: var(--blue-600);
  background: rgba(46, 123, 246, 0.08);
  padding: 0.2rem 0.45rem;
  border-radius: var(--r-pill);
  flex-shrink: 0;
  transition: all 0.3s ease;
}

.talent-tab.active .tab-badge {
  background: rgba(45, 212, 196, 0.15);
  color: var(--cyan-300);
}

/* Display Panel */
.talent-display-panel {
  position: relative;
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: var(--r-lg);
  padding: 1.8rem 2rem;
  box-shadow: var(--shadow-md);
  display: flex;
  flex-direction: column;
  justify-content: flex-start;
  min-height: 380px;
  overflow: hidden;
  z-index: 1;
}

.talent-display-panel::before {
  content: '';
  position: absolute;
  inset: 0;
  border-radius: inherit;
  padding: 1.5px;
  background: radial-gradient(320px circle at var(--mouse-x, 0) var(--mouse-y, 0),
      rgba(46, 123, 246, 0.25) 0%,
      rgba(31, 196, 192, 0.15) 50%,
      transparent 100%);
  -webkit-mask: linear-gradient(#fff 0 0) content-box, linear-gradient(#fff 0 0);
  -webkit-mask-composite: xor;
  mask-composite: exclude;
  pointer-events: none;
  z-index: 2;
  opacity: 0;
  transition: opacity 0.4s var(--ease);
}

.talent-display-panel:hover::before {
  opacity: 1;
}

.talent-details-card {
  transition: opacity 0.3s var(--ease), transform 0.3s var(--ease);
  width: 100%;
}

.talent-details-card.fade-out {
  opacity: 0;
  transform: translateY(8px);
}

.talent-details-card.fade-in {
  opacity: 1;
  transform: translateY(0);
}

/* Expert Profile UI Layout */
.expert-profile {
  display: flex;
  flex-direction: column;
  gap: 1.2rem;
}

@media (min-width: 640px) {
  .expert-profile {
    flex-direction: row;
    gap: 1.8rem;
  }
}

.expert-avatar-col {
  display: flex;
  flex-direction: column;
  align-items: center;
  flex-shrink: 0;
}

.expert-avatar {
  width: 76px;
  height: 76px;
  border-radius: var(--r-pill);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.8rem;
  font-weight: 800;
  background: var(--navy-950);
  color: var(--white);
  border: 4px solid var(--paper);
  box-shadow: 0 8px 24px rgba(6, 15, 34, 0.15);
  position: relative;
}

.expert-avatar-glow {
  position: absolute;
  inset: -8px;
  border-radius: inherit;
  background: var(--grad-brand-soft);
  z-index: -1;
  opacity: 0.7;
  filter: blur(8px);
}

.expert-status {
  margin-top: 0.75rem;
  font-size: 0.74rem;
  font-weight: 700;
  color: #16a34a;
  background: rgba(22, 163, 74, 0.08);
  padding: 0.25rem 0.6rem;
  border-radius: var(--r-pill);
  display: flex;
  align-items: center;
  gap: 0.4rem;
  white-space: nowrap;
}

.expert-status.on-project {
  color: #d97706;
  background: rgba(217, 119, 6, 0.08);
}

.expert-status .dot {
  width: 6.5px;
  height: 6.5px;
  background: currentColor;
  border-radius: 50%;
  display: inline-block;
  box-shadow: 0 0 8px currentColor;
  animation: pulse-dot 1.8s infinite;
}

@keyframes pulse-dot {
  0% {
    transform: scale(0.95);
    opacity: 0.5;
  }

  50% {
    transform: scale(1.2);
    opacity: 1;
  }

  100% {
    transform: scale(0.95);
    opacity: 0.5;
  }
}

.expert-info-col {
  flex-grow: 1;
}

.expert-role-badge {
  font-size: 0.74rem;
  font-weight: 800;
  color: var(--blue-600);
  text-transform: uppercase;
  letter-spacing: 0.08em;
  margin-bottom: 0.5rem;
  display: block;
}

.expert-name {
  font-size: 1.4rem;
  font-weight: 800;
  color: var(--ink);
  margin-bottom: 0.2rem;
}

.expert-title {
  font-size: 0.9rem;
  font-weight: 600;
  color: var(--slate-500);
  margin-bottom: 0.6rem;
}

.expert-bio {
  font-size: 0.9rem;
  color: var(--text-muted);
  line-height: 1.5;
  margin-bottom: 1rem;
}

.expert-divider {
  height: 1px;
  background: var(--line);
  margin: 0.9rem 0;
}

.expert-subheadings {
  font-size: 0.8rem;
  font-weight: 750;
  color: var(--ink);
  text-transform: uppercase;
  letter-spacing: 0.05em;
  margin-bottom: 0.4rem;
}

.expert-skills-wrap {
  display: flex;
  flex-wrap: wrap;
  gap: 0.45rem;
}

.expert-skill-tag {
  font-size: 0.76rem;
  font-weight: 600;
  color: var(--slate-600);
  background: var(--slate-100);
  padding: 0.25rem 0.65rem;
  border-radius: var(--r-pill);
  border: 1px solid var(--line);
}

.expert-metrics-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 1rem;
  margin-top: 0.6rem;
}

.expert-metric-item {
  display: flex;
  flex-direction: column;
  gap: 0.2rem;
}

.expert-metric-val {
  font-size: 1.25rem;
  font-weight: 850;
  color: var(--navy-900);
}

.expert-metric-lbl {
  font-size: 0.74rem;
  color: var(--slate-500);
  font-weight: 600;
}

/* ---------- Resource Downloads Interactive Section ---------- */

.download-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 1.8rem;
  width: 100%;
}

@media (min-width: 640px) {
  .download-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (min-width: 1024px) {
  .download-grid {
    grid-template-columns: repeat(4, 1fr);
  }
}

.download-card {
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: var(--r-lg);
  padding: 2.2rem 1.6rem 1.8rem;
  box-shadow: var(--shadow-sm);
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  position: relative;
  overflow: hidden;
  height: 100%;
  transition: transform 0.4s var(--ease-out), box-shadow 0.4s var(--ease-out), border-color 0.4s;
  z-index: 1;
}

.download-card:hover {
  transform: translateY(-8px);
  box-shadow: var(--shadow-lg);
  border-color: rgba(46, 123, 246, 0.2);
}

.download-card::before {
  content: '';
  position: absolute;
  inset: 0;
  border-radius: inherit;
  padding: 1.5px;
  background: radial-gradient(220px circle at var(--mouse-x, 0) var(--mouse-y, 0),
      rgba(46, 123, 246, 0.22) 0%,
      rgba(31, 196, 192, 0.12) 50%,
      transparent 100%);
  -webkit-mask: linear-gradient(#fff 0 0) content-box, linear-gradient(#fff 0 0);
  -webkit-mask-composite: xor;
  mask-composite: exclude;
  pointer-events: none;
  z-index: 2;
  opacity: 0;
  transition: opacity 0.4s var(--ease);
}

.download-card:hover::before {
  opacity: 1;
}

/* 3D Document Mockup Engine */
.doc-mockup-wrap {
  perspective: 800px;
  width: 124px;
  height: 168px;
  margin: 0 auto 1.6rem;
  position: relative;
  transform-style: preserve-3d;
}

.doc-cover {
  width: 100%;
  height: 100%;
  border-radius: 3px 6px 6px 3px;
  position: absolute;
  left: 0;
  top: 0;
  z-index: 3;
  transform-origin: left center;
  transform: rotateY(-12deg) rotateX(4deg);
  transform-style: preserve-3d;
  transition: transform 0.5s var(--ease);
  box-shadow: 4px 6px 18px rgba(12, 27, 61, 0.15);
}

.download-card:hover .doc-cover {
  transform: rotateY(-32deg) rotateX(6deg);
}

/* Shine overlay on cover */
.doc-cover::before {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(105deg, rgba(255, 255, 255, 0.2) 0%, rgba(255, 255, 255, 0) 40%, rgba(0, 0, 0, 0.06) 60%, rgba(0, 0, 0, 0.15) 100%);
  border-radius: inherit;
  z-index: 5;
  pointer-events: none;
}

/* Book Spine / Spine Highlight */
.doc-cover::after {
  content: '';
  position: absolute;
  left: 0;
  top: 0;
  bottom: 0;
  width: 5px;
  background: rgba(255, 255, 255, 0.18);
  box-shadow: 1px 0 3px rgba(0, 0, 0, 0.15);
  border-radius: 3px 0 0 3px;
  z-index: 4;
}

/* Graphic styles inside the cover */
.doc-cover-inner {
  padding: 1.1rem 0.9rem;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  height: 100%;
  color: var(--white);
  text-align: left;
  border-radius: inherit;
  background-size: cover;
}

.doc-cover-logo {
  font-size: 0.52rem;
  font-weight: 900;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  color: rgba(255, 255, 255, 0.88);
  border-bottom: 1px solid rgba(255, 255, 255, 0.2);
  padding-bottom: 0.3rem;
  width: 100%;
}

.doc-cover-title {
  font-size: 0.9rem;
  font-weight: 850;
  line-height: 1.25;
  color: var(--white);
  margin-top: 0.5rem;
}

.doc-cover-footer {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-top: auto;
  font-size: 0.5rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  color: rgba(255, 255, 255, 0.75);
}

.doc-cover-accent {
  width: 12px;
  height: 12px;
  border-radius: 3px;
  background: var(--white);
  box-shadow: 0 0 10px rgba(255, 255, 255, 0.4);
}

/* Theme gradients for document covers */
.cover-theme-catalogue {
  background: linear-gradient(135deg, #1e3a8a, #3b82f6);
}

.cover-theme-brochure {
  background: linear-gradient(135deg, #065f46, #10b981);
}

.cover-theme-briefs {
  background: linear-gradient(135deg, #115e59, #14b8a6);
}

.cover-theme-calendar {
  background: linear-gradient(135deg, #581c87, #8b5cf6);
}

/* Pages Mockup stacked behind the cover */
.doc-pages {
  position: absolute;
  right: 2px;
  top: 4px;
  bottom: 4px;
  width: 10px;
  background: #ffffff;
  border: 1px solid var(--slate-300);
  border-left: none;
  border-radius: 0 4px 4px 0;
  transform: translateZ(-8px) rotateY(-5deg);
  z-index: 1;
  box-shadow: 2px 3px 8px rgba(12, 27, 61, 0.08);
  /* Repeating gradient simulating multiple pages */
  background: repeating-linear-gradient(90deg,
      #ffffff 0px,
      #ffffff 1px,
      #e2e8f2 2px,
      #ffffff 3px);
}

/* Card Content Styling */
.download-card h3 {
  font-size: 1.15rem;
  font-weight: 750;
  color: var(--ink);
  margin-bottom: 0.45rem;
  transition: color 0.3s ease;
}

.download-card:hover h3 {
  color: var(--blue-600);
}

.download-card p {
  font-size: 0.9rem;
  color: var(--text-muted);
  line-height: 1.45;
  margin-bottom: 1rem;
  flex-grow: 1;
}

/* Document Metadata details */
.doc-meta {
  display: flex;
  gap: 0.45rem;
  align-items: center;
  margin-bottom: 1.3rem;
  font-size: 0.72rem;
  font-weight: 750;
  color: var(--slate-500);
}

.doc-meta-badge {
  background: var(--slate-100);
  border: 1px solid var(--line);
  color: var(--slate-600);
  border-radius: 4px;
  padding: 0.15rem 0.4rem;
  text-transform: uppercase;
  letter-spacing: 0.02em;
}

.doc-meta-size {
  color: var(--slate-400);
  font-weight: 600;
}

/* Download action button & Loading States */
.download-btn {
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  width: 100%;
  padding: 0.7rem 1.1rem;
  font-size: 0.88rem;
  font-weight: 600;
  border-radius: var(--r-md);
  transition: all 0.3s ease;
}

.download-btn .btn-icon {
  width: 16px;
  height: 16px;
  transition: transform 0.3s ease;
}

.download-btn:hover .btn-icon {
  transform: translateY(2px);
}

/* Spinner and dynamic states */
.download-btn .spinner {
  display: none;
  width: 14px;
  height: 14px;
  border: 2px solid rgba(0, 0, 0, 0.1);
  border-top-color: currentColor;
  border-radius: 50%;
  animation: spin 0.8s linear infinite;
}

.download-btn.is-loading {
  background: var(--slate-100) !important;
  border-color: var(--line) !important;
  color: var(--slate-400) !important;
  pointer-events: none;
}

.download-btn.is-loading .btn-icon {
  display: none;
}

.download-btn.is-loading .spinner {
  display: inline-block;
}

.download-btn.is-complete {
  background: var(--cyan-500) !important;
  border-color: var(--cyan-500) !important;
  color: var(--white) !important;
  pointer-events: none;
  box-shadow: 0 4px 10px rgba(31, 196, 192, 0.2);
}

.download-btn.is-complete .btn-icon {
  transform: scale(1.1);
}

@keyframes spin {
  to {
    transform: rotate(360deg);
  }
}

/* ==========================================================================
   MEGA MENU & COURSES
   ========================================================================== */

/* Megamenu */
.nav-item-dropdown {
  position: relative;
}

.nav-item-dropdown>a {
  display: inline-flex;
  align-items: center;
  gap: 4px;
}

.mega-menu {
  position: absolute;
  top: 100%;
  left: 50%;
  transform: translateX(-60%);
  width: 980px;
  background: rgba(255, 255, 255, 0.95);
  backdrop-filter: blur(16px) saturate(180%);
  border-radius: 16px;
  box-shadow: 0 20px 40px -10px rgba(0, 0, 0, 0.1), 0 0 0 1px rgba(0, 0, 0, 0.05);
  display: flex;
  flex-direction: row;
  opacity: 0;
  visibility: hidden;
  transition: all 0.3s cubic-bezier(0.16, 1, 0.3, 1);
  z-index: 100;
  margin-top: 15px;
  border: none;
  text-align: left;
  overflow: hidden;
  max-height: calc(100vh - 100px);
}

.nav-item-dropdown:hover .mega-menu,
.nav-item-dropdown:focus-within .mega-menu {
  opacity: 1;
  visibility: visible;
  margin-top: 0;
}

/* Simple Dropdown */
.dropdown-menu {
  position: absolute;
  top: 100%;
  left: 50%;
  transform: translateX(-50%);
  width: 220px;
  background: #fff;
  border-radius: var(--r-md);
  box-shadow: var(--shadow-lg);
  display: flex;
  flex-direction: column;
  opacity: 0;
  visibility: hidden;
  transition: all 0.3s ease;
  z-index: 100;
  margin-top: 10px;
  border: 1px solid var(--line);
  text-align: left;
  padding: 0.5rem 0;
}

.nav-item-dropdown:hover .dropdown-menu,
.nav-item-dropdown:focus-within .dropdown-menu {
  opacity: 1;
  visibility: visible;
  margin-top: 0;
}

.dropdown-link {
  padding: 0.75rem 1.5rem;
  color: var(--text);
  font-weight: 500;
  transition: all 0.2s ease;
  font-size: 0.95rem;
  text-decoration: none;
}

.dropdown-link:hover {
  background: var(--slate-100);
  color: var(--ink);
}

.mega-menu-sidebar {
  width: 280px;
  background: #f8fafc;
  border-right: 1px solid #e2e8f0;
  padding: 0 0 1.5rem 0;
  display: flex;
  flex-direction: column;
  flex-shrink: 0;
  overflow-y: auto;
}

.mega-sidebar-title {
  font-size: 0.9rem;
  font-weight: 700;
  color: var(--ink);
  padding: 1.5rem 1.5rem 0.75rem 1.5rem;
  position: sticky;
  top: 0;
  background: #f8fafc;
  z-index: 10;
}

.mega-menu-sidebar::-webkit-scrollbar {
  width: 4px;
}
.mega-menu-sidebar::-webkit-scrollbar-track {
  background: transparent;
}
.mega-menu-sidebar::-webkit-scrollbar-thumb {
  background: var(--slate-200);
  border-radius: 4px;
}
.mega-menu-sidebar::-webkit-scrollbar-thumb:hover {
  background: var(--slate-300);
}

.mega-menu-sidebar a {
  display: flex;
  align-items: center;
  padding: 0.75rem 1.5rem;
  color: var(--slate-600);
  background: transparent;
  border: none;
  font-weight: 500;
  transition: all 0.25s ease;
  font-size: 0.95rem;
  cursor: pointer;
  margin: 0;
  position: relative;
}

.mega-menu-sidebar a .cat-icon {
  width: 20px;
  height: 20px;
  margin-right: 12px;
  stroke: var(--slate-500);
}

.mega-menu-sidebar a:hover {
  background: rgba(46, 123, 246, 0.04);
  color: var(--brand) !important;
}

.mega-menu-sidebar a:hover .cat-icon {
  stroke: var(--brand);
}

.mega-menu-sidebar a.active {
  color: var(--brand) !important;
  font-weight: 600;
  background: transparent;
  box-shadow: none;
  transform: none;
}

.mega-menu-sidebar a.active .cat-icon {
  stroke: var(--brand);
}

.mega-menu-sidebar a.active span::after {
  content: "";
  display: inline-block;
  margin-left: 8px;
  width: 16px;
  height: 16px;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%232e7bf6' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='m9 18 6-6-6-6'/%3E%3C/svg%3E");
  background-size: contain;
  background-repeat: no-repeat;
  background-position: center;
  vertical-align: middle;
}

/* Content Area */
.mega-menu-content {
  flex: 1;
  padding: 1.5rem;
  display: flex;
  flex-direction: column;
  background: #fff;
  min-height: 0;
}

.mega-content-header {
  background: #eef2f9;
  border-radius: 12px;
  padding: 1rem 1.5rem;
  margin-bottom: 1.5rem;
}

.mega-content-header h3 {
  margin: 0;
  font-size: 1.1rem;
  font-weight: 700;
  color: var(--navy-800);
}

.mega-content-list {
  display: flex;
  flex-direction: column;
  gap: 1.5rem;
  overflow-y: auto;
  padding: 0.5rem 1.5rem 1.5rem 0.5rem;
  max-height: 400px;
}

/* Scrollbar for list */
.mega-content-list::-webkit-scrollbar { width: 6px; }
.mega-content-list::-webkit-scrollbar-track { background: rgba(0, 0, 0, 0.02); border-radius: 4px; }
.mega-content-list::-webkit-scrollbar-thumb { background: var(--slate-200); border-radius: 4px; }
.mega-content-list::-webkit-scrollbar-thumb:hover { background: var(--slate-300); }

.mega-course-card {
  display: flex;
  align-items: center;
  gap: 1.25rem;
  text-decoration: none;
  color: inherit;
  transition: transform 0.2s ease;
}

.mega-course-card:hover {
  transform: translateX(4px);
}

.mega-course-logo {
  width: 56px;
  height: 56px;
  border-radius: 50%;
  border: 1px solid var(--line);
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 700;
  font-size: 1.15rem;
  color: var(--brand-deep);
  background: #fff;
  flex-shrink: 0;
  box-shadow: 0 4px 10px rgba(0,0,0,0.03);
}

.mega-course-info {
  display: flex;
  flex-direction: column;
  gap: 0.35rem;
}

.mega-course-meta {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 0.75rem;
  font-size: 0.85rem;
  color: var(--slate-500);
  font-weight: 500;
}

.mega-tag {
  display: inline-flex;
  align-items: center;
  gap: 0.25rem;
  padding: 0.15rem 0.6rem;
  border-radius: 6px;
  font-size: 0.7rem;
  font-weight: 700;
  line-height: 1.2;
  text-transform: uppercase;
  letter-spacing: 0.05em;
}
.mega-tag svg {
  width: 12px;
  height: 12px;
}

.mega-tag-best {
  background: #10b981;
  color: #fff;
}
.mega-tag-best svg { stroke: #fff; }

.mega-tag-trending {
  background: #ef4444;
  color: #fff;
}
.mega-tag-trending svg { stroke: #fff; }

.mega-tag-popular {
  background: #f87171;
  color: #fff;
}
.mega-tag-popular svg { stroke: #fff; }

.mega-course-title {
  font-size: 1rem;
  font-weight: 700;
  color: var(--navy-900);
  line-height: 1.3;
  transition: color 0.2s ease;
}

.mega-course-card:hover .mega-course-title {
  color: var(--brand);
}

.mega-menu-footer {
  margin-top: 2rem;
  padding-top: 1.5rem;
  border-top: 1px solid var(--line);
  text-align: center;
  flex-shrink: 0;
}

/* Courses Layout */
.courses-container {
  display: grid;
  grid-template-columns: 280px 1fr;
  gap: 2.5rem;
  align-items: start;
}

@media (max-width: 992px) {
  .courses-container {
    grid-template-columns: 1fr;
  }

  .courses-sidebar {
    display: none;
  }
}

.courses-sidebar {
  background: #fff;
  border-radius: var(--r-md);
  padding: 1.5rem;
  border: 1px solid var(--line);
  position: sticky;
  top: calc(var(--nav-h) + 2rem);
}

.courses-search {
  position: relative;
  margin-bottom: 1.5rem;
}

.courses-search input {
  width: 100%;
  padding: 0.85rem 1rem 0.85rem 2.5rem;
  border: 1px solid var(--line);
  border-radius: var(--r-sm);
  font-family: inherit;
  font-size: 0.95rem;
  background: var(--paper);
}

.courses-search input:focus {
  outline: none;
  border-color: var(--brand);
  background: #fff;
}

.courses-search svg {
  position: absolute;
  left: 0.8rem;
  top: 50%;
  transform: translateY(-50%);
  color: var(--slate-400);
  width: 18px;
  height: 18px;
}

.cat-list-title {
  font-size: 0.75rem;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  color: var(--slate-500);
  margin-bottom: 1rem;
  font-weight: 700;
}

.cat-list a {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 0.6rem 0.75rem;
  margin-bottom: 0.25rem;
  color: var(--text);
  border-radius: var(--r-sm);
  transition: all 0.2s;
  font-size: 0.95rem;
  font-weight: 500;
  cursor: pointer;
}

.cat-list a:hover {
  background: var(--slate-100);
}

.cat-list a.active {
  background: var(--brand-deep);
  color: #fff;
}

.cat-list a .count {
  background: var(--slate-100);
  color: var(--slate-600);
  padding: 0.15rem 0.5rem;
  border-radius: var(--r-pill);
  font-size: 0.75rem;
  font-weight: 600;
}

.cat-list a.active .count {
  background: rgba(255, 255, 255, 0.2);
  color: #fff;
}

.courses-pills {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  margin-bottom: 1.5rem;
}

.courses-pills button {
  background: transparent;
  border: 1px solid var(--line);
  padding: 0.4rem 1.25rem;
  border-radius: var(--r-pill);
  font-size: 0.9rem;
  color: var(--text-muted);
  transition: all 0.2s;
  font-weight: 500;
}

.courses-pills button:hover {
  border-color: var(--brand);
  color: var(--brand);
}

.courses-pills button.active {
  background: var(--brand-deep);
  border-color: var(--brand-deep);
  color: #fff;
}

.courses-toolbar {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 1.5rem;
}

.courses-toolbar .count {
  font-weight: 700;
  color: var(--text);
  font-size: 1.1rem;
}

.courses-toolbar .count span {
  font-weight: 500;
  color: var(--text-muted);
}

.courses-sort select {
  padding: 0.5rem 2rem 0.5rem 1rem;
  border: 1px solid var(--line);
  border-radius: var(--r-sm);
  font-family: inherit;
  font-weight: 500;
  background: #fff;
  cursor: pointer;
}

.courses-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(320px, 1fr));
  gap: 1.5rem;
}

.course-card {
  background: #fff;
  border: 1px solid var(--line);
  border-radius: var(--r-md);
  padding: 1.5rem;
  display: flex;
  flex-direction: column;
  transition: all 0.3s;
}

.course-card:hover {
  box-shadow: var(--shadow-sm);
  border-color: var(--slate-300);
  transform: translateY(-2px);
}

.course-card-top {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 1.25rem;
}

.course-card .badge {
  background: #eef2f9;
  color: var(--brand);
  padding: 0.25rem 0.75rem;
  border-radius: var(--r-pill);
  font-size: 0.75rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.05em;
}

.course-card .level {
  font-size: 0.85rem;
  color: var(--text-muted);
  font-weight: 500;
}

.course-card .title {
  font-size: 1.15rem;
  font-weight: 700;
  margin-bottom: 0.75rem;
  line-height: 1.4;
  color: var(--ink);
}

.course-card .desc {
  font-size: 0.95rem;
  color: var(--text-muted);
  margin-bottom: 1.5rem;
  flex: 1;
  display: -webkit-box;
  -webkit-line-clamp: 3;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.course-card-meta {
  display: flex;
  gap: 1rem;
  font-size: 0.85rem;
  color: var(--text-muted);
  margin-bottom: 1.5rem;
  flex-wrap: wrap;
}

.course-card-meta span {
  display: flex;
  align-items: center;
  gap: 0.4rem;
}

.course-card-meta svg {
  width: 15px;
  height: 15px;
}

.course-card .btn-details {
  width: 100%;
  background: #eef2f9;
  color: var(--brand);
  border: none;
  padding: 0.8rem;
  border-radius: var(--r-pill);
  font-weight: 600;
  transition: all 0.2s;
  text-align: center;
  font-size: 0.95rem;
}

.course-card .btn-details:hover {
  background: var(--blue-100);
}

.course-card .star-rating {
  color: #f59e0b;
}

/* ========================================================================
   COURSE DRAWER
   ======================================================================== */
.drawer-backdrop {
  position: fixed;
  top: 0;
  left: 0;
  width: 100vw;
  height: 100vh;
  background: rgba(0, 0, 0, 0.4);
  backdrop-filter: blur(4px);
  z-index: 1050;
  opacity: 0;
  visibility: hidden;
  transition: all 0.3s ease;
}

.drawer-backdrop.drawer-open {
  opacity: 1;
  visibility: visible;
}

.course-drawer {
  position: fixed;
  top: 0;
  right: 0;
  width: 450px;
  max-width: 100vw;
  height: 100vh;
  background: #fff;
  z-index: 1100;
  box-shadow: -10px 0 30px rgba(0, 0, 0, 0.1);
  transform: translateX(100%);
  transition: transform 0.4s cubic-bezier(0.16, 1, 0.3, 1);
  display: flex;
  flex-direction: column;
  overflow-y: auto;
}

.course-drawer.drawer-open {
  transform: translateX(0);
}

.drawer-header {
  padding: 2rem;
  border-bottom: 1px solid var(--line);
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  gap: 1rem;
}

.drawer-header h2 {
  font-size: 1.5rem;
  line-height: 1.3;
  margin: 0;
  color: var(--ink);
}

.drawer-close {
  background: transparent;
  border: none;
  font-size: 2rem;
  line-height: 1;
  cursor: pointer;
  color: var(--text-muted);
  transition: color 0.2s;
  padding: 0;
}

.drawer-close:hover {
  color: var(--ink);
}

.drawer-body {
  padding: 2rem;
  flex: 1;
  display: flex;
  flex-direction: column;
  gap: 1.5rem;
}

.drawer-meta {
  display: flex;
  gap: 1rem;
  align-items: center;
}

.drawer-desc {
  font-size: 1rem;
  color: var(--slate-600);
  line-height: 1.6;
}

.drawer-section {
  display: flex;
  flex-direction: column;
  gap: 0.8rem;
}

.drawer-section h3 {
  font-size: 1.1rem;
  color: var(--ink);
  margin: 0;
  padding-bottom: 0.5rem;
  border-bottom: 1px solid var(--line);
}

.drawer-list {
  list-style: none;
  padding: 0;
  margin: 0;
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
}

.drawer-list li {
  position: relative;
  padding-left: 1.5rem;
  font-size: 0.95rem;
  color: var(--slate-600);
  line-height: 1.5;
}

.drawer-list li::before {
  content: '✓';
  position: absolute;
  left: 0;
  top: 0;
  color: var(--brand);
  font-weight: bold;
}

.drawer-text {
  font-size: 0.95rem;
  color: var(--slate-600);
  line-height: 1.5;
  margin: 0;
}

.drawer-details {
  background: var(--slate-50);
  padding: 1.5rem;
  border-radius: 12px;
  display: flex;
  flex-direction: column;
  gap: 1rem;
}

.detail-item {
  display: flex;
  align-items: flex-start;
  gap: 1rem;
}

.detail-item svg {
  width: 20px;
  height: 20px;
  color: var(--violet-600);
  flex-shrink: 0;
  margin-top: 2px;
}

.detail-text {
  display: flex;
  flex-direction: column;
}

.detail-text .label {
  font-size: 0.85rem;
  color: var(--text-muted);
  font-weight: 500;
  text-transform: uppercase;
  letter-spacing: 0.05em;
}

.detail-text .value {
  font-size: 1rem;
  color: var(--ink);
  font-weight: 600;
}

.drawer-actions {
  margin-top: auto;
  padding-top: 2rem;
  display: flex;
  flex-direction: column;
}

/* ==========================================================================
   Thank You Modal (Glassmorphism & Dynamic)
   ========================================================================== */

.modal {
  position: fixed;
  inset: 0;
  z-index: 10000;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: var(--gutter);
  opacity: 1;
  visibility: visible;
  transition: opacity 0.4s var(--ease), visibility 0.4s;
}

.modal[hidden] {
  display: flex !important;
  /* Override native hidden */
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
}

.modal-backdrop {
  position: absolute;
  inset: 0;
  background: rgba(6, 15, 34, 0.5);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  z-index: -1;
  transition: opacity 0.4s ease;
}

.modal[hidden] .modal-backdrop {
  opacity: 0;
}

.modal-dialog {
  position: relative;
  background: rgba(255, 255, 255, 0.95);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  border: 1px solid rgba(255, 255, 255, 0.8);
  border-radius: var(--r-xl);
  box-shadow:
    0 24px 60px -12px rgba(10, 27, 61, 0.25),
    0 0 0 1px rgba(255, 255, 255, 0.4) inset;
  width: 100%;
  max-width: 440px;
  transform: translateY(0) scale(1);
  transition: transform 0.5s var(--ease);
  overflow: hidden;
}

.modal[hidden] .modal-dialog {
  transform: translateY(30px) scale(0.96);
}

.modal-close {
  position: absolute;
  top: 1.25rem;
  right: 1.25rem;
  width: 36px;
  height: 36px;
  background: var(--paper);
  border: 1px solid var(--line);
  border-radius: 50%;
  color: var(--slate-500);
  font-size: 1.4rem;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: all 0.2s ease;
  z-index: 10;
}

.modal-close:hover {
  background: var(--line);
  color: var(--ink);
  transform: rotate(90deg);
}

.modal-body {
  padding: 3.5rem 2.5rem;
  text-align: center;
  display: flex;
  flex-direction: column;
  align-items: center;
}

.card-ico.success-ico {
  width: 76px;
  height: 76px;
  margin: 0 auto 1.8rem;
  background: linear-gradient(135deg, rgba(46, 123, 246, 0.1), rgba(45, 212, 196, 0.15));
  color: var(--cyan-500);
  border-radius: 50%;
  display: grid;
  place-items: center;
  font-size: 2.2rem;
  box-shadow:
    0 0 0 10px rgba(45, 212, 196, 0.05),
    inset 0 0 0 1px rgba(45, 212, 196, 0.2);
  animation: popIn 0.6s cubic-bezier(0.175, 0.885, 0.32, 1.275) forwards;
}

@keyframes popIn {
  0% {
    transform: scale(0.5);
    opacity: 0;
  }

  100% {
    transform: scale(1);
    opacity: 1;
  }
}

.modal-body h2 {
  font-size: 1.8rem;
  font-weight: 800;
  color: var(--ink);
  margin-bottom: 0.8rem;
  letter-spacing: -0.02em;
}

.modal-body p {
  color: var(--slate-600);
  font-size: 1.05rem;
  line-height: 1.6;
  margin-bottom: 2.2rem;
}

.modal-body .btn-primary {
  background: var(--grad-brand);
  color: #fff;
  border: none;
  padding: 1rem 3rem;
  border-radius: var(--r-pill);
  font-weight: 600;
  cursor: pointer;
  box-shadow: 0 8px 24px -8px rgba(46, 123, 246, 0.5);
  transition: all 0.3s ease;
  display: inline-flex;
  justify-content: center;
  align-items: center;
}

.modal-body .btn-primary:hover {
  box-shadow: 0 12px 32px -8px rgba(46, 123, 246, 0.6);
  transform: translateY(-2px);
}

/* ==========================================================================
   Form Validation
   ========================================================================== */

.error-border {
  border-color: #e11d48 !important;
  box-shadow: 0 0 0 3px rgba(225, 29, 72, 0.1) !important;
}

.error-msg {
  animation: slideDown 0.3s ease;
}

@keyframes slideDown {
  0% {
    opacity: 0;
    transform: translateY(-4px);
  }

  100% {
    opacity: 1;
    transform: translateY(0);
  }
}