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

html, body {
  height: 100%;
}

body {
  font-family: 'Inter', system-ui, sans-serif;
  background: linear-gradient(145deg, #ffffff 0%, #ffeaea 50%, #ffffff 100%) !important;
  background-attachment: fixed !important; /* Ensures the gradient stays fixed during scroll */
  min-height: 100vh !important; /* Ensures the gradient covers the full viewport height */
  color: var(--text-light);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}

/* Ensure all sections except CTA have transparent backgrounds */
.hero,
.benefits-section,
.problem-section,
.solution-section {
  background: transparent !important; /* Remove section-specific gradient */
}

/* Restore red gradient for CTA section */
.cta {
  background: linear-gradient(135deg, var(--color-red) 0%, var(--color-red-mid) 100%) !important;
}

/* --- Theme Variables --- */
:root {
  --color-white: #fffafa;
  --color-red: #d52218;
  --color-red-mid: #ff5b45;
  --color-red-light: #f96e6e;
  --text-dark: #666666;
  --text-light: #666666;
  --shadow-soft: 0 4px 12px rgba(0, 0, 0, 0.03);
  --shadow-glow-red: 0 0 20px rgba(255, 50, 38, 0.4);
  --shadow-hover: 0 8px 30px rgba(0, 0, 0, 0.05);
}

/* --- Modern Navigation --- */
/* Default navbar (mobile and desktop, no shrink by default) */
.navbar {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  padding: 1.2rem 2rem;
  display: flex;
  justify-content: space-between;
  align-items: center;
  background: rgba(255, 255, 255, 0.15);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  border-bottom: 1px solid rgba(255, 255, 255, 0.2);
  z-index: 1000;
  transition: all 0.3s ease;
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.08);
}

/* Shrink only on desktop (769px and up) */
@media (min-width: 769px) {
  .navbar.scrolled {
    padding: 0.8rem 2rem;
    background: rgba(255, 255, 255, 0.15);
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.08);
  }
}

.logo {
  font-size: 1.5rem;
  font-weight: 700;
  color: var(--color-red);
  text-decoration: none;
  display: flex;
  align-items: center;
  transition: all 0.3s ease;
}

.logo:hover {
  transform: scale(1.03);
}

.nav-links {
  display: flex;
  list-style: none;
  gap: 1.5rem;
  align-items: center;
}

.nav-links li {
  position: relative;
}

/* Regular navigation links */
.nav-links li:not(:last-child) a {
  text-decoration: none;
  color: var(--text-dark);
  font-weight: 500;
  font-size: 1rem;
  transition: all 0.3s ease;
  position: relative;
  padding: 0.5rem 0;
  white-space: nowrap;
}

.nav-links li:not(:last-child) a:after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 0;
  width: 0;
  height: 2px;
  background: var(--color-red);
  transition: width 0.3s ease;
}

.nav-links li:not(:last-child) a:hover {
  color: var(--color-red);
}

.nav-links li:not(:last-child) a:hover:after {
  width: 100%;
}

/* Join Early Access button - specific styling for the last item */
.nav-links li:last-child a.join-btn {
  background: linear-gradient(135deg, var(--color-red) 0%, var(--color-red-mid) 100%);
  color: white;
  padding: 0.8rem 1.8rem;
  border-radius: 50px;
  font-weight: 600;
  box-shadow: 0 4px 15px rgba(255, 50, 38, 0.3);
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  position: relative;
  overflow: hidden;
  display: inline-block;
  text-decoration: none;
  transform: translateY(3px);
}

.nav-links li:last-child a.join-btn::before {
  content: '';
  position: absolute;
  top: 0;
  left: -100%;
  width: 100%;
  height: 100%;
  background: linear-gradient(90deg, transparent, rgba(255,255,255,0.2), transparent);
  transition: left 0.5s;
}

.nav-links li:last-child a.join-btn:hover::before {
  left: 100%;
}

.nav-links li:last-child a.join-btn:hover {
  transform: translateY(-2px) scale(1.02);
  box-shadow: var(--shadow-glow-red);
}

.mobile-menu-btn {
  display: none;
  background: none;
  border: none;
  font-size: 1.5rem;
  color: var(--text-dark);
  cursor: pointer;
  z-index: 1001;
}

/* Add padding to hero to account for fixed navbar */
.hero {
  padding-top: 80px;
}

/* --- Typography --- */
h1, h2, h3, h4 {
  font-weight: 700;
  color: var(--text-dark);
}

