/* ============================================================
   VWB — Ventures Without Borders Design System
   Dark mode only — premium glass & scroll animation system
   ============================================================ */

/* ---- Type Scale (fluid) ---- */
:root {
  --text-xs:   clamp(0.75rem,  0.7rem  + 0.25vw, 0.875rem);
  --text-sm:   clamp(0.875rem, 0.8rem  + 0.35vw, 1rem);
  --text-base: clamp(1rem,     0.95rem + 0.25vw, 1.125rem);
  --text-lg:   clamp(1.125rem, 1rem    + 0.75vw, 1.5rem);
  --text-xl:   clamp(1.5rem,   1.2rem  + 1.25vw, 2.25rem);
  --text-2xl:  clamp(2rem,     1.2rem  + 2.5vw,  3.5rem);
  --text-3xl:  clamp(2.5rem,   1rem    + 4vw,    5rem);

  /* ---- Spacing (4px base) ---- */
  --space-1:  0.25rem;
  --space-2:  0.5rem;
  --space-3:  0.75rem;
  --space-4:  1rem;
  --space-5:  1.25rem;
  --space-6:  1.5rem;
  --space-8:  2rem;
  --space-10: 2.5rem;
  --space-12: 3rem;
  --space-16: 4rem;
  --space-20: 5rem;
  --space-24: 6rem;
  --space-32: 8rem;

  /* ---- Fonts ---- */
  --font-display: 'Sentient', Georgia, serif;
  --font-body: 'Sentient', Georgia, serif;

  /* ---- Radius ---- */
  --radius-sm: 0.375rem;
  --radius-md: 0.5rem;
  --radius-lg: 0.75rem;
  --radius-xl: 1rem;
  --radius-full: 9999px;

  /* ---- Transition ---- */
  --transition-interactive: 180ms cubic-bezier(0.16, 1, 0.3, 1);
  --ease-out: cubic-bezier(0.16, 1, 0.3, 1);

  /* ---- Content widths ---- */
  --content-narrow: 640px;
  --content-default: 960px;
  --content-wide: 1200px;
  --content-full: 100%;

  /* ---- Dark Palette ---- */
  --color-bg:             #0a1014;
  --color-surface:        #111b21;
  --color-surface-2:      #162028;
  --color-surface-offset: #131d25;
  --color-divider:        #1e2e38;
  --color-border:         #283a46;

  --color-text:           #e4ecf0;
  --color-text-muted:     #8ba0a8;
  --color-text-faint:     #4e6670;
  --color-text-inverse:   #0a1014;

  --color-primary:        #3ab8d0;
  --color-primary-hover:  #4fcce3;
  --color-primary-active: #28a4bc;

  --color-accent:         #4fcce3;
  --color-accent-hover:   #6fd8ec;
  --color-accent-active:  #3ab8d0;
  --color-accent-light:   #0f1e26;

  --color-teal-65:        #4fcce3;
  --color-teal-42:        #7fd8e8;
  --color-teal-25:        #a8e2ed;

  --color-success:        #5aad64;
  --color-error:          #e06050;

  --shadow-sm: 0 1px 3px rgba(0,0,0,0.3);
  --shadow-md: 0 4px 16px rgba(0,0,0,0.4);
  --shadow-lg: 0 12px 40px rgba(0,0,0,0.5);
  --shadow-glow: 0 0 40px rgba(58, 184, 208, 0.08);
}

/* ============================================================
   Global Styles
   ============================================================ */
a {
  color: var(--color-accent);
  text-decoration: none;
}
a:hover {
  color: var(--color-accent-hover);
}

/* ---- Container ---- */
.container {
  max-width: var(--content-wide);
  margin-inline: auto;
  padding-inline: var(--space-4);
}
@media (min-width: 768px) {
  .container { padding-inline: var(--space-8); }
}

/* ---- Section Spacing ---- */
.section {
  padding-block: clamp(var(--space-12), 8vw, var(--space-24));
}

/* ============================================================
   HEADER / NAV — Premium Glass
   ============================================================ */
.header {
  position: sticky;
  top: 0;
  z-index: 100;
  background: rgba(10, 16, 20, 0.6);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  border-bottom: 1px solid rgba(30, 46, 56, 0.5);
  transition: background 0.3s ease, box-shadow 0.3s ease, border-color 0.3s ease;
}
.header--scrolled {
  background: rgba(10, 16, 20, 0.85);
  box-shadow: 0 4px 30px rgba(0,0,0,0.3);
  border-bottom-color: rgba(58, 184, 208, 0.08);
}
.header__inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 72px;
}
.header__logo {
  display: flex;
  align-items: center;
  gap: var(--space-2);
  font-family: var(--font-display);
  font-size: var(--text-lg);
  color: var(--color-text);
  text-decoration: none;
  letter-spacing: -0.01em;
  flex-shrink: 0;
}
.header__logo svg,
.header__logo img {
  width: 44px;
  height: 44px;
  border-radius: 4px;
}
.header__brand-name {
  font-family: var(--font-display);
  font-size: 1.05rem;
  font-weight: 400;
  font-style: italic;
  line-height: 1;
  letter-spacing: 0.02em;
  color: var(--color-text);
  white-space: nowrap;
  display: none;
}
@media (min-width: 640px) {
  .header__brand-name { display: block; }
}
.header__actions {
  display: flex;
  align-items: center;
  gap: var(--space-3);
}

