@font-face {
  font-family: "Inter";
  src: url("assets/fonts/inter-400.woff") format("woff");
  font-style: normal;
  font-weight: 400;
  font-display: swap;
}

@font-face {
  font-family: "Inter";
  src: url("assets/fonts/inter-600.woff") format("woff");
  font-style: normal;
  font-weight: 600;
  font-display: swap;
}

@font-face {
  font-family: "Inter";
  src: url("assets/fonts/inter-700.woff") format("woff");
  font-style: normal;
  font-weight: 700;
  font-display: swap;
}

@font-face {
  font-family: "Inter";
  src: url("assets/fonts/inter-800.woff") format("woff");
  font-style: normal;
  font-weight: 800;
  font-display: swap;
}

:root {
  color-scheme: light;
  --bg: #ffffff;
  --surface: #ffffff;
  --text: #171717;
  --muted: #6f6f6f;
  --line: #e7e7e7;
  --accent: #d52b2b;
  --accent-hover: #bd2020;
  --accent-soft: #fff1f1;
  --on-accent: #ffffff;
  --shadow: 0 1rem 2.5rem rgba(32, 24, 24, 0.1);
  --ring: #d52b2b;
}

:root[data-theme="dark"] {
  color-scheme: dark;
  --bg: #101010;
  --surface: #181818;
  --text: #f7f7f7;
  --muted: #a3a3a3;
  --line: #303030;
  --accent: #e43b3b;
  --accent-hover: #f04a4a;
  --accent-soft: #2b1717;
  --on-accent: #ffffff;
  --shadow: 0 1rem 2.5rem rgba(0, 0, 0, 0.32);
  --ring: #ff6262;
}

* {
  box-sizing: border-box;
}

html {
  min-width: 20rem;
  background: var(--bg);
  scroll-behavior: smooth;
}

body {
  min-height: 100vh;
  min-height: 100svh;
  margin: 0;
  overflow-x: hidden;
  background: var(--bg);
  color: var(--text);
  font-family: "Inter", "Segoe UI", sans-serif;
  font-size: 1rem;
  line-height: 1.5;
  transition: background-color 400ms ease, color 400ms ease;
}

a {
  color: inherit;
  text-decoration: none;
}

img,
svg {
  display: block;
}

.page-shell {
  position: relative;
  isolation: isolate;
  display: flex;
  min-height: 100vh;
  min-height: 100svh;
  flex-direction: column;
  padding: max(1.25rem, env(safe-area-inset-top)) max(1rem, env(safe-area-inset-right))
    max(1rem, env(safe-area-inset-bottom)) max(1rem, env(safe-area-inset-left));
  overflow: hidden;
}

.page-shell::before {
  position: absolute;
  z-index: -2;
  top: -13rem;
  right: -14rem;
  width: 28rem;
  height: 28rem;
  border-radius: 50%;
  background: var(--accent);
  content: "";
  filter: blur(9rem);
  opacity: 0.09;
  pointer-events: none;
}

.ambient {
  display: none;
}

.language-button {
  position: absolute;
  z-index: 2;
  top: max(1.25rem, env(safe-area-inset-top));
  right: max(1rem, env(safe-area-inset-right));
  display: inline-flex;
  align-items: center;
  min-height: 2.75rem;
  padding: 0.55rem 0.75rem;
  gap: 0.45rem;
  border: 1px solid var(--line);
  border-radius: 0.75rem;
  background: var(--surface);
  color: var(--text);
  font: inherit;
  cursor: pointer;
  box-shadow: 0 0.35rem 1rem rgba(18, 18, 18, 0.04);
  transition: border-color 220ms ease, background-color 220ms ease, box-shadow 220ms ease,
    transform 220ms cubic-bezier(0.2, 0.8, 0.2, 1);
}

.language-button strong {
  color: var(--accent);
  font-size: 0.8rem;
  font-weight: 800;
  transition: transform 220ms cubic-bezier(0.2, 0.8, 0.2, 1);
}

.language-button span {
  color: var(--muted);
  font-size: 0.72rem;
  font-weight: 600;
  transition: color 220ms ease, transform 220ms cubic-bezier(0.2, 0.8, 0.2, 1);
}

.language-button:active {
  box-shadow: none;
  transform: translateY(0.08rem) scale(0.96);
}

.language-button:focus-visible {
  outline: 3px solid var(--ring);
  outline-offset: 0.2rem;
}

.hero,
.footer {
  width: 100%;
  max-width: 72rem;
  margin-inline: auto;
}

