.plugins-page {
  --plugin-ink: #142b3d;
  --plugin-blue: #0e61a1;
  --plugin-muted: #627586;
  --plugin-curve: cubic-bezier(0.32, 0.72, 0, 1);
  background: #f8fbfd;
}

.plugins-page .main-content {
  padding-bottom: 28px;
}

.plugins-page .nav-link:focus-visible,
.plugins-page .plugin-button:focus-visible,
.plugins-page .brand:focus-visible {
  outline: 3px solid #44b7df;
  outline-offset: 4px;
}

.plugins-hero {
  position: relative;
  display: grid;
  grid-template-columns: minmax(0, 1.15fr) minmax(300px, 0.85fr);
  align-items: center;
  gap: clamp(30px, 5vw, 86px);
  min-height: 570px;
  padding: 100px 0 106px;
  border-bottom: 1px solid #e6eef3;
}

.plugins-hero::before {
  position: absolute;
  z-index: -1;
  top: 0;
  right: -5%;
  width: 70%;
  height: 100%;
  content: "";
  background: radial-gradient(circle at 48% 44%, rgba(193, 228, 243, 0.32), transparent 66%);
  pointer-events: none;
}

.plugins-hero-copy {
  min-width: 0;
}

.plugins-kicker {
  display: inline-flex;
  align-items: center;
  gap: 9px;
  min-height: 30px;
  padding: 4px 12px;
  color: #126d9c;
  background: #edf8fc;
  border-radius: 999px;
  font-size: 11px;
  font-weight: 800;
  line-height: 1.5;
}

.plugins-kicker > span {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: #38b8df;
  box-shadow: 0 0 0 3px rgba(56, 184, 223, 0.15);
}

.plugins-hero h1 {
  margin: 25px 0 20px;
  color: var(--plugin-ink);
  font-size: clamp(42px, 5vw, 70px);
  font-weight: 800;
  line-height: 1.42;
  letter-spacing: -0.055em;
}

.plugins-hero h1 span {
  color: var(--plugin-blue);
}

.plugins-hero-copy > p {
  max-width: 600px;
  margin: 0 0 30px;
  color: var(--plugin-muted);
  font-size: 17px;
  line-height: 2.15;
}

.plugin-button {
  display: inline-flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  min-height: 49px;
  padding: 7px 8px 7px 18px;
  border-radius: 999px;
  text-decoration: none;
  font-size: 13px;
  font-weight: 800;
  line-height: 1.4;
  white-space: nowrap;
  transition: transform 600ms var(--plugin-curve), background-color 600ms var(--plugin-curve), box-shadow 600ms var(--plugin-curve);
}

.plugin-button:hover {
  transform: translateY(-3px);
}

.plugin-button:active {
  transform: scale(0.98);
}

.button-icon {
  display: grid;
  flex: 0 0 auto;
  place-items: center;
  width: 33px;
  height: 33px;
  border-radius: 50%;
  font-family: 'IRANYekanXFaNum', sans-serif;
  font-size: 18px;
  font-weight: 500;
  line-height: 1;
  transition: transform 600ms var(--plugin-curve);
}

.plugin-button:hover .button-icon {
  transform: translate(-2px, 2px) scale(1.07);
}

.plugin-button-primary,
.plugin-button-download {
  color: #fff;
  background: var(--plugin-blue);
  box-shadow: 0 12px 28px rgba(14, 97, 161, 0.16);
}

.plugin-button-primary:hover,
.plugin-button-download:hover {
  background: #07517f;
  box-shadow: 0 16px 34px rgba(14, 97, 161, 0.22);
}

.plugin-button-primary .button-icon,
.plugin-button-download .button-icon {
  color: var(--plugin-blue);
  background: #fff;
}

.hero-visual-shell {
  padding: 7px;
  border: 1px solid rgba(14, 97, 161, 0.11);
  border-radius: 35px;
  background: #ebf3f8;
  box-shadow: 0 26px 80px rgba(24, 76, 112, 0.09);
}

