/* Waitlist page styles — matches theme.css dark aesthetic */

.wl-page {
  min-height: 100vh;
  display: grid;
  grid-template-columns: 1fr 1fr;
  padding-top: 60px; /* nav height */
}

/* === LEFT PANEL === */
.wl-left {
  background: linear-gradient(160deg, #070E0A 0%, #07090E 60%, #0D1117 100%);
  border-right: 1px solid rgba(255,255,255,0.06);
  display: flex;
  align-items: center;
  padding: 80px 60px;
  position: relative;
  overflow: hidden;
}

.wl-left::before {
  content: '';
  position: absolute;
  inset: 0;
  background-image:
    linear-gradient(rgba(10,191,156,0.03) 1px, transparent 1px),
    linear-gradient(90deg, rgba(10,191,156,0.03) 1px, transparent 1px);
  background-size: 60px 60px;
  pointer-events: none;
}

.wl-left-inner {
  position: relative;
  z-index: 1;
  max-width: 480px;
}

.wl-headline {
  font-family: 'Rubik', sans-serif;
  font-weight: 900;
  font-size: clamp(36px, 4vw, 60px);
  line-height: 1.0;
  letter-spacing: -0.03em;
  color: #E8EDF4;
  margin-bottom: 20px;
}

.wl-sub {
  font-size: 16px;
  color: #8892A4;
  line-height: 1.7;
  font-weight: 300;
  max-width: 400px;
  margin-bottom: 40px;
}

.wl-divider {
  width: 48px;
  height: 1px;
  background: rgba(10,191,156,0.4);
  margin-bottom: 36px;
}

.wl-facts {
  display: flex;
  flex-direction: column;
  gap: 28px;
  margin-bottom: 48px;
}

.wl-fact {
  display: flex;
  gap: 16px;
  align-items: flex-start;
}

.wl-fact-icon {
  width: 32px;
  height: 32px;
  border: 1px solid rgba(10,191,156,0.2);
  border-radius: 8px;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  margin-top: 2px;
}

.wl-fact-title {
  font-family: 'Rubik', sans-serif;
  font-weight: 600;
  font-size: 14px;
  color: #E8EDF4;
  margin-bottom: 4px;
}

.wl-fact-desc {
  font-size: 13px;
  color: #8892A4;
  line-height: 1.6;
  font-weight: 300;
}

/* Expansion visualization */
.wl-expansion-visual {
  background: #07090E;
  border: 1px solid rgba(255,255,255,0.06);
  border-radius: 12px;
  padding: 24px;
}

.expansion-svg {
  width: 100%;
  margin-bottom: 16px;
}

.expansion-legend {
  display: flex;
  gap: 20px;
  align-items: center;
  font-size: 11px;
  color: #8892A4;
}

.leg-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  display: inline-block;
  margin-right: 4px;
}

.leg-core { background: #0ABF9C; }
.leg-expand { background: #F4A636; opacity: 0.7; }
.leg-future { background: #8892A4; opacity: 0.4; }

/* === RIGHT PANEL === */
.wl-right {
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 80px 60px;
  background: #0D1117;
}

.wl-form-wrap {
  width: 100%;
  max-width: 400px;
}

.wl-form-header {
  margin-bottom: 36px;
}

.wl-form-header h2 {
  font-family: 'Rubik', sans-serif;
  font-weight: 800;
  font-size: 28px;
  color: #E8EDF4;
  margin-bottom: 10px;
  letter-spacing: -0.02em;
}

.wl-form-header p {
  font-size: 14px;
  color: #8892A4;
  line-height: 1.6;
  font-weight: 300;
}

/* Form fields */
.wl-form {
  display: flex;
  flex-direction: column;
  gap: 20px;
}

.field-group {
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.field-label {
  font-size: 12px;
  font-weight: 600;
  color: #8892A4;
  letter-spacing: 0.04em;
  text-transform: uppercase;
}

.req {
  color: #0ABF9C;
  margin-left: 2px;
}

.optional {
  font-weight: 400;
  text-transform: none;
  letter-spacing: 0;
  color: #4B5A6F;
  font-size: 12px;
}

.field-input {
  background: #111827;
  border: 1px solid rgba(255,255,255,0.08);
  border-radius: 8px;
  padding: 12px 16px;
  font-family: 'DM Sans', sans-serif;
  font-size: 15px;
  color: #E8EDF4;
  transition: border-color 0.2s, box-shadow 0.2s;
  outline: none;
  width: 100%;
}

.field-input::placeholder {
  color: #4B5A6F;
}

.field-input:focus {
  border-color: rgba(10,191,156,0.5);
  box-shadow: 0 0 0 3px rgba(10,191,156,0.08);
}

.field-error {
  font-size: 12px;
  color: #f87171;
  display: none;
}

/* Alert box */
.form-alert {
  padding: 12px 16px;
  border-radius: 8px;
  font-size: 14px;
  line-height: 1.5;
  display: none;
}

.alert-success {
  background: rgba(10,191,156,0.08);
  border: 1px solid rgba(10,191,156,0.25);
  color: #0ABF9C;
}

.alert-error {
  background: rgba(248,113,113,0.08);
  border: 1px solid rgba(248,113,113,0.2);
  color: #f87171;
}

.alert-info {
  background: rgba(148,163,184,0.08);
  border: 1px solid rgba(148,163,184,0.2);
  color: #94A3B8;
}

/* Submit button */
.wl-submit {
  background: #0ABF9C;
  color: #07090E;
  border: none;
  border-radius: 8px;
  padding: 14px 24px;
  font-family: 'Rubik', sans-serif;
  font-weight: 700;
  font-size: 15px;
  cursor: pointer;
  transition: opacity 0.15s, transform 0.15s;
  letter-spacing: 0.01em;
  position: relative;
  margin-top: 4px;
}

.wl-submit:hover:not(:disabled) {
  opacity: 0.9;
  transform: translateY(-1px);
}

.wl-submit:active:not(:disabled) {
  transform: translateY(0);
}

.wl-submit:disabled {
  opacity: 0.7;
  cursor: not-allowed;
}

.btn-text { }
.btn-loading { display: none; }

/* Spinner animation */
@keyframes spin {
  to { transform: rotate(360deg); }
}
.spin {
  animation: spin 0.8s linear infinite;
}

/* Footer note */
.wl-footer-note {
  margin-top: 20px;
  font-size: 13px;
  color: #4B5A6F;
  text-align: center;
}

.wl-email-link {
  color: #0ABF9C;
  text-decoration: none;
  font-weight: 500;
}

.wl-email-link:hover {
  text-decoration: underline;
}

/* === RESPONSIVE === */
@media (max-width: 900px) {
  .wl-page {
    grid-template-columns: 1fr;
  }

  .wl-left {
    border-right: none;
    border-bottom: 1px solid rgba(255,255,255,0.06);
    padding: 60px 40px;
  }

  .wl-right {
    padding: 60px 40px;
  }
}

@media (max-width: 600px) {
  .wl-left {
    padding: 48px 24px;
  }

  .wl-right {
    padding: 48px 24px;
  }

  .wl-headline {
    font-size: 36px;
  }

  .wl-form-wrap {
    max-width: 100%;
  }

  .expansion-legend {
    flex-wrap: wrap;
    gap: 12px;
  }
}