/**
 * Guest home — immersive conversion funnel landing
 */

.home-funnel {
  --hf-ink: #0b1f2a;
  --hf-muted: #5b6b75;
  --hf-soft: #f3f7fa;
  --hf-line: #d9e2e8;
  --hf-primary: #046fad;
  --hf-primary-dark: #034e7a;
  --hf-ease: cubic-bezier(0.22, 1, 0.36, 1);
  --hf-nav-h: 72px;
  color: var(--hf-ink);
  /* Fixed onboarding navbar sits on top — keep hero fully visible below it */
  padding-top: var(--hf-nav-h);
}

.hf-reveal {
  opacity: 0;
  transform: translateY(22px);
  transition: opacity 0.7s var(--hf-ease), transform 0.7s var(--hf-ease);
}

.hf-reveal.is-in {
  opacity: 1;
  transform: translateY(0);
}

/* ── Hero ───────────────────────────────────────────────── */
.hf-hero {
  position: relative;
  min-height: calc(100vh - var(--hf-nav-h));
  display: flex;
  align-items: flex-end;
  padding: 3.25rem 1.5rem 4rem;
  color: #fff;
  overflow: hidden;
  isolation: isolate;
  background:
    radial-gradient(90% 70% at 85% 10%, rgba(10, 143, 219, 0.4) 0%, transparent 55%),
    linear-gradient(165deg, #046fad 0%, #023a5c 48%, #011f33 100%);
}

.hf-hero::before {
  content: "";
  position: absolute;
  inset: 0;
  background-image:
    linear-gradient(rgba(255, 255, 255, 0.05) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255, 255, 255, 0.05) 1px, transparent 1px);
  background-size: 56px 56px;
  opacity: 0.35;
  z-index: 0;
  pointer-events: none;
}

.hf-hero-media {
  position: absolute;
  inset: 0;
  z-index: 0;
}

.hf-hero-media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center top;
  opacity: 0.3;
  mix-blend-mode: luminosity;
  transform: scale(1.02);
  transform-origin: center top;
  transition: transform 8s var(--hf-ease);
}

.hf-hero:hover .hf-hero-media img {
  transform: scale(1.08);
}

.hf-hero-scrim {
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, rgba(1, 31, 51, 0.2) 0%, rgba(1, 31, 51, 0.68) 50%, rgba(1, 20, 35, 0.94) 100%);
  z-index: 1;
  pointer-events: none;
}

.hf-hero-inner {
  position: relative;
  z-index: 2;
  max-width: 42rem;
  width: 100%;
  animation: hfRise 0.75s var(--hf-ease) both;
}

@media (min-width: 992px) {
  .hf-hero {
    padding: 4rem clamp(2rem, 6vw, 5rem) 4.5rem;
  }

  .hf-hero-inner {
    margin-left: clamp(0rem, 4vw, 3rem);
  }
}

@keyframes hfRise {
  from { opacity: 0; transform: translateY(18px); }
  to { opacity: 1; transform: translateY(0); }
}

.hf-brand {
  font-family: "Poppins", sans-serif;
  font-weight: 700;
  font-size: clamp(2.75rem, 7vw, 4.5rem);
  letter-spacing: -0.045em;
  line-height: 0.95;
  margin: 0 0 1.15rem;
  text-shadow: 0 2px 24px rgba(0, 0, 0, 0.25);
}

.hf-headline {
  font-family: "Poppins", sans-serif;
  font-weight: 600;
  font-size: clamp(1.35rem, 3vw, 1.75rem);
  letter-spacing: -0.02em;
  line-height: 1.25;
  margin: 0 0 0.75rem;
  color: #f4f9fc;
}

.hf-support {
  margin: 0 0 1.75rem;
  max-width: 28rem;
  font-size: 1.05rem;
  line-height: 1.55;
  color: rgba(244, 249, 252, 0.88);
}

.hf-cta {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
}

.hf-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.45rem;
  padding: 0.9rem 1.35rem;
  border-radius: 0.9rem;
  font-weight: 650;
  font-size: 0.95rem;
  text-decoration: none;
  border: none;
  cursor: pointer;
  transition: transform 0.18s var(--hf-ease), background 0.18s ease, color 0.18s ease, border-color 0.18s ease;
}

