/* --------------------------------------------------
   Google Font
-------------------------------------------------- */

@import url('https://fonts.googleapis.com/css2?family=Play:wght@400;700&display=swap');

/* --------------------------------------------------
   Base Reset & Typography
-------------------------------------------------- */

*,
*::before,
*::after {
  box-sizing: border-box;
}

html,
body {
  margin: 0;
  padding: 0;
  height: 100%;
}

body {
  font-family: "Play", system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  color: #e8f7ff;
  background: #000000;
  line-height: 1.5;
  opacity: 0;
  animation: fadeIn 0.4s ease-out forwards;
}

@keyframes fadeIn {
  from { opacity: 0; }
  to { opacity: 1; }
}

/* --------------------------------------------------
   Layout
-------------------------------------------------- */

.page {
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
}

.hero {
  max-width: 960px;
  margin: 0 auto;
  padding: 3rem 1.5rem;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 3rem;
}

.hero-logo-wrap {
  flex: 0 0 360px;
  display: flex;
  justify-content: center;
}

.hero-logo {
  max-width: 360px;
  height: auto;
  transition: transform 0.25s ease;
}

.hero-logo:hover {
  transform: translateY(-6px);
}

/* --------------------------------------------------
   Typography
-------------------------------------------------- */

.hero-text {
  flex: 1 1 280px;
  text-align: left;
}

.hero-title {
  margin: 0 0 0.25rem;
  font-size: 3.4rem;
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: none; /* Sentence case */
}

.hero-subtitle {
  margin: 0 0 1.5rem;
  font-size: 1.5rem;
  font-weight: 400;
  color: #00FFDC;
  letter-spacing: 0.04em;
  text-shadow: 0 0 8px #00FFDC, 0 0 12px rgba(0,255,220,0.4);
}

.hero-body {
  margin: 0 0 1rem;
  font-size: 1.05rem;
  max-width: 32rem;
}

.hero-since {
  margin: 0 0 1.5rem;
  font-size: 0.95rem;
  color: #00FFDC;
  text-shadow: 0 0 8px #00FFDC, 0 0 12px rgba(0,255,220,0.4);
}

/* --------------------------------------------------
   Buttons
-------------------------------------------------- */

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0.7rem 1.6rem;
  border-radius: 999px;
  border: 1px solid transparent;
  font-size: 0.95rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  cursor: pointer;
  transition: background 0.2s ease, color 0.2s ease, border-color 0.2s ease,
    transform 0.1s ease, box-shadow 0.2s ease;
}

.btn:active {
  transform: scale(0.97);
}

.btn.primary {
  background: transparent;
  color: #00FFDC;
  border-color: #00FFDC;
  text-shadow: 0 0 8px #00FFDC, 0 0 12px rgba(0,255,220,0.4);
}

.btn.primary:hover {
  background: #00FFDC;
  color: #020308;
  box-shadow: 0 0 12px #00FFDC;
}

/* --------------------------------------------------
   Momentum Burst Spin (Eased + 3s cycle)
-------------------------------------------------- */

.logo-spin {
  animation: coinSpin 6s cubic-bezier(0.25, 0.1, 0.25, 1) infinite;  /* total cycle = spin time + pause */
  animation-delay: 0.8s;
  transform-style: preserve-3d;
  /* optional: backface-visibility: hidden; */
}

@keyframes coinSpin {
  0%         { transform: rotateY(0deg);    }
  66.666%    { transform: rotateY(2160deg); }   /* ~4s of spinning (66.67% of 6s) */
  100%       { transform: rotateY(2160deg); }   /* holds still for the remaining ~2s */
}

/* --------------------------------------------------
   Modal
-------------------------------------------------- */

.modal {
  position: fixed;
  inset: 0;
  display: none;
  align-items: center;
  justify-content: center;
  z-index: 1000;
}

.modal.is-open {
  display: flex;
}

.modal-backdrop {
  position: absolute;
  inset: 0;
  background: rgba(0, 0, 0, 0.75);
}

.modal-dialog {
  position: relative;
  z-index: 1;
  background: #05070b;
  border-radius: 12px;
  padding: 2rem 1.75rem 1.75rem;
  max-width: 480px;
  width: 100%;
  box-shadow:
    0 0 25px rgba(0, 255, 220, 0.25),
    0 0 50px rgba(0, 255, 220, 0.15);
  border: 1px solid rgba(0, 255, 220, 0.25);
}

.modal-title {
  margin: 0 0 0.25rem;
  font-size: 1.6rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.modal-subtext {
  margin: 0 0 1.5rem;
  font-size: 0.9rem;
  color: #9fb3c8;
}

.modal-close {
  position: absolute;
  top: 0.75rem;
  right: 0.9rem;
  border: none;
  background: transparent;
  color: #9fb3c8;
  font-size: 1.4rem;
  cursor: pointer;
}

/* --------------------------------------------------
   Form
-------------------------------------------------- */

.form {
  margin-top: 0.5rem;
}

.form-row {
  margin-bottom: 1rem;
}

.form-row-inline {
  display: flex;
  align-items: center;
  gap: 0.75rem;
}

.form-label {
  display: block;
  margin-bottom: 0.25rem;
  font-size: 0.85rem;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: #9fb3c8;
}

.form-control {
  width: 100%;
  padding: 0.6rem 0.7rem;
  border-radius: 6px;
  border: 1px solid #1b2735;
  background: #05070b;
  color: #e8f7ff;
  font-size: 0.95rem;
}

.form-control:focus {
  outline: none;
  border-color: #00FFDC;
  box-shadow: 0 0 0 1px rgba(0, 255, 220, 0.4);
}

.form-control-small {
  max-width: 5rem;
}

textarea.form-control {
  min-height: 120px;
  resize: vertical;
}

.form-message {
  font-size: 0.9rem;
  margin-top: 0.5rem;
}

.form-message-success {
  color: #00FFDC;
}

.form-message-error {
  color: #ff6b6b;
}

/* --------------------------------------------------
   Responsive
-------------------------------------------------- */

@media (max-width: 768px) {
  .hero {
    text-align: center;
    flex-direction: column;
  }

  .hero-text {
    text-align: center;
  }

  .hero-body {
    margin-left: auto;
    margin-right: auto;
  }
}
