*,
*::before,
*::after {
  box-sizing: border-box;
}

html,
body {
  height: 100%;
  margin: 0;
}

body {
  font-family: "Poppins", system-ui, -apple-system, BlinkMacSystemFont,
    "Segoe UI", sans-serif;
}

.page {
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;

  background: radial-gradient(
    circle at top left,
    #3b2a7a 0%,
    #141a3a 35%,
    #0b3b4a 70%,
    #14b8a6 100%
  );
  background-size: 200% 200%;
  animation: bg-move 18s ease-in-out infinite;
}

.page-inner {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 12px;
}

@keyframes bg-move {
  0% {
    background-position: 0% 0%;
  }
  50% {
    background-position: 100% 100%;
  }
  100% {
    background-position: 0% 0%;
  }
}

.flip-card {
  width: min(50vw, 620px);   
  height: 270px;             
  border-radius: 32px;
  position: relative;
  perspective: 1600px;
  transition: height 0.4s ease; 
}

.flip-card.flip-card--back {
  height: 270px;            
}

.flip-inner {
  position: relative;
  width: 100%;
  height: 100%;
  transform-style: preserve-3d;
  transition: transform 0.7s ease;
}

.flip-inner.is-flipped {
  transform: rotateY(180deg);
}

.flip-face {
  position: absolute;
  inset: 0;
  border-radius: 32px;
  background: #020617;
  border: 1px solid rgba(51, 65, 85, 0.8);
  box-shadow:
    0 50px 120px rgba(0, 0, 0, 0.85);
  backface-visibility: hidden;

  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: flex-start;
  padding: 26px 40px 24px;
}

.flip-front {
  transform: rotateY(0deg);
}

.flip-back {
  transform: rotateY(180deg);
  align-items: center;
}

.title {
  margin: 0 0 8px;
  font-size: clamp(32px, 3vw, 42px);
  font-weight: 700;
}

.subtitle {
  margin: 0 0 16px;
  font-size: 16px;
  font-weight: 400;
  color: #f5f7ff;
}

.countdown {
  margin: 0 0 22px;
  font-size: 18px;
  font-weight: 500;
  letter-spacing: 0.04em;
  color: rgba(226, 232, 255, 0.92);
}

.meta {
  margin: 16px 0 0;
  font-size: 13px;
  font-weight: 400;
  color: rgba(209, 213, 255, 0.75);
}

.toxic-gradient {
  background: linear-gradient(
    120deg,
    #e4e9ff,
    #c6b5ff,
    #7dd3fc,
    #e4e9ff
  );
  background-size: 200% 200%;
  animation: text-move 18s ease-in-out infinite;
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

@keyframes text-move {
  0% {
    background-position: 0% 50%;
  }
  50% {
    background-position: 100% 50%;
  }
  100% {
    background-position: 0% 50%;
  }
}

/* FRONT BUTTONS */

.buttons-row {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  justify-content: center;
  align-items: center;
}

.social-link {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 8px 22px;
  border-radius: 999px;
  background: rgba(15, 23, 42, 0.95);
  border: 1px solid rgba(148, 163, 255, 0.45);
  color: #e5ecff;
  text-decoration: none;
  font-size: 13px;
  font-weight: 500;
  box-shadow: 0 14px 32px rgba(0, 0, 0, 0.6);
  transition: transform 0.15s ease, box-shadow 0.15s ease,
    background 0.15s ease, border-color 0.15s ease;
}

.social-link:hover {
  transform: translateY(-1px);
  background: rgba(15, 23, 42, 0.98);
  border-color: rgba(196, 181, 253, 0.9);
  box-shadow: 0 18px 40px rgba(0, 0, 0, 0.7);
}

.discord-icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
}

.discord-img {
  width: 20px;
  height: 20px;
  display: block;
}

.social-text {
  letter-spacing: 0.02em;
}

.pre-signup-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 999px;
  padding: 9px 22px;
  background: rgba(37, 99, 235, 0.95);
  border: 1px solid rgba(191, 219, 254, 0.9);
  color: #e5ecff;
  font-size: 13px;
  font-weight: 600;
  letter-spacing: 0.02em;
  cursor: pointer;
  box-shadow: 0 14px 32px rgba(15, 23, 42, 0.7);
  transition: transform 0.15s ease, box-shadow 0.15s ease,
    background 0.15s ease, border-color 0.15s.ease;
}

.pre-signup-btn:hover {
  transform: translateY(-1px);
  background: rgba(37, 99, 235, 1);
  border-color: rgba(219, 234, 254, 1);
}

.pre-signup-btn:active {
  transform: translateY(0);
  box-shadow: 0 8px 22px rgba(15, 23, 42, 0.8);
}

.flip-front .buttons-row {
  margin-top: 4px;
}

.flip-front .meta {
  margin-top: 16px;
}

/* BACK – SIGNUP VIEW */

.flip-back .title {
  margin-bottom: 44px;
}

.pre-signup-form {
  width: 100%;
  max-width: 260px;
  display: flex;
  flex-direction: column;
  gap: 10px;
  align-items: stretch;
  margin-top: -32px; 
}