/* ---- Modern Navbar ---- */
.navbar {
  display: none;
  align-items: center;
}
@media (min-width: 768px) {
  .navbar { display: flex; }
}
.navbar__list {
  display: flex;
  align-items: center;
  gap: var(--space-1);
  list-style: none;
  margin: 0;
  padding: 0;
}
.navbar__item {
  position: relative;
}
.navbar__link {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  padding: var(--space-2) var(--space-3);
  font-size: var(--text-sm);
  font-weight: 500;
  color: var(--color-text-muted);
  text-decoration: none;
  border-radius: var(--radius-md);
  border: none;
  background: none;
  cursor: pointer;
  white-space: nowrap;
  transition: color 0.2s ease, background 0.2s ease;
}
.navbar__link:hover,
.navbar__item--dropdown.active > .navbar__link {
  color: var(--color-text);
  background: var(--color-surface-2);
}
.navbar__chevron {
  width: 14px;
  height: 14px;
  transition: transform 0.25s cubic-bezier(0.16, 1, 0.3, 1);
  flex-shrink: 0;
}
.navbar__item--dropdown.active > .navbar__link .navbar__chevron {
  transform: rotate(180deg);
}

/* Dropdown panel */
/* Invisible bridge so mouse can travel from link to dropdown */
.navbar__item--dropdown::after {
  content: '';
  position: absolute;
  top: 100%;
  left: 0;
  right: 0;
  height: 12px;
  pointer-events: none;
}
.navbar__item--dropdown:hover::after,
.navbar__item--dropdown.active::after {
  pointer-events: auto;
}

.navbar__dropdown {
  position: absolute;
  top: calc(100% + 10px);
  left: 50%;
  transform: translateX(-50%) scale(0.96) translateY(-6px);
  transform-origin: top center;
  min-width: 200px;
  background: var(--color-surface);
  border: 1px solid var(--color-divider);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-lg);
  padding: var(--space-2);
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
  transition: opacity 0.25s cubic-bezier(0.16, 1, 0.3, 1),
              transform 0.25s cubic-bezier(0.16, 1, 0.3, 1),
              visibility 0.25s cubic-bezier(0.16, 1, 0.3, 1);
  z-index: 200;
}
.navbar__item--dropdown.active .navbar__dropdown,
.navbar__item--dropdown:hover .navbar__dropdown {
  opacity: 1;
  visibility: visible;
  pointer-events: auto;
  transform: translateX(-50%) scale(1) translateY(0);
}
.navbar__item--dropdown:hover > .navbar__link {
  color: var(--color-text);
  background: var(--color-surface-2);
}
.navbar__item--dropdown:hover > .navbar__link .navbar__chevron {
  transform: rotate(180deg);
}
.navbar__dropdown-item {
  display: block;
  padding: var(--space-2) var(--space-3);
  font-size: var(--text-sm);
  font-weight: 400;
  color: var(--color-text);
  text-decoration: none;
  border-radius: var(--radius-md);
  white-space: nowrap;
  transition: background 0.15s ease, color 0.15s ease;
}
.navbar__dropdown-item:hover {
  background: var(--color-surface-2);
  color: var(--color-primary);
}
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: var(--space-2);
  font-family: var(--font-body);
  font-size: var(--text-sm);
  font-weight: 600;
  letter-spacing: 0.02em;
  padding: 0.625rem 1.25rem;
  border-radius: var(--radius-sm);
  text-decoration: none;
  cursor: pointer;
  transition: all var(--transition-interactive);
}
.btn--primary {
  background: var(--color-primary);
  color: var(--color-text-inverse);
  border: 1px solid var(--color-primary);
}
.btn--primary:hover {
  background: var(--color-primary-hover);
  border-color: var(--color-primary-hover);
  transform: translateY(-1px);
  box-shadow: var(--shadow-md);
}
.btn--outline {
  background: transparent;
  color: var(--color-text);
  border: 1px solid var(--color-border);
}
.btn--outline:hover {
  border-color: var(--color-text-muted);
  background: var(--color-surface-2);
  transform: translateY(-1px);
}
.btn--accent {
  background: var(--color-accent);
  color: var(--color-primary);
  border: 1px solid var(--color-accent);
  font-weight: 700;
}
.btn--accent:hover {
  background: var(--color-accent-hover);
  transform: translateY(-1px);
  box-shadow: var(--shadow-md);
}
.btn--ghost {
  background: transparent;
  color: var(--color-accent);
  border: none;
  padding: 0;
  font-weight: 500;
}
.btn--ghost:hover {
  color: var(--color-accent-hover);
}
.btn--ghost svg {
  transition: transform var(--transition-interactive);
}
.btn--ghost:hover svg {
  transform: translateX(4px);
}