p {
  color: var(--text-light);
  font-weight: 400;
}

/* --- Layout Helpers --- */
.container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 1.5rem;
}

.section {
  padding: 6rem 0;
  position: relative;
}

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

.subtitle {
  font-size: 1.25rem;
  max-width: 800px;
  margin: 1rem auto 2rem;
  color: var(--text-light);
  font-weight: 300;
  text-align: center; /* Explicitly ensure centering */
}

/* Centered the specific text that was off-center */
.hero h2 {
  font-size: clamp(1.2rem, 3vw, 1.8rem);
  margin-left: 2rem; /* Explicitly set left margin */
  margin-right: 2rem; /* Explicitly set right margin */
  margin-bottom: 1.5rem;
  margin-top: 0;
  font-weight: 400;
  color: var(--text-light);
  text-align: center;
  width: 100%;
}

/* --- Buttons --- */
.btn {
  display: inline-block;
  border: none;
  border-radius: 50px;
  padding: 1rem 2rem;
  font-size: 1rem;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  text-decoration: none;
  position: relative;
  overflow: hidden;
}

.btn::before {
  content: '';
  position: absolute;
  top: 0;
  left: -100%;
  width: 100%;
  height: 100%;
  background: linear-gradient(90deg, transparent, rgba(255,255,255,0.2), transparent);
  transition: left 0.5s;
}

.btn:hover::before {
  left: 100%;
}

/* 🔴 Red button */
.btn-red {
  background: linear-gradient(135deg, var(--color-red) 0%, var(--color-red-mid) 100%);
  color: var(--color-white);
  box-shadow: 0 4px 15px rgba(255, 50, 38, 0.3);
}

.btn-red:hover {
  transform: translateY(-2px) scale(1.02);
  box-shadow: var(--shadow-glow-red);
}

/* ⚪ White button */
.btn-white {
  background: var(--color-white);
  color: var(--color-red);
  box-shadow: 0 4px 15px rgba(255, 255, 255, 0.3);
}

.btn-white:hover {
  transform: translateY(-2px) scale(1.02);
  box-shadow: 0 8px 25px rgba(255, 255, 255, 0.4);
}

/* --- Enhanced Effects --- */
.fade-in {
  opacity: 0;
  transform: translateY(30px);
  transition: opacity 0.8s cubic-bezier(0.4, 0, 0.2, 1), transform 0.8s cubic-bezier(0.4, 0, 0.2, 1);
}

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

.section-content {
  opacity: 0;
  transform: translateY(30px);
  transition: opacity 0.8s cubic-bezier(0.4, 0, 0.2, 1), transform 0.8s cubic-bezier(0.4, 0, 0.2, 1);
}

.section-content.visible {
  opacity: 1;
  transform: translateY(0);
}

.glass {
  background: rgba(255, 255, 255, 0.85);
  backdrop-filter: blur(20px);
  border-radius: 1.5rem;
  box-shadow: var(--shadow-soft);
  border: 1px solid rgba(255, 255, 255, 0.2);
}

.gradient-red {
  background: linear-gradient(135deg, var(--color-red) 0%, var(--color-red-mid) 100%);
  position: relative;
}

.gradient-red::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%3Ccircle cx='30' cy='30' r='1'/%3E%3C/g%3E%3C/g%3E%3C/svg%3E");
}

/* --- Hero --- */
.hero {
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: 100vh;
  text-align: center;
  position: relative;
}

/* Remove the pseudo-element to eliminate visual separation */
.hero::before {
  display: none;
}

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

