/* PR10: coherent, age-inclusive homepage hierarchy across portrait and landscape phones. */

.hero {
  min-height: min(860px, 100svh);
  padding: clamp(6.5rem, 11vw, 8.5rem) 0 clamp(3.5rem, 7vw, 5.5rem);
  background:
    linear-gradient(115deg, rgba(3, 8, 5, .88), rgba(3, 8, 5, .58) 48%, rgba(0, 0, 0, .86)),
    var(--hero-image);
}

.hero-content {
  width: min(1120px, 100%);
}

.hero-layout {
  display: grid;
  grid-template-columns: minmax(0, 1.35fr) minmax(250px, .65fr);
  gap: clamp(1.5rem, 5vw, 4rem);
  align-items: center;
  text-align: left;
}

.hero-copy,
.hero-aside {
  min-width: 0;
}

.hero-kicker {
  margin: 0 0 .75rem;
  color: var(--color-brand);
  font-size: clamp(.82rem, 1.8vw, 1rem);
  font-weight: 900;
  letter-spacing: .08em;
  text-transform: uppercase;
  text-align: left;
}

.hero h1 {
  max-width: 790px;
  margin: 0 0 1rem;
  font-size: clamp(3rem, 7.5vw, 6rem);
  line-height: .94;
  text-align: left;
}

.hero .subtitle {
  max-width: 720px;
  margin: 0 0 1.35rem;
  color: #f3f7f0;
  font-size: clamp(1rem, 2.2vw, 1.28rem);
  line-height: 1.55;
  text-align: left;
}

.hero-primary-actions,
.hero-secondary-actions {
  display: flex;
  flex-wrap: wrap;
  gap: .7rem;
  justify-content: flex-start;
}

.hero-primary-actions .btn {
  min-width: 180px;
}

.hero-secondary-actions {
  margin-top: .9rem;
}

.hero-secondary-actions a {
  display: inline-flex;
  align-items: center;
  min-height: 42px;
  padding: .45rem .2rem;
  color: #eff7eb;
  font-weight: 800;
  text-decoration: underline;
  text-decoration-color: rgba(159, 226, 45, .58);
  text-underline-offset: .28rem;
}

.hero-secondary-actions a:hover {
  color: var(--color-brand);
}

.hero-aside {
  padding: clamp(1.1rem, 3vw, 1.55rem);
  border: 1px solid rgba(159, 226, 45, .34);
  border-radius: 22px;
  background: rgba(4, 12, 7, .82);
  box-shadow: 0 24px 65px rgba(0, 0, 0, .42), inset 0 1px 0 rgba(255, 255, 255, .08);
  backdrop-filter: blur(16px);
}

.hero-facts {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: .7rem;
}

.hero-fact {
  min-width: 0;
  padding: .8rem;
  border: 1px solid rgba(255, 255, 255, .1);
  border-radius: 13px;
  background: rgba(255, 255, 255, .04);
  text-align: left;
}

.hero-fact strong,
.hero-fact span {
  display: block;
}

.hero-fact strong {
  margin-bottom: .18rem;
  color: var(--color-brand);
  font-size: .7rem;
  font-weight: 900;
  letter-spacing: .08em;
  text-transform: uppercase;
}

.hero-fact span {
  color: #fff;
  font-size: .9rem;
  font-weight: 800;
  line-height: 1.32;
}

#countdown {
  margin: 1rem 0 0;
  padding-top: .9rem;
  border-top: 1px solid rgba(255, 255, 255, .11);
  color: #eef7ea;
  font-size: clamp(.96rem, 2vw, 1.18rem);
  line-height: 1.35;
  text-align: left;
  text-shadow: none;
}

#countdown strong {
  color: var(--color-brand);
  font-size: 1.45em;
}

.homepage-purpose {
  max-width: 820px;
  margin: 1.25rem auto 0;
  padding: 1rem 1.15rem;
  border-left: 4px solid var(--color-brand);
  border-radius: 0 14px 14px 0;
  background: rgba(159, 226, 45, .075);
  color: #edf6e9;
  text-align: left;
}

.homepage-purpose strong {
  color: var(--color-brand);
}

.participate-grid--five {
  grid-template-columns: repeat(5, minmax(0, 1fr));
}

.static-proof-state {
  max-width: 760px;
  margin: 1.4rem auto;
  padding: 1.1rem 1.2rem;
  border: 1px dashed rgba(159, 226, 45, .3);
  border-radius: 15px;
  background: rgba(159, 226, 45, .05);
  color: var(--color-text-muted);
  text-align: center;
}

.static-proof-state strong {
  display: block;
  margin-bottom: .3rem;
  color: #fff;
}

#siteHeader nav {
  min-height: 72px;
}