/* Hide header CTA on small screens */
.btn--header-cta {
  display: none;
}
@media (min-width: 768px) {
  .btn--header-cta { display: inline-flex; }
}

/* Mobile menu sub-items */
.mobile-menu__sub {
  padding-left: var(--space-6) !important;
  font-size: var(--text-sm) !important;
  color: var(--color-text-muted) !important;
}

/* Mobile menu toggle */
.mobile-toggle {
  display: flex;
  width: 44px;
  height: 44px;
  align-items: center;
  justify-content: center;
  color: var(--color-text);
}
@media (min-width: 768px) {
  .mobile-toggle { display: none; }
}

/* Mobile menu */
.mobile-menu {
  display: none;
  position: fixed;
  top: 72px;
  left: 0;
  right: 0;
  bottom: 0;
  background: var(--color-bg);
  z-index: 99;
  padding: var(--space-8) var(--space-4);
  flex-direction: column;
  gap: var(--space-6);
}
.mobile-menu.active {
  display: flex;
}
.mobile-menu a {
  font-size: var(--text-lg);
  font-weight: 500;
  color: var(--color-text);
  text-decoration: none;
  padding: var(--space-3) 0;
  border-bottom: 1px solid var(--color-divider);
}

/* ============================================================
   HERO
   ============================================================ */
.hero {
  position: relative;
  min-height: 100vh;
  display: flex;
  align-items: center;
  overflow: hidden;
}
.hero__bg {
  position: absolute;
  inset: 0;
  z-index: 0;
}
.hero__bg img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

/* World Map Hero */
.hero__map-bg {
  position: absolute;
  inset: 0;
  z-index: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
  backface-visibility: hidden;
  transform: translate3d(0, calc(var(--scroll-y, 0) * 0.15px), 0) scale(calc(1 + var(--scroll-progress, 0) * 0.08));
  will-change: transform;
}
.hero__map-img {
  position: absolute;
  width: 100%;
  height: 100%;
  object-fit: cover;
  opacity: 0.85;
  mask-image: linear-gradient(to bottom, transparent 2%, white 12%, white 88%, transparent 98%);
  -webkit-mask-image: linear-gradient(to bottom, transparent 2%, white 12%, white 88%, transparent 98%);
  pointer-events: none;
}
.hero__map-svg {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  pointer-events: none;
}

/* Arc path animation */
.hero__arc {
  fill: none;
  stroke: url(#arc-gradient);
  stroke-width: 1.2;
  stroke-dasharray: var(--arc-length);
  stroke-dashoffset: var(--arc-length);
  animation: draw-arc var(--arc-duration, 2s) var(--arc-delay, 0s) ease-in-out forwards;
}
@keyframes draw-arc {
  to { stroke-dashoffset: 0; }
}
@keyframes pulse-ring {
  0% { r: 3; opacity: 0.6; }
  100% { r: 12; opacity: 0; }
}
@keyframes fade-in-dot {
  0% { opacity: 0; }
  100% { opacity: 1; }
}
.hero__dot-pulse {
  animation: pulse-ring 2s ease-out infinite;
}
.hero__dot-glow {
  animation: fade-in-dot 0.5s ease-out forwards;
  opacity: 0;
}
.hero__label-tag {
  font-family: var(--font-body);
  font-size: 10px;
  font-weight: 500;
  fill: #ffffff;
  opacity: 0;
  animation: fade-in-dot 0.5s ease-out forwards;
}
.hero__label-bg {
  fill: rgba(0, 85, 98, 0.85);
  rx: 4;
  ry: 4;
  opacity: 0;
  animation: fade-in-dot 0.5s ease-out forwards;
}
.hero__overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(
    160deg,
    rgba(6, 12, 16, 0.92) 0%,
    rgba(8, 20, 28, 0.75) 40%,
    rgba(10, 30, 40, 0.50) 70%,
    rgba(6, 16, 22, 0.80) 100%
  );
  z-index: 1;
}
.hero__content {
  position: relative;
  z-index: 2;
  max-width: 1060px;
  margin-inline: auto;
  text-align: center;
  padding-block: var(--space-16);
  will-change: transform, opacity;
  backface-visibility: hidden;
  opacity: calc(1 - var(--scroll-progress, 0) * 1.4);
  transform: translate3d(0, calc(var(--scroll-y, 0) * 0.3px), 0);
}
/* Hero entrance animations */
@keyframes hero-fade-up {
  from { opacity: 0; transform: translate3d(0, 30px, 0); }
  to   { opacity: 1; transform: translate3d(0, 0, 0); }
}

