:root {
  --bg: #0d1017;
  --fg: #e8f0f2;
  --muted: #9cb4c0;
  --panel: rgba(255, 255, 255, 0.06);
  --accent: #5fe1b3;
  --accent-2: #f6b76d;
  --border: rgba(255, 255, 255, 0.12);
  --shadow: 0 20px 60px rgba(0, 0, 0, 0.35);
  --radius: 18px;
  --font: "Space Grotesk", system-ui, -apple-system, sans-serif;
}

*,
*::before,
*::after {
  box-sizing: border-box;
}

body {
  margin: 0;
  min-height: 100vh;
  font-family: var(--font);
  background: radial-gradient(120% 120% at 20% 20%, #1a1f2b 0%, #0d1017 45%, #0a0c12 100%);
  color: var(--fg);
  padding: 32px clamp(20px, 4vw, 48px) 64px;
  position: relative;
  overflow-x: hidden;
}

.background-orb {
  position: fixed;
  filter: blur(80px);
  opacity: 0.7;
  pointer-events: none;
  animation: float 20s ease-in-out infinite;
}

@keyframes float {
  0%, 100% { transform: translate(0, 0) scale(1); }
  25% { transform: translate(20px, -10px) scale(1.05); }
  50% { transform: translate(-10px, 20px) scale(0.95); }
  75% { transform: translate(-20px, -15px) scale(1.02); }
}

@keyframes fadeIn {
  from { opacity: 0; transform: translateY(10px); }
  to { opacity: 1; transform: translateY(0); }
}

@keyframes bounce {
  0%, 100% { transform: scale(1); }
  50% { transform: scale(1.15); }
}

@keyframes slideIn {
  from {
    opacity: 0;
    transform: translateX(-10px);
  }
  to {
    opacity: 1;
    transform: translateX(0);
  }
}

.orb-b {
  animation-delay: -10s;
}

.orb-a {
  width: 380px;
  height: 380px;
  background: #63ffd4;
  top: -80px;
  right: 5%;
}

.orb-b {
  width: 420px;
  height: 420px;
  background: #ff9f55;
  bottom: -120px;
  left: -80px;
}

.hero {
  display: grid;
  grid-template-columns: 2fr 1fr;
  gap: 24px;
  align-items: center;
  margin-bottom: 28px;
}

.hero__text h1 {
  margin: 4px 0 8px;
  font-size: clamp(38px, 5vw, 56px);
  letter-spacing: -0.02em;
}

.hero__text .lede {
  margin: 0 0 12px;
  color: var(--muted);
  max-width: 540px;
}

/* Hero text animations */
.hero__text {
  animation: fadeIn 0.6s ease backwards;
}

.hero__badge {
  justify-self: end;
  background: linear-gradient(135deg, rgba(255, 255, 255, 0.1), rgba(95, 225, 179, 0.12));
  border: 1px solid var(--border);
  padding: 18px 22px;
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  width: min(360px, 100%);
  transition: transform 0.3s ease, box-shadow 0.3s ease;
  animation: fadeIn 0.6s ease 0.2s backwards;
}

.hero__badge:hover {
  transform: translateY(-4px);
  box-shadow: 0 28px 80px rgba(0, 0, 0, 0.45), 0 0 40px rgba(95, 225, 179, 0.15);
}

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

.hero__badge-cond {
  color: var(--muted);
  margin: 6px 0;
}

.hero__badge-snack {
  color: var(--accent-2);
  font-weight: 600;
}

.eyebrow {
  text-transform: uppercase;
  letter-spacing: 0.08em;
  font-size: 11px;
  color: var(--muted);
  margin: 0;
}

.chips {
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
}

.chip {
  background: rgba(255, 255, 255, 0.06);
  border: 1px solid var(--border);
  padding: 6px 10px;
  border-radius: 999px;
  font-size: 12px;
  color: var(--muted);
  animation: fadeIn 0.4s ease backwards;
}

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

.card {
  background: var(--panel);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 18px;
  box-shadow: var(--shadow);
  backdrop-filter: blur(12px);
  transition: transform 0.25s ease, box-shadow 0.25s ease, border-color 0.25s ease;
}

.card:hover {
  transform: translateY(-2px);
  box-shadow: 0 28px 70px rgba(0, 0, 0, 0.4), 0 0 30px rgba(95, 225, 179, 0.08);
  border-color: rgba(95, 225, 179, 0.3);
}

.card__header {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  margin-bottom: 10px;
  gap: 12px;
}

.card h2 {
  margin: 4px 0 0;
  font-size: 22px;
}

.controls {
  grid-column: span 1;
}

.forecast {
  grid-column: span 1;
}

.suggestion {
  grid-column: span 1;
}

.field {
  display: flex;
  flex-direction: column;
  gap: 8px;
  margin: 12px 0;
}

.field textarea {
  width: 100%;
  padding: 12px;
  border-radius: 12px;
  border: 1px solid var(--border);
  background: rgba(255, 255, 255, 0.06);
  color: var(--fg);
  font-family: var(--font);
  resize: vertical;
  transition: border-color 0.2s ease, background 0.2s ease;
}

.field textarea:focus {
  outline: none;
  border-color: var(--accent);
  background: rgba(95, 225, 179, 0.08);
}

.field__label {
  display: flex;
  justify-content: space-between;
  color: var(--muted);
  font-size: 14px;
}

input[type="range"] {
  width: 100%;
  accent-color: var(--accent);
}

.select {
  position: relative;
}

.select select {
  width: 100%;
  padding: 12px;
  border-radius: 12px;
  border: 1px solid var(--border);
  background: rgba(255, 255, 255, 0.06);
  color: var(--fg);
  font-family: var(--font);
}

.select__icon {
  position: absolute;
  right: 12px;
  top: 50%;
  transform: translateY(-50%);
  color: var(--muted);
  pointer-events: none;
}

button,
textarea {
  font-family: var(--font);
  border: none;
  cursor: pointer;
  transition: transform 120ms ease, box-shadow 120ms ease, filter 120ms ease;
}

button:active {
  transform: translateY(1px);
}

.primary {
  width: 100%;
  background: linear-gradient(135deg, var(--accent), #8df6d0);
  color: #0e1a16;
  padding: 14px;
  border-radius: 14px;
  font-weight: 700;
  box-shadow: 0 12px 24px rgba(95, 225, 179, 0.35);
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.primary:hover {
  transform: translateY(-2px);
  box-shadow: 0 16px 32px rgba(95, 225, 179, 0.45);
}

.primary:active {
  transform: translateY(0);
  box-shadow: 0 8px 16px rgba(95, 225, 179, 0.3);
}

.ghost {
  background: transparent;
  color: var(--fg);
  border: 1px solid var(--border);
  padding: 10px 12px;
  border-radius: 12px;
  transition: all 0.2s ease;
}

.ghost:hover {
  background: rgba(255, 255, 255, 0.08);
  border-color: var(--accent);
  color: var(--accent);
}

.hint {
  color: var(--muted);
  margin: 4px 0 0;
  font-size: 13px;
}

.forecast__list {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(140px, 1fr));
  gap: 12px;
}

.forecast-tile {
  border: 1px solid var(--border);
  padding: 14px;
  border-radius: 14px;
  background: rgba(255, 255, 255, 0.05);
  cursor: pointer;
  transition: border 120ms ease, transform 120ms ease;
}

.forecast-tile:hover {
  border-color: var(--accent);
  transform: translateY(-2px);
}

.forecast-tile.active {
  border-color: var(--accent);
  box-shadow: 0 10px 30px rgba(95, 225, 179, 0.25);
}

.forecast-tile h3 {
  margin: 6px 0 4px;
  font-size: 16px;
}

.forecast-tile .meta {
  color: var(--muted);
  font-size: 13px;
}

.emoji {
  font-size: 42px;
  animation: bounce 0.6s ease;
}

@keyframes bounce {
  0%, 100% { transform: scale(1); }
  50% { transform: scale(1.15); }
}

@keyframes fadeIn {
  from { opacity: 0; transform: translateY(10px); }
  to { opacity: 1; transform: translateY(0); }
}

.suggestion__top {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 12px;
  padding: 12px 0 6px;
}

.suggestion__lead {
  margin: 0 0 8px;
  font-size: 18px;
}

.tags {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
}

.tags .chip {
  border-color: rgba(255, 255, 255, 0.2);
}

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

.snack-item {
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid var(--border);
  border-radius: 12px;
  padding: 12px;
  transition: all 0.25s ease;
  animation: slideIn 0.4s ease backwards;
}

@keyframes slideIn {
  from {
    opacity: 0;
    transform: translateX(-10px);
  }
  to {
    opacity: 1;
    transform: translateX(0);
  }
}

.snack-item:hover {
  background: rgba(255, 255, 255, 0.08);
  border-color: rgba(95, 225, 179, 0.3);
  transform: translateX(4px);
}

.snack-item strong {
  display: block;
  margin-bottom: 4px;
}

.snack-item span {
  color: var(--muted);
  font-size: 14px;
}

.note {
  margin-top: 12px;
  padding: 12px 14px;
  border-radius: 12px;
  border: 1px dashed rgba(255, 255, 255, 0.25);
  background: rgba(95, 225, 179, 0.08);
  color: var(--fg);
  font-size: 14px;
  line-height: 1.4;
}

.footer {
  margin-top: 22px;
  color: var(--muted);
  text-align: center;
  font-size: 13px;
}

@media (max-width: 1024px) {
  .hero {
    grid-template-columns: 1fr;
  }
  .hero__badge {
    justify-self: start;
  }
  .grid {
    grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  }
}

@media (max-width: 640px) {
  body {
    padding: 20px 16px 48px;
  }
  .card__header {
    flex-direction: column;
  }
  .suggestion__top {
    flex-direction: column;
    align-items: flex-start;
  }
}
