*,
*::before,
*::after {
  box-sizing: border-box;
}

.home-page {
  margin: 0;
  min-height: 100vh;
  font-family: var(--font-body);
  color: var(--cream);
  background: #001a10;
  -webkit-font-smoothing: antialiased;
}

.home-page a {
  color: inherit;
  text-decoration: none;
}

.home-hero {
  position: relative;
  min-height: 100vh;
  min-height: 100dvh;
  display: flex;
  flex-direction: column;
  overflow: hidden;
}

.home-hero__media {
  position: absolute;
  inset: 0;
  z-index: 0;
}

.home-hero__media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center 28%;
  transform: scale(1.04);
  animation: home-pan 18s ease-in-out infinite alternate;
}

.home-hero__shade {
  position: absolute;
  inset: 0;
  background:
    linear-gradient(120deg, rgba(0, 24, 14, 0.94) 0%, rgba(0, 40, 24, 0.86) 38%, rgba(0, 28, 16, 0.72) 62%, rgba(20, 28, 18, 0.58) 100%),
    linear-gradient(180deg, rgba(0, 16, 10, 0.55) 0%, transparent 26%, rgba(0, 14, 8, 0.78) 100%);
}

.home-hero__grain {
  position: absolute;
  inset: 0;
  opacity: 0.16;
  pointer-events: none;
  background-image: radial-gradient(rgba(255, 255, 255, 0.12) 0.6px, transparent 0.7px);
  background-size: 3px 3px;
  mix-blend-mode: soft-light;
}

.home-top {
  position: relative;
  z-index: 2;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding: 18px clamp(20px, 4vw, 48px) 8px;
  animation: home-fade 0.7s ease both;
}

.home-top__brand {
  display: inline-flex;
  line-height: 0;
}

.home-top__brand img {
  width: auto;
  height: clamp(72px, 10vw, 110px);
  filter: drop-shadow(0 10px 24px rgba(0, 0, 0, 0.4));
}

.home-top__meta {
  margin: 0;
  font-size: 0.78rem;
  font-weight: 800;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: rgba(246, 238, 221, 0.72);
  text-align: right;
}

.home-hero__content {
  position: relative;
  z-index: 2;
  flex: 1;
  display: flex;
  flex-direction: column;
  justify-content: center;
  width: min(1100px, 100%);
  margin: 0 auto;
  padding: 12px clamp(20px, 4vw, 48px) 28px;
}

.home-kicker {
  margin: 0 0 10px;
  font-size: 0.78rem;
  font-weight: 800;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--mustard);
  animation: home-rise 0.75s 0.05s ease both;
}

.home-title {
  margin: 0 0 12px;
  max-width: 18ch;
  font-family: var(--font-title);
  font-size: clamp(1.7rem, 4.2vw, 2.7rem);
  line-height: 1.08;
  color: #fff8ea;
  text-shadow: 0 8px 28px rgba(0, 0, 0, 0.35);
  animation: home-rise 0.8s 0.12s ease both;
}

.home-lead {
  margin: 0 0 28px;
  max-width: 54ch;
  font-size: clamp(0.98rem, 1.5vw, 1.08rem);
  line-height: 1.6;
  color: rgba(246, 238, 221, 0.82);
  animation: home-rise 0.8s 0.2s ease both;
}

.home-menu {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 14px;
}

.home-card {
  --i: 0;
  display: flex;
  flex-direction: column;
  gap: 8px;
  min-height: 168px;
  padding: 22px 22px 18px;
  border-radius: 18px;
  border: 1px solid rgba(246, 238, 221, 0.16);
  background: rgba(255, 248, 234, 0.08);
  backdrop-filter: blur(12px);
  box-shadow: 0 14px 36px rgba(0, 0, 0, 0.22);
  transition:
    transform 0.22s ease,
    border-color 0.22s ease,
    background 0.22s ease,
    box-shadow 0.22s ease;
  animation: home-rise 0.75s calc(0.28s + (var(--i) * 0.07s)) ease both;
}

.home-card:hover,
.home-card:focus-visible {
  transform: translateY(-4px);
  border-color: rgba(211, 167, 70, 0.55);
  background: rgba(255, 248, 234, 0.14);
  box-shadow: 0 18px 42px rgba(0, 0, 0, 0.3);
  outline: none;
}

