/* ===========================
   RESET & BASE STYLES
   =========================== */

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

:root {
  /* Colors */
  --primary-color: #0243FF;
  --secondary-color: #dc0073;
  --accent-color: #ff6f61;
  --dark-gray: #1f2937;
  --medium-gray: #6b7280;
  --light-gray: #f3f4f6;
  --border-gray: #e5e7eb;
  --white: #ffffff;
  --black: #242123;

  /* Gradients */
  --gradient-primary: linear-gradient(135deg, #4a32f5, #dc0073, #ff6f61, #4a32f5);
  --gradient-pastel: linear-gradient(135deg, #fef5ff, #e0f2fe, #fef3c7);

  /* Spacing */
  --section-padding: 80px 20px;
  --container-max-width: 1440px;

  /* Typography */
  --font-primary: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, 'Helvetica Neue', Arial, sans-serif;
  --font-size-base: 16px;

  /* Transitions */
  --transition-fast: 0.2s ease;
  --transition-medium: 0.35s ease;
  --transition-slow: 0.5s ease;

  /* Shadows */
  --shadow-sm: 0 1px 3px 0 rgba(0,0,0,0.1), 0 1px 2px 0 rgba(0,0,0,0.06);
  --shadow-md: 0 4px 6px -1px rgba(0,0,0,0.1), 0 2px 4px -1px rgba(0,0,0,0.06);
  --shadow-lg: 0 10px 15px -3px rgba(0,0,0,0.1), 0 4px 6px -2px rgba(0,0,0,0.05);
  --shadow-xl: 0 20px 25px -5px rgba(0,0,0,0.1), 0 10px 10px -5px rgba(0,0,0,0.04);
}

html {
  scroll-behavior: smooth;
  font-size: var(--font-size-base);
}

body {
  font-family: var(--font-primary);
  line-height: 1.6;
  color: var(--black);
  background: var(--white);
  overflow-x: hidden;
}

/* ===========================
   PROGRESS BAR
   =========================== */

.progress-container {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 4px;
  background: var(--light-gray);
  z-index: 99999;
}

.progress-bar {
  height: 4px;
  background: var(--gradient-primary);
  background-size: 300% 300%;
  width: 0%;
  transition: width 0.1s;
  animation: gradientShift 3s ease infinite;
}

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

/* ===========================
   HEADER & NAVIGATION
   =========================== */

.header {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  background: rgba(255, 255, 255, 0.95);
  backdrop-filter: blur(10px);
  border-bottom: 1px solid var(--border-gray);
  z-index: 9999;
  padding: 16px 20px;
  transition: all var(--transition-fast);
}

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

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

.logo {
  font-size: 1.5rem;
  font-weight: 700;
  color: var(--black);
  text-decoration: none;
  transition: color var(--transition-fast);
}

.logo:hover {
  color: var(--primary-color);
}

.nav-menu {
  display: flex;
  list-style: none;
  gap: 32px;
  align-items: center;
}

.nav-item {
  position: relative;
}

.nav-link {
  color: var(--medium-gray);
  text-decoration: none;
  font-weight: 500;
  font-size: 15px;
  transition: color var(--transition-fast);
  display: flex;
  align-items: center;
  gap: 6px;
  cursor: pointer;
}

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

.dropdown {
  position: absolute;
  top: 100%;
  left: 0;
  margin-top: 12px;
  background: var(--white);
  border-radius: 12px;
  box-shadow: var(--shadow-lg);
  padding: 8px;
  min-width: 200px;
  opacity: 0;
  visibility: hidden;
  transform: translateY(-10px);
  transition: all var(--transition-fast);
}

.nav-item:hover .dropdown {
  opacity: 1;
  visibility: visible;
  transform: translateY(0);
}

.dropdown a {
  display: block;
  padding: 10px 16px;
  color: var(--medium-gray);
  text-decoration: none;
  border-radius: 8px;
  transition: all var(--transition-fast);
  font-size: 14px;
}

.dropdown a:hover {
  background: var(--light-gray);
  color: var(--black);
}

.cta-button {
  background: var(--black);
  color: var(--white);
  padding: 12px 24px;
  border-radius: 50px;
  text-decoration: none;
  font-weight: 600;
  font-size: 14px;
  transition: all var(--transition-fast);
  border: 2px solid var(--black);
  display: inline-block;
}

.cta-button:hover {
  background: transparent;
  color: var(--black);
  transform: translateY(-2px);
}

.mobile-menu-toggle {
  display: none;
  flex-direction: column;
  gap: 4px;
  cursor: pointer;
  padding: 8px;
}

.mobile-menu-toggle span {
  width: 24px;
  height: 2px;
  background: var(--black);
  transition: all var(--transition-fast);
}

/* ===========================
   HERO SECTION
   =========================== */

.hero {
  position: relative;
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: var(--section-padding);
  padding-top: 120px;
  overflow: hidden;
  background: linear-gradient(135deg, #fef5ff 0%, #e0f2fe 50%, #fef3c7 100%);
}

.hero-video {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  opacity: 0.3;
  z-index: 0;
}

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

.hero-badge {
  display: inline-block;
  background: rgba(2, 67, 255, 0.1);
  color: var(--primary-color);
  padding: 8px 20px;
  border-radius: 50px;
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 1.5px;
  margin-bottom: 24px;
  text-transform: uppercase;
}

.hero-headline {
  font-size: clamp(2.5rem, 6vw, 4.5rem);
  font-weight: 800;
  line-height: 1.1;
  margin-bottom: 24px;
  background: var(--gradient-primary);
  background-size: 300% 300%;
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
  animation: gradientShift 6s ease infinite;
}

.hero-description {
  font-size: 1.25rem;
  color: var(--medium-gray);
  max-width: 800px;
  margin: 0 auto 32px;
  line-height: 1.8;
}

.hero-cta-group {
  display: flex;
  gap: 16px;
  justify-content: center;
  margin-bottom: 60px;
  flex-wrap: wrap;
}

.btn-primary {
  background: var(--black);
  color: var(--white);
  padding: 16px 40px;
  border-radius: 50px;
  text-decoration: none;
  font-weight: 700;
  font-size: 16px;
  transition: all var(--transition-medium);
  border: 2px solid var(--black);
  display: inline-block;
}

.btn-primary:hover {
  background: transparent;
  color: var(--black);
  transform: translateY(-3px);
  box-shadow: var(--shadow-lg);
}

.btn-secondary {
  background: transparent;
  color: var(--black);
  padding: 16px 40px;
  border-radius: 50px;
  text-decoration: none;
  font-weight: 700;
  font-size: 16px;
  transition: all var(--transition-medium);
  border: 2px solid var(--black);
  display: inline-block;
}

.btn-secondary:hover {
  background: var(--black);
  color: var(--white);
  transform: translateY(-3px);
  box-shadow: var(--shadow-lg);
}

/* ===========================
   STATS SECTION
   =========================== */

.stats-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 20px;
  max-width: 1200px;
  margin: 0 auto;
}

.stat-box {
  position: relative;
  padding: 30px 40px;
  text-align: center;
  font-weight: 800;
  font-size: 2rem;
  line-height: 1.2;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  border-radius: 20px;
  background: var(--white);
  color: var(--black);
  border: 3px solid transparent;
  background-clip: padding-box;
  transition: transform var(--transition-medium), box-shadow var(--transition-medium), color var(--transition-medium);
  box-shadow: var(--shadow-md);
  min-height: 140px;
}

.stat-box::before {
  content: "";
  position: absolute;
  top: -3px;
  left: -3px;
  right: -3px;
  bottom: -3px;
  border-radius: 22px;
  background: var(--gradient-primary);
  background-size: 300% 300%;
  animation: borderShift 8s ease infinite;
  z-index: -1;
}

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

.stat-box:hover {
  transform: translateY(-8px) scale(1.05);
  box-shadow: var(--shadow-xl);
  color: transparent;
  background: var(--gradient-primary);
  background-size: 300% 300%;
  -webkit-background-clip: text;
  background-clip: text;
  animation: textShift 6s ease infinite;
}

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

.stat-value {
  display: block;
  margin-bottom: 8px;
}

.stat-label {
  font-size: 1rem;
  font-weight: 600;
  opacity: 0.8;
}

/* ===========================
   TRUSTED BRANDS SECTION
   =========================== */

.trusted-brands {
  padding: var(--section-padding);
  text-align: center;
  background: var(--white);
  overflow: hidden;
}

.section-title {
  font-size: 2.5rem;
  font-weight: 700;
  margin-bottom: 48px;
  color: var(--black);
}

/* Moving Banner Carousel */
.brands-carousel-wrapper {
  width: 100%;
  overflow: hidden;
  position: relative;
  padding: 20px 0;
  margin: 0 auto;
}

.brands-carousel-wrapper::before,
.brands-carousel-wrapper::after {
  content: "";
  position: absolute;
  top: 0;
  width: 100px;
  height: 100%;
  z-index: 2;
  pointer-events: none;
}

.brands-carousel-wrapper::before {
  left: 0;
  background: linear-gradient(to right, var(--white), transparent);
}

.brands-carousel-wrapper::after {
  right: 0;
  background: linear-gradient(to left, var(--white), transparent);
}

.brands-carousel {
  display: flex;
  gap: 60px;
  animation: scroll-brands 40s linear infinite;
  width: max-content;
}

.brands-carousel:hover {
  animation-play-state: paused;
}

@keyframes scroll-brands {
  0% {
    transform: translateX(0);
  }
  100% {
    transform: translateX(-50%);
  }
}

.brand-slide {
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  width: 180px;
  height: 100px;
  padding: 20px;
}

.brand-logo-img {
  max-width: 100%;
  max-height: 100%;
  object-fit: contain;
  filter: grayscale(100%);
  opacity: 0.6;
  transition: all var(--transition-medium);
}

.brand-slide:hover .brand-logo-img {
  filter: grayscale(0%);
  opacity: 1;
  transform: scale(1.1);
}

/* Old grid styles for fallback */
.brands-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(120px, 1fr));
  gap: 40px;
  max-width: 1200px;
  margin: 0 auto;
  align-items: center;
}

