:root {
  --bg: #434a58;
  --frame: #0b1220;
  --panel: #121b2d;
  --panel-soft: #1d283d;
  --panel-alt: #273349;
  --panel-line: rgba(255, 255, 255, 0.07);
  --text: #f5f7fb;
  --muted: #94a0b7;
  --muted-soft: #b8c1d3;
  --accent: #f7c94b;
  --accent-2: #3da5ff;
  --white-soft: #dde5f3;
  --shadow: 0 35px 90px rgba(8, 12, 22, 0.32);
  --radius-xl: 34px;
  --radius-lg: 24px;
  --radius-md: 18px;
  --radius-sm: 14px;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  font-family: "Inter", sans-serif;
  color: var(--text);
  background:
    radial-gradient(circle at top left, rgba(255, 255, 255, 0.08), transparent 22%),
    linear-gradient(180deg, #4f5867 0%, #414958 100%);
}

button,
input,
a {
  font: inherit;
}

button {
  border: 0;
  background: none;
  color: inherit;
  cursor: pointer;
}

a {
  color: inherit;
  text-decoration: none;
}

svg {
  width: 1em;
  height: 1em;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.8;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.cookie-slot:empty {
  display: none;
}

.site-shell {
  width: min(1260px, calc(100% - 34px));
  margin: 0 auto;
  padding: 26px 0 44px;
}

.site-header,
.site-footer,
.hero-section,
.info-band,
.city-section,
.app-section {
  border-radius: var(--radius-xl);
}

.site-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  margin-bottom: 18px;
  padding: 18px 24px;
  background: rgba(8, 12, 20, 0.28);
  backdrop-filter: blur(12px);
}

.site-brand {
  font-size: 1.05rem;
  font-weight: 800;
  letter-spacing: -0.04em;
}

.site-nav {
  display: flex;
  gap: 28px;
  color: var(--white-soft);
}

.site-nav a {
  font-size: 0.95rem;
  font-weight: 600;
}

.header-cta,
.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 48px;
  padding: 0 22px;
  border-radius: 999px;
  font-size: 0.95rem;
  font-weight: 700;
}

.header-cta,
.button--primary {
  background: var(--accent-2);
  color: #f7fbff;
}

.button--secondary {
  border: 1px solid rgba(255, 255, 255, 0.18);
  color: var(--text);
}

.hero-section {
  padding: 18px 0 0;
  background: rgba(17, 24, 38, 0.18);
}

.section-label,
.card-title,
.card-title-row .card-title {
  color: var(--muted);
  font-size: 0.82rem;
  font-weight: 700;
  letter-spacing: 0.04em;
  text-transform: uppercase;
}

.section-copy h2,
.app-copy h2 {
  margin: 10px 0 14px;
  font-size: clamp(2.8rem, 5vw, 4.6rem);
  line-height: 0.96;
  letter-spacing: -0.06em;
}

.section-copy p,
.app-copy p,
.site-footer p,
.info-band p {
  color: var(--muted-soft);
  font-size: 1.02rem;
  line-height: 1.7;
}

.app-actions {
  display: flex;
  gap: 14px;
  margin-top: 24px;
}

.dashboard-stage {
  margin-top: 0;
}

.weather-dashboard {
  display: grid;
  grid-template-columns: 96px minmax(0, 1fr);
  min-height: 676px;
  background: var(--frame);
  border-radius: 26px;
  box-shadow: var(--shadow);
  overflow: hidden;
  border: 1px solid rgba(255, 255, 255, 0.08);
}