#menuToggle {
  min-width: 96px;
  min-height: 48px;
}

@media (max-width: 1120px) {
  .participate-grid--five {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }
}

@media (max-width: 860px) {
  .hero {
    min-height: auto;
    padding: 6.4rem 0 3.5rem;
  }

  .hero-layout {
    grid-template-columns: 1fr;
    gap: 1.3rem;
  }

  .hero-copy,
  .hero h1,
  .hero .subtitle,
  .hero-kicker {
    text-align: center;
  }

  .hero-primary-actions,
  .hero-secondary-actions {
    justify-content: center;
  }

  .hero-aside {
    width: min(620px, 100%);
    margin-inline: auto;
  }

  #countdown {
    text-align: center;
  }

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

@media (max-width: 620px) {
  #siteHeader nav {
    min-height: 64px;
    padding-block: 8px;
  }

  #siteHeader .logo-image {
    height: 42px;
    max-width: 46px;
  }

  #siteHeader .logo {
    font-size: .98rem;
  }

  #menuToggle {
    top: 8px;
    right: 10px;
    min-width: 84px;
    min-height: 46px;
    padding: 8px 11px;
  }

  #navLinks {
    top: 66px;
    max-height: calc(100svh - 78px);
  }

  .hero {
    padding: 5.4rem 0 2.65rem;
    background:
      linear-gradient(180deg, rgba(3, 8, 5, .84), rgba(3, 8, 5, .58) 45%, rgba(1, 4, 2, .94)),
      var(--hero-image);
    background-position: center;
  }

  .hero-content.container {
    padding-inline: .8rem;
  }

  .hero-kicker {
    margin-bottom: .45rem;
    font-size: .74rem;
  }

  .hero h1 {
    margin-bottom: .75rem;
    font-size: clamp(2.6rem, 14vw, 4rem);
  }

  .hero .subtitle {
    margin-bottom: 1rem;
    font-size: 1rem;
    line-height: 1.48;
  }

  .hero-primary-actions {
    display: grid;
    grid-template-columns: 1fr 1fr;
    width: 100%;
  }

  .hero-primary-actions .btn {
    min-width: 0;
    width: 100%;
    padding-inline: .7rem;
  }

  .hero-secondary-actions {
    gap: 1rem;
  }

  .hero-aside {
    padding: .85rem;
    border-radius: 17px;
  }

  .hero-facts {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: .5rem;
  }

  .hero-fact {
    padding: .65rem;
  }

  .hero-fact span {
    font-size: .82rem;
  }

  #countdown {
    margin-top: .7rem;
    padding-top: .7rem;
    font-size: .88rem;
  }

  .participate-grid--five {
    grid-template-columns: 1fr;
  }
}

/* Landscape phones: actions must remain visible without scrolling past a giant hero. */
@media (max-height: 620px) and (orientation: landscape) and (max-width: 1100px) {
  #siteHeader nav {
    min-height: 58px;
    padding-block: 6px;
  }

  #siteHeader .logo-image {
    height: 40px;
    max-width: 44px;
  }

  #menuToggle {
    top: 6px;
    min-height: 44px;
  }

  #navLinks {
    top: 58px;
    max-height: calc(100svh - 66px);
  }

  .hero {
    min-height: auto;
    padding: 4.5rem 0 1.35rem;
    background-position: center 42%;
  }

  .hero-layout {
    grid-template-columns: minmax(0, 1.4fr) minmax(250px, .6fr);
    gap: 1rem;
    align-items: center;
  }

  .hero-copy,
  .hero h1,
  .hero .subtitle,
  .hero-kicker {
    text-align: left;
  }

  .hero h1 {
    margin-bottom: .55rem;
    font-size: clamp(2.35rem, 7.5vw, 4.25rem);
  }

  .hero .subtitle {
    max-width: 680px;
    margin-bottom: .8rem;
    font-size: clamp(.88rem, 2vw, 1.08rem);
    line-height: 1.4;
  }

  .hero-primary-actions,
  .hero-secondary-actions {
    justify-content: flex-start;
  }

  .hero-primary-actions .btn {
    min-height: 44px;
    padding: 10px 18px;
  }

  .hero-secondary-actions {
    margin-top: .4rem;
  }

  .hero-secondary-actions a {
    min-height: 34px;
    font-size: .86rem;
  }

  .hero-aside {
    padding: .75rem;
    border-radius: 16px;
  }

  .hero-facts {
    gap: .42rem;
  }

  .hero-fact {
    padding: .52rem;
  }

  .hero-fact strong {
    font-size: .61rem;
  }

  .hero-fact span {
    font-size: .76rem;
  }

  #countdown {
    margin-top: .5rem;
    padding-top: .5rem;
    font-size: .78rem;
    text-align: left;
  }
}
