/* =========================================================================
   BWiGA Accelerator
   Stylesheet
   ========================================================================= */

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

html {
  scroll-behavior: smooth;
  -webkit-text-size-adjust: 100%;
  scroll-padding-top: 80px; /* clear fixed header on anchor jumps */
}

body {
  background: var(--bg-deep);
  color: var(--text-primary);
  font-family: 'Plus Jakarta Sans', -apple-system, BlinkMacSystemFont, sans-serif;
  font-feature-settings: 'cv11', 'ss01', 'ss03';
  line-height: 1.6;
  overflow-x: hidden;
  min-height: 100vh;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

img, svg { display: block; max-width: 100%; }
button { font-family: inherit; cursor: pointer; }
a { color: inherit; text-decoration: none; }
ul { list-style: none; }

/* -------------------- Design tokens -------------------- */
:root {
  /* Surfaces */
  --bg-deep: #030508;
  --bg-mid: #08090d;
  --bg-elev: #0c0e13;
  --surface: rgba(255, 255, 255, 0.03);
  --surface-hover: rgba(255, 255, 255, 0.06);

  /* Brand */
  --gold: #d4af37;
  --gold-soft: #e9c769;
  --gold-warm: #ff9f43;
  --cyan: #22d3ee;
  --cyan-soft: #67e8f9;
  --emerald: #10b981;

  /* Text */
  --text-primary: #ffffff;
  --text-secondary: rgba(255, 255, 255, 0.72);
  --text-tertiary: rgba(255, 255, 255, 0.55);
  --text-muted: rgba(255, 255, 255, 0.4);

  /* Borders */
  --border: rgba(255, 255, 255, 0.08);
  --border-strong: rgba(255, 255, 255, 0.16);
  --border-gold: rgba(212, 175, 55, 0.22);
  --border-cyan: rgba(34, 211, 238, 0.22);

  /* Type */
  --font-display: 'Manrope', sans-serif;
  --font-body: 'Plus Jakarta Sans', -apple-system, sans-serif;
  --font-mono: 'JetBrains Mono', ui-monospace, monospace;

  /* Layout */
  --max: 1280px;
  --gutter: 48px;
  --radius-sm: 6px;
  --radius-md: 10px;
  --radius-lg: 16px;
  --radius-xl: 24px;
}

@media (max-width: 768px) {
  :root { --gutter: 24px; }
}

/* -------------------- Background stage -------------------- */
.bg-stage {
  position: fixed;
  inset: 0;
  z-index: 0;
  overflow: hidden;
  pointer-events: none;
  background:
    radial-gradient(ellipse 60% 40% at 18% 20%, rgba(34, 211, 238, 0.07) 0%, transparent 60%),
    radial-gradient(ellipse 60% 40% at 82% 80%, rgba(212, 175, 55, 0.07) 0%, transparent 60%),
    radial-gradient(ellipse 50% 30% at 50% 50%, rgba(16, 185, 129, 0.04) 0%, transparent 70%),
    var(--bg-deep);
}

#network-canvas {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
}

.bg-grid {
  position: absolute;
  inset: 0;
  background-image:
    linear-gradient(rgba(212, 175, 55, 0.035) 1px, transparent 1px),
    linear-gradient(90deg, rgba(212, 175, 55, 0.035) 1px, transparent 1px);
  background-size: 80px 80px;
  mask-image: radial-gradient(ellipse at center, black 20%, transparent 80%);
  -webkit-mask-image: radial-gradient(ellipse at center, black 20%, transparent 80%);
}

.bg-vignette {
  position: absolute;
  inset: 0;
  background:
    radial-gradient(ellipse at center, transparent 30%, rgba(3, 5, 8, 0.7) 90%),
    linear-gradient(to bottom, rgba(3, 5, 8, 0.5) 0%, transparent 18%, transparent 82%, rgba(3, 5, 8, 0.6) 100%);
}

.bg-grain {
  position: absolute;
  inset: 0;
  opacity: 0.04;
  background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 200 200' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.9'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
}

/* -------------------- Layout primitives -------------------- */
.container {
  position: relative;
  z-index: 1;
}

.wrap {
  max-width: var(--max);
  margin: 0 auto;
  padding: 0 var(--gutter);
}

section { position: relative; padding: 120px 0; scroll-margin-top: 80px; }
@media (max-width: 768px) { section { padding: 80px 0; } }

.section-head {
  max-width: 880px;
  margin-bottom: 64px;
}

.section-eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: 2px;
  text-transform: uppercase;
  color: var(--gold-soft);
  margin-bottom: 16px;
}

.section-eyebrow::before {
  content: '';
  width: 24px;
  height: 1px;
  background: var(--gold);
}

h1, h2, h3, h4 { font-family: var(--font-display); letter-spacing: -0.02em; line-height: 1.1; }

h2 { font-size: clamp(32px, 4.5vw, 56px); font-weight: 700; margin-bottom: 16px; }
h3 { font-size: 22px; font-weight: 700; line-height: 1.25; letter-spacing: -0.01em; }
h4 { font-size: 16px; font-weight: 600; }

.section-subtitle {
  font-size: clamp(18px, 2vw, 22px);
  color: var(--gold-soft);
  font-weight: 500;
  margin-bottom: 24px;
  font-family: var(--font-display);
}

.section-desc {
  font-size: 17px;
  color: var(--text-secondary);
  line-height: 1.7;
  max-width: 760px;
}

.section-desc + .section-desc { margin-top: 16px; }

.accent-quote {
  font-family: var(--font-display);
  font-size: 20px;
  font-weight: 500;
  color: var(--text-primary);
  padding: 24px 32px;
  border-left: 2px solid var(--gold);
  background: linear-gradient(90deg, rgba(212, 175, 55, 0.06) 0%, transparent 100%);
  border-radius: 0 var(--radius-md) var(--radius-md) 0;
  margin: 48px 0;
  line-height: 1.4;
}

/* -------------------- Header -------------------- */
.site-header {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 100;
  padding: 16px var(--gutter);
  background: rgba(3, 5, 8, 0.7);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  border-bottom: 1px solid var(--border);
  transition: padding 0.3s, background 0.3s;
}

.site-header.scrolled {
  padding: 12px var(--gutter);
  background: rgba(3, 5, 8, 0.92);
}

.header-inner {
  max-width: var(--max);
  margin: 0 auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 32px;
}

.logo {
  display: flex;
  align-items: center;
  gap: 10px;
  font-family: var(--font-display);
  font-weight: 800;
  font-size: 20px;
  letter-spacing: 0.5px;
  flex-shrink: 0;
}

/* ─── Wordmark image — used in every header & footer ─────────────────── */
.logo-wordmark-img {
  height: 40px;          /* desktop default */
  width: auto;
  display: block;
  object-fit: contain;
  flex-shrink: 0;
  /* Soft cyan glow so it reads on slightly-translucent header backgrounds */
  filter: drop-shadow(0 0 6px rgba(34, 211, 238, 0.25));
  transition: filter 0.3s ease, transform 0.3s ease;
}
.logo:hover .logo-wordmark-img {
  filter: drop-shadow(0 0 12px rgba(34, 211, 238, 0.5));
  transform: translateY(-1px);
}
/* Footer brand block uses a slightly larger version for presence */
.footer-brand .logo-wordmark-img { height: 44px; margin-bottom: 8px; }
/* Footer top CTA bar — small */
.footer-cta-mark .logo-wordmark-img { height: 32px; width: auto; }

@media (max-width: 768px) {
  .logo-wordmark-img { height: 32px; }
  .footer-brand .logo-wordmark-img { height: 38px; }
}
@media (max-width: 480px) {
  .logo-wordmark-img { height: 28px; }
}

/* ─── Legacy logo-mark / logo-text / logo-suffix kept for the chat widget,
       which still renders the B-only mark inside a circular avatar. They
       are no longer used on header/footer logos. ─── */
.logo-mark {
  width: 38px;
  height: 38px;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  filter: drop-shadow(0 0 8px rgba(34, 211, 238, 0.25));
  transition: filter 0.3s ease;
}

.logo-mark img {
  width: 100%;
  height: 100%;
  object-fit: contain;
  display: block;
}

.logo:hover .logo-mark {
  filter: drop-shadow(0 0 14px rgba(34, 211, 238, 0.5));
}

.logo-text { color: white; }

/* Real logo image (replaces .logo-mark when used) */
.logo-img {
  width: 36px;
  height: 36px;
  border-radius: 8px;
  object-fit: cover;
  flex-shrink: 0;
  /* Subtle glow that matches the brand */
  box-shadow:
    0 0 0 1px rgba(255, 255, 255, 0.06),
    0 4px 14px rgba(34, 211, 238, 0.18),
    0 0 24px rgba(212, 175, 55, 0.08);
  transition: box-shadow 0.3s ease, transform 0.3s ease;
}

.logo:hover .logo-img {
  box-shadow:
    0 0 0 1px rgba(255, 255, 255, 0.12),
    0 4px 20px rgba(34, 211, 238, 0.35),
    0 0 30px rgba(212, 175, 55, 0.18);
  transform: scale(1.04);
}

.logo-suffix {
  color: var(--text-secondary);
  font-weight: 400;
  font-size: 13px;
  letter-spacing: 1.5px;
  margin-left: 4px;
  text-transform: uppercase;
}

/* -------------------- Nav -------------------- */
.main-nav {
  display: flex;
  align-items: center;
  gap: 36px;
  font-size: 14px;
}

.nav-item { position: relative; }

.nav-link {
  color: var(--text-secondary);
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 8px 0;
  transition: color 0.2s;
  cursor: pointer;
}

.nav-link:hover, .nav-link.active { color: white; }

.nav-link svg {
  transition: transform 0.2s;
  width: 12px;
  height: 12px;
}

.nav-item.has-dropdown:hover .nav-link svg { transform: rotate(180deg); }

.nav-link.active::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  height: 1px;
  background: linear-gradient(90deg, var(--gold), var(--cyan));
}

