/* ============================================================
   HERO
   ============================================================ */
.hero {
  position: relative;
}
.hero__inner {
  max-width: var(--container);
  margin-inline: auto;
  padding: 24px var(--gutter) 64px;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 60px;
  align-items: center;
  min-height: calc(88vh - var(--nav-h));
}

/* LEFT */
.hero__copy { max-width: 540px; }

.hero__eyebrow {
  display: inline-block;
  padding: 7px 16px;
  background: rgba(58, 80, 191, 0.08);
  color: var(--brand-1);
  border-radius: var(--r-pill);
  font-size: 0.85rem;
  font-weight: 600;
  margin-bottom: 28px;
  opacity: 0;
  animation: fadeUp 0.7s ease-out 0.1s forwards;
}

.hero__title {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: clamp(2.6rem, 4.5vw, 4rem);
  line-height: 1.08;
  letter-spacing: -0.025em;
  color: var(--ink);
  margin-bottom: 24px;
  opacity: 0;
  animation: fadeUp 0.8s ease-out 0.25s forwards;
}
.hero__brand {
  background: var(--brand-grad);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

.hero__desc {
  font-size: 1.15rem;
  color: var(--ink-soft);
  line-height: 1.6;
  margin-bottom: 36px;
  opacity: 0;
  animation: fadeUp 0.8s ease-out 0.4s forwards;
}
.hero__desc strong {
  color: var(--brand-2);
  font-weight: 600;
}

.hero__cta-row {
  display: flex;
  gap: 16px;
  align-items: center;
  flex-wrap: wrap;
  opacity: 0;
  animation: fadeUp 0.8s ease-out 0.55s forwards;
}

.hero__trust {
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
  margin-top: 32px;
  opacity: 0;
  animation: fadeUp 0.8s ease-out 0.7s forwards;
  list-style: none;
  padding: 0;
}
.hero__trust li {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  font-size: 0.85rem;
  color: var(--ink-soft);
  font-weight: 500;
  padding: 7px 14px;
  background: #fff;
  border: 1px solid rgba(10, 22, 56, 0.06);
  border-radius: var(--r-pill);
  box-shadow: 0 2px 6px -2px rgba(10, 22, 56, 0.05);
  transition: border-color 0.22s ease, color 0.22s ease, transform 0.32s cubic-bezier(0.34, 1.4, 0.64, 1);
}
.hero__trust li:hover {
  border-color: rgba(58, 80, 191, 0.25);
  color: var(--ink);
  transform: translateY(-2px);
}
.hero__trust svg {
  color: var(--success);
  flex-shrink: 0;
}

@keyframes fadeUp {
  from { opacity: 0; transform: translateY(20px); }
  to   { opacity: 1; transform: translateY(0); }
}

/* RIGHT — chart */
.hero__visual {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
}
.chart {
  display: flex;
  flex-direction: column;
  width: 100%;
}
.chart__stat { margin-bottom: 28px; }
.chart__label {
  font-family: var(--font-num);
  font-size: 13px;
  color: var(--ink-soft);
  margin-bottom: 10px;
  letter-spacing: 0.01em;
}
.chart__num {
  font-family: var(--font-num);
  font-size: 56px;
  line-height: 1;
  letter-spacing: -0.03em;
  font-variant-numeric: tabular-nums;
  color: var(--ink);
}
.chart__delta {
  font-family: var(--font-num);
  font-size: 14px;
  color: var(--brand-3);
  margin-top: 10px;
  font-weight: 600;
  display: inline-flex;
  align-items: center;
  gap: 6px;
}
.chart__delta::before { content: '↑'; font-weight: 600; }

.chart__svg {
  width: 100%;
  height: 400px;
  display: block;
  overflow: visible;
}

/* Chart animations default-paused; .hero.is-in lets them run.
   This ensures they only start once the user has actually reached the hero. */
.chart__line,
.chart__area,
.chart__milestone--m1,
.chart__milestone--m2,
.chart__end,
.chart__end-ring {
  animation-play-state: paused;
}
.hero.is-in .chart__line,
.hero.is-in .chart__area,
.hero.is-in .chart__milestone--m1,
.hero.is-in .chart__milestone--m2,
.hero.is-in .chart__end,
.hero.is-in .chart__end-ring {
  animation-play-state: running;
}

.chart__line {
  fill: none;
  stroke: url(#lineGradient);
  stroke-width: 2.5;
  stroke-linecap: round;
  stroke-linejoin: round;
  stroke-dasharray: 1000;
  stroke-dashoffset: 1000;
  animation: drawLine 6s cubic-bezier(0.45, 0, 0.55, 1) infinite;
}
@keyframes drawLine {
  0%        { stroke-dashoffset: 1000; }
  75%, 100% { stroke-dashoffset: 0; }
}

.chart__area {
  fill: url(#areaGradient);
  opacity: 0;
  animation: fillIn 6s cubic-bezier(0.45, 0, 0.55, 1) infinite;
}
@keyframes fillIn {
  0%, 55%   { opacity: 0; }
  80%, 100% { opacity: 0.07; }
}

.chart__axis {
  font-family: var(--font-num);
  font-size: 12px;
  fill: var(--ink-soft);
  font-weight: 400;
}
.chart__grid {
  stroke: var(--ink);
  stroke-width: 0.5;
  stroke-dasharray: 2 4;
  opacity: 0.12;
}

.chart__milestone { opacity: 0; }
.chart__milestone--m1 { animation: showM1 6s cubic-bezier(0.45, 0, 0.55, 1) infinite; }
.chart__milestone--m2 { animation: showM2 6s cubic-bezier(0.45, 0, 0.55, 1) infinite; }
@keyframes showM1 {
  0%, 30%   { opacity: 0; transform: translateY(6px); }
  40%, 100% { opacity: 1; transform: translateY(0); }
}
@keyframes showM2 {
  0%, 55%   { opacity: 0; transform: translateY(6px); }
  65%, 100% { opacity: 1; transform: translateY(0); }
}

.chart__dot {
  fill: transparent;
  stroke-width: 2.5;
}
.chart__dot--builder { stroke: var(--brand-1); }
.chart__dot--bundle  { stroke: var(--brand-3); }

.chart__vline {
  stroke-width: 0.5;
  stroke-dasharray: 3 3;
  opacity: 0.35;
}
.chart__vline--builder { stroke: var(--brand-1); }
.chart__vline--bundle  { stroke: var(--brand-3); }

.chart__milestone-label {
  font-family: var(--font-num);
  font-size: 13px;
  font-weight: 600;
  fill: var(--ink);
}
.chart__milestone-sub {
  font-family: var(--font-num);
  font-size: 11px;
  fill: var(--ink-soft);
}

.chart__end {
  opacity: 0;
  animation: endShow 6s cubic-bezier(0.45, 0, 0.55, 1) infinite;
}
@keyframes endShow {
  0%, 72%   { opacity: 0; }
  80%, 100% { opacity: 1; }
}
.chart__end-dot { fill: var(--brand-3); }
.chart__end-ring {
  fill: var(--brand-3);
  transform-origin: center;
  animation: ringPulse 2.4s ease-out infinite;
}
@keyframes ringPulse {
  0%   { opacity: 0.55; r: 6; }
  100% { opacity: 0;    r: 26; }
}


/* ----- Hero responsive (extracted from shared @media block) ----- */
@media (max-width: 980px) {
  .hero__inner {
    grid-template-columns: 1fr;
    gap: 50px;
    padding: 20px var(--gutter) 64px;
    text-align: center;
    min-height: auto;
  }
  .hero__copy { margin: 0 auto; }
  .hero__cta-row,
  .hero__trust { justify-content: center; }
  .chart__svg { height: 320px; }
  .chart__num { font-size: 40px; }
}

@media (max-width: 520px) {
  .hero__cta-row { flex-direction: column; width: 100%; }
  .hero__cta-row .btn { width: 100%; }
}

@media (prefers-reduced-motion: reduce) {
  .hero__eyebrow, .hero__title, .hero__desc, .hero__cta-row, .hero__trust,
  .chart__line, .chart__area, .chart__milestone, .chart__end, .chart__end-ring {
    animation: none !important;
    opacity: 1 !important;
    transform: none !important;
  }
  .chart__line { stroke-dashoffset: 0; }
  .chart__area { opacity: 0.07; }
}
