/* ============================================
   RemoveAI - AI Background Remover Landing Page
   Premium CSS Styles
   ============================================ */

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

:root {
  --primary: #2563EB;
  --primary-light: #3B82F6;
  --secondary: #7C3AED;
  --accent: #06B6D4;
  --bg: #FFFFFF;
  --bg-subtle: #F8FAFC;
  --bg-muted: #EEF2FF;
  --text: #0F172A;
  --text-secondary: #475569;
  --text-muted: #94A3B8;
  --border: #E2E8F0;
  --border-light: #F1F5F9;
  --gradient: linear-gradient(135deg, #2563EB, #7C3AED);
  --gradient-accent: linear-gradient(135deg, #06B6D4, #2563EB);
  --shadow-sm: 0 2px 8px rgba(37, 99, 235, 0.06);
  --shadow-md: 0 4px 24px rgba(37, 99, 235, 0.08);
  --shadow-lg: 0 12px 40px rgba(37, 99, 235, 0.15);
  --shadow-btn: 0 4px 16px rgba(37, 99, 235, 0.3);
  --radius-sm: 8px;
  --radius-md: 12px;
  --radius-lg: 20px;
  --radius-xl: 24px;
  --font: 'Inter', system-ui, -apple-system, sans-serif;
  --ease: cubic-bezier(0.16, 1, 0.3, 1);
  --ease-bounce: cubic-bezier(0.34, 1.56, 0.64, 1);
}

html {
  scroll-behavior: smooth;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

body {
  font-family: var(--font);
  color: var(--text);
  background: var(--bg);
  line-height: 1.6;
  overflow-x: hidden;
}

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

a {
  text-decoration: none;
  color: inherit;
  transition: color 0.3s var(--ease);
}

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

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

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

.section-header {
  text-align: center;
  margin-bottom: 64px;
}

.section-header h2 {
  font-size: clamp(32px, 5vw, 48px);
  font-weight: 800;
  line-height: 1.2;
  margin: 16px 0;
  letter-spacing: -0.02em;
}

.section-header p {
  font-size: 18px;
  color: var(--text-secondary);
  max-width: 560px;
  margin: 0 auto;
}

.section-tag {
  display: inline-flex;
  align-items: center;
  padding: 6px 16px;
  background: var(--bg-muted);
  color: var(--primary);
  font-size: 14px;
  font-weight: 600;
  border-radius: 100px;
  letter-spacing: 0.02em;
}

/* === Buttons === */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 12px 24px;
  font-size: 15px;
  font-weight: 600;
  border-radius: var(--radius-md);
  transition: all 0.3s var(--ease);
  white-space: nowrap;
  position: relative;
  overflow: hidden;
}

.btn:active {
  transform: scale(0.97);
}

.btn-primary {
  background: var(--gradient);
  color: white;
  box-shadow: var(--shadow-btn);
}

.btn-primary:hover {
  box-shadow: 0 6px 24px rgba(37, 99, 235, 0.4);
  transform: translateY(-1px);
}

.btn-primary:active {
  transform: scale(0.97) translateY(0);
}

.btn-outline {
  border: 2px solid var(--border);
  color: var(--text);
  background: white;
}

.btn-outline:hover {
  border-color: var(--primary);
  color: var(--primary);
  background: var(--bg-muted);
}

.btn-ghost {
  color: var(--text-secondary);
  padding: 10px 16px;
}

.btn-ghost:hover {
  color: var(--primary);
  background: var(--bg-muted);
}

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

.btn-white:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 32px rgba(0, 0, 0, 0.15);
}

.btn-lg {
  padding: 16px 32px;
  font-size: 16px;
  border-radius: 14px;
}

.btn-block {
  width: 100%;
}

/* === Background Orbs === */
.bg-orbs {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  pointer-events: none;
  z-index: 0;
  overflow: hidden;
}

.orb {
  position: absolute;
  border-radius: 50%;
  filter: blur(80px);
  opacity: 0.4;
}

.orb-1 {
  width: 600px;
  height: 600px;
  background: radial-gradient(circle, rgba(37, 99, 235, 0.15), transparent 70%);
  top: -200px;
  right: -200px;
  animation: float-orb 20s ease-in-out infinite;
}

.orb-2 {
  width: 500px;
  height: 500px;
  background: radial-gradient(circle, rgba(124, 58, 237, 0.12), transparent 70%);
  bottom: 20%;
  left: -150px;
  animation: float-orb 25s ease-in-out infinite reverse;
}

.orb-3 {
  width: 400px;
  height: 400px;
  background: radial-gradient(circle, rgba(6, 182, 212, 0.1), transparent 70%);
  top: 50%;
  right: 10%;
  animation: float-orb 18s ease-in-out infinite 5s;
}

@keyframes float-orb {
  0%, 100% { transform: translate(0, 0) scale(1); }
  25% { transform: translate(30px, -40px) scale(1.05); }
  50% { transform: translate(-20px, 20px) scale(0.95); }
  75% { transform: translate(40px, 30px) scale(1.02); }
}

@keyframes arrowPulse {
  0% { transform: scale(1); opacity: 0.5; }
  50% { transform: scale(1.3); opacity: 1; }
  100% { transform: scale(1); opacity: 1; }
}

/* === Header === */
.header {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 1000;
  background: rgba(255, 255, 255, 0.8);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  border-bottom: 1px solid rgba(226, 232, 240, 0.5);
  transition: all 0.3s var(--ease);
}

.header.scrolled {
  background: rgba(255, 255, 255, 0.95);
  box-shadow: 0 2px 20px rgba(0, 0, 0, 0.06);
}

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

.logo {
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 20px;
  font-weight: 800;
  color: var(--text);
  letter-spacing: -0.02em;
}

.nav-desktop {
  display: flex;
  align-items: center;
  gap: 32px;
}

.nav-desktop a {
  font-size: 15px;
  font-weight: 500;
  color: var(--text-secondary);
  transition: color 0.3s var(--ease);
}

.nav-desktop a:hover {
  color: var(--primary);
}

.header-actions {
  display: flex;
  align-items: center;
  gap: 12px;
}

/* Language Dropdown */
.lang-dropdown {
  position: relative;
}

.lang-btn {
  display: flex;
  align-items: center;
  gap: 6px;
  padding: 8px 12px;
  border-radius: var(--radius-sm);
  color: var(--text-secondary);
  font-size: 14px;
  font-weight: 500;
  transition: all 0.3s var(--ease);
}

.lang-btn:hover {
  background: var(--bg-muted);
  color: var(--primary);
}

.lang-menu {
  position: absolute;
  top: calc(100% + 8px);
  right: 0;
  background: white;
  border-radius: var(--radius-md);
  box-shadow: var(--shadow-lg);
  border: 1px solid var(--border-light);
  padding: 8px;
  min-width: 160px;
  opacity: 0;
  visibility: hidden;
  transform: translateY(-8px);
  transition: all 0.3s var(--ease);
  z-index: 100;
}

.lang-dropdown.open .lang-menu {
  opacity: 1;
  visibility: visible;
  transform: translateY(0);
}

.lang-menu button {
  display: block;
  width: 100%;
  text-align: left;
  padding: 10px 14px;
  border-radius: var(--radius-sm);
  font-size: 14px;
  color: var(--text-secondary);
  transition: all 0.2s var(--ease);
}

.lang-menu button:hover {
  background: var(--bg-muted);
  color: var(--primary);
}

/* Mobile Menu */
.mobile-menu-btn {
  display: none;
  flex-direction: column;
  gap: 5px;
  padding: 8px;
}

.mobile-menu-btn span {
  display: block;
  width: 22px;
  height: 2px;
  background: var(--text);
  border-radius: 2px;
  transition: all 0.3s var(--ease);
}

.mobile-menu-btn.active span:nth-child(1) {
  transform: rotate(45deg) translate(5px, 5px);
}

.mobile-menu-btn.active span:nth-child(2) {
  opacity: 0;
}

.mobile-menu-btn.active span:nth-child(3) {
  transform: rotate(-45deg) translate(5px, -5px);
}

.nav-mobile {
  display: none;
  flex-direction: column;
  padding: 16px 24px 24px;
  gap: 4px;
  border-top: 1px solid var(--border-light);
}

.nav-mobile a {
  padding: 12px 16px;
  border-radius: var(--radius-sm);
  font-size: 15px;
  font-weight: 500;
  color: var(--text-secondary);
  transition: all 0.2s var(--ease);
}

.nav-mobile a:hover {
  background: var(--bg-muted);
  color: var(--primary);
}

/* === Hero Section === */
.hero {
  position: relative;
  padding: 140px 0 80px;
  min-height: 100vh;
  display: flex;
  align-items: center;
  z-index: 1;
  background: linear-gradient(180deg, var(--bg) 0%, var(--bg-subtle) 50%, var(--bg) 100%);
}

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

.hero-badge {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 8px 16px;
  background: var(--bg-muted);
  border: 1px solid rgba(37, 99, 235, 0.1);
  border-radius: 100px;
  font-size: 14px;
  font-weight: 500;
  color: var(--primary);
  margin-bottom: 24px;
}

.hero-title {
  font-size: clamp(40px, 6vw, 68px);
  font-weight: 800;
  line-height: 1.1;
  letter-spacing: -0.03em;
  margin-bottom: 20px;
}

.hero-subtitle {
  font-size: 18px;
  color: var(--text-secondary);
  line-height: 1.7;
  margin-bottom: 32px;
  max-width: 480px;
}

.hero-actions {
  display: flex;
  gap: 16px;
  margin-bottom: 40px;
  flex-wrap: wrap;
}

.hero-trust {
  display: flex;
  align-items: center;
  gap: 12px;
}

.stars {
  display: flex;
  gap: 2px;
}

.hero-trust span {
  font-size: 14px;
  color: var(--text-secondary);
}

.hero-trust strong {
  color: var(--text);
}

/* Hero Comparison */
.hero-visual {
  position: relative;
}

.hero-comparison {
  position: relative;
  border-radius: var(--radius-xl);
  overflow: hidden;
  box-shadow: var(--shadow-lg);
}

/* === Comparison Slider (shared) === */
.comparison-container {
  position: relative;
  overflow: hidden;
  border-radius: var(--radius-xl);
  aspect-ratio: 1;
  background: #f0f0f0;
}

.comparison-img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  user-select: none;
  -webkit-user-drag: none;
}

