/* ============================================================
   GLOW-UP.CSS — BachatAI
   Your Financial Glow-Up — 3 milestone cards with timeline
   ============================================================ */

#glow-up {
  background: var(--color-bg);
  padding: var(--space-2xl) 0;
  overflow: hidden;
}

/* ── HEADER ───────────────────────────────────────────────── */
.gu-header {
  text-align: center;
  margin-bottom: 80px;
  opacity: 0;
  transform: translateY(30px);
}

.gu-heading {
  font-family: var(--font-display);
  font-size: clamp(32px, 4vw, 56px);
  font-weight: 800;
  color: var(--color-navy);
  letter-spacing: -0.03em;
  line-height: 1.1;
  margin-top: 8px;
}

.gu-sub {
  font-size: var(--text-base);
  color: var(--color-muted);
  margin-top: 14px;
}

/* ── TIMELINE WRAPPER ─────────────────────────────────────── */
.gu-timeline {
  max-width: 1040px;
  margin: 0 auto;
  padding: 0 clamp(20px, 5vw, 60px);
  position: relative;
}

/* ── CONNECTOR LINE ───────────────────────────────────────── */
.gu-connector {
  position: absolute;
  top: 44px;
  left: calc(clamp(20px, 5vw, 60px) + 155px);
  right: calc(clamp(20px, 5vw, 60px) + 155px);
  height: 2px;
  background: linear-gradient(90deg, #F59E0B 0%, #3B82F6 50%, #00C853 100%);
  transform-origin: left center;
  transform: scaleX(0);
}

/* ── CARDS GRID ───────────────────────────────────────────── */
.gu-cards {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
  position: relative;
}

/* ── CARD WRAPPER ─────────────────────────────────────────── */
.gu-card-wrap {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 20px;
}

/* ── DOT + PERIOD LABEL ───────────────────────────────────── */
.gu-dot-wrap {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 8px;
  z-index: 2;
}

.gu-dot {
  width: 16px;
  height: 16px;
  border-radius: 50%;
  border: 3px solid;
  background: var(--color-white);
  opacity: 0;
  transform: scale(0);
}

.gu-card-wrap:nth-child(1) .gu-dot { border-color: #F59E0B; }
.gu-card-wrap:nth-child(2) .gu-dot { border-color: #3B82F6; }
.gu-card-wrap:nth-child(3) .gu-dot { border-color: #00C853; background: #00C853; }

.gu-period {
  font-family: var(--font-display);
  font-size: var(--text-xs);
  font-weight: 800;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  opacity: 0;
  transform: translateY(8px);
}

.gu-card-wrap:nth-child(1) .gu-period { color: #92400E; }
.gu-card-wrap:nth-child(2) .gu-period { color: #1E3A8A; }
.gu-card-wrap:nth-child(3) .gu-period { color: #065F46; }

/* ── CARD ─────────────────────────────────────────────────── */
.gu-card {
  width: 100%;
  border-radius: 32px;
  padding: 36px 32px;
  position: relative;
  overflow: hidden;
  opacity: 0;
  transform: scale(0.88) translateY(20px);
  box-shadow: var(--shadow-sm);
  transition: box-shadow var(--duration-base) var(--ease-out),
              transform var(--duration-base) var(--ease-out);
  cursor: default;
}

.gu-card:hover {
  box-shadow: var(--shadow-lg);
}

/* Colored top border */
.gu-card::before {
  content: '';
  position: absolute;
  top: 0; left: 0; right: 0;
  height: 3px;
  border-radius: 32px 32px 0 0;
}

.gu-card-wrap:nth-child(1) .gu-card { background: #FFFBEB; }
.gu-card-wrap:nth-child(1) .gu-card::before { background: #F59E0B; }

.gu-card-wrap:nth-child(2) .gu-card { background: #EFF6FF; }
.gu-card-wrap:nth-child(2) .gu-card::before { background: #3B82F6; }

.gu-card-wrap:nth-child(3) .gu-card { background: #ECFDF5; }
.gu-card-wrap:nth-child(3) .gu-card::before { background: #00C853; }

/* ── ICON ─────────────────────────────────────────────────── */
.gu-icon {
  font-size: 36px;
  margin-bottom: 16px;
  display: block;
  line-height: 1;
}

/* ── TAG ──────────────────────────────────────────────────── */
.gu-tag {
  display: inline-flex;
  align-items: center;
  border-radius: var(--radius-full);
  padding: 4px 14px;
  font-size: var(--text-xs);
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  margin-bottom: 16px;
}

.gu-card-wrap:nth-child(1) .gu-tag { background: rgba(245,158,11,0.15); color: #92400E; }
.gu-card-wrap:nth-child(2) .gu-tag { background: rgba(59,130,246,0.15); color: #1E3A8A; }
.gu-card-wrap:nth-child(3) .gu-tag { background: rgba(0,200,83,0.15);   color: #065F46; }

/* ── TITLE ────────────────────────────────────────────────── */
.gu-card-title {
  font-family: var(--font-display);
  font-size: clamp(20px, 2vw, 26px);
  font-weight: 800;
  color: var(--color-navy);
  letter-spacing: -0.02em;
  line-height: 1.15;
  margin-bottom: 12px;
}

/* ── BODY ─────────────────────────────────────────────────── */
.gu-card-body {
  font-size: var(--text-sm);
  color: var(--color-muted);
  line-height: 1.7;
  margin-bottom: 20px;
}

/* ── STAT PILL ────────────────────────────────────────────── */
.gu-stat {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  border-radius: var(--radius-full);
  padding: 8px 16px;
  font-size: var(--text-sm);
  font-weight: 700;
}

.gu-card-wrap:nth-child(1) .gu-stat { background: rgba(245,158,11,0.12); color: #92400E; }
.gu-card-wrap:nth-child(2) .gu-stat { background: rgba(59,130,246,0.12); color: #1E3A8A; }
.gu-card-wrap:nth-child(3) .gu-stat { background: rgba(0,200,83,0.15);   color: #065F46; }

/* ── RESPONSIVE ───────────────────────────────────────────── */
@media (max-width: 900px) {
  .gu-connector { display: none; }

  .gu-cards {
    grid-template-columns: 1fr;
    max-width: 460px;
    margin: 0 auto;
  }

  .gu-card-wrap {
    flex-direction: row;
    align-items: flex-start;
    gap: 16px;
  }

  .gu-dot-wrap {
    flex-direction: column;
    align-items: center;
    padding-top: 36px;
    min-width: 60px;
  }

  .gu-card { flex: 1; }
}

@media (max-width: 600px) {
  .gu-card {
    padding: 28px 24px;
    border-radius: 24px;
  }

  .gu-card-wrap {
    flex-direction: column;
    align-items: center;
  }

  .gu-dot-wrap {
    flex-direction: row;
    padding-top: 0;
  }
}
