:root{
  --bg:#0a0a0a;
  --bg-panel:#121212;
  --line:#2a2a2a;
  --line-soft:#1c1c1c;
  --text:#f2f2f2;
  --text-dim:#8a8a8a;
  --text-faint:#555;
  --accent-green:#4ade80;
  --accent-red:#ff5555;
  --accent-teal:#A8D8C8;
  --accent-amber:#f5c563;
}
*{margin:0;padding:0;box-sizing:border-box;}
html{scroll-behavior:auto;}
body{
  background:var(--bg);
  color:var(--text);
  font-family:-apple-system,BlinkMacSystemFont,'Segoe UI',Roboto,sans-serif;
  line-height:1.5;
  overflow-x:hidden;
  width:100%;
}
svg.lucide{stroke:currentColor;flex-shrink:0;}
::selection{background:#fff;color:#000;}
::-webkit-scrollbar{width:8px;}
::-webkit-scrollbar-track{background:var(--bg);}
::-webkit-scrollbar-thumb{background:var(--line);border-radius:4px;}

.bg-glow{
  position:fixed;
  top:0;left:0;right:0;
  height:100vh;
  background:radial-gradient(circle at 50% -10%, rgba(168,216,200,0.08), transparent 55%);
  pointer-events:none;
  z-index:0;
}

#nprogress .bar{
  background:var(--accent-teal) !important;
  height:2px !important;
  z-index:2000 !important;
}
#nprogress .peg{box-shadow:0 0 10px var(--accent-teal), 0 0 5px var(--accent-teal) !important;}
#nprogress .spinner{display:none;}

.navbar-wrap{
  position:fixed;
  top:16px;left:0;right:0;
  z-index:1000;
  display:flex;
  justify-content:center;
  padding:0 16px;
  pointer-events:none;
}
.navbar{
  pointer-events:auto;
  display:flex;
  align-items:center;
  gap:14px;
  padding:10px 18px;
  background:rgba(18,18,18,0.7);
  backdrop-filter:blur(20px) saturate(160%);
  -webkit-backdrop-filter:blur(20px) saturate(160%);
  border:1px solid rgba(255,255,255,0.1);
  border-radius:100px;
  box-shadow:0 8px 30px rgba(0,0,0,0.4);
  max-width:calc(100% - 20px);
  flex-wrap:wrap;
  justify-content:center;
}
.nav-logo{
  display:flex;
  align-items:center;
  gap:7px;
  font-weight:700;
  font-size:14.5px;
  letter-spacing:0.3px;
  flex-shrink:0;
  padding-right:14px;
  border-right:1px solid rgba(255,255,255,0.1);
}
.nav-sub{color:var(--text-faint);font-weight:600;font-size:11px;letter-spacing:1px;}
.nav-logo .dot{
  width:7px;height:7px;
  border-radius:50%;
  background:var(--text-faint);
  box-shadow:0 0 0 3px rgba(255,255,255,0.06);
  flex-shrink:0;
  transition:background .3s ease, box-shadow .3s ease;
}
.nav-logo .dot.online{background:var(--accent-green);box-shadow:0 0 0 3px rgba(74,222,128,0.18);}
.nav-logo .dot.offline{background:var(--accent-red);box-shadow:0 0 0 3px rgba(255,85,85,0.18);}

.nav-server{
  display:flex;
  align-items:center;
  gap:6px;
  color:var(--text-dim);
  font-size:12.5px;
  font-family:ui-monospace,'SF Mono',monospace;
}
.nav-server svg{width:14px;height:14px;}

.nav-status{
  display:flex;
  align-items:center;
  gap:8px;
  padding:6px 14px;
  border-radius:100px;
  background:rgba(255,255,255,0.05);
  font-size:12.5px;
  font-weight:600;
  white-space:nowrap;
}
.pulse-dot{
  width:7px;height:7px;
  border-radius:50%;
  background:var(--text-faint);
  position:relative;
}
.pulse-dot.online{background:var(--accent-green);}
.pulse-dot.online::after{
  content:'';
  position:absolute;
  inset:-4px;
  border-radius:50%;
  border:1px solid var(--accent-green);
  animation:pulseRing 2s ease-out infinite;
}
.pulse-dot.offline{background:var(--accent-red);}
@keyframes pulseRing{
  0%{transform:scale(0.6);opacity:1;}
  100%{transform:scale(2.2);opacity:0;}
}

.hero{
  min-height:60vh;
  display:flex;
  flex-direction:column;
  align-items:center;
  justify-content:center;
  text-align:center;
  padding:130px 20px 50px;
  position:relative;
  z-index:1;
}
.hero-eyebrow{
  display:inline-flex;
  align-items:center;
  gap:7px;
  padding:6px 14px;
  border:1px solid var(--line);
  border-radius:100px;
  font-size:11.5px;
  color:var(--text-dim);
  letter-spacing:1.2px;
  text-transform:uppercase;
  margin-bottom:24px;
}
.hero-eyebrow svg{width:13px;height:13px;}
.hero h1{
  font-size:clamp(28px,7vw,52px);
  font-weight:800;
  letter-spacing:-1.2px;
  line-height:1.15;
  margin-bottom:16px;
}
.typed-wrap{color:var(--accent-teal);}
#typedStatus::after{content:'';}
.hero-sub{
  max-width:520px;
  color:var(--text-dim);
  font-size:15px;
}

