/* --------------------------------------------------
   HERO SECTION — CLEAN RESPONSIVE VERSION
   No transforms, fully Figma-aligned, production-ready
-------------------------------------------------- */

/* Root hero container */
.hero {
  position: relative;
  width: 100%;
  min-height: 100vh;
  padding-top: 5%;
  padding-bottom: 220px;
  overflow: hidden;
  background: #faf7fb;

  /* soft violet glow */
  /* background-image: radial-gradient(
    circle at 50% 40%,
    rgba(236, 76, 248, 0.14) 0%,
    rgba(168, 85, 247, 0.12) 30%,
    rgba(168, 85, 247, 0) 70%
  ); */
}

/* GRID — center column wide, side cards lower */
.hero-grid {
  display: grid;
  grid-template-columns: 0.9fr 2fr 0.9fr; /* center wider */
  gap: 60px;
  max-width: 1500px;
  margin: 0 auto;
  padding: 0 40px;
  align-items: start; /* center text stays high */
  position: relative;
  z-index: 4;
}

/* LEFT COLUMN — cards lower */
.hero-left {
  display: flex;
  justify-content: center;
  padding-top: 180px; /* ↓ lower cards to match Figma */
}

/* RIGHT COLUMN — cards lower */
.hero-right {
  display: flex;
  justify-content: center;
  padding-top: 180px; /* ↓ symmetrical to left */
}

/* CENTER COLUMN — stays high */
.hero-center {
  text-align: center;
  padding-top: 40px; /* only slight top padding */
}

/* --------------------------------------------------
   HEADLINE + SUBTITLE
-------------------------------------------------- */

.hero-title {
  font-size: clamp(1.8rem, 4vw, 4rem);
  font-weight: 800;
  color: #111827;
  line-height: 1.3;
  margin-bottom: 18px;
  letter-spacing: -0.02em;
}

/* gradient words */
.gradient-text {
  color: var(--primary);
}

.hero-sub {
  color: #1a1a1a;
  font-size: 16px;
  max-width: 700px;
  margin: 0 auto 30px;
  font-family: var(--font-poppins);
}

/* --------------------------------------------------
   CTA BUTTON — Figma perfect
-------------------------------------------------- */

.cta-button {
  padding: 14px 36px;
  border-radius: 14px;
  font-weight: 600;
  color: #fff;
  border: none;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  cursor: pointer;
  font-size: 1.1rem;
  background: linear-gradient(90deg, var(--secondary), var(--primary));
  box-shadow: 0px 43px 17px rgba(0, 0, 0, 0.01),
    0px 8px 11px rgba(0, 0, 0, 0.04);
  transition: all 0.25s ease;
}

.cta-button:hover {
  transform: translateY(-4px) !important;
  box-shadow: 0px 50px 20px rgba(0, 0, 0, 0.04),
    0px 12px 14px rgba(0, 0, 0, 0.06);
}

/* --------------------------------------------------
   CENTER BADGE
-------------------------------------------------- */
.center-badge-wrapper {
  position: relative;
  width: fit-content;
}

.center-badge {
  padding: 12px 30px;
  border-radius: 40px;
  background: #fff;
  font-weight: 600;
  font-size: 16px;
  box-shadow: 0px 6px 24px rgba(168, 85, 247, 0.25);
  position: relative;
  z-index: 10;
}

.center-badge-glow {
  position: absolute;
  inset: -18px;
  border-radius: 50px;
  background: radial-gradient(
    circle,
    rgba(168, 85, 247, 0.35),
    rgba(168, 85, 247, 0)
  );
  filter: blur(22px);
  z-index: 1;
}

.center-badge-ring {
  position: absolute;
  left: 50%;
  top: 50%;
  border-radius: 50px;
  transform: translate(-50%, -50%);
  border: 2px solid rgba(168, 85, 247, 0.45);
}

.ring-1 {
  width: calc(100% + 26px);
  height: calc(100% + 26px);
}
.ring-2 {
  width: calc(100% + 46px);
  height: calc(100% + 46px);
  border-color: rgba(168, 85, 247, 0.3);
}
.ring-3 {
  width: calc(100% + 66px);
  height: calc(100% + 66px);
  border-color: rgba(168, 85, 247, 0.2);
}

