/* GLOBAL VARIABLES */
:root {
  --primary-color: #4f46e5;
  --primary-hover: #4338ca;
  --accent-color: #ec4899;
  --accent-gradient: linear-gradient(135deg, #4f46e5 0%, #ec4899 100%);
  --dark: #0f172a;
  --gray: #64748b;
  --light-bg: #f8fafc;
  --white: #ffffff;
  --text: #0f172a;
  --text-light: #f8fafc;
  --border: #e2e8f0;
  --glass-bg: rgba(255, 255, 255, 0.7);
  --shadow-sm: 0 1px 2px 0 rgba(0, 0, 0, 0.05);
  --shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.05), 0 2px 4px -1px rgba(0, 0, 0, 0.03);
  --shadow-lg: 0 10px 15px -3px rgba(0, 0, 0, 0.08), 0 4px 6px -2px rgba(0, 0, 0, 0.04);
  --shadow-glow: 0 0 20px rgba(79, 70, 229, 0.4);
  font-family: 'Inter', sans-serif;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  color: var(--text);
  background-color: var(--white);
  -webkit-font-smoothing: antialiased;
  padding-bottom: 80px; /* space for sticky CTA */
}

h1, h2, h3, h4, p {
  margin: 0 0 10px 0;
}

section {
  padding: 60px 20px;
  text-align: center;
}

.container {
  width: 100%;
  max-width: 1100px;
  margin: 0 auto;
}

/* TOP BAR */
.top-bar {
  background: var(--accent-gradient);
  color: var(--white);
  font-size: 14px;
  font-weight: 600;
  padding: 12px 20px;
  text-align: center;
  letter-spacing: 0.5px;
}
.top-bar p { margin: 0; }
.mobile-break { display: none; }

/* NAVBAR */
.navbar {
  position: sticky;
  top: 0;
  background: var(--glass-bg);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--border);
  z-index: 100;
}

.nav-wrapper {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 15px 0px;
}

.logo {
  font-weight: 800;
  letter-spacing: -0.5px;
  color: var(--dark);
  margin: 0 10px;
}

/* NAV LINKS */
.nav-links {
  list-style: none;
  display: flex;
  gap: 30px;
  margin: 0;
  padding: 0;
  transition: all 0.3s ease-in-out;
}

.nav-links li a {
  text-decoration: none;
  color: var(--gray);
  font-weight: 500;
  font-size: 15px;
  transition: color 0.2s;
}

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

/* HAMBURGER */
.hamburger {
  display: none;
  font-size: 28px; /* Slightly larger for better match */
  margin: 0 10px;
  cursor: pointer;
  color: var(--dark);
  user-select: none;
  width: 32px;
  text-align: center;
  line-height: 1;
}

/* HERO SECTION */
.hero {
  background: linear-gradient(180deg, #eef2ff 0%, var(--white) 100%);
  padding: 80px 20px 60px;
}
.hero h1 {
  font-size: 32px;
  font-weight: 800;
  line-height: 1.2;
  margin-bottom: 15px;
  color: var(--dark);
}
.hero-subtitle {
  font-size: 18px;
  color: var(--gray);
  margin-bottom: 30px;
}

/* PREFERRED CAROUSEL */
.carousel-container {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 15px;
  max-width: 600px;
  margin: 0 auto 30px;
  position: relative;
}
.carousel-viewport {
  overflow: hidden;
  border-radius: 16px;
  box-shadow: var(--shadow-lg);
  width: 100%;
  max-width: 400px;
  aspect-ratio: 4 / 3;
}
.carousel-track {
  display: flex;
  transition: transform 0.4s cubic-bezier(0.25, 1, 0.5, 1);
  height: 100%;
}
.carousel-track img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  flex-shrink: 0;
}
.carousel-btn {
  background: var(--white);
  border: 1px solid var(--border);
  border-radius: 50%;
  width: 40px;
  height: 40px;
  font-size: 24px;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  box-shadow: var(--shadow);
  color: var(--dark);
  transition: all 0.2s;
  z-index: 10;
}
.carousel-btn:hover {
  background: var(--light-bg);
  transform: scale(1.05);
}