.comparison-before {
  position: absolute;
  top: 0;
  left: 0;
  width: 50%;
  height: 100%;
  overflow: hidden;
}

.comparison-before .comparison-img {
  width: 200%;
  max-width: none;
  height: 100%;
}

.comparison-slider {
  position: absolute;
  top: 0;
  left: 50%;
  width: 4px;
  height: 100%;
  cursor: ew-resize;
  z-index: 10;
  transform: translateX(-50%);
}

.slider-line {
  position: absolute;
  top: 0;
  left: 50%;
  transform: translateX(-50%);
  width: 3px;
  height: 100%;
  background: white;
  box-shadow: 0 0 12px rgba(0, 0, 0, 0.3);
}

.slider-handle {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  width: 48px;
  height: 48px;
  background: white;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.2);
  transition: transform 0.2s var(--ease);
}

.slider-handle:hover {
  transform: translate(-50%, -50%) scale(1.1);
}

.slider-handle svg {
  width: 20px;
  height: 20px;
}

.comparison-label {
  position: absolute;
  bottom: 16px;
  padding: 6px 14px;
  background: rgba(0, 0, 0, 0.6);
  backdrop-filter: blur(8px);
  color: white;
  font-size: 13px;
  font-weight: 600;
  border-radius: 100px;
  z-index: 5;
}

