:root {
  color-scheme: dark;
  --bg: #090b12;
  --bg-deep: #06080d;
  --surface: #10131d;
  --surface-2: #151925;
  --surface-3: #1b2030;
  --border: rgba(219, 225, 255, 0.09);
  --border-strong: rgba(219, 225, 255, 0.16);
  --text: #f5f6fb;
  --muted: #a0a7ba;
  --subtle: #7f889d;
  --accent: #6d5dfc;
  --accent-hover: #7c6dff;
  --accent-soft: rgba(109, 93, 252, 0.13);
  --success: #58c99a;
  --success-soft: rgba(88, 201, 154, 0.1);
  --danger: #ff7b88;
  --danger-soft: rgba(255, 123, 136, 0.09);
  --container: 1160px;
  --tool-width: 920px;
  --radius-sm: 12px;
  --radius-md: 18px;
  --radius-lg: 24px;
  --shadow: 0 24px 70px rgba(0, 0, 0, 0.27);
  --transition-fast: 160ms ease;
  --transition: 220ms ease;
}

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

html {
  scroll-behavior: smooth;
  scroll-padding-top: 86px;
}

body {
  min-width: 320px;
  min-height: 100vh;
  margin: 0;
  overflow-x: hidden;
  color: var(--text);
  background:
    radial-gradient(circle at 50% 5%, rgba(109, 93, 252, 0.105), transparent 31rem),
    var(--bg);
  font-family: "Manrope", system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  font-size: 16px;
  -webkit-font-smoothing: antialiased;
}

body::before {
  content: "";
  width: 100%;
  height: 660px;
  position: absolute;
  inset: 0 0 auto;
  z-index: -1;
  pointer-events: none;
  opacity: 0.38;
  background-image:
    linear-gradient(rgba(255, 255, 255, 0.025) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255, 255, 255, 0.025) 1px, transparent 1px);
  background-size: 40px 40px;
  mask-image: linear-gradient(to bottom, black, transparent 86%);
}

button,
input {
  font: inherit;
}

button,
a {
  -webkit-tap-highlight-color: transparent;
}

svg {
  display: block;
}

.icon-sprite {
  width: 0;
  height: 0;
  position: absolute;
  overflow: hidden;
}

.sr-only {
  width: 1px;
  height: 1px;
  position: absolute;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  clip-path: inset(50%);
  white-space: nowrap;
}

.skip-link {
  position: fixed;
  top: 10px;
  inset-inline-start: 10px;
  z-index: 100;
  padding: 10px 14px;
  border-radius: 9px;
  color: white;
  background: var(--accent);
  text-decoration: none;
  transform: translateY(-150%);
  transition: transform var(--transition-fast);
}

.skip-link:focus {
  transform: translateY(0);
}

main > section,
.nav-shell,
.footer-grid,
.footer-bottom {
  width: min(var(--container), calc(100% - 32px));
  margin-inline: auto;
}

.site-header {
  min-height: 64px;
  position: sticky;
  top: 0;
  z-index: 50;
  border-bottom: 1px solid transparent;
  background: rgba(9, 11, 18, 0.62);
  backdrop-filter: blur(14px);
  transition: background var(--transition), border-color var(--transition), box-shadow var(--transition);
}

.site-header.is-scrolled {
  border-color: var(--border);
  background: rgba(9, 11, 18, 0.9);
  box-shadow: 0 10px 34px rgba(0, 0, 0, 0.18);
}

.nav-shell {
  min-height: 64px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
}

.brand {
  width: fit-content;
  display: inline-flex;
  align-items: center;
  gap: 9px;
  color: var(--text);
  text-decoration: none;
}

.logo-mark {
  width: 34px;
  height: 34px;
  display: grid;
  place-items: center;
  flex: 0 0 auto;
  border: 1px solid rgba(255, 255, 255, 0.11);
  border-radius: 10px;
  color: white;
  background: var(--accent);
  box-shadow: 0 8px 22px rgba(65, 50, 190, 0.24);
}

.logo-mark svg {
  width: 27px;
  height: 27px;
  fill: currentColor;
}

.brand-word {
  font-size: 0.96rem;
  font-weight: 800;
  letter-spacing: 0.16em;
}

.header-actions {
  display: flex;
  align-items: center;
  gap: 7px;
}

.install-button,
.language-toggle,
.menu-toggle {
  min-width: 42px;
  min-height: 42px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 7px;
  border: 1px solid var(--border);
  border-radius: 11px;
  color: var(--muted);
  background: rgba(255, 255, 255, 0.025);
  cursor: pointer;
  text-decoration: none;
  transition: color var(--transition-fast), border-color var(--transition-fast), background var(--transition-fast);
}

.install-button {
  min-height: 42px;
  padding: 0 12px;
  color: #d8d4ff;
  border-color: rgba(129, 114, 255, 0.22);
  background: rgba(109, 93, 252, 0.09);
  font-size: 0.69rem;
  font-weight: 800;
}

.language-toggle {
  padding: 0 10px;
  font-size: 0.69rem;
  font-weight: 800;
}