/* --------------------------------------------------
   COVERAGE CARD (LEFT)
-------------------------------------------------- */

.hero-card.coverage-card {
  width: 320px;
  min-height: 230px;
  background: #fff;
  border-radius: 16px;
  padding: 20px;
  box-shadow: 0 18px 40px rgba(0, 0, 0, 0.06);

  display: flex;
  flex-direction: column;
  justify-content: center;
}

.stats-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 14px;
}

.stat-item {
  background: var(--light-yellow);
  border-radius: 12px;
  padding: 18px 14px;
  min-height: 72px;

  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
}

.stat-value {
  font-size: 24px;
  font-weight: 800;
  line-height: 1;
  color: var(--primary);
  margin-bottom: 6px;
}

.stat-label {
  font-size: 16px;
  color: #6b6b6b;
  font-weight: 500;
}

/* --------------------------------------------------
   TAX CARD (RIGHT)
-------------------------------------------------- */

.hero-card.tax-filing-card {
  width: 320px;
  min-height: 230px;
  background: #fff;
  border-radius: 16px;
  padding: 22px;
  box-shadow: 0 18px 40px rgba(0, 0, 0, 0.06);

  display: flex;
  flex-direction: column;
  justify-content: center;
}

.tax-inner-box {
  background: var(--light-yellow);
  border-radius: 20px;
  padding: 55px 20px;
  text-align: center;
  width: 100%;
  box-sizing: border-box;
}

.tax-value {
  font-size: 26px;
  font-weight: 800;
  color: var(--primary);
  margin-bottom: 8px;
}

.tax-label {
  font-size: 16px;
  color: #555;
  font-weight: 500;
  white-space: nowrap; /* stay on one line */
}

/* --------------------------------------------------
   BACKGROUND LINES
-------------------------------------------------- */
.line-left,
.line-right,
.curve-left,
.curve-right,
.arrow-up,
.arrow-down {
  position: absolute;
  z-index: 1;
  pointer-events: none;
  will-change: opacity, transform;
}

.line-left {
  left: 0;
  top: 0;
  width: 14%;
  height: 59.5%;
}
.curve-left {
  left: 0;
  top: 45.6%;
  width: 27%;
  height: 104%;
}
.line-right {
  right: -24px;
  top: 59.6%;
  width: 31.5%;
  height: 69.9%;
}
.curve-right {
  right: 0;
  top: 0;
  width: 13%;
  height: 59.8%;
}
.arrow-up {
  left: 11.2%;
  top: 21%;
  width: 18px;
}
.arrow-down {
  left: 74.6%;
  bottom: 12%;
  width: 18px;
}

.line-left img,
.line-right img,
.curve-left img,
.curve-right img,
.arrow-up img,
.arrow-down img {
  width: 100%;
  height: auto;
}

/* --------------------------------------------------
   RESPONSIVE
-------------------------------------------------- */

@media (max-width: 1200px) {
  .hero-grid {
    grid-template-columns: 1fr;
    padding: 0 28px;
    gap: 50px;
  }

  .hero-left,
  .hero-right {
    padding-top: 40px; /* reduced for tablet */
    justify-content: center;
  }
}

@media (max-width: 700px) {
  .hero-grid {
    grid-template-columns: 1fr;
    padding: 0 20px;
  }

  .hero-left,
  .hero-right {
    padding-top: 20px;
  }

  .hero-title {
    font-size: 36px;
  }
}

@media (max-width: 520px) {
  .hero-title {
    font-size: 28px;
    line-height: 1.12;
  }

  .cta-button {
    padding: 12px 20px;
  }

  .hero-card.coverage-card,
  .hero-card.tax-filing-card {
    width: 100%;
    min-height: 200px;
  }

  .tax-label {
    white-space: normal;
  }
}

/* ===== CARD POSITIONING TWEAKS (Figma exact placement) ===== 
/* --- mobile fixes --- */
@media (max-width: 1200px) {
  .hero-left,
  .hero-right {
    padding-top: 80px; /* reduce for tablet */
    padding-left: 0;
    padding-right: 0;
  }
}

