/* ── Home page — full-screen hero + scrollable content ───── */

html:has(body.is-home) {
  scroll-behavior: smooth;
}

body.is-home .public-main {
  min-height: 0;
}

body.is-home .public-navbar {
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  z-index: 20;
  background: transparent;
  border-bottom: none;
  box-shadow: none;
}

body.is-home .public-brand {
  /* Logo image — gold DBE mark stays visible on dark hero */
  filter: drop-shadow(0 2px 8px rgba(0, 0, 0, 0.35));
}

body.is-home .public-navbar .navbar-link {
  color: rgba(255, 255, 255, 0.88);
  font-weight: 500;
}

body.is-home .public-navbar .navbar-link:hover {
  color: #fff;
  background: rgba(255, 255, 255, 0.08);
}

body.is-home .public-user-trigger {
  color: rgba(255, 255, 255, 0.92);
}

body.is-home .public-user-trigger:hover,
body.is-home .public-user-menu:focus-within .public-user-trigger {
  background: rgba(255, 255, 255, 0.1);
  border-color: rgba(var(--color-primary-light-rgb), 0.35);
}

body.is-home .public-user-chevron {
  color: rgba(255, 255, 255, 0.65);
}

body.is-home .public-login-btn {
  background: rgba(255, 255, 255, 0.12);
  border: 1px solid rgba(var(--color-primary-light-rgb), 0.45);
  color: #fff;
}

body.is-home .public-login-btn:hover {
  background: rgba(255, 255, 255, 0.2);
  color: #fff;
}

/* Hero */

.home-hero {
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 6rem 1.5rem 4rem;
}

.home-hero__inner {
  width: 100%;
  max-width: 48rem;
  margin: 0 auto;
  text-align: center;
}

.home-hero__eyebrow {
  display: inline-block;
  margin-bottom: 1.25rem;
  padding: 0.35rem 0.9rem;
  border-radius: 999px;
  border: 1px solid rgba(var(--color-accent-rgb), 0.45);
  background: rgba(var(--color-accent-rgb), 0.18);
  color: var(--color-accent-light);
  font-size: 0.8rem;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.home-hero__title {
  margin: 0 0 1rem;
  font-size: clamp(3.25rem, 12vw, 6.5rem);
  font-weight: 800;
  line-height: 0.95;
  letter-spacing: -0.04em;
  color: #fff;
  text-shadow: 0 4px 48px rgba(var(--color-primary-light-rgb), 0.25);
}

.home-hero__title-accent {
  display: block;
  background: linear-gradient(135deg, #fff 0%, var(--color-accent-light) 55%, var(--color-accent) 100%);
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
}

.home-hero__subtitle {
  margin: 0 auto 2.25rem;
  max-width: 34rem;
  font-size: clamp(1.05rem, 2.5vw, 1.35rem);
  line-height: 1.55;
  color: rgba(255, 255, 255, 0.78);
}

.home-hero__actions {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: center;
  gap: 0.75rem;
}

.home-hero__actions .button {
  min-width: 10.5rem;
  font-weight: 600;
}

.home-hero__scroll {
  position: absolute;
  bottom: 2rem;
  left: 50%;
  z-index: 2;
  transform: translateX(-50%);
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.35rem;
  color: rgba(255, 255, 255, 0.5);
  font-size: 0.75rem;
  font-weight: 500;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  text-decoration: none;
  transition: color 0.2s ease;
}

.home-hero__scroll:hover {
  color: rgba(255, 255, 255, 0.85);
}

.home-hero__scroll-icon {
  display: block;
  width: 1.5rem;
  height: 1.5rem;
  border: 2px solid currentColor;
  border-radius: 999px;
  position: relative;
  animation: home-scroll-bounce 2s ease-in-out infinite;
}

.home-hero__scroll-icon::after {
  content: "";
  position: absolute;
  top: 0.35rem;
  left: 50%;
  width: 0.35rem;
  height: 0.35rem;
  margin-left: -0.175rem;
  border-right: 2px solid currentColor;
  border-bottom: 2px solid currentColor;
  transform: rotate(45deg);
}

@keyframes home-scroll-bounce {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(6px); }
}

/* Content below hero */

.home-content {
  background: var(--color-surface);
}

.home-featured {
  padding: 4.5rem 0 5rem;
}

.home-featured__header {
  display: flex;
  flex-wrap: wrap;
  align-items: flex-end;
  justify-content: space-between;
  gap: 1rem;
  margin-bottom: 2rem;
}

.home-featured__title {
  margin: 0;
  font-size: 1.75rem;
  font-weight: 700;
  color: var(--color-primary-dark);
}

.home-featured__link {
  font-size: 0.95rem;
  font-weight: 600;
  color: var(--color-primary);
  text-decoration: none;
}

.home-featured__link:hover {
  color: var(--color-primary-dark);
  text-decoration: underline;
}

/* How it works */

.home-section-title {
  margin: 0 0 0.5rem;
  font-size: 1.75rem;
  font-weight: 700;
  color: var(--color-primary-dark);
  text-align: center;
}

.home-section-lead {
  margin: 0 auto 2.5rem;
  max-width: 32rem;
  text-align: center;
  color: var(--color-text-muted);
  line-height: 1.55;
}

.home-steps {
  padding: 4rem 0 4.5rem;
  background: var(--color-surface-elevated);
  border-top: 1px solid rgba(var(--color-primary-rgb), 0.06);
}

.home-steps__grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.5rem;
}