.hero {
  display: grid;
  align-items: center;
  min-height: auto;
  flex: 0 0 auto;
  padding-block: 4.25rem 2rem;
  gap: 1.75rem;
}

.hero__intro {
  max-width: 39rem;
}

h1 {
  max-width: 11ch;
  margin: 0;
  font-family: "Inter", "Segoe UI", sans-serif;
  font-size: clamp(2.8rem, 12.5vw, 5.8rem);
  font-weight: 800;
  letter-spacing: -0.065em;
  line-height: 0.96;
  text-wrap: balance;
  animation: reveal 380ms ease-out both;
}

h1 em {
  display: block;
  color: var(--accent);
  font-style: normal;
  font-weight: 800;
}

.heading-energy {
  display: inline-block;
  width: clamp(1.75rem, 0.48em, 3rem);
  height: clamp(2.15rem, 0.72em, 4rem);
  margin-left: 0.12em;
  filter: drop-shadow(0 0.08em 0.12em rgba(231, 72, 43, 0.18));
  object-fit: contain;
  transform: translateY(0.08em);
}

.hero__copy {
  max-width: 34rem;
  margin: 1.5rem 0 0;
  color: var(--muted);
  font-size: clamp(1rem, 2vw, 1.12rem);
  animation: reveal 420ms 40ms ease-out both;
}

.destination-list {
  display: grid;
  gap: 0.75rem;
}

.destination {
  --entrance-delay: 40ms;
  --auto-delay: 650ms;
  position: relative;
  isolation: isolate;
  display: grid;
  grid-template-columns: 3rem minmax(0, 1fr);
  align-items: center;
  min-height: 5.25rem;
  padding: 0.8rem 1rem;
  gap: 1rem;
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: 1rem;
  background: var(--surface);
  transition: transform 320ms cubic-bezier(0.2, 0.8, 0.2, 1), border-color 240ms ease,
    background-color 240ms ease, box-shadow 320ms ease;
  animation: destination-reveal 360ms var(--entrance-delay) cubic-bezier(0.16, 1, 0.3, 1)
    backwards;
}

.destination:nth-child(1) {
  --entrance-delay: 40ms;
  --auto-delay: 650ms;
}

.destination:nth-child(2) {
  --entrance-delay: 80ms;
  --auto-delay: 1750ms;
}

.destination:nth-child(3) {
  --entrance-delay: 120ms;
  --auto-delay: 2850ms;
}

.destination:nth-child(4) {
  --entrance-delay: 160ms;
  --auto-delay: 3950ms;
}

.destination::before {
  position: absolute;
  z-index: 0;
  top: -80%;
  left: -35%;
  width: 28%;
  height: 260%;
  background: linear-gradient(
    90deg,
    transparent,
    color-mix(in srgb, var(--accent) 20%, transparent),
    transparent
  );
  content: "";
  pointer-events: none;
  transform: translateX(-320%) rotate(14deg);
  transition: transform 720ms cubic-bezier(0.16, 1, 0.3, 1);
  animation: destination-shine 6s var(--auto-delay) cubic-bezier(0.16, 1, 0.3, 1) infinite;
}

.destination--primary::before {
  background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.24), transparent);
}

.destination::after {
  position: absolute;
  z-index: 2;
  top: 50%;
  right: 1rem;
  width: 0.55rem;
  height: 0.55rem;
  border-top: 2px solid currentColor;
  border-right: 2px solid currentColor;
  content: "";
  opacity: 0.35;
  transform: translateY(-50%) rotate(45deg);
  transition: right 280ms cubic-bezier(0.2, 0.8, 0.2, 1), opacity 220ms ease,
    transform 280ms cubic-bezier(0.2, 0.8, 0.2, 1);
}

.destination:active {
  box-shadow: none;
  transform: translateY(0.08rem) scale(0.975);
  transition-duration: 100ms;
}

.destination:active .destination__brand-icon {
  transform: scale(0.92);
}

.destination:focus-visible {
  outline: 3px solid var(--ring);
  outline-offset: 0.2rem;
}

.destination--primary {
  border-color: var(--accent);
  background: var(--accent);
  color: var(--on-accent);
}

.destination__brand-icon {
  position: relative;
  z-index: 1;
  display: grid;
  width: 3rem;
  height: 3rem;
  place-items: center;
  flex: none;
  overflow: hidden;
  border-radius: 0.75rem;
  background: #ffffff;
  box-shadow: 0 0.15rem 0.45rem rgba(18, 18, 18, 0.06);
  transform: translateZ(0);
  transition: box-shadow 320ms ease, transform 360ms cubic-bezier(0.16, 1, 0.3, 1);
  animation: destination-icon-charge 6s var(--auto-delay) ease-in-out infinite;
}

