:root {
  --bg: #f4f7fb;
  --bg2: #e8eef6;
  --surface: #ffffff;
  --ink: #0f1b2d;
  --muted: #5b6b82;
  --line: #d7e0ec;
  --green: #22c55e;
  --green-dark: #16a34a;
  --green-soft: #dcfce7;
  --blue: #0ea5e9;
  --danger: #ef4444;
  --shadow: 0 18px 50px rgba(15, 27, 45, .08);
  --radius: 16px;
  --nav-h: 72px;
  --font: "Manrope", system-ui, sans-serif;
  --mono: "IBM Plex Mono", ui-monospace, monospace;
}
* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  font-family: var(--font);
  color: var(--ink);
  background:
    radial-gradient(900px 420px at 85% -10%, rgba(34,197,94,.16), transparent 55%),
    radial-gradient(700px 380px at -5% 20%, rgba(14,165,233,.10), transparent 50%),
    linear-gradient(180deg, #f7fafc, var(--bg));
  min-height: 100vh;
}
a { color: inherit; text-decoration: none; }
img { max-width: 100%; display: block; }
.container { width: min(1120px, calc(100% - 32px)); margin: 0 auto; }

/* Nav */
.nav {
  position: sticky; top: 0; z-index: 50;
  height: var(--nav-h);
  backdrop-filter: blur(14px);
  background: rgba(247,250,252,.82);
  border-bottom: 1px solid rgba(215,224,236,.8);
}
.nav-inner {
  height: 100%;
  display: flex; align-items: center; justify-content: space-between; gap: 16px;
}
.brand {
  display: flex; align-items: center; gap: 10px;
  font-weight: 800; font-size: 1.15rem; letter-spacing: -.02em;
}
.brand-mark {
  width: 34px; height: 34px; border-radius: 10px;
  background: linear-gradient(145deg, var(--green), #059669);
  display: grid; place-items: center; color: #fff; font-weight: 800;
  box-shadow: 0 8px 20px rgba(34,197,94,.35);
}
.brand span { color: var(--green-dark); }
.menu { display: flex; align-items: center; gap: 8px; }
.menu a {
  padding: 8px 12px; border-radius: 999px; color: var(--muted); font-weight: 600; font-size: .95rem;
  transition: background .2s, color .2s;
}
.menu a:hover, .menu a.active { background: #fff; color: var(--ink); box-shadow: 0 1px 0 var(--line); }
.nav-actions { display: flex; align-items: center; gap: 10px; }
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  border: 0; border-radius: 999px; padding: 11px 18px;
  font: inherit; font-weight: 700; cursor: pointer;
  transition: transform .18s ease, box-shadow .18s ease, background .18s;
}
.btn:hover { transform: translateY(-1px); }
.btn-ghost {
  background: transparent; color: var(--ink);
  border: 1px solid var(--line);
}
.btn-primary {
  background: linear-gradient(180deg, #34d399, var(--green-dark));
  color: #fff;
  box-shadow: 0 10px 24px rgba(22,163,74,.28);
}
.btn-primary:hover { box-shadow: 0 14px 28px rgba(22,163,74,.35); }
.btn-lg { padding: 14px 22px; font-size: 1.02rem; }
.burger {
  display: none; width: 42px; height: 42px; border-radius: 12px;
  border: 1px solid var(--line); background: #fff; cursor: pointer;
}
.burger span { display: block; width: 18px; height: 2px; background: var(--ink); margin: 4px auto; }

/* Hero */
.hero {
  padding: 56px 0 40px;
  display: grid; grid-template-columns: 1.1fr .9fr; gap: 36px; align-items: center;
}
.eyebrow {
  display: inline-flex; align-items: center; gap: 8px;
  background: var(--green-soft); color: #166534;
  border: 1px solid #bbf7d0; border-radius: 999px;
  padding: 6px 12px; font-size: .85rem; font-weight: 700;
  animation: fadeUp .6s ease both;
}
.dot {
  width: 8px; height: 8px; border-radius: 50%; background: var(--green);
  box-shadow: 0 0 0 4px rgba(34,197,94,.2); animation: pulse 2s infinite;
}
@keyframes pulse { 50% { opacity: .45; } }
@keyframes fadeUp {
  from { opacity: 0; transform: translateY(12px); }
  to { opacity: 1; transform: none; }
}
.hero h1 {
  margin: 16px 0 12px; font-size: clamp(2.2rem, 4.5vw, 3.4rem);
  line-height: 1.08; letter-spacing: -.035em; animation: fadeUp .7s .05s ease both;
}
.hero h1 em { font-style: normal; color: var(--green-dark); }
.hero-lead {
  color: var(--muted); font-size: 1.08rem; line-height: 1.55; max-width: 34rem;
  animation: fadeUp .7s .1s ease both;
}
.hero-cta { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 24px; animation: fadeUp .7s .15s ease both; }
.hero-points {
  display: grid; gap: 8px; margin-top: 22px; color: var(--muted); font-weight: 600; font-size: .95rem;
  animation: fadeUp .7s .2s ease both;
}
.hero-points li { list-style: none; display: flex; gap: 8px; align-items: center; }
.hero-points li::before { content: "✓"; color: var(--green-dark); font-weight: 800; }

.panel {
  background: var(--surface); border: 1px solid var(--line); border-radius: 22px;
  box-shadow: var(--shadow); padding: 18px; animation: fadeUp .8s .12s ease both;
}
.panel-head { display: flex; justify-content: space-between; align-items: center; margin-bottom: 14px; }
.panel-title { font-weight: 800; }
.badge {
  font-size: .75rem; font-weight: 800; text-transform: uppercase; letter-spacing: .04em;
  padding: 6px 10px; border-radius: 999px;
}
.badge-up { background: var(--green-soft); color: #166534; border: 1px solid #bbf7d0; }
.monitor {
  display: flex; justify-content: space-between; gap: 12px; align-items: center;
  padding: 12px 0; border-top: 1px solid var(--line);
}
.monitor:first-of-type { border-top: 0; }
.mon-name { font-weight: 700; }
.mon-meta { color: var(--muted); font-size: .82rem; font-family: var(--mono); margin-top: 3px; }
.bars { display: flex; gap: 3px; height: 26px; align-items: flex-end; margin-top: 10px; }
.bar { flex: 1; min-width: 4px; border-radius: 3px 3px 1px 1px; background: var(--green); opacity: .9; }
.bar.warn { background: #f59e0b; }
.bar.bad { background: var(--danger); }

.section { padding: 56px 0; }
.section h2 {
  margin: 0 0 10px; font-size: clamp(1.7rem, 3vw, 2.3rem); letter-spacing: -.03em;
}
.section .sub { color: var(--muted); max-width: 40rem; line-height: 1.5; margin-bottom: 28px; }
.grid-3 { display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; }
.card {
  background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius);
  padding: 22px; box-shadow: 0 10px 30px rgba(15,27,45,.04);
  transition: transform .2s ease, box-shadow .2s ease;
}
.card:hover { transform: translateY(-3px); box-shadow: var(--shadow); }
.icon {
  width: 44px; height: 44px; border-radius: 12px; display: grid; place-items: center;
  background: var(--green-soft); color: #166534; font-size: 1.2rem; margin-bottom: 14px;
}
.card h3 { margin: 0 0 8px; font-size: 1.1rem; }
.card p { margin: 0; color: var(--muted); line-height: 1.5; font-size: .95rem; }

.logos {
  display: flex; flex-wrap: wrap; gap: 10px 18px; align-items: center;
  color: #7a8aa0; font-weight: 700; opacity: .85; font-size: .92rem;
}
.logos span {
  padding: 8px 12px; border: 1px dashed var(--line); border-radius: 10px; background: rgba(255,255,255,.6);
}

.cta-band {
  margin: 20px 0 60px; border-radius: 24px; padding: 36px;
  background: linear-gradient(135deg, #0f1b2d, #163024 60%, #14532d);
  color: #e8fff1; display: flex; justify-content: space-between; gap: 20px; align-items: center;
  box-shadow: var(--shadow);
}
.cta-band h2 { margin: 0 0 8px; color: #fff; }
.cta-band p { margin: 0; color: #b7d7c4; max-width: 36rem; }

footer {
  border-top: 1px solid var(--line); padding: 28px 0 40px; color: var(--muted); font-size: .9rem;
}
.footer-grid { display: flex; justify-content: space-between; gap: 16px; flex-wrap: wrap; }
.footer-links { display: flex; gap: 16px; flex-wrap: wrap; }
.footer-links a:hover { color: var(--ink); }

/* Auth */
.auth-wrap {
  min-height: calc(100vh - var(--nav-h) - 120px);
  display: grid; place-items: center; padding: 40px 0;
}
.auth-card {
  width: min(420px, 100%); background: var(--surface); border: 1px solid var(--line);
  border-radius: 22px; padding: 28px; box-shadow: var(--shadow);
}
.auth-card h1 { margin: 0 0 8px; font-size: 1.6rem; letter-spacing: -.02em; }
.auth-card .sub { margin: 0 0 22px; color: var(--muted); }
label { display: block; font-weight: 700; font-size: .88rem; margin: 14px 0 6px; }
input {
  width: 100%; padding: 12px 14px; border-radius: 12px; border: 1px solid var(--line);
  font: inherit; background: #fbfcfe; outline: none;
}
input:focus { border-color: #86efac; box-shadow: 0 0 0 4px rgba(34,197,94,.15); }
.auth-card .btn { width: 100%; margin-top: 18px; }
.auth-note { margin-top: 14px; text-align: center; color: var(--muted); font-size: .92rem; }
.auth-note a { color: var(--green-dark); font-weight: 700; }
.toast {
  display: none; margin-top: 12px; padding: 10px 12px; border-radius: 12px;
  background: var(--green-soft); color: #166534; font-weight: 600; font-size: .9rem;
}

/* Status page */
.stats {
  display: grid; grid-template-columns: repeat(3, 1fr); gap: 12px; margin: 18px 0 22px;
}
.stat {
  background: var(--surface); border: 1px solid var(--line); border-radius: 14px; padding: 14px;
}
.stat span { color: var(--muted); font-size: .85rem; }
.stat b { display: block; font-size: 1.4rem; margin-top: 4px; }

.page-hero { padding: 42px 0 10px; }
.page-hero h1 { margin: 10px 0; font-size: clamp(1.9rem, 3.5vw, 2.6rem); letter-spacing: -.03em; }

@media (max-width: 900px) {
  .hero, .grid-3, .stats { grid-template-columns: 1fr; }
  .menu { display: none; }
  .menu.open {
    display: flex; flex-direction: column; position: absolute; left: 16px; right: 16px; top: calc(var(--nav-h) + 8px);
    background: #fff; border: 1px solid var(--line); border-radius: 16px; padding: 10px; box-shadow: var(--shadow);
  }
  .burger { display: inline-grid; place-items: center; }
  .cta-band { flex-direction: column; align-items: flex-start; }
  .nav-actions .btn-ghost { display: none; }
}
