/* ============================================
   SỔ TAY BĐS - Landing Page Styles
   Modern, Professional, SEO-optimized
   ============================================ */

/* CSS Variables */
:root {
  /* Primary Colors */
  --primary-50: #eff6ff;
  --primary-100: #dbeafe;
  --primary-200: #bfdbfe;
  --primary-300: #93c5fd;
  --primary-400: #60a5fa;
  --primary-500: #3b82f6;
  --primary-600: #2563eb;
  --primary-700: #1d4ed8;
  --primary-800: #1e40af;
  --primary-900: #1e3a8a;
  
  /* Accent Colors */
  --accent-500: #10b981;
  --accent-600: #059669;
  
  /* Neutral Colors */
  --gray-50: #f9fafb;
  --gray-100: #f3f4f6;
  --gray-200: #e5e7eb;
  --gray-300: #d1d5db;
  --gray-400: #9ca3af;
  --gray-500: #6b7280;
  --gray-600: #4b5563;
  --gray-700: #374151;
  --gray-800: #1f2937;
  --gray-900: #111827;
  
  /* Gradients */
  --gradient-primary: linear-gradient(135deg, #2563eb 0%, #1d4ed8 50%, #1e3a8a 100%);
  --gradient-hero: linear-gradient(135deg, #1e3a8a 0%, #2563eb 50%, #3b82f6 100%);
  --gradient-accent: linear-gradient(135deg, #10b981 0%, #059669 100%);
  
  /* Shadows */
  --shadow-sm: 0 1px 2px 0 rgb(0 0 0 / 0.05);
  --shadow-md: 0 4px 6px -1px rgb(0 0 0 / 0.1), 0 2px 4px -2px rgb(0 0 0 / 0.1);
  --shadow-lg: 0 10px 15px -3px rgb(0 0 0 / 0.1), 0 4px 6px -4px rgb(0 0 0 / 0.1);
  --shadow-xl: 0 20px 25px -5px rgb(0 0 0 / 0.1), 0 8px 10px -6px rgb(0 0 0 / 0.1);
  --shadow-2xl: 0 25px 50px -12px rgb(0 0 0 / 0.25);
  
  /* Typography */
  --font-sans: 'Be Vietnam Pro', 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
  
  /* Spacing */
  --section-padding: 5rem;
  --container-max: 1280px;
  
  /* Border Radius */
  --radius-sm: 0.375rem;
  --radius-md: 0.5rem;
  --radius-lg: 0.75rem;
  --radius-xl: 1rem;
  --radius-2xl: 1.5rem;
  --radius-full: 9999px;
  
  /* Transitions */
  --transition-fast: 150ms ease;
  --transition-normal: 300ms ease;
  --transition-slow: 500ms ease;
}

/* Reset & Base */
*, *::before, *::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html {
  scroll-behavior: smooth;
  font-size: 16px;
}

body {
  font-family: var(--font-sans);
  line-height: 1.6;
  color: var(--gray-800);
  background-color: #fff;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

img {
  max-width: 100%;
  height: auto;
  display: block;
}

a {
  text-decoration: none;
  color: inherit;
  transition: color var(--transition-fast);
}

ul, ol {
  list-style: none;
}

button {
  font-family: inherit;
  cursor: pointer;
  border: none;
  background: none;
}

/* Container */
.container {
  width: 100%;
  max-width: var(--container-max);
  margin: 0 auto;
  padding: 0 1.5rem;
}

@media (min-width: 768px) {
  .container {
    padding: 0 2rem;
  }
}

/* Typography */
h1, h2, h3, h4, h5, h6 {
  font-weight: 700;
  line-height: 1.2;
  color: var(--gray-900);
}

h1 { font-size: clamp(2.25rem, 5vw, 3.75rem); }
h2 { font-size: clamp(1.875rem, 4vw, 3rem); }
h3 { font-size: clamp(1.5rem, 3vw, 2rem); }
h4 { font-size: clamp(1.25rem, 2.5vw, 1.5rem); }

.section-title {
  text-align: center;
  margin-bottom: 1rem;
}

.section-subtitle {
  text-align: center;
  color: var(--gray-600);
  font-size: 1.125rem;
  max-width: 640px;
  margin: 0 auto 3rem;
}

/* Buttons */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  padding: 0.875rem 2rem;
  font-size: 1rem;
  font-weight: 600;
  border-radius: var(--radius-lg);
  transition: all var(--transition-normal);
  white-space: nowrap;
}

.btn-primary {
  background: var(--gradient-primary);
  color: #fff;
  box-shadow: var(--shadow-lg), 0 0 0 0 rgba(37, 99, 235, 0.5);
}

.btn-primary:hover {
  transform: translateY(-2px);
  box-shadow: var(--shadow-xl), 0 0 20px rgba(37, 99, 235, 0.4);
}

.btn-secondary {
  background: #fff;
  color: var(--primary-700);
  border: 2px solid var(--primary-200);
}

.btn-secondary:hover {
  background: var(--primary-50);
  border-color: var(--primary-400);
}

.btn-accent {
  background: var(--gradient-accent);
  color: #fff;
}

.btn-accent:hover {
  transform: translateY(-2px);
  box-shadow: var(--shadow-xl);
}

.btn-lg {
  padding: 1rem 2.5rem;
  font-size: 1.125rem;
}

.btn-sm {
  padding: 0.625rem 1.25rem;
  font-size: 0.875rem;
}

/* ============================================
   HEADER / NAVIGATION
   ============================================ */
.header {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 1000;
  background: rgba(255, 255, 255, 0.95);
  backdrop-filter: blur(10px);
  border-bottom: 1px solid var(--gray-100);
  transition: all var(--transition-normal);
}

.header.scrolled {
  box-shadow: var(--shadow-md);
}

.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 4.5rem;
}

.logo {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  font-size: 1.5rem;
  font-weight: 700;
  color: var(--primary-700);
}

.logo-icon {
  width: 2.5rem;
  height: 2.5rem;
  background: var(--gradient-primary);
  border-radius: var(--radius-lg);
  display: flex;
  align-items: center;
  justify-content: center;
  color: #fff;
  font-size: 1.25rem;
}

.nav-menu {
  display: none;
  align-items: center;
  gap: 2rem;
}

@media (min-width: 1024px) {
  .nav-menu {
    display: flex;
  }
}

.nav-link {
  font-weight: 500;
  color: var(--gray-600);
  padding: 0.5rem 0;
  position: relative;
}

.nav-link::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 0;
  width: 0;
  height: 2px;
  background: var(--primary-600);
  transition: width var(--transition-normal);
}

.nav-link:hover {
  color: var(--primary-700);
}

.nav-link:hover::after {
  width: 100%;
}

.nav-cta {
  display: none;
}

@media (min-width: 1024px) {
  .nav-cta {
    display: flex;
    align-items: center;
    gap: 1rem;
  }
}

.mobile-menu-btn {
  display: flex;
  flex-direction: column;
  gap: 5px;
  padding: 0.5rem;
}

@media (min-width: 1024px) {
  .mobile-menu-btn {
    display: none;
  }
}

.mobile-menu-btn span {
  display: block;
  width: 24px;
  height: 2px;
  background: var(--gray-700);
  border-radius: 2px;
  transition: all var(--transition-fast);
}

/* Mobile Menu */
.mobile-menu {
  position: fixed;
  top: 4.5rem;
  left: 0;
  right: 0;
  bottom: 0;
  background: #fff;
  padding: 2rem;
  transform: translateX(100%);
  transition: transform var(--transition-normal);
  z-index: 999;
}

.mobile-menu.active {
  transform: translateX(0);
}

.mobile-nav-link {
  display: block;
  padding: 1rem 0;
  font-size: 1.125rem;
  font-weight: 500;
  color: var(--gray-700);
  border-bottom: 1px solid var(--gray-100);
}

.mobile-nav-cta {
  margin-top: 2rem;
  display: flex;
  flex-direction: column;
  gap: 1rem;
}

/* ============================================
   HERO SECTION
   ============================================ */
.hero {
  padding: 8rem 0 5rem;
  background: linear-gradient(135deg, #f0f9ff 0%, #e0f2fe 50%, #f0fdf4 100%);
  position: relative;
  overflow: hidden;
}

.hero::before {
  content: '';
  position: absolute;
  top: -50%;
  right: -20%;
  width: 80%;
  height: 150%;
  background: radial-gradient(ellipse, rgba(37, 99, 235, 0.08) 0%, transparent 70%);
  pointer-events: none;
}

.hero-inner {
  display: grid;
  grid-template-columns: 1fr;
  gap: 3rem;
  align-items: center;
}

@media (min-width: 1024px) {
  .hero-inner {
    grid-template-columns: 1fr 1fr;
    gap: 4rem;
  }
}

.hero-content {
  position: relative;
  z-index: 1;
}

.hero-badge {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.5rem 1rem;
  background: var(--primary-100);
  color: var(--primary-700);
  border-radius: var(--radius-full);
  font-size: 0.875rem;
  font-weight: 600;
  margin-bottom: 1.5rem;
}

.hero-badge svg {
  width: 1rem;
  height: 1rem;
}

.hero-title {
  margin-bottom: 1.5rem;
  background: var(--gradient-primary);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.hero-title span {
  display: block;
  -webkit-text-fill-color: var(--gray-900);
}

.hero-description {
  font-size: 1.25rem;
  color: var(--gray-600);
  margin-bottom: 2rem;
  max-width: 540px;
}

.logo-icon {
  font-size: 1.5rem;
}

.logo-img {
  width: 36px;
  height: 36px;
  border-radius: var(--radius-md);
  object-fit: contain;
}

.hero-cta {
  display: flex;
  flex-wrap: wrap;
  gap: 1rem;
  margin-bottom: 2.5rem;
}

.hero-stats {
  display: flex;
  flex-wrap: wrap;
  gap: 2rem;
}

.hero-stat {
  text-align: center;
}

.hero-stat-value {
  font-size: 2rem;
  font-weight: 700;
  color: var(--primary-700);
}

.hero-stat-label {
  font-size: 0.875rem;
  color: var(--gray-500);
}

.hero-image {
  position: relative;
  z-index: 1;
}

.hero-mockup {
  position: relative;
  max-width: 400px;
  margin: 0 auto;
}

.hero-phone {
  width: 100%;
  border-radius: 2rem;
  box-shadow: var(--shadow-2xl);
  background: var(--gray-900);
  padding: 0.5rem;
  overflow: hidden;
}

.hero-phone img {
  display: block;
  width: 100%;
  height: auto;
  border-radius: 1.75rem;
  object-fit: cover;
}

.hero-float-card {
  position: absolute;
  background: #fff;
  border-radius: var(--radius-xl);
  padding: 1rem 1.5rem;
  box-shadow: var(--shadow-xl);
  animation: float 3s ease-in-out infinite;
}

.hero-float-card.card-1 {
  top: 10%;
  left: -20%;
  animation-delay: 0s;
}

.hero-float-card.card-2 {
  bottom: 20%;
  right: -15%;
  animation-delay: 1s;
}

.hero-float-card.card-3 {
  bottom: 5%;
  left: -10%;
  animation-delay: 2s;
}

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

.float-card-icon {
  width: 2.5rem;
  height: 2.5rem;
  background: var(--primary-100);
  border-radius: var(--radius-md);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--primary-600);
  margin-bottom: 0.5rem;
}

.float-card-title {
  font-weight: 600;
  font-size: 0.875rem;
  color: var(--gray-900);
}

.float-card-value {
  font-size: 0.75rem;
  color: var(--gray-500);
}

/* ============================================
   FEATURES SECTION
   ============================================ */
.features {
  padding: var(--section-padding) 0;
  background: #fff;
}

.features-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 2rem;
}

@media (min-width: 640px) {
  .features-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (min-width: 1024px) {
  .features-grid {
    grid-template-columns: repeat(3, 1fr);
  }
}

.feature-card {
  padding: 2rem;
  background: var(--gray-50);
  border-radius: var(--radius-xl);
  border: 1px solid var(--gray-100);
  transition: all var(--transition-normal);
}

.feature-card:hover {
  background: #fff;
  border-color: var(--primary-200);
  box-shadow: var(--shadow-lg);
  transform: translateY(-4px);
}

.feature-icon {
  width: 3.5rem;
  height: 3.5rem;
  background: var(--gradient-primary);
  border-radius: var(--radius-lg);
  display: flex;
  align-items: center;
  justify-content: center;
  color: #fff;
  font-size: 1.5rem;
  margin-bottom: 1.5rem;
}

.feature-card:nth-child(2) .feature-icon {
  background: var(--gradient-accent);
}

.feature-card:nth-child(3) .feature-icon {
  background: linear-gradient(135deg, #f59e0b 0%, #d97706 100%);
}

.feature-card:nth-child(4) .feature-icon {
  background: linear-gradient(135deg, #8b5cf6 0%, #7c3aed 100%);
}

.feature-card:nth-child(5) .feature-icon {
  background: linear-gradient(135deg, #ec4899 0%, #db2777 100%);
}

.feature-card:nth-child(6) .feature-icon {
  background: linear-gradient(135deg, #06b6d4 0%, #0891b2 100%);
}

.feature-title {
  font-size: 1.25rem;
  margin-bottom: 0.75rem;
}

.feature-description {
  color: var(--gray-600);
  font-size: 0.9375rem;
}

/* ============================================
   AI ASSISTANT SECTION
   ============================================ */
.ai-section {
  padding: var(--section-padding) 0;
  background: var(--gradient-hero);
  color: #fff;
  position: relative;
  overflow: hidden;
}

.ai-section::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: url("data:image/svg+xml,%3Csvg width='60' height='60' viewBox='0 0 60 60' xmlns='http://www.w3.org/2000/svg'%3E%3Cg fill='none' fill-rule='evenodd'%3E%3Cg fill='%23ffffff' fill-opacity='0.05'%3E%3Cpath d='M36 34v-4h-2v4h-4v2h4v4h2v-4h4v-2h-4zm0-30V0h-2v4h-4v2h4v4h2V6h4V4h-4zM6 34v-4H4v4H0v2h4v4h2v-4h4v-2H6zM6 4V0H4v4H0v2h4v4h2V6h4V4H6z'/%3E%3C/g%3E%3C/g%3E%3C/svg%3E");
  opacity: 0.5;
}

.ai-inner {
  display: grid;
  grid-template-columns: 1fr;
  gap: 3rem;
  align-items: center;
  position: relative;
  z-index: 1;
}

@media (min-width: 1024px) {
  .ai-inner {
    grid-template-columns: 1fr 1fr;
  }
}

.ai-content h2 {
  color: #fff;
  margin-bottom: 1.5rem;
}

.ai-description {
  font-size: 1.125rem;
  opacity: 0.9;
  margin-bottom: 2rem;
}

.ai-features {
  display: flex;
  flex-direction: column;
  gap: 1rem;
  margin-bottom: 2rem;
}

.ai-feature-item {
  display: flex;
  align-items: flex-start;
  gap: 1rem;
}

.ai-feature-icon {
  width: 2rem;
  height: 2rem;
  background: rgba(255, 255, 255, 0.2);
  border-radius: var(--radius-md);
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

.ai-feature-text h4 {
  color: #fff;
  font-size: 1rem;
  margin-bottom: 0.25rem;
}

.ai-feature-text p {
  font-size: 0.875rem;
  opacity: 0.8;
}

.ai-demo {
  position: relative;
}

.ai-chat-mockup {
  background: #fff;
  border-radius: var(--radius-2xl);
  padding: 1.5rem;
  box-shadow: var(--shadow-2xl);
  max-width: 400px;
  margin: 0 auto;
}

.ai-chat-header {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  padding-bottom: 1rem;
  border-bottom: 1px solid var(--gray-100);
  margin-bottom: 1rem;
}

.ai-avatar {
  width: 3rem;
  height: 3rem;
  background: var(--gradient-primary);
  border-radius: var(--radius-full);
  display: flex;
  align-items: center;
  justify-content: center;
  color: #fff;
  font-size: 1.25rem;
}

.ai-chat-name {
  font-weight: 600;
  color: var(--gray-900);
}

.ai-chat-status {
  font-size: 0.75rem;
  color: var(--accent-600);
}

.ai-chat-messages {
  display: flex;
  flex-direction: column;
  gap: 1rem;
}

.chat-bubble {
  padding: 0.875rem 1rem;
  border-radius: var(--radius-lg);
  max-width: 85%;
  font-size: 0.875rem;
}

.chat-bubble.user {
  background: var(--primary-100);
  color: var(--primary-800);
  margin-left: auto;
  border-bottom-right-radius: 4px;
}

.chat-bubble.ai {
  background: var(--gray-100);
  color: var(--gray-800);
  border-bottom-left-radius: 4px;
}

/* ============================================
   PRICING SECTION
   ============================================ */
.pricing {
  padding: var(--section-padding) 0;
  background: var(--gray-50);
}

.pricing-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 2rem;
  max-width: 1100px;
  margin: 0 auto;
}

@media (min-width: 640px) {
  .pricing-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (min-width: 1024px) {
  .pricing-grid {
    grid-template-columns: repeat(4, 1fr);
  }
}

.pricing-card {
  background: #fff;
  border-radius: var(--radius-xl);
  padding: 1.5rem;
  border: 2px solid var(--gray-100);
  transition: all var(--transition-normal);
  position: relative;
  display: flex;
  flex-direction: column;
}

.pricing-card:hover {
  border-color: var(--primary-200);
  box-shadow: var(--shadow-xl);
}

.pricing-card.popular {
  border-color: var(--primary-500);
  transform: scale(1.02);
}

.pricing-badge {
  position: absolute;
  top: -0.75rem;
  left: 50%;
  transform: translateX(-50%);
  background: var(--gradient-primary);
  color: #fff;
  padding: 0.375rem 1rem;
  border-radius: var(--radius-full);
  font-size: 0.75rem;
  font-weight: 600;
  white-space: nowrap;
}

.pricing-name {
  font-size: 1.25rem;
  font-weight: 700;
  margin-bottom: 0.5rem;
}

.pricing-description {
  font-size: 0.8125rem;
  color: var(--gray-500);
  margin-bottom: 1rem;
}

.pricing-price {
  margin-bottom: 1rem;
  padding-bottom: 1rem;
  border-bottom: 1px solid var(--gray-100);
}

.pricing-amount {
  font-size: 1.75rem;
  font-weight: 700;
  color: var(--primary-700);
}

.pricing-period {
  font-size: 0.875rem;
  color: var(--gray-500);
}

.pricing-features {
  margin-bottom: 1.5rem;
  flex: 1;
}

.pricing-feature {
  display: flex;
  align-items: flex-start;
  gap: 0.5rem;
  padding: 0.375rem 0;
  font-size: 0.8125rem;
  color: var(--gray-700);
  line-height: 1.4;
}

 .feature-text {
   flex: 1;
   min-width: 0;
 }

 .feature-badge {
   flex-shrink: 0;
   padding: 0.125rem 0.5rem;
   border-radius: var(--radius-full);
   font-size: 0.6875rem;
   font-weight: 700;
   line-height: 1.25;
   border: 1px solid transparent;
 }

 .feature-section {
   flex: 1;
   font-size: 0.75rem;
   font-weight: 700;
   text-transform: uppercase;
   letter-spacing: 0.04em;
   color: var(--gray-500);
 }

 .pricing-feature.divider {
   margin-top: 0.75rem;
   padding-top: 1rem;
   border-top: 1px solid var(--gray-200);
 }

 .badge-pro {
   background: var(--primary-50);
   color: var(--primary-700);
   border-color: var(--primary-200);
 }

 .badge-ai {
   background: #f5f3ff;
   color: #6d28d9;
   border-color: #ddd6fe;
 }

 .badge-crm {
   background: #ecfdf5;
   color: #047857;
   border-color: #a7f3d0;
 }

 .badge-smart {
   background: #f0fdfa;
   color: #0f766e;
   border-color: #99f6e4;
 }

 .badge-ai-pro {
   background: linear-gradient(135deg, #7c3aed 0%, #db2777 100%);
   color: #fff;
 }

 .badge-vip {
   background: #fffbeb;
   color: #b45309;
   border-color: #fde68a;
 }

.pricing-feature svg {
  width: 1rem;
  height: 1rem;
  color: var(--accent-500);
  flex-shrink: 0;
  margin-top: 0.125rem;
}

.pricing-feature.disabled {
  color: var(--gray-400);
}

.pricing-feature.disabled svg {
  color: var(--gray-300);
}

.pricing-cta {
  width: 100%;
}

/* ============================================
   APP DOWNLOAD SECTION
   ============================================ */
.download {
  padding: var(--section-padding) 0;
  background: #fff;
}

.download-inner {
  display: grid;
  grid-template-columns: 1fr;
  gap: 3rem;
  align-items: center;
}

@media (min-width: 1024px) {
  .download-inner {
    grid-template-columns: 1fr 1fr;
  }
}

.download-content h2 {
  margin-bottom: 1.5rem;
}

.download-description {
  color: var(--gray-600);
  font-size: 1.125rem;
  margin-bottom: 2rem;
}

.download-stores {
  display: flex;
  flex-wrap: wrap;
  gap: 1rem;
  margin-bottom: 2rem;
}

.store-badge {
  display: inline-flex;
  align-items: center;
  gap: 0.75rem;
  background: var(--gray-900);
  color: #fff;
  padding: 0.75rem 1.5rem;
  border-radius: var(--radius-lg);
  transition: all var(--transition-normal);
}

.store-badge:hover {
  background: var(--gray-800);
  transform: translateY(-2px);
}

.store-badge svg {
  width: 2rem;
  height: 2rem;
}

.store-badge-text {
  text-align: left;
}

.store-badge-small {
  font-size: 0.625rem;
  opacity: 0.8;
  display: block;
}

.store-badge-large {
  font-size: 1rem;
  font-weight: 600;
}

.download-qr {
  display: flex;
  align-items: center;
  gap: 1rem;
  padding: 1rem;
  background: var(--gray-50);
  border-radius: var(--radius-lg);
  max-width: 440px;
}

.qr-code {
  width: 140px;
  height: 140px;
  background: #fff;
  border-radius: var(--radius-md);
  padding: 0.5rem;
}

 .qr-code img {
   display: block;
   width: 100%;
   height: 100%;
   object-fit: contain;
 }

 @media (max-width: 480px) {
   .download-qr {
     max-width: 100%;
     padding: 0.875rem;
   }

   .qr-code {
     width: 128px;
     height: 128px;
   }
 }

.qr-text {
  font-size: 0.875rem;
  color: var(--gray-600);
}

.download-image {
  position: relative;
}

.download-phones {
  display: flex;
  justify-content: center;
  align-items: flex-end;
  gap: 0;
}

.download-phone {
  width: 200px;
  background: var(--gray-900);
  border-radius: 2rem;
  padding: 0.375rem;
  box-shadow: var(--shadow-2xl);
  flex-shrink: 0;
}

.download-phone:nth-child(2) {
  margin-left: -2rem;
  margin-top: 0;
}

.download-phone img {
  display: block;
  width: 100%;
  height: auto;
  border-radius: 1.75rem;
  object-fit: cover;
}

/* ============================================
   TESTIMONIALS SECTION
   ============================================ */
.testimonials {
  padding: var(--section-padding) 0;
  background: var(--gray-50);
}

.testimonials-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 2rem;
}

@media (min-width: 768px) {
  .testimonials-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (min-width: 1024px) {
  .testimonials-grid {
    grid-template-columns: repeat(3, 1fr);
  }
}

.testimonial-card {
  background: #fff;
  border-radius: var(--radius-xl);
  padding: 2rem;
  box-shadow: var(--shadow-sm);
}

.testimonial-stars {
  display: flex;
  gap: 0.25rem;
  margin-bottom: 1rem;
  color: #fbbf24;
}

.testimonial-text {
  font-size: 1rem;
  color: var(--gray-700);
  margin-bottom: 1.5rem;
  line-height: 1.7;
}

.testimonial-author {
  display: flex;
  align-items: center;
  gap: 1rem;
}

.testimonial-avatar {
  width: 3rem;
  height: 3rem;
  border-radius: var(--radius-full);
  background: var(--primary-100);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--primary-600);
  font-weight: 600;
}

.testimonial-name {
  font-weight: 600;
  color: var(--gray-900);
}

.testimonial-role {
  font-size: 0.875rem;
  color: var(--gray-500);
}

/* ============================================
   CTA SECTION
   ============================================ */
.cta {
  padding: var(--section-padding) 0;
  background: var(--gradient-hero);
  position: relative;
  overflow: hidden;
}

.cta::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: url("data:image/svg+xml,%3Csvg width='60' height='60' viewBox='0 0 60 60' xmlns='http://www.w3.org/2000/svg'%3E%3Cg fill='none' fill-rule='evenodd'%3E%3Cg fill='%23ffffff' fill-opacity='0.05'%3E%3Cpath d='M36 34v-4h-2v4h-4v2h4v4h2v-4h4v-2h-4zm0-30V0h-2v4h-4v2h4v4h2V6h4V4h-4zM6 34v-4H4v4H0v2h4v4h2v-4h4v-2H6zM6 4V0H4v4H0v2h4v4h2V6h4V4H6z'/%3E%3C/g%3E%3C/g%3E%3C/svg%3E");
  opacity: 0.3;
}

.cta-inner {
  text-align: center;
  position: relative;
  z-index: 1;
  max-width: 700px;
  margin: 0 auto;
}

.cta h2 {
  color: #fff;
  margin-bottom: 1rem;
}

.cta-description {
  color: rgba(255, 255, 255, 0.9);
  font-size: 1.25rem;
  margin-bottom: 2rem;
}

.cta-buttons {
  display: flex;
  justify-content: center;
  flex-wrap: wrap;
  gap: 1rem;
}

.cta .btn-primary {
  background: #fff;
  color: var(--primary-700);
}

.cta .btn-primary:hover {
  background: var(--gray-100);
}

.cta .btn-secondary {
  background: transparent;
  color: #fff;
  border-color: rgba(255, 255, 255, 0.5);
}

.cta .btn-secondary:hover {
  background: rgba(255, 255, 255, 0.1);
  border-color: #fff;
}

/* ============================================
   FOOTER
   ============================================ */
.footer {
  background: var(--gray-900);
  color: var(--gray-300);
  padding: 4rem 0 2rem;
}

.footer-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 2rem;
  margin-bottom: 3rem;
}

@media (min-width: 640px) {
  .footer-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (min-width: 1024px) {
  .footer-grid {
    grid-template-columns: 2fr 1fr 1fr 1fr;
  }
}

.footer-brand .logo {
  color: #fff;
  margin-bottom: 1rem;
}

.footer-brand p {
  font-size: 0.875rem;
  line-height: 1.7;
  margin-bottom: 1.5rem;
}

.footer-social {
  display: flex;
  gap: 1rem;
}

.footer-social a {
  width: 2.5rem;
  height: 2.5rem;
  background: var(--gray-800);
  border-radius: var(--radius-md);
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all var(--transition-fast);
}

.footer-social a:hover {
  background: var(--primary-600);
  color: #fff;
}

.footer-column h4 {
  color: #fff;
  font-size: 1rem;
  margin-bottom: 1.25rem;
}

.footer-links {
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
}

.footer-links a {
  font-size: 0.875rem;
  color: var(--gray-400);
  transition: color var(--transition-fast);
}

.footer-links a:hover {
  color: #fff;
}

.footer-bottom {
  padding-top: 2rem;
  border-top: 1px solid var(--gray-800);
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 1rem;
  font-size: 0.875rem;
}

.footer-legal {
  display: flex;
  gap: 2rem;
}

.footer-legal a:hover {
  color: #fff;
}

/* ============================================
   UTILITIES
   ============================================ */
.text-center { text-align: center; }
.text-primary { color: var(--primary-600); }
.text-accent { color: var(--accent-500); }

.mt-1 { margin-top: 0.25rem; }
.mt-2 { margin-top: 0.5rem; }
.mt-4 { margin-top: 1rem; }
.mt-8 { margin-top: 2rem; }

.mb-1 { margin-bottom: 0.25rem; }
.mb-2 { margin-bottom: 0.5rem; }
.mb-4 { margin-bottom: 1rem; }
.mb-8 { margin-bottom: 2rem; }

/* Animations */
.fade-in {
  opacity: 0;
  transform: translateY(20px);
  transition: opacity 0.6s ease, transform 0.6s ease;
}

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

/* Scroll to top button */
.scroll-top {
  position: fixed;
  bottom: 2rem;
  right: 2rem;
  width: 3rem;
  height: 3rem;
  background: var(--primary-600);
  color: #fff;
  border-radius: var(--radius-full);
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: var(--shadow-lg);
  opacity: 0;
  visibility: hidden;
  transition: all var(--transition-normal);
  z-index: 100;
}

.scroll-top.visible {
  opacity: 1;
  visibility: visible;
}

.scroll-top:hover {
  background: var(--primary-700);
  transform: translateY(-3px);
}

/* Loading Animation */
.loading-dots {
  display: inline-flex;
  gap: 0.25rem;
}

.loading-dots span {
  width: 6px;
  height: 6px;
  background: currentColor;
  border-radius: 50%;
  animation: dot-bounce 1.4s infinite ease-in-out both;
}

.loading-dots span:nth-child(1) { animation-delay: -0.32s; }
.loading-dots span:nth-child(2) { animation-delay: -0.16s; }

@keyframes dot-bounce {
  0%, 80%, 100% { transform: scale(0); }
  40% { transform: scale(1); }
}
