/*
Theme Name: Telegram Checker
Theme URI: https://telegram-checker.com/
Author: Codex
Description: NMCH product landing for WordPress with integrated payment flow.
Version: 2.1.0
*/

:root {
  --bg: #081019;
  --bg-soft: #0d1721;
  --bg-deep: #050c14;
  --panel: rgba(11, 18, 27, 0.78);
  --panel-strong: rgba(13, 22, 32, 0.96);
  --panel-soft: rgba(18, 31, 44, 0.74);
  --line: rgba(132, 176, 214, 0.14);
  --line-strong: rgba(132, 176, 214, 0.24);
  --text: #eef5fb;
  --muted: #8ca4b8;
  --brand: #42b3d6;
  --brand-strong: #5fcaeb;
  --accent: #94f0cf;
  --accent-soft: #1b3640;
  --danger: #ff8d8d;
  --success: #34c67a;
  --radius-xl: 34px;
  --radius-lg: 26px;
  --radius-md: 18px;
  --radius-sm: 14px;
  --shadow: 0 28px 80px rgba(0, 0, 0, 0.38);
  --container: 1490px;
}

*,
*::before,
*::after {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  min-width: 320px;
  color: var(--text);
  font: 16px/1.6 "Segoe UI", "Helvetica Neue", sans-serif;
  background:
    radial-gradient(circle at top left, rgba(66, 179, 214, 0.08), transparent 24%),
    radial-gradient(circle at 85% 10%, rgba(148, 240, 207, 0.06), transparent 20%),
    linear-gradient(180deg, #07111b 0%, #081019 48%, #050c14 100%);
}

body.has-product-modal {
  overflow: hidden;
}

a {
  color: inherit;
  text-decoration: none;
}

img {
  display: block;
  max-width: 100%;
}

button,
input,
select,
textarea {
  font: inherit;
}

code {
  font-family: Consolas, "Courier New", monospace;
}

.container {
  width: min(calc(100% - 40px), var(--container));
  margin: 0 auto;
}

.site-shell {
  position: relative;
  overflow: clip;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
}

.site-shell > main {
  flex: 1 0 auto;
}

.site-header {
  position: sticky;
  top: 0;
  z-index: 60;
  border-bottom: 1px solid rgba(255, 255, 255, 0.04);
  backdrop-filter: blur(20px);
  background: rgba(7, 14, 21, 0.72);
}

.site-header__inner,
.site-footer__inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
  min-height: 82px;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 14px;
  min-width: 0;
}

.brand__media--image,
.brand__mark {
  width: 52px;
  height: 52px;
  border-radius: 18px;
  overflow: hidden;
  flex: 0 0 auto;
}

.brand__media--image img {
  width: 100%;
  height: 100%;
  object-fit: contain;
  background: rgba(255, 255, 255, 0.02);
}

.brand__mark {
  position: relative;
  background:
    radial-gradient(circle at 30% 20%, rgba(255, 255, 255, 0.2), transparent 36%),
    linear-gradient(155deg, rgba(87, 204, 235, 0.22), rgba(8, 16, 25, 0.96));
  border: 1px solid rgba(255, 255, 255, 0.06);
}

.brand__mark::before,
.brand__mark::after {
  content: "";
  position: absolute;
  left: 12px;
  right: 12px;
  border-radius: 999px;
  background: linear-gradient(90deg, #dff7ff, var(--brand-strong));
}

.brand__mark::before {
  top: 16px;
  height: 4px;
}

.brand__mark::after {
  top: 25px;
  height: 4px;
  opacity: 0.72;
}

.brand__text {
  display: grid;
  gap: 2px;
  min-width: 0;
}

.brand__text strong {
  font-size: 1rem;
  letter-spacing: 0.02em;
}

.brand__text small,
.section-heading p,
.metric-card span,
.purchase-form__status,
.legal-lead,
.partner-strip__subtitle,
.release-empty-state p {
  color: var(--muted);
}

.site-nav {
  display: flex;
  align-items: center;
}

.header-language-switcher {
  position: fixed !important;
  top: auto !important;
  left: auto !important;
  right: max(18px, env(safe-area-inset-right)) !important;
  bottom: max(18px, env(safe-area-inset-bottom)) !important;
  margin: 0 !important;
  z-index: 120 !important;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 6px;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: rgba(8, 16, 25, 0.9);
  backdrop-filter: blur(16px);
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.03),
    0 18px 40px rgba(0, 0, 0, 0.34);
}

.header-language-switcher__link {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 46px;
  min-height: 36px;
  padding: 0 12px;
  border-radius: 999px;
  color: var(--muted);
  font-size: 0.9rem;
  font-weight: 700;
  letter-spacing: 0.02em;
  transition: background-color 0.2s ease, color 0.2s ease, transform 0.2s ease;
}

