/* pages/home.css — Homepage specific styles (mockup v2) */

/* ========================================
   Shared Section Typography
   ======================================== */
.home-eyebrow {
  font-weight: var(--font-light);
  font-size: 13px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--color-accent);
  margin-bottom: var(--space-md);
  text-align: center;
}

.home-eyebrow--white {
  color: rgba(255, 255, 255, 0.55);
}

.home-headline {
  font-weight: var(--font-semibold);
  font-size: clamp(32px, 4vw, 48px);
  color: var(--color-primary);
  letter-spacing: 0.02em;
  line-height: 1.2;
  margin-bottom: var(--space-md);
  text-align: center;
}

.home-headline--white {
  color: var(--color-white);
}

.home-subhead {
  font-weight: var(--font-light);
  font-size: clamp(16px, 1.5vw, 18px);
  color: var(--color-accent);
  line-height: 1.6;
  letter-spacing: 0.01em;
  max-width: 480px;
  margin-left: auto;
  margin-right: auto;
}

.home-subhead--white {
  color: rgba(255, 255, 255, 0.62);
}

.home-dash__copy .home-subhead {
  margin-left: 0;
  margin-right: 0;
}


/* ========================================
   Section 1: Hero — Two-column layout (matches services hero)
   ======================================== */

/* Hero wrapper — two-column layout */
.home-hero__wrapper {
  display: grid;
  grid-template-columns: 1fr;
  gap: var(--space-2xl);
  align-items: center;
  width: 100%;
}

@media (min-width: 1024px) {
  .home-hero__wrapper {
    grid-template-columns: 1fr 1fr;
    gap: var(--space-3xl);
  }
}

.home-hero__content {
  position: relative;
  z-index: 2;
}

/* Label with line decoration */
.home-hero__label {
  display: flex;
  align-items: center;
  gap: var(--space-md);
  margin-bottom: var(--space-xl);
}

.home-hero__label-line {
  display: inline-block;
  width: 40px;
  height: 2px;
  background-color: var(--color-primary);
  flex-shrink: 0;
}

.home-hero__label-text {
  font-family: var(--font-family);
  font-size: 0.75rem;
  font-weight: 500;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  color: var(--color-accent);
}

/* Heading — teal accent color */
.home-hero__heading {
  font-size: clamp(2rem, 5vw, 3.5rem);
  line-height: 1.2;
  margin-bottom: var(--space-lg);
  color: var(--color-primary);
  font-weight: 600;
}

.home-hero__heading em {
  font-style: normal;
  color: var(--color-accent);
  font-weight: var(--font-light);
}

/* Subtitle */
.home-hero__subtitle {
  font-family: var(--font-family);
  font-size: clamp(1rem, 2vw, 1.25rem);
  font-weight: 400;
  color: var(--color-accent);
  margin-bottom: var(--space-2xl);
}

/* CTA buttons row */
.home-hero__cta {
  display: flex;
  flex-direction: column;
  align-items: stretch;
  gap: var(--space-md);
}

.home-hero__cta .btn {
  width: 100%;
  text-align: center;
}

@media (min-width: 768px) {
  .home-hero__cta {
    flex-direction: row;
    align-items: initial;
    flex-wrap: wrap;
  }

  .home-hero__cta .btn {
    width: auto;
  }
}


/* Ecosystem visual — hidden on mobile, shown on desktop */
.home-hero__visual {
  display: none;
  position: relative;
  z-index: 2;
}

@media (min-width: 1024px) {
  .home-hero__visual {
    display: flex;
    align-items: center;
    justify-content: center;
  }
}

.home-hero__visual img {
  width: 520px;
  height: auto;
  max-width: 100%;
  object-fit: contain;
}

@media (min-width: 1200px) {
  .home-hero__visual img {
    width: 580px;
  }
}

/* Scroll indicator */
.home-hero__scroll {
  position: absolute;
  bottom: var(--space-xl);
  left: 50%;
  transform: translateX(-50%);
  z-index: 2;
  text-align: center;
}

