/* ═══════════════════════════════════════
   KUCYKON // MECHA 2027 — STYLE
   Magic Mode Locked | EVA Loader | Glitch Animations | Kawaii Hearts
   ═══════════════════════════════════════ */

:root {
  --bg-deep: #0a0c14;
  --bg-dark: #0f1225;
  --bg-card: rgba(15, 18, 37, 0.85);
  --border-metal: rgba(255, 255, 255, 0.06);

  /* Magic mode palette */
  --neon-cyan: #00f5ff;
  --neon-purple: #b24bff;
  --neon-magenta: #ff00aa;
  --brass: #daa520;
  --glow-cyan: 0 0 12px rgba(0, 245, 255, 0.3);
  --glow-purple: 0 0 16px rgba(178, 75, 255, 0.4);

  --text-primary: #e8ecf4;
  --text-secondary: #9aa3b8;
  --text-muted: #5a6380;

  --font-display: 'Orbitron', sans-serif;
  --font-body: 'Rajdhani', sans-serif;

  --section-pad: clamp(64px, 10vw, 120px) 0;
}

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

html { scroll-behavior: smooth; font-size: 16px; }

body {
  background: var(--bg-deep);
  color: var(--text-primary);
  font-family: var(--font-body);
  line-height: 1.6;
  overflow-x: hidden;
}

/* ═══════════════════════════════════════
   EVA-STYLE LOADER
   ═══════════════════════════════════════ */
.eva-loader {
  position: fixed;
  inset: 0;
  z-index: 99999;
  display: flex;
  align-items: center;
  justify-content: center;
  background: #000;
  transition: opacity 0.8s ease, visibility 0.8s ease;
}

.eva-loader.hidden {
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
}

