@import url('https://fonts.googleapis.com/css2?family=Inter:wght@400;500;600;700;800;900&display=swap');

:root {
  --bg: #f8fafb;
  --surface: #ffffff;
  --surface-hover: #f1f5f9;
  --border: #e2e8f0;
  --border-light: #f0f4f8;
  --text-primary: #0f172a;
  --text-secondary: #64748b;
  --text-tertiary: #94a3b8;

  /* Logo-derived blue → teal gradient palette */
  --blue: #2563eb;
  --blue-dark: #1d4ed8;
  --teal: #14b8a6;
  --teal-dark: #0d9488;
  --accent: #2563eb;
  --accent-light: #eff6ff;
  --accent-hover: #1d4ed8;
  --gradient: linear-gradient(135deg, #2563eb, #06b6d4, #14b8a6);
  --gradient-r: linear-gradient(135deg, #14b8a6, #06b6d4, #2563eb);

  --radius-sm: 6px;
  --radius-md: 10px;
  --radius-lg: 14px;
  --radius-xl: 20px;
  --shadow-sm: 0 1px 2px rgba(0,0,0,0.04);
  --shadow-md: 0 4px 12px rgba(0,0,0,0.06);
  --shadow-lg: 0 8px 30px rgba(0,0,0,0.08);
  --shadow-xl: 0 20px 60px rgba(0,0,0,0.1);
}

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

html { scroll-behavior: smooth; }

body {
  font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
  color: var(--text-primary);
  background: var(--bg);
  -webkit-font-smoothing: antialiased;
  line-height: 1.6;
}

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

/* ── Buttons ── */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-family: inherit;
  font-weight: 600;
  border: none;
  border-radius: var(--radius-md);
  cursor: pointer;
  text-decoration: none;
  transition: all 200ms ease;
}

.btn-sm { font-size: 14px; padding: 8px 18px; }
.btn-lg { font-size: 16px; padding: 14px 28px; }

.btn-primary {
  background: var(--gradient);
  color: white;
  box-shadow: 0 2px 12px rgba(37, 99, 235, 0.3);
  background-size: 200% 200%;
  animation: gradientShift 4s ease infinite;
}
.btn-primary:hover {
  box-shadow: 0 4px 20px rgba(37, 99, 235, 0.4);
  transform: translateY(-1px);
}

@keyframes gradientShift {
  0%, 100% { background-position: 0% 50%; }
  50% { background-position: 100% 50%; }
}

.btn-ghost {
  background: transparent;
  color: var(--text-secondary);
  border: 1px solid var(--border);
}
.btn-ghost:hover {
  background: var(--surface);
  color: var(--text-primary);
  border-color: var(--text-tertiary);
}

.btn-white {
  background: white !important;
  color: var(--blue) !important;
  box-shadow: 0 2px 12px rgba(0,0,0,0.12);
  animation: none;
}
.btn-white:hover {
  background: var(--accent-light) !important;
  transform: translateY(-1px);
  box-shadow: 0 4px 24px rgba(0,0,0,0.18);
}

/* ── Nav ── */
.nav {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 100;
  background: rgba(248, 250, 251, 0.88);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  border-bottom: 1px solid rgba(226, 232, 240, 0.5);
}

.nav-inner {
  display: flex;
  justify-content: space-between;
  align-items: center;
  height: 64px;
}

.nav-brand {
  display: flex;
  align-items: center;
  gap: 10px;
  text-decoration: none;
  color: var(--text-primary);
}

.nav-logo-img {
  width: 34px;
  height: 34px;
  border-radius: 9px;
  object-fit: contain;
}

.nav-wordmark {
  font-weight: 700;
  font-size: 18px;
  letter-spacing: -0.02em;
  background: var(--gradient);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.nav-links {
  display: flex;
  align-items: center;
  gap: 28px;
}

.nav-links a {
  text-decoration: none;
  font-size: 14px;
  font-weight: 500;
  color: var(--text-secondary);
  transition: color 150ms ease;
}

.nav-links a:hover { color: var(--text-primary); }
.nav-links .btn { color: white; }
.nav-links .btn:hover { color: white; }

.mobile-menu-btn {
  display: none;
  flex-direction: column;
  gap: 5px;
  background: none;
  border: none;
  cursor: pointer;
  padding: 4px;
}
.mobile-menu-btn span {
  display: block;
  width: 22px;
  height: 2px;
  background: var(--text-primary);
  border-radius: 1px;
  transition: all 200ms ease;
}
.mobile-menu-btn.open span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.mobile-menu-btn.open span:nth-child(2) { opacity: 0; }
.mobile-menu-btn.open span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

/* ── Hero ── */
.hero {
  position: relative;
  padding: 140px 0 60px;
  overflow: hidden;
}

.hero::before {
  content: '';
  position: absolute;
  top: -200px;
  left: 50%;
  transform: translateX(-50%);
  width: 900px;
  height: 900px;
  background: radial-gradient(circle, rgba(37, 99, 235, 0.06) 0%, rgba(20, 184, 166, 0.04) 40%, transparent 70%);
  pointer-events: none;
}

.hero-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 48px;
  text-align: center;
}

.hero-badge {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 6px 14px;
  font-size: 13px;
  font-weight: 600;
  color: var(--blue);
  background: var(--accent-light);
  border-radius: 999px;
  margin-bottom: 20px;
}

.hero-text h1 {
  font-size: 52px;
  font-weight: 800;
  letter-spacing: -0.035em;
  line-height: 1.1;
  margin-bottom: 20px;
}

.hero-desc {
  font-size: 18px;
  line-height: 1.7;
  color: var(--text-secondary);
  max-width: 600px;
  margin: 0 auto 32px;
}

.hero-actions {
  display: flex;
  gap: 12px;
  margin-bottom: 16px;
  justify-content: center;
}

.hero-note {
  font-size: 13px;
  color: var(--text-tertiary);
}

.hero-media {
  position: relative;
  max-width: 960px;
  margin: 0 auto;
}

.hero-video-wrap {
  border-radius: var(--radius-xl);
  overflow: hidden;
  box-shadow: var(--shadow-xl), 0 0 0 1px rgba(0,0,0,0.04);
  background: #0f172a;
}

.hero-video-wrap video {
  display: block;
  width: 100%;
  height: auto;
}

.hero-video-caption {
  margin-top: 20px;
  font-size: 17px;
  font-weight: 600;
  line-height: 1.55;
  color: var(--text-primary);
  text-align: center;
  max-width: 640px;
  margin-left: auto;
  margin-right: auto;
}

.hero-video-caption-sub {
  display: block;
  margin-top: 6px;
  font-size: 15px;
  font-weight: 500;
  color: var(--text-secondary);
}

.hero-fade {
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  height: 80px;
  background: linear-gradient(to bottom, transparent, var(--bg));
  pointer-events: none;
}

/* ── Stat Banner ── */
.stat-banner {
  padding: 72px 0;
  background: var(--surface);
  border-top: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
}

.stat-text {
  text-align: center;
  font-size: 34px;
  font-weight: 800;
  letter-spacing: -0.03em;
  line-height: 1.3;
  max-width: 820px;
  margin: 0 auto;
  color: var(--text-primary);
}

.stat-highlight {
  background: var(--gradient);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

/* ── Communities Carousel ── */
.communities {
  padding: 80px 0 100px;
}

.carousel-wrap {
  position: relative;
  max-width: 640px;
  margin: 0 auto;
}

.carousel-track { position: relative; min-height: 280px; }

.community-card {
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  opacity: 0;
  transform: translateY(20px);
  transition: opacity 500ms ease, transform 500ms ease;
  pointer-events: none;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-xl);
  padding: 40px 36px;
  text-align: center;
}

.community-card.active {
  opacity: 1;
  transform: translateY(0);
  pointer-events: auto;
  box-shadow: var(--shadow-lg);
}

.community-icon {
  display: none;
}

.community-emoji {
  font-size: 48px;
  margin-bottom: 16px;
  line-height: 1;
}

.community-card h3 {
  font-size: 24px;
  font-weight: 800;
  letter-spacing: -0.02em;
  margin-bottom: 12px;
  background: var(--gradient);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.community-card p {
  font-size: 16px;
  color: var(--text-secondary);
  line-height: 1.7;
  max-width: 460px;
  margin: 0 auto;
}

.carousel-indicators {
  display: flex;
  justify-content: center;
  gap: 8px;
  margin-top: 28px;
}

.carousel-dot {
  width: 10px;
  height: 10px;
  border-radius: 999px;
  border: none;
  background: var(--border);
  cursor: pointer;
  transition: all 250ms ease;
  padding: 0;
}

.carousel-dot.active {
  background: var(--gradient);
  width: 28px;
}

.carousel-progress {
  max-width: 200px;
  height: 3px;
  border-radius: 2px;
  background: var(--border);
  margin: 16px auto 0;
  overflow: hidden;
}

.carousel-progress-fill {
  height: 100%;
  border-radius: 2px;
  background: var(--gradient);
  width: 0%;
}

/* ── Section Header ── */
.section-header {
  text-align: center;
  max-width: 600px;
  margin: 0 auto 56px;
}

.section-header h2 {
  font-size: 36px;
  font-weight: 800;
  letter-spacing: -0.03em;
  margin-bottom: 12px;
}

.section-header p {
  font-size: 17px;
  color: var(--text-secondary);
  line-height: 1.6;
}

/* ── Features ── */
.features {
  padding: 80px 0 100px;
  background: var(--surface);
  border-top: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
}

.features-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
}

.feature-card {
  background: var(--bg);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 32px 28px;
  transition: all 250ms ease;
}

.feature-card:hover {
  box-shadow: var(--shadow-lg);
  transform: translateY(-3px);
  border-color: transparent;
}

.feature-icon {
  width: 48px;
  height: 48px;
  border-radius: var(--radius-md);
  background: var(--accent-light);
  color: var(--blue);
  display: grid;
  place-items: center;
  margin-bottom: 20px;
}

.feature-card h3 {
  font-size: 17px;
  font-weight: 700;
  margin-bottom: 8px;
  letter-spacing: -0.01em;
}

.feature-card p {
  font-size: 14px;
  color: var(--text-secondary);
  line-height: 1.65;
}

/* ── How It Works ── */
.how-it-works {
  padding: 80px 0 100px;
}

.steps {
  display: flex;
  align-items: flex-start;
  justify-content: center;
  gap: 0;
}

.step {
  flex: 1;
  max-width: 280px;
  text-align: center;
  padding: 0 20px;
}

.step-num {
  width: 48px;
  height: 48px;
  border-radius: 999px;
  background: var(--gradient);
  color: white;
  font-weight: 700;
  font-size: 20px;
  display: grid;
  place-items: center;
  margin: 0 auto 18px;
  box-shadow: 0 4px 12px rgba(37, 99, 235, 0.3);
}

.step h3 {
  font-size: 17px;
  font-weight: 700;
  margin-bottom: 8px;
}

.step p {
  font-size: 14px;
  color: var(--text-secondary);
  line-height: 1.6;
}

.step-line {
  width: 80px;
  height: 2px;
  background: var(--border);
  margin-top: 24px;
  flex-shrink: 0;
}

/* ── CTA ── */
.cta {
  padding: 100px 0;
  background: linear-gradient(135deg, #1e40af, #2563eb, #0891b2, #0d9488);
  background-size: 300% 300%;
  animation: ctaGradient 8s ease infinite;
  position: relative;
  overflow: hidden;
}

@keyframes ctaGradient {
  0%, 100% { background-position: 0% 50%; }
  50% { background-position: 100% 50%; }
}

.cta-inner {
  position: relative;
  text-align: center;
  z-index: 1;
}

.cta-glow {
  position: absolute;
  top: -50%;
  left: 50%;
  transform: translateX(-50%);
  width: 600px;
  height: 600px;
  background: radial-gradient(circle, rgba(255,255,255,0.1) 0%, transparent 60%);
  pointer-events: none;
}

.cta h2 {
  font-size: 38px;
  font-weight: 800;
  color: white;
  letter-spacing: -0.03em;
  margin-bottom: 12px;
}

.cta p {
  font-size: 18px;
  color: rgba(255,255,255,0.8);
  margin-bottom: 32px;
}

.cta-note {
  display: block;
  margin-top: 16px;
  font-size: 13px;
  color: rgba(255,255,255,0.5);
}

/* ── Footer ── */
.footer {
  padding: 40px 0;
  border-top: 1px solid var(--border);
}

.footer-inner {
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.footer-brand {
  display: flex;
  align-items: center;
  gap: 10px;
  font-weight: 700;
  font-size: 16px;
}

.footer-logo-img {
  width: 28px;
  height: 28px;
  border-radius: 6px;
  object-fit: contain;
}

.footer-copy {
  font-size: 13px;
  color: var(--text-tertiary);
}

/* ── Modal ── */
.modal-overlay {
  position: fixed;
  inset: 0;
  z-index: 200;
  background: rgba(15, 23, 42, 0.5);
  backdrop-filter: blur(6px);
  -webkit-backdrop-filter: blur(6px);
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0;
  pointer-events: none;
  transition: opacity 250ms ease;
}

.modal-overlay.open {
  opacity: 1;
  pointer-events: auto;
}

.modal-card {
  background: var(--surface);
  border-radius: var(--radius-xl);
  padding: 40px 36px;
  max-width: 480px;
  width: 90%;
  max-height: min(90vh, 720px);
  overflow-y: auto;
  position: relative;
  box-shadow: var(--shadow-xl);
  transform: translateY(16px) scale(0.97);
  transition: transform 250ms ease;
}

.modal-overlay.open .modal-card {
  transform: translateY(0) scale(1);
}

.modal-close {
  position: absolute;
  top: 16px;
  right: 16px;
  width: 32px;
  height: 32px;
  border: none;
  background: var(--bg);
  border-radius: 999px;
  font-size: 20px;
  color: var(--text-tertiary);
  cursor: pointer;
  display: grid;
  place-items: center;
  transition: all 150ms ease;
  line-height: 1;
}

.modal-close:hover {
  background: var(--border);
  color: var(--text-primary);
}

.modal-card h2 {
  font-size: 24px;
  font-weight: 800;
  letter-spacing: -0.02em;
  margin-bottom: 6px;
}

.modal-desc {
  font-size: 15px;
  color: var(--text-secondary);
  margin-bottom: 24px;
}

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

.form-group label {
  display: block;
  font-size: 13px;
  font-weight: 600;
  color: var(--text-primary);
  margin-bottom: 6px;
}

.optional-tag {
  font-weight: 500;
  color: var(--text-tertiary);
  font-size: 12px;
}

.form-group input,
.form-group select,
.form-group textarea {
  width: 100%;
  padding: 10px 14px;
  font-family: inherit;
  font-size: 15px;
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  background: var(--bg);
  color: var(--text-primary);
  transition: border-color 150ms ease, box-shadow 150ms ease;
  outline: none;
}

.form-group textarea {
  resize: vertical;
  min-height: 80px;
  line-height: 1.5;
}

.form-group input:focus,
.form-group select:focus,
.form-group textarea:focus {
  border-color: var(--blue);
  box-shadow: 0 0 0 3px rgba(37, 99, 235, 0.1);
}

.form-group input::placeholder,
.form-group textarea::placeholder { color: var(--text-tertiary); }

.form-group-optional-block .form-check-label {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  margin-bottom: 8px;
  cursor: pointer;
  font-weight: 600;
}

.form-group-optional-block .form-check-label input[type="checkbox"] {
  width: auto;
  margin-top: 3px;
  accent-color: var(--blue);
  cursor: pointer;
  flex-shrink: 0;
}

.form-group-optional-block .form-check-label span {
  line-height: 1.4;
}

.form-submit-btn {
  width: 100%;
  justify-content: center;
  margin-top: 8px;
}

.form-submit-btn:disabled {
  opacity: 0.7;
  cursor: not-allowed;
  transform: none !important;
}

.form-success {
  text-align: center;
  padding: 20px 0;
}

.success-icon {
  width: 56px;
  height: 56px;
  border-radius: 999px;
  background: var(--gradient);
  color: white;
  font-size: 28px;
  font-weight: 700;
  display: grid;
  place-items: center;
  margin: 0 auto 16px;
}

.form-success h3 {
  font-size: 20px;
  font-weight: 700;
  margin-bottom: 6px;
}

.form-success p {
  font-size: 15px;
  color: var(--text-secondary);
}

/* ── Responsive ── */
@media (max-width: 900px) {
  .hero-text h1 { font-size: 38px; }

  .stat-text { font-size: 26px; }

  .features-grid {
    grid-template-columns: 1fr;
    max-width: 480px;
    margin: 0 auto;
  }

  .steps { flex-direction: column; align-items: center; gap: 32px; }
  .step-line { width: 2px; height: 32px; }

  .section-header h2 { font-size: 28px; }
  .cta h2 { font-size: 28px; }
}

@media (max-width: 600px) {
  .nav-links {
    position: absolute;
    top: 64px;
    left: 0;
    right: 0;
    background: var(--surface);
    border-bottom: 1px solid var(--border);
    flex-direction: column;
    padding: 20px 24px;
    gap: 16px;
    display: none;
    box-shadow: var(--shadow-md);
  }
  .nav-links.open { display: flex; }
  .mobile-menu-btn { display: flex; }

  .hero { padding: 110px 0 50px; }
  .hero-text h1 { font-size: 32px; }
  .hero-actions { flex-direction: column; }
  .hero-actions .btn { width: 100%; justify-content: center; }

  .hero-video-caption { font-size: 15px; }
  .hero-video-caption-sub { font-size: 14px; }

  .stat-text { font-size: 22px; }
  .stat-banner { padding: 48px 0; }

  .carousel-track { min-height: 320px; }
  .community-card { padding: 28px 20px; }

  .footer-inner { flex-direction: column; gap: 12px; text-align: center; }
}
