/* === HOMEPAGE v3 (Figma layout) === */

.home-page {
  overflow-x: hidden;
}

.template-homepage .site-main {
  padding-bottom: 0;
}

.btn-pill {
  border-radius: var(--radius-pill);
  padding: 14px 32px;
}

.home-section {
  padding: 80px 0;
  scroll-margin-top: calc(var(--header-height) + 16px);
}

.home-section--compact {
  padding: 40px 0;
}

.home-section__title {
  margin: 0 0 48px;
  text-align: center;
  font-size: clamp(1.75rem, 3vw, 2.5rem);
  font-weight: 700;
  letter-spacing: -0.03em;
  line-height: 1.15;
}

.home-section__title--left {
  text-align: left;
  margin-bottom: 32px;
}

.home-section__head {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 16px;
  margin-bottom: 40px;
}

.home-section__link {
  color: var(--color-link);
  font-size: 0.9375rem;
  font-weight: 500;
  white-space: nowrap;
  text-decoration: none;
}

.home-section__link:hover {
  text-decoration: underline;
}

/* === HERO === */

.home-hero {
  padding: 56px 0 80px;
  position: relative;
}

.home-hero::before {
  content: "";
  position: absolute;
  top: -60px;
  right: -80px;
  width: 560px;
  height: 560px;
  background: radial-gradient(circle, rgba(45, 140, 255, 0.16), transparent 68%);
  pointer-events: none;
}

.home-hero__grid {
  display: grid;
  grid-template-columns: 1.05fr 0.95fr;
  gap: 40px 56px;
  align-items: center;
  position: relative;
  z-index: 1;
}

.home-hero__title {
  margin: 0;
  font-size: clamp(2.125rem, 4.5vw, 3.25rem);
  font-weight: 700;
  line-height: 1.08;
  letter-spacing: -0.035em;
}

.home-hero__subtitle {
  margin: 24px 0 0;
  max-width: 500px;
  font-size: 1.0625rem;
  line-height: 1.65;
  color: var(--color-text-muted);
}

.home-hero__actions {
  margin-top: 32px;
}

.home-hero__visual {
  display: flex;
  justify-content: center;
  align-items: center;
}

.home-hero__image {
  width: 100%;
  max-width: 520px;
  border-radius: 24px;
}

/* Hero illustration */

.hero-visual__img {
  width: min(100%, 560px);
  height: auto;
  display: block;
  margin: 0 auto;
}

/* === FEATURES BENTO === */

.home-features {
  padding-top: 0;
}

.features-bento {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 16px;
}

