/* ==============================================
   AUTOMATIZAI - Professional Landing Styles
   Modern, animated, responsive design
   ============================================== */

:root {
  --primary: #6366f1;
  --secondary: #8b5cf6;
  --accent: #ec4899;
  --success: #10b981;
  --warning: #f59e0b;
  --danger: #ef4444;
  --dark: #0f172a;
  --gray-900: #111827;
  --gray-800: #1f2937;
  --gray-700: #374151;
  --gray-600: #4b5563;
  --gray-500: #6b7280;
  --gray-400: #9ca3af;
  --gray-300: #d1d5db;
  --gray-200: #e5e7eb;
  --gray-100: #f3f4f6;
  --white: #ffffff;
  --gradient-1: linear-gradient(135deg, var(--primary) 0%, var(--secondary) 100%);
  --gradient-2: linear-gradient(135deg, var(--secondary) 0%, var(--accent) 100%);
  --gradient-3: linear-gradient(135deg, var(--accent) 0%, var(--primary) 100%);
  --shadow-sm: 0 1px 2px 0 rgba(0, 0, 0, 0.05);
  --shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.1);
  --shadow-md: 0 10px 15px -3px rgba(0, 0, 0, 0.1);
  --shadow-lg: 0 20px 25px -5px rgba(0, 0, 0, 0.1);
  --shadow-xl: 0 25px 50px -12px rgba(0, 0, 0, 0.25);
}

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

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

/* ==============================================
   SCROLL PROGRESS BAR
   ============================================== */
#scroll-progress {
  position: fixed;
  top: 0;
  left: 0;
  height: 3px;
  background: var(--gradient-1);
  z-index: 9999;
  transition: width 0.3s ease;
}

/* ==============================================
   NAVIGATION
   ============================================== */
.navbar {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  background: rgba(15, 23, 42, 0.8);
  backdrop-filter: blur(20px);
  border-bottom: 1px solid rgba(255, 255, 255, 0.1);
  padding: 1rem 2rem;
  z-index: 1000;
  transition: all 0.3s ease;
}

.navbar.scrolled {
  background: rgba(15, 23, 42, 0.95);
  box-shadow: var(--shadow-lg);
}

.nav-container {
  max-width: 1280px;
  margin: 0 auto;
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.logo {
  font-size: 1.5rem;
  font-weight: 700;
  background: var(--gradient-1);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.nav-links {
  display: flex;
  gap: 2rem;
  list-style: none;
}

.nav-links a {
  color: var(--gray-300);
  text-decoration: none;
  transition: color 0.3s;
  font-weight: 500;
}

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

.nav-cta {
  background: var(--gradient-1);
  padding: 0.75rem 1.5rem;
  border-radius: 0.5rem;
  color: white;
  text-decoration: none;
  font-weight: 600;
  transition: transform 0.3s, box-shadow 0.3s;
}

.nav-cta:hover {
  transform: translateY(-2px);
  box-shadow: 0 10px 25px rgba(99, 102, 241, 0.3);
}

/* Mobile menu */
#mobile-menu-btn {
  display: none;
  background: none;
  border: none;
  color: white;
  font-size: 1.5rem;
  cursor: pointer;
}

#mobile-menu {
  display: none;
  position: fixed;
  top: 0;
  right: -100%;
  width: 80%;
  max-width: 400px;
  height: 100vh;
  background: var(--gray-900);
  transition: right 0.3s ease;
  z-index: 2000;
  padding: 2rem;
}

#mobile-menu.active {
  right: 0;
}

/* ==============================================
   HERO SECTION
   ============================================== */
.hero {
  position: relative;
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 6rem 2rem 4rem;
  overflow: hidden;
}

.hero-background {
  position: absolute;
  inset: 0;
  background: radial-gradient(circle at 50% 50%, rgba(99, 102, 241, 0.1) 0%, transparent 50%);
}

.hero-content {
  max-width: 1280px;
  text-align: center;
  position: relative;
  z-index: 10;
}

