/* Shared homepage — waitlist + live product */

.home-page {
  overflow: hidden;
  --home-rail: 1120px;
  --home-gutter: clamp(20px, 4vw, 32px);
}

/* —— Hero —— */
.home-hero {
  position: relative;
  min-height: calc(100vh - var(--nav-height, 64px));
  min-height: calc(100svh - var(--nav-height, 64px));
  min-height: calc(100dvh - var(--nav-height, 64px));
  display: flex;
  align-items: center;
  color: var(--text-color);
  background: var(--brand-mist, #e8f4f4);
  box-sizing: border-box;
  overflow: hidden;
}

.home-hero-media {
  position: absolute;
  inset: 0;
  overflow: hidden;
  z-index: 0;
}

.home-hero-media::before {
  content: '';
  position: absolute;
  inset: -6%;
  background-image: var(--hero-image);
  background-size: cover;
  background-position: center 28%;
  background-repeat: no-repeat;
  animation: homeHeroZoom 22s ease-in-out alternate infinite;
  will-change: transform;
}

.home-hero-media img {
  display: none;
}

.home-hero-glow {
  position: absolute;
  inset: 0;
  z-index: 1;
  pointer-events: none;
  background:
    radial-gradient(ellipse 55% 60% at 88% 42%, rgba(255, 255, 255, 0.18), transparent 58%),
    radial-gradient(ellipse 45% 40% at 72% 78%, rgba(var(--accent-warm-rgb, 232, 163, 23), 0.28), transparent 60%),
    radial-gradient(ellipse 40% 50% at 8% 20%, rgba(13, 138, 138, 0.18), transparent 55%);
}

.home-hero-scrim {
  position: absolute;
  inset: 0;
  z-index: 1;
  pointer-events: none;
  background:
    linear-gradient(
      105deg,
      rgba(247, 251, 251, 0.96) 0%,
      rgba(247, 251, 251, 0.9) 26%,
      rgba(247, 251, 251, 0.55) 44%,
      rgba(247, 251, 251, 0.12) 62%,
      transparent 78%
    ),
    linear-gradient(
      180deg,
      rgba(232, 244, 244, 0.35) 0%,
      transparent 28%,
      transparent 72%,
      rgba(13, 138, 138, 0.14) 100%
    );
}

.home-hero-inner {
  position: relative;
  z-index: 2;
  width: min(640px, 100%);
  margin: 0;
  padding: clamp(40px, 8vw, 88px) clamp(24px, 6vw, 72px);
}

.home-brand {
  display: block;
  width: min(260px, 72vw);
  height: auto;
  margin: 0 0 22px;
  animation: homeRise 0.9s cubic-bezier(0.22, 1, 0.36, 1) both;
}

.home-kicker {
  margin: 0 0 12px;
  font-size: 0.84rem;
  font-weight: 700;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--primary-color);
  animation: homeRise 0.9s 0.06s cubic-bezier(0.22, 1, 0.36, 1) both;
}

.home-title {
  margin: 0 0 16px;
  font-family: var(--font-display);
  font-size: clamp(3rem, 6.5vw, 4.35rem);
  line-height: 1.02;
  font-weight: 400;
  color: var(--brand-ink, #0c2e2e);
  text-wrap: balance;
  animation: homeRise 0.9s 0.12s cubic-bezier(0.22, 1, 0.36, 1) both;
}

.home-lead {
  margin: 0 0 28px;
  font-size: clamp(1.08rem, 2vw, 1.28rem);
  line-height: 1.65;
  color: var(--text-secondary);
  max-width: 36ch;
  animation: homeRise 0.9s 0.18s cubic-bezier(0.22, 1, 0.36, 1) both;
}

.home-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  animation: homeRise 0.9s 0.24s cubic-bezier(0.22, 1, 0.36, 1) both;
}

.home-btn {
  min-height: 52px;
  padding: 14px 28px;
  border-radius: 999px;
  font-size: 1.05rem;
  font-weight: 600;
}