.hf-btn:hover { transform: translateY(-1px); }

.hf-btn-primary {
  background: #fff;
  color: var(--hf-primary-dark);
  box-shadow: 0 14px 28px -16px rgba(0, 0, 0, 0.45);
}

.hf-btn-primary:hover { background: #f3f8fc; color: #023a5c; }

.hf-btn-ghost {
  background: transparent;
  color: #fff;
  border: 1.5px solid rgba(255, 255, 255, 0.45);
}

.hf-btn-ghost:hover {
  border-color: #fff;
  background: rgba(255, 255, 255, 0.08);
  color: #fff;
}

.hf-scroll-hint {
  position: absolute;
  z-index: 2;
  left: 50%;
  bottom: 1.25rem;
  transform: translateX(-50%);
  font-size: 0.75rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: rgba(255, 255, 255, 0.65);
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.35rem;
  animation: hfBounce 2.2s ease infinite;
}

.hf-scroll-hint i { font-size: 1rem; }

@keyframes hfBounce {
  0%, 100% { transform: translateX(-50%) translateY(0); }
  50% { transform: translateX(-50%) translateY(6px); }
}

/* ── Shared section chrome ──────────────────────────────── */
.hf-section {
  padding: clamp(3.25rem, 7vw, 5.5rem) 1.5rem;
}

.hf-section-inner {
  max-width: 1080px;
  margin: 0 auto;
}

.hf-section-kicker {
  font-size: 0.75rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--hf-primary);
  margin: 0 0 0.5rem;
}

.hf-section-title {
  font-family: "Poppins", sans-serif;
  font-size: clamp(1.55rem, 3.2vw, 2.1rem);
  letter-spacing: -0.03em;
  margin: 0 0 0.55rem;
  line-height: 1.15;
}

.hf-section-support {
  margin: 0 0 2rem;
  color: var(--hf-muted);
  max-width: 34rem;
  font-size: 1.02rem;
  line-height: 1.55;
}

/* ── Discover paths ─────────────────────────────────────── */
.hf-discover { background: var(--hf-soft); }

.hf-paths {
  display: grid;
  gap: 0;
  border-top: 1px solid var(--hf-line);
}

.hf-path {
  display: grid;
  grid-template-columns: 1fr auto;
  align-items: center;
  gap: 1rem;
  padding: 1.3rem 0.15rem;
  border-bottom: 1px solid var(--hf-line);
  text-decoration: none;
  color: inherit;
  transition: padding-left 0.2s var(--hf-ease), color 0.2s ease, background 0.2s ease;
}

.hf-path:hover {
  padding-left: 0.4rem;
  color: var(--hf-primary);
}

.hf-path-label {
  font-family: "Poppins", sans-serif;
  font-weight: 650;
  font-size: 1.2rem;
  letter-spacing: -0.02em;
  margin: 0 0 0.2rem;
}

.hf-path-desc {
  margin: 0;
  font-size: 0.92rem;
  color: var(--hf-muted);
  line-height: 1.45;
}

.hf-path-go {
  font-size: 1.25rem;
  color: var(--hf-primary);
  opacity: 0.75;
}

/* ── Moments (immersive story) ──────────────────────────── */
.hf-moments {
  background: #011f33;
  color: #fff;
  padding: 0;
}

.hf-moment {
  display: grid;
  grid-template-columns: 1fr;
  min-height: min(72vh, 560px);
  position: relative;
  overflow: hidden;
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
}

@media (min-width: 900px) {
  .hf-moment {
    grid-template-columns: 1.05fr 1fr;
  }

  .hf-moment:nth-child(even) .hf-moment-visual { order: 2; }
  .hf-moment:nth-child(even) .hf-moment-copy { order: 1; }
}

.hf-moment-visual {
  position: relative;
  min-height: 240px;
  background:
    radial-gradient(80% 80% at 30% 20%, rgba(10, 143, 219, 0.45) 0%, transparent 60%),
    linear-gradient(145deg, #034e7a, #011824);
}

.hf-moment-visual img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  opacity: 0.55;
  mix-blend-mode: soft-light;
}