.home-hero__scroll-text {
  font-family: var(--font-family);
  font-size: 0.6875rem;
  font-weight: 500;
  letter-spacing: 0.2em;
  color: var(--color-accent);
  text-transform: uppercase;
}



/* ========================================
   Section 2: Stats Strip
   ======================================== */
.home-stats {
  background: var(--color-primary);
  padding: var(--space-3xl) 0;
}

.home-stats__grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: var(--space-xl) 0;
}

.home-stats__item {
  text-align: center;
  padding: 0 var(--space-md);
}

.home-stats__num {
  font-weight: var(--font-medium);
  font-size: 2.2rem;
  color: var(--color-white);
  font-variant-numeric: tabular-nums;
  line-height: 1;
  margin-bottom: var(--space-sm);
}

.home-stats__num sup {
  font-size: 1rem;
  font-weight: var(--font-light);
}

.home-stats__label {
  font-weight: var(--font-light);
  font-size: 13px;
  letter-spacing: 0.06em;
  color: rgba(255, 255, 255, 0.5);
  line-height: 1.4;
}

@media (min-width: 768px) {
  .home-stats__grid {
    grid-template-columns: repeat(4, 1fr);
    gap: 0;
  }

  .home-stats__item {
    padding: 0 var(--space-xl);
    border-right: 1px solid rgba(255, 255, 255, 0.12);
  }

  .home-stats__item:last-child {
    border-right: none;
  }

  .home-stats__num {
    font-size: 2.6rem;
  }
}


/* ========================================
   Section 3: Value Proposition
   ======================================== */
.home-value {
  background: var(--color-bg-alt);
  padding: var(--space-4xl) 0;
  text-align: center;
}

.home-value p {
  margin-left: auto;
  margin-right: auto;
}

.home-value__grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: var(--space-lg);
  margin-top: var(--space-3xl);
}

.home-value__card {
  background: var(--color-bg-main);
  border-radius: var(--radius-card-lg);
  padding: 40px 32px;
  box-shadow: var(--shadow-card);
  transition: transform var(--transition-base), box-shadow var(--transition-base);
  text-align: center;
}

.home-value__card:hover {
  transform: translateY(-3px);
  box-shadow: 0 8px 24px rgba(17, 94, 89, 0.08);
}

.home-value__icon {
  width: 48px;
  height: 48px;
  border-radius: var(--radius-card);
  background: var(--color-bg-alt);
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto var(--space-lg);
}

.home-value__icon svg {
  width: 22px;
  height: 22px;
  stroke: var(--color-primary);
  fill: none;
  stroke-width: 1.6;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.home-value__title {
  font-weight: var(--font-medium);
  font-size: 17px;
  color: var(--color-primary);
  letter-spacing: 0.02em;
  margin-bottom: var(--space-sm);
}

.home-value__desc {
  font-weight: var(--font-light);
  font-size: 15px;
  color: var(--color-accent);
  line-height: 1.65;
  max-width: none;
}

@media (min-width: 768px) {
  .home-value__grid {
    grid-template-columns: repeat(2, 1fr);
    gap: var(--space-xl);
  }
}

@media (min-width: 1024px) {
  .home-value__grid {
    grid-template-columns: repeat(3, 1fr);
    gap: 28px;
  }
}


/* ========================================
   Section 4: Ecosystem
   ======================================== */
.home-ecosystem {
  background: var(--color-bg-main);
  padding: var(--space-4xl) 0;
  text-align: center;
}

.home-ecosystem p {
  margin-left: auto;
  margin-right: auto;
}

.home-eco__grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: var(--space-md);
  margin-top: var(--space-3xl);
}

.home-eco__card {
  border: 1px solid var(--color-bg-alt);
  border-radius: var(--radius-card-lg);
  padding: 36px 28px;
  text-decoration: none;
  color: inherit;
  transition: border-color var(--transition-base), box-shadow var(--transition-base), transform var(--transition-base);
  position: relative;
  background: var(--color-bg-main);
  display: block;
  text-align: left;
}

