/* -- Home / Landing page styles -- */

body[data-page="home"] {
  background: var(--bg);
}

/* -- Nav -- */
.homeNav {
  background: var(--card);
  border-bottom: 1px solid var(--bd);
  position: sticky;
  top: 0;
  z-index: 100;
}
.homeNavInner {
  max-width: 1200px;
  margin: 0 auto;
  padding: 14px 22px;
  display: flex;
  justify-content: space-between;
  align-items: center;
}
.homeNavLogo {
  text-decoration: none;
  display: flex;
  align-items: center;
  font-size: 22px;
  font-weight: 900;
  color: var(--accent);
  letter-spacing: -0.5px;
}
.homeNavLogo .navLogoImg {
  height: 108px;
  width: auto;
  display: block;
  margin: -38px 0;
}
.homeNavLinks {
  display: flex;
  align-items: center;
  gap: 8px;
}
/* .homeNavLink — top-bar nav links (Blog, Standards, etc.) */
.homeNavLink {
  font-size: 14px;
  font-weight: 600;
  color: var(--text);
  text-decoration: none;
  padding: 6px 10px;
  border-radius: 8px;
  transition: background 0.15s, color 0.15s;
}
.homeNavLink:hover {
  background: rgba(124,58,237, 0.08);
  color: var(--accent);
}
.homeNavBtn {
  padding: 8px 18px;
  font-size: 14px;
  font-weight: 800;
  color: #fff;
  background: var(--accent);
  text-decoration: none;
  border-radius: 10px;
  transition: background 0.15s;
}
.homeNavBtn:hover {
  background: #6d28d9;
}

/* User pill (logged-in state) */
.homeNavUserPill {
  display: flex;
  align-items: center;
  gap: 7px;
  padding: 6px 14px 6px 8px;
  border: 1px solid var(--bd);
  border-radius: 999px;
  background: var(--card);
  box-shadow: var(--shadow);
  text-decoration: none;
  color: var(--text);
  font-size: 13px;
  font-weight: 700;
  white-space: nowrap;
  max-width: 200px;
  transition: border-color 0.15s;
}
.homeNavUserPill:hover {
  border-color: rgba(124,58,237, 0.35);
}
.homeNavAvatar {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 28px;
  height: 28px;
  border-radius: 999px;
  background: rgba(124,58,237, 0.10);
  font-size: 15px;
  flex-shrink: 0;
  overflow: hidden;
}
.homeNavAvatar img {
  width: 100%; height: 100%; border-radius: 50%; object-fit: cover;
}
.homeNavAvatar.hasInitials {
  background: var(--accent);
  color: #fff;
  font-weight: 700;
  font-size: 11px;
  letter-spacing: 0.5px;
}
.homeNavUserPill span:last-child {
  overflow: hidden;
  text-overflow: ellipsis;
}

/* -- Hero -- */
.heroSection {
  background: linear-gradient(135deg, rgba(124,58,237, 0.06) 0%, rgba(124, 58, 237, 0.04) 100%);
  border-bottom: 1px solid var(--bd);
}
.heroInner {
  max-width: 1200px;
  margin: 0 auto;
  padding: 40px 22px 44px;
  text-align: center;
}
.heroTitle {
  font-size: 40px;
  font-weight: 950;
  letter-spacing: -0.03em;
  line-height: 1.1;
  margin: 0 0 16px;
  color: var(--text);
}
.heroSub {
  font-size: 17px;
  color: var(--muted);
  max-width: 640px;
  margin: 0 auto;
  line-height: 1.5;
}

