@font-face {
  font-family: 'Inter';
  src: url('/fonts/inter-latin.woff2') format('woff2');
  font-weight: 100 900;
  font-style: normal;
  font-display: swap;
}

:root {
  --brand: #0f766e;
  --brand-bright: #14b8a6;
  --ink: #f5f7ff;
  --ink-soft: rgba(225, 232, 255, 0.78);
  --night: #03050f;
}

* {
  box-sizing: border-box;
}

html,
body {
  margin: 0;
  height: 100%;
}

body {
  background: var(--night);
  color: var(--ink);
  font-family:
    'Inter',
    system-ui,
    -apple-system,
    'Segoe UI',
    sans-serif;
  overflow: hidden;
  -webkit-font-smoothing: antialiased;
}

#scene {
  position: fixed;
  inset: 0;
  width: 100%;
  height: 100%;
  display: block;
  transition:
    transform 0.9s cubic-bezier(0.55, 0, 0.75, 0.2),
    filter 0.9s ease-in;
}

/* A soft dark pool behind the words so they read over bright windows */
.shade {
  position: fixed;
  inset: 0;
  pointer-events: none;
  background:
    radial-gradient(
      ellipse 60% 38% at 50% 28%,
      rgba(3, 5, 15, 0.55),
      rgba(3, 5, 15, 0) 70%
    ),
    radial-gradient(
      ellipse 120% 90% at 50% 50%,
      rgba(0, 0, 0, 0) 55%,
      rgba(0, 0, 0, 0.45)
    );
}

.hero {
  position: relative;
  min-height: 100svh;
  display: flex;
  flex-direction: column;
  align-items: center;
  padding: max(9vh, 56px) 16px 0;
  text-align: center;
  animation: rise 1.4s cubic-bezier(0.2, 0.7, 0.2, 1) both;
  transition:
    opacity 0.6s ease-in,
    transform 0.8s ease-in;
}

.wordmark {
  display: inline-flex;
  align-items: flex-end;
  margin: 0;
  font-size: clamp(2.8rem, 9vw, 6.2rem);
  font-weight: 700;
  letter-spacing: -0.035em;
  line-height: 1;
  white-space: nowrap;
  text-shadow: 0 2px 30px rgba(0, 0, 0, 0.6);
}

.wordmark .mark {
  width: 1.3em;
  height: 1.3em;
  margin: 0 0.06em 0.12em;
  flex-shrink: 0;
  color: var(--brand-bright);
  filter: drop-shadow(0 0 18px rgba(20, 184, 166, 0.55));
}

.tagline {
  max-width: 34rem;
  margin: 1.4rem 0 0;
  font-size: clamp(1rem, 2.2vw, 1.25rem);
  line-height: 1.5;
  color: var(--ink-soft);
  text-shadow: 0 1px 16px rgba(0, 0, 0, 0.8);
}

.go {
  position: relative;
  display: inline-flex;
  align-items: center;
  gap: 0.6rem;
  margin-top: 2.2rem;
  padding: 0.95rem 2.4rem 0.95rem 2.7rem;
  border-radius: 999px;
  background: linear-gradient(135deg, #14b8a6, var(--brand));
  color: #fff;
  font-size: 1.35rem;
  font-weight: 650;
  letter-spacing: 0.01em;
  text-decoration: none;
  box-shadow:
    0 0 0 1px rgba(255, 255, 255, 0.18) inset,
    0 10px 40px rgba(20, 184, 166, 0.45),
    0 0 90px rgba(20, 184, 166, 0.25);
  transition:
    transform 0.25s ease,
    box-shadow 0.25s ease;
}

/* Slow breathing halo */
.go::before {
  content: '';
  position: absolute;
  inset: -6px;
  border-radius: inherit;
  border: 1px solid rgba(94, 234, 212, 0.55);
  animation: halo 3.2s ease-out infinite;
  pointer-events: none;
}

.go svg {
  width: 1.3rem;
  height: 1.3rem;
  transition: transform 0.25s ease;
}

.go:hover,
.go:focus-visible {
  transform: translateY(-2px) scale(1.03);
  box-shadow:
    0 0 0 1px rgba(255, 255, 255, 0.28) inset,
    0 14px 50px rgba(20, 184, 166, 0.6),
    0 0 120px rgba(20, 184, 166, 0.35);
}

.go:hover svg,
.go:focus-visible svg {
  transform: translateX(4px);
}

.go:focus-visible {
  outline: 3px solid #fff;
  outline-offset: 5px;
}

.hint {
  margin: 0.9rem 0 0;
  font-size: 0.9rem;
  color: rgba(225, 232, 255, 0.6);
  text-shadow: 0 1px 10px rgba(0, 0, 0, 0.8);
}

.foot {
  position: fixed;
  left: 0;
  right: 0;
  bottom: 0;
  display: flex;
  justify-content: space-between;
  gap: 16px;
  padding: 14px 20px;
  font-size: 0.78rem;
  color: rgba(225, 232, 255, 0.55);
  pointer-events: none;
}

.place {
  text-transform: uppercase;
  letter-spacing: 0.22em;
  opacity: 0;
}

.place.show {
  animation: place 1.6s ease both;
}

/* Leaving: the city rushes past, the words lift away, the night closes in */
.leave {
  position: fixed;
  inset: 0;
  pointer-events: none;
  background: radial-gradient(circle at 50% 45%, #0b1a2e, var(--night) 70%);
  opacity: 0;
  transition: opacity 0.55s ease-in 0.3s;
}

.leaving .leave {
  opacity: 1;
}

.leaving .hero {
  opacity: 0;
  transform: translateY(-30px) scale(1.06);
}

.leaving #scene {
  transform: scale(1.18);
  filter: blur(2px) brightness(1.3);
}

.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

@keyframes rise {
  from {
    opacity: 0;
    transform: translateY(18px);
  }
  to {
    opacity: 1;
    transform: none;
  }
}

@keyframes halo {
  0% {
    opacity: 0.9;
    transform: scale(1);
  }
  100% {
    opacity: 0;
    transform: scale(1.18, 1.45);
  }
}

@keyframes place {
  from {
    opacity: 0;
    transform: translateY(6px);
  }
  to {
    opacity: 1;
    transform: none;
  }
}

@media (max-width: 480px) {
  .foot {
    flex-direction: column;
    align-items: center;
    gap: 4px;
  }
}

@media (prefers-reduced-motion: reduce) {
  .hero,
  .go::before,
  .place.show {
    animation: none;
  }
  .place {
    opacity: 1;
  }
}
