/* =========================================================================
   Relvage — Homepage-only styling (scoped to body.page-home)
   Shared component styling + tokens live in cine.css (home also has .cine).
   This file holds only the home-specific layout: hero, pillars, metrics
   band, process stepper, goals.
   ========================================================================= */

/* ---- Cinematic reveal: hide home hero parts before JS animates them ------- */
html.cinematic .page-home .hero-kicker,
html.cinematic .page-home .home-hero h1,
html.cinematic .page-home .home-hero .hero-copy > p,
html.cinematic .page-home .home-hero .action-row .button,
html.cinematic .page-home .hero-stats li,
html.cinematic .page-home .hero-image,
html.cinematic .page-home .hero-float {
  opacity: 0;
}

/* ---- Hero ----------------------------------------------------------------- */
.page-home .home-hero {
  grid-template-columns: 1.06fr 0.94fr;
  align-items: center;
  gap: 56px;
  padding-top: 36px;
  padding-bottom: 24px;
}

.hero-kicker {
  display: flex;
  align-items: center;
  gap: 18px;
  margin: 0 0 28px;
  color: var(--home-ink);
  font-size: 12.5px;
  font-weight: 700;
  letter-spacing: 0.22em;
  line-height: 1.5;
  text-transform: uppercase;
}

.hero-kicker-line {
  flex: none;
  width: 52px;
  height: 2px;
  border-radius: 999px;
  background: linear-gradient(90deg, var(--home-violet), rgba(94, 23, 235, 0.15));
}

.page-home .home-hero .hero-copy {
  text-align: left;
  justify-items: start;
}

.page-home .home-hero h1 {
  max-width: 18ch;
  margin-bottom: 24px;
  font-size: clamp(44px, 6vw, 72px);
  letter-spacing: -0.02em;
  line-height: 1.02;
}

.page-home .home-hero .hero-copy p {
  max-width: 52ch;
  margin: 0 0 32px;
  font-size: 19px;
  line-height: 1.65;
  color: var(--body);
}

.hero-stats {
  display: grid;
  grid-template-columns: repeat(3, auto);
  gap: 14px 34px;
  margin: 40px 0 0;
  padding: 0;
  list-style: none;
}

.hero-stats li {
  display: grid;
  gap: 4px;
}

.hero-stats strong {
  font-family: var(--font-display);
  font-size: 30px;
  font-weight: 600;
  color: var(--home-ink);
  line-height: 1;
}

.hero-stats span {
  font-size: 13px;
  color: var(--muted);
  max-width: 22ch;
}

.page-home .hero-image {
  position: relative;
  height: 560px;
  border-radius: var(--home-radius-xl);
  border: 1px solid rgba(255, 255, 255, 0.5);
  box-shadow: var(--home-shadow-lift), 0 0 70px rgba(94, 23, 235, 0.12);
}

.page-home .hero-image img {
  filter: saturate(1.02) contrast(1.03);
}

.hero-float {
  position: absolute;
  z-index: 3;
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 12px 16px;
  border: 1px solid rgba(255, 255, 255, 0.55);
  border-radius: 16px;
  background: rgba(255, 255, 255, 0.82);
  backdrop-filter: blur(16px);
  box-shadow: 0 18px 40px rgba(20, 12, 40, 0.18);
  animation: hero-float-drift 7s var(--ease-premium) infinite alternate;
}

.hero-float-top {
  top: 22px;
  left: 22px;
}

.hero-float-bottom {
  right: 22px;
  bottom: 22px;
  animation-delay: -3s;
}

@keyframes hero-float-drift {
  from { transform: translateY(0); }
  to { transform: translateY(-8px); }
}

.hero-float-icon {
  display: grid;
  place-items: center;
  width: 38px;
  height: 38px;
  border-radius: 11px;
  background: linear-gradient(140deg, rgba(94, 23, 235, 0.16), rgba(94, 23, 235, 0.05));
  color: var(--home-violet);
}

.hero-float-icon svg {
  width: 20px;
  height: 20px;
}

.hero-float-text {
  display: grid;
  font-size: 12px;
  line-height: 1.35;
  color: var(--muted);
}

.hero-float-text strong {
  font-size: 13.5px;
  color: var(--home-ink);
}

/* ---- Pillar cards (Authority / Authenticity / Automation) ----------------- */
.pillar-card {
  position: relative;
  padding-top: 36px;
}

