*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

:root {
  --bg: #0d0d1a;
  --bg2: #16213e;
  --bg3: #1e1e3a;
  --red: #e94560;
  --purple: #8b5cf6;
  --green: #22c55e;
  --orange: #f97316;
  --blue: #3b82f6;
  --text: #ffffff;
  --text2: #d1d5db;
  --text3: #94a3b8;
  --text4: #4b5563;
  --border: #1e1e3a;
  --border2: #223156;
}

html { 
  scroll-behavior: smooth;
  scrollbar-width: none;
  -ms-overflow-style: none;
}

html::-webkit-scrollbar { display: none; }

body {
  font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
  background: var(--bg);
  color: var(--text);
  line-height: 1.6;
  overflow-x: hidden;
}

#particles {
  position: fixed;
  top: 0; left: 0;
  width: 100%; height: 100%;
  z-index: 0;
  pointer-events: none;
}

nav, section, footer { position: relative; z-index: 1; }

.nav {
  position: fixed;
  top: 0; left: 0; right: 0;
  z-index: 100;
  background: rgba(13, 13, 26, 0.92);
  backdrop-filter: blur(16px);
  border-bottom: 1px solid var(--border);
}
.nav-inner {
  max-width: 1100px;
  margin: 0 auto;
  padding: 13px 24px;
  display: flex;
  align-items: center;
  justify-content: space-between;
}
.nav-brand { display: flex; align-items: center; gap: 10px; }
.nav-logo-wrap {
  width: 34px; height: 34px;
  border-radius: 9px;
  overflow: hidden;
  border: 1px solid var(--border2);
  transition: box-shadow 0.3s ease, transform 0.3s ease;
}
.nav-logo-wrap.pulse {
  box-shadow: 0 0 0 5px rgba(233, 69, 96, 0.2);
  transform: scale(1.09);
}
.nav-logo { width: 100%; height: 100%; object-fit: cover; display: block; }
.nav-title { font-size: 16px; font-weight: 700; color: var(--text); letter-spacing: 0.2px; }
.nav-right { display: flex; align-items: center; gap: 12px; }
.nav-beta-tag {
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 1px;
  text-transform: uppercase;
  color: var(--purple);
  background: rgba(139, 92, 246, 0.1);
  border: 1px solid rgba(139, 92, 246, 0.3);
  padding: 4px 10px;
  border-radius: 999px;
}

