:root {
  --navy-950: #061a2a;
  --navy-900: #0b2337;
  --navy-800: #12324a;
  --navy-700: #17486d;
  --meteor-blue: #1d75d4;
  --meteor-blue-soft: #98d7ff;
  --aqua: #44c3d4;
  --green: #1bbf83;
  --green-soft: #7be0b4;
  --yellow: #f3c546;
  --amber: #ffb703;
  --danger: #ef476f;
  --warning: #ff9f1c;
  --storm: #ff6b35;
  --white: #f5fbff;
  --slate-100: #edf3f8;
  --slate-200: #dfeaf3;
  --slate-400: #97afc8;
  --slate-600: #5f7285;
  --slate-700: #39576f;
  --shadow: 0 24px 60px rgba(5, 20, 35, 0.28);
  --radius-lg: 24px;
  --radius-md: 18px;
  --radius-sm: 12px;
  --container: min(1180px, calc(100vw - 32px));
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  font-family: "Segoe UI", Tahoma, Geneva, Verdana, sans-serif;
  background: linear-gradient(180deg, #061a2a 0%, #0c2030 14%, #f2f8fd 14%, #f2f8fd 100%);
  color: var(--navy-900);
  line-height: 1.6;
}

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

img {
  max-width: 100%;
  display: block;
}

button,
input {
  font: inherit;
}

.container {
  width: var(--container);
  margin: 0 auto;
}

.demo-notice {
  padding: 12px 16px;
  background: #fff3cd;
  color: #543f0b;
  text-align: center;
  line-height: 1.45;
  border-bottom: 1px solid #e4ca78;
}

.demo-notice span {
  display: block;
  font-size: 0.82rem;
}

.section {
  padding: 80px 0;
}

.section-header {
  margin-bottom: 30px;
}

.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  margin: 0 0 16px;
  font-size: 0.75rem;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--meteor-blue);
  font-weight: 700;
}

.eyebrow::before {
  content: "";
  width: 12px;
  height: 12px;
  border-radius: 50%;
  background: linear-gradient(135deg, var(--yellow), var(--green));
  box-shadow: 0 0 0 4px rgba(28, 117, 212, 0.08);
}

h1, h2, h3, h4, p {
  margin-top: 0;
}

h1 {
  font-size: clamp(2.5rem, 4vw, 4.5rem);
  line-height: 1.07;
  letter-spacing: -0.06em;
  margin-bottom: 18px;
  color: var(--white);
}

h2 {
  font-size: clamp(2rem, 3vw, 3rem);
  letter-spacing: -0.05em;
  margin-bottom: 10px;
  color: var(--navy-900);
}

p {
  color: rgba(8, 29, 44, 0.82);
}

.site-header {
  position: sticky;
  top: 0;
  z-index: 1000;
  background: rgba(6, 26, 42, 0.82);
  backdrop-filter: blur(18px);
  border-bottom: 1px solid rgba(145, 185, 220, 0.18);
}

.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  height: 82px;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 14px;
  color: var(--white);
}

.brand-mark {
  width: 42px;
  height: 42px;
  display: grid;
  place-items: center;
  border-radius: 14px;
  background: linear-gradient(135deg, rgba(246, 195, 66, 0.18), rgba(29, 117, 212, 0.18));
  border: 1px solid rgba(255, 255, 255, 0.12);
}

.brand-text {
  display: flex;
  flex-direction: column;
  line-height: 1.1;
}

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

.brand-subtitle {
  font-size: 0.62rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: rgba(255, 255, 255, 0.7);
}

.main-nav {
  display: flex;
  align-items: center;
  gap: 26px;
  flex-wrap: wrap;
}

.main-nav a {
  color: rgba(255, 255, 255, 0.8);
  font-size: 0.94rem;
  font-weight: 600;
  transition: color 0.2s ease;
}

.main-nav a:hover,
.main-nav a:focus-visible {
  color: var(--meteor-blue-soft);
}