.loader-bg {
  position: absolute;
  inset: 0;
  background:
    radial-gradient(ellipse at center, rgba(178, 75, 255, 0.06) 0%, transparent 60%),
    linear-gradient(180deg, #000 0%, #0a0c14 100%);
}

.loader-bg::after {
  content: '';
  position: absolute;
  inset: 0;
  background: repeating-linear-gradient(
    0deg,
    transparent,
    transparent 2px,
    rgba(0, 0, 0, 0.15) 2px,
    rgba(0, 0, 0, 0.15) 4px
  );
}

.loader-content {
  position: relative;
  z-index: 2;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 16px;
  padding: 40px;
  max-width: 520px;
  width: 90%;
}

/* Hexagonal frame */
.hex-frame {
  position: relative;
  width: 120px;
  height: 120px;
  margin-bottom: 8px;
}

.hex-svg {
  width: 100%;
  height: 100%;
  animation: hex-rotate 8s linear infinite;
}

.hex-outer { animation: hex-pulse 3s ease-in-out infinite; }
.hex-inner { animation: hex-pulse 3s ease-in-out infinite 0.5s; }
.hex-core { animation: hex-pulse 3s ease-in-out infinite 1s; }

@keyframes hex-rotate {
  from { transform: rotate(0deg); }
  to { transform: rotate(360deg); }
}

@keyframes hex-pulse {
  0%, 100% { opacity: 0.4; stroke-width: 1; }
  50% { opacity: 1; stroke-width: 2; }
}

/* EVA Cross */
.eva-cross {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  display: flex;
  gap: 4px;
}

.eva-cross span {
  width: 2px;
  height: 30px;
  background: var(--neon-magenta);
  box-shadow: 0 0 8px rgba(255, 0, 170, 0.6);
}

.eva-cross span:first-child { transform: rotate(45deg); }
.eva-cross span:last-child { transform: rotate(-45deg); }

/* Loader text */
.loader-title {
  font-family: var(--font-display);
  font-size: clamp(18px, 4vw, 28px);
  font-weight: 900;
  letter-spacing: 6px;
  color: #fff;
  text-shadow: 0 0 20px rgba(178, 75, 255, 0.5), 3px 3px 0 rgba(0, 0, 0, 0.8);
  position: relative;
}

.loader-title::before {
  content: attr(data-text);
  position: absolute;
  inset: 0;
  color: var(--neon-magenta);
  opacity: 0.3;
  animation: glitch-shift 2s infinite;
}

@keyframes glitch-shift {
  0%, 90%, 100% { transform: translate(0); }
  92% { transform: translate(-3px, 1px); }
  94% { transform: translate(3px, -1px); }
  96% { transform: translate(-2px, 2px); }
}

.loader-subtitle {
  font-family: var(--font-display);
  font-size: clamp(8px, 1.5vw, 10px);
  letter-spacing: 3px;
  color: var(--text-muted);
  text-align: center;
}

/* Progress bar */
.loader-progress-wrap {
  width: 100%;
  height: 4px;
  background: rgba(255, 255, 255, 0.06);
  border-radius: 2px;
  overflow: hidden;
  position: relative;
}

.loader-progress-bar {
  height: 100%;
  width: 0%;
  background: linear-gradient(90deg, var(--neon-purple), var(--neon-magenta));
  border-radius: 2px;
  transition: width 0.3s ease;
  box-shadow: 0 0 10px rgba(178, 75, 255, 0.4);
}

.loader-percent {
  font-family: var(--font-display);
  font-size: 14px;
  color: var(--neon-purple);
  letter-spacing: 2px;
}

/* System messages */
.loader-messages {
  display: flex;
  flex-direction: column;
  gap: 4px;
  margin-top: 8px;
}

.msg-line {
  font-family: var(--font-display);
  font-size: clamp(7px, 1.2vw, 9px);
  letter-spacing: 2px;
  color: var(--text-muted);
  opacity: 0;
  animation: msg-fade-in 0.5s ease forwards;
}

.msg-line:nth-child(1) { animation-delay: 0.8s; }
.msg-line:nth-child(2) { animation-delay: 1.6s; }
.msg-line:nth-child(3) { animation-delay: 2.4s; }

@keyframes msg-fade-in {
  from { opacity: 0; transform: translateY(5px); }
  to { opacity: 1; transform: translateY(0); }
}

/* Warning flash */
.loader-warning {
  font-family: var(--font-display);
  font-size: clamp(7px, 1.2vw, 9px);
  letter-spacing: 3px;
  color: var(--neon-magenta);
  text-shadow: 0 0 8px rgba(255, 0, 170, 0.4);
  padding: 6px 16px;
  border: 1px solid rgba(255, 0, 170, 0.3);
  background: rgba(255, 0, 170, 0.05);
  animation: warning-blink 1.5s ease-in-out infinite;
}

@keyframes warning-blink {
  0%, 100% { opacity: 1; }
  50% { opacity: 0.4; }
}

/* ═══════════════════════════════════════
   RETRO OVERLAYS
   ═══════════════════════════════════════ */
.retro-overlay {
  position: fixed;
  inset: 0;
  background: linear-gradient(180deg, rgba(255, 200, 100, 0.03) 0%, transparent 40%, rgba(100, 50, 150, 0.02) 100%);
  mix-blend-mode: overlay;
  pointer-events: none;
  z-index: 9996;
}

.halftone-overlay {
  position: fixed;
  inset: 0;
  background-image: radial-gradient(circle, rgba(0, 0, 0, 0.04) 1px, transparent 1px);
  background-size: 4px 4px;
  pointer-events: none;
  z-index: 9995;
}

.speed-lines {
  position: fixed;
  inset: 0;
  pointer-events: none;
  z-index: 9994;
  opacity: 0.02;
  background: repeating-conic-gradient(from 0deg at 50% 50%, transparent 0deg, rgba(255, 255, 255, 0.5) 0.5deg, transparent 1deg);
}

/* Film grain */
body::before {
  content: '';
  position: fixed;
  inset: -50%;
  width: 200%;
  height: 200%;
  background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 256 256' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='noise'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.85' numOctaves='4' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23noise)' opacity='0.5'/%3E%3C/svg%3E");
  background-size: 256px 256px;
  opacity: 0.04;
  pointer-events: none;
  z-index: 9997;
  animation: grain-shift 0.15s steps(3) infinite;
}

@keyframes grain-shift {
  0%   { transform: translate(0, 0); }
  33%  { transform: translate(-8px, 6px); }
  66%  { transform: translate(5px, -4px); }
  100% { transform: translate(0, 0); }
}

/* CRT scanlines + vignette */
body::after {
  content: '';
  position: fixed;
  inset: 0;
  background:
    repeating-linear-gradient(0deg, transparent, transparent 1px, rgba(0,0,0,0.06) 1px, rgba(0,0,0,0.06) 2px),
    radial-gradient(ellipse at center, transparent 50%, rgba(30, 15, 5, 0.4) 100%);
  pointer-events: none;
  z-index: 9998;
}

/* ═══════════════════════════════════════
   PARTICLE CANVAS
   ═══════════════════════════════════════ */
#particles {
  position: fixed;
  inset: 0;
  z-index: 1;
  pointer-events: none;
}

/* ═══════════════════════════════════════
   FLOATING HEARTS (KAWAII)
   ═══════════════════════════════════════ */
.floating-hearts {
  position: fixed;
  inset: 0;
  z-index: 2;
  pointer-events: none;
  overflow: hidden;
}

