.hero-section {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: var(--app-bar-height, 70px) var(--section-padding-x) 3rem;
  min-height: 55vh;
  background-color: var(--bg-light);
  overflow: hidden;
  box-sizing: border-box;
}

.hero-container {
  width: 100%;
  max-width: var(--container-max-width);
  margin: 0 auto;
  padding: 2rem 0;
  display: grid;
  grid-template-columns: 1.1fr 0.9fr;
  grid-template-rows: auto auto; /* Two rows for desktop */
  align-items: flex-start; /* Changed from center to allow independent vertical positioning */
  gap: 1.5rem 3rem; /* Row gap and Column gap */
}

@media (max-width: 992px) {
  .hero-section {
    padding-left: var(--section-padding-x);
    padding-right: var(--section-padding-x);
  }
}

/* Left Side: Content */
.hero-content {
  display: flex;
  flex-direction: column;
  justify-content: center;
  gap: 0.75rem;
  grid-column: 1;
  grid-row: 1;
  margin-top: 4rem; /* Independent top spacing for text content */
}

.hero-label {
  font-family: var(--font-heading);
  font-size: var(--font-size-label);
  font-weight: 700;
  color: var(--primary-black);
  letter-spacing: 0.1em;
  margin: 0 0 2rem 0; /* Added bottom margin for more gap */
}

.text-primary {
  color: var(--primary);
}

.hero-heading {
  font-family: var(--font-heading);
  font-size: 3rem;
  font-weight: 800;
  line-height: 1.1;
  color: var(--primary-black);
  letter-spacing: -0.02em;
  margin: 0;
}

.hero-heading .text-primary {
  font-weight: 800;
  font-family: inherit;
}

.hero-description {
  max-width: 32rem;
  font-family: var(--font-body);
  font-size: 1rem;
  line-height: 1.6;
  color: var(--gray-muted);
}

.hero-cta {
  display: flex;
  align-items: center;
  gap: 1rem;
  margin-top: 1rem;
}

.hero-btn-pill {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.75rem;
  background: var(--primary);
  color: var(--bg-light);
  padding: 0.5rem 1.25rem;
  border-radius: 3px;
  text-decoration: none;
  font-family: var(--font-body);
  font-weight: 700;
  font-size: 0.775rem;
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  width: 160px;
  height: 36px;
}

.hero-btn-pill:hover {
  transform: translateY(-2px);
  background: #e66a00;
}

.hero-btn-pill .material-icons {
  transition: transform 0.3s ease;
  font-size: 20px;
}

.hero-btn-pill:hover .material-icons {
  transform: translateX(4px);
}

.hero-btn-secondary {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  background: transparent;
  color: var(--charcoal-black);
  padding: 0.5rem 1.25rem;
  border-radius: 3px;
  text-decoration: none;
  font-family: var(--font-body);
  font-weight: 600;
  font-size: 0.875rem;
  transition: all 0.3s ease;
  border: 1px solid rgba(0, 0, 0, 0.1);
  width: 160px;
  height: 36px;
}

.hero-btn-secondary:hover {
  background: rgba(0, 0, 0, 0.03);
  border-color: rgba(0, 0, 0, 0.2);
  transform: translateY(-2px);
}

.hero-btn-secondary .material-icons {
  font-size: 24px;
  color: var(--primary);
}

.hero-features-list {
  display: flex;
  align-items: center;
  gap: 1.5rem;
  margin-top: 4.5rem; /* Increased from 1.5rem for more gap below CTA */
}

.hero-feature-item {
  display: flex;
  align-items: center;
  gap: 0.4rem;
  color: var(--gray-muted);
  font-family: var(--font-body);
  font-size: 0.85rem;
  font-weight: 500;
}

.hero-feature-item .material-icons {
  color: var(--primary);
  font-size: 1.1rem;
}

.hero-trust-text {
  grid-column: 1;
  grid-row: 2;
  margin-top: 4rem; /* Reduced from 10rem to lessen top gap */
  font-family: var(--font-body);
  font-size: 0.85rem; /* Slightly smaller for better hierarchy */
  font-weight: 600;
  color: var(--gray-muted);
  text-transform: uppercase;
  letter-spacing: 0.05em;
}

/* Right Side: Visuals */
.hero-visuals {
  position: relative;
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
  grid-column: 2;
  grid-row: 1 / 3;
  margin-top: 2rem;
}

.visual-main {
  position: relative;
  width: 100%;
  border-radius: 3px;
  overflow: visible;
  box-shadow: 0 25px 50px -12px rgba(0, 0, 0, 0.1);
}

.main-image {
  width: 100%;
  aspect-ratio: 4/3;
  object-fit: cover;
  border-radius: 3px;
  display: block;
}

.visual-badge {
  position: absolute;
  top: -20px;
  left: -20px;
  width: 60px;
  height: 60px;
  background-color: var(--primary-black);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 10px 15px -3px rgba(0, 0, 0, 0.3);
  z-index: 10;
}

.visual-badge .material-icons {
  font-size: 28px;
  color: var(--primary, #db6700);
}

.visual-card {
  background-color: var(--primary-black);
  border-radius: 3px;
  padding: 1rem 1.25rem;
  color: var(--bg-light);
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
}

.card-header {
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

.header-line {
  width: 30px;
  height: 1px;
  background-color: var(--gray-muted);
}

.header-text {
  font-family: var(--font-body);
  font-size: 0.75rem;
  font-weight: 600;
  color: var(--gray-muted);
  text-transform: uppercase;
  letter-spacing: 0.05em;
}

.card-body {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 1.5rem;
}

.card-title {
  font-family: var(--font-heading);
  font-size: 1.15rem;
  font-weight: 600;
  line-height: 1.3;
  margin: 0;
  color: var(--bg-light);
}

.card-chart {
  display: flex;
  align-items: flex-end;
  gap: 6px;
  height: 60px;
}

.bar {
  width: 20px;
  background-color: var(--primary, #db6700);
  border-radius: 3px;
}

.bar-1 {
  height: 40%;
  opacity: 0.5;
}
.bar-2 {
  height: 70%;
  opacity: 0.8;
}
.bar-3 {
  height: 100%;
}

/* Responsive Styles */
@media (max-width: 1024px) {
  .hero-container {
    grid-template-columns: 1fr;
    grid-template-rows: auto;
    gap: 3rem;
    text-align: center;
    padding: 2rem 1.5rem;
  }

  .hero-content {
    grid-column: 1;
    grid-row: auto;
    align-items: center;
    order: 1;
    margin-top: 0;
  }

  .hero-visuals {
    grid-column: 1;
    grid-row: auto;
    max-width: 600px;
    margin: 0 auto;
    order: 2;
    margin-top: 0;
  }

  .hero-trust-text {
    grid-column: 1;
    grid-row: auto;
    order: 3;
    margin-top: 4rem;
  }

  .main-image {
    aspect-ratio: auto;
    height: 300px;
  }
}

@media (max-width: 640px) {
  .hero-section {
    padding-top: 80px;
  }

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

  .visual-badge {
    width: 60px;
    height: 60px;
    top: -15px;
    left: -15px;
  }

  .card-title {
    font-size: 1.25rem;
  }

  .card-chart {
    height: 60px;
  }
  .hero-cta {
    display: grid;
    grid-template-columns: 1fr;
    gap: 1.5rem;
  }

  .main-image {
    height: 220px;
  }
}