.header-actions {
  display: flex;
  align-items: center;
  gap: 12px;
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  border: none;
  border-radius: 999px;
  padding: 0.9rem 1.4rem;
  font-weight: 700;
  cursor: pointer;
  transition: transform 0.2s ease, box-shadow 0.2s ease, opacity 0.2s ease;
}

.btn:hover,
.btn:focus-visible {
  transform: translateY(-1px);
}

.btn-primary {
  background: linear-gradient(135deg, var(--meteor-blue), #0d5da8);
  color: var(--white);
  box-shadow: 0 14px 30px rgba(29, 117, 212, 0.28);
}

.btn-secondary {
  background: rgba(255, 255, 255, 0.06);
  color: var(--white);
  border: 1px solid rgba(255, 255, 255, 0.12);
}

.hero {
  position: relative;
  background:
    radial-gradient(circle at top left, rgba(29, 117, 212, 0.38), transparent 38%),
    linear-gradient(120deg, #031724 0%, #071f34 30%, #0b2a3e 100%);
  overflow: hidden;
}

.hero::before {
  content: "";
  position: absolute;
  inset: 0;
  background-image: linear-gradient(rgba(255,255,255,0.03) 1px, transparent 1px), linear-gradient(90deg, rgba(255,255,255,0.03) 1px, transparent 1px);
  background-size: 28px 28px;
  mask-image: radial-gradient(circle at center, black 50%, transparent 100%);
}

.hero-grid {
  position: relative;
  display: grid;
  grid-template-columns: 1.1fr 0.9fr;
  align-items: center;
  gap: 38px;
  min-height: 640px;
  padding: 54px 0 80px;
}

.hero-copy {
  max-width: 620px;
}

.hero-copy p {
  color: rgba(245, 251, 255, 0.8);
  max-width: 560px;
  margin-bottom: 28px;
  font-size: 1.03rem;
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 14px;
  margin-bottom: 28px;
}

.hero-meta {
  list-style: none;
  display: flex;
  flex-wrap: wrap;
  gap: 18px;
  padding: 0;
  margin: 0;
}

.hero-meta li {
  color: rgba(255, 255, 255, 0.82);
  font-size: 0.9rem;
  display: flex;
  align-items: center;
  gap: 10px;
}

.hero-meta li::before {
  content: "";
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--green);
  box-shadow: 0 0 0 6px rgba(27, 191, 131, 0.15);
}

.hero-visual {
  display: flex;
  justify-content: center;
  align-items: center;
}

.storm-panel {
  position: relative;
  width: min(100%, 470px);
  min-height: 460px;
  padding: 26px 22px 18px;
  border-radius: 30px;
  background: linear-gradient(180deg, rgba(13, 51, 75, 0.9), rgba(9, 23, 35, 0.95));
  border: 1px solid rgba(205, 228, 247, 0.14);
  box-shadow: var(--shadow);
}

.storm-panel::before {
  content: "";
  position: absolute;
  inset: 18px 18px 82px 18px;
  border-radius: 24px;
  background: radial-gradient(circle at 50% 20%, rgba(154, 221, 255, 0.16), transparent 45%), linear-gradient(180deg, rgba(20, 58, 84, 0.33), rgba(5, 23, 34, 0.7));
  border: 1px solid rgba(167, 212, 240, 0.15);
}

.storm-meter {
  position: relative;
  z-index: 1;
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 18px;
}

.pill {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  border-radius: 999px;
  padding: 0.38rem 0.8rem;
  font-size: 0.72rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  font-weight: 700;
}

.pill-live {
  background: rgba(27, 191, 131, 0.14);
  color: var(--green-soft);
}

.pill-severe {
  background: rgba(239, 71, 111, 0.12);
  color: #ff8aa4;
}

.storm-chart {
  position: relative;
  z-index: 1;
  height: 260px;
  margin: 10px 0 22px;
  border-radius: 22px;
  background: linear-gradient(180deg, rgba(14, 62, 92, 0.5), rgba(5, 19, 30, 0.8));
  overflow: hidden;
  border: 1px solid rgba(197, 219, 242, 0.12);
}

.storm-chart::before {
  content: "";
  position: absolute;
  inset: 0;
  background: radial-gradient(circle at 30% 18%, rgba(159, 221, 255, 0.8), transparent 24%), linear-gradient(180deg, rgba(11, 31, 40, 0.24), rgba(11, 31, 40, 0.8));
}

.storm-arc {
  position: absolute;
  left: 18%;
  top: 18%;
  width: 64%;
  height: 64%;
  border-radius: 50%;
  border: 2px solid rgba(255, 200, 61, 0.7);
  border-left-color: transparent;
  border-bottom-color: transparent;
  transform: rotate(35deg);
  opacity: 0.8;
}

.storm-line {
  position: absolute;
  width: 90%;
  height: 3px;
  left: 5%;
  border-radius: 999px;
  background: linear-gradient(90deg, rgba(255,255,255,0), rgba(155, 226, 255, 0.72), rgba(255,255,255,0));
  transform: rotate(18deg);
  top: 44%;
  box-shadow: 0 0 18px rgba(121, 213, 255, 0.8);
}

.storm-wind {
  position: absolute;
  inset: auto 10% 12% 10%;
  display: flex;
  justify-content: space-between;
  gap: 10px;
  z-index: 1;
}

.wind-burst {
  width: 14px;
  height: 44px;
  border-radius: 16px;
  background: linear-gradient(180deg, rgba(44, 201, 204, 0.15), rgba(26, 117, 212, 0.8));
  border: 1px solid rgba(178, 224, 255, 0.2);
}

.wind-burst:nth-child(2n) {
  height: 60px;
}

.storm-status {
  position: relative;
  z-index: 1;
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 12px;
}

.status-box {
  padding: 12px 12px 10px;
  border-radius: 16px;
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid rgba(192, 224, 246, 0.12);
}

.status-box strong {
  display: block;
  font-size: 1.3rem;
  line-height: 1;
  color: var(--white);
  margin-bottom: 4px;
}

.status-box span {
  color: rgba(255, 255, 255, 0.68);
  font-size: 0.74rem;
  letter-spacing: 0.06em;
  text-transform: uppercase;
}

.quick-links {
  margin-top: 26px;
}

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

.quick-card {
  position: relative;
  padding: 20px 18px 18px;
  border-radius: var(--radius-md);
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.98), rgba(240, 246, 252, 0.96));
  border: 1px solid rgba(86, 126, 166, 0.12);
  box-shadow: 0 18px 36px rgba(10, 29, 48, 0.05);
}