.home-btn-ghost {
  background: rgba(255, 255, 255, 0.72);
  color: var(--brand-ink, #0c2e2e);
  border: 1px solid rgba(13, 80, 80, 0.18);
  box-shadow: var(--shadow-sm);
  backdrop-filter: blur(8px);
}

.home-btn-ghost:hover,
.home-btn-ghost:focus-visible {
  background: #ffffff;
  color: var(--brand-ink, #0c2e2e);
  border-color: var(--primary-color);
  box-shadow: var(--shadow-md);
}

html.dark-theme .home-hero,
body.dark-theme .home-hero {
  background: #0e1818;
  color: #eef6f6;
}

html.dark-theme .home-hero-scrim,
body.dark-theme .home-hero-scrim {
  background:
    linear-gradient(
      105deg,
      rgba(14, 24, 24, 0.88) 0%,
      rgba(14, 24, 24, 0.72) 28%,
      rgba(14, 24, 24, 0.28) 48%,
      transparent 72%
    ),
    linear-gradient(180deg, rgba(43, 184, 184, 0.12) 0%, transparent 35%, rgba(14, 24, 24, 0.35) 100%);
}

html.dark-theme .home-kicker,
body.dark-theme .home-kicker {
  color: #7ecfcf;
}

html.dark-theme .home-title,
body.dark-theme .home-title {
  color: #ffffff;
}

html.dark-theme .home-lead,
body.dark-theme .home-lead {
  color: rgba(232, 244, 244, 0.88);
}

html.dark-theme .home-btn-ghost,
body.dark-theme .home-btn-ghost {
  background: rgba(255, 255, 255, 0.1);
  color: #fff;
  border-color: rgba(255, 255, 255, 0.55);
}

html.dark-theme .home-btn-ghost:hover,
html.dark-theme .home-btn-ghost:focus-visible,
body.dark-theme .home-btn-ghost:hover,
body.dark-theme .home-btn-ghost:focus-visible {
  background: rgba(255, 255, 255, 0.18);
  color: #fff;
  border-color: #fff;
}

@media (max-width: 1024px) {
  html.dark-theme .home-hero-scrim,
  body.dark-theme .home-hero-scrim {
    background:
      linear-gradient(
        180deg,
        rgba(14, 24, 24, 0.25) 0%,
        rgba(14, 24, 24, 0.55) 42%,
        rgba(14, 24, 24, 0.9) 100%
      ),
      radial-gradient(ellipse 70% 40% at 50% 100%, rgba(232, 163, 23, 0.14), transparent 55%);
  }
}

/* —— Shared sections —— */
.home-section {
  max-width: var(--home-rail, 1120px);
  margin: 0 auto;
  padding: clamp(52px, 9vw, 96px) var(--home-gutter, clamp(20px, 4vw, 32px));
  box-sizing: border-box;
  width: 100%;
}

.home-section-head {
  max-width: 40rem;
  margin-bottom: 32px;
}

.home-section-head h2 {
  margin: 0 0 12px;
  font-family: var(--font-display);
  font-size: clamp(2rem, 3.4vw, 2.65rem);
  line-height: 1.15;
  color: var(--text-color);
}

.home-section-head p {
  margin: 0;
  color: var(--text-secondary);
  font-size: 1.1rem;
  line-height: 1.65;
}

.home-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 18px;
}

.home-card {
  padding: 28px 24px;
  border-radius: 22px;
  background: var(--card-background);
  border: 1px solid var(--glass-border, var(--border-color));
  box-shadow: var(--shadow-md);
  transition: transform var(--transition-base, 0.2s ease), box-shadow var(--transition-base, 0.2s ease);
}

.home-card:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-lg);
}

.home-card-num {
  display: inline-block;
  margin-bottom: 14px;
  font-size: 0.78rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--primary-color);
  font-weight: 700;
}

.home-card h3 {
  margin: 0 0 10px;
  font-size: 1.35rem;
  color: var(--text-color);
}

.home-card p {
  margin: 0;
  color: var(--text-secondary);
  line-height: 1.55;
}

.home-card-link {
  margin-top: 16px;
}

.home-split {
  display: grid;
  grid-template-columns: 1.05fr 0.95fr;
  gap: clamp(24px, 5vw, 56px);
  align-items: center;
  max-width: var(--home-rail, 1120px);
  margin: 0 auto;
  padding: 0 var(--home-gutter, clamp(20px, 4vw, 32px)) clamp(52px, 9vw, 96px);
  box-sizing: border-box;
  width: 100%;
}

.home-split-panel {
  min-height: 300px;
  border-radius: 28px;
  padding: 40px 34px;
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  background:
    radial-gradient(circle at 80% 15%, rgba(255, 255, 255, 0.16), transparent 40%),
    linear-gradient(145deg, var(--primary-color), var(--secondary-color));
  color: #f4fbfb;
  box-shadow: var(--shadow-lg);
}

.home-split-panel p {
  margin: 0;
  font-family: var(--font-display);
  font-size: clamp(1.55rem, 2.6vw, 2rem);
  line-height: 1.25;
  max-width: 14ch;
}

.home-split-copy h2 {
  margin: 0 0 14px;
  font-family: var(--font-display);
  font-size: clamp(2rem, 3.2vw, 2.5rem);
  line-height: 1.15;
}

.home-split-copy p {
  margin: 0 0 14px;
  color: var(--text-secondary);
  line-height: 1.65;
  font-size: 1.08rem;
}

.home-list {
  margin: 18px 0 0;
  padding: 0;
  list-style: none;
}

