/* ---------------------- Base ---------------------- */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
  font-family: 'Montserrat', sans-serif;
}

html, body {
  width: 100%;
  height: 100%;
  overflow: hidden; 
  background: #000;
  color: #fff;
  display: flex;
  justify-content: center;
  align-items: center;
  background-image: url("/assets/pmco-bg.png");
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
}

#state1, #state2, #state3{
  background: rgba(0,0,0,0.9);
}

/* ---------------------- Views ---------------------- */
.view {
  position: absolute;
  top: 0; left: 0;
  width: 100%;
  height: 100%;
  display: flex;
  justify-content: center;
  align-items: center;
  flex-direction: column;
  text-align: center;
  opacity: 0;
  transform: translateY(40px);
  transition: opacity 1s ease, transform 1s ease;
  pointer-events: none;
  z-index: 1;
}

.view.active {
  opacity: 1;
  transform: translateY(0);
  pointer-events: all;
  z-index: 2;
}
/* ---------------------- Fade Only (Opt-in) ---------------------- */
.view.fade-only {
  transform: none !important;
}

.view.fade-only.active {
  transform: none !important;
}
/* State2 fade only */
#state2 {
  transform: none;
}
#state2.active { transform: none; }

.state-container {
  max-width: 460px;
  width: 90%;
  display: flex;
  flex-direction: column;
  align-items: center;
}

/* Logo */
.pmco-logo {
  max-width: 170px;
  margin-bottom: 35px;
}

/* Email Form */
.email-form {
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 0;
  width: 100%;
  margin-bottom: 1em;
}

.email-form input[type="email"] {
  padding: 12px;
  border-radius: 18px 0 0 18px;
  border: 1px solid #333;
  background: #141414;
  color: #fff;
  font-size: 16px;
  outline: none;
}

.email-form button {
  padding: 12px 20px;
  border: 1px solid #333;
  border-radius: 0 18px 18px 0;
  background: #141414;
  color: #fff;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.3s ease;
}

.email-form button:hover { background: #222; }

/* Disclaimer */
.disclaimer-container {
  margin-bottom: 1em;
  font-size: 0.85rem;
  color: #ccc;
  display: flex;
  gap: 0.5rem;
  align-items: flex-start;
}

.disclaimer-container input[type="checkbox"] {
  cursor: pointer;
  margin-top: 2px;
}

.disclaimer-container label { cursor: pointer; line-height: 1.4; }

/* Status & Success Messages */
.status-message { color: antiquewhite; margin-bottom: 1em; }
.success-message { font-size: 20px; font-weight: 600; }

/* Founder Video */
#founder-video {
  margin-top: 0px;
  text-decoration: none;
  cursor: pointer;
  opacity: 0.7;
  color: white;
  display: inline-flex;
  align-items: center;
  gap: 10px;
}

#founder-video:hover { opacity: 1; }

.play-icon {
  width: 26px;
  height: 26px;
  border: 1.5px solid rgba(255,255,255,0.8);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0.85;
  transition: all 0.25s ease;
}

.play-triangle {
  width: 0;
  height: 0;
  border-left: 7px solid white;
  border-top: 5px solid transparent;
  border-bottom: 5px solid transparent;
  margin-left: 2px;
}

/* ---------------------- Modal ---------------------- */
.modal {
  display: none;
  position: fixed;
  inset: 0;
  background: rgba(0,0,0,0.2);
  justify-content: center;
  align-items: center;
  opacity: 0;
  transition: opacity 0.5s ease;
  z-index: 9999;
}

.modal.show { display: flex; opacity: 1; }

.modal-content {
  max-width: 90%;
  max-height: 90%;
  height: auto;
  display: flex;
  justify-content: center;
  align-items: center;
  position: relative;
}

#founder-video-player {
  width: 100%;
  height: 100%;
  max-height: 80vh;
  object-fit: contain;
  border-radius: 8px;
}

#modal-close {
  font-size: 34px;
  cursor: pointer;
  position: absolute;
  top: -10px;
  right: -10px;
  display: none;
}

/* ---------------------- Loader ---------------------- */
.loader {
  position: fixed;
  inset: 0;
  background: rgba(0,0,0,0.95);
  display: flex;
  justify-content: center;
  align-items: center;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.5s ease;
  z-index: 9998;
}

.loader.active {
  opacity: 1;
  pointer-events: all;
}

.spinner {
  border: 6px solid #141414;
  border-top: 6px solid #fff;
  border-radius: 50%;
  width: 60px;
  height: 60px;
  animation: spin 1s linear infinite;
}

@keyframes spin { to { transform: rotate(360deg); } }

/* Responsive */
@media (max-width: 768px) {
  .state-container { width: 85%; }
  .pmco-logo { max-width: 140px; }
  .email-form input[type="email"], .email-form button { font-size: 16px; }
  .modal-content { width: 95%; }
}
