.hero-section {
  position: relative;
  width: 100%;
  background: linear-gradient(to bottom right, var(--color-hero-start), var(--color-hero-mid), var(--color-hero-end));
  color: #fff;
  margin-top: 0;
}

.hero-container {
  padding: clamp(4rem, 8vh, 7rem) 0.3rem;
}

@media (min-width: 640px) {
  .hero-container {
    padding: clamp(4rem, 8vh, 7rem) 1.5rem;
  }
}

.hero-grid {
  display: grid;
  gap: 2.5rem;
  align-items: center;
  justify-items: center;
  text-align: center;
}

.hero-content {
  width: 100%;
  max-width: 100%;
}

.hero-content h1 {
  font-size: clamp(2.5rem, 6vw, 4.5rem);
  font-weight: 800;
  line-height: 1.1;
  margin: 0 0 1.5rem 0;
  white-space: normal;
  word-break: keep-all;
  max-width: 100%;
}

.hero-subtitle {
  font-size: 1.125rem;
  color: rgba(255, 255, 255, 0.9);
  margin: 0 0 2rem 0;
}

.hero-highlights {
  display: flex;
  flex-direction: column;
  gap: 1rem;
  margin-top: 2rem;
}

@media (min-width: 640px) {
  .hero-highlights {
    flex-direction: row;
    justify-content: center;
    gap: 2rem;
  }
}

.highlight-item {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  font-size: 0.9375rem;
  color: rgba(255, 255, 255, 0.95);
  font-weight: 500;
}

.highlight-icon {
  width: 24px;
  height: 24px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.2);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 0.75rem;
  color: #fff;
  flex-shrink: 0;
  border: 1px solid rgba(255, 255, 255, 0.3);
}

.hero-cta {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
  margin-bottom: 2.5rem;
}

.hero-primary-button {
  border-radius: 999px;
  background: #fff;
  color: #0f172a;
  padding: 0.625rem 1.25rem;
  font-size: 0.875rem;
  font-weight: 600;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
  transition: background 150ms ease, transform 150ms ease;
}

.hero-primary-button:hover {
  background: rgba(255, 255, 255, 0.9);
  transform: translateY(-1px);
}

.hero-outline-button {
  border-radius: 999px;
  border: 1px solid rgba(255, 255, 255, 0.6);
  color: #fff;
  padding: 0.625rem 1.25rem;
  font-size: 0.875rem;
  font-weight: 600;
  background: transparent;
  transition: background 150ms ease;
}

.hero-outline-button:hover {
  background: rgba(255, 255, 255, 0.1);
}

.why-choose-section {
  background: #f9fafb;
  padding: clamp(4rem, 6vh, 5rem) 0;
}

.why-title {
  font-size: clamp(1.875rem, 4vw, 2.5rem);
  font-weight: 800;
  letter-spacing: -0.025em;
  color: var(--color-text);
  margin: 0;
  text-align: center;
}

.why-subtitle {
  font-size: clamp(1rem, 2vw, 1.125rem);
  color: var(--color-muted);
  margin: 1rem auto 0 auto;
  text-align: center;
  max-width: 600px;
}

/* Bento Grid Layout */
.bento-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 1.5rem;
  margin-top: 3rem;
}

@media (min-width: 768px) {
  .bento-grid {
    grid-template-columns: 1.25fr 1fr; /* Left column slightly wider */
    grid-template-rows: 1fr 1fr;       /* Two rows */
    gap: 1.5rem;
  }
  
  /* Main card spans both rows on the left */
  .card-main {
    grid-row: 1 / span 2;
    grid-column: 1;
  }
}

/* Card Styles */
.bento-card {
  background: #fff;
  border-radius: 20px;
  padding: 2rem;
  border: 1px solid rgba(15, 23, 42, 0.08);
  box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.02);
  transition: transform 0.2s ease, box-shadow 0.2s ease;
  display: flex;
  flex-direction: column;
  position: relative;
  overflow: hidden;
}

.bento-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 12px 24px -4px rgba(0, 0, 0, 0.08);
  border-color: rgba(15, 23, 42, 0.12);
}

