/* Reset */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

body {
  font-family: 'Rajdhani', sans-serif;
  background-color: #0a0f1c;
  color: #f0f0f0;
  line-height: 1.6;
  overflow-x: hidden;
}

/* Hero Section */
.hero {
  position: relative;
  background: url("../img/hero.png") no-repeat center center/cover;
  height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  overflow: hidden;
}

.overlay {
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: rgba(10, 15, 28, 0.7);
  z-index: 1;
}

#particles {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  z-index: 2;
}

.hero-content {
  position: relative;
  z-index: 3;
  max-width: 800px;
  padding: 20px;
}

.title {
  font-family: 'Orbitron', sans-serif;
  font-size: 3rem;
  font-weight: 700;
  color: #00e6ff;
  text-shadow: 0 0 10px #00e6ff, 0 0 20px #007bff;
}

.subtitle {
  font-size: 1.5rem;
  margin: 15px 0;
  color: #fff;
}

.tagline {
  font-size: 1rem;
  margin-bottom: 20px;
  color: #d0d0d0;
}

.badge {
  display: inline-block;
  background: #ff004c;
  color: #fff;
  padding: 10px 20px;
  border-radius: 20px;
  font-weight: bold;
  box-shadow: 0 0 10px #ff004c;
}

.badge--large {
  padding: 12px 26px;
  font-size: 1.05rem;
  box-shadow: 0 10px 30px rgba(255, 0, 76, 0.18);
  border-radius: 28px;
}