.destination__brand-icon img {
  width: 1.85rem;
  height: 1.85rem;
  object-fit: contain;
}

.destination--primary .destination__brand-icon img {
  width: 100%;
  height: 100%;
}

.destination__content {
  position: relative;
  z-index: 1;
  display: grid;
  min-width: 0;
  padding-right: 1.25rem;
  gap: 0.1rem;
  transition: transform 320ms cubic-bezier(0.16, 1, 0.3, 1);
}

.destination__content strong {
  font-size: 1.02rem;
  font-weight: 700;
  letter-spacing: -0.02em;
}

.destination__content small {
  overflow: hidden;
  color: var(--muted);
  font-size: 0.8rem;
  text-overflow: ellipsis;
}

.destination--primary .destination__content small {
  color: rgba(255, 255, 255, 0.82);
}

.footer {
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: 2.75rem;
  border-top: 1px solid var(--line);
  color: var(--muted);
  font-size: 0.75rem;
  animation: reveal 350ms 120ms ease-out both;
  margin-top: auto;
}

.footer p {
  margin: 0;
}

@keyframes reveal {
  from {
    opacity: 0;
    transform: translateY(0.8rem);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@keyframes destination-reveal {
  from {
    opacity: 0.45;
    transform: translateY(0.45rem) scale(0.99);
  }
  to {
    opacity: 1;
    transform: translateY(0) scale(1);
  }
}

@keyframes destination-shine {
  0%,
  4% {
    transform: translateX(-320%) rotate(14deg);
  }
  18%,
  100% {
    transform: translateX(610%) rotate(14deg);
  }
}

@keyframes destination-icon-charge {
  0%,
  18%,
  100% {
    transform: translateZ(0) rotate(0) scale(1);
  }
  7% {
    transform: translateZ(0) rotate(-4deg) scale(1.08);
  }
  12% {
    transform: translateZ(0) rotate(2deg) scale(1.03);
  }
}

@media (hover: hover) and (pointer: fine) {
  .language-button:hover {
    border-color: var(--accent);
    background: var(--accent-soft);
    box-shadow: 0 0.55rem 1.4rem rgba(18, 18, 18, 0.09);
    transform: translateY(-0.12rem);
  }

  .language-button:hover strong {
    transform: scale(1.08);
  }

  .language-button:hover span {
    color: var(--text);
    transform: translateX(0.12rem);
  }

  .destination:hover {
    border-color: color-mix(in srgb, var(--accent) 60%, var(--line));
    background: var(--accent-soft);
    box-shadow: var(--shadow);
    transform: translateY(-0.24rem) scale(1.012);
  }

  .destination:hover::before,
  .destination:focus-visible::before {
    animation: none;
    transform: translateX(610%) rotate(14deg);
  }

  .destination:hover::after {
    right: 0.72rem;
    opacity: 0.9;
    transform: translateY(-50%) rotate(45deg) scale(1.14);
  }

  .destination:hover .destination__brand-icon {
    animation: none;
    box-shadow: 0 0.55rem 1.1rem rgba(18, 18, 18, 0.13);
    transform: rotate(-4deg) scale(1.08);
  }

  .destination:hover .destination__content {
    transform: translateX(0.18rem);
  }

  .destination--primary:hover {
    border-color: var(--accent-hover);
    background: var(--accent-hover);
  }
}

@media (min-width: 48rem) {
  .page-shell {
    padding-inline: 2rem;
  }

  .hero {
    grid-template-columns: minmax(0, 1.05fr) minmax(23rem, 0.95fr);
    min-height: calc(100svh - 5.75rem);
    flex: 1;
    padding-block: 3rem 2rem;
    gap: clamp(3rem, 8vw, 6.5rem);
  }

  .language-button {
    right: max(2rem, env(safe-area-inset-right));
  }

  .destination {
    min-height: 5.6rem;
    padding-inline: 1.1rem;
  }
}

@media (min-width: 64rem) {
  .page-shell {
    padding-inline: 3rem;
  }

  .destination__content strong {
    font-size: 1.08rem;
  }

  .language-button {
    right: max(3rem, env(safe-area-inset-right));
  }
}

@media (max-height: 46rem) and (min-width: 48rem) {
  .hero {
    min-height: auto;
    padding-block: 2rem;
  }

  .destination {
    min-height: 4.7rem;
  }
}

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