:root { --bg: #040817; --surface: rgba(12, 26, 60, .56); --surface-light: rgba(255,255,255,.07); --line: rgba(255,255,255,.15); --text: #f7faff; --muted: #a9b9d7; --sky: #61b7ff; --blue: #2563eb; --amber: #ffc65a; --radius: 2rem; font-size: 62.5%; }

* { box-sizing: border-box; }
 html { scroll-behavior: smooth; }
 body { min-width: 32rem; min-height: 100vh; margin: 0; overflow-x: hidden; background: var(--bg); color: var(--text); font: 1.6rem/1.5 Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif; }
 button, input { font: inherit; }
 button { cursor: pointer; }
 button:focus-visible, input:focus-visible, a:focus-visible { outline: .3rem solid #9ed7ff; outline-offset: .3rem; }
 .container { position: relative; z-index: 1; width: min(118rem, calc(100% - 3.2rem)); margin-inline: auto; }
 .sky { position: fixed; inset: 0; overflow: hidden; pointer-events: none; background: linear-gradient(160deg, #040817 0%, #0b1740 55%, #041737 100%); }
 .sky__glow { position: absolute; display: block; border-radius: 50%; filter: blur(8rem); opacity: .6; }
 .sky__glow--one { top: -28rem; left: 15%; width: 65rem; height: 55rem; background: #1768bc; }
 .sky__glow--two { right: -26rem; bottom: -30rem; width: 75rem; height: 60rem; background: #a06918; opacity: .25; }
 .sky__grid { position: absolute; inset: 0; background-image: radial-gradient(rgba(255,255,255,.17) .08rem, transparent .08rem); background-size: 3.8rem 3.8rem; opacity: .13; }

.header { z-index: 10; display: grid; grid-template-columns: auto minmax(28rem, 1fr) auto; align-items: center; gap: 2.4rem; padding-block: 2.4rem 1.2rem; }
 .brand { display: flex; gap: 1.1rem; align-items: center; color: var(--text); text-decoration: none; }
 .brand__icon { display: grid; width: 4.4rem; height: 4.4rem; place-items: center; border: .1rem solid var(--line); border-radius: 1.5rem; background: var(--surface); color: var(--amber); font-size: 2.6rem; box-shadow: inset 0 .1rem rgba(255,255,255,.3), 0 1.4rem 3.4rem rgba(0,0,0,.25); }
 .brand__name { display: block; font-size: 2.2rem; letter-spacing: -.1rem; }
 .brand__name span { color: var(--sky); }
 .brand small { display: block; color: var(--muted); font-size: .9rem; font-weight: 700; letter-spacing: .18rem; }
 .search-wrap { position: relative; }
 .search { display: flex; align-items: center; gap: .8rem; min-height: 5.4rem; padding: .5rem .6rem .5rem 1.6rem; border: .1rem solid var(--line); border-radius: 99rem; background: rgba(5, 13, 37, .72); box-shadow: 0 1.4rem 4rem rgba(0,0,0,.24); backdrop-filter: blur(2rem); }
 .search:focus-within { border-color: #89cfff; box-shadow: 0 0 0 .3rem rgba(97,183,255,.16); }
 .search__icon { color: var(--sky); font-size: 2.4rem; transform: rotate(-20deg); }
 .search input, .modal-search input { min-width: 0; width: 100%; border: 0; outline: 0; background: transparent; color: var(--text); }
 input::placeholder { color: #8e9bb6; }
 .button { min-height: 4.2rem; border: .1rem solid transparent; border-radius: 99rem; padding: .8rem 1.6rem; color: var(--text); font-size: 1.35rem; font-weight: 750; transition: transform .2s ease, border-color .2s ease, background .2s ease; }
 .button:hover { transform: translateY(-.15rem); }
 .button--primary { background: linear-gradient(115deg, #2b9eeb, #2e54db); box-shadow: 0 .8rem 2rem rgba(37,99,235,.3); }
 .button--saved, .button--glass { border-color: var(--line); background: var(--surface); backdrop-filter: blur(1.6rem); }
 .button--saved { white-space: nowrap; }
 .badge { display: inline-grid; min-width: 2rem; place-items: center; border-radius: 99rem; background: var(--blue); font-size: 1.1rem; }
 .feedback { margin: .8rem .4rem 0; padding: .7rem 1rem; border: .1rem solid rgba(255,198,90,.45); border-radius: 1rem; background: rgba(75,46,6,.72); color: #ffe5a7; font-size: 1.3rem; }
 .feedback--error { border-color: rgba(255,136,136,.6); background: rgba(100,25,30,.7); color: #ffcece; }
 .is-hidden { display: none !important; }

.suggestions { position: absolute; z-index: 5; top: calc(100% + .8rem); right: 0; left: 0; max-height: 27rem; margin: 0; padding: .5rem; overflow-y: auto; border: .1rem solid var(--line); border-radius: 1.6rem; background: #0b1839f0; box-shadow: 0 2rem 5rem rgba(0,0,0,.4); list-style: none; backdrop-filter: blur(2rem); }
 .suggestions button { display: flex; width: 100%; flex-direction: column; padding: 1.1rem 1.3rem; border: 0; border-radius: 1rem; background: transparent; color: var(--text); text-align: left; }
 .suggestions button:hover { background: var(--surface-light); }
 .suggestions small { color: var(--muted); }

.trends { display: flex; justify-content: center; gap: .8rem; flex-wrap: wrap; padding: 1.4rem 0 2.3rem; }
 .trends span { align-self: center; color: var(--muted); font-size: 1.05rem; font-weight: 800; letter-spacing: .13rem; }
 .trends button { border: .1rem solid var(--line); border-radius: 99rem; padding: .5rem 1.1rem; background: var(--surface-light); color: #dce8ff; font-size: 1.2rem; transition: background .2s, border-color .2s; }
 .trends button:hover { border-color: var(--sky); background: rgba(97,183,255,.15); }
.loading { display: grid; min-height: 50rem; place-content: center; justify-items: center; color: var(--muted); }
.loader { width: 5rem; height: 5rem; border: .35rem solid rgba(97,183,255,.25); border-top-color: var(--amber); border-radius: 50%; animation: spin .8s linear infinite; }
.weather-view { display: grid; gap: 3rem; padding-bottom: 5rem; }
.weather-hero { display: grid; justify-items: center; }
.live-label { display: flex; align-items: center; gap: .8rem; margin: 0 0 1.7rem; border: .1rem solid var(--line); border-radius: 99rem; padding: .65rem 1.2rem; background: var(--surface); color: #d0e5ff; font-size: 1.2rem; }
.live-label span { width: .7rem; height: .7rem; border-radius: 50%; background: #65e8a5; box-shadow: 0 0 1rem #65e8a5; }
.orb { display: grid; width: min(39rem, 85vw); aspect-ratio: 1; place-content: center; justify-items: center; padding: 3.2rem; overflow: hidden; border: .15rem solid rgba(255,255,255,.25); border-radius: 50%; background: radial-gradient(circle at 32% 20%, rgba(255,255,255,.25), rgba(16,90,169,.45) 45%, rgba(4,10,29,.9) 78%); box-shadow: inset 1rem 1rem 5rem rgba(255,255,255,.13), inset -1.5rem -2rem 5rem rgba(10,70,139,.36), 0 2rem 7rem rgba(0,0,0,.5), 0 0 7rem rgba(66,159,255,.24); animation: float 6s ease-in-out infinite; }
.orb__location { margin: 0; font-size: clamp(2.4rem, 5vw, 3.8rem); font-weight: 800; letter-spacing: -.15rem; text-align: center; }
.orb__location small { display: block; margin-top: .1rem; color: #b9ddff; font-size: 1.1rem; font-weight: 700; letter-spacing: .19rem; text-transform: uppercase; }
.orb__temperature { display: flex; align-items: center; margin: .8rem 0; }
.weather-icon { margin-right: 1rem; font-size: 5.5rem; filter: drop-shadow(0 0 1.8rem rgba(255,198,90,.7)); }
.orb__temperature strong { font-size: clamp(7rem, 17vw, 10rem); line-height: .9; letter-spacing: -.7rem; }
.orb__temperature em { align-self: flex-start; margin: .6rem 0 0 .7rem; color: #b9ddff; font-size: 3rem; font-style: normal; font-weight: 800; }
.condition { margin: 0; border: .1rem solid rgba(255,255,255,.14); border-radius: 99rem; padding: .45rem 1.2rem; background: rgba(255,255,255,.1); font-size: 1.45rem; font-weight: 700; }
.hero-actions { display: flex; flex-wrap: wrap; justify-content: center; gap: 1rem; margin-top: 2rem; }
.metrics { display: grid; grid-template-columns: repeat(4, 1fr); gap: 1.3rem; }
.metric, .hourly-panel { border: .1rem solid var(--line); background: linear-gradient(135deg, rgba(255,255,255,.09), rgba(8,25,64,.57)); box-shadow: inset 0 .1rem rgba(255,255,255,.15), 0 1.6rem 4rem rgba(0,0,0,.16); backdrop-filter: blur(1.8rem); }
.metric { min-height: 14rem; border-radius: 1.8rem; padding: 1.7rem; }
.metric__header { display: flex; justify-content: space-between; align-items: center; color: var(--muted); font-size: 1.05rem; font-weight: 800; letter-spacing: .1rem; }
.metric i { display: grid; width: 2.8rem; height: 2.8rem; place-items: center; border-radius: 1rem; background: rgba(97,183,255,.14); color: #9ed7ff; font-size: 1.7rem; font-style: normal; }
.metric strong { display: block; margin-top: 1rem; font-size: 2.3rem; }
.metric__bar { display: block; height: .55rem; margin-top: 1.7rem; overflow: hidden; border-radius: 99rem; background: rgba(255,255,255,.12); }
.metric__bar b { display: block; width: 0; height: 100%; border-radius: inherit; background: linear-gradient(90deg, var(--sky), var(--amber)); transition: width .7s ease; }
.hourly-panel { overflow: hidden; border-radius: var(--radius); padding: 2.2rem; }
.section-heading { display: flex; align-items: center; justify-content: space-between; gap: 1rem; margin-bottom: 1.6rem; }
.section-heading__eyebrow { margin: 0; color: #a9d9ff; font-size: 1.05rem; font-weight: 800; letter-spacing: .12rem; }
.section-heading h2 { margin: .25rem 0; font-size: 2rem; letter-spacing: -.06rem; }
.section-heading p:not(.section-heading__eyebrow) { margin: 0; color: var(--muted); font-size: 1.3rem; }
.section-heading p span { color: var(--text); font-weight: 700; }
.scroll-controls { display: flex; gap: .6rem; }
.scroll-controls button, .icon-button { display: grid; width: 3.5rem; height: 3.5rem; place-items: center; border: .1rem solid var(--line); border-radius: 1rem; background: var(--surface-light); color: var(--text); font-size: 2.4rem; line-height: 1; }
.hours { display: flex; gap: 1rem; overflow-x: auto; padding: .5rem .1rem 1.2rem; scroll-behavior: smooth; scrollbar-color: var(--sky) transparent; }
.hour { display: grid; min-width: 10rem; justify-items: center; gap: .7rem; border: .1rem solid rgba(255,255,255,.1); border-radius: 1.5rem; padding: 1.4rem .8rem; background: rgba(255,255,255,.045); }
.hour--now { border-color: rgba(97,183,255,.65); background: rgba(45,131,238,.2); }
.hour__time { color: #c9d9f3; font-size: 1.2rem; }
.hour__icon { font-size: 2.6rem; }
.hour strong { font-size: 1.8rem; }
.hour small { color: var(--muted); font-size: 1.1rem; text-align: center; }
.footer { position: relative; z-index: 1; padding: 2.4rem; border-top: .1rem solid rgba(255,255,255,.08); color: var(--muted); font-size: 1.2rem; text-align: center; }
.footer p { margin: 0; }
.footer a { color: #a9d9ff; }

.cities-modal { width: min(60rem, calc(100% - 3rem)); max-height: min(71rem, calc(100vh - 3rem)); overflow: auto; border: .1rem solid rgba(255,255,255,.22); border-radius: 2.4rem; padding: 2.4rem; background: #0b1736f7; color: var(--text); box-shadow: 0 2rem 10rem rgba(0,0,0,.7); backdrop-filter: blur(3rem); }
.cities-modal::backdrop { background: rgba(2,6,19,.75); backdrop-filter: blur(.8rem); }
.modal__header { display: flex; justify-content: space-between; align-items: center; gap: 1rem; padding-bottom: 1.6rem; border-bottom: .1rem solid var(--line); }
.modal__header h2 { margin: .2rem 0 0; font-size: 2.4rem; }
.modal-search { position: relative; padding: 1.8rem 0; border-bottom: .1rem solid var(--line); }
.modal-search label { display: block; margin-bottom: .8rem; color: #c3e4ff; font-size: 1.2rem; font-weight: 800; letter-spacing: .08rem; text-transform: uppercase; }
.modal-search > div { display: flex; gap: .8rem; padding: .5rem .5rem .5rem 1.2rem; border: .1rem solid var(--line); border-radius: 1.2rem; background: rgba(255,255,255,.05); }
.suggestions--modal { top: calc(100% - 1.5rem); }
.modal__list-header { display: flex; justify-content: space-between; padding: 1.5rem 0 .7rem; color: var(--muted); font-size: 1.1rem; font-weight: 800; letter-spacing: .1rem; }
.saved-list { display: grid; gap: .8rem; margin: 0; padding: 0; list-style: none; }
.saved-city { display: flex; align-items: center; gap: 1rem; border: .1rem solid rgba(255,255,255,.1); border-radius: 1.4rem; padding: 1rem; background: rgba(255,255,255,.045); }
.saved-city__select { display: flex; min-width: 0; flex: 1; align-items: center; gap: 1rem; border: 0; background: transparent; color: var(--text); text-align: left; }
.saved-city__icon { display: grid; width: 3.5rem; height: 3.5rem; flex: 0 0 auto; place-items: center; border-radius: 1.1rem; background: rgba(97,183,255,.15); font-size: 1.8rem; }
.saved-city__select strong, .saved-city__select small { display: block; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.saved-city__select small { color: var(--muted); font-size: 1.2rem; }
.delete-city { width: 3.4rem; height: 3.4rem; flex: 0 0 auto; border: 0; border-radius: 1rem; background: rgba(255,112,112,.12); color: #ffb9b9; font-size: 1.8rem; }
.empty-state { display: grid; justify-items: center; padding: 4rem 1rem; color: var(--muted); text-align: center; }
.empty-state span { color: var(--sky); font-size: 4rem; }
.empty-state strong { margin-top: .7rem; color: var(--text); }
.empty-state p { margin: .4rem 0; font-size: 1.3rem; }
.modal__footer { margin: 1.7rem 0 0; padding-top: 1.5rem; border-top: .1rem solid var(--line); color: var(--muted); font-size: 1.2rem; }

@keyframes spin { to { transform: rotate(360deg); }
 }
 @keyframes float { 50% { transform: translateY(-.8rem); }
 }
 @media (max-width: 800px) { .header { grid-template-columns: 1fr auto; }
 .search-wrap { grid-column: 1 / -1; grid-row: 2; }
 .brand { grid-column: 1; }
 .button--saved { grid-column: 2; }
 .metrics { grid-template-columns: repeat(2, 1fr); }
 }
 @media (max-width: 520px) { .header { gap: 1.3rem; padding-top: 1.6rem; }
 .brand small { display: none; }
 .brand__name { font-size: 1.9rem; }
 .button--saved { padding: .8rem 1rem; }
 .button--saved > :not(.badge):not(:first-child) { display: none; }
 .search { min-height: 5rem; padding-left: 1.1rem; }
 .search .button { padding-inline: 1.2rem; }
 .trends { padding-bottom: 1.5rem; }
 .orb { width: min(33rem, 90vw); }
 .weather-icon { font-size: 4.2rem; margin-right: .5rem; }
 .metrics { gap: .8rem; }
 .metric { min-height: 12.5rem; padding: 1.2rem; }
 .metric strong { font-size: 1.9rem; }
 .hourly-panel { padding: 1.6rem; border-radius: 1.6rem; }
 .section-heading h2 { font-size: 1.8rem; }
 .cities-modal { padding: 1.7rem; }
 }
 @media (prefers-reduced-motion: reduce) { *, *::before, *::after { scroll-behavior: auto !important; animation-duration: .01ms !important; transition-duration: .01ms !important; }
 }
 .sr-only { position: absolute; width: .1rem; height: .1rem; padding: 0; overflow: hidden; clip: rect(0,0,0,0); white-space: nowrap; border: 0; }

