:root {
  --bg: #fff8ec;
  --panel: rgba(255, 250, 240, 0.78);
  --panel-strong: rgba(255, 255, 255, 0.75);
  --ink: #172033;
  --muted: #5d6478;
  --accent: #ff6b35;
  --accent-2: #ffd166;
  --accent-3: #2274a5;
  --accent-4: #00a896;
  --accent-5: #ef476f;
  --border: rgba(23, 32, 51, 0.09);
  --shadow: 0 24px 64px rgba(56, 44, 87, 0.16);
}

* {
  box-sizing: border-box;
}

body {
  margin: 0;
  min-height: 100vh;
  font-family: "IBM Plex Sans", sans-serif;
  color: var(--ink);
  background:
    radial-gradient(circle at 12% 18%, rgba(255, 209, 102, 0.72), transparent 24%),
    radial-gradient(circle at 84% 12%, rgba(34, 116, 165, 0.24), transparent 24%),
    radial-gradient(circle at 75% 78%, rgba(0, 168, 150, 0.22), transparent 20%),
    linear-gradient(135deg, #fff4d6 0%, #ffe5d1 28%, #ffd5db 55%, #dff4ff 100%);
}

button,
input {
  font: inherit;
}

.page-shell {
  width: min(1080px, calc(100% - 36px));
  margin: 0 auto;
  padding: 20px 0 32px;
}

.hero {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 270px;
  gap: 14px;
  align-items: start;
}

.hero-copy,
.search-card,
.panel {
  background: var(--panel);
  border: 1px solid var(--border);
  border-radius: 22px;
  box-shadow: var(--shadow);
  backdrop-filter: blur(18px);
}

.hero-copy {
  padding: 22px;
  background:
    linear-gradient(145deg, rgba(255, 255, 255, 0.72), rgba(255, 245, 230, 0.82)),
    radial-gradient(circle at top right, rgba(255, 107, 53, 0.18), transparent 30%);
  position: relative;
  overflow: hidden;
}

.search-card {
  padding: 14px;
  background:
    linear-gradient(155deg, rgba(255, 255, 255, 0.72), rgba(223, 244, 255, 0.7)),
    radial-gradient(circle at bottom left, rgba(34, 116, 165, 0.14), transparent 28%);
  position: relative;
  overflow: hidden;
  align-self: start;
}

.hero-copy::after {
  content: "";
  position: absolute;
  inset: auto -40px -80px auto;
  width: 180px;
  height: 180px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(255, 209, 102, 0.35), rgba(255, 209, 102, 0));
  pointer-events: none;
}

.eyebrow,
.section-label {
  margin: 0 0 8px;
  text-transform: uppercase;
  letter-spacing: 0.16em;
  font-size: 0.68rem;
  color: var(--accent-5);
  font-weight: 700;
}

h1,
h2,
h3 {
  margin: 0;
  font-family: "Space Grotesk", sans-serif;
  line-height: 1;
}

h1 {
  font-size: clamp(1.55rem, 3.3vw, 2.75rem);
  max-width: 13ch;
  letter-spacing: -0.04em;
}

.sponsor-line {
  margin: 8px 0 0;
  font-size: 0.76rem;
  color: var(--muted);
}

.sponsor-line a {
  color: var(--accent-3);
  font-weight: 600;
  text-decoration: none;
}

.sponsor-line a:hover {
  text-decoration: underline;
}

h2 {
  font-size: clamp(1.35rem, 2.5vw, 2.15rem);
}

h3 {
  font-size: 1rem;
}

.hero-text,
.headline-text,
.muted,
.radar-note,
.status-message {
  color: var(--muted);
}

.brand-lockup {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-bottom: 14px;
}

.brand-mark {
  width: 52px;
  height: 52px;
  border-radius: 16px;
  position: relative;
  background: linear-gradient(160deg, rgba(34, 116, 165, 0.92), rgba(0, 168, 150, 0.9));
  box-shadow: 0 18px 34px rgba(34, 116, 165, 0.28);
}

