@font-face {
  font-family: "Nunito";
  font-weight: 700;
  src: url("/fonts/nunito-bold.ttf") format("truetype");
  font-display: swap;
}

@font-face {
  font-family: "Nunito";
  font-weight: 800;
  src: url("/fonts/nunito-extrabold.ttf") format("truetype");
  font-display: swap;
}

@font-face {
  font-family: "Nunito";
  font-weight: 900;
  src: url("/fonts/nunito-black.ttf") format("truetype");
  font-display: swap;
}

:root {
  color-scheme: dark;
  --bg: #080b18;
  --line: rgba(255, 255, 255, 0.16);
  --text: #ffffff;
  --muted: #a4a9bb;
  --dim: #d9dce6;
  --blue: #3d6fee;
  --blue-soft: #6da8ff;
  --amber: #f59e0b;
  --violet: #8d86ff;
  --cyan: #65c8ff;
  --shadow: 0 24px 70px rgba(0, 0, 0, 0.32);
}

* {
  box-sizing: border-box;
}

html {
  min-height: 100%;
  background: var(--bg);
}

body {
  min-height: 100%;
  margin: 0;
  color: var(--text);
  font-family: "Nunito", system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  background:
    radial-gradient(circle at 88% 9%, rgba(61, 111, 238, 0.28), transparent 26rem),
    radial-gradient(circle at 12% 82%, rgba(245, 158, 11, 0.14), transparent 24rem),
    linear-gradient(180deg, #080b18 0%, #0a1023 46%, #080b18 100%);
}

button,
input {
  font: inherit;
}

button {
  cursor: pointer;
}

.app-shell {
  width: min(100%, 520px);
  margin: 0 auto;
  padding: max(20px, env(safe-area-inset-top)) 16px 42px;
}

.hero-screen {
  min-height: calc(100svh - 26px);
  display: flex;
  flex-direction: column;
  gap: 18px;
}

.app-bar {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 54px 54px;
  gap: 10px;
  align-items: center;
}

.location-picker,
.round-button,
.glass-panel,
.alert {
  border: 1px solid var(--line);
  background:
    linear-gradient(145deg, rgba(255, 255, 255, 0.12), rgba(255, 255, 255, 0.045)),
    rgba(13, 18, 38, 0.82);
  box-shadow: var(--shadow);
  backdrop-filter: blur(24px);
}

.location-picker {
  min-width: 0;
  height: 60px;
  display: grid;
  grid-template-columns: auto minmax(0, 1fr) auto;
  align-items: center;
  gap: 10px;
  padding: 0 14px;
  border-radius: 999px;
}

.live-dot {
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background: var(--blue);
  box-shadow: 0 0 18px rgba(61, 111, 238, 0.95);
}

.search-label {
  min-width: 0;
}

.search-label input {
  width: 100%;
  border: 0;
  outline: 0;
  color: var(--text);
  background: transparent;
  font-size: 17px;
  font-weight: 900;
  text-overflow: ellipsis;
}

.search-label input::placeholder {
  color: rgba(255, 255, 255, 0.84);
}

.picker-chevron,
.round-button,
.send-button {
  border: 0;
  color: var(--text);
}

.picker-chevron {
  width: 24px;
  background: transparent;
  color: rgba(255, 255, 255, 0.6);
  font-size: 26px;
  line-height: 1;
}

.round-button {
  width: 54px;
  height: 54px;
  border-radius: 22px;
  font-size: 25px;
  font-weight: 900;
}

.suggestions {
  display: grid;
  gap: 8px;
  padding: 10px;
  border: 1px solid var(--line);
  border-radius: 28px;
  background: rgba(8, 11, 24, 0.96);
  box-shadow: var(--shadow);
}

.suggestion {
  display: flex;
  justify-content: space-between;
  gap: 12px;
  width: 100%;
  padding: 13px 14px;
  border: 0;
  border-radius: 20px;
  color: var(--text);
  background: rgba(255, 255, 255, 0.06);
  text-align: left;
  font-weight: 800;
}

.hero-center {
  flex: 1;
  min-height: 680px;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: 26px 0 42px;
  text-align: center;
}

.hero-icon {
  width: clamp(116px, 30vw, 164px);
  height: clamp(116px, 30vw, 164px);
  object-fit: contain;
  margin-bottom: 26px;
  filter: drop-shadow(0 20px 28px rgba(20, 30, 80, 0.34));
}

.temperature-wrap {
  position: relative;
  min-height: clamp(150px, 39vw, 205px);
  display: grid;
  place-items: center;
}

.temperature,
.temperature-shadow {
  margin: 0;
  font-size: clamp(118px, 38vw, 184px);
  font-weight: 900;
  line-height: 0.9;
  letter-spacing: 0;
}

.temperature {
  position: relative;
  z-index: 2;
  color: transparent;
  background: linear-gradient(180deg, #ffffff 0%, #e5e5e5 50%, #9aa3b8 100%);
  -webkit-background-clip: text;
  background-clip: text;
  filter: drop-shadow(10px 9px 0 rgba(6, 14, 46, 0.78));
}

.temperature-shadow {
  position: absolute;
  left: calc(50% + 11px);
  top: calc(50% + 9px);
  transform: translate(-50%, -50%);
  color: rgba(4, 12, 38, 0.78);
}

.condition {
  margin: 16px 0 0;
  color: rgba(255, 255, 255, 0.68);
  font-size: 25px;
  font-weight: 900;
}

.hero-summary {
  width: min(100%, 390px);
  min-height: 58px;
  margin: 18px 0 0;
  color: #f4f5fb;
  font-size: 17px;
  line-height: 1.35;
  font-weight: 800;
}

.brand-mark {
  margin: 46px 0 0;
  color: rgba(61, 111, 238, 0.18);
  font-size: 12px;
  font-weight: 900;
  letter-spacing: 5px;
}

.range-pill {
  width: 190px;
  height: 66px;
  display: grid;
  grid-template-columns: 1fr 76px 1fr;
  align-items: center;
  gap: 12px;
  margin-top: auto;
  padding: 0 22px;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: linear-gradient(145deg, rgba(255,255,255,0.12), rgba(255,255,255,0.05));
  box-shadow: var(--shadow);
}

.range-pill strong,
.sun-time strong,
.blob-card strong,
.day-temp,
.hour-temp {
  color: transparent;
  background: linear-gradient(180deg, #ffffff 0%, #d8d8d8 55%, #9aa3b8 100%);
  -webkit-background-clip: text;
  background-clip: text;
  font-weight: 900;
}

.range-pill span {
  height: 7px;
  border-radius: 999px;
  background: linear-gradient(90deg, rgba(61, 111, 238, 0.85), rgba(245, 158, 11, 0.72));
}

.range-pill strong {
  font-size: 21px;
}

.live-stamp,
.down-mark {
  color: rgba(164, 169, 187, 0.52);
  font-weight: 800;
}

.live-stamp {
  margin: 18px 0 0;
  font-size: 13px;
}

.down-mark {
  margin-top: 26px;
}

.forecast-stack {
  display: grid;
  gap: 26px;
  padding-bottom: 42px;
}

.glass-panel {
  overflow: hidden;
  border-radius: 34px;
  padding: 24px;
}

.section-title {
  color: rgba(210, 215, 232, 0.78);
  font-size: 14px;
  font-weight: 900;
  letter-spacing: 4px;
  text-transform: uppercase;
}

.hourly-panel {
  min-height: 310px;
}

.hourly-chart {
  position: relative;
  min-height: 242px;
  margin-top: 18px;
}

.hourly-svg {
  position: absolute;
  inset: 52px 0 34px;
  width: 100%;
  height: calc(100% - 86px);
  overflow: visible;
}

.hour-row {
  position: relative;
  z-index: 2;
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  min-height: 224px;
}

.hour-node {
  display: grid;
  grid-template-rows: 42px 26px 1fr 28px;
  justify-items: center;
  align-items: center;
  color: rgba(255, 255, 255, 0.56);
  font-weight: 800;
}

.hour-node img {
  width: 34px;
  height: 34px;
  object-fit: contain;
}

.hour-temp {
  font-size: 18px;
}

.hour-time {
  align-self: end;
  font-size: 13px;
}

.hour-node:first-child .hour-time,
.hour-pop {
  color: var(--blue-soft);
}

.hour-pop {
  align-self: end;
  margin-top: -6px;
  font-size: 12px;
}

.daily-panel {
  padding: 24px 22px;
}

.day-list {
  display: grid;
  gap: 12px;
}

.day {
  display: grid;
  grid-template-columns: 50px 54px minmax(0, 1fr) 92px;
  align-items: center;
  gap: 10px;
  min-height: 58px;
}

.day-label,
.day-condition {
  color: rgba(226, 229, 240, 0.74);
  font-size: 19px;
  font-weight: 900;
}

.day img {
  width: 38px;
  height: 38px;
  object-fit: contain;
}

.day-condition {
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.day-bar {
  height: 7px;
  margin-top: 9px;
  border-radius: 999px;
  background: linear-gradient(90deg, rgba(61, 111, 238, 0.78), rgba(245, 158, 11, 0.68));
  opacity: 0.62;
}

.day-temp {
  justify-self: end;
  font-size: 18px;
  white-space: nowrap;
}

.metric-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 28px 20px;
  padding: 18px 10px 0;
}

.blob-card {
  min-height: 168px;
  display: flex;
  flex-direction: column;
  justify-content: center;
  gap: 22px;
  padding: 26px 24px;
  border: 0;
  border-radius: 42% 58% 48% 52% / 44% 44% 56% 56%;
  background:
    linear-gradient(155deg, rgba(255, 255, 255, 0.10), rgba(255, 255, 255, 0.035)),
    rgba(18, 25, 49, 0.74);
  box-shadow: var(--shadow);
}

.blob-card:nth-child(2n) {
  border-radius: 54% 46% 46% 54% / 46% 38% 62% 54%;
}

.blob-card span,
.sun-time span {
  display: flex;
  align-items: center;
  gap: 10px;
  color: rgba(229, 232, 244, 0.78);
  font-size: 14px;
  font-weight: 900;
  letter-spacing: 3px;
  text-transform: uppercase;
  white-space: nowrap;
}

.blob-card i {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--blue-soft);
  box-shadow: 0 0 14px rgba(109, 168, 255, 0.9);
}

.blob-card.amber i {
  background: var(--amber);
}

.blob-card.violet i {
  background: var(--violet);
}

.blob-card.cyan i {
  background: var(--cyan);
}

.blob-card strong {
  font-size: clamp(30px, 8vw, 42px);
  line-height: 1;
  white-space: nowrap;
}

.sun-panel,
.pollen-panel,
.chat-card {
  padding: 24px;
}

.sun-content {
  display: grid;
  grid-template-columns: 1fr minmax(86px, 1.2fr) 1fr;
  align-items: end;
  gap: 12px;
  min-height: 160px;
  padding-top: 18px;
}

.sun-time {
  display: grid;
  justify-items: center;
  gap: 9px;
}

.sun-time img {
  width: 54px;
  height: 54px;
}

.sun-time strong {
  font-size: 27px;
}

.sun-time:first-child strong {
  background: linear-gradient(180deg, #ffffff, #f7bd59);
  -webkit-background-clip: text;
  background-clip: text;
}

.sun-arc {
  position: relative;
  height: 88px;
  align-self: center;
  border-top: 3px dotted rgba(245, 158, 11, 0.42);
  border-radius: 100% 100% 0 0;
}

.sun-arc::before {
  content: "";
  position: absolute;
  left: 50%;
  top: -10px;
  width: 18px;
  height: 18px;
  transform: translateX(-50%);
  border-radius: 50%;
  background: var(--amber);
}

.pollen-list {
  display: grid;
  grid-auto-flow: column;
  grid-auto-columns: 112px;
  gap: 12px;
  overflow-x: auto;
  padding: 20px 0 2px;
}

.pollen-card {
  min-height: 142px;
  display: grid;
  justify-items: center;
  align-content: center;
  gap: 12px;
  padding: 16px 12px;
  border: 1px solid rgba(255, 255, 255, 0.11);
  border-radius: 24px;
  background: rgba(255, 255, 255, 0.055);
}

.pollen-card img {
  width: 38px;
  height: 38px;
  object-fit: contain;
  filter: grayscale(1);
  opacity: 0.72;
}

.pollen-card strong {
  font-size: 14px;
}

.pollen-card span {
  color: rgba(226, 229, 240, 0.66);
  font-size: 14px;
  font-weight: 800;
}

.alert {
  display: flex;
  align-items: flex-start;
  gap: 12px;
  padding: 14px 16px;
  border-radius: 24px;
  border-color: rgba(245, 158, 11, 0.42);
  background: rgba(245, 158, 11, 0.13);
}

.alert strong {
  display: block;
  font-size: 14px;
}

.alert p {
  margin: 3px 0 0;
  color: var(--dim);
  font-size: 12px;
  line-height: 1.35;
}

.chat-log {
  display: grid;
  gap: 8px;
  min-height: 70px;
  max-height: 240px;
  overflow-y: auto;
  margin: 12px 0;
}

.chat-message {
  width: min(100%, 360px);
  padding: 12px 14px;
  border: 1px solid rgba(255, 255, 255, 0.11);
  border-radius: 18px;
  color: var(--dim);
  background: rgba(255, 255, 255, 0.055);
  line-height: 1.4;
}

.chat-message.user {
  justify-self: end;
  color: var(--text);
  background: rgba(61, 111, 238, 0.18);
  border-color: rgba(61, 111, 238, 0.34);
}

.chat-form {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 48px;
  gap: 10px;
}

.chat-form input {
  min-width: 0;
  height: 48px;
  border: 1px solid var(--line);
  border-radius: 999px;
  outline: 0;
  color: var(--text);
  background: rgba(255, 255, 255, 0.08);
  padding: 0 16px;
}

.send-button {
  height: 48px;
  border-radius: 999px;
  background: linear-gradient(135deg, var(--blue), #2255cc);
  font-size: 20px;
}

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

[hidden] {
  display: none !important;
}

@media (min-width: 760px) {
  .app-shell {
    width: min(100% - 48px, 760px);
  }

  .metric-grid {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }
}

@media (max-width: 390px) {
  .app-shell {
    padding-left: 10px;
    padding-right: 10px;
  }

  .app-bar {
    grid-template-columns: minmax(0, 1fr) 48px 48px;
    gap: 8px;
  }

  .round-button {
    width: 48px;
    height: 48px;
    border-radius: 19px;
  }

  .location-picker {
    height: 54px;
  }

  .hero-center {
    min-height: 620px;
  }

  .metric-grid {
    gap: 22px 14px;
    padding-left: 4px;
    padding-right: 4px;
  }

  .blob-card {
    min-height: 148px;
    padding: 20px 18px;
  }

  .blob-card span {
    font-size: 12px;
    letter-spacing: 2px;
  }

  .blob-card strong {
    font-size: 31px;
  }

  .day {
    grid-template-columns: 44px 46px minmax(0, 1fr) 76px;
  }

  .day-label,
  .day-condition {
    font-size: 17px;
  }
}
