:root {
  color-scheme: light;
  --bg: #ffffff;
  --fg: #1b1b1f;
  --muted: #6b7280;
  --brand: #2563eb;
  
  /* Gradient colors */
  --orange-200: oklch(0.901 0.076 70.697);
  --pink-200: oklch(0.899 0.061 343.231);
  --blue-300: oklch(0.809 0.105 251.813);
  --star-blue: #00bfff;
}

* {
  box-sizing: border-box;
}

html,
body {
  margin: 0;
  padding: 0;
  font: 15px/1.5 -apple-system, system-ui, Segoe UI, Roboto, sans-serif;
}

.coming-soon-container {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  min-height: 100vh;
  background: linear-gradient(to bottom right, var(--orange-200), var(--pink-200), var(--blue-300));
  padding: 20px;
}

.logo-wrapper {
  position: relative;
  width: 100%;
  max-width: 800px;
  height: 220px;
  display: flex;
  align-items: center;
  justify-content: center;
}

.pulse-logo {
  display: block;
  width: 100%;
  height: 100%;
}

.text-content {
  margin-top: 48px;
  text-align: center;
  max-width: 800px;
  padding: 0 20px;
}

.coming-soon-text {
  margin: 0 0 16px;
  font-size: 32px;
  font-weight: 500;
  color: rgba(0, 0, 0, 0.7);
  letter-spacing: 0.05em;
  text-transform: uppercase;
  opacity: 0.6;
}

.tagline {
  margin: 0 0 32px;
  font-size: 18px;
  font-weight: 400;
  color: rgba(0, 0, 0, 0.6);
  line-height: 1.6;
  letter-spacing: 0.02em;
  animation: fadeIn 1s ease-in-out 0.7s both;
}

/* CTA Button */
.cta-button {
  display: inline-block;
  padding: 14px 32px;
  font-size: 16px;
  font-weight: 500;
  color: #ffffff;
  background-color: rgba(0, 0, 0, 0.85);
  border: 2px solid rgba(255, 255, 255, 0.2);
  border-radius: 8px;
  cursor: pointer;
  transition: all 0.3s ease;
  animation: fadeIn 1s ease-in-out 0.9s both;
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
}

.cta-button:hover {
  background-color: rgba(0, 0, 0, 0.95);
  border-color: rgba(255, 255, 255, 0.3);
  transform: translateY(-2px);
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.2);
}

.cta-button:active {
  transform: translateY(0);
}

.cta-button:focus {
  outline: 2px solid rgba(255, 255, 255, 0.5);
  outline-offset: 2px;
}

@keyframes fadeIn {
  from {
    opacity: 0;
    transform: translateY(10px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

/* Override fadeIn animation for coming-soon-text to end at 0.6 opacity */
.coming-soon-text {
  animation: fadeInTo06 1s ease-in-out 0.5s both;
}

@keyframes fadeInTo06 {
  from {
    opacity: 0;
    transform: translateY(10px);
  }
  to {
    opacity: 0.6;
    transform: translateY(0);
  }
}

/* Star animations */
#static-star {
  transition: fill 1.2s ease-in-out, stroke 1.2s ease-in-out;
}

#static-star.booting {
  fill: var(--star-blue);
  stroke: var(--star-blue);
  animation: flicker 0.3s ease-in-out;
}

#spinning-star {
  transform-origin: 50% 50%;
  transform-box: fill-box;
  display: none;
}

#spinning-star.active {
  display: block;
  animation: spin 1.4s cubic-bezier(0.34, 1.56, 0.64, 1);
}

#transitioning-star {
  display: none;
}

#transitioning-star.active {
  display: block;
}

#path-star {
  display: none;
}

#path-star.active {
  display: block;
}

@keyframes flicker {
  0%, 100% {
    opacity: 1;
  }
  10% {
    opacity: 0.3;
  }
  20% {
    opacity: 1;
  }
  30% {
    opacity: 0.5;
  }
  40% {
    opacity: 1;
  }
  50% {
    opacity: 0.7;
  }
  60%, 100% {
    opacity: 1;
  }
}

@keyframes spin {
  0% {
    transform: rotate(0deg);
  }
  30% {
    transform: rotate(180deg);
  }
  70% {
    transform: rotate(720deg);
  }
  100% {
    transform: rotate(720deg);
  }
}

/* Modal Styles */
.modal-overlay {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background-color: rgba(0, 0, 0, 0.5);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 1000;
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.3s ease, visibility 0.3s ease;
  padding: 20px;
}

.modal-overlay.active {
  opacity: 1;
  visibility: visible;
}

.modal-container {
  position: relative;
  width: 100%;
  max-width: 500px;
  max-height: 90vh;
  overflow-y: auto;
  background: rgba(255, 255, 255, 0.95);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  border: 1px solid rgba(255, 255, 255, 0.3);
  border-radius: 16px;
  box-shadow: 0 8px 32px rgba(0, 0, 0, 0.2);
  transform: scale(0.9) translateY(20px);
  transition: transform 0.3s ease;
  padding: 32px;
}