/* -------------------- Mega menu / dropdown -------------------- */
.mega-menu {
  position: absolute;
  top: calc(100% + 8px);
  left: 50%;
  transform: translateX(-50%) translateY(-8px);
  width: 720px;
  background: rgba(8, 10, 14, 0.96);
  backdrop-filter: blur(24px);
  -webkit-backdrop-filter: blur(24px);
  border: 1px solid var(--border-gold);
  border-radius: var(--radius-lg);
  padding: 28px;
  opacity: 0;
  pointer-events: none;
  transition: all 0.25s ease;
  box-shadow:
    0 20px 60px rgba(0, 0, 0, 0.5),
    0 0 80px rgba(212, 175, 55, 0.1);
}

.mega-menu::before {
  content: '';
  position: absolute;
  top: -1px;
  left: 0;
  right: 0;
  height: 1px;
  background: linear-gradient(90deg, transparent, var(--gold), var(--cyan), transparent);
}

/* Invisible hover bridge — keeps :hover continuous between nav link and dropdown.
   Without this, the 8px gap above the menu causes the dropdown to close
   before the cursor reaches it. */
.mega-menu::after {
  content: '';
  position: absolute;
  top: -16px;
  left: -8px;
  right: -8px;
  height: 18px;
  background: transparent;
}

.nav-item.has-dropdown:hover .mega-menu,
.nav-item.has-dropdown:focus-within .mega-menu {
  opacity: 1;
  pointer-events: auto;
  transform: translateX(-50%) translateY(0);
}

.mega-grid {
  display: grid;
  grid-template-columns: 240px 1fr;
  gap: 28px;
}

.mega-intro h4 {
  font-family: var(--font-display);
  font-size: 18px;
  font-weight: 700;
  margin-bottom: 10px;
  color: white;
}

.mega-intro p {
  font-size: 13px;
  color: var(--text-secondary);
  line-height: 1.55;
  margin-bottom: 20px;
}

.mega-cta {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: 13px;
  font-weight: 500;
  color: var(--gold);
  padding: 8px 14px;
  border: 1px solid var(--border-gold);
  border-radius: var(--radius-sm);
  transition: all 0.2s;
}

.mega-cta:hover {
  background: rgba(212, 175, 55, 0.08);
  border-color: var(--gold);
}

.mega-links {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 4px;
}

.mega-link {
  display: block;
  padding: 12px 14px;
  border-radius: var(--radius-sm);
  transition: background 0.15s;
  border: 1px solid transparent;
}

.mega-link:hover {
  background: rgba(255, 255, 255, 0.04);
  border-color: var(--border);
}

.mega-link-title {
  font-size: 13px;
  font-weight: 600;
  color: white;
  margin-bottom: 3px;
  display: flex;
  align-items: center;
  gap: 6px;
}

.mega-link-title svg {
  opacity: 0;
  transition: all 0.2s;
  transform: translateX(-4px);
}

.mega-link:hover .mega-link-title svg {
  opacity: 1;
  transform: translateX(0);
  color: var(--gold);
}

.mega-link-desc {
  font-size: 12px;
  color: var(--text-tertiary);
  line-height: 1.5;
}

.mega-foot {
  margin-top: 24px;
  padding-top: 20px;
  border-top: 1px solid var(--border);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  font-size: 13px;
  color: var(--text-tertiary);
}

.mega-foot-cta {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  color: var(--gold);
  font-weight: 500;
  transition: gap 0.2s;
}

.mega-foot-cta:hover { gap: 10px; }

/* -------------------- Apply button -------------------- */
.apply-btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 9px 20px;
  background: transparent;
  border: 1px solid rgba(34, 211, 238, 0.45);
  color: #67e8f9;
  border-radius: var(--radius-sm);
  font-size: 13px;
  font-weight: 600;
  letter-spacing: 0.3px;
  transition: all 0.2s;
  white-space: nowrap;
}

.apply-btn:hover {
  background: linear-gradient(135deg, rgba(30, 99, 255, 0.10), rgba(16, 229, 153, 0.10));
  border-color: rgba(34, 211, 238, 0.85);
  color: #ffffff;
  box-shadow: 0 0 24px rgba(34, 211, 238, 0.30);
}

/* ── LeadVolume "Media Partner" badge in header right side ─── */
.header-leadvolume {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 6px 14px 6px 12px;
  border-radius: 999px;
  border: 1px solid var(--border);
  background: rgba(255, 255, 255, 0.025);
  text-decoration: none;
  transition: all 0.25s ease;
  flex-shrink: 0;
}
.header-leadvolume:hover {
  background: rgba(34, 211, 238, 0.06);
  border-color: rgba(34, 211, 238, 0.35);
  transform: translateY(-1px);
}
.header-leadvolume-label {
  font-family: var(--font-mono);
  font-size: 9.5px;
  letter-spacing: 1.8px;
  text-transform: uppercase;
  color: var(--text-muted);
  white-space: nowrap;
  transition: color 0.25s ease;
}
.header-leadvolume:hover .header-leadvolume-label { color: var(--text-secondary); }
.header-leadvolume img {
  height: 22px;
  width: auto;
  display: block;
  filter: brightness(0.92);
  transition: filter 0.25s ease;
}
.header-leadvolume:hover img { filter: brightness(1.10); }

@media (max-width: 1180px) {
  .header-leadvolume-label { display: none; }
}
@media (max-width: 720px) {
  .header-leadvolume { display: none; }
}

/* Mobile menu toggle */
.menu-toggle {
  display: none;
  background: transparent;
  border: none;
  color: white;
  width: 40px;
  height: 40px;
  align-items: center;
  justify-content: center;
}

@media (max-width: 1024px) {
  .main-nav { display: none; }
  .menu-toggle { display: flex; }
  .apply-btn { padding: 8px 14px; font-size: 12px; }
  .logo-suffix { display: none; }
}

/* Mobile drawer */
.mobile-menu {
  position: fixed;
  top: 0; right: 0;
  width: min(380px, 90vw);
  height: 100vh;
  background: var(--bg-mid);
  border-left: 1px solid var(--border-gold);
  padding: 80px 32px 32px;
  z-index: 99;
  transform: translateX(100%);
  transition: transform 0.3s ease;
  overflow-y: auto;
}

.mobile-menu.open { transform: translateX(0); }

.mobile-menu a {
  display: block;
  padding: 14px 0;
  font-size: 16px;
  color: var(--text-secondary);
  border-bottom: 1px solid var(--border);
  transition: color 0.2s;
}

.mobile-menu a:hover { color: var(--gold); }

.mobile-menu a small {
  display: block;
  margin-top: 4px;
  font-size: 12px;
  color: var(--text-muted);
  font-weight: 400;
}

.mobile-menu .apply-btn {
  margin-top: 24px;
  width: 100%;
  justify-content: center;
}

.mobile-overlay {
  position: fixed;
  inset: 0;
  background: rgba(0, 0, 0, 0.6);
  backdrop-filter: blur(4px);
  z-index: 98;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.3s;
}

.mobile-overlay.open { opacity: 1; pointer-events: auto; }

/* -------------------- Hero -------------------- */
.hero {
  padding: 160px 0 80px;
  text-align: center;
  position: relative;
}

.hero-eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 6px 16px;
  border: 1px solid var(--border-gold);
  border-radius: 100px;
  background: rgba(212, 175, 55, 0.04);
  backdrop-filter: blur(10px);
  font-family: var(--font-mono);
  font-size: 11px;
  color: var(--gold-soft);
  letter-spacing: 2px;
  text-transform: uppercase;
  margin-bottom: 32px;
}

.hero-eyebrow::before {
  content: '';
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--cyan);
  box-shadow: 0 0 10px var(--cyan);
  animation: pulse-dot 2s ease-in-out infinite;
}

@keyframes pulse-dot {
  0%, 100% { box-shadow: 0 0 10px var(--cyan); }
  50% { box-shadow: 0 0 20px var(--cyan), 0 0 30px var(--cyan); }
}

.hero h1 {
  font-size: clamp(40px, 6vw, 76px);
  font-weight: 800;
  line-height: 1.04;
  letter-spacing: -0.025em;
  max-width: 1000px;
  margin: 0 auto 24px;
}

.hero h1 .accent {
  background: linear-gradient(135deg, var(--gold-soft) 0%, var(--cyan) 100%);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
  display: inline-block;
}

.hero-sub {
  font-size: 19px;
  line-height: 1.6;
  color: var(--text-secondary);
  max-width: 720px;
  margin: 0 auto 16px;
}

.hero-supporting {
  font-size: 15px;
  line-height: 1.6;
  color: var(--text-tertiary);
  max-width: 720px;
  margin: 0 auto 40px;
}

/* Video frame */
/* ─────────────────────────────────────────────────────────────────────
   Hero video — click-to-expand theater mode
   - .video-poster: the inline 16:9 button on the page
   - .video-theater: full-viewport overlay shown on click
   ───────────────────────────────────────────────────────────────────── */

/* Poster — inline 16:9 clickable card */
.video-poster {
  position: relative;
  width: 100%;
  max-width: 960px;
  aspect-ratio: 16 / 9;
  margin: 24px auto 48px;
  border-radius: var(--radius-lg);
  overflow: hidden;
  border: 1px solid rgba(34, 211, 238, 0.22);
  background: rgba(3, 5, 8, 0.6);
  box-shadow:
    0 0 80px rgba(34, 211, 238, 0.15),
    0 0 0 1px rgba(255, 255, 255, 0.04) inset,
    0 20px 60px rgba(0, 0, 0, 0.5);
  cursor: pointer;
  padding: 0;
  display: block;
  transition: transform 0.35s cubic-bezier(.22,.9,.32,1.18),
              box-shadow 0.35s ease,
              border-color 0.35s ease;
}
.video-poster::before {
  content: '';
  position: absolute;
  top: 0; left: 0; right: 0;
  height: 1px;
  background: linear-gradient(90deg, transparent, #1e63ff, #22d3ee, #10e599, transparent);
  z-index: 3;
}
.video-poster:hover,
.video-poster:focus-visible {
  transform: translateY(-2px);
  border-color: rgba(34, 211, 238, 0.55);
  box-shadow:
    0 0 100px rgba(34, 211, 238, 0.25),
    0 0 0 1px rgba(255, 255, 255, 0.06) inset,
    0 24px 70px rgba(0, 0, 0, 0.55);
  outline: none;
}

.video-poster-img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  filter: brightness(0.78) saturate(1.05);
  transition: filter 0.35s ease, transform 4s ease;
  z-index: 0;
}
.video-poster:hover .video-poster-img {
  filter: brightness(0.92) saturate(1.10);
  transform: scale(1.025);
}