.quick-card .icon-box {
  width: 48px;
  height: 48px;
  display: grid;
  place-items: center;
  border-radius: 16px;
  background: linear-gradient(135deg, rgba(29, 117, 212, 0.12), rgba(27, 191, 131, 0.18));
  margin-bottom: 18px;
  color: var(--navy-900);
  font-size: 1.2rem;
}

.quick-card h3 {
  margin-bottom: 8px;
  font-size: 1.1rem;
}

.quick-card p {
  margin-bottom: 0;
  color: var(--slate-600);
  font-size: 0.92rem;
}

.alerts-shell {
  background: linear-gradient(180deg, rgba(224, 240, 255, 0.9), rgba(255,255,255,0.95));
  border-radius: 28px;
  padding: 28px 20px 8px;
  border: 1px solid rgba(86, 126, 166, 0.12);
}

.filter-bar {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin: 24px 0 18px;
}

.filter-btn {
  border: 1px solid rgba(16, 57, 82, 0.12);
  background: rgba(255,255,255,0.8);
  color: var(--navy-900);
  border-radius: 999px;
  padding: 0.7rem 1.1rem;
  font-weight: 700;
  cursor: pointer;
  transition: all 0.2s ease;
}

.filter-btn.active {
  background: linear-gradient(135deg, var(--meteor-blue), var(--navy-800));
  color: var(--white);
  border-color: transparent;
  box-shadow: 0 12px 26px rgba(29, 117, 212, 0.2);
}

.alert-list {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 18px;
}