/* â”€â”€ Hero CTA Buttons â”€â”€ */
.heroCtas {
  display: flex;
  justify-content: center;
  gap: 12px;
  margin-top: 28px;
  flex-wrap: wrap;
}
.heroCtaBtn {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 14px 32px;
  border-radius: 12px;
  font-size: 16px;
  font-weight: 800;
  text-decoration: none;
  transition: background 0.2s, transform 0.15s;
}
.heroCtaBtn:hover { transform: translateY(-1px); }
.heroCtaPrimary {
  background: var(--accent);
  color: #fff;
}
.heroCtaPrimary:hover { background: #6d28d9; }
.heroCtaSecondary {
  background: var(--card);
  color: var(--accent);
  border: 2px solid var(--accent);
}
.heroCtaSecondary:hover { background: rgba(124,58,237,0.06); }

/* ── Audience Toggle ── */
.audienceToggle {
  display: inline-flex;
  position: relative;
  background: rgba(124,58,237, 0.08);
  border-radius: 12px;
  padding: 4px;
  margin-bottom: 32px;
}
.audBtn {
  position: relative;
  z-index: 2;
  padding: 10px 28px;
  border: none;
  background: transparent;
  font-size: 15px;
  font-weight: 800;
  color: var(--muted);
  cursor: pointer;
  border-radius: 10px;
  transition: color 0.2s;
  white-space: nowrap;
}
.audBtn:hover {
  color: var(--text);
}
.audBtnActive {
  color: #fff !important;
  background: var(--accent);
  box-shadow: 0 2px 8px rgba(124,58,237, 0.3);
  border-radius: 10px;
  transition: background 0.2s, box-shadow 0.2s;
}

/* Hero skip-to buttons */
.heroSkipBtns {
  display: flex;
  justify-content: center;
  gap: 10px;
  margin-top: 24px;
  flex-wrap: wrap;
}
.heroSkip {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 8px 18px;
  border: 1px solid var(--bd);
  border-radius: 999px;
  background: var(--card);
  color: var(--text);
  font-size: 13px;
  font-weight: 700;
  text-decoration: none;
  transition: border-color 0.15s, box-shadow 0.15s;
}
.heroSkip:hover {
  border-color: rgba(124,58,237, 0.35);
  box-shadow: 0 2px 12px rgba(124,58,237, 0.1);
  color: var(--accent);
}

.heroContent {
  transition: opacity 0.15s ease;
}

/* ── Audience Tracks ── */
.audTrack {
  transition: opacity 0.15s ease;
}

/* ── Audience Sections ── */
.audSection {
  padding: 60px 0;
}
.audSectionAlt {
  background: var(--card);
  border-top: 1px solid var(--bd);
  border-bottom: 1px solid var(--bd);
}
.audSectionInner {
  max-width: 1100px;
  margin: 0 auto;
  padding: 0 22px;
}
.audSectionBadge {
  display: inline-block;
  padding: 6px 16px;
  border-radius: 999px;
  background: rgba(124,58,237, 0.08);
  color: var(--accent);
  font-size: 13px;
  font-weight: 800;
  margin-bottom: 16px;
}
.audSectionTitle {
  font-size: 30px;
  font-weight: 950;
  letter-spacing: -0.02em;
  color: var(--text);
  margin: 0 0 10px;
}
.audSectionSub {
  font-size: 16px;
  color: var(--muted);
  line-height: 1.6;
  margin: 0 0 36px;
}

/* ── Audience Feature Grids ── */
.audFeatureGrid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 20px;
}
.audFeatureGrid3 {
  grid-template-columns: repeat(3, 1fr);
}
.audFeatureCard {
  background: var(--bg);
  border: 1px solid var(--bd);
  border-radius: 14px;
  padding: 24px 22px;
  transition: border-color 0.15s, box-shadow 0.15s;
}
.audSectionAlt .audFeatureCard {
  background: var(--bg);
}
.audFeatureCard:hover {
  border-color: rgba(124,58,237, 0.25);
  box-shadow: 0 4px 20px rgba(124,58,237, 0.06);
}
.audFeatureIcon {
  font-size: 28px;
  margin-bottom: 12px;
}
.audFeatureName {
  font-weight: 900;
  font-size: 16px;
  color: var(--text);
  margin: 0 0 8px;
}
.audFeatureDesc {
  font-size: 14px;
  color: var(--muted);
  line-height: 1.6;
  margin: 0;
}
.audFeatureDesc a {
  color: var(--accent);
  font-weight: 700;
  text-decoration: none;
}
.audFeatureDesc a:hover {
  text-decoration: underline;
}

/* ── Blog Picks ── */
.blogPickGrid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 14px;
  margin-bottom: 20px;
}
.blogPickCard {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 16px 18px;
  background: var(--card);
  border: 1px solid var(--bd);
  border-radius: 12px;
  text-decoration: none;
  color: var(--text);
  text-align: left;
  transition: border-color 0.15s, box-shadow 0.15s;
}
.blogPickCard:hover {
  border-color: rgba(124,58,237, 0.3);
  box-shadow: 0 4px 16px rgba(124,58,237, 0.08);
}
.blogPickEmoji {
  font-size: 24px;
  flex-shrink: 0;
}
.blogPickTitle {
  font-size: 14px;
  font-weight: 800;
  line-height: 1.3;
}
.blogPickAll {
  display: inline-block;
  margin-top: 8px;
  font-size: 14px;
  font-weight: 700;
  color: var(--accent);
  text-decoration: none;
}
.blogPickAll:hover {
  text-decoration: underline;
}

