/* ==========================================================================
   Home
   ========================================================================== */

.home-hero {
  overflow: hidden;
  padding: 80px 0;
}

.home-hero-content {
  align-items: center;
  display: grid;
  gap: 36px;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
}

.home-hero-text {
  min-width: 0;
  position: relative;
  z-index: 2;
}

.home-hero-text h1 {
  font-size: clamp(2.6rem, 4vw, 3.6rem);
  max-width: 620px;
}

.home-hero-text .page-hero-description {
  margin-top: 20px;
  max-width: 580px;
}

/* ==========================================================================
   Hero Visual
   ========================================================================== */

.home-hero-visual {
  height: 460px;
  isolation: isolate;
  position: relative;
  width: 100%;
}

.home-hero-glow {
  background: radial-gradient(
    circle,
    rgba(37, 99, 235, 0.22) 0%,
    rgba(37, 99, 235, 0) 70%
  );
  inset: -60px;
  position: absolute;
  z-index: -1;
}

.home-hero-screen {
  background: var(--color-card);
  border: 1px solid rgba(255, 255, 255, 0.8);
  border-radius: 18px;
  box-shadow: 0 20px 50px rgba(17, 24, 39, 0.18);
  overflow: hidden;
  position: absolute;
  width: 80%;
}

.home-hero-screen img {
  display: block;
  height: auto;
  width: 100%;
}

.home-hero-screen-parent {
  left: 0;
  top: 20px;
  transform: rotate(-4deg);
  z-index: 1;
}

.home-hero-screen-child {
  right: 0;
  top: 130px;
  transform: rotate(4deg);
  z-index: 2;
}

/* ==========================================================================
   App Showcase
   ========================================================================== */

.home-showcase {
  background: var(--color-background);
}

.home-showcase-heading {
  margin: 0 auto 40px;
  text-align: center;
}

.home-showcase-heading .section-description {
  margin: 0 auto;
}

.home-showcase-grid {
  align-items: start;
  display: grid;
  gap: 32px;
  grid-template-columns: repeat(2, minmax(0, 1fr));
}

.home-showcase-card {
  background: var(--color-card);
  border: 1px solid var(--color-border);
  border-radius: var(--border-radius-large);
  min-width: 0;
  overflow: hidden;
  padding: 24px;
}

.home-showcase-card h3 {
  margin-bottom: 12px;
}

.home-showcase-card p {
  color: var(--color-text-secondary);
  margin-bottom: 24px;
  min-height: 54px;
}

.home-showcase-card img {
  border: 1px solid var(--color-border);
  border-radius: var(--border-radius-medium);
  display: block;
  height: auto;
  margin: 0 auto;
  max-width: 100%;
}

/* ==========================================================================
   Responsive
   ========================================================================== */

@media (max-width: 900px) {
  .home-hero {
    padding: 56px 0;
  }

  .home-hero-content {
    gap: 24px;
    grid-template-columns: 1fr;
  }

  .home-hero-text {
    text-align: center;
  }

  .home-hero-text h1,
  .home-hero-text .page-hero-description {
    margin-left: auto;
    margin-right: auto;
  }

  .home-hero-text .hero-actions {
    justify-content: center;
  }

  .home-hero-visual {
    height: 480px;
    margin: 0 auto;
    max-width: 650px;
  }

  .home-showcase-grid {
    grid-template-columns: 1fr;
  }

  .home-showcase-card {
    margin: 0 auto;
    max-width: 760px;
    width: 100%;
  }

  .home-showcase-card p {
    min-height: 0;
  }
}

@media (max-width: 480px) {
  .home-hero {
    padding: 40px 0;
  }

  .home-hero-visual {
    height: 390px;
  }

  .home-hero-screen {
    width: 85%;
  }

  .home-hero-screen-parent {
    top: 10px;
  }

  .home-hero-screen-child {
    top: 90px;
  }

  .home-showcase-card {
    padding: 16px;
  }
}

/* ==========================================================================
   Home Call to Action
   ========================================================================== */

.home-cta {
  padding: 64px 0 80px;
}

.home-cta-panel {
  background: linear-gradient(135deg, #2563eb 0%, #1d4ed8 100%);
  border-radius: var(--border-radius-large);
  box-shadow: 0 16px 40px rgba(37, 99, 235, 0.16);
  color: #ffffff;
  padding: 36px 32px;
  text-align: center;
}

.home-cta-panel .eyebrow {
  color: #dbeafe;
}

.home-cta-panel h2 {
  color: #ffffff;
  margin: 0 auto 12px;
  max-width: 750px;
}

.home-cta-panel p:not(.eyebrow) {
  color: #eff6ff;
  margin: 0 auto 20px;
  max-width: 600px;
}

.home-cta-button {
  background: #ffffff;
  color: #1d4ed8;
  display: inline-flex;
  justify-content: center;
  text-decoration: none;
  transition:
    background var(--transition-fast),
    transform var(--transition-fast);
}

.home-cta-button:hover {
  background: #dbeafe;
  transform: translateY(-2px);
}

@media (max-width: 700px) {
  .home-cta {
    padding: 48px 0;
  }

  .home-cta-panel {
    padding: 32px 24px;
  }
}