.hero__label,
.hero h1,
.hero__sub,
.hero__actions {
  animation: hero-fade-up 0.8s cubic-bezier(0.16, 1, 0.3, 1) both;
}
.hero__label   { animation-delay: 0.1s; }
.hero h1       { animation-delay: 0.25s; }
.hero__sub     { animation-delay: 0.4s; }
.hero__actions { animation-delay: 0.55s; }

.hero__label {
  display: inline-flex;
  align-items: center;
  gap: var(--space-2);
  font-family: var(--font-body);
  font-size: var(--text-xs);
  font-weight: 600;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--color-accent);
  margin-bottom: var(--space-6);
}
.hero h1 {
  font-family: var(--font-display);
  font-size: var(--text-3xl);
  font-weight: 400;
  color: #ffffff;
  line-height: 1.08;
  margin-bottom: var(--space-6);
}
.hero__sub {
  font-size: var(--text-base);
  color: rgba(255,255,255,0.8);
  line-height: 1.7;
  max-width: 680px;
  margin-inline: auto;
  margin-bottom: var(--space-8);
}
.hero__actions {
  display: flex;
  flex-wrap: wrap;
  gap: var(--space-4);
  justify-content: center;
}
.hero .btn--accent {
  color: #ffffff;
  background: var(--color-primary);
  border-color: var(--color-primary);
}
.hero .btn--accent:hover {
  background: var(--color-primary-hover);
  border-color: var(--color-primary-hover);
}
.hero .btn--outline {
  color: #ffffff;
  border-color: rgba(255,255,255,0.3);
}
.hero .btn--outline:hover {
  border-color: rgba(255,255,255,0.6);
  background: rgba(255,255,255,0.08);
}

/* ============================================================
   ABOUT
   ============================================================ */
.about__grid {
  display: grid;
  gap: var(--space-12);
  align-items: center;
}
@media (min-width: 768px) {
  .about__grid {
    grid-template-columns: 1fr 1fr;
    gap: var(--space-16);
  }
}
.about__image {
  border-radius: var(--radius-lg);
  overflow: hidden;
  box-shadow: var(--shadow-lg);
}
.about__image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  aspect-ratio: 4/3;
}

/* Section headers */
.section-label {
  font-family: var(--font-body);
  font-size: var(--text-xs);
  font-weight: 600;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--color-accent);
  margin-bottom: var(--space-3);
}
.section-title {
  font-family: var(--font-display);
  font-size: var(--text-2xl);
  font-weight: 400;
  color: var(--color-text);
  margin-bottom: var(--space-4);
}
.section-intro {
  font-size: var(--text-base);
  color: var(--color-text-muted);
  max-width: 600px;
  line-height: 1.7;
}

/* ============================================================
   EXPERTISE CARDS
   ============================================================ */
.expertise__header {
  text-align: left;
  margin-bottom: var(--space-12);
  position: relative;
  z-index: 2;
}
.expertise__grid {
  position: relative;
  z-index: 1;
}
.expertise__grid {
  display: grid;
  gap: var(--space-6);
}
@media (min-width: 768px) {
  .expertise__grid {
    grid-template-columns: repeat(2, 1fr);
  }
}
.expertise-card {
  background: var(--color-surface);
  border: 1px solid var(--color-divider);
  border-radius: var(--radius-lg);
  padding: var(--space-8);
  transition: box-shadow 0.35s ease, transform 0.35s ease, border-color 0.35s ease;
}
.expertise-card:hover {
  box-shadow: var(--shadow-lg);
  transform: translateY(-4px);
  border-color: var(--color-teal-42);
}
.expertise-card__icon {
  width: 48px;
  height: 48px;
  color: var(--color-accent);
  margin-bottom: var(--space-5);
}
.expertise-card h3 {
  font-family: var(--font-display);
  font-size: var(--text-lg);
  font-weight: 400;
  color: var(--color-text);
  margin-bottom: var(--space-3);
}
.expertise-card p {
  font-size: var(--text-sm);
  color: var(--color-text-muted);
  line-height: 1.7;
  margin-bottom: var(--space-5);
}

/* ============================================================
   MARKETGLIDE — full-width band
   ============================================================ */