/* Dark gradient overlay for legibility of the play button + text */
.video-poster-overlay {
  position: absolute;
  inset: 0;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 18px;
  background:
    radial-gradient(ellipse at center, rgba(3, 5, 8, 0.10) 0%, rgba(3, 5, 8, 0.55) 70%, rgba(3, 5, 8, 0.78) 100%);
  z-index: 1;
  transition: background 0.35s ease;
}
.video-poster:hover .video-poster-overlay {
  background:
    radial-gradient(ellipse at center, rgba(3, 5, 8, 0.06) 0%, rgba(3, 5, 8, 0.40) 70%, rgba(3, 5, 8, 0.65) 100%);
}

.video-poster-play {
  width: 84px;
  height: 84px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  background:
    radial-gradient(circle at 30% 25%, rgba(34, 211, 238, 0.30) 0%, transparent 60%),
    linear-gradient(135deg, #050a1a 0%, #0a1428 100%);
  border: 2px solid rgba(34, 211, 238, 0.7);
  color: #22d3ee;
  box-shadow:
    0 0 0 1px rgba(255, 255, 255, 0.10) inset,
    0 0 32px rgba(34, 211, 238, 0.40),
    0 8px 32px rgba(0, 0, 0, 0.5);
  transition: transform 0.35s cubic-bezier(.22,.9,.32,1.18),
              box-shadow 0.35s ease,
              color 0.25s ease;
}
.video-poster-play svg {
  width: 36px;
  height: 36px;
  margin-left: 4px;  /* visual centering of the triangle */
  filter: drop-shadow(0 0 6px rgba(34, 211, 238, 0.5));
}
.video-poster:hover .video-poster-play {
  transform: scale(1.08);
  color: #ffffff;
  box-shadow:
    0 0 0 1px rgba(255, 255, 255, 0.18) inset,
    0 0 48px rgba(34, 211, 238, 0.65),
    0 0 80px rgba(16, 229, 153, 0.25),
    0 8px 32px rgba(0, 0, 0, 0.5);
}

.video-poster-cta {
  font-family: var(--font-mono);
  font-size: 12px;
  letter-spacing: 2.5px;
  text-transform: uppercase;
  color: rgba(255, 255, 255, 0.85);
  padding: 6px 14px;
  border-radius: 999px;
  background: rgba(0, 0, 0, 0.25);
  backdrop-filter: blur(6px);
  -webkit-backdrop-filter: blur(6px);
  border: 1px solid rgba(255, 255, 255, 0.08);
  transition: color 0.25s ease, border-color 0.25s ease;
}
.video-poster:hover .video-poster-cta {
  color: #ffffff;
  border-color: rgba(34, 211, 238, 0.4);
}

@media (max-width: 600px) {
  .video-poster-play { width: 68px; height: 68px; }
  .video-poster-play svg { width: 28px; height: 28px; }
  .video-poster-cta { font-size: 10.5px; letter-spacing: 1.8px; padding: 5px 12px; }
}

/* ──────────────────────────────────────────────────────
   Theater mode overlay
   ────────────────────────────────────────────────────── */
.video-theater {
  position: fixed;
  inset: 0;
  z-index: 9000;
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.28s ease;
}
.video-theater[hidden] { display: none !important; }
.video-theater.is-open {
  opacity: 1;
  pointer-events: auto;
}

.video-theater-backdrop {
  position: absolute;
  inset: 0;
  background:
    radial-gradient(ellipse at center, rgba(8, 12, 20, 0.92) 0%, rgba(0, 0, 0, 0.96) 100%);
  backdrop-filter: blur(18px);
  -webkit-backdrop-filter: blur(18px);
  cursor: pointer;
}

.video-theater-stage {
  position: relative;
  width: min(92vw, 1280px);
  max-height: 80vh;
  aspect-ratio: 16 / 9;
  border-radius: var(--radius-lg);
  overflow: hidden;
  background: #000;
  box-shadow:
    0 0 0 1px rgba(34, 211, 238, 0.35),
    0 0 80px rgba(34, 211, 238, 0.30),
    0 30px 80px rgba(0, 0, 0, 0.7);
  transform: scale(0.94);
  transition: transform 0.32s cubic-bezier(.22,.9,.32,1.18);
  z-index: 1;
}
.video-theater.is-open .video-theater-stage {
  transform: scale(1);
}
.video-theater-stage::before {
  content: '';
  position: absolute;
  top: 0; left: 0; right: 0;
  height: 1px;
  background: linear-gradient(90deg, transparent, #1e63ff, #22d3ee, #10e599, transparent);
  z-index: 2;
  pointer-events: none;
}

.video-theater-frame {
  position: absolute;
  inset: 0;
}
.video-theater-frame iframe {
  width: 100%;
  height: 100%;
  border: 0;
  display: block;
}

/* Close button — top-right, outside the frame */
.video-theater-close {
  position: absolute;
  top: 24px;
  right: 24px;
  width: 44px;
  height: 44px;
  border-radius: 50%;
  border: 1px solid rgba(255, 255, 255, 0.18);
  background: rgba(255, 255, 255, 0.05);
  color: rgba(255, 255, 255, 0.85);
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  z-index: 2;
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  transition: all 0.2s ease;
}
.video-theater-close svg { width: 20px; height: 20px; }
.video-theater-close:hover {
  background: rgba(34, 211, 238, 0.15);
  border-color: rgba(34, 211, 238, 0.55);
  color: #ffffff;
  transform: rotate(90deg);
}
.video-theater-close:focus-visible {
  outline: 2px solid #22d3ee;
  outline-offset: 4px;
}

/* "Press Esc to close" hint — bottom center, gentle fade */
.video-theater-hint {
  position: absolute;
  bottom: 28px;
  left: 50%;
  transform: translateX(-50%);
  font-family: var(--font-mono);
  font-size: 12px;
  letter-spacing: 1.5px;
  text-transform: uppercase;
  color: rgba(255, 255, 255, 0.55);
  z-index: 2;
  display: flex;
  align-items: center;
  gap: 8px;
  pointer-events: none;
  opacity: 0;
  transition: opacity 0.4s ease 0.6s;  /* delayed fade-in after open */
}
.video-theater.is-open .video-theater-hint { opacity: 1; }

.video-theater-hint kbd {
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: 0.5px;
  padding: 3px 8px;
  border-radius: 5px;
  background: rgba(255, 255, 255, 0.10);
  border: 1px solid rgba(255, 255, 255, 0.20);
  color: #ffffff;
  text-transform: uppercase;
  box-shadow:
    0 1px 0 rgba(255, 255, 255, 0.10) inset,
    0 1px 2px rgba(0, 0, 0, 0.3);
}

@media (max-width: 600px) {
  .video-theater-close { top: 16px; right: 16px; width: 38px; height: 38px; }
  .video-theater-close svg { width: 18px; height: 18px; }
  .video-theater-hint {
    bottom: 18px;
    font-size: 10.5px;
    letter-spacing: 1.2px;
  }
  /* Mobile: replace "Esc" wording with "Tap outside to close" via CSS */
  .video-theater-hint { font-size: 10px; }
}

/* Honour user preference for reduced motion */
@media (prefers-reduced-motion: reduce) {
  .video-theater,
  .video-theater-stage,
  .video-poster,
  .video-poster-img,
  .video-poster-play {
    transition: none !important;
  }
}

/* -------------------- Buttons -------------------- */
.cta-row {
  display: flex;
  gap: 16px;
  flex-wrap: wrap;
  justify-content: center;
}

.btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 15px 30px;
  border-radius: var(--radius-md);
  font-size: 15px;
  font-weight: 600;
  letter-spacing: 0.2px;
  cursor: pointer;
  transition: all 0.2s ease;
  white-space: nowrap;
  border: none;
  position: relative;
}

/* Primary — vivid BWiGA gradient on a dark text-anchor for legibility.
   Text is deep navy (matches site bg), making cyan/green/blue gradient pop.
   Hover lifts the gradient stops slightly + adds a glow ring. */
.btn-primary {
  background: linear-gradient(135deg, #1e63ff 0%, #22d3ee 55%, #10e599 100%);
  color: #00111f;
  font-weight: 700;
  box-shadow:
    0 0 0 1px rgba(255, 255, 255, 0.18) inset,
    0 4px 14px rgba(34, 211, 238, 0.25);
}

.btn-primary:hover {
  background: linear-gradient(135deg, #2a72ff 0%, #41dcf2 55%, #2af0a8 100%);
  box-shadow:
    0 0 0 1px rgba(255, 255, 255, 0.28) inset,
    0 0 32px rgba(34, 211, 238, 0.55),
    0 0 60px rgba(16, 229, 153, 0.20);
  transform: translateY(-1px);
  color: #00111f;
}

/* Secondary — subtle dark surface, BWiGA cyan border on hover */
.btn-secondary {
  background: rgba(255, 255, 255, 0.04);
  color: #ffffff;
  border: 1px solid var(--border-strong);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
}

.btn-secondary:hover {
  background: linear-gradient(135deg, rgba(30, 99, 255, 0.12), rgba(16, 229, 153, 0.10));
  border-color: rgba(34, 211, 238, 0.55);
  color: #ffffff;
  box-shadow: 0 0 24px rgba(34, 211, 238, 0.18);
}

/* Ghost — transparent with cyan accent */
.btn-ghost {
  background: transparent;
  color: #67e8f9;
  border: 1px solid rgba(34, 211, 238, 0.30);
}

.btn-ghost:hover {
  background: rgba(34, 211, 238, 0.08);
  border-color: rgba(34, 211, 238, 0.65);
  color: #ffffff;
}

.btn svg { width: 16px; height: 16px; }
.btn-primary svg { stroke: #00111f; }
.btn-secondary svg, .btn-ghost svg { stroke: currentColor; }

/* -------------------- Pillar grid (Section 2) -------------------- */
.pillar-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: 20px;
  margin-top: 48px;
}

.pillar-card {
  padding: 28px;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  transition: all 0.3s ease;
  position: relative;
  overflow: hidden;
}

.pillar-card::before {
  content: '';
  position: absolute;
  inset: 0;
  background: radial-gradient(circle at top right, rgba(212, 175, 55, 0.08), transparent 60%);
  opacity: 0;
  transition: opacity 0.3s;
}

.pillar-card:hover {
  border-color: var(--border-gold);
  transform: translateY(-3px);
}

.pillar-card:hover::before { opacity: 1; }

.pillar-icon {
  width: 44px;
  height: 44px;
  border-radius: 10px;
  background: linear-gradient(135deg, rgba(212, 175, 55, 0.15), rgba(34, 211, 238, 0.1));
  border: 1px solid var(--border-gold);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--gold);
  margin-bottom: 20px;
  position: relative;
  z-index: 1;
}

.pillar-icon svg { width: 22px; height: 22px; }

.pillar-card h3 {
  font-size: 18px;
  margin-bottom: 10px;
  position: relative;
  z-index: 1;
}

.pillar-card p {
  font-size: 14px;
  color: var(--text-secondary);
  line-height: 1.6;
  position: relative;
  z-index: 1;
}

/* -------------------- Timeline (Section 3) -------------------- */
.timeline {
  margin-top: 64px;
  position: relative;
}

.timeline-track {
  display: grid;
  grid-template-columns: repeat(7, 1fr);
  gap: 16px;
  position: relative;
}

.timeline-track::before {
  content: '';
  position: absolute;
  top: 36px;
  left: 5%;
  right: 5%;
  height: 1px;
  background: linear-gradient(90deg, var(--gold), var(--cyan), var(--gold));
  opacity: 0.3;
}

.timeline-step {
  text-align: center;
  position: relative;
}

.timeline-num {
  width: 72px;
  height: 72px;
  border-radius: 50%;
  background: var(--bg-elev);
  border: 1px solid var(--border-gold);
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto 20px;
  font-family: var(--font-mono);
  font-size: 14px;
  color: var(--gold);
  font-weight: 600;
  position: relative;
  z-index: 2;
  transition: all 0.3s;
}

.timeline-step:hover .timeline-num {
  background: rgba(212, 175, 55, 0.1);
  box-shadow: 0 0 24px rgba(212, 175, 55, 0.3);
  transform: scale(1.05);
}

.timeline-num svg {
  width: 24px;
  height: 24px;
}

.timeline-step h4 {
  font-family: var(--font-display);
  font-size: 15px;
  margin-bottom: 8px;
  color: white;
}

.timeline-step p {
  font-size: 12px;
  color: var(--text-tertiary);
  line-height: 1.5;
}

@media (max-width: 1024px) {
  .timeline-track {
    grid-template-columns: 1fr;
    gap: 36px;
    max-width: 540px;
    margin: 0 auto;
  }
  .timeline-track::before {
    top: 0;
    bottom: 0;
    left: 36px;
    right: auto;
    width: 1px;
    height: auto;
    background: linear-gradient(180deg, var(--gold), var(--cyan), var(--gold));
  }
  .timeline-step {
    text-align: left;
    display: grid;
    grid-template-columns: 72px 1fr;
    column-gap: 20px;
    row-gap: 0;
    align-items: start;
  }
  .timeline-num {
    grid-column: 1;
    grid-row: 1 / span 2;
    margin: 0;
  }
  .timeline-step h4 {
    grid-column: 2;
    grid-row: 1;
    margin: 18px 0 6px;
    font-size: 16px;
  }
  .timeline-step p {
    grid-column: 2;
    grid-row: 2;
    font-size: 14px;
    margin: 0;
  }
}

/* Tighter mobile layout — smaller circle, tighter gap, line stays centered on circle */
@media (max-width: 560px) {
  .timeline-track {
    gap: 28px;
  }
  .timeline-track::before {
    left: 28px;
  }
  .timeline-num {
    width: 56px;
    height: 56px;
    font-size: 12px;
  }
  .timeline-step {
    grid-template-columns: 56px 1fr;
    column-gap: 16px;
  }
  .timeline-step h4 {
    margin: 12px 0 4px;
    font-size: 15px;
    line-height: 1.3;
  }
  .timeline-step p {
    font-size: 13px;
    line-height: 1.55;
  }
}

/* -------------------- Program cards (Section 4) -------------------- */
.program-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
  gap: 20px;
  margin-top: 48px;
}

.program-card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 32px;
  transition: all 0.3s;
  position: relative;
  overflow: hidden;
}

