/* =====================================================
   X-PHERA CORPORATE SITE — STYLESHEET v2
   Brand: black + white + purple accents.
   Fonts: Montserrat (display) + DM Sans (body).
   ===================================================== */

/* ---------- Reset ---------- */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; }
body {
  font-family: 'Montserrat', -apple-system, BlinkMacSystemFont, sans-serif;
  background: #0a0a0a;
  color: #e8e8ec;
  line-height: 1.6;
  font-weight: 400;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}
a { color: inherit; text-decoration: none; }

/* ---------- Layout ---------- */
.container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 32px;
}
.section {
  padding: 96px 0;
  border-top: 1px solid rgba(255,255,255,0.06);
}
.section-narrow { max-width: 820px; margin: 0 auto; }

/* ---------- Header (v6 — strictly fixed, no scroll morph) ---------- */
.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  background: rgba(10, 10, 14, 0.78);
  backdrop-filter: blur(24px) saturate(1.6);
  -webkit-backdrop-filter: blur(24px) saturate(1.6);
  border-bottom: 1px solid rgba(167, 139, 250, 0.12);
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.25);
}
.header-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding-top: 16px;
  padding-bottom: 16px;
  gap: 32px;
}

/* Logo — brain icon + wordmark */
.logo {
  display: flex;
  align-items: center;
  gap: 12px;
  transition: opacity 0.2s ease;
}
.logo:hover { opacity: 0.85; }
.logo-icon {
  height: 44px !important;
  max-height: 44px !important;
  width: auto !important;
  display: block;
  filter: drop-shadow(0 0 12px rgba(167, 139, 250, 0.4));
  animation: logo-pulse 4s ease-in-out infinite;
}
@keyframes logo-pulse {
  0%, 100% { filter: drop-shadow(0 0 12px rgba(167, 139, 250, 0.4)); }
  50%      { filter: drop-shadow(0 0 20px rgba(224, 64, 251, 0.55)); }
}
.logo-word {
  color: #ffffff;
  font-family: 'DM Sans', sans-serif;
  font-weight: 800;
  letter-spacing: 0.08em;
  font-size: 17px;
  line-height: 1;
}

/* Nav — TRIPLE-LOCKED at 578px, no room for browser interpretation */
.main-nav {
  display: grid !important;
  grid-template-columns: repeat(5, 1fr) !important;
  width: 578px !important;
  min-width: 578px !important;
  max-width: 578px !important;
  gap: 2px !important;
  font-size: 14px;
  padding: 5px !important;
  border-radius: 12px;
  background: rgba(255, 255, 255, 0.03);
  border: 1px solid rgba(255, 255, 255, 0.06);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.04);
  box-sizing: border-box !important;
  flex-shrink: 0;
  position: relative;
}

/* Sliding pill indicator — one shared background that glides between items */
.nav-pill {
  position: absolute;
  top: 5px;
  left: 0;
  height: calc(100% - 10px);
  width: 0;
  border-radius: 8px;
  background: linear-gradient(135deg, rgba(124, 58, 237, 0.35) 0%, rgba(224, 64, 251, 0.15) 100%);
  box-shadow: inset 0 0 0 1px rgba(167, 139, 250, 0.35), 0 0 24px rgba(124, 58, 237, 0.25);
  transform: translateX(0);
  transition:
    transform 0.35s cubic-bezier(0.34, 1.35, 0.64, 1),
    width 0.35s cubic-bezier(0.34, 1.35, 0.64, 1);
  pointer-events: none;
  z-index: 0;
  opacity: 1;
}
/* No transition or bounce on the very first placement — pill just "is" there. */
.main-nav.no-transition .nav-pill { transition: none !important; }
.nav-link { z-index: 1; }
.nav-link {
  color: #b8b8c2;
  width: 100% !important;
  min-width: 0 !important;
  max-width: 100% !important;
  padding: 10px 0 !important;
  border-radius: 8px;
  text-align: center;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  transition: color 0.25s cubic-bezier(0.4, 0, 0.2, 1);
  font-weight: 500;
  position: relative;
  box-sizing: border-box !important;
}
.nav-link:hover {
  color: #ffffff;
}
.nav-link.active {
  color: #ffffff;
}
/* Breathing glow dot indicator BELOW active link — doesn't affect layout */
.nav-link.active::before {
  content: '';
  position: absolute;
  bottom: -4px;
  left: 50%;
  transform: translateX(-50%);
  width: 4px;
  height: 4px;
  border-radius: 50%;
  background: #a78bfa;
  box-shadow: 0 0 8px #a78bfa, 0 0 16px rgba(167,139,250,0.5);
  animation: dot-pulse 2s ease-in-out infinite;
}
@keyframes dot-pulse {
  0%, 100% { opacity: 1; transform: translateX(-50%) scale(1); }
  50%      { opacity: 0.6; transform: translateX(-50%) scale(1.3); }
}

