:root {
  /* Stripe/Fintech Premium Palette */
  --bg-main: #FFFFFF;
  --bg-alt: #F6F9FC; /* Stripe off-white/slate */
  --text-dark: #0A2540; /* Deep Indigo */
  --text-main: #425466; /* Slate body text */
  --text-light: #7A899A;
  --border: rgba(10, 37, 64, 0.08);
  --accent: #10B981; /* Emerald Green */
  
  /* Layout */
  --container-width: 1080px;
  --spacing-section: 10rem;
}

* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
  -webkit-tap-highlight-color: transparent;
}

body {
  font-family: -apple-system, BlinkMacSystemFont, "Inter", "Helvetica Neue", Helvetica, Arial, sans-serif;
  color: var(--text-main);
  background-color: var(--bg-main);
  line-height: 1.5;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  overflow-x: hidden;
}

/* Typography */
h1, h2, h3, h4 {
  color: var(--text-dark);
  letter-spacing: -0.04em;
  font-weight: 600;
  line-height: 1.1;
}

.container {
  max-width: var(--container-width);
  margin: 0 auto;
  padding: 0 2rem;
  width: 100%;
}

.section {
  padding: var(--spacing-section) 0;
}

.text-center { text-align: center; }
.mt-2 { margin-top: 1rem; }
.mt-4 { margin-top: 2.5rem; }
.mb-2 { margin-bottom: 1rem; }
.mb-4 { margin-bottom: 2.5rem; }

/* Buttons */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  padding: 1.1rem 2.2rem;
  border-radius: 40px;
  font-weight: 500;
  font-size: 1.05rem;
  letter-spacing: -0.01em;
  cursor: pointer;
  border: 1px solid transparent;
  transition: all 0.2s ease;
  text-decoration: none;
}

.btn-primary {
  background-color: var(--accent);
  color: #FFF;
}

.btn-primary:hover {
  transform: scale(1.02);
  background-color: var(--text-dark);
}

.btn-stitch {
  display: inline-flex;
  align-items: center;
  text-decoration: none;
  background: transparent;
  padding: 0;
  border: none;
  cursor: pointer;
  transition: transform 0.2s ease;
}

.btn-stitch:hover {
  transform: scale(1.03);
}