.hero-visual {
  position: relative;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  min-height: 366px;
  overflow: hidden;
  padding: 25px 28px;
  color: #f4fbff;
  background: radial-gradient(circle at 30% 48%, #1c799e 0, #123e5c 44%, #102b42 88%);
  border-radius: 28px;
  box-shadow: inset 0 1px 1px rgba(255, 255, 255, 0.2);
}

.hero-visual::after {
  position: absolute;
  right: -30%;
  bottom: -67%;
  width: 130%;
  aspect-ratio: 1;
  border: 1px solid rgba(212, 246, 255, 0.1);
  border-radius: 50%;
  content: "";
  pointer-events: none;
}

.hero-visual-top,
.hero-visual-bottom {
  position: relative;
  z-index: 1;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
}

.hero-visual-top {
  color: #c4e4f1;
  font-size: 11px;
  font-weight: 700;
}

.hero-visual-top span:last-child {
  color: rgba(218, 241, 251, 0.5);
  font: 500 9px/1.5 ui-monospace, monospace;
  letter-spacing: 0.13em;
}

.hero-orbit {
  position: relative;
  z-index: 1;
  display: grid;
  place-items: center;
  width: 210px;
  height: 210px;
  margin: 2px auto;
}

.orbit-core {
  position: relative;
  z-index: 2;
  display: grid;
  place-items: center;
  width: 88px;
  height: 88px;
  color: #fff;
  background: linear-gradient(145deg, #5ac0dd, #0f76a4 75%);
  border: 7px solid rgba(235, 251, 255, 0.25);
  border-radius: 25px;
  box-shadow: 0 20px 40px rgba(3, 25, 43, 0.22), inset 0 1px 1px rgba(255, 255, 255, 0.45);
  font: 800 48px/1 ui-sans-serif, sans-serif;
  transform: rotate(-8deg);
}

.orbit-ring {
  position: absolute;
  width: 158px;
  height: 158px;
  border: 1px solid rgba(205, 244, 255, 0.24);
  border-radius: 50%;
}

.orbit-ring-two {
  width: 210px;
  height: 210px;
  border-color: rgba(205, 244, 255, 0.12);
}

.orbit-ring-one::before,
.orbit-ring-two::after {
  position: absolute;
  width: 9px;
  height: 9px;
  border-radius: 50%;
  background: #79dbec;
  box-shadow: 0 0 15px rgba(111, 219, 237, 0.8);
  content: "";
}

.orbit-ring-one::before { top: 18px; right: 16px; }
.orbit-ring-two::after { bottom: 20px; left: 20px; width: 6px; height: 6px; }

.hero-visual-bottom {
  justify-content: flex-start;
  padding-top: 13px;
  border-top: 1px solid rgba(231, 250, 255, 0.14);
}

.hero-visual-bottom strong {
  font-size: 33px;
  line-height: 1;
}

.hero-visual-bottom span {
  color: #cbe8f2;
  font-size: 11px;
}

.plugins-section {
  padding: 100px 0 105px;
  border-bottom: 1px solid #e6eef3;
}

.plugins-section-head {
  display: flex;
  align-items: end;
  justify-content: space-between;
  gap: 24px;
  margin-bottom: 38px;
}

.plugins-section-head h2 {
  margin: 17px 0 0;
  color: var(--plugin-ink);
  font-size: clamp(30px, 3vw, 42px);
  font-weight: 800;
}

.plugins-section-head > p {
  max-width: 340px;
  margin: 0 0 5px;
  color: var(--plugin-muted);
  font-size: 13px;
  line-height: 2;
}

.plugins-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 19px;
}

.plugin-shell {
  min-width: 0;
  padding: 6px;
  border: 1px solid rgba(21, 94, 134, 0.08);
  border-radius: 31px;
  background: #ecf3f7;
  transition: transform 700ms var(--plugin-curve), box-shadow 700ms var(--plugin-curve);
}

.plugin-shell:hover {
  transform: translateY(-5px);
  box-shadow: 0 20px 54px rgba(30, 78, 106, 0.1);
}

.plugin-card {
  display: flex;
  flex-direction: column;
  min-height: 286px;
  height: 100%;
  padding: 25px;
  border-radius: 25px;
  background: #fff;
  box-shadow: inset 0 1px 1px rgba(255, 255, 255, 0.9);
}

.plugin-card-top {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 16px;
  margin-bottom: 27px;
}

.plugin-mark {
  display: grid;
  flex: 0 0 auto;
  place-items: center;
  width: 56px;
  height: 56px;
  color: #16517c;
  background: #eaf3fa;
  border-radius: 17px;
  font: 800 18px/1 ui-sans-serif, sans-serif;
  letter-spacing: -0.05em;
}

.mark-woo { color: #65518f; background: #f1ebf7; font-size: 29px; }
.mark-edd { color: #306499; background: #e9f2fb; font-size: 15px; }
.mark-bookly { color: #276c72; background: #e5f5f2; font-size: 28px; }
.mark-learndash { color: #876449; background: #f9f0e7; font-size: 18px; }
.mark-learnpress { color: #6654a2; background: #f0edfa; font-size: 18px; }

.plugin-type {
  padding: 5px 11px;
  color: #6a8190;
  background: #f5f8fa;
  border-radius: 999px;
  font-size: 10px;
  font-weight: 700;
  white-space: nowrap;
}

.plugin-card-content {
  display: flex;
  flex: 1;
  flex-direction: column;
  justify-content: space-between;
  min-width: 0;
}

.plugin-overline {
  color: #8497a3;
  font-size: 10px;
  font-weight: 700;
}

.plugin-card h3 {
  margin: 3px 0 8px;
  color: var(--plugin-ink);
  font-size: clamp(17px, 1.9vw, 23px);
  font-weight: 800;
  line-height: 1.5;
  overflow-wrap: anywhere;
}

.plugin-card h3[dir="ltr"] {
  text-align: right;
}

.plugin-card h3 span {
  display: inline-block;
  color: #698396;
  font-size: 0.68em;
  font-weight: 600;
  letter-spacing: 0;
}

.plugin-card p {
  max-width: 480px;
  margin: 0;
  color: var(--plugin-muted);
  font-size: 12px;
  line-height: 1.95;
}

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

.plugin-version {
  color: #8c9ca7;
  font: 600 11px/1.5 ui-monospace, monospace;
  white-space: nowrap;
}

.plugin-button-download {
  min-height: 42px;
  padding: 5px 6px 5px 14px;
  font-size: 11px;
}

.plugin-button-download .button-icon {
  width: 29px;
  height: 29px;
  font-size: 17px;
}

.plugin-featured {
  grid-column: 1 / -1;
  background: #e6f0f5;
}

.plugin-featured .plugin-card {
  display: grid;
  grid-template-columns: minmax(160px, 0.35fr) minmax(0, 1fr);
  gap: 25px;
  min-height: 250px;
  padding: 30px;
  background: radial-gradient(circle at 0% 0%, #eff8fc, transparent 50%), #fff;
}

.plugin-featured .plugin-card-top {
  flex-direction: column;
  justify-content: space-between;
  margin: 0;
  padding-left: 25px;
  border-left: 1px solid #e5eef3;
}

.plugin-featured .plugin-mark {
  width: 70px;
  height: 70px;
  border-radius: 21px;
  font-size: 37px;
}

.plugin-featured .plugin-card h3 {
  font-size: clamp(23px, 2.5vw, 32px);
}

.plugin-featured .plugin-card p {
  font-size: 14px;
}

.catalog-note {
  margin: 28px 0 0;
  color: #8295a0;
  font-size: 12px;
  text-align: center;
}

.install-section {
  border-bottom: 0;
}

.install-shell {
  padding: 6px;
  border: 1px solid rgba(21, 94, 134, 0.08);
  border-radius: 31px;
  background: #eaf2f6;
}

.install-panel {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 35px;
  padding: 35px;
  border-radius: 25px;
  background: #fff;
  box-shadow: inset 0 1px 1px rgba(255, 255, 255, 0.9);
}

.install-steps {
  display: grid;
  gap: 24px;
  margin: 0;
  padding: 0;
  list-style: none;
}

.install-steps li {
  display: flex;
  align-items: flex-start;
  gap: 15px;
}

.step-number {
  flex: 0 0 auto;
  color: #69a6c3;
  font: 600 12px/2 ui-monospace, monospace;
}

.install-steps strong {
  color: var(--plugin-ink);
  font-size: 14px;
}

.install-steps p {
  margin: 2px 0 0;
  color: var(--plugin-muted);
  font-size: 12px;
  line-height: 1.9;
}

.plugin-button-support {
  flex: 0 0 auto;
  color: var(--plugin-blue);
  background: #edf7fb;
}

.plugin-button-support:hover {
  background: #e0f0f7;
}

.plugin-button-support .button-icon {
  color: #fff;
  background: var(--plugin-blue);
}

.plugins-page.motion-ready .reveal:not(.is-visible) {
  opacity: 0;
  transform: translateY(30px);
}

.plugins-page.motion-ready .reveal {
  transition: opacity 850ms var(--plugin-curve), transform 850ms var(--plugin-curve);
}

.text-blue {
  color: #07517f !important;
}

@media (max-width: 1100px) {
  .plugins-hero {
    grid-template-columns: minmax(0, 1fr) minmax(270px, 0.75fr);
    gap: 28px;
  }

  .hero-visual { min-height: 330px; }
  .plugin-card { padding: 20px; }
}

@media (max-width: 940px) {
  .plugins-hero { padding: 82px 0; }
}

@media (max-width: 767px) {
  .plugins-page .docs-shell { padding-right: 16px; padding-left: 16px; }

  .plugins-hero {
    grid-template-columns: 1fr;
    gap: 38px;
    min-height: 0;
    padding: 52px 0 72px;
  }

  .plugins-hero h1 { font-size: clamp(38px, 9vw, 54px); }
  .plugins-hero-copy > p { font-size: 15px; }
  .hero-visual-shell { max-width: 550px; width: 100%; }
  .hero-visual { min-height: 305px; }
  .hero-orbit { width: 175px; height: 175px; }
  .orbit-ring { width: 135px; height: 135px; }
  .orbit-ring-two { width: 175px; height: 175px; }

  .plugins-section { padding: 76px 0 80px; }
  .plugins-section-head { align-items: flex-start; flex-direction: column; gap: 12px; }
  .plugins-grid { grid-template-columns: 1fr; gap: 18px; }
  .plugin-featured { grid-column: auto; }
  .plugin-featured .plugin-card { display: flex; min-height: 286px; padding: 25px; }
  .plugin-featured .plugin-card-top { flex-direction: row; align-items: flex-start; margin-bottom: 27px; padding: 0; border: 0; }
  .plugin-featured .plugin-mark { width: 56px; height: 56px; border-radius: 17px; font-size: 29px; }
  .plugin-featured .plugin-card h3 { font-size: 23px; }
  .plugin-featured .plugin-card p { font-size: 12px; }
  .install-panel { align-items: flex-start; flex-direction: column; padding: 26px; }
}

@media (max-width: 420px) {
  .plugins-hero h1 { font-size: 37px; }
  .hero-visual { min-height: 280px; padding: 20px; }
  .plugin-card-bottom { align-items: flex-start; flex-direction: column; }
  .plugin-button-download { align-self: stretch; }
  .plugin-button-support { width: 100%; }
}

@media (prefers-reduced-motion: reduce) {
  .plugins-page.motion-ready .reveal:not(.is-visible) {
    opacity: 1;
    transform: none;
  }

  .plugins-page.motion-ready .reveal { transition: none; }
}
