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

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

:root {
  --white: #FFFFFF;
  --bg-secondary: #F8FAFC;
  --primary: #4F8CFF;
  --primary-dark: #3A7AEF;
  --text: #1F2937;
  --gray: #94A3B8;
  --gray-light: #E2E8F0;
  --shadow-soft: 0 4px 24px rgba(79, 140, 255, 0.08);
  --shadow-card: 0 8px 32px rgba(0, 0, 0, 0.06);
  --shadow-hover: 0 16px 48px rgba(79, 140, 255, 0.15);
  --radius: 20px;
  --radius-lg: 24px;
  --transition: 0.35s cubic-bezier(0.4, 0, 0.2, 1);
}

html {
  scroll-behavior: smooth;
}

body {
  font-family: 'Inter', -apple-system, BlinkMacSystemFont, sans-serif;
  background: var(--white);
  color: var(--text);
  line-height: 1.6;
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
}

a {
  text-decoration: none;
  color: inherit;
}

/* ==================== SHARED ==================== */
.section-container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 24px;
}

.section-title {
  font-size: clamp(1.75rem, 4vw, 2.5rem);
  font-weight: 700;
  text-align: center;
  letter-spacing: -0.03em;
  margin-bottom: 56px;
  color: var(--text);
}

.fade-up {
  opacity: 0;
  transform: translateY(32px);
  transition: opacity 0.7s ease, transform 0.7s ease;
}

.fade-up.visible {
  opacity: 1;
  transform: translateY(0);
}

/* ==================== BUTTONS ==================== */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 14px 32px;
  font-size: 1rem;
  font-weight: 600;
  border-radius: 14px;
  transition: var(--transition);
  cursor: pointer;
  border: none;
  font-family: inherit;
}

.btn-primary {
  background: var(--primary);
  color: white;
  box-shadow: 0 4px 16px rgba(79, 140, 255, 0.35);
}

.btn-primary:hover {
  background: var(--primary-dark);
  transform: translateY(-2px);
  box-shadow: 0 8px 28px rgba(79, 140, 255, 0.45);
}

.btn-secondary {
  background: var(--white);
  color: var(--text);
  border: 1.5px solid var(--gray-light);
}

.btn-secondary:hover {
  border-color: var(--primary);
  color: var(--primary);
  transform: translateY(-2px);
  box-shadow: var(--shadow-soft);
}

.btn-large {
  padding: 18px 48px;
  font-size: 1.125rem;
  border-radius: 16px;
}

/* ==================== HERO ==================== */
.hero {
  position: relative;
  padding: 80px 0 100px;
  overflow: hidden;
  background: var(--white);
}

.hero-container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 24px;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 60px;
  align-items: center;
}

.hero-title {
  font-size: clamp(2.25rem, 5vw, 3.5rem);
  font-weight: 800;
  letter-spacing: -0.04em;
  line-height: 1.15;
  margin-bottom: 24px;
  color: var(--text);
}

.hero-subtitle {
  font-size: 1.0625rem;
  color: var(--gray);
  line-height: 1.75;
  margin-bottom: 28px;
  max-width: 540px;
}

/* Typing Effect */
.typing-container {
  display: flex;
  align-items: center;
  min-height: 32px;
  margin-bottom: 36px;
  font-size: 1.0625rem;
  font-weight: 500;
  color: var(--primary);
}

.typing-cursor {
  display: inline-block;
  margin-left: 2px;
  animation: blink 0.8s step-end infinite;
  color: var(--primary);
  font-weight: 300;
}

@keyframes blink {
  50% { opacity: 0; }
}

.hero-buttons {
  display: flex;
  gap: 16px;
  flex-wrap: wrap;
}

/* Hero Right – Illustration */
.hero-right {
  position: relative;
  height: 480px;
  display: flex;
  align-items: center;
  justify-content: center;
}