.label-before {
  left: 16px;
}

.label-after {
  right: 16px;
}

/* === Upload Section === */
.upload-section {
  position: relative;
  padding: 80px 0;
  z-index: 1;
}

.upload-area {
  max-width: 680px;
  margin: 0 auto;
  padding: 64px 48px;
  border: 2px dashed var(--border);
  border-radius: var(--radius-xl);
  text-align: center;
  background: rgba(255, 255, 255, 0.8);
  backdrop-filter: blur(10px);
  transition: all 0.4s var(--ease);
  cursor: pointer;
}

.upload-area:hover,
.upload-area.dragover {
  border-color: var(--primary);
  background: var(--bg-muted);
  transform: scale(1.01);
  box-shadow: var(--shadow-md);
}

.upload-area.dragover {
  border-style: solid;
}

.upload-icon {
  margin-bottom: 20px;
}

.upload-area h3 {
  font-size: 22px;
  font-weight: 700;
  margin-bottom: 8px;
}

.upload-area p {
  color: var(--text-secondary);
  margin-bottom: 20px;
}

.upload-formats {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 12px;
  margin-bottom: 24px;
}

.upload-formats span {
  padding: 4px 12px;
  background: var(--bg-muted);
  border-radius: 6px;
  font-size: 13px;
  font-weight: 600;
  color: var(--text-secondary);
}

.upload-formats .upload-max {
  background: transparent;
  color: var(--text-muted);
  font-weight: 400;
}

.upload-btn {
  margin-top: 8px;
}

/* === Upload Result === */
.upload-result {
  animation: fadeUp 0.5s var(--ease) forwards;
  max-width: 720px;
  margin: 0 auto;
}

.result-comparison {
  display: flex;
  align-items: center;
  gap: 24px;
  margin-bottom: 32px;
}

.result-panel {
  flex: 1;
  background: white;
  border-radius: var(--radius-lg);
  overflow: hidden;
  box-shadow: var(--shadow);
  border: 1px solid var(--border-light);
  transition: all 0.4s var(--ease);
  position: relative;
}

.result-panel.processing {
  opacity: 0.6;
  filter: blur(2px);
  pointer-events: none;
}

.result-panel.processing::after {
  content: 'AI Processing...';
  position: absolute;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  background: rgba(255,255,255,0.5);
  font-weight: 600;
  color: var(--primary);
  font-size: 16px;
  z-index: 2;
}

.result-label {
  padding: 12px 16px;
  font-size: 13px;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  color: var(--text-secondary);
  background: var(--bg-subtle);
  border-bottom: 1px solid var(--border-light);
}

.result-image-wrap {
  width: 100%;
  aspect-ratio: 1;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
  background: #f8f8f8;
}

