/* ===== RESET & BASE ===== */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

:root {
  --pink:    #ff3e6c;
  --pink2:   #ff6b9d;
  --purple:  #7c3aed;
  --dark:    #0f0f14;
  --dark2:   #16161f;
  --card-bg: #1c1c28;
  --border:  rgba(255,255,255,0.07);
  --text:    #e8e8f0;
  --muted:   #9090a8;
  --white:   #ffffff;
  --radius:  14px;
  --shadow:  0 4px 30px rgba(0,0,0,0.35);
}

html { scroll-behavior: smooth; }

body {
  font-family: 'Inter', sans-serif;
  background: var(--dark);
  color: var(--text);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}

a { text-decoration: none; color: inherit; }
img { display: block; max-width: 100%; }

.container {
  max-width: 1140px;
  margin: 0 auto;
  padding: 0 20px;
}

/* ===== BUTTONS ===== */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  padding: 10px 22px;
  border-radius: 50px;
  font-size: 0.9rem;
  font-weight: 600;
  cursor: pointer;
  border: 2px solid transparent;
  transition: all 0.2s ease;
  white-space: nowrap;
}

.btn-primary {
  background: linear-gradient(135deg, var(--pink), var(--purple));
  color: #fff;
  border-color: transparent;
}
.btn-primary:hover { opacity: 0.88; transform: translateY(-1px); }

.btn-outline {
  background: transparent;
  border-color: rgba(255,255,255,0.25);
  color: var(--text);
}
.btn-outline:hover { border-color: var(--pink); color: var(--pink); }

.btn-white {
  background: #fff;
  color: var(--pink);
  border-color: #fff;
}
.btn-white:hover { background: #f0e0ff; }

.btn-lg { padding: 14px 32px; font-size: 1rem; }
.btn-sm { padding: 7px 16px; font-size: 0.8rem; }

/* ===== HEADER ===== */
.header {
  position: sticky;
  top: 0;
  z-index: 100;
  background: rgba(15,15,20,0.85);
  backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--border);
  transition: box-shadow 0.2s;
}
.header.scrolled { box-shadow: 0 2px 20px rgba(0,0,0,0.5); }

.header-inner {
  display: flex;
  align-items: center;
  gap: 24px;
  height: 64px;
}

.logo {
  display: flex;
  align-items: center;
  gap: 6px;
  font-size: 1.4rem;
  font-weight: 800;
  letter-spacing: -0.5px;
}
.logo-icon { font-size: 1.3rem; }
.logo-text { color: var(--white); }
.logo-accent { color: var(--pink); }

.nav {
  display: flex;
  gap: 24px;
  margin-left: 16px;
}
.nav a {
  font-size: 0.88rem;
  font-weight: 500;
  color: var(--muted);
  transition: color 0.2s;
}
.nav a:hover { color: var(--white); }

.header-actions {
  display: flex;
  gap: 10px;
  margin-left: auto;
}

.hamburger {
  display: none;
  background: none;
  border: none;
  color: var(--text);
  font-size: 1.4rem;
  cursor: pointer;
  margin-left: auto;
}

.mobile-nav {
  display: none;
  flex-direction: column;
  gap: 12px;
  padding: 16px 20px;
  border-top: 1px solid var(--border);
  background: var(--dark2);
}
.mobile-nav.open { display: flex; }
.mobile-nav a {
  font-size: 0.95rem;
  font-weight: 500;
  color: var(--muted);
}
.mobile-nav a:hover { color: var(--white); }

/* ===== HERO ===== */
.hero {
  position: relative;
  min-height: 90vh;
  display: flex;
  align-items: center;
  overflow: hidden;
  padding: 80px 0 60px;
}

.hero-bg {
  position: absolute;
  inset: 0;
  background:
    radial-gradient(ellipse 60% 60% at 70% 40%, rgba(124,58,237,0.18) 0%, transparent 70%),
    radial-gradient(ellipse 50% 50% at 30% 60%, rgba(255,62,108,0.14) 0%, transparent 70%),
    var(--dark);
  z-index: 0;
}

.hero-inner {
  position: relative;
  z-index: 1;
  max-width: 680px;
}

.hero-badge {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: rgba(255,255,255,0.06);
  border: 1px solid rgba(255,255,255,0.1);
  border-radius: 50px;
  padding: 6px 16px;
  font-size: 0.82rem;
  font-weight: 500;
  color: var(--muted);
  margin-bottom: 24px;
}

.pulse-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: #22c55e;
  display: inline-block;
  animation: pulse 1.8s infinite;
}
@keyframes pulse {
  0%, 100% { box-shadow: 0 0 0 0 rgba(34,197,94,0.4); }
  50%       { box-shadow: 0 0 0 6px rgba(34,197,94,0); }
}