.home-list li {
  position: relative;
  padding: 10px 0 10px 28px;
  color: var(--text-color);
  border-bottom: 1px solid var(--border-color);
}

.home-list li::before {
  content: '';
  position: absolute;
  left: 0;
  top: 1.15em;
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background: var(--primary-color);
}

.home-cta {
  padding: 0 clamp(20px, 4vw, 32px) 96px;
}

.home-cta-inner {
  max-width: 900px;
  margin: 0 auto;
  text-align: center;
  padding: clamp(44px, 6vw, 68px) clamp(24px, 5vw, 48px);
  border-radius: 28px;
  background:
    radial-gradient(ellipse 80% 70% at 50% 0%, rgba(13, 138, 138, 0.16), transparent 60%),
    var(--card-background);
  border: 1px solid var(--glass-border, var(--border-color));
  box-shadow: var(--shadow-lg);
}

.home-cta-inner h2 {
  margin: 0 0 12px;
  font-family: var(--font-display);
  font-size: clamp(2rem, 3.2vw, 2.55rem);
}

.home-cta-inner p {
  margin: 0 0 28px;
  color: var(--text-secondary);
  font-size: 1.1rem;
}

.home-cta-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  justify-content: center;
}

/* —— Live product extras —— */
.home-live-rail {
  width: 100%;
  max-width: var(--home-rail);
  margin-left: auto;
  margin-right: auto;
  padding-left: var(--home-gutter);
  padding-right: var(--home-gutter);
  box-sizing: border-box;
}

.home-metrics {
  display: grid;
  grid-template-columns: repeat(2, minmax(160px, 240px));
  gap: 14px;
  justify-content: start;
  max-width: var(--home-rail);
  width: 100%;
  margin: 0 auto;
  padding: clamp(28px, 5vw, 44px) var(--home-gutter) 0;
  position: relative;
  z-index: 2;
  box-sizing: border-box;
}