.install-button svg,
.language-toggle svg,
.menu-toggle svg {
  width: 17px;
  height: 17px;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.8;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.install-button:hover,
.language-toggle:hover,
.menu-toggle:hover {
  color: var(--text);
  border-color: var(--border-strong);
  background: rgba(255, 255, 255, 0.055);
}

.install-button:hover {
  color: white;
  border-color: rgba(145, 132, 255, 0.38);
  background: rgba(109, 93, 252, 0.16);
}

.ios-install-hint {
  width: min(520px, calc(100% - 32px));
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
  margin: 12px auto 0;
  padding: 11px 12px 11px 14px;
  border: 1px solid rgba(129, 114, 255, 0.2);
  border-radius: 13px;
  color: var(--muted);
  background: rgba(18, 21, 32, 0.92);
  box-shadow: 0 12px 35px rgba(0, 0, 0, 0.18);
  font-size: 0.7rem;
}

.ios-install-hint > div {
  min-width: 0;
  display: flex;
  align-items: center;
  gap: 10px;
}

.ios-install-hint > div > svg {
  width: 18px;
  height: 18px;
  flex: 0 0 auto;
  color: #aaa0ff;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.8;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.ios-install-hint p {
  margin: 0;
  line-height: 1.45;
}

.ios-install-hint strong,
.ios-install-hint span {
  display: block;
}

.ios-install-hint strong {
  color: var(--text);
  font-size: 0.72rem;
}

.ios-install-hint button {
  width: 34px;
  height: 34px;
  display: grid;
  place-items: center;
  flex: 0 0 auto;
  border: 0;
  border-radius: 9px;
  color: var(--subtle);
  background: transparent;
  cursor: pointer;
}

.ios-install-hint button:hover {
  color: var(--text);
  background: rgba(255, 255, 255, 0.05);
}

.ios-install-hint button svg {
  width: 15px;
  height: 15px;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.8;
  stroke-linecap: round;
}

.close-icon,
.menu-toggle[aria-expanded="true"] .menu-icon {
  display: none;
}

.menu-toggle[aria-expanded="true"] .close-icon {
  display: block;
}

.site-nav {
  position: fixed;
  top: 72px;
  right: 16px;
  left: 16px;
  z-index: 51;
  visibility: hidden;
  display: grid;
  gap: 3px;
  padding: 8px;
  border: 1px solid var(--border-strong);
  border-radius: 16px;
  opacity: 0;
  background: rgba(16, 19, 29, 0.98);
  box-shadow: var(--shadow);
  transform: translateY(-9px) scale(0.985);
  transform-origin: top;
  transition: opacity var(--transition), transform var(--transition), visibility var(--transition);
}

.site-nav.is-open {
  visibility: visible;
  opacity: 1;
  transform: translateY(0) scale(1);
}

.nav-link {
  min-height: 48px;
  display: flex;
  align-items: center;
  gap: 10px;
  position: relative;
  padding: 0 13px;
  border-radius: 10px;
  color: var(--muted);
  text-decoration: none;
  font-size: 0.78rem;
  font-weight: 650;
  transition: color var(--transition-fast), background var(--transition-fast);
}

.nav-link svg {
  width: 16px;
  height: 16px;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.8;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.nav-link:hover,
.nav-link.is-active {
  color: var(--text);
  background: rgba(255, 255, 255, 0.045);
}

.nav-link.is-active::after {
  content: "";
  width: 4px;
  height: 4px;
  position: absolute;
  inset-inline-end: 13px;
  border-radius: 50%;
  background: #9a8fff;
  box-shadow: 0 0 0 4px rgba(109, 93, 252, 0.1);
}

.hero {
  max-width: 880px;
  position: relative;
  padding-top: 47px;
  padding-bottom: 26px;
  text-align: center;
}

.hero-brand-mark {
  width: 48px;
  height: 48px;
  display: grid;
  place-items: center;
  margin: 0 auto 17px;
  border: 1px solid rgba(139, 125, 255, 0.16);
  border-radius: 15px;
  color: #9b90ff;
  background: rgba(109, 93, 252, 0.075);
}

.hero-brand-mark svg {
  width: 37px;
  height: 37px;
  fill: currentColor;
}

.eyebrow,
.section-kicker,
.tool-kicker,
.result-kicker {
  margin: 0;
  color: #aaa3eb;
  font-size: 0.66rem;
  font-weight: 800;
  letter-spacing: 0.13em;
  text-transform: uppercase;
}

.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 8px;
}

.eyebrow > span:first-child {
  width: 5px;
  height: 5px;
  border-radius: 50%;
  background: var(--success);
}

.hero h1 {
  max-width: 840px;
  margin: 14px auto 0;
  font-size: clamp(2.25rem, 11vw, 4.55rem);
  line-height: 1.06;
  letter-spacing: -0.058em;
}

.hero h1 span {
  display: block;
}

.hero-title-soft {
  color: #aeb4c4;
  font-weight: 650;
}

.hero-copy {
  max-width: 610px;
  margin: 18px auto 0;
  color: var(--muted);
  font-size: 0.91rem;
  line-height: 1.7;
}

.hero-platforms {
  display: flex;
  justify-content: center;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 18px;
}

.hero-platforms > span {
  min-height: 30px;
  display: inline-flex;
  align-items: center;
  gap: 7px;
  padding: 0 10px;
  border: 1px solid var(--border);
  border-radius: 999px;
  color: var(--muted);
  background: rgba(255, 255, 255, 0.022);
  font-size: 0.68rem;
  font-weight: 700;
}

.hero-platforms svg {
  width: 14px;
  height: 14px;
  fill: currentColor;
}

.hero-platforms .instagram {
  fill: none;
  stroke: #dd87bb;
  stroke-width: 1.9;
}

.hero-platforms .tiktok {
  color: #e5e9f2;
}

.downloader-section {
  max-width: var(--tool-width);
}

.telegram-strip,
.recent-activity {
  max-width: var(--tool-width);
}

.telegram-strip {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr);
  align-items: center;
  gap: 13px;
  margin-top: 16px;
  padding: 17px 18px;
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  background: rgba(16, 19, 29, 0.58);
}