.hero-title {
  font-size: clamp(2.4rem, 6vw, 4rem);
  font-weight: 800;
  line-height: 1.1;
  letter-spacing: -1px;
  margin-bottom: 20px;
  color: var(--white);
}

.gradient-text {
  background: linear-gradient(135deg, var(--pink), var(--pink2), var(--purple));
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.hero-sub {
  font-size: 1.05rem;
  color: var(--muted);
  max-width: 520px;
  margin-bottom: 36px;
  line-height: 1.7;
}

/* JOIN FORM */
.join-form {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  background: rgba(255,255,255,0.04);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 16px;
}

.form-select,
.form-input {
  flex: 1 1 180px;
  padding: 12px 16px;
  border-radius: 50px;
  border: 1px solid rgba(255,255,255,0.12);
  background: rgba(255,255,255,0.06);
  color: var(--white);
  font-size: 0.9rem;
  font-family: 'Inter', sans-serif;
  outline: none;
  transition: border-color 0.2s;
}
.form-select:focus,
.form-input:focus { border-color: var(--pink); }
.form-select option { background: #1c1c28; color: #fff; }

.form-note {
  width: 100%;
  font-size: 0.75rem;
  color: var(--muted);
  text-align: center;
  margin-top: 4px;
}

.hero-scroll-hint {
  position: absolute;
  bottom: 24px;
  left: 50%;
  transform: translateX(-50%);
  font-size: 1.2rem;
  color: var(--muted);
  animation: bounce 2s infinite;
}
@keyframes bounce {
  0%, 100% { transform: translateX(-50%) translateY(0); }
  50%       { transform: translateX(-50%) translateY(6px); }
}

/* ===== STATS BAR ===== */
.stats-bar {
  background: var(--card-bg);
  border-top: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
  padding: 24px 0;
}
.stats-inner {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0;
  flex-wrap: wrap;
}
.stat {
  display: flex;
  flex-direction: column;
  align-items: center;
  padding: 8px 40px;
}
.stat-num {
  font-size: 1.8rem;
  font-weight: 800;
  background: linear-gradient(135deg, var(--pink), var(--purple));
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}
.stat-label { font-size: 0.78rem; color: var(--muted); text-transform: uppercase; letter-spacing: 0.5px; }
.stat-divider { width: 1px; height: 40px; background: var(--border); }

/* ===== SECTIONS ===== */
.section { padding: 80px 0; }
.section-alt { background: var(--dark2); }

.section-header { text-align: center; margin-bottom: 52px; }
.section-title {
  font-size: clamp(1.6rem, 3.5vw, 2.4rem);
  font-weight: 800;
  color: var(--white);
  letter-spacing: -0.5px;
  margin-bottom: 10px;
}
.section-sub { color: var(--muted); font-size: 1rem; }

/* ===== HOW IT WORKS ===== */
.steps {
  display: flex;
  align-items: flex-start;
  justify-content: center;
  gap: 12px;
  flex-wrap: wrap;
}

.step-card {
  flex: 1 1 240px;
  max-width: 300px;
  background: var(--card-bg);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 32px 24px;
  text-align: center;
  transition: border-color 0.2s, transform 0.2s;
}
.step-card:hover { border-color: var(--pink); transform: translateY(-4px); }

.step-num {
  font-size: 0.7rem;
  font-weight: 700;
  letter-spacing: 1px;
  color: var(--pink);
  margin-bottom: 12px;
  text-transform: uppercase;
}
.step-icon { font-size: 2.2rem; margin-bottom: 14px; }
.step-card h3 { font-size: 1.05rem; font-weight: 700; color: var(--white); margin-bottom: 10px; }
.step-card p { font-size: 0.88rem; color: var(--muted); line-height: 1.65; }

.step-arrow {
  font-size: 1.6rem;
  color: var(--muted);
  align-self: center;
  padding: 0 4px;
  flex-shrink: 0;
}

/* ===== PROFILES ===== */
.profiles-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(220px, 1fr));
  gap: 20px;
}

.profile-card {
  background: var(--card-bg);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  overflow: hidden;
  transition: transform 0.2s, border-color 0.2s;
}
.profile-card:hover { transform: translateY(-5px); border-color: rgba(255,62,108,0.4); }

.profile-img-wrap { position: relative; }
.profile-img {
  width: 100%;
  height: 220px;
  object-fit: cover;
}
.online-badge {
  position: absolute;
  top: 10px;
  right: 10px;
  background: rgba(0,0,0,0.65);
  color: #22c55e;
  font-size: 0.72rem;
  font-weight: 600;
  padding: 3px 8px;
  border-radius: 50px;
  backdrop-filter: blur(4px);
}

.profile-info { padding: 16px; }
.profile-name-row {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 6px;
  margin-bottom: 4px;
}
.profile-name { font-weight: 700; font-size: 1rem; color: var(--white); }
.profile-dist { font-size: 0.75rem; color: var(--pink); font-weight: 600; }
.profile-location { font-size: 0.78rem; color: var(--muted); margin-bottom: 8px; }
.profile-bio { font-size: 0.82rem; color: var(--muted); margin-bottom: 14px; line-height: 1.5; }

