* { box-sizing: border-box; }
html, body { 
  min-height: 100%;
  height: auto;
}



/* Dark Theme */
body {
  margin: 0;
  font-family: system-ui, -apple-system, Segoe UI, Roboto, Ubuntu, Cantarell, Noto Sans, 'Helvetica Neue', Arial, 'Apple Color Emoji', 'Segoe UI Emoji';
  color: #e5e7eb;
  background: url('../Images/boe.png') center center / cover no-repeat fixed, #0b0f14;
}

.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  border: 0;
}

.hero {
  min-height: 100vh;
  display: grid;
  place-items: center;
  padding: 2rem;
}
.hero-inner {
  text-align: center;
}
.brand-logo {
  margin: 0 0 3rem 0;
  width: clamp(280px, 75vw, 700px);
  height: auto;
  display: block;
  image-rendering: pixelated;
  image-rendering: -moz-crisp-edges;
  image-rendering: crisp-edges;
  filter: drop-shadow(0 4px 8px rgba(0,0,0,0.5));
}

/* Pixelated Button - Clean pixel art style */
.pixel-button {
  color: #fff;
  background-color: #4A90E2;
  padding: 15px 40px;
  margin: 10px;
  font-size: 14px;
  font-family: "Press Start 2P", system-ui;
  border: 0;
  box-shadow: 
    0px 5px black, 
    0px -5px black, 
    5px 0px black, 
    -5px 0px black, 
    0px 10px #00000038, 
    5px 5px #00000038, 
    -5px 5px #00000038, 
    inset 0px 5px #ffffff36;
  cursor: pointer;
  text-transform: lowercase;
  letter-spacing: 1px;
  transition: transform 100ms ease;
}

.pixel-button.small {
  padding: 12px 25px;
  font-size: 12px;
}

.pixel-button:hover {
  filter: brightness(1.1);
}

.pixel-button:active {
  transform: translateY(5px);
  box-shadow: 
    0px 5px black, 
    0px -5px black, 
    5px 0px black, 
    -5px 0px black,
    inset 0px 5px #00000038;
}

.pixel-button:focus-visible {
  outline: 2px dotted #ffff00;
  outline-offset: 4px;
}

/* Button color variants */
.pixel-button.discord {
  background-color: #5865F2;
  text-decoration: none;
  display: block;
  text-align: center;
  margin: 10px auto;
}

.pixel-button.danger {
  background-color: #d83434;
}

.overlay {
  position: fixed;
  inset: 0;
  background: rgba(0,0,0,0.6);
  backdrop-filter: blur(3px);
  display: grid;
  place-items: center;
  padding: 1rem;
  z-index: 50;
}
.hidden { display: none; }