/* CTA button — with shine sweep */
.cta-button {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: linear-gradient(135deg, #8b5cf6 0%, #6d28d9 100%);
  color: #ffffff;
  padding: 11px 22px;
  border-radius: 10px;
  font-family: 'Montserrat', sans-serif;
  font-weight: 600;
  font-size: 14px;
  transition: all 0.25s cubic-bezier(0.4, 0, 0.2, 1);
  box-shadow: 0 4px 16px rgba(124, 58, 237, 0.35), inset 0 1px 0 rgba(255, 255, 255, 0.15);
  position: relative;
  overflow: hidden;
}
.cta-button::before {
  content: '';
  position: absolute;
  top: 0; left: -100%;
  width: 100%; height: 100%;
  background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.2), transparent);
  transition: left 0.6s ease;
}
.cta-button:hover::before { left: 100%; }
.cta-button:hover {
  transform: translateY(-1px);
  box-shadow: 0 6px 24px rgba(124, 58, 237, 0.55), inset 0 1px 0 rgba(255, 255, 255, 0.2);
}

/* ---------- Hero ---------- */
.hero {
  padding: 120px 0 96px;
  background:
    radial-gradient(circle at 20% 0%, rgba(124,58,237,0.15) 0%, transparent 40%),
    radial-gradient(circle at 80% 20%, rgba(139,92,246,0.08) 0%, transparent 40%);
}
.hero-inner { max-width: 900px; }
.hero-title {
  font-family: 'DM Sans', sans-serif;
  font-size: clamp(44px, 6.5vw, 76px);
  font-weight: 800;
  line-height: 1.05;
  letter-spacing: -0.03em;
  color: #ffffff;
  margin-bottom: 32px;
}
.hero-title .accent {
  background: linear-gradient(135deg, #a78bfa 0%, #7c3aed 100%);
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
}

/* TM mark — small superscript, uses Arial for a proper glyph */
.tm {
  font-family: -apple-system, 'Helvetica Neue', Arial, sans-serif;
  font-size: 0.45em;
  position: relative;
  top: -0.55em;
  margin-left: 2px;
  color: #a78bfa;
  font-weight: 700;
  letter-spacing: 0;
  line-height: 0;
  display: inline-block;
  vertical-align: baseline;
}
/* TM inside buttons — larger + white, tight to the wordmark */
.btn .tm, .cta-button .tm {
  font-size: 0.65em;
  top: -0.45em;
  color: #ffffff;
  opacity: 0.85;
  margin-left: 0;
}

.hero-lead {
  font-family: 'DM Sans', sans-serif;
  font-size: clamp(20px, 2.4vw, 26px);
  color: #ffffff;
  font-weight: 600;
  margin-bottom: 20px;
  line-height: 1.35;
  letter-spacing: -0.01em;
}
.hero-sub {
  font-size: 19px;
  line-height: 1.65;
  color: #b8b8c2;
  max-width: 680px;
  margin-bottom: 48px;
}
.hero-ctas { display: flex; gap: 16px; flex-wrap: wrap; }

.hero-slim { padding: 96px 0 64px; }
.hero-slim .hero-title { font-size: clamp(40px, 5.5vw, 60px); margin-bottom: 24px; }
.hero-slim .hero-sub { margin-bottom: 0; font-size: 18px; }

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 14px 28px;
  border-radius: 10px;
  font-family: 'Montserrat', sans-serif;
  font-weight: 500;
  font-size: 15px;
  transition: all 0.2s ease;
  cursor: pointer;
}
.btn-primary {
  background: linear-gradient(135deg, #7c3aed 0%, #6d28d9 100%);
  color: #ffffff;
  box-shadow: 0 4px 20px rgba(124, 58, 237, 0.3);
}
.btn-primary:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 28px rgba(124, 58, 237, 0.45);
}
.btn-secondary {
  background: transparent;
  color: #e8e8ec;
  border: 1px solid rgba(255, 255, 255, 0.15);
}
.btn-secondary:hover {
  border-color: rgba(167, 139, 250, 0.5);
  background: rgba(124, 58, 237, 0.08);
}

