:root {
  --bg: #070b14;
  --bg-2: #0c1220;
  --card: #111827;
  --line: #1f2a3d;
  --text: #e8eef8;
  --muted: #93a0b5;
  --coral: #ff5a3c;
  --coral-2: #ff7a52;
  --ok: #34d399;
  --warn: #fbbf24;
  --shadow: 0 24px 60px rgba(0,0,0,.45);
  --radius: 18px;
  --max: 1120px;
}
* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, Segoe UI, Roboto, Arial, sans-serif;
  background: var(--bg);
  color: var(--text);
  line-height: 1.55;
}
a { color: inherit; }
img { max-width: 100%; display: block; }
.wrap { width: min(var(--max), calc(100% - 40px)); margin: 0 auto; }
.nav {
  position: sticky; top: 0; z-index: 20;
  backdrop-filter: blur(16px);
  background: rgba(7,11,20,.78);
  border-bottom: 1px solid var(--line);
}
.nav-inner { display: flex; align-items: center; justify-content: space-between; padding: 14px 0; gap: 16px; }
.brand { display: flex; align-items: center; gap: 10px; text-decoration: none; font-weight: 700; letter-spacing: .02em; }
.brand img { width: 36px; height: 36px; border-radius: 10px; object-fit: cover; }
.nav-links { display: flex; gap: 22px; align-items: center; color: var(--muted); font-size: 14px; }
.nav-links a { text-decoration: none; }
.nav-links a:hover { color: var(--text); }
.btn {
  display: inline-flex; align-items: center; justify-content: center;
  background: linear-gradient(180deg, var(--coral-2), var(--coral));
  color: #fff; text-decoration: none; border: 0; cursor: pointer;
  padding: 11px 16px; border-radius: 12px; font-weight: 650; font-size: 14px;
}
.btn.ghost { background: transparent; border: 1px solid var(--line); color: var(--text); }
.hero {
  position: relative; min-height: 86vh; display: grid; align-items: end;
  overflow: hidden;
}
.hero-bg {
  position: absolute; inset: 0;
  background: url("hero.jpg") center/cover no-repeat;
  transform: scale(1.04);
}
.hero-bg:after {
  content: ""; position: absolute; inset: 0;
  background: linear-gradient(180deg, rgba(7,11,20,.25) 0%, rgba(7,11,20,.55) 45%, rgba(7,11,20,.96) 100%);
}
.hero-copy { position: relative; padding: 0 0 72px; }
.kicker { color: var(--coral-2); font-weight: 700; letter-spacing: .16em; text-transform: uppercase; font-size: 12px; margin: 0 0 12px; }
h1 { font-size: clamp(40px, 7vw, 84px); line-height: .95; letter-spacing: -.04em; margin: 0 0 18px; }
.lede { max-width: 640px; color: #d5deeb; font-size: 18px; margin: 0 0 28px; }
.row { display: flex; gap: 12px; flex-wrap: wrap; }
.section { padding: 80px 0; }
h2 { font-size: 34px; letter-spacing: -.03em; margin: 0 0 14px; }
.sub { color: var(--muted); max-width: 640px; margin: 0 0 28px; }
.grid { display: grid; gap: 18px; }
.grid.3 { grid-template-columns: repeat(3, 1fr); }
.grid.2 { grid-template-columns: 1.1fr .9fr; }
.card {
  background: linear-gradient(180deg, #121a2b, #0e1523);
  border: 1px solid var(--line); border-radius: var(--radius); padding: 22px;
}
.card h3 { margin: 0 0 8px; font-size: 18px; }
.card p { margin: 0; color: var(--muted); }
.shot { border-radius: var(--radius); overflow: hidden; border: 1px solid var(--line); box-shadow: var(--shadow); }
.legal { padding: 48px 0 90px; }
.legal h1 { font-size: 42px; margin-bottom: 8px; }
.legal h2 { font-size: 22px; margin-top: 28px; }
.legal p, .legal li { color: #c9d4e5; }
.notice {
  background: #1a1408; border: 1px solid #5b4518; color: #fde68a;
  padding: 14px 16px; border-radius: 12px; margin: 18px 0 28px;
}
footer { border-top: 1px solid var(--line); padding: 28px 0 40px; color: var(--muted); font-size: 14px; }
.foot { display: flex; justify-content: space-between; gap: 16px; flex-wrap: wrap; }
.foot a { color: var(--muted); text-decoration: none; margin-right: 14px; }
.tag { display: inline-block; border: 1px solid var(--line); border-radius: 999px; padding: 5px 10px; font-size: 12px; color: var(--muted); margin-right: 8px; }

/* Hub */
.hub-shell { min-height: 100vh; display: grid; grid-template-columns: 240px 1fr; }
.side { background: #0b1220; border-right: 1px solid var(--line); padding: 18px 12px; }
.side a, .side button.navbtn {
  display: block; width: 100%; text-align: left; background: none; border: 0; color: var(--muted);
  padding: 10px 12px; border-radius: 10px; cursor: pointer; font: inherit; text-decoration: none;
}
.side button.navbtn.active, .side a.active { background: #172033; color: #fff; }
.main { padding: 22px 26px 60px; }
.topbar { display: flex; justify-content: space-between; align-items: center; margin-bottom: 22px; }
table { width: 100%; border-collapse: collapse; font-size: 14px; }
th, td { text-align: left; padding: 10px 8px; border-bottom: 1px solid var(--line); }
.badge { padding: 3px 8px; border-radius: 999px; font-size: 11px; }
.badge.on { background: #052e1c; color: var(--ok); }
.badge.off { background: #2a1712; color: #fda4a4; }
.login-wrap { min-height: 100vh; display: grid; place-items: center; padding: 24px; }
.login-card { width: min(420px, 100%); }
input, select {
  width: 100%; background: #0b1220; border: 1px solid var(--line); color: var(--text);
  border-radius: 10px; padding: 11px 12px; font: inherit; margin: 0 0 12px;
}
label { display: block; font-size: 13px; color: var(--muted); margin: 0 0 6px; }
.hidden { display: none !important; }
.kpi { display: grid; grid-template-columns: repeat(4, 1fr); gap: 12px; margin-bottom: 18px; }
.kpi .card b { font-size: 22px; display: block; margin-top: 4px; }
@media (max-width: 880px) {
  .grid.3, .grid.2, .kpi, .hub-shell { grid-template-columns: 1fr; }
  .nav-links { display: none; }
  .hero { min-height: 72vh; }
}