.pillar-index {
  position: absolute;
  top: 28px;
  right: 32px;
  font-family: var(--font-display);
  font-size: 30px;
  font-weight: 600;
  color: rgba(94, 23, 235, 0.18);
}

.pillar-card h3 {
  font-size: 26px;
}

/* ---- Metrics band (dark) -------------------------------------------------- */
.metrics-band {
  position: relative;
  overflow: hidden;
  margin-inline: auto;
  color: #fff;
}

.metrics-band .section-shell {
  position: relative;
  z-index: 1;
  padding: 64px 56px;
  border-radius: 32px;
  background:
    radial-gradient(700px 360px at 85% -20%, rgba(124, 58, 237, 0.4), transparent 60%),
    linear-gradient(160deg, #14101f, #0a0712);
  border: 1px solid rgba(124, 58, 237, 0.28);
  box-shadow: 0 40px 90px rgba(20, 12, 40, 0.4);
}

.metrics-head {
  display: grid;
  gap: 14px;
  margin-bottom: 40px;
  max-width: 620px;
}

.metrics-band .eyebrow {
  color: #c4b5fd;
}

.metrics-band .eyebrow::before {
  background: linear-gradient(90deg, #c4b5fd, rgba(196, 181, 253, 0.2));
  box-shadow: none;
}

.metrics-band h2 {
  color: #fff;
  font-size: clamp(30px, 4vw, 44px);
}

.metrics-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 24px;
  margin: 0;
}

.metric {
  padding: 24px;
  border-radius: 18px;
  border: 1px solid rgba(196, 181, 253, 0.16);
  background: rgba(255, 255, 255, 0.04);
}

.metric dt {
  font-family: var(--font-display);
  font-size: clamp(40px, 5vw, 56px);
  font-weight: 600;
  line-height: 1;
  background: linear-gradient(120deg, #fff, #c4b5fd);
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
}

.metric dd {
  margin: 14px 0 0;
  font-size: 14.5px;
  line-height: 1.5;
  color: rgba(255, 255, 255, 0.74);
}

/* ---- Process stepper ------------------------------------------------------ */
.page-home .process-panel {
  position: relative;
  gap: 24px;
  padding: 56px;
  border-radius: var(--home-radius-xl);
}

.page-home .process-panel::after {
  content: "";
  position: absolute;
  top: 92px;
  left: 16%;
  right: 16%;
  height: 2px;
  background: linear-gradient(90deg, transparent, rgba(94, 23, 235, 0.32), transparent);
  z-index: 0;
}

.process-step {
  position: relative;
  z-index: 1;
  display: grid;
  justify-items: center;
  text-align: center;
}

.process-step .feature-icon {
  margin-bottom: 18px;
}

.process-num {
  display: grid;
  place-items: center;
  width: 30px;
  height: 30px;
  margin-bottom: 18px;
  border-radius: 999px;
  background: var(--home-violet);
  color: #fff;
  font-size: 14px;
  font-weight: 800;
  box-shadow: 0 8px 20px rgba(94, 23, 235, 0.35);
}

/* ---- Goals ---------------------------------------------------------------- */
.goals-section .goal-grid {
  grid-auto-rows: 1fr;
}

.goals-section .goal-card .number-tag {
  background: none;
}

/* ---- Responsive ----------------------------------------------------------- */
@media (max-width: 1040px) {
  .page-home .home-hero {
    grid-template-columns: 1fr;
    gap: 40px;
  }

  .page-home .hero-image {
    height: 440px;
  }

  .metrics-grid {
    grid-template-columns: repeat(2, 1fr);
  }

  .page-home .process-panel::after {
    display: none;
  }
}

@media (max-width: 680px) {
  .page-home .home-hero h1 {
    max-width: 100%;
  }

  .hero-stats {
    grid-template-columns: 1fr;
    gap: 18px;
  }

  .hero-float {
    display: none;
  }

  .page-home .hero-image {
    height: 340px;
  }

  .metrics-band .section-shell {
    padding: 40px 24px;
    border-radius: 24px;
  }

  .metrics-grid {
    grid-template-columns: 1fr;
  }

  .page-home .process-panel {
    padding: 32px 24px;
  }

  .pillar-index {
    top: 24px;
    right: 24px;
  }
}

@media (prefers-reduced-motion: reduce) {
  .hero-float {
    animation: none !important;
  }
}