.telegram-mark {
  width: 42px;
  height: 42px;
  display: grid;
  place-items: center;
  border: 1px solid rgba(111, 185, 229, 0.15);
  border-radius: 12px;
  color: #a9cde4;
  background: rgba(41, 153, 213, 0.07);
}

.telegram-mark svg,
.telegram-button svg,
.telegram-link svg {
  fill: currentColor;
}

.telegram-mark svg {
  width: 21px;
  height: 21px;
}

.telegram-copy h2 {
  margin: 3px 0 0;
  font-size: 0.92rem;
}

.telegram-copy > p:last-child {
  margin: 5px 0 0;
  color: var(--subtle);
  font-size: 0.7rem;
  line-height: 1.55;
}

.telegram-button {
  min-height: 40px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  grid-column: 1 / -1;
  padding: 0 13px;
  border: 1px solid var(--border);
  border-radius: 11px;
  color: var(--muted);
  background: rgba(255, 255, 255, 0.025);
  text-decoration: none;
  font-size: 0.7rem;
  font-weight: 700;
  transition: color var(--transition-fast), border-color var(--transition-fast), background var(--transition-fast);
}

.telegram-button svg {
  width: 16px;
  height: 16px;
}

.telegram-button:hover {
  color: #a9d9f2;
  border-color: rgba(41, 153, 213, 0.25);
  background: rgba(41, 153, 213, 0.07);
}

.recent-activity {
  margin-top: 12px;
  padding: 14px 16px;
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  background: rgba(13, 16, 24, 0.5);
}

.recent-heading {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
}

.recent-heading h2 {
  margin: 0;
  font-size: 0.82rem;
}

.recent-heading p {
  margin: 3px 0 0;
  color: var(--subtle);
  font-size: 0.62rem;
}

.recent-heading button {
  min-height: 34px;
  padding: 0 10px;
  border: 1px solid var(--border);
  border-radius: 9px;
  color: var(--subtle);
  background: transparent;
  cursor: pointer;
  font-size: 0.65rem;
  font-weight: 700;
}

.recent-heading button:hover {
  color: var(--text);
  border-color: var(--border-strong);
}

#recent-list {
  display: grid;
  gap: 0;
  margin: 10px 0 0;
  padding: 0;
  list-style: none;
}

#recent-list li {
  min-width: 0;
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 4px 14px;
  padding: 10px 0;
  border-top: 1px solid var(--border);
}

#recent-list strong,
#recent-list span {
  min-width: 0;
}

#recent-list strong {
  overflow: hidden;
  color: var(--text);
  text-overflow: ellipsis;
  white-space: nowrap;
  font-size: 0.7rem;
  font-weight: 700;
}

#recent-list .recent-platform {
  color: var(--muted);
  font-size: 0.65rem;
}

#recent-list .recent-meta {
  grid-row: 1 / span 2;
  grid-column: 2;
  align-self: center;
  color: var(--subtle);
  white-space: nowrap;
  font-size: 0.62rem;
}

.product-surface {
  border: 1px solid var(--border-strong);
  border-radius: var(--radius-lg);
  background: linear-gradient(145deg, rgba(21, 25, 37, 0.98), rgba(14, 17, 26, 0.98));
  box-shadow: var(--shadow);
}

.download-form {
  padding: 18px;
}

.tool-heading {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 16px;
  margin-bottom: 16px;
}

.tool-heading h2 {
  margin: 5px 0 0;
  font-size: 1.1rem;
  line-height: 1.35;
  letter-spacing: -0.025em;
}

.detected-platform {
  min-height: 30px;
  display: inline-flex;
  align-items: center;
  gap: 7px;
  flex: 0 0 auto;
  padding: 0 9px;
  border: 1px solid var(--border);
  border-radius: 999px;
  color: var(--subtle);
  background: rgba(255, 255, 255, 0.02);
  font-size: 0.65rem;
  font-weight: 700;
  transition: color var(--transition), border-color var(--transition), background var(--transition);
}

.detected-platform svg {
  width: 14px;
  height: 14px;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.8;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.detected-platform.detecting svg {
  animation: spin 900ms linear infinite;
}

.detected-platform.tiktok {
  color: #dde2eb;
  border-color: rgba(235, 242, 248, 0.14);
}

.detected-platform.tiktok svg {
  fill: currentColor;
  stroke: none;
}

.detected-platform.instagram {
  color: #e29ac4;
  border-color: rgba(226, 117, 179, 0.18);
  background: rgba(199, 70, 143, 0.055);
}

.detected-platform.unknown {
  color: var(--danger);
  border-color: rgba(255, 123, 136, 0.18);
  background: var(--danger-soft);
}

.tool-row {
  display: grid;
  gap: 10px;
}

.input-shell {
  min-width: 0;
  min-height: 56px;
  display: grid;
  grid-template-columns: auto minmax(0, 1fr) auto;
  align-items: center;
  gap: 9px;
  padding: 5px 5px 5px 13px;
  border: 1px solid var(--border);
  border-radius: 15px;
  background: rgba(5, 7, 12, 0.65);
  transition: border-color var(--transition-fast), box-shadow var(--transition-fast), background var(--transition-fast);
}

.input-shell:focus-within {
  border-color: rgba(132, 117, 255, 0.75);
  background: rgba(7, 9, 15, 0.84);
  box-shadow: 0 0 0 4px rgba(109, 93, 252, 0.1);
}

.input-shell.has-error {
  border-color: rgba(255, 123, 136, 0.5);
  box-shadow: 0 0 0 4px rgba(255, 123, 136, 0.07);
}

.input-icon {
  width: 18px;
  height: 18px;
  color: var(--subtle);
  fill: none;
  stroke: currentColor;
  stroke-width: 1.8;
  stroke-linecap: round;
  stroke-linejoin: round;
}

#video-url {
  width: 100%;
  min-width: 0;
  height: 44px;
  padding: 0;
  border: 0;
  outline: 0;
  color: var(--text);
  background: transparent;
  direction: ltr;
  text-align: left;
  font-size: 0.78rem;
}