/* ── How It Works (Directors) ── */
.howGrid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
  text-align: left;
}
.howStep {
  background: var(--card);
  border: 1px solid var(--bd);
  border-radius: 14px;
  padding: 28px 24px;
}
.howNum {
  width: 40px;
  height: 40px;
  border-radius: 50%;
  background: var(--accent);
  color: #fff;
  font-weight: 900;
  font-size: 18px;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 16px;
}
.howName {
  font-size: 18px;
  font-weight: 800;
  color: var(--text);
  margin-bottom: 10px;
}
.howDesc {
  font-size: 14px;
  color: var(--muted);
  line-height: 1.6;
}

/* ── Events Grid ── */
.eventsGrid {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  justify-content: center;
}
.eventTag {
  background: var(--card);
  border: 1px solid var(--bd);
  border-radius: 10px;
  padding: 10px 20px;
  font-size: 15px;
  font-weight: 700;
  color: var(--text);
}

/* ── Directory section ── */
.dirSection {
  padding: 0;
  border-top: 1px solid var(--bd);
}
.dirSectionTitle {
  font-size: 24px;
  font-weight: 950;
  color: var(--text);
  margin: 0 0 20px;
  letter-spacing: -0.02em;
}
.dirInner {
  max-width: 1200px;
  margin: 0 auto;
  padding: 40px 22px 48px;
}

