/* Home — tokens only from colors.css / brand.css */
.home {
  min-height: 100vh;
  display: grid;
  place-items: center;
  padding: clamp(1.5rem, 5vw, 3.5rem);
  position: relative;
  overflow: hidden;
  text-align: center;
  background: var(--color-bg);
  color: var(--color-text);
}

.home__panel {
  position: relative;
  z-index: 1;
  width: min(100%, 20rem);
  margin-inline: auto;
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
}

.home__brand {
  margin: 0;
  width: min(14rem, 100%);
  text-align: center;
  animation: home-rise 0.65s ease-out both;
}

.home__brand:not(:has(.brand--img)) {
  width: auto;
  font-size: clamp(1.55rem, 4vw, 1.85rem);
}

.home__brand .brand--img {
  width: 100%;
  height: auto;
  max-width: 14rem;
  border-radius: 1rem;
}

a.home__brand,
a.home__brand:link,
a.home__brand:visited,
a.home__brand:hover,
a.home__brand:active {
  color: inherit !important;
  text-decoration: none !important;
  background: transparent !important;
  border: none !important;
  box-shadow: none !important;
  transform: none !important;
  width: auto;
  min-height: 0;
  padding: 0;
  display: block;
}

.home__actions {
  width: 100%;
  display: flex;
  flex-direction: column;
  align-items: stretch;
  gap: 0.85rem;
  margin-top: 2.25rem;
  animation: home-rise 0.65s ease-out 0.1s both;
}

.btn,
a.btn,
a.btn:link,
a.btn:visited,
a.btn:hover,
a.btn:active,
a.btn:focus,
a.btn:focus-visible {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 100%;
  min-height: 3rem;
  padding: 0.85rem 1.5rem;
  border-radius: 0.55rem;
  border: 1px solid var(--color-red) !important;
  background-color: var(--color-red) !important;
  color: var(--color-white) !important;
  font-family: var(--font-sans);
  font-size: var(--text-md);
  font-weight: var(--weight-semibold);
  letter-spacing: 0.02em;
  text-align: center;
  text-decoration: none !important;
  cursor: pointer;
  -webkit-tap-highlight-color: transparent;
  transition: transform 0.18s ease, background-color 0.18s ease, border-color 0.18s ease,
    color 0.18s ease;
}

a.btn:hover,
a.btn:active,
a.btn:focus-visible,
.btn--primary:hover,
.btn--secondary:hover {
  background-color: var(--color-black) !important;
  border-color: var(--color-black) !important;
  color: var(--color-white) !important;
  transform: translateY(-2px);
}

.home__title {
  margin: 0.85rem 0 0;
  font-family: var(--font-sans);
  font-size: var(--text-lg);
  font-weight: var(--weight-semibold);
  color: var(--color-black);
  text-align: center;
  animation: home-rise 0.65s ease-out 0.05s both;
}

@keyframes home-rise {
  from {
    opacity: 0;
    transform: translateY(0.75rem);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@media (prefers-reduced-motion: reduce) {
  .home__brand,
  .home__actions,
  .home__title,
  .btn {
    animation: none;
    transition: none;
  }
}
