:root {
    --bg-sky: #E0F2FE;
    --bg-sky-dark: #0284C7;
    --text-slate: #0F172A;
    --text-slate-light: #475569;
    --text-slate-muted: #94A3B8;
    
    --glass-bg: rgba(255, 255, 255, 0.55);
    --glass-border: rgba(255, 255, 255, 0.6);
    --glass-shadow: 0 8px 32px rgba(2, 132, 199, 0.08);
    
    --golden: #F59E0B;
    --emerald: #10B981;
    --sky: #0EA5E9;
    --rose: #F43F5E;

    --font-sans: 'Pretendard', sans-serif;
    --font-num: 'Outfit', sans-serif;
}

* { margin: 0; padding: 0; box-sizing: border-box; }
html { scroll-behavior: smooth; font-size: 16px; }
body { 
    background: linear-gradient(180deg, #E0F2FE 0%, #BAE6FD 100%);
    background-attachment: fixed;
    color: var(--text-slate); 
    font-family: var(--font-sans); 
    overflow-x: hidden;
    line-height: 1.5;
    min-height: 100vh;
}
a { color: inherit; text-decoration: none; }

/* Text Utils */
.text-golden { color: var(--golden); }
.text-sky { color: var(--sky); }
.text-emerald { color: var(--emerald); }
.text-rose { color: var(--rose); }
.text-muted { color: var(--text-slate-muted); }

/* Atmospheric Animated Background */
.ambient-sky { position: fixed; top: 0; left: 0; width: 100vw; height: 100vh; z-index: -1; pointer-events: none; overflow: hidden; }
.cloud-mist { position: absolute; border-radius: 50%; filter: blur(140px); opacity: 0.8; animation: drift 30s infinite alternate; }
.mist-1 { width: 800px; height: 800px; background: #FFFFFF; top: -200px; left: -200px; }
.mist-2 { width: 600px; height: 600px; background: #7DD3FC; bottom: -100px; right: -100px; animation-delay: -10s; }

@keyframes drift {
    0% { transform: translate(0, 0) scale(1); }
    100% { transform: translate(100px, 50px) scale(1.1); }
}

/* Glass Navbar */
.glass-nav {
    position: fixed; top: 20px; left: 50%; transform: translateX(-50%); width: 90%; max-width: 1200px; z-index: 100;
    background: var(--glass-bg); backdrop-filter: blur(24px); -webkit-backdrop-filter: blur(24px);
    border: 1px solid var(--glass-border); border-radius: 40px; padding: 12px 24px;
    box-shadow: var(--glass-shadow);
}
.nav-container { display: flex; justify-content: space-between; align-items: center; }
.brand { display: flex; align-items: center; gap: 8px; font-weight: 800; font-size: 1.25rem; letter-spacing: -0.02em; }
.brand i { color: var(--sky); font-size: 1.5rem; }
.search-bar { display: flex; align-items: center; background: rgba(255,255,255,0.7); border-radius: 30px; padding: 8px 16px; width: 300px; gap: 8px; border: 1px solid rgba(255,255,255,0.8); }
.search-bar i { color: var(--text-slate-light); }
.search-bar input { border: none; background: transparent; outline: none; flex: 1; font-size: 0.95rem; font-family: var(--font-sans); color: var(--text-slate); }
.search-bar input::placeholder { color: var(--text-slate-muted); }
.btn-app-dl { background: var(--text-slate); color: #fff; padding: 10px 20px; border-radius: 30px; font-weight: 700; font-size: 0.9rem; transition: 0.3s; }
.btn-app-dl:hover { background: var(--sky); transform: translateY(-2px); }

/* Dashboard Layout */
.dashboard-wrapper { max-width: 1000px; margin: 140px auto 100px; padding: 0 24px; }
.dashboard-header { text-align: center; margin-bottom: 50px; }
.dashboard-header h1 { font-size: clamp(2rem, 4vw, 3rem); font-weight: 800; letter-spacing: -0.04em; margin-bottom: 12px; }
.dashboard-header strong { color: var(--sky); }
.dashboard-header p { font-size: 1.15rem; color: var(--text-slate-light); }

/* Grid */
.widget-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 24px; }

/* Generic Widget Card */
.widget {
    background: var(--glass-bg); backdrop-filter: blur(24px); -webkit-backdrop-filter: blur(24px);
    border: 1px solid var(--glass-border); border-radius: 24px; padding: 32px;
    box-shadow: inset 0 1px 0 rgba(255,255,255,0.8), var(--glass-shadow);
    transition: transform 0.4s cubic-bezier(0.16, 1, 0.3, 1), box-shadow 0.4s ease;
    display: flex; flex-direction: column; justify-content: space-between; overflow: hidden; position: relative;
}
.widget:hover { transform: translateY(-4px); box-shadow: inset 0 1px 0 rgba(255,255,255,0.9), 0 20px 40px rgba(2, 132, 199, 0.12); }
.widget-title { font-size: 0.95rem; font-weight: 700; color: var(--text-slate-light); margin-bottom: 24px; display: flex; align-items: center; gap: 8px; text-transform: uppercase; letter-spacing: 0.05em; }
.widget-desc { font-size: 0.9rem; color: var(--text-slate-light); font-weight: 500; margin-top: 16px; line-height: 1.4; }

/* 1. Hero Content Widget (Spans 2x2) */
.widget-hero { grid-column: span 2; grid-row: span 2; justify-content: space-between; position: relative; }
.w-top { display: flex; justify-content: space-between; align-items: flex-start; }
.location-badge { display: inline-flex; align-items: center; gap: 6px; background: rgba(0,0,0,0.05); padding: 6px 12px; border-radius: 20px; font-weight: 700; font-size: 0.9rem; }
.weather-hero-icon { font-size: 4rem; filter: drop-shadow(0 10px 20px rgba(245, 158, 11, 0.3)); margin-top: -10px; }
.w-middle { margin: 40px 0; }
.temp-display { font-family: var(--font-num); font-size: 8rem; font-weight: 200; line-height: 1; margin-left: -8px; letter-spacing: -0.05em; }
.temp-condition { font-size: 1.5rem; font-weight: 700; color: var(--text-slate); margin-top: -10px; }
.w-bottom { display: flex; gap: 24px; border-top: 1px solid rgba(0,0,0,0.05); padding-top: 20px; }
.sub-stat { display: flex; flex-direction: column; gap: 4px; }
.sub-stat span { font-size: 0.85rem; color: var(--text-slate-light); font-weight: 600; }
.sub-stat strong { font-family: var(--font-num); font-size: 1.25rem; font-weight: 600; }

/* 2. Hourly Forecast Widget (Span 2x1) */
.widget-hourly { grid-column: span 2; }
.hourly-scroll { display: flex; gap: 24px; overflow-x: auto; padding-bottom: 20px; scrollbar-width: none; -ms-overflow-style: none; margin-bottom: -10px; }
.hourly-scroll::-webkit-scrollbar { display: none; }
.hour-item { display: flex; flex-direction: column; align-items: center; gap: 12px; min-width: 60px; scroll-snap-align: center; }
.h-time { font-size: 0.9rem; font-weight: 600; color: var(--text-slate-light); white-space: nowrap; }
.hour-item i { font-size: 1.8rem; color: var(--text-slate); }
.h-temp { font-family: var(--font-num); font-size: 1.25rem; font-weight: 600; }

/* 3. Small Square Widgets (Span 1x1) */
.widget-square { grid-column: span 1; align-items: center; text-align: center; }

/* UV Dial */
.uv-dial { position: relative; width: 120px; height: 60px; overflow: hidden; margin: 0 auto; }
.dial-arc { position: absolute; width: 120px; height: 120px; border-radius: 50%; border: 12px solid rgba(0,0,0,0.05); border-bottom-color: transparent; border-right-color: transparent; transform: rotate(45deg); }
.dial-arc::after { content: ''; position: absolute; top: -12px; left: -12px; right: -12px; bottom: -12px; border-radius: 50%; border: 12px solid transparent; border-top-color: var(--golden); border-left-color: var(--golden); clip-path: polygon(0 0, 100% 0, 0 50%); }
.dial-value { position: absolute; bottom: 0; left: 0; width: 100%; display: flex; flex-direction: column; align-items: center; line-height: 1; }
.dial-value strong { font-family: var(--font-num); font-size: 2rem; font-weight: 600; }
.dial-value span { font-size: 0.8rem; font-weight: 700; color: var(--golden); }

/* AQI Bar */
.aqi-meter { width: 100%; margin: auto 0; }
.aqi-bar { height: 8px; background: linear-gradient(90deg, var(--emerald) 0%, var(--golden) 50%, var(--rose) 100%); border-radius: 4px; position: relative; margin-bottom: 12px; }
.aqi-indicator { position: absolute; width: 16px; height: 16px; background: #fff; border: 2px solid var(--text-slate); border-radius: 50%; top: 50%; transform: translate(-50%, -50%); box-shadow: 0 2px 4px rgba(0,0,0,0.2); }
.aqi-score { font-size: 1.1rem; font-weight: 800; font-family: var(--font-sans); }

/* 4. Weekly Forecast Widget (Span 2x2) */
.widget-weekly { grid-column: span 2; grid-row: span 2; }
.weekly-list { display: flex; flex-direction: column; gap: 20px; flex: 1; justify-content: center; }
.day-row { display: flex; align-items: center; gap: 16px; }
.d-name { width: 40px; font-weight: 700; font-size: 1rem; }
.day-row i { font-size: 1.5rem; color: var(--text-slate); width: 30px; text-align: center; }
.temp-bar-wrap { flex: 1; display: flex; align-items: center; gap: 12px; font-family: var(--font-num); font-size: 1.05rem; font-weight: 600; }
.t-min { color: var(--text-slate-light); width: 35px; text-align: right; }
.t-max { width: 35px; text-align: left; }
.t-bar { flex: 1; height: 6px; background: rgba(0,0,0,0.05); border-radius: 3px; position: relative; }
.t-fill { position: absolute; height: 100%; background: linear-gradient(90deg, #38BDF8, #F59E0B); border-radius: 3px; }

/* 5. Live Radar Fill Map Widget (Span 2x2) */
.widget-radar { grid-column: span 2; grid-row: span 2; position: relative; overflow: hidden; padding: 0 !important; border: 1px solid var(--glass-border); box-shadow: var(--glass-shadow); }
.widget-radar .widget-title { position: absolute; top: 32px; left: 32px; z-index: 10; margin-bottom: 0; background: rgba(255,255,255,0.8); backdrop-filter: blur(10px); padding: 8px 16px; border-radius: 20px; box-shadow: 0 4px 10px rgba(0,0,0,0.05); }
.radar-map-container { width: 100%; height: 100%; position: absolute; top: 0; left: 0; background: #0F172A; overflow: hidden; }
.map-bg { position: absolute; width: 100%; height: 100%; background-image: radial-gradient(rgba(255,255,255,0.05) 1px, transparent 1px); background-size: 20px 20px; }
.radar-ping { position: absolute; border: 2px solid var(--emerald); border-radius: 50%; width: 20px; height: 20px; animation: ping 3s infinite; }
.p-center { top: 50%; left: 50%; transform: translate(-50%, -50%); }
@keyframes ping {
    0% { transform: scale(1); opacity: 1; }
    100% { transform: scale(8); opacity: 0; }
}
.rain-cloud { position: absolute; background: radial-gradient(circle, rgba(14, 165, 233, 0.4) 0%, transparent 60%); filter: blur(10px); opacity: 0.8; animation: wind 10s infinite linear; }
.rc-1 { width: 200px; height: 200px; top: 10%; left: -50%; }
.rc-2 { width: 150px; height: 150px; top: 60%; left: 110%; background: radial-gradient(circle, rgba(16, 185, 129, 0.4) 0%, transparent 60%); animation-duration: 8s; animation-direction: reverse; }
@keyframes wind { 100% { left: 100%; } }
.map-overlay-badge { position: absolute; top: 50%; left: 50%; transform: translate(-50%, -50%); background: rgba(0,0,0,0.8); color: var(--emerald); padding: 6px 12px; border-radius: 20px; font-weight: 700; font-size: 0.85rem; border: 1px solid rgba(16, 185, 129, 0.3); z-index: 5; }
.radar-desc { position: absolute; bottom: 32px; left: 32px; right: 32px; z-index: 10; margin-top: 0; margin-bottom: 0; color: #fff; background: rgba(0,0,0,0.4); padding: 16px; border-radius: 16px; backdrop-filter: blur(10px); }

/* App Teaser (Full Width within wrapper) */
.app-teaser { background: var(--text-slate); border-radius: 32px; overflow: hidden; color: #fff; padding: 60px; display: flex; align-items: center; justify-content: space-between; gap: 60px; position: relative; border: 1px solid var(--glass-border); box-shadow: var(--glass-shadow); margin-top: 60px; }
.app-info { flex: 1; z-index: 10; }
.chip { display: inline-block; background: rgba(255,255,255,0.1); padding: 6px 16px; border-radius: 20px; font-size: 0.85rem; font-weight: 700; margin-bottom: 24px; letter-spacing: 0.05em; text-transform: uppercase; border: 1px solid rgba(255,255,255,0.1); }
.app-info h2 { font-size: clamp(2.2rem, 3.5vw, 3rem); font-weight: 300; line-height: 1.2; margin-bottom: 20px; letter-spacing: -0.03em; }
.app-info h2 strong { font-weight: 800; color: var(--sky); }
.app-info p { font-size: 1.1rem; color: var(--text-slate-muted); line-height: 1.6; margin-bottom: 40px; }
.dl-buttons { display: flex; gap: 16px; }
.btn-store { display: flex; align-items: center; gap: 8px; background: rgba(255,255,255,0.05); border: 1px solid rgba(255,255,255,0.1); border-radius: 14px; padding: 14px 24px; font-weight: 700; font-size: 1.05rem; transition: 0.3s; }
.btn-store i { font-size: 1.4rem; }
.btn-store:hover { background: #fff; color: var(--text-slate); }

/* Radar Mockup Phone */
.app-visual-container { flex-shrink: 0; width: 300px; display: flex; justify-content: flex-end; perspective: 1000px; z-index: 10; }
.iphone-mockup { width: 280px; height: 580px; background: #000; border: 8px solid #1E293B; border-radius: 40px; position: relative; overflow: hidden; transform: rotateY(-10deg) rotateX(5deg); transition: 0.6s cubic-bezier(0.16, 1, 0.3, 1); box-shadow: -20px 30px 60px rgba(0,0,0,0.5), inset 0 0 0 2px rgba(255,255,255,0.1); }
.iphone-mockup:hover { transform: rotateY(0deg) rotateX(0deg) translateY(-10px); }
.screen-radar { background: #0F172A; width: 100%; height: 100%; position: relative; }
.radar-scan-line { position: absolute; top: -100%; left: 0; width: 100%; height: 2px; background: var(--sky); box-shadow: 0 0 20px 10px rgba(14, 165, 233, 0.3); animation: scan 3s linear infinite; }
@keyframes scan { 100% { top: 100%; } }
.precipitation { position: absolute; width: 60px; height: 60px; background: radial-gradient(circle, rgba(16, 185, 129, 0.8) 0%, transparent 70%); filter: blur(5px); border-radius: 50%; opacity: 0.6; animation: morph 4s infinite alternate; }
.p1 { top: 30%; left: 20%; }
.p2 { top: 40%; left: 60%; width: 80px; height: 80px; background: radial-gradient(circle, rgba(245, 158, 11, 0.8) 0%, transparent 70%); }
.p3 { top: 20%; left: 50%; width: 40px; height: 40px; background: radial-gradient(circle, rgba(244, 63, 94, 0.8) 0%, transparent 70%); }
@keyframes morph { 0% { transform: scale(1) translate(0,0); } 100% { transform: scale(1.2) translate(10px, 10px); } }
.radar-ui-bottom { position: absolute; bottom: 20px; left: 16px; right: 16px; background: rgba(0,0,0,0.6); backdrop-filter: blur(10px); padding: 16px; border-radius: 16px; border: 1px solid rgba(255,255,255,0.1); }
.radar-ui-bottom strong { display: block; color: #fff; font-size: 1rem; margin-bottom: 4px; }
.radar-ui-bottom span { font-size: 0.85rem; color: var(--text-slate-muted); }

/* SEO Sections */
.seo-section { margin-top: 80px; padding: 40px 0; }
.seo-header { margin-bottom: 40px; text-align: center; }
.seo-header h2 { font-size: 2rem; font-weight: 800; letter-spacing: -0.04em; margin-bottom: 12px; }
.seo-header p { font-size: 1.1rem; color: var(--text-slate-light); }

/* SEO Section 1: City Grid */
.city-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; }
.city-card { display: flex; justify-content: space-between; align-items: center; background: var(--glass-bg); backdrop-filter: blur(24px); border: 1px solid var(--glass-border); border-radius: 24px; padding: 24px 30px; transition: 0.3s; box-shadow: 0 4px 10px rgba(0,0,0,0.02); }
.city-card:hover { transform: translateY(-3px); box-shadow: 0 10px 20px rgba(0,0,0,0.05); background: rgba(255,255,255,0.7); }
.c-name { font-size: 1.1rem; font-weight: 700; color: var(--text-slate); }
.c-temp { font-family: var(--font-num); font-size: 1.25rem; font-weight: 600; display: flex; align-items: center; gap: 8px; }

/* SEO Section 2: FAQ List */
.faq-list { max-width: 800px; margin: 0 auto; display: flex; flex-direction: column; gap: 16px; }
.seo-glass-card { background: var(--glass-bg); backdrop-filter: blur(24px); border: 1px solid var(--glass-border); border-radius: 24px; overflow: hidden; transition: 0.3s; }
.seo-glass-card:hover { background: rgba(255,255,255,0.65); box-shadow: 0 10px 20px rgba(2, 132, 199, 0.05); }
.faq-question { padding: 24px 30px; font-size: 1.15rem; font-weight: 700; color: var(--text-slate); cursor: pointer; display: flex; justify-content: space-between; align-items: center; list-style: none; outline: none; }
.faq-question::-webkit-details-marker { display: none; }
details[open] .seo-glass-card { background: rgba(255,255,255,0.8); }
details[open] .faq-question { border-bottom: 1px solid rgba(0,0,0,0.05); }
details[open] .faq-question i { transform: rotate(180deg); color: var(--sky); }
.faq-answer { padding: 24px 30px; color: var(--text-slate-light); line-height: 1.7; font-size: 1rem; }

/* SEO Section 3: Clothing Grid */
.clothing-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 24px; }
.cloth-card { padding: 32px; display: flex; flex-direction: column; }
.cloth-temp { font-family: var(--font-num); font-size: 1.5rem; font-weight: 800; margin-bottom: 12px; }
.cloth-title { font-size: 1.15rem; font-weight: 800; color: var(--text-slate); margin-bottom: 12px; }
.cloth-card p { font-size: 0.95rem; color: var(--text-slate-light); line-height: 1.6; }

/* SEO Section 4: Life Index Grid */
.life-index-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; }
.life-card { display: flex; align-items: center; gap: 16px; padding: 20px 24px; }
.l-icon { width: 48px; height: 48px; border-radius: 16px; background: rgba(255,255,255,0.5); border: 1px solid rgba(255,255,255,0.8); display: flex; align-items: center; justify-content: center; font-size: 1.5rem; box-shadow: 0 4px 10px rgba(0,0,0,0.02); }
.l-info { display: flex; flex-direction: column; gap: 4px; }
.l-name { font-size: 0.9rem; font-weight: 700; color: var(--text-slate-light); }
.l-status { font-size: 1.05rem; font-weight: 800; }

/* Footer */
.glass-footer { margin-top: 60px; padding: 40px 24px; border-top: 1px solid var(--glass-border); background: var(--glass-bg); backdrop-filter: blur(24px); }
.footer-inner { max-width: 1000px; margin: 0 auto; display: flex; flex-direction: column; align-items: center; gap: 24px; }
.f-brand { display: flex; align-items: center; gap: 8px; font-weight: 800; font-size: 1.25rem; }
.f-links { display: flex; gap: 32px; font-size: 0.95rem; font-weight: 600; color: var(--text-slate-light); }
.f-links a:hover { color: var(--text-slate); }
.copyright { color: var(--text-slate-muted); font-size: 0.85rem; }

/* Responsive */
@media (max-width: 992px) {
    .widget-grid { grid-template-columns: repeat(2, 1fr); }
    .widget-hero { grid-column: span 2; }
    .widget-hourly { grid-column: span 2; }
    .widget-square { grid-column: span 1; }
    .widget-weekly { grid-column: span 2; }
    .widget-radar { grid-column: span 2; }
    .app-teaser { grid-column: span 2; flex-direction: column; padding: 40px 24px; text-align: center; }
    .dl-buttons { justify-content: center; }
    .app-visual-container { width: 100%; justify-content: center; margin-top: 40px; perspective: none; }
    .iphone-mockup { transform: none; }
    .iphone-mockup:hover { transform: none; }
    .city-grid { grid-template-columns: repeat(2, 1fr); }
    
    /* SEO Sections Swipe UI */
    .clothing-grid, .life-index-grid { display: flex; overflow-x: auto; scroll-snap-type: x mandatory; padding: 12px 24px 40px; margin: 0 -24px; gap: 16px; scrollbar-width: none; }
    .clothing-grid::-webkit-scrollbar, .life-index-grid::-webkit-scrollbar { display: none; }
    .cloth-card { min-width: 85%; scroll-snap-align: center; }
    .life-card { min-width: 75%; scroll-snap-align: center; }
}

@media (max-width: 600px) {
    .dashboard-wrapper { margin-top: 100px; }
    .glass-nav { width: 95%; padding: 12px 20px; }
    .search-bar { display: none; }
    .dashboard-header h1 { font-size: clamp(2.2rem, 6vw, 2.8rem); }
    .temp-display { font-size: clamp(5rem, 15vw, 6rem); }
    .temp-condition { margin-top: -5px; font-size: 1.3rem; }
    .city-grid { grid-template-columns: 1fr; }
    .dl-buttons { flex-direction: column; width: 100%; }
    .btn-store { justify-content: center; width: 100%; }
    .widget { padding: 24px; }
    .seo-section { padding: 40px 0; }
}

.fade-up { opacity: 0; transform: translateY(30px); transition: opacity 0.8s ease-out, transform 0.8s cubic-bezier(0.16, 1, 0.3, 1); }
.fade-up.is-visible { opacity: 1; transform: translateY(0); }
.delay-1 { transition-delay: 0.1s; }
.delay-2 { transition-delay: 0.2s; }
.delay-3 { transition-delay: 0.3s; }
.delay-4 { transition-delay: 0.4s; }
.delay-5 { transition-delay: 0.5s; }
.delay-6 { transition-delay: 0.6s; }
