*{box-sizing:border-box}
:root{
  --bg:#f6fbff;
  --surface:#ffffff;
  --surface-2:#eef6ff;
  --text:#122033;
  --muted:#57708f;
  --line:#dce8f4;
  --primary:#0f62fe;
  --primary-dark:#0b4fd1;
  --accent:#16a34a;
  --danger:#ef4444;
  --dark:#0f172a;
  --dark-soft:#16233c;
  --shadow:0 18px 40px rgba(15,35,60,.08);
  --radius:20px;
  --radius-sm:14px;
}
html{scroll-behavior:smooth}
body{
  margin:0;
  font-family:"Inter",system-ui,sans-serif;
  background:var(--bg);
  color:var(--text);
  line-height:1.6;
}
a{text-decoration:none;color:inherit}
.container{width:min(1120px,calc(100% - 32px));margin:0 auto}
.hero{
  background:
    radial-gradient(circle at top right, rgba(15,98,254,.16), transparent 30%),
    linear-gradient(135deg,#f7fbff 0%,#ebf4ff 100%);
  padding-bottom:48px;
}
.nav{
  width:min(1120px,calc(100% - 32px));
  margin:0 auto;
  padding:18px 0;
  display:flex;
  align-items:center;
  justify-content:space-between;
  gap:18px;
}
.brand{display:flex;align-items:center;gap:12px}
.brand h1,.brand p{margin:0}
.brand h1{font-size:1.05rem}
.brand p{color:var(--muted);font-size:.85rem}
.brand-mark{
  width:46px;height:46px;border-radius:14px;display:grid;place-items:center;
  background:linear-gradient(135deg,var(--primary),#4aa8ff);
  color:#fff;font-weight:800;box-shadow:var(--shadow)
}
.nav-links{list-style:none;display:flex;gap:18px;padding:0;margin:0}
.nav-links a{color:var(--muted);font-weight:600}
.nav-links a:hover{color:var(--primary)}
.menu-toggle{
  display:none;border:none;background:var(--surface);box-shadow:var(--shadow);
  border-radius:12px;padding:10px 12px;font-size:1.15rem;cursor:pointer
}
.hero-content{
  display:grid;
  grid-template-columns:1.2fr .8fr;
  gap:28px;
  align-items:center;
  padding-top:28px;
}
.eyebrow{
  display:inline-block;background:#e3efff;color:var(--primary-dark);
  border-radius:999px;padding:8px 14px;font-weight:700;font-size:.85rem
}
.hero-text h2{
  font-size:clamp(2rem,4vw,3.6rem);
  line-height:1.05;
  margin:18px 0 12px;
}
.hero-text p{font-size:1.05rem;color:var(--muted);max-width:62ch}
.hero-actions{display:flex;gap:14px;flex-wrap:wrap;margin-top:24px}
.btn{
  display:inline-flex;align-items:center;justify-content:center;
  padding:13px 20px;border-radius:14px;font-weight:700;
  border:1px solid transparent;transition:.2s ease;
}
.btn:hover{transform:translateY(-2px)}
.btn-primary{background:var(--primary);color:#fff}
.btn-primary:hover{background:var(--primary-dark)}
.btn-secondary{background:#fff;color:var(--primary);border-color:var(--line)}
.btn.small{padding:10px 14px;font-size:.9rem}
.hero-card,.card,.metric-card{
  background:var(--surface);
  border:1px solid rgba(220,232,244,.9);
  border-radius:var(--radius);
  box-shadow:var(--shadow);
}
.hero-card{padding:18px}
.status-card{padding:12px}
.status-label{color:var(--muted);margin-bottom:4px}
.status-card h3{margin:8px 0;font-size:2rem}
.status-card p,.status-card small{color:var(--muted)}
.status-bar{
  width:100%;height:12px;background:#e9f1fb;border-radius:999px;
  overflow:hidden;margin:18px 0 10px
}
#statusFill{
  height:100%;width:52%;
  background:linear-gradient(90deg,var(--accent),#f59e0b,var(--danger));
  border-radius:999px
}
.section{padding:72px 0}
.section-soft{background:var(--surface-2)}
.section-dark{
  background:linear-gradient(135deg,var(--dark) 0%,var(--dark-soft) 100%);
  color:#fff
}
.section-title{margin-bottom:26px}
.section-title span{
  display:inline-block;color:var(--primary);font-weight:800;font-size:.9rem;
  margin-bottom:8px;text-transform:uppercase;letter-spacing:.08em
}
.section-title h2{font-size:clamp(1.7rem,3vw,2.6rem);margin:0}
.section-title.light span,.section-title.light h2{color:#fff}
.grid{display:grid;gap:20px}
.grid.two{grid-template-columns:repeat(2,minmax(0,1fr))}
.grid.three{grid-template-columns:repeat(3,minmax(0,1fr))}
.grid.four{grid-template-columns:repeat(4,minmax(0,1fr))}
.card{padding:24px}
.card h3{margin-top:0;margin-bottom:12px}
.top-gap{margin-top:20px}
.check-list{padding-left:18px;margin-bottom:0}
.check-list li{margin-bottom:8px}
.tree{display:grid;gap:14px}
.tree-branches,.tree-roots{display:flex;flex-wrap:wrap;gap:10px}
.tree-branches span,.tree-roots span,.steam-grid span{
  background:#f5f9ff;border:1px solid var(--line);border-radius:12px;
  padding:10px 12px;color:var(--text)
}
.steam-grid{display:grid;gap:10px}
.tree-trunk{
  color:#fff;font-weight:800;text-align:center;border-radius:14px;padding:14px 18px
}
.tree-trunk.danger{background:linear-gradient(135deg,#ef4444,#dc2626)}
.tree-trunk.success{background:linear-gradient(135deg,#16a34a,#0f9f6e)}
.dashboard{
  display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:18px;margin-bottom:22px
}
.metric-card{
  padding:22px;color:#fff;background:rgba(255,255,255,.08);
  border-color:rgba(255,255,255,.1);backdrop-filter:blur(10px)
}
.metric-card p,.metric-card small{color:rgba(255,255,255,.8)}
.metric-card h3{font-size:2rem;margin:8px 0}
.chart-card{padding:20px}
.chart-head{
  display:flex;justify-content:space-between;align-items:center;gap:18px;margin-bottom:14px
}
.chart-head h3,.chart-head p{margin:0}
.chart-head p{color:var(--muted)}
#airChart{width:100%;height:auto;background:#fff;border-radius:16px}
.prediction-box{
  margin-top:18px;padding:16px;border-radius:16px;background:#eef7ff;border:1px solid var(--line)
}
.prediction-box p,.prediction-box small{color:var(--muted);margin:0}
.prediction-box h4{font-size:1.4rem;margin:8px 0}
.card.mini{text-align:center}
.footer{background:#0c1527;color:#fff;padding:28px 0}
.footer-wrap{
  display:flex;align-items:center;justify-content:space-between;gap:16px
}
.footer h3,.footer p{margin:0}
.to-top{color:#b7d6ff;font-weight:700}

@media (max-width:960px){
  .hero-content,.grid.two,.grid.three,.grid.four,.dashboard{
    grid-template-columns:1fr;
  }
}

@media (max-width:860px){
  .menu-toggle{display:block}
  .nav{
    align-items:flex-start;
  }
  .nav-links{
    position:absolute;
    top:76px;
    right:16px;
    left:16px;
    background:#fff;
    border:1px solid var(--line);
    box-shadow:var(--shadow);
    border-radius:18px;
    padding:14px;
    display:none;
    flex-direction:column;
    z-index:20;
  }
  .nav-links.show{display:flex}
}

@media (max-width:640px){
  .section{padding:58px 0}
  .hero-text h2{font-size:2.2rem}
  .btn{width:100%}
  .chart-head,.footer-wrap{flex-direction:column;align-items:flex-start}
}
