@font-face {
  font-family: 'Alte Haas Grotesk';
  src: url('fonts/Alte_Haas_Grotesk_Regular.ttf') format('truetype');
  font-weight: normal;
  font-style: normal;
}

@font-face {
  font-family: 'Aston Script';
  src: url('fonts/Aston_Script.ttf') format('truetype');
  font-weight: normal;
  font-style: normal;
}

@font-face {
  font-family: 'Birds of Paradise';
  src: url('fonts/Birds_of_Paradise.ttf') format('truetype');
  font-weight: normal;
  font-style: normal;
}

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

body {
  font-family: 'Alte Haas Grotesk', sans-serif;
  color: #3A3F40;
}

.site-header {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  padding: 18px 24px;
  display: flex;
  justify-content: center;
  z-index: 5;
  opacity: 0;
  animation: fadeInUp 0.65s ease forwards;
  animation-delay: 1.1s;
}

.site-header a {
  font-size: 13px;
  color: #B7C2C1;
  text-decoration: none;
  transition: color 0.2s ease;
}

.site-header a:hover {
  color: #3A3F40;
}

.hero {
  height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 0 40px;
}

.hero-content {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
}

.hero-text {
  font-size: 96px;
  line-height: 1.1;
  text-align: left;
}

.row {
  display: block;
  opacity: 0;
  transform: translateY(8px);
  animation: fadeInUp 0.65s ease forwards;
}

.row:nth-child(1) {
  animation-delay: 0.05s;
}

.row:nth-child(2) {
  animation-delay: 0.3s;
}

.row:nth-child(3) {
  animation-delay: 0.55s;
}

.search-row {
  position: relative;
}

.button-wrap {
  position: absolute;
  right: 10%;
  top: 50%;
  transform: translateY(-50%);
  opacity: 0;
  animation: buttonFadeIn 0.5s ease forwards;
  animation-delay: 0.85s;
}

.build-button {
  display: flex;
  align-items: center;
  gap: 16px;
  background-color: #D1F1F0;
  border: none;
  border-radius: 50px;
  padding: 24px 48px;
  font-family: 'Inter', sans-serif;
  font-weight: 600;
  font-size: 40px;
  color: #000000;
  cursor: pointer;
  white-space: nowrap;
  text-decoration: none;
  transform: scale(1) rotate(0deg);
  transition: transform 0.2s cubic-bezier(0.34, 1.56, 0.64, 1);
}

.build-button:hover {
  transform: scale(1.06) rotate(2deg);
}

.build-button:active {
  transform: scale(0.96) rotate(0deg);
}

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

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

.button-circle {
  width: 28px;
  height: 28px;
  border-radius: 50%;
  background-color: #49ABA6;
  display: inline-block;
}

.font-aston {
  font-family: 'Aston Script', cursive;
}

.font-birds {
  font-family: 'Birds of Paradise', cursive;
}

.font-alte {
  font-family: 'Alte Haas Grotesk', sans-serif;
}

.font-inter {
  font-family: 'Inter', sans-serif;
  font-weight: 600;
}

.view-count {
  margin-top: 24px;
  font-size: 14px;
  display: flex;
  align-items: center;
  gap: 6px;
  opacity: 0;
  animation: fadeInUp 0.65s ease forwards;
  animation-delay: 1s;
}

.view-count #view-count-number {
  color: #B7C2C1;
  font-weight: 400;
}

.view-count-label {
  color: #B7C2C1;
  font-weight: 400;
}

.view-count-plus {
  color: #3A3F40;
  font-weight: 600;
  opacity: 0;
  transition: opacity 0.6s ease;
}

.view-count-plus.show {
  opacity: 1;
}

.bottom-fade {
  position: fixed;
  bottom: 0;
  left: 0;
  width: 100%;
  height: 200px;
  background: linear-gradient(to bottom, rgba(255, 255, 255, 0), rgba(255, 255, 255, 1));
  backdrop-filter: blur(6px);
  -webkit-backdrop-filter: blur(6px);
  pointer-events: none;
  z-index: 10;
}

/* ---------------- Mobile ---------------- */

@media (max-width: 640px) {
  .hero {
    padding: 0 24px;
    height: auto;
    min-height: 100vh;
  }

  .hero-text {
    font-size: 48px;
  }

  .search-row {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
  }

  .button-wrap {
    position: static;
    transform: none;
    margin-top: 20px;
  }

  .build-button {
    padding: 16px 28px;
    font-size: 22px;
    gap: 10px;
  }

  .button-circle {
    width: 18px;
    height: 18px;
  }

  .site-header {
    padding: 14px 20px;
  }
}

@media (min-width: 641px) and (max-width: 900px) {
  .hero-text {
    font-size: 68px;
  }

  .build-button {
    padding: 20px 36px;
    font-size: 30px;
  }
}