.brand-logo {
  filter: grayscale(100%);
  opacity: 0.5;
  transition: all var(--transition-medium);
  height: 40px;
  object-fit: contain;
}

.brand-logo:hover {
  filter: grayscale(0%);
  opacity: 1;
  transform: scale(1.1);
}

/* ===========================
   SECTION BADGE & HEADERS
   =========================== */

.section {
  padding: var(--section-padding);
  max-width: var(--container-max-width);
  margin: 0 auto;
}

.section-badge {
  display: inline-block;
  background: rgba(2, 67, 255, 0.1);
  color: var(--primary-color);
  padding: 6px 16px;
  border-radius: 50px;
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 1.5px;
  margin-bottom: 16px;
  text-transform: uppercase;
}

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

.section-description {
  font-size: 1.125rem;
  color: var(--medium-gray);
  max-width: 800px;
  margin: 0 auto;
  line-height: 1.8;
}

/* ===========================
   TABBED PLATFORM FEATURES
   =========================== */

.tabs-container {
  margin: 60px 0;
}

.tab-navigation {
  display: flex;
  justify-content: center;
  margin-bottom: 60px;
}

.tab-links {
  display: flex;
  gap: 8px;
  background: var(--white);
  border: 1px solid var(--border-gray);
  border-radius: 50px;
  padding: 6px;
  box-shadow: var(--shadow-sm);
  flex-wrap: wrap;
  justify-content: center;
}