.alert-card {
  background: rgba(255,255,255,0.82);
  border: 1px solid rgba(92, 129, 168, 0.14);
  border-radius: var(--radius-md);
  padding: 20px 18px;
  box-shadow: 0 12px 28px rgba(11, 34, 49, 0.06);
}

.alert-card.level-warning {
  border-left: 5px solid var(--warning);
}

.alert-card.level-severe {
  border-left: 5px solid var(--danger);
}

.alert-card.level-watch {
  border-left: 5px solid var(--yellow);
}

.alert-top {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 12px;
  margin-bottom: 14px;
}

.alert-badge {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 96px;
  border-radius: 999px;
  padding: 0.45rem 0.8rem;
  font-size: 0.68rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  font-weight: 800;
}

.level-warning .alert-badge {
  background: rgba(255, 159, 28, 0.14);
  color: #9f5d00;
}

.level-severe .alert-badge {
  background: rgba(239, 71, 111, 0.12);
  color: #a91d42;
}

.level-watch .alert-badge {
  background: rgba(243, 197, 70, 0.18);
  color: #8a6700;
}

.alert-title {
  font-size: 1.05rem;
  margin-bottom: 16px;
}

.alert-meta {
  display: grid;
  gap: 10px;
  margin-bottom: 16px;
  color: var(--slate-700);
  font-size: 0.92rem;
}

.alert-meta div {
  display: flex;
  justify-content: space-between;
  gap: 8px;
  padding-bottom: 6px;
  border-bottom: 1px solid rgba(77, 100, 129, 0.08);
}

.alert-card ul {
  padding-left: 18px;
  margin: 0;
  color: var(--slate-700);
  font-size: 0.92rem;
}

.forecast-layout {
  display: grid;
  grid-template-columns: minmax(250px, 360px) minmax(0, 1fr);
  gap: 22px;
}

.panel {
  background: linear-gradient(180deg, rgba(7, 30, 45, 0.96), rgba(16, 49, 67, 0.96));
  color: var(--white);
  border-radius: 28px;
  padding: 24px;
  border: 1px solid rgba(193, 220, 245, 0.12);
  box-shadow: var(--shadow);
}

.search-box {
  display: flex;
  gap: 10px;
  margin: 12px 0 20px;
}

.search-box input {
  flex: 1;
  background: rgba(255,255,255,0.06);
  border: 1px solid rgba(210, 227, 245, 0.12);
  color: var(--white);
  border-radius: 14px;
  padding: 0.9rem 1rem;
}

.search-box input::placeholder {
  color: rgba(255,255,255,0.5);
}

.search-box button {
  border: none;
  border-radius: 14px;
  background: linear-gradient(135deg, var(--meteor-blue), var(--green));
  color: var(--white);
  font-weight: 700;
  padding: 0 1rem;
  cursor: pointer;
}

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

.city-pill {
  border: none;
  background: rgba(255,255,255,0.06);
  color: rgba(255,255,255,0.8);
  border-radius: 999px;
  padding: 0.5rem 0.9rem;
  cursor: pointer;
  transition: all 0.2s ease;
}

.city-pill.active,
.city-pill:hover,
.city-pill:focus-visible {
  background: rgba(29, 117, 212, 0.25);
  color: var(--white);
}

.forecast-main {
  display: grid;
  gap: 16px;
}

.current-weather {
  background: linear-gradient(180deg, rgba(255,255,255,0.96), rgba(239,245,252,0.96));
  border: 1px solid rgba(99, 129, 163, 0.12);
  border-radius: 28px;
  padding: 24px;
  box-shadow: 0 18px 36px rgba(16, 34, 52, 0.05);
}

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

.current-header h3 {
  margin: 0;
  font-size: 1.4rem;
  color: var(--navy-900);
}

.temp-block {
  display: flex;
  align-items: center;
  gap: 18px;
}

.temp-number {
  font-size: clamp(3.5rem, 6vw, 5rem);
  line-height: 1;
  letter-spacing: -0.07em;
  font-weight: 800;
  color: var(--navy-900);
}