.header-language-switcher__link:hover {
  color: var(--text);
  background: rgba(66, 179, 214, 0.1);
}

.header-language-switcher__link.is-active {
  color: #041018;
  background: linear-gradient(135deg, var(--brand), var(--brand-strong));
  box-shadow: 0 10px 24px rgba(66, 179, 214, 0.22);
}

.header-nav {
  display: flex;
  align-items: center;
  gap: 10px;
  list-style: none;
  margin: 0;
  padding: 0;
}

.header-nav a {
  display: inline-flex;
  align-items: center;
  min-height: 42px;
  padding: 0 14px;
  border-radius: 999px;
  color: #dbe8f2;
  transition: background-color 0.2s ease, color 0.2s ease, transform 0.2s ease;
}

.header-nav a:hover {
  background: rgba(66, 179, 214, 0.12);
  color: #fff;
  transform: translateY(-1px);
}

.nav-toggle {
  display: none;
  width: 50px;
  height: 50px;
  padding: 0;
  border: 1px solid var(--line-strong);
  border-radius: 16px;
  background: rgba(255, 255, 255, 0.04);
  flex: 0 0 auto;
}

.nav-toggle span {
  display: block;
  width: 20px;
  height: 2px;
  margin: 5px auto;
  background: var(--text);
}

.masthead-region {
  position: relative;
  background:
    radial-gradient(circle at 18% 16%, rgba(66, 179, 214, 0.08), transparent 28%),
    radial-gradient(circle at 86% 22%, rgba(148, 240, 207, 0.05), transparent 20%),
    linear-gradient(180deg, rgba(7, 14, 21, 0.98), rgba(9, 19, 28, 0.9));
}

.masthead-region::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, rgba(6, 12, 18, 0.02), rgba(6, 12, 18, 0.18));
  pointer-events: none;
}

.masthead-canvas {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  opacity: 0.92;
}

.section {
  position: relative;
  padding: 74px 0;
}

.section--masthead {
  padding-top: 18px;
}

.section--contrast {
  background: linear-gradient(180deg, rgba(9, 19, 28, 0.92), rgba(6, 12, 18, 0.98));
  border-top: 1px solid rgba(255, 255, 255, 0.03);
  border-bottom: 1px solid rgba(255, 255, 255, 0.03);
}

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

.section-heading--tight {
  align-items: start;
}

.section-heading h1,
.section-heading h2,
.hero h1,
.legal-panel h1,
.partners-hero h1 {
  margin: 10px 0 0;
  line-height: 0.94;
  letter-spacing: -0.05em;
}

.section-heading h2,
.partners-hero h1 {
  font-size: clamp(2.15rem, 4vw, 3rem);
}

.hero h1,
.legal-panel h1 {
  font-size: clamp(2.75rem, 6vw, 4.5rem);
}

.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 8px 14px;
  border-radius: 999px;
  background: rgba(66, 179, 214, 0.12);
  color: var(--brand-strong);
  font-size: 0.84rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  min-height: 52px;
  padding: 0 22px;
  border-radius: 999px;
  border: 1px solid transparent;
  font-weight: 700;
  cursor: pointer;
  transition: transform 0.2s ease, box-shadow 0.2s ease, background-color 0.2s ease, border-color 0.2s ease;
}

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

.button--primary {
  background: linear-gradient(135deg, #1b738f, #4abde2);
  color: #041018;
  box-shadow: 0 20px 40px rgba(16, 71, 92, 0.28);
}

.button--ghost {
  border-color: var(--line-strong);
  background: rgba(255, 255, 255, 0.04);
  color: var(--text);
}

.hero {
  padding: 76px 0 46px;
}

.hero__grid {
  position: relative;
  z-index: 1;
  display: grid;
  grid-template-columns: minmax(0, 1.02fr) minmax(380px, 0.98fr);
  gap: 28px;
  align-items: start;
}

.hero__lead {
  max-width: 700px;
  margin: 20px 0 0;
  font-size: 1.08rem;
  color: #b4c7d6;
}

.hero__copy h1 span {
  color: var(--brand-strong);
}

.hero__actions,
.hero__stats,
.hero-panel__bands,
.hero-panel__stream,
.product-points,
.signal-box,
.release-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
}

.hero__actions {
  margin-top: 28px;
}

.hero__stats {
  margin-top: 32px;
}