.sun-core {
  position: absolute;
  width: 15px;
  height: 15px;
  border-radius: 50%;
  background: var(--accent-2);
  top: 12px;
  left: 12px;
  box-shadow: 0 0 0 6px rgba(255, 209, 102, 0.16);
}

.cloud {
  position: absolute;
  background: rgba(255, 255, 255, 0.92);
  border-radius: 999px;
}

.cloud::before,
.cloud::after {
  content: "";
  position: absolute;
  background: inherit;
  border-radius: 50%;
}

.cloud-one {
  width: 24px;
  height: 10px;
  right: 8px;
  bottom: 12px;
}

.cloud-one::before {
  width: 11px;
  height: 11px;
  left: 4px;
  top: -7px;
}

.cloud-one::after {
  width: 13px;
  height: 13px;
  right: 2px;
  top: -8px;
}

.cloud-two {
  width: 13px;
  height: 6px;
  right: 18px;
  bottom: 23px;
  opacity: 0.72;
}

.cloud-two::before {
  width: 7px;
  height: 7px;
  left: 2px;
  top: -4px;
}

.cloud-two::after {
  width: 8px;
  height: 8px;
  right: 1px;
  top: -5px;
}

.brand-type {
  display: flex;
  align-items: baseline;
  flex-wrap: wrap;
  gap: 2px;
  font-family: "Space Grotesk", sans-serif;
  line-height: 1;
}

.brand-name {
  font-size: clamp(1.05rem, 2.8vw, 1.55rem);
  font-weight: 700;
  letter-spacing: -0.05em;
  color: var(--ink);
}

.brand-dot {
  font-size: clamp(0.8rem, 1.6vw, 1rem);
  font-weight: 700;
  color: var(--accent-5);
}

.hero-badges {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 12px;
}

.hero-badges span {
  padding: 6px 10px;
  border-radius: 999px;
  background: linear-gradient(135deg, rgba(255, 255, 255, 0.7), rgba(255, 209, 102, 0.28));
  border: 1px solid rgba(23, 32, 51, 0.08);
  font-size: 0.72rem;
  font-weight: 600;
}

.search-label {
  margin: 0 0 8px;
  font-size: 0.72rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.12em;
  color: var(--accent-3);
}

.search-art {
  position: absolute;
  inset: 0;
  pointer-events: none;
}

.search-orb {
  position: absolute;
  display: block;
  border-radius: 50%;
  filter: blur(2px);
}

.orb-one {
  width: 82px;
  height: 82px;
  right: -10px;
  top: -18px;
  background: radial-gradient(circle, rgba(255, 107, 53, 0.28), rgba(255, 107, 53, 0));
}

.orb-two {
  width: 88px;
  height: 88px;
  left: -24px;
  bottom: -34px;
  background: radial-gradient(circle, rgba(34, 116, 165, 0.22), rgba(34, 116, 165, 0));
}

.orb-three {
  width: 56px;
  height: 56px;
  right: 28px;
  bottom: 24px;
  background: radial-gradient(circle, rgba(0, 168, 150, 0.18), rgba(0, 168, 150, 0));
}

.location-form {
  display: grid;
  grid-template-columns: 1fr;
  gap: 8px;
}

.location-form input {
  width: 100%;
  border: 1px solid rgba(22, 49, 37, 0.12);
  background: #ffffff;
  border-radius: 12px;
  padding: 9px 11px;
  font-size: 0.84rem;
}

.location-form button,
.ghost-button {
  border: 0;
  border-radius: 12px;
  padding: 8px 10px;
  cursor: pointer;
  transition: transform 0.18s ease, opacity 0.18s ease, background-color 0.18s ease;
  font-size: 0.8rem;
}

.location-form button {
  background: linear-gradient(135deg, var(--accent), var(--accent-5));
  color: #fff;
  font-weight: 600;
  box-shadow: 0 12px 24px rgba(239, 71, 111, 0.24);
}

.ghost-button {
  background: linear-gradient(135deg, rgba(34, 116, 165, 0.12), rgba(0, 168, 150, 0.12));
  color: var(--ink);
}

.location-form button:hover,
.ghost-button:hover {
  transform: translateY(-1px);
}

.action-row {
  display: flex;
  gap: 6px;
  flex-wrap: wrap;
  margin-top: 8px;
}