.feature-card {
  position: relative;
  display: flex;
  flex-direction: column;
  min-height: 200px;
  border-radius: 20px;
  overflow: hidden;
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.feature-card:hover {
  transform: translateY(-3px);
}

.feature-card--light {
  background: linear-gradient(145deg, #b8dcff 0%, #d8ecff 55%, #a8d0ff 100%);
  color: #0a1628;
  border: 1px solid rgba(255, 255, 255, 0.5);
}

.feature-card--dark {
  background: rgba(21, 29, 51, 0.75);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border: 1px solid var(--color-border);
  color: var(--color-text);
}

.feature-card--photo {
  background: var(--color-surface);
  border: 1px solid var(--color-border);
  min-height: 240px;
}

.feature-card__body {
  padding: 24px;
  flex: 1;
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  position: relative;
  z-index: 2;
}

.feature-card--photo .feature-card__body {
  position: absolute;
  inset: auto 0 0 0;
  padding: 20px 24px;
  background: linear-gradient(0deg, rgba(10, 14, 33, 0.92) 0%, transparent 100%);
}

.feature-card__media {
  position: absolute;
  inset: 0;
  z-index: 1;
}

.feature-card__photo {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.feature-card__media--placeholder {
  background:
    linear-gradient(135deg, rgba(45, 140, 255, 0.15), rgba(10, 14, 33, 0.9)),
    radial-gradient(circle at 70% 30%, rgba(91, 196, 255, 0.25), transparent 50%);
}

.feature-card__media--1 {
  background:
    linear-gradient(160deg, #1a3058, #0a0e21),
    radial-gradient(circle at 60% 40%, rgba(45, 140, 255, 0.3), transparent 55%);
}

.feature-card__media--2 {
  background:
    linear-gradient(200deg, #243656, #111827),
    radial-gradient(circle at 40% 60%, rgba(91, 196, 255, 0.2), transparent 50%);
}

.feature-card__media--3 {
  background:
    linear-gradient(135deg, #1e3a5f, #0d1528),
    radial-gradient(circle at 80% 20%, rgba(255, 200, 100, 0.15), transparent 45%);
}

.feature-card__media--4 {
  background:
    linear-gradient(225deg, #152040, #0a1020),
    radial-gradient(circle at 30% 70%, rgba(45, 140, 255, 0.35), transparent 50%);
}

.feature-card__icon {
  display: inline-flex;
  font-size: 1.5rem;
  margin-bottom: 12px;
}

.feature-card__title {
  margin: 0;
  font-size: 1.0625rem;
  font-weight: 700;
  line-height: 1.3;
}

.feature-card--light .feature-card__title {
  color: #0a1628;
}

.feature-card__text {
  margin: 8px 0 0;
  font-size: 0.875rem;
  line-height: 1.55;
}

.feature-card--light .feature-card__text {
  color: rgba(10, 22, 40, 0.75);
}

.feature-card--dark .feature-card__text {
  color: var(--color-text-muted);
}

.home-features__cta {
  margin-top: 40px;
  text-align: center;
}

/* === PAIN SECTION === */

.home-pain {
  background: linear-gradient(180deg, transparent, rgba(17, 24, 39, 0.45) 30%, transparent);
}

.home-pain__grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 48px;
  align-items: center;
}

.home-pain__list {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  flex-direction: column;
  gap: 28px;
}

.home-pain__item {
  display: flex;
  gap: 20px;
  align-items: flex-start;
}

.home-pain__num {
  flex-shrink: 0;
  font-size: 2.5rem;
  font-weight: 800;
  line-height: 1;
  letter-spacing: -0.04em;
  color: rgba(45, 140, 255, 0.35);
}

.home-pain__item-title {
  margin: 0 0 8px;
  font-size: 1.125rem;
  font-weight: 600;
}

.home-pain__item-text {
  margin: 0;
  font-size: 0.9375rem;
  line-height: 1.6;
  color: var(--color-text-muted);
}

/* Pain illustration */

.pain-visual__img {
  width: min(100%, 420px);
  height: auto;
  display: block;
  margin: 0 auto;
}

/* === MID CTA === */

.home-cta {
  padding: 0 0 80px;
}

.home-cta__inner {
  text-align: center;
  max-width: 640px;
  margin: 0 auto;
}

.home-cta__title {
  margin: 0 0 16px;
  font-size: clamp(1.5rem, 3vw, 2.25rem);
  font-weight: 700;
  letter-spacing: -0.03em;
  line-height: 1.2;
}

.home-cta__subtitle {
  margin: 0 0 28px;
  font-size: 1rem;
  line-height: 1.6;
  color: var(--color-text-muted);
}

/* === WHY / SHOWCASE === */

.home-why {
  padding-top: 0;
}

.why-list {
  display: flex;
  flex-direction: column;
  gap: 64px;
}

.why-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 48px;
  align-items: center;
}

.why-row--reverse .why-row__text {
  order: 2;
}

.why-row--reverse .why-row__media {
  order: 1;
}

.why-row__title {
  margin: 0 0 16px;
  font-size: clamp(1.25rem, 2vw, 1.625rem);
  font-weight: 700;
  line-height: 1.25;
  letter-spacing: -0.02em;
}

.why-row__desc {
  margin: 0;
  font-size: 0.9375rem;
  line-height: 1.65;
  color: var(--color-text-muted);
  max-width: 440px;
}

.why-row__media {
  display: flex;
  justify-content: center;
  align-items: center;
}

.why-row__image {
  width: min(100%, 400px);
  height: auto;
  display: block;
  object-fit: contain;
}

.home-why__cta {
  margin-top: 56px;
  text-align: center;
}

/* === BLOG === */

.home-blog {
  padding-bottom: 96px;
}

.home-body {
  color: var(--color-text-muted);
}

.btn-lg {
  padding: 14px 32px;
  font-size: 1rem;
}

/* === RESPONSIVE === */

@media (max-width: 1024px) {
  .features-bento {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (max-width: 900px) {
  .home-hero__grid,
  .home-pain__grid,
  .why-row,
  .why-row--reverse .why-row__text,
  .why-row--reverse .why-row__media {
    grid-template-columns: 1fr;
    order: unset;
  }

  .home-hero__visual {
    order: -1;
  }

  .hero-visual__img {
    max-width: 400px;
  }

  .home-pain__visual {
    order: -1;
  }

  .pain-visual__img {
    max-width: 300px;
  }

  .why-row__image {
    max-width: 280px;
  }
}

@media (max-width: 600px) {
  .home-section {
    padding: 56px 0;
  }

  .home-hero {
    padding: 32px 0 56px;
  }

  .features-bento {
    grid-template-columns: 1fr;
  }

  .feature-card {
    min-height: 180px;
  }

  .home-section__head {
    flex-direction: column;
    align-items: flex-start;
  }

  .home-pain__num {
    font-size: 2rem;
  }

  .why-list {
    gap: 48px;
  }
}