/* ---------- Section head ---------- */
.section-head { max-width: 780px; margin-bottom: 56px; }
.section-head.centered { margin: 0 auto 56px; text-align: center; }
.section-title {
  font-family: 'DM Sans', sans-serif;
  font-size: clamp(28px, 3.6vw, 40px);
  font-weight: 700;
  line-height: 1.15;
  letter-spacing: -0.02em;
  color: #ffffff;
  margin-bottom: 20px;
}
.section-lede {
  font-size: 17px;
  line-height: 1.75;
  color: #b8b8c2;
}
.section-body { color: #b8b8c2; font-size: 16px; line-height: 1.75; }
.section-body p + p { margin-top: 20px; }

/* ---------- Trust grid — subgrid aligns label / value / caption across every card ---------- */
.trust-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  grid-template-rows: auto auto 1fr;   /* three logical rows for the three text elements */
  gap: 24px;
  align-items: stretch;
}
.trust-card {
  display: grid;
  grid-template-rows: subgrid;         /* inherit parent's row lines */
  grid-row: span 3;                    /* card spans all three rows */
  padding: 32px;
  background: linear-gradient(180deg, rgba(255,255,255,0.03) 0%, rgba(255,255,255,0.01) 100%);
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 16px;
  transition: border-color 0.3s ease, transform 0.3s ease;
  gap: 12px;
}
.trust-card > .trust-label,
.trust-card > .trust-value,
.trust-card > .trust-caption { margin: 0; }
.trust-card:hover {
  border-color: rgba(167, 139, 250, 0.3);
  transform: translateY(-2px);
}
.trust-label {
  font-family: 'DM Sans', sans-serif;
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: #a78bfa;
  margin-bottom: 12px;
}
.trust-value {
  font-family: 'DM Sans', sans-serif;
  font-size: 26px;
  font-weight: 700;
  color: #ffffff;
  margin-bottom: 16px;
  letter-spacing: -0.01em;
}
.trust-caption {
  font-size: 14px;
  color: #9a9aa8;
  line-height: 1.65;
}
.trust-caption a {
  color: #a78bfa;
  transition: color 0.2s ease;
}
.trust-caption a:hover { color: #c4b5fd; }

/* ---------- Team grid ---------- */
.team-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  grid-auto-rows: 1fr;      /* every row exactly the same height */
  gap: 24px;
  align-items: stretch;
}
.team-card { height: 100%; display: flex; flex-direction: column; }
.team-card {
  padding: 32px;
  background: linear-gradient(180deg, rgba(255,255,255,0.03) 0%, rgba(255,255,255,0.01) 100%);
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 16px;
  transition: border-color 0.3s ease;
}
.team-card:hover { border-color: rgba(167, 139, 250, 0.25); }
.team-avatar {
  width: 112px;
  height: 112px;
  border-radius: 50%;
  background: linear-gradient(135deg, #7c3aed 0%, #a78bfa 100%);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  color: #fff;
  font-family: 'DM Sans', sans-serif;
  font-weight: 700;
  font-size: 36px;
  margin-bottom: 20px;
  letter-spacing: 0.02em;
  overflow: hidden;
  flex-shrink: 0;
  box-shadow: 0 4px 16px rgba(124, 58, 237, 0.25), inset 0 0 0 1px rgba(255,255,255,0.08);
  transform: translateZ(0);
  transition:
    transform 0.4s cubic-bezier(0.34, 1.35, 0.64, 1),
    box-shadow 0.4s ease;
  will-change: transform;
}
.team-avatar img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  image-rendering: -webkit-optimize-contrast;
  image-rendering: crisp-edges;
  transition: transform 0.5s cubic-bezier(0.34, 1.35, 0.64, 1);
}
/* Hover the CARD or the AVATAR to trigger — subtle grow + brighter glow, plus inner photo zoom */
.team-card:hover .team-avatar,
.team-avatar:hover {
  transform: scale(1.12);
  box-shadow:
    0 8px 28px rgba(124, 58, 237, 0.45),
    0 0 0 3px rgba(167, 139, 250, 0.15),
    inset 0 0 0 1px rgba(255,255,255,0.15);
}
.team-card:hover .team-avatar img,
.team-avatar:hover img {
  transform: scale(1.08);
}
.team-header {
  display: flex;
  align-items: center;
  gap: 20px;
  margin-bottom: 20px;
}
.team-header .team-avatar { margin-bottom: 0; }
.team-header-text { flex: 1; min-width: 0; }
.team-linkedin {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 32px;
  height: 32px;
  border-radius: 8px;
  background: rgba(167, 139, 250, 0.1);
  color: #a78bfa;
  transition: all 0.2s ease;
  flex-shrink: 0;
  font-family: 'DM Sans', sans-serif;
  font-weight: 700;
  font-size: 13px;
  letter-spacing: 0.02em;
}
.team-linkedin:hover {
  background: rgba(167, 139, 250, 0.25);
  color: #ffffff;
  transform: translateY(-1px);
}
.team-name {
  font-family: 'DM Sans', sans-serif;
  font-size: 22px;
  font-weight: 700;
  color: #ffffff;
  margin-bottom: 4px;
  letter-spacing: -0.01em;
  display: flex;
  align-items: center;
  gap: 12px;
  flex-wrap: wrap;
}
.team-role {
  font-size: 14px;
  color: #a78bfa;
  font-weight: 500;
  margin-bottom: 16px;
}
.team-bio {
  font-size: 14px;
  color: #9a9aa8;
  line-height: 1.65;
}

