/* ============================================
   WHITE PSYOP UNIT - CYBERPUNK PROPAGANDA CSS
   Military Sci-Fi / Weapon Interface Aesthetic
   ============================================ */

/* === IMPORTS === */
@import url('https://fonts.googleapis.com/css2?family=Quantico:wght@400;700&family=Courier+Prime:wght@400;700&display=swap');

/* === CSS VARIABLES === */
:root {
  /* Color Palette - Clinical Laboratory */
  --bg-primary: #0a0a0a;
  --bg-secondary: #111111;
  --bg-clinical: #f0f0f0;
  --mecha-blue: #00d4ff;
  --mecha-blue-dim: #0099cc;
  --alarm-red: #ff0000;
  --alarm-red-dim: #cc0000;
  --steel-gray: #2a2a2a;
  --titanium: #8a8a8a;
  --white: #ffffff;
  --text-terminal: #00ff00;
  
  /* Typography */
  --font-military: 'Quantico', 'Impact', sans-serif;
  --font-terminal: 'Courier Prime', 'Courier New', monospace;
  
  /* Effects */
  --scanline-opacity: 0.05;
  --glow-red: 0 0 20px rgba(255, 0, 0, 0.8), 0 0 40px rgba(255, 0, 0, 0.5);
  --glow-blue: 0 0 20px rgba(0, 212, 255, 0.8), 0 0 40px rgba(0, 212, 255, 0.5);
}

/* === RESET & BASE === */
*, *::before, *::after {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  font-family: var(--font-terminal);
  background: var(--bg-primary);
  color: var(--white);
  overflow-x: hidden;
  cursor: crosshair;
}

/* === CRT SCANLINE EFFECT === */
.scanlines {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  pointer-events: none;
  z-index: 9999;
  background: repeating-linear-gradient(
    0deg,
    rgba(0, 0, 0, 0.15),
    rgba(0, 0, 0, 0.15) 1px,
    transparent 1px,
    transparent 2px
  );
  animation: scanline-flicker 0.1s infinite;
}

@keyframes scanline-flicker {
  0%, 100% { opacity: var(--scanline-opacity); }
  50% { opacity: calc(var(--scanline-opacity) * 1.5); }
}

/* === CRT GLOW EFFECT === */
.crt-glow {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  pointer-events: none;
  z-index: 9998;
  background: radial-gradient(ellipse at center, transparent 0%, rgba(0,0,0,0.4) 100%);
}

/* === BOOT SEQUENCE OVERLAY === */
.boot-overlay {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: var(--bg-primary);
  z-index: 10000;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  transition: opacity 0.5s ease, visibility 0.5s ease;
}

.boot-overlay.hidden {
  opacity: 0;
  visibility: hidden;
}

.boot-text {
  font-family: var(--font-terminal);
  font-size: 14px;
  color: var(--mecha-blue);
  text-align: left;
  max-width: 600px;
  line-height: 1.8;
}

.boot-text .line {
  opacity: 0;
  animation: boot-line 0.3s forwards;
}

.boot-text .cursor {
  display: inline-block;
  width: 10px;
  height: 16px;
  background: var(--mecha-blue);
  animation: blink 0.5s infinite;
  vertical-align: middle;
}

@keyframes boot-line {
  to { opacity: 1; }
}

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

/* === MAIN CONTAINER === */
.main-container {
  position: relative;
  min-height: 100vh;
}

/* === HERO SECTION === */
.hero {
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  padding: 40px 20px;
  position: relative;
  background: 
    linear-gradient(180deg, rgba(0,0,0,0.9) 0%, rgba(10,10,10,0.95) 100%),
    url('data:image/svg+xml,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 100 100"><circle cx="50" cy="50" r="1" fill="%23ffffff10"/></svg>');
  background-size: cover, 20px 20px;
}

/* Hexagon grid background */
.hero::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='28' height='49' viewBox='0 0 28 49'%3E%3Cg fill-rule='evenodd'%3E%3Cg fill='%23ffffff' fill-opacity='0.03'%3E%3Cpath d='M13.99 9.25l13 7.5v15l-13 7.5L1 31.75v-15l12.99-7.5zM3 17.9v12.7l10.99 6.34 11-6.35V17.9l-11-6.34L3 17.9zM0 15l12.98-7.5V0h-2v6.35L0 12.69v2.3zm0 18.5L12.98 41v8h-2v-6.85L0 35.81v-2.3zM15 0v7.5L27.99 15H28v-2.31h-.01L17 6.35V0h-2zm0 49v-8l12.99-7.5H28v2.31h-.01L17 42.15V49h-2z'/%3E%3C/g%3E%3C/g%3E%3C/svg%3E");
  opacity: 0.5;
  pointer-events: none;
}

