main {
  padding-bottom: 60px
}

.section {
  padding: 28px 0;
}

.section--alt {
  position: relative;
  background: rgba(255, 255, 255, .035);
  border-top: 1px solid rgba(255, 255, 255, .06);
  border-bottom: 1px solid rgba(255, 255, 255, .06);
}

:root[data-theme="light"] .section--alt {
  background: rgba(0, 0, 0, .03);
}

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

.h2 {
  font-size: var(--h2);
  margin: 0;
  font-weight: 900
}

.sub {
  margin: 0;
  color: var(--muted);
  font-size: var(--p);
  max-width: 74ch
}

.grid {
  display: grid;
  gap: 14px;
  grid-template-columns: repeat(3, 1fr);
}

.tile {
  padding: 16px;
  border-radius: var(--radius);
  border: 1px solid rgba(255, 255, 255, .12);
  background: rgba(255, 255, 255, .03);
  min-height: 160px;
}

.tile__top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px
}

.label {
  font-size: 11px;
  font-weight: 900;
  letter-spacing: .35px;
  padding: 6px 10px;
  border-radius: 999px;
  border: 1px solid rgba(255, 255, 255, .14);
  color: var(--muted);
  text-transform: uppercase;
}

.label--red {
  border-color: rgba(255, 77, 109, .35);
  background: rgba(255, 77, 109, .10)
}

.label--gold {
  border-color: rgba(255, 204, 102, .35);
  background: rgba(255, 204, 102, .10)
}

.label--orange {
  border-color: rgba(255, 103, 50, .35);
  background: rgba(255, 103, 50, .10)
}

.label--teal {
  border-color: rgba(0, 224, 198, .35);
  background: rgba(0, 224, 198, .10)
}

.tile h3 {
  margin: 10px 0 8px;
  font-size: var(--h3);
  font-weight: 900
}

.tile p {
  margin: 0;
  color: var(--muted);
  font-size: 13px
}

.bullets {
  margin: 12px 0 0;
  padding-left: 18px;
  color: var(--muted);
  font-size: 13px
}

.bullets li {
  margin: 6px 0
}

.cta {
  display: flex;
  gap: 12px;
  align-items: center;
  flex-wrap: wrap;
  padding: 16px;
  border-radius: var(--radius);
  border: 1px solid rgba(0, 224, 198, .22);
  background: rgba(0, 224, 198, .06);
}

.cta p {
  margin: 0;
  color: var(--muted);
  font-size: 13px;
  max-width: 80ch
}

.cta .btn {
  margin-left: auto
}

/* =========================
   Light mode footer fix
   ========================= */
:root[data-theme="light"] .footer {
  background: #ffffff;
  color: #374151;
}

:root[data-theme="light"] .footer-legal,
:root[data-theme="light"] .footer-contact,
:root[data-theme="light"] .footlinks a {
  color: #4b5563;
}

/* =========================================
   LIGHT MODE: CARD CONTRAST
   ========================================= */
:root[data-theme="light"] .card,
:root[data-theme="light"] .tile {
  background: #ffffff;
  border: 1px solid rgba(0, 0, 0, 0.08);
  box-shadow: 0 6px 20px rgba(0, 0, 0, 0.06);
}


@media (max-width: 768px) {

  .section,
  .section--alt {
    background: transparent;
    border-top: 0;
    border-bottom: 0;
  }
}

.card,
.tile,
.case-card {
  max-width: 100%;
  box-sizing: border-box;
}

.back-to-top {
  position: fixed;
  right: 16px;
  bottom: 16px;
  z-index: 1000;

  padding: 10px 14px;
  border-radius: 999px;

  background: var(--accent-teal);
  color: #001313;
  font-weight: 600;
  font-size: 14px;

  box-shadow: 0 8px 24px rgba(0, 0, 0, .25);
  border: none;
  cursor: pointer;

  opacity: 0;
  transform: translateY(6px);
  transition: opacity .3s ease, transform .3s ease;
}