/* ===== CONSTRUCTION MODE ===== */
/* Toggle via: ?mode=live in URL or set CONSTRUCTION_MODE = false in config.js */

.construction-overlay {
  position: fixed;
  inset: 0;
  z-index: 10000;
  background: #020B18;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
}

.construction-overlay .co-bg {
  position: absolute;
  inset: 0;
  overflow: hidden;
}

.construction-overlay .co-orb {
  position: absolute;
  border-radius: 50%;
  filter: blur(120px);
  animation: orbFloat 20s ease-in-out infinite;
}

.construction-overlay .co-orb-1 {
  width: 700px;
  height: 700px;
  background: radial-gradient(circle, rgba(10,97,201,0.1) 0%, transparent 70%);
  top: -200px;
  right: -200px;
}

.construction-overlay .co-orb-2 {
  width: 500px;
  height: 500px;
  background: radial-gradient(circle, rgba(6,64,137,0.08) 0%, transparent 70%);
  bottom: -150px;
  left: -100px;
  animation-delay: -7s;
}

.construction-overlay .co-grid {
  position: absolute;
  inset: 0;
  background-image:
    linear-gradient(rgba(255,255,255,0.01) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255,255,255,0.01) 1px, transparent 1px);
  background-size: 80px 80px;
  mask-image: radial-gradient(ellipse at center, black 20%, transparent 75%);
  -webkit-mask-image: radial-gradient(ellipse at center, black 20%, transparent 75%);
}

.construction-overlay .co-horizon {
  position: absolute;
  bottom: 30%;
  left: 0;
  right: 0;
  height: 1px;
  background: linear-gradient(90deg, transparent, rgba(10,97,201,0.2), rgba(43,136,237,0.4), rgba(10,97,201,0.2), transparent);
}

.construction-overlay .co-content {
  position: relative;
  z-index: 2;
  text-align: center;
  max-width: 600px;
  padding: 2rem;
  animation: fadeInUp 1s 0.2s ease both;
}

.construction-overlay .co-logo {
  height: 40px;
  width: auto;
  margin-bottom: 3rem;
  opacity: 0.85;
  animation: fadeIn 1s 0.1s ease both;
}

.construction-overlay .co-shield {
  width: 72px;
  height: auto;
  margin: 0 auto 2rem;
  opacity: 0.7;
  filter: drop-shadow(0 0 40px rgba(10,97,201,0.25));
  animation: fadeInUp 1s 0.3s ease both;
}

.construction-overlay .co-badge {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 6px 18px 6px 10px;
  border: 1px solid rgba(255,255,255,0.06);
  border-radius: 100px;
  background: rgba(255,255,255,0.02);
  font-family: 'JetBrains Mono', monospace;
  font-size: 0.65rem;
  font-weight: 500;
  color: rgba(255,255,255,0.4);
  letter-spacing: 0.12em;
  text-transform: uppercase;
  margin-bottom: 2.5rem;
  backdrop-filter: blur(8px);
  animation: fadeIn 1s 0.4s ease both;
}

.construction-overlay .co-badge-dot {
  width: 6px;
  height: 6px;
  background: #F59E0B;
  border-radius: 50%;
  box-shadow: 0 0 12px rgba(245,158,11,0.6);
  animation: pulseDot 2s infinite;
}

.construction-overlay h1 {
  font-family: 'Instrument Serif', Georgia, serif;
  font-size: 3.8rem;
  font-weight: 400;
  line-height: 1.05;
  letter-spacing: -0.03em;
  color: #fff;
  margin-bottom: 1.25rem;
  animation: fadeInUp 1s 0.5s ease both;
}

.construction-overlay h1 em {
  font-style: italic;
  color: #2B88ED;
}

.construction-overlay .co-desc {
  font-family: 'Outfit', sans-serif;
  font-size: 1.05rem;
  font-weight: 300;
  line-height: 1.8;
  color: rgba(255,255,255,0.35);
  margin-bottom: 2.5rem;
  animation: fadeInUp 1s 0.6s ease both;
}

/* Email signup form */
.construction-overlay .co-form {
  display: flex;
  gap: 10px;
  max-width: 440px;
  margin: 0 auto 2rem;
  animation: fadeInUp 1s 0.7s ease both;
}

.construction-overlay .co-input {
  flex: 1;
  padding: 14px 18px;
  background: rgba(255,255,255,0.04);
  border: 1px solid rgba(255,255,255,0.08);
  border-radius: 10px;
  color: #fff;
  font-family: 'Outfit', sans-serif;
  font-size: 0.88rem;
  font-weight: 400;
  outline: none;
  transition: all 0.3s;
}

.construction-overlay .co-input::placeholder {
  color: rgba(255,255,255,0.25);
}

.construction-overlay .co-input:focus {
  border-color: rgba(10,97,201,0.4);
  background: rgba(255,255,255,0.06);
  box-shadow: 0 0 0 3px rgba(10,97,201,0.1);
}

.construction-overlay .co-submit {
  padding: 14px 28px;
  background: #fff;
  color: #020B18;
  border: none;
  border-radius: 10px;
  font-family: 'Outfit', sans-serif;
  font-weight: 700;
  font-size: 0.88rem;
  cursor: pointer;
  transition: all 0.3s cubic-bezier(0.16, 1, 0.3, 1);
  white-space: nowrap;
}

.construction-overlay .co-submit:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 32px rgba(255,255,255,0.12);
}

.construction-overlay .co-meta {
  display: flex;
  justify-content: center;
  gap: 3rem;
  animation: fadeIn 1s 1s ease both;
}

.construction-overlay .co-meta-item {
  text-align: center;
}

.construction-overlay .co-meta-val {
  font-family: 'JetBrains Mono', monospace;
  font-size: 1.2rem;
  font-weight: 600;
  color: #fff;
}

.construction-overlay .co-meta-label {
  font-size: 0.6rem;
  font-weight: 400;
  color: rgba(255,255,255,0.2);
  text-transform: uppercase;
  letter-spacing: 0.15em;
  margin-top: 4px;
}

.construction-overlay .co-footer {
  position: absolute;
  bottom: 2rem;
  left: 0;
  right: 0;
  text-align: center;
  font-size: 0.7rem;
  color: rgba(255,255,255,0.12);
  animation: fadeIn 1s 1.2s ease both;
  z-index: 2;
}

/* Success state */
.construction-overlay .co-success {
  display: none;
  padding: 14px 24px;
  background: rgba(16,185,129,0.08);
  border: 1px solid rgba(16,185,129,0.15);
  border-radius: 10px;
  color: #10B981;
  font-size: 0.85rem;
  font-weight: 500;
  max-width: 440px;
  margin: 0 auto 2rem;
}

/* When construction mode is OFF, hide the overlay */
.construction-overlay.hidden {
  display: none !important;
}

/* Responsive */
@media (max-width: 768px) {
  .construction-overlay h1 {
    font-size: 2.4rem;
  }
  .construction-overlay .co-form {
    flex-direction: column;
  }
  .construction-overlay .co-meta {
    gap: 1.5rem;
  }
  .construction-overlay .co-content {
    padding: 1.5rem;
  }
}