.metric-card,
.hero-panel,
.product-spotlight,
.feature-card,
.workflow-card,
.editor-panel,
.trial-card,
.pricing-card,
.purchase-panel,
.contact-card,
.partner-strip,
.legal-panel,
.faq-item,
.legal-card,
.product-media-card,
.release-card,
.release-history__item,
.api-card {
  position: relative;
  border-radius: var(--radius-xl);
  border: 1px solid rgba(255, 255, 255, 0.06);
  background: var(--panel);
  box-shadow: var(--shadow);
  backdrop-filter: blur(12px);
}

.metric-card {
  min-width: 178px;
  padding: 18px 20px;
}

.metric-card strong {
  display: block;
  font-size: 1.5rem;
  margin-bottom: 6px;
}

.hero__visual {
  display: grid;
  gap: 18px;
}

.hero-panel {
  padding: 30px;
  background:
    linear-gradient(160deg, rgba(9, 19, 28, 0.96), rgba(20, 56, 74, 0.9));
  overflow: hidden;
}

.hero-panel::before {
  content: "";
  position: absolute;
  inset: 0;
  background:
    radial-gradient(circle at 100% 100%, rgba(95, 202, 235, 0.22), transparent 30%),
    radial-gradient(circle at 0% 0%, rgba(148, 240, 207, 0.1), transparent 25%);
  pointer-events: none;
}

.hero-panel__header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  margin-bottom: 24px;
}

.hero-panel__kicker,
.hero-panel__status {
  position: relative;
  z-index: 1;
  padding: 8px 12px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.06);
  font-size: 0.84rem;
}

.hero-panel h2 {
  position: relative;
  z-index: 1;
  margin: 0 0 10px;
  font-size: clamp(1.9rem, 3vw, 3rem);
  line-height: 1;
}

.hero-panel p {
  position: relative;
  z-index: 1;
  color: #c4d4df;
}

.hero-band,
.signal-tile,
.api-card {
  padding: 14px 16px;
  border-radius: 18px;
  background: rgba(255, 255, 255, 0.06);
}

.hero-band span,
.purchase-context__item span,
.purchase-price-card span {
  display: block;
  margin-bottom: 6px;
  color: #89a3b7;
  font-size: 0.85rem;
  text-transform: uppercase;
  letter-spacing: 0.08em;
}

.hero-panel__stream span,
.product-points span,
.signal-tile {
  display: inline-flex;
  align-items: center;
  min-height: 44px;
  padding: 0 14px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.08);
  color: #eff7fc;
  font-size: 0.95rem;
}

.hero-panel__stream {
  row-gap: 14px;
  margin-top: 12px;
}

.trial-card .button {
  margin-top: 18px;
}

.pricing-card__points {
  display: grid;
  gap: 10px;
  margin: 14px 0 18px;
}

.pricing-card__points span {
  width: 100%;
  justify-content: flex-start;
}

.product-media-grid {
  display: grid;
  gap: 18px;
}

.hero-media-grid,
.product-media-grid--page {
  grid-template-columns: repeat(2, minmax(0, 1fr));
}

.product-media-card {
  display: grid;
  gap: 12px;
  padding: 16px;
  cursor: pointer;
  text-align: left;
}

.product-media-card__eyebrow,
.product-media-card__cta {
  font-size: 0.82rem;
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--brand-strong);
}

.product-media-card__preview {
  position: relative;
  display: grid;
  min-height: 240px;
  overflow: hidden;
  border-radius: 22px;
  border: 1px solid rgba(255, 255, 255, 0.06);
  background: linear-gradient(180deg, rgba(10, 19, 28, 0.86), rgba(8, 15, 22, 0.98));
}

.product-media-card__preview--contain img {
  object-fit: contain;
  padding: 18px;
}

.product-media-card__preview img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.product-media-card__video-fallback {
  display: grid;
  place-items: center;
  padding: 22px;
  color: var(--muted);
}

.product-media-card__play {
  position: absolute;
  inset: 50% auto auto 50%;
  width: 70px;
  height: 70px;
  margin: -35px 0 0 -35px;
  border-radius: 999px;
  background: rgba(7, 14, 21, 0.7);
  border: 1px solid rgba(255, 255, 255, 0.08);
}

.product-media-card__play::before {
  content: "";
  position: absolute;
  left: 29px;
  top: 23px;
  border-top: 12px solid transparent;
  border-bottom: 12px solid transparent;
  border-left: 18px solid #fff;
}

.product-spotlight,
.workflow-shell,
.split-panel,
.contact-layout {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 24px;
}

.product-spotlight,
.trial-card,
.feature-card,
.workflow-card,
.editor-panel,
.pricing-card,
.purchase-panel,
.contact-card,
.partner-strip,
.legal-panel,
.release-card,
.release-history__item {
  padding: 28px;
}

