/* Illegal Aliens ($IA) — soft-launch landing */

:root {
  --bg: #0b0d10;
  --bg-elevated: #11151a;
  --bg-card: #141a20;
  --green-deep: #0d1f14;
  --mint: #7dffb3;
  --mint-dim: #3d9a6a;
  --neon: #39ff14;
  --neon-soft: rgba(57, 255, 20, 0.15);
  --neon-glow: rgba(57, 255, 20, 0.45);
  --undiscovered: #c45c5c;
  --undiscovered-soft: rgba(196, 92, 92, 0.2);
  --text: #e8f0ea;
  --text-muted: #8a9a90;
  --border: rgba(125, 255, 179, 0.18);
  --radius: 14px;
  --font-display: "Orbitron", system-ui, sans-serif;
  --font-body: "Space Grotesk", system-ui, sans-serif;
  --max: 960px;
}

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

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  min-height: 100vh;
  font-family: var(--font-body);
  font-size: 1.05rem;
  line-height: 1.55;
  color: var(--text);
  background:
    radial-gradient(ellipse 80% 50% at 50% -10%, rgba(61, 154, 106, 0.22), transparent 55%),
    radial-gradient(ellipse 60% 40% at 100% 30%, rgba(57, 255, 20, 0.06), transparent 50%),
    linear-gradient(180deg, var(--bg) 0%, var(--green-deep) 45%, var(--bg) 100%);
  background-attachment: fixed;
  overflow-x: hidden;
}

body.modal-open {
  overflow: hidden;
}

img {
  max-width: 100%;
  height: auto;
  display: block;
}

a {
  color: var(--mint);
  text-decoration: none;
  transition: color 0.2s ease, opacity 0.2s ease;
}

a:hover {
  color: var(--neon);
}

button {
  font-family: inherit;
}

/* Atmosphere */
.scanlines {
  pointer-events: none;
  position: fixed;
  inset: 0;
  z-index: 1000;
  opacity: 0.04;
  background: repeating-linear-gradient(
    0deg,
    transparent,
    transparent 2px,
    rgba(0, 0, 0, 0.35) 2px,
    rgba(0, 0, 0, 0.35) 4px
  );
}

.radar-glow {
  pointer-events: none;
  position: fixed;
  top: -20%;
  right: -15%;
  width: 55vmin;
  height: 55vmin;
  border-radius: 50%;
  background: radial-gradient(circle, var(--neon-soft), transparent 65%);
  animation: pulse-radar 6s ease-in-out infinite;
  z-index: 0;
}

@keyframes pulse-radar {
  0%, 100% { opacity: 0.5; transform: scale(1); }
  50% { opacity: 0.85; transform: scale(1.08); }
}

/* Header */
.site-header {
  position: sticky;
  top: 0;
  z-index: 100;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  padding: 0.85rem 1.25rem;
  background: rgba(11, 13, 16, 0.88);
  backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--border);
}

.brand {
  display: flex;
  align-items: center;
  gap: 0.65rem;
  color: var(--text);
  font-weight: 600;
  letter-spacing: 0.02em;
}

.brand:hover {
  color: var(--mint);
}

.brand-logo {
  width: 40px;
  height: 40px;
  border-radius: 50%;
  object-fit: cover;
  box-shadow: 0 0 16px var(--neon-glow);
  border: 1px solid var(--border);
}

.brand-text {
  font-family: var(--font-display);
  font-size: 0.85rem;
  text-transform: uppercase;
  letter-spacing: 0.08em;
}

.nav {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.35rem 1rem;
  font-size: 0.9rem;
}

.nav a {
  color: var(--text-muted);
}

.nav a:hover {
  color: var(--mint);
}

.nav-x {
  padding: 0.3rem 0.75rem;
  border: 1px solid var(--border);
  border-radius: 999px;
  color: var(--mint) !important;
}

.nav-x:hover {
  border-color: var(--mint);
  box-shadow: 0 0 12px var(--neon-soft);
}