.hero h1 {
  font-size: clamp(3rem, 10vw, 4.5rem);
  margin-bottom: 0.5rem;
  background: linear-gradient(135deg, var(--color-red) 0%, var(--color-red-mid) 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.hero p {
  max-width: 700px;
  margin: 0 auto 3rem;
  font-size: 1.2rem;
}

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

/* --- Grids --- */
.grid-4 {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 2rem;
  margin-top: 3rem;
}

/* --- Enhanced Cards --- */
.card {
  padding: 2.5rem 2rem;
  border-radius: 1.5rem;
  background: var(--color-white);
  box-shadow: var(--shadow-soft);
  text-align: center;
  border: 1px solid #f0f0f0;
  transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
  position: relative;
  overflow: hidden;
}

.card::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 4px;
  background: linear-gradient(90deg, var(--color-red) 0%, var(--color-red-light) 100%);
  transform: scaleX(0);
  transition: transform 0.4s cubic-bezier(0.4, 0, 0.2, 1);
}

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

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

.card .icon {
  font-size: 2.5rem;
  margin-bottom: 1.5rem;
  display: block;
  color: #d3d3d3;
  transition: color 0.3s ease;
}

.card:hover .icon {
  color: var(--color-red);
}

.card h3 {
  margin-bottom: 1rem;
  font-size: 1.3rem;
  color: var(--text-dark);
  transition: color 0.3s ease;
}

.card:hover h3 {
  color: var(--color-red);
}

.card p {
  font-size: 0.95rem;
  line-height: 1.6;
}

/* --- Enhanced Problem Visual --- */
.problem-visual {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 3rem;
  margin-top: 4rem;
  flex-wrap: wrap;
}

.problem-box {
  flex: 1;
  min-height: 400px;
  max-width: 400px;
  display: flex;
  flex-direction: column;
}

.problem-icons {
  display: grid;
  grid-template-columns: repeat(2, 1fr); /* 2 bubbles per row */
  gap: 0.8rem;
  margin: 1.5rem 0;
}

.bubble {
  width: 100%;
  text-align: center;
  padding: 0.8rem 0;
  border-radius: 25px;
  font-weight: 600;
  font-size: 0.9rem;
  box-shadow: var(--shadow-soft);
  transition: transform 0.3s ease;
}

.bubble:hover {
  transform: scale(1.05);
}

.bubble.red {
  background: linear-gradient(135deg, #ffe5e5 0%, #ffcccc 100%);
  color: var(--color-red);
}

.before {
  background: rgba(255, 245, 245, 0.8);
  border: 2px dashed var(--color-red-light);
  padding: 2.5rem;
  border-radius: 1.5rem;
  backdrop-filter: blur(10px);
  flex: 1;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
}

.before h3 {
  color: var(--text-dark);
}

.after {
  background: linear-gradient(135deg, var(--color-red) 0%, var(--color-red-mid) 100%);
  color: #fff;
  padding: 2.5rem;
  border-radius: 1.5rem;
  box-shadow: var(--shadow-glow-red);
  position: relative;
  flex: 1;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  text-align: center;
  animation: glowPulse 3s ease-in-out infinite;
}

.after h3:nth-child(1) {
  color: var(--color-white);
  position: relative;
  margin: 0;
  font-size: 1.3rem;
}

.after h3:nth-child(1)::before {
  display: none;
}

.after h3:nth-child(2) {
  color: var(--color-white);
  position: relative;
  margin: 0;
  font-size: 2rem;
}

.after h3:nth-child(2)::before {
  content: '';
  position: absolute;
  top: 50%;
  left: 50%;
  width: 190px;
  height: 190px;
  background: rgba(255, 255, 255, 0.3);
  border-radius: 50%;
  transform: translate(-50%, -50%) scale(0.5);
  z-index: -1;
  animation: pulseCircle 5s ease-in-out infinite;
}

.after p {
  margin: 1rem 0 0;
  color: var(--color-white);
  font-size: 1rem;
  font-style: italic;
}

.arrow {
  font-size: 2.5rem;
  color: var(--color-red);
  animation: pulse 2s ease-in-out infinite;
  display: flex;
  justify-content: center;
  align-items: center;
}

@keyframes pulse {
  0%, 100% { transform: scale(1); }
  50% { transform: scale(1.1); }
}

@keyframes glowPulse {
  0%, 100% { box-shadow: var(--shadow-glow-red); }
  50% { box-shadow: 0 0 30px rgba(255, 50, 38, 0.6); }
}

@keyframes pulseCircle {
  0%, 100% { transform: translate(-50%, -50%) scale(0.5); opacity: 0.5; }
  50% { transform: translate(-50%, -50%) scale(1); opacity: 0.1; }
}

.note {
  margin-top: 1rem;
  font-size: 0.9rem;
  color: var(--text-light);
  font-style: italic;
}

.after .note {
  color: rgba(255, 255, 255, 0.9);
}

/* --- Enhanced Section Titles --- */
.section-title {
  text-align: center;
  margin-bottom: 1rem;
  font-size: clamp(2rem, 4vw, 2.8rem);
  background: linear-gradient(135deg, var(--color-red) 0%, var(--color-red-mid) 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  position: relative;
}

.section-title::after {
  content: "";
  display: block;
  width: 80px;
  height: 4px;
  margin: 1rem auto 0;
  background: linear-gradient(90deg, var(--color-red) 0%, var(--color-red-light) 100%);
  border-radius: 2px;
}

/* --- Enhanced CTA --- */
.cta {
  padding: 6rem 0;
  color: #fff;
  position: relative;
}

.cta-title {
  color: #fff;
  font-size: clamp(1.8rem, 4vw, 2.5rem);
  font-weight: 700;
  margin-bottom: 1.5rem;
}

.cta p {
  color: rgba(255, 255, 255, 0.9);
  font-size: 1.1rem;
}

.cta .hero-buttons {
  margin-top: 2.5rem;
}

/* --- Mobile Responsive Design --- */
@media (max-width: 1024px) {
  .grid-4 {
    grid-template-columns: repeat(2, 1fr);
  }
  
  .problem-visual {
    gap: 2rem;
  }
}

@media (max-width: 768px) {
  
    .hero h2 {
    margin-left: 1rem;
    margin-right: 1rem;
    margin-bottom: 1.5rem;
  }

  .section {
    padding: 4rem 0;
  }
  
  .grid-4 {
    grid-template-columns: 1fr;
    gap: 1.5rem;
  }
  
  .hero {
    padding-top: 70px;
    min-height: 80vh;
  }
  
  .hero h1 {
    font-size: clamp(2.5rem, 8vw, 3.5rem);
  }
  
  .hero p {
    font-size: 1.1rem;
    padding: 0 1rem;
  }
  
  .hero-buttons {
    flex-direction: column;
    align-items: center;
  }
  
  .btn {
    min-width: 250px;
    text-align: center;
    margin: 0.5rem 0;
  }
  
  /* Mobile navigation */
  .navbar {
    padding: 1rem;
  }
  
  .nav-links {
    position: fixed;
    top: 70px;
    left: 0;
    width: 100%;
    flex-direction: column;
    background: rgba(255, 255, 255, 0.98);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    padding: 2rem 1rem;
    gap: 1.5rem;
    transform: translateY(-100%);
    opacity: 0;
    visibility: hidden;
    transition: all 0.3s ease;
    box-shadow: 0 10px 20px rgba(0, 0, 0, 0.1);
    z-index: 999;
  }
  
  .nav-links.active {
    transform: translateY(0);
    opacity: 1;
    visibility: visible;
  }
  
  .nav-links li:not(:last-child) a {
    font-size: 1.1rem;
    padding: 0.8rem 0;
  }
  
  .nav-links li:last-child a.join-btn {
    padding: 1rem 2rem;
    font-size: 1.1rem;
  }
  
  .mobile-menu-btn {
    display: block;
  }
  
  /* Problem visual for mobile */
  .problem-visual {
    flex-direction: column;
    gap: 2rem;
  }
  
  .problem-box {
    min-height: auto;
    max-width: 100%;
    width: 100%;
  }
  
  .before, .after {
    padding: 2rem 1.5rem;
  }
  
  .problem-icons {
    gap: 0.6rem;
  }
  
  .bubble {
    padding: 0.6rem 1.2rem;
    font-size: 0.8rem;
  }
  
  /* Card adjustments for mobile */
  .card {
    padding: 2rem 1.5rem;
  }
  
  .card .icon {
    font-size: 2rem;
    margin-bottom: 1rem;
  }
  
  .card h3 {
    font-size: 1.2rem;
  }
  
  .card p {
    font-size: 0.9rem;
  }
  
  /* CTA section for mobile */
  .cta {
    padding: 4rem 0;
  }
  
  .cta-title {
    font-size: 1.8rem;
  }
  
  .cta p {
    font-size: 1rem;
    padding: 0 1rem;
  }
  
  /* Subtitle adjustments */
  .subtitle {
    font-size: 1.1rem;
    padding: 0 1rem;
  }
  
  .arrow i::before {
    content: "\f063"; /* FA down arrow (fa-arrow-down) */
    font-family: "Font Awesome 6 Free"; /* required sometimes */
    font-weight: 900;
  }
}

@media (max-width: 480px) {
  .container {
    padding: 0 1rem;
  }
  
  .hero h1 {
    font-size: 2.5rem;
  }
  
  .hero p {
    font-size: 1rem;
  }
  
  .section-title {
    font-size: 2rem;
  }
  
  .btn {
    padding: 0.9rem 1.8rem;
    font-size: 0.9rem;
    min-width: 220px;
  }
  
  .problem-icons {
    justify-content: center;
  }
  
  .bubble {
    flex: 1 0 calc(50% - 0.6rem);
    text-align: center;
    max-width: calc(50% - 0.6rem);
  }
}