:root {
  --bg-0: #070b08;
  --bg-1: #0c1410;
  --bg-2: #101f18;
  --grid: rgba(64, 255, 132, 0.08);
  --neon: #36ff7a;
  --neon-2: #2bdb68;
  --text: #e9f3ed;
  --muted: #9fb4a8;
  --panel: rgba(12, 24, 18, 0.7);
  --stroke: rgba(54, 255, 122, 0.2);
  --danger: #ff5c6c;
  --warn: #ffc857;
}

* {
  box-sizing: border-box;
}

html,
body {
  height: 100%;
}

body {
  margin: 0;
  font-family: "Space Grotesk", "Sora", "Segoe UI", sans-serif;
  color: var(--text);
  background: radial-gradient(1200px 800px at 80% -10%, #1a2f22 0%, transparent 60%),
    radial-gradient(900px 700px at 10% 10%, #12221a 0%, transparent 55%),
    linear-gradient(180deg, var(--bg-0), var(--bg-2));
  overflow-x: hidden;
}

.grid {
  position: fixed;
  inset: 0;
  background-image: linear-gradient(var(--grid) 1px, transparent 1px),
    linear-gradient(90deg, var(--grid) 1px, transparent 1px);
  background-size: 64px 64px;
  mask-image: radial-gradient(circle at top, #000 0%, transparent 70%);
  opacity: 0.7;
  pointer-events: none;
}

.glow {
  position: fixed;
  inset: 0;
  background: radial-gradient(600px 300px at 50% 0%, rgba(54, 255, 122, 0.2), transparent 70%);
  pointer-events: none;
}

header {
  position: sticky;
  top: 0;
  z-index: 10;
  backdrop-filter: blur(12px);
  background: rgba(7, 11, 8, 0.6);
  border-bottom: 1px solid rgba(54, 255, 122, 0.15);
}

.nav {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  max-width: 1200px;
  margin: 0 auto;
  padding: 16px 24px;
}

.brand {
  display: flex;
  align-items: center;
  gap: 12px;
  font-weight: 700;
  letter-spacing: 0.04em;
}

.brand img {
  width: 42px;
  height: 42px;
  object-fit: cover;
  border-radius: 8px;
  box-shadow: 0 0 30px rgba(54, 255, 122, 0.4);
}

.nav .pill {
  font-size: 12px;
  padding: 6px 12px;
  border-radius: 999px;
  background: rgba(54, 255, 122, 0.15);
  color: var(--neon);
  border: 1px solid rgba(54, 255, 122, 0.4);
}

main {
  max-width: 1200px;
  margin: 0 auto;
  padding: 48px 24px 96px;
}

main > section {
  margin-top: 24px;
}

main > section:first-of-type {
  margin-top: 0;
}

.hero {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 16px;
  align-items: stretch;
}

.hero > .panel {
  height: 100%;
}

.hero h1 {
  font-size: clamp(1.7rem, 2.7vw, 2.9rem);
  margin: 0 0 12px;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  line-height: 1.06;
  max-width: 16ch;
  text-wrap: balance;
}

.hero p {
  color: var(--muted);
  font-size: 1.1rem;
  line-height: 1.6;
}

.hero-copy {
  display: grid;
  gap: 16px;
  align-content: start;
}

.hero-map-wrap {
  display: grid;
  gap: 10px;
}

.hero-map-head {
  display: grid;
  gap: 4px;
}

.hero-map-head h2 {
  margin: 0;
  font-size: 1.05rem;
}

.hero-map-head small {
  color: var(--muted);
}

.threat-map {
  height: 250px;
  border: 1px solid rgba(54, 255, 122, 0.25);
  border-radius: 12px;
  overflow: hidden;
  background: #0b140f;
}

.threat-dot {
  position: relative;
  border-radius: 999px;
  background: transparent;
  border: none;
}

.threat-dot::before {
  content: "";
  position: absolute;
  inset: 0;
  border-radius: 999px;
  background: radial-gradient(circle, rgba(255, 138, 149, 0.95) 0%, rgba(255, 92, 108, 0.78) 45%, rgba(255, 92, 108, 0.08) 80%);
  border: 1px solid rgba(255, 92, 108, 0.75);
  box-shadow: 0 0 0 0 rgba(255, 92, 108, 0.45);
  animation: threatPulse 2.2s ease-out infinite;
  pointer-events: auto;
}

@keyframes threatPulse {
  0% {
    box-shadow: 0 0 0 0 rgba(255, 92, 108, 0.45);
    transform: scale(1);
  }
  70% {
    box-shadow: 0 0 0 12px rgba(255, 92, 108, 0);
    transform: scale(1.12);
  }
  100% {
    box-shadow: 0 0 0 0 rgba(255, 92, 108, 0);
    transform: scale(1);
  }
}

.leaflet-container {
  background: #0b140f;
}

.leaflet-tile-pane {
  filter: hue-rotate(55deg) saturate(0.85) brightness(0.95) contrast(1.02);
}

.leaflet-control-attribution {
  background: rgba(8, 14, 11, 0.78) !important;
  color: #9fb4a8 !important;
}

.leaflet-control-attribution a {
  color: var(--neon) !important;
}

.marker-cluster-small,
.marker-cluster-medium,
.marker-cluster-large {
  background: rgba(255, 92, 108, 0.22) !important;
}

.marker-cluster-small div,
.marker-cluster-medium div,
.marker-cluster-large div {
  background: rgba(255, 92, 108, 0.78) !important;
  color: #fff;
  border: 1px solid rgba(255, 138, 149, 0.9);
  text-shadow: none;
}

.hero .cta {
  display: flex;
  gap: 12px;
  flex-wrap: wrap;
  margin-top: 24px;
}

.button {
  border: 1px solid rgba(54, 255, 122, 0.5);
  color: var(--text);
  background: linear-gradient(120deg, rgba(54, 255, 122, 0.25), rgba(7, 11, 8, 0.4));
  padding: 12px 18px;
  border-radius: 10px;
  text-decoration: none;
  font-weight: 600;
  letter-spacing: 0.02em;
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.button:hover {
  transform: translateY(-2px);
  box-shadow: 0 0 24px rgba(54, 255, 122, 0.3);
}

button.button {
  cursor: pointer;
}

.panel {
  background: var(--panel);
  border: 1px solid var(--stroke);
  border-radius: 16px;
  padding: 24px;
  box-shadow: 0 20px 60px rgba(0, 0, 0, 0.45);
}

.upload {
  display: grid;
  gap: 16px;
}

.upload-layout {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
  gap: 16px;
}

.map-panel h2 {
  margin: 0 0 12px;
}


.dropzone {
  border: 1px dashed rgba(54, 255, 122, 0.5);
  border-radius: 14px;
  padding: 24px;
  text-align: center;
  background: rgba(5, 10, 7, 0.7);
  transition: border-color 0.2s ease, box-shadow 0.2s ease;
}

.dropzone.dragover {
  border-color: var(--neon);
  box-shadow: 0 0 24px rgba(54, 255, 122, 0.35);
}

.dropzone input {
  display: none;
}

.dropzone label {
  cursor: pointer;
  display: inline-block;
  padding: 10px 16px;
  border-radius: 10px;
  background: rgba(54, 255, 122, 0.2);
  border: 1px solid rgba(54, 255, 122, 0.5);
  font-weight: 600;
}

.meta {
  display: grid;
  gap: 8px;
  font-size: 0.95rem;
  color: var(--muted);
}

.scan-grid {
  display: grid;
  gap: 10px;
}

.scan-row {
  display: grid;
  grid-template-columns: 120px 1fr;
  gap: 12px;
  padding: 10px 12px;
  border-radius: 10px;
  border: 1px solid rgba(54, 255, 122, 0.2);
  background: rgba(9, 16, 12, 0.7);
  font-family: "JetBrains Mono", "Fira Code", monospace;
  font-size: 0.88rem;
}

.scan-row span {
  color: var(--muted);
}

.scan-row strong {
  word-break: break-word;
}

.status-clean {
  color: var(--neon);
  text-shadow: 0 0 10px rgba(54, 255, 122, 0.35);
}

.status-malicious {
  color: var(--danger);
  text-shadow: 0 0 12px rgba(255, 92, 108, 0.45);
}

.status-error,
.status-review {
  color: var(--warn);
  text-shadow: 0 0 10px rgba(255, 200, 87, 0.35);
}

.dev-only {
  display: none;
}

.dev-only.is-visible {
  display: block;
}

.panel ul {
  list-style: none;
  padding: 0;
  margin: 16px 0 0;
  display: grid;
  gap: 8px;
}

.panel ul li {
  padding: 10px 12px;
  border-radius: 10px;
  border: 1px solid rgba(54, 255, 122, 0.2);
  background: rgba(9, 16, 12, 0.7);
  font-family: "JetBrains Mono", "Fira Code", monospace;
  font-size: 0.9rem;
}

.list-header {
  display: grid;
  grid-template-columns: 2fr 1.2fr 1fr;
  gap: 12px;
  padding: 10px 12px;
  border-radius: 10px;
  border: 1px solid rgba(54, 255, 122, 0.2);
  background: rgba(9, 16, 12, 0.9);
  font-size: 0.85rem;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--muted);
}

.list {
  display: grid;
  gap: 8px;
  margin-top: 10px;
  max-height: 420px;
  overflow-y: auto;
  padding-right: 6px;
}

.list::-webkit-scrollbar {
  width: 8px;
}

.list::-webkit-scrollbar-thumb {
  background: rgba(54, 255, 122, 0.3);
  border-radius: 999px;
}

.list::-webkit-scrollbar-track {
  background: rgba(9, 16, 12, 0.6);
  border-radius: 999px;
}

.list-item {
  display: grid;
  grid-template-columns: 2fr 1.2fr 1fr;
  gap: 12px;
  padding: 12px;
  border-radius: 12px;
  border: 1px solid rgba(54, 255, 122, 0.2);
  background: rgba(9, 16, 12, 0.7);
  font-family: "JetBrains Mono", "Fira Code", monospace;
  font-size: 0.9rem;
}

.list-item-toggle {
  width: 100%;
  text-align: left;
  color: var(--text);
  cursor: pointer;
}

.list-item-toggle * {
  cursor: pointer;
}

.list-item-toggle::after {
  content: "â–¾";
  justify-self: end;
  color: var(--muted);
  transition: transform 0.2s ease;
}

.upload-item.is-open .list-item-toggle::after {
  transform: rotate(180deg);
}

.upload-details {
  display: none;
  gap: 8px;
  padding: 2px 4px 6px;
}

.upload-item.is-open .upload-details {
  display: grid;
}

.list-item .status-malicious {
  color: var(--danger);
  text-shadow: 0 0 12px rgba(255, 92, 108, 0.45);
}

.list-item .status-clean {
  color: var(--neon);
  text-shadow: 0 0 10px rgba(54, 255, 122, 0.35);
}

.list-item .status-review,
.list-item .status-error {
  color: var(--warn);
  text-shadow: 0 0 10px rgba(255, 200, 87, 0.35);
}

a {
  color: var(--neon);
  text-decoration: none;
}

a:hover {
  text-decoration: underline;
}

.status {
  padding: 12px 16px;
  border-radius: 12px;
  border: 1px solid rgba(54, 255, 122, 0.2);
  background: rgba(9, 16, 12, 0.8);
  font-family: "JetBrains Mono", "Fira Code", monospace;
  font-size: 0.9rem;
  min-height: 48px;
}

.status.error {
  border-color: rgba(255, 92, 108, 0.5);
  color: var(--danger);
}

.status.warn {
  border-color: rgba(255, 200, 87, 0.5);
  color: var(--warn);
}

.cards {
  margin-top: 24px;
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 16px;
}

.card {
  padding: 20px;
  border-radius: 14px;
  border: 1px solid rgba(54, 255, 122, 0.2);
  background: rgba(9, 16, 12, 0.8);
}

.card h3 {
  margin: 0 0 8px;
  font-size: 1.1rem;
}

.card p {
  margin: 0;
  color: var(--muted);
  font-size: 0.95rem;
}

footer {
  margin-top: 0;
  color: var(--muted);
  font-size: 0.85rem;
}

.logo-hero {
  width: min(520px, 100%);
  display: block;
  margin: 0 auto;
  filter: drop-shadow(0 0 40px rgba(54, 255, 122, 0.45));
}

@media (max-width: 720px) {
  .nav {
    flex-direction: column;
    align-items: flex-start;
  }

  .threat-map {
    height: 220px;
  }
}

.bug-fab {
  position: fixed;
  right: 16px;
  bottom: 16px;
  z-index: 50;
  padding: 8px 12px;
  border-radius: 999px;
  border: 1px solid rgba(54, 255, 122, 0.5);
  background: rgba(9, 16, 12, 0.92);
  color: var(--text);
  font-size: 0.85rem;
  font-weight: 600;
  text-decoration: none;
  box-shadow: 0 6px 24px rgba(0, 0, 0, 0.35);
}

.bug-fab:hover {
  text-decoration: none;
  box-shadow: 0 0 24px rgba(54, 255, 122, 0.35);
}

.nav-right {
  display: flex;
  align-items: center;
  gap: 10px;
}

.mode-indicator {
  background: transparent;
  border: 1px solid rgba(54, 255, 122, 0.35);
  color: var(--muted);
  border-radius: 999px;
  padding: 6px 10px;
  font: inherit;
  font-size: 0.8rem;
  cursor: pointer;
}

.mode-indicator:hover {
  color: var(--text);
  border-color: rgba(54, 255, 122, 0.75);
}

.mode-tooltip {
  position: fixed;
  z-index: 2200;
  pointer-events: none;
  opacity: 0;
  transform: translateY(4px);
  transition: opacity 0.12s ease, transform 0.12s ease;
  background: rgba(7, 11, 8, 0.95);
  border: 1px solid rgba(54, 255, 122, 0.4);
  color: var(--text);
  font-size: 0.75rem;
  padding: 5px 8px;
  border-radius: 8px;
}

.mode-tooltip.is-visible {
  opacity: 1;
  transform: translateY(0);
}

.easter-egg {
  display: none;
  position: fixed;
  inset: 0;
  z-index: 2000;
  width: 100vw;
  height: 100dvh;
  padding: 0;
  background: #000000;
  overflow: hidden;
  text-align: center;
  isolation: isolate;
}

.easter-egg.is-visible {
  display: grid;
  place-items: center;
}

.easter-egg-rain {
  position: absolute;
  inset: 0;
  overflow: hidden;
  pointer-events: none;
  z-index: 0;
}

.easter-egg-rain-canvas {
  display: block;
  width: 100%;
  height: 100%;
  opacity: 1;
}

.easter-egg-window {
  width: min(1040px, 94vw);
  position: relative;
  z-index: 1;
  border-radius: 18px;
  border: 1px solid rgb(241, 63, 194) !important;
  background: linear-gradient(180deg, rgb(238, 89, 176), rgba(236, 137, 198, 1)) !important;
  padding: 52px 22px 22px;
  box-shadow: 0 22px 70px rgba(0, 0, 0, 0.5);
}

.easter-egg-close {
  position: absolute;
  top: 12px;
  right: 12px;
  width: 36px;
  height: 36px;
  border-radius: 999px;
  border: 1px solid rgba(255, 205, 239, 0.92);
  background: rgba(255, 117, 211, 0.9);
  color: var(--text);
  font-size: 1.45rem;
  line-height: 1;
  cursor: pointer;
}

.easter-egg-close:hover {
  box-shadow: 0 0 18px rgba(255, 127, 207, 0.45);
}

.easter-egg h2 {
  margin: 0;
  color: #ffe9f8;
  text-shadow: 0 0 14px rgba(255, 185, 235, 0.808);
  font-size: clamp(1.8rem, 3.8vw, 3.2rem);
  text-transform: uppercase;
  letter-spacing: 0.06em;
}

.team-photos {
  width: min(1000px, 100%);
  display: grid;
  grid-template-columns: repeat(5, minmax(120px, 1fr));
  gap: 14px;
  margin-top: 12px;
}

.team-photos img {
  width: 100%;
  aspect-ratio: 1 / 1;
  object-fit: cover;
  border-radius: 14px;
  border: 2px solid rgba(255, 210, 241, 0.96);
  box-shadow: 0 10px 30px rgba(253, 119, 208, 0.89), 0 0 22px rgba(255, 179, 233, 0.815);
  background: linear-gradient(180deg, rgba(255, 232, 247, 0.95), rgba(255, 195, 232, 0.88));
}

.easter-egg-thanks {
  margin: 14px 0 0;
  color: #ffe9f8;
  letter-spacing: 0.06em;
  font-family: "JetBrains Mono", "Fira Code", monospace;
}

body.fabulous-mode {
  --bg-0: #000000;
  --bg-1: #14010c;
  --bg-2: #18030f;
  --grid: rgba(255, 145, 205, 0.18);
  --neon: #ff7fcf;
  --neon-2: #ff55bd;
  --text: #ffeaf8;
  --muted: #ffc9e8;
  --panel: rgba(64, 8, 42, 0.72);
  --stroke: rgba(255, 127, 207, 0.35);
  overflow: hidden;
}

body.fabulous-mode > header,
body.fabulous-mode > main,
body.fabulous-mode > .grid,
body.fabulous-mode > .glow,
body.fabulous-mode > .bug-fab {
  display: none !important;
}

@media (max-width: 900px) {
  .team-photos {
    grid-template-columns: repeat(2, minmax(130px, 1fr));
  }
}