.home-eco__card:hover {
  border-color: rgba(17, 94, 89, 0.2);
  box-shadow: 0 6px 24px rgba(17, 94, 89, 0.06);
  transform: translateY(-2px);
  color: inherit;
}

.home-eco__arrow {
  position: absolute;
  top: 28px;
  right: 28px;
  font-size: 18px;
  color: rgba(17, 94, 89, 0.3);
  transition: color var(--transition-base), transform var(--transition-base);
}

.home-eco__card:hover .home-eco__arrow {
  color: var(--color-primary);
  transform: translateX(3px);
}

.home-eco__tag {
  display: inline-block;
  font-weight: var(--font-light);
  font-size: 11px;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--color-accent);
  background: var(--color-bg-alt);
  padding: 4px 12px;
  border-radius: 100px;
  margin-bottom: 20px;
}

.home-eco__name {
  font-weight: var(--font-semibold);
  font-size: 22px;
  color: var(--color-primary);
  letter-spacing: 0.04em;
  margin-bottom: 10px;
}

.home-eco__desc {
  font-weight: var(--font-light);
  font-size: 14px;
  color: var(--color-accent);
  line-height: 1.65;
  max-width: none;
}

@media (min-width: 768px) {
  .home-eco__grid {
    grid-template-columns: repeat(2, 1fr);
    gap: 20px;
  }
}

@media (min-width: 1024px) {
  .home-eco__grid {
    grid-template-columns: repeat(3, 1fr);
  }
}


/* ========================================
   Section 5: Packages
   ======================================== */
.home-packages {
  background: var(--color-bg-alt);
  padding: var(--space-4xl) 0;
  text-align: center;
}

.home-packages p {
  margin-left: auto;
  margin-right: auto;
}

/* Section header — constrain width for readability (exclude the grid) */
.home-packages > .container > .animate-on-scroll:first-child {
  max-width: 600px;
  margin-left: auto;
  margin-right: auto;
}

/* Card content should be left-aligned despite parent text-align: center */
.home-packages .packages__grid {
  text-align: left;
}



/* ========================================
   Section 6: Dashboard Preview
   ======================================== */
.home-dashboard {
  background: var(--color-primary);
  padding: var(--space-4xl) 0;
}

.home-dash__layout {
  display: grid;
  grid-template-columns: 1fr;
  gap: var(--space-2xl);
  align-items: center;
}

.home-dash__points {
  display: flex;
  flex-direction: column;
  gap: var(--space-lg);
  margin-top: 44px;
}

.home-dash__point {
  display: flex;
  gap: var(--space-md);
  align-items: flex-start;
}

.home-dash__point-num {
  width: 32px;
  height: 32px;
  border-radius: 50%;
  border: 1px solid rgba(255, 255, 255, 0.2);
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  font-weight: var(--font-medium);
  font-size: 13px;
  color: rgba(255, 255, 255, 0.6);
}

.home-dash__point-title {
  font-weight: var(--font-medium);
  font-size: 15px;
  color: var(--color-white);
  margin-bottom: 4px;
}

.home-dash__point-desc {
  font-weight: var(--font-light);
  font-size: 14px;
  color: rgba(255, 255, 255, 0.5);
  line-height: 1.55;
  max-width: none;
}

@media (min-width: 1024px) {
  .home-dash__layout {
    grid-template-columns: 1fr 1.1fr;
    gap: 72px;
  }
}


/* ── REINA Dashboard Mockup ──────────────── */
.reina-mockup {
  background: rgba(255, 255, 255, 0.06);
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: var(--radius-card-lg);
  overflow: hidden;
}

.reina-topbar {
  background: rgba(255, 255, 255, 0.08);
  padding: 14px 20px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  border-bottom: 1px solid rgba(255, 255, 255, 0.07);
}

.reina-title {
  font-weight: var(--font-medium);
  font-size: 13px;
  color: rgba(255, 255, 255, 0.7);
  letter-spacing: 0.04em;
}

