/* ============================================
   localcop.dev - Gold-Black Inflated 3D Aesthetic
   Colors: #0a0a0a #f0d060 #1a1a1a #d4a017 #8b6914 #c41e3a #f5f0e0
   Fonts: Nunito (900), Quicksand (500), Space Mono
   ============================================ */

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

html {
  scroll-behavior: smooth;
  overflow-x: hidden;
}

body {
  background: #0a0a0a;
  color: #f5f0e0;
  font-family: 'Quicksand', sans-serif;
  font-weight: 500;
  overflow-x: hidden;
  perspective: 1200px;
  perspective-origin: 50% 50%;
}

/* ---- Canvas & Overlays ---- */
#particle-canvas {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  z-index: 0;
  pointer-events: none;
}

#siren-pulse {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  z-index: 1;
  pointer-events: none;
  opacity: 0;
  transition: opacity 0.3s;
}

#siren-pulse.active-red {
  background: radial-gradient(ellipse at 50% 0%, rgba(196, 30, 58, 0.15) 0%, transparent 70%);
  opacity: 1;
}

#siren-pulse.active-gold {
  background: radial-gradient(ellipse at 50% 0%, rgba(240, 208, 96, 0.1) 0%, transparent 70%);
  opacity: 1;
}

/* ---- Parallax Sections ---- */
.parallax-section {
  position: relative;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  z-index: 2;
  overflow: hidden;
}

.parallax-layer {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
}

.parallax-layer--deep {
  z-index: 0;
}

.parallax-layer--mid {
  z-index: 1;
}

.parallax-layer--front {
  z-index: 2;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  position: relative;
}