/* === MECHA WHALE CONTAINER === */
.mecha-whale-container {
  position: relative;
  width: 400px;
  height: 400px;
  margin-bottom: 40px;
}

.mecha-whale {
  width: 100%;
  height: 100%;
  object-fit: contain;
  filter: drop-shadow(0 0 30px rgba(0, 212, 255, 0.3));
  animation: whale-hover 4s ease-in-out infinite;
}

@keyframes whale-hover {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(-15px); }
}

/* === HERO TEXT === */
.hero-content {
  text-align: center;
  z-index: 10;
}

.hero-headline {
  font-family: var(--font-military);
  font-size: clamp(48px, 10vw, 96px);
  font-weight: 700;
  color: var(--white);
  letter-spacing: 8px;
  text-transform: uppercase;
  margin-bottom: 20px;
  text-shadow: 
    0 0 10px rgba(255,255,255,0.5),
    0 0 20px rgba(255,255,255,0.3);
  animation: glitch 3s infinite;
}

.hero-subheadline {
  font-family: var(--font-terminal);
  font-size: clamp(14px, 2vw, 18px);
  color: var(--titanium);
  max-width: 700px;
  line-height: 1.8;
  margin: 0 auto 40px;
}

.hero-subheadline .highlight {
  color: var(--mecha-blue);
  text-shadow: var(--glow-blue);
}

.hero-subheadline .red {
  color: var(--alarm-red);
  text-shadow: var(--glow-red);
}

/* === GLITCH EFFECT === */
@keyframes glitch {
  0%, 90%, 100% {
    text-shadow: 
      0 0 10px rgba(255,255,255,0.5),
      0 0 20px rgba(255,255,255,0.3);
  }
  91% {
    text-shadow: 
      -2px 0 var(--alarm-red),
      2px 0 var(--mecha-blue);
    transform: translate(2px, 0);
  }
  92% {
    text-shadow: 
      2px 0 var(--alarm-red),
      -2px 0 var(--mecha-blue);
    transform: translate(-2px, 0);
  }
  93% {
    text-shadow: 
      0 0 10px rgba(255,255,255,0.5),
      0 0 20px rgba(255,255,255,0.3);
    transform: translate(0, 0);
  }
}

/* === CTA BUTTONS === */
.cta-container {
  display: flex;
  gap: 20px;
  flex-wrap: wrap;
  justify-content: center;
}

.btn {
  font-family: var(--font-military);
  font-size: 16px;
  font-weight: 700;
  padding: 16px 32px;
  text-decoration: none;
  text-transform: uppercase;
  letter-spacing: 2px;
  position: relative;
  overflow: hidden;
  transition: all 0.3s ease;
  clip-path: polygon(10px 0%, 100% 0%, calc(100% - 10px) 100%, 0% 100%);
}

.btn-red {
  background: var(--alarm-red);
  color: var(--white);
  border: none;
  box-shadow: 0 0 20px rgba(255, 0, 0, 0.5);
}

.btn-red:hover {
  background: #ff3333;
  box-shadow: 0 0 40px rgba(255, 0, 0, 0.8);
  transform: scale(1.05);
}

.btn-white {
  background: transparent;
  color: var(--white);
  border: 2px solid var(--white);
}

.btn-white:hover {
  background: var(--white);
  color: var(--bg-primary);
  box-shadow: 0 0 20px rgba(255, 255, 255, 0.5);
}

/* Button glitch on hover */
.btn::before {
  content: '';
  position: absolute;
  top: 0;
  left: -100%;
  width: 100%;
  height: 100%;
  background: linear-gradient(90deg, transparent, rgba(255,255,255,0.2), transparent);
  transition: left 0.5s ease;
}

.btn:hover::before {
  left: 100%;
}

/* === SECTION STYLES === */
section {
  padding: 100px 20px;
  position: relative;
}

.section-title {
  font-family: var(--font-military);
  font-size: clamp(32px, 5vw, 48px);
  color: var(--white);
  text-align: center;
  margin-bottom: 60px;
  letter-spacing: 4px;
  text-transform: uppercase;
}