/* ---------- Insight card ---------- */
.insight-card {
  padding: 40px;
  background: linear-gradient(135deg, rgba(124,58,237,0.05) 0%, rgba(255,255,255,0.02) 100%);
  border: 1px solid rgba(167, 139, 250, 0.15);
  border-radius: 20px;
  transition: border-color 0.3s ease;
  margin-bottom: 20px;
}
.insight-card:hover { border-color: rgba(167, 139, 250, 0.35); }
.insights-section .insight-card { max-width: 720px; margin: 0 auto; }
.insight-tag {
  display: inline-block;
  font-family: 'DM Sans', sans-serif;
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: #a78bfa;
  margin-bottom: 16px;
  padding: 4px 12px;
  background: rgba(124, 58, 237, 0.15);
  border-radius: 6px;
}
.insight-title {
  font-family: 'DM Sans', sans-serif;
  font-size: 26px;
  font-weight: 700;
  color: #ffffff;
  margin-bottom: 16px;
  line-height: 1.2;
  letter-spacing: -0.01em;
}
.insight-desc {
  font-size: 16px;
  color: #b8b8c2;
  line-height: 1.7;
  margin-bottom: 24px;
}
.insight-link {
  color: #a78bfa;
  font-weight: 500;
  font-size: 15px;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  transition: gap 0.2s ease;
}
.insight-link:hover { gap: 12px; }

/* ---------- Product highlight card ---------- */
.product-card {
  padding: 56px;
  background: linear-gradient(135deg, rgba(124,58,237,0.10) 0%, rgba(139,92,246,0.03) 100%);
  border: 1px solid rgba(167, 139, 250, 0.25);
  border-radius: 24px;
  margin-bottom: 32px;
}
.product-card .product-name {
  font-family: 'DM Sans', sans-serif;
  font-size: 40px;
  font-weight: 800;
  color: #ffffff;
  margin-bottom: 16px;
  letter-spacing: -0.02em;
}
.product-card .product-tagline {
  font-size: 18px;
  color: #c4b5fd;
  margin-bottom: 24px;
  font-weight: 500;
}
.product-card .product-desc {
  font-size: 16px;
  color: #b8b8c2;
  line-height: 1.75;
  margin-bottom: 32px;
  max-width: 640px;
}

/* ---------- Contact grid ---------- */
.contact-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 20px;
}
.contact-card {
  padding: 32px;
  background: linear-gradient(180deg, rgba(255,255,255,0.03) 0%, rgba(255,255,255,0.01) 100%);
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 16px;
  transition: border-color 0.3s ease;
}
.contact-card:hover { border-color: rgba(167, 139, 250, 0.3); }
.contact-title {
  font-family: 'DM Sans', sans-serif;
  font-size: 18px;
  font-weight: 700;
  color: #ffffff;
  margin-bottom: 8px;
}
.contact-desc {
  font-size: 14px;
  color: #9a9aa8;
  margin-bottom: 16px;
  line-height: 1.6;
}
.contact-link {
  color: #a78bfa;
  font-weight: 500;
  font-size: 15px;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  transition: gap 0.2s ease;
}
.contact-link:hover { gap: 12px; }

/* ---------- Legal / long-form pages ---------- */
.legal-body h2 {
  font-family: 'DM Sans', sans-serif;
  font-size: 22px;
  font-weight: 700;
  color: #ffffff;
  margin-top: 40px;
  margin-bottom: 12px;
  letter-spacing: -0.01em;
}
.legal-body p, .legal-body li {
  font-size: 15px;
  color: #b8b8c2;
  line-height: 1.75;
  margin-bottom: 12px;
}
.legal-body ul { padding-left: 22px; }
.legal-notice {
  padding: 16px 20px;
  background: rgba(124, 58, 237, 0.08);
  border-left: 3px solid #a78bfa;
  border-radius: 4px;
  font-size: 14px;
  color: #c4b5fd;
  margin-bottom: 40px;
}