/* ---- Gold Dust Background ---- */
.gold-dust {
  width: 100%;
  height: 100%;
  background:
    radial-gradient(1px 1px at 10% 20%, #f0d060 50%, transparent 50%),
    radial-gradient(1px 1px at 30% 60%, #d4a017 50%, transparent 50%),
    radial-gradient(1.5px 1.5px at 50% 10%, #f0d060 50%, transparent 50%),
    radial-gradient(1px 1px at 70% 80%, #8b6914 50%, transparent 50%),
    radial-gradient(1px 1px at 90% 40%, #d4a017 50%, transparent 50%),
    radial-gradient(1.5px 1.5px at 20% 90%, #f0d060 50%, transparent 50%),
    radial-gradient(1px 1px at 80% 15%, #8b6914 50%, transparent 50%),
    radial-gradient(1px 1px at 45% 45%, #f0d060 50%, transparent 50%);
  opacity: 0.4;
}

/* ---- Chain Link Pattern ---- */
.chain-link-pattern {
  width: 100%;
  height: 100%;
  background-image:
    repeating-linear-gradient(
      45deg,
      transparent,
      transparent 30px,
      rgba(139, 105, 20, 0.06) 30px,
      rgba(139, 105, 20, 0.06) 31px
    ),
    repeating-linear-gradient(
      -45deg,
      transparent,
      transparent 30px,
      rgba(139, 105, 20, 0.06) 30px,
      rgba(139, 105, 20, 0.06) 31px
    );
  opacity: 0.5;
}

/* ============================================
   SECTION 1: DISPATCH WALL (Hero)
   ============================================ */
#dispatch-wall {
  background: radial-gradient(ellipse at 50% 50%, #1a1a1a 0%, #0a0a0a 70%);
  min-height: 100vh;
}

/* ---- CSS 3D Inflated Badge ---- */
.badge-container {
  position: relative;
  width: clamp(200px, 40vw, 400px);
  height: clamp(200px, 40vw, 400px);
  margin-bottom: 2rem;
  animation: badgeFloat 6s ease-in-out infinite;
}

@keyframes badgeFloat {
  0%, 100% { transform: translateY(0) rotateY(0deg); }
  25% { transform: translateY(-10px) rotateY(5deg); }
  50% { transform: translateY(0) rotateY(0deg); }
  75% { transform: translateY(-5px) rotateY(-5deg); }
}

.badge {
  width: 100%;
  height: 100%;
  position: relative;
  transform-style: preserve-3d;
}

.badge-outer {
  position: absolute;
  top: 50%;
  left: 50%;
  width: 70%;
  height: 70%;
  transform: translate(-50%, -50%);
  border-radius: 50%;
  background: radial-gradient(ellipse at 30% 30%, #f0d060, #d4a017 40%, #8b6914 80%);
  box-shadow:
    0 0 30px rgba(240, 208, 96, 0.4),
    0 0 60px rgba(212, 160, 23, 0.2),
    inset 0 -5px 15px rgba(139, 105, 20, 0.5),
    inset 0 5px 15px rgba(240, 208, 96, 0.3);
}

.badge-point {
  position: absolute;
  width: 40px;
  height: 40px;
  background: radial-gradient(ellipse at 30% 30%, #f0d060, #d4a017);
  border-radius: 50% 50% 50% 0;
  box-shadow:
    0 0 10px rgba(240, 208, 96, 0.3),
    inset 0 -2px 5px rgba(139, 105, 20, 0.4);
}

.badge-point-1 { top: -5%; left: 50%; transform: translate(-50%, 0) rotate(-45deg); }
.badge-point-2 { top: 10%; right: 5%; transform: rotate(0deg); }
.badge-point-3 { top: 40%; right: -8%; transform: rotate(45deg); }
.badge-point-4 { bottom: 15%; right: 0%; transform: rotate(90deg); }
.badge-point-5 { bottom: -5%; left: 50%; transform: translate(-50%, 0) rotate(135deg); }
.badge-point-6 { bottom: 15%; left: 0%; transform: rotate(180deg); }
.badge-point-7 { top: 40%; left: -8%; transform: rotate(-90deg); }
.badge-point-8 { top: 10%; left: 5%; transform: rotate(-45deg); }

.badge-inner {
  position: absolute;
  top: 50%;
  left: 50%;
  width: 60%;
  height: 60%;
  transform: translate(-50%, -50%);
  border-radius: 50%;
  background: radial-gradient(ellipse at 40% 40%, #1a1a1a, #0a0a0a);
  border: 3px solid #d4a017;
  box-shadow:
    0 0 20px rgba(240, 208, 96, 0.2),
    inset 0 0 20px rgba(0, 0, 0, 0.5);
  display: flex;
  align-items: center;
  justify-content: center;
}

.badge-shield {
  text-align: center;
}

.badge-number {
  display: block;
  font-family: 'Nunito', sans-serif;
  font-weight: 900;
  font-size: clamp(16px, 4vw, 32px);
  color: #f0d060;
  letter-spacing: 0.15em;
  text-shadow: 0 0 10px rgba(240, 208, 96, 0.5);
}

.badge-dept {
  display: block;
  font-family: 'Space Mono', monospace;
  font-weight: 700;
  font-size: clamp(8px, 2vw, 14px);
  color: #d4a017;
  letter-spacing: 0.2em;
  margin-top: 2px;
}

/* ---- Hero Tagline ---- */
.hero-tagline {
  font-family: 'Nunito', sans-serif;
  font-weight: 900;
  font-size: clamp(40px, 10vw, 120px);
  text-transform: uppercase;
  letter-spacing: 0.12em;
  line-height: 1;
  text-align: center;
  color: #f5f0e0;
  text-shadow:
    0 0 40px rgba(240, 208, 96, 0.3),
    0 4px 0 #1a1a1a,
    0 8px 0 #0a0a0a;
  position: relative;
  z-index: 3;
}

.hero-accent {
  color: #f0d060;
  text-shadow:
    0 0 40px rgba(240, 208, 96, 0.5),
    0 4px 0 #8b6914;
}

/* ---- Dispatch Ticker ---- */
.dispatch-ticker {
  margin-top: 2rem;
  padding: 0.75rem 2rem;
  background: rgba(26, 26, 26, 0.8);
  border: 1px solid #8b6914;
  border-radius: 4px;
  display: flex;
  align-items: center;
  gap: 1rem;
  position: relative;
  z-index: 3;
}

.ticker-label {
  font-family: 'Space Mono', monospace;
  font-weight: 700;
  font-size: 0.75rem;
  color: #c41e3a;
  letter-spacing: 0.15em;
  animation: tickerBlink 2s ease-in-out infinite;
}

@keyframes tickerBlink {
  0%, 100% { opacity: 1; }
  50% { opacity: 0.4; }
}

.ticker-text {
  font-family: 'Space Mono', monospace;
  font-weight: 400;
  font-size: clamp(0.6rem, 1.5vw, 0.85rem);
  color: #f0d060;
  letter-spacing: 0.1em;
  overflow: hidden;
  white-space: nowrap;
}

/* ============================================
   SECTION 2: EVIDENCE BOARD
   ============================================ */
#evidence-board {
  background: #0a0a0a;
  padding: 8rem 2rem;
  min-height: 100vh;
}

.section-header {
  text-align: center;
  margin-bottom: 4rem;
  position: relative;
  z-index: 3;
}

.section-title {
  font-family: 'Nunito', sans-serif;
  font-weight: 900;
  font-size: clamp(28px, 5vw, 64px);
  text-transform: uppercase;
  letter-spacing: 0.12em;
  color: #f5f0e0;
  text-shadow: 0 0 30px rgba(240, 208, 96, 0.2);
}

.title-underline {
  width: 80px;
  height: 3px;
  background: linear-gradient(90deg, #8b6914, #f0d060, #8b6914);
  margin: 1rem auto 0;
  border-radius: 2px;
}

.evidence-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 2rem;
  max-width: 1200px;
  margin: 0 auto;
  position: relative;
  z-index: 3;
}

.evidence-card {
  position: relative;
  background: linear-gradient(145deg, #1a1a1a, #0a0a0a);
  border: 1px solid rgba(139, 105, 20, 0.3);
  border-radius: 8px;
  padding: 2rem;
  transition: transform 0.4s cubic-bezier(0.23, 1, 0.32, 1), box-shadow 0.4s;
  transform-style: preserve-3d;
  cursor: default;
}

.evidence-card:hover {
  transform: translateY(-8px) scale(1.02);
  box-shadow:
    0 20px 40px rgba(0, 0, 0, 0.4),
    0 0 30px rgba(240, 208, 96, 0.1);
  border-color: rgba(240, 208, 96, 0.4);
}

.evidence-pin {
  position: absolute;
  top: -8px;
  left: 50%;
  transform: translateX(-50%);
  width: 16px;
  height: 16px;
  background: radial-gradient(circle at 40% 40%, #c41e3a, #8b1a2b);
  border-radius: 50%;
  box-shadow: 0 2px 8px rgba(196, 30, 58, 0.4);
}

.evidence-string {
  position: absolute;
  top: -8px;
  left: 50%;
  width: 1px;
  height: 40px;
  background: rgba(212, 160, 23, 0.3);
  transform-origin: top center;
}

.evidence-string-1 { transform: translateX(-50%) rotate(-15deg); }
.evidence-string-2 { transform: translateX(-50%) rotate(10deg); }
.evidence-string-3 { transform: translateX(-50%) rotate(-5deg); }

.evidence-stamp {
  font-family: 'Nunito', sans-serif;
  font-weight: 900;
  font-size: 0.65rem;
  color: #c41e3a;
  letter-spacing: 0.2em;
  border: 2px solid #c41e3a;
  padding: 0.2rem 0.6rem;
  display: inline-block;
  transform: rotate(-3deg);
  opacity: 0.7;
  margin-bottom: 1rem;
}

.evidence-content h3 {
  font-family: 'Nunito', sans-serif;
  font-weight: 900;
  font-size: 1.3rem;
  color: #f0d060;
  margin-bottom: 0.75rem;
  letter-spacing: 0.05em;
}

.evidence-content p {
  font-family: 'Quicksand', sans-serif;
  font-weight: 500;
  font-size: 0.95rem;
  color: #f5f0e0;
  line-height: 1.6;
  opacity: 0.8;
  margin-bottom: 1rem;
}

.evidence-tag {
  font-family: 'Space Mono', monospace;
  font-size: 0.7rem;
  color: #8b6914;
  letter-spacing: 0.15em;
}

/* ============================================
   SECTION 3: INTERROGATION ROOM
   ============================================ */
#interrogation-room {
  background: #0a0a0a;
  padding: 8rem 2rem;
  min-height: 100vh;
  position: relative;
}

.interrogation-light {
  position: absolute;
  top: 0;
  left: 50%;
  transform: translateX(-50%);
  width: 300px;
  height: 600px;
  background: radial-gradient(ellipse at 50% 0%, rgba(240, 208, 96, 0.08) 0%, transparent 70%);
  pointer-events: none;
  z-index: 1;
}

.interrogation-content {
  max-width: 900px;
  margin: 0 auto;
  display: flex;
  flex-direction: column;
  gap: 3rem;
  position: relative;
  z-index: 3;
}

.interrogation-terminal {
  background: #0a0a0a;
  border: 1px solid #8b6914;
  border-radius: 8px;
  overflow: hidden;
  box-shadow:
    0 0 40px rgba(240, 208, 96, 0.05),
    inset 0 0 40px rgba(0, 0, 0, 0.5);
}

.terminal-header {
  background: #1a1a1a;
  padding: 0.75rem 1rem;
  display: flex;
  align-items: center;
  gap: 0.5rem;
  border-bottom: 1px solid rgba(139, 105, 20, 0.3);
}

.terminal-dot {
  width: 12px;
  height: 12px;
  border-radius: 50%;
}

.terminal-dot-red { background: #c41e3a; }
.terminal-dot-gold { background: #f0d060; }
.terminal-dot-green { background: #4a7c59; }

.terminal-title {
  font-family: 'Space Mono', monospace;
  font-size: 0.75rem;
  color: #8b6914;
  margin-left: 0.5rem;
  letter-spacing: 0.05em;
}

.terminal-body {
  padding: 1.5rem;
  font-family: 'Space Mono', monospace;
  font-size: clamp(0.7rem, 1.2vw, 0.85rem);
  line-height: 1.8;
}

.terminal-line {
  display: flex;
  gap: 0.75rem;
  opacity: 0;
  transform: translateY(10px);
  transition: opacity 0.4s, transform 0.4s;
}

.terminal-line.visible {
  opacity: 1;
  transform: translateY(0);
}

.terminal-prompt {
  color: #f0d060;
  font-weight: 700;
}

.terminal-command {
  color: #f5f0e0;
}

.terminal-output span {
  color: #8b6914;
}

.terminal-warning span {
  color: #c41e3a;
}

.terminal-success span {
  color: #4a7c59;
}

.cursor-blink {
  color: #f0d060;
  animation: cursorBlink 1s step-end infinite;
}

@keyframes cursorBlink {
  0%, 50% { opacity: 1; }
  51%, 100% { opacity: 0; }
}

.interrogation-stats {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 2rem;
}

.stat-card {
  text-align: center;
  padding: 2rem 1rem;
  background: linear-gradient(145deg, #1a1a1a, #0a0a0a);
  border: 1px solid rgba(139, 105, 20, 0.2);
  border-radius: 8px;
  transition: border-color 0.3s, box-shadow 0.3s;
}

.stat-card:hover {
  border-color: rgba(240, 208, 96, 0.4);
  box-shadow: 0 0 20px rgba(240, 208, 96, 0.1);
}

.stat-number {
  font-family: 'Nunito', sans-serif;
  font-weight: 900;
  font-size: clamp(2rem, 5vw, 3.5rem);
  color: #f0d060;
  text-shadow: 0 0 20px rgba(240, 208, 96, 0.3);
}

.stat-label {
  font-family: 'Space Mono', monospace;
  font-weight: 400;
  font-size: 0.7rem;
  color: #8b6914;
  letter-spacing: 0.15em;
  margin-top: 0.5rem;
}

/* ============================================
   SECTION 4: CRYSTALLINE VAULT
   ============================================ */
#crystalline-vault {
  background: linear-gradient(180deg, #0a0a0a 0%, #1a1a1a 50%, #0a0a0a 100%);
  padding: 8rem 2rem;
  min-height: 100vh;
  position: relative;
}

.vault-glow {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  width: 600px;
  height: 600px;
  background: radial-gradient(circle, rgba(240, 208, 96, 0.04) 0%, transparent 60%);
  pointer-events: none;
  z-index: 1;
}

.vault-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 2.5rem;
  max-width: 1100px;
  margin: 0 auto;
  position: relative;
  z-index: 3;
}

.crystal-card {
  position: relative;
  background: linear-gradient(145deg, rgba(26, 26, 26, 0.9), rgba(10, 10, 10, 0.9));
  border: 1px solid rgba(240, 208, 96, 0.15);
  border-radius: 12px;
  overflow: hidden;
  transition: transform 0.5s cubic-bezier(0.23, 1, 0.32, 1), box-shadow 0.5s;
  cursor: default;
}

.crystal-card:hover {
  transform: translateY(-12px) scale(1.03);
  box-shadow:
    0 30px 60px rgba(0, 0, 0, 0.5),
    0 0 40px rgba(240, 208, 96, 0.08);
  border-color: rgba(240, 208, 96, 0.3);
}

.crystal-facet {
  position: absolute;
  pointer-events: none;
}

.crystal-facet-top {
  top: 0;
  left: 0;
  right: 0;
  height: 60%;
  background: linear-gradient(180deg, rgba(240, 208, 96, 0.03) 0%, transparent 100%);
}

.crystal-facet-left {
  top: 0;
  left: 0;
  bottom: 0;
  width: 50%;
  background: linear-gradient(90deg, rgba(240, 208, 96, 0.02) 0%, transparent 100%);
}

.crystal-facet-right {
  top: 0;
  right: 0;
  bottom: 0;
  width: 50%;
  background: linear-gradient(-90deg, rgba(139, 105, 20, 0.02) 0%, transparent 100%);
}

.crystal-body {
  position: relative;
  padding: 2.5rem 2rem;
  z-index: 2;
}

.crystal-icon {
  width: 64px;
  height: 64px;
  margin-bottom: 1.5rem;
}

.crystal-svg {
  width: 100%;
  height: 100%;
  filter: drop-shadow(0 0 8px rgba(240, 208, 96, 0.3));
}

.crystal-body h3 {
  font-family: 'Nunito', sans-serif;
  font-weight: 900;
  font-size: 1.4rem;
  color: #f0d060;
  letter-spacing: 0.05em;
  margin-bottom: 0.75rem;
}

.crystal-body p {
  font-family: 'Quicksand', sans-serif;
  font-weight: 500;
  font-size: 0.95rem;
  color: #f5f0e0;
  line-height: 1.7;
  opacity: 0.75;
}

/* ============================================
   SECTION 5: BADGE-OUT
   ============================================ */
#badge-out {
  background: radial-gradient(ellipse at 50% 50%, #1a1a1a 0%, #0a0a0a 70%);
  padding: 8rem 2rem;
  min-height: 60vh;
  position: relative;
}

.badge-out-glow {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  width: 400px;
  height: 400px;
  background: radial-gradient(circle, rgba(240, 208, 96, 0.06) 0%, transparent 60%);
  pointer-events: none;
}

.badge-out-content {
  position: relative;
  z-index: 3;
  text-align: center;
  max-width: 600px;
  margin: 0 auto;
}

.badge-mini {
  width: 60px;
  height: 60px;
  margin: 0 auto 2rem;
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
}

.badge-mini-star {
  position: absolute;
  width: 100%;
  height: 100%;
  background: radial-gradient(ellipse at 30% 30%, #f0d060, #8b6914);
  border-radius: 50%;
  box-shadow: 0 0 20px rgba(240, 208, 96, 0.3);
}

.badge-mini-text {
  position: relative;
  z-index: 1;
  font-family: 'Nunito', sans-serif;
  font-weight: 900;
  font-size: 1.2rem;
  color: #0a0a0a;
}

.badge-out-title {
  font-family: 'Nunito', sans-serif;
  font-weight: 900;
  font-size: clamp(28px, 5vw, 64px);
  text-transform: uppercase;
  letter-spacing: 0.12em;
  color: #f5f0e0;
  text-shadow: 0 0 30px rgba(240, 208, 96, 0.2);
  margin-bottom: 1rem;
}

.badge-out-subtitle {
  font-family: 'Quicksand', sans-serif;
  font-weight: 500;
  font-size: 1.1rem;
  color: #8b6914;
  margin-bottom: 2rem;
}

.badge-out-divider {
  width: 60px;
  height: 2px;
  background: linear-gradient(90deg, transparent, #d4a017, transparent);
  margin: 0 auto 2rem;
}

.badge-out-info {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 1rem;
  flex-wrap: wrap;
}

.mono-text {
  font-family: 'Space Mono', monospace;
  font-size: 0.75rem;
  color: #8b6914;
  letter-spacing: 0.1em;
}

.mono-text.separator {
  color: rgba(139, 105, 20, 0.4);
}

.radio-static {
  display: flex;
  align-items: flex-end;
  justify-content: center;
  gap: 3px;
  height: 30px;
  margin-top: 3rem;
  opacity: 0.3;
}

.static-line {
  width: 3px;
  background: #8b6914;
  border-radius: 2px;
  animation: staticPulse 0.8s ease-in-out infinite alternate;
}

.static-line:nth-child(1) { height: 8px; animation-delay: 0s; }
.static-line:nth-child(2) { height: 15px; animation-delay: 0.1s; }
.static-line:nth-child(3) { height: 10px; animation-delay: 0.2s; }
.static-line:nth-child(4) { height: 20px; animation-delay: 0.3s; }
.static-line:nth-child(5) { height: 12px; animation-delay: 0.4s; }
.static-line:nth-child(6) { height: 18px; animation-delay: 0.5s; }
.static-line:nth-child(7) { height: 7px; animation-delay: 0.6s; }
.static-line:nth-child(8) { height: 14px; animation-delay: 0.7s; }

@keyframes staticPulse {
  0% { transform: scaleY(1); }
  100% { transform: scaleY(1.8); }
}

/* ============================================
   SCROLL REVEAL ANIMATIONS
   ============================================ */
.evidence-card,
.crystal-card,
.stat-card {
  opacity: 0;
  transform: translateY(40px);
  transition: opacity 0.8s cubic-bezier(0.23, 1, 0.32, 1), transform 0.8s cubic-bezier(0.23, 1, 0.32, 1);
}

.evidence-card.revealed,
.crystal-card.revealed,
.stat-card.revealed {
  opacity: 1;
  transform: translateY(0);
}

.evidence-card:nth-child(2) { transition-delay: 0.1s; }
.evidence-card:nth-child(3) { transition-delay: 0.2s; }
.evidence-card:nth-child(4) { transition-delay: 0.3s; }

.crystal-card:nth-child(2) { transition-delay: 0.15s; }
.crystal-card:nth-child(3) { transition-delay: 0.3s; }

.stat-card:nth-child(2) { transition-delay: 0.1s; }
.stat-card:nth-child(3) { transition-delay: 0.2s; }

/* ============================================
   RESPONSIVE
   ============================================ */
@media (max-width: 768px) {
  .interrogation-stats {
    grid-template-columns: 1fr;
    gap: 1rem;
  }

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

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

  .badge-out-info {
    flex-direction: column;
    gap: 0.5rem;
  }

  .mono-text.separator {
    display: none;
  }

  .dispatch-ticker {
    flex-direction: column;
    text-align: center;
    gap: 0.5rem;
  }
}