.product-card__meta,
.product-card__tag {
  display: inline-flex;
  align-items: center;
  min-height: 34px;
  padding: 0 12px;
  border-radius: 999px;
  background: rgba(66, 179, 214, 0.12);
  color: var(--brand-strong);
  font-size: 0.84rem;
  font-weight: 700;
  letter-spacing: 0.05em;
  text-transform: uppercase;
}

.product-card__tag {
  margin-top: 12px;
}

.product-spotlight h3,
.trial-card h3,
.feature-card h3,
.workflow-card h3,
.editor-panel h3,
.pricing-card h3,
.contact-card h3,
.legal-card h2,
.release-card h3 {
  margin: 14px 0 10px;
  font-size: 1.62rem;
  line-height: 1.1;
}

.format-clusters,
.pricing-grid,
.contact-grid,
.feature-grid,
.legal-grid {
  display: grid;
  gap: 16px;
}

.format-clusters {
  grid-template-columns: repeat(2, minmax(0, 1fr));
  margin-top: 18px;
}

.format-cluster,
.purchase-context__item,
.purchase-price-card,
.signal,
.workflow-stage {
  border-radius: var(--radius-md);
  border: 1px solid var(--line);
  background: rgba(255, 255, 255, 0.04);
}

.format-cluster {
  padding: 18px;
}

.format-badges,
.product-page__phrase-list {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 12px;
}

.format-badge {
  display: inline-flex;
  align-items: center;
  min-height: 36px;
  padding: 0 12px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.06);
}

.format-badge--accent {
  background: rgba(95, 202, 235, 0.12);
  color: var(--brand-strong);
}

.signal-stack {
  display: grid;
  gap: 12px;
}

.feature-grid {
  grid-template-columns: repeat(3, minmax(0, 1fr));
}

.feature-card__icon,
.partner-strip__index,
.feature-card__icon--contact {
  display: inline-grid;
  place-items: center;
  width: 56px;
  height: 56px;
  border-radius: 16px;
  background: linear-gradient(135deg, #17384a, #3cb8dd);
  color: #f4fbff;
  font-weight: 800;
}

.feature-card__icon--contact img {
  width: 24px;
  height: 24px;
  object-fit: contain;
}

.workflow-card__header {
  margin-bottom: 20px;
}

.workflow-list {
  display: grid;
  gap: 12px;
}

.workflow-stage {
  display: grid;
  grid-template-columns: 54px minmax(0, 1fr);
  gap: 14px;
  align-items: center;
  padding: 16px 18px;
  transition: transform 0.24s ease, border-color 0.24s ease, background-color 0.24s ease;
}

.workflow-stage span {
  display: grid;
  place-items: center;
  width: 38px;
  height: 38px;
  border-radius: 999px;
  background: rgba(66, 179, 214, 0.12);
  color: var(--brand-strong);
  font-size: 0.84rem;
  font-weight: 800;
}

.workflow-stage.is-active {
  transform: translateX(8px);
  border-color: rgba(66, 179, 214, 0.24);
  background: rgba(66, 179, 214, 0.08);
}

.rich-copy p:first-child {
  margin-top: 0;
}

.signal-box {
  margin-top: 18px;
  flex-direction: column;
}

.signal {
  display: flex;
  justify-content: space-between;
  gap: 16px;
  padding: 16px 18px;
}

.signal strong,
.purchase-context__item strong,
.purchase-price-card strong {
  display: block;
}

.signal em {
  font-style: normal;
  font-weight: 700;
  color: var(--accent);
}

.pricing-shell {
  display: grid;
  grid-template-columns: 340px minmax(0, 1fr);
  gap: 24px;
}

.pricing-grid {
  grid-template-columns: repeat(2, minmax(0, 1fr));
}

.pricing-card strong {
  display: block;
  margin: 22px 0 8px;
  font-size: 2.6rem;
  line-height: 1;
}

.pricing-card--featured {
  background: linear-gradient(180deg, rgba(12, 24, 34, 0.98), rgba(17, 66, 87, 0.92));
}

.pricing-card--featured .button--primary {
  background: linear-gradient(135deg, var(--accent), var(--brand-strong));
  color: #041018;
}

.faq-list {
  display: grid;
  gap: 14px;
}

.faq-item {
  padding: 0;
  overflow: hidden;
}

.faq-item summary {
  padding: 22px 26px;
  cursor: pointer;
  font-weight: 700;
  list-style: none;
}

.faq-item summary::-webkit-details-marker {
  display: none;
}

.faq-item__body {
  padding: 0 26px 22px;
}

.purchase-panel {
  background: linear-gradient(180deg, rgba(9, 18, 27, 0.98), rgba(15, 38, 55, 0.94));
}

.purchase-context,
.purchase-form__grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 16px;
}