.weather-icon {
  width: 72px;
  height: 72px;
  border-radius: 20px;
  display: grid;
  place-items: center;
  font-size: 2.2rem;
  background: linear-gradient(135deg, rgba(29, 117, 212, 0.12), rgba(243, 197, 70, 0.18));
}

.weather-meta {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 12px;
  margin-top: 18px;
}

.metric {
  background: rgba(12, 35, 52, 0.04);
  border-radius: 15px;
  padding: 10px 14px;
}

.metric span {
  display: block;
  color: var(--slate-600);
  font-size: 0.72rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  margin-bottom: 8px;
}

.metric strong {
  font-size: 1.15rem;
  color: var(--navy-900);
}

.forecast-days {
  display: grid;
  grid-template-columns: repeat(5, minmax(0, 1fr));
  gap: 12px;
}

.forecast-source {
  margin: 0;
  color: var(--slate-600);
  font-size: 0.82rem;
}

.forecast-source a {
  color: var(--meteor-blue);
  text-decoration: underline;
}

.weather-assistant {
  padding: 22px;
  background: #fff;
  border: 1px solid rgba(116, 147, 186, 0.2);
  border-radius: 18px;
}

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

.assistant-heading .eyebrow {
  margin-bottom: 6px;
}

.assistant-heading h3 {
  margin-bottom: 14px;
  color: var(--navy-900);
}

.assistant-model {
  color: var(--slate-600);
  font-size: 0.78rem;
}

.assistant-messages {
  display: grid;
  gap: 10px;
  max-height: 340px;
  overflow-y: auto;
}

.assistant-message {
  width: fit-content;
  max-width: min(90%, 680px);
  margin: 0;
  padding: 10px 13px;
  border-radius: 12px;
  white-space: pre-wrap;
}

.assistant-message.user {
  justify-self: end;
  background: #e6f2ff;
  color: var(--navy-900);
}

.assistant-message.assistant {
  justify-self: start;
  background: #eff7f3;
  color: var(--navy-900);
}

.assistant-form {
  display: flex;
  align-items: end;
  gap: 10px;
  margin-top: 14px;
}

.assistant-form textarea {
  flex: 1;
  min-width: 0;
  resize: vertical;
  padding: 11px 13px;
  color: var(--navy-900);
  background: #f8fafc;
  border: 1px solid #cbd7e2;
  border-radius: 10px;
}

.assistant-form .btn {
  flex: 0 0 auto;
}

.assistant-form .btn:disabled {
  cursor: wait;
  opacity: 0.6;
}

.assistant-status {
  margin: 10px 0 0;
  color: var(--slate-600);
  font-size: 0.82rem;
}

.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;
}

.day-card {
  padding: 18px 14px;
  background: rgba(255,255,255,0.96);
  border: 1px solid rgba(116, 147, 186, 0.14);
  border-radius: 18px;
  text-align: center;
}

.day-card .day-name {
  font-size: 0.8rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--slate-600);
  margin-bottom: 10px;
}

.day-card .day-icon {
  font-size: 1.8rem;
  margin-bottom: 8px;
}

.day-card .day-temp {
  font-size: 1.35rem;
  font-weight: 800;
  color: var(--navy-900);
}

.day-card .day-range {
  color: var(--slate-600);
  font-size: 0.84rem;
}

.radar-layout {
  display: grid;
  grid-template-columns: minmax(0, 1.45fr) minmax(240px, 0.55fr);
  gap: 22px;
}

.radar-panel {
  background: linear-gradient(180deg, rgba(7, 24, 36, 0.94), rgba(15, 44, 63, 0.94));
  padding: 24px;
  border-radius: 28px;
  border: 1px solid rgba(204, 222, 242, 0.15);
  box-shadow: var(--shadow);
}

.radar-toolbar {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 18px;
  margin-bottom: 16px;
}

.toolbar-group {
  display: flex;
  align-items: center;
  gap: 8px;
}