/* Hero + parallax */
.hero {
  position: relative;
  isolation: isolate;
  overflow: hidden;
  min-height: min(78vh, 720px);
  padding: 3.5rem 1.25rem 4rem;
  text-align: center;
  display: flex;
  align-items: center;
  justify-content: center;
}

.hero-bg {
  position: absolute;
  left: 0;
  right: 0;
  top: -12%;
  bottom: -12%;
  z-index: -2;
  background-image: url("assets/banner.png");
  background-size: cover;
  background-position: center 28%;
  background-repeat: no-repeat;
  will-change: transform;
  transform: translate3d(0, 0, 0);
  /* Softer than before — more banner detail visible (was opacity 0.18 + heavy mask) */
  opacity: 0.42;
}

.hero-overlay {
  position: absolute;
  inset: 0;
  z-index: -1;
  pointer-events: none;
  /* Lighter dark veil + fade into solid page bg */
  background:
    linear-gradient(
      180deg,
      rgba(11, 13, 16, 0.35) 0%,
      rgba(11, 13, 16, 0.45) 40%,
      rgba(11, 13, 16, 0.82) 78%,
      var(--bg) 100%
    );
}

.hero-inner {
  position: relative;
  max-width: 640px;
  margin: 0 auto;
  z-index: 1;
}

.hero-logo {
  width: 112px;
  height: 112px;
  margin: 0 auto 1.25rem;
  border-radius: 50%;
  object-fit: cover;
  border: 2px solid rgba(125, 255, 179, 0.45);
  box-shadow:
    0 0 0 6px rgba(57, 255, 20, 0.08),
    0 0 40px var(--neon-glow);
  animation: logo-pulse 4s ease-in-out infinite;
}

@keyframes logo-pulse {
  0%, 100% { box-shadow: 0 0 0 6px rgba(57, 255, 20, 0.08), 0 0 32px var(--neon-glow); }
  50% { box-shadow: 0 0 0 10px rgba(57, 255, 20, 0.12), 0 0 52px var(--neon-glow); }
}

.eyebrow {
  margin: 0 0 0.5rem;
  font-family: var(--font-display);
  font-size: 0.72rem;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--mint-dim);
}

.hero-title {
  margin: 0;
  font-family: var(--font-display);
  font-weight: 700;
  font-size: clamp(2rem, 8vw, 3.4rem);
  letter-spacing: 0.06em;
  line-height: 1.15;
  color: var(--mint);
  text-shadow: 0 0 40px var(--neon-glow);
}

.hero-es {
  margin: 0.4rem 0 1.25rem;
  font-size: 1rem;
  color: var(--text-muted);
  font-style: italic;
}

.hero-tagline {
  margin: 0 auto 0.65rem;
  max-width: 34em;
  color: var(--text);
  font-size: 1.1rem;
  text-shadow: 0 1px 12px rgba(0, 0, 0, 0.65);
}

.hero-sub {
  margin: 0 auto 1.75rem;
  color: var(--text-muted);
  font-size: 0.95rem;
}

.hero-cta {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 0.75rem;
  margin-bottom: 1.75rem;
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0.7rem 1.35rem;
  border-radius: 999px;
  font-weight: 600;
  font-size: 0.95rem;
  letter-spacing: 0.02em;
  border: 1px solid transparent;
  transition: transform 0.15s ease, box-shadow 0.2s ease, background 0.2s ease, border-color 0.2s ease;
}

.btn:hover {
  transform: translateY(-1px);
}

.btn-ghost {
  color: var(--mint);
  border-color: var(--border);
  background: rgba(20, 26, 32, 0.7);
}

.btn-ghost:hover {
  border-color: var(--mint);
  box-shadow: 0 0 20px var(--neon-soft);
  color: var(--neon);
}

.btn-x {
  color: #0b0d10;
  background: linear-gradient(135deg, var(--mint), var(--neon));
  box-shadow: 0 0 24px var(--neon-soft);
}

.btn-x:hover {
  color: #0b0d10;
  box-shadow: 0 0 32px var(--neon-glow);
}