.reina-dot-live {
  display: flex;
  align-items: center;
  gap: 6px;
  font-weight: var(--font-light);
  font-size: 12px;
  color: rgba(255, 255, 255, 0.4);
}

.reina-dot-live::before {
  content: '';
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--color-line);
  animation: reina-blink 2s infinite;
}

@keyframes reina-blink {

  0%,
  100% {
    opacity: 1;
  }

  50% {
    opacity: 0.4;
  }
}

.reina-body {
  padding: 20px;
}

.reina-kpis {
  display: grid;
  grid-template-columns: 1fr;
  gap: 12px;
  margin-bottom: var(--space-md);
}

@media (min-width: 480px) {
  .reina-kpis {
    grid-template-columns: repeat(3, 1fr);
  }
}

.reina-kpi {
  background: rgba(255, 255, 255, 0.06);
  border-radius: var(--radius-card);
  padding: var(--space-md);
  border: 1px solid rgba(255, 255, 255, 0.06);
}

.reina-kpi__label {
  font-weight: var(--font-light);
  font-size: 11px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: rgba(255, 255, 255, 0.38);
  margin-bottom: 6px;
}

.reina-kpi__val {
  font-weight: var(--font-medium);
  font-size: 1.35rem;
  color: var(--color-white);
  font-variant-numeric: tabular-nums;
}

.reina-kpi__trend {
  font-weight: var(--font-light);
  font-size: 11px;
  color: rgba(255, 255, 255, 0.35);
  margin-top: 4px;
}

.reina-kpi__trend--up {
  color: #4CAF7D;
}

.reina-chart-box {
  background: rgba(255, 255, 255, 0.04);
  border-radius: var(--radius-card);
  padding: var(--space-md);
  border: 1px solid rgba(255, 255, 255, 0.06);
}

.reina-chart-lbl {
  font-weight: var(--font-light);
  font-size: 11px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: rgba(255, 255, 255, 0.3);
  margin-bottom: 14px;
}

.reina-bars {
  display: flex;
  gap: 6px;
  align-items: flex-end;
  height: 72px;
}

.reina-bar-wrap {
  flex: 1;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 6px;
  height: 100%;
}

.reina-bar-fill {
  width: 100%;
  border-radius: 3px 3px 0 0;
  background: rgba(255, 255, 255, 0.15);
  flex-shrink: 0;
  transition: all 300ms ease;
}

.reina-bar-fill--current {
  background: rgba(255, 255, 255, 0.55);
}

.reina-bar-month {
  font-weight: var(--font-light);
  font-size: 9px;
  color: rgba(255, 255, 255, 0.25);
  letter-spacing: 0.04em;
}



/* ========================================
   Section 7: Testimonials
   ======================================== */
.home-testimonials {
  background: var(--color-bg-alt);
  padding: var(--space-4xl) 0;
  text-align: center;
}

.home-testimonials p {
  margin-left: auto;
  margin-right: auto;
}

.home-testi__grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: var(--space-lg);
  margin-top: var(--space-3xl);
}

.home-testi__card {
  background: var(--color-bg-main);
  border-radius: var(--radius-card-lg);
  padding: 36px 30px;
  box-shadow: var(--shadow-card);
  text-align: left;
}

.home-testi__quote {
  margin-bottom: 28px;
}

.home-testi__quote p {
  font-weight: var(--font-light);
  font-size: 17px;
  color: var(--color-primary);
  line-height: 1.7;
  letter-spacing: 0.01em;
  max-width: none;
}

.home-testi__quote p::before {
  content: '\201C';
  font-size: 2.2rem;
  color: var(--color-bg-alt);
  line-height: 0;
  vertical-align: -14px;
  margin-right: 2px;
}

.home-testi__by {
  display: flex;
  align-items: center;
  gap: var(--space-sm);
}

.home-testi__avatar {
  width: 40px;
  height: 40px;
  border-radius: 50%;
  background: var(--color-bg-alt);
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: var(--font-medium);
  font-size: 14px;
  color: var(--color-primary);
  flex-shrink: 0;
}