.text-input {
  padding: 10px 14px;
  border-radius: 999px;
  border: 1px solid rgba(148, 163, 255, 0.45);
  background: rgba(15, 23, 42, 0.95);
  color: #e5ecff;
  font-size: 14px;
  outline: none;
  transition: border-color 0.15s.ease, box-shadow 0.15s.ease,
    background 0.15s.ease;
}

.text-input::placeholder {
  color: rgba(148, 163, 255, 0.7);
}

.text-input:focus {
  border-color: rgba(196, 181, 253, 0.95);
  box-shadow: 0 0 0 1px rgba(196, 181, 253, 0.6);
  background: rgba(15, 23, 42, 1);
}

.back-buttons-row {
  margin-top: 10px;
  display: flex;
  justify-content: center;
  gap: 12px;
}

.pre-signup-submit {
  border-radius: 999px;
  padding: 8px 22px;
  background: #16a34a;
  border: 1px solid rgba(187, 247, 208, 0.95);
  color: #ecfdf5;
  font-size: 14px;
  font-weight: 600;
  cursor: pointer;
  transition: transform 0.15s.ease, box-shadow 0.15s.ease,
    background 0.15s.ease, border-color 0.15s.ease;
}

.pre-signup-submit:hover {
  transform: translateY(-1px);
  background: #22c55e;
  border-color: rgba(220, 252, 231, 1);
}

.pre-signup-submit:active {
  transform: translateY(0);
  box-shadow: 0 8px 22px rgba(15, 23, 42, 0.8);
}

.back-btn {
  border-radius: 999px;
  padding: 8px 22px;
  background: transparent;
  border: 1px solid rgba(148, 163, 255, 0.6);
  color: rgba(226, 232, 255, 0.9);
  font-size: 13px;
  font-weight: 500;
  cursor: pointer;
  transition: background 0.15s.ease, border-color 0.15s.ease,
    color 0.15s.ease;
}

.back-btn:hover {
  background: rgba(15, 23, 42, 0.95);
  border-color: rgba(196, 181, 253, 0.9);
}

/* Message text */
.pre-signup-message {
  min-height: 20px;
  margin: 6px 0 0;
  font-size: 12px;
  color: rgba(187, 247, 208, 0.9);
}

/* consent checkbox styling */
.consent-label {
  margin-top: 6px;
  display: flex;
  align-items: center;
  gap: 6px;
  font-size: 11px;
  color: rgba(209, 213, 255, 0.9);
}

.consent-label input[type="checkbox"] {
  accent-color: #4f46e5;
}

.privacy-link-under-card {
  text-align: center;
  font-size: 11px;
  visibility: hidden; 
}

.flip-card.flip-card--back + .privacy-link-under-card {
  visibility: visible;
}
.page .page-inner .privacy-link-under-card a.privacy-underlink,
.page .page-inner .privacy-link-under-card a.privacy-underlink:hover {
  color: #ffffff !important;   
  font-size: 14px;             
  font-weight: 600;            
  letter-spacing: 0.02em;
  text-decoration: none;       
  cursor: pointer;
}

/* ==== PRIVACY PAGE CARD ==== */

.privacy-card {
  width: min(60vw, 720px);
  height: auto;
  min-height: 360px;
}

.privacy-face {
  position: relative;
  inset: 0;
  border-radius: 32px;
  background: #020617;
  border: 1px solid rgba(51, 65, 85, 0.8);
  box-shadow: 0 50px 120px rgba(0, 0, 0, 0.85);
  display: flex;
  flex-direction: column;
  align-items: stretch;
  justify-content: flex-start;
  padding: 26px 40px 28px;
}

.privacy-face .title {
  margin-bottom: 8px;
  text-align: center;
}

.privacy-face .subtitle {
  margin-bottom: 20px;
  text-align: left;
}

.privacy-list {
  font-size: 13px;
  line-height: 1.7;
  color: rgba(226, 232, 255, 0.9);
}

.privacy-list p {
  margin: 0 0 10px;
}

/* RESPONSIVE */

@media (max-width: 900px) {
  .flip-card {
    width: min(90vw, 720px);
  }
}

@media (max-width: 768px) {
  .page {
    padding: 16px;
  }

  .flip-face,
  .privacy-face {
    padding: 22px 20px 22px;
  }

  .buttons-row {
    flex-direction: column;
  }

  .title {
    font-size: 30px;
  }

  .countdown {
    font-size: 14px;
  }

  .flip-card,
  .privacy-card {
    width: min(90vw, 600px);
  }
}

@media (max-width: 480px) {
  .title {
    font-size: 24px;
  }

  .countdown {
    font-size: 12px;
  }

  .meta {
    font-size: 11px;
  }

  .flip-card,
  .privacy-card {
    width: min(95vw, 500px);
  }
}

a[href^="mailto:"] {
  color: #ffffff;           
  text-decoration: none;   
}

a[href^="mailto:"]:hover {
  color: #e5e7eb;          
}