:root {
  --bg: #181b23;
  --bg-soft: #262335;
  --surface: #1e222a;
  --surface-2: #2a2234;
  --accent: #463465;
  --accent-2: #5d4a82;
  --accent-rgb: 70, 52, 101;
  --accent-mid-rgb: 95, 75, 120;
  --text: #f1f5f9;
  --text-soft: #c2c2c3;
  --muted: #96959c;
  --border: #4c4558;
  --ok: #34d399;
  --shadow: 0 20px 50px rgba(11, 7, 18, 0.45);
  --topbar-h: 72px;
  --under-h2-gap: 22px;
  --sticky-top-offset: calc(var(--topbar-h) + 1px + var(--under-h2-gap));
  /* Отступ от бейджа до h1 */
  --hero-label-rhythm: 14px;
  /* На 2px больше зазора от топбара до бейджа */
  --hero-top-after-topbar: calc(var(--hero-label-rhythm) + 2px);
  --video-radius: 14px;
}

@keyframes topbar-slide-in {
  from {
    opacity: 0;
    transform: translateY(-14px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@keyframes fab-enter {
  from {
    opacity: 0;
    transform: scale(0.62) translateY(18px);
  }
  to {
    opacity: 1;
    transform: scale(1) translateY(0);
  }
}

@keyframes hero-cta-shine {
  0% {
    transform: translateX(-140%) skewX(-14deg);
  }
  42%,
  100% {
    transform: translateX(180%) skewX(-14deg);
  }
}

* {
  box-sizing: border-box;
}

html {
  margin: 0;
  padding: 0;
  scroll-padding-top: var(--sticky-top-offset);
}

body {
  margin: 0;
  padding: 0;
}

body {
  font-family: "Manrope", sans-serif;
  color: var(--text);
  background:
    radial-gradient(1200px 600px at 85% -10%, rgba(var(--accent-rgb), 0.22), transparent 65%),
    radial-gradient(800px 500px at -10% 20%, rgba(var(--accent-mid-rgb), 0.14), transparent 60%),
    var(--bg);
  line-height: 1.5;
  min-height: 100vh;
}

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

.bg-blur {
  position: fixed;
  z-index: -1;
  border-radius: 999px;
  filter: blur(50px);
  pointer-events: none;
}

.bg-blur-1 {
  width: 380px;
  height: 380px;
  top: -120px;
  right: 5%;
  background: rgba(var(--accent-rgb), 0.28);
}

.bg-blur-2 {
  width: 320px;
  height: 320px;
  left: 2%;
  bottom: 10%;
  background: rgba(var(--accent-rgb), 0.2);
}

.topbar {
  position: sticky;
  top: 0;
  z-index: 20;
  backdrop-filter: blur(12px);
  background: rgba(24, 27, 35, 0.72);
  border-bottom: 1px solid rgba(76, 69, 88, 0.7);
  animation: topbar-slide-in 0.52s cubic-bezier(0.22, 1, 0.36, 1) both;
}

.topbar-inner {
  min-height: 72px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
}

.topbar-actions {
  display: flex;
  align-items: center;
  gap: 10px;
  flex-shrink: 0;
}

/* Текстовая ссылка как у переключателя языка (без рамки и стрелки) */
.topbar-text-link {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  margin: 0;
  padding: 6px 4px;
  border: none;
  border-radius: 6px;
  background: transparent;
  color: #e2e1e5;
  font-family: inherit;
  font-size: 15px;
  font-weight: 500;
  line-height: 1.2;
  text-decoration: none;
  white-space: nowrap;
  -webkit-tap-highlight-color: transparent;
}

.topbar-text-link:hover {
  color: #f4f4f5;
}

.topbar-text-link:focus-visible {
  outline: 2px solid rgba(196, 181, 232, 0.55);
  outline-offset: 2px;
}

/* «Главная» + язык: одна линия по вертикали в ряду (общий кегль, шеврон без сдвига вниз) */
.topbar-actions:has(> .topbar-text-link) {
  align-items: center;
}

.topbar-actions:has(> .topbar-text-link) .lang-switch-summary {
  font-size: 14px;
}

.topbar-actions:has(> .topbar-text-link) .lang-switch-chevron {
  margin-top: 0;
}

.lang-switch {
  position: relative;
  z-index: 30;
  flex-shrink: 0;
  display: flex;
  align-items: center;
}

/* Подложка: клик по странице (кроме топбара z20 и самого меню) закрывает язык */
.lang-switch-backdrop {
  position: fixed;
  inset: 0;
  z-index: 12;
  background: transparent;
  cursor: default;
}

.lang-switch > summary {
  list-style: none;
}

.lang-switch > summary::-webkit-details-marker {
  display: none;
}

/* Как блок языка в LoginWindow: InputFieldForegroundBrush (#E2E1E5), 13px + иконка MDL2 (у нас SVG вниз) */
.lang-switch-summary {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 5px;
  max-width: min(200px, 36vw);
  margin: 0;
  padding: 6px 4px;
  list-style: none;
  border: none;
  border-radius: 6px;
  background: transparent;
  color: #e2e1e5;
  font-family: inherit;
  font-size: 13px;
  font-weight: 500;
  line-height: 1.2;
  cursor: pointer;
  -webkit-tap-highlight-color: transparent;
}

.lang-switch-summary:hover {
  color: #f4f4f5;
}

.lang-switch-summary:focus-visible {
  outline: 2px solid rgba(196, 181, 232, 0.55);
  outline-offset: 2px;
}

.lang-switch-summary-label {
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  min-width: 0;
}

.lang-switch-chevron {
  display: flex;
  align-items: center;
  flex-shrink: 0;
  margin: 2px 0 0 1px;
  color: inherit;
  transition: transform 0.2s ease;
}

.lang-switch-chevron-svg {
  display: block;
}

.lang-switch[open] .lang-switch-chevron {
  transform: rotate(180deg);
}

/* Как LanguageContextMenuStyle + LanguageMenuItemStyle в LoginWindow.xaml */
.lang-switch-panel {
  position: absolute;
  z-index: 35;
  inset-inline-end: 0;
  top: calc(100% + 8px);
  box-sizing: border-box;
  min-width: 100px;
  width: max-content;
  max-width: min(280px, calc(100vw - 24px));
  max-height: 260px;
  margin: 0;
  padding: 6px 4px;
  border: none;
  border-radius: 8px;
  background: rgba(70, 52, 101, 0.9);
  box-shadow: 0 10px 32px rgba(11, 7, 18, 0.5);
  overflow: hidden;
}

.lang-switch-scroll {
  box-sizing: border-box;
  max-height: calc(260px - 12px);
  overflow-x: hidden;
  overflow-y: auto;
  overscroll-behavior: contain;
  scrollbar-width: thin;
  scrollbar-color: #3b304c transparent;
}

.lang-switch-scroll::-webkit-scrollbar {
  width: 8px;
}

.lang-switch-scroll::-webkit-scrollbar-track {
  background: transparent;
  border-radius: 4px;
}

.lang-switch-scroll::-webkit-scrollbar-thumb {
  background: #3b304c;
  border-radius: 4px;
  opacity: 0.9;
}

.lang-switch-scroll::-webkit-scrollbar-thumb:hover {
  background: #4a3e5f;
}

.lang-switch-option {
  display: block;
  width: 100%;
  margin: 2px 0;
  padding: 6px 4px;
  border: none;
  border-radius: 6px;
  background: transparent;
  color: #c2c2c3;
  font: inherit;
  font-size: clamp(0.88rem, 1.4vw, 1rem);
  line-height: 1.38;
  text-align: start;
  cursor: pointer;
  transition: background 0.18s ease, color 0.18s ease;
}

.lang-switch-option:hover,
.lang-switch-option:focus-visible {
  background: #5e4e79;
  color: #f4f4f5;
  outline: none;
}

.lang-switch-option[aria-current="true"] {
  background: #5e4e79;
  color: #f4f4f5;
}

.support-fab {
  position: fixed;
  z-index: 50;
  right: max(18px, env(safe-area-inset-right, 0px));
  bottom: max(20px, env(safe-area-inset-bottom, 0px));
  width: 60px;
  height: 60px;
  display: flex;
  align-items: center;
  justify-content: center;
  border: none;
  border-radius: 50%;
  text-decoration: none;
  overflow: hidden;
  color: #fff;
  background-color: var(--accent);
  background-image: linear-gradient(135deg, var(--accent), var(--accent-2));
  box-shadow:
    0 10px 30px rgba(var(--accent-rgb), 0.42),
    0 0 44px rgba(var(--accent-rgb), 0.32),
    0 0 72px rgba(var(--accent-mid-rgb), 0.2),
    0 2px 8px rgba(0, 0, 0, 0.22);
  transition: transform 0.18s ease, box-shadow 0.18s ease;
  animation: fab-enter 0.62s cubic-bezier(0.34, 1.45, 0.64, 1) 0.32s both;
}

.support-fab:hover {
  transform: translateY(-1px);
  box-shadow:
    0 14px 34px rgba(var(--accent-rgb), 0.52),
    0 0 56px rgba(var(--accent-rgb), 0.4),
    0 0 96px rgba(var(--accent-mid-rgb), 0.26),
    0 4px 12px rgba(0, 0, 0, 0.26);
  color: #fff;
}

.support-fab:focus-visible {
  outline: 3px solid rgba(196, 181, 232, 0.95);
  outline-offset: 3px;
}

.support-fab-icon {
  display: block;
  width: 30px;
  height: 30px;
  flex-shrink: 0;
}

@media (max-width: 380px) {
  .support-fab {
    width: 54px;
    height: 54px;
    right: max(14px, env(safe-area-inset-right, 0px));
    bottom: max(16px, env(safe-area-inset-bottom, 0px));
  }

  .support-fab-icon {
    width: 27px;
    height: 27px;
  }
}

.reveal,
.reveal-tilt,
.reveal-pop {
  opacity: 0;
  transition-delay: var(--reveal-delay, 0ms);
  will-change: opacity, transform;
}

.reveal {
  transform: translate3d(0, 2rem, 0) scale(0.96);
  filter: blur(5px);
  transition:
    opacity 0.68s cubic-bezier(0.22, 1, 0.36, 1),
    transform 0.72s cubic-bezier(0.22, 1, 0.36, 1),
    filter 0.52s ease;
}

.reveal-tilt {
  transform: perspective(920px) rotateX(11deg) translate3d(0, 2.25rem, 0) scale(0.93);
  filter: blur(4px);
  transform-origin: 50% 85%;
  transition:
    opacity 0.72s cubic-bezier(0.22, 1, 0.36, 1),
    transform 0.8s cubic-bezier(0.22, 1, 0.36, 1),
    filter 0.5s ease,
    box-shadow 0.32s ease,
    border-color 0.28s ease;
}

.reveal.reveal-pop {
  transform: translate3d(0, 2.85rem, 0) scale(0.88);
  filter: blur(6px);
  transition:
    opacity 0.72s cubic-bezier(0.22, 1, 0.36, 1),
    transform 0.82s cubic-bezier(0.22, 1, 0.36, 1),
    filter 0.55s ease;
}

.reveal.is-revealed,
.reveal-pop.is-revealed {
  opacity: 1;
  filter: none;
  transform: translate3d(0, 0, 0) scale(1);
}

.reveal-tilt.is-revealed {
  opacity: 1;
  filter: none;
  transform: perspective(920px) rotateX(0deg) translate3d(0, 0, 0) scale(1);
}

.card.reveal-tilt.is-revealed:hover {
  transform: translateY(-7px) scale(1.02);
  box-shadow:
    0 28px 56px rgba(11, 7, 18, 0.52),
    0 0 40px rgba(var(--accent-rgb), 0.18);
  border-color: rgba(var(--accent-mid-rgb), 0.55);
}

.plan--basic {
  border-color: rgba(76, 69, 88, 0.38);
  background: rgba(24, 27, 35, 0.55);
  box-shadow: none;
}

.plan--basic.reveal-tilt.is-revealed:hover {
  transform: translateY(-4px) scale(1.01);
  border-color: rgba(76, 69, 88, 0.5);
  box-shadow: 0 14px 32px rgba(11, 7, 18, 0.32);
}

.step.reveal-tilt.is-revealed:hover {
  transform: translateY(-5px) scale(1.01);
  border-color: rgba(var(--accent-mid-rgb), 0.5);
  box-shadow: 0 18px 40px rgba(11, 7, 18, 0.38);
}

.plan-accent.reveal-tilt.is-revealed:hover {
  transform: translateY(-7px) scale(1.02);
}

.cta-download.reveal-pop.is-revealed:hover {
  transform: translateY(-2px) scale(1.03);
}

.brand {
  display: flex;
  align-items: center;
  gap: 10px;
}

.brand-logo {
  width: 26px;
  height: 26px;
  object-fit: contain;
  display: block;
}

.brand-name {
  font-family: "Unbounded", sans-serif;
  font-size: 1rem;
  letter-spacing: 0.02em;
}

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

.topbar-cta-short {
  display: none;
}

.hero {
  padding: var(--hero-top-after-topbar) 0 36px;
}

.label {
  display: inline-block;
  margin: 0 0 var(--hero-label-rhythm);
  padding: 6px 12px;
  border: 1px solid rgba(var(--accent-mid-rgb), 0.45);
  border-radius: 999px;
  color: var(--accent-2);
  font-weight: 600;
  font-size: 0.85rem;
  background: rgba(var(--accent-rgb), 0.14);
}

h1,
h2,
h3 {
  margin: 0;
  line-height: 1.1;
}

h1 {
  max-width: 880px;
  font-family: "Unbounded", sans-serif;
  font-size: clamp(2rem, 4vw, 3.4rem);
}

h2 {
  font-family: "Unbounded", sans-serif;
  font-size: clamp(1.45rem, 2.4vw, 2.15rem);
  margin-bottom: var(--under-h2-gap);
}

h3 {
  font-size: 1.1rem;
  margin-bottom: 12px;
}

.hero-text {
  max-width: 760px;
  margin: 18px 0 0;
  font-size: clamp(1rem, 1.8vw, 1.24rem);
  color: var(--text-soft);
}

.hero-actions {
  margin-top: 30px;
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
}

@media (prefers-reduced-motion: no-preference) {
  .hero-actions > .btn.btn-lg:not(.btn-ghost),
  .cta .cta-download.btn-lg:not(.btn-ghost) {
    position: relative;
  }

  .hero-actions > .btn.btn-lg:not(.btn-ghost)::after,
  .cta .cta-download.btn-lg:not(.btn-ghost)::after {
    content: "";
    position: absolute;
    inset: 0;
    border-radius: inherit;
    background: linear-gradient(
      100deg,
      transparent 0%,
      rgba(255, 255, 255, 0.24) 45%,
      transparent 78%
    );
    animation: hero-cta-shine 4.2s ease-in-out infinite;
    pointer-events: none;
  }

  .cta .cta-download.btn-lg:not(.btn-ghost)::after {
    animation-delay: 1.6s;
  }
}

.btn {
  text-decoration: none;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 12px;
  font-weight: 700;
  transition: 0.18s ease;
  cursor: pointer;
}

.btn-sm {
  padding: 10px 14px;
  font-size: 0.92rem;
}

.btn-lg {
  padding: 14px 22px;
  font-size: 1rem;
}

.btn:not(.btn-ghost) {
  color: #fff;
  border: none;
  overflow: hidden;
  background-color: var(--accent);
  background-image: linear-gradient(135deg, var(--accent), var(--accent-2));
  box-shadow: 0 10px 30px rgba(var(--accent-rgb), 0.38);
}

.btn:not(.btn-ghost):hover {
  transform: translateY(-1px);
  box-shadow: 0 14px 34px rgba(var(--accent-rgb), 0.48);
}

.btn-ghost {
  border: 1px solid var(--border);
  color: var(--text);
  background: rgba(36, 27, 47, 0.45);
}

.btn-ghost:hover {
  border-color: rgba(var(--accent-mid-rgb), 0.55);
  background: rgba(var(--accent-rgb), 0.16);
}

.hero-points {
  margin: 18px 0 0;
  padding: 0;
  list-style: none;
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.hero-points li {
  font-size: 0.9rem;
  color: var(--text-soft);
  padding: 8px 12px;
  border: 1px solid rgba(76, 69, 88, 0.85);
  border-radius: 999px;
  background: rgba(30, 34, 42, 0.7);
}

.hero-video-wrap {
  margin-top: 22px;
  margin-inline: auto;
  width: 100%;
  max-width: min(1080px, 100%);
  line-height: 0;
  border-radius: var(--video-radius);
  overflow: hidden;
}

.hero-video {
  display: block;
  width: 100%;
  max-width: 100%;
  height: auto;
  max-height: min(85vh - 8px, 1920px);
  margin-inline: auto;
  border: 0;
  border-radius: var(--video-radius);
  vertical-align: top;
  background: #12141a;
}

@supports (image-rendering: high-quality) {
  .hero-video {
    image-rendering: high-quality;
  }
}

.section {
  padding: 52px 0;
}

.grid {
  display: grid;
  gap: 16px;
}

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

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

.card {
  padding: 20px;
  border-radius: 16px;
  border: 1px solid rgba(76, 69, 88, 0.85);
  background:
    linear-gradient(180deg, rgba(42, 36, 54, 0.72), rgba(24, 27, 35, 0.72));
  box-shadow: var(--shadow);
}

.card p {
  margin: 0;
  color: var(--text-soft);
}

.benefits-chart {
  margin-top: 40px;
}

.benefits-chart-title {
  font-family: "Unbounded", sans-serif;
  font-size: clamp(1.05rem, 1.6vw, 1.35rem);
  line-height: 1.2;
  margin: 0 0 10px;
  color: var(--text);
}

.benefits-chart-text {
  margin: 0 0 18px;
  max-width: 720px;
  color: var(--text-soft);
  font-size: clamp(0.95rem, 1.2vw, 1.05rem);
}

.growth-chart {
  margin: 0;
  padding: 18px 18px 16px;
  overflow: hidden;
}

.growth-chart-inner {
  width: 100%;
  max-width: 100%;
}

.growth-chart-svg {
  display: block;
  width: 100%;
  height: auto;
  min-height: 200px;
  max-height: 280px;
}

.growth-chart-clip-rect {
  width: 0;
  transition: width 0s linear;
}

.growth-chart-line {
  transition: stroke-dashoffset 0s linear;
}

.growth-chart-baseline {
  opacity: 0;
  transition: opacity 0s linear;
}

.growth-chart--visible .growth-chart-clip-rect {
  width: 440px;
  transition: width 3.4s cubic-bezier(0.22, 1, 0.36, 1);
}

.growth-chart--visible .growth-chart-line {
  stroke-dashoffset: 0;
  transition: stroke-dashoffset 3.55s cubic-bezier(0.22, 1, 0.36, 1);
}

.growth-chart--visible .growth-chart-baseline {
  opacity: 1;
  transition: opacity 0.95s ease 0.28s;
}

.growth-chart-caption {
  margin: 14px 0 0;
  font-size: 0.88rem;
  color: var(--muted);
  line-height: 1.45;
}

.benefits-style-rank {
  margin-top: 36px;
}

.style-rank-card {
  margin-top: 4px;
  padding: 18px 18px 14px;
}

.style-rank-list {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  gap: 11px;
  position: relative;
  --rank-row-h: 34px;
  max-height: calc((5 * var(--rank-row-h)) + (4 * 11px) + 10px);
  overflow: hidden;
}

.style-rank-item {
  display: grid;
  grid-template-columns: 1.4rem minmax(5.5rem, 1fr) minmax(0, 1fr) 2.75rem;
  align-items: center;
  gap: 10px;
  min-height: var(--rank-row-h);
}

.style-rank-pos {
  font-size: 0.72rem;
  font-weight: 800;
  color: var(--muted);
  text-align: center;
}

.style-rank-item:nth-child(1) .style-rank-pos {
  color: #c4b5e8;
}

.style-rank-name {
  font-size: 0.9rem;
  font-weight: 700;
  color: var(--text);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.style-rank-track {
  height: 8px;
  border-radius: 999px;
  background: rgba(18, 20, 26, 0.65);
  border: 1px solid rgba(76, 69, 88, 0.55);
  overflow: hidden;
}

.style-rank-bar {
  display: block;
  height: 100%;
  width: 0;
  border-radius: inherit;
  background: linear-gradient(90deg, rgba(var(--accent-rgb), 0.95), rgba(52, 211, 153, 0.85));
  box-shadow: 0 0 12px rgba(var(--accent-rgb), 0.35);
  transition: width 0.85s cubic-bezier(0.22, 1, 0.36, 1);
}

.style-rank-pct {
  font-size: 0.88rem;
  font-weight: 800;
  color: var(--text-soft);
  text-align: right;
  font-variant-numeric: tabular-nums;
  transition: color 0.25s ease;
}

.style-rank-pct.is-bump {
  color: #34d399;
}

.style-rank-foot {
  display: flex;
  align-items: center;
  gap: 8px;
  margin: 24px 0 0;
  font-size: 0.78rem;
  color: var(--muted);
}

.style-process {
  margin-top: 16px;
  padding: 18px;
  border-radius: 18px;
  border: 1px solid rgba(var(--accent-mid-rgb), 0.22);
  background:
    radial-gradient(760px 220px at 15% 0%, rgba(var(--accent-rgb), 0.14), transparent 70%),
    linear-gradient(160deg, rgba(42, 34, 52, 0.44), rgba(24, 27, 35, 0.6));
  box-shadow:
    0 22px 54px rgba(11, 7, 18, 0.28),
    0 0 38px rgba(var(--accent-rgb), 0.08);
}

.style-process-h {
  margin-top: 28px;
}

.style-process-p {
  margin-bottom: 12px;
}

.style-process-title {
  margin: 0 0 6px;
  font-family: "Unbounded", sans-serif;
  font-size: 1.08rem;
  line-height: 1.25;
  color: var(--text);
}

.style-process-subtitle {
  margin: 0;
  color: var(--muted);
  line-height: 1.55;
  font-size: 0.92rem;
  max-width: 62ch;
}

.style-process-steps {
  margin: 0;
  padding: 0;
  list-style: none;
  display: grid;
  gap: 12px;
  counter-reset: styleStep;
  grid-template-columns: repeat(2, minmax(0, 1fr));
}

.style-process-step {
  counter-increment: styleStep;
  position: relative;
  padding: 14px 14px 14px 46px;
  border-radius: 16px;
  border: 1px solid rgba(76, 69, 88, 0.45);
  background: rgba(18, 20, 26, 0.28);
  overflow: hidden;
  opacity: 1;
}

.style-process-step::before {
  content: counter(styleStep);
  position: absolute;
  left: 12px;
  top: 12px;
  width: 28px;
  height: 28px;
  border-radius: 10px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-weight: 900;
  font-size: 0.88rem;
  color: #fff;
  background-image: linear-gradient(135deg, var(--accent), var(--accent-2));
  box-shadow: 0 10px 22px rgba(var(--accent-rgb), 0.22);
}

.style-process-step-title {
  display: block;
  font-weight: 800;
  color: var(--text);
  margin: 0 0 6px;
}

.style-process-step-text {
  display: block;
  color: var(--text-soft);
  line-height: 1.55;
  font-size: 0.92rem;
}

.style-process-foot {
  margin: 14px 0 0;
  color: var(--text-soft);
  line-height: 1.55;
  font-size: 0.9rem;
  opacity: 0.86;
}

@media (max-width: 760px) {
  .style-process-steps {
    grid-template-columns: 1fr;
  }
}

.style-rank-pulse {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: #34d399;
  box-shadow: 0 0 0 0 rgba(52, 211, 153, 0.55);
  animation: style-rank-pulse 2.2s ease-out infinite;
}

@keyframes style-rank-pulse {
  0% {
    box-shadow: 0 0 0 0 rgba(52, 211, 153, 0.55);
  }
  70% {
    box-shadow: 0 0 0 8px rgba(52, 211, 153, 0);
  }
  100% {
    box-shadow: 0 0 0 0 rgba(52, 211, 153, 0);
  }
}

@media (max-width: 520px) {
  .style-rank-item {
    grid-template-columns: 1.2rem minmax(4.5rem, 1fr) minmax(0, 1fr) 2.5rem;
    gap: 8px;
  }

  .style-rank-name {
    font-size: 0.84rem;
  }
}

@media (prefers-reduced-motion: reduce) {
  .topbar {
    animation: none;
  }

  .support-fab {
    animation: none;
  }

  .hero-actions > .btn.btn-lg:not(.btn-ghost)::after,
  .cta .cta-download.btn-lg:not(.btn-ghost)::after {
    display: none;
  }

  .reveal,
  .reveal-tilt,
  .reveal-pop {
    opacity: 1;
    transform: none;
    filter: none;
    transition: none;
  }

  .growth-chart .growth-chart-clip-rect {
    width: 440px;
    transition: none;
  }

  .growth-chart .growth-chart-line {
    stroke-dashoffset: 0;
    transition: none;
  }

  .growth-chart .growth-chart-baseline {
    opacity: 1;
    transition: none;
  }

  .style-rank-bar {
    transition: none;
  }

  .style-rank-pulse {
    animation: none;
  }
}

.steps {
  display: grid;
  gap: 12px;
}

.step {
  display: grid;
  grid-template-columns: 48px 1fr;
  gap: 14px;
  align-items: center;
  padding: 16px;
  border-radius: 14px;
  border: 1px solid rgba(76, 69, 88, 0.85);
  background: rgba(30, 34, 42, 0.72);
}

.step span {
  width: 48px;
  height: 48px;
  border-radius: 12px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-weight: 800;
  font-size: 1.15rem;
  color: #fff;
  overflow: hidden;
  background-color: var(--accent);
  background-image: linear-gradient(135deg, var(--accent), var(--accent-2));
}

.step p {
  margin: 0;
  color: var(--text-soft);
}

.demo-video-section-title {
  max-width: min(680px, 100%);
  margin: 0 0 10px;
  font-family: "Unbounded", sans-serif;
  font-size: clamp(1.05rem, 1.55vw, 1.22rem);
  font-weight: 700;
  color: var(--text);
  line-height: 1.2;
  text-align: left;
}

.demo-video-wrap--featured + .demo-video-section-title {
  margin-top: 24px;
}

.demo-video-section-desc {
  max-width: min(680px, 100%);
  margin: 0 0 16px;
  font-size: 0.92rem;
  line-height: 1.55;
  color: var(--text-soft);
  text-align: left;
}

.demo-video-section-title + .demo-video-section-desc + .demo-video-wrap--featured {
  margin-top: 16px;
}

.demo-video-section-title + .demo-video-wrap--featured {
  margin-top: 16px;
}

.steps + .demo-video-wrap--featured {
  margin-top: 24px;
}

.demo-video-wrap {
  margin-top: 18px;
  padding: 16px;
  border-radius: 16px;
  border: 1px solid rgba(76, 69, 88, 0.85);
  background: rgba(24, 27, 35, 0.8);
}

.demo-video-wrap--featured {
  margin-top: 24px;
  margin-inline: auto;
  width: 100%;
  max-width: min(1080px, 100%);
  padding: 0;
  border: none;
  border-radius: var(--video-radius);
  background: transparent;
  line-height: 0;
  overflow: hidden;
}

.demo-video-wrap--featured .demo-video {
  display: block;
  width: 100%;
  max-width: 100%;
  height: auto;
  max-height: min(85vh - 8px, 1920px);
  margin-inline: auto;
  border: 0;
  border-radius: var(--video-radius);
  box-shadow: none;
  background: #12141a;
  object-fit: initial;
  vertical-align: top;
}

@supports (image-rendering: high-quality) {
  .demo-video-wrap--featured .demo-video {
    image-rendering: high-quality;
  }
}

.demo-video {
  width: 100%;
  display: block;
  border-radius: var(--video-radius);
  border: 1px solid rgba(76, 69, 88, 0.85);
  background:
    linear-gradient(145deg, rgba(var(--accent-rgb), 0.12), rgba(24, 27, 35, 0.95));
  box-shadow: var(--shadow);
  object-fit: contain;
  vertical-align: middle;
}

.pricing .plan-grid {
  align-items: stretch;
  gap: 22px;
}

.pricing-note {
  width: min(920px, 100%);
  margin: 18px auto 0;
  padding: 14px 16px;
  border-radius: 16px;
  border: 1px solid rgba(var(--accent-mid-rgb), 0.28);
  background:
    radial-gradient(700px 180px at 18% 0%, rgba(var(--accent-rgb), 0.12), transparent 70%),
    linear-gradient(160deg, rgba(42, 34, 52, 0.52), rgba(24, 27, 35, 0.62));
  box-shadow:
    0 18px 46px rgba(11, 7, 18, 0.32),
    0 0 34px rgba(var(--accent-rgb), 0.08);
  color: var(--text-soft);
}

.pricing-note-items {
  display: grid;
  gap: 8px;
}

.pricing-note-item {
  margin: 0;
  font-size: 0.92rem;
  line-height: 1.55;
  position: relative;
  padding-left: 18px;
}

.pricing-note-item::before {
  content: "";
  position: absolute;
  left: 0;
  top: 0.55em;
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: linear-gradient(135deg, var(--accent), #34d399);
  box-shadow: 0 0 0 3px rgba(var(--accent-rgb), 0.14);
}

.pricing-note-item strong {
  color: var(--text);
  font-weight: 800;
}

.pricing-note-link {
  color: var(--text);
  text-decoration: none;
  border-bottom: 1px solid rgba(180, 170, 200, 0.45);
}

.pricing-note-link:hover {
  color: #fff;
  border-bottom-color: rgba(var(--accent-mid-rgb), 0.75);
}

.plan {
  display: flex;
  flex-direction: column;
  padding: 22px 20px 20px;
}

.plan-head {
  margin: 0 0 2px;
}

.plan-title {
  margin: 0;
  font-size: 1.125rem;
  font-weight: 800;
  letter-spacing: -0.02em;
  color: var(--text);
}

.plan-price-row {
  display: flex;
  flex-wrap: wrap;
  align-items: baseline;
  gap: 4px 8px;
  margin-top: 8px;
}

.plan--pro .plan-head-top + .plan-price-row {
  margin-top: 8px;
}

.plan-price {
  font-size: clamp(1.5rem, 2.4vw, 1.75rem);
  font-weight: 800;
  line-height: 1.1;
  color: var(--text);
}

.plan-price-period {
  font-size: 0.95rem;
  font-weight: 600;
  color: var(--muted);
}

.plan-price-was {
  font-size: 0.88rem;
  font-weight: 600;
  color: var(--muted);
  text-decoration: line-through;
  text-decoration-color: rgba(150, 149, 156, 0.85);
}

.plan-period {
  margin: 6px 0 0;
  font-size: 0.8rem;
  font-weight: 600;
  color: var(--muted);
}

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

.plan-badge {
  flex-shrink: 0;
  margin: 0;
  padding: 4px 10px;
  border-radius: 999px;
  font-size: 0.62rem;
  font-weight: 800;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--text);
  background: linear-gradient(135deg, rgba(var(--accent-rgb), 0.95), rgba(var(--accent-mid-rgb), 0.85));
  border: 1px solid rgba(255, 255, 255, 0.12);
  box-shadow: 0 4px 14px rgba(var(--accent-rgb), 0.35);
}

.plan-highlight {
  margin-top: 12px;
  padding: 11px 12px;
  border-radius: 10px;
  border: 1px solid rgba(76, 69, 88, 0.75);
  background: rgba(18, 20, 26, 0.55);
}

.plan-highlight--accent,
.plan-accent .plan-highlight {
  border-color: rgba(255, 255, 255, 0.14);
  background: rgba(0, 0, 0, 0.18);
}

.plan-highlight-title {
  margin: 0;
  font-size: 0.88rem;
  font-weight: 700;
  line-height: 1.35;
  color: var(--text);
}

.plan-highlight-sub {
  margin: 4px 0 0;
  font-size: 0.78rem;
  line-height: 1.4;
  color: var(--muted);
}

.plan--basic .plan-features {
  margin-top: 10px;
}

.plan-features {
  list-style: none;
  margin: 14px 0 0;
  padding: 0;
  flex: 1;
}

.plan-features li {
  position: relative;
  margin: 0 0 9px;
  padding-left: 1.45em;
  font-size: 0.86rem;
  line-height: 1.4;
  color: var(--text-soft);
}

.plan-features li:last-child {
  margin-bottom: 0;
}

.plan-features li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 0.35em;
  width: 0.55em;
  height: 0.3em;
  border-left: 2px solid rgba(255, 255, 255, 0.75);
  border-bottom: 2px solid rgba(255, 255, 255, 0.75);
  transform: rotate(-45deg);
}

.plan--pro .plan-features li::before {
  border-left-color: #30ae84;
  border-bottom-color: #30ae84;
}

.plan-features li.plan-features-sub {
  margin: 0 0 4px;
  padding-left: 1.15em;
  font-size: 0.78rem;
  color: var(--text-muted, rgba(255, 255, 255, 0.55));
}

.plan-features li.plan-features-sub::before {
  content: none;
}

.plan-accent {
  border-color: rgba(var(--accent-rgb), 0.85);
  box-shadow:
    0 0 0 1px rgba(var(--accent-rgb), 0.35),
    0 0 32px rgba(var(--accent-rgb), 0.38),
    0 0 56px rgba(var(--accent-rgb), 0.22),
    0 20px 50px rgba(11, 7, 18, 0.45);
  background:
    radial-gradient(380px 220px at 92% 8%, rgba(var(--accent-rgb), 0.55), transparent 58%),
    radial-gradient(260px 200px at 8% 92%, rgba(var(--accent-mid-rgb), 0.2), transparent 52%),
    linear-gradient(180deg, rgba(var(--accent-rgb), 0.4), rgba(30, 34, 42, 0.88));
}

.faq-item {
  padding: 14px 16px;
  border-radius: 12px;
  border: 1px solid rgba(76, 69, 88, 0.85);
  background: rgba(24, 27, 35, 0.78);
}

.faq-item + .faq-item {
  margin-top: 10px;
}

.faq-item summary {
  cursor: pointer;
  font-weight: 700;
}

.faq-item p {
  margin: 10px 0 0;
  color: var(--text-soft);
}

.cta {
  text-align: center;
  padding: 64px 24px;
  border-radius: 22px;
  border: 1px solid rgba(var(--accent-rgb), 0.55);
  background:
    radial-gradient(900px 220px at 50% -40%, rgba(var(--accent-mid-rgb), 0.22), transparent 68%),
    linear-gradient(160deg, rgba(42, 34, 52, 0.92), rgba(24, 27, 35, 0.94));
}

.cta p {
  max-width: 720px;
  margin: 14px auto 22px;
  color: var(--text-soft);
}

.cta-download-short {
  display: none;
}

.footer {
  padding: 26px 0 max(18px, calc(18px + env(safe-area-inset-bottom, 0px) + 28px));
  text-align: center;
  color: var(--muted);
}

.footer-inner {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 10px;
}

.footer-legal {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 12px 20px;
}

.footer-legal a {
  color: var(--text-soft);
  text-decoration: none;
  border-bottom: 1px solid transparent;
}

.footer-legal a:hover {
  color: var(--text);
  border-bottom-color: rgba(180, 170, 200, 0.45);
}

.legal-page {
  padding: 28px 0 56px;
}

.legal-content {
  width: min(820px, calc(100% - 40px));
  margin: 0 auto;
  color: var(--text-soft);
}

.legal-content h1 {
  font-family: "Unbounded", sans-serif;
  font-size: clamp(1.45rem, 4vw, 2rem);
  color: var(--text);
  margin: 0 0 10px;
  line-height: 1.2;
  font-weight: 700;
}

.legal-content .legal-updated {
  color: var(--muted);
  font-size: 0.875rem;
  margin: 0 0 26px;
}

.legal-content h2 {
  font-size: 1.05rem;
  color: var(--text);
  margin: 26px 0 10px;
  font-weight: 700;
}

.legal-content p,
.legal-content ul {
  margin: 0 0 14px;
}

.legal-content ul {
  padding-left: 1.25rem;
}

.legal-content li {
  margin-bottom: 7px;
}

.legal-content a {
  color: #c9b8e8;
  text-decoration: underline;
  text-underline-offset: 3px;
}

.legal-content a:hover {
  color: #ebe4fb;
}

.legal-content .legal-note {
  font-size: 0.9rem;
  color: var(--muted);
  border-left: 3px solid rgba(93, 74, 130, 0.65);
  padding-left: 14px;
  margin: 16px 0;
}

.topbar-back {
  flex-shrink: 0;
}

.topbar-back a {
  color: var(--text-soft);
  text-decoration: none;
  font-weight: 600;
  font-size: 0.9rem;
}

.topbar-back a:hover {
  color: var(--text);
}

@media (max-width: 920px) {
  .grid-3,
  .grid-2 {
    grid-template-columns: 1fr;
  }

}

@media (max-width: 560px) {
  :root {
    --topbar-h: 52px;
  }

  .container {
    width: min(1120px, calc(100% - 28px));
  }

  .topbar-inner {
    min-height: 52px;
    gap: 8px;
  }

  .brand-logo {
    width: 22px;
    height: 22px;
  }

  .brand-name {
    font-size: 0.82rem;
    max-width: min(160px, 46vw);
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
  }

  .topbar-cta-full {
    display: none;
  }

  .topbar-cta-short {
    display: inline;
  }

  .topbar .topbar-cta.btn-sm {
    padding: 6px 10px;
    font-size: 0.78rem;
    border-radius: 8px;
    flex-shrink: 0;
    box-shadow: 0 6px 18px rgba(var(--accent-rgb), 0.3);
  }

  .hero-actions {
    flex-direction: column;
    align-items: stretch;
  }

  .btn-lg {
    width: 100%;
  }
}

@media (max-width: 425px) {
  :root {
    --topbar-h: 48px;
  }

  .container {
    width: min(1120px, calc(100% - 24px));
  }

  .topbar-inner {
    min-height: 48px;
    gap: 6px;
  }

  .brand-name {
    font-size: 0.78rem;
    max-width: min(150px, 44vw);
  }

  .topbar .topbar-cta.btn-sm {
    padding: 5px 9px;
    font-size: 0.74rem;
  }

}

@media (max-width: 375px) {
  :root {
    --topbar-h: 46px;
  }

  .container {
    width: min(1120px, calc(100% - 20px));
  }

  .topbar-inner {
    min-height: 46px;
    gap: 5px;
  }

  .brand-logo {
    width: 20px;
    height: 20px;
  }

  .brand-name {
    font-size: 0.74rem;
    max-width: min(118px, 38vw);
  }

  .topbar .topbar-cta.btn-sm {
    padding: 5px 8px;
    font-size: 0.72rem;
    border-radius: 7px;
    box-shadow: 0 4px 14px rgba(var(--accent-rgb), 0.24);
  }

  .hero {
    padding: var(--hero-top-after-topbar) 0 28px;
  }

  h1 {
    font-size: clamp(1.5rem, 6.2vw, 2.35rem);
  }

  .hero-text {
    font-size: clamp(0.92rem, 3.8vw, 1.1rem);
  }

  .lang-switch-option {
    font-size: clamp(0.82rem, 3vw, 0.96rem);
    padding: 5px 3px;
  }

  .section {
    padding: 40px 0;
  }

  .cta {
    padding: 52px 28px 44px;
  }

  .cta-download-full {
    display: none;
  }

  .cta-download-short {
    display: inline;
  }

  .cta .cta-download.btn-lg {
    width: auto;
    max-width: calc(100% - 8px);
    display: inline-flex;
    margin-left: auto;
    margin-right: auto;
  }
}

@media (max-width: 320px) {
  :root {
    --topbar-h: 44px;
  }

  .container {
    width: min(1120px, calc(100% - 16px));
  }

  .topbar-inner {
    min-height: 44px;
    gap: 4px;
  }

  .brand-name {
    font-size: 0.68rem;
    max-width: 92px;
    letter-spacing: 0.01em;
  }

  .topbar .topbar-cta.btn-sm {
    padding: 4px 7px;
    font-size: 0.66rem;
    border-radius: 6px;
    box-shadow: 0 3px 12px rgba(var(--accent-rgb), 0.22);
  }

  .lang-switch-summary {
    max-width: min(110px, 40vw);
    padding: 4px 2px;
    font-size: 12px;
    gap: 4px;
  }

  .topbar-actions:has(> .topbar-text-link) .topbar-text-link {
    font-size: 13px;
    padding: 4px 2px;
  }

  .topbar-actions:has(> .topbar-text-link) .lang-switch-summary {
    font-size: 13px;
  }

  .topbar-actions:has(> .topbar-text-link) .lang-switch-chevron {
    margin-top: 0;
  }

  .lang-switch-chevron-svg {
    width: 9px;
    height: 5px;
  }

  .hero {
    padding: var(--hero-top-after-topbar) 0 24px;
  }

  h1 {
    font-size: clamp(1.28rem, 5.8vw, 2rem);
  }

  .label {
    font-size: 0.78rem;
    padding: 5px 10px;
  }

  .btn-lg {
    padding: 12px 16px;
    font-size: 0.92rem;
  }

  .section {
    padding: 34px 0;
  }

  .card {
    padding: 16px;
  }

  .cta {
    padding: 48px 32px 40px;
  }

  .cta .cta-download.btn-lg {
    max-width: calc(100% - 4px);
    padding-inline: 22px;
  }
}