.purchase-context {
  margin: 24px 0 18px;
}

.purchase-context__item,
.purchase-price-card {
  padding: 18px;
  background: rgba(255, 255, 255, 0.06);
  border-color: rgba(255, 255, 255, 0.08);
}

.purchase-price-card strong {
  font-size: 1.8rem;
}

.purchase-form {
  display: grid;
  gap: 18px;
}

.purchase-form__grid--secondary {
  grid-template-columns: 1fr;
}

.field {
  display: grid;
  gap: 8px;
}

.field span,
.field-checkbox span {
  font-size: 0.94rem;
}

.field input,
.field select,
.field textarea {
  width: 100%;
  min-height: 56px;
  padding: 0 16px;
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 16px;
  background: rgba(255, 255, 255, 0.05);
  color: #fff;
}

.field select option {
  color: #081019;
}

.field-checkbox {
  display: flex;
  gap: 10px;
  align-items: start;
}

.field-checkbox a {
  color: #9ae0ff;
}

.purchase-banner {
  margin-bottom: 18px;
  padding: 16px 18px;
  border-radius: 18px;
  background: rgba(52, 198, 122, 0.14);
  border: 1px solid rgba(52, 198, 122, 0.28);
}

.purchase-form__actions {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
}

.contact-grid {
  grid-template-columns: repeat(2, minmax(220px, 1fr));
  align-content: start;
}

.contact-card p {
  min-height: 0;
  margin: 0;
}

.contact-layout {
  grid-template-columns: minmax(280px, 0.82fr) minmax(0, 1.18fr);
  align-items: start;
}

.contact-card {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 14px;
  min-height: 100%;
}

.contact-card h3 {
  margin: 2px 0 0;
}

.contact-card .feature-card__icon {
  width: 58px;
  height: 58px;
  margin-bottom: 2px;
}

.contact-card .button {
  margin-top: auto;
  min-height: 46px;
  padding: 0 18px;
}

.split-panel {
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
}

.api-card {
  margin-top: 16px;
  overflow-wrap: anywhere;
}

.downloads-page,
.downloads-page__section,
.media-page {
  position: relative;
}

.media-teaser-card,
.media-inline-note {
  position: relative;
  border-radius: var(--radius-xl);
  border: 1px solid rgba(255, 255, 255, 0.06);
  background: rgba(10, 18, 27, 0.78);
  box-shadow: var(--shadow);
  backdrop-filter: blur(12px);
}

.media-teaser-card {
  display: grid;
  gap: 12px;
  padding: 22px 24px;
}

.media-teaser-card__eyebrow {
  color: var(--brand-strong);
  font-size: 0.82rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.media-teaser-card h3 {
  margin: 0;
  font-size: 1.5rem;
}

.media-teaser-card p,
.media-inline-note p {
  margin: 0;
  color: var(--muted);
}

.media-inline-note {
  padding: 28px;
}

.release-card__head,
.release-history__summary,
.release-history__meta {
  display: flex;
  align-items: start;
  justify-content: space-between;
  gap: 14px;
}

.release-card__notes p:first-child {
  margin-top: 0;
}

.release-assets {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 12px;
  margin-top: 18px;
}

.search-phrases-copy {
  color: var(--muted);
}

.release-asset {
  display: grid;
  gap: 4px;
  padding: 16px;
  border-radius: 18px;
  border: 1px solid var(--line);
  background: rgba(255, 255, 255, 0.04);
  transition: transform 0.2s ease, border-color 0.2s ease, background-color 0.2s ease, box-shadow 0.2s ease;
}

.release-asset.is-highlighted {
  border-color: rgba(95, 202, 235, 0.82);
  background: rgba(66, 179, 214, 0.16);
  box-shadow: 0 0 0 1px rgba(95, 202, 235, 0.22), 0 18px 36px rgba(11, 80, 106, 0.28);
  transform: translateY(-2px);
}

.release-asset__lang {
  color: var(--brand-strong);
  font-size: 0.82rem;
  font-weight: 700;
  letter-spacing: 0.05em;
  text-transform: uppercase;
}

.release-history {
  display: grid;
  gap: 14px;
  margin-top: 18px;
}

.release-history__item {
  padding: 0;
  overflow: hidden;
}

.release-history__summary {
  padding: 22px 24px;
  cursor: pointer;
  list-style: none;
}

.release-history__summary::-webkit-details-marker {
  display: none;
}

.release-history__body {
  padding: 0 24px 24px;
}

.release-history__toggle {
  color: var(--muted);
}

.release-history__item[open] .release-history__toggle-open,
.release-history__toggle-close {
  display: none;
}

.release-history__item[open] .release-history__toggle-close {
  display: inline;
}

.media-lightbox {
  position: fixed;
  inset: 0;
  z-index: 120;
}

.media-lightbox__backdrop {
  position: absolute;
  inset: 0;
  background: rgba(4, 10, 16, 0.84);
  backdrop-filter: blur(8px);
}

.media-lightbox__dialog {
  position: relative;
  z-index: 1;
  width: min(calc(100% - 32px), 1380px);
  margin: 16px auto;
  padding: 18px;
  border-radius: 30px;
  background: rgba(9, 18, 27, 0.96);
  border: 1px solid rgba(255, 255, 255, 0.08);
  box-shadow: var(--shadow);
  max-height: calc(100vh - 32px);
  overflow: hidden;
}

.media-lightbox__body {
  display: grid;
  place-items: center;
  min-height: min(72vh, 820px);
}

.media-lightbox__body img,
.media-lightbox__body iframe,
.media-lightbox__body video {
  border-radius: 22px;
}

.media-lightbox__body.is-image img {
  width: auto;
  max-width: 100%;
  max-height: min(80vh, 900px);
  object-fit: contain;
}

.media-lightbox__body.is-video iframe,
.media-lightbox__body.is-video video {
  width: min(100%, 1220px);
  aspect-ratio: 16 / 9;
  max-height: min(78vh, 820px);
  background: #000;
  object-fit: contain;
}

.media-lightbox__close,
.media-lightbox__nav {
  position: absolute;
  top: 16px;
  width: 44px;
  height: 44px;
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.06);
  color: #fff;
  cursor: pointer;
}