.marketglide {
  background: linear-gradient(135deg, #071218 0%, #0a1a22 100%);
  color: #ffffff;
  position: relative;
  overflow: hidden;
}
.marketglide__grid {
  display: grid;
  gap: var(--space-10);
  align-items: center;
}
@media (min-width: 768px) {
  .marketglide__grid {
    grid-template-columns: 1fr 1fr;
    gap: var(--space-16);
  }
}
.marketglide__content .section-label {
  color: var(--color-accent);
}
.marketglide__content .section-title {
  color: #ffffff;
}
.marketglide__content p {
  color: rgba(255,255,255,0.8);
  line-height: 1.7;
  margin-bottom: var(--space-4);
}
.marketglide__features {
  display: flex;
  flex-direction: column;
  gap: var(--space-3);
  margin-bottom: var(--space-8);
}
.marketglide__feature {
  display: flex;
  align-items: flex-start;
  gap: var(--space-3);
  font-size: var(--text-sm);
  color: rgba(255,255,255,0.85);
}
.marketglide__feature svg {
  width: 20px;
  height: 20px;
  color: var(--color-accent);
  flex-shrink: 0;
  margin-top: 2px;
}
.marketglide__image {
  border-radius: var(--radius-lg);
  overflow: hidden;
  box-shadow: 0 12px 40px rgba(0,0,0,0.4);
}
.marketglide__image img {
  width: 100%;
  height: auto;
}

/* ============================================================
   INSIGHTS STRIP
   ============================================================ */
.insights__header {
  display: flex;
  justify-content: space-between;
  align-items: flex-end;
  margin-bottom: var(--space-10);
  flex-wrap: wrap;
  gap: var(--space-4);
}
.insights__grid {
  display: grid;
  gap: var(--space-6);
}
@media (min-width: 768px) {
  .insights__grid {
    grid-template-columns: repeat(3, 1fr);
  }
}
.insight-card {
  background: var(--color-surface);
  border: 1px solid var(--color-divider);
  border-radius: var(--radius-lg);
  overflow: hidden;
  transition: box-shadow var(--transition-interactive), transform var(--transition-interactive);
  cursor: pointer;
}
.insight-card:hover {
  box-shadow: var(--shadow-md);
  transform: translateY(-2px);
}
.insight-card__image {
  width: 100%;
  height: 180px;
  background: var(--color-surface-2);
  overflow: hidden;
}
.insight-card__image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}
.insight-card__body {
  padding: var(--space-5) var(--space-6);
}
.insight-card__meta {
  display: flex;
  align-items: center;
  gap: var(--space-3);
  margin-bottom: var(--space-3);
}
.insight-card__category {
  font-size: var(--text-xs);
  font-weight: 600;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--color-accent);
}
.insight-card__time {
  font-size: var(--text-xs);
  color: var(--color-text-faint);
}
.insight-card h3 {
  font-family: var(--font-display);
  font-size: var(--text-lg);
  font-weight: 400;
  color: var(--color-text);
  margin-bottom: var(--space-2);
  line-height: 1.3;
}
.insight-card p {
  font-size: var(--text-sm);
  color: var(--color-text-muted);
  line-height: 1.6;
}

/* ============================================================
   HOTSPOTS — region cards + globe
   ============================================================ */
.hotspots__layout {
  display: grid;
  grid-template-columns: 1fr;
  gap: var(--space-10);
}
@media (min-width: 1024px) {
  .hotspots__layout {
    grid-template-columns: 1fr 1.4fr;
    gap: var(--space-12);
    align-items: start;
  }
}
.hotspots__left {
  position: sticky;
  top: 100px;
}
.hotspots__globe-wrap {
  aspect-ratio: 1;
  max-width: 420px;
  margin-top: var(--space-8);
  display: none;
}
@media (min-width: 1024px) {
  .hotspots__globe-wrap {
    display: block;
  }
}
.hotspots__grid {
  display: grid;
  gap: var(--space-4);
}
@media (min-width: 768px) {
  .hotspots__grid {
    grid-template-columns: repeat(2, 1fr);
  }
}
.hotspot-card {
  background: var(--color-surface);
  border: 1px solid var(--color-divider);
  border-radius: var(--radius-lg);
  padding: var(--space-6);
  transition: box-shadow var(--transition-interactive), transform var(--transition-interactive), border-color var(--transition-interactive);
}
.hotspot-card:hover {
  box-shadow: 0 20px 50px rgba(0,0,0,0.3), 0 0 0 1px rgba(58, 184, 208, 0.1);
  border-color: rgba(58, 184, 208, 0.2);
  transform: translateY(-2px);
}
.hotspot-card__region {
  font-family: var(--font-body);
  font-size: var(--text-xs);
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--color-accent);
  margin-bottom: var(--space-2);
}
.hotspot-card h3 {
  font-family: var(--font-display);
  font-size: var(--text-lg);
  font-weight: 400;
  color: var(--color-text);
  margin-bottom: var(--space-2);
}
.hotspot-card p {
  font-size: var(--text-sm);
  color: var(--color-text-muted);
  line-height: 1.6;
  margin-bottom: var(--space-4);
}

/* ============================================================
   PARTNERS — Bento Grid
   ============================================================ */
.partners__header {
  text-align: left;
  margin-bottom: var(--space-10);
}

.bento-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: var(--space-3);
}
@media (min-width: 768px) {
  .bento-grid {
    grid-template-columns: repeat(6, 1fr);
  }
}