.status-message {
  min-height: 1rem;
  margin: 8px 0 0;
  font-size: 0.74rem;
  line-height: 1.35;
}

.dashboard {
  display: grid;
  gap: 14px;
  margin-top: 14px;
}

.panel {
  padding: 16px;
  background:
    linear-gradient(160deg, rgba(255, 255, 255, 0.66), rgba(255, 248, 238, 0.82)),
    radial-gradient(circle at top left, rgba(255, 209, 102, 0.16), transparent 24%);
  position: relative;
  overflow: hidden;
}

.panel::before {
  content: "";
  position: absolute;
  inset: 0 auto auto 0;
  width: 100%;
  height: 4px;
  background: linear-gradient(90deg, var(--accent), var(--accent-2), var(--accent-4), var(--accent-3), var(--accent-5));
}

.current-layout {
  display: grid;
  grid-template-columns: 1.15fr 1fr;
  gap: 12px;
  margin-top: 12px;
}

.current-main {
  display: flex;
  flex-direction: column;
  justify-content: center;
}

.temp-row {
  display: flex;
  gap: 10px;
  align-items: center;
  flex-wrap: wrap;
}

.current-temp {
  font-family: "Space Grotesk", sans-serif;
  font-size: clamp(2rem, 5vw, 3.3rem);
  line-height: 0.9;
}

.condition-pill {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 6px 10px;
  border-radius: 999px;
  background: linear-gradient(135deg, rgba(34, 116, 165, 0.14), rgba(0, 168, 150, 0.18));
  color: var(--accent-3);
  font-weight: 600;
  font-size: 0.78rem;
}

.headline-text {
  margin: 10px 0 0;
  font-size: 0.82rem;
  line-height: 1.45;
}

.metric-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 8px;
}

.metric-card,
.hour-card,
.day-card {
  border: 1px solid var(--border);
  border-radius: 16px;
  background: var(--panel-strong);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.55);
}

.metric-card {
  padding: 11px;
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.86), rgba(255, 245, 232, 0.82));
}

.metric-card span {
  display: block;
  font-size: 0.68rem;
  color: var(--muted);
  margin-bottom: 6px;
}

.metric-card strong {
  font-size: 0.98rem;
  font-family: "Space Grotesk", sans-serif;
  color: var(--accent-3);
}

.split-header {
  display: flex;
  justify-content: space-between;
  gap: 10px;
  align-items: end;
  margin-bottom: 10px;
}

.precip-chart {
  display: grid;
  grid-template-columns: repeat(12, minmax(0, 1fr));
  gap: 6px;
  align-items: end;
  min-height: 148px;
}

.bar-wrap {
  display: flex;
  flex-direction: column;
  gap: 4px;
  align-items: center;
}

.bar {
  width: 100%;
  min-height: 8px;
  border-radius: 16px 16px 6px 6px;
  background: linear-gradient(180deg, var(--accent-5) 0%, var(--accent) 48%, var(--accent-4) 100%);
  box-shadow: inset 0 -8px 18px rgba(255, 255, 255, 0.16);
}

.bar-label,
.bar-value {
  font-size: 0.64rem;
  color: var(--muted);
  text-align: center;
}

.hourly-forecast {
  display: grid;
  grid-template-columns: repeat(6, minmax(120px, 1fr));
  gap: 8px;
  overflow-x: auto;
}

.hour-card,
.day-card {
  padding: 10px;
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.hour-card:hover,
.day-card:hover,
.metric-card:hover {
  transform: translateY(-3px);
  box-shadow: 0 18px 30px rgba(56, 44, 87, 0.1);
}

.hour-card .time,
.day-card .day {
  font-weight: 600;
  color: var(--accent-5);
  font-size: 0.76rem;
}

.forecast-top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
}

.weather-icon {
  width: 18px;
  height: 18px;
  flex: 0 0 18px;
}

.weather-icon.large {
  width: 20px;
  height: 20px;
  flex-basis: 20px;
}

.weather-icon .sun-rays {
  transform-origin: 32px 32px;
  animation: spin-rays 10s linear infinite;
}