/* Specific Card Styling */
.card-main {
  justify-content: space-between;
  background: linear-gradient(to bottom right, #fff, #f8fafc);
}

.card-sub {
  justify-content: flex-start;
  gap: 0.75rem;
  padding: 1.2rem;
}

/* Typography inside cards */
.bento-card h3 {
  font-size: 1.25rem;
  font-weight: 700;
  margin: 0 0 0.75rem 0;
  color: var(--color-text);
}

.bento-card p {
  font-size: 0.95rem;
  color: var(--color-muted);
  line-height: 1.6;
  margin: 0;
}

/* Icons */
.bento-icon {
  width: 48px;
  height: 48px;
  border-radius: 12px;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 1.25rem;
}

.bento-icon svg {
  width: 24px;
  height: 24px;
}

.icon-red {
  background: rgba(239, 68, 68, 0.1);
  color: #ef4444;
}

.icon-blue {
  background: rgba(59, 130, 246, 0.1);
  color: #3b82f6;
}

.icon-orange {
  background: rgba(249, 115, 22, 0.1);
  color: #f97316;
}

/* Chart Container */
.chart-container {
  margin-top: auto;
  width: 100%;
  height: 180px; /* Taller to fill space */
  position: relative;
  padding-top: 2rem;
}

/* Floating Badge */
.chart-badge {
  position: absolute;
  top: 0;
  right: 0;
  background: #fff;
  border: 1px solid rgba(16, 185, 129, 0.2);
  box-shadow: 0 4px 12px rgba(16, 185, 129, 0.15);
  border-radius: 99px;
  padding: 0.5rem 0.875rem;
  display: flex;
  flex-direction: column;
  align-items: center;
  line-height: 1;
  z-index: 2;
  animation: floatBadge 3s ease-in-out infinite;
}

@keyframes floatBadge {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(-4px); }
}

.badge-label {
  font-size: 0.625rem;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  color: var(--color-muted);
  margin-bottom: 0.25rem;
}

.badge-value {
  font-size: 1.125rem;
  font-weight: 800;
  color: var(--color-primary);
}

/* Histogram / Bar Chart */
.bar-chart {
  display: flex;
  justify-content: space-evenly; /* More even spacing */
  align-items: flex-end;
  height: 100%;
  padding-top: 1rem;
  border-bottom: 1px solid rgba(15, 23, 42, 0.08);
  gap: 0.5rem; /* Tighter gap between bars */
}

.bar-group {
  flex: 1;
  height: 100%;
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  align-items: center;
  position: relative;
  max-width: 48px; /* Wider bars */
}

.bar-stack {
  width: 100%;
  width: 32px; /* Thicker bars */
  height: 100%;
  display: flex;
  flex-direction: column; /* Stack elements vertically */
  justify-content: flex-end; /* Align to bottom */
  border-radius: 4px 4px 0 0;
  overflow: hidden;
}

.bar-fill {
  width: 100%;
  transition: height 1s cubic-bezier(0.4, 0, 0.2, 1);
}

/* The "Base" part (Old 401k) - Subtle gray/blue */
.bar-base {
  width: 100%;
  background-color: #cbd5e1; /* slate-300 */
  border-radius: 2px 2px 0 0;
  margin-top: 2px; /* Tiny gap between stacks */
  transition: height 0.8s ease-out;
}

/* The "Gain" part (Rollover) - Bright Brand Green */
.bar-gain {
  width: 100%;
  background-color: var(--color-primary);
  border-radius: 2px 2px 2px 2px;
  opacity: 0.9;
  transition: height 1s ease-out;
}

/* Labels below bars */
.bar-label {
  margin-top: 0.5rem;
  font-size: 0.75rem;
  color: var(--color-muted);
  font-weight: 500;
  position: absolute;
  bottom: -1.5rem;
  white-space: nowrap;
}

/* Initial Animation State (Optional, handled by CSS transitions if loaded) */
@keyframes growBar {
  from { height: 0; }
}

.how-section {
  margin-top: 0;
  background: #fff;
  padding: clamp(4rem, 6vh, 5rem) 0;
  color: var(--color-text);
}

.how-title {
  font-size: clamp(2rem, 4vw, 3rem);
  font-weight: 800;
  letter-spacing: -0.025em;
  color: var(--color-text);
  margin: 0;
  text-align: center;
}

.how-subtitle {
  font-size: clamp(1rem, 2vw, 1.125rem);
  color: var(--color-muted);
  margin: 1rem 0 0 0;
  text-align: center;
}

.how-steps {
  margin-top: clamp(3rem, 4vw, 4rem);
  display: flex;
  flex-direction: column;
  gap: clamp(3rem, 4vw, 4rem);
}

.how-step {
  display: grid;
  grid-template-columns: 1fr;
  gap: clamp(2rem, 3vw, 3rem);
  align-items: center;
}

@media (min-width: 1024px) {
  .how-step {
    grid-template-columns: 1fr 1fr;
  }
  
  .step-reverse {
    direction: rtl;
  }
  
  .step-reverse > * {
    direction: ltr;
  }
}

.step-content {
  display: flex;
  flex-direction: column;
  gap: 1rem;
}