.section-title::after {
  content: '';
  display: block;
  width: 100px;
  height: 3px;
  background: var(--mecha-blue);
  margin: 20px auto 0;
  box-shadow: var(--glow-blue);
}

/* === LORE SECTION === */
.lore-section {
  background: var(--bg-secondary);
}

.lore-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 40px;
  max-width: 1200px;
  margin: 0 auto;
}

.lore-card {
  background: var(--bg-primary);
  border: 1px solid var(--steel-gray);
  padding: 40px;
  position: relative;
  transition: all 0.3s ease;
}

.lore-card::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 4px;
}

.lore-card.failure::before {
  background: var(--mecha-blue);
  box-shadow: var(--glow-blue);
}

.lore-card.upgrade::before {
  background: var(--alarm-red);
  box-shadow: var(--glow-red);
}

.lore-card:hover {
  transform: translateY(-5px);
  border-color: var(--mecha-blue);
}

.lore-status {
  font-family: var(--font-terminal);
  font-size: 12px;
  margin-bottom: 20px;
  padding: 8px 16px;
  display: inline-block;
}

.lore-status.failed {
  background: rgba(255, 0, 0, 0.2);
  color: var(--alarm-red);
  border: 1px solid var(--alarm-red);
}

.lore-status.online {
  background: rgba(0, 212, 255, 0.2);
  color: var(--mecha-blue);
  border: 1px solid var(--mecha-blue);
  animation: status-blink 1s infinite;
}

@keyframes status-blink {
  0%, 100% { opacity: 1; }
  50% { opacity: 0.7; }
}

.lore-subject {
  font-family: var(--font-military);
  font-size: 24px;
  color: var(--white);
  margin-bottom: 15px;
}

.lore-text {
  font-family: var(--font-terminal);
  font-size: 14px;
  color: var(--titanium);
  line-height: 1.8;
}

.lore-image {
  width: 100%;
  aspect-ratio: 1 / 1;
  background: var(--steel-gray);
  margin-bottom: 20px;
  display: flex;
  justify-content: center;
  align-items: center;
  position: relative;
  overflow: hidden;
}

.lore-image.dying {
  filter: grayscale(100%) opacity(0.7);
}

.lore-image.mecha {
  border: 2px solid var(--mecha-blue);
  box-shadow: inset 0 0 30px rgba(0, 212, 255, 0.3);
}

/* === MISSION SECTION === */
.mission-section {
  background: 
    linear-gradient(180deg, var(--bg-primary) 0%, var(--bg-secondary) 100%);
  text-align: center;
}

.mission-content {
  max-width: 800px;
  margin: 0 auto;
}

.mission-headline {
  font-family: var(--font-military);
  font-size: clamp(36px, 6vw, 64px);
  color: var(--white);
  margin-bottom: 30px;
  letter-spacing: 6px;
}

.mission-text {
  font-family: var(--font-terminal);
  font-size: 16px;
  color: var(--titanium);
  line-height: 2;
}

.mission-text .highlight {
  color: var(--mecha-blue);
}

/* === TOKENOMICS SECTION === */
.tokenomics-section {
  background: var(--bg-primary);
}

.spec-sheet {
  max-width: 800px;
  margin: 0 auto;
  background: var(--bg-secondary);
  border: 2px solid var(--mecha-blue);
  position: relative;
  overflow: hidden;
}

.spec-sheet::before {
  content: 'WEAPON SPECIFICATIONS';
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  padding: 15px;
  background: var(--mecha-blue);
  color: var(--bg-primary);
  font-family: var(--font-military);
  font-size: 14px;
  letter-spacing: 4px;
  text-align: center;
}

.spec-sheet-content {
  padding: 80px 40px 40px;
}

.spec-item {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 20px 0;
  border-bottom: 1px solid var(--steel-gray);
  font-family: var(--font-terminal);
}

.spec-item:last-child {
  border-bottom: none;
}

.spec-label {
  color: var(--titanium);
  font-size: 14px;
  letter-spacing: 2px;
}

.spec-value {
  color: var(--white);
  font-size: 18px;
  font-weight: 700;
}

.spec-value.highlight {
  color: var(--mecha-blue);
  text-shadow: var(--glow-blue);
}

.spec-value.success {
  color: var(--text-terminal);
}

/* === FOOTER === */
footer {
  background: var(--bg-secondary);
  border-top: 1px solid var(--steel-gray);
  padding: 40px 20px;
}

