/* ── Layout resets ──────────────────────────────────────────────── */
.home-landing-page .wy-nav-content {
  max-width: 100%;
  margin: 0;
  padding: 0;
}

/* ── Hide RST-generated title ───────────────────────────────────── */
.home-landing-page .document > .section > h1:first-child,
.home-landing-page .document > section > h1:first-child {
  display: none;
}

.cl-inner {
  max-width: 1568px;
  margin: 0 auto;
  padding: 0 var(--cf-space-32);
}

/* ── Hero ───────────────────────────────────────────────────────── */
.cl-hero {
  position: relative;
}

.cl-hero-inner {
  position: relative;
  z-index: 1;
  max-width: 1568px;
  margin: 0 auto;
  display: flex;
  align-items: center;
  min-height: 380px;
  padding: 0 var(--cf-space-32);
}

.cl-hero-wrapper {
  padding: var(--cf-space-64) 0 var(--cf-space-80);
  flex: 1;
  max-width: 696px;
}

.cl-hero-title {
  font-family: var(--cf-font-family-heading);
  font-size: 52px !important;
  font-weight: 600;
  color: var(--cf-text-primary);
  line-height: 1.2;
  white-space: nowrap;
}

.cl-hero-desc {
  font-size: 1rem;
  color: var(--cf-text-primary);
  line-height: 1.6;
  margin: 0;
}

/* Hero illustration — decorative background image, bleeds off the
   right edge of .cl-hero behind the max-width .cl-hero-inner content. */
.cl-hero-illustration {
  position: absolute;
  top: 50%;
  right: 0;
  transform: translateY(-50%);
  z-index: 0;
}

.cl-hero-illustration img {
  width: 722px;
  height: auto;
}

/* Light mode (default): show the light illustration, hide the dark one. */
.hp-hero-illustration--dark {
  display: none;
}

[data-theme='dark'] .hp-hero-illustration--light {
  display: none;
}
[data-theme='dark'] .hp-hero-illustration--dark {
  display: block;
}

/* ── Section ────────────────────────────────────────────────────── */
.cl-section {
  padding-bottom: var(--cf-space-64) 0;
}

.cl-section-title {
  font-family: var(--cf-font-family-heading);
  font-size: 36px;
  font-weight: 600;
  color: var(--cf-text-primary);
  margin: 0 0 var(--cf-space-32);
}

/* ── Tabs ───────────────────────────────────────────────────────── */
.cl-tabs {
  display: flex;
  border-bottom: 1px solid var(--cf-border-subtle);
  margin-bottom: var(--cf-space-32);
}

.cl-tab {
  padding: var(--cf-space-08) 12px;
  font-size: 14px;
  font-weight: 400;
  color: var(--cf-text-secondary);
  background: none;
  border: none;
  border-bottom: 2px solid var(--cf-border-subtle);
  cursor: pointer;
  font-family: var(--cf-font-family);
  white-space: nowrap;
  transition: color 0.2s;
  margin-bottom: -1px;
}

.cl-tab:hover {
  color: var(--cf-text-primary);
}

.cl-tab--active {
  color: var(--cf-interactive-input);
  font-weight: 600;
  border-bottom-color: var(--cf-interactive-input);
}

/* ── Card grid ──────────────────────────────────────────────────── */
.cl-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: var(--cf-space-16);
}

.cl-card {
  background: var(--color-neutral-10);
  border: 1px solid var(--color-neutral-20);
  border-radius: var(--cf-radius-md);
  padding: var(--cf-space-24);
  text-decoration: none;
  display: flex;
  flex-direction: column;
  gap: var(--cf-space-08);
  transition:
    border-color 0.15s,
    box-shadow 0.15s;
  animation: cl-card-in 0.2s ease both;
}

[data-theme='dark'] .cl-card {
  background: var(--color-neutral-80);
  border-color: var(--color-neutral-70);
}

.cl-card:hover {
  border-color: var(--color-purple-40);
  box-shadow: var(--cf-elevation-02);
}

@keyframes cl-card-in {
  from {
    opacity: 0;
    transform: translateY(6px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.cl-card:nth-child(1) {
  animation-delay: 0ms;
}
.cl-card:nth-child(2) {
  animation-delay: 50ms;
}
.cl-card:nth-child(3) {
  animation-delay: 100ms;
}
.cl-card:nth-child(4) {
  animation-delay: 150ms;
}
.cl-card:nth-child(5) {
  animation-delay: 200ms;
}
.cl-card:nth-child(6) {
  animation-delay: 250ms;
}
.cl-card:nth-child(7) {
  animation-delay: 300ms;
}
.cl-card:nth-child(8) {
  animation-delay: 350ms;
}
.cl-card:nth-child(9) {
  animation-delay: 400ms;
}

.cl-card-title {
  font-size: 15px;
  font-weight: 600;
  color: var(--cf-text-primary);
  margin: 0;
}

.cl-card-desc {
  font-size: 13px;
  color: var(--cf-text-secondary);
  line-height: 1.5;
  margin: 0;
}

/* ── Responsive ─────────────────────────────────────────────────── */

/* 1092px–1375px */
@media (min-width: 1092px) and (max-width: 1375px) {
  .cl-inner,
  .cl-hero-inner {
    padding: 0 var(--cf-space-32);
  }

  .cl-hero-illustration img {
    width: 300px;
  }
}

/* 832px–1091px (tablet) */
@media (min-width: 832px) and (max-width: 1091px) {
  .cl-hero-inner {
    grid-template-columns: 1fr;
  }
  .cl-hero-illustration {
    display: none;
  }
  .cl-grid {
    grid-template-columns: repeat(2, 1fr);
  }

  .cl-inner,
  .cl-hero-inner {
    padding: 0 var(--cf-space-32);
  }
}

/* up to 831px (mobile) */
@media (max-width: 831px) {
  .cl-hero-inner {
    grid-template-columns: 1fr;
  }
  .cl-hero-illustration {
    display: none;
  }
  .cl-grid {
    grid-template-columns: 1fr;
  }

  .cl-hero-title {
    white-space: normal;
  }

  .cl-inner,
  .cl-hero-inner {
    padding: 0 var(--cf-space-16);
  }
}
