:root {
  --text: #f5f0e8;
  --muted: rgba(245, 240, 232, 0.72);
  --gold: #d4af37;
  --green: #7cfc00;
  --red-glow: rgba(220, 40, 40, 0.45);
  --panel: rgba(8, 4, 4, 0.55);
  --font: "Inter", ui-sans-serif, system-ui, sans-serif;
  --font-display: "Orbitron", "Inter", ui-sans-serif, sans-serif;
}

*, *::before, *::after { box-sizing: border-box; }

html, body {
  min-height: 100%;
  min-height: 100dvh;
  margin: 0;
}

body {
  font-family: var(--font);
  color: var(--text);
  background: #0a0404;
}

.bg-scene,
.bg-overlay {
  position: fixed;
  inset: 0;
  pointer-events: none;
  z-index: 0;
}

.bg-scene {
  background: #0a0404 url("/assets/home-bg.jpg") center center / cover no-repeat fixed;
}

.bg-overlay {
  background:
    radial-gradient(ellipse 80% 60% at 50% 40%, rgba(180, 20, 20, 0.18) 0%, transparent 55%),
    linear-gradient(180deg, rgba(0,0,0,0.15) 0%, rgba(0,0,0,0.55) 70%, rgba(0,0,0,0.82) 100%);
}

.app {
  position: relative;
  z-index: 1;
  min-height: 100dvh;
  display: flex;
  flex-direction: column;
  padding:
    max(12px, env(safe-area-inset-top))
    max(16px, env(safe-area-inset-right))
    max(16px, env(safe-area-inset-bottom))
    max(16px, env(safe-area-inset-left));
}

.topbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 10px 14px;
  border-radius: 16px;
  background: var(--panel);
  border: 1px solid rgba(212, 175, 55, 0.22);
  backdrop-filter: blur(10px);
}

.brand {
  display: flex;
  align-items: center;
  gap: 12px;
  min-width: 0;
}

.brand-mark {
  width: 48px;
  height: 48px;
  border-radius: 50%;
  object-fit: cover;
  border: 2px solid rgba(212, 175, 55, 0.5);
  box-shadow: 0 0 20px var(--red-glow);
}

.brand-title {
  margin: 0;
  font-family: var(--font-display);
  font-size: 14px;
  font-weight: 700;
  letter-spacing: 0.04em;
  color: var(--green);
}

.brand-sub {
  margin: 2px 0 0;
  font-size: 12px;
  color: var(--muted);
}

.status {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 12px;
  font-weight: 600;
  color: var(--muted);
  white-space: nowrap;
}

.status .dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: #888;
  box-shadow: 0 0 0 3px rgba(255,255,255,0.08);
}

.status .dot.ok { background: var(--green); box-shadow: 0 0 0 3px rgba(124,252,0,0.25); }
.status .dot.bad { background: #ff6b6b; }

.hero {
  flex: 1;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  padding: 24px 12px 16px;
  gap: 18px;
}

.hero-emblem {
  width: min(92vw, 420px);
  height: auto;
  border-radius: 50%;
  filter: drop-shadow(0 12px 40px rgba(0,0,0,0.55)) drop-shadow(0 0 32px var(--red-glow));
}

.tagline {
  max-width: 640px;
  margin: 0;
  font-size: clamp(15px, 2.5vw, 18px);
  line-height: 1.65;
  color: var(--muted);
  font-weight: 500;
}

.tagline strong { color: var(--gold); }

.license-love {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 8px;
  padding: 14px 22px;
  border-radius: 18px;
  background: linear-gradient(135deg, rgba(120, 10, 10, 0.55) 0%, rgba(20, 8, 8, 0.75) 100%);
  border: 1px solid rgba(212, 175, 55, 0.35);
  box-shadow: 0 8px 32px rgba(0,0,0,0.35), inset 0 1px 0 rgba(255,255,255,0.06);
}

.license-badge {
  font-family: var(--font-display);
  font-size: 15px;
  font-weight: 800;
  letter-spacing: 0.12em;
  color: #fff;
  background: linear-gradient(180deg, #c41e3a 0%, #8b0000 100%);
  padding: 8px 18px;
  border-radius: 8px;
  border: 1px solid rgba(255, 200, 200, 0.25);
  box-shadow: 0 4px 16px rgba(196, 30, 58, 0.45);
}

.license-note {
  font-size: 12px;
  font-weight: 600;
  color: var(--gold);
  letter-spacing: 0.06em;
}

.actions {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 10px;
}

.btn {
  display: inline-block;
  padding: 11px 18px;
  border-radius: 999px;
  font-size: 13px;
  font-weight: 700;
  text-decoration: none;
  color: var(--text);
  background: rgba(255,255,255,0.08);
  border: 1px solid rgba(255,255,255,0.18);
  transition: background .15s ease, transform .15s ease;
}

.btn:hover {
  background: rgba(255,255,255,0.14);
  transform: translateY(-1px);
}

.btn-primary {
  background: linear-gradient(180deg, rgba(124,252,0,0.25) 0%, rgba(60,140,0,0.35) 100%);
  border-color: rgba(124,252,0,0.45);
  color: #eaffea;
}

.facts {
  list-style: none;
  margin: 8px 0 0;
  padding: 16px 20px;
  max-width: 560px;
  width: 100%;
  border-radius: 16px;
  background: var(--panel);
  border: 1px dashed rgba(212, 175, 55, 0.25);
  text-align: left;
  font-size: 13px;
  line-height: 1.7;
  color: var(--muted);
}

.facts strong { color: var(--text); }
.facts a { color: var(--green); font-weight: 700; text-decoration: none; }
.facts a:hover { text-decoration: underline; }

.footer {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 8px;
  padding: 12px 4px 0;
  font-size: 11px;
  font-weight: 600;
  color: rgba(245,240,232,0.45);
}

@media (max-width: 640px) {
  .topbar { flex-direction: column; align-items: stretch; }
  .status { justify-content: center; }
  .footer { flex-direction: column; text-align: center; }
}