.modal {
  width: min(520px, 92vw);
  background: linear-gradient(180deg, #0f172a, #0b1220);
  border: 1px solid rgba(148,163,184,0.25);
  border-radius: 12px;
  padding: 2rem;
  box-shadow: 0 10px 30px rgba(0,0,0,0.5), inset 0 0 40px rgba(59,130,246,0.05);
  position: relative;
}
.modal h2 {
  margin: 0 0 2.5rem 0;
  font-family: 'Press Start 2P', system-ui, monospace;
  font-size: 1.5rem;
  letter-spacing: 1px;
  text-align: center;
}
.close-btn {
  position: absolute;
  top: 8px;
  right: 8px;
  width: 36px;
  height: 36px;
  border-radius: 8px;
  border: 1px solid rgba(148,163,184,0.25);
  background: #0b1220;
  color: #94a3b8;
  cursor: pointer;
  font-size: 20px;
}
.close-btn:hover { color: #cbd5e1; }
.close-btn:focus-visible { outline: 2px solid #a855f7; outline-offset: 2px; }



.divider {
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  align-items: center;
  gap: 0.75rem;
  margin: 1rem 0;
  color: #94a3b8;
}
.divider::before,
.divider::after {
  content: '';
  height: 1px;
  background: linear-gradient(90deg, rgba(148,163,184,0), rgba(148,163,184,0.5), rgba(148,163,184,0));
}

#waitlist-form {
  display: grid;
  gap: 0.75rem;
}
#email {
  width: 100%;
  background: #0b1628;
  border: 1px solid rgba(148,163,184,0.25);
  border-radius: 10px;
  padding: 0.9rem 1rem;
  color: #e5e7eb;
  outline: none;
}
#email::placeholder { color: #64748b; }
#email:focus { border-color: #4A90E2; box-shadow: 0 0 0 4px rgba(74,144,226,0.2); }

.form-message {
  margin: 0.25rem 0 0 0;
  min-height: 1.25rem;
  font-size: 0.9rem;
  text-align: center;
}
 .form-message.error { color: #fca5a5; }
 .form-message.success { color: #86efac; }

/* Error Page */
.error-page {
  min-height: 100vh;
  display: grid;
  place-items: center;
  padding: 2rem;
}

.error-container {
  width: min(600px, 92vw);
  text-align: center;
}

.error-header {
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 2rem;
}

.error-logo {
  width: clamp(250px, 60vw, 500px);
  height: auto;
  image-rendering: pixelated;
  image-rendering: -moz-crisp-edges;
  image-rendering: crisp-edges;
  filter: drop-shadow(0 4px 8px rgba(0,0,0,0.5));
}

.error-content {
  background: linear-gradient(180deg, #0f172a, #0b1220);
  border: 1px solid rgba(148,163,184,0.25);
  border-radius: 12px;
  padding: 2rem 1.5rem;
  box-shadow: 0 10px 30px rgba(0,0,0,0.5), inset 0 0 40px rgba(59,130,246,0.05);
}

.error-title {
  margin: 0 0 1rem 0;
  font-family: 'Press Start 2P', system-ui, monospace;
  font-size: 0.875rem;
  line-height: 1.4;
  color: #f87171;
  letter-spacing: 1px;
}

.error-message {
  margin: 0 0 2rem 0;
  color: #94a3b8;
  line-height: 1.6;
  font-size: 0.95rem;
}

.waitlist-section {
  margin-bottom: 2rem;
}

.waitlist-title {
  margin: 0 0 1rem 0;
  font-family: 'Press Start 2P', system-ui, monospace;
  font-size: 1.25rem;
  color: #e5e7eb;
  letter-spacing: 1px;
}

.waitlist-form .form-row {
  display: grid;
  gap: 0.75rem;
  margin-bottom: 0.5rem;
}

.waitlist-form .form-message {
  margin: 0;
  min-height: 1.25rem;
  font-size: 0.9rem;
  text-align: left;
}

.back-link {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  color: #94a3b8;
  text-decoration: none;
  font-size: 0.9rem;
  transition: color 150ms ease;
}

.back-link:hover {
  color: #e5e7eb;
}

/* Social Footer */
.social-footer {
  position: fixed;
  bottom: 2rem;
  right: 2rem;
  z-index: 10;
}

.social-icons {
  display: flex;
  gap: 1rem;
}

.social-icon {
  width: 48px;
  height: 48px;
  background: rgba(15, 23, 42, 0.9);
  border: 2px solid #000;
  display: flex;
  align-items: center;
  justify-content: center;
  text-decoration: none;
  transition: transform 150ms ease, background-color 150ms ease;
  box-shadow: 
    0 4px 0 0 #000,
    0 4px 8px rgba(0,0,0,0.3);
}

.social-icon:hover {
  transform: translateY(-2px);
  box-shadow: 
    0 6px 0 0 #000,
    0 6px 12px rgba(0,0,0,0.4);
}

.social-icon:active {
  transform: translateY(2px);
  box-shadow: 
    0 2px 0 0 #000,
    0 2px 4px rgba(0,0,0,0.3);
}

.discord-icon {
  color: #5865F2;
}

.discord-icon:hover {
  background: rgba(88, 101, 242, 0.1);
}

.twitter-icon {
  color: #e5e7eb;
}

.twitter-icon:hover {
  background: rgba(255, 255, 255, 0.1);
}

/* Mobile adjustments */
@media (max-width: 768px) {
  .brand-logo {
    margin: 2rem 0 3rem 0;
  }
  
  .social-footer {
    bottom: 1rem;
    right: 1rem;
  }
  
  .social-icon {
    width: 40px;
    height: 40px;
  }
  
  .social-icon svg {
    width: 20px;
    height: 20px;
  }
}