.weather-sidebar {
  padding: 18px 14px;
  background: linear-gradient(180deg, #111a2b 0%, #131c2d 100%);
  border-right: 1px solid rgba(255, 255, 255, 0.05);
}

.weather-sidebar__top {
  display: grid;
  justify-items: center;
  gap: 8px;
  margin-bottom: 24px;
}

.weather-logo {
  width: 42px;
  height: 42px;
  display: grid;
  place-items: center;
  border-radius: 14px;
  background: rgba(108, 134, 184, 0.17);
  color: #7eaef8;
}

.weather-logo svg {
  width: 22px;
  height: 22px;
}

.weather-sidebar__brand {
  font-size: 0.67rem;
  color: var(--muted);
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

.weather-nav {
  display: grid;
  gap: 12px;
}

.weather-nav__item {
  display: grid;
  justify-items: center;
  gap: 6px;
  padding: 10px 4px;
  border-radius: 14px;
  color: var(--muted);
}

.weather-nav__item.is-active {
  color: #f6fbff;
  background: rgba(255, 255, 255, 0.05);
}

.weather-nav__icon {
  width: 22px;
  height: 22px;
}

.weather-nav__item span:last-child {
  font-size: 0.7rem;
  font-weight: 700;
}

.weather-main {
  padding: 16px;
}

.weather-dashboard__topbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  margin-bottom: 14px;
}

.topbar-search {
  flex: 1 1 auto;
  display: flex;
  align-items: center;
  gap: 10px;
  min-height: 52px;
  padding: 0 16px;
  border-radius: 14px;
  background: #1d2637;
  color: var(--muted);
}

.topbar-search svg {
  width: 18px;
  height: 18px;
}

.topbar-search input {
  width: 100%;
  border: 0;
  outline: 0;
  background: transparent;
  color: #fff;
}

.topbar-search input::placeholder {
  color: var(--muted);
}

.topbar-meta {
  display: flex;
  align-items: center;
  gap: 14px;
  color: var(--muted-soft);
  font-size: 0.9rem;
}

.unit-toggle {
  min-width: 54px;
  min-height: 38px;
  border-radius: 12px;
  background: #1f2a3f;
  color: #f7fbff;
  font-weight: 700;
}

.weather-layout {
  display: grid;
  grid-template-columns: minmax(0, 1.65fr) minmax(280px, 0.88fr);
  gap: 16px;
}

.weather-column {
  display: grid;
  gap: 14px;
}

.card,
.current-card {
  background: var(--panel-soft);
  border: 1px solid var(--panel-line);
  border-radius: var(--radius-lg);
}

.current-card {
  min-height: 184px;
  padding: 22px 24px;
}

.current-card__headline {
  display: flex;
  align-items: start;
  justify-content: space-between;
  gap: 16px;
}

.current-card h2 {
  margin: 0;
  font-size: 2.05rem;
  letter-spacing: -0.05em;
}

.current-card p {
  margin: 6px 0 0;
  color: var(--muted);
  font-size: 0.95rem;
}

.current-card__temperature strong {
  display: inline-block;
  margin-top: 22px;
  font-size: 4rem;
  line-height: 1;
  letter-spacing: -0.08em;
}

.hero-sun {
  position: relative;
  width: 126px;
  height: 126px;
  flex: 0 0 auto;
}

.hero-sun__core {
  position: absolute;
  inset: 28px;
  border-radius: 50%;
  background: radial-gradient(circle at 35% 30%, #ffeaa7 0%, #f7c94b 48%, #df9f0b 100%);
  box-shadow: 0 0 28px rgba(247, 201, 75, 0.26);
}

.hero-sun__rays,
.hero-sun__rays::before,
.hero-sun__rays::after {
  content: "";
  position: absolute;
  inset: 8px;
  border-radius: 50%;
  background:
    radial-gradient(circle at 50% 0%, #f7c94b 0 6px, transparent 7px),
    radial-gradient(circle at 50% 100%, #f7c94b 0 6px, transparent 7px),
    radial-gradient(circle at 0% 50%, #f7c94b 0 6px, transparent 7px),
    radial-gradient(circle at 100% 50%, #f7c94b 0 6px, transparent 7px);
}

.hero-sun__rays::before {
  transform: rotate(45deg);
}

.hero-sun__rays::after {
  transform: rotate(22.5deg);
}

.forecast-strip,
.conditions-card,
.week-card {
  padding: 18px;
}

.forecast-hours {
  display: grid;
  grid-template-columns: repeat(6, minmax(0, 1fr));
  gap: 10px;
  margin-top: 16px;
}

.hour-card {
  padding: 10px 8px 2px;
  border-right: 1px solid rgba(255, 255, 255, 0.05);
  text-align: center;
}

.hour-card:last-child {
  border-right: 0;
}

.hour-card span {
  display: block;
}

.hour-card__time {
  color: var(--muted);
  font-size: 0.78rem;
  font-weight: 700;
}

.hour-card__icon {
  margin: 10px auto 6px;
  font-size: 1.7rem;
}

.hour-card__temp {
  font-size: 1.2rem;
  font-weight: 700;
}

.card-title-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
}

.see-more {
  min-height: 34px;
  padding: 0 12px;
  border-radius: 999px;
  background: var(--accent-2);
  color: #fff;
  font-size: 0.8rem;
  font-weight: 700;
}

.condition-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 16px;
  margin-top: 18px;
}

.condition-item {
  display: grid;
  gap: 6px;
}

.condition-item__label {
  color: var(--muted);
  font-size: 0.9rem;
}

.condition-item__value {
  font-size: 2rem;
  font-weight: 700;
  letter-spacing: -0.05em;
}

.week-list {
  display: grid;
  gap: 8px;
  margin-top: 16px;
}

.week-row {
  display: grid;
  grid-template-columns: 56px 1fr auto;
  align-items: center;
  gap: 12px;
  padding: 14px 0;
  border-bottom: 1px solid rgba(255, 255, 255, 0.06);
}

.week-row:last-child {
  border-bottom: 0;
}

.week-row__day {
  color: var(--muted);
  font-size: 0.9rem;
  font-weight: 600;
}

.week-row__icon {
  font-size: 1.45rem;
}

.week-row__desc {
  color: var(--text);
  font-size: 0.92rem;
  font-weight: 600;
}

.week-row__range {
  color: var(--muted-soft);
  font-size: 0.92rem;
  font-weight: 600;
}

.info-band,
.city-section,
.app-section,
.site-footer {
  margin-top: 18px;
  background: #0f1726;
}

.info-band {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 18px;
  padding: 26px 28px;
}

.info-band article {
  padding: 10px 10px 10px 0;
}

.info-band h2 {
  margin: 0 0 8px;
  font-size: 1.18rem;
  letter-spacing: -0.03em;
}

.city-section,
.app-section {
  padding: 34px 28px;
}

.section-copy {
  max-width: 960px;
}

.section-copy--row {
  display: flex;
  align-items: end;
  justify-content: space-between;
  gap: 24px;
}

.section-copy h2,
.app-copy h2 {
  font-size: clamp(2rem, 4vw, 3.4rem);
}

.section-link {
  color: var(--accent-2);
  font-size: 0.95rem;
  font-weight: 700;
  white-space: nowrap;
}

.city-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 16px;
  margin-top: 24px;
}

.city-card {
  padding: 20px;
  text-align: left;
  border-radius: var(--radius-lg);
  background: #182235;
  border: 1px solid rgba(255, 255, 255, 0.06);
}

.city-card.is-active {
  border-color: rgba(61, 165, 255, 0.5);
  box-shadow: inset 0 0 0 1px rgba(61, 165, 255, 0.14);
}

.city-card__name {
  display: block;
  color: var(--muted-soft);
  font-size: 0.98rem;
  font-weight: 700;
}

.city-card strong {
  display: block;
  margin-top: 14px;
  font-size: 2.6rem;
  letter-spacing: -0.06em;
}

.city-card span:last-child {
  display: block;
  margin-top: 8px;
  color: var(--muted);
  font-size: 0.95rem;
}

.city-meta {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
  margin-top: 18px;
  color: var(--muted);
  font-size: 0.92rem;
}

.app-card {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 430px;
  gap: 32px;
  align-items: center;
  padding: 24px;
  border-radius: 30px;
  background:
    radial-gradient(circle at top center, rgba(61, 165, 255, 0.13), transparent 30%),
    linear-gradient(180deg, #101a2b 0%, #0d1524 100%);
  border: 1px solid rgba(255, 255, 255, 0.06);
}

.app-mockup {
  display: flex;
  justify-content: center;
  align-items: end;
  gap: 18px;
}

.app-mockup__screen {
  width: 280px;
  min-height: 470px;
  padding: 26px 22px;
  border-radius: 34px;
  background:
    radial-gradient(circle at top center, rgba(247, 201, 75, 0.2), transparent 28%),
    linear-gradient(180deg, #10192a 0%, #0d1421 100%);
  border: 1px solid rgba(255, 255, 255, 0.08);
  box-shadow: 0 30px 70px rgba(0, 0, 0, 0.28);
}

.app-mockup__screen--tilt {
  width: 220px;
  min-height: 390px;
  transform: rotate(8deg) translateY(16px);
}

.app-mockup__top {
  color: var(--muted);
  font-size: 0.8rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.app-mockup__city {
  margin-top: 28px;
  font-size: 1.6rem;
  font-weight: 700;
}

.app-mockup__temp {
  margin-top: 10px;
  font-size: 4rem;
  font-weight: 800;
  letter-spacing: -0.08em;
}

.app-mockup__chips {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 18px;
}

.app-mockup__chips span {
  padding: 8px 12px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.06);
  color: var(--muted-soft);
  font-size: 0.82rem;
  font-weight: 600;
}

.app-mockup__miniweek {
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  gap: 10px;
  margin-top: 34px;
}

.app-mockup__miniweek i {
  display: block;
  height: 74px;
  border-radius: 18px;
  background: linear-gradient(180deg, rgba(61, 165, 255, 0.14), rgba(255, 255, 255, 0.04));
}

.app-mockup__radar {
  height: 260px;
  margin-top: 30px;
  border-radius: 24px;
  background:
    radial-gradient(circle at 60% 35%, rgba(64, 215, 255, 0.7), transparent 16%),
    radial-gradient(circle at 48% 48%, rgba(112, 255, 128, 0.55), transparent 18%),
    radial-gradient(circle at 55% 58%, rgba(255, 214, 64, 0.68), transparent 12%),
    linear-gradient(180deg, #102135 0%, #0d1726 100%);
  box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.04);
}

.store-badge {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 52px;
  padding: 0 18px;
  border-radius: 14px;
  background: #0b1321;
  border: 1px solid rgba(255, 255, 255, 0.12);
  color: #fff;
  font-size: 0.9rem;
  font-weight: 700;
}

.store-badge--dark {
  background: #111c2d;
}

.site-footer {
  display: grid;
  grid-template-columns: 1.2fr 0.8fr 0.8fr;
  gap: 24px;
  padding: 28px;
}

.site-brand--footer {
  display: inline-block;
  margin-bottom: 12px;
}

.site-footer h3 {
  margin: 0 0 14px;
  font-size: 0.95rem;
  font-weight: 700;
}

.site-footer a,
.site-footer p {
  display: block;
  margin: 0 0 10px;
  color: var(--muted-soft);
}

@media (max-width: 1100px) {
  .site-nav {
    display: none;
  }

  .weather-layout,
  .app-card,
  .site-footer,
  .info-band {
    grid-template-columns: 1fr;
  }

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

  .weather-dashboard {
    grid-template-columns: 88px minmax(0, 1fr);
  }
}

@media (max-width: 820px) {
  .site-shell {
    width: min(100%, calc(100% - 14px));
    padding-top: 10px;
  }

  .site-header {
    padding: 16px;
  }

  .header-cta {
    display: none;
  }

  .hero-section,
  .city-section,
  .app-section {
    padding: 18px;
  }

  .section-copy--row,
  .city-meta {
    flex-direction: column;
    align-items: start;
  }

  .weather-dashboard {
    grid-template-columns: 1fr;
  }

  .weather-sidebar {
    padding: 14px;
    border-right: 0;
    border-bottom: 1px solid rgba(255, 255, 255, 0.05);
  }

  .weather-sidebar__top {
    justify-items: start;
  }

  .weather-nav {
    grid-template-columns: repeat(4, minmax(0, 1fr));
  }

  .weather-nav__item {
    padding-inline: 6px;
  }

  .weather-dashboard__topbar,
  .current-card__headline {
    flex-direction: column;
    align-items: start;
  }

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

@media (max-width: 640px) {
  .hero-copy h1 {
    font-size: 2.4rem;
  }

  .app-actions {
    flex-direction: column;
  }

  .app-actions .store-badge {
    width: 100%;
  }

  .weather-main {
    padding: 12px;
  }

  .topbar-search {
    min-height: 48px;
  }

  .forecast-hours,
  .condition-grid {
    grid-template-columns: 1fr 1fr;
  }

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

  .current-card__temperature strong {
    font-size: 3.2rem;
  }

  .hero-sun {
    width: 104px;
    height: 104px;
  }
}
