:root {
  --bg-1: #fce4ec;
  --bg-2: #f8bbd0;
  --bg-3: #f48fb1;
  --card: rgba(255, 255, 255, 0.08);
  --border: rgba(255, 255, 255, 0.22);
  --text: #ffffff;
  --muted: rgba(255, 255, 255, 0.75);
  --accent: #ff89c7;
  --accent-strong: #ff5ca8;
  --shadow: 0 18px 50px rgba(255, 105, 180, 0.25);
  --shadow-soft: 0 8px 28px rgba(255, 105, 180, 0.18);
}

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

html, body {
  width: 100%;
  min-height: 100%;
}

body {
  font-family: 'Sora', sans-serif;
  color: var(--text);
  background: linear-gradient(135deg, var(--bg-1), var(--bg-2), var(--bg-3));
  background-size: 240% 240%;
  animation: gradient 18s ease infinite;
  overflow-x: hidden;
}

p {
  color: var(--muted);
  line-height: 1.5;
}

@keyframes gradient {
  0% {
    background-position: 0% 50%;
  }
  50% {
    background-position: 100% 50%;
  }
  100% {
    background-position: 0% 50%;
  }
}

.page {
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 2rem;
  padding: clamp(1.25rem, 3vw, 2.5rem);
}

.hero {
  width: min(680px, 100%);
  margin-top: clamp(10rem, 22vh, 16rem);
  transition: transform 0.6s cubic-bezier(0.22, 1, 0.36, 1);
}

.hero.has-suggestions {
  transform: translateY(-16vh);
  animation: heroBounce 0.75s cubic-bezier(0.34, 1.56, 0.64, 1);
}

@keyframes heroBounce {
  0% {
    transform: translateY(0);
  }
  100% {
    transform: translateY(-16vh);
  }
}

.search {
  display: flex;
  flex-direction: column;
}

.search-row {
  display: flex;
  align-items: center;
}

.search-row input {
  flex: 1;
  background: rgba(255, 255, 255, 0.16);
  border: 1px solid rgba(255, 255, 255, 0.3);
  border-radius: 999px;
  padding: 0.95rem 1.1rem;
  color: var(--text);
  font-size: 1rem;
  outline: none;
  transition: border 0.2s ease, box-shadow 0.2s ease;
}

.search-row input::placeholder {
  color: rgba(255, 255, 255, 0.65);
}

.search-row input:focus {
  border-color: rgba(255, 255, 255, 0.6);
  box-shadow: 0 0 0 3px rgba(255, 255, 255, 0.2);
}

.suggestions {
  list-style: none;
  margin-top: 0.65rem;
  background: rgba(255, 255, 255, 0.12);
  border: 1px solid rgba(255, 255, 255, 0.22);
  border-radius: 18px;
  overflow: hidden;
  max-height: 0;
  opacity: 0;
  transform: translateY(-6px);
  transition: max-height 0.45s cubic-bezier(0.34, 1.56, 0.64, 1), opacity 0.25s ease, transform 0.3s ease;
}

.suggestions.is-visible {
  max-height: var(--suggest-height, 0);
  opacity: 1;
  transform: translateY(0);
}

.suggestions li {
  padding: 0.8rem 1.1rem;
  cursor: pointer;
  color: var(--text);
  transition: background 0.15s ease, transform 0.2s ease;
}

.suggestions li + li {
  border-top: 1px solid rgba(255, 255, 255, 0.12);
}

.suggestions li:hover,
.suggestions li[aria-selected="true"] {
  background: rgba(255, 255, 255, 0.2);
}


@media (max-width: 720px) {
  .hero {
    margin-top: clamp(7rem, 18vh, 12rem);
  }

  .search-row {
    align-items: stretch;
  }
}

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