.program-card::after {
  content: '';
  position: absolute;
  top: 0; left: 0;
  width: 60px;
  height: 1px;
  background: linear-gradient(90deg, var(--gold), transparent);
  transition: width 0.3s;
}

.program-card:hover {
  border-color: var(--border-gold);
  transform: translateY(-3px);
}

.program-card:hover::after { width: 100%; }

.program-num {
  font-family: var(--font-mono);
  font-size: 12px;
  color: var(--gold-soft);
  letter-spacing: 2px;
  margin-bottom: 12px;
}

.program-card h3 { margin-bottom: 14px; }

.program-card p {
  font-size: 14px;
  color: var(--text-secondary);
  line-height: 1.65;
  margin-bottom: 20px;
}

.program-card ul {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 6px 12px;
}

.program-card li {
  font-size: 13px;
  color: var(--text-tertiary);
  display: flex;
  align-items: center;
  gap: 6px;
}

.program-card li::before {
  content: '';
  width: 4px;
  height: 4px;
  border-radius: 50%;
  background: var(--gold);
  flex-shrink: 0;
}

@media (max-width: 480px) {
  .program-card ul { grid-template-columns: 1fr; }
}

/* -------------------- Criteria grid (Section 5) -------------------- */
.criteria-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 16px;
  margin-top: 48px;
}

.criteria-card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  padding: 24px;
  transition: all 0.2s;
}

.criteria-card:hover {
  background: var(--surface-hover);
  border-color: var(--border-strong);
}

.criteria-icon {
  width: 36px;
  height: 36px;
  border-radius: 8px;
  background: rgba(212, 175, 55, 0.08);
  border: 1px solid var(--border-gold);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--gold);
  margin-bottom: 16px;
}

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

.criteria-card h4 {
  font-family: var(--font-display);
  font-size: 16px;
  font-weight: 600;
  margin-bottom: 8px;
}

.criteria-card p {
  font-size: 13px;
  color: var(--text-tertiary);
  line-height: 1.55;
}

/* -------------------- Demo Day grid (Section 6) -------------------- */
.demo-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 20px;
  margin-top: 48px;
}

.demo-card {
  padding: 32px;
  background: linear-gradient(135deg, rgba(212, 175, 55, 0.04) 0%, rgba(255, 255, 255, 0.02) 100%);
  border: 1px solid var(--border-gold);
  border-radius: var(--radius-lg);
  transition: all 0.3s;
}

.demo-card:hover {
  border-color: var(--gold);
  background: linear-gradient(135deg, rgba(212, 175, 55, 0.08) 0%, rgba(255, 255, 255, 0.03) 100%);
}

.demo-card-num {
  font-family: var(--font-mono);
  font-size: 11px;
  color: var(--gold);
  letter-spacing: 2px;
  margin-bottom: 8px;
}

.demo-card h4 {
  font-family: var(--font-display);
  font-size: 17px;
  font-weight: 700;
  margin-bottom: 10px;
}

.demo-card p {
  font-size: 14px;
  color: var(--text-secondary);
  line-height: 1.6;
}

/* -------------------- Thesis blocks (Section 7) -------------------- */
.thesis-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 20px;
  margin-top: 48px;
}

.thesis-card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  padding: 28px;
  position: relative;
}

.thesis-card-num {
  font-family: var(--font-display);
  font-size: 36px;
  font-weight: 800;
  background: linear-gradient(135deg, var(--gold) 0%, var(--cyan) 100%);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
  line-height: 1;
  margin-bottom: 16px;
}

.thesis-card h4 {
  font-family: var(--font-display);
  font-size: 16px;
  margin-bottom: 10px;
  line-height: 1.3;
}

.thesis-card p {
  font-size: 13px;
  color: var(--text-tertiary);
  line-height: 1.6;
}

/* -------------------- FAQ (Section 8) -------------------- */
.faq-tabs {
  display: flex;
  gap: 4px;
  margin: 48px 0 24px;
  padding: 4px;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  flex-wrap: wrap;
}

.faq-tab {
  flex: 1;
  min-width: 160px;
  padding: 12px 18px;
  background: transparent;
  border: none;
  color: var(--text-tertiary);
  font-size: 14px;
  font-weight: 500;
  border-radius: var(--radius-sm);
  cursor: pointer;
  transition: all 0.2s;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  font-family: inherit;
}

.faq-tab:hover { color: white; }

.faq-tab.active {
  background: rgba(212, 175, 55, 0.1);
  color: var(--gold);
  border: 1px solid var(--border-gold);
}

.faq-list { display: none; }
.faq-list.active { display: block; }

.faq-item {
  border-bottom: 1px solid var(--border);
}

.faq-question {
  width: 100%;
  background: transparent;
  border: none;
  color: white;
  text-align: left;
  font-size: 16px;
  font-weight: 500;
  padding: 24px 48px 24px 0;
  cursor: pointer;
  position: relative;
  font-family: inherit;
  transition: color 0.2s;
}

.faq-question:hover { color: var(--gold); }

.faq-question::after {
  content: '+';
  position: absolute;
  right: 0;
  top: 50%;
  transform: translateY(-50%);
  font-size: 24px;
  color: var(--gold);
  transition: transform 0.3s;
  font-weight: 300;
}

.faq-item.open .faq-question::after { transform: translateY(-50%) rotate(45deg); }

.faq-answer {
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.3s ease, padding 0.3s ease;
  font-size: 15px;
  color: var(--text-secondary);
  line-height: 1.7;
}

.faq-item.open .faq-answer {
  max-height: 1200px;
  padding: 0 0 24px;
}

.faq-answer p { margin-bottom: 12px; }
.faq-answer p:last-child { margin-bottom: 0; }

