.themes-hero {
  padding-top: var(--space-16);
}

.themes-hero-surface {
  display: grid;
  grid-template-columns: minmax(0, 1.4fr) minmax(0, 1.1fr);
  gap: var(--space-10);
  padding: var(--space-10) var(--space-8);
}

.themes-hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: var(--space-4);
  margin-top: var(--space-6);
}

.themes-hero-meta {
  display: flex;
  flex-wrap: wrap;
  gap: var(--space-4);
  margin-top: var(--space-6);
  align-items: center;
}

.themes-hero-image {
  position: relative;
  display: flex;
  align-items: flex-end;
  justify-content: center;
}

.themes-hero-table {
  width: 100%;
  max-width: 420px;
  padding: var(--space-4);
}

.themes-hero-table img {
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-elevated);
}

.themes-grid-section {
  background-color: var(--color-bg);
}

.themes-section-header {
  margin-bottom: var(--space-10);
}

.themes-section-heading-row {
  display: grid;
  grid-template-columns: minmax(0, 1.4fr) minmax(0, 1.6fr);
  gap: var(--space-8);
  align-items: flex-end;
}

.themes-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: var(--space-8);
}

.themes-card {
  height: 100%;
}

.themes-card-body {
  display: grid;
  grid-template-columns: minmax(0, 1.4fr) minmax(0, 1.1fr);
  gap: var(--space-6);
  align-items: center;
}

.themes-card-media img {
  border-radius: var(--radius-md);
}

.themes-card-footer {
  display: flex;
  flex-wrap: wrap;
  gap: var(--space-3);
  margin-top: var(--space-4);
}

.themes-card-cta-row {
  display: flex;
  flex-wrap: wrap;
  gap: var(--space-4);
  margin-top: var(--space-4);
  align-items: center;
}

.themes-card-pill-group {
  display: flex;
  flex-direction: column;
  gap: var(--space-3);
}

.themes-usecases-rail {
  margin-top: var(--space-4);
}

.themes-card-large + .themes-card-large {
  margin-top: var(--space-8);
}

.themes-aside-card + .themes-aside-card {
  margin-top: var(--space-6);
}

.themes-aside-media {
  margin-top: var(--space-4);
}

.themes-aside-media img {
  border-radius: var(--radius-md);
}

.themes-concepts-section {
  padding-bottom: var(--space-20);
}

.themes-concepts-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: var(--space-6);
  margin-top: var(--space-6);
}

.themes-concept-card {
  height: 100%;
}

.themes-concepts-footer {
  margin-top: var(--space-10);
  display: flex;
  flex-wrap: wrap;
  gap: var(--space-6);
  align-items: center;
  justify-content: space-between;
}

.themes-concepts-cta {
  display: flex;
  flex-wrap: wrap;
  gap: var(--space-4);
  align-items: center;
}

.themes-concepts-cta-actions {
  display: flex;
  flex-wrap: wrap;
  gap: var(--space-3);
}

@media (max-width: 1024px) {
  .themes-hero-surface {
    grid-template-columns: minmax(0, 1fr);
    padding: var(--space-8) var(--space-6);
  }

  .themes-hero-image {
    margin-top: var(--space-6);
  }

  .themes-section-heading-row {
    grid-template-columns: minmax(0, 1fr);
  }

  .themes-grid {
    grid-template-columns: minmax(0, 1fr);
  }

  .themes-card-body {
    grid-template-columns: minmax(0, 1fr);
  }

  .themes-concepts-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (max-width: 768px) {
  .themes-hero {
    padding-top: var(--space-12);
  }

  .themes-hero-surface {
    padding: var(--space-6) var(--space-4);
  }

  .themes-hero-actions {
    flex-direction: column;
    align-items: stretch;
  }

  .themes-section-header {
    margin-bottom: var(--space-8);
  }

  .themes-usecases-rail {
    margin-top: var(--space-6);
  }

  .themes-concepts-grid {
    grid-template-columns: minmax(0, 1fr);
  }

  .themes-concepts-footer {
    flex-direction: column;
    align-items: flex-start;
  }
}
