:root {
  --bg: #071512;
  --bg-soft: #0d211b;
  --card: rgba(17, 43, 33, .78);
  --card-strong: #102d23;
  --primary: #59e391;
  --primary-2: #2ecf77;
  --cyan: #57d7d0;
  --text: #f4fff8;
  --muted: #a8c1b4;
  --danger: #ff6b6b;
  --warning: #ffc857;
  --border: rgba(154, 255, 194, .14);
  --shadow: 0 18px 50px rgba(0,0,0,.28);
  --radius: 22px;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  min-height: 100vh;
  color: var(--text);
  background:
    radial-gradient(circle at 10% 0%, rgba(48, 196, 113, .15), transparent 34%),
    radial-gradient(circle at 90% 15%, rgba(56, 199, 206, .10), transparent 30%),
    var(--bg);
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  line-height: 1.55;
}

a { color: inherit; }
button, input { font: inherit; }
button { cursor: pointer; }

.site-header {
  position: sticky;
  top: 0;
  z-index: 1000;
  backdrop-filter: blur(18px);
  background: rgba(5, 18, 14, .82);
  border-bottom: 1px solid var(--border);
}
.header-inner {
  width: min(1180px, calc(100% - 32px));
  margin: auto;
  min-height: 72px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
}
.brand { display: inline-flex; align-items: center; gap: 12px; text-decoration: none; }
.logo { width: 46px; height: 46px; object-fit: contain; border-radius: 13px; }
.brand-title { font-weight: 900; letter-spacing: -.03em; font-size: 1.35rem; }
.brand-subtitle { display: block; color: var(--muted); font-size: .75rem; font-weight: 500; }