/* -------------------- Strong line / quote bar -------------------- */
.strong-line {
  text-align: center;
  font-family: var(--font-display);
  font-size: clamp(20px, 3vw, 28px);
  font-weight: 500;
  color: white;
  margin: 64px auto 0;
  padding: 32px;
  border-top: 1px solid var(--border-gold);
  border-bottom: 1px solid var(--border-gold);
  max-width: 900px;
  background: linear-gradient(180deg, rgba(212, 175, 55, 0.04), transparent, rgba(212, 175, 55, 0.04));
  line-height: 1.4;
  letter-spacing: -0.01em;
}

.strong-line::before, .strong-line::after {
  content: '"';
  font-family: var(--font-display);
  font-size: 48px;
  color: var(--gold);
  line-height: 0;
  position: relative;
  top: 12px;
  opacity: 0.5;
}

.strong-line::before { margin-right: 8px; }
.strong-line::after { margin-left: 8px; }

/* -------------------- Final CTA -------------------- */
.final-cta {
  position: relative;
  padding: 140px 0;
  text-align: center;
}

.final-cta::before {
  content: '';
  position: absolute;
  inset: 0;
  background: radial-gradient(ellipse at center, rgba(212, 175, 55, 0.08) 0%, transparent 60%);
  pointer-events: none;
}

.final-cta h2 {
  font-size: clamp(36px, 5vw, 64px);
  margin-bottom: 16px;
  background: linear-gradient(135deg, white 0%, var(--gold-soft) 100%);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

.final-cta p {
  font-size: 18px;
  color: var(--text-secondary);
  max-width: 640px;
  margin: 0 auto 40px;
  line-height: 1.6;
}

/* -------------------- Footer -------------------- */
/* -------------------- Footer (BWiGA spec) -------------------- */
.site-footer {
  position: relative;
  z-index: 1;
  background: rgba(3, 5, 8, 0.6);
  border-top: 1px solid var(--border);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
}

/* ── 1. Top CTA bar ───────────────────────────────────────── */
.footer-cta-bar {
  position: relative;
  padding: 44px 0;
  border-bottom: 1px solid var(--border);
  background:
    linear-gradient(90deg,
      rgba(212, 175, 55, 0.04) 0%,
      rgba(34, 211, 238, 0.04) 50%,
      rgba(16, 185, 129, 0.04) 100%);
}
.footer-cta-bar::before {
  content: '';
  position: absolute; left: 0; right: 0; top: 0;
  height: 1px;
  background: linear-gradient(90deg, transparent, rgba(212, 175, 55, 0.3), rgba(34, 211, 238, 0.3), transparent);
}
.footer-cta-inner {
  display: grid;
  grid-template-columns: auto 1fr auto;
  gap: 32px;
  align-items: center;
}
.footer-cta-mark {
  width: 56px; height: 56px;
  display: grid; place-items: center;
  border-radius: 14px;
  background: rgba(255, 255, 255, 0.03);
  border: 1px solid var(--border);
}
.footer-cta-mark img { width: 36px; height: 36px; }
.footer-cta-text h3 {
  font-family: var(--font-display);
  font-size: 22px; font-weight: 700;
  margin-bottom: 6px;
  letter-spacing: -0.01em;
}
.footer-cta-text p {
  font-size: 14px; color: var(--text-tertiary);
  line-height: 1.55; margin: 0;
}
.footer-cta-actions {
  display: flex; gap: 12px; flex-wrap: wrap;
}
@media (max-width: 900px) {
  .footer-cta-inner { grid-template-columns: 1fr; text-align: left; }
  .footer-cta-actions { width: 100%; }
  .footer-cta-actions .btn { flex: 1; justify-content: center; min-width: 140px; }
}

/* ── 2. Main 5-column footer ──────────────────────────────── */
.footer-main { padding: 64px 0 40px; }
.footer-grid {
  display: grid;
  grid-template-columns: 1.6fr 1fr 1fr 1fr 1fr;
  gap: 40px;
  margin-bottom: 48px;
}
.footer-brand .logo { margin-bottom: 16px; }
.footer-brand p {
  font-size: 14px; color: var(--text-tertiary);
  line-height: 1.7; margin: 0 0 14px;
  max-width: 320px;
}
.footer-strap {
  font-family: var(--font-mono);
  font-size: 11px; color: var(--gold-soft);
  letter-spacing: 2px; text-transform: uppercase;
  margin-bottom: 8px;
}
.footer-strap-2 {
  font-size: 13px; color: var(--text-secondary);
  font-style: italic;
  margin-bottom: 20px;
}

.footer-col h5 {
  font-family: var(--font-mono);
  font-size: 11px;
  color: var(--gold-soft);
  letter-spacing: 2px;
  text-transform: uppercase;
  margin-bottom: 18px;
}
.footer-col ul li { margin-bottom: 10px; }
.footer-col a {
  font-size: 14px;
  color: var(--text-secondary);
  transition: color 0.2s;
  display: inline-flex; align-items: center; gap: 6px;
}
.footer-col a:hover { color: var(--gold); }
.footer-col .pill {
  font-size: 9.5px;
  padding: 2px 7px;
  border: 1px solid var(--border);
  border-radius: 999px;
  color: var(--text-muted);
  letter-spacing: 1.5px;
  text-transform: uppercase;
  font-family: var(--font-mono);
}

/* ── 3. Social row ────────────────────────────────────────── */
.footer-social {
  display: flex; gap: 10px;
  margin-top: 6px;
}
.footer-social a {
  width: 36px; height: 36px;
  border-radius: 8px;
  border: 1px solid var(--border);
  display: flex; align-items: center; justify-content: center;
  color: var(--text-tertiary);
  transition: all 0.2s;
}
.footer-social a:hover {
  color: #67e8f9;
  border-color: rgba(34, 211, 238, 0.50);
  background: rgba(34, 211, 238, 0.06);
}
.footer-social svg { width: 16px; height: 16px; }

/* ── Footer meta row: Powered-by LeadVolume + risk note side by side ─── */
.footer-meta {
  display: grid;
  grid-template-columns: auto 1fr;
  gap: 32px;
  align-items: center;
  padding: 22px 0;
  border-top: 1px solid var(--border);
}
.footer-poweredby {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 6px;
  flex-shrink: 0;
}
.footer-poweredby-label {
  font-family: var(--font-mono);
  font-size: 10px;
  letter-spacing: 2px;
  text-transform: uppercase;
  color: var(--text-muted);
}
.footer-poweredby a {
  display: inline-block;
  filter: brightness(0.92);
  transition: filter 0.25s ease, transform 0.25s ease;
}
.footer-poweredby a:hover {
  filter: brightness(1.15);
  transform: translateY(-1px);
}
.footer-leadvolume {
  height: 32px;
  width: auto;
  display: block;
}
@media (max-width: 720px) {
  .footer-meta {
    grid-template-columns: 1fr;
    gap: 20px;
    padding: 24px 0 8px;
  }
  .footer-leadvolume { height: 28px; }
}

/* Override the standalone .footer-risk top border now that .footer-meta has one */
.footer-meta .footer-risk {
  border-top: none;
  padding: 0;
}

/* ── 4. Risk note ─────────────────────────────────────────── */
.footer-risk {
  padding: 24px 0;
  border-top: 1px solid var(--border);
  font-size: 12.5px;
  line-height: 1.65;
  color: var(--text-muted);
  max-width: 1100px;
}

/* ── 5. Legal bar ─────────────────────────────────────────── */
.footer-legal {
  padding: 22px 0 28px;
  border-top: 1px solid var(--border);
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 16px 24px;
  font-size: 12.5px;
  color: var(--text-muted);
}
.footer-legal-links {
  display: flex; flex-wrap: wrap;
  gap: 6px 22px;
}
.footer-legal-links a {
  color: var(--text-tertiary);
  transition: color 0.2s;
}
.footer-legal-links a:hover { color: var(--gold-soft); }
.footer-copyright {
  display: inline-flex; align-items: center; gap: 8px;
}
.footer-copyright svg {
  width: 14px; height: 14px;
  color: var(--gold-soft);
  opacity: 0.7;
}

@media (max-width: 1024px) {
  .footer-grid { grid-template-columns: 1.4fr 1fr 1fr 1fr; gap: 32px; }
  .footer-grid .footer-col:last-child { grid-column: span 1; }
  .footer-brand { grid-column: 1 / -1; }
}
@media (max-width: 720px) {
  .footer-grid { grid-template-columns: 1fr 1fr; gap: 32px; }
  .footer-brand { grid-column: 1 / -1; }
  .footer-legal { flex-direction: column; align-items: flex-start; text-align: left; }
  .footer-cta-bar { padding: 36px 0; }
  .footer-cta-text h3 { font-size: 18px; }
  .footer-main { padding: 48px 0 32px; }
}
@media (max-width: 480px) {
  .footer-grid { grid-template-columns: 1fr; }
}

/* -------------------- Reveal-on-scroll -------------------- */
.reveal {
  opacity: 0;
  transform: translateY(20px);
  transition: opacity 0.6s ease, transform 0.6s ease;
}

.reveal.visible {
  opacity: 1;
  transform: translateY(0);
}

/* -------------------- Selection styling -------------------- */
::selection {
  background: var(--gold);
  color: #000;
}

/* -------------------- Reduced motion -------------------- */
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
  }
  html { scroll-behavior: auto; }
}

/* =========================================================================
   POLISH LAYER — interaction, focus, hover, touch states
   ========================================================================= */

/* -------------------- Focus rings (keyboard accessibility) -------------------- */
*:focus { outline: none; }

*:focus-visible {
  outline: 2px solid var(--gold);
  outline-offset: 3px;
  border-radius: 6px;
  transition: outline-offset 0.15s ease;
}

.btn:focus-visible,
.apply-btn:focus-visible,
.mega-cta:focus-visible {
  outline-offset: 4px;
}

a:focus-visible {
  outline-offset: 4px;
}

/* -------------------- Animated nav-link underline -------------------- */
.nav-link {
  position: relative;
  padding-bottom: 6px;
}