.step-header {
  display: flex;
  align-items: center;
  gap: 1rem;
}

.step-number {
  width: 48px;
  height: 48px;
  border-radius: 50%;
  background: rgba(15, 186, 129, 0.1);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.5rem;
  font-weight: 700;
  color: var(--color-primary);
  flex-shrink: 0;
  border: 2px solid rgba(15, 186, 129, 0.2);
}

.step-title {
  font-size: clamp(1.5rem, 3vw, 1.75rem);
  font-weight: 700;
  color: var(--color-text);
  margin: 0;
  line-height: 1.2;
}

.step-description {
  font-size: 1rem;
  color: var(--color-muted);
  line-height: 1.6;
  margin: 0;
}

.step-features {
  list-style: none;
  padding: 0;
  margin: 0.5rem 0 0 0;
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
}

.step-features li {
  font-size: 0.9375rem;
  color: var(--color-muted);
  line-height: 1.5;
  padding-left: 1.75rem;
  position: relative;
}

.step-features li::before {
  content: "✓";
  position: absolute;
  left: 0;
  color: #fff;
  font-weight: 700;
  font-size: 0.75rem;
  width: 20px;
  height: 20px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: var(--color-primary);
  border-radius: 50%;
}

.step-icon {
  display: flex;
  justify-content: center;
  align-items: center;
}

.icon-card {
  width: clamp(120px, 15vw, 140px);
  height: clamp(120px, 15vw, 140px);
  background: linear-gradient(135deg, rgba(15, 186, 129, 0.1), rgba(14, 165, 233, 0.1));
  border-radius: 20px;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.08);
  border: 1px solid rgba(15, 186, 129, 0.15);
}

.icon-card svg {
  width: clamp(56px, 7vw, 64px);
  height: clamp(56px, 7vw, 64px);
  color: var(--color-primary);
}

.placeholder-section {
  margin-top: 4rem;
  padding: 2rem;
  border: 1px dashed var(--color-outline);
  border-radius: 24px;
  background: rgba(255, 255, 255, 0.65);
  color: var(--color-muted);
  text-align: center;
  font-weight: 500;
}

@media (min-width: 1024px) {
  .hero-grid {
    max-width: 900px;
    margin: 0 auto;
  }
}

.cta-section {
  position: relative;
  padding: clamp(6rem, 10vh, 8rem) 0;
  background-image: linear-gradient(rgba(0, 0, 0, 0.35), rgba(0, 0, 0, 0.25)), 
                    url('https://images.pexels.com/photos/1535244/pexels-photo-1535244.jpeg?auto=compress&cs=tinysrgb&dpr=2&w=1920');
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
  color: #fff;
  text-align: center;
}

.cta-content {
  position: relative;
  z-index: 1;
  max-width: 700px;
  margin: 0 auto;
}

.cta-title {
  font-size: clamp(2rem, 5vw, 3rem);
  font-weight: 800;
  letter-spacing: -0.025em;
  color: #fff;
  margin: 0 0 1rem 0;
  line-height: 1.1;
}

.cta-subtitle {
  font-size: clamp(1.125rem, 2.5vw, 1.25rem);
  color: rgba(255, 255, 255, 0.95);
  margin: 0 0 2.5rem 0;
  line-height: 1.6;
}

.cta-buttons {
  display: flex;
  flex-direction: column;
  gap: 1rem;
  justify-content: center;
  align-items: center;
  margin-bottom: 2rem;
}

@media (min-width: 640px) {
  .cta-buttons {
    flex-direction: row;
    gap: 1rem;
  }
}

.cta-primary-button {
  display: inline-block;
  padding: 1rem 2.5rem;
  font-size: 1.125rem;
  font-weight: 700;
  color: var(--color-primary);
  background: #fff;
  border-radius: 999px;
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.2);
  transition: all 150ms ease;
}

.cta-primary-button:hover {
  transform: translateY(-2px);
  box-shadow: 0 12px 32px rgba(0, 0, 0, 0.25);
  background: rgba(255, 255, 255, 0.95);
}

.cta-secondary-button {
  display: inline-block;
  padding: 1rem 2.5rem;
  font-size: 1.125rem;
  font-weight: 600;
  color: #fff;
  background: transparent;
  border: 2px solid rgba(255, 255, 255, 0.8);
  border-radius: 999px;
  transition: all 150ms ease;
}

.cta-secondary-button:hover {
  background: rgba(255, 255, 255, 0.15);
  border-color: #fff;
  transform: translateY(-2px);
}

.cta-disclaimer {
  font-size: 0.9375rem;
  color: rgba(255, 255, 255, 0.85);
  margin: 0;
  font-weight: 500;
}

