:root {
  color-scheme: light;
  --bg: #ffffff;
  --ink: #101827;
  --muted: #697282;
  --accent: #bda17a;
  --line: #e6e8ec;
  --field-height: 54px;
  --field-label-height: 18px;
  --field-gap: 0.42rem;
}

* {
  box-sizing: border-box;
}

html,
body {
  height: 100%;
  overflow: hidden;
}

body {
  margin: 0;
  background:
    linear-gradient(90deg, rgba(16, 24, 39, 0.035) 1px, transparent 1px),
    linear-gradient(180deg, rgba(16, 24, 39, 0.035) 1px, transparent 1px),
    var(--bg);
  background-size: 72px 72px;
  color: var(--ink);
  font-family: Inter, Arial, Helvetica, sans-serif;
  text-rendering: optimizeLegibility;
  -webkit-font-smoothing: antialiased;
}

.page {
  position: relative;
  min-height: 100svh;
  display: grid;
  place-items: center;
  padding: clamp(1rem, 4vw, 3rem);
  isolation: isolate;
}

.map-animation {
  position: fixed;
  top: 48%;
  right: clamp(0.6rem, 7vw, 11rem);
  z-index: 0;
  width: min(46vw, 660px);
  min-width: 500px;
  opacity: 0.86;
  overflow: visible;
  pointer-events: none;
  transform: translateY(-50%);
  animation: map-drift 22s ease-in-out infinite;
}

.hero {
  position: relative;
  z-index: 1;
  width: min(1040px, 100%);
  animation: fade-up 700ms cubic-bezier(0.22, 1, 0.36, 1) both;
}

.eyebrow {
  margin: 0;
  color: var(--accent);
  font-size: 0.72rem;
  font-weight: 800;
  letter-spacing: 0.18em;
  text-transform: uppercase;
}

h1 {
  max-width: 900px;
  margin: clamp(1rem, 2.5vw, 1.7rem) 0 0;
  font-family: Sora, Inter, Arial, Helvetica, sans-serif;
  font-size: clamp(3.2rem, 9.5vw, 7rem);
  line-height: 0.96;
  letter-spacing: 0;
}

.scope {
  margin: clamp(0.9rem, 2vw, 1.25rem) 0 0;
  color: var(--muted);
  font-size: clamp(0.78rem, 1.7vw, 0.95rem);
  font-weight: 700;
  letter-spacing: 0.11em;
  text-transform: uppercase;
}

.creator {
  display: inline-block;
  position: relative;
}

.creator-trigger {
  appearance: none;
  height: auto;
  margin: 0;
  border: 0;
  border-radius: 0;
  padding: 0;
  color: var(--ink);
  background: transparent;
  font: inherit;
  font-weight: 800;
  letter-spacing: inherit;
  line-height: inherit;
  text-transform: inherit;
  cursor: pointer;
}

.creator-trigger::after {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  bottom: -0.18rem;
  height: 2px;
  background: var(--accent);
  transform-origin: left;
  animation: line-draw 900ms 420ms cubic-bezier(0.22, 1, 0.36, 1) both;
}

.creator-trigger:hover {
  background: transparent;
  transform: none;
}

.creator-trigger:focus-visible {
  outline: 2px solid rgba(189, 161, 122, 0.48);
  outline-offset: 0.22rem;
}

.creator-links {
  position: absolute;
  left: 0;
  top: calc(100% + 0.7rem);
  z-index: 2;
  display: grid;
  min-width: 168px;
  padding: 0.35rem;
  border: 1px solid var(--line);
  border-radius: 4px;
  background: rgba(255, 255, 255, 0.96);
  box-shadow: 0 18px 50px rgba(16, 24, 39, 0.14);
  letter-spacing: 0;
  text-transform: none;
}

.creator-links[hidden] {
  display: none;
}

.creator-links a {
  padding: 0.62rem 0.7rem;
  border-radius: 3px;
  color: var(--ink);
  font-size: 0.86rem;
  font-weight: 800;
  line-height: 1;
  text-decoration: none;
}

.creator-links a:hover,
.creator-links a:focus-visible {
  background: rgba(189, 161, 122, 0.14);
  outline: 0;
}

.lead {
  max-width: 720px;
  margin: clamp(1rem, 2.4vw, 1.5rem) 0 0;
  color: var(--muted);
  font-size: clamp(1.02rem, 2vw, 1.35rem);
  line-height: 1.55;
}