.media-lightbox__close {
  right: 16px;
}

.media-lightbox__close::before,
.media-lightbox__close::after {
  content: "";
  position: absolute;
  top: 21px;
  left: 13px;
  width: 18px;
  height: 2px;
  background: #fff;
}

.media-lightbox__close::before {
  transform: rotate(45deg);
}

.media-lightbox__close::after {
  transform: rotate(-45deg);
}

.media-lightbox__nav--prev {
  left: 16px;
  top: 50%;
  margin-top: -22px;
}

.media-lightbox__nav--next {
  right: 16px;
  top: 50%;
  margin-top: -22px;
}

.media-lightbox__nav::before {
  content: "";
  position: absolute;
  top: 15px;
  left: 16px;
  width: 10px;
  height: 10px;
  border-top: 2px solid #fff;
  border-right: 2px solid #fff;
  transform: rotate(45deg);
}

.media-lightbox__nav--prev::before {
  transform: rotate(-135deg);
  left: 18px;
}

.media-lightbox__thumbs {
  display: flex;
  justify-content: center;
  gap: 10px;
  flex-wrap: wrap;
  margin-top: 16px;
}

.media-lightbox__thumb {
  width: 78px;
  height: 62px;
  padding: 0;
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 12px;
  overflow: hidden;
  background: transparent;
  cursor: pointer;
}

.media-lightbox__thumb img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.media-lightbox__thumb.is-active {
  border-color: var(--brand-strong);
}

.partners-page {
  min-height: calc(100vh - 180px);
}

.partners-hero {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(280px, 420px);
  gap: 24px;
  margin-bottom: 28px;
}

.partner-grid {
  display: grid;
  gap: 14px;
}

.partner-strip {
  display: grid;
  grid-template-columns: 64px minmax(0, 1.1fr) minmax(180px, 260px);
  gap: 18px;
  align-items: center;
  padding: 22px 26px;
  overflow: hidden;
  background:
    linear-gradient(180deg, rgba(10, 18, 28, 0.96), rgba(8, 15, 23, 0.92));
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.04),
    0 26px 64px rgba(0, 0, 0, 0.28);
  transition:
    transform 0.28s ease,
    border-color 0.28s ease,
    box-shadow 0.28s ease;
}

.partner-strip::before {
  content: "";
  position: absolute;
  inset: 0;
  background:
    radial-gradient(circle at 100% 0%, rgba(95, 202, 235, 0.1), transparent 28%),
    radial-gradient(circle at 0% 100%, rgba(148, 240, 207, 0.06), transparent 24%);
  pointer-events: none;
}

.partner-strip:hover {
  transform: translateY(-3px);
  border-color: rgba(95, 202, 235, 0.16);
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.05),
    0 30px 72px rgba(0, 0, 0, 0.34);
}

.partner-strip__index {
  width: 58px;
  height: 58px;
  display: grid;
  place-items: center;
  overflow: hidden;
  border-radius: 18px;
  background: transparent;
  box-shadow: none;
}