.btn-stitch-text {
  background: linear-gradient(90deg, #10B981 0%, #F4F4F5 100%);
  color: var(--text-dark);
  padding: 1.1rem 2.2rem;
  border-radius: 50px;
  font-weight: 500;
  font-size: 1.05rem;
  position: relative;
  z-index: 2;
  white-space: nowrap;
}

.btn-stitch-icon {
  background: #F4F4F5;
  color: var(--text-dark);
  width: 52px;
  height: 52px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-left: -15px; /* Creates the merge effect */
  position: relative;
  z-index: 1;
  font-size: 1.2rem;
}

.btn-secondary {
  background-color: transparent;
  color: var(--text-dark);
  border-color: var(--border);
}

.btn-secondary:hover {
  background-color: var(--bg-alt);
}

.btn-outline {
  background-color: transparent;
  color: var(--text-dark);
  border-color: var(--text-dark);
}

.btn-outline:hover {
  background-color: var(--text-dark);
  color: #FFF;
}

.btn-block { width: 100%; }

/* Navbar */
.navbar {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  width: 100%;
  z-index: 1000;
  padding: 0;
  pointer-events: none; /* Let clicks pass through the invisible parts */
}

.navbar-inner {
  pointer-events: auto; /* Re-enable clicks on the actual navbar */
  margin: 0 auto;
  width: 100%;
  max-width: 100%;
  background: rgba(255, 255, 255, 0.8);
  backdrop-filter: saturate(180%) blur(20px);
  -webkit-backdrop-filter: saturate(180%) blur(20px);
  border-bottom: 1px solid rgba(0, 0, 0, 0.05);
  border: 1px solid transparent;
  border-radius: 0;
  padding: 1rem 0;
  transition: all 0.6s cubic-bezier(0.4, 0, 0.2, 1);
}

.navbar.scrolled .navbar-inner {
  margin-top: 1rem;
  max-width: 900px;
  border-radius: 50px;
  background: rgba(255, 255, 255, 0.95);
  border: 1px solid rgba(0, 0, 0, 0.08);
  box-shadow: 0 20px 40px rgba(10, 37, 64, 0.08);
  padding: 0.8rem 0;
}

.nav-content {
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.logo {
  font-weight: 700;
  font-size: 1.4rem;
  color: var(--text-dark);
  letter-spacing: -0.03em;
}

.logo-image {
  height: 48px;
  width: auto;
  object-fit: contain;
}

/* Hero Section */
.hero {
  padding: 14rem 0 8rem;
  min-height: 90vh;
  display: flex;
  align-items: center;
  justify-content: center;
  background: #FFFFFF;
  overflow: hidden;
  position: relative;
}

.hero-glow {
  position: absolute;
  top: 0;
  right: 0;
  width: 55%;
  height: 100%;
  background: radial-gradient(100% 100% at 100% 0%, #7A4FFF 0%, #9D75FF 40%, rgba(255,255,255,0) 100%);
  opacity: 0.85;
  filter: blur(60px);
  z-index: 0;
  pointer-events: none;
}

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

.hero-content {
  text-align: center;
  max-width: 900px;
  margin: 0 auto;
}

.hero-title {
  font-size: clamp(2.5rem, 5vw, 4.5rem);
  font-weight: 300;
  margin-bottom: 1.25rem;
  letter-spacing: -0.03em;
  color: var(--text-dark);
  line-height: 1.15;
}

.hero-subtitle {
  font-size: clamp(1.1rem, 1.5vw, 1.25rem);
  color: var(--text-light);
  margin-bottom: 3.5rem;
  font-weight: 300;
  letter-spacing: -0.01em;
  max-width: 650px;
  margin-left: auto;
  margin-right: auto;
  line-height: 1.6;
}

.hero-actions {
  display: flex;
  gap: 1.2rem;
  justify-content: center;
  align-items: center;
  flex-wrap: wrap;
}

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

/* Section Common */
.section-title {
  font-size: clamp(2.5rem, 5vw, 4rem);
  margin-bottom: 1rem;
  letter-spacing: -0.04em;
  color: var(--text-dark);
}

.section-subtitle {
  font-size: 1.3rem;
  color: var(--text-main);
  margin-bottom: 5rem;
  max-width: 600px;
  margin-left: auto;
  margin-right: auto;
  font-weight: 400;
  letter-spacing: -0.01em;
}

/* Bento Grid */
.bento-grid {
  display: grid;
  grid-template-columns: repeat(12, 1fr);
  gap: 1.5rem;
}

.bento-card {
  background: var(--bg-alt);
  border-radius: 32px;
  padding: 3.5rem;
  display: flex;
  flex-direction: column;
  justify-content: center;
  position: relative;
  overflow: hidden;
  transition: transform 0.4s cubic-bezier(0.16, 1, 0.3, 1);
}

.bento-card:hover {
  transform: scale(0.98);
}

.bento-span-4 { grid-column: span 4; }
.bento-span-6 { grid-column: span 6; }
.bento-span-8 { grid-column: span 8; }
.bento-span-12 { grid-column: span 12; }

@media (max-width: 900px) {
  .bento-span-4, .bento-span-6, .bento-span-8 { grid-column: span 12; }
}

.bento-card h3 {
  font-size: 1.8rem;
  margin-bottom: 1rem;
  letter-spacing: -0.03em;
}

.bento-card p {
  color: var(--text-main);
  font-size: 1.15rem;
  line-height: 1.5;
}

.bento-card.dark {
  background: var(--text-dark);
  color: #FFF;
}

.bento-card.dark h3, .bento-card.dark p {
  color: #FFF;
}

.bento-card.dark p {
  opacity: 0.8;
}

/* Problem Grid */
.problem-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 1.5rem;
  margin-top: 2rem;
}

.problem-card {
  padding: 2.5rem 2rem;
  background: var(--bg-main);
  border-radius: 24px;
  text-align: center;
  transition: transform 0.3s ease, box-shadow 0.3s ease;
  border: 1px solid var(--border);
}

.problem-card:hover {
  transform: translateY(-5px);
  box-shadow: 0 20px 40px rgba(0,0,0,0.04);
}

.icon-wrapper {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 72px;
  height: 72px;
  border-radius: 50%;
  background-color: transparent;
  color: var(--accent);
  font-size: 2rem;
  margin-bottom: 1.5rem;
  overflow: hidden;
}

.icon-wrapper img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  border-radius: 50%;
  box-shadow: 0 10px 20px rgba(0,0,0,0.05);
}

.problem-card h3 {
  font-weight: 600;
  font-size: 1.25rem;
  color: var(--text-dark);
  letter-spacing: -0.01em;
}

/* Gradient Grid (Eligibility) */
.gradient-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 1.5rem;
  margin-top: 2rem;
}