.blob {
  position: absolute;
  border-radius: 50%;
  filter: blur(60px);
  opacity: 0.55;
  animation: blobFloat 8s ease-in-out infinite;
}

.blob-1 {
  width: 280px;
  height: 280px;
  background: linear-gradient(135deg, #4F8CFF, #A78BFA);
  top: 10%;
  left: 5%;
  animation-delay: 0s;
}

.blob-2 {
  width: 200px;
  height: 200px;
  background: linear-gradient(135deg, #60A5FA, #34D399);
  bottom: 15%;
  right: 10%;
  animation-delay: -3s;
}

.blob-3 {
  width: 160px;
  height: 160px;
  background: linear-gradient(135deg, #F472B6, #4F8CFF);
  top: 50%;
  left: 40%;
  animation-delay: -5s;
}

@keyframes blobFloat {
  0%, 100% { transform: translate(0, 0) scale(1); }
  33% { transform: translate(20px, -25px) scale(1.05); }
  66% { transform: translate(-15px, 15px) scale(0.95); }
}

.chat-illustration {
  position: relative;
  z-index: 2;
  width: 100%;
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
}

/* AI Avatar */
.ai-avatar {
  position: relative;
  z-index: 5;
}

.avatar-ring {
  width: 110px;
  height: 110px;
  border-radius: 50%;
  background: linear-gradient(135deg, #4F8CFF, #818CF8);
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 12px 40px rgba(79, 140, 255, 0.35);
  animation: pulseRing 3s ease-in-out infinite;
}

@keyframes pulseRing {
  0%, 100% { box-shadow: 0 12px 40px rgba(79, 140, 255, 0.35); }
  50% { box-shadow: 0 12px 50px rgba(79, 140, 255, 0.55); }
}

.avatar-face {
  width: 96px;
  height: 96px;
  border-radius: 50%;
  background: var(--white);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 2.5rem;
}

.avatar-icon {
  display: block;
  animation: floatY 4s ease-in-out infinite;
}

@keyframes floatY {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(-6px); }
}

/* Floating Message Bubbles */
.float-bubble {
  position: absolute;
  background: var(--white);
  padding: 12px 18px;
  border-radius: 16px;
  font-size: 0.875rem;
  font-weight: 500;
  color: var(--text);
  box-shadow: var(--shadow-card);
  z-index: 4;
  animation: floatCard 5s ease-in-out infinite;
  white-space: nowrap;
}

.bubble-1 {
  top: 12%;
  left: 8%;
  animation-delay: 0s;
}

.bubble-2 {
  top: 22%;
  right: 5%;
  animation-delay: -1.5s;
}

.bubble-3 {
  bottom: 28%;
  left: 0;
  animation-delay: -3s;
}

@keyframes floatCard {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(-12px); }
}

/* Glass Cards */
.glass-card {
  position: absolute;
  background: rgba(255, 255, 255, 0.7);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  border: 1px solid rgba(255, 255, 255, 0.6);
  border-radius: 16px;
  box-shadow: var(--shadow-card);
  z-index: 3;
  animation: floatCard 6s ease-in-out infinite;
}

.glass-1 {
  bottom: 8%;
  right: 5%;
  width: 180px;
  padding: 12px;
  animation-delay: -2s;
}

.glass-header {
  display: flex;
  gap: 5px;
  margin-bottom: 10px;
}

.glass-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--gray-light);
}