.home-card__label {
  font-size: 0.72rem;
  font-weight: 800;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: rgba(246, 238, 221, 0.68);
}

.home-card__title {
  font-family: var(--font-title);
  font-size: clamp(1.25rem, 2.4vw, 1.55rem);
  font-weight: 700;
  line-height: 1.1;
  color: #fff8ea;
}

.home-card__desc {
  flex: 1;
  font-size: 0.94rem;
  line-height: 1.5;
  color: rgba(246, 238, 221, 0.78);
}

.home-card__cta {
  margin-top: 6px;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-size: 0.9rem;
  font-weight: 800;
  color: var(--mustard);
}

.home-card__cta::after {
  content: "→";
  transition: transform 0.2s ease;
}

.home-card:hover .home-card__cta::after,
.home-card:focus-visible .home-card__cta::after {
  transform: translateX(4px);
}

.home-card--inscricao {
  border-color: rgba(0, 106, 63, 0.45);
  background: linear-gradient(160deg, rgba(0, 83, 47, 0.42), rgba(255, 248, 234, 0.07));
}

.home-card--inscrito {
  border-color: rgba(211, 167, 70, 0.35);
}

.home-card--admin {
  border-color: rgba(175, 59, 82, 0.45);
  background: linear-gradient(160deg, rgba(175, 59, 82, 0.28), rgba(255, 248, 234, 0.08));
  min-height: 188px;
}

.home-card--admin .home-card__label {
  color: #f3b6c0;
}

.home-card--checkin {
  border-color: rgba(211, 167, 70, 0.55);
  background: linear-gradient(160deg, rgba(211, 167, 70, 0.28), rgba(255, 248, 234, 0.08));
  min-height: 188px;
}

.home-card--checkin .home-card__label {
  color: #efd59a;
}

.home-card--validador {
  border-color: rgba(0, 106, 63, 0.4);
  background: linear-gradient(160deg, rgba(0, 61, 36, 0.36), rgba(255, 248, 234, 0.08));
  min-height: 188px;
  grid-column: 1 / -1;
}

.home-card--validador .home-card__label {
  color: #9fd6b8;
}

.home-card--admin:hover,
.home-card--checkin:hover,
.home-card--validador:hover {
  border-color: rgba(255, 248, 234, 0.55);
}

@media (min-width: 821px) {
  .home-card--validador {
    grid-column: auto;
  }

  .home-menu {
    grid-template-columns: repeat(6, minmax(0, 1fr));
  }

  .home-card--inscricao,
  .home-card--inscrito {
    grid-column: span 3;
  }

  .home-card--admin,
  .home-card--checkin,
  .home-card--validador {
    grid-column: span 2;
  }
}

.home-foot {
  position: relative;
  z-index: 2;
  padding: 14px clamp(20px, 4vw, 48px) 20px;
  border-top: 1px solid rgba(246, 238, 221, 0.12);
  background: rgba(0, 18, 10, 0.35);
  backdrop-filter: blur(10px);
  animation: home-fade 0.9s 0.45s ease both;
}

.home-foot__meta {
  margin: 0;
  font-size: 0.86rem;
  color: rgba(246, 238, 221, 0.7);
}

.home-foot__meta a {
  color: var(--mustard);
  font-weight: 700;
}

.home-foot__meta a:hover {
  text-decoration: underline;
  text-underline-offset: 3px;
}

@keyframes home-rise {
  from {
    opacity: 0;
    transform: translateY(16px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@keyframes home-fade {
  from { opacity: 0; }
  to { opacity: 1; }
}

@keyframes home-pan {
  from { transform: scale(1.04) translate3d(0, 0, 0); }
  to { transform: scale(1.1) translate3d(-1.5%, -1%, 0); }
}

@media (prefers-reduced-motion: reduce) {
  .home-hero__media img,
  .home-top,
  .home-kicker,
  .home-title,
  .home-lead,
  .home-card,
  .home-foot {
    animation: none;
  }
}

@media (max-width: 820px) {
  .home-menu {
    grid-template-columns: 1fr;
  }

  .home-card,
  .home-card--admin,
  .home-card--checkin,
  .home-card--validador {
    min-height: 0;
    grid-column: auto;
  }

  .home-top {
    flex-direction: column;
    align-items: flex-start;
  }

  .home-top__meta {
    text-align: left;
  }
}
