/* ===== CSS Reset & Base ===== */
*, *::before, *::after {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

:root {
  --brand-yellow: #FFE500;
  --brand-yellow-dim: #c4b000;
  --brand-yellow-glow: rgba(255, 229, 0, 0.4);
  --brand-yellow-soft: rgba(255, 229, 0, 0.12);
  --dark-bg: #0a0a0a;
  --dark-surface: #111111;
  --dark-card: rgba(17, 17, 17, 0.9);
  --whatsapp-green: #25D366;
  --whatsapp-dark: #128C7E;
  --text-primary: #f5f5f5;
  --text-secondary: #9ca3af;
  --font-display: 'Press Start 2P', monospace;
  --font-body: 'Inter', sans-serif;
}

html {
  scroll-behavior: smooth;
}

body {
  font-family: var(--font-body);
  background: var(--dark-bg);
  color: var(--text-primary);
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
  position: relative;
}

/* ===== Particle Canvas ===== */
#particles {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  z-index: 0;
  pointer-events: none;
}

/* ===== Scan-lines ===== */
.scanlines {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  z-index: 1;
  pointer-events: none;
  background: repeating-linear-gradient(
    0deg,
    transparent,
    transparent 2px,
    rgba(0, 0, 0, 0.08) 2px,
    rgba(0, 0, 0, 0.08) 4px
  );
}

/* ===== Main Container ===== */
.container {
  position: relative;
  z-index: 2;
  text-align: center;
  padding: 2rem 1.5rem;
  max-width: 600px;
  width: 100%;
  backdrop-filter: blur(20px);
  background: var(--dark-card);
  border: 1px solid rgba(255, 229, 0, 0.15);
  border-radius: 24px;
  box-shadow: 
    0 0 60px rgba(255, 229, 0, 0.08),
    0 0 120px rgba(255, 229, 0, 0.03),
    inset 0 1px 0 rgba(255, 255, 255, 0.05);
  animation: containerFloat 6s ease-in-out infinite;
}

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

/* ===== Logo ===== */
.logo {
  margin-bottom: 1rem;
}

.logo-icon {
  font-size: 4rem;
  display: inline-block;
  animation: logoSpin 3s ease-in-out infinite;
  filter: drop-shadow(0 0 20px var(--brand-yellow-glow));
}

@keyframes logoSpin {
  0%, 100% { transform: rotateY(0deg) scale(1); }
  25% { transform: rotateY(15deg) scale(1.05); }
  75% { transform: rotateY(-15deg) scale(1.05); }
}

/* ===== Glitch Title ===== */
.glitch {
  font-family: var(--font-display);
  font-size: clamp(1.3rem, 5vw, 2.2rem);
  font-weight: 900;
  letter-spacing: 0.08em;
  position: relative;
  margin-bottom: 1.5rem;
  color: var(--brand-yellow);
  text-shadow: 
    0 0 10px var(--brand-yellow-glow),
    0 0 40px rgba(255, 229, 0, 0.2);
}

.glitch::before,
.glitch::after {
  content: attr(data-text);
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  color: var(--brand-yellow);
  text-shadow: none;
}

.glitch::before {
  animation: glitch1 3s infinite;
  clip-path: polygon(0 0, 100% 0, 100% 35%, 0 35%);
}

.glitch::after {
  animation: glitch2 3s infinite;
  clip-path: polygon(0 65%, 100% 65%, 100% 100%, 0 100%);
}

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

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

@keyframes gradientShift {
  0%, 100% { background-position: 0% 50%; }
  50% { background-position: 100% 50%; }
}

/* ===== Status Badge ===== */
.status-badge {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.5rem 1.25rem;
  background: rgba(234, 179, 8, 0.1);
  border: 1px solid rgba(234, 179, 8, 0.3);
  border-radius: 999px;
  font-family: var(--font-display);
  font-size: 0.7rem;
  font-weight: 700;
  letter-spacing: 0.15em;
  color: #fbbf24;
  margin-bottom: 1.5rem;
}