.ca-slot {
  display: inline-flex;
  flex-direction: column;
  align-items: center;
  gap: 0.25rem;
  margin: 0;
  padding: 0.75rem 1.25rem;
  border-radius: var(--radius);
  border: 1px dashed var(--border);
  background: rgba(17, 21, 26, 0.75);
  font-size: 0.85rem;
}

.ca-label {
  font-family: var(--font-display);
  font-size: 0.65rem;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--mint-dim);
}

.ca-value {
  color: var(--text-muted);
}

/* Sections — solid dark after hero */
.section {
  position: relative;
  z-index: 1;
  padding: 3.5rem 1.25rem;
  background: transparent;
}

.section-inner {
  max-width: var(--max);
  margin: 0 auto;
}

.section-title {
  margin: 0 0 0.35rem;
  font-family: var(--font-display);
  font-size: clamp(1.35rem, 4vw, 1.75rem);
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--mint);
  text-align: center;
}

.section-es {
  margin: 0 0 1.5rem;
  text-align: center;
  color: var(--text-muted);
  font-size: 0.95rem;
  font-style: italic;
}

.section-lead {
  margin: -0.5rem auto 1.75rem;
  max-width: 36em;
  text-align: center;
  color: var(--text-muted);
}

/* Cards */
.cards {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1rem;
}

.card {
  padding: 1.35rem 1.2rem;
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  box-shadow: 0 8px 32px rgba(0, 0, 0, 0.35);
  transition: border-color 0.2s ease, box-shadow 0.2s ease;
}

.card:hover {
  border-color: rgba(125, 255, 179, 0.4);
  box-shadow: 0 8px 32px rgba(0, 0, 0, 0.35), 0 0 24px var(--neon-soft);
}

.card-icon {
  display: block;
  font-size: 1.6rem;
  margin-bottom: 0.65rem;
}

.card h3 {
  margin: 0 0 0.45rem;
  font-size: 1.05rem;
  color: var(--text);
}

.card p {
  margin: 0;
  font-size: 0.95rem;
  color: var(--text-muted);
}

/* Registry interactive grid */
.section-registry {
  background: linear-gradient(180deg, transparent, rgba(13, 31, 20, 0.55), transparent);
}

.registry-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 0.65rem;
}

.registry-entry {
  display: grid;
  grid-template-columns: auto 1fr auto;
  align-items: center;
  gap: 0.85rem;
  width: 100%;
  padding: 0.85rem 1rem;
  background: var(--bg-elevated);
  border: 1px solid var(--border);
  border-radius: 10px;
  color: inherit;
  text-align: left;
  cursor: pointer;
  transition: border-color 0.2s ease, background 0.2s ease, box-shadow 0.2s ease, transform 0.15s ease;
}

.registry-entry:hover,
.registry-entry:focus-visible {
  outline: none;
  transform: translateY(-1px);
  background: #161d24;
}

.registry-entry.is-undiscovered:hover,
.registry-entry.is-undiscovered:focus-visible {
  border-color: rgba(196, 92, 92, 0.55);
  box-shadow: 0 0 18px var(--undiscovered-soft);
}

.registry-entry.is-discovered:hover,
.registry-entry.is-discovered:focus-visible {
  border-color: rgba(125, 255, 179, 0.55);
  box-shadow: 0 0 18px var(--neon-soft);
}

.registry-entry.is-teaser {
  opacity: 0.72;
  border-style: dashed;
}

.reg-num {
  flex-shrink: 0;
  font-family: var(--font-display);
  font-size: 0.72rem;
  letter-spacing: 0.1em;
  min-width: 3.2rem;
}

.registry-entry.is-undiscovered .reg-num {
  color: var(--undiscovered);
}

.registry-entry.is-discovered .reg-num {
  color: var(--neon);
}

.reg-name {
  font-weight: 500;
  color: var(--text);
  letter-spacing: 0.04em;
}

.registry-entry.is-undiscovered .reg-name {
  color: var(--text-muted);
  text-transform: lowercase;
  font-family: var(--font-display);
  letter-spacing: 0.18em;
}

.reg-hint {
  font-family: var(--font-display);
  font-size: 0.55rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--text-muted);
  white-space: nowrap;
}