.result-image-wrap img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.result-checkerboard {
  background-image:
    linear-gradient(45deg, #e5e5e5 25%, transparent 25%),
    linear-gradient(-45deg, #e5e5e5 25%, transparent 25%),
    linear-gradient(45deg, transparent 75%, #e5e5e5 75%),
    linear-gradient(-45deg, transparent 75%, #e5e5e5 75%);
  background-size: 20px 20px;
  background-position: 0 0, 0 10px, 10px -10px, -10px 0px;
}

.result-arrow {
  flex-shrink: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  width: 48px;
  height: 48px;
  animation: fadeIn 0.5s var(--ease) 0.3s both;
}

.result-arrow.pulse-once svg {
  animation: arrowPulse 0.5s var(--ease);
}

.result-actions {
  display: flex;
  gap: 16px;
  justify-content: center;
  margin-top: 24px;
}

.result-actions .btn {
  min-width: 200px;
}

.processing-spinner--sm {
  width: 24px;
  height: 24px;
  border-width: 3px;
}

/* === Toast Notification === */
.toast-notification {
  position: fixed;
  bottom: 32px;
  left: 50%;
  transform: translateX(-50%) translateY(20px);
  padding: 16px 32px;
  border-radius: 12px;
  font-size: 15px;
  font-weight: 500;
  color: white;
  z-index: 10000;
  opacity: 0;
  transition: all 0.3s var(--ease);
  pointer-events: none;
  box-shadow: 0 8px 32px rgba(0,0,0,0.15);
}

.toast-notification.show {
  opacity: 1;
  transform: translateX(-50%) translateY(0);
}

.toast-success {
  background: #10B981;
}

.toast-error {
  background: #EF4444;
}

@media (max-width: 768px) {
  .result-comparison {
    flex-direction: column;
    gap: 12px;
  }
  .result-arrow {
    transform: rotate(90deg);
  }
  .result-actions {
    flex-direction: column;
  }
  .result-actions .btn {
    min-width: 100%;
  }
}

/* === Features Section === */
.features {
  position: relative;
  padding: 120px 0;
  z-index: 1;
  background: var(--bg-subtle);
}

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

.feature-card {
  padding: 36px;
  background: rgba(255, 255, 255, 0.9);
  backdrop-filter: blur(10px);
  border-radius: var(--radius-lg);
  border: 1px solid var(--border-light);
  transition: all 0.4s var(--ease);
}

.feature-card:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-lg);
  border-color: rgba(37, 99, 235, 0.15);
}

.feature-icon {
  width: 56px;
  height: 56px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: var(--bg-muted);
  border-radius: 16px;
  margin-bottom: 20px;
  color: var(--primary);
  transition: all 0.3s var(--ease);
}

.feature-card:hover .feature-icon {
  background: var(--gradient);
  color: white;
  transform: scale(1.05);
}

.feature-card h3 {
  font-size: 18px;
  font-weight: 700;
  margin-bottom: 10px;
}

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

/* === Before & After Section === */
.before-after {
  position: relative;
  padding: 120px 0;
  z-index: 1;
}

.ba-gallery {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
}

.ba-item {
  border-radius: var(--radius-lg);
  overflow: hidden;
  box-shadow: var(--shadow-md);
  transition: all 0.4s var(--ease);
}

.ba-item:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-lg);
}

.ba-item .comparison-container {
  aspect-ratio: 1;
  border-radius: 0;
}

/* === Steps Section === */
.steps {
  position: relative;
  padding: 120px 0;
  z-index: 1;
  background: var(--bg-subtle);
}

.steps-timeline {
  display: flex;
  align-items: flex-start;
  justify-content: center;
  gap: 0;
  max-width: 900px;
  margin: 0 auto;
}

.step-item {
  flex: 1;
  text-align: center;
  padding: 0 24px;
  position: relative;
}

.step-number {
  font-size: 64px;
  font-weight: 800;
  background: var(--gradient);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  opacity: 0.15;
  line-height: 1;
  margin-bottom: 16px;
}

.step-icon {
  width: 72px;
  height: 72px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: white;
  border: 2px solid var(--border);
  border-radius: 20px;
  margin: 0 auto 20px;
  color: var(--primary);
  transition: all 0.3s var(--ease);
}

.step-item:hover .step-icon {
  background: var(--gradient);
  color: white;
  border-color: transparent;
  transform: scale(1.05);
  box-shadow: var(--shadow-btn);
}

.step-content h3 {
  font-size: 20px;
  font-weight: 700;
  margin-bottom: 10px;
}

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

.step-connector {
  width: 60px;
  height: 2px;
  background: var(--border);
  margin-top: 80px;
  position: relative;
}

.step-connector::after {
  content: '';
  position: absolute;
  right: -4px;
  top: -3px;
  width: 8px;
  height: 8px;
  border-right: 2px solid var(--primary);
  border-top: 2px solid var(--primary);
  transform: rotate(45deg);
}

/* === Stats Section === */
.stats {
  position: relative;
  padding: 100px 0;
  z-index: 1;
  background: var(--gradient);
}

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

.stat-item {
  padding: 24px;
}

.stat-number {
  font-size: clamp(36px, 5vw, 56px);
  font-weight: 800;
  color: white;
  line-height: 1.1;
  margin-bottom: 8px;
}

.stat-label {
  font-size: 16px;
  color: rgba(255, 255, 255, 0.8);
  font-weight: 500;
}

/* === Testimonials Section === */
.testimonials {
  position: relative;
  padding: 120px 0;
  z-index: 1;
  overflow: hidden;
}

.testimonial-carousel {
  position: relative;
  overflow: hidden;
}

.testimonial-track {
  display: flex;
  gap: 24px;
  transition: transform 0.5s var(--ease);
}

.testimonial-card {
  flex: 0 0 calc(33.333% - 16px);
  min-width: 300px;
  padding: 32px;
  background: rgba(255, 255, 255, 0.9);
  backdrop-filter: blur(10px);
  border-radius: var(--radius-lg);
  border: 1px solid var(--border-light);
  transition: all 0.3s var(--ease);
}

.testimonial-card:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-lg);
}

.testimonial-stars {
  display: flex;
  gap: 2px;
  margin-bottom: 16px;
}

.testimonial-card p {
  font-size: 15px;
  color: var(--text-secondary);
  line-height: 1.7;
  margin-bottom: 20px;
  font-style: italic;
}

.testimonial-author {
  display: flex;
  align-items: center;
  gap: 12px;
}

.author-avatar {
  width: 44px;
  height: 44px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  color: white;
  font-weight: 700;
  font-size: 18px;
  flex-shrink: 0;
}

.testimonial-author strong {
  display: block;
  font-size: 15px;
  font-weight: 600;
}

.testimonial-author span {
  font-size: 13px;
  color: var(--text-muted);
}

.carousel-controls {
  display: flex;
  justify-content: center;
  gap: 12px;
  margin-top: 40px;
}