.modal-overlay.active .modal-container {
  transform: scale(1) translateY(0);
}

.modal-close {
  position: absolute;
  top: 16px;
  right: 16px;
  width: 36px;
  height: 36px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: rgba(0, 0, 0, 0.05);
  border: none;
  border-radius: 8px;
  cursor: pointer;
  color: rgba(0, 0, 0, 0.7);
  transition: all 0.2s ease;
  z-index: 10;
}

.modal-close:hover {
  background: rgba(0, 0, 0, 0.1);
  color: rgba(0, 0, 0, 0.9);
}

.modal-close:focus {
  outline: 2px solid rgba(0, 0, 0, 0.3);
  outline-offset: 2px;
}

.modal-close svg {
  width: 20px;
  height: 20px;
}

.modal-content {
  color: #1b1b1f;
}

.modal-title {
  margin: 0 0 8px;
  font-size: 28px;
  font-weight: 600;
  color: #1b1b1f;
  line-height: 1.3;
}

.modal-description {
  margin: 0 0 24px;
  font-size: 15px;
  color: rgba(0, 0, 0, 0.7);
  line-height: 1.5;
}

/* Form Styles */
.pre-register-form {
  display: flex;
  flex-direction: column;
  gap: 20px;
}

.form-group {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.form-label {
  font-size: 14px;
  font-weight: 500;
  color: #1b1b1f;
  line-height: 1.4;
}

.form-input {
  width: 100%;
  padding: 12px 16px;
  font-size: 15px;
  font-family: inherit;
  color: #1b1b1f;
  background-color: rgba(255, 255, 255, 0.9);
  border: 1.5px solid rgba(0, 0, 0, 0.15);
  border-radius: 8px;
  transition: all 0.2s ease;
  -webkit-appearance: none;
  appearance: none;
}

.form-input:focus {
  outline: none;
  border-color: rgba(0, 0, 0, 0.4);
  background-color: #ffffff;
  box-shadow: 0 0 0 3px rgba(0, 0, 0, 0.1);
}

.form-input::placeholder {
  color: rgba(0, 0, 0, 0.4);
}

.form-input:invalid:not(:placeholder-shown) {
  border-color: rgba(212, 24, 61, 0.5);
}

.form-submit {
  margin-top: 8px;
  padding: 14px 24px;
  font-size: 16px;
  font-weight: 500;
  color: #ffffff;
  background-color: #1b1b1f;
  border: none;
  border-radius: 8px;
  cursor: pointer;
  transition: all 0.2s ease;
}

.form-submit:hover {
  background-color: #000000;
  transform: translateY(-1px);
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
}

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

.form-submit:focus {
  outline: 2px solid rgba(0, 0, 0, 0.3);
  outline-offset: 2px;
}

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

.form-message {
  margin-top: 16px;
  padding: 12px 16px;
  border-radius: 8px;
  font-size: 14px;
  line-height: 1.5;
  display: none;
}

.form-message.success {
  display: block;
  background-color: rgba(34, 197, 94, 0.1);
  color: #16a34a;
  border: 1px solid rgba(34, 197, 94, 0.2);
}

.form-message.error {
  display: block;
  background-color: rgba(239, 68, 68, 0.1);
  color: #dc2626;
  border: 1px solid rgba(239, 68, 68, 0.2);
}

/* Footer */
.site-footer {
  position: fixed;
  bottom: 0;
  left: 0;
  right: 0;
  padding: 16px 20px;
  text-align: center;
  background: transparent;
  z-index: 100;
}

.footer-text {
  margin: 0;
  font-size: 13px;
  color: rgba(0, 0, 0, 0.5);
  line-height: 1.5;
}

.footer-text a {
  color: rgba(0, 0, 0, 0.6);
  text-decoration: none;
  transition: color 0.2s ease;
}

.footer-text a:hover {
  color: rgba(0, 0, 0, 0.8);
  text-decoration: underline;
}

.footer-text a:focus {
  outline: 2px solid rgba(0, 0, 0, 0.3);
  outline-offset: 2px;
  border-radius: 2px;
}

/* Responsive adjustments */
@media (max-width: 768px) {
  .logo-wrapper {
    max-width: 100%;
    height: auto;
    min-height: 150px;
  }
  
  .pulse-logo {
    max-width: 100%;
    height: auto;
  }
  
  .text-content {
    margin-top: 32px;
  }
  
  .coming-soon-text {
    font-size: 24px;
    margin-bottom: 12px;
  }
  
  .tagline {
    font-size: 16px;
    margin-bottom: 24px;
  }

  .cta-button {
    padding: 12px 24px;
    font-size: 15px;
  }

  .modal-container {
    padding: 24px;
    max-height: 95vh;
  }

  .modal-title {
    font-size: 24px;
    padding-right: 40px;
  }

  .modal-description {
    font-size: 14px;
  }

  .site-footer {
    padding: 12px 16px;
  }

  .footer-text {
    font-size: 12px;
  }
}