.nav-link::after {
  content: '';
  position: absolute;
  left: 0;
  bottom: 0;
  width: 100%;
  height: 1px;
  background: linear-gradient(90deg, var(--gold), var(--cyan));
  transform: scaleX(0);
  transform-origin: right center;
  transition: transform 0.35s cubic-bezier(0.65, 0, 0.35, 1);
}

.nav-link:hover::after {
  transform: scaleX(1);
  transform-origin: left center;
}

.nav-link.active::after {
  transform: scaleX(1);
  transform-origin: left center;
}

/* -------------------- Mega-menu link refinement -------------------- */
.mega-link {
  transition: background 0.2s ease, border-color 0.2s ease, transform 0.2s ease;
}

.mega-link:hover {
  transform: translateX(2px);
}

/* -------------------- Footer link hover -------------------- */
.footer-col a {
  position: relative;
  display: inline-block;
}

.footer-col a::after {
  content: '';
  position: absolute;
  left: 0;
  bottom: -2px;
  width: 100%;
  height: 1px;
  background: var(--gold);
  transform: scaleX(0);
  transform-origin: right center;
  transition: transform 0.3s ease;
}

.footer-col a:hover::after {
  transform: scaleX(1);
  transform-origin: left center;
}

.footer-col a:hover {
  color: var(--gold);
}

/* -------------------- Card cursor-tracking glow --------------------
   Updated by JS via --mx and --my CSS custom properties.
   Soft radial glow follows cursor across the card. */
.pillar-card,
.program-card,
.criteria-card,
.demo-card,
.thesis-card {
  --mx: 50%;
  --my: 50%;
}

.pillar-card,
.program-card,
.criteria-card,
.demo-card,
.thesis-card {
  background:
    radial-gradient(
      280px circle at var(--mx) var(--my),
      rgba(212, 175, 55, 0.06),
      transparent 40%
    ),
    var(--surface);
}

/* -------------------- Refined hover/active states -------------------- */
.pillar-card,
.program-card,
.criteria-card,
.demo-card,
.thesis-card,
.btn,
.apply-btn,
.mega-link {
  will-change: transform;
}

.pillar-card:hover,
.program-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 10px 40px -10px rgba(0, 0, 0, 0.5),
              0 0 30px -10px rgba(212, 175, 55, 0.18);
}

.criteria-card:hover {
  transform: translateY(-2px);
}

.demo-card:hover {
  transform: translateY(-3px);
  box-shadow: 0 10px 32px -8px rgba(212, 175, 55, 0.15);
}

.thesis-card:hover {
  border-color: var(--border-gold);
  background: linear-gradient(135deg, rgba(212, 175, 55, 0.04) 0%, rgba(34, 211, 238, 0.03) 100%);
  transform: translateY(-2px);
}

/* Touch / press feedback */
.btn:active,
.apply-btn:active,
.mega-cta:active,
.faq-tab:active {
  transform: scale(0.97);
  transition: transform 0.1s ease;
}

.pillar-card:active,
.program-card:active,
.criteria-card:active,
.demo-card:active,
.thesis-card:active {
  transform: translateY(-1px) scale(0.995);
  transition: transform 0.1s ease;
}

/* Hero gradient text — subtle shimmer on hover */
.hero h1 .accent {
  background-size: 200% 200%;
  background-position: 0% 50%;
  transition: background-position 1.2s cubic-bezier(0.65, 0, 0.35, 1);
}

.hero h1:hover .accent {
  background-position: 100% 50%;
}

/* -------------------- FAQ tab refinement -------------------- */
.faq-tab {
  position: relative;
  overflow: hidden;
}

.faq-tab::before {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(135deg, rgba(212, 175, 55, 0.08), rgba(34, 211, 238, 0.04));
  opacity: 0;
  transition: opacity 0.2s ease;
  border-radius: inherit;
}

.faq-tab:hover::before { opacity: 1; }
.faq-tab.active::before { opacity: 0; }
.faq-tab > * { position: relative; z-index: 1; }

/* -------------------- FAQ item hover -------------------- */
.faq-item {
  transition: padding-left 0.25s ease;
}

.faq-item:hover {
  padding-left: 6px;
}

.faq-item.open {
  padding-left: 6px;
  background: linear-gradient(90deg, rgba(212, 175, 55, 0.04), transparent 60%);
}

/* -------------------- Section eyebrow accent on scroll into view -------------------- */
.section-eyebrow {
  transition: color 0.3s ease;
}

section:hover .section-eyebrow {
  color: var(--gold);
}

/* -------------------- Apply button enhanced glow -------------------- */
.apply-btn {
  position: relative;
  overflow: hidden;
  isolation: isolate;
}

.apply-btn::before {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(135deg, var(--gold), var(--cyan));
  opacity: 0;
  transition: opacity 0.3s ease;
  z-index: -1;
}

.apply-btn:hover::before { opacity: 0.12; }

/* -------------------- Logo hover -------------------- */
.logo {
  transition: transform 0.3s ease;
}

.logo:hover {
  transform: translateX(-1px);
}

.logo-text {
  background: linear-gradient(135deg, #ffffff 0%, #ffffff 55%, #67e8f9 80%, #10e599 100%);
  background-size: 200% 100%;
  background-position: 100% 0;
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
  transition: background-position 0.6s ease;
}

.logo:hover .logo-text {
  background-position: 0 0;
}

/* -------------------- Scroll progress bar -------------------- */
.scroll-progress {
  position: fixed;
  top: 0;
  left: 0;
  height: 2px;
  background: linear-gradient(90deg, var(--gold), var(--cyan));
  width: 0;
  z-index: 200;
  transition: width 0.1s linear;
  box-shadow: 0 0 10px rgba(212, 175, 55, 0.6);
  pointer-events: none;
}

/* -------------------- Mobile menu link polish -------------------- */
.mobile-menu a {
  position: relative;
  transition: color 0.2s ease, padding-left 0.25s ease, border-color 0.2s ease;
}

.mobile-menu a:hover,
.mobile-menu a:active {
  padding-left: 8px;
  color: var(--gold);
  border-color: var(--border-gold);
}

/* -------------------- Form input refinement (apply page) -------------------- */
input:focus-visible,
select:focus-visible,
textarea:focus-visible {
  outline: 2px solid var(--gold) !important;
  outline-offset: 2px;
}

/* -------------------- Strong line hover -------------------- */
.strong-line {
  transition: background 0.4s ease, border-color 0.3s ease;
}

.strong-line:hover {
  background: linear-gradient(180deg, rgba(212, 175, 55, 0.08), rgba(34, 211, 238, 0.04), rgba(212, 175, 55, 0.08));
  border-color: var(--gold);
}

/* -------------------- Better mobile tap targets -------------------- */
@media (hover: none) and (pointer: coarse) {
  /* On touch devices, make tap targets feel responsive */
  .btn, .apply-btn, .mega-cta, .faq-tab, .faq-question, .nav-link, .mobile-menu a {
    -webkit-tap-highlight-color: rgba(212, 175, 55, 0.15);
  }

  /* Disable hover-only effects that don't make sense on touch */
  .nav-link:hover::after { transform: scaleX(0); }
  .footer-col a:hover::after { transform: scaleX(0); }

  /* Buttons get a clearer pressed state instead */
  .btn:active { box-shadow: 0 0 24px rgba(212, 175, 55, 0.4); }
}

/* -------------------- Cursor on interactive elements -------------------- */
button, .btn, .apply-btn, .mega-link, .faq-question, .faq-tab, .logo, .nav-link,
.menu-toggle, [role="tab"], [role="menuitem"] {
  cursor: pointer;
}

/* -------------------- Image hover (logo mark) -------------------- */
.logo-mark img {
  transition: transform 0.4s cubic-bezier(0.34, 1.56, 0.64, 1);
}

.logo:hover .logo-mark img {
  transform: rotate(-8deg) scale(1.06);
}

/* =========================================================================
   FOR FOUNDERS — additional component styles
   Reuses existing tokens, no new colors or fonts.
   ========================================================================= */

/* -------------------- Stats row -------------------- */
.stats-row {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(140px, 1fr));
  gap: 16px;
  margin: 40px 0;
  padding: 28px;
  background: linear-gradient(135deg, rgba(212, 175, 55, 0.04), rgba(34, 211, 238, 0.02));
  border: 1px solid var(--border-gold);
  border-radius: var(--radius-lg);
}

.stat-item {
  text-align: center;
  padding: 8px 12px;
  position: relative;
}

.stat-item + .stat-item::before {
  content: '';
  position: absolute;
  left: 0;
  top: 20%;
  bottom: 20%;
  width: 1px;
  background: var(--border);
}

.stat-num {
  font-family: var(--font-display);
  font-size: clamp(24px, 3vw, 34px);
  font-weight: 800;
  background: linear-gradient(135deg, var(--gold) 0%, var(--cyan) 100%);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
  margin-bottom: 6px;
  line-height: 1;
}

.stat-label {
  font-family: var(--font-mono);
  font-size: 10px;
  letter-spacing: 1.5px;
  text-transform: uppercase;
  color: var(--text-tertiary);
}

@media (max-width: 560px) {
  .stat-item + .stat-item::before { display: none; }
}

/* -------------------- Investor types row -------------------- */
.types-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 16px;
  margin-top: 40px;
}

.type-item {
  padding: 22px;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  display: flex;
  gap: 14px;
  align-items: flex-start;
  transition: all 0.25s ease;
}

.type-item:hover {
  border-color: var(--border-gold);
  background: var(--surface-hover);
}

.type-item-icon {
  width: 38px;
  height: 38px;
  border-radius: 8px;
  background: rgba(212, 175, 55, 0.08);
  border: 1px solid var(--border-gold);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--gold);
  flex-shrink: 0;
}

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

.type-item h5 {
  font-family: var(--font-display);
  font-size: 15px;
  font-weight: 700;
  margin-bottom: 4px;
  color: white;
}

.type-item p {
  font-size: 13px;
  color: var(--text-tertiary);
  line-height: 1.5;
}

/* -------------------- Compact key benefits row -------------------- */
.compact-benefits {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
  gap: 12px;
  margin-top: 40px;
  padding: 28px 24px;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
}

.compact-item {
  text-align: center;
  padding: 12px 8px;
  border-radius: var(--radius-sm);
  transition: background 0.2s ease;
}

