@import url("https://fonts.googleapis.com/css2?family=Montserrat:wght@500;600;700;800;900&display=swap");

:root {
  --bg: #f6f6f7;
  --text: #222224;
  --soft: rgba(34, 34, 36, 0.54);

  --orange: #ff6b1a;
  --orange-dark: #ef5d10;
  --orange-soft: rgba(255, 107, 26, 0.14);

  --green: #bdff3f;
  --white: #ffffff;
  --line: rgba(0, 0, 0, 0.07);

  --shadow: 0 28px 90px rgba(0, 0, 0, 0.11);
  --ease: 0.32s cubic-bezier(0.22, 1, 0.36, 1);
}

/* ================================
   Reset
================================ */

* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

html,
body {
  width: 100%;
  min-height: 100%;
}

body {
  font-family: "Montserrat", system-ui, sans-serif;
  background: var(--bg);
  color: var(--text);
  overflow-x: hidden;
}

a {
  color: inherit;
  text-decoration: none;
}

::selection {
  background: var(--orange-soft);
}

/* ================================
   Main world
================================ */

.arfi-world {
  position: relative;
  min-height: 100vh;
  overflow: hidden;
  background:
    radial-gradient(circle at 86% 12%, rgba(255, 107, 26, 0.16), transparent 28%),
    radial-gradient(circle at 8% 20%, rgba(189, 255, 63, 0.18), transparent 24%),
    linear-gradient(180deg, #fbfbfb 0%, #eeeeef 100%);
}

/* ================================
   Map background
================================ */

.map-bg {
  position: absolute;
  inset: 0;
  z-index: 1;
  pointer-events: none;
  overflow: hidden;
}

.map-bg::before {
  content: "";
  position: absolute;
  inset: 0;
  opacity: 0.18;
  background-image:
    linear-gradient(rgba(0, 0, 0, 0.03) 1px, transparent 1px),
    linear-gradient(90deg, rgba(0, 0, 0, 0.03) 1px, transparent 1px);
  background-size: 74px 74px;
  mask-image: radial-gradient(circle at 58% 50%, black, transparent 78%);
}

.map-line {
  position: absolute;
  height: 2px;
  border-radius: 999px;
  background: rgba(255, 107, 26, 0.16);
  transform-origin: left center;
}

.line-one {
  width: 760px;
  left: 12%;
  top: 57%;
  transform: rotate(-14deg);
}

.line-two {
  width: 720px;
  right: 4%;
  top: 40%;
  transform: rotate(18deg);
}

.line-three {
  width: 620px;
  left: 36%;
  bottom: 18%;
  transform: rotate(9deg);
}

.map-pin {
  position: absolute;
  width: 34px;
  height: 34px;

  display: flex;
  align-items: center;
  justify-content: center;

  border-radius: 50%;
  background: var(--white);
  box-shadow: 0 16px 42px rgba(0, 0, 0, 0.13);
  animation: pinFloat 6s ease-in-out infinite;
}

.map-pin span {
  width: 13px;
  height: 13px;
  border-radius: 50%;
  background: var(--orange);
  box-shadow: 0 0 0 8px var(--orange-soft);
}

.pin-one {
  left: 18%;
  top: 32%;
}

.pin-two {
  right: 22%;
  top: 24%;
  animation-delay: -2s;
}

.pin-three {
  right: 14%;
  bottom: 22%;
  animation-delay: -4s;
}

.pin-four {
  left: 42%;
  bottom: 18%;
  animation-delay: -1s;
}

.pulse-zone {
  position: absolute;
  width: 420px;
  height: 420px;
  border: 2px solid rgba(255, 107, 26, 0.13);
  border-radius: 50%;
  animation: pulseZone 5.8s ease-out infinite;
}

.zone-one {
  right: 12%;
  top: 20%;
}

.zone-two {
  left: 4%;
  bottom: 8%;
  animation-delay: 2.4s;
}

/* ================================
   Hero
================================ */

.hero {
  position: relative;
  z-index: 5;
  min-height: 100vh;
  padding: 34px 60px 54px;

  display: flex;
  flex-direction: column;
}

.topbar {
  position: relative;
  z-index: 10;
  width: 100%;
  height: 92px;

  display: flex;
  align-items: center;
}

.logo {
  width: 165px;
  display: inline-flex;
  align-items: center;
}

.logo img {
  width: 100%;
  height: auto;
  display: block;
}

.hero-content {
  position: relative;
  z-index: 6;
  flex: 1;
  max-width: 1120px;
  padding-top: 24px;

  display: flex;
  flex-direction: column;
  justify-content: center;
}

h1 {
  max-width: 830px;
  font-size: clamp(76px, 10vw, 158px);
  font-weight: 900;
  line-height: 0.88;
  letter-spacing: -0.095em;
}

.hero-text {
  max-width: 650px;
  margin-top: 30px;

  font-size: clamp(22px, 2.2vw, 34px);
  font-weight: 850;
  line-height: 1.1;
  letter-spacing: -0.06em;
  color: var(--soft);
}

.actions {
  margin-top: 44px;

  display: flex;
  align-items: center;
  gap: 16px;
  flex-wrap: wrap;
}

.primary-button,
.secondary-button {
  height: 62px;
  padding: 0 34px;

  display: inline-flex;
  align-items: center;
  justify-content: center;

  border-radius: 999px;
  font-size: 16px;
  font-weight: 900;
  letter-spacing: -0.03em;

  transition:
    transform var(--ease),
    box-shadow var(--ease),
    background var(--ease),
    border-color var(--ease);
}

.primary-button {
  background: var(--orange);
  color: var(--white);
  box-shadow: 0 18px 44px rgba(255, 107, 26, 0.32);
}

.secondary-button {
  background: rgba(255, 255, 255, 0.86);
  color: var(--text);
  border: 1px solid var(--line);
  box-shadow: 0 16px 44px rgba(0, 0, 0, 0.075);
  backdrop-filter: blur(22px);
  -webkit-backdrop-filter: blur(22px);
}

.primary-button:hover,
.secondary-button:hover {
  transform: translateY(-2px) scale(1.025);
}

.primary-button:hover {
  background: var(--orange-dark);
}

/* ================================
   Floating UI
================================ */

.floating-ui {
  position: absolute;
  inset: 0;
  z-index: 4;
  pointer-events: none;
}

.music-object {
  position: absolute;
  right: 15%;
  top: 42%;

  width: clamp(160px, 16vw, 250px);
  height: clamp(160px, 16vw, 250px);

  display: flex;
  align-items: center;
  justify-content: center;

  border-radius: 44px;
  background: linear-gradient(135deg, #ffffff, #fff1e8);
  border: 1px solid var(--line);
  box-shadow: var(--shadow);

  color: var(--text);
  font-size: clamp(48px, 5vw, 76px);
  font-weight: 900;

  transform: rotate(-9deg);
  animation: musicFloat 7s ease-in-out infinite;
}

.music-object::after {
  content: "";
  position: absolute;
  inset: 0;
  border-radius: inherit;
  opacity: 0.13;
  background-image: radial-gradient(#000 1.2px, transparent 1.2px);
  background-size: 9px 9px;
}

/* Track nearby: no white background */
.nearby-pill {
  position: absolute;
  right: 27%;
  top: 32%;

  height: auto;
  padding: 0;

  display: inline-flex;
  align-items: center;
  justify-content: center;

  background: transparent;
  border: none;
  border-radius: 0;
  box-shadow: none;
  backdrop-filter: none;
  -webkit-backdrop-filter: none;

  font-size: 14px;
  font-weight: 900;
  color: var(--text);
  letter-spacing: -0.04em;

  animation: pillFloat 7s ease-in-out infinite;
}

/* Distance pill keeps the soft glass background */
.distance-pill {
  position: absolute;
  right: 24%;
  bottom: 27%;

  height: 50px;
  padding: 0 22px;

  display: inline-flex;
  align-items: center;
  justify-content: center;

  background: rgba(255, 255, 255, 0.86);
  border: 1px solid var(--line);
  border-radius: 999px;
  box-shadow: 0 18px 50px rgba(0, 0, 0, 0.09);
  backdrop-filter: blur(22px);
  -webkit-backdrop-filter: blur(22px);

  font-size: 14px;
  font-weight: 900;
  color: var(--text);
  letter-spacing: -0.04em;

  animation: pillFloat 7s ease-in-out infinite;
  animation-delay: -3s;
}

/* ================================
   Animations
================================ */

@keyframes pinFloat {
  0%,
  100% {
    transform: translateY(0) scale(1);
  }

  50% {
    transform: translateY(-10px) scale(1.04);
  }
}

@keyframes pulseZone {
  0% {
    transform: scale(0.65);
    opacity: 0;
  }

  24% {
    opacity: 0.7;
  }

  100% {
    transform: scale(1.65);
    opacity: 0;
  }
}

@keyframes musicFloat {
  0%,
  100% {
    transform: translate3d(0, 0, 0) rotate(-9deg);
  }

  50% {
    transform: translate3d(0, -22px, 0) rotate(5deg);
  }
}

@keyframes pillFloat {
  0%,
  100% {
    transform: translateY(0);
  }

  50% {
    transform: translateY(-14px);
  }
}

/* ================================
   JS states
================================ */

.is-pressed {
  transform: scale(0.975) !important;
}

/* ================================
   Responsive
================================ */

@media (max-width: 1100px) {
  .hero {
    padding: 28px 36px 46px;
  }

  .music-object {
    right: 6%;
    top: 48%;
    opacity: 0.78;
  }

  .nearby-pill {
    right: 18%;
    top: 34%;
  }

  .distance-pill {
    right: 15%;
    bottom: 24%;
  }
}

@media (max-width: 900px) {
  .hero {
    padding: 24px 24px 42px;
  }

  .topbar {
    height: 78px;
  }

  .logo {
    width: 145px;
  }

  .hero-content {
    justify-content: flex-start;
    padding-top: 120px;
  }

  .music-object {
    right: -52px;
    top: 56%;
    opacity: 0.72;
  }

  .nearby-pill,
  .distance-pill {
    display: none;
  }

  .pulse-zone {
    width: 300px;
    height: 300px;
  }
}

@media (max-width: 560px) {
  .hero {
    padding: 20px 20px 34px;
  }

  .topbar {
    height: 70px;
  }

  .logo {
    width: 128px;
  }

  .hero-content {
    padding-top: 88px;
  }

  h1 {
    font-size: clamp(60px, 18vw, 88px);
  }

  .hero-text {
    max-width: 420px;
    font-size: 21px;
  }

  .actions {
    width: 100%;
    margin-top: 36px;
  }

  .primary-button,
  .secondary-button {
    width: 100%;
    height: 58px;
  }

  .music-object {
    width: 170px;
    height: 170px;
    right: -78px;
    top: 58%;
  }

  .map-line {
    opacity: 0.45;
  }

  .pin-one {
    left: 12%;
    top: 28%;
  }

  .pin-four {
    left: 34%;
    bottom: 16%;
  }
}

/* ================================
   Accessibility
================================ */

@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }

  *,
  *::before,
  *::after {
    animation-duration: 0.001ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.001ms !important;
  }
}
/* ================================
   Soft hover movement
================================ */

.music-object,
.map-pin,
.nearby-pill,
.distance-pill {
  transition:
    transform 0.35s cubic-bezier(0.22, 1, 0.36, 1),
    box-shadow 0.35s cubic-bezier(0.22, 1, 0.36, 1),
    opacity 0.35s cubic-bezier(0.22, 1, 0.36, 1);
}

.music-object:hover {
  animation-play-state: paused;
  transform: translate3d(0, -12px, 0) rotate(-5deg) scale(1.035);
  box-shadow: 0 36px 110px rgba(0, 0, 0, 0.16);
}

.map-pin:hover {
  animation-play-state: paused;
  transform: translate3d(0, -8px, 0) scale(1.12);
  box-shadow: 0 22px 58px rgba(255, 107, 26, 0.24);
}

.nearby-pill:hover,
.distance-pill:hover {
  animation-play-state: paused;
  transform: translate3d(0, -6px, 0) scale(1.035);
}