/* Homepage hero: balance the copy and product preview with clear page gutters. */
.home-hero {
  --home-hero-ink: #1d1a2d;
  --home-hero-muted: #686779;
  min-height: 710px;
  padding: clamp(178px, calc(var(--matfy-promo-height, 58px) + 126px), 202px) 0 92px;
  overflow: hidden;
  background:
    radial-gradient(ellipse at 78% 48%, rgba(111, 93, 210, .09), transparent 34%),
    radial-gradient(ellipse at 66% 78%, rgba(91, 154, 237, .07), transparent 28%),
    #fff;
}

.home-hero-container {
  display: grid;
  width: min(calc(100% - 112px), 1320px);
  max-width: 1320px;
  grid-template-columns: minmax(390px, .82fr) minmax(0, 1.18fr);
  align-items: center;
  gap: clamp(42px, 4vw, 62px);
  margin-inline: auto;
  padding: 0;
}

.home-hero .hero-copy {
  max-width: 540px;
  justify-self: start;
  margin: 0;
  text-align: left;
}

.home-hero .hero-title {
  max-width: 540px;
  margin: 0;
  text-align: left;
  color: var(--home-hero-ink);
  font-size: clamp(3rem, 4.2vw, 4rem);
  font-weight: 690;
  letter-spacing: -.06em;
  line-height: 1.01;
  text-wrap: balance;
}