.partner-strip__index span {
  font-weight: 800;
  color: #fff;
  letter-spacing: -0.03em;
}

.partner-strip__index img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.partner-strip__body {
  display: grid;
  align-content: center;
  gap: 14px;
  min-width: 0;
}

.partner-strip__top {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  flex-wrap: wrap;
}

.partner-strip__subtitle {
  color: rgba(214, 227, 239, 0.86);
  font-size: 0.98rem;
}

.partner-strip p {
  margin: 0;
  max-width: 780px;
  color: rgba(221, 232, 241, 0.88);
  font-size: clamp(1rem, 1.08vw, 1.12rem);
  font-weight: 500;
  line-height: 1.72;
}

.partner-strip .button {
  min-width: 0;
  width: fit-content;
  padding-inline: 24px;
}

.partner-strip__media,
.partner-strip__placeholder {
  min-height: 168px;
  padding: 18px;
  border: 1px solid rgba(132, 176, 214, 0.12);
  border-radius: 24px;
  background:
    linear-gradient(180deg, rgba(14, 23, 34, 0.92), rgba(9, 17, 25, 0.88));
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.04),
    inset 0 0 0 1px rgba(255, 255, 255, 0.015);
}

.partner-strip__media img,
.partner-strip__placeholder {
  width: 100%;
  height: 100%;
  border-radius: 18px;
  object-fit: contain;
}

.partner-strip__placeholder {
  display: grid;
  place-items: center;
  background: rgba(255, 255, 255, 0.03);
  color: rgba(255, 255, 255, 0.82);
  text-align: center;
  font-weight: 700;
  letter-spacing: -0.02em;
}

.legal-panel {
  padding: 34px;
}

.legal-grid {
  grid-template-columns: repeat(2, minmax(0, 1fr));
  margin-top: 30px;
}

.legal-card {
  padding: 22px;
}

.legal-note {
  margin-top: 22px;
  padding: 18px 20px;
  border-radius: 18px;
  background: #101f2b;
  color: #fff;
}

.site-footer {
  padding: 18px 0 34px;
  color: var(--muted);
}

/* GTranslate floating switcher */
.gt_float_switcher {
  right: 22px !important;
  bottom: 22px !important;
  min-width: 220px !important;
  border: 1px solid rgba(132, 176, 214, 0.18) !important;
  border-radius: 20px !important;
  background: linear-gradient(180deg, rgba(11, 18, 27, 0.96), rgba(7, 14, 21, 0.98)) !important;
  backdrop-filter: blur(18px) saturate(140%);
  -webkit-backdrop-filter: blur(18px) saturate(140%);
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.06),
    0 20px 48px rgba(0, 0, 0, 0.38),
    0 0 28px rgba(66, 179, 214, 0.08) !important;
  overflow: hidden !important;
}

.gt_float_switcher .gt-selected {
  background: transparent !important;
  border: 0 !important;
  border-radius: 0 !important;
}

.gt_float_switcher .gt-selected .gt-current-lang {
  display: flex !important;
  align-items: center !important;
  justify-content: space-between !important;
  gap: 12px !important;
  min-height: 52px !important;
  padding: 13px 18px !important;
  border: 0 !important;
  border-radius: 0 !important;
  background: transparent !important;
  color: var(--text) !important;
  font-size: 15px !important;
  font-weight: 700 !important;
  letter-spacing: 0.01em;
}

.gt_float_switcher .gt-selected .gt-current-lang:hover {
  background: linear-gradient(90deg, rgba(66, 179, 214, 0.08), rgba(148, 240, 207, 0.08)) !important;
}

.gt_float_switcher .gt-selected .gt-current-lang span,
.gt_float_switcher .gt-selected .gt-current-lang div {
  color: var(--text) !important;
}

.gt_float_switcher .gt-selected .gt-current-lang img {
  border-radius: 4px !important;
  box-shadow: 0 0 0 1px rgba(255, 255, 255, 0.08) !important;
}

.gt_float_switcher {
  display: none !important;
}

.gt_float_switcher .gt_options {
  border-top: 1px solid rgba(132, 176, 214, 0.12) !important;
  background: rgba(7, 14, 21, 0.98) !important;
}

.gt_float_switcher .gt_options a {
  padding: 13px 18px !important;
  background: transparent !important;
  color: #d4e2ec !important;
  font-size: 15px !important;
  font-weight: 500 !important;
  transition: background-color 0.2s ease, color 0.2s ease;
}

