@import url('https://fonts.googleapis.com/css2?family=Anybody:ital,wght@0,300;0,400;0,500;0,600;0,700;1,300;1,400&family=Roboto:wght@300;400;500&display=swap');

*,
*::before,
*::after {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

:root {
  --white: #FAFAF8;
  --off-white: #F5F1E8;
  --blue-pastel: #D9EAF7;
  --black: #121212;
  --gold: #C6A96B;

  --font-display: 'Anybody', 'Helvetica Neue', Arial, sans-serif;
  --font-body: 'Roboto', 'Helvetica Neue', Arial, sans-serif;
  --gray: #6B6B6B;
}

html, body {
  height: 100%;
  overflow: hidden;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  text-rendering: optimizeLegibility;
}

body {
  font-family: var(--font-body);
  color: var(--black);
  background-color: var(--white);
}

/* ==================== HERO ==================== */

.hero {
  position: relative;
  width: 100%;
  height: 100vh;
  height: 100dvh;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
}

/* Background image */
.hero__bg {
  position: absolute;
  inset: 0;
  z-index: 0;
}

.hero__bg img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center center;
  display: block;
}

.hero__bg .bg-desktop {
  display: none;
}

.hero__bg .bg-mobile {
  display: block;
}

/* Overlay */
.hero__overlay {
  position: absolute;
  inset: 0;
  z-index: 1;
  background: rgba(250, 250, 248, 0.82);
  backdrop-filter: blur(1px);
}

/* Content */
.hero__content {
  position: relative;
  z-index: 2;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  padding: 2rem 1.5rem;
  max-width: 680px;
  width: 100%;
}

/* Logo / Brand */
.hero__brand {
  margin-bottom: 2.5rem;
  opacity: 0;
  animation: fadeSlideUp 1.2s ease-out 0.3s forwards;
}

.hero__logo {
  max-width: clamp(180px, 40vw, 320px);
  height: auto;
  display: block;
  margin: 0 auto;
}

.hero__brand-sub {
  font-family: var(--font-body);
  font-size: 0.6rem;
  font-weight: 400;
  letter-spacing: 0.5em;
  text-transform: uppercase;
  color: var(--gold);
  margin-top: 0.6rem;
}

/* Divider */
.hero__divider {
  width: 40px;
  height: 1px;
  background-color: var(--gold);
  margin-bottom: 2.5rem;
  opacity: 0;
  animation: fadeIn 1s ease-out 0.8s forwards;
}

/* Title */
.hero__title {
  font-family: var(--font-display);
  font-size: clamp(1.1rem, 3vw, 1.6rem);
  font-weight: 500;
  line-height: 1.5;
  color: var(--black);
  text-transform: uppercase;
  letter-spacing: 0.08em;
  margin-bottom: 1.8rem;
  max-width: 560px;
  opacity: 0;
  animation: fadeSlideUp 1.2s ease-out 1s forwards;
}

/* Description */
.hero__description {
  font-family: var(--font-body);
  font-size: clamp(0.8rem, 2vw, 0.95rem);
  font-weight: 300;
  line-height: 1.8;
  color: var(--gray);
  max-width: 460px;
  margin-bottom: 2.5rem;
  opacity: 0;
  animation: fadeSlideUp 1.2s ease-out 1.4s forwards;
}

/* Button */
.hero__btn {
  display: inline-block;
  font-family: var(--font-body);
  font-size: 0.7rem;
  font-weight: 400;
  letter-spacing: 0.3em;
  text-transform: uppercase;
  color: var(--black);
  border: 1px solid rgba(18, 18, 18, 0.25);
  padding: 0.9rem 2.8rem;
  background: transparent;
  cursor: default;
  transition: border-color 0.4s ease, color 0.4s ease;
  opacity: 0;
  animation: fadeSlideUp 1s ease-out 1.8s forwards;
}

.hero__btn:hover {
  border-color: var(--gold);
  color: var(--gold);
}

.hero__btn:focus-visible {
  outline: 2px solid var(--gold);
  outline-offset: 3px;
}

/* Footer */
.hero__footer {
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  z-index: 2;
  text-align: center;
  padding: 1.2rem 1rem;
  opacity: 0;
  animation: fadeIn 1s ease-out 2.2s forwards;
}

.hero__footer-brand {
  font-family: var(--font-display);
  font-size: 0.65rem;
  font-weight: 500;
  letter-spacing: 0.4em;
  text-transform: uppercase;
  color: rgba(18, 18, 18, 0.4);
  margin-bottom: 0.3rem;
}

.hero__footer-copy {
  font-family: var(--font-body);
  font-size: 0.6rem;
  font-weight: 300;
  letter-spacing: 0.15em;
  color: rgba(18, 18, 18, 0.3);
}

/* ==================== FLOATING ==================== */

.floating {
  animation: float 6s ease-in-out infinite;
}

/* ==================== ANIMATIONS ==================== */

@keyframes fadeIn {
  from {
    opacity: 0;
  }
  to {
    opacity: 1;
  }
}

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

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

/* ==================== REDUCED MOTION ==================== */

@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    animation-delay: 0ms !important;
    transition-duration: 0.01ms !important;
  }

  .floating {
    animation: none !important;
  }
}

/* ==================== RESPONSIVE ==================== */

/* 480px+ */
@media (min-width: 480px) {
  .hero__content {
    padding: 2rem 2.5rem;
  }

  .hero__brand-name {
    letter-spacing: 0.4em;
  }

  .hero__divider {
    width: 50px;
  }
}

/* 768px+ — tablet */
@media (min-width: 768px) {
  .hero__bg .bg-desktop {
    display: block;
  }

  .hero__bg .bg-mobile {
    display: none;
  }

  .hero__content {
    max-width: 720px;
    padding: 2rem 3rem;
  }

  .hero__brand {
    margin-bottom: 3rem;
  }

  .hero__brand-sub {
    font-size: 0.65rem;
    letter-spacing: 0.6em;
  }

  .hero__divider {
    width: 60px;
    margin-bottom: 3rem;
  }

  .hero__title {
    margin-bottom: 2rem;
  }

  .hero__description {
    margin-bottom: 3rem;
  }

  .hero__footer {
    padding: 1.8rem 1rem;
  }
}

/* 1024px+ — desktop */
@media (min-width: 1024px) {
  .hero__content {
    max-width: 780px;
  }

  .hero__overlay {
    background: rgba(250, 250, 248, 0.78);
  }

  .hero__btn {
    padding: 1rem 3.2rem;
  }

  .hero__footer {
    padding: 2rem 1rem;
  }

  .hero__footer-brand {
    font-size: 0.7rem;
  }
}

/* 1440px+ — large desktop */
@media (min-width: 1440px) {
  .hero__content {
    max-width: 820px;
  }

  .hero__brand-name {
    letter-spacing: 0.45em;
  }

  .hero__divider {
    width: 70px;
  }
}