.gradient-card {
  padding: 2.5rem 2.5rem;
  border-radius: 24px;
  color: #FFF;
  text-align: left;
  transition: transform 0.3s ease, box-shadow 0.3s ease;
  position: relative;
  overflow: hidden;
  box-shadow: 0 10px 30px rgba(0,0,0,0.05);
}

.gradient-card:hover {
  transform: translateY(-5px);
  box-shadow: 0 20px 40px rgba(0,0,0,0.15);
}

.gradient-card h3 {
  font-weight: 500;
  font-size: 1.2rem;
  line-height: 1.5;
  color: #FFF;
  position: relative;
  z-index: 2;
  margin: 0;
}

/* Gradient variations for the 6 cards */
.gradient-card:nth-child(1) { background: linear-gradient(135deg, #0A2540 0%, #10B981 100%); }
.gradient-card:nth-child(2) { background: linear-gradient(135deg, #635BFF 0%, #10B981 100%); }
.gradient-card:nth-child(3) { background: linear-gradient(135deg, #2D3748 0%, #34D399 100%); }
.gradient-card:nth-child(4) { background: linear-gradient(135deg, #4F46E5 0%, #059669 100%); }
.gradient-card:nth-child(5) { background: linear-gradient(135deg, #1E1B4B 0%, #10B981 100%); }
.gradient-card:nth-child(6) { background: linear-gradient(135deg, #4338CA 0%, #34D399 100%); }

/* Form */
.form-wrapper {
  max-width: 640px;
  margin: 0 auto;
  padding: 4rem;
  background: #FFF;
  border-radius: 32px;
  box-shadow: 0 40px 80px rgba(0,0,0,0.04);
  border: 1px solid var(--border);
}

.form-group {
  margin-bottom: 1.5rem;
}

.form-group label {
  display: block;
  margin-bottom: 0.75rem;
  font-weight: 500;
  color: var(--text-dark);
  font-size: 0.95rem;
}

.form-group input, .form-group select {
  width: 100%;
  padding: 1.2rem 1.5rem;
  border-radius: 16px;
  border: 1px solid var(--border);
  background: var(--bg-alt);
  font-family: inherit;
  font-size: 1.1rem;
  color: var(--text-dark);
  transition: all 0.2s ease;
  -webkit-appearance: none;
}

.form-group input:focus, .form-group select:focus {
  outline: none;
  border-color: var(--accent);
  background: #FFF;
}

/* FAQ */
.faq-list {
  max-width: 800px;
  margin: 0 auto;
}

.faq-item {
  border-bottom: 1px solid var(--border);
}

.faq-question {
  width: 100%;
  text-align: left;
  padding: 2.5rem 0;
  background: none;
  border: none;
  font-family: inherit;
  font-weight: 600;
  font-size: 1.4rem;
  color: var(--text-dark);
  letter-spacing: -0.02em;
  cursor: pointer;
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.faq-answer {
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.5s cubic-bezier(0.4, 0, 0.2, 1);
}

.faq-answer p {
  padding: 0 0 2.5rem 0;
  color: var(--text-main);
  font-size: 1.15rem;
  line-height: 1.6;
}

/* Footer */
.footer {
  border-top: 1px solid var(--border);
  padding: 6rem 0;
  text-align: center;
}

.footer-brand h3 {
  font-size: 1.5rem;
  margin-bottom: 0.5rem;
}

.footer-brand p {
  font-size: 0.85rem;
  letter-spacing: 0.1em;
  color: var(--text-light);
  text-transform: uppercase;
  margin-bottom: 3rem;
}

.footer-links a {
  margin: 0 1.5rem;
  color: var(--text-main);
  font-weight: 500;
}

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

.footer-disclaimer {
  max-width: 600px;
  margin: 3rem auto;
  font-size: 0.85rem;
  color: var(--text-light);
  line-height: 1.6;
}

/* Sticky Grid Layout */
.sticky-grid-layout {
  display: grid;
  grid-template-columns: 1fr;
  gap: 3rem;
}

@media (min-width: 900px) {
  .sticky-grid-layout {
    grid-template-columns: 350px 1fr;
    align-items: start;
    gap: 5rem;
  }
  
  .sticky-grid-sidebar {
    position: sticky;
    top: 30vh; /* Sticks closer to the center of the screen */
  }
}

.mb-4 { margin-bottom: 1.5rem; }

/* Phosphor Icons alignment */
.btn i.ph {
  font-size: 1.2em;
  vertical-align: text-bottom;
}
.btn .ph-arrow-right, .btn .ph-paper-plane-tilt {
  margin-left: 0.4rem;
}
.btn .ph-whatsapp-logo {
  margin-right: 0.4rem;
}

/* Prevent Flash of Unstyled Content (FOUC) before GSAP takes over */
.gsap-heading, .gsap-fade, .gsap-grid-item, .gsap-step-item {
  opacity: 0;
}

/* Removed preloader for instant clean render */
#preloader { display: none; }

/* Mobile Responsiveness Overrides */
@media (max-width: 768px) {
  /* Hero Section */
  .hero {
    padding: 8rem 0 4rem;
    min-height: auto;
  }
  
  .hero-title {
    font-size: 2.5rem;
    line-height: 1.1;
  }
  
  .hero-subtitle {
    font-size: 1.1rem;
    margin-bottom: 2rem;
  }
  
  /* Navbar */
  .navbar .btn {
    display: inline-flex;
    width: auto;
    padding: 0.6rem 1.2rem;
    font-size: 0.85rem;
  }
  
  .navbar .btn i {
    display: none;
  }
  
  .navbar.scrolled .navbar-inner {
    max-width: calc(100% - 2rem);
    border-radius: 30px;
    padding: 0.6rem 0;
  }
  
  /* Layout */
  .container {
    padding: 0 1rem;
  }
  
  /* Typography & Spacing */
  .section-title {
    font-size: 2rem;
  }
  
  .section-subtitle {
    font-size: 1.1rem;
    margin-bottom: 2.5rem;
  }
  
  .section {
    padding: 4rem 0;
  }
  
  /* Forms */
  .form-wrapper {
    padding: 2rem 0.5rem;
  }
  
  .form-group input, .form-group select {
    padding: 0.9rem 1.1rem;
    font-size: 1rem;
  }
  
  /* Cards */
  .bento-card {
    padding: 2rem;
    border-radius: 24px;
  }
  
  .bento-card h3 {
    font-size: 1.4rem;
  }
  
  .bento-card p {
    font-size: 1rem;
  }
  
  .clean-list li {
    padding: 1.5rem;
    font-size: 1rem;
  }
  
  /* Buttons */
  .btn {
    padding: 0.9rem 1.5rem;
    font-size: 1rem;
    width: 100%;
  }
  
  .hero-actions .btn {
    width: 100%;
  }
  
  .btn-stitch {
    width: auto;
    justify-content: center;
  }
  
  .btn-stitch.btn-block {
    width: 100%;
  }

  .btn-stitch.btn-block .btn-stitch-text {
    flex: 1;
    text-align: center;
  }
  
  .btn-stitch-text {
    padding: 0.85rem 1.5rem;
    font-size: 0.95rem;
    text-align: center;
  }
  
  .btn-stitch-icon {
    width: 44px;
    height: 44px;
    font-size: 1rem;
    margin-left: -12px;
  }
}