/* Marquee */
.marquee-container {
  overflow: hidden;
  background: var(--bg-primary);
  padding: 15px 0;
  margin-bottom: 40px;
  border-top: 1px solid var(--alarm-red);
  border-bottom: 1px solid var(--alarm-red);
}

.marquee {
  display: flex;
  white-space: nowrap;
  animation: marquee 20s linear infinite;
}

.marquee-text {
  font-family: var(--font-military);
  font-size: 14px;
  color: var(--alarm-red);
  letter-spacing: 4px;
  padding-right: 50px;
  text-shadow: var(--glow-red);
}

@keyframes marquee {
  0% { transform: translateX(0); }
  100% { transform: translateX(-50%); }
}

/* Comm Links */
.comm-links {
  max-width: 600px;
  margin: 0 auto 40px;
  text-align: center;
}

.comm-title {
  font-family: var(--font-military);
  font-size: 18px;
  color: var(--titanium);
  letter-spacing: 4px;
  margin-bottom: 20px;
}

.comm-buttons {
  display: flex;
  gap: 20px;
  justify-content: center;
  flex-wrap: wrap;
}

.comm-btn {
  font-family: var(--font-terminal);
  font-size: 12px;
  padding: 12px 24px;
  background: transparent;
  border: 1px solid var(--titanium);
  color: var(--titanium);
  text-decoration: none;
  letter-spacing: 2px;
  transition: all 0.3s ease;
}

.comm-btn:hover {
  border-color: var(--mecha-blue);
  color: var(--mecha-blue);
  box-shadow: var(--glow-blue);
}

/* Contract Address */
.contract-display {
  text-align: center;
  padding: 30px;
  background: var(--bg-primary);
  border: 2px solid var(--alarm-red);
  max-width: 800px;
  margin: 0 auto;
}

.contract-label {
  font-family: var(--font-military);
  font-size: 12px;
  color: var(--titanium);
  letter-spacing: 4px;
  margin-bottom: 10px;
}

.contract-address {
  font-family: var(--font-terminal);
  font-size: clamp(12px, 2vw, 18px);
  color: var(--alarm-red);
  text-shadow: var(--glow-red);
  word-break: break-all;
  cursor: pointer;
  transition: all 0.3s ease;
}

.contract-address:hover {
  color: #ff3333;
  text-shadow: 0 0 30px rgba(255, 0, 0, 1);
}

.copy-hint {
  font-size: 10px;
  color: var(--titanium);
  margin-top: 10px;
}

/* === SCROLLBAR === */
::-webkit-scrollbar {
  width: 8px;
}

::-webkit-scrollbar-track {
  background: var(--bg-primary);
}

::-webkit-scrollbar-thumb {
  background: var(--mecha-blue);
  border-radius: 0;
}

::-webkit-scrollbar-thumb:hover {
  background: var(--alarm-red);
}

/* === RESPONSIVE === */
@media (max-width: 768px) {
  .mecha-whale-container {
    width: 280px;
    height: 280px;
  }
  
  .hero-headline {
    letter-spacing: 4px;
  }
  
  .cta-container {
    flex-direction: column;
    align-items: center;
  }
  
  .btn {
    width: 100%;
    max-width: 280px;
    text-align: center;
  }
  
  .lore-grid {
    grid-template-columns: 1fr;
  }
  
  .spec-sheet-content {
    padding: 80px 20px 20px;
  }
  
  .spec-item {
    flex-direction: column;
    gap: 10px;
    text-align: center;
  }
}

/* === UTILITY CLASSES === */
.hidden {
  display: none !important;
}

.fade-in {
  animation: fadeIn 1s ease forwards;
}

@keyframes fadeIn {
  from { opacity: 0; transform: translateY(20px); }
  to { opacity: 1; transform: translateY(0); }
}

/* === HOVER GLITCH FOR IMAGES === */
.glitch-hover {
  position: relative;
}

.glitch-hover:hover {
  animation: img-glitch 0.3s linear;
}

@keyframes img-glitch {
  0% { transform: translate(0); filter: hue-rotate(0deg); }
  20% { transform: translate(-2px, 2px); filter: hue-rotate(90deg); }
  40% { transform: translate(2px, -2px); filter: hue-rotate(180deg); }
  60% { transform: translate(-2px, -2px); filter: hue-rotate(270deg); }
  80% { transform: translate(2px, 2px); filter: hue-rotate(360deg); }
  100% { transform: translate(0); filter: hue-rotate(0deg); }
}