.home-metric {
  min-width: 0;
  padding: 18px 22px;
  border-radius: 18px;
  background: var(--card-background);
  border: 1px solid var(--glass-border, var(--border-color));
  box-shadow: var(--shadow-md);
  text-align: left;
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.home-metric strong {
  display: block;
  font-size: clamp(1.45rem, 2.4vw, 1.75rem);
  color: var(--primary-color);
  line-height: 1.15;
  font-variant-numeric: tabular-nums;
}

.home-metric span {
  font-size: 0.9rem;
  color: var(--text-secondary);
  line-height: 1.3;
}

.home-search-band {
  max-width: var(--home-rail);
  width: 100%;
  margin: 0 auto;
  padding: clamp(36px, 6vw, 56px) var(--home-gutter) 0;
  box-sizing: border-box;
}

.home-search-band .section-heading {
  text-align: left;
  font-family: var(--font-display);
  font-size: clamp(1.9rem, 3vw, 2.4rem);
  margin: 0 0 18px;
  color: var(--text-color);
}

.home-search-band .home-search-form {
  box-shadow: var(--shadow-lg);
  border-radius: 22px;
  border-color: var(--glass-border, var(--border-color));
  width: 100%;
  box-sizing: border-box;
}

/* Beat legacy index.css `section.featured-events` rules */
.home-page section.home-featured.featured-events,
.home-page .home-featured {
  max-width: var(--home-rail);
  width: 100%;
  margin: 0 auto;
  padding: clamp(40px, 7vw, 64px) var(--home-gutter) 0;
  box-sizing: border-box;
}

.home-page .home-featured .featured-events-header {
  display: flex;
  flex-wrap: wrap;
  align-items: baseline;
  justify-content: space-between;
  gap: 12px 20px;
  margin-bottom: 22px;
  width: 100%;
}

.home-page .home-featured .section-heading {
  font-family: var(--font-display);
  font-size: clamp(1.9rem, 3vw, 2.4rem);
  text-align: left;
  margin: 0;
  color: var(--text-color);
}

.home-page .home-featured .featured-events-grid {
  display: grid;
  grid-template-columns: repeat(5, minmax(0, 1fr));
  gap: 14px;
  width: 100%;
}

.home-page .home-section {
  max-width: var(--home-rail);
  width: 100%;
  box-sizing: border-box;
}

.home-page .home-split {
  max-width: var(--home-rail);
  width: 100%;
  box-sizing: border-box;
}

[data-home-reveal] {
  opacity: 0;
  transform: translateY(24px);
  transition:
    opacity 0.7s cubic-bezier(0.22, 1, 0.36, 1),
    transform 0.7s cubic-bezier(0.22, 1, 0.36, 1);
}

[data-home-reveal].is-visible {
  opacity: 1;
  transform: none;
}

@keyframes homeRise {
  from { opacity: 0; transform: translateY(22px); }
  to { opacity: 1; transform: none; }
}

@keyframes homeHeroZoom {
  from { transform: scale(1); }
  to { transform: scale(1.08); }
}

@media (max-width: 1024px) {
  .home-hero {
    align-items: flex-end;
    justify-content: center;
  }

  .home-hero-inner {
    width: 100%;
    text-align: center;
    display: flex;
    flex-direction: column;
    align-items: center;
    padding: clamp(28px, 6vw, 48px) clamp(18px, 5vw, 32px);
    padding-bottom: max(clamp(36px, 8vw, 56px), env(safe-area-inset-bottom, 0px));
  }

  .home-lead { max-width: 40ch; }
  .home-actions { justify-content: center; width: 100%; }
  .home-brand { margin-left: auto; margin-right: auto; }

  .home-hero-scrim {
    background:
      linear-gradient(
        180deg,
        rgba(247, 251, 251, 0.2) 0%,
        rgba(247, 251, 251, 0.45) 38%,
        rgba(247, 251, 251, 0.88) 68%,
        rgba(247, 251, 251, 0.96) 100%
      ),
      radial-gradient(
        ellipse 70% 45% at 50% 100%,
        rgba(var(--accent-warm-rgb, 232, 163, 23), 0.18),
        transparent 55%
      );
  }

  .home-hero-glow {
    background:
      radial-gradient(ellipse 70% 40% at 50% 0%, rgba(13, 138, 138, 0.12), transparent 55%),
      radial-gradient(ellipse 60% 35% at 50% 100%, rgba(var(--accent-warm-rgb, 232, 163, 23), 0.16), transparent 60%);
  }

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

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

  .home-page .home-featured .featured-events-grid {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }

  .home-split-panel {
    min-height: 220px;
  }
}

@media (max-width: 640px) {
  .home-brand {
    width: min(220px, 82vw);
    margin-bottom: 20px;
  }

  .home-kicker {
    font-size: 0.74rem;
    letter-spacing: 0.12em;
  }

  .home-title {
    font-size: clamp(2.35rem, 11vw, 3.1rem);
    margin-bottom: 14px;
  }

  .home-lead {
    font-size: 1.02rem;
    margin-bottom: 24px;
    max-width: 32ch;
  }

  .home-actions {
    flex-direction: column;
    align-items: stretch;
    gap: 10px;
  }

  .home-btn {
    width: 100%;
    min-height: 48px;
    padding: 12px 20px;
    font-size: 1rem;
    justify-content: center;
  }

  .home-section {
    padding: 44px 16px;
  }

  .home-section-head {
    margin-bottom: 22px;
    text-align: center;
  }

  .home-section-head h2 {
    font-size: clamp(1.75rem, 7vw, 2.15rem);
  }

  .home-section-head p {
    font-size: 1rem;
  }

  .home-card {
    padding: 22px 18px;
    border-radius: 18px;
  }

  .home-split {
    padding: 0 16px 44px;
    gap: 18px;
  }

  .home-split-panel {
    min-height: 180px;
    padding: 28px 22px;
    border-radius: 22px;
  }

  .home-split-panel p {
    max-width: none;
  }

  .home-cta {
    padding: 0 16px 72px;
  }

  .home-cta-inner {
    padding: 32px 18px;
    border-radius: 22px;
  }

  .home-cta-actions {
    flex-direction: column;
    align-items: stretch;
  }

  .home-cta-actions .home-btn {
    width: 100%;
  }

  .home-metrics {
    gap: 10px;
    padding-top: 24px;
    padding-left: 16px;
    padding-right: 16px;
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .home-metric {
    padding: 14px 14px;
  }

  .home-metric strong {
    font-size: 1.35rem;
  }

  .home-search-band,
  .home-page section.home-featured.featured-events,
  .home-page .home-featured {
    padding-top: 32px;
    padding-left: 16px;
    padding-right: 16px;
  }

  .home-search-band .section-heading,
  .home-page .home-featured .section-heading {
    font-size: clamp(1.65rem, 6.5vw, 2rem);
  }

  .home-page .home-featured .featured-events-header {
    flex-direction: column;
    align-items: flex-start;
  }

  .home-page .home-featured .featured-events-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 10px;
  }

  .home-search-band .home-search-form {
    flex-direction: column;
    padding: 14px;
    border-radius: 18px;
  }

  .home-search-field,
  .home-search-field--narrow {
    flex: 1 1 auto;
    min-width: 0;
    width: 100%;
  }

  .home-search-btn {
    width: 100%;
  }
}

@media (prefers-reduced-motion: reduce) {
  .home-brand,
  .home-kicker,
  .home-title,
  .home-lead,
  .home-actions,
  .home-hero-media::before {
    animation: none;
  }

  [data-home-reveal] {
    opacity: 1;
    transform: none;
    transition: none;
  }
}