.hero h1 {
  font-size: clamp(2.5rem, 6vw, 4.5rem);
  font-weight: 800;
  margin-bottom: 1.5rem;
  line-height: 1.1;
}

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

.hero-subtitle {
  font-size: clamp(1.1rem, 2vw, 1.5rem);
  color: var(--gray-300);
  margin-bottom: 3rem;
  max-width: 800px;
  margin-left: auto;
  margin-right: auto;
}

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

.btn-primary {
  background: var(--gradient-1);
  color: white;
  padding: 1rem 2.5rem;
  border-radius: 0.75rem;
  font-weight: 600;
  font-size: 1.1rem;
  border: none;
  cursor: pointer;
  transition: all 0.3s;
  text-decoration: none;
  display: inline-block;
}

.btn-primary:hover {
  transform: translateY(-3px);
  box-shadow: 0 20px 40px rgba(99, 102, 241, 0.4);
}

.btn-secondary {
  background: rgba(255, 255, 255, 0.05);
  color: white;
  padding: 1rem 2.5rem;
  border-radius: 0.75rem;
  font-weight: 600;
  font-size: 1.1rem;
  border: 2px solid rgba(255, 255, 255, 0.1);
  cursor: pointer;
  transition: all 0.3s;
  text-decoration: none;
  display: inline-block;
}

.btn-secondary:hover {
  background: rgba(255, 255, 255, 0.1);
  border-color: var(--primary);
}

/* ==============================================
   INFINITE LOGO SCROLL
   ============================================== */
.logos-section {
  padding: 4rem 2rem;
  background: rgba(0, 0, 0, 0.2);
  overflow: hidden;
}

.section-title {
  text-align: center;
  font-size: 2.5rem;
  font-weight: 700;
  margin-bottom: 3rem;
}

#infinite-logos-container {
  display: flex;
  flex-direction: column;
  gap: 2rem;
}

.logo-row {
  overflow: hidden;
  position: relative;
  width: 100%;
}

.logo-track {
  display: flex;
  gap: 3rem;
  width: fit-content;
}

.logo-item {
  flex-shrink: 0;
  width: 120px;
  height: 80px;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  padding: 1rem;
  background: rgba(255, 255, 255, 0.03);
  border: 1px solid rgba(255, 255, 255, 0.05);
  border-radius: 0.75rem;
  transition: all 0.3s;
}

.logo-item:hover {
  background: rgba(255, 255, 255, 0.08);
  transform: translateY(-5px);
  border-color: var(--primary);
}

.logo-item img {
  width: 48px;
  height: 48px;
  object-fit: contain;
  filter: grayscale(100%) opacity(0.6);
  transition: filter 0.3s;
}

.logo-item:hover img {
  filter: grayscale(0%) opacity(1);
}

.logo-name {
  font-size: 0.75rem;
  color: var(--gray-400);
  font-weight: 500;
}

/* ==============================================
   STATS SECTION
   ============================================== */
.stats-section {
  padding: 6rem 2rem;
  background: rgba(99, 102, 241, 0.05);
}

.stats-container {
  max-width: 1280px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: 3rem;
}

.stat-card {
  text-align: center;
  padding: 2rem;
}

.stat-number {
  font-size: 3.5rem;
  font-weight: 800;
  background: var(--gradient-1);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  margin-bottom: 0.5rem;
}

.stat-label {
  font-size: 1.2rem;
  color: var(--gray-300);
  font-weight: 500;
}

.stat-description {
  font-size: 0.9rem;
  color: var(--gray-400);
  margin-top: 0.5rem;
}

/* ==============================================
   FEATURES SECTION
   ============================================== */
.features-section {
  padding: 6rem 2rem;
}

.features-container {
  max-width: 1280px;
  margin: 0 auto;
}

.features-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(350px, 1fr));
  gap: 2rem;
  margin-top: 3rem;
}

