.section {
  padding: 4.5rem 0 5.5rem;
  background:
    linear-gradient(180deg, rgba(245, 247, 250, 0) 0%, rgba(245, 247, 250, 0.72) 100%),
    var(--ifm-background-color);
}

[data-theme='dark'] .section {
  background:
    linear-gradient(180deg, rgba(15, 17, 21, 0) 0%, rgba(255, 255, 255, 0.03) 100%),
    var(--ifm-background-color);
}

.sectionHead {
  text-align: center;
  max-width: 720px;
  margin: 0 auto 2.5rem;
}

.sectionTag {
  display: inline-flex;
  align-items: center;
  min-height: 28px;
  font-size: 12px;
  font-weight: 750;
  letter-spacing: 0;
  color: #0e7490;
  padding: 4px 12px;
  background: rgba(20, 201, 201, 0.1);
  border: 1px solid rgba(20, 201, 201, 0.2);
  border-radius: 8px;
  margin-bottom: 1rem;
}

[data-theme='dark'] .sectionTag {
  background: rgba(20, 201, 201, 0.16);
  color: #67e8f9;
}

.sectionTitle {
  font-size: 2.35rem;
  line-height: 1.2;
  letter-spacing: 0;
  font-weight: 750;
  margin: 0 0 1rem;
  color: var(--ifm-heading-color);
}

.sectionSubtitle {
  font-size: 1.05rem;
  line-height: 1.65;
  color: var(--ifm-color-content-secondary);
  margin: 0;
}

/* Tab bar */
.tabs {
  display: flex;
  justify-content: center;
  gap: 6px;
  margin-bottom: 2rem;
  flex-wrap: wrap;
  padding: 6px;
  background: var(--ifm-color-emphasis-100);
  border: 1px solid var(--ifm-color-emphasis-200);
  border-radius: 8px;
}

.tabBtn {
  min-height: 40px;
  padding: 8px 18px;
  background: transparent;
  border: 1px solid transparent;
  border-radius: 8px;
  color: var(--ifm-color-content-secondary);
  font-size: 14px;
  font-weight: 650;
  cursor: pointer;
  transition: color 0.2s ease, border-color 0.2s ease, background 0.2s ease, box-shadow 0.2s ease;
}

.tabBtn:hover {
  color: var(--ifm-color-primary);
  background: var(--ifm-background-color);
}

.tabBtnActive,
.tabBtnActive:hover {
  background: var(--ifm-background-color);
  color: var(--ifm-color-primary) !important;
  border-color: rgba(22, 93, 255, 0.18);
  box-shadow: 0 6px 16px rgba(22, 93, 255, 0.12);
}

/* Stage */
.stage {
  display: grid;
  grid-template-columns: 1.4fr 1fr;
  gap: 3rem;
  align-items: center;
}

@media (max-width: 996px) {
  .stage {
    grid-template-columns: 1fr;
    gap: 1.5rem;
  }
}

.browser {
  background: var(--ifm-background-color);
  border-radius: 8px;
  overflow: hidden;
  box-shadow:
    0 24px 58px -22px rgba(22, 93, 255, 0.28),
    0 0 0 1px var(--ifm-color-emphasis-200);
}

[data-theme='dark'] .browser {
  box-shadow:
    0 30px 60px -20px rgba(0, 0, 0, 0.5),
    0 0 0 1px rgba(255, 255, 255, 0.06);
}

.browserBar {
  display: flex;
  align-items: center;
  gap: 6px;
  padding: 10px 14px;
  background: var(--ifm-color-emphasis-100);
  border-bottom: 1px solid var(--ifm-color-emphasis-200);
}

[data-theme='dark'] .browserBar {
  background: rgba(255, 255, 255, 0.03);
  border-bottom-color: rgba(255, 255, 255, 0.06);
}

.browserDot {
  width: 11px;
  height: 11px;
  border-radius: 50%;
}

.browserDotRed { background: #ff5f56; }
.browserDotYellow { background: #ffbd2e; }
.browserDotGreen { background: #27c93f; }

.browserUrl {
  margin: 0 auto;
  padding: 3px 14px;
  background: var(--ifm-background-color);
  border-radius: 8px;
  font-size: 12px;
  color: var(--ifm-color-content-secondary);
  font-family: 'SFMono-Regular', Menlo, monospace;
  border: 1px solid var(--ifm-color-emphasis-200);
}

[data-theme='dark'] .browserUrl {
  background: rgba(255, 255, 255, 0.04);
  border-color: rgba(255, 255, 255, 0.06);
}

.screenshot {
  display: block;
  width: 100%;
  height: auto;
  background: var(--ifm-color-emphasis-100);
}

.caption {
  padding: 0 1rem;
}

@media (max-width: 996px) {
  .caption {
    padding: 0;
  }
}

.captionTitle {
  font-size: 1.7rem;
  line-height: 1.2;
  letter-spacing: 0;
  font-weight: 750;
  margin: 0 0 1rem;
  color: var(--ifm-heading-color);
}

.captionDesc {
  font-size: 1.05rem;
  line-height: 1.7;
  color: var(--ifm-color-content-secondary);
  margin: 0 0 1.25rem;
}

.captionLink {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  min-height: 40px;
  padding: 0 12px;
  border: 1px solid rgba(22, 93, 255, 0.18);
  border-radius: 8px;
  font-weight: 650;
  color: var(--ifm-color-primary);
  text-decoration: none !important;
  transition: border-color 0.2s ease, background 0.2s ease;
}

.captionLink:hover {
  color: var(--ifm-color-primary-dark);
  background: rgba(22, 93, 255, 0.06);
  border-color: var(--ifm-color-primary);
}

@media (max-width: 996px) {
  .sectionTitle {
    font-size: 2rem;
  }
}

@media (max-width: 640px) {
  .section {
    padding: 3.25rem 0 4rem;
  }

  .sectionTitle {
    font-size: 1.75rem;
  }

  .tabs {
    justify-content: stretch;
  }

  .tabBtn {
    flex: 1 1 130px;
  }
}

@media (prefers-reduced-motion: reduce) {
  .tabBtn,
  .captionLink {
    transition: none;
  }
}