.home-step-card {
  padding: 1.75rem 1.5rem;
  background: var(--color-surface);
  border: 1px solid rgba(var(--color-primary-rgb), 0.08);
  border-radius: var(--bulma-radius-large);
}

.home-step-card__num {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 2.25rem;
  height: 2.25rem;
  margin-bottom: 1rem;
  border-radius: 50%;
  background: linear-gradient(145deg, var(--color-primary), var(--color-primary-dark));
  color: #fff;
  font-size: 0.9rem;
  font-weight: 700;
}

.home-step-card__title {
  margin: 0 0 0.5rem;
  font-size: 1.05rem;
  font-weight: 700;
  color: var(--color-primary-dark);
}

.home-step-card__text {
  margin: 0;
  font-size: 0.9rem;
  line-height: 1.55;
  color: var(--color-text-muted);
}

/* CTA band */

.home-cta {
  min-height: 16rem;
  display: flex;
  align-items: center;
  padding: 4rem 1.5rem;
}

.home-cta__inner {
  text-align: center;
  max-width: 36rem;
  margin: 0 auto;
}

.home-cta__title {
  margin: 0 0 0.75rem;
  font-size: clamp(1.5rem, 4vw, 2rem);
  font-weight: 700;
  color: #fff;
}

.home-cta__text {
  margin: 0 0 1.5rem;
  color: rgba(255, 255, 255, 0.78);
  line-height: 1.55;
}

/* FAQ */

.home-faq {
  padding: 4rem 0 4.5rem;
}

.home-faq__container {
  max-width: 40rem;
}

.home-faq__list {
  margin-top: 2rem;
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
}

.home-faq__item {
  padding: 1rem 1.25rem;
  background: var(--color-surface-elevated);
  border: 1px solid rgba(var(--color-primary-rgb), 0.08);
  border-radius: var(--bulma-radius);
}

.home-faq__item summary {
  font-weight: 600;
  color: var(--color-primary-dark);
  cursor: pointer;
  list-style: none;
}

.home-faq__item summary::-webkit-details-marker {
  display: none;
}

.home-faq__item summary::after {
  content: "+";
  float: right;
  font-weight: 400;
  color: var(--color-text-muted);
}

.home-faq__item[open] summary::after {
  content: "−";
}

.home-faq__item p {
  margin: 0.75rem 0 0;
  font-size: 0.9rem;
  line-height: 1.55;
  color: var(--color-text-muted);
}

/* Footer */

.home-footer {
  padding: 2rem 0;
  background: var(--color-primary-dark);
  color: rgba(255, 255, 255, 0.75);
}

.home-footer__inner {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
}

.home-footer__brand {
  font-weight: 800;
  color: #fff;
  letter-spacing: -0.02em;
}

.home-footer__nav {
  display: flex;
  gap: 1.25rem;
}

.home-footer__nav a {
  color: rgba(255, 255, 255, 0.75);
  font-size: 0.9rem;
  text-decoration: none;
}

.home-footer__nav a:hover {
  color: #fff;
}

@media screen and (max-width: 768px) {
  .home-hero {
    padding-top: 5.5rem;
    padding-bottom: 5rem;
  }

  .home-hero__actions .button {
    width: 100%;
    min-width: 0;
  }

  .home-featured {
    padding: 3rem 0 3.5rem;
  }

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

  .home-steps,
  .home-faq {
    padding: 3rem 0;
  }

  .home-cta {
    padding: 3rem 1.5rem;
  }

  .home-footer__inner {
    flex-direction: column;
    text-align: center;
  }
}