.carousel-btn {
  width: 48px;
  height: 48px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 50%;
  border: 2px solid var(--border);
  color: var(--text-secondary);
  transition: all 0.3s var(--ease);
}

.carousel-btn:hover {
  border-color: var(--primary);
  color: var(--primary);
  background: var(--bg-muted);
}

/* === Pricing Section === */
.pricing {
  position: relative;
  padding: 120px 0;
  z-index: 1;
  background: var(--bg-subtle);
}

.pricing-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 24px;
  align-items: start;
}

.pricing-card {
  padding: 36px;
  background: white;
  border-radius: var(--radius-lg);
  border: 1px solid var(--border-light);
  transition: all 0.4s var(--ease);
  position: relative;
}

.pricing-card:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-lg);
}

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

.pricing-card.popular:hover {
  transform: scale(1.02) translateY(-4px);
}

.pricing-badge {
  position: absolute;
  top: -14px;
  left: 50%;
  transform: translateX(-50%);
  padding: 6px 20px;
  background: var(--gradient);
  color: white;
  font-size: 13px;
  font-weight: 600;
  border-radius: 100px;
  white-space: nowrap;
}

.pricing-header {
  text-align: center;
  margin-bottom: 28px;
  padding-bottom: 28px;
  border-bottom: 1px solid var(--border-light);
}

.pricing-header h3 {
  font-size: 20px;
  font-weight: 700;
  margin-bottom: 12px;
}

.pricing-price {
  display: flex;
  align-items: baseline;
  justify-content: center;
  gap: 4px;
  margin-bottom: 8px;
}

.price-amount {
  font-size: 40px;
  font-weight: 800;
  letter-spacing: -0.02em;
}

.price-period {
  font-size: 16px;
  color: var(--text-muted);
}

.pricing-header p {
  font-size: 14px;
  color: var(--text-muted);
}

.pricing-features {
  list-style: none;
  margin-bottom: 28px;
  display: flex;
  flex-direction: column;
  gap: 14px;
}

.pricing-features li {
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 14px;
  color: var(--text-secondary);
}

.pricing-features li svg {
  flex-shrink: 0;
}

.pricing-features .disabled {
  color: var(--text-muted);
}

/* === CTA Section === */
.cta-section {
  position: relative;
  padding: 120px 0;
  z-index: 1;
}

.cta-card {
  text-align: center;
  padding: 80px 48px;
  background: var(--gradient);
  border-radius: 32px;
  position: relative;
  overflow: hidden;
}

.cta-card::before {
  content: '';
  position: absolute;
  top: -50%;
  left: -50%;
  width: 200%;
  height: 200%;
  background: radial-gradient(circle at 30% 50%, rgba(255,255,255,0.1) 0%, transparent 50%);
  pointer-events: none;
}

.cta-card h2 {
  font-size: clamp(28px, 4vw, 44px);
  font-weight: 800;
  color: white;
  margin-bottom: 16px;
  line-height: 1.2;
  position: relative;
}

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

.cta-card .btn-white {
  position: relative;
}

/* === Footer === */
.footer {
  position: relative;
  padding: 80px 0 40px;
  z-index: 1;
  background: var(--text);
  color: rgba(255, 255, 255, 0.7);
}

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

.footer-brand .logo {
  color: white;
  margin-bottom: 16px;
}

.footer-brand p {
  font-size: 15px;
  line-height: 1.6;
  max-width: 280px;
}

.footer-links h4 {
  color: white;
  font-size: 15px;
  font-weight: 600;
  margin-bottom: 16px;
}

.footer-links a {
  display: block;
  font-size: 14px;
  padding: 6px 0;
  color: rgba(255, 255, 255, 0.6);
  transition: color 0.3s var(--ease);
}

.footer-links a:hover {
  color: white;
}

.footer-bottom {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding-top: 32px;
  border-top: 1px solid rgba(255, 255, 255, 0.1);
}

.footer-bottom p {
  font-size: 14px;
}

.footer-social {
  display: flex;
  gap: 16px;
}

.footer-social a {
  color: rgba(255, 255, 255, 0.6);
  transition: color 0.3s var(--ease);
}

.footer-social a:hover {
  color: white;
}