.bento-card {
  background: var(--color-surface);
  border: 1px solid var(--color-divider);
  border-radius: var(--radius-lg);
  padding: var(--space-6);
  overflow: hidden;
  transition: box-shadow 0.25s ease;
}
.bento-card:hover {
  box-shadow: var(--shadow-md), var(--shadow-glow);
}

/* Sizing */
.bento-card--stat { grid-column: span 1; }
@media (min-width: 768px) {
  .bento-card--stat { grid-column: span 2; }
  .bento-card:not(.bento-card--wide):not(.bento-card--stat) { grid-column: span 2; }
  .bento-card--wide { grid-column: span 3; }
}

.bento-card__title {
  font-size: var(--text-lg);
  font-weight: 600;
  margin-bottom: var(--space-2);
}
.bento-card__desc {
  font-size: var(--text-sm);
  color: var(--color-text-muted);
  line-height: 1.6;
}

/* Stat card */
.bento-stat {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
  height: 96px;
  margin-bottom: var(--space-6);
}
.bento-stat__bg {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  color: var(--color-divider);
}
.bento-stat__number {
  position: relative;
  font-size: var(--text-2xl);
  font-weight: 700;
  color: var(--color-text);
}

/* Icon ring */
.bento-icon-ring {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
  width: 48px;
  height: 48px;
  border-radius: 50%;
  border: 1px solid var(--color-divider);
  color: var(--color-primary);
  margin-bottom: var(--space-6);
}
.bento-icon-ring::before {
  content: '';
  position: absolute;
  inset: -6px;
  border-radius: 50%;
  border: 1px solid var(--color-divider);
  opacity: 0.5;
}

/* Chart card */
.bento-chart {
  margin-bottom: var(--space-6);
  padding-top: var(--space-4);
}
.bento-chart__svg {
  width: 100%;
  height: auto;
}

/* Wide card layout */
.bento-card--wide__inner {
  display: grid;
  grid-template-columns: 1fr;
  gap: var(--space-6);
  height: 100%;
}
@media (min-width: 768px) {
  .bento-card--wide__inner {
    grid-template-columns: 1fr 1fr;
  }
}
.bento-card--wide__text {
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  gap: var(--space-6);
}

/* Partner tags visual */
.bento-card--wide__visual {
  position: relative;
  border-left: 1px solid var(--color-divider);
  border-top: 1px solid var(--color-divider);
  border-radius: var(--radius-lg) 0 0 0;
  padding: var(--space-6);
  margin: calc(-1 * var(--space-6));
  margin-left: 0;
  margin-top: var(--space-4);
}
@media (min-width: 768px) {
  .bento-card--wide__visual {
    margin-top: calc(-1 * var(--space-6));
  }
}

.bento-dots-header {
  display: flex;
  gap: 4px;
  margin-bottom: var(--space-4);
}
.bento-dots-header span {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  border: 1px solid var(--color-divider);
  background: var(--color-surface-2);
}

.bento-partner-list {
  display: flex;
  flex-wrap: wrap;
  gap: var(--space-2);
}
.bento-partner-tag {
  display: inline-flex;
  align-items: center;
  gap: var(--space-2);
  padding: var(--space-2) var(--space-3);
  border: 1px solid var(--color-divider);
  border-radius: var(--radius-md);
  font-family: 'Helvetica Neue', Arial, sans-serif;
  font-size: var(--text-xs);
  font-weight: 500;
  color: var(--color-text-muted);
  background: var(--color-surface);
  box-shadow: var(--shadow-sm);
}
.bento-partner-tag svg {
  color: var(--color-primary);
  flex-shrink: 0;
}

/* Network visual */
.bento-network {
  display: flex;
  flex-direction: column;
  justify-content: center;
  gap: var(--space-6);
  padding-block: var(--space-6);
}
.bento-network__line {
  position: absolute;
  left: 50%;
  top: var(--space-8);
  bottom: var(--space-8);
  width: 1px;
  background: var(--color-divider);
}
.bento-network__node {
  position: relative;
  display: flex;
  align-items: center;
  gap: var(--space-2);
}
.bento-network__node--right {
  justify-content: flex-end;
  width: calc(50% + 16px);
}
.bento-network__node--left {
  margin-left: calc(50% - 16px);
}
.bento-network__avatar {
  width: 32px;
  height: 32px;
  border-radius: 50%;
  background: var(--color-primary);
  color: var(--color-text-inverse);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: var(--text-xs);
  font-weight: 600;
  flex-shrink: 0;
  outline: 4px solid var(--color-surface);
  position: relative;
  z-index: 1;
}
.bento-network__label {
  font-size: var(--text-xs);
  font-weight: 500;
  padding: var(--space-1) var(--space-2);
  border: 1px solid var(--color-divider);
  border-radius: var(--radius-md);
  background: var(--color-surface);
  box-shadow: var(--shadow-sm);
  white-space: nowrap;
}

