/* ============================================================
   SolarIQ v2 — immersive weather-reactive product UI
   The whole page background IS the forecast: the sky layers read
   CSS custom properties set from real fetched weather in script.js
   (--wx-sun, --wx-cloud, --wx-dust, --wx-rain) plus a body class
   wx-clear | wx-partly | wx-overcast | wx-dust | wx-storm | wx-rain.
   ============================================================ */

:root {
  --orange: #FDB813; --orange2: #FF8A00; --yellow: #FFD54A;
  --ink: #0A0E1A; --ink2: #101628; --ink3: #182036;
  --text-1: #F4F6FB; --text-2: #B9C2D8; --text-3: #7d879c;
  --green: #38E27C; --red: #FF6B6B; --blue: #4FA0FF;
  --glass: rgba(13, 18, 34, 0.55); --glass-border: rgba(255,255,255,0.09);
  --radius: 22px; --radius-sm: 14px;
  --ease: cubic-bezier(.22,.9,.28,1);
  --wx-sun: 1; --wx-cloud: .15; --wx-dust: .1; --wx-rain: 0;
  --shadow: 0 24px 60px -18px rgba(0,0,0,.55);
}
* , *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
[hidden] { display: none !important; }
html { scroll-behavior: smooth; }
body {
  font-family: 'Inter', system-ui, sans-serif; color: var(--text-1);
  background: var(--ink); min-height: 100vh; overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
}
button, select, input { font: inherit; color: inherit; }
::selection { background: rgba(253,184,19,.35); }

/* ============================================================
   SKY ENGINE
   ============================================================ */
