@import url("https://fonts.googleapis.com/css2?family=Space+Grotesk:wght@400;500;600;700&display=swap");

:root {
  color-scheme: light;
  --bg: #0f1219;
  --surface: #171b26;
  --surface-alt: #1f2433;
  --surface-bright: #2c3246;
  --accent: #f97316;
  --accent-soft: #facc15;
  --text: #f8fafc;
  --text-muted: #9ca3af;
  --success: #22c55e;
  --danger: #f43f5e;
  --radius-lg: 26px;
  --radius-md: 18px;
  --radius-sm: 12px;
  --shadow: 0 22px 60px rgba(15, 18, 25, 0.55);
}

* {
  box-sizing: border-box;
}

body {
  margin: 0;
  font-family: "Space Grotesk", "Segoe UI", sans-serif;
  background: radial-gradient(circle at top, #21283a 0%, #0f1219 45%, #0b0d14 100%);
  color: var(--text);
  min-height: 100vh;
}

.app {
  max-width: 1100px;
  margin: 0 auto;
  padding: 32px 24px 60px;
  display: flex;
  flex-direction: column;
  gap: 28px;
}

.hero {
  background: linear-gradient(120deg, rgba(249, 115, 22, 0.2), rgba(250, 204, 21, 0.08));
  border-radius: var(--radius-lg);
  padding: 32px;
  box-shadow: var(--shadow);
  position: relative;
  overflow: hidden;
}

.hero::after {
  content: "";
  position: absolute;
  right: -120px;
  top: -120px;
  width: 240px;
  height: 240px;
  background: radial-gradient(circle, rgba(249, 115, 22, 0.5), transparent 70%);
  opacity: 0.7;
}

.hero__brand {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-bottom: 16px;
}

.badge {
  background: var(--surface-alt);
  color: var(--accent-soft);
  font-weight: 700;
  padding: 6px 14px;
  border-radius: 999px;
  letter-spacing: 0.18em;
  font-size: 12px;
}

.pulse {
  width: 12px;
  height: 12px;
  border-radius: 999px;
  background: var(--success);
  box-shadow: 0 0 0 0 rgba(34, 197, 94, 0.6);
  animation: pulse 2s infinite;
}

.hero h1 {
  font-size: clamp(28px, 4vw, 44px);
  margin: 0 0 12px;
}

.hero p {
  margin: 0 0 24px;
  color: var(--text-muted);
  max-width: 520px;
}

.hero__cta {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
}

.grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 20px;
}

.card {
  background: var(--surface);
  border-radius: var(--radius-md);
  padding: 22px;
  box-shadow: var(--shadow);
  border: 1px solid rgba(255, 255, 255, 0.06);
}

.card h2 {
  margin-top: 0;
  margin-bottom: 16px;
}

.card--stats {
  display: flex;
  flex-direction: column;
  gap: 14px;
}

.stat {
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-size: 15px;
  color: var(--text-muted);
}

.stat__value {
  font-size: 20px;
  font-weight: 600;
  color: var(--text);
}

.card--map {
  display: flex;
  flex-direction: column;
  gap: 16px;
  min-height: 280px;
}

.map__header {
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.map__window {
  background: linear-gradient(135deg, rgba(249, 115, 22, 0.15), rgba(15, 18, 25, 0.6));
  border-radius: var(--radius-sm);
  padding: 24px;
  position: relative;
  flex: 1;
  display: grid;
  place-items: center;
  text-align: center;
}

.map__rings {
  position: absolute;
  width: 140px;
  height: 140px;
  border-radius: 50%;
  border: 2px dashed rgba(250, 204, 21, 0.4);
  animation: spin 10s linear infinite;
}

.map__window p {
  margin: 0;
  color: var(--text-muted);
  z-index: 1;
}

.map__actions {
  display: flex;
  gap: 12px;
}

.card--places {
  min-height: 220px;
}

.places {
  list-style: none;
  padding: 0;
  margin: 0;
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.places li {
  background: var(--surface-alt);
  padding: 12px 14px;
  border-radius: 12px;
  display: flex;
  justify-content: space-between;
  font-size: 14px;
  color: var(--text-muted);
}

.places__empty {
  text-align: center;
  color: var(--text-muted);
  padding: 24px 0;
  background: transparent;
}

.card--score {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  flex-wrap: wrap;
}

.score {
  display: flex;
  align-items: baseline;
  gap: 8px;
}

.score__value {
  font-size: 42px;
  font-weight: 700;
}

.score__label {
  color: var(--text-muted);
}

.btn {
  border: none;
  border-radius: 999px;
  padding: 10px 18px;
  font-weight: 600;
  cursor: pointer;
  font-size: 14px;
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.btn--primary {
  background: linear-gradient(120deg, var(--accent), var(--accent-soft));
  color: #111827;
  box-shadow: 0 10px 30px rgba(249, 115, 22, 0.3);
}

.btn--ghost {
  background: transparent;
  color: var(--text);
  border: 1px solid rgba(255, 255, 255, 0.12);
}

.btn--light {
  background: var(--surface-bright);
  color: var(--text);
}

.btn:hover {
  transform: translateY(-2px);
  box-shadow: 0 10px 20px rgba(15, 18, 25, 0.35);
}

.chip {
  padding: 4px 10px;
  border-radius: 999px;
  font-size: 12px;
  background: rgba(34, 197, 94, 0.2);
  color: var(--success);
}

.footer {
  text-align: center;
  padding: 12px 24px 40px;
  color: var(--text-muted);
  font-size: 13px;
}

.footer span {
  color: var(--accent-soft);
  font-weight: 600;
}

@keyframes pulse {
  0% {
    box-shadow: 0 0 0 0 rgba(34, 197, 94, 0.7);
  }
  70% {
    box-shadow: 0 0 0 12px rgba(34, 197, 94, 0);
  }
  100% {
    box-shadow: 0 0 0 0 rgba(34, 197, 94, 0);
  }
}

@keyframes spin {
  from {
    transform: rotate(0deg);
  }
  to {
    transform: rotate(360deg);
  }
}

@media (max-width: 720px) {
  .app {
    padding: 24px 16px 40px;
  }

  .hero {
    padding: 24px;
  }

  .card--score {
    flex-direction: column;
    align-items: flex-start;
  }
}