.weather-icon .cloud-shape {
  animation: cloud-drift 4.6s ease-in-out infinite;
}

.weather-icon .raindrop {
  animation: rain-drop 1.4s ease-in infinite;
}

.weather-icon .raindrop.delay-1 {
  animation-delay: 0.22s;
}

.weather-icon .raindrop.delay-2 {
  animation-delay: 0.44s;
}

.weather-icon .snow-dot {
  animation: snow-fall 2.4s ease-in-out infinite;
}

.weather-icon .snow-dot.delay-1 {
  animation-delay: 0.25s;
}

.weather-icon .snow-dot.delay-2 {
  animation-delay: 0.5s;
}

.weather-icon .bolt {
  transform-origin: 34px 40px;
  animation: lightning-flash 1.9s steps(1, end) infinite;
}

@keyframes spin-rays {
  from {
    transform: rotate(0deg);
  }

  to {
    transform: rotate(360deg);
  }
}

@keyframes cloud-drift {
  0%,
  100% {
    transform: translateX(0);
  }

  50% {
    transform: translateX(2px);
  }
}

@keyframes rain-drop {
  0% {
    transform: translateY(-2px);
    opacity: 0;
  }

  20% {
    opacity: 1;
  }

  100% {
    transform: translateY(8px);
    opacity: 0;
  }
}

@keyframes snow-fall {
  0%,
  100% {
    transform: translateY(0);
    opacity: 0.85;
  }

  50% {
    transform: translateY(4px);
    opacity: 1;
  }
}

@keyframes lightning-flash {
  0%,
  70%,
  100% {
    opacity: 0.55;
  }

  72%,
  78% {
    opacity: 1;
  }

  75% {
    opacity: 0.2;
  }
}

.hour-card .temp,
.day-card .temps {
  font-family: "Space Grotesk", sans-serif;
  font-size: 0.94rem;
  margin: 6px 0 4px;
}

.current-panel {
  background:
    linear-gradient(145deg, rgba(255, 255, 255, 0.72), rgba(224, 244, 255, 0.76)),
    radial-gradient(circle at right center, rgba(34, 116, 165, 0.12), transparent 28%);
}

.radar-panel {
  background:
    linear-gradient(145deg, rgba(255, 255, 255, 0.7), rgba(226, 247, 245, 0.82)),
    radial-gradient(circle at top right, rgba(0, 168, 150, 0.14), transparent 26%);
}

.small-copy {
  color: var(--muted);
  font-size: 0.72rem;
  line-height: 1.35;
}

.daily-forecast {
  display: grid;
  grid-template-columns: repeat(7, minmax(0, 1fr));
  gap: 8px;
}

.radar-controls {
  display: flex;
  align-items: center;
  gap: 8px;
  flex-wrap: wrap;
}

.radar-frame {
  min-height: 330px;
  border-radius: 18px;
  overflow: hidden;
  border: 1px solid var(--border);
  background:
    linear-gradient(135deg, rgba(34, 116, 165, 0.24), rgba(255, 209, 102, 0.28)),
    #dce6f2;
}

.radar-embed {
  display: block;
  width: 100%;
  min-height: 330px;
  border: 0;
}

.radar-note {
  margin: 8px 0 0;
  font-size: 0.68rem;
}

.radar-note a {
  color: var(--accent-3);
}

.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

@media (max-width: 980px) {
  .hero,
  .current-layout {
    grid-template-columns: 1fr;
  }

  .search-card {
    max-width: 420px;
  }

  .daily-forecast {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .hourly-forecast {
    grid-template-columns: repeat(6, minmax(120px, 150px));
  }
}

@media (max-width: 640px) {
  .page-shell {
    width: min(100% - 20px, 1180px);
    padding-top: 14px;
  }

  .hero-copy,
  .search-card,
  .panel {
    border-radius: 18px;
  }

  .split-header {
    align-items: start;
    flex-direction: column;
  }

  .precip-chart {
    gap: 8px;
  }

  .daily-forecast {
    grid-template-columns: 1fr;
  }

  .metric-grid {
    grid-template-columns: 1fr 1fr;
  }
}