.nav-toggle { display:none; border:1px solid var(--border); background:var(--card); color:var(--text); border-radius:12px; padding:8px 11px; }
.site-nav { display:flex; align-items:center; gap:5px; flex-wrap:wrap; }
.site-nav a {
  text-decoration:none; color:var(--muted); padding:9px 12px; border-radius:11px; font-weight:700; font-size:.9rem;
  transition: .2s ease;
}
.site-nav a:hover, .site-nav a.active { color:var(--text); background:rgba(89,227,145,.11); }
.site-nav .nav-cta { color:#062013; background:var(--primary); }

.page { width:min(1180px, calc(100% - 32px)); margin:0 auto; padding:38px 0 70px; }
.hero { display:grid; grid-template-columns:1.15fr .85fr; gap:28px; align-items:stretch; margin-bottom:28px; }
.hero-copy, .hero-visual, .card, .panel {
  border:1px solid var(--border); background:var(--card); backdrop-filter:blur(14px); box-shadow:var(--shadow); border-radius:var(--radius);
}
.hero-copy { padding:clamp(28px, 5vw, 58px); position:relative; overflow:hidden; }
.hero-copy::after { content:""; position:absolute; width:230px; height:230px; border-radius:50%; background:rgba(89,227,145,.10); right:-100px; bottom:-120px; }
.eyebrow { color:var(--primary); font-size:.8rem; font-weight:900; text-transform:uppercase; letter-spacing:.14em; }
.hero h1 { font-size:clamp(2.5rem, 6vw, 5rem); line-height:.98; margin:12px 0 18px; letter-spacing:-.055em; }
.hero p { color:var(--muted); max-width:650px; font-size:1.05rem; }
.hero-actions { display:flex; flex-wrap:wrap; gap:10px; margin-top:26px; }
.btn { display:inline-flex; align-items:center; justify-content:center; gap:8px; min-height:44px; padding:10px 16px; border-radius:13px; border:1px solid var(--border); text-decoration:none; font-weight:850; transition:.2s ease; }
.btn:hover { transform:translateY(-2px); }
.btn-primary { color:#062013; background:var(--primary); border-color:transparent; }
.btn-secondary { background:rgba(255,255,255,.05); }
.hero-visual { overflow:hidden; min-height:350px; position:relative; background:linear-gradient(145deg, rgba(13,47,34,.75), rgba(4,25,20,.92)); }
.hero-visual img { width:100%; height:100%; object-fit:cover; opacity:.82; }
.hero-overlay { position:absolute; inset:auto 18px 18px 18px; padding:17px; border-radius:17px; background:rgba(2,15,11,.75); border:1px solid var(--border); backdrop-filter:blur(10px); }

.section { margin-top:30px; }
.section-head { display:flex; align-items:end; justify-content:space-between; gap:16px; margin-bottom:15px; }
.section h2 { margin:0; font-size:1.55rem; letter-spacing:-.03em; }
.section-intro { margin:4px 0 0; color:var(--muted); }
.dashboard-grid { display:grid; grid-template-columns:repeat(4, minmax(0,1fr)); gap:14px; }
.stat-card { padding:20px; min-height:145px; position:relative; overflow:hidden; }
.stat-card::before { content:""; position:absolute; inset:0 auto 0 0; width:3px; background:var(--primary); }
.stat-label { color:var(--muted); font-size:.82rem; font-weight:700; }
.stat-value { margin-top:8px; font-size:2rem; font-weight:900; letter-spacing:-.04em; }
.stat-meta { color:var(--muted); font-size:.78rem; margin-top:5px; }

.health-grid { display:grid; grid-template-columns:repeat(3, minmax(0,1fr)); gap:14px; }
.health-card { padding:20px; }
.health-card h3 { margin:0 0 6px; }
.health-card p { color:var(--muted); margin:0; }
.progress { height:8px; margin-top:15px; background:rgba(255,255,255,.08); border-radius:99px; overflow:hidden; }
.progress > div { height:100%; width:0; background:linear-gradient(90deg,var(--primary),var(--cyan)); border-radius:inherit; transition:width .5s ease; }

.map-shell { padding:10px; }
#map { width:100%; height:500px; border-radius:18px; overflow:hidden; background:#0a211a; }
.map-info { display:grid; grid-template-columns:repeat(4,1fr); gap:10px; margin-top:10px; }
.map-chip { padding:13px 15px; border-radius:14px; background:rgba(255,255,255,.045); border:1px solid var(--border); }
.map-chip span { display:block; color:var(--muted); font-size:.72rem; }
.map-chip strong { display:block; margin-top:3px; }

.video-card { overflow:hidden; padding:10px; }
.video-frame { width:100%; height:min(68vh,680px); min-height:360px; border:0; border-radius:17px; background:#020806; display:block; }
.video-placeholder { min-height:360px; display:grid; place-items:center; text-align:center; color:var(--muted); }

.table-wrap { overflow:auto; border:1px solid var(--border); border-radius:18px; }
table { width:100%; border-collapse:collapse; min-width:760px; }
th, td { padding:13px 15px; border-bottom:1px solid var(--border); text-align:left; }
th { color:var(--muted); font-size:.78rem; text-transform:uppercase; letter-spacing:.07em; background:rgba(255,255,255,.03); }
tr:last-child td { border-bottom:0; }
.empty { padding:35px; text-align:center; color:var(--muted); }

.info-grid { display:grid; grid-template-columns:1fr 1fr; gap:16px; }
.card { padding:24px; }
.card h2 { margin-top:0; }
.muted { color:var(--muted); }
.badge { display:inline-flex; align-items:center; gap:7px; padding:6px 10px; border-radius:99px; background:rgba(89,227,145,.10); color:var(--primary); font-size:.78rem; font-weight:850; }
.dot { width:8px; height:8px; border-radius:50%; background:currentColor; }

.auth-page { min-height:100vh; display:grid; place-items:center; padding:25px; background:radial-gradient(circle at 50% 0%, rgba(89,227,145,.12), transparent 45%); }
.auth-card { width:min(430px,100%); padding:30px; border:1px solid var(--border); background:rgba(9,29,22,.88); border-radius:25px; box-shadow:var(--shadow); }
.auth-brand { text-align:center; margin-bottom:24px; }
.auth-brand img { width:62px; }
.auth-card h1 { margin:8px 0 4px; }
.field { margin:14px 0; }
.field label { display:block; color:var(--muted); font-size:.82rem; font-weight:700; margin-bottom:7px; }
.field input { width:100%; border:1px solid var(--border); outline:none; color:var(--text); background:rgba(255,255,255,.055); border-radius:12px; padding:12px 13px; }
.field input:focus { border-color:rgba(89,227,145,.55); box-shadow:0 0 0 3px rgba(89,227,145,.08); }
.auth-card .btn { width:100%; margin-top:7px; }
.auth-links { display:flex; justify-content:space-between; gap:10px; margin-top:17px; font-size:.84rem; }
.auth-links a { color:var(--primary); text-decoration:none; }
.message { min-height:22px; margin:12px 0 0; color:var(--muted); font-size:.88rem; }
.message.error { color:var(--danger); }
.message.success { color:var(--primary); }

.site-footer { border-top:1px solid var(--border); color:var(--muted); text-align:center; padding:28px 16px; font-size:.84rem; }
.reveal { animation:rise .55s ease both; }
@keyframes rise { from { opacity:0; transform:translateY(12px); } to { opacity:1; transform:none; } }

@media (max-width: 900px) {
  .hero { grid-template-columns:1fr; }
  .dashboard-grid { grid-template-columns:repeat(2,1fr); }
  .health-grid, .info-grid { grid-template-columns:1fr; }
  .map-info { grid-template-columns:repeat(2,1fr); }
}
@media (max-width: 680px) {
  .header-inner { min-height:64px; }
  .nav-toggle { display:block; }
  .site-nav { display:none; width:100%; padding-bottom:12px; }
  .site-nav.open { display:grid; grid-template-columns:1fr 1fr; }
  .site-nav a { text-align:center; }
  .header-inner { flex-wrap:wrap; }
  .page { width:min(100% - 20px,1180px); padding-top:25px; }
  .dashboard-grid { grid-template-columns:1fr; }
  .map-info { grid-template-columns:1fr; }
  #map { height:420px; }
  .hero h1 { font-size:2.65rem; }
  .hero-visual { min-height:270px; }
}