.feature-card {
  background: rgba(255, 255, 255, 0.03);
  border: 1px solid rgba(255, 255, 255, 0.05);
  border-radius: 1rem;
  padding: 2.5rem;
  transition: all 0.3s;
  position: relative;
  overflow: hidden;
}

.feature-card::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 3px;
  background: var(--gradient-1);
  transform: scaleX(0);
  transition: transform 0.3s;
}

.feature-card:hover {
  transform: translateY(-10px);
  border-color: var(--primary);
  box-shadow: 0 20px 40px rgba(99, 102, 241, 0.2);
}

.feature-card:hover::before {
  transform: scaleX(1);
}

.feature-icon {
  font-size: 3rem;
  margin-bottom: 1.5rem;
}

.feature-card h3 {
  font-size: 1.5rem;
  margin-bottom: 1rem;
  color: white;
}

.feature-card p {
  color: var(--gray-300);
  line-height: 1.8;
  margin-bottom: 1.5rem;
}

.feature-list {
  list-style: none;
}

.feature-list li {
  padding: 0.5rem 0;
  color: var(--gray-400);
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

.feature-list li::before {
  content: '✓';
  color: var(--success);
  font-weight: bold;
}

/* ==============================================
   USE CASES SECTION
   ============================================== */
.usecases-section {
  padding: 6rem 2rem;
  background: rgba(0, 0, 0, 0.2);
}

.usecases-grid {
  max-width: 1280px;
  margin: 3rem auto 0;
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(350px, 1fr));
  gap: 2rem;
}

.usecase-card {
  background: rgba(255, 255, 255, 0.03);
  border: 1px solid rgba(255, 255, 255, 0.05);
  border-radius: 1rem;
  padding: 2.5rem;
  transition: all 0.3s;
}

.usecase-card:hover {
  transform: translateY(-10px);
  border-color: var(--accent);
  box-shadow: 0 20px 40px rgba(236, 72, 153, 0.2);
}

.usecase-header {
  display: flex;
  align-items: center;
  gap: 1rem;
  margin-bottom: 1.5rem;
}

.usecase-icon {
  font-size: 2.5rem;
}

.usecase-card h3 {
  font-size: 1.5rem;
  color: white;
}

.usecase-card p {
  color: var(--gray-300);
  margin-bottom: 1.5rem;
  line-height: 1.8;
}

.roi-badge {
  display: inline-block;
  background: var(--gradient-2);
  padding: 0.5rem 1rem;
  border-radius: 2rem;
  font-weight: 700;
  margin-bottom: 1rem;
}

.usecase-features {
  list-style: none;
  margin-top: 1.5rem;
}

.usecase-features li {
  padding: 0.75rem 0;
  color: var(--gray-400);
  display: flex;
  align-items: flex-start;
  gap: 0.75rem;
  border-bottom: 1px solid rgba(255, 255, 255, 0.05);
}

.usecase-features li:last-child {
  border-bottom: none;
}

.usecase-features li::before {
  content: '→';
  color: var(--accent);
  font-weight: bold;
  flex-shrink: 0;
}

/* ==============================================
   PRICING SECTION
   ============================================== */
.pricing-section {
  padding: 6rem 2rem;
}

.pricing-toggle {
  text-align: center;
  margin-bottom: 3rem;
}

.toggle-container {
  display: inline-flex;
  align-items: center;
  gap: 1rem;
  background: rgba(255, 255, 255, 0.05);
  padding: 0.5rem;
  border-radius: 3rem;
}

.pricing-grid {
  max-width: 1280px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 2rem;
}

.pricing-card {
  background: rgba(255, 255, 255, 0.03);
  border: 2px solid rgba(255, 255, 255, 0.05);
  border-radius: 1.5rem;
  padding: 3rem 2rem;
  text-align: center;
  transition: all 0.3s;
  position: relative;
}

.pricing-card.featured {
  border-color: var(--primary);
  transform: scale(1.05);
  box-shadow: 0 20px 60px rgba(99, 102, 241, 0.3);
}