.home-testi__name {
  display: block;
  font-weight: var(--font-regular);
  font-size: 14px;
  color: var(--color-primary);
  font-style: normal;
  margin-bottom: 2px;
}

.home-testi__role {
  display: block;
  font-weight: var(--font-light);
  font-size: 13px;
  color: var(--color-accent);
}

@media (min-width: 768px) {
  .home-testi__grid {
    grid-template-columns: repeat(2, 1fr);
    gap: 24px;
  }
}

@media (min-width: 1024px) {
  .home-testi__grid {
    grid-template-columns: repeat(3, 1fr);
  }
}


/* ── Results Strip ────────────────────────── */
.home-results {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  border: 1px solid rgba(17, 94, 89, 0.1);
  border-radius: var(--radius-card-lg);
  background: var(--color-bg-main);
  margin-top: 40px;
  overflow: hidden;
  box-shadow: var(--shadow-card);
}

.home-results__cell {
  padding: var(--space-xl) var(--space-md);
  text-align: center;
  border-right: 1px solid rgba(17, 94, 89, 0.08);
  border-bottom: 1px solid rgba(17, 94, 89, 0.08);
}

.home-results__cell:nth-child(2n) {
  border-right: none;
}

.home-results__cell:nth-child(n+3) {
  border-bottom: none;
}

.home-results__num {
  font-weight: var(--font-medium);
  font-size: 2rem;
  color: var(--color-primary);
  font-variant-numeric: tabular-nums;
  line-height: 1;
  margin-bottom: var(--space-sm);
}

.home-results__num sup {
  font-size: 1rem;
  font-weight: var(--font-light);
}

.home-results__desc {
  font-weight: var(--font-light);
  font-size: 13px;
  color: var(--color-accent);
  line-height: 1.45;
}

@media (min-width: 768px) {
  .home-results {
    grid-template-columns: repeat(4, 1fr);
  }

  .home-results__cell {
    padding: var(--space-xl) var(--space-lg);
    border-bottom: none;
  }

  .home-results__cell:nth-child(2n) {
    border-right: 1px solid rgba(17, 94, 89, 0.08);
  }

  .home-results__cell:last-child {
    border-right: none;
  }
}


/* ========================================
   Section 8: Final CTA
   ======================================== */
.home-cta {
  background: var(--color-bg-main);
  padding: var(--space-4xl) 0;
  text-align: center;
}

.home-cta__inner {
  max-width: 600px;
  margin: 0 auto;
}

.home-cta__h2 {
  font-weight: var(--font-semibold);
  font-size: clamp(30px, 4vw, 44px);
  color: var(--color-primary);
  letter-spacing: 0.02em;
  line-height: 1.2;
  margin-bottom: 18px;
}

.home-cta__sub {
  font-weight: var(--font-light);
  font-size: 17px;
  color: var(--color-accent);
  line-height: 1.65;
  margin: 0 auto var(--space-2xl);
  max-width: none;
}

.home-cta__actions {
  display: flex;
  flex-direction: column;
  align-items: stretch;
  gap: 14px;
  justify-content: center;
}

.home-cta__actions .btn {
  width: 100%;
  text-align: center;
  justify-content: center;
}

@media (min-width: 768px) {
  .home-cta__actions {
    flex-direction: row;
    align-items: initial;
    flex-wrap: wrap;
  }

  .home-cta__actions .btn {
    width: auto;
  }
}


.home-cta__note {
  margin-top: 20px;
  font-weight: var(--font-light);
  font-size: 13px;
  color: var(--color-accent);
  max-width: none;
}





/* ========================================
   Reduced Motion
   ======================================== */
@media (prefers-reduced-motion: reduce) {

  .home-value__card,
  .home-eco__card {
    transition: none;
  }

  .home-value__card:hover,
  .home-eco__card:hover {
    transform: none;
  }

  .reina-bar-fill {
    transition: none;
  }
}