/* ============================================================
   TESTIMONIAL
   ============================================================ */
.testimonial {
  position: relative;
}
.testimonial__inner {
  max-width: 800px;
}
.testimonial__quote {
  font-family: var(--font-display);
  font-size: var(--text-xl);
  font-weight: 400;
  color: var(--color-text);
  line-height: 1.4;
  margin-bottom: var(--space-8);
  position: relative;
  padding-left: var(--space-8);
}
.testimonial__quote::before {
  content: '';
  position: absolute;
  left: 0;
  top: 0;
  bottom: 0;
  width: 4px;
  background: var(--color-accent);
  border-radius: 2px;
}
.testimonial__author {
  padding-left: var(--space-8);
}
.testimonial__name {
  font-size: var(--text-sm);
  font-weight: 600;
  color: var(--color-text);
}
.testimonial__role {
  font-size: var(--text-xs);
  color: var(--color-text-muted);
}

/* ============================================================
   FOOTER
   ============================================================ */
.footer {
  background: #060d12;
  color: #ffffff;
  padding-block: var(--space-16) var(--space-8);
}
.footer__grid {
  display: grid;
  gap: var(--space-10);
  margin-bottom: var(--space-12);
}
@media (min-width: 768px) {
  .footer__grid {
    grid-template-columns: 2fr 1fr 1fr 1.5fr;
    gap: var(--space-8);
  }
}
.footer__brand p {
  color: rgba(255,255,255,0.65);
  font-size: var(--text-sm);
  line-height: 1.7;
  max-width: 300px;
}
.footer__brand .header__logo {
  color: #ffffff;
  margin-bottom: var(--space-4);
}
.footer__brand .header__logo img {
  height: 36px;
  width: auto;
  filter: brightness(0) invert(1);
}
.footer__heading {
  font-family: var(--font-body);
  font-size: var(--text-xs);
  font-weight: 600;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: rgba(255,255,255,0.5);
  margin-bottom: var(--space-4);
}
.footer__links {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: var(--space-2);
}
.footer__links li a {
  font-size: var(--text-sm);
  color: rgba(255,255,255,0.7);
  text-decoration: none;
  transition: color var(--transition-interactive);
}
.footer__links li a:hover {
  color: var(--color-accent);
}
/* Newsletter form */
.footer__subscribe p {
  font-size: var(--text-sm);
  color: rgba(255,255,255,0.7);
  margin-bottom: var(--space-4);
  line-height: 1.6;
}
.footer__form {
  display: flex;
  gap: var(--space-2);
}
.footer__form input {
  flex: 1;
  padding: 0.625rem 0.875rem;
  border: 1px solid rgba(255,255,255,0.2);
  border-radius: var(--radius-sm);
  background: rgba(255,255,255,0.08);
  color: #ffffff;
  font-size: var(--text-sm);
  outline: none;
  transition: border-color var(--transition-interactive);
}
.footer__form input::placeholder {
  color: rgba(255,255,255,0.4);
}
.footer__form input:focus {
  border-color: var(--color-accent);
}
.footer__form button {
  padding: 0.625rem 1rem;
  background: var(--color-accent);
  color: var(--color-primary);
  border: none;
  border-radius: var(--radius-sm);
  font-size: var(--text-sm);
  font-weight: 600;
  cursor: pointer;
  transition: background var(--transition-interactive);
}
.footer__form button:hover {
  background: var(--color-accent-hover);
}
.footer__bottom {
  border-top: 1px solid rgba(255,255,255,0.12);
  padding-top: var(--space-6);
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: var(--space-4);
  font-size: var(--text-xs);
  color: rgba(255,255,255,0.4);
}
.footer__bottom a {
  color: rgba(255,255,255,0.5);
  text-decoration: none;
  transition: color var(--transition-interactive);
}
.footer__bottom a:hover {
  color: var(--color-accent);
}

/* ============================================================
   SCROLL ANIMATION SYSTEM
   Elements animate in when visible; .is-visible is kept (see app.js).
   ============================================================ */

/* GPU-only transitions: transform + opacity are composited on GPU.
   filter: blur() is removed — it forces rasterization every frame and causes jank.
   translate3d(0,0,0) promotes elements to their own compositor layer. */
[data-scroll] {
  will-change: transform, opacity;
  backface-visibility: hidden;
  transition:
    opacity 0.8s cubic-bezier(0.22, 1, 0.36, 1),
    transform 0.8s cubic-bezier(0.22, 1, 0.36, 1);
}

/* --- fade-up --- */
[data-scroll="fade-up"] {
  opacity: 0;
  transform: translate3d(0, 48px, 0);
}
[data-scroll="fade-up"].is-visible {
  opacity: 1;
  transform: translate3d(0, 0, 0);
}