.pricing-badge {
  position: absolute;
  top: -15px;
  left: 50%;
  transform: translateX(-50%);
  background: var(--gradient-1);
  padding: 0.5rem 1.5rem;
  border-radius: 2rem;
  font-size: 0.85rem;
  font-weight: 700;
}

.pricing-card h3 {
  font-size: 1.5rem;
  margin-bottom: 1rem;
  color: white;
}

.plan-price {
  font-size: 3rem;
  font-weight: 800;
  background: var(--gradient-1);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.plan-features {
  list-style: none;
  margin: 2rem 0;
  text-align: left;
}

.plan-features li {
  padding: 0.75rem 0;
  color: var(--gray-300);
  display: flex;
  align-items: center;
  gap: 0.75rem;
}

.plan-features li::before {
  content: '✓';
  color: var(--success);
  font-weight: bold;
}

/* ==============================================
   FAQ SECTION
   ============================================== */
.faq-section {
  padding: 6rem 2rem;
  background: rgba(0, 0, 0, 0.2);
}

.faq-container {
  max-width: 900px;
  margin: 3rem auto 0;
}

.faq-item {
  background: rgba(255, 255, 255, 0.03);
  border: 1px solid rgba(255, 255, 255, 0.05);
  border-radius: 1rem;
  margin-bottom: 1rem;
  overflow: hidden;
  transition: all 0.3s;
}

.faq-item.active {
  border-color: var(--primary);
}

.faq-question {
  padding: 1.5rem;
  cursor: pointer;
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-weight: 600;
  color: white;
  transition: background 0.3s;
}

.faq-question:hover {
  background: rgba(255, 255, 255, 0.05);
}

.faq-answer {
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.3s ease;
  color: var(--gray-300);
  padding: 0 1.5rem;
}

.faq-item.active .faq-answer {
  padding: 0 1.5rem 1.5rem;
}

/* ==============================================
   FOOTER
   ============================================== */
.footer {
  background: rgba(0, 0, 0, 0.5);
  padding: 4rem 2rem 2rem;
  border-top: 1px solid rgba(255, 255, 255, 0.05);
}

.footer-container {
  max-width: 1280px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: 3rem;
  margin-bottom: 3rem;
}

.footer-section h4 {
  margin-bottom: 1.5rem;
  color: white;
}

.footer-section ul {
  list-style: none;
}

.footer-section a {
  color: var(--gray-400);
  text-decoration: none;
  display: block;
  padding: 0.5rem 0;
  transition: color 0.3s;
}

.footer-section a:hover {
  color: var(--primary);
}

.footer-bottom {
  text-align: center;
  padding-top: 2rem;
  border-top: 1px solid rgba(255, 255, 255, 0.05);
  color: var(--gray-400);
}

/* ==============================================
   ANIMATIONS
   ============================================== */
.fade-in-up {
  opacity: 0;
  transform: translateY(30px);
  transition: opacity 0.6s ease, transform 0.6s ease;
}

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

.fade-in-left {
  opacity: 0;
  transform: translateX(-30px);
  transition: opacity 0.6s ease, transform 0.6s ease;
}

.fade-in-left.animated {
  opacity: 1;
  transform: translateX(0);
}

.fade-in-right {
  opacity: 0;
  transform: translateX(30px);
  transition: opacity 0.6s ease, transform 0.6s ease;
}

.fade-in-right.animated {
  opacity: 1;
  transform: translateX(0);
}

/* ==============================================
   RESPONSIVE DESIGN
   ============================================== */
@media (max-width: 1024px) {
  .features-grid,
  .usecases-grid {
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  }
}

@media (max-width: 768px) {
  .nav-links {
    display: none;
  }

  #mobile-menu-btn {
    display: block;
  }

  #mobile-menu {
    display: block;
  }

  .hero h1 {
    font-size: 2.5rem;
  }

  .hero-cta {
    flex-direction: column;
  }

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

  .pricing-card.featured {
    transform: scale(1);
  }

  .footer-container {
    grid-template-columns: 1fr;
  }
}