.zoom-button,
.layer-button {
  border: 1px solid rgba(215, 233, 247, 0.1);
  background: rgba(255,255,255,0.04);
  color: var(--white);
  border-radius: 10px;
  padding: 0.55rem 0.7rem;
  cursor: pointer;
}

.layer-button.active {
  background: rgba(29, 117, 212, 0.22);
  border-color: rgba(143, 201, 255, 0.35);
}

.radar-canvas {
  --radar-scale: 1;
  position: relative;
  height: 420px;
  border-radius: 22px;
  overflow: hidden;
  border: 1px solid rgba(191, 218, 245, 0.14);
  background:
    radial-gradient(circle at center, rgba(57, 144, 192, 0.2), rgba(8, 17, 23, 0.2) 32%, rgba(4, 12, 19, 0.9) 100%),
    linear-gradient(180deg, rgba(11, 28, 38, 0.8), rgba(7, 15, 21, 0.96));
  transform: scale(var(--radar-scale));
  transform-origin: center center;
  transition: transform 0.25s ease;
}

.radar-grid,
.radar-grid::before,
.radar-grid::after {
  position: absolute;
  inset: 0;
  content: "";
  background-image: linear-gradient(rgba(157, 217, 255, 0.12) 1px, transparent 1px), linear-gradient(90deg, rgba(157, 217, 255, 0.12) 1px, transparent 1px);
  background-size: 32px 32px;
}

.radar-grid::before {
  transform: rotate(45deg);
}

.radar-grid::after {
  transform: rotate(-45deg);
}

.radar-core {
  position: absolute;
  left: 50%;
  top: 50%;
  width: 200px;
  height: 200px;
  background: radial-gradient(circle, rgba(67, 210, 255, 0.28), rgba(67, 210, 255, 0.05) 60%, transparent 75%);
  border-radius: 50%;
  transform: translate(-50%, -50%);
}

.radar-blip {
  position: absolute;
  border-radius: 50%;
  filter: blur(0.5px);
}

.blip-1 { left: 20%; top: 28%; width: 42px; height: 42px; background: rgba(30, 198, 140, 0.7); }
.blip-2 { left: 52%; top: 18%; width: 80px; height: 80px; background: rgba(240, 164, 52, 0.72); }
.blip-3 { left: 62%; top: 52%; width: 70px; height: 70px; background: rgba(238, 77, 101, 0.7); }
.blip-4 { left: 34%; top: 58%; width: 54px; height: 54px; background: rgba(164, 176, 255, 0.7); }

.radar-legend {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 18px;
}

.legend-item {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  color: rgba(255,255,255,0.8);
  font-size: 0.8rem;
}

.legend-swatch {
  width: 12px;
  height: 12px;
  border-radius: 50%;
}

.legend-swatch.green { background: rgba(27,191,131,0.9); }
.legend-swatch.yellow { background: rgba(243,197,70,0.9); }
.legend-swatch.orange { background: rgba(255,159,28,0.9); }
.legend-swatch.red { background: rgba(239,71,111,0.9); }

.radar-summary {
  background: linear-gradient(180deg, rgba(255,255,255,0.96), rgba(239,245,252,0.96));
  border: 1px solid rgba(101, 134, 172, 0.12);
  border-radius: 24px;
  padding: 22px 18px;
  box-shadow: 0 18px 36px rgba(11, 34, 49, 0.05);
}

.radar-summary h3 {
  color: var(--navy-900);
  margin-bottom: 16px;
}

.summary-list {
  display: grid;
  gap: 14px;
}

.summary-item {
  padding: 14px 12px;
  border-radius: 16px;
  background: rgba(12, 35, 52, 0.04);
}

.summary-item strong {
  display: block;
  color: var(--navy-900);
  margin-bottom: 4px;
}

.summary-item span {
  color: var(--slate-600);
  font-size: 0.88rem;
}

.monitoring-grid {
  display: grid;
  grid-template-columns: repeat(5, minmax(0, 1fr));
  gap: 18px;
}