.gt_float_switcher .gt_options a:hover {
  background: linear-gradient(90deg, rgba(66, 179, 214, 0.12), rgba(148, 240, 207, 0.08)) !important;
  color: #ffffff !important;
}

.gt_float_switcher .gt_options::-webkit-scrollbar {
  width: 10px;
}

.gt_float_switcher .gt_options::-webkit-scrollbar-track {
  background: rgba(7, 14, 21, 0.98);
}

.gt_float_switcher .gt_options::-webkit-scrollbar-thumb {
  border-radius: 999px;
  background: linear-gradient(180deg, rgba(66, 179, 214, 0.88), rgba(148, 240, 207, 0.84));
  border: 2px solid rgba(7, 14, 21, 0.98);
}

body.error404 {
  background: #081019;
}

body.error404 .site-shell {
  background: #081019;
}

.error-page {
  min-height: calc(100vh - 180px);
}

.reveal {
  opacity: 0;
  transform: translateY(24px);
  transition: opacity 0.5s ease, transform 0.5s ease;
}

.reveal.is-visible {
  opacity: 1;
  transform: translateY(0);
}

@media (max-width: 1100px) {
  .hero__grid,
  .product-spotlight,
  .workflow-shell,
  .pricing-shell,
  .partners-hero,
  .partner-strip {
    grid-template-columns: 1fr;
  }

  .feature-grid,
  .contact-grid,
  .legal-grid,
  .pricing-grid,
  .hero-media-grid,
  .product-media-grid--page {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .site-header__inner {
    gap: 12px;
  }

  .brand {
    max-width: 250px;
  }

  .brand__text small {
    line-height: 1.3;
  }

  .header-nav {
    gap: 2px;
  }

  .header-nav a {
    min-height: 38px;
    padding: 0 10px;
    font-size: 0.94rem;
  }
}

@media (max-width: 1024px) {
  .nav-toggle {
    display: block;
    margin-left: auto;
  }

  .site-header__inner {
    position: relative;
    align-items: center;
    flex-wrap: wrap;
  }

  .site-nav {
    position: absolute;
    top: calc(100% + 8px);
    right: 0;
    left: auto;
    width: min(320px, calc(100vw - 32px));
    display: none;
    padding: 12px;
    border-radius: 24px;
    border: 1px solid rgba(255, 255, 255, 0.08);
    background: rgba(8, 16, 25, 0.98);
    box-shadow: var(--shadow);
  }

  .site-nav.is-open {
    display: block;
  }

  .header-nav {
    flex-direction: column;
    align-items: stretch;
  }

  .header-nav a {
    justify-content: center;
  }

  .brand {
    max-width: calc(100% - 70px);
  }
}

@media (max-width: 860px) {
  .header-language-switcher {
    position: fixed !important;
    top: auto !important;
    left: auto !important;
    right: max(14px, env(safe-area-inset-right)) !important;
    bottom: max(14px, env(safe-area-inset-bottom)) !important;
    margin: 0 !important;
    padding: 5px;
  }

  .header-language-switcher__link {
    min-width: 42px;
    min-height: 34px;
    padding: 0 10px;
  }

  .site-footer__inner,
  .section-heading,
  .purchase-form__actions {
    align-items: start;
    flex-direction: column;
  }

  .section {
    padding: 54px 0;
  }

  .hero {
    padding-top: 42px;
  }

  .feature-grid,
  .contact-grid,
  .legal-grid,
  .format-clusters,
  .purchase-context,
  .purchase-form__grid,
  .pricing-grid,
  .hero-media-grid,
  .product-media-grid--page,
  .release-assets {
    grid-template-columns: 1fr;
  }

  .metric-card,
  .hero-panel,
  .product-spotlight,
  .feature-card,
  .workflow-card,
  .editor-panel,
  .trial-card,
  .pricing-card,
  .purchase-panel,
  .contact-card,
  .partner-strip,
  .legal-panel,
  .legal-card,
  .release-card,
  .release-history__item {
    padding: 22px 18px;
    border-radius: 24px;
  }

  .brand {
    max-width: calc(100% - 70px);
  }

  .product-media-card__preview {
    min-height: 200px;
  }

  .media-lightbox__dialog {
    width: calc(100% - 24px);
    margin: 20px auto;
    padding: 14px;
  }

  .gt_float_switcher {
    right: 14px !important;
    bottom: 14px !important;
    min-width: 190px !important;
    border-radius: 18px !important;
  }

  .gt_float_switcher .gt-selected .gt-current-lang {
    min-height: 48px !important;
    padding: 12px 16px !important;
    font-size: 14px !important;
  }

  .gt_float_switcher .gt_options a {
    padding: 12px 16px !important;
    font-size: 14px !important;
  }
}