.btn {
  display: inline-block;
  padding: 10px 22px;
  border-radius: 10px;
  font-size: 14px;
  font-weight: 600;
  text-decoration: none;
  cursor: pointer;
  border: none;
  transition: all 0.2s cubic-bezier(0.25, 0.46, 0.45, 0.94);
  box-shadow: 0 4px 14px rgba(0,0,0,0.1);
}
.btn:hover { 
  opacity: 1; 
  transform: translateY(-2px); 
  box-shadow: 0 6px 20px rgba(0,0,0,0.2); 
}
.btn:active { transform: translateY(1px); box-shadow: 0 2px 8px rgba(0,0,0,0.15); }
.btn-primary { 
  background: linear-gradient(135deg, var(--red) 0%, #ff6b81 100%); 
  color: #fff; 
  box-shadow: 0 4px 14px rgba(233, 69, 96, 0.3);
}
.btn-primary:hover {
  box-shadow: 0 6px 20px rgba(233, 69, 96, 0.4);
}
.btn-ghost {
  background: transparent;
  color: var(--text3);
  border: 1px solid var(--border2);
}
.btn-ghost:hover { color: var(--text); border-color: rgba(255,255,255,0.2); background: rgba(255,255,255,0.03); }
.btn-lg { padding: 14px 32px; font-size: 15px; border-radius: 12px; }
.btn-full { width: 100%; text-align: center; }

.hero {
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 120px 24px 80px;
  text-align: center;
  background: radial-gradient(circle at center top, rgba(233, 69, 96, 0.05) 0%, transparent 60%);
}
.hero-inner { max-width: 720px; }
.hero-badge {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: rgba(139, 92, 246, 0.1);
  border: 1px solid rgba(139, 92, 246, 0.35);
  color: #d8b4fe;
  font-size: 13px;
  font-weight: 600;
  padding: 8px 18px;
  border-radius: 999px;
  margin-bottom: 28px;
  letter-spacing: 0.4px;
  box-shadow: 0 0 20px rgba(139, 92, 246, 0.15);
}
.hero-badge::before {
  content: '';
  display: block;
  width: 8px; height: 8px;
  background: #a78bfa;
  border-radius: 50%;
  box-shadow: 0 0 8px #a78bfa;
  animation: pulse 2s infinite;
}
@keyframes pulse {
  0% { box-shadow: 0 0 0 0 rgba(167, 139, 250, 0.4); }
  70% { box-shadow: 0 0 0 6px rgba(167, 139, 250, 0); }
  100% { box-shadow: 0 0 0 0 rgba(167, 139, 250, 0); }
}

.hero-heading {
  font-size: clamp(36px, 6vw, 68px);
  font-weight: 800;
  line-height: 1.15;
  margin-bottom: 24px;
  letter-spacing: -1px;
  background: linear-gradient(180deg, #ffffff 0%, #a1a1aa 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}
.hero-sub {
  font-size: 18px;
  color: var(--text3);
  max-width: 580px;
  margin: 0 auto 40px;
  line-height: 1.7;
}
.hero-actions { display: flex; gap: 12px; justify-content: center; flex-wrap: wrap; margin-bottom: 56px; }
.hero-stats {
  display: flex;
  align-items: center;
  justify-content: center;
  background: rgba(22, 33, 62, 0.6);
  border: 1px solid var(--border2);
  border-radius: 14px;
  padding: 20px 32px;
  backdrop-filter: blur(8px);
  max-width: 480px;
  margin: 0 auto;
}
.hero-stat { text-align: center; flex: 1; }
.hero-stat-num { display: block; font-size: 28px; font-weight: 800; color: var(--text); letter-spacing: -0.5px; }
.hero-stat-label { font-size: 11px; color: var(--text4); font-weight: 600; text-transform: uppercase; letter-spacing: 0.6px; }
.hero-stat-divider { width: 1px; height: 40px; background: var(--border2); margin: 0 24px; }

.section { padding: 0; }
.section-alt { background: rgba(22, 33, 62, 0.3); border-top: 1px solid var(--border); border-bottom: 1px solid var(--border); }
.section-inner { max-width: 1100px; margin: 0 auto; padding: 88px 24px; }
.section-label {
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 1.2px;
  text-transform: uppercase;
  color: var(--red);
  margin-bottom: 12px;
}
.section-heading {
  font-size: clamp(26px, 4vw, 40px);
  font-weight: 800;
  margin-bottom: 52px;
  letter-spacing: -0.5px;
  max-width: 600px;
}

.features-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 16px;
}
.feature-card {
  background: rgba(17, 22, 42, 0.4);
  border: 1px solid rgba(255, 255, 255, 0.05);
  border-radius: 16px;
  padding: 28px;
  backdrop-filter: blur(12px);
  transition: all 0.3s ease;
  box-shadow: 0 4px 20px rgba(0,0,0,0.1);
}
.feature-card:hover { 
  border-color: rgba(233, 69, 96, 0.3); 
  transform: translateY(-4px); 
  background: rgba(22, 33, 62, 0.6);
  box-shadow: 0 8px 30px rgba(233, 69, 96, 0.1);
}
.feature-icon-wrap {
  width: 48px; height: 48px;
  background: linear-gradient(135deg, rgba(233, 69, 96, 0.15) 0%, rgba(233, 69, 96, 0.05) 100%);
  border-radius: 12px;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 20px;
  border: 1px solid rgba(233, 69, 96, 0.2);
}
.feature-title { font-size: 16px; font-weight: 700; margin-bottom: 10px; letter-spacing: 0.3px; }
.feature-desc { font-size: 13.5px; color: var(--text3); line-height: 1.7; }

.steps { display: flex; flex-direction: column; gap: 0; max-width: 640px; }
.step { display: flex; gap: 20px; align-items: flex-start; }
.step-num {
  font-size: 13px;
  font-weight: 800;
  color: #fff;
  background: linear-gradient(135deg, var(--red) 0%, #ff6b81 100%);
  border-radius: 8px;
  padding: 6px 12px;
  letter-spacing: 0.5px;
  flex-shrink: 0;
  margin-top: 2px;
  box-shadow: 0 4px 10px rgba(233, 69, 96, 0.3);
}
.step-title { font-size: 16px; font-weight: 700; margin-bottom: 6px; }
.step-desc { font-size: 13.5px; color: var(--text3); line-height: 1.65; }
.step-connector { width: 1px; height: 32px; background: linear-gradient(to bottom, var(--red), transparent); margin-left: 22px; opacity: 0.3;}

.register-inner { max-width: 640px; }
.register-sub { font-size: 15px; color: var(--text3); margin-bottom: 36px; line-height: 1.7; max-width: 500px; }
.register-form { text-align: left; background: rgba(22, 33, 62, 0.3); padding: 32px; border-radius: 20px; border: 1px solid rgba(255,255,255,0.05); backdrop-filter: blur(12px); }
.form-row { display: flex; gap: 12px; margin-bottom: 16px; }
.form-input {
  flex: 1;
  background: rgba(13, 13, 26, 0.6);
  border: 1px solid rgba(255,255,255,0.1);
  border-radius: 12px;
  padding: 14px 16px;
  font-size: 16px; /* Must be 16px to prevent mobile auto-zoom */
  color: var(--text);
  outline: none;
  transition: all 0.2s ease;
  width: 100%;
  appearance: none;
  -webkit-appearance: none;
  -moz-appearance: none;
  background-image: none;
  backdrop-filter: blur(8px);
}
.form-input::placeholder { color: var(--text4); }
.form-input:focus { 
  border-color: var(--red); 
  background: rgba(22, 33, 62, 0.8);
  box-shadow: 0 0 0 4px rgba(233, 69, 96, 0.1);
}
select.form-input { 
  padding-right: 40px;
  background-image: none;
  appearance: none !important;
  -webkit-appearance: none !important;
  -moz-appearance: none !important;
  -ms-appearance: none !important;
  cursor: pointer;
}
select.form-input::-ms-expand { display: none !important; }
select.form-input option { background: #16213e; color: #fff; }
.custom-country-dropdown { position: relative; width: 100%; }
.country-dropdown-menu { position: absolute; background: rgba(22, 33, 62, 0.95); border: 1px solid #223156; border-radius: 8px; max-height: 200px; overflow-y: auto; width: 100%; z-index: 1000; backdrop-filter: blur(8px); top: 100%; left: 0; margin-top: 4px; box-shadow: 0 8px 32px rgba(0, 0, 0, 0.3); }
.country-option { display: flex !important; align-items: center !important; gap: 10px !important; padding: 10px 12px !important; border-bottom: 1px solid rgba(34, 49, 86, 0.5) !important; cursor: pointer !important; transition: background 0.2s ease !important; color: #fff !important; font-size: 13px !important; }
.country-option:last-child { border-bottom: none !important; }
.country-option:hover { background: rgba(139, 92, 246, 0.15) !important; }
.country-option span:first-child { font-size: 18px; min-width: 20px; }
.country-option span:last-child { flex: 1; }
.form-note { font-size: 12px; color: var(--text4); text-align: center; margin-top: 12px; }
.form-message {
  margin-top: 16px;
  padding: 12px 16px;
  border-radius: 10px;
  font-size: 13px;
  font-weight: 600;
  text-align: center;
}
.form-message.success { background: #052e16; border: 1px solid #166534; color: #22c55e; }
.form-message.error { background: #2b1020; border: 1px solid var(--red); color: var(--red); }

.footer { padding: 48px 24px; border-top: 1px solid var(--border); text-align: center; }
.footer-inner { max-width: 1100px; margin: 0 auto; }
.footer-brand { display: flex; align-items: center; justify-content: center; gap: 10px; margin-bottom: 16px; }
.footer-copy { font-size: 13px; color: var(--text4); }
.footer-sub { font-size: 11px; color: #374151; margin-top: 6px; }

@media (max-width: 600px) {
  .nav-inner { padding: 12px 18px; }
  .btn { padding: 12px 24px; font-size: 14px; width: 100%; text-align: center; } /* Make most buttons full width on mobile */
  .btn-lg { padding: 16px 24px; }
  
  .hero { padding: 100px 20px 60px; background: radial-gradient(circle at center top, rgba(233, 69, 96, 0.08) 0%, transparent 80%); }
  .hero-heading { font-size: clamp(32px, 9vw, 42px); margin-bottom: 20px; }
  .hero-sub { font-size: 16px; margin-bottom: 32px; }
  .hero-actions { display: flex; flex-direction: column; gap: 12px; width: 100%; align-items: stretch; margin-bottom: 40px; }
  .hero-actions .btn { width: 100% !important; margin: 0; }
  
  .hero-stats { padding: 16px; flex-wrap: wrap; gap: 16px; }
  .hero-stat { flex: 1 1 40%; min-width: 40%; }
  .hero-stat-divider { display: none; }
  
  .section-inner { padding: 60px 20px; }
  .section-heading { font-size: 28px; margin-bottom: 36px; }
  
  .features-grid { grid-template-columns: 1fr; gap: 16px; }
  .feature-card { padding: 24px; }
  
  .step { flex-direction: column; gap: 12px; align-items: flex-start; }
  .step-connector { height: 24px; margin-left: 16px; }
  
  .register-form { padding: 24px; }
  .form-row { flex-direction: column; gap: 16px; }
  .form-input { padding: 16px; font-size: 16px; } /* Must be 16px to prevent iOS auto-zoom */
  
  .footer { padding: 40px 20px; }
  .footer-inner .btn { width: auto; } /* Keep footer buttons inline if possible */
}