.monitor-card {
  padding: 20px 18px 18px;
  border-radius: var(--radius-md);
  background: linear-gradient(180deg, rgba(255,255,255,0.96), rgba(236,246,252,1));
  border: 1px solid rgba(99, 120, 160, 0.12);
  box-shadow: 0 16px 32px rgba(9, 30, 44, 0.05);
}

.monitor-card .tag {
  display: inline-flex;
  border-radius: 999px;
  padding: 0.4rem 0.7rem;
  font-size: 0.65rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  font-weight: 800;
  margin-bottom: 18px;
}

.monitor-card.supercell .tag { background: rgba(239,71,111,0.12); color: #9d234d; }
.monitor-card.tornado .tag { background: rgba(255,159,28,0.14); color: #945f13; }
.monitor-card.hail .tag { background: rgba(71, 119, 255, 0.12); color: #2b54b9; }
.monitor-card.gust .tag { background: rgba(27,191,131,0.12); color: #11825a; }
.monitor-card.instability .tag { background: rgba(243,197,70,0.18); color: #9a6f00; }

.monitor-card h3 {
  font-size: 1.1rem;
  color: var(--navy-900);
  margin-bottom: 10px;
}

.monitor-card p {
  margin-bottom: 0;
  color: var(--slate-600);
  font-size: 0.92rem;
}

.map-wrapper {
  display: grid;
  grid-template-columns: minmax(0, 1.2fr) minmax(220px, 0.8fr);
  gap: 22px;
  align-items: center;
}

.brazil-map {
  position: relative;
  height: 430px;
  border-radius: 30px;
  border: 1px solid rgba(94, 127, 166, 0.14);
  background: linear-gradient(180deg, rgba(8, 27, 39, 0.96), rgba(14, 46, 64, 0.96));
  box-shadow: var(--shadow);
  overflow: hidden;
}

.brazil-map::before {
  content: "";
  position: absolute;
  inset: 18px 18px 20px 18px;
  border-radius: 28px;
  background: radial-gradient(circle at 50% 30%, rgba(123, 132, 255, 0.18), transparent 42%);
  border: 1px solid rgba(178, 216, 244, 0.14);
}

.brazil-shape {
  position: absolute;
  inset: 40px 60px 32px 68px;
  display: block;
  filter: drop-shadow(0 16px 30px rgba(9, 24, 35, 0.4));
  opacity: 0.95;
}

.state-marker {
  position: absolute;
  width: 18px;
  height: 18px;
  border: none;
  border-radius: 50%;
  background: linear-gradient(135deg, var(--green), var(--meteor-blue));
  box-shadow: 0 0 0 6px rgba(80, 176, 255, 0.2);
  cursor: pointer;
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.state-marker.active,
.state-marker:hover,
.state-marker:focus-visible {
  transform: scale(1.15);
  box-shadow: 0 0 0 8px rgba(140, 216, 255, 0.18), 0 0 20px rgba(29, 117, 212, 0.5);
}

.map-card {
  background: linear-gradient(180deg, rgba(255,255,255,0.96), rgba(240,245,252,0.96));
  border: 1px solid rgba(96, 124, 161, 0.12);
  border-radius: 24px;
  padding: 22px 18px;
  box-shadow: 0 18px 36px rgba(11, 34, 49, 0.05);
}

.map-card .status-tag {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  border-radius: 999px;
  padding: 0.45rem 0.8rem;
  font-size: 0.7rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  font-weight: 800;
  color: var(--navy-900);
  background: rgba(29, 117, 212, 0.08);
}

.map-card h3 {
  font-size: 1.7rem;
  color: var(--navy-900);
  margin: 14px 0 8px;
}

.map-card p {
  color: var(--slate-600);
  margin-bottom: 18px;
}

.map-stats {
  display: grid;
  gap: 12px;
}

.map-stat {
  display: flex;
  justify-content: space-between;
  gap: 8px;
  padding-bottom: 8px;
  border-bottom: 1px solid rgba(76, 98, 126, 0.08);
  color: var(--slate-700);
}

.institutional-grid {
  display: grid;
  grid-template-columns: 1.05fr 0.95fr;
  gap: 22px;
  align-items: stretch;
}

.institutional-copy,
.institutional-box {
  background: linear-gradient(180deg, rgba(255,255,255,0.96), rgba(240,246,252,0.96));
  border: 1px solid rgba(88, 120, 158, 0.13);
  border-radius: 28px;
  padding: 26px 24px;
  box-shadow: 0 18px 38px rgba(8, 30, 44, 0.04);
}

.institutional-copy p {
  margin-bottom: 18px;
}

.mission-list {
  list-style: none;
  padding: 0;
  margin: 0;
  display: grid;
  gap: 14px;
}

.mission-list li {
  display: flex;
  align-items: flex-start;
  gap: 12px;
  padding: 12px 14px;
  border-radius: 16px;
  background: rgba(12, 35, 52, 0.04);
  color: var(--navy-900);
}

.mission-list li::before {
  content: "✓";
  display: grid;
  place-items: center;
  width: 22px;
  height: 22px;
  min-width: 22px;
  border-radius: 50%;
  background: rgba(27, 191, 131, 0.12);
  color: #0e8c63;
  font-weight: 800;
}

.objective-box {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 14px;
  margin-top: 22px;
}

.objective-item {
  padding: 18px 16px;
  border-radius: 18px;
  background: rgba(10, 27, 36, 0.04);
  border: 1px solid rgba(93, 129, 170, 0.08);
}

.objective-item strong {
  font-size: 1.8rem;
  display: block;
  line-height: 1;
  color: var(--navy-900);
  margin-bottom: 8px;
}

.objective-item span {
  color: var(--slate-600);
  font-size: 0.85rem;
  text-transform: uppercase;
  letter-spacing: 0.08em;
}

.site-footer {
  background: linear-gradient(180deg, #071d2e 0%, #051924 100%);
  color: rgba(255,255,255,0.8);
  padding: 40px 0 30px;
}

.footer-grid {
  display: grid;
  grid-template-columns: 1.4fr 0.9fr 0.9fr 1.1fr;
  gap: 24px;
}

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

.footer-brand .brand-mark {
  width: 42px;
  height: 42px;
}

.footer-copy {
  color: rgba(255,255,255,0.72);
  max-width: 320px;
}

.footer-col h4 {
  font-size: 0.8rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: rgba(255,255,255,0.72);
  margin-bottom: 18px;
}

.footer-col ul {
  list-style: none;
  padding: 0;
  margin: 0;
  display: grid;
  gap: 10px;
}

.footer-col a,
.footer-col span {
  color: rgba(255,255,255,0.8);
}

.footer-bottom {
  margin-top: 28px;
  padding-top: 18px;
  border-top: 1px solid rgba(220, 234, 245, 0.12);
  color: rgba(255,255,255,0.72);
  display: flex;
  justify-content: space-between;
  gap: 12px;
  flex-wrap: wrap;
}

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

  .hero-grid,
  .forecast-layout,
  .radar-layout,
  .institutional-grid,
  .map-wrapper {
    grid-template-columns: 1fr;
  }

  .quick-grid,
  .alert-list,
  .monitoring-grid,
  .footer-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

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

@media (max-width: 700px) {
  .header-inner {
    height: auto;
    padding: 16px 0;
    flex-wrap: wrap;
  }

  .header-actions {
    width: 100%;
    justify-content: flex-end;
  }

  .assistant-heading,
  .assistant-form {
    flex-direction: column;
    align-items: stretch;
  }

  .quick-grid,
  .alert-list,
  .monitoring-grid,
  .weather-meta,
  .forecast-days,
  .footer-grid,
  .objective-box {
    grid-template-columns: 1fr;
  }

  .hero {
    padding-top: 8px;
  }

  .hero-grid {
    min-height: auto;
    padding-top: 26px;
  }

  .storm-status {
    grid-template-columns: 1fr;
  }

  .radar-panel,
  .panel,
  .institutional-copy,
  .institutional-box,
  .map-card {
    padding-left: 16px;
    padding-right: 16px;
  }

  .brazil-map {
    height: 340px;
  }
}