.signup {
  width: min(920px, 100%);
  display: grid;
  gap: 0.65rem;
  margin-top: clamp(1.2rem, 3vw, 2.1rem);
  padding-top: clamp(1rem, 2vw, 1.5rem);
  border-top: 1px solid var(--line);
}

.signup p {
  margin: 0;
  color: var(--ink);
  font-size: 0.82rem;
  font-weight: 700;
}

.signup-row {
  display: grid;
  grid-template-columns: minmax(220px, 1.1fr) minmax(160px, 0.75fr) minmax(150px, auto);
  gap: 0.75rem;
  align-items: start;
}

label {
  display: grid;
  grid-template-rows: var(--field-label-height) var(--field-height);
  gap: var(--field-gap);
}

label span {
  color: var(--muted);
  font-size: 0.68rem;
  font-weight: 700;
  letter-spacing: 0.12em;
  line-height: var(--field-label-height);
  text-transform: uppercase;
}

input,
button {
  height: var(--field-height);
  border-radius: 4px;
  font: inherit;
}

input {
  width: 100%;
  border: 1px solid var(--line);
  padding: 0 0.9rem;
  color: var(--ink);
  background: #fff;
}

input:focus {
  border-color: var(--accent);
  outline: 2px solid rgba(189, 161, 122, 0.25);
  outline-offset: 0;
}

button {
  align-self: start;
  border: 1px solid var(--ink);
  margin-top: calc(var(--field-label-height) + var(--field-gap));
  padding: 0 1.25rem;
  color: #fff;
  background: var(--ink);
  font-weight: 800;
  cursor: pointer;
  white-space: nowrap;
  transition: transform 180ms ease, background 180ms ease;
}

button:hover {
  transform: translateY(-1px);
  background: #1d2738;
}

button:disabled {
  cursor: wait;
  opacity: 0.72;
}

.popup {
  position: fixed;
  right: 1rem;
  bottom: 1rem;
  width: min(360px, calc(100vw - 2rem));
  padding: 1rem;
  border: 1px solid var(--line);
  border-radius: 6px;
  background: #fff;
  box-shadow: 0 24px 70px rgba(16, 24, 39, 0.16);
}

.popup strong,
.popup span {
  display: block;
}

.popup span {
  margin-top: 0.35rem;
  color: var(--muted);
  font-size: 0.9rem;
  line-height: 1.45;
}

@keyframes fade-up {
  from {
    opacity: 0;
    transform: translateY(12px);
  }

  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@keyframes line-draw {
  from {
    transform: scaleX(0);
  }

  to {
    transform: scaleX(1);
  }
}

@keyframes map-drift {
  0%,
  100% {
    transform: translate3d(0, -50%, 0) rotate(-1.5deg);
  }

  50% {
    transform: translate3d(-18px, calc(-50% - 10px), 0) rotate(1.2deg);
  }
}

@keyframes map-mobile-drift {
  0%,
  100% {
    transform: translate3d(0, 0, 0) rotate(-0.8deg);
  }

  50% {
    transform: translate3d(-6px, -4px, 0) rotate(0.8deg);
  }
}

@media (max-width: 760px) {
  .page {
    place-items: start;
    padding: 1.1rem;
  }

  .hero {
    padding-top: 1rem;
  }

  .map-animation {
    position: relative;
    top: auto;
    right: auto;
    bottom: auto;
    z-index: 0;
    display: block;
    width: min(92%, 300px);
    min-width: 0;
    margin: 0.6rem auto 0;
    opacity: 0.9;
    transform: none;
    animation: map-mobile-drift 18s ease-in-out infinite;
  }

  h1 {
    font-size: clamp(2.65rem, 14.5vw, 4.05rem);
  }

  .lead {
    font-size: 1rem;
    line-height: 1.45;
  }

  .signup {
    gap: 0.55rem;
    margin-top: 0.95rem;
    padding-top: 0.85rem;
  }

  .signup-row {
    grid-template-columns: 1fr;
    gap: 0.55rem;
  }

  input,
  button {
    height: 46px;
  }

  label {
    grid-template-rows: 18px 46px;
  }

  button {
    margin-top: 0;
  }
}

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

@media (max-height: 660px) and (min-width: 761px) {
  h1 {
    font-size: clamp(3rem, 8vw, 5.7rem);
  }

  .lead {
    max-width: 660px;
    font-size: 1.08rem;
  }
}