.sky { position: fixed; inset: 0; z-index: 0; overflow: hidden; }
.sky-gradient {
  position: absolute; inset: -2%;
  background: linear-gradient(180deg,
    #070B18 0%, #131A34 22%, #3A2350 46%, #8C4430 70%, #E0983A 92%, #F7C860 100%);
  transition: filter 1.2s var(--ease);
  filter: saturate(calc(1 - var(--wx-dust)*.45 - var(--wx-rain)*.3))
          brightness(calc(1 - var(--wx-cloud)*.22 - var(--wx-dust)*.14 - var(--wx-rain)*.2));
}
.sky-glow {
  position: absolute; right: 6%; top: 16%; width: 60vmin; height: 60vmin; border-radius: 50%;
  background: radial-gradient(circle, rgba(253,184,19,.5), transparent 66%);
  opacity: calc(var(--wx-sun) * .9); filter: blur(8px);
  transition: opacity 1.2s var(--ease);
}
.sun-wrap { position: absolute; right: 12%; top: 24%; width: 15vmin; height: 15vmin; }
.sun-core {
  position: absolute; inset: 0; border-radius: 50%;
  background: radial-gradient(circle at 34% 30%, #FFF8E0, var(--yellow) 38%, var(--orange2) 78%);
  box-shadow: 0 0 9vmin 3vmin rgba(253,184,19,.5);
  opacity: var(--wx-sun);
  transform: scale(calc(.86 + var(--wx-sun)*.14));
  transition: opacity 1.2s var(--ease), transform 1.2s var(--ease), filter 1.2s var(--ease);
  filter: hue-rotate(calc(var(--wx-dust) * -18deg));
  animation: breathe 6s ease-in-out infinite;
}
.sun-rays {
  position: absolute; inset: -46%; border-radius: 50%;
  background: conic-gradient(from 0deg,
    rgba(255,213,74,.14) 0 6deg, transparent 6deg 30deg,
    rgba(255,213,74,.14) 30deg 36deg, transparent 36deg 60deg,
    rgba(255,213,74,.14) 60deg 66deg, transparent 66deg 90deg,
    rgba(255,213,74,.14) 90deg 96deg, transparent 96deg 120deg,
    rgba(255,213,74,.14) 120deg 126deg, transparent 126deg 150deg,
    rgba(255,213,74,.14) 150deg 156deg, transparent 156deg 180deg,
    rgba(255,213,74,.14) 180deg 186deg, transparent 186deg 210deg,
    rgba(255,213,74,.14) 210deg 216deg, transparent 216deg 240deg,
    rgba(255,213,74,.14) 240deg 246deg, transparent 246deg 270deg,
    rgba(255,213,74,.14) 270deg 276deg, transparent 276deg 300deg,
    rgba(255,213,74,.14) 300deg 306deg, transparent 306deg 330deg,
    rgba(255,213,74,.14) 330deg 336deg, transparent 336deg 360deg);
  opacity: calc(var(--wx-sun) * .8); animation: spin 70s linear infinite;
  transition: opacity 1.2s var(--ease);
}
@keyframes spin { to { transform: rotate(360deg); } }
@keyframes breathe { 0%,100% { box-shadow: 0 0 9vmin 3vmin rgba(253,184,19,.5);} 50% { box-shadow: 0 0 12vmin 4vmin rgba(253,184,19,.62);} }

.clouds { position: absolute; inset: 0; opacity: calc(.12 + var(--wx-cloud)*.95); transition: opacity 1.2s var(--ease); }
.cl { position: absolute; background: rgba(232,236,246,.8); border-radius: 999px; filter: blur(6px); }
.cl::before, .cl::after { content:""; position:absolute; background:inherit; border-radius:50%; }
.c1 { width: 22vmin; height: 6.5vmin; top: 16%; left: 6%; animation: drift 70s linear infinite; }
.c1::before { width: 11vmin; height: 11vmin; top: -5.5vmin; left: 3vmin; } .c1::after { width: 8vmin; height: 8vmin; top: -3.5vmin; left: 11vmin; }
.c2 { width: 17vmin; height: 5vmin; top: 34%; left: 52%; animation: drift 95s linear infinite; animation-delay: -30s; }
.c2::before { width: 8.5vmin; height: 8.5vmin; top: -4vmin; left: 2.4vmin; } .c2::after { width: 6.5vmin; height: 6.5vmin; top: -2.6vmin; left: 8.5vmin; }
.c3 { width: 26vmin; height: 7vmin; top: 8%; left: 44%; animation: drift 120s linear infinite; animation-delay: -60s; }
.c3::before { width: 13vmin; height: 13vmin; top: -6.5vmin; left: 4vmin; } .c3::after { width: 9.5vmin; height: 9.5vmin; top: -4.4vmin; left: 14vmin; }
.c4 { width: 15vmin; height: 4.6vmin; top: 46%; left: 16%; animation: drift 85s linear infinite; animation-delay: -50s; }
.c4::before { width: 7.4vmin; height: 7.4vmin; top: -3.6vmin; left: 2vmin; } .c4::after { width: 5.6vmin; height: 5.6vmin; top: -2.2vmin; left: 7.6vmin; }
.c5 { width: 20vmin; height: 6vmin; top: 24%; left: 76%; animation: drift 105s linear infinite; animation-delay: -80s; }
.c5::before { width: 10vmin; height: 10vmin; top: -5vmin; left: 3vmin; } .c5::after { width: 7.4vmin; height: 7.4vmin; top: -3.2vmin; left: 10vmin; }
@keyframes drift { from { transform: translateX(-30vw);} to { transform: translateX(130vw);} }

.dust-veil {
  position: absolute; inset: 0; opacity: var(--wx-dust); transition: opacity 1.2s var(--ease);
  background: linear-gradient(100deg, rgba(198,132,66,.62) 0%, rgba(166,98,50,.5) 45%, rgba(118,74,44,.58) 100%);
  mix-blend-mode: multiply; animation: dustSway 16s ease-in-out infinite alternate;
}
@keyframes dustSway { from { transform: translateX(-2.5%) scaleX(1.05);} to { transform: translateX(2.5%) scaleX(1.1);} }
.dust-particles {
  position: absolute; inset: 0; opacity: calc(var(--wx-dust) * .9);
  background-image:
    radial-gradient(1.5px 1.5px at 12% 30%, rgba(255,214,160,.8), transparent 60%),
    radial-gradient(2px 2px at 34% 62%, rgba(255,200,140,.7), transparent 60%),
    radial-gradient(1.5px 1.5px at 58% 18%, rgba(255,220,170,.8), transparent 60%),
    radial-gradient(2px 2px at 72% 48%, rgba(255,205,150,.7), transparent 60%),
    radial-gradient(1.5px 1.5px at 88% 26%, rgba(255,215,165,.8), transparent 60%),
    radial-gradient(2px 2px at 22% 78%, rgba(255,205,150,.6), transparent 60%),
    radial-gradient(1.5px 1.5px at 66% 82%, rgba(255,215,160,.7), transparent 60%);
  background-size: 140% 140%; animation: partDrift 9s linear infinite;
  transition: opacity 1.2s var(--ease);
}
@keyframes partDrift { from { background-position: 0 0;} to { background-position: -140px 40px;} }
body.wx-storm .dust-veil { animation-duration: 6s; }
body.wx-storm .dust-particles { animation-duration: 3.5s; }

.rain-veil {
  position: absolute; inset: 0; opacity: var(--wx-rain); transition: opacity 1.2s var(--ease);
  background: repeating-linear-gradient(105deg, transparent 0 7px, rgba(190,215,255,.16) 7px 8.5px);
  animation: rainFall .55s linear infinite;
}
@keyframes rainFall { from { background-position: 0 0;} to { background-position: -22px 42px;} }

.heat-shimmer {
  position: absolute; left: 0; right: 0; bottom: 18vh; height: 12vh;
  backdrop-filter: blur(.6px);
  opacity: calc(var(--wx-sun) * .5);
  mask-image: linear-gradient(180deg, transparent, black 40%, transparent);
  animation: shimmer 3.2s ease-in-out infinite alternate;
}
@keyframes shimmer { from { transform: translateY(0) scaleY(1);} to { transform: translateY(-4px) scaleY(1.03);} }

.horizon { position: absolute; left: -4%; right: -4%; bottom: 0; height: 34vh; }
.dunes { position: absolute; left: 0; right: 0; bottom: 0; }
.d1 { height: 78%; background: linear-gradient(180deg, transparent, #1A1428 62%, #12101F);
  clip-path: polygon(0 100%,0 58%,9% 42%,20% 60%,31% 32%,44% 55%,56% 25%,68% 52%,79% 36%,90% 58%,100% 44%,100% 100%); opacity:.85; }
.d2 { height: 52%; background: linear-gradient(180deg, transparent, #0D0B16 55%, #090812);
  clip-path: polygon(0 100%,0 66%,12% 50%,26% 68%,40% 44%,54% 64%,70% 40%,84% 62%,100% 50%,100% 100%); }
.panel-field { position: absolute; left: 7%; right: 7%; bottom: 3.4vh; display: flex; gap: .8vw; height: 5.2vh; z-index: 2; }
.panel-field i {
  flex: 1; transform: skewX(-8deg);
  background: linear-gradient(160deg, #22335C 0%, #0D1730 70%);
  border: 1px solid rgba(253,184,19,.35); border-radius: 4px;
  box-shadow: inset 0 1px 0 rgba(255,255,255,.12), 0 6px 14px -6px rgba(0,0,0,.6);
  position: relative; overflow: hidden;
}
.panel-field i::after {
  content:""; position:absolute; inset:0;
  background: linear-gradient(120deg, transparent 30%, rgba(253,184,19,calc(.28 * var(--wx-sun))) 50%, transparent 70%);
  animation: glint 5.5s ease-in-out infinite; animation-delay: calc(var(--i, 0) * .4s);
}
.panel-field i:nth-child(1){--i:0}.panel-field i:nth-child(2){--i:1}.panel-field i:nth-child(3){--i:2}.panel-field i:nth-child(4){--i:3}.panel-field i:nth-child(5){--i:4}.panel-field i:nth-child(6){--i:5}.panel-field i:nth-child(7){--i:6}.panel-field i:nth-child(8){--i:7}.panel-field i:nth-child(9){--i:8}.panel-field i:nth-child(10){--i:9}.panel-field i:nth-child(11){--i:10}.panel-field i:nth-child(12){--i:11}
@keyframes glint { 0%,60%,100% { transform: translateX(-120%);} 30% { transform: translateX(120%);} }
.ground-grid {
  position: absolute; left: 0; right: 0; bottom: 0; height: 3.2vh;
  background: repeating-linear-gradient(90deg, rgba(253,184,19,.08) 0 1px, transparent 1px 6vw);
  mask-image: linear-gradient(180deg, transparent, black);
}

/* ============================================================
   SHELL / TOPBAR
   ============================================================ */
.shell { position: relative; z-index: 2; min-height: 100vh; display: flex; flex-direction: column; }
.topbar {
  display: flex; align-items: center; justify-content: space-between; gap: 16px;
  padding: 18px clamp(18px, 4vw, 44px);
}
.brand { display: flex; align-items: baseline; gap: 10px; }
.brand-mark { width: 30px; height: 30px; border-radius: 9px; align-self: center;
  background: radial-gradient(circle at 32% 28%, #FFF3C8, var(--orange) 55%, var(--orange2));
  box-shadow: 0 0 22px rgba(253,184,19,.55); }
.brand-name { font-family: 'Orbitron'; font-weight: 900; font-size: 21px; letter-spacing: .5px; }
.brand-name b { color: var(--orange); }
.brand-sub { font-size: 11.5px; color: var(--text-3); font-weight: 600; letter-spacing: .4px; }
.model-pulse { display:flex; align-items:center; gap:8px; font-size:12px; color:var(--text-2); font-weight:600;
  background: var(--glass); border:1px solid var(--glass-border); border-radius:100px; padding:8px 14px; backdrop-filter: blur(10px); }
.pulse-dot { width:8px; height:8px; border-radius:50%; background:var(--green); box-shadow:0 0 10px var(--green); animation: pulse 2s ease-in-out infinite; }
@keyframes pulse { 50% { opacity:.4; } }

.topbar-controls { display: flex; gap: 10px; align-items: center; }
.pill-select, .pill-date, .pill-btn {
  background: var(--glass); border: 1px solid var(--glass-border); color: var(--text-1);
  border-radius: 100px; padding: 9px 16px; font-size: 13.5px; font-weight: 600;
  backdrop-filter: blur(10px); cursor: pointer; transition: border-color .25s, background .25s, transform .15s;
}
.pill-select:hover, .pill-date:hover, .pill-btn:hover { border-color: rgba(253,184,19,.5); }
.pill-btn:active { transform: scale(.97); }
.pill-btn.solid { background: linear-gradient(135deg, var(--yellow), var(--orange2)); color: #241500; border: none; box-shadow: 0 10px 26px -8px rgba(253,150,19,.6); }
.pill-date { color-scheme: dark; }

/* ============================================================
   LANDING
   ============================================================ */
.stage { flex: 1; display: flex; flex-direction: column; }
.landing {
  margin: auto; max-width: 880px; padding: 4vh 22px 12vh; text-align: center;
  animation: fadeUp .9s var(--ease) both;
}
.eyebrow { font-size: 12.5px; font-weight: 700; letter-spacing: 3px; text-transform: uppercase; color: var(--orange); margin-bottom: 18px; }
.headline { font-family: 'Orbitron'; font-weight: 900; font-size: clamp(30px, 5.6vw, 58px); line-height: 1.12; }
.headline span { background: linear-gradient(100deg, var(--yellow), var(--orange2)); -webkit-background-clip: text; background-clip: text; color: transparent; }
.sub { max-width: 620px; margin: 20px auto 34px; color: var(--text-2); font-size: 15.5px; line-height: 1.75; }

.launch-card {
  display: flex; align-items: stretch; gap: 0; max-width: 640px; margin: 0 auto;
  background: var(--glass); border: 1px solid var(--glass-border); border-radius: 22px;
  padding: 10px; backdrop-filter: blur(18px); box-shadow: var(--shadow);
}
.launch-field { flex: 1; display: flex; flex-direction: column; gap: 4px; padding: 8px 16px; text-align: left; }
.launch-field label { font-size: 10.5px; font-weight: 700; letter-spacing: 1.6px; text-transform: uppercase; color: var(--text-3); }
.launch-field select, .launch-field input {
  background: transparent; border: none; outline: none; font-size: 16.5px; font-weight: 700; color: var(--text-1);
  cursor: pointer; color-scheme: dark; padding: 2px 0;
}
.launch-field select option { background: var(--ink2); }
.launch-divider { width: 1px; background: var(--glass-border); margin: 10px 0; }
.analyze-btn {
  position: relative; border: none; cursor: pointer; border-radius: 16px; overflow: hidden;
  padding: 0 26px; background: linear-gradient(135deg, var(--yellow), var(--orange2));
  color: #241500; font-weight: 800; font-size: 15.5px;
  box-shadow: 0 14px 34px -10px rgba(253,150,19,.65); transition: transform .18s var(--ease), box-shadow .25s;
}
.analyze-btn:hover { transform: translateY(-2px); box-shadow: 0 20px 42px -10px rgba(253,150,19,.8); }
.analyze-btn:active { transform: translateY(0) scale(.98); }
.ab-label { display: inline-flex; align-items: center; gap: 8px; position: relative; z-index: 1; }
.ab-glow { position:absolute; inset:0; background: linear-gradient(120deg, transparent 30%, rgba(255,255,255,.5) 50%, transparent 70%); transform: translateX(-120%); animation: glint 4.5s ease-in-out infinite; }

.range-hint { margin: 16px auto 0; font-size: 12.5px; color: var(--text-3); max-width: 60ch; line-height: 1.6; }
.range-hint b { color: var(--text-2); font-weight: 700; }

.trust-row { display: flex; justify-content: center; gap: clamp(18px, 4vw, 44px); margin-top: 40px; flex-wrap: wrap; }
.trust { display: flex; flex-direction: column; gap: 2px; }
.trust b { font-family: 'Orbitron'; font-size: 22px; color: var(--orange); }
.trust span { font-size: 11.5px; color: var(--text-3); font-weight: 600; }

@keyframes fadeUp { from { opacity: 0; transform: translateY(26px);} to { opacity: 1; transform: none;} }

/* ============================================================
   ANALYZING OVERLAY
   ============================================================ */
.analyzing { position: fixed; inset: 0; z-index: 30; display: grid; place-items: center; background: rgba(6,9,18,.6); backdrop-filter: blur(10px); animation: fadeIn .35s both; }
@keyframes fadeIn { from { opacity: 0;} }
.an-card { width: min(420px, 90vw); background: var(--glass); border: 1px solid var(--glass-border); border-radius: 26px; padding: 34px 30px; text-align: center; box-shadow: var(--shadow); }
.an-sun { width: 62px; height: 62px; margin: 0 auto 18px; border-radius: 50%;
  background: radial-gradient(circle at 34% 30%, #FFF8E0, var(--yellow) 38%, var(--orange2) 78%);
  box-shadow: 0 0 40px rgba(253,184,19,.55); animation: anSpin 1.6s linear infinite; position: relative; }
.an-sun::after { content:""; position:absolute; inset:-10px; border-radius:50%; border:3px dashed rgba(253,184,19,.5); animation: spin 3.4s linear infinite; }
@keyframes anSpin { 50% { transform: scale(1.06);} }
.an-card h3 { font-size: 17px; margin-bottom: 20px; font-weight: 700; }
.an-steps { list-style: none; text-align: left; display: flex; flex-direction: column; gap: 12px; }
.an-steps li { display: flex; align-items: center; gap: 11px; color: var(--text-3); font-size: 13.5px; font-weight: 600; transition: color .3s; }
.an-steps li.active { color: var(--text-1); }
.an-steps li.done { color: var(--green); }
.st-ic { width: 20px; height: 20px; border-radius: 50%; border: 2px solid currentColor; position: relative; flex-shrink: 0; transition: all .3s; }
li.active .st-ic { border-color: var(--orange); animation: pulse 1s ease-in-out infinite; }
li.done .st-ic { background: var(--green); border-color: var(--green); }
li.done .st-ic::after { content:""; position:absolute; left:5px; top:2px; width:5px; height:9px; border:solid #06210F; border-width:0 2.5px 2.5px 0; transform: rotate(43deg); }

/* ============================================================
   RESULTS
   ============================================================ */
.results { width: min(1180px, 94vw); margin: 0 auto; padding: 1vh 0 8vh; animation: fadeUp .7s var(--ease) both; }
.res-head { display: flex; align-items: flex-end; justify-content: space-between; gap: 16px; margin: 8px 4px 20px; flex-wrap: wrap; }
.res-head h2 { font-family: 'Orbitron'; font-size: clamp(22px, 3.4vw, 34px); font-weight: 900; }
.res-sub { color: var(--text-3); font-size: 13px; font-weight: 600; margin-top: 6px; }
.wx-badge { display: flex; align-items: center; gap: 9px; background: var(--glass); border: 1px solid var(--glass-border);
  border-radius: 100px; padding: 10px 18px; font-weight: 700; font-size: 13.5px; backdrop-filter: blur(12px); }
.wxb-ic { width: 12px; height: 12px; border-radius: 50%; background: var(--yellow); box-shadow: 0 0 12px var(--yellow); }
body.wx-dust .wxb-ic, body.wx-storm .wxb-ic { background: #E58B3C; box-shadow: 0 0 12px #E58B3C; }
body.wx-overcast .wxb-ic { background: #9AA6BF; box-shadow: 0 0 12px #9AA6BF; }
body.wx-rain .wxb-ic { background: var(--blue); box-shadow: 0 0 12px var(--blue); }

.res-grid { display: grid; grid-template-columns: repeat(12, 1fr); gap: 18px; }
.card {
  background: var(--glass); border: 1px solid var(--glass-border); border-radius: var(--radius);
  padding: 26px; backdrop-filter: blur(18px); box-shadow: var(--shadow);
  transition: transform .35s var(--ease), border-color .35s;
}
.card:hover { transform: translateY(-4px); border-color: rgba(253,184,19,.32); }
.card h3 { font-size: 13px; font-weight: 800; letter-spacing: 1.4px; text-transform: uppercase; color: var(--text-2); margin-bottom: 16px; }
.card.wide { grid-column: span 12; }
.reveal { opacity: 0; transform: translateY(22px); }
.reveal.in { opacity: 1; transform: none; transition: opacity .7s var(--ease), transform .7s var(--ease); }

.hero-card { grid-column: span 6; display: flex; gap: 26px; align-items: center; }
.ring-wrap { position: relative; width: 190px; height: 190px; flex-shrink: 0; }
.ring { width: 100%; height: 100%; transform: rotate(-90deg); }
.ring circle { fill: none; stroke-width: 12; stroke-linecap: round; }
.ring-bg { stroke: rgba(255,255,255,.09); }
.ring-fg { stroke: url(#none); stroke: var(--orange); filter: drop-shadow(0 0 8px rgba(253,184,19,.6));
  stroke-dasharray: 553; stroke-dashoffset: 553; transition: stroke-dashoffset 1.4s var(--ease); }
.ring-center { position: absolute; inset: 0; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 2px; }
.ring-center b { font-family: 'Orbitron'; font-size: 38px; font-weight: 900; }
.ring-center span { font-size: 11px; color: var(--text-3); font-weight: 700; letter-spacing: 1px; }
.hero-meta h3 { margin-bottom: 10px; }
.hero-line { font-size: 15px; font-weight: 600; color: var(--text-1); }
.hero-line span { color: var(--orange); font-family: 'Orbitron'; font-weight: 700; }
.hero-note { margin-top: 10px; font-size: 12px; color: var(--text-3); line-height: 1.6; }

.level-card, .risk-card { grid-column: span 3; display: flex; flex-direction: column; }
.level-badge, .risk-badge {
  font-family: 'Orbitron'; font-weight: 900; font-size: 24px; letter-spacing: 1px;
  padding: 14px 10px; text-align: center; border-radius: var(--radius-sm); margin-bottom: 16px;
  background: rgba(255,255,255,.06); border: 1px solid var(--glass-border);
}
.level-badge.is-High, .risk-badge.is-Acceptable { color: var(--green); border-color: rgba(56,226,124,.4); background: rgba(56,226,124,.09); text-shadow: 0 0 18px rgba(56,226,124,.5); }
.level-badge.is-Medium, .risk-badge.is-Elevated { color: var(--yellow); border-color: rgba(255,213,74,.4); background: rgba(255,213,74,.08); text-shadow: 0 0 18px rgba(255,213,74,.5); }
.level-badge.is-Low, .risk-badge.is-Severe { color: var(--red); border-color: rgba(255,107,107,.4); background: rgba(255,107,107,.09); text-shadow: 0 0 18px rgba(255,107,107,.5); }
.prob-rows { display: flex; flex-direction: column; gap: 9px; flex: 1; }
.prob-row { display: grid; grid-template-columns: 86px 1fr 40px; gap: 8px; align-items: center; font-size: 11.5px; font-weight: 600; color: var(--text-2); }
.prob-bar { height: 7px; border-radius: 100px; background: rgba(255,255,255,.08); overflow: hidden; }
.prob-fill { height: 100%; border-radius: 100px; background: linear-gradient(90deg, var(--yellow), var(--orange2)); width: 0; transition: width 1.1s var(--ease); }
.prob-row b { text-align: right; font-family: 'Rajdhani'; font-size: 13px; color: var(--text-1); }
.card-foot { margin-top: 14px; font-size: 11px; color: var(--text-3); line-height: 1.55; }

.chips { display: flex; flex-wrap: wrap; gap: 10px; }
.chip { display: flex; flex-direction: column; gap: 3px; background: rgba(255,255,255,.05);
  border: 1px solid var(--glass-border); border-radius: var(--radius-sm); padding: 12px 16px; min-width: 118px; }
.chip span { font-size: 10px; font-weight: 700; letter-spacing: 1.2px; text-transform: uppercase; color: var(--text-3); }
.chip b { font-family: 'Rajdhani'; font-size: 19px; font-weight: 700; }
.chip.warn b { color: var(--red); } .chip.good b { color: var(--green); }

.reco-list { display: grid; grid-template-columns: repeat(auto-fit, minmax(290px, 1fr)); gap: 14px; }
.reco { display: flex; gap: 13px; background: rgba(255,255,255,.045); border: 1px solid var(--glass-border);
  border-radius: var(--radius-sm); padding: 16px; }
.reco-ic { width: 38px; height: 38px; border-radius: 11px; flex-shrink: 0; display: grid; place-items: center;
  background: rgba(253,184,19,.14); color: var(--orange); font-size: 17px; }
.reco.sev-high .reco-ic { background: rgba(255,107,107,.15); color: var(--red); }
.reco.sev-good .reco-ic { background: rgba(56,226,124,.15); color: var(--green); }
.reco h5 { font-size: 13.5px; font-weight: 700; margin-bottom: 4px; }
.reco p { font-size: 12.5px; color: var(--text-2); line-height: 1.6; }

.aqi-num { margin-top: 12px; font-family: 'Rajdhani'; font-size: 15px; font-weight: 700; color: var(--text-1); }
.aqi-num span { color: var(--orange); font-size: 19px; }

.ask-hint { font-size: 12.5px; color: var(--text-2); line-height: 1.65; margin: -4px 0 16px; }
.ask-row { display: flex; gap: 10px; }
.ask-row input {
  flex: 1; background: rgba(255,255,255,.05); border: 1px solid var(--glass-border);
  border-radius: 100px; padding: 13px 20px; font-size: 14px; outline: none; color: var(--text-1);
  transition: border-color .25s;
}
.ask-row input::placeholder { color: var(--text-3); }
.ask-row input:focus { border-color: rgba(253,184,19,.5); }
.ask-chips { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 12px; }
.ask-chip {
  background: rgba(255,255,255,.045); border: 1px solid var(--glass-border); color: var(--text-2);
  border-radius: 100px; padding: 7px 14px; font-size: 11.5px; font-weight: 600; cursor: pointer;
  transition: border-color .2s, color .2s;
}
.ask-chip:hover { border-color: rgba(253,184,19,.45); color: var(--text-1); }
.ask-answer { margin-top: 18px; background: rgba(255,255,255,.045); border: 1px solid var(--glass-border);
  border-radius: var(--radius-sm); padding: 20px; animation: fadeIn .4s both; }
.ask-answer h4 { font-family: 'Orbitron'; font-size: 15px; margin-bottom: 4px; }
.ask-answer .ask-big { font-family: 'Orbitron'; font-size: 30px; font-weight: 900; color: var(--orange); margin: 10px 0 4px; }
.ask-answer .ask-meta { font-size: 12.5px; color: var(--text-2); line-height: 1.75; }
.ask-answer .ask-why { margin-top: 14px; padding-top: 14px; border-top: 1px solid var(--glass-border); }
.ask-answer .ask-why b { font-size: 10.5px; letter-spacing: 1.4px; text-transform: uppercase; color: var(--text-3); }
.ask-answer .ask-why ul { list-style: none; margin-top: 8px; display: flex; flex-direction: column; gap: 8px; }
.ask-answer .ask-why li { font-size: 12.5px; color: var(--text-2); line-height: 1.6; padding-left: 14px; position: relative; }
.ask-answer .ask-why li::before { content: "—"; position: absolute; left: 0; color: var(--orange); }
.ask-answer .ask-why em { color: var(--text-3); font-style: normal; font-size: 11px; }
.ask-err { color: var(--red); font-size: 13px; font-weight: 600; }

.sci-head { display: flex; align-items: center; justify-content: space-between; gap: 12px; }
.sci-engine { font-size: 10.5px; font-weight: 700; letter-spacing: 1.4px; text-transform: uppercase; color: var(--orange);
  background: rgba(253,184,19,.1); border: 1px solid rgba(253,184,19,.3); padding: 6px 12px; border-radius: 100px; }
.sci-body { margin-top: 6px; }
.sci-loading { color: var(--text-3); font-size: 13px; font-weight: 600; }
.sci-verdict { font-size: 14px; line-height: 1.7; color: var(--text-1); margin-bottom: 16px; }
.sci-paper { background: rgba(255,255,255,.045); border: 1px solid var(--glass-border); border-radius: var(--radius-sm); padding: 18px; }
.sci-paper a { color: var(--yellow); text-decoration: none; font-weight: 700; font-size: 14.5px; line-height: 1.5; }
.sci-paper a:hover { text-decoration: underline; }
.sci-paper p { margin-top: 8px; font-size: 12.5px; color: var(--text-2); line-height: 1.65; }
.sci-src { margin-top: 10px; font-size: 10.5px; color: var(--text-3); font-weight: 700; letter-spacing: 1px; text-transform: uppercase; }

.res-actions { display: flex; gap: 12px; justify-content: center; margin: 34px 0 12px; }
.footnote { text-align: center; color: var(--text-3); font-size: 11px; margin-top: 8px; }

/* responsive */
@media (max-width: 940px) {
  .hero-card { grid-column: span 12; }
  .level-card, .risk-card { grid-column: span 6; }
  .model-pulse { display: none; }
}
@media (max-width: 640px) {
  .level-card, .risk-card { grid-column: span 12; }
  .launch-card { flex-direction: column; gap: 8px; }
  .launch-divider { display: none; }
  .analyze-btn { padding: 15px; }
  .hero-card { flex-direction: column; text-align: center; }
  .topbar-controls { display: none !important; }
}
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation-duration: .01ms !important; animation-iteration-count: 1 !important; transition-duration: .2s !important; }
}