.pulse {
  width: 8px;
  height: 8px;
  background: #fbbf24;
  border-radius: 50%;
  display: inline-block;
  animation: pulseAnim 1.5s ease-in-out infinite;
}

@keyframes pulseAnim {
  0%, 100% { opacity: 1; box-shadow: 0 0 0 0 rgba(251, 191, 36, 0.5); }
  50% { opacity: 0.6; box-shadow: 0 0 0 8px rgba(251, 191, 36, 0); }
}

/* ===== Messages ===== */
.message {
  font-size: 1.2rem;
  line-height: 1.8;
  margin-bottom: 0.5rem;
  color: var(--text-primary);
}

.highlight {
  font-weight: 700;
  font-size: 1.4rem;
  color: var(--brand-yellow);
  text-shadow: 0 0 12px var(--brand-yellow-glow);
}

.sub-message {
  font-size: 1rem;
  color: var(--text-secondary);
  margin-bottom: 2rem;
  line-height: 1.6;
}

.sub-message strong {
  color: var(--brand-yellow);
}

/* ===== WhatsApp Button ===== */
.whatsapp-btn {
  display: inline-flex;
  align-items: center;
  gap: 0.75rem;
  padding: 1rem 2rem;
  background: linear-gradient(135deg, var(--whatsapp-green), var(--whatsapp-dark));
  color: white;
  text-decoration: none;
  border-radius: 16px;
  font-size: 1.1rem;
  font-weight: 600;
  transition: all 0.3s cubic-bezier(0.25, 0.46, 0.45, 0.94);
  box-shadow: 
    0 4px 20px rgba(37, 211, 102, 0.3),
    0 0 40px rgba(37, 211, 102, 0.1);
  position: relative;
  overflow: hidden;
}

.whatsapp-btn::before {
  content: '';
  position: absolute;
  top: -50%;
  left: -50%;
  width: 200%;
  height: 200%;
  background: radial-gradient(circle, rgba(255,255,255,0.15) 0%, transparent 60%);
  transform: scale(0);
  transition: transform 0.5s ease;
}

.whatsapp-btn:hover::before {
  transform: scale(1);
}

.whatsapp-btn:hover {
  transform: translateY(-3px) scale(1.03);
  box-shadow: 
    0 8px 30px rgba(37, 211, 102, 0.4),
    0 0 60px rgba(37, 211, 102, 0.2);
}

.whatsapp-btn:active {
  transform: translateY(-1px) scale(1.01);
}

.wa-icon {
  width: 24px;
  height: 24px;
  flex-shrink: 0;
}

.phone-number {
  font-size: 0.8rem;
  opacity: 0.85;
  font-weight: 400;
  padding-left: 0.5rem;
  border-left: 1px solid rgba(255,255,255,0.3);
}

/* ===== Gear Animation ===== */
.gear-animation {
  margin: 2rem 0 1rem;
  display: flex;
  justify-content: center;
  gap: 0.25rem;
}

.gear {
  font-size: 2rem;
  display: inline-block;
  filter: drop-shadow(0 0 8px var(--brand-yellow-glow));
}

.gear-1 {
  animation: gearSpin 4s linear infinite;
}

.gear-2 {
  animation: gearSpinReverse 4s linear infinite;
  margin-top: 0.5rem;
}

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

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

/* ===== Footer ===== */
.footer-text {
  font-size: 0.85rem;
  color: var(--text-secondary);
  opacity: 0.7;
}

/* ===== Responsive ===== */
@media (max-width: 480px) {
  .container {
    margin: 1rem;
    padding: 1.5rem 1rem;
    border-radius: 20px;
  }

  .logo-icon {
    font-size: 3rem;
  }

  .whatsapp-btn {
    flex-wrap: wrap;
    justify-content: center;
    padding: 0.875rem 1.5rem;
    font-size: 1rem;
  }

  .phone-number {
    border-left: none;
    padding-left: 0;
    width: 100%;
    text-align: center;
    margin-top: 0.25rem;
  }

  .gear-animation {
    margin: 1.5rem 0 0.75rem;
  }
}