.section{
  max-width:1120px;
  margin:0 auto;
  padding:52px 20px;
  position:relative;
  z-index:1;
}
.section-tag{
  font-size:11px;
  letter-spacing:1.8px;
  text-transform:uppercase;
  color:var(--text-faint);
  margin-bottom:12px;
  display:flex;
  align-items:center;
  gap:8px;
}
.section-tag::before{content:'';width:20px;height:1px;background:var(--text-faint);}
.section-title{
  font-size:clamp(22px,5vw,32px);
  font-weight:800;
  letter-spacing:-0.7px;
  margin-bottom:10px;
}
.section-desc{color:var(--text-dim);font-size:14px;max-width:560px;}

.section-head{
  display:flex;
  justify-content:space-between;
  align-items:flex-end;
  flex-wrap:wrap;
  gap:20px;
  margin-bottom:28px;
}

.reveal{
  opacity:0;
  transform:translateY(24px);
}

.metrics-section{padding-top:8px;}
.metrics-grid{
  display:grid;
  grid-template-columns:repeat(4,1fr);
  gap:14px;
}
@media(max-width:900px){.metrics-grid{grid-template-columns:repeat(2,1fr);}}
@media(max-width:520px){.metrics-grid{grid-template-columns:1fr;}}

.metric-card{
  background:var(--bg-panel);
  border:1px solid var(--line-soft);
  border-radius:18px;
  padding:22px;
  transition:border-color .25s ease, background .25s ease;
  transform-style:preserve-3d;
  will-change:transform;
}
@media(hover:hover){
  .metric-card:hover{border-color:#3d3d3d;background:#161616;}
}
.metric-icon{
  width:38px;height:38px;
  border-radius:10px;
  background:rgba(255,255,255,0.05);
  display:flex;align-items:center;justify-content:center;
  color:var(--accent-teal);
  margin-bottom:16px;
}
.metric-icon svg{width:18px;height:18px;}
.metric-label{
  font-size:12px;
  color:var(--text-dim);
  margin-bottom:8px;
  text-transform:uppercase;
  letter-spacing:0.6px;
}
.metric-value{
  font-size:32px;
  font-weight:800;
  letter-spacing:-0.8px;
  display:flex;
  align-items:baseline;
  gap:6px;
  font-variant-numeric:tabular-nums;
}
.metric-unit,.metric-max{font-size:13px;color:var(--text-faint);font-weight:600;}
.metric-max::before{content:'/ ';}
.metric-trend{
  margin-top:10px;
  font-size:12px;
  display:flex;
  align-items:center;
  gap:5px;
  font-weight:600;
}
.metric-trend svg{width:13px;height:13px;}
.trend-up{color:var(--accent-green);}
.trend-down{color:var(--accent-red);}
.trend-flat{color:var(--text-faint);}

.range-switch{
  display:flex;
  gap:4px;
  padding:4px;
  background:var(--bg-panel);
  border:1px solid var(--line-soft);
  border-radius:100px;
}
.range-btn{
  background:transparent;
  border:none;
  color:var(--text-dim);
  padding:8px 16px;
  font-size:13px;
  font-weight:600;
  cursor:pointer;
  font-family:inherit;
  border-radius:100px;
  transition:all .2s ease;
}
.range-btn.active{background:#fff;color:#000;}
.range-btn:not(.active):hover{color:#fff;}

.chart-panel{
  background:var(--bg-panel);
  border:1px solid var(--line-soft);
  border-radius:20px;
  padding:24px 20px 12px;
}
.chart-box{width:100%;height:380px;}
.chart-box-small{height:300px;}
@media(max-width:600px){
  .chart-box{height:280px;}
  .chart-box-small{height:240px;}
}

.incidents-list{display:flex;flex-direction:column;gap:8px;}
.incident-row{
  display:flex;
  align-items:center;
  gap:14px;
  padding:14px 18px;
  background:var(--bg-panel);
  border:1px solid var(--line-soft);
  border-radius:14px;
  font-size:13.5px;
}
.incident-row svg{width:16px;height:16px;flex-shrink:0;color:var(--accent-red);}
.incident-row.ongoing svg{color:var(--accent-amber);}
.incident-time{color:var(--text-dim);flex:1;}
.incident-duration{
  font-family:ui-monospace,'SF Mono',monospace;
  color:var(--text);
  font-weight:600;
  font-size:12.5px;
}
.incident-empty{
  display:flex;
  align-items:center;
  gap:8px;
  padding:20px;
  color:var(--text-dim);
  font-size:13.5px;
  justify-content:center;
}
.incident-empty svg{width:16px;height:16px;color:var(--accent-green);}

footer{
  border-top:1px solid var(--line-soft);
  padding:36px 20px;
  text-align:center;
  color:var(--text-faint);
  font-size:12px;
  position:relative;
  z-index:1;
}
.foot-line{
  width:40px;height:1px;
  background:var(--line);
  margin:0 auto 16px;
}

[data-tippy-root]{z-index:3000;}
.tippy-box{
  background:#1a1a1a;
  border:1px solid var(--line);
  color:var(--text);
  font-size:12.5px;
  font-weight:500;
}
.tippy-box[data-placement^='top']>.tippy-arrow::before{border-top-color:#1a1a1a;}
.tippy-box[data-placement^='bottom']>.tippy-arrow::before{border-bottom-color:#1a1a1a;}