/* Toolbar */
.dirToolbar {
  display: flex;
  gap: 10px;
  margin-bottom: 14px;
  flex-wrap: wrap;
}
.dirSearch {
  flex: 1;
  min-width: 220px;
}
.dirInput {
  width: 100%;
  padding: 12px 14px;
  border: 1px solid var(--bd);
  border-radius: 12px;
  background: var(--card);
  font-size: 14px;
  font-weight: 600;
  color: var(--text);
  outline: none;
  box-shadow: var(--shadow);
}
.dirInput:focus {
  border-color: rgba(124,58,237, 0.45);
  box-shadow: 0 0 0 3px rgba(124,58,237, 0.12);
}
.dirDateWrap {
  position: relative;
  width: 180px;
  flex-shrink: 0;
}
.dirDateInput {
  padding-right: 36px;
}
.dirDateClear {
  position: absolute;
  right: 8px;
  top: 50%;
  transform: translateY(-50%);
  border: none;
  background: none;
  font-size: 16px;
  color: var(--muted);
  cursor: pointer;
  padding: 4px;
  line-height: 1;
}
.dirDateClear:hover { color: #dc2626; }

.dirCount {
  font-size: 13px;
  font-weight: 700;
  color: var(--muted);
  margin-bottom: 10px;
  min-height: 20px;
}

/* -- Meet cards -- */
.dirList {
  display: flex;
  flex-direction: column;
  gap: 8px;
}
.dirMeetCard {
  display: flex;
  align-items: center;
  gap: 14px;
  padding: 14px 16px;
  background: var(--card);
  border: 1px solid var(--bd);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  text-decoration: none;
  color: var(--text);
  transition: border-color 0.15s, box-shadow 0.15s;
}
.dirMeetCard:hover {
  border-color: rgba(124,58,237, 0.35);
  box-shadow: 0 10px 30px rgba(124,58,237, 0.08);
}

.dirLogo {
  width: 52px;
  height: 52px;
  border-radius: 12px;
  border: 1px solid var(--bd);
  background: var(--card);
  object-fit: contain;
  flex-shrink: 0;
}
.dirLogoPlaceholder {
  width: 52px;
  height: 52px;
  border-radius: 12px;
  border: 1px solid var(--bd);
  background: var(--bg);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 24px;
  flex-shrink: 0;
}

.dirMeetInfo {
  flex: 1;
  min-width: 0;
}
.dirMeetName {
  font-weight: 900;
  font-size: 15px;
  line-height: 1.2;
  margin-bottom: 4px;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.dirMeetMeta {
  display: flex;
  flex-wrap: wrap;
  gap: 6px 14px;
  font-size: 13px;
  color: var(--muted);
  font-weight: 600;
  margin-bottom: 6px;
}
.dirMetaDate::before { content: "\1F4C5 "; }
.dirMetaLoc::before  { content: "\1F4CD "; }
.dirMetaFac::before  { content: "\1F3DF "; }

.dirMeetStats {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
}
.dirStatPill {
  display: inline-block;
  padding: 3px 10px;
  border-radius: 999px;
  font-size: 11px;
  font-weight: 800;
  background: rgba(124,58,237, 0.08);
  color: var(--accent);
}
.dirStatClass {
  background: rgba(124, 58, 237, 0.08);
  color: #7c3aed;
}

.dirMeetArrow {
  font-size: 22px;
  font-weight: 900;
  color: var(--muted);
  flex-shrink: 0;
}

/* Loading & empty */
.dirLoading {
  text-align: center;
  padding: 40px 0;
  color: var(--muted);
  font-weight: 700;
}
.dirError {
  text-align: center;
  padding: 40px 0;
  color: #dc2626;
  font-weight: 700;
}
.dirEmpty {
  text-align: center;
  padding: 48px 0;
}
.dirEmptyIcon {
  font-size: 40px;
  margin-bottom: 12px;
}
.dirEmptyText {
  font-weight: 900;
  font-size: 18px;
  margin-bottom: 6px;
}
.dirEmptySub {
  color: var(--muted);
  font-size: 14px;
}

/* -- CTA section -- */
.ctaSection {
  padding: 0;
}

/* ── Features Section ── */
.featSection {
  padding: 60px 0;
  border-top: 1px solid var(--bd);
}
.featInner {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 22px;
}
.featTitle {
  font-size: 30px;
  font-weight: 950;
  letter-spacing: -0.02em;
  color: var(--text);
  text-align: center;
  margin: 0 0 10px;
}
.featSub {
  font-size: 16px;
  color: var(--muted);
  text-align: center;
  line-height: 1.6;
  max-width: 680px;
  margin: 0 auto 36px;
}
.featGrid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 20px;
}
.featCard {
  background: var(--card);
  border: 1px solid var(--bd);
  border-radius: 14px;
  padding: 24px 22px;
  transition: border-color 0.15s, box-shadow 0.15s;
}
.featCard:hover {
  border-color: rgba(124,58,237, 0.25);
  box-shadow: 0 4px 20px rgba(124,58,237, 0.06);
}
.featIcon {
  font-size: 28px;
  margin-bottom: 12px;
}
.featName {
  font-weight: 900;
  font-size: 16px;
  color: var(--text);
  margin: 0 0 8px;
}
.featDesc {
  font-size: 14px;
  color: var(--muted);
  line-height: 1.6;
  margin: 0;
}
.featDesc a {
  color: var(--accent);
  font-weight: 700;
  text-decoration: none;
}
.featDesc a:hover {
  text-decoration: underline;
}

/* ── Who Uses FieldSync ── */
.usersSection {
  padding: 60px 0;
  background: var(--card);
  border-top: 1px solid var(--bd);
  border-bottom: 1px solid var(--bd);
}
.usersInner {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 22px;
}
.usersTitle {
  font-size: 30px;
  font-weight: 950;
  letter-spacing: -0.02em;
  color: var(--text);
  text-align: center;
  margin: 0 0 36px;
}
.usersGrid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 20px;
}
.usersCard {
  background: var(--bg);
  border: 1px solid var(--bd);
  border-radius: 14px;
  padding: 28px 24px;
}
.usersRole {
  font-size: 18px;
  font-weight: 900;
  color: var(--accent);
  margin: 0 0 10px;
}
.usersDesc {
  font-size: 14px;
  color: var(--muted);
  line-height: 1.6;
  margin: 0;
}

/* ── Supported Events ── */
.eventsSection {
  padding: 60px 0;
  border-top: 1px solid var(--bd);
}
.eventsInner {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 22px;
  text-align: center;
}
.eventsTitle {
  font-size: 30px;
  font-weight: 950;
  letter-spacing: -0.02em;
  color: var(--text);
  margin: 0 0 10px;
}
.eventsSub {
  font-size: 16px;
  color: var(--muted);
  line-height: 1.6;
  max-width: 680px;
  margin: 0 auto 28px;
}
.ctaInner {
  max-width: 1200px;
  margin: 0 auto;
  padding: 56px 22px;
  text-align: center;
}
.ctaTitle {
  font-size: 28px;
  font-weight: 950;
  letter-spacing: -0.02em;
  margin: 0 0 10px;
}
.ctaSub {
  font-size: 16px;
  color: var(--muted);
  margin: 0 0 28px;
}
.ctaBtns {
  display: flex;
  justify-content: center;
  gap: 12px;
  flex-wrap: wrap;
}
.ctaBtn {
  display: inline-block;
  padding: 14px 28px;
  border-radius: 12px;
  font-size: 15px;
  font-weight: 800;
  text-decoration: none;
  transition: background 0.15s, border-color 0.15s;
}
.ctaBtnPrimary {
  background: var(--accent);
  color: #fff;
}
.ctaBtnPrimary:hover {
  background: #6d28d9;
}
.ctaBtnSecondary {
  border: 1px solid var(--bd);
  background: var(--card);
  color: var(--text);
}
.ctaBtnSecondary:hover {
  border-color: rgba(124,58,237, 0.35);
}

