/**
 * Mobile Gate - Desktop-Only Overlay with Waitlist
 * Shows on screens < 768px
 */

#mobile-gate {
  display: none;
  position: fixed;
  inset: 0;
  z-index: 99999;
  background: linear-gradient(135deg, #0a0a0f 0%, #1a1a2e 50%, #0f0f1a 100%);
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: 40px 24px;
  text-align: center;
  overflow-y: auto;
}

@media (max-width: 768px) {
  #mobile-gate {
    display: flex !important;
  }
  
  /* Hide everything else */
  body > *:not(#mobile-gate):not(script):not(style):not(link) {
    display: none !important;
  }
  
  body {
    overflow: hidden !important;
  }
}

/* Also catch tablets in portrait */
@media (max-width: 1024px) and (hover: none) and (pointer: coarse) {
  #mobile-gate {
    display: flex !important;
  }
  
  body > *:not(#mobile-gate):not(script):not(style):not(link) {
    display: none !important;
  }
  
  body {
    overflow: hidden !important;
  }
}

/* Background effects */
.gate-bg {
  position: absolute;
  inset: 0;
  overflow: hidden;
  pointer-events: none;
}

.gate-bg::before {
  content: '';
  position: absolute;
  top: -50%;
  left: -50%;
  width: 200%;
  height: 200%;
  background: radial-gradient(ellipse at center, rgba(148, 0, 211, 0.08) 0%, transparent 50%);
  animation: gatePulse 8s ease-in-out infinite;
}

.gate-bg::after {
  content: '';
  position: absolute;
  bottom: -30%;
  right: -30%;
  width: 100%;
  height: 100%;
  background: radial-gradient(ellipse at center, rgba(0, 212, 255, 0.06) 0%, transparent 50%);
  animation: gatePulse 10s ease-in-out infinite reverse;
}

@keyframes gatePulse {
  0%, 100% { opacity: 0.5; transform: scale(1); }
  50% { opacity: 1; transform: scale(1.1); }
}

/* Content */
.gate-content {
  position: relative;
  z-index: 1;
  max-width: 360px;
  width: 100%;
}

.gate-logo {
  font-family: 'Press Start 2P', monospace;
  font-size: 32px;
  color: #fff;
  text-shadow: 
    0 0 20px rgba(148, 0, 211, 0.5),
    0 0 40px rgba(0, 212, 255, 0.3);
  margin-bottom: 12px;
  letter-spacing: 4px;
}

.gate-tagline {
  font-family: 'Space Mono', monospace;
  font-size: 11px;
  color: #666;
  text-transform: uppercase;
  letter-spacing: 3px;
  margin-bottom: 40px;
}

.gate-icon {
  font-size: 64px;
  margin-bottom: 24px;
  filter: drop-shadow(0 0 20px rgba(148, 0, 211, 0.5));
}

.gate-title {
  font-family: 'Space Mono', monospace;
  font-size: 18px;
  color: #fff;
  margin: 0 0 12px;
  font-weight: 700;
}

.gate-desc {
  font-family: 'Space Mono', monospace;
  font-size: 13px;
  color: #888;
  line-height: 1.6;
  margin: 0 0 32px;
}

.gate-highlight {
  color: #00d4ff;
}

/* Form */
.gate-form {
  display: flex;
  flex-direction: column;
  gap: 12px;
  margin-bottom: 24px;
}

.gate-input {
  width: 100%;
  padding: 16px 20px;
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid rgba(255, 255, 255, 0.15);
  border-radius: 12px;
  color: #fff;
  font-family: 'Space Mono', monospace;
  font-size: 14px;
  outline: none;
  transition: all 0.2s ease;
}

.gate-input:focus {
  border-color: #9400d3;
  background: rgba(148, 0, 211, 0.05);
  box-shadow: 0 0 20px rgba(148, 0, 211, 0.2);
}

.gate-input::placeholder {
  color: #555;
}

.gate-submit {
  width: 100%;
  padding: 16px;
  background: linear-gradient(135deg, #9400d3 0%, #00d4ff 100%);
  border: none;
  border-radius: 12px;
  color: #fff;
  font-family: 'Space Mono', monospace;
  font-size: 14px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 2px;
  cursor: pointer;
  transition: all 0.2s ease;
}

.gate-submit:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 30px rgba(148, 0, 211, 0.4);
}

.gate-submit:active {
  transform: translateY(0);
}

.gate-submit:disabled {
  opacity: 0.6;
  cursor: not-allowed;
  transform: none;
}

/* Success state */
.gate-success {
  display: none;
  flex-direction: column;
  align-items: center;
  gap: 16px;
  padding: 24px;
  background: rgba(0, 212, 255, 0.1);
  border: 1px solid rgba(0, 212, 255, 0.3);
  border-radius: 12px;
  margin-bottom: 24px;
}

.gate-success.show {
  display: flex;
}

.gate-success-icon {
  font-size: 48px;
}

.gate-success-text {
  font-family: 'Space Mono', monospace;
  font-size: 14px;
  color: #00d4ff;
}

/* Features preview */
.gate-features {
  display: flex;
  flex-direction: column;
  gap: 12px;
  margin-bottom: 32px;
  text-align: left;
}

.gate-feature {
  display: flex;
  align-items: center;
  gap: 12px;
  font-family: 'Space Mono', monospace;
  font-size: 12px;
  color: #666;
}

.gate-feature-icon {
  font-size: 18px;
}

/* Footer */
.gate-footer {
  font-family: 'Space Mono', monospace;
  font-size: 11px;
  color: #444;
}

.gate-footer a {
  color: #666;
  text-decoration: none;
}

.gate-footer a:hover {
  color: #00d4ff;
}

/* Desktop link */
.gate-desktop-link {
  margin-top: 24px;
  padding-top: 24px;
  border-top: 1px solid rgba(255, 255, 255, 0.1);
}

.gate-desktop-text {
  font-family: 'Space Mono', monospace;
  font-size: 11px;
  color: #555;
  margin-bottom: 8px;
}

.gate-desktop-btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 10px 16px;
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 8px;
  color: #888;
  font-family: 'Space Mono', monospace;
  font-size: 11px;
  text-decoration: none;
  transition: all 0.2s ease;
}

.gate-desktop-btn:hover {
  background: rgba(255, 255, 255, 0.1);
  color: #fff;
}