.home-hero .hero-title .gradient {
  background: linear-gradient(105deg, #7454bf 2%, #675fdb 50%, #438ee5 100%);
  background-clip: text;
  -webkit-background-clip: text;
  color: transparent;
}

.home-hero .hero-description {
  max-width: 490px;
  margin: 25px 0 27px;
  color: var(--home-hero-muted);
  font-size: clamp(1rem, 1.22vw, 1.14rem);
  line-height: 1.68;
  text-align: left;
}

.home-hero .hero-actions {
  align-items: flex-start;
  justify-content: flex-start;
}

.home-hero .hero-cta {
  min-height: 52px;
  padding: 14px 22px;
  border-radius: 13px;
  font-size: 15px;
}

.home-hero .dashboard {
  width: calc(100% + clamp(96px, 11vw, 170px));
  max-width: none;
  margin: 0;
  border-color: rgba(57, 48, 96, .11);
  border-radius: 23px;
  box-shadow: 0 32px 80px rgba(40, 35, 76, .12), 0 8px 24px rgba(40, 35, 76, .055);
}

.home-hero .dashboard-body {
  min-height: 0;
  padding: clamp(20px, 1.8vw, 27px) clamp(20px, 2vw, 30px);
}

.home-hero .app-header {
  gap: 12px;
  margin-bottom: clamp(14px, 1.4vw, 20px);
}

.home-hero .app-title {
  font-size: clamp(1.08rem, 1.45vw, 1.3rem);
}

.home-hero .app-status {
  font-size: clamp(.68rem, .82vw, .78rem);
}

.home-hero .dashboard-grid {
  grid-template-columns: minmax(0, 1.25fr) minmax(250px, .82fr);
  gap: clamp(12px, 1.1vw, 16px);
}

.home-hero .chart-panel {
  width: auto;
  min-width: 0;
  min-height: 340px;
  padding: clamp(16px, 1.35vw, 20px);
}

.home-hero .panel-title {
  font-size: clamp(.9rem, 1.05vw, 1rem) !important;
  text-align: left;
}

.home-hero .panel-subtitle {
  font-size: clamp(.68rem, .8vw, .76rem) !important;
}

.home-hero .chart-value {
  font-size: clamp(1.7rem, 2.15vw, 2rem);
}

.home-hero .chart-value small {
  font-size: clamp(.64rem, .82vw, .78rem);
}

.home-hero .chart {
  height: clamp(150px, 13vw, 188px);
}

.home-hero .side {
  min-width: 0;
  gap: clamp(12px, 1.1vw, 16px);
}

.home-hero .timer-panel,
.home-hero .task-panel {
  min-width: 0;
  padding: clamp(14px, 1.2vw, 18px);
}

.home-hero .timer-label,
.home-hero .timer-footer {
  font-size: clamp(.64rem, .78vw, .72rem);
}

.home-hero .timer-value {
  font-size: clamp(1.3rem, 1.75vw, 1.7rem);
}

.home-hero .task-title {
  font-size: clamp(.76rem, .95vw, .88rem);
}

.home-hero .task-meta {
  font-size: clamp(.64rem, .76vw, .7rem);
}

.home-hero .task-status {
  font-size: clamp(.56rem, .68vw, .62rem);
}

@media (max-width: 1199.98px) {
  .home-hero {
    min-height: 0;
    padding: calc(var(--matfy-promo-height, 54px) + 106px) 0 76px;
  }

  .home-hero-container {
    width: min(calc(100% - 64px), 860px);
    grid-template-columns: minmax(0, 1fr);
    gap: 40px;
  }

  .home-hero .hero-copy {
    max-width: 700px;
    margin-inline: auto;
    text-align: center;
  }

  .home-hero .hero-title {
    max-width: 700px;
    margin-inline: auto;
    font-size: clamp(3.1rem, 6.4vw, 4.5rem);
  }

  .home-hero .hero-description {
    max-width: 620px;
    margin: 22px auto 25px;
  }

  .home-hero .hero-actions {
    justify-content: center;
  }

  .home-hero .dashboard {
    width: 100%;
    max-width: 800px;
    margin-inline: auto;
  }

  .home-hero .dashboard-grid {
    grid-template-columns: minmax(0, 1.3fr) minmax(0, .85fr);
  }

}

@media (max-width: 767.98px) {
  .home-hero {
    padding: calc(var(--matfy-promo-height, 54px) + 86px) 0 58px;
    text-align: center;
  }

  .home-hero-container {
    width: calc(100% - 40px);
    gap: 32px;
  }

  .home-hero .hero-copy {
    max-width: 560px;
  }

  .home-hero .hero-title {
    font-size: clamp(2.55rem, 10.8vw, 3.55rem);
    letter-spacing: -.052em;
    line-height: 1.02;
  }

  .home-hero .hero-description {
    margin: 17px auto 21px;
    font-size: 1rem;
    line-height: 1.6;
  }

  .home-hero .hero-actions {
    justify-content: center;
  }

  .home-hero .dashboard {
    width: 100%;
    margin: 0;
    border-radius: 18px;
  }

  .home-hero .dashboard-body {
    padding: 14px !important;
    border-radius: 0 0 18px 18px;
  }

  .home-hero .app-header {
    gap: 8px;
    margin-bottom: 12px;
  }

  .home-hero .dashboard-grid {
    grid-template-columns: minmax(0, 1.1fr) minmax(0, .9fr);
    gap: 9px;
  }

  .home-hero .chart-panel {
    width: auto;
    min-height: 230px;
    padding: 13px;
  }

  .home-hero .chart {
    height: 100px;
    margin-top: 9px;
  }

  .home-hero .chart-value {
    font-size: clamp(1.1rem, 4.5vw, 1.45rem);
  }

  .home-hero .chart-value small {
    font-size: .6rem;
  }

  .home-hero .chart-months span {
    font-size: .52rem !important;
  }

  .home-hero .panel-title {
    font-size: .82rem !important;
  }

  .home-hero .panel-subtitle {
    font-size: .62rem !important;
  }

  .home-hero .side {
    display: flex;
    gap: 9px;
  }

  .home-hero .timer-panel,
  .home-hero .task-panel {
    padding: 12px;
  }

  .home-hero .task-icon {
    width: 30px;
    height: 30px;
    flex-basis: 30px;
  }

}

@media (max-width: 420px) {
  .home-hero-container { width: calc(100% - 32px); }
  .home-hero .hero-title { font-size: clamp(2.4rem, 11.5vw, 3rem); }
  .home-hero .hero-cta { width: 100%; }
  .home-hero .chart-panel { min-height: 205px; padding: 11px; }
  .home-hero .dashboard-body { padding: 11px !important; }
  .home-hero .timer-panel,
  .home-hero .task-panel { padding: 9px; }
}

@media (prefers-reduced-motion: reduce) {
  .home-hero .dashboard,
  .home-hero .chart-line,
  .home-hero .chart-area,
  .home-hero .timer-spinner,
  .home-hero .timer-progress span {
    animation: none !important;
  }
}