.tab-button {
  background: transparent;
  border: none;
  outline: none;
  color: var(--medium-gray);
  padding: 12px 28px;
  border-radius: 50px;
  font-size: 15px;
  font-weight: 600;
  cursor: pointer;
  transition: all var(--transition-fast);
  white-space: nowrap;
}

.tab-button:hover {
  background: rgba(31, 41, 55, 0.05);
}

.tab-button.active {
  background: var(--dark-gray);
  color: var(--white);
  box-shadow: var(--shadow-sm);
}

.tab-content {
  display: none;
  animation: fadeIn var(--transition-slow);
}

.tab-content.active {
  display: flex;
  gap: 60px;
  align-items: center;
  flex-wrap: wrap;
}

@keyframes fadeIn {
  from {
    opacity: 0;
    transform: translateY(10px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.tab-visual {
  flex: 1;
  min-width: 300px;
}

.tab-visual img {
  width: 100%;
  height: auto;
  border-radius: 16px;
  box-shadow: var(--shadow-lg);
}

.tab-text {
  flex: 1;
  min-width: 300px;
}

.tab-heading {
  font-size: 2.5rem;
  font-weight: 700;
  margin-bottom: 24px;
  line-height: 1.2;
}

.tab-description {
  font-size: 1.125rem;
  line-height: 1.8;
  color: var(--medium-gray);
  margin-bottom: 20px;
}

.tab-description strong {
  color: var(--black);
  font-weight: 700;
}

.tab-usecase {
  font-size: 1rem;
  line-height: 1.8;
  color: var(--medium-gray);
  margin-bottom: 32px;
}

/* ===========================
   SPLIT CONTENT SECTIONS
   =========================== */

.split-section {
  display: flex;
  gap: 60px;
  align-items: center;
  margin: 80px 0;
  flex-wrap: wrap;
}

.split-section.reverse {
  flex-direction: row-reverse;
}

.split-visual {
  flex: 1;
  min-width: 300px;
}

.split-visual video,
.split-visual img {
  width: 100%;
  height: auto;
  border-radius: 16px;
  box-shadow: var(--shadow-lg);
}

.split-text {
  flex: 1;
  min-width: 300px;
}

.split-heading {
  font-size: 2.75rem;
  font-weight: 700;
  margin-bottom: 24px;
  line-height: 1.2;
}

.split-description {
  font-size: 1.125rem;
  line-height: 1.8;
  color: var(--medium-gray);
  margin-bottom: 32px;
}

/* ===========================
   CONTACT FORM
   =========================== */

.contact-form {
  background: var(--white);
  border-radius: 20px;
  padding: 48px;
  box-shadow: var(--shadow-xl);
  max-width: 600px;
  margin: 60px auto;
}

.form-title {
  font-size: 2rem;
  font-weight: 700;
  margin-bottom: 32px;
  text-align: center;
}

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

.form-input,
.form-select {
  width: 100%;
  padding: 16px 20px;
  border: 2px solid var(--border-gray);
  border-radius: 12px;
  font-size: 15px;
  font-family: var(--font-primary);
  transition: all var(--transition-fast);
  background: var(--white);
}

.form-input:focus,
.form-select:focus {
  outline: none;
  border-color: var(--primary-color);
  box-shadow: 0 0 0 3px rgba(2, 67, 255, 0.1);
}

.form-submit {
  width: 100%;
  background: var(--black);
  color: var(--white);
  padding: 18px;
  border: none;
  border-radius: 12px;
  font-size: 16px;
  font-weight: 700;
  cursor: pointer;
  transition: all var(--transition-medium);
}

.form-submit:hover {
  background: var(--primary-color);
  transform: translateY(-2px);
  box-shadow: var(--shadow-lg);
}

.form-success {
  display: none;
  background: #d1fae5;
  color: #065f46;
  padding: 16px;
  border-radius: 12px;
  text-align: center;
  margin-top: 20px;
  font-weight: 600;
}

/* ===========================
   WIDGET DEMO
   =========================== */

.widget-demo {
  background: linear-gradient(135deg, #fef5ff 0%, #e0f2fe 100%);
  padding: 80px 20px;
  border-radius: 24px;
  margin: 80px 0;
}

.widget-container {
  max-width: 1200px;
  margin: 0 auto;
}

/* ===========================
   FREE TRIAL CTA
   =========================== */

.free-trial {
  background: var(--dark-gray);
  color: var(--white);
  padding: 100px 20px;
  text-align: center;
  position: relative;
  overflow: hidden;
}

.free-trial-video {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  opacity: 0.2;
}

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

.free-trial .section-badge {
  background: rgba(255, 255, 255, 0.2);
  color: var(--white);
}

.free-trial .section-title {
  color: var(--white);
  font-size: 3.5rem;
  margin-bottom: 24px;
}

.free-trial .section-description {
  color: rgba(255, 255, 255, 0.9);
  margin-bottom: 40px;
}

.btn-trial {
  background: var(--white);
  color: var(--black);
  padding: 20px 48px;
  border-radius: 50px;
  text-decoration: none;
  font-weight: 700;
  font-size: 18px;
  transition: all var(--transition-medium);
  display: inline-block;
  border: 2px solid var(--white);
}

.btn-trial:hover {
  background: transparent;
  color: var(--white);
  transform: translateY(-3px) scale(1.05);
  box-shadow: var(--shadow-xl);
}

/* ===========================
   FOOTER
   =========================== */

.footer {
  background: var(--dark-gray);
  color: var(--white);
  padding: 60px 20px 32px;
}

.footer-content {
  max-width: var(--container-max-width);
  margin: 0 auto;
}

.footer-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 48px;
  margin-bottom: 48px;
}

.footer-column h4 {
  font-size: 1rem;
  font-weight: 700;
  margin-bottom: 20px;
  text-transform: uppercase;
  letter-spacing: 1px;
}

.footer-links {
  list-style: none;
}

.footer-links li {
  margin-bottom: 12px;
}

.footer-links a {
  color: rgba(255, 255, 255, 0.7);
  text-decoration: none;
  transition: color var(--transition-fast);
  font-size: 14px;
}

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

.social-links {
  display: flex;
  gap: 16px;
  margin-top: 20px;
}

.social-icon {
  width: 40px;
  height: 40px;
  background: rgba(255, 255, 255, 0.1);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--white);
  text-decoration: none;
  transition: all var(--transition-fast);
  font-size: 18px;
}

.social-icon:hover {
  background: var(--white);
  color: var(--dark-gray);
  transform: translateY(-3px);
}

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

.footer-copyright {
  color: rgba(255, 255, 255, 0.6);
  font-size: 14px;
}

.shopify-badge img {
  height: 40px;
  width: auto;
}

/* ===========================
   MOBILE RESPONSIVE
   =========================== */

@media (max-width: 768px) {
  .nav-menu {
    position: fixed;
    top: 70px;
    left: -100%;
    width: 100%;
    height: calc(100vh - 70px);
    background: var(--white);
    flex-direction: column;
    padding: 40px 20px;
    transition: left var(--transition-medium);
    border-top: 1px solid var(--border-gray);
    gap: 20px;
  }

  .nav-menu.active {
    left: 0;
  }

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

  .dropdown {
    position: static;
    opacity: 1;
    visibility: visible;
    transform: none;
    box-shadow: none;
    margin-top: 8px;
    background: var(--light-gray);
  }

  .hero {
    padding-top: 100px;
    min-height: auto;
  }

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

  .hero-description {
    font-size: 1rem;
  }

  .hero-cta-group {
    flex-direction: column;
    width: 100%;
  }

  .btn-primary,
  .btn-secondary {
    width: 100%;
  }

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

  .stat-box {
    max-width: 100%;
  }

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

  .brand-slide {
    width: 140px;
    height: 80px;
    padding: 15px;
  }

  .brands-carousel {
    gap: 40px;
    animation: scroll-brands 30s linear infinite;
  }

  .tab-links {
    width: 100%;
    overflow-x: auto;
    justify-content: flex-start;
  }

  .tab-button {
    font-size: 13px;
    padding: 10px 20px;
  }

  .tab-content.active {
    flex-direction: column;
    gap: 32px;
  }

  .tab-heading {
    font-size: 1.75rem;
  }

  .split-section {
    flex-direction: column;
    gap: 32px;
  }

  .split-section.reverse {
    flex-direction: column;
  }

  .split-heading {
    font-size: 2rem;
  }

  .contact-form {
    padding: 32px 24px;
  }

  .free-trial .section-title {
    font-size: 2.25rem;
  }

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

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

/* ===========================
   UTILITY CLASSES
   =========================== */

.container {
  max-width: var(--container-max-width);
  margin: 0 auto;
  padding: 0 20px;
}

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

.mt-1 { margin-top: 8px; }
.mt-2 { margin-top: 16px; }
.mt-3 { margin-top: 24px; }
.mt-4 { margin-top: 32px; }
.mt-5 { margin-top: 48px; }

.mb-1 { margin-bottom: 8px; }
.mb-2 { margin-bottom: 16px; }
.mb-3 { margin-bottom: 24px; }
.mb-4 { margin-bottom: 32px; }
.mb-5 { margin-bottom: 48px; }

.hidden {
  display: none;
}

.fade-in {
  animation: fadeIn var(--transition-slow);
}