.hf-moment-copy {
  display: flex;
  flex-direction: column;
  justify-content: center;
  padding: clamp(2rem, 5vw, 3.5rem);
}

.hf-moment-copy .hf-section-kicker { color: #7ec8ef; }

.hf-moment-copy .hf-section-title {
  color: #fff;
  margin-bottom: 0.75rem;
}

.hf-moment-copy .hf-section-support {
  color: rgba(232, 242, 250, 0.82);
  margin-bottom: 1.35rem;
}

.hf-moment-copy .hf-btn-ghost {
  align-self: flex-start;
}

/* ── Campuses covered ───────────────────────────────────── */
.hf-campuses {
  background: #fff;
}

.hf-campus-head {
  display: flex;
  flex-wrap: wrap;
  align-items: flex-end;
  justify-content: space-between;
  gap: 1rem;
  margin-bottom: 1.75rem;
}

.hf-campus-stats {
  display: flex;
  gap: 1.25rem;
  font-size: 0.9rem;
  color: var(--hf-muted);
}

.hf-campus-stats strong {
  display: block;
  font-family: "Poppins", sans-serif;
  font-size: 1.65rem;
  letter-spacing: -0.03em;
  color: var(--hf-ink);
  line-height: 1.1;
}

.hf-campus-tools {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
  margin-bottom: 1.25rem;
  position: sticky;
  top: 72px;
  z-index: 20;
  padding: 0.65rem 0;
  background: linear-gradient(180deg, #fff 70%, rgba(255, 255, 255, 0.92) 100%);
  transition: box-shadow 0.2s ease, padding 0.2s ease;
}

.hf-campuses.is-tools-sticky .hf-campus-tools,
.hf-campuses.is-search-focus .hf-campus-tools,
.hf-campuses.is-searching .hf-campus-tools {
  box-shadow: 0 10px 24px -18px rgba(3, 78, 122, 0.55);
}

.hf-campus-search-wrap {
  flex: 1 1 220px;
  min-width: 0;
  position: relative;
  display: flex;
  align-items: center;
}

.hf-campus-search-wrap > i {
  position: absolute;
  left: 0.95rem;
  color: var(--hf-muted);
  pointer-events: none;
  font-size: 0.95rem;
}

.hf-campus-search {
  width: 100%;
  border: 1.5px solid var(--hf-line);
  border-radius: 0.85rem;
  padding: 0.8rem 1rem 0.8rem 2.45rem;
  font-size: 0.95rem;
  font-family: inherit;
  background: var(--hf-soft);
  color: var(--hf-ink);
}

.hf-campus-search:focus {
  outline: none;
  border-color: var(--hf-primary);
  background: #fff;
  box-shadow: 0 0 0 3px rgba(4, 111, 173, 0.12);
}

.hf-campus-result {
  margin: -0.35rem 0 0.9rem;
  font-size: 0.88rem;
  color: var(--hf-muted);
}

.hf-campus-rail {
  display: grid;
  grid-template-columns: 1fr;
  gap: 0.65rem;
}

@media (min-width: 720px) {
  .hf-campus-rail {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

.hf-campus-tile {
  display: grid;
  grid-template-columns: auto 1fr auto;
  align-items: center;
  gap: 0.85rem 1rem;
  padding: 0.85rem 1rem;
  border-radius: 1rem;
  border: 1.5px solid var(--hf-line);
  background: var(--hf-soft);
  text-decoration: none;
  color: inherit;
  min-height: 0;
  transition: transform 0.2s var(--hf-ease), border-color 0.2s ease, box-shadow 0.2s ease, background 0.2s ease;
}

.hf-campus-tile:hover {
  transform: translateY(-2px);
  border-color: rgba(4, 111, 173, 0.45);
  background: #fff;
  box-shadow: 0 16px 28px -20px rgba(3, 78, 122, 0.45);
}

.hf-campus-tile.is-hidden { display: none; }

.hf-campus-tile.is-collapsed {
  display: none;
}

.hf-campus-rail.is-expanded .hf-campus-tile.is-collapsed,
.hf-campus-rail.is-searching .hf-campus-tile.is-collapsed:not(.is-hidden) {
  display: grid;
}

.hf-campus-more {
  margin-top: 1.5rem;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.65rem 1rem;
}

.hf-campus-mark {
  width: 3rem;
  height: 3rem;
  border-radius: 0.85rem;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
  flex-shrink: 0;
  background: linear-gradient(145deg, #046fad, #023a5c);
  color: #fff;
  font-family: "Poppins", sans-serif;
  font-weight: 700;
  font-size: 0.72rem;
  letter-spacing: -0.02em;
}

.hf-campus-mark img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.hf-campus-copy {
  display: flex;
  flex-direction: column;
  gap: 0.12rem;
  min-width: 0;
}

.hf-campus-name {
  font-family: "Poppins", sans-serif;
  font-weight: 650;
  font-size: 0.95rem;
  letter-spacing: -0.02em;
  line-height: 1.3;
  margin: 0;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.hf-campus-short {
  font-size: 0.82rem;
  font-weight: 600;
  color: var(--hf-primary);
  letter-spacing: -0.01em;
}

.hf-campus-meta {
  margin: 0;
  font-size: 0.75rem;
  color: var(--hf-muted);
}

.hf-campus-chevron {
  color: #9aa8b2;
  font-size: 0.95rem;
}

.hf-campus-empty {
  display: none;
  padding: 1.5rem 0;
  color: var(--hf-muted);
  font-size: 0.95rem;
}

.hf-campus-empty.is-visible { display: block; }

/* ── Ecosystem pulse / join hooks ───────────────────────── */
.hf-pulse {
  background:
    radial-gradient(70% 80% at 100% 0%, rgba(4, 111, 173, 0.08) 0%, transparent 55%),
    linear-gradient(180deg, #f3f7fa 0%, #eef4f8 100%);
}

.hf-pulse-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 0.75rem;
  margin: 1.75rem 0 1.85rem;
}

@media (min-width: 768px) {
  .hf-pulse-grid {
    grid-template-columns: repeat(4, minmax(0, 1fr));
  }
}

.hf-pulse-stat {
  display: flex;
  flex-direction: column;
  gap: 0.2rem;
  padding: 1.1rem 1rem;
  border-radius: 1rem;
  background: #fff;
  border: 1px solid var(--hf-line);
  text-decoration: none;
  color: inherit;
  transition: border-color 0.2s ease, transform 0.2s var(--hf-ease), box-shadow 0.2s ease;
}

.hf-pulse-stat:hover {
  border-color: rgba(4, 111, 173, 0.4);
  transform: translateY(-2px);
  box-shadow: 0 14px 24px -20px rgba(3, 78, 122, 0.5);
}

.hf-pulse-stat strong {
  font-family: "Poppins", sans-serif;
  font-size: 1.55rem;
  letter-spacing: -0.03em;
  line-height: 1.1;
  color: var(--hf-ink);
}

.hf-pulse-stat span {
  font-size: 0.82rem;
  color: var(--hf-muted);
}

.hf-hooks {
  display: grid;
  gap: 0.85rem;
}

@media (min-width: 900px) {
  .hf-hooks {
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 1rem;
  }
}

.hf-hook {
  padding: 1.35rem 1.2rem 1.25rem;
  border-radius: 1.15rem;
  background: #fff;
  border: 1px solid var(--hf-line);
  display: flex;
  flex-direction: column;
  gap: 0.45rem;
}

.hf-hook-tag {
  margin: 0;
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--hf-primary);
}

.hf-hook h3 {
  margin: 0;
  font-family: "Poppins", sans-serif;
  font-size: 1.05rem;
  letter-spacing: -0.02em;
  line-height: 1.3;
}

.hf-hook p {
  margin: 0 0 0.35rem;
  color: var(--hf-muted);
  font-size: 0.9rem;
  line-height: 1.55;
  flex: 1;
}

.hf-hook .hf-btn {
  align-self: flex-start;
  margin-top: 0.35rem;
}

/* ── How it works ───────────────────────────────────────── */
.hf-flow {
  background: var(--hf-soft);
}

.hf-steps {
  display: grid;
  gap: 1rem;
}

@media (min-width: 768px) {
  .hf-steps {
    grid-template-columns: repeat(3, 1fr);
    gap: 1.25rem;
  }
}

.hf-step {
  padding: 1.35rem 1.25rem;
  border-radius: 1.1rem;
  background: #fff;
  border: 1px solid var(--hf-line);
}

.hf-step-num {
  font-family: "Poppins", sans-serif;
  font-size: 2rem;
  font-weight: 700;
  letter-spacing: -0.04em;
  color: var(--hf-primary);
  line-height: 1;
  margin-bottom: 0.85rem;
}

.hf-step h3 {
  font-family: "Poppins", sans-serif;
  font-size: 1.1rem;
  margin: 0 0 0.4rem;
  letter-spacing: -0.02em;
}

.hf-step p {
  margin: 0;
  color: var(--hf-muted);
  font-size: 0.92rem;
  line-height: 1.5;
}

/* ── Convert bands ──────────────────────────────────────── */
.hf-convert {
  background: #fff;
  border-top: 1px solid #e6eef4;
}

.hf-convert-inner { max-width: 720px; }

.hf-btn-solid {
  background: var(--hf-primary);
  color: #fff;
  box-shadow: 0 12px 24px -14px rgba(4, 111, 173, 0.75);
}

.hf-btn-solid:hover { background: var(--hf-primary-dark); color: #fff; }

.hf-btn-text {
  background: transparent;
  color: var(--hf-primary);
  padding-left: 0.85rem;
  padding-right: 0.85rem;
}

.hf-btn-text:hover {
  color: var(--hf-primary-dark);
  background: rgba(4, 111, 173, 0.06);
}

.hf-finale {
  position: relative;
  overflow: hidden;
  isolation: isolate;
  color: #fff;
  background: linear-gradient(155deg, #046fad 0%, #023a5c 55%, #011824 100%);
  padding: clamp(3.5rem, 8vw, 6rem) 1.5rem;
  text-align: center;
}

.hf-finale::before {
  content: "";
  position: absolute;
  inset: 0;
  background-image:
    linear-gradient(rgba(255, 255, 255, 0.05) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255, 255, 255, 0.05) 1px, transparent 1px);
  background-size: 48px 48px;
  opacity: 0.35;
  z-index: 0;
}

.hf-finale-inner {
  position: relative;
  z-index: 1;
  max-width: 36rem;
  margin: 0 auto;
}

.hf-finale .hf-section-kicker { color: #9fd4f2; }

.hf-finale .hf-section-title {
  color: #fff;
  margin-bottom: 0.75rem;
}

.hf-finale .hf-section-support {
  color: rgba(244, 249, 252, 0.86);
  margin: 0 auto 1.75rem;
}

.hf-finale .hf-cta { justify-content: center; }

.hf-footer {
  background: #011824;
  color: rgba(244, 249, 252, 0.78);
  padding: 2rem 1.5rem 2.5rem;
  border-top: 1px solid rgba(255, 255, 255, 0.08);
}

.hf-footer-inner {
  max-width: 56rem;
  margin: 0 auto;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.85rem;
  text-align: center;
}

.hf-footer-brand {
  margin: 0;
  font-family: Poppins, Inter, sans-serif;
  font-weight: 700;
  font-size: 1rem;
  letter-spacing: -0.02em;
  color: #fff;
}

.hf-footer-nav {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 0.55rem 1.25rem;
}

.hf-footer-nav a {
  color: rgba(244, 249, 252, 0.82);
  text-decoration: none;
  font-size: 0.9rem;
  font-weight: 500;
}

.hf-footer-nav a:hover {
  color: #fff;
  text-decoration: underline;
  text-underline-offset: 3px;
}

.hf-footer-copy {
  margin: 0.25rem 0 0;
  font-size: 0.8rem;
  color: rgba(244, 249, 252, 0.55);
}

@media (max-width: 640px) {
  .home-funnel { --hf-nav-h: 64px; }

  .hf-hero {
    min-height: calc(100vh - var(--hf-nav-h));
    padding: 2.5rem 1.15rem 3.5rem;
  }

  .hf-cta { flex-direction: column; align-items: stretch; }
  .hf-btn { width: 100%; }
  .hf-scroll-hint { display: none; }
  .hf-campus-stats { width: 100%; justify-content: space-between; }
}