#video-url::placeholder {
  color: #788197;
}

.paste-button,
.preview-button,
.download-btn {
  min-height: 46px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  border-radius: 11px;
  font-size: 0.75rem;
  font-weight: 750;
  cursor: pointer;
  transition: color var(--transition-fast), border-color var(--transition-fast), background var(--transition-fast), transform var(--transition-fast), opacity var(--transition-fast);
}

.paste-button {
  min-width: 78px;
  padding: 0 11px;
  border: 1px solid transparent;
  color: var(--muted);
  background: rgba(255, 255, 255, 0.045);
}

.paste-button:hover {
  color: var(--text);
  background: rgba(255, 255, 255, 0.075);
}

.paste-button svg {
  width: 16px;
  height: 16px;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.8;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.paste-check-icon {
  display: none;
}

.paste-button.is-pasted {
  color: var(--success);
  background: var(--success-soft);
}

.paste-button.is-pasted .paste-default-icon {
  display: none;
}

.paste-button.is-pasted .paste-check-icon {
  display: block;
}

.preview-button {
  width: 100%;
  min-height: 54px;
  padding: 0 17px;
  border: 1px solid rgba(255, 255, 255, 0.09);
  color: white;
  background: var(--accent);
  box-shadow: 0 10px 26px rgba(55, 41, 182, 0.25);
}

.preview-button:hover {
  background: var(--accent-hover);
  transform: translateY(-1px);
}

.preview-button svg {
  width: 17px;
  height: 17px;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.9;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.button-arrow {
  margin-inline-start: auto;
}

.paste-button:active,
.preview-button:active,
.download-btn:active {
  transform: scale(0.985);
}

button:disabled {
  cursor: wait;
  opacity: 0.65;
}

.button-spinner {
  width: 17px;
  height: 17px;
  display: none;
  border: 2px solid rgba(255, 255, 255, 0.34);
  border-top-color: white;
  border-radius: 50%;
  animation: spin 700ms linear infinite;
}

.preview-button.is-loading .button-spinner {
  display: block;
}

.preview-button.is-loading .preview-icon,
.preview-button.is-loading .button-arrow {
  display: none;
}

.status {
  display: flex;
  align-items: flex-start;
  gap: 9px;
  margin-top: 11px;
  padding: 10px 12px;
  border: 1px solid var(--border);
  border-radius: 11px;
  color: var(--muted);
  background: rgba(255, 255, 255, 0.025);
  font-size: 0.72rem;
  line-height: 1.55;
  animation: status-in var(--transition) both;
}

.status-icon {
  width: 16px;
  height: 16px;
  flex: 0 0 auto;
  margin-top: 1px;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.8;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.status.error {
  color: var(--danger);
  border-color: rgba(255, 123, 136, 0.18);
  background: var(--danger-soft);
}

.status.success {
  color: var(--success);
  border-color: rgba(88, 201, 154, 0.17);
  background: var(--success-soft);
}

.result-panel {
  display: grid;
  gap: 20px;
  margin-top: 14px;
  padding: 13px;
  animation: result-in 260ms ease both;
}

.preview-media {
  min-width: 0;
  aspect-ratio: 16 / 10;
  overflow: hidden;
  position: relative;
  border: 1px solid rgba(255, 255, 255, 0.065);
  border-radius: 17px;
  background: #030407;
}

#preview-video {
  width: 100%;
  height: 100%;
  object-fit: contain;
  background: #030407;
}

.preview-placeholder {
  position: absolute;
  inset: 0;
  display: grid;
  place-items: center;
  align-content: center;
  gap: 13px;
  color: var(--subtle);
  background: radial-gradient(circle at 50% 35%, rgba(109, 93, 252, 0.12), transparent 45%), #080a10;
  font-size: 0.72rem;
}

.preview-orbit {
  width: 52px;
  height: 52px;
  display: grid;
  place-items: center;
  border: 1px solid var(--border-strong);
  border-radius: 50%;
  color: #aaa0ff;
  background: rgba(255, 255, 255, 0.035);
  box-shadow: 0 0 0 8px rgba(109, 93, 252, 0.035);
}

.preview-orbit svg {
  width: 21px;
  height: 21px;
  fill: currentColor;
}

.result-content {
  min-width: 0;
  display: flex;
  flex-direction: column;
  padding: 3px 3px 5px;
}

.metadata-platform {
  min-height: 29px;
  display: inline-flex;
  align-items: center;
  gap: 7px;
  width: fit-content;
  padding: 0 9px;
  border: 1px solid var(--border);
  border-radius: 999px;
  color: var(--muted);
  background: rgba(255, 255, 255, 0.03);
  font-size: 0.67rem;
  font-weight: 750;
}

.metadata-platform svg {
  width: 14px;
  height: 14px;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.8;
}

.metadata-platform.tiktok svg {
  fill: currentColor;
  stroke: none;
}

.metadata-platform.instagram {
  color: #df98c1;
}

.video-info {
  margin-top: 14px;
}

.video-info h2 {
  display: -webkit-box;
  overflow: hidden;
  margin: 6px 0 0;
  font-size: clamp(1.25rem, 6vw, 1.68rem);
  line-height: 1.34;
  letter-spacing: -0.035em;
  overflow-wrap: anywhere;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 3;
}

.metadata-list {
  display: flex;
  flex-wrap: wrap;
  gap: 8px 16px;
  margin-top: 12px;
  color: var(--subtle);
  font-size: 0.73rem;
}

.metadata-list > span {
  min-width: 0;
  display: inline-flex;
  align-items: center;
  gap: 6px;
}

.metadata-list svg {
  width: 15px;
  height: 15px;
  flex: 0 0 auto;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.8;
  stroke-linecap: round;
  stroke-linejoin: round;
}

#preview-uploader-text {
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.download-controls {
  margin-top: 23px;
}

.download-label {
  margin: 0 0 8px;
  color: var(--muted);
  font-size: 0.7rem;
  font-weight: 700;
}

.download-actions {
  display: grid;
  gap: 9px;
}

.download-btn {
  min-width: 0;
  min-height: 50px;
  padding: 0 13px;
  text-align: center;
  text-decoration: none;
}

.download-btn span {
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.download-btn svg {
  width: 17px;
  height: 17px;
  flex: 0 0 auto;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.8;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.download-btn.primary {
  color: white;
  background: var(--accent);
  box-shadow: 0 10px 24px rgba(55, 41, 182, 0.2);
}

.download-btn.primary:hover {
  background: var(--accent-hover);
  transform: translateY(-1px);
}

.download-btn.secondary {
  border: 1px solid var(--border);
  color: var(--text);
  background: rgba(255, 255, 255, 0.035);
}

.download-btn.secondary:hover {
  border-color: var(--border-strong);
  background: rgba(255, 255, 255, 0.065);
  transform: translateY(-1px);
}

.download-type-icon {
  margin-inline-end: 1px;
}

.download-arrow {
  margin-inline-start: auto;
}

.download-btn.is-starting {
  opacity: 0.74;
  pointer-events: none;
}

.download-btn.is-success {
  color: var(--success);
  border-color: rgba(88, 201, 154, 0.2);
  background: var(--success-soft);
  box-shadow: none;
}

.download-feedback {
  min-height: 1em;
  margin: 7px 0 0;
  color: var(--success);
  font-size: 0.66rem;
}

.page-section {
  padding-top: 84px;
}

.section-heading {
  max-width: 620px;
  margin-bottom: 26px;
}

.section-heading.centered {
  margin-inline: auto;
  text-align: center;
}

.section-heading h2,
.about-copy h2 {
  margin: 8px 0 0;
  font-size: clamp(1.75rem, 8vw, 2.65rem);
  line-height: 1.14;
  letter-spacing: -0.05em;
}

.section-heading > p:last-child,
.about-copy > p:not(.section-kicker) {
  margin: 13px 0 0;
  color: var(--muted);
  font-size: 0.83rem;
  line-height: 1.75;
}

.platform-showcase {
  display: grid;
  gap: 10px;
}

.platform-showcase article {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr);
  align-items: start;
  gap: 15px;
  padding: 20px;
  border: 1px solid var(--border);
  border-radius: 18px;
  background: rgba(255, 255, 255, 0.018);
  transition: border-color var(--transition), background var(--transition), transform var(--transition);
}

.platform-showcase article:hover {
  border-color: var(--border-strong);
  background: rgba(255, 255, 255, 0.027);
  transform: translateY(-2px);
}

.platform-mark {
  width: 44px;
  height: 44px;
  display: grid;
  place-items: center;
  border: 1px solid var(--border);
  border-radius: 13px;
  color: #e4e8ef;
  background: rgba(255, 255, 255, 0.03);
}

.platform-mark svg {
  width: 20px;
  height: 20px;
  fill: currentColor;
}

.platform-mark.instagram {
  color: #df92bd;
  background: rgba(199, 70, 143, 0.055);
}

.platform-mark.instagram svg {
  fill: none;
  stroke: currentColor;
  stroke-width: 1.8;
}

.platform-showcase h3 {
  margin: 1px 0 0;
  font-size: 0.98rem;
}

.platform-showcase p {
  margin: 6px 0 0;
  color: var(--subtle);
  font-size: 0.74rem;
  line-height: 1.65;
}

.support-tags {
  display: flex;
  gap: 12px;
  margin-top: 13px;
}

.support-tags span {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  color: var(--muted);
  font-size: 0.65rem;
  font-weight: 750;
}

.support-tags svg {
  width: 12px;
  height: 12px;
  fill: none;
  stroke: var(--success);
  stroke-width: 2.2;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.steps-timeline {
  position: relative;
  display: grid;
  margin: 0;
  padding: 0;
  list-style: none;
}

.steps-timeline::before {
  content: "";
  position: absolute;
  top: 30px;
  bottom: 30px;
  inset-inline-start: 22px;
  width: 1px;
  background: linear-gradient(to bottom, transparent, var(--border-strong) 10%, var(--border-strong) 90%, transparent);
}

.steps-timeline li {
  min-width: 0;
  display: grid;
  grid-template-columns: 46px minmax(0, 1fr);
  gap: 14px;
  position: relative;
  padding: 0 0 29px;
}

.steps-timeline li:last-child {
  padding-bottom: 0;
}

.step-number {
  grid-column: 2;
  color: #a59bff;
  font-size: 0.63rem;
  font-weight: 800;
  letter-spacing: 0.1em;
}

.step-icon {
  grid-row: 1 / span 2;
  width: 46px;
  height: 46px;
  display: grid;
  place-items: center;
  position: relative;
  z-index: 1;
  border: 1px solid rgba(109, 93, 252, 0.2);
  border-radius: 13px;
  color: #aaa0ff;
  background: var(--surface);
  box-shadow: 0 0 0 7px var(--bg);
}

.step-icon svg {
  width: 18px;
  height: 18px;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.8;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.steps-timeline h3 {
  margin: 2px 0 0;
  font-size: 1rem;
}

.steps-timeline p {
  margin: 6px 0 0;
  color: var(--subtle);
  font-size: 0.75rem;
  line-height: 1.65;
}

.about-section {
  display: grid;
  gap: 34px;
  align-items: center;
}

.about-copy {
  max-width: 570px;
}

.text-link {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  margin-top: 20px;
  color: #b3abff;
  text-decoration: none;
  font-size: 0.78rem;
  font-weight: 750;
}

.text-link svg {
  width: 16px;
  height: 16px;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.8;
  stroke-linecap: round;
  transition: transform var(--transition-fast);
}

.text-link:hover svg {
  transform: translateX(3px);
}

.product-visual {
  min-width: 0;
  overflow: hidden;
  padding: 15px;
  border: 1px solid var(--border);
  border-radius: 21px;
  background: linear-gradient(145deg, #151a27, #0c0f17);
  box-shadow: var(--shadow);
}

.visual-header {
  height: 38px;
  display: flex;
  align-items: center;
  gap: 5px;
  padding: 0 4px;
}

.visual-header > i {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: #353c4d;
}

.visual-logo {
  width: 25px;
  height: 25px;
  display: grid;
  place-items: center;
  margin-inline-end: auto;
  border-radius: 7px;
  color: white;
  background: var(--accent);
}

.visual-logo svg {
  width: 20px;
  height: 20px;
  fill: currentColor;
}

.visual-input {
  min-height: 48px;
  display: grid;
  grid-template-columns: auto minmax(0, 1fr) auto;
  align-items: center;
  gap: 10px;
  padding: 0 7px 0 12px;
  border: 1px solid var(--border);
  border-radius: 12px;
  background: rgba(3, 5, 9, 0.53);
}

.visual-input > svg {
  width: 15px;
  height: 15px;
  color: var(--subtle);
  fill: none;
  stroke: currentColor;
  stroke-width: 1.8;
}

.visual-input > span {
  width: 64%;
  height: 6px;
  border-radius: 999px;
  background: #2c3344;
}

.visual-input b,
.visual-meta b {
  display: grid;
  place-items: center;
  border-radius: 8px;
  color: white;
  background: var(--accent);
}

.visual-input b {
  width: 36px;
  height: 34px;
}

.visual-input b svg,
.visual-meta b svg {
  width: 14px;
  height: 14px;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.9;
}

.visual-result {
  display: grid;
  grid-template-columns: 46% minmax(0, 1fr);
  gap: 12px;
  margin-top: 10px;
  padding: 9px;
  border: 1px solid var(--border);
  border-radius: 13px;
  background: rgba(255, 255, 255, 0.015);
}

.visual-video {
  min-height: 116px;
  display: grid;
  place-items: center;
  border-radius: 9px;
  color: #aaa0ff;
  background: radial-gradient(circle, rgba(109, 93, 252, 0.16), transparent 55%), #080a0f;
}

.visual-video svg {
  width: 22px;
  height: 22px;
  fill: currentColor;
}

.visual-meta {
  min-width: 0;
  display: flex;
  flex-direction: column;
  justify-content: center;
  gap: 8px;
}

.visual-meta i {
  width: 88%;
  height: 6px;
  border-radius: 999px;
  background: #303749;
}

.visual-meta i:nth-child(2) {
  width: 63%;
}

.visual-meta i:nth-child(3) {
  width: 45%;
  opacity: 0.65;
}

.visual-meta b {
  width: 74%;
  height: 28px;
  margin-top: 7px;
}

.faq-list {
  border-top: 1px solid var(--border);
}

.faq-item {
  border-bottom: 1px solid var(--border);
}

.faq-item h3 {
  margin: 0;
}

.faq-question {
  width: 100%;
  min-height: 64px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
  padding: 0;
  border: 0;
  color: var(--text);
  background: transparent;
  cursor: pointer;
  text-align: start;
  font-size: 0.81rem;
  font-weight: 700;
}

.faq-question > svg {
  width: 18px;
  height: 18px;
  flex: 0 0 auto;
  color: var(--subtle);
  fill: none;
  stroke: currentColor;
  stroke-width: 1.8;
  stroke-linecap: round;
  transition: color var(--transition-fast), transform var(--transition);
}

.faq-question:hover > svg,
.faq-question[aria-expanded="true"] > svg {
  color: #aaa0ff;
}

.faq-question[aria-expanded="true"] > svg {
  transform: rotate(45deg);
}

.faq-answer {
  display: grid;
  grid-template-rows: 0fr;
  color: var(--muted);
  opacity: 0;
  transition: grid-template-rows var(--transition), opacity var(--transition);
}

.faq-answer > div {
  overflow: hidden;
}

.faq-answer p {
  max-width: 720px;
  margin: 0;
  padding: 0 34px 0 0;
  font-size: 0.76rem;
  line-height: 1.75;
}

.faq-item.is-open .faq-answer {
  grid-template-rows: 1fr;
  opacity: 1;
}

.faq-item.is-open .faq-answer p {
  padding-bottom: 20px;
}

.site-footer {
  margin-top: 92px;
  border-top: 1px solid var(--border);
  background: rgba(5, 7, 11, 0.35);
}

.footer-grid {
  display: grid;
  gap: 29px;
  padding: 40px 0 34px;
}

.footer-brand {
  max-width: 360px;
}

.footer-brand p {
  margin: 14px 0 0;
  color: var(--subtle);
  font-size: 0.73rem;
  line-height: 1.65;
}

.footer-links h2 {
  margin: 0 0 12px;
  color: var(--text);
  font-size: 0.72rem;
}

.footer-links a {
  display: block;
  width: fit-content;
  margin-top: 9px;
  color: var(--subtle);
  text-decoration: none;
  font-size: 0.7rem;
  transition: color var(--transition-fast);
}

.footer-links a:hover {
  color: var(--text);
}

.analytics-settings {
  display: block;
  width: fit-content;
  margin-top: 9px;
  padding: 0;
  border: 0;
  color: var(--subtle);
  background: transparent;
  font: inherit;
  font-size: 0.7rem;
  text-align: start;
  cursor: pointer;
  transition: color var(--transition-fast);
}

.analytics-settings:hover {
  color: var(--text);
}

.footer-links .discord-link,
.footer-links .telegram-link {
  display: inline-flex;
  align-items: center;
  gap: 7px;
}

.discord-link svg {
  width: 15px;
  height: 15px;
  flex: 0 0 auto;
  fill: currentColor;
}

.telegram-link svg {
  width: 15px;
  height: 15px;
  flex: 0 0 auto;
}

.footer-links .discord-link:hover {
  color: #c9ceff;
}

.footer-links .telegram-link:hover {
  color: #a9d9f2;
}

.footer-bottom {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 20px;
  padding: 18px 0 25px;
  border-top: 1px solid var(--border);
  color: #7d869a;
  font-size: 0.64rem;
}

.footer-bottom p {
  max-width: 520px;
  margin: 0;
  text-align: end;
  line-height: 1.55;
}

.consent-banner {
  position: fixed;
  right: 12px;
  bottom: 12px;
  left: 12px;
  z-index: 100;
  display: grid;
  width: min(680px, calc(100% - 24px));
  max-height: calc(100vh - 24px);
  margin-inline: auto;
  padding: 16px;
  overflow: auto;
  border: 1px solid var(--border-strong);
  border-radius: 17px;
  background: rgba(16, 19, 29, 0.97);
  box-shadow: 0 18px 55px rgba(0, 0, 0, 0.42), inset 0 1px rgba(255, 255, 255, 0.03);
  backdrop-filter: blur(18px);
}

.consent-copy p {
  margin: 0;
}

.consent-copy .consent-kicker {
  margin-bottom: 5px;
  color: #c8c1ff;
  font-size: 0.68rem;
  font-weight: 800;
  letter-spacing: 0.04em;
  text-transform: uppercase;
}

.consent-copy p:last-child {
  color: var(--muted);
  font-size: 0.78rem;
  line-height: 1.55;
}

.consent-actions {
  display: grid;
  grid-template-columns: 1fr;
  gap: 8px;
  margin-top: 14px;
}

.consent-actions button {
  min-height: 42px;
  padding: 0 14px;
  border: 1px solid var(--border-strong);
  border-radius: 11px;
  font: inherit;
  font-size: 0.74rem;
  font-weight: 750;
  cursor: pointer;
  transition: border-color var(--transition-fast), background var(--transition-fast), transform var(--transition-fast);
}

.consent-actions button:active {
  transform: translateY(1px);
}

.consent-allow {
  color: white;
  border-color: transparent;
  background: linear-gradient(135deg, #7968ff, #5d4ee5);
}

.consent-allow:hover {
  background: linear-gradient(135deg, #8879ff, #6a5aee);
}

.consent-deny {
  color: var(--muted);
  background: rgba(255, 255, 255, 0.035);
}

.consent-deny:hover {
  color: var(--text);
  border-color: rgba(219, 225, 255, 0.25);
  background: rgba(255, 255, 255, 0.06);
}

:focus-visible {
  outline: 3px solid rgba(157, 145, 249, 0.76);
  outline-offset: 3px;
}

@keyframes spin {
  to { transform: rotate(360deg); }
}

@keyframes result-in {
  from { opacity: 0; transform: translateY(10px); }
  to { opacity: 1; transform: translateY(0); }
}

@keyframes status-in {
  from { opacity: 0; transform: translateY(-3px); }
  to { opacity: 1; transform: translateY(0); }
}

@media (max-width: 859px) {
  body.menu-open {
    overflow: hidden;
  }

  body.menu-open::after {
    content: "";
    position: fixed;
    inset: 64px 0 0;
    z-index: 49;
    background: rgba(3, 4, 8, 0.56);
  }
}

@media (min-width: 520px) {
  main > section,
  .nav-shell,
  .footer-grid,
  .footer-bottom {
    width: min(var(--container), calc(100% - 40px));
  }

  .download-form {
    padding: 23px;
  }

  .download-actions {
    grid-template-columns: 1fr 1fr;
  }

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

  .consent-banner {
    grid-template-columns: minmax(0, 1fr) auto;
    align-items: center;
    gap: 20px;
    padding: 17px 18px;
  }

  .consent-actions {
    grid-template-columns: auto auto;
    margin-top: 0;
  }
}

@media (min-width: 700px) {
  .footer-grid {
    grid-template-columns: minmax(0, 1.5fr) repeat(3, minmax(90px, 0.5fr));
  }

  .hero {
    padding-top: 58px;
    padding-bottom: 30px;
  }

  .hero-copy {
    font-size: 1rem;
  }

  .tool-row {
    grid-template-columns: minmax(0, 1fr) 168px;
  }

  .telegram-strip {
    grid-template-columns: auto minmax(0, 1fr) auto;
  }

  .telegram-button {
    grid-column: auto;
  }

  .preview-button {
    min-height: 56px;
  }

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

  .platform-showcase article {
    padding: 23px;
  }

  .steps-timeline {
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 24px;
  }

  .steps-timeline::before {
    top: 22px;
    right: 8%;
    bottom: auto;
    left: 8%;
    width: auto;
    height: 1px;
    background: linear-gradient(to right, transparent, var(--border-strong) 10%, var(--border-strong) 90%, transparent);
  }

  .steps-timeline li,
  .steps-timeline li:last-child {
    grid-template-columns: 46px minmax(0, 1fr);
    padding: 0;
  }

  .about-section {
    grid-template-columns: minmax(0, 0.92fr) minmax(360px, 1.08fr);
    gap: clamp(48px, 7vw, 88px);
  }
}

@media (min-width: 860px) {
  .nav-shell {
    min-height: 68px;
  }

  .site-nav {
    position: static;
    visibility: visible;
    display: flex;
    flex-direction: row;
    gap: 1px;
    margin-inline-start: auto;
    padding: 0;
    border: 0;
    border-radius: 0;
    opacity: 1;
    background: transparent;
    box-shadow: none;
    transform: none;
  }

  .nav-link {
    min-height: 38px;
    gap: 0;
    padding: 0 10px;
    font-size: 0.7rem;
  }

  .nav-link svg {
    width: 0;
    opacity: 0;
  }

  .nav-link.is-active {
    color: white;
    background: transparent;
  }

  .nav-link.is-active::after {
    width: 16px;
    height: 2px;
    right: 50%;
    bottom: 1px;
    border-radius: 999px;
    transform: translateX(50%);
    box-shadow: none;
  }

  .menu-toggle {
    display: none;
  }

  .hero {
    padding-top: 67px;
    padding-bottom: 32px;
  }

  .result-panel {
    grid-template-columns: minmax(0, 1.12fr) minmax(300px, 0.88fr);
    gap: clamp(24px, 4vw, 40px);
    padding: 18px;
  }

  .result-content {
    padding: 6px 7px 6px 0;
  }

  .download-controls {
    margin-top: auto;
    padding-top: 23px;
  }

  .page-section {
    padding-top: 104px;
  }

  .faq-section {
    display: grid;
    grid-template-columns: minmax(260px, 0.63fr) minmax(0, 1.37fr);
    gap: clamp(55px, 9vw, 105px);
    align-items: start;
  }

  .faq-section .section-heading {
    position: sticky;
    top: 103px;
  }

  .site-footer {
    margin-top: 112px;
  }
}

@media (max-width: 410px) {
  .hero h1 {
    font-size: clamp(2.12rem, 10.8vw, 2.65rem);
  }

  .tool-heading {
    flex-direction: column;
  }

  .input-shell {
    grid-template-columns: minmax(0, 1fr) auto;
    padding-inline-start: 11px;
  }

  .input-icon {
    display: none;
  }

  .paste-button {
    min-width: 68px;
    padding: 0 9px;
  }

  .footer-bottom {
    flex-direction: column;
  }

  .footer-bottom p {
    text-align: start;
  }
}

@media (max-width: 519px) {
  .install-button {
    width: 42px;
    min-width: 42px;
    padding: 0;
  }

  .install-button span {
    display: none;
  }

  .brand-word {
    font-size: 0.86rem;
  }
}

[dir="rtl"] .hero h1,
[dir="rtl"] .section-heading h2,
[dir="rtl"] .about-copy h2 {
  letter-spacing: -0.025em;
}

[dir="rtl"] .text-link svg,
[dir="rtl"] .button-arrow {
  transform: rotate(180deg);
}

[dir="rtl"] .text-link:hover svg {
  transform: rotate(180deg) translateX(3px);
}

[dir="rtl"] .faq-answer p {
  padding: 0 0 0 34px;
}

[dir="rtl"] .faq-item.is-open .faq-answer p {
  padding-bottom: 20px;
}

@media (min-width: 860px) {
  [dir="rtl"] .nav-link.is-active::after {
    right: auto;
    left: 50%;
    transform: translateX(-50%);
  }

  [dir="rtl"] .result-content {
    padding: 6px 0 6px 7px;
  }
}

@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }

  *,
  *::before,
  *::after {
    animation-duration: 0.01ms;
    animation-iteration-count: 1;
    transition-duration: 0.01ms;
    scroll-behavior: auto;
  }
}

[hidden] {
  display: none;
}