/* -- Footer -- */
.homeFooter {
  border-top: 1px solid var(--bd);
}
.homeFooterInner {
  max-width: 1200px;
  margin: 0 auto;
  padding: 20px 22px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 12px;
}
.homeFooterBrand {
  font-weight: 900;
  font-size: 14px;
  color: var(--text);
}
.homeFooterLinks {
  display: flex;
  gap: 18px;
  flex-wrap: wrap;
}
.homeFooterLinks a {
  font-size: 13px;
  color: var(--muted);
  text-decoration: none;
}
.homeFooterLinks a:hover {
  color: var(--accent);
}
.homeFooterMuted {
  font-size: 13px;
  color: var(--muted);
}

/* ── Utility ── */
.hidden { display: none !important; }

/* ── Responsive ── */
@media (max-width: 900px) {
  .audFeatureGrid3 { grid-template-columns: repeat(2, 1fr); }
  .blogPickGrid { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 800px) {
  .heroTitle { font-size: 30px; }
  .heroSub { font-size: 15px; }
  .audFeatureGrid { grid-template-columns: 1fr; }
  .audFeatureGrid3 { grid-template-columns: 1fr; }
  .featGrid { grid-template-columns: 1fr; }
  .usersGrid { grid-template-columns: 1fr; }
  .howGrid { grid-template-columns: 1fr; }
  .blogPickGrid { grid-template-columns: 1fr; }
  .dirDateWrap { width: 100%; }
  .audSectionTitle { font-size: 24px; }
  .audSection { padding: 44px 0; }
  .featTitle, .usersTitle, .eventsTitle { font-size: 24px; }
  .featSection, .usersSection, .eventsSection { padding: 44px 0; }
}
@media (max-width: 540px) {
  .heroInner { padding: 28px 16px 32px; }
  .audBtn { padding: 8px 16px; font-size: 13px; }
  .heroSkipBtns { gap: 6px; }
  .heroSkip { padding: 6px 12px; font-size: 12px; }
  .dirMeetCard { flex-wrap: wrap; }
  .dirMeetArrow { display: none; }
  .homeNavLinks { gap: 4px; }
  .homeNavLink { display: none; }
  #navMyHub:not(.hidden) { display: inline !important; }
  #navServices { display: inline !important; }
  .homeNavBtn { padding: 4px 10px; font-size: 12px; }
  .mobileHide { display: none; }
  #navAccountName { display: none; }
  .homeNavUserPill { padding: 4px; gap: 0; }
  .homeFooterInner { flex-direction: column; text-align: center; }
}

/* PWA standalone mode: simplified nav — only "My Hub" + Services + account pill */
@media (display-mode: standalone) {
  .homeNavLink:not(#navMyHub):not(#navServices) { display: none !important; }
  .homeNavBtn { display: none !important; }
  #navMyHub:not(.hidden) { display: inline !important; }
  #navServices { display: inline !important; }
}

/*  Download CTA card in directors section  */
.audFeatureCardCta {
  border-color: rgba(124,58,237, 0.2);
  background: linear-gradient(135deg, rgba(124,58,237, 0.04) 0%, var(--bg) 100%);
}
.audFeatureLink {
  display: inline-block;
  margin-top: 12px;
  padding: 8px 20px;
  border-radius: 10px;
  background: var(--accent);
  color: #fff;
  font-size: 13px;
  font-weight: 800;
  text-decoration: none;
  transition: background 0.15s;
}
.audFeatureLink:hover {
  background: #6d28d9;
}

/* ── Dark-mode overrides ── */
[data-theme="dark"] .dirStatClass { color: var(--accent) }

/*
   ============================================
   ANIMATIONS & MICRO-INTERACTIONS
   ============================================ */

/* --- Keyframes --- */
@keyframes fadeInUp {
  from { opacity: 0; transform: translateY(28px); }
  to   { opacity: 1; transform: translateY(0); }
}
@keyframes fadeIn {
  from { opacity: 0; }
  to   { opacity: 1; }
}
@keyframes scaleIn {
  from { opacity: 0; transform: scale(0.92); }
  to   { opacity: 1; transform: scale(1); }
}
@keyframes shimmer {
  0%   { background-position: -200% center; }
  100% { background-position: 200% center; }
}
@keyframes pulseGlow {
  0%, 100% { box-shadow: 0 0 0 0 rgba(124,58,237,0.25); }
  50%      { box-shadow: 0 0 20px 4px rgba(124,58,237,0.15); }
}
@keyframes float {
  0%, 100% { transform: translateY(0); }
  50%      { transform: translateY(-6px); }
}
@keyframes countUp {
  from { transform: scale(0.5) rotateY(90deg); opacity: 0; }
  to   { transform: scale(1) rotateY(0deg); opacity: 1; }
}
@keyframes gradientShift {
  0%   { background-position: 0% 50%; }
  50%  { background-position: 100% 50%; }
  100% { background-position: 0% 50%; }
}
@keyframes iconBounce {
  0%, 100% { transform: scale(1); }
  50%      { transform: scale(1.18); }
}

:root { --ease-out-expo: cubic-bezier(0.22, 1, 0.36, 1); }

/* --- Nav: glassmorphism + scroll shadow --- */
.homeNav {
  background: rgba(255,255,255,0.82);
  backdrop-filter: blur(16px) saturate(1.8);
  -webkit-backdrop-filter: blur(16px) saturate(1.8);
  transition: box-shadow 0.35s, background 0.35s;
}
.homeNav.scrolled {
  box-shadow: 0 4px 30px rgba(0,0,0,0.08);
}
[data-theme="dark"] .homeNav {
  background: rgba(24,24,27,0.82);
}
[data-theme="dark"] .homeNav.scrolled {
  box-shadow: 0 4px 30px rgba(0,0,0,0.25);
}

/* --- Hero entrance (staggered) --- */
.heroInner > .audienceToggle,
.heroContent .heroTitle,
.heroContent .heroSub,
.heroContent .heroSkipBtns,
.heroContent .heroCtas {
  opacity: 0;
  animation: fadeInUp 0.8s var(--ease-out-expo) forwards;
}
.heroInner > .audienceToggle { animation-delay: 0.1s; }
.heroTitle        { animation-delay: 0.25s; }
.heroSub          { animation-delay: 0.4s; }
.heroSkipBtns     { animation-delay: 0.55s; }
.heroCtas         { animation-delay: 0.7s; }

/* Hero gradient accent line */
.heroSection { position: relative; overflow: hidden; }
.heroSection::after {
  content: '';
  position: absolute;
  bottom: 0; left: 0; right: 0;
  height: 3px;
  background: linear-gradient(90deg, transparent, var(--accent), #a78bfa, var(--accent), transparent);
  background-size: 200% 100%;
  animation: shimmer 4s linear infinite;
}

/* --- Audience Toggle --- */
.audBtnActive { transition: background 0.3s, box-shadow 0.3s, color 0.15s; }
.audBtn       { transition: color 0.2s, background 0.3s; }

/*
   ============================================
   SCROLL-TRIGGERED ENTRANCE ANIMATIONS
   Elements start hidden; .in-view on parent
   section fires staggered entrances.
   ============================================ */

/* Section headings */
.audSection .audSectionBadge,
.audSection .audSectionTitle,
.audSection .audSectionSub { opacity: 0; }

.audSection.in-view .audSectionBadge {
  animation: fadeInUp 0.55s var(--ease-out-expo) 0s both;
}
.audSection.in-view .audSectionTitle {
  animation: fadeInUp 0.55s var(--ease-out-expo) 0.08s both;
}
.audSection.in-view .audSectionSub {
  animation: fadeInUp 0.55s var(--ease-out-expo) 0.14s both;
}

/* Feature cards */
.audFeatureCard { opacity: 0; }
.audSection.in-view .audFeatureCard {
  animation: fadeInUp 0.5s var(--ease-out-expo) both;
}
.audSection.in-view .audFeatureCard:nth-child(1)  { animation-delay: 0.12s; }
.audSection.in-view .audFeatureCard:nth-child(2)  { animation-delay: 0.20s; }
.audSection.in-view .audFeatureCard:nth-child(3)  { animation-delay: 0.28s; }
.audSection.in-view .audFeatureCard:nth-child(4)  { animation-delay: 0.36s; }
.audSection.in-view .audFeatureCard:nth-child(5)  { animation-delay: 0.12s; }
.audSection.in-view .audFeatureCard:nth-child(6)  { animation-delay: 0.20s; }
.audSection.in-view .audFeatureCard:nth-child(7)  { animation-delay: 0.28s; }
.audSection.in-view .audFeatureCard:nth-child(8)  { animation-delay: 0.36s; }
.audSection.in-view .audFeatureCard:nth-child(9)  { animation-delay: 0.44s; }
.audSection.in-view .audFeatureCard:nth-child(10) { animation-delay: 0.52s; }

/* How-It-Works steps */
.howStep { opacity: 0; }
.audSection.in-view .howStep {
  animation: fadeInUp 0.5s var(--ease-out-expo) both;
}
.audSection.in-view .howStep:nth-child(1) { animation-delay: 0.10s; }
.audSection.in-view .howStep:nth-child(2) { animation-delay: 0.22s; }
.audSection.in-view .howStep:nth-child(3) { animation-delay: 0.34s; }
.audSection.in-view .howNum {
  animation: countUp 0.6s var(--ease-out-expo) both;
}
.audSection.in-view .howStep:nth-child(1) .howNum { animation-delay: 0.15s; }
.audSection.in-view .howStep:nth-child(2) .howNum { animation-delay: 0.27s; }
.audSection.in-view .howStep:nth-child(3) .howNum { animation-delay: 0.39s; }

/* Event tags: wave entrance */
.eventTag { opacity: 0; }
.audSection.in-view .eventTag {
  animation: scaleIn 0.4s var(--ease-out-expo) both;
}
.audSection.in-view .eventTag:nth-child(1) { animation-delay: 0.05s; }
.audSection.in-view .eventTag:nth-child(2) { animation-delay: 0.10s; }
.audSection.in-view .eventTag:nth-child(3) { animation-delay: 0.15s; }
.audSection.in-view .eventTag:nth-child(4) { animation-delay: 0.20s; }
.audSection.in-view .eventTag:nth-child(5) { animation-delay: 0.25s; }
.audSection.in-view .eventTag:nth-child(6) { animation-delay: 0.30s; }
.audSection.in-view .eventTag:nth-child(7) { animation-delay: 0.35s; }
.audSection.in-view .eventTag:nth-child(8) { animation-delay: 0.40s; }
.audSection.in-view .eventTag:nth-child(9) { animation-delay: 0.45s; }

/* Blog picks */
.blogPickCard { opacity: 0; }
.audSection.in-view .blogPickCard {
  animation: fadeInUp 0.45s var(--ease-out-expo) both;
}
.audSection.in-view .blogPickCard:nth-child(1) { animation-delay: 0.04s; }
.audSection.in-view .blogPickCard:nth-child(2) { animation-delay: 0.08s; }
.audSection.in-view .blogPickCard:nth-child(3) { animation-delay: 0.12s; }
.audSection.in-view .blogPickCard:nth-child(4) { animation-delay: 0.16s; }
.audSection.in-view .blogPickCard:nth-child(5) { animation-delay: 0.20s; }
.audSection.in-view .blogPickCard:nth-child(6) { animation-delay: 0.24s; }
.audSection.in-view .blogPickCard:nth-child(7) { animation-delay: 0.28s; }
.audSection.in-view .blogPickCard:nth-child(8) { animation-delay: 0.32s; }
.audSection.in-view .blogPickCard:nth-child(9) { animation-delay: 0.36s; }

/* "View all articles" link */
.blogPickAll { opacity: 0; }
.audSection.in-view .blogPickAll {
  animation: fadeInUp 0.5s var(--ease-out-expo) 0.32s both;
}

/* CTA sections */
.ctaSection .ctaInner { opacity: 0; }
.ctaSection.in-view .ctaInner {
  animation: fadeInUp 0.6s var(--ease-out-expo) 0.1s both;
}

/* Meet Directory */
.dirSection .dirInner { opacity: 0; }
.dirSection.in-view .dirInner {
  animation: fadeInUp 0.6s var(--ease-out-expo) 0.1s both;
}

/*
   ============================================
   HOVER MICRO-INTERACTIONS
   ============================================ */

/* Feature Cards: enhanced hover */
.audFeatureCard {
  position: relative;
  overflow: hidden;
  transition: transform 0.3s var(--ease-out-expo),
              border-color 0.3s,
              box-shadow 0.3s var(--ease-out-expo);
  will-change: transform;
}
.audFeatureCard:hover {
  transform: translateY(-4px);
  border-color: rgba(124,58,237,0.3);
  box-shadow: 0 12px 40px rgba(124,58,237,0.10), 0 4px 12px rgba(0,0,0,0.04);
}
.audFeatureCard:hover .audFeatureIcon {
  animation: iconBounce 0.4s ease;
}

/* Gradient top-border accent on hover */
.audFeatureCard::before {
  content: '';
  position: absolute;
  top: 0; left: 0; right: 0;
  height: 3px;
  background: linear-gradient(90deg, var(--accent), #a78bfa);
  transform: scaleX(0);
  transform-origin: left;
  transition: transform 0.35s var(--ease-out-expo);
}
.audFeatureCard:hover::before {
  transform: scaleX(1);
}

/* Section Badge */
.audSectionBadge {
  transition: transform 0.3s, box-shadow 0.3s;
}

/* How Steps: hover lift */
.howStep {
  transition: transform 0.3s var(--ease-out-expo), box-shadow 0.3s;
}
.howStep:hover {
  transform: translateY(-4px);
  box-shadow: 0 12px 40px rgba(124,58,237,0.08);
}

/* Event Tags: hover accent */
.eventTag {
  transition: transform 0.2s, background 0.3s, color 0.3s, box-shadow 0.3s;
  cursor: default;
}
.eventTag:hover {
  transform: translateY(-2px) scale(1.05);
  background: var(--accent);
  color: #fff;
  box-shadow: 0 6px 20px rgba(124,58,237,0.2);
}

/* Blog Pick Cards: slide + glow */
.blogPickCard {
  transition: transform 0.3s var(--ease-out-expo),
              border-color 0.3s,
              box-shadow 0.3s;
}
.blogPickCard:hover {
  transform: translateY(-3px) translateX(2px);
  box-shadow: 0 8px 30px rgba(124,58,237,0.1);
}
.blogPickCard:hover .blogPickEmoji {
  animation: float 1.5s ease-in-out infinite;
}

/* "View all" link hover */
.blogPickAll {
  transition: color 0.2s;
  display: inline-block;
}
.blogPickAll:hover {
  color: var(--accent);
}

/* CTA Section: animated gradient background */
.ctaSection { position: relative; overflow: hidden; }
.ctaSection::before {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(135deg,
    rgba(124,58,237,0.04) 0%,
    rgba(167,139,250,0.06) 25%,
    rgba(124,58,237,0.08) 50%,
    rgba(167,139,250,0.04) 75%,
    rgba(124,58,237,0.03) 100%);
  background-size: 300% 300%;
  animation: gradientShift 8s ease infinite;
  z-index: 0;
}
.ctaInner { position: relative; z-index: 1; }

/* CTA & Hero buttons: hover lift */
.ctaBtnPrimary,
.heroCtaPrimary {
  transition: background 0.2s, transform 0.2s, box-shadow 0.3s;
}
.ctaBtnPrimary:hover,
.heroCtaPrimary:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 30px rgba(124,58,237,0.3);
}

/* Meet cards: hover slide */
.dirMeetCard {
  transition: transform 0.3s var(--ease-out-expo),
              border-color 0.3s,
              box-shadow 0.3s;
}
.dirMeetCard:hover {
  transform: translateX(4px);
}

/* Footer: subtle entrance */
.homeFooter {
  opacity: 0;
  animation: fadeIn 0.8s ease 0.3s forwards;
}

/* Download CTA card: shimmer border */
.audFeatureCardCta { position: relative; }
.audFeatureCardCta::after {
  content: '';
  position: absolute;
  inset: -1px;
  border-radius: 15px;
  padding: 1px;
  background: linear-gradient(135deg, var(--accent), #a78bfa, var(--accent));
  background-size: 200% 200%;
  animation: gradientShift 4s ease infinite;
  -webkit-mask: linear-gradient(#fff 0 0) content-box, linear-gradient(#fff 0 0);
  -webkit-mask-composite: xor;
  mask-composite: exclude;
  pointer-events: none;
  z-index: 0;
}

/* --- Reduced motion --- */
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
  }
  .audSection .audSectionBadge,
  .audSection .audSectionTitle,
  .audSection .audSectionSub,
  .audFeatureCard,
  .howStep,
  .eventTag,
  .blogPickCard,
  .blogPickAll,
  .ctaSection .ctaInner,
  .dirSection .dirInner,
  .homeFooter {
    opacity: 1 !important;
    transform: none !important;
  }
}

/* ── PWA install card ── */
.pwa-install-card .audFeatureLink {
  animation: pwaGlow 2.5s ease-in-out infinite;
}
@keyframes pwaGlow {
  0%, 100% { box-shadow: 0 0 0 0 rgba(124,58,237, 0); }
  50% { box-shadow: 0 0 12px 2px rgba(124,58,237, 0.35); }
}
.pwa-install-card .audFeatureIcon { font-size: 2rem; }
.pwa-footer-install {
  color: var(--accent, #7c3aed) !important;
  font-weight: 600;
}