.compact-item:hover {
  background: rgba(212, 175, 55, 0.04);
}

.compact-icon {
  width: 36px;
  height: 36px;
  margin: 0 auto 10px;
  border-radius: 8px;
  background: rgba(212, 175, 55, 0.08);
  border: 1px solid var(--border-gold);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--gold);
}

.compact-icon svg { width: 16px; height: 16px; }

.compact-item h6 {
  font-family: var(--font-display);
  font-size: 13px;
  font-weight: 600;
  line-height: 1.35;
  color: white;
  margin: 0;
}

/* -------------------- 4 / 5 / 6-step flow tracks -------------------- */
.timeline.flow-4 .timeline-track { grid-template-columns: repeat(4, 1fr); }
.timeline.flow-5 .timeline-track { grid-template-columns: repeat(5, 1fr); }
.timeline.flow-6 .timeline-track { grid-template-columns: repeat(6, 1fr); }

@media (max-width: 1024px) {
  .timeline.flow-4 .timeline-track,
  .timeline.flow-5 .timeline-track,
  .timeline.flow-6 .timeline-track {
    grid-template-columns: 1fr;
    gap: 28px;
    max-width: 540px;
    margin: 0 auto;
  }
}

/* -------------------- Two-up grid (raise models, intro pairs) -------------------- */
.two-up {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 20px;
  margin-top: 40px;
}

@media (max-width: 768px) {
  .two-up { grid-template-columns: 1fr; }
}

/* -------------------- Highlight box (small, left-icon style) -------------------- */
.highlight-box {
  display: flex;
  gap: 16px;
  align-items: flex-start;
  padding: 20px 24px;
  background: rgba(212, 175, 55, 0.05);
  border: 1px solid var(--border-gold);
  border-radius: var(--radius-md);
  margin: 32px 0;
}

.highlight-box-icon {
  width: 32px;
  height: 32px;
  border-radius: 8px;
  background: rgba(212, 175, 55, 0.12);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--gold);
  flex-shrink: 0;
}

.highlight-box-icon svg { width: 16px; height: 16px; }

.highlight-box p {
  font-family: var(--font-display);
  font-size: 16px;
  line-height: 1.5;
  color: white;
  font-weight: 500;
}

.highlight-box p strong {
  color: var(--gold);
  font-weight: 700;
}

/* -------------------- Section page-link header (For Founders home / breadcrumb feel) -------------------- */
.page-eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  padding: 6px 14px;
  border: 1px solid var(--border-gold);
  border-radius: 100px;
  background: rgba(212, 175, 55, 0.04);
  font-family: var(--font-mono);
  font-size: 11px;
  color: var(--gold-soft);
  letter-spacing: 2px;
  text-transform: uppercase;
  margin-bottom: 20px;
}

/* -------------------- Checked bullets (Who We Look For criteria) -------------------- */
.check-list {
  list-style: none;
  padding: 0;
  margin: 0;
  display: grid;
  gap: 8px;
}

.check-list li {
  font-size: 13px;
  color: var(--text-secondary);
  line-height: 1.5;
  display: flex;
  gap: 10px;
  align-items: flex-start;
}

.check-list li::before {
  content: '';
  width: 14px;
  height: 14px;
  flex-shrink: 0;
  margin-top: 3px;
  background: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23d4af37' stroke-width='3' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpolyline points='20 6 9 17 4 12'/%3E%3C/svg%3E") no-repeat center / contain;
}

/* -------------------- Phase card (Structured Acceleration) -------------------- */
.phase-card {
  padding: 24px;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  position: relative;
}

.phase-num {
  font-family: var(--font-display);
  font-size: 28px;
  font-weight: 800;
  background: linear-gradient(135deg, var(--gold), var(--cyan));
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
  line-height: 1;
  margin-bottom: 8px;
}