/* Enter HQ button */
.enter-btn {
  display: inline-block;
  background: linear-gradient(90deg, #ff8a00, #ff004c);
  color: #fff;
  border: none;
  padding: 12px 22px;
  border-radius: 30px;
  font-weight: 700;
  cursor: pointer;
  box-shadow: 0 6px 18px rgba(255, 0, 76, 0.25);
  margin-right: 12px;
  transition: transform 0.15s ease, box-shadow 0.15s ease;
}

.enter-btn:active {
  transform: translateY(2px) scale(0.99);
}

/* Pillars reveal animation (merged with main .pillars rules below) */

/* Access Granted overlay */
.access-overlay {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  background: rgba(5, 10, 20, 0.85);
  color: #00ffb3;
  /* Raised so it appears above modals and welcome overlay */
  z-index: 11002;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.5s ease;
}

.access-overlay.show {
  opacity: 1;
  pointer-events: auto;
}

.access-content {
  font-family: 'Orbitron', sans-serif;
  font-size: 3rem;
  letter-spacing: 6px;
  text-shadow: 0 0 12px #00ffb3, 0 0 30px #00ffb3;
  transform: scale(0.95);
  animation: pulse 1.2s ease-in-out;
}

/* Separate small text strip for a clearer fade-in/out confirmation */
.access-text {
  position: absolute;
  bottom: 18%;
  left: 50%;
  transform: translateX(-50%);
  font-family: 'Rajdhani', sans-serif;
  color: #bfffe0;
  font-size: 1rem;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.3s ease;
  text-shadow: 0 0 8px rgba(0, 255, 179, 0.12);
}

.access-text.show {
  opacity: 1;
}

/* Fallback toast for hosted environments where full overlays may be blocked */
.access-toast {
  position: fixed;
  right: 18px;
  bottom: 18px;
  background: linear-gradient(90deg, rgba(0, 255, 179, 0.12), rgba(0, 230, 255, 0.06));
  color: #dffef4;
  padding: 10px 14px;
  border-radius: 10px;
  border: 1px solid rgba(0, 255, 179, 0.06);
  box-shadow: 0 6px 18px rgba(0, 0, 0, 0.4);
  font-weight: 700;
  opacity: 0;
  transform: translateY(6px);
  transition: opacity 0.28s ease, transform 0.28s ease;
  z-index: 2147483646;
  /* just below the forced overlay z-index */
  pointer-events: none;
}

.access-toast.show {
  opacity: 1;
  transform: translateY(0);
  pointer-events: auto;
}

@keyframes pulse {
  0% {
    transform: scale(0.95);
    opacity: 0.85
  }

  50% {
    transform: scale(1.02);
    opacity: 1
  }

  100% {
    transform: scale(0.98);
    opacity: 0.95
  }
}

/* Pilares Section */
.pillars {
  padding: 60px 20px;
  text-align: center;
  background: linear-gradient(to bottom, #0a0f1c, #141a2b);
  opacity: 0;
  transform: translateY(30px);
  pointer-events: none;
  transition: opacity 0.6s ease, transform 0.6s ease;
}

.pillars.revealed {
  opacity: 1;
  transform: translateY(0);
  pointer-events: auto;
}

.pillars-intro {
  color: #bfeaf3;
  margin-bottom: 24px;
}

.pillars-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 20px;
  max-width: 1100px;
  margin: 0 auto;
  align-items: start;
}

.pillar {
  background: rgba(20, 26, 43, 0.6);
  border: 1px solid #00e6ff22;
  padding: 18px;
  border-radius: 12px;
  text-align: left;
}

.pillar-icon {
  font-size: 1.8rem;
  margin-bottom: 6px;
}

.pillar h3 {
  color: #00e6ff;
  margin-bottom: 8px;
}

.pillar p {
  color: #cfeaf0;
  margin-bottom: 12px;
}

.pillar-cta {
  display: inline-block;
  background: linear-gradient(90deg, #00e6ff, #00ffb3);
  color: #001219;
  padding: 8px 12px;
  border-radius: 8px;
  font-weight: 700;
  text-decoration: none;
}

/* Small developer debug panel (toggle with Ctrl+Shift+D) */
.dev-debug {
  position: fixed;
  left: 12px;
  bottom: 12px;
  background: rgba(0, 0, 0, 0.6);
  color: #cfeaf0;
  padding: 8px 10px;
  border-radius: 8px;
  z-index: 2147483646;
  font-size: 12px;
  display: none;
}

.dev-debug.show {
  display: block;
}

.pillars h2 {
  font-family: 'Orbitron', sans-serif;
  font-size: 2rem;
  margin-bottom: 40px;
  color: #00e6ff;
  text-shadow: 0 0 8px #00e6ff;
}

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

.card {
  background: rgba(20, 26, 43, 0.8);
  border: 1px solid #00e6ff33;
  border-radius: 12px;
  padding: 20px;
  width: 250px;
  text-align: center;
  transition: all 0.3s ease;
}

.card:hover {
  transform: translateY(-10px);
  box-shadow: 0 0 15px #00e6ff, 0 0 30px #007bff;
}

.card h3 {
  font-size: 1.3rem;
  margin-bottom: 10px;
  color: #00e6ff;
}

.card p {
  font-size: 1rem;
  color: #d0d0d0;
}

/* Footer */
footer {
  background: #0a0f1c;
  text-align: center;

  .socials {
    margin-top: 12px;
    display: flex;
    gap: 12px;
    justify-content: center;
  }

  .social {
    color: #cfeaf0;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 40px;
    height: 40px;
    border-radius: 10px;
    transition: transform 0.14s ease, background 0.14s ease;
  }

  .social:hover {
    transform: translateY(-4px) scale(1.02);
    background: rgba(255, 255, 255, 0.02);
  }

  padding: 20px;
  font-size: 0.9rem;
  border-top: 1px solid #00e6ff33;
}

footer p {
  color: #999;
}

/* Responsividade */
@media (max-width: 768px) {
  .title {
    font-size: 2.2rem;
  }

  .subtitle {
    font-size: 1.2rem;
  }

  .cards {
    flex-direction: column;
    align-items: center;
  }
}

/* Secret spot (hidden) */
.secret-spot {
  position: absolute;
  top: 12px;
  left: 12px;
  width: 36px;
  height: 36px;
  background: transparent;
  border: none;
  z-index: 50;
  cursor: pointer;
  opacity: 0;
  /* invisible by default */
}

/* When dev/testing, you can reveal the spot with .show-spot on body */
body.show-spot .secret-spot {
  opacity: 0.12;
  background: rgba(255, 255, 255, 0.02);
}

/* Styles for denied state */
.access-overlay.denied .access-content {
  color: #ff6b6b;
  text-shadow: 0 0 10px #ff6b6b, 0 0 20px #ff004c;
}

/* Welcome preview overlay */
.welcome-overlay {
  position: fixed;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  background: rgba(2, 6, 12, 0.85);
  /* keep below access-overlay which may be forced above via inline style */
  z-index: 11000;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.25s ease;
}

.welcome-overlay.show {
  opacity: 1;
  pointer-events: auto;
}

.welcome-card {
  background: linear-gradient(180deg, #071027, #0b1320);
  border: 1px solid #00e6ff22;
  padding: 24px;
  border-radius: 12px;
  max-width: 720px;
  color: #e6f7f9;
  text-align: center;
}

.welcome-card h2 {
  font-family: 'Orbitron', sans-serif;
  font-size: 2rem;
  color: #00e6ff;
  margin-bottom: 8px;
}

.welcome-desc {
  margin-bottom: 16px;
  color: #cfeaf0;
}

.welcome-actions {
  display: flex;
  gap: 12px;
  justify-content: center;
}

/* Full-page enter gate overlay */
.enter-gate {
  position: fixed;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  background: rgba(2, 6, 12, 0.92);
  z-index: 9000;
}

.enter-gate-center {
  text-align: center;
}

.enter-instruction {
  margin-top: 12px;
  color: #bfeaf3;
  font-size: 0.95rem;
}

.enter-gate.hidden {
  display: none;
}

/* small control to reopen gate for testing/debug */
.reopen-gate {
  position: fixed;
  right: 12px;
  bottom: 12px;
  background: linear-gradient(90deg, #ff8a00, #ff004c);
  color: #fff;
  border: none;
  padding: 8px 12px;
  border-radius: 8px;
  z-index: 11000;
  display: none;
}

.reopen-gate.show {
  display: inline-block;
}

/* secret grant next to secret spot (invisible) */
.secret-grant {
  left: 60px;
}

/* HQ Auth Modal (mock) */
.hq-modal {
  position: fixed;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  background: rgba(0, 0, 0, 0.6);
  z-index: 10000;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.2s ease;
}

.hq-modal.show {
  opacity: 1;
  pointer-events: auto;
}

.hq-modal-content {
  background: linear-gradient(180deg, #071027, #0d1526);
  border: 1px solid #00e6ff22;
  padding: 24px;
  border-radius: 10px;
  width: 380px;
  text-align: center;
}

.hq-consent {
  display: block;
  margin: 8px 0;
  font-size: 0.9rem;
  color: #cfdde6
}

.hq-video-panel {
  margin: 10px 0;
  position: relative;
  width: 100%;
  height: 200px;
  background: #000;
  border-radius: 8px;
  overflow: hidden;
  display: none;
}

.hq-video-panel.show {
  display: block;
}

.hq-video {
  width: 100%;
  height: 100%;
  object-fit: cover;
  background: #000
}

.hq-instructions {
  position: absolute;
  left: 0;
  right: 0;
  bottom: 8px;
  color: #fff;
  text-shadow: 0 0 6px #000;
  font-weight: 700;
}

.hq-note {
  margin-top: 10px;
  font-size: 0.8rem;
  color: #9fb6c7
}

.hq-input {
  width: 100%;
  padding: 10px 12px;
  margin: 12px 0;
  border-radius: 8px;
  border: 1px solid #00e6ff22;
  background: rgba(255, 255, 255, 0.02);
  color: #fff;
}

.hq-actions {
  display: flex;
  gap: 10px;
  justify-content: center;
}

.hq-progress {
  margin-top: 12px;
  height: 10px;
  background: rgba(255, 255, 255, 0.04);
  border-radius: 8px;
  overflow: hidden;
}

.hq-progress-bar {
  width: 0%;
  height: 100%;
  background: linear-gradient(90deg, #00ffb3, #00e6ff);
  transition: width 0.4s linear;
}

.enter-btn.cancel {
  background: #333;
  box-shadow: none;
}