.mechanics-hero {
  padding-top: var(--space-64);
  padding-bottom: var(--space-48);
}

.mechanics-hero__inner {
  display: grid;
  grid-template-columns: minmax(0, 3fr) minmax(0, 2fr);
  gap: 32px;
  align-items: center;
}

.mechanics-hero__cta {
  margin-top: var(--space-24);
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
}

.mechanics-hero__meta {
  margin-top: var(--space-16);
}

.mechanics-hero__image-wrapper {
  border-radius: var(--radius-lg);
  overflow: hidden;
  box-shadow: var(--shadow-elevated);
  border: 1px solid rgba(148, 163, 184, 0.35);
}

.mechanics-hero__image-wrapper img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.mechanics-nav {
  border-top: 1px solid rgba(148, 163, 184, 0.25);
  border-bottom: 1px solid rgba(148, 163, 184, 0.25);
  background: rgba(15, 23, 42, 0.9);
}

.mechanics-nav__inner {
  overflow-x: auto;
}

.mechanics-nav__list {
  display: flex;
  gap: 16px;
  padding-top: 12px;
  padding-bottom: 12px;
  white-space: nowrap;
}

.mechanics-nav__link {
  font-size: var(--font-size-sm);
  padding: 6px 14px;
  border-radius: var(--radius-full);
  border: 1px solid transparent;
  color: var(--gray-100);
}

.mechanics-nav__link:hover {
  border-color: rgba(129, 140, 248, 0.7);
  background: var(--color-primary-soft);
}

.mechanics-section {
  padding-top: var(--space-48);
  padding-bottom: var(--space-48);
}

.mechanics-section--alt {
  background: radial-gradient(circle at top, #0b1120 0, #050914 55%, #020617 100%);
}

.mechanics-section__inner {
  gap: 32px;
}

.mechanics-section__inner--reverse {
  direction: rtl;
}

.mechanics-section__inner--reverse > * {
  direction: ltr;
}

.mechanics-section__media {
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.mechanics-section__image-wrapper {
  border-radius: var(--radius-lg);
  overflow: hidden;
  box-shadow: var(--shadow-soft);
  border: 1px solid rgba(148, 163, 184, 0.35);
}

.mechanics-section__image-wrapper--accent {
  box-shadow: var(--shadow-elevated);
}

.mechanics-section__image-wrapper img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.mechanics-section__header {
  margin-bottom: var(--space-24);
  max-width: 720px;
}

.mechanics-section__header--ai,
.mechanics-section__header--table {
  text-align: left;
}

.mechanics-cards {
  margin-top: var(--space-16);
}

.mechanics-cards--ai {
  margin-top: var(--space-24);
}

.mechanics-section__footer {
  margin-top: var(--space-24);
}

.mechanics-section__footer--ai,
.mechanics-section__footer--table {
  margin-top: var(--space-24);
}

.mechanics-section__media--stacked {
  gap: 16px;
}

.mechanics-mini-card {
  padding: var(--space-16);
}

.mechanics-table-wrapper {
  margin-top: var(--space-24);
  border-radius: var(--radius-lg);
  border: 1px solid rgba(148, 163, 184, 0.35);
  box-shadow: var(--shadow-soft);
  overflow: auto;
  background: rgba(15, 23, 42, 0.95);
}

.mechanics-table {
  width: 100%;
  min-width: 640px;
  font-size: var(--font-size-sm);
}

.mechanics-table th,
.mechanics-table td {
  padding: 12px 16px;
  border-bottom: 1px solid rgba(148, 163, 184, 0.25);
  text-align: left;
}

.mechanics-table thead th {
  font-size: var(--font-size-xs);
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--gray-400);
  background: rgba(15, 23, 42, 0.9);
}

.mechanics-table tbody tr:nth-child(even) {
  background: rgba(15, 23, 42, 0.85);
}

.mechanics-table tbody tr:nth-child(odd) {
  background: rgba(15, 23, 42, 0.7);
}

.mechanics-cta__inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  padding: var(--space-24);
  border-radius: var(--radius-lg);
  border: 1px solid rgba(129, 140, 248, 0.6);
  box-shadow: var(--shadow-elevated);
  background: linear-gradient(135deg, rgba(30, 64, 175, 0.65), rgba(17, 24, 39, 0.95));
}

.mechanics-cta__actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
}

@media (max-width: 992px) {
  .mechanics-hero__inner {
    grid-template-columns: minmax(0, 1fr);
  }

  .mechanics-hero__media {
    order: -1;
  }
}

@media (max-width: 768px) {
  .mechanics-cta__inner {
    flex-direction: column;
    align-items: flex-start;
  }

  .mechanics-nav__list {
    padding-left: 0;
  }
}

@media (max-width: 600px) {
  .mechanics-table {
    min-width: 0;
  }
}