/* ---------- CTA section ---------- */
.cta-section {
  padding: 120px 0;
  background:
    radial-gradient(circle at 50% 50%, rgba(124,58,237,0.12) 0%, transparent 50%);
  text-align: center;
  border-top: 1px solid rgba(255,255,255,0.06);
}
.cta-title {
  font-family: 'DM Sans', sans-serif;
  font-size: clamp(28px, 3.6vw, 40px);
  font-weight: 700;
  color: #ffffff;
  margin-bottom: 16px;
  line-height: 1.2;
  letter-spacing: -0.02em;
}
.cta-sub {
  font-size: 17px;
  color: #b8b8c2;
  margin-bottom: 32px;
}

/* ---------- Footer ---------- */
.site-footer {
  background: #050505;
  padding: 80px 0 32px;
  border-top: 1px solid rgba(255,255,255,0.06);
}
.footer-grid {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr 1.2fr;
  gap: 56px;
  margin-bottom: 56px;
}
.footer-brand-content {
  display: inline-block;
}
.footer-logo {
  margin-bottom: 16px;
}
.footer-logo-img {
  height: 140px !important;
  max-height: 140px !important;
  width: auto !important;
  display: block;
}
.footer-tagline { display: none; }
.footer-social {
  display: flex;
  justify-content: space-between;
  width: 100%;
  margin-top: 4px;
}
.footer-social a {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 36px;
  height: 36px;
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.05);
  color: #b8b8c2;
  font-size: 13px;
  font-weight: 600;
  transition: all 0.2s ease;
}
.footer-social a:hover {
  background: rgba(124, 58, 237, 0.2);
  color: #ffffff;
}
.footer-col {
  display: flex;
  flex-direction: column;
  gap: 12px;
}
.footer-heading {
  font-family: 'DM Sans', sans-serif;
  font-size: 14px;
  font-weight: 700;
  color: #ffffff;
  margin-bottom: 8px;
  letter-spacing: 0.02em;
}
.footer-col a, .footer-static {
  color: #9a9aa8;
  font-size: 14px;
  transition: color 0.2s ease;
}
.footer-col a:hover { color: #ffffff; }

.footer-baseline {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding-top: 24px;
  border-top: 1px solid rgba(255,255,255,0.06);
  font-size: 13px;
  color: #6b6b78;
}
.footer-motto { font-style: italic; }

/* ---------- Responsive ---------- */
@media (max-width: 900px) {
  .main-nav { display: none; }
  .header-row { padding-top: 12px; padding-bottom: 12px; }
  .container { padding: 0 24px; }
  .hero { padding: 80px 0 64px; }
  .hero-slim { padding: 64px 0 48px; }
  .section { padding: 64px 0; }
  .trust-grid, .team-grid, .contact-grid { grid-template-columns: 1fr; }
  .product-card { padding: 32px; }
  .product-card .product-name { font-size: 28px; }
  .footer-grid { grid-template-columns: 1fr 1fr; gap: 32px; }
  .footer-baseline { flex-direction: column; gap: 8px; text-align: center; }
}
@media (max-width: 560px) {
  .footer-grid { grid-template-columns: 1fr; }
  .hero-ctas { flex-direction: column; align-items: stretch; }
  .btn { justify-content: center; }
  .logo-word { font-size: 15px; }
}

/* ---------- Contact form ---------- */
.contact-form {
  padding: 40px;
  background: linear-gradient(180deg, rgba(255,255,255,0.03) 0%, rgba(255,255,255,0.01) 100%);
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 20px;
  box-shadow: 0 8px 40px rgba(0,0,0,0.3);
}
.form-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 20px;
}
.form-field {
  margin-bottom: 20px;
  display: flex;
  flex-direction: column;
}
.form-row .form-field { margin-bottom: 20px; }
.form-field label {
  font-family: 'DM Sans', sans-serif;
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: #c4b5fd;
  margin-bottom: 8px;
}
.form-field .req { color: #e040fb; margin-left: 2px; }
.form-field .opt {
  color: #6b7078;
  text-transform: none;
  letter-spacing: 0;
  font-weight: 400;
  font-size: 11px;
  margin-left: 4px;
}
.form-field input,
.form-field select,
.form-field textarea {
  font-family: 'Montserrat', sans-serif;
  font-size: 15px;
  padding: 13px 16px;
  background: rgba(255,255,255,0.03);
  border: 1px solid rgba(255,255,255,0.10);
  border-radius: 10px;
  color: #ffffff;
  transition: border-color 0.2s ease, background 0.2s ease, box-shadow 0.2s ease;
  width: 100%;
  outline: none;
}
.form-field input::placeholder,
.form-field textarea::placeholder {
  color: rgba(255,255,255,0.35);
}
.form-field input:focus,
.form-field select:focus,
.form-field textarea:focus {
  border-color: rgba(167,139,250,0.6);
  background: rgba(124,58,237,0.06);
  box-shadow: 0 0 0 3px rgba(124,58,237,0.15);
}
.form-field select {
  appearance: none;
  -webkit-appearance: none;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='8' viewBox='0 0 12 8' fill='none'%3E%3Cpath d='M1 1L6 6L11 1' stroke='%23a78bfa' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 16px center;
  padding-right: 40px;
}
.form-field select option { background: #0a0a0a; color: #ffffff; }
.form-field textarea { resize: vertical; min-height: 100px; font-family: 'Montserrat', sans-serif; }
.form-submit {
  margin-top: 8px;
  padding: 16px 32px;
  font-size: 15px;
  font-weight: 600;
}
.form-note {
  margin-top: 20px;
  font-size: 12px;
  color: #6b7078;
  line-height: 1.6;
}
/* Honeypot — visually hidden from humans, still submitted */
.hp {
  position: absolute;
  left: -10000px;
  top: auto;
  width: 1px; height: 1px;
  overflow: hidden;
}

@media (max-width: 680px) {
  .form-row { grid-template-columns: 1fr; }
  .contact-form { padding: 24px; }
}

/* ---------- Custom Dropdown (.cselect) ---------- */
.cselect {
  position: relative;
  width: 100%;
}
.cselect-trigger {
  width: 100%;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  font-family: 'Montserrat', sans-serif;
  font-size: 15px;
  font-weight: 500;
  padding: 13px 18px;
  background: rgba(255, 255, 255, 0.03);
  border: 1px solid rgba(255, 255, 255, 0.10);
  border-radius: 10px;
  color: #ffffff;
  text-align: left;
  cursor: pointer;
  transition: border-color 0.2s ease, background 0.2s ease, box-shadow 0.2s ease;
}
.cselect-trigger:hover {
  border-color: rgba(167, 139, 250, 0.4);
  background: rgba(124, 58, 237, 0.05);
}
.cselect-trigger:focus,
.cselect.open .cselect-trigger {
  outline: none;
  border-color: rgba(167, 139, 250, 0.7);
  background: rgba(124, 58, 237, 0.08);
  box-shadow: 0 0 0 3px rgba(124, 58, 237, 0.18);
}
.cselect-value[data-placeholder="true"] {
  color: rgba(255, 255, 255, 0.4);
}
.cselect-chevron {
  color: #a78bfa;
  flex-shrink: 0;
  transition: transform 0.25s cubic-bezier(0.4, 0, 0.2, 1);
}
.cselect.open .cselect-chevron {
  transform: rotate(180deg);
}
/* Options panel */
.cselect-options {
  position: absolute;
  top: calc(100% + 6px);
  left: 0;
  right: 0;
  list-style: none;
  padding: 6px;
  margin: 0;
  background: rgba(15, 15, 24, 0.96);
  backdrop-filter: blur(24px) saturate(1.6);
  -webkit-backdrop-filter: blur(24px) saturate(1.6);
  border: 1px solid rgba(167, 139, 250, 0.25);
  border-radius: 12px;
  box-shadow: 0 20px 40px rgba(0, 0, 0, 0.5), 0 0 0 1px rgba(0,0,0,0.2);
  z-index: 100;
  max-height: 320px;
  overflow-y: auto;
  animation: cselect-in 0.2s cubic-bezier(0.4, 0, 0.2, 1);
}
@keyframes cselect-in {
  from { opacity: 0; transform: translateY(-6px); }
  to   { opacity: 1; transform: translateY(0); }
}
.cselect-options li {
  padding: 11px 14px;
  border-radius: 8px;
  color: #e0e0e8;
  font-family: 'Montserrat', sans-serif;
  font-size: 14px;
  font-weight: 500;
  cursor: pointer;
  transition: background 0.15s ease, color 0.15s ease, padding-left 0.2s ease;
  position: relative;
}
.cselect-options li:hover,
.cselect-options li.focused {
  background: linear-gradient(135deg, rgba(124, 58, 237, 0.20), rgba(167, 139, 250, 0.05));
  color: #ffffff;
  padding-left: 20px;
}
.cselect-options li.selected {
  color: #ffffff;
  background: linear-gradient(135deg, rgba(124, 58, 237, 0.30), rgba(167, 139, 250, 0.10));
  padding-left: 20px;
}
.cselect-options li.selected::before {
  content: '';
  position: absolute;
  left: 8px; top: 50%;
  transform: translateY(-50%);
  width: 4px; height: 4px;
  border-radius: 50%;
  background: #a78bfa;
  box-shadow: 0 0 6px #a78bfa;
}
/* Scrollbar for dropdown */
.cselect-options::-webkit-scrollbar { width: 6px; }
.cselect-options::-webkit-scrollbar-track { background: transparent; }
.cselect-options::-webkit-scrollbar-thumb { background: rgba(167, 139, 250, 0.3); border-radius: 3px; }

/* ---------- Subtle background variation across sections ---------- */
/* Alternating band with barely-there purple tint to break monotony */
.section-tinted {
  background: linear-gradient(180deg,
    rgba(124, 58, 237, 0.025) 0%,
    rgba(124, 58, 237, 0.015) 100%);
}
/* Section with a soft radial spotlight in a corner */
.section-glow-tl { background: radial-gradient(circle at 15% 0%, rgba(124,58,237,0.08) 0%, transparent 50%); }
.section-glow-tr { background: radial-gradient(circle at 85% 0%, rgba(224,64,251,0.05) 0%, transparent 50%); }
.section-glow-c  { background: radial-gradient(circle at 50% 50%, rgba(124,58,237,0.06) 0%, transparent 60%); }

/* ---------- Alternate background bands (dark family, no light) ---------- */
/* Subtly RAISED — content feels lifted above the base black */
.section-raised {
  background: #12121a;
  border-top: 1px solid rgba(255,255,255,0.04);
  border-bottom: 1px solid rgba(255,255,255,0.04);
}
/* DEEPER — pushes into inky navy, feels denser */
.section-deep {
  background: #06060c;
  border-top: 1px solid rgba(0,0,0,0.4);
}

/* ---------- Gated download form (insights.html) ---------- */
.gate-form {
  position: relative;
  margin-top: 8px;
  padding: 28px 32px;
  background: linear-gradient(180deg, rgba(124, 58, 237, 0.10) 0%, rgba(255, 255, 255, 0.02) 100%);
  border: 1px solid rgba(167, 139, 250, 0.25);
  border-radius: 16px;
  box-shadow: 0 8px 32px rgba(0, 0, 0, 0.25);
}
.gate-form-head {
  margin-bottom: 20px;
  padding-bottom: 18px;
  border-bottom: 1px solid rgba(167, 139, 250, 0.15);
}
.gate-form-head p { margin: 0; }
.gate-form-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 16px;
}
.gate-form-row .form-field { margin-bottom: 16px; }
.gate-form .form-field:last-of-type { margin-bottom: 0; }
@media (max-width: 640px) {
  .gate-form { padding: 22px 20px; }
  .gate-form-row { grid-template-columns: 1fr; }
}

/* =============================================================
   HOMEPAGE — dynamic visual treatments (scoped to .page-home)
   ============================================================= */

/* 1. Subtle dot-grid texture fixed behind everything — breaks the flat black */
.page-home::before {
  content: '';
  position: fixed;
  inset: 0;
  z-index: 0;
  pointer-events: none;
  background-image:
    radial-gradient(circle at 1px 1px, rgba(167, 139, 250, 0.08) 1px, transparent 0);
  background-size: 32px 32px;
  mask-image: radial-gradient(ellipse at center, black 40%, transparent 90%);
  -webkit-mask-image: radial-gradient(ellipse at center, black 40%, transparent 90%);
}
/* Keep content above the fixed dot-grid overlay — but don't touch the
   sticky header, or `position: sticky` becomes `position: relative`
   and the header scrolls away with the page. */
.page-home > *:not(.site-header) { position: relative; z-index: 1; }
.page-home .site-header { z-index: 60; }

/* 2. Hero — animated aurora blobs drifting behind the content */
.page-home .hero {
  position: relative;
  overflow: hidden;
  padding: 140px 0 120px;
  background: transparent;
}
.page-home .hero::before,
.page-home .hero::after {
  content: '';
  position: absolute;
  border-radius: 50%;
  filter: blur(90px);
  z-index: 0;
  pointer-events: none;
  will-change: transform;
}
.page-home .hero::before {
  top: -140px;
  left: -140px;
  width: 560px;
  height: 560px;
  background: radial-gradient(circle, rgba(124, 58, 237, 0.55) 0%, transparent 65%);
  animation: aurora-a 22s ease-in-out infinite;
}
.page-home .hero::after {
  bottom: -180px;
  right: -140px;
  width: 640px;
  height: 640px;
  background: radial-gradient(circle, rgba(224, 64, 251, 0.28) 0%, transparent 65%);
  animation: aurora-b 26s ease-in-out infinite;
}
@keyframes aurora-a {
  0%, 100% { transform: translate(0, 0) scale(1); }
  33%      { transform: translate(80px, -40px) scale(1.15); }
  66%      { transform: translate(-40px, 60px) scale(0.9); }
}
@keyframes aurora-b {
  0%, 100% { transform: translate(0, 0) scale(1); }
  33%      { transform: translate(-70px, -30px) scale(0.95); }
  66%      { transform: translate(50px, 50px) scale(1.1); }
}
.page-home .hero-inner { position: relative; z-index: 2; }

/* 3. Constellation SVG — decorative animated dots + lines behind the hero title */
.page-home .constellation {
  position: absolute;
  inset: 0;
  z-index: 1;
  pointer-events: none;
  opacity: 0.55;
}
.page-home .constellation circle {
  animation: node-pulse 4s ease-in-out infinite;
  transform-origin: center;
  transform-box: fill-box;
}
.page-home .constellation circle:nth-child(2n)  { animation-delay: -1s; }
.page-home .constellation circle:nth-child(3n)  { animation-delay: -2s; }
.page-home .constellation circle:nth-child(5n)  { animation-delay: -3s; }
@keyframes node-pulse {
  0%, 100% { opacity: 0.35; transform: scale(1); }
  50%      { opacity: 1;    transform: scale(1.5); }
}
.page-home .constellation line {
  stroke-dasharray: 200;
  stroke-dashoffset: 0;
  animation: line-flow 8s linear infinite;
}
@keyframes line-flow {
  0%   { stroke-dashoffset: 200; opacity: 0.2; }
  50%  { opacity: 0.6; }
  100% { stroke-dashoffset: -200; opacity: 0.2; }
}

/* 4. Boost the section glows on home — richer, more visible ambient light */
.page-home .section-glow-tl {
  background:
    radial-gradient(ellipse at 10% 0%, rgba(124, 58, 237, 0.18) 0%, transparent 55%),
    radial-gradient(ellipse at 90% 100%, rgba(224, 64, 251, 0.08) 0%, transparent 50%);
}
.page-home .section-glow-tr {
  background:
    radial-gradient(ellipse at 90% 0%, rgba(224, 64, 251, 0.15) 0%, transparent 55%),
    radial-gradient(ellipse at 10% 100%, rgba(124, 58, 237, 0.10) 0%, transparent 50%);
}
.page-home .section-tinted {
  background: linear-gradient(180deg,
    rgba(124, 58, 237, 0.05) 0%,
    rgba(224, 64, 251, 0.03) 100%);
}
.page-home .cta-section {
  background:
    radial-gradient(circle at 50% 50%, rgba(124, 58, 237, 0.22) 0%, transparent 55%),
    radial-gradient(circle at 20% 80%, rgba(224, 64, 251, 0.10) 0%, transparent 50%);
}

/* 5. Section titles get an animated accent underline on home */
.page-home .section-head.centered .section-title {
  position: relative;
  display: inline-block;
  padding-bottom: 20px;
}
.page-home .section-head.centered {
  text-align: center;
}
.page-home .section-head.centered .section-title::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 50%;
  width: 60px;
  height: 3px;
  transform: translateX(-50%);
  background: linear-gradient(90deg, transparent, #a78bfa, #e040fb, #a78bfa, transparent);
  background-size: 200% 100%;
  border-radius: 2px;
  animation: title-shimmer 4s linear infinite;
}
@keyframes title-shimmer {
  0%   { background-position: 100% 0; }
  100% { background-position: -100% 0; }
}

/* 6. Trust cards on home — add a subtle purple glow that intensifies on hover */
.page-home .trust-card {
  background:
    linear-gradient(180deg, rgba(255,255,255,0.03) 0%, rgba(255,255,255,0.01) 100%),
    radial-gradient(circle at 50% 0%, rgba(124, 58, 237, 0.08) 0%, transparent 60%);
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.3);
  transition: border-color 0.3s ease, transform 0.3s ease, box-shadow 0.3s ease, background 0.3s ease;
}
.page-home .trust-card:hover {
  box-shadow: 0 8px 32px rgba(124, 58, 237, 0.25);
  transform: translateY(-4px);
}

/* 7. Scroll-reveal utility — fade + rise as elements enter viewport */
.page-home .reveal {
  opacity: 0;
  transform: translateY(24px);
  transition:
    opacity 0.8s cubic-bezier(0.16, 1, 0.3, 1),
    transform 0.8s cubic-bezier(0.16, 1, 0.3, 1);
}
.page-home .reveal.is-visible {
  opacity: 1;
  transform: translateY(0);
}

/* Accessibility — kill all decorative motion for reduced-motion users */
@media (prefers-reduced-motion: reduce) {
  .page-home .hero::before,
  .page-home .hero::after,
  .page-home .constellation circle,
  .page-home .constellation line,
  .page-home .section-head.centered .section-title::after {
    animation: none !important;
  }
  .page-home .reveal {
    opacity: 1;
    transform: none;
    transition: none;
  }
}