.registry-entry.is-discovered .reg-hint {
  color: var(--mint-dim);
}

.registry-entry.is-undiscovered .reg-hint {
  color: var(--undiscovered);
  opacity: 0.85;
}

/* Soft launch */
.soft-box {
  max-width: 640px;
  padding: 2rem 1.5rem;
  border-radius: calc(var(--radius) + 4px);
  border: 1px solid var(--border);
  background:
    linear-gradient(145deg, rgba(20, 40, 28, 0.9), rgba(17, 21, 26, 0.95));
  box-shadow: inset 0 0 60px rgba(57, 255, 20, 0.04), 0 12px 40px rgba(0, 0, 0, 0.4);
}

.soft-points {
  margin: 0 0 1.25rem;
  padding-left: 1.15rem;
  color: var(--text);
}

.soft-points li {
  margin-bottom: 0.75rem;
}

.soft-points li:last-child {
  margin-bottom: 0;
}

.soft-points strong {
  color: var(--mint);
}

.soft-note {
  margin: 0;
  padding-top: 1rem;
  border-top: 1px solid var(--border);
  text-align: center;
  font-size: 0.9rem;
  color: var(--text-muted);
  font-style: italic;
}

/* Footer */
.site-footer {
  position: relative;
  z-index: 1;
  padding: 3rem 1.25rem 2.5rem;
  border-top: 1px solid var(--border);
  text-align: center;
  background: rgba(8, 10, 12, 0.65);
}

.footer-inner {
  max-width: var(--max);
  margin: 0 auto;
}

.footer-logo {
  width: 48px;
  height: 48px;
  margin: 0 auto 0.85rem;
  border-radius: 50%;
  object-fit: cover;
  border: 1px solid var(--border);
  box-shadow: 0 0 20px var(--neon-soft);
}

.footer-phrase {
  margin: 0 0 0.75rem;
  font-family: var(--font-display);
  font-size: 1.1rem;
  letter-spacing: 0.12em;
  color: var(--mint);
}

.footer-x {
  display: inline-block;
  margin-bottom: 0.75rem;
  font-weight: 500;
}

.footer-meta {
  margin: 0;
  font-size: 0.8rem;
  color: var(--text-muted);
}

/* Registry modal */
.registry-modal {
  position: fixed;
  inset: 0;
  z-index: 200;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 1.25rem;
  background: rgba(4, 6, 8, 0.78);
  backdrop-filter: blur(8px);
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
  transition: opacity 0.2s ease, visibility 0.2s ease;
}

.registry-modal.is-open {
  opacity: 1;
  visibility: visible;
  pointer-events: auto;
}

.registry-modal-panel {
  position: relative;
  width: min(640px, 100%);
  max-height: min(88vh, 720px);
  overflow: auto;
  padding: 1.5rem 1.35rem 1.35rem;
  border-radius: calc(var(--radius) + 4px);
  border: 1px solid var(--border);
  background:
    linear-gradient(160deg, rgba(20, 28, 24, 0.98), rgba(12, 15, 18, 0.98));
  box-shadow: 0 24px 80px rgba(0, 0, 0, 0.65), 0 0 40px var(--neon-soft);
}

.modal-close {
  position: absolute;
  top: 0.55rem;
  right: 0.65rem;
  width: 2.25rem;
  height: 2.25rem;
  border: 1px solid var(--border);
  border-radius: 50%;
  background: rgba(17, 21, 26, 0.9);
  color: var(--text);
  font-size: 1.35rem;
  line-height: 1;
  cursor: pointer;
  z-index: 2;
}

.modal-close:hover {
  border-color: var(--mint);
  color: var(--mint);
}

.modal-layout {
  display: grid;
  grid-template-columns: 160px 1fr;
  gap: 1.25rem;
  align-items: start;
}

.modal-media {
  min-height: 160px;
}

.modal-photo {
  width: 100%;
  aspect-ratio: 1;
  object-fit: cover;
  border-radius: 12px;
  border: 1px solid var(--border);
}