/* === Customer Service Widget === */
.cs-widget {
  position: fixed;
  bottom: 24px;
  right: 24px;
  z-index: 9999;
  font-family: 'Inter', system-ui, sans-serif;
}
.cs-toggle {
  width: 56px;
  height: 56px;
  border-radius: 50%;
  border: none;
  background: linear-gradient(135deg, #2563EB, #7C3AED);
  color: #fff;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 4px 20px rgba(37, 99, 235, 0.4);
  transition: transform 0.3s cubic-bezier(0.16, 1, 0.3, 1), box-shadow 0.3s ease;
  position: relative;
}
.cs-toggle:hover {
  transform: scale(1.1);
  box-shadow: 0 6px 28px rgba(37, 99, 235, 0.5);
}
.cs-toggle:active { transform: scale(0.95); }
.cs-icon-close { display: none; }
.cs-widget.active .cs-icon-chat { display: none; }
.cs-widget.active .cs-icon-close { display: block; }

.cs-panel {
  position: absolute;
  bottom: 68px;
  right: 0;
  width: 360px;
  height: 500px;
  background: rgba(255,255,255,0.98);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  border-radius: 20px;
  box-shadow: 0 12px 48px rgba(0,0,0,0.15);
  display: none;
  flex-direction: column;
  overflow: hidden;
  border: 1px solid rgba(37,99,235,0.1);
  animation: csSlideIn 0.35s cubic-bezier(0.16, 1, 0.3, 1);
}
.cs-widget.active .cs-panel { display: flex; }
@keyframes csSlideIn {
  from { opacity: 0; transform: translateY(16px) scale(0.95); }
  to { opacity: 1; transform: translateY(0) scale(1); }
}

.cs-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 16px 20px;
  background: linear-gradient(135deg, #2563EB, #7C3AED);
  color: #fff;
}
.cs-header-info { display: flex; align-items: center; gap: 12px; }
.cs-avatar {
  width: 36px;
  height: 36px;
  border-radius: 50%;
  background: rgba(255,255,255,0.2);
  display: flex;
  align-items: center;
  justify-content: center;
}
.cs-name { font-size: 14px; font-weight: 600; }
.cs-status { font-size: 12px; opacity: 0.85; display: flex; align-items: center; gap: 4px; }
.cs-status::before {
  content: '';
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: #22c55e;
  display: inline-block;
}
.cs-minimize {
  background: none;
  border: none;
  color: #fff;
  cursor: pointer;
  opacity: 0.8;
  transition: opacity 0.2s;
  padding: 4px;
}
.cs-minimize:hover { opacity: 1; }

.cs-messages {
  flex: 1;
  overflow-y: auto;
  padding: 16px;
  display: flex;
  flex-direction: column;
  gap: 12px;
  background: #F8FAFC;
}
.cs-messages::-webkit-scrollbar { width: 4px; }
.cs-messages::-webkit-scrollbar-thumb { background: #CBD5E1; border-radius: 2px; }
.cs-msg { display: flex; gap: 8px; max-width: 85%; }
.cs-msg-bot { align-self: flex-start; }
.cs-msg-user { align-self: flex-end; flex-direction: row-reverse; }
.cs-msg-avatar {
  width: 28px;
  height: 28px;
  min-width: 28px;
  border-radius: 50%;
  background: #E2E8F0;
  display: flex;
  align-items: center;
  justify-content: center;
  color: #64748B;
}
.cs-msg-user .cs-msg-avatar { background: linear-gradient(135deg, #2563EB, #7C3AED); color: #fff; }
.cs-msg-content {
  background: #fff;
  padding: 10px 14px;
  border-radius: 14px 14px 14px 4px;
  box-shadow: 0 1px 4px rgba(0,0,0,0.06);
  font-size: 14px;
  line-height: 1.5;
  color: #1E293B;
}
.cs-msg-user .cs-msg-content {
  background: linear-gradient(135deg, #2563EB, #7C3AED);
  color: #fff;
  border-radius: 14px 14px 4px 14px;
}
.cs-msg-content p { margin: 0; }
.cs-msg-time { font-size: 11px; color: #94A3B8; margin-top: 4px; }
.cs-msg-user .cs-msg-time { color: rgba(255,255,255,0.7); }

.cs-quick-replies {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  margin-top: 10px;
}
.cs-qr-btn {
  padding: 6px 12px;
  border-radius: 16px;
  border: 1px solid #E2E8F0;
  background: #F8FAFC;
  font-size: 12px;
  color: #475569;
  cursor: pointer;
  transition: all 0.2s;
  white-space: nowrap;
}
.cs-qr-btn:hover {
  border-color: #2563EB;
  color: #2563EB;
  background: #EFF6FF;
}

.cs-input-area {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 12px 16px;
  border-top: 1px solid #E2E8F0;
  background: #fff;
}
.cs-input {
  flex: 1;
  border: 1px solid #E2E8F0;
  border-radius: 24px;
  padding: 10px 16px;
  font-size: 14px;
  font-family: inherit;
  outline: none;
  transition: border-color 0.2s;
  background: #F8FAFC;
}
.cs-input:focus { border-color: #2563EB; background: #fff; }
.cs-send-btn {
  width: 40px;
  height: 40px;
  min-width: 40px;
  border-radius: 50%;
  border: none;
  background: linear-gradient(135deg, #2563EB, #7C3AED);
  color: #fff;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: transform 0.2s, box-shadow 0.2s;
}
.cs-send-btn:hover { transform: scale(1.05); box-shadow: 0 4px 12px rgba(37,99,235,0.3); }
.cs-send-btn:active { transform: scale(0.95); }
.cs-send-btn:disabled { opacity: 0.5; cursor: not-allowed; transform: none; }

@media (max-width: 480px) {
  .cs-panel {
    width: calc(100vw - 32px);
    height: 60vh;
    right: -8px;
    bottom: 64px;
  }
  .cs-widget {
    bottom: 16px;
    right: 16px;
  }
}

/* === Auth Modal === */
.modal-overlay {
  position: fixed;
  inset: 0;
  z-index: 10000;
  background: rgba(15, 23, 42, 0.6);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.3s var(--ease), visibility 0.3s var(--ease);
  padding: 20px;
}
.modal-overlay.active {
  opacity: 1;
  visibility: visible;
}
.modal-container {
  position: relative;
  width: 100%;
  max-width: 440px;
  background: white;
  border-radius: 24px;
  padding: 40px 36px 32px;
  box-shadow: 0 24px 64px rgba(15, 23, 42, 0.2);
  transform: scale(0.95) translateY(10px);
  transition: transform 0.35s var(--ease);
  max-height: 90vh;
  overflow-y: auto;
}
.modal-overlay.active .modal-container {
  transform: scale(1) translateY(0);
}
.modal-close {
  position: absolute;
  top: 16px;
  right: 16px;
  width: 36px;
  height: 36px;
  border-radius: 50%;
  border: none;
  background: var(--bg-subtle);
  color: var(--text-secondary);
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all 0.2s;
}
.modal-close:hover {
  background: var(--border);
  color: var(--text);
}
.modal-header {
  text-align: center;
  margin-bottom: 28px;
}
.modal-tabs {
  display: inline-flex;
  background: var(--bg-subtle);
  border-radius: 12px;
  padding: 4px;
  gap: 2px;
}
.modal-tab {
  padding: 10px 28px;
  border: none;
  border-radius: 10px;
  background: transparent;
  color: var(--text-secondary);
  font-size: 15px;
  font-weight: 500;
  cursor: pointer;
  transition: all 0.25s;
  font-family: inherit;
}
.modal-tab.active {
  background: white;
  color: var(--text);
  box-shadow: 0 2px 8px rgba(15, 23, 42, 0.08);
  font-weight: 600;
}
.modal-body {
  display: flex;
  flex-direction: column;
  gap: 16px;
}
.modal-social {
  display: flex;
  flex-direction: column;
  gap: 10px;
}
.social-btn {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  width: 100%;
  padding: 12px 16px;
  border-radius: 12px;
  border: 1.5px solid var(--border);
  background: white;
  font-size: 14px;
  font-weight: 500;
  font-family: inherit;
  color: var(--text);
  cursor: pointer;
  transition: all 0.2s;
}
.social-btn:hover {
  border-color: var(--primary);
  background: var(--bg-muted);
  transform: translateY(-1px);
}
.social-btn svg {
  flex-shrink: 0;
}
.modal-divider {
  display: flex;
  align-items: center;
  gap: 16px;
  color: var(--text-muted);
  font-size: 13px;
}
.modal-divider::before,
.modal-divider::after {
  content: '';
  flex: 1;
  height: 1px;
  background: var(--border);
}
.form-group {
  display: flex;
  flex-direction: column;
  gap: 6px;
}
.form-group label {
  font-size: 14px;
  font-weight: 500;
  color: var(--text);
}
.form-group input {
  width: 100%;
  padding: 12px 16px;
  border-radius: 12px;
  border: 1.5px solid var(--border);
  font-size: 15px;
  font-family: inherit;
  color: var(--text);
  background: white;
  transition: all 0.2s;
  outline: none;
}
.form-group input:focus {
  border-color: var(--primary);
  box-shadow: 0 0 0 3px rgba(37, 99, 235, 0.1);
}
.form-group input::placeholder {
  color: var(--text-muted);
}
.form-checkbox {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  font-size: 13px;
  color: var(--text-secondary);
}
.form-checkbox input[type="checkbox"] {
  width: 18px;
  height: 18px;
  margin-top: 1px;
  accent-color: var(--primary);
  flex-shrink: 0;
  border-radius: 4px;
}
.form-checkbox label a {
  color: var(--primary);
  text-decoration: underline;
  text-underline-offset: 2px;
}
.form-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
}
.forgot-link {
  font-size: 13px;
  color: var(--primary);
  text-decoration: none;
  white-space: nowrap;
}
.forgot-link:hover {
  text-decoration: underline;
}
.modal-footer-text {
  text-align: center;
  font-size: 14px;
  color: var(--text-secondary);
  margin-top: 4px;
}
.modal-footer-text a {
  color: var(--primary);
  font-weight: 500;
  text-decoration: none;
}
.modal-footer-text a:hover {
  text-decoration: underline;
}
.btn-block {
  width: 100%;
}
.btn-lg {
  padding: 14px 28px;
  font-size: 16px;
}

/* === Animations === */
.animate-on-scroll {
  opacity: 0;
  transform: translateY(30px);
  transition: opacity 0.6s var(--ease), transform 0.6s var(--ease);
}

.animate-on-scroll.visible {
  opacity: 1;
  transform: translateY(0);
}

/* Stagger children */
.features-grid .animate-on-scroll:nth-child(1) { transition-delay: 0s; }
.features-grid .animate-on-scroll:nth-child(2) { transition-delay: 0.1s; }
.features-grid .animate-on-scroll:nth-child(3) { transition-delay: 0.2s; }
.features-grid .animate-on-scroll:nth-child(4) { transition-delay: 0.3s; }
.features-grid .animate-on-scroll:nth-child(5) { transition-delay: 0.4s; }
.features-grid .animate-on-scroll:nth-child(6) { transition-delay: 0.5s; }

.ba-gallery .animate-on-scroll:nth-child(1) { transition-delay: 0s; }
.ba-gallery .animate-on-scroll:nth-child(2) { transition-delay: 0.1s; }
.ba-gallery .animate-on-scroll:nth-child(3) { transition-delay: 0.15s; }
.ba-gallery .animate-on-scroll:nth-child(4) { transition-delay: 0.2s; }
.ba-gallery .animate-on-scroll:nth-child(5) { transition-delay: 0.25s; }
.ba-gallery .animate-on-scroll:nth-child(6) { transition-delay: 0.3s; }

/* === Responsive === */
@media (max-width: 1024px) {
  .hero-inner {
    grid-template-columns: 1fr;
    gap: 48px;
    text-align: center;
  }

  .hero-subtitle {
    margin-left: auto;
    margin-right: auto;
  }

  .hero-actions {
    justify-content: center;
  }

  .hero-trust {
    justify-content: center;
  }

  .hero-visual {
    max-width: 500px;
    margin: 0 auto;
  }

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

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

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

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

  .footer-grid {
    grid-template-columns: 1fr 1fr;
    gap: 32px;
  }

  .testimonial-card {
    flex: 0 0 calc(50% - 12px);
  }
}

@media (max-width: 768px) {
  .nav-desktop,
  .header-actions {
    display: none;
  }

  .mobile-menu-btn {
    display: flex;
  }

  .nav-mobile.open {
    display: flex;
  }

  .hero {
    padding: 120px 0 60px;
    min-height: auto;
  }

  .hero-title {
    font-size: 36px;
  }

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

  .ba-gallery {
    grid-template-columns: 1fr;
    max-width: 400px;
    margin: 0 auto;
  }

  .steps-timeline {
    flex-direction: column;
    align-items: center;
    gap: 24px;
  }

  .step-connector {
    width: 2px;
    height: 40px;
    margin-top: 0;
  }

  .step-connector::after {
    right: -3px;
    top: auto;
    bottom: -4px;
    transform: rotate(135deg);
  }

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

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

  .pricing-card.popular {
    transform: none;
  }

  .pricing-card.popular:hover {
    transform: translateY(-4px);
  }

  .testimonial-card {
    flex: 0 0 calc(100% - 0px);
    min-width: 280px;
  }

  .footer-grid {
    grid-template-columns: 1fr;
    gap: 32px;
  }

  .footer-bottom {
    flex-direction: column;
    gap: 16px;
    text-align: center;
  }

  .cta-card {
    padding: 48px 24px;
    border-radius: 24px;
  }

  .upload-area {
    padding: 40px 24px;
  }

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

  .features,
  .before-after,
  .steps,
  .testimonials,
  .pricing,
  .cta-section {
    padding: 80px 0;
  }
}

@media (max-width: 480px) {
  /* Hero */
  .hero-title {
    font-size: 28px;
  }
  .hero-subtitle {
    font-size: 15px;
  }
  .hero-actions {
    flex-direction: column;
    align-items: stretch;
  }
  .hero-actions .btn {
    justify-content: center;
  }
  .hero-visual {
    max-width: 320px;
  }

  /* Sections */
  .features,
  .before-after,
  .steps,
  .testimonials,
  .pricing,
  .cta-section {
    padding: 60px 0;
  }

  .section-header {
    margin-bottom: 32px;
  }
  .section-title {
    font-size: 26px;
  }
  .section-subtitle {
    font-size: 14px;
  }

  /* Features */
  .feature-card {
    padding: 24px;
  }

  /* Before-After */
  .ba-card {
    border-radius: 16px;
  }
  .ba-label {
    font-size: 11px;
    padding: 4px 10px;
  }

  /* Steps */
  .step-card {
    padding: 24px;
    text-align: center;
  }
  .step-number {
    width: 48px;
    height: 48px;
    font-size: 18px;
  }

  /* Stats */
  .stats-grid {
    grid-template-columns: 1fr 1fr;
    gap: 12px;
  }
  .stat-card {
    padding: 20px 12px;
  }
  .stat-number {
    font-size: 28px;
  }
  .stat-label {
    font-size: 12px;
  }

  /* Testimonials */
  .testimonials-carousel {
    padding: 0 4px;
  }
  .testimonial-card {
    padding: 20px;
  }
  .testimonial-text {
    font-size: 13px;
  }

  /* Pricing */
  .pricing-card {
    padding: 24px;
  }

  /* CTA */
  .cta-card {
    padding: 36px 20px;
  }
  .cta-title {
    font-size: 24px;
  }
  .cta-subtitle {
    font-size: 14px;
  }
  .cta-card .btn {
    width: 100%;
  }

  /* Upload */
  .upload-area {
    padding: 32px 16px;
    border-radius: 20px;
  }
  .upload-icon {
    width: 48px;
    height: 48px;
  }
  .upload-area h3 {
    font-size: 16px;
  }

  /* Footer */
  .footer-grid {
    gap: 24px;
  }

  /* Auth Modal - full screen on mobile */
  .modal-container {
    width: 100%;
    max-width: none;
    margin: 0 12px;
    max-height: 90vh;
  }
  .modal-body {
    padding: 24px 20px;
  }
  .modal-header {
    padding: 20px 20px 0;
  }

  /* Chat widget */
  .cs-panel {
    width: calc(100vw - 24px);
    height: 65vh;
    right: -4px;
    bottom: 60px;
    border-radius: 16px;
  }
  .cs-widget {
    bottom: 12px;
    right: 12px;
  }
  .cs-toggle {
    width: 48px;
    height: 48px;
    font-size: 20px;
  }

  /* Container padding */
  .container {
    padding: 0 16px;
  }
}

@media (max-width: 360px) {
  .hero-title {
    font-size: 24px;
  }
  .stat-number {
    font-size: 24px;
  }
  .stat-card {
    padding: 16px 8px;
  }
  .feature-card {
    padding: 20px;
  }
  .pricing-card {
    padding: 20px;
  }
  .container {
    padding: 0 12px;
  }
}