/* BADGES */
.badges {
  display: flex;
  justify-content: center;
  flex-wrap: wrap;
  gap: 15px;
  margin-bottom: 30px;
}
.badges span {
  background: var(--light-bg);
  padding: 6px 12px;
  border-radius: 20px;
  font-size: 13px;
  font-weight: 600;
  color: var(--dark);
  display: flex;
  align-items: center;
  gap: 5px;
}

/* BUTTONS */
.primary-btn {
  background: var(--accent-gradient);
  color: var(--white);
  border: none;
  border-radius: 12px;
  padding: 16px 32px;
  font-size: 18px;
  font-weight: 700;
  cursor: pointer;
  box-shadow: var(--shadow-glow);
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  position: relative;
  overflow: hidden;
  z-index: 1;
}
.primary-btn::before {
  content: '';
  position: absolute;
  top: 0; left: 0; right: 0; bottom: 0;
  background: linear-gradient(135deg, #4338ca 0%, #db2777 100%);
  z-index: -1;
  opacity: 0;
  transition: opacity 0.3s ease;
}
.primary-btn:hover {
  transform: translateY(-2px);
  box-shadow: 0 10px 25px rgba(236, 72, 153, 0.4);
}
.primary-btn:hover::before {
  opacity: 1;
}
.pulse-glow {
  animation: pulse 2s infinite;
}
@keyframes pulse {
  0% { box-shadow: 0 0 0 0 rgba(236, 72, 153, 0.5); }
  70% { box-shadow: 0 0 0 20px rgba(236, 72, 153, 0); }
  100% { box-shadow: 0 0 0 0 rgba(236, 72, 153, 0); }
}

/* MARQUEE */
.marquee {
  background: var(--light-bg);
  padding: 15px 0;
  overflow: hidden;
  white-space: nowrap;
}
.track {
  display: inline-block;
  animation: scroll 20s linear infinite;
  font-weight: 700;
  color: var(--gray);
  font-size: 14px;
  letter-spacing: 1px;
}
.track span { margin: 0 20px; }
@keyframes scroll {
  from { transform: translateX(0); }
  to { transform: translateX(-50%); }
}

/* UTILITIES & CARDS */
.card-section {
  background: var(--white);
}
.card {
  background: var(--white);
  border-radius: 20px;
  padding: 40px 30px;
  box-shadow: var(--shadow-lg);
  border: 1px solid var(--border);
  max-width: 600px;
  margin: 0 auto;
}
.lead { font-size: 18px; font-weight: 500; margin-bottom: 20px;}
.check-list {
  text-align: left;
  list-style: none;
  padding: 0;
  margin: 0 auto;
  display: inline-block;
}
.check-list li {
  margin-bottom: 10px;
  font-weight: 500;
  color: var(--dark);
}

/* FEATURES GRID */
.features {
  background: var(--light-bg);
}
.features h2 { margin-bottom: 40px; font-size: 32px; font-weight: 800; }
.grid {
  display: grid;
  grid-template-columns: repeat(1, 1fr);
  gap: 30px;
  max-width: 1100px;
  margin: 0 auto;
}
.feature-box {
  background: var(--white);
  padding: 32px 24px;
  border-radius: 20px;
  box-shadow: var(--shadow);
  border: 1px solid var(--border);
  text-align: center;
  transition: all 0.3s ease;
}
.feature-box:hover {
  transform: translateY(-8px);
  box-shadow: var(--shadow-lg);
  border-color: var(--primary-color);
}
.feature-box .icon {
  font-size: 36px;
  background: #eef2ff;
  width: 72px;
  height: 72px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto 20px;
  color: var(--primary-color);
}
.feature-box h4 { font-size: 20px; font-weight: 700; margin-bottom: 10px; color: var(--dark); }
.feature-box p { font-size: 15px; color: var(--gray); margin: 0;}

/* STEPS */
.steps-scroll {
  display: flex;
  flex-direction: column;
  gap: 24px;
  max-width: 800px;
  margin: 40px auto 0;
}
.step {
  position: relative;
  text-align: center;
  transition: transform 0.3s;
}
.step:hover {
  transform: translateY(-5px);
}
.step-num {
  background: var(--accent-gradient);
  color: var(--white);
  width: 48px;
  height: 48px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 800;
  font-size: 22px;
  margin: 0 auto 20px;
  box-shadow: var(--shadow-glow);
}

/* REVIEWS */
.review-card {
  background: var(--white);
  padding: 24px;
  border-radius: 16px;
  margin: 15px auto;
  max-width: 500px;
  box-shadow: var(--shadow);
  border: 1px solid var(--border);
}
.stars { color: #f59e0b; font-size: 20px; margin-bottom: 12px; letter-spacing: 2px; }

/* COMPARISON */
.table-container {
  overflow-x: auto;
  max-width: 600px;
  margin: 20px auto 0;
  box-shadow: var(--shadow);
  border-radius: 12px;
}
table {
  width: 100%;
  border-collapse: collapse;
  background: var(--white);
}
th, td {
  padding: 15px;
  text-align: center;
  border-bottom: 1px solid var(--border);
}
th {
  background: var(--light-bg);
  font-weight: 600;
}
tr:last-child td { border-bottom: none; }

/* DARK BLOCK */
.dark-bg {
  background: var(--dark);
  background-image: radial-gradient(circle at top right, #3730a3, transparent 40%), radial-gradient(circle at bottom left, #831843, transparent 40%);
  color: var(--white);
  position: relative;
}
.dark-bg h2 { margin-bottom: 24px; font-size: 32px; font-weight: 800; }

/* FOOTER */
footer {
  text-align: center;
  padding: 40px 20px;
  color: var(--gray);
  font-size: 15px;
  background: var(--light-bg);
}

/* STICKY CTA */
.sticky-cta {
  position: fixed;
  bottom: 0;
  left: 0;
  width: 100%;
  background: var(--glass-bg);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border-top: 1px solid var(--border);
  padding: 12px 20px;
  box-sizing: border-box;
  box-shadow: 0 -10px 20px rgba(0,0,0,0.05);
  z-index: 100;
}
.sticky-content {
  display: flex;
  justify-content: space-between;
  align-items: center;
  max-width: 800px;
  margin: 0 auto;
}
.sticky-btn {
  padding: 12px 24px;
  font-size: 16px;
}
.shipping {
  font-size: 13px;
  color: var(--gray);
  font-weight: 500;
  margin: 0;
}
.low {
  color: #ef4444;
  font-weight: 700;
}

/* RESPONSIVE STYLES */
@media (max-width: 768px) {
  .hamburger { display: block; }
  .nav-links {
    position: absolute;
    top: 60px;
    left: 0;
    width: 100%;
    background: var(--white);
    flex-direction: column;
    gap: 0;
    overflow: hidden;
    max-height: 0;
    border-bottom: 1px solid transparent;
  }
  .nav-links.active {
    max-height: 300px;
    border-bottom: 1px solid var(--border);
    padding: 10px 0;
    box-shadow: var(--shadow);
  }
  .nav-links li a {
    display: block;
    padding: 15px 20px;
    text-align: center;
  }
  
  .hero h1 { font-size: 28px; }
  
  .sticky-content {
    flex-direction: column;
    gap: 10px;
    text-align: center;
  }
  .sticky-btn { width: 100%; }
  
  .mobile-break { display: block; }
}

@media (min-width: 768px) {
  .hero h1 { font-size: 42px; }
  .grid {
    grid-template-columns: repeat(2, 1fr);
  }
  .steps-scroll {
    flex-direction: row;
    justify-content: center;
  }
  .step { flex: 1; }
  section { padding: 80px 20px; }
}

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