.modal-redacted {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
  width: 100%;
  aspect-ratio: 1;
  border-radius: 12px;
  border: 1px dashed rgba(196, 92, 92, 0.45);
  background:
    repeating-linear-gradient(
      -45deg,
      rgba(20, 26, 32, 0.9),
      rgba(20, 26, 32, 0.9) 8px,
      rgba(30, 18, 18, 0.85) 8px,
      rgba(30, 18, 18, 0.85) 16px
    );
  overflow: hidden;
}

.redacted-silhouette {
  width: 58%;
  height: 70%;
  border-radius: 50% 50% 42% 42%;
  background: radial-gradient(circle at 50% 30%, #2a3238 0%, #12161a 70%);
  opacity: 0.85;
  box-shadow: inset 0 0 30px rgba(0, 0, 0, 0.6);
}

.classified-stamp {
  position: absolute;
  font-family: var(--font-display);
  font-size: 0.72rem;
  letter-spacing: 0.18em;
  color: var(--undiscovered);
  border: 2px solid var(--undiscovered);
  padding: 0.35rem 0.55rem;
  transform: rotate(-12deg);
  background: rgba(11, 13, 16, 0.75);
  text-shadow: 0 0 8px var(--undiscovered-soft);
}

.modal-id {
  margin: 0 0 0.35rem;
  font-family: var(--font-display);
  font-size: 0.8rem;
  letter-spacing: 0.14em;
}

.modal-id.is-red {
  color: var(--undiscovered);
}

.modal-id.is-green {
  color: var(--neon);
}

.modal-name {
  margin: 0 0 1rem;
  font-family: var(--font-display);
  font-size: 1.15rem;
  letter-spacing: 0.06em;
  color: var(--text);
}

.modal-meta {
  margin: 0 0 1rem;
  display: grid;
  gap: 0.55rem;
}

.modal-meta div {
  display: grid;
  grid-template-columns: 8.5rem 1fr;
  gap: 0.5rem;
  font-size: 0.9rem;
}

.modal-meta dt {
  margin: 0;
  font-family: var(--font-display);
  font-size: 0.58rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--mint-dim);
  align-self: center;
}

.modal-meta dd {
  margin: 0;
  color: var(--text);
}

.modal-desc {
  margin: 0 0 0.75rem;
  color: var(--text-muted);
  font-size: 0.95rem;
}

.modal-quote {
  margin: 0 0 0.75rem;
  padding-left: 0.85rem;
  border-left: 2px solid var(--mint-dim);
  color: var(--mint);
  font-style: italic;
  font-size: 0.95rem;
}

.modal-incomplete,
.modal-es {
  margin: 0;
  font-size: 0.8rem;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--undiscovered);
  font-family: var(--font-display);
}

.modal-es {
  text-transform: none;
  letter-spacing: 0.02em;
  font-style: italic;
  font-family: var(--font-body);
  color: var(--text-muted);
}

/* Mobile */
@media (max-width: 720px) {
  .brand-text {
    font-size: 0.75rem;
  }

  .nav {
    gap: 0.25rem 0.65rem;
    font-size: 0.8rem;
  }

  .hero {
    min-height: min(70vh, 640px);
    padding-top: 2.5rem;
  }

  .hero-bg {
    opacity: 0.36;
  }

  .hero-logo {
    width: 88px;
    height: 88px;
  }

  .cards {
    grid-template-columns: 1fr;
  }

  .registry-grid {
    grid-template-columns: 1fr;
  }

  .reg-hint {
    display: none;
  }

  .modal-layout {
    grid-template-columns: 1fr;
  }

  .modal-media {
    max-width: 200px;
    margin: 0 auto;
  }

  .modal-meta div {
    grid-template-columns: 1fr;
    gap: 0.15rem;
  }

  .soft-box {
    padding: 1.5rem 1.15rem;
  }
}

@media (max-width: 400px) {
  .site-header {
    flex-direction: column;
    align-items: flex-start;
  }

  .nav {
    width: 100%;
  }
}

@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }

  .radar-glow,
  .hero-logo {
    animation: none;
  }

  .hero-bg {
    transform: none !important;
  }

  .registry-entry {
    transition: none;
  }
}