.glass-dot:nth-child(1) { background: #F87171; }
.glass-dot:nth-child(2) { background: #FBBF24; }
.glass-dot:nth-child(3) { background: #34D399; }

.glass-body {
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.mini-msg {
  padding: 6px 10px;
  border-radius: 10px;
  font-size: 0.75rem;
  font-weight: 500;
  max-width: 90%;
}

.user-msg {
  background: var(--primary);
  color: white;
  align-self: flex-end;
}

.ai-msg {
  background: var(--bg-secondary);
  color: var(--text);
  align-self: flex-start;
}

.glass-2 {
  top: 55%;
  right: 15%;
  padding: 8px 14px;
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 0.8125rem;
  font-weight: 500;
  animation-delay: -4s;
}

.status-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: #34D399;
  animation: statusPulse 2s ease-in-out infinite;
}

@keyframes statusPulse {
  0%, 100% { opacity: 1; }
  50% { opacity: 0.4; }
}

/* Floating Badges */
.floating-badge {
  position: absolute;
  background: var(--white);
  padding: 10px 16px;
  border-radius: 50px;
  font-size: 0.8125rem;
  font-weight: 600;
  color: var(--text);
  box-shadow: var(--shadow-card);
  z-index: 6;
  animation: floatCard 5.5s ease-in-out infinite;
  white-space: nowrap;
}

.badge-1 {
  top: 5%;
  right: 20%;
  animation-delay: -0.5s;
}

.badge-2 {
  bottom: 18%;
  left: 5%;
  animation-delay: -2.5s;
}

.badge-3 {
  top: 40%;
  left: -5%;
  animation-delay: -1s;
}

.badge-4 {
  bottom: 5%;
  right: 30%;
  animation-delay: -3.5s;
}

/* ==================== FEATURES ==================== */
.features {
  padding: 100px 0;
  background: var(--bg-secondary);
}

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

.feature-card {
  background: var(--white);
  border-radius: var(--radius);
  padding: 36px 28px;
  box-shadow: var(--shadow-soft);
  transition: var(--transition);
  border: 1px solid rgba(0, 0, 0, 0.03);
}

.feature-card:hover {
  transform: translateY(-8px);
  box-shadow: var(--shadow-hover);
}

.feature-icon {
  font-size: 2rem;
  margin-bottom: 20px;
  width: 56px;
  height: 56px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: linear-gradient(135deg, rgba(79, 140, 255, 0.1), rgba(129, 140, 248, 0.1));
  border-radius: 14px;
}

.feature-card h3 {
  font-size: 1.125rem;
  font-weight: 650;
  margin-bottom: 10px;
  letter-spacing: -0.02em;
}

.feature-card p {
  font-size: 0.9375rem;
  color: var(--gray);
  line-height: 1.6;
}

/* ==================== HOW IT WORKS ==================== */
.how-it-works {
  padding: 100px 0;
  background: var(--white);
}

.steps-wrapper {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 20px;
  flex-wrap: wrap;
}

.step-card {
  background: var(--bg-secondary);
  border-radius: var(--radius);
  padding: 40px 32px;
  text-align: center;
  flex: 1;
  min-width: 220px;
  max-width: 300px;
  transition: var(--transition);
  border: 1px solid transparent;
}

.step-card:hover {
  transform: translateY(-6px);
  box-shadow: var(--shadow-card);
  border-color: rgba(79, 140, 255, 0.15);
  background: var(--white);
}

.step-number {
  width: 48px;
  height: 48px;
  border-radius: 50%;
  background: var(--primary);
  color: white;
  font-size: 1.25rem;
  font-weight: 700;
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto 20px;
  box-shadow: 0 4px 16px rgba(79, 140, 255, 0.3);
}

.step-card h3 {
  font-size: 1.0625rem;
  font-weight: 650;
  margin-bottom: 10px;
  letter-spacing: -0.02em;
}

.step-card p {
  font-size: 0.9rem;
  color: var(--gray);
}

.step-arrow {
  flex-shrink: 0;
  opacity: 0.7;
}

/* ==================== AI DEMO ==================== */
.ai-demo {
  padding: 100px 0;
  background: var(--bg-secondary);
}

.demo-window {
  max-width: 520px;
  margin: 0 auto;
  background: var(--white);
  border-radius: var(--radius-lg);
  box-shadow: 0 20px 60px rgba(0, 0, 0, 0.08);
  overflow: hidden;
  border: 1px solid var(--gray-light);
}

.demo-header {
  display: flex;
  align-items: center;
  padding: 16px 20px;
  background: var(--bg-secondary);
  border-bottom: 1px solid var(--gray-light);
}

.demo-dots {
  display: flex;
  gap: 6px;
}

.demo-dots span {
  width: 10px;
  height: 10px;
  border-radius: 50%;
}

.demo-dots span:nth-child(1) { background: #F87171; }
.demo-dots span:nth-child(2) { background: #FBBF24; }
.demo-dots span:nth-child(3) { background: #34D399; }

.demo-title {
  flex: 1;
  text-align: center;
  font-weight: 600;
  font-size: 0.9375rem;
}

.demo-status {
  display: flex;
  align-items: center;
  gap: 6px;
  font-size: 0.8125rem;
  color: var(--gray);
  font-weight: 500;
}

.status-indicator {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: #34D399;
  animation: statusPulse 2s ease-in-out infinite;
}

.demo-messages {
  padding: 24px 20px;
  min-height: 320px;
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.msg {
  max-width: 80%;
  padding: 12px 16px;
  border-radius: 16px;
  font-size: 0.9375rem;
  line-height: 1.5;
  opacity: 0;
  transform: translateY(10px);
  animation: msgIn 0.4s ease forwards;
}

@keyframes msgIn {
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.msg-user {
  background: var(--primary);
  color: white;
  align-self: flex-end;
  border-bottom-right-radius: 4px;
}

.msg-ai {
  background: var(--bg-secondary);
  color: var(--text);
  align-self: flex-start;
  border-bottom-left-radius: 4px;
}

.typing-dots {
  display: flex;
  gap: 5px;
  padding: 14px 18px;
  background: var(--bg-secondary);
  border-radius: 16px;
  border-bottom-left-radius: 4px;
  align-self: flex-start;
  width: fit-content;
}

.typing-dots span {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: var(--gray);
  animation: typingDot 1.2s ease-in-out infinite;
}

.typing-dots span:nth-child(2) { animation-delay: 0.2s; }
.typing-dots span:nth-child(3) { animation-delay: 0.4s; }

@keyframes typingDot {
  0%, 60%, 100% { transform: translateY(0); opacity: 0.4; }
  30% { transform: translateY(-5px); opacity: 1; }
}

/* ==================== ABOUT ==================== */
.about {
  padding: 100px 0;
  background: var(--white);
}

.about-text {
  max-width: 760px;
  margin: 0 auto;
  text-align: center;
  font-size: 1.125rem;
  color: var(--gray);
  line-height: 1.8;
}

/* ==================== STATISTICS ==================== */
.stats {
  padding: 80px 0;
  background: var(--bg-secondary);
}

.stats-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 32px;
  text-align: center;
}

.stat-item {
  display: flex;
  flex-direction: column;
  align-items: center;
}

.stat-number {
  font-size: clamp(2rem, 4vw, 3rem);
  font-weight: 800;
  color: var(--primary);
  letter-spacing: -0.03em;
  line-height: 1;
  display: inline;
}

.stat-suffix {
  font-size: clamp(1.5rem, 3vw, 2rem);
  font-weight: 700;
  color: var(--primary);
  display: inline;
}

.stat-label {
  margin-top: 8px;
  font-size: 0.9375rem;
  font-weight: 500;
  color: var(--gray);
}

/* ==================== CTA ==================== */
.cta {
  padding: 120px 0;
  background: var(--white);
  text-align: center;
}

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

.cta-title {
  font-size: clamp(1.75rem, 4vw, 2.5rem);
  font-weight: 800;
  letter-spacing: -0.03em;
  margin-bottom: 16px;
  line-height: 1.2;
}

.cta-subtitle {
  font-size: 1.125rem;
  color: var(--gray);
  margin-bottom: 40px;
  line-height: 1.6;
}

/* ==================== RESPONSIVE ==================== */
@media (max-width: 1024px) {
  .hero-container {
    gap: 40px;
  }

  .features-grid {
    grid-template-columns: repeat(2, 1fr);
  }

  .stats-grid {
    grid-template-columns: repeat(2, 1fr);
    gap: 40px;
  }

  .badge-3 {
    left: 0;
  }
}

@media (max-width: 768px) {
  .hero {
    padding: 60px 0 80px;
  }

  .hero-container {
    grid-template-columns: 1fr;
    gap: 48px;
  }

  .hero-right {
    height: 380px;
    order: -1;
  }

  .hero-subtitle {
    max-width: 100%;
  }

  .features {
    padding: 80px 0;
  }

  .features-grid {
    grid-template-columns: 1fr;
    gap: 20px;
  }

  .how-it-works {
    padding: 80px 0;
  }

  .steps-wrapper {
    flex-direction: column;
  }

  .step-arrow {
    transform: rotate(90deg);
  }

  .step-card {
    max-width: 100%;
    width: 100%;
  }

  .ai-demo,
  .about {
    padding: 80px 0;
  }

  .stats {
    padding: 60px 0;
  }

  .stats-grid {
    grid-template-columns: 1fr 1fr;
    gap: 36px;
  }

  .cta {
    padding: 80px 0;
  }

  .float-bubble,
  .floating-badge {
    font-size: 0.75rem;
    padding: 8px 12px;
  }

  .badge-1 { top: 0; right: 10%; }
  .badge-3 { display: none; }
  .bubble-3 { display: none; }
}

@media (max-width: 480px) {
  .hero-buttons {
    flex-direction: column;
  }

  .btn {
    width: 100%;
  }

  .hero-right {
    height: 320px;
  }

  .avatar-ring {
    width: 90px;
    height: 90px;
  }

  .avatar-face {
    width: 78px;
    height: 78px;
    font-size: 2rem;
  }

  .glass-1 {
    width: 150px;
  }

  .stats-grid {
    grid-template-columns: 1fr;
    gap: 28px;
  }

  .section-title {
    margin-bottom: 40px;
  }
}


/* .hero-image {
  width: 100%;
  max-width: 460px;
  border-radius: var(--radius-lg);
  box-shadow:
    0 0 80px 20px rgba(79, 140, 255, 0.35),
    0 0 120px 40px rgba(167, 139, 250, 0.25),
    var(--shadow-hover);
} */

/* ==================== HERO IMAGE + FLOATING COMMUNITY CARD ==================== */
.hero-right {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
}

.hero-image {
  width: 100%;
  max-width: 460px;
  border-radius: var(--radius-lg);
  box-shadow:
    0 0 80px 20px rgba(79, 140, 255, 0.35),
    0 0 120px 40px rgba(167, 139, 250, 0.25),
    var(--shadow-hover);
  position: relative;
  z-index: 1;
}

.community-float-card {
  position: absolute;
  bottom: -24px;
  left: 50%;
  transform: translateX(-50%);
  display: flex;
  align-items: center;
  gap: 12px;
  background: rgba(255, 255, 255, 0.85);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  border: 1px solid rgba(255, 255, 255, 0.6);
  border-radius: 50px;
  padding: 10px 20px 10px 10px;
  box-shadow: var(--shadow-card);
  z-index: 3;
  animation: floatCard 6s ease-in-out infinite;
}

.community-avatars {
  position: relative;
  display: flex;
  align-items: center;
}

.avatar {
  border-radius: 50%;
  object-fit: cover;
  border: 3px solid var(--white);
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
}

.avatar-1 {
  width: 40px;
  height: 40px;
  z-index: 3;
}

.avatar-2 {
  width: 46px;
  height: 46px;
  margin-left: -14px;
  z-index: 2;
}

.avatar-3 {
  width: 40px;
  height: 40px;
  margin-left: -14px;
  z-index: 1;
}

.community-text {
  font-size: 0.875rem;
  font-weight: 600;
  color: var(--text);
  white-space: nowrap;
}