@media (max-width: 520px) {
  .hero-left,
  .hero-right {
    padding-top: 20px; /* reduce for small screens */
  }
}

/* --- responsive fixes --- */
@media (max-width: 1200px) {
  .hero-left,
  .hero-right {
    top: 40px;
    left: 0;
    right: 0;
  }
}

@media (max-width: 520px) {
  .hero-left,
  .hero-right {
    top: 10px;
  }
}

.gradient-text-black {
  background: linear-gradient(180deg, rgba(0, 0, 0, 0.7), #000000);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
}

/* =======================
   NEW LAYOUT STRUCTURE
======================= */

/* Top hero text (centered on page) */
.hero-text-container {
  text-align: center;
  max-width: 830px;
  margin: 0 auto;
  position: relative;
  z-index: 5;
  margin-top: 60px;
}

/* 3-column card section below hero text */
.hero-cards-grid {
  display: flex;
  gap: 10%;
  align-items: center;
  justify-content: space-evenly;
  max-width: 1200px;
  margin-left: auto;
  margin-right: auto;
  position: relative;
  z-index: 6;
  padding-top: 2.5%;
}

/* Desktop card alignment tweaks */
@media (min-width: 1200px) {
  .hero-cards-grid > *:first-child {
    margin-left: -80px; /* Move left card more left */
  }

  .hero-cards-grid > *:last-child {
    margin-right: -80px; /* Move right card more right */
  }
}

/* ============================
   MOBILE LAYOUT FOR HERO CARDS
============================ */

.hero-grid-lines {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: contain; /* don’t stretch */
  pointer-events: none; /* don’t block clicks */
  z-index: 1; /* behind cards */
  padding-top: 4%;
}

/* cards stay above the grid */
.hero-cards-grid > *:not(.hero-grid-lines) {
  position: relative;
  z-index: 10;
}

/* Wrapper that scales with layout */
.hero-lines-container {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  pointer-events: none;
  z-index: 1; /* behind cards */
}

/* All line elements share same scaling box */
.lines-overlay {
  position: relative;
  width: 100%;
  height: 100%;
}

/* All lines scale based on container, not fixed px */
.lines-overlay img {
  position: absolute;
  max-width: 100%;
  pointer-events: none;
  object-fit: contain; /* IMPORTANT */
  transform-origin: center;
}

.hero {
  position: relative;
  width: 100%;
  overflow: hidden;
}

/* Top SVG */
.hero-top-lines {
  position: absolute;
  top: 0;
  left: 50%;
  width: 1440px;
  transform: translateX(-50%);
  z-index: 1;
  pointer-events: none;
  opacity: 0; /* GSAP will fade this in */
}

/* Bottom SVG */
.hero-bottom-lines {
  position: absolute;
  bottom: 0;
  left: 50%;
  width: 1440px;
  transform: translateX(-50%);
  z-index: 1;
  pointer-events: none;
  opacity: 0;
}

/* Your inner content sits above the lines */
.hero > .relative.z-10 {
  position: relative;
  z-index: 10;
}

.hero-top-lines,
.hero-bottom-lines {
  position: absolute;
  left: 0;
  width: 100vw;
  z-index: 1;
  pointer-events: none;
}

.left-line-arrow {
  width: 100%;
  height: 103%;
}

.right-line-arrow {
  height: 100%;
  width: 100%;
}

/* ============================================
   TABLET — show lines but scale + reposition
============================================ */
@media (max-width: 1200px) {
  .hero-text-container {
    width: 50%;
    margin-top: 10%;
  }

  .line-left {
    left: -60px;
    top: 0;
    width: 22%;
    height: auto;
  }

  .curve-left {
    top: 43%;
    width: 37%;
    left: -21%;
  }

  .line-right {
    right: -27%;
    top: 63%;
    width: 45%;
  }

  .curve-right {
    height: 80%;
    right: -18%;
    top: -16.5%;
    width: 41%;
  }

  .left-line-arrow,
  .right-line-arrow {
    width: 100%;
    height: auto;
  }
}

@media (max-width: 1000px) {
  .hero-cards-grid {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 60px; /* spacing between items */
    margin-top: 60px; /* closer to the button */
    margin-bottom: 80px;
  }

  /* Reset margins added for desktop alignment */
  .hero-cards-grid > *:first-child,
  .hero-cards-grid > *:last-child {
    margin-left: 0 !important;
    margin-right: 0 !important;
  }

  .hero-cards-grid .hero-card {
    width: 100%;
    max-width: 360px;
  }

  /* Center badge spacing */

  .line-left {
    left: -10%;
    top: 8px;
    width: 30%;
    height: auto;
  }

  .curve-left {
    top: 38%;
    width: 37%;
    left: -17%;
  }

  .line-right {
    right: -27%;
    top: 73%;
    width: 47%;
  }

  .curve-right {
    height: 70%;
    right: -18%;
    top: -16.5%;
    width: 36%;
  }
}

/* ============================================
   MOBILE — show simplified compact version
   (looks like your screenshot)
============================================ */
@media (max-width: 700px) {
  .line-left {
    width: 56%;
    top: -2%;
    left: -41%;
  }

  .curve-left {
    width: 92%;
    top: 40.2%;
    left: -79%;
    height: 100%;
  }

  .line-right {
    width: 100%;
    top: 60.2%;
    right: -84%;
  }

  .curve-right {
    width: 57%;
    top: -7%;
    right: -43%;
  }

  .left-line-arrow,
  .right-line-arrow {
    width: 100%;
    height: auto;
  }
  .hero-text-container {
    padding: 50px;
    width: 86%;
  }
}

@media (max-width: 600px) {
  .line-left {
    width: 56%;
    top: 3%;
    left: -41%;
  }

  .curve-left {
    width: 92%;
    top: 36.2%;
    left: -79%;
    height: 100%;
  }
}

@media (max-width: 500px) {
  .line-left {
    width: 57%;
    top: 7%;
    left: -41%;
  }

  .curve-left {
    width: 92%;
    top: 32.2%;
    left: -79%;
    height: 100%;
  }
}

@media (max-width: 400px) {
  .line-right {
    width: 100%;
    top: 66.2%;
    right: -84%;
  }
  .curve-right {
    width: 57%;
    top: -12%;
    right: -43%;
  }
}

/* ============================================
   EXTRA SMALL MOBILE — very tight layout
============================================ */
/* @media (max-width: 480px) {
  .line-left,
  .curve-left,
  .line-right,
  .curve-right {
    transform: scale(0.55);
  }

  .line-left { top: -20px; }
  .curve-left { top: 22%; }
  .line-right { top: 32%; }
  .curve-right { top: -18px; }
} */

.center-badge-wrapper {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
  width: fit-content;
}

.center-badge {
  position: relative;
  z-index: 10;

  padding: 0.75rem 2.5rem; /* py-3 px-10 */
  border-radius: 9999px;

  background-color: #ffffff;
  color: var(--primary);

  font-weight: 600;
  font-size: 1.125rem; /* text-lg */

  box-shadow: 0 0 20px rgba(168, 85, 247, 0.3);
}

/* OUTER RINGS */
.center-badge-rings {
  position: absolute;
  inset: 0;
  border-radius: 9999px;
  pointer-events: none;
}

.center-badge-rings::before {
  content: "";
  position: absolute;
  inset: -6px;
  border-radius: 9999px;
  border: 1px solid var(--primary-light); /* #c08bff7a */
}

.center-badge-rings::after {
  content: "";
  position: absolute;
  inset: -12px;
  border-radius: 9999px;
  border: 1px solid var(--primary-light) /* #c08bff4a */
}

.ai-badge {
  display: flex;
  align-items: center;
  gap: 0.5rem;

  padding: 0.5rem 1.5rem;
  border-radius: 9999px;

  background: var(--bright-yellow);

  margin-bottom: 1.25rem;

  width: fit-content;
  margin-left: auto;
  margin-right: auto;
}

.ai-badge-icon {
  color: var(--primary);
  flex-shrink: 0;
}

.ai-badge-text {
  font-size: 0.875rem;
  font-weight: 600;
  letter-spacing: 0.05em;
  color: var(--primary);

  text-align: center;
  white-space: normal;
}

/* Desktop: single line */
@media (min-width: 768px) {
  .ai-badge-text {
    white-space: nowrap;
  }
}