.phase-card h4 {
  font-family: var(--font-display);
  font-size: 15px;
  font-weight: 700;
  margin-bottom: 12px;
  line-height: 1.3;
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

.phase-card ul {
  list-style: none;
  padding: 0;
  margin: 0 0 16px 0;
  display: grid;
  gap: 6px;
}

.phase-card li {
  font-size: 12px;
  color: var(--text-tertiary);
  line-height: 1.5;
  display: flex;
  gap: 6px;
  align-items: flex-start;
}

.phase-card li::before {
  content: '•';
  color: var(--gold);
  flex-shrink: 0;
}

.phase-duration {
  font-family: var(--font-mono);
  font-size: 10px;
  letter-spacing: 1.5px;
  color: var(--gold-soft);
  text-transform: uppercase;
  padding-top: 12px;
  border-top: 1px solid var(--border);
  margin-top: auto;
}

/* =========================================================================
   AI CHAT WIDGET — premium with logo branding
   ========================================================================= */

.chat-widget {
  position: fixed;
  bottom: 24px;
  right: 24px;
  z-index: 1000;
  font-family: var(--font-body);
}

.chat-fab {
  width: 64px;
  height: 64px;
  border-radius: 50%;
  /* Deep navy core gives the neon-stroke BWiGA logo maximum contrast */
  background:
    radial-gradient(circle at 30% 25%, rgba(34, 211, 238, 0.18) 0%, transparent 55%),
    radial-gradient(circle at 70% 80%, rgba(16, 229, 153, 0.14) 0%, transparent 55%),
    linear-gradient(135deg, #050a1a 0%, #0a1428 50%, #050a1a 100%);
  border: 2px solid transparent;
  background-clip: padding-box;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  box-shadow:
    0 8px 28px rgba(0, 0, 0, 0.55),
    0 0 0 1px rgba(34, 211, 238, 0.45),
    0 0 60px rgba(30, 99, 255, 0.22);
  transition: transform 0.3s ease, box-shadow 0.3s ease;
  position: relative;
  isolation: isolate;
}

.chat-fab::after {
  /* Gradient ring — BWiGA blue → cyan → green */
  content: '';
  position: absolute;
  inset: -2px;
  border-radius: 50%;
  background: linear-gradient(135deg, #1e63ff 0%, #22d3ee 50%, #10e599 100%);
  z-index: -1;
}

.chat-fab-icon-wrap {
  position: relative;
  width: 36px;
  height: 36px;
  display: flex;
  align-items: center;
  justify-content: center;
}

.chat-fab-logo {
  width: 100%;
  height: 100%;
  object-fit: contain;
  display: block;
  transition: transform 0.4s cubic-bezier(0.34, 1.5, 0.64, 1), opacity 0.25s;
  /* Stronger glow makes the thin BWiGA strokes legible at 36px */
  filter:
    drop-shadow(0 0 4px rgba(34, 211, 238, 0.85))
    drop-shadow(0 0 10px rgba(30, 99, 255, 0.55))
    drop-shadow(0 1px 2px rgba(0, 0, 0, 0.4));
}

.chat-fab-close {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  color: #22d3ee;
  opacity: 0;
  transform: rotate(-45deg) scale(0.6);
  transition: opacity 0.25s, transform 0.25s;
}

.chat-fab.open .chat-fab-logo {
  opacity: 0;
  transform: rotate(45deg) scale(0.7);
}

.chat-fab.open .chat-fab-close {
  opacity: 1;
  transform: rotate(0deg) scale(1);
}

.chat-fab:hover {
  transform: scale(1.06);
  box-shadow:
    0 12px 36px rgba(0, 0, 0, 0.6),
    0 0 0 1px #22d3ee,
    0 0 80px rgba(34, 211, 238, 0.40);
}

.chat-fab:hover .chat-fab-logo {
  transform: rotate(-12deg) scale(1.08);
  filter:
    drop-shadow(0 0 6px rgba(34, 211, 238, 1))
    drop-shadow(0 0 14px rgba(16, 229, 153, 0.7))
    drop-shadow(0 1px 2px rgba(0, 0, 0, 0.4));
}

/* Pulsing rings — BWiGA cyan/green */
.chat-fab-pulse, .chat-fab-pulse-2 {
  position: absolute;
  inset: -4px;
  border-radius: 50%;
  border: 1px solid rgba(34, 211, 238, 0.55);
  animation: chat-fab-pulse-out 2.6s ease-out infinite;
  pointer-events: none;
}
.chat-fab-pulse-2 { animation-delay: 1.3s; }

@keyframes chat-fab-pulse-out {
  0%   { transform: scale(1);    opacity: 0.7; border-color: rgba(34, 211, 238, 0.6); }
  70%  { transform: scale(1.45); opacity: 0;   border-color: rgba(16, 229, 153, 0.0); }
  100% { transform: scale(1.45); opacity: 0; }
}

.chat-badge {
  position: absolute;
  top: -2px;
  right: -2px;
  width: 14px;
  height: 14px;
  background: #ef4444;
  border-radius: 50%;
  border: 2px solid var(--bg-deep);
  z-index: 2;
  animation: chat-badge-pulse 2s ease-in-out infinite;
}
@keyframes chat-badge-pulse {
  0%, 100% { box-shadow: 0 0 0 0 rgba(239, 68, 68, 0.5); }
  50%      { box-shadow: 0 0 0 6px rgba(239, 68, 68, 0); }
}
.chat-fab.open .chat-badge { display: none; }

/* ----- Panel ----- */
.chat-panel {
  position: fixed;
  bottom: 102px;
  right: 24px;
  width: 400px;
  max-width: calc(100vw - 32px);
  height: 620px;
  max-height: calc(100vh - 140px);
  background: linear-gradient(180deg, rgba(10, 12, 18, 0.96) 0%, rgba(8, 9, 13, 0.96) 100%);
  backdrop-filter: blur(28px);
  -webkit-backdrop-filter: blur(28px);
  border: 1px solid var(--border-gold);
  border-radius: 18px;
  z-index: 999;
  display: none;
  flex-direction: column;
  box-shadow:
    0 28px 80px rgba(0, 0, 0, 0.6),
    0 0 100px rgba(212, 175, 55, 0.12);
  overflow: hidden;
  isolation: isolate;
}
.chat-panel.open {
  display: flex;
  animation: chat-slide-up 0.36s cubic-bezier(0.34, 1.4, 0.64, 1);
}
@keyframes chat-slide-up {
  from { opacity: 0; transform: translateY(18px) scale(0.96); }
  to   { opacity: 1; transform: translateY(0) scale(1); }
}

/* Aurora accent inside panel */
.chat-panel-aurora {
  position: absolute;
  top: -50%;
  left: -10%;
  right: -10%;
  height: 360px;
  background:
    radial-gradient(ellipse 60% 100% at 30% 100%, rgba(212, 175, 55, 0.16) 0%, transparent 60%),
    radial-gradient(ellipse 50% 100% at 75% 100%, rgba(34, 211, 238, 0.14) 0%, transparent 60%);
  pointer-events: none;
  z-index: 0;
  filter: blur(8px);
}

.chat-panel::before {
  content: '';
  position: absolute;
  top: 0; left: 0; right: 0;
  height: 1px;
  background: linear-gradient(90deg, transparent, var(--gold), var(--cyan), transparent);
  z-index: 2;
}

.chat-header {
  position: relative;
  padding: 18px 20px;
  border-bottom: 1px solid var(--border);
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-shrink: 0;
  z-index: 1;
}
.chat-title { display: flex; align-items: center; gap: 12px; }

.chat-avatar {
  width: 40px;
  height: 40px;
  border-radius: 50%;
  /* Deep navy core matches FAB and gives the BWiGA neon-stroke logo full contrast */
  background:
    radial-gradient(circle at 30% 25%, rgba(34, 211, 238, 0.20) 0%, transparent 60%),
    radial-gradient(circle at 70% 75%, rgba(16, 229, 153, 0.14) 0%, transparent 60%),
    linear-gradient(135deg, #050a1a 0%, #0a1428 100%);
  border: 1px solid rgba(34, 211, 238, 0.35);
  display: flex;
  align-items: center;
  justify-content: center;
  position: relative;
  padding: 5px;
  box-shadow:
    0 0 18px rgba(30, 99, 255, 0.25),
    inset 0 0 12px rgba(34, 211, 238, 0.08);
}
.chat-avatar-logo {
  width: 100%;
  height: 100%;
  object-fit: contain;
  filter:
    drop-shadow(0 0 3px rgba(34, 211, 238, 0.85))
    drop-shadow(0 0 6px rgba(30, 99, 255, 0.5));
}

.chat-title-text {
  display: flex;
  flex-direction: column;
  line-height: 1.25;
}
.chat-title-text strong {
  font-family: var(--font-display);
  font-size: 15px;
  color: white;
  font-weight: 700;
  letter-spacing: -0.01em;
}
.chat-title-text small {
  font-size: 11px;
  color: var(--gold-soft);
  font-family: var(--font-mono);
  letter-spacing: 0.5px;
  display: flex;
  align-items: center;
  gap: 6px;
}
.chat-status-dot {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: var(--emerald);
  box-shadow: 0 0 8px var(--emerald);
  animation: chat-status-pulse 1.8s ease-in-out infinite;
}
@keyframes chat-status-pulse {
  0%, 100% { opacity: 0.8; transform: scale(1); }
  50% { opacity: 1; transform: scale(1.15); }
}

.chat-close {
  background: transparent;
  border: none;
  color: var(--text-tertiary);
  cursor: pointer;
  padding: 6px;
  border-radius: 8px;
  display: flex;
  transition: all 0.2s;
}
.chat-close:hover {
  color: white;
  background: rgba(255, 255, 255, 0.06);
}
.chat-close svg { width: 16px; height: 16px; }

/* ----- Messages ----- */
.chat-messages {
  flex: 1;
  overflow-y: auto;
  padding: 20px;
  display: flex;
  flex-direction: column;
  gap: 14px;
  scroll-behavior: smooth;
  position: relative;
  z-index: 1;
}
.chat-messages::-webkit-scrollbar { width: 4px; }
.chat-messages::-webkit-scrollbar-thumb {
  background: var(--border-strong);
  border-radius: 2px;
}

.chat-msg-row {
  display: flex;
  gap: 10px;
  align-items: flex-start;
  max-width: 92%;
  animation: chat-msg-in 0.28s ease;
}
.chat-msg-row.bot { align-self: flex-start; }

.chat-msg-avatar {
  width: 28px;
  height: 28px;
  border-radius: 50%;
  background:
    radial-gradient(circle at 30% 25%, rgba(34, 211, 238, 0.18) 0%, transparent 60%),
    linear-gradient(135deg, #050a1a 0%, #0a1428 100%);
  border: 1px solid rgba(34, 211, 238, 0.30);
  flex-shrink: 0;
  padding: 4px;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-top: 2px;
  box-shadow: 0 0 8px rgba(30, 99, 255, 0.18);
}
.chat-msg-avatar img {
  width: 100%;
  height: 100%;
  object-fit: contain;
  filter:
    drop-shadow(0 0 2px rgba(34, 211, 238, 0.8))
    drop-shadow(0 0 4px rgba(30, 99, 255, 0.4));
}

.chat-msg {
  padding: 12px 16px;
  border-radius: var(--radius-md);
  font-size: 14px;
  line-height: 1.55;
  flex: 1;
}
@keyframes chat-msg-in {
  from { opacity: 0; transform: translateY(8px); }
  to   { opacity: 1; transform: translateY(0); }
}

.chat-msg.user {
  background: linear-gradient(135deg, var(--gold) 0%, var(--gold-soft) 100%);
  color: #000;
  align-self: flex-end;
  border-bottom-right-radius: 4px;
  font-weight: 500;
  max-width: 88%;
  animation: chat-msg-in 0.28s ease;
  box-shadow: 0 4px 20px rgba(212, 175, 55, 0.2);
}

.chat-msg.bot {
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid var(--border);
  color: var(--text-secondary);
  border-bottom-left-radius: 4px;
}
.chat-msg.bot strong { color: white; font-weight: 600; }
.chat-msg.bot a {
  color: var(--gold);
  text-decoration: underline;
  text-underline-offset: 2px;
  text-decoration-color: rgba(212, 175, 55, 0.4);
  transition: text-decoration-color 0.2s;
}
.chat-msg.bot a:hover { text-decoration-color: var(--gold); }
.chat-msg.bot p { margin: 0 0 8px; }
.chat-msg.bot p:last-child { margin: 0; }

.chat-suggestions {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  margin-top: 4px;
  align-self: flex-start;
  max-width: 92%;
  padding-left: 38px;
}

.chat-chip {
  padding: 7px 12px;
  background: rgba(212, 175, 55, 0.08);
  border: 1px solid var(--border-gold);
  border-radius: 100px;
  font-size: 12px;
  color: var(--gold);
  cursor: pointer;
  font-family: inherit;
  transition: all 0.2s;
  text-align: left;
}
.chat-chip:hover {
  background: rgba(212, 175, 55, 0.18);
  transform: translateY(-1px);
  border-color: var(--gold);
}
.chat-chip:active { transform: scale(0.97); }

.chat-typing {
  padding: 14px 16px;
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  border-bottom-left-radius: 4px;
  display: flex;
  gap: 4px;
  align-items: center;
  flex: 1;
}
.chat-typing span {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--gold);
  animation: chat-typing-bounce 1.3s ease-in-out infinite;
}
.chat-typing span:nth-child(2) { animation-delay: 0.18s; }
.chat-typing span:nth-child(3) { animation-delay: 0.36s; }
@keyframes chat-typing-bounce {
  0%, 60%, 100% { transform: translateY(0); opacity: 0.4; }
  30% { transform: translateY(-7px); opacity: 1; }
}

/* ----- Input ----- */
.chat-input-area {
  padding: 12px 14px;
  border-top: 1px solid var(--border);
  display: flex;
  gap: 8px;
  align-items: flex-end;
  flex-shrink: 0;
  position: relative;
  z-index: 1;
  background: rgba(8, 9, 13, 0.5);
}

.chat-input {
  flex: 1;
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  color: white;
  font-family: inherit;
  font-size: 14px;
  padding: 10px 14px;
  resize: none;
  min-height: 42px;
  max-height: 100px;
  line-height: 1.4;
  transition: border-color 0.2s, background 0.2s, box-shadow 0.2s;
}
.chat-input::placeholder { color: var(--text-muted); }
.chat-input:focus {
  outline: none;
  border-color: var(--gold);
  background: rgba(255, 255, 255, 0.06);
  box-shadow: 0 0 0 3px rgba(212, 175, 55, 0.1);
}

.chat-send {
  width: 42px;
  height: 42px;
  border-radius: var(--radius-md);
  background: linear-gradient(135deg, var(--gold), var(--gold-soft));
  border: none;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all 0.2s;
  flex-shrink: 0;
}
.chat-send:hover {
  box-shadow: 0 0 24px rgba(212, 175, 55, 0.5);
  transform: translateY(-1px);
}
.chat-send:disabled {
  opacity: 0.35;
  cursor: not-allowed;
  transform: none;
  box-shadow: none;
}
.chat-send svg { width: 16px; height: 16px; color: #000; }

.chat-footer {
  padding: 9px 16px 11px;
  font-size: 10px;
  color: var(--text-muted);
  text-align: center;
  border-top: 1px solid var(--border);
  font-family: var(--font-mono);
  letter-spacing: 0.5px;
  background: rgba(0, 0, 0, 0.3);
  position: relative;
  z-index: 1;
}
.chat-footer a { color: var(--gold-soft); text-decoration: none; }
.chat-footer a:hover { color: var(--gold); }

@media (max-width: 480px) {
  .chat-widget { bottom: 16px; right: 16px; }
  .chat-fab { width: 56px; height: 56px; }
  .chat-fab-icon-wrap { width: 32px; height: 32px; }
  .chat-panel {
    bottom: 84px;
    right: 16px;
    left: 16px;
    width: auto;
    max-width: none;
    height: calc(100vh - 110px);
  }
  .chat-suggestions { padding-left: 0; }
}

/* =========================================================================
   MAGNETIC BUTTON EFFECT (primary CTAs subtly track cursor)
   ========================================================================= */
.btn-primary,
.apply-btn {
  transition: transform 0.2s cubic-bezier(0.18, 1.4, 0.4, 1), box-shadow 0.2s;
}