.heart {
  position: absolute;
  font-size: clamp(14px, 2vw, 24px);
  opacity: 0;
  animation: heart-float linear infinite;
  filter: drop-shadow(0 0 6px rgba(255, 0, 170, 0.3));
}

.h1  { left: 5%;  color: var(--neon-magenta); animation-duration: 14s; animation-delay: 0s;   font-size: 20px; }
.h2  { left: 12%; color: var(--neon-purple);  animation-duration: 18s; animation-delay: 2s;   font-size: 16px; }
.h3  { left: 25%; color: #ff69b4;             animation-duration: 12s; animation-delay: 4s;   font-size: 22px; }
.h4  { left: 38%; color: var(--neon-magenta); animation-duration: 16s; animation-delay: 1s;   font-size: 18px; }
.h5  { left: 50%; color: #ff1493;             animation-duration: 20s; animation-delay: 6s;   font-size: 14px; }
.h6  { left: 62%; color: var(--neon-purple);  animation-duration: 15s; animation-delay: 3s;   font-size: 24px; }
.h7  { left: 75%; color: #ff69b4;             animation-duration: 13s; animation-delay: 5s;   font-size: 18px; }
.h8  { left: 85%; color: var(--neon-magenta); animation-duration: 17s; animation-delay: 2.5s; font-size: 16px; }
.h9  { left: 92%; color: #ff1493;             animation-duration: 19s; animation-delay: 7s;   font-size: 20px; }
.h10 { left: 8%;  color: var(--neon-purple);  animation-duration: 11s; animation-delay: 1.5s; font-size: 26px; }

@keyframes heart-float {
  0%   { transform: translateY(110vh) rotate(0deg) scale(0.5); opacity: 0; }
  5%   { opacity: 0.7; }
  50%  { opacity: 0.4; }
  95%  { opacity: 0.1; }
  100% { transform: translateY(-10vh) rotate(360deg) scale(1); opacity: 0; }
}

/* ═══════════════════════════════════════
   KAWAII SPARKLES
   ═══════════════════════════════════════ */
.kawaii-deco {
  position: fixed;
  inset: 0;
  z-index: 2;
  pointer-events: none;
}

.sparkle {
  position: absolute;
  font-size: clamp(10px, 1.5vw, 18px);
  color: var(--neon-purple);
  opacity: 0;
  animation: sparkle-twinkle ease-in-out infinite;
}

.s1 { top: 10%; left: 8%;  animation-duration: 3s; animation-delay: 0s; }
.s2 { top: 25%; right: 12%; animation-duration: 4s; animation-delay: 1s; color: var(--neon-magenta); }
.s3 { top: 60%; left: 5%;  animation-duration: 3.5s; animation-delay: 2s; }
.s4 { top: 75%; right: 8%; animation-duration: 4.5s; animation-delay: 0.5s; color: var(--neon-cyan); }
.s5 { top: 40%; left: 90%; animation-duration: 3s;   animation-delay: 1.5s; color: #ff69b4; }

@keyframes sparkle-twinkle {
  0%, 100% { opacity: 0; transform: scale(0.3) rotate(0deg); }
  20%      { opacity: 0.8; transform: scale(1) rotate(72deg); }
  50%      { opacity: 0.4; transform: scale(0.6) rotate(144deg); }
  80%      { opacity: 0.9; transform: scale(1.1) rotate(216deg); }
}

/* ═══════════════════════════════════════
   CORNER HEARTS (HERO SECTION)
   ═══════════════════════════════════════ */
.corner-heart {
  position: absolute;
  font-size: clamp(20px, 3vw, 36px);
  z-index: 4;
  opacity: 0.15;
  animation: corner-pulse 4s ease-in-out infinite;
}

.corner-tl { top: 20px; left: 20px; color: var(--neon-magenta); }
.corner-tr { top: 20px; right: 20px; color: var(--neon-purple); animation-delay: 1s; }
.corner-bl { bottom: 80px; left: 20px; color: #ff69b4; animation-delay: 2s; }
.corner-br { bottom: 80px; right: 20px; color: var(--neon-magenta); animation-delay: 3s; }

@keyframes corner-pulse {
  0%, 100% { opacity: 0.15; transform: scale(1) rotate(0deg); }
  50%      { opacity: 0.35; transform: scale(1.2) rotate(10deg); }
}

/* ═══════════════════════════════════════
   HERO FADE-IN ANIMATION
   ═══════════════════════════════════════ */
@keyframes hero-fade-in {
  from { opacity: 0; transform: translateY(30px); }
  to { opacity: 1; transform: translateY(0); }
}

.hero-content > * {
  animation: hero-fade-in 0.8s ease forwards;
  opacity: 0;
}

.hero-content > *:nth-child(1) { animation-delay: 0.2s; }
.hero-content > *:nth-child(2) { animation-delay: 0.4s; }
.hero-content > *:nth-child(3) { animation-delay: 0.6s; }
.hero-content > *:nth-child(4) { animation-delay: 0.8s; }
.hero-content > *:nth-child(5) { animation-delay: 1s; }
.hero-content > *:nth-child(6) { animation-delay: 1.2s; }

/* ═══════════════════════════════════════
   GLITCH EFFECT (ENHANCED)
   ═══════════════════════════════════════ */
.glitch { position: relative; }

.glitch::before, .glitch::after {
  content: attr(data-text);
  position: absolute;
  inset: 0;
  pointer-events: none;
}

.glitch::before {
  color: var(--neon-magenta);
  opacity: 0.15;
  animation: glitch-before 4s infinite, glitch-heavy 8s infinite;
}

.glitch::after {
  color: var(--neon-cyan);
  opacity: 0.15;
  animation: glitch-after 4s infinite;
}

@keyframes glitch-before {
  0%, 92%, 100% { transform: translate(0); }
  93% { transform: translate(-3px, 1px); }
  95% { transform: translate(2px, -1px); }
}

@keyframes glitch-after {
  0%, 88%, 100% { transform: translate(0); }
  89% { transform: translate(3px, -1px); }
  91% { transform: translate(-2px, 2px); }
}

/* Enhanced glitch — occasional heavy distortion */
@keyframes glitch-heavy {
  0%, 96%, 100% { clip-path: inset(0 0 0 0); opacity: 0; }
  97% { clip-path: inset(20% 0 60% 0); transform: translate(-5px, 2px); opacity: 0.4; }
  98% { clip-path: inset(50% 0 10% 0); transform: translate(4px, -3px); opacity: 0.3; }
  99% { clip-path: inset(70% 0 5% 0); transform: translate(-2px, 1px); opacity: 0.2; }
}

/* ═══════════════════════════════════════
   HERO SECTION
   ═══════════════════════════════════════ */
.hero-section {
  position: relative;
  min-height: 100svh;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
  z-index: 2;
}

/* Background grid (magic mode) */
.hero-bg-grid {
  position: absolute;
  inset: 0;
  background-image:
    linear-gradient(rgba(178, 75, 255, 0.06) 1px, transparent 1px),
    linear-gradient(90deg, rgba(178, 75, 255, 0.06) 1px, transparent 1px);
  background-size: 60px 60px;
  animation: grid-scroll 30s linear infinite;
}

@keyframes grid-scroll {
  from { transform: translate(0, 0); }
  to { transform: translate(60px, 60px); }
}

/* Metal plates */
.hero-metal-plates { position: absolute; inset: 0; z-index: 0; overflow: hidden; }

.metal-plate {
  position: absolute;
  background: linear-gradient(135deg, rgba(218, 165, 32, 0.04), rgba(0, 245, 255, 0.02));
  border: 1px solid var(--border-metal);
}

.metal-plate::before {
  content: '';
  position: absolute;
  inset: 0;
  background-image: repeating-linear-gradient(0deg, transparent, transparent 48px, rgba(255,255,255,0.01) 48px, rgba(255,255,255,0.01) 49px);
}

.plate-1 { width: 350px; height: 500px; top: -80px; right: -60px; transform: rotate(5deg); }
.plate-2 { width: 400px; height: 300px; bottom: -40px; left: -80px; transform: rotate(-3deg); }
.plate-3 { width: 220px; height: 350px; top: 30%; right: 8%; transform: rotate(8deg); }

/* Hero content */
.hero-content {
  position: relative;
  z-index: 3;
  text-align: center;
  padding: clamp(40px, 8vw, 80px) clamp(16px, 4vw, 48px);
  max-width: 900px;
}

.hero-badge {
  display: inline-block;
  font-family: var(--font-display);
  font-size: clamp(8px, 1.2vw, 10px);
  letter-spacing: 4px;
  color: var(--neon-purple);
  text-shadow: var(--glow-purple);
  padding: 6px 20px;
  border: 1px solid rgba(178, 75, 255, 0.3);
  background: rgba(178, 75, 255, 0.05);
  margin-bottom: clamp(16px, 3vw, 32px);
}

.hero-title {
  display: flex;
  flex-direction: column;
  gap: 4px;
  margin-bottom: clamp(12px, 2vw, 24px);
}

.title-main {
  font-family: var(--font-display);
  font-size: clamp(40px, 14vw, 96px);
  font-weight: 900;
  letter-spacing: 8px;
  color: #fff;
  text-shadow: 3px 3px 0 rgba(0, 0, 0, 0.5), var(--glow-purple);
}

.title-accent {
  font-family: var(--font-display);
  font-size: clamp(24px, 9vw, 56px);
  font-weight: 700;
  letter-spacing: 10px;
  color: var(--neon-purple);
  text-shadow: var(--glow-purple), 3px 3px 0 rgba(0, 0, 0, 0.5);
}

.hero-subtitle {
  font-size: clamp(16px, 2.5vw, 22px);
  color: var(--text-secondary);
  margin-bottom: clamp(16px, 3vw, 32px);
  letter-spacing: 1px;
}

/* Lore block */
.hero-lore {
  max-width: 640px;
  margin: 0 auto clamp(24px, 4vw, 48px);
  padding: clamp(16px, 3vw, 28px) clamp(20px, 4vw, 40px);
  background: rgba(178, 75, 255, 0.04);
  border: 1px solid rgba(178, 75, 255, 0.15);
  position: relative;
}

.hero-lore::before {
  content: '';
  position: absolute;
  top: -1px; left: 20%; right: 20%;
  height: 1px;
  background: linear-gradient(90deg, transparent, var(--neon-purple), transparent);
}

.hero-lore p {
  font-size: clamp(14px, 2vw, 18px);
  color: var(--text-primary);
  line-height: 1.7;
}

.lore-accent {
  margin-top: 8px !important;
  font-weight: 600;
  color: var(--neon-purple) !important;
  text-shadow: var(--glow-purple);
  font-size: clamp(15px, 2.2vw, 20px) !important;
}

/* Status indicators */
.mecha-status-row {
  display: flex;
  justify-content: center;
  gap: clamp(16px, 3vw, 40px);
  margin-bottom: clamp(24px, 4vw, 48px);
  flex-wrap: wrap;
}

.status-indicator {
  display: flex;
  align-items: center;
  gap: 8px;
  font-family: var(--font-display);
  font-size: clamp(7px, 1.2vw, 9px);
  letter-spacing: 2px;
  color: var(--text-muted);
}

.status-dot {
  width: 6px;
  height: 6px;
  border-radius: 50%;
}

.status-dot.online {
  background: #4ade80;
  box-shadow: 0 0 6px rgba(74, 222, 128, 0.6);
  animation: status-pulse 2s ease-in-out infinite;
}

.status-dot.standby {
  background: var(--brass);
  box-shadow: 0 0 6px rgba(218, 165, 32, 0.4);
}

@keyframes status-pulse {
  0%, 100% { opacity: 1; }
  50% { opacity: 0.4; }
}

/* Social media area */
.social-media-area {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: clamp(12px, 3vw, 28px);
  padding-top: clamp(16px, 3vw, 32px);
  border-top: 1px solid var(--border-metal);
}

.social-link {
  display: flex;
  align-items: center;
  justify-content: center;
  width: clamp(36px, 5vw, 48px);
  height: clamp(36px, 5vw, 48px);
  transition: transform 0.3s ease, filter 0.3s ease;
}

.social-link svg {
  width: 100%;
  height: 100%;
  fill: rgba(178, 75, 255, 0.6);
  transition: fill 0.3s ease, filter 0.3s ease;
}

.social-link:hover {
  transform: scale(1.2) translateY(-4px);
}

.social-link:hover svg {
  fill: rgba(178, 75, 255, 1);
  filter: drop-shadow(0 0 12px rgba(178, 75, 255, 0.6));
}

/* Stats */
.hero-stats {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: clamp(20px, 4vw, 48px);
  padding-top: clamp(16px, 3vw, 32px);
  border-top: 1px solid var(--border-metal);
}

.stat-item { text-align: center; }

.stat-value {
  font-family: var(--font-display);
  font-size: clamp(28px, 6vw, 48px);
  font-weight: 900;
  color: var(--neon-purple);
  text-shadow: var(--glow-purple);
}

.stat-label {
  font-family: var(--font-display);
  font-size: clamp(7px, 1.2vw, 10px);
  letter-spacing: 3px;
  color: var(--text-muted);
  margin-top: 4px;
}

.stat-divider {
  width: 1px;
  height: 50px;
  background: linear-gradient(180deg, transparent, var(--border-metal), transparent);
}

/* Sliding blocks decoration */
.sliding-blocks {
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  height: 60px;
  z-index: 1;
  overflow: hidden;
}

.slide-block {
  position: absolute;
  bottom: 0;
  width: 30%;
  height: 100%;
  background: linear-gradient(180deg, transparent, rgba(178, 75, 255, 0.04));
  border-top: 1px solid var(--border-metal);
}

.block-a { left: 0; animation: slide-a 6s ease-in-out infinite; }
.block-b { left: 30%; animation: slide-b 8s ease-in-out infinite; }
.block-c { left: 60%; animation: slide-c 7s ease-in-out infinite; }

@keyframes slide-a { 0%, 100% { transform: translateX(0); } 50% { transform: translateX(20px); } }
@keyframes slide-b { 0%, 100% { transform: translateX(0); } 50% { transform: translateX(-15px); } }
@keyframes slide-c { 0%, 100% { transform: translateX(0); } 50% { transform: translateX(25px); } }

/* Scroll indicator */
.hero-scroll-indicator {
  position: absolute;
  bottom: clamp(24px, 4vw, 48px);
  left: 50%;
  transform: translateX(-50%);
  z-index: 3;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 8px;
  font-family: var(--font-display);
  font-size: 9px;
  letter-spacing: 3px;
  color: var(--text-muted);
  animation: scroll-bounce 2s ease-in-out infinite;
}

.scroll-arrow {
  width: 16px;
  height: 16px;
  border-right: 1px solid var(--neon-purple);
  border-bottom: 1px solid var(--neon-purple);
  transform: rotate(45deg);
  box-shadow: 3px 3px 5px rgba(178, 75, 255, 0.2);
}

@keyframes scroll-bounce {
  0%, 100% { transform: translateX(-50%) translateY(0); }
  50% { transform: translateX(-50%) translateY(8px); }
}

/* ═══════════════════════════════════════
   FOOTER
   ═══════════════════════════════════════ */
.mecha-footer {
  position: relative;
  z-index: 2;
  border-top: 1px solid var(--border-metal);
  background: rgba(10, 12, 20, 0.95);
}

.footer-frame {
  max-width: 1400px;
  margin: 0 auto;
  padding: clamp(32px, 5vw, 60px) clamp(16px, 3vw, 48px);
}

.footer-content { text-align: center; }

.footer-logo {
  font-family: var(--font-display);
  font-size: 24px;
  font-weight: 900;
  letter-spacing: 4px;
  color: var(--text-primary);
  margin-bottom: 8px;
}

.footer-logo span {
  color: var(--neon-purple);
  text-shadow: var(--glow-purple);
}

.footer-text {
  font-size: 15px;
  color: var(--text-secondary);
  margin-bottom: 24px;
}

.footer-divider {
  width: 60px;
  height: 1px;
  background: linear-gradient(90deg, transparent, var(--brass), transparent);
  margin: 24px auto;
}

.footer-copy {
  font-size: 12px;
  color: var(--text-muted);
}

/* ═══════════════════════════════════════
   SELECTION & SCROLLBAR
   ═══════════════════════════════════════ */
::selection {
  background: rgba(178, 75, 255, 0.3);
  color: var(--text-primary);
}

::-webkit-scrollbar { width: 8px; }
::-webkit-scrollbar-track { background: var(--bg-deep); }
::-webkit-scrollbar-thumb {
  background: linear-gradient(180deg, var(--brass), var(--neon-purple));
  border-radius: 4px;
}

/* ═══════════════════════════════════════
   CURSOR GLOW (PRESS EFFECT)
   ═══════════════════════════════════════ */
.cursor-glow {
  position: fixed;
  width: 120px;
  height: 120px;
  border-radius: 50%;
  pointer-events: none;
  z-index: 9993;
  background: radial-gradient(circle, rgba(178, 75, 255, 0.25) 0%, rgba(255, 0, 170, 0.1) 40%, transparent 70%);
  transform: translate(-50%, -50%) scale(0);
  transition: transform 0.3s ease-out, opacity 0.3s ease-out;
  opacity: 0;
}

.cursor-glow.active {
  transform: translate(-50%, -50%) scale(1);
  opacity: 1;
}

/* Touch ripple effect */
.touch-ripple {
  position: fixed;
  width: 80px;
  height: 80px;
  border-radius: 50%;
  pointer-events: none;
  z-index: 9992;
  border: 2px solid rgba(178, 75, 255, 0.6);
  transform: translate(-50%, -50%) scale(0);
  animation: ripple-expand 0.8s ease-out forwards;
}

@keyframes ripple-expand {
  0%   { transform: translate(-50%, -50%) scale(0); opacity: 1; }
  100% { transform: translate(-50%, -50%) scale(3); opacity: 0; }
}

/* ═══════════════════════════════════════
   RESPONSIVE — TABLET (≤960px)
   ═══════════════════════════════════════ */
@media (max-width: 960px) {
  .plate-1 { width: 300px; height: 450px; }
  .plate-2 { width: 350px; height: 280px; }
  .plate-3 { display: none; }
}

/* ═══════════════════════════════════════
   RESPONSIVE — MOBILE (≤640px)
   ═══════════════════════════════════════ */
@media (max-width: 640px) {
  :root { --section-pad: 48px 0; }

  html { font-size: 15px; }

  .hero-section { min-height: 100dvh; padding: 20px 0; }

  .title-main { font-size: clamp(32px, 14vw, 56px); letter-spacing: 3px; word-break: break-word; overflow-wrap: break-word; hyphens: auto; }
  .title-accent { font-size: clamp(22px, 10vw, 42px); letter-spacing: 6px; word-break: break-word; overflow-wrap: break-word; }

  .hero-subtitle { font-size: clamp(14px, 3.5vw, 18px); padding: 0 8px; word-break: normal; overflow-wrap: anywhere; hyphens: auto; }

  .hero-lore { margin-left: 8px; margin-right: 8px; padding: 12px 16px !important; }
  .hero-lore p { font-size: clamp(13px, 3.5vw, 16px); word-break: normal; overflow-wrap: anywhere; hyphens: auto; }

  .mecha-status-row { gap: 12px; padding: 0 8px; }
  .status-indicator { font-size: clamp(7px, 2.5vw, 9px); white-space: nowrap; }

  .hero-stats {
    flex-direction: row;
    gap: 16px;
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
    padding-bottom: 8px;
    scrollbar-width: none;
    justify-content: center;
  }
  .hero-stats::-webkit-scrollbar { display: none; }

  .stat-value { font-size: clamp(24px, 7vw, 36px); }
  .stat-label { font-size: clamp(7px, 2.5vw, 9px); white-space: nowrap; }
  .stat-divider { height: 40px; }

  .sliding-blocks { display: none; }

  /* Hide metal plates on mobile — they overflow and break layout */
  .hero-metal-plates { display: none; }

  body::before { opacity: 0.025; }
  .halftone-overlay, .speed-lines { display: none; }

  /* Reduce hearts on mobile */
  .h3, .h5, .h7, .h9 { display: none; }

  /* Corner hearts smaller on mobile */
  .corner-heart { font-size: clamp(14px, 3vw, 24px); opacity: 0.1; }
  .corner-tl { top: 10px; left: 10px; }
  .corner-tr { top: 10px; right: 10px; }
  .corner-bl { bottom: 60px; left: 10px; }
  .corner-br { bottom: 60px; right: 10px; }

  /* Hero badge — prevent text wrapping issues */
  .hero-badge { font-size: clamp(7px, 2vw, 9px); padding: 5px 12px; letter-spacing: 2px; white-space: nowrap; overflow-wrap: anywhere; max-width: 90vw; }

  /* Scroll indicator smaller */
  .hero-scroll-indicator { font-size: 7px; bottom: clamp(16px, 3vw, 32px); }
  .scroll-arrow { width: 12px; height: 12px; }

  /* Footer adjustments */
  .footer-frame { padding: 24px 16px !important; }
  .footer-logo { font-size: 18px; letter-spacing: 2px; word-break: normal; overflow-wrap: anywhere; }
  .footer-text { font-size: clamp(13px, 3.5vw, 15px); padding: 0 8px; word-break: normal; overflow-wrap: anywhere; hyphens: auto; }

  /* Loader adjustments */
  .loader-content { padding: 24px 16px; gap: 12px; }
  .hex-frame { width: 90px; height: 90px; }
}

/* ═══════════════════════════════════════
   RESPONSIVE — SMALL MOBILE (≤480px)
   ═══════════════════════════════════════ */
@media (max-width: 480px) {
  html { font-size: 14px; }

  .hero-content { padding: 24px 12px !important; }

  .title-main { font-size: clamp(28px, 13vw, 48px); letter-spacing: 2px; }
  .title-accent { font-size: clamp(18px, 9vw, 36px); letter-spacing: 4px; }

  .hero-subtitle { font-size: clamp(13px, 4vw, 16px); }

  .hero-lore { margin-left: 4px; margin-right: 4px; padding: 10px 12px !important; }
  .hero-lore p { font-size: clamp(12px, 3.5vw, 15px); line-height: 1.6; }

  .mecha-status-row { gap: 8px; flex-wrap: wrap; justify-content: center; padding: 0 4px; }
  .status-indicator { font-size: 7px; letter-spacing: 1px; }

   .social-media-area { gap: 10px; flex-wrap: wrap; }
   .social-link { width: clamp(32px, 7vw, 40px); height: clamp(32px, 7vw, 40px); }

   .hero-stats { gap: 12px; }
   .stat-value { font-size: clamp(22px, 8vw, 32px); }
   .stat-label { font-size: 7px; letter-spacing: 1px; }
   .stat-divider { height: 36px; }

   .hero-badge { font-size: 7px; padding: 4px 10px; letter-spacing: 1.5px; max-width: 85vw; white-space: normal; line-height: 1.4; }

  /* Hide more hearts on small screens */
  .h2, .h6, .h8 { display: none; }

  /* Sparkles smaller */
  .sparkle { font-size: clamp(8px, 2vw, 14px); }

  /* Footer */
  .footer-logo { font-size: 16px; letter-spacing: 1.5px; }
  .footer-text { font-size: 13px; }
  .footer-copy { font-size: 11px; }

  /* Loader */
  .loader-content { padding: 20px 12px; gap: 10px; max-width: 95%; }
  .hex-frame { width: 70px; height: 70px; margin-bottom: 4px; }
  .eva-cross span { height: 22px; }
  .loader-title { font-size: clamp(14px, 5vw, 22px); letter-spacing: 3px; }
  .loader-subtitle { font-size: clamp(7px, 2vw, 9px); letter-spacing: 2px; }
  .msg-line { font-size: clamp(6px, 1.8vw, 8px); }
  .loader-warning { font-size: clamp(6px, 1.8vw, 8px); padding: 4px 10px; letter-spacing: 2px; }

  /* Cursor glow disabled on mobile */
  .cursor-glow { display: none !important; }
}

/* ═══════════════════════════════════════
   RESPONSIVE — VERY SMALL MOBILE (≤360px)
   ═══════════════════════════════════════ */
@media (max-width: 360px) {
   html { font-size: 13px; }

   .hero-content { padding: 20px 8px !important; }

   .title-main { font-size: clamp(24px, 12vw, 40px); letter-spacing: 1.5px; }
   .title-accent { font-size: clamp(16px, 8vw, 30px); letter-spacing: 3px; }

   .hero-subtitle { font-size: clamp(12px, 4vw, 15px); padding: 0 4px; }

   .hero-lore { margin-left: 2px; margin-right: 2px; padding: 8px 10px !important; }
   .hero-lore p { font-size: clamp(11px, 3.5vw, 14px); line-height: 1.5; }

   .mecha-status-row { gap: 6px; }
   .status-indicator { font-size: 6px; letter-spacing: 0.5px; }
   .status-dot { width: 5px; height: 5px; }

   .social-media-area { gap: 8px; }
   .social-link { width: clamp(28px, 8vw, 36px); height: clamp(28px, 8vw, 36px); }

   .hero-stats { gap: 10px; }
  .stat-value { font-size: clamp(20px, 9vw, 28px); }
  .stat-label { font-size: 6px; letter-spacing: 0.5px; }
  .stat-divider { height: 30px; }

  .hero-badge { font-size: 6px; padding: 3px 8px; max-width: 80vw; line-height: 1.3; }

  /* Hide even more decorative elements */
  .h4, .h10 { display: none; }
  .sparkle.s2, .sparkle.s4 { display: none; }

  .corner-heart { font-size: clamp(12px, 3vw, 20px); opacity: 0.08; }

  /* Footer */
  .footer-logo { font-size: 14px; letter-spacing: 1px; }
  .footer-text { font-size: 12px; padding: 0 4px; }
  .footer-copy { font-size: 10px; }

  /* Loader */
  .loader-content { padding: 16px 8px; gap: 8px; max-width: 98%; }
  .hex-frame { width: 55px; height: 55px; }
  .eva-cross span { height: 18px; width: 1.5px; }
  .loader-title { font-size: clamp(12px, 5vw, 18px); letter-spacing: 2px; }
}

/* ═══════════════════════════════════════
   LANDSCAPE MOBILE
   ═══════════════════════════════════════ */
@media (max-height: 500px) and (orientation: landscape) {
  .hero-section { min-height: auto; padding-top: 40px; padding-bottom: 20px; }
  .title-main { font-size: clamp(24px, 8vw, 36px); letter-spacing: 1.5px; }
  .title-accent { font-size: clamp(16px, 5vw, 24px); letter-spacing: 3px; }
  .hero-subtitle { font-size: clamp(12px, 3vw, 16px); margin-bottom: 8px !important; }
  .hero-lore { padding: 8px 16px !important; margin-bottom: 16px !important; }
  .hero-lore p { font-size: clamp(12px, 3vw, 14px); }
  .mecha-status-row { gap: 8px; margin-bottom: 12px !important; }
  .status-indicator { font-size: 7px; }
  .hero-stats { display: none; }
  .hero-scroll-indicator { display: none; }
  .hero-badge { margin-bottom: 12px !important; }
  .corner-heart { display: none; }
}

/* ═══════════════════════════════════════
   REDUCED MOTION
   ═══════════════════════════════════════ */
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
  }
  html { scroll-behavior: auto; }
}