/* Product releases */

.releases-page,
.release-single-page {
  --rel-bg: #000;
  --rel-ink: #fff;
  --rel-text: rgba(255, 255, 255, 0.82);
  --rel-muted: rgba(255, 255, 255, 0.54);
  --rel-faint: rgba(255, 255, 255, 0.24);
  --rel-line: rgba(255, 255, 255, 0.12);
  --rel-line-strong: rgba(255, 255, 255, 0.2);
  --rel-surface: rgba(255, 255, 255, 0.035);
  --rel-surface-strong: rgba(255, 255, 255, 0.07);
  --rel-card-bg: rgba(255, 255, 255, 0.04);
  --rel-card-bg-hover: rgba(255, 255, 255, 0.065);
  --rel-accent: #8272fe;
  background: var(--rel-bg);
  color: var(--rel-text);
  min-height: 100vh;
}

.releases-wrap {
  width: min(100% - 40px, 1280px);
  margin: 0 auto;
}

.releases-hero {
  position: relative;
  overflow: hidden;
  padding: clamp(130px, 15vw, 190px) 0 clamp(90px, 11vw, 130px);
  text-align: center;
  /* border-bottom: 1px solid rgba(255, 255, 255, 0.12); */
  background-color: #07091d;
  background-image:
    linear-gradient(to bottom, rgba(7, 9, 29, 0.08) 0%, rgba(0, 0, 0, 0.42) 72%, #000 100%),
    url('../../Img/bg-Release.webp');
  background-size: cover;
  background-position: center top;
  background-repeat: no-repeat;
  padding-bottom: 80px;
}

.releases-hero::after {
  content: "";
  position: absolute;
  inset: auto 0 0;
  height: 42%;
  background: linear-gradient(to bottom, transparent, #000);
  pointer-events: none;
}

.releases-hero .releases-wrap {
  position: relative;
  z-index: 1;
}

.releases-hero__content {
  position: relative;
  z-index: 1;
  max-width: 860px;
  margin: 0 auto;
}

.releases-hero .releases-kicker {
  border-color: rgba(255, 255, 255, 0.2);
  color: rgba(255, 255, 255, 0.86);
}

.releases-hero .releases-kicker span {
  background: rgba(255, 255, 255, 0.06);
  color: rgba(255, 255, 255, 0.92);
}

.releases-kicker {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  margin: 0 0 28px;
  padding: 4px;
  border: 1px solid rgba(255, 255, 255, 0.2);
  border-radius: 999px;
  color: rgba(255, 255, 255, 0.86);
  font-family: var(--font-sans, "Roboto", sans-serif);
  font-size: 15px;
  font-weight: 400;
  line-height: 1.2;
  letter-spacing: 0;
}

.releases-kicker span {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 30px;
  border: 0;
  border-radius: 999px;
  padding: 6px 16px;
  background: rgba(255, 255, 255, 0.06);
}

.releases-hero h1 {
  max-width: 860px;
  margin: 0 auto;
  color: #f7f5ff;
  font-family: var(--font-sans, "Roboto", sans-serif);
  font-size: clamp(36px, 5.5vw, 80px);
  font-weight: 500;
  line-height: 1.1;
  letter-spacing: -0.03em;
}

.releases-hero p {
  max-width: 780px;
  margin: 28px auto 0;
  color: rgba(255, 255, 255, 0.72);
  font-size: clamp(17px, 1.55vw, 21px);
  line-height: 1.6;
}

/* Single release — centered changelog layout */

.release-single {
  min-height: 100vh;
  background: #000;
  padding: clamp(104px, 12vw, 140px) 0 clamp(80px, 10vw, 120px);
}

.release-shell {
  width: min(100% - 48px, 1120px);
  margin: 0 auto;
}

.release-single__grid {
  display: grid;
  grid-template-columns: minmax(96px, 1fr) minmax(0, 600px) minmax(96px, 1fr);
  gap: 32px clamp(32px, 5vw, 72px);
  align-items: start;
}

.release-article {
  min-width: 0;
  max-width: 600px;
}

.release-article__header {
  margin-bottom: 22px;
}

.release-breadcrumb {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 8px;
  margin: 0 0 24px;
  color: rgba(255, 255, 255, 0.42);
  font-size: 13px;
  font-weight: 400;
  line-height: 1.4;
}

.release-breadcrumb a {
  color: inherit;
  text-decoration: none;
  transition: color 0.2s ease;
}

.release-breadcrumb a:hover {
  color: rgba(255, 255, 255, 0.72);
}

.release-breadcrumb__sep,
.release-breadcrumb__current {
  color: rgba(255, 255, 255, 0.42);
}

.release-article__header h1 {
  margin: 0;
  color: rgba(255, 255, 255, 0.92);
  font-family: var(--font-sans, "Roboto", sans-serif);
  font-size: clamp(26px, 2.8vw, 32px);
  font-weight: 400;
  line-height: 1.2;
  letter-spacing: -0.025em;
}

.release-article__meta {
  position: sticky;
  top: 112px;
  justify-self: end;
  padding-top: 2px;
  color: rgba(255, 255, 255, 0.42);
  font-size: 13px;
  font-weight: 400;
  line-height: 1.4;
  text-align: right;
  white-space: nowrap;
}

.release-single__spacer {
  min-width: 0;
}

.release-single .release-content {
  color: rgba(255, 255, 255, 0.62);
  font-size: 16px;
  font-weight: 400;
  line-height: 1.5;
}

.release-single .release-content h2,
.release-single .release-content h3,
.release-single .release-content h4 {
  margin: 2.25em 0 0.75em;
  color: rgba(255, 255, 255, 0.78);
  font-weight: 400;
  letter-spacing: -0.015em;
  line-height: 1.35;
}

.release-single .release-content h2 {
  font-size: 18px;
}

.release-single .release-content h3 {
  color: rgba(255, 255, 255, 0.72);
  font-size: 16px;
  line-height: 1.5;
  letter-spacing: 0;
}

.release-single .release-content > p:first-of-type,
.release-single .release-content .release-lead {
  margin-bottom: 1.25em;
  color: rgba(255, 255, 255, 0.62);
  font-size: 16px;
  font-weight: 400;
  line-height: 1.5;
  letter-spacing: 0;
}

.release-single .release-content p,
.release-single .release-content ul,
.release-single .release-content ol {
  max-width: 60ch;
}

.release-single .release-content figure,
.release-single .release-figure-grid,
.release-single .release-cta-row,
.release-single .release-highlight {
  max-width: 600px;
}

.release-single .release-content a {
  color: rgba(255, 255, 255, 0.82);
  font-weight: 400;
  text-decoration: underline;
  text-underline-offset: 0.16em;
  text-decoration-color: rgba(255, 255, 255, 0.24);
  transition: color 0.2s ease, text-decoration-color 0.2s ease;
}

.release-single .release-content a:hover {
  color: rgba(255, 255, 255, 0.96);
  text-decoration-color: rgba(255, 255, 255, 0.5);
}

.release-single .release-content strong {
  color: rgba(255, 255, 255, 0.78);
  font-weight: 500;
}

.release-single .release-cta-row {
  margin: 24px 0 32px;
}

.release-single .release-cta-row a {
  min-height: 36px;
  padding: 8px 14px;
  border-color: rgba(255, 255, 255, 0.14);
  background: transparent;
  color: rgba(255, 255, 255, 0.72);
  font-size: 13px;
  font-weight: 400;
  text-decoration: none;
}

.release-single .release-cta-row a:hover {
  transform: none;
  border-color: rgba(255, 255, 255, 0.32);
  background: rgba(255, 255, 255, 0.03);
  color: rgba(255, 255, 255, 0.92);
  text-decoration: none;
}

.release-single .release-content figure img {
  border-radius: 10px;
  box-shadow: none;
}

.release-single .release-highlight {
  margin: 32px 0;
  border-color: rgba(255, 255, 255, 0.08);
  border-radius: 10px;
  padding: 20px;
  background: rgba(255, 255, 255, 0.02);
}

.release-single .release-highlight span {
  font-weight: 500;
}

.releases-list-section {
  padding: clamp(56px, 7vw, 96px) 0 clamp(90px, 11vw, 140px);
  padding-top: 0px;
}

.releases-list {
  border: 1px solid var(--rel-line-strong);
  border-top: 1px solid var(--rel-line-strong);
  background: rgba(255, 255, 255, 0.02);
}

.release-card {
  display: grid;
  grid-template-columns: minmax(128px, 0.22fr) minmax(0, 1fr) auto;
  gap: 28px;
  align-items: center;
  min-height: 154px;
  padding: 34px clamp(28px, 5vw, 72px);
  border-bottom: 1px solid var(--rel-line-strong);
  background: var(--rel-card-bg);
  transition: background 0.22s ease, border-color 0.22s ease;
}

.release-card:hover {
  background: var(--rel-card-bg-hover);
}

.release-card:last-child {
  border-bottom: 0;
}

.release-card__date {
  color: var(--rel-muted);
  font-size: 13px;
  font-weight: 400;
  line-height: 1.5;
}

.release-card__body {
  color: inherit;
  text-decoration: none;
}

.release-card__body h2 {
  margin: 0;
  color: var(--rel-ink);
  font-size: 24px;
  font-weight: 400;
  line-height: 1.2;
  letter-spacing: -0.03em;
}

.release-card__body p {
  max-width: 720px;
  margin: 8px 0 0;
  color: var(--rel-muted);
  font-size: 14px;
  font-weight: 400;
  line-height: 1.5;
}

.release-card__cta {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 44px;
  border: 1px solid var(--rel-line-strong);
  border-radius: 999px;
  padding: 10px 18px;
  background: rgba(255, 255, 255, 0.045);
  color: rgba(255, 255, 255, 0.86);
  text-decoration: none;
  font-size: 14px;
  font-weight: 400;
  letter-spacing: 0;
  white-space: nowrap;
  transition: border-color 0.2s ease, background 0.2s ease, color 0.2s ease;
}

.release-card__cta:hover {
  border-color: #fff;
  background: #fff;
  color: #000;
}

.release-cta-row a {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 44px;
  border: 1px solid rgba(255, 255, 255, 0.2);
  border-radius: 999px;
  padding: 11px 20px;
  color: rgba(255, 255, 255, 0.86);
  text-decoration: none;
  font-size: 14px;
  font-weight: 500;
  line-height: 1.2;
  transition: transform 0.2s ease, background 0.2s ease, border-color 0.2s ease, color 0.2s ease;
}

.release-cta-row a:hover {
  transform: translateY(-1px);
  border-color: #fff;
  background: #fff;
  color: #050505;
}

.releases-empty {
  border: 1px solid var(--rel-line);
  border-radius: 22px;
  padding: 36px;
  background: var(--rel-surface);
}

.releases-empty h2 {
  margin: 0 0 10px;
  color: var(--rel-ink);
}

.releases-empty p {
  margin: 0;
  color: var(--rel-muted);
}

.releases-pagination {
  margin-top: 34px;
}

.releases-pagination ul {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin: 0;
  padding: 0;
  list-style: none;
}

.releases-pagination a,
.releases-pagination span {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 40px;
  min-height: 40px;
  border: 1px solid var(--rel-line);
  border-radius: 999px;
  padding: 8px 14px;
  color: var(--rel-muted);
  text-decoration: none;
  font-size: 14px;
}

.releases-pagination .current,
.releases-pagination a:hover {
  border-color: rgba(255, 255, 255, 0.6);
  color: #fff;
}

.release-content {
  color: rgba(255, 255, 255, 0.62);
  font-family: var(--font-sans, "Roboto", sans-serif);
  font-size: clamp(15px, 1.25vw, 17px);
  line-height: 1.75;
}

.release-content > *:first-child {
  margin-top: 0;
}

.release-content h2,
.release-content h3 {
  color: rgba(255, 255, 255, 0.72);
  font-weight: 500;
  letter-spacing: -0.035em;
}

.release-content h2 {
  margin: 1.65em 0 0.55em;
  font-size: clamp(24px, 2.45vw, 34px);
  line-height: 1.15;
}

.release-content h3 {
  margin: 1.4em 0 0.45em;
  color: #fff;
  font-size: inherit;
  line-height: inherit;
  letter-spacing: 0;
}

.release-content p,
.release-content ul,
.release-content ol {
  max-width: 680px;
}

.release-content p {
  margin: 0 0 1.15em;
}

.release-content .release-lead {
  max-width: 680px;
  color: rgba(255, 255, 255, 0.78);
  font-size: clamp(18px, 1.6vw, 22px);
  line-height: 1.45;
  letter-spacing: -0.02em;
}

.release-content ul,
.release-content ol {
  margin: 0 0 1.4em;
  padding-left: 1.1em;
}

.release-content li {
  margin: 0 0 0.82em;
  padding-left: 0.2em;
}

.release-content strong {
  color: rgba(255, 255, 255, 0.86);
  font-weight: 500;
}

.release-content a {
  color: #fff;
  text-underline-offset: 0.18em;
}

.release-figure,
.release-content figure {
  margin: 30px 0 38px;
}

.release-figure a,
.release-content figure a,
.release-figure__zoom {
  display: block;
  cursor: zoom-in;
  text-decoration: none;
}

.release-figure img,
.release-content figure img {
  display: block;
  width: 100%;
  height: auto;
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: 22px;
  background: rgba(255, 255, 255, 0.04);
  box-shadow: 0 24px 80px rgba(0, 0, 0, 0.34);
  transition: border-color 0.2s ease, box-shadow 0.2s ease, transform 0.2s ease;
}

.release-figure a:hover img,
.release-content figure a:hover img {
  border-color: rgba(255, 255, 255, 0.28);
  box-shadow: 0 28px 90px rgba(0, 0, 0, 0.42);
  transform: translateY(-1px);
}

.release-figure figcaption,
.release-content figure figcaption {
  margin-top: 10px;
  color: var(--rel-muted);
  font-size: 13px;
  line-height: 1.55;
}

.release-figure-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 18px;
  margin: 30px 0 38px;
}

.release-figure-grid .release-figure,
.release-figure-grid figure {
  margin: 0;
}

.release-figure-grid > figure:only-child {
  grid-column: 1 / -1;
  max-width: min(100%, 560px);
}

.release-cta-row {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin: 30px 0 46px;
}

.release-highlight {
  margin: 44px 0;
  border: 1px solid rgba(130, 114, 254, 0.22);
  border-radius: 24px;
  padding: clamp(24px, 4vw, 40px);
  background:
    radial-gradient(circle at 100% 0%, rgba(105, 88, 237, 0.14), transparent 34%),
    var(--rel-surface-strong);
}

.release-highlight span {
  display: inline-flex;
  margin-bottom: 14px;
  color: var(--rel-accent);
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.release-highlight h2 {
  margin-top: 0;
}

@media (max-width: 820px) {
  .release-single {
    padding-top: 92px;
  }

  .release-shell {
    width: min(100% - 32px, 1040px);
  }

  .release-single__grid {
    grid-template-columns: 1fr;
    gap: 12px;
  }

  .release-article {
    max-width: none;
  }

  .release-article__meta {
    position: static;
    justify-self: start;
    padding-top: 0;
    text-align: left;
    order: -1;
  }

  .release-single__spacer {
    display: none;
  }

  .release-card {
    grid-template-columns: 1fr;
    gap: 18px;
    align-items: start;
  }

  .release-card__cta {
    width: fit-content;
  }

  .release-figure-grid {
    grid-template-columns: 1fr;
  }

  .release-figure-grid > figure:only-child {
    max-width: 100%;
  }
}

@media (max-width: 560px) {
  .releases-wrap {
    width: min(100% - 32px, 1280px);
  }

  .release-card {
    padding-left: 20px;
    padding-right: 20px;
  }

  .releases-hero {
    min-height: 540px;
    padding-top: 104px;
  }

  .releases-hero h1 {
    font-size: clamp(34px, 10.5vw, 48px);
  }

  .release-single .release-content {
    font-size: 15px;
  }

  .release-cta-row a,
  .release-card__cta {
    width: 100%;
  }
}

body.release-lightbox-open {
  overflow: hidden;
}

.release-lightbox {
  position: fixed;
  inset: 0;
  z-index: 1000;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: clamp(20px, 4vw, 40px);
}

.release-lightbox[hidden] {
  display: none;
}

.release-lightbox__backdrop {
  position: absolute;
  inset: 0;
  background: rgba(0, 0, 0, 0.9);
  cursor: zoom-out;
}

.release-lightbox__dialog {
  position: relative;
  z-index: 1;
  display: flex;
  flex-direction: column;
  align-items: center;
  width: min(100%, 1200px);
  max-height: calc(100vh - 40px);
}

.release-lightbox__close {
  position: absolute;
  top: -42px;
  right: 0;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 36px;
  height: 36px;
  border: 1px solid rgba(255, 255, 255, 0.2);
  border-radius: 999px;
  padding: 0;
  background: rgba(255, 255, 255, 0.06);
  color: rgba(255, 255, 255, 0.88);
  font-size: 22px;
  line-height: 1;
  cursor: pointer;
  transition: background 0.2s ease, border-color 0.2s ease, color 0.2s ease;
}

.release-lightbox__close:hover {
  border-color: rgba(255, 255, 255, 0.42);
  background: rgba(255, 255, 255, 0.12);
  color: #fff;
}

.release-lightbox__image {
  display: block;
  width: auto;
  max-width: 100%;
  max-height: calc(100vh - 120px);
  height: auto;
  border: 1px solid rgba(255, 255, 255, 0.14);
  border-radius: 10px;
  background: #000;
}

.release-lightbox__caption {
  max-width: 720px;
  margin: 12px 0 0;
  color: rgba(255, 255, 255, 0.62);
  font-size: 13px;
  line-height: 1.5;
  text-align: center;
}

.release-lightbox__caption[hidden] {
  display: none;
}
