* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

/* Typography */
body {
  font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
  line-height: 1.5;
  color: #ffffff;
  background: #0a0a0a;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: 12px;
  position: relative;
}

/* Background gradient overlay */
body::before {
  content: '';
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: radial-gradient(circle at 20% 50%, rgba(120, 119, 198, 0.1) 0%, transparent 50%),
              radial-gradient(circle at 80% 20%, rgba(255, 255, 255, 0.05) 0%, transparent 50%),
              radial-gradient(circle at 40% 80%, rgba(120, 119, 198, 0.08) 0%, transparent 50%);
  pointer-events: none;
  z-index: -1;
}

.header {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  background: rgba(10, 10, 10, 0.95);
  backdrop-filter: blur(10px);
  border-bottom: 1px solid rgba(255, 255, 255, 0.1);
  padding: 10px 0;
  z-index: 100;
}

.header-content {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 16px;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.logo {
  display: flex;
  align-items: center;
  text-decoration: none;
  height: 36px;
}

.logo img {
  height: 36px;
  width: auto;
  max-width: 140px;
}

.nav-links {
  display: flex;
  gap: 24px;
  list-style: none;
  align-items: center;
}

.nav-links a {
  color: rgba(255, 255, 255, 0.8);
  text-decoration: none;
  font-weight: 500;
  font-size: 0.9rem;
  transition: color 0.3s ease;
}

.nav-links a:hover {
  color: #ffffff;
}

.nav-btn {
  background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
  color: white;
  padding: 8px 16px;
  border-radius: 6px;
  text-decoration: none;
  font-weight: 600;
  font-size: 0.85rem;
  transition: all 0.3s ease;
  border: 1px solid transparent;
}

.nav-btn:hover {
  transform: translateY(-1px);
  box-shadow: 0 4px 12px rgba(102, 126, 234, 0.3);
  color: white;
}

.container {
  background: rgba(255, 255, 255, 0.05);
  backdrop-filter: blur(20px);
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 20px;
  padding: 32px;
  max-width: 1000px;
  width: 100%;
  margin-top: 60px;
  position: relative;
  overflow: hidden;
}

.container::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 2px;
  background: linear-gradient(90deg, #667eea 0%, #764ba2 100%);
}

h1 {
  font-size: 2rem;
  font-weight: 700;
  color: #ffffff;
  margin-bottom: 8px;
  text-align: center;
  background: linear-gradient(135deg, #ffffff 0%, rgba(255, 255, 255, 0.8) 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.subtitle {
  color: rgba(255, 255, 255, 0.7);
  text-align: center;
  margin-bottom: 28px;
  font-size: 1rem;
  line-height: 1.4;
}

.form-group {
  margin-bottom: 24px;
}

label {
  display: block;
  margin-bottom: 8px;
  font-weight: 600;
  color: rgba(255, 255, 255, 0.9);
  font-size: 1rem;
}

input[type="email"], input[type="text"], textarea {
  width: 100%;
  padding: 16px;
  border: 1px solid rgba(255, 255, 255, 0.2);
  border-radius: 10px;
  font-size: 1rem;
  background: rgba(255, 255, 255, 0.05);
  color: #ffffff;
  transition: all 0.3s ease;
  resize: vertical;
}

input[type="email"]:focus, input[type="text"]:focus, textarea:focus {
  outline: none;
  border-color: #667eea;
  background: rgba(255, 255, 255, 0.1);
  box-shadow: 0 0 0 3px rgba(102, 126, 234, 0.2);
}

input[type="email"]::placeholder, input[type="text"]::placeholder, textarea::placeholder {
  color: rgba(255, 255, 255, 0.5);
}

textarea {
  min-height: 100px;
  font-family: inherit;
}

.form-row {
  display: flex;
  gap: 16px;
  margin-bottom: 24px;
}

.form-row .form-group {
  flex: 1;
  margin-bottom: 0;
}

.required {
  color: #ef4444;
}

.button-group {
  display: flex;
  gap: 12px;
  flex-wrap: wrap;
  margin-bottom: 20px;
}

button, input[type="submit"] {
  flex: 1;
  min-width: 140px;
  padding: 14px 24px;
  border: none;
  border-radius: 10px;
  font-size: 1rem;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.3s ease;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  position: relative;
  overflow: hidden;
  background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
  color: white;
  border: 1px solid transparent;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
}

button:hover, input[type="submit"]:hover {
  transform: translateY(-2px);
  box-shadow: 0 6px 20px rgba(102, 126, 234, 0.4);
}

button:disabled, input[type="submit"]:disabled {
  opacity: 0.5;
  cursor: not-allowed;
  transform: none;
  box-shadow: none;
  background: linear-gradient(135deg, #4a5568 0%, #2d3748 100%);
  color: rgba(255, 255, 255, 0.6);
}

button:disabled:hover, input[type="submit"]:disabled:hover {
  transform: none;
  box-shadow: none;
}

.messages {
  margin-top: 24px;
  list-style: none;
}

.messages li {
  margin-bottom: 12px;
  padding: 16px;
  border-radius: 10px;
  border-left: 4px solid #667eea;
  background: rgba(255, 255, 255, 0.05);
  color: rgba(255, 255, 255, 0.9);
  font-weight: 500;
  font-size: 0.9rem;
  backdrop-filter: blur(10px);
}

.messages li.success {
  background: rgba(34, 197, 94, 0.1);
  border-left-color: #22c55e;
  color: #dcfce7;
}

.messages li.error {
  background: rgba(239, 68, 68, 0.1);
  border-left-color: #ef4444;
  color: #fecaca;
}

.messages li.warning {
  background: rgba(245, 158, 11, 0.1);
  border-left-color: #f59e0b;
  color: #fef3c7;
}

.messages li.info {
  background: rgba(59, 130, 246, 0.1);
  border-left-color: #3b82f6;
  color: #dbeafe;
}

.instructions {
  background: rgba(255, 255, 255, 0.03);
  border: 1px solid rgba(255, 255, 255, 0.1);
  padding: 24px;
  border-radius: 16px;
  margin-bottom: 28px;
}

.instructions h3 {
  color: rgba(255, 255, 255, 0.9);
  margin-bottom: 18px;
  font-size: 1.1rem;
  font-weight: 600;
}

.step {
  display: flex;
  align-items: flex-start;
  margin-bottom: 16px;
}

.step:last-child {
  margin-bottom: 0;
}

.step-number {
  background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
  color: white;
  width: 28px;
  height: 28px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 0.8rem;
  font-weight: 700;
  margin-right: 12px;
  flex-shrink: 0;
  box-shadow: 0 3px 10px rgba(102, 126, 234, 0.3);
}

.step-content {
  flex: 1;
  padding-top: 2px;
  color: rgba(255, 255, 255, 0.8);
  font-size: 0.95rem;
}

.hero-section {
  text-align: center;
  margin-bottom: 28px;
}

.hero-title {
  font-size: 2.8rem;
  font-weight: 800;
  margin-bottom: 12px;
  background: linear-gradient(135deg, #ffffff 0%, rgba(255, 255, 255, 0.7) 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  line-height: 1.1;
}

.hero-subtitle {
  font-size: 1.1rem;
  color: rgba(255, 255, 255, 0.7);
  font-weight: 400;
}

.beta-badge {
  display: inline-block;
  background: linear-gradient(135deg, #f59e0b 0%, #d97706 100%);
  color: #ffffff;
  font-size: 0.9rem;
  font-weight: 800;
  padding: 6px 14px;
  border-radius: 8px;
  margin-left: 12px;
  vertical-align: middle;
  text-transform: uppercase;
  letter-spacing: 1px;
  box-shadow: 0 4px 12px rgba(245, 158, 11, 0.4);
  animation: pulse-glow 2s ease-in-out infinite;
  -webkit-text-fill-color: #ffffff;
  background-clip: border-box;
  -webkit-background-clip: border-box;
}

@keyframes pulse-glow {
  0%, 100% {
    box-shadow: 0 4px 12px rgba(245, 158, 11, 0.4);
  }
  50% {
    box-shadow: 0 4px 20px rgba(245, 158, 11, 0.6);
  }
}

/* Mobile responsiveness */
@media (max-width: 768px) {
  body {
    padding: 8px;
  }
  
  .header {
    padding: 8px 0;
  }
  
  .header-content {
    padding: 0 12px;
  }
  
  .logo img {
    height: 32px;
    max-width: 120px;
  }
  
  .nav-links {
    gap: 16px;
  }
  
  .nav-links a {
    font-size: 0.85rem;
  }
  
  .container {
    padding: 24px;
    margin-top: 50px;
    max-width: 100%;
  }
  
  .hero-title {
    font-size: 2.2rem;
  }
  
  .hero-subtitle {
    font-size: 1rem;
  }
  
  .beta-badge {
    font-size: 0.7rem;
    padding: 4px 10px;
    margin-left: 8px;
  }
  
  .instructions {
    padding: 20px;
  }
  
  .step-number {
    width: 24px;
    height: 24px;
    font-size: 0.75rem;
  }
  
  .step-content {
    font-size: 0.9rem;
  }

  .form-row {
    flex-direction: column;
    gap: 0;
  }
  
  .form-row .form-group {
    margin-bottom: 24px;
  }
  
  input[type="email"], input[type="text"], textarea {
    padding: 14px;
  }

  button, input[type="submit"] {
    padding: 12px 20px;
    min-width: 120px;
  }
}

/* Loading spinner styles */
.spinner {
  display: inline-block;
  width: 20px;
  height: 20px;
  border: 2px solid rgba(255, 255, 255, 0.3);
  border-radius: 50%;
  border-top-color: #ffffff;
  animation: spin 1s ease-in-out infinite;
  margin-right: 8px;
}

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

.loading-text {
  opacity: 0.8;
}

.button-loading {
  opacity: 0.7;
  cursor: not-allowed;
  pointer-events: none;
}

/* Compact mode for smaller screens */
@media (max-height: 800px) {
  .container {
    margin-top: 50px;
    padding: 24px;
  }
  
  .hero-section {
    margin-bottom: 20px;
  }
  
  .hero-title {
    font-size: 2.4rem;
    margin-bottom: 8px;
  }
  
  .beta-badge {
    font-size: 0.8rem;
    padding: 5px 12px;
  }
  
  .instructions {
    padding: 18px;
    margin-bottom: 20px;
  }
  
  .form-group {
    margin-bottom: 18px;
  }
  
  .messages {
    margin-top: 18px;
  }
}

a.regular-links {
  color: #8b9cff;
  text-decoration: none;
  transition: color 0.2s ease;
}

a.regular-links:hover {
  color: #5a6fd8 !important;
  text-decoration: underline;
  outline: none;
  text-shadow: 0 0 0 1px #8b9cff;
}

a.regular-links:visited {
  color: #8b9cff;
}

.faq-section {
  background: rgba(255, 255, 255, 0.03);
  border: 1px solid rgba(255, 255, 255, 0.1);
  padding: 24px;
  border-radius: 16px;
  margin-bottom: 28px;
}

.faq-item {
  margin-bottom: 30px;
}

.faq-item:last-child {
  margin-bottom: 0;
}

.faq-question {
  color: #8b9cff;
  font-size: 1.1rem;
  font-weight: 700;
  margin-bottom: 4px;
}

.faq-answer {
  color: rgba(255, 255, 255, 0.8);
  font-size: 0.95rem;
  line-height: 1.5;
  font-weight: 400;
  margin-left: 20px;
}

.highlight {
  color: #ffac2f;
  font-weight: 900;
}

/* Checkbox styling */
.checkbox-group {
  margin-bottom: 24px;
}

.checkbox-label {
  display: flex;
  align-items: flex-start;
  cursor: pointer;
  font-weight: 400;
  color: rgba(255, 255, 255, 0.9);
  line-height: 1.6;
}

.checkbox-label input[type="checkbox"] {
  width: 20px;
  height: 20px;
  min-width: 20px;
  margin-right: 12px;
  margin-top: 2px;
  cursor: pointer;
  accent-color: #667eea;
  border: 2px solid rgba(255, 255, 255, 0.3);
  border-radius: 4px;
  background: rgba(255, 255, 255, 0.05);
  transition: all 0.3s ease;
}

.checkbox-label input[type="checkbox"]:checked {
  background: #667eea;
  border-color: #667eea;
}

.checkbox-label input[type="checkbox"]:focus {
  outline: none;
  box-shadow: 0 0 0 3px rgba(102, 126, 234, 0.2);
}

.checkbox-text {
  flex: 1;
  user-select: none;
}

.terms-link {
  color: #8b9cff;
  text-decoration: none;
  transition: color 0.2s ease;
  font-weight: 500;
}

.terms-link:hover {
  color: #667eea;
  text-decoration: underline;
}

.terms-link:visited {
  color: #8b9cff;
}

/* Terms intro styling */
.terms-intro {
  margin-bottom: 32px;
  padding: 20px;
  background: rgba(255, 255, 255, 0.03);
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 12px;
}

.terms-intro p {
  margin-bottom: 16px;
  color: rgba(255, 255, 255, 0.9);
  line-height: 1.7;
  font-size: 0.95rem;
}

.terms-intro p:last-child {
  margin-bottom: 0;
}

/* Simple terms box */
.terms-box {
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 10px;
  padding: 32px;
}

.terms-box h1 {
  font-size: 1.8rem;
  margin-bottom: 12px;
  text-align: left;
}

.terms-box > div > div > p,
.terms-box > p {
  color: rgba(255, 255, 255, 0.7);
  margin-bottom: 0;
  font-size: 0.95rem;
}

.terms-text {
  color: rgba(255, 255, 255, 0.9);
  line-height: 1.6;
  font-size: 0.9rem;
}

.terms-text p {
  margin-bottom: 16px;
}

.terms-text p:last-child {
  margin-bottom: 0;
}

.terms-text strong {
  font-weight: 600;
  color: rgba(255, 255, 255, 0.95);
}

.download-terms-btn {
  display: inline-flex;
  align-items: center;
  padding: 10px 20px;
  background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
  color: white;
  text-decoration: none;
  border-radius: 8px;
  font-size: 0.95rem;
  font-weight: 600;
  transition: all 0.3s ease;
  white-space: nowrap;
}

.download-terms-btn:hover {
  transform: translateY(-2px);
  box-shadow: 0 6px 20px rgba(102, 126, 234, 0.4);
  color: white;
  text-decoration: none;
}

.download-terms-btn:active {
  transform: translateY(0);
}

@media (max-width: 768px) {
  .download-terms-btn {
    width: 100%;
    justify-content: center;
  }
}