.see-more-wrap { text-align: center; margin-top: 40px; }

/* ===== LOCATIONS ===== */
.locations-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
  gap: 14px;
}

.location-card {
  display: flex;
  flex-direction: column;
  gap: 4px;
  background: var(--card-bg);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 18px 20px;
  transition: border-color 0.2s, transform 0.2s;
}
.location-card:hover { border-color: var(--pink); transform: translateY(-3px); }
.location-name { font-weight: 600; font-size: 0.95rem; color: var(--white); }
.location-count { font-size: 0.78rem; color: #22c55e; font-weight: 500; }

/* ===== TESTIMONIALS ===== */
.testimonials {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
  gap: 20px;
}

.testimonial-card {
  background: var(--card-bg);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 28px 24px;
}
.stars { font-size: 1rem; color: #f59e0b; margin-bottom: 14px; }
.testimonial-text {
  font-size: 0.9rem;
  color: var(--muted);
  line-height: 1.7;
  margin-bottom: 20px;
  font-style: italic;
}
.testimonial-author { display: flex; align-items: center; gap: 12px; }
.t-img { width: 44px; height: 44px; border-radius: 50%; object-fit: cover; }
.testimonial-author strong { color: var(--white); font-size: 0.9rem; }
.testimonial-author small { color: var(--muted); font-size: 0.78rem; }

/* ===== CTA ===== */
.cta-section {
  background: linear-gradient(135deg, #3b0072 0%, #7c3aed 40%, #c2185b 100%);
  padding: 80px 0;
}
.cta-inner { text-align: center; }
.cta-inner h2 {
  font-size: clamp(1.8rem, 4vw, 2.8rem);
  font-weight: 800;
  color: #fff;
  margin-bottom: 14px;
  letter-spacing: -0.5px;
}
.cta-inner p { font-size: 1rem; color: rgba(255,255,255,0.75); margin-bottom: 32px; }

/* ===== FOOTER ===== */
.footer {
  background: #080810;
  border-top: 1px solid var(--border);
  padding: 60px 0 0;
}
.footer-inner {
  display: flex;
  gap: 48px;
  flex-wrap: wrap;
  padding-bottom: 40px;
  border-bottom: 1px solid var(--border);
}
.footer-brand { flex: 1 1 220px; }
.footer-brand p { font-size: 0.85rem; color: var(--muted); margin-top: 10px; max-width: 220px; }

.footer-links { display: flex; gap: 40px; flex-wrap: wrap; }
.footer-col { display: flex; flex-direction: column; gap: 10px; }
.footer-col h4 { font-size: 0.82rem; font-weight: 700; color: var(--white); text-transform: uppercase; letter-spacing: 0.5px; margin-bottom: 4px; }
.footer-col a { font-size: 0.85rem; color: var(--muted); transition: color 0.2s; }
.footer-col a:hover { color: var(--pink); }

.footer-bottom {
  padding: 18px 0;
  text-align: center;
}
.footer-bottom p { font-size: 0.78rem; color: #4a4a60; }

/* ===== TOAST ===== */
.toast {
  position: fixed;
  bottom: 28px;
  left: 50%;
  transform: translateX(-50%) translateY(20px);
  background: #1e1e2e;
  border: 1px solid rgba(255,62,108,0.4);
  color: var(--white);
  padding: 12px 24px;
  border-radius: 50px;
  font-size: 0.9rem;
  font-weight: 500;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.3s, transform 0.3s;
  z-index: 999;
  white-space: nowrap;
}
.toast.show { opacity: 1; transform: translateX(-50%) translateY(0); }

/* ===== RESPONSIVE ===== */
@media (max-width: 768px) {
  .nav, .header-actions { display: none; }
  .hamburger { display: block; }

  .hero { min-height: unset; padding: 60px 0 40px; }
  .hero-title { font-size: 2.2rem; }

  .stats-inner { gap: 0; }
  .stat { padding: 8px 20px; }
  .stat-divider { height: 30px; }

  .step-arrow { display: none; }
  .steps { flex-direction: column; align-items: center; }

  .profiles-grid { grid-template-columns: repeat(auto-fill, minmax(160px, 1fr)); }
  .profile-img { height: 180px; }

  .footer-inner { flex-direction: column; gap: 32px; }
  .footer-links { gap: 24px; }

  .join-form { flex-direction: column; }
  .form-select, .form-input { flex: 1 1 auto; }
}

@media (max-width: 480px) {
  .profiles-grid { grid-template-columns: 1fr 1fr; }
  .locations-grid { grid-template-columns: 1fr 1fr; }
  .testimonials { grid-template-columns: 1fr; }
}