/* --- fade-down --- */
[data-scroll="fade-down"] {
  opacity: 0;
  transform: translate3d(0, -48px, 0);
}
[data-scroll="fade-down"].is-visible {
  opacity: 1;
  transform: translate3d(0, 0, 0);
}

/* --- fade-left --- */
[data-scroll="fade-left"] {
  opacity: 0;
  transform: translate3d(-60px, 0, 0);
}
[data-scroll="fade-left"].is-visible {
  opacity: 1;
  transform: translate3d(0, 0, 0);
}

/* --- fade-right --- */
[data-scroll="fade-right"] {
  opacity: 0;
  transform: translate3d(60px, 0, 0);
}
[data-scroll="fade-right"].is-visible {
  opacity: 1;
  transform: translate3d(0, 0, 0);
}

/* --- zoom-in --- */
[data-scroll="zoom-in"] {
  opacity: 0;
  transform: scale3d(0.88, 0.88, 1);
}
[data-scroll="zoom-in"].is-visible {
  opacity: 1;
  transform: scale3d(1, 1, 1);
}

/* --- zoom-out --- */
[data-scroll="zoom-out"] {
  opacity: 0;
  transform: scale3d(1.1, 1.1, 1);
}
[data-scroll="zoom-out"].is-visible {
  opacity: 1;
  transform: scale3d(1, 1, 1);
}

/* --- scale-up (legacy compat) --- */
[data-scroll="scale-up"] {
  opacity: 0;
  transform: scale3d(0.92, 0.92, 1);
}
[data-scroll="scale-up"].is-visible {
  opacity: 1;
  transform: scale3d(1, 1, 1);
}

/* --- reveal-text: slide from left (no clip-path — clip caused unreliable IO / visibility on some desktop browsers) --- */
[data-scroll="reveal-text"] {
  opacity: 0;
  transform: translate3d(-28px, 0, 0);
}
[data-scroll="reveal-text"].is-visible {
  opacity: 1;
  transform: translate3d(0, 0, 0);
}

/* --- fade (opacity only) --- */
[data-scroll="fade"] {
  opacity: 0;
}
[data-scroll="fade"].is-visible {
  opacity: 1;
}

/* Legacy .fade-in support */
.fade-in {
  opacity: 0;
  transform: translate3d(0, 20px, 0);
  transition: opacity 0.7s cubic-bezier(0.16, 1, 0.3, 1), transform 0.7s cubic-bezier(0.16, 1, 0.3, 1);
}
.fade-in.is-visible {
  opacity: 1;
  transform: translate3d(0, 0, 0);
}

/* Note: content-visibility was removed — it interfered with IntersectionObserver on
   desktop (sections stayed “skipped” or children never got reliable intersection). */

@media (prefers-reduced-motion: reduce) {
  [data-scroll],
  .fade-in {
    opacity: 1 !important;
    transform: none !important;
    filter: none !important;
    clip-path: none !important;
    transition: none !important;
  }
}

/* Alternate bg bands */
.section--alt {
  background: var(--color-surface-2);
}

/* ============================================================
   STATS BAR
   ============================================================ */
.stats-bar {
  background: var(--color-surface-2);
  border-top: 1px solid var(--color-divider);
  border-bottom: 1px solid var(--color-divider);
  padding-block: var(--space-8);
}
.stats-bar__grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: var(--space-6);
  text-align: center;
}
@media (min-width: 768px) {
  .stats-bar__grid {
    grid-template-columns: repeat(4, 1fr);
  }
}
.stat__number {
  font-family: var(--font-display);
  font-size: var(--text-2xl);
  color: var(--color-accent);
  line-height: 1;
  margin-bottom: var(--space-1);
}
.stat__label {
  font-size: var(--text-xs);
  color: var(--color-text-muted);
  font-weight: 500;
  letter-spacing: 0.02em;
}

/* ============================================================
   PREMIUM TYPOGRAPHY
   ============================================================ */
.text-gradient {
  background: linear-gradient(135deg, #3ab8d0 0%, #b3e6f0 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}
.text-serif {
  font-family: var(--font-display);
  font-weight: 400;
  font-style: italic;
  letter-spacing: 0.02em;
}

/* ============================================================
   CTA BAND
   ============================================================ */
.cta-band {
  background: var(--color-accent-light);
  text-align: center;
}
.cta-band .section-title {
  margin-inline: auto;
  max-width: 600px;
}
.cta-band p {
  color: var(--color-text-muted);
  max-width: 500px;
  margin-inline: auto;
  margin-bottom: var(--space-8);
  line-height: 1.7;
}

/* ============================================================
   REDUCED MOTION — comprehensive
   ============================================================ */
@media (prefers-reduced-motion: reduce) {
  .hero__label,
  .hero h1,
  .hero__sub,
  .hero__actions {
    animation: none;
    opacity: 1;
    filter: none;
  }
  .hero__content {
    opacity: 1 !important;
    transform: none !important;
  }
}
