:root {
  --bg: #0f1b2d;
  --bg-alt: #1a2b49;
  --card: #131f35;
  --accent: #ffb347;
  --accent-strong: #ff7a59;
  --text: #f2f4f8;
  --muted: #98a4b8;
  --border: rgba(255, 255, 255, 0.12);
  --shadow: rgba(10, 20, 35, 0.45);
}

* {
  box-sizing: border-box;
}

body {
  margin: 0;
  min-height: 100vh;
  font-family: "Space Grotesk", sans-serif;
  color: var(--text);
  background: radial-gradient(circle at top, #1f2f4c 0%, #0f1b2d 55%) fixed;
  position: relative;
}

.background-orb {
  position: absolute;
  width: 420px;
  height: 420px;
  background: radial-gradient(circle, rgba(255, 179, 71, 0.25), transparent 70%);
  top: -120px;
  right: -120px;
  filter: blur(8px);
  z-index: 0;
}

.hero {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 36px 8vw 18px;
  gap: 24px;
  position: relative;
  z-index: 1;
}

.eyebrow {
  letter-spacing: 0.2em;
  text-transform: uppercase;
  font-size: 12px;
  color: var(--accent);
  margin: 0 0 8px;
}

h1 {
  margin: 0 0 6px;
  font-size: clamp(28px, 4vw, 40px);
}

.subtitle {
  margin: 0;
  color: var(--muted);
  max-width: 420px;
}

.api-pill {
  background: linear-gradient(120deg, rgba(255, 122, 89, 0.15), rgba(255, 179, 71, 0.2));
  padding: 10px 16px;
  border-radius: 999px;
  font-size: 14px;
  border: 1px solid rgba(255, 179, 71, 0.3);
}

.layout {
  display: grid;
  grid-template-columns: minmax(260px, 360px) minmax(0, 1fr);
  gap: 24px;
  padding: 24px 8vw 48px;
  position: relative;
  z-index: 1;
}

.panel {
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: 18px;
  padding: 22px;
  box-shadow: 0 18px 40px var(--shadow);
  animation: fadeUp 0.6s ease both;
}

.map-panel {
  padding: 0;
  overflow: hidden;
}

#map {
  height: 520px;
  width: 100%;
}

h2 {
  margin: 0 0 16px;
}

.form {
  display: grid;
  gap: 12px;
}

label {
  display: grid;
  gap: 6px;
  font-size: 14px;
  color: var(--muted);
}

input {
  background: rgba(255, 255, 255, 0.06);
  border: 1px solid var(--border);
  border-radius: 10px;
  padding: 10px 12px;
  color: var(--text);
  font-size: 14px;
}

input:focus {
  outline: 2px solid rgba(255, 179, 71, 0.6);
  border-color: transparent;
}

.primary {
  margin-top: 8px;
  background: linear-gradient(120deg, var(--accent), var(--accent-strong));
  border: none;
  color: #1b1b1b;
  padding: 12px 14px;
  border-radius: 12px;
  font-weight: 600;
  cursor: pointer;
  transition: transform 0.2s ease;
}

.primary:hover {
  transform: translateY(-1px);
}

.actions {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(140px, 1fr));
  gap: 10px;
  margin-top: 18px;
}

.ghost {
  background: transparent;
  border: 1px solid var(--border);
  color: var(--text);
  padding: 10px 12px;
  border-radius: 10px;
  cursor: pointer;
}

.status {
  margin-top: 16px;
  font-size: 13px;
  color: var(--accent);
}

.log {
  margin-top: 12px;
  background: rgba(8, 12, 20, 0.6);
  border-radius: 12px;
  padding: 12px;
  color: var(--muted);
  max-height: 160px;
  overflow: auto;
}

.footer {
  text-align: center;
  color: var(--muted);
  font-size: 13px;
  padding-bottom: 28px;
}

@keyframes fadeUp {
  from {
    opacity: 0;
    transform: translateY(12px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@media (max-width: 900px) {
  .layout {
    grid-template-columns: 1fr;
  }

  #map {
    height: 420px;
  }
}
