:root {
  --bg: #f4f6fb;
  --surface: #ffffff;
  --surface-soft: #f8f9ff;
  --text: #1f2453;
  --muted: #6b7197;
  --primary: #3b6df6;
  --primary-dark: #2249cf;
  --violet: #7a3cff;
  --pink: #ff2f7d;
  --cyan: #35c9ff;
  --line: rgba(50, 67, 135, 0.12);
  --shadow: 0 18px 42px rgba(45, 57, 116, 0.12);
  --radius: 24px;
  --radius-sm: 18px;
  --font: "Segoe UI", Tahoma, Geneva, Verdana, sans-serif;
}
* {
  box-sizing: border-box;
}
html {
  scroll-behavior: smooth;
}
body {
  margin: 0;
  font-family: var(--font);
  color: var(--text);
  background:
    radial-gradient(
      circle at top left,
      rgba(122, 60, 255, 0.1),
      transparent 24%
    ),
    radial-gradient(
      circle at top right,
      rgba(255, 47, 125, 0.1),
      transparent 22%
    ),
    linear-gradient(180deg, #fafbff 0%, #f3f5fc 100%);
}
a {
  color: inherit;
  text-decoration: none;
}
.container {
  width: min(100% - 28px, 1240px);
  margin: 0 auto;
}
.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

.topbar {
  position: sticky;
  top: 0;
  z-index: 40;
  background: rgba(255, 255, 255, 0.88);
  backdrop-filter: blur(14px);
  border-bottom: 1px solid rgba(50, 67, 135, 0.08);
}
.topbar-inner {
  min-height: 60px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding: 10px 0;
}
@media (max-width: 576px) {
  .topbar-inner {
    flex-direction: row;
    justify-content: space-between;
    padding: 8px 0;
  }
  .topbar-actions {
    gap: 8px;
  }
  .brand-text {
    font-size: 14px;
  }
  .brand-mark {
    width: 22px;
    height: 22px;
    font-size: 9px;
  }
  .top-link {
    font-size: 11px;
  }
  .language-switcher select {
    font-size: 11px;
  }
}
.brand {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  color: #5a36ff;
  font-weight: 800;
}
.brand-mark {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 14px;
  background: linear-gradient(135deg, var(--violet) 0%, var(--pink) 100%);
  color: #fff;
  box-shadow: 0 10px 22px rgba(122, 60, 255, 0.28);
  width: 26px;
  height: 26px;
  font-size: 11px;
}
.brand-text {
  letter-spacing: -0.02em;
}
.topbar-actions {
  display: flex;
  align-items: center;
  gap: 12px;
}
.top-link {
  font-size: 12px;
  color: var(--muted);
}
.language-switcher select {
  border: 0;
  background: transparent;
  color: var(--text);
  font-size: 12px;
  cursor: pointer;
}

.hero,
.hero-compact {
  padding: 22px 0 42px;
}
.hero-inner {
  position: relative;
  overflow: hidden;
  border-radius: 32px;
  padding: 28px 32px 36px;
  background: linear-gradient(100deg, #6a3cff 0%, #8f2eff 26%, #ff1f77 100%);
  color: #fff;
  box-shadow: 0 30px 60px rgba(90, 44, 180, 0.24);
}
.hero-inner::before {
  content: "";
  position: absolute;
  inset: auto -8% -18% auto;
  width: 340px;
  height: 340px;
  border-radius: 50%;
  background: radial-gradient(
    circle,
    rgba(255, 255, 255, 0.16) 0%,
    rgba(255, 255, 255, 0) 68%
  );
}
.hero-inner::after {
  content: "";
  position: absolute;
  inset: -18% auto auto -10%;
  width: 240px;
  height: 240px;
  border-radius: 50%;
  background: radial-gradient(
    circle,
    rgba(53, 201, 255, 0.22) 0%,
    rgba(53, 201, 255, 0) 70%
  );
}
.hero-tabs {
  position: relative;
  z-index: 1;
  display: flex;
  flex-wrap: nowrap;
  justify-content: flex-start;
  gap: 8px;
  margin-bottom: 20px;
  border: 0;
  overflow-x: auto;
  -webkit-overflow-scrolling: touch;
  padding: 10px 4px 12px;
  margin-left: -10px;
  margin-right: -10px;
  scrollbar-width: none; /* Firefox */
  -ms-overflow-style: none; /* IE and Edge */
}
.hero-tabs::-webkit-scrollbar {
  display: none; /* Chrome, Safari and Opera */
}
.hero-tab {
  flex: 0 0 auto;
  padding: 8px 18px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.12);
  border: 1px solid rgba(255, 255, 255, 0.14) !important;
  font-size: 13px;
  color: rgba(255, 255, 255, 0.85) !important;
  transition: all 0.2s ease;
  white-space: nowrap;
}
.hero-tab:hover {
  background: rgba(255, 255, 255, 0.2);
  color: #fff !important;
}
.hero-tab.active {
  background: rgba(255, 255, 255, 0.25) !important;
  color: #fff !important;
  border-color: rgba(255, 255, 255, 0.4) !important;
  font-weight: 700;
}
.nav-pills .nav-link.active,
.nav-pills .show > .nav-link {
  background-color: transparent;
} /* Override bootstrap default */
.hero-copy {
  position: relative;
  z-index: 1;
  text-align: center;
}
.hero-copy h1 {
  margin: 0;
  font-size: clamp(34px, 6vw, 52px);
  line-height: 1.02;
}
.hero-copy p {
  max-width: 760px;
  margin: 10px auto 0;
  color: rgba(255, 255, 255, 0.88);
}
.download-form {
  position: relative;
  z-index: 1;
  width: min(100%, 760px);
  display: grid;
  grid-template-columns: 1fr auto auto;
  gap: 0;
  margin: 26px auto 0;
  background: #fff;
  padding: 8px;
  border-radius: 16px;
  box-shadow: 0 18px 40px rgba(56, 12, 99, 0.24);
}
.download-form input {
  min-width: 0;
  border: 0;
  outline: 0;
  padding: 14px 16px;
  border-radius: 12px;
  font-size: 15px;
}
.paste-button,
.primary-button,
.secondary-button {
  border: 0;
  border-radius: 12px;
  padding: 14px 18px;
  font-weight: 700;
  cursor: pointer;
  transition:
    transform 0.2s ease,
    box-shadow 0.2s ease;
}
.paste-button {
  background: #eef1f9;
  color: var(--text);
}
.primary-button,
.secondary-button {
  background: linear-gradient(180deg, #53a4ff 0%, #3979ff 100%);
  color: #fff;
  box-shadow: 0 12px 24px rgba(52, 123, 255, 0.28);
}
.secondary-button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
}
.small {
  display: inline-flex;
  width: fit-content;
}
.paste-button:hover,
.primary-button:hover,
.secondary-button:hover {
  transform: translateY(-1px);
}
.status-box,
.results-card {
  margin-top: 18px;
  margin-bottom: 40px;
  border-radius: 22px;
  padding: 18px 20px;
}
.status-box {
  position: relative;
  z-index: 1;
  color: #fff;
  background: rgba(255, 255, 255, 0.12);
  border: 1px solid rgba(255, 255, 255, 0.16);
}
.results-card {
  position: relative;
  z-index: 1;
  background: #fff;
  color: var(--text);
}
.results-header {
  display: flex;
  justify-content: space-between;
  gap: 16px;
  align-items: flex-start;
  margin-bottom: 16px;
}
.results-header h2,
.intro-content h2,
.section-heading h2,
.extension-copy h2,
.legal-block h2 {
  margin: 0;
  font-size: clamp(26px, 4vw, 34px);
  color: #2050eb;
}
.results-header p,
.section-heading p,
.intro-content p,
.split-copy p,
.benefit-card p,
.step-card p,
.feature-content p,
.faq-item p,
.extension-copy li,
.footer-inner p,
.legal-block p {
  color: var(--muted);
  line-height: 1.7;
}
.results-badge {
  padding: 8px 12px;
  border-radius: 999px;
  background: #eff4ff;
  color: #3262ff;
  font-size: 12px;
  font-weight: 700;
}
.results-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: 18px;
}
.result-item,
.intro-card,
.step-card,
.feature-card,
.extension-card,
.split-card,
.legal-card {
  background: var(--surface);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  border: 1px solid var(--line);
}
.result-item {
  overflow: hidden;
}
.result-thumb {
  aspect-ratio: 16 / 10;
  background-size: cover;
  background-position: center;
}
.result-content {
  padding: 16px;
}
.result-content h3,
.step-card h3,
.benefit-card h3,
.feature-content h3,
.faq-item h3 {
  margin: 0 0 8px;
  font-size: 22px;
  color: #2454ee;
}
.section {
  padding: 34px 0;
}
.intro-card-section {
  margin-top: -12px;
  position: relative;
  z-index: 2;
}
.intro-card,
.split-card,
.extension-card {
  display: grid;
  grid-template-columns: 290px 1fr;
  gap: 26px;
  padding: 20px;
}
.intro-visual,
.feature-visual,
.extension-preview,
.split-media {
  border-radius: 18px;
  min-height: 180px;
  background: linear-gradient(135deg, #6e3cff 0%, #ff2f7d 100%);
  position: relative;
  overflow: hidden;
}
.intro-visual::before,
.feature-visual::before,
.extension-preview::before,
.split-media::before {
  content: "";
  position: absolute;
  inset: 0;
  background:
    radial-gradient(
      circle at 18% 20%,
      rgba(53, 201, 255, 0.42),
      transparent 28%
    ),
    radial-gradient(
      circle at 76% 24%,
      rgba(255, 255, 255, 0.24),
      transparent 30%
    ),
    radial-gradient(
      circle at 42% 86%,
      rgba(255, 255, 255, 0.14),
      transparent 34%
    );
}
.intro-badge {
  position: absolute;
  inset: 50%;
  transform: translate(-50%, -50%);
  width: 118px;
  height: 96px;
  border-radius: 18px;
  background: rgba(255, 255, 255, 0.94);
  display: grid;
  place-items: center;
  color: #5a36ff;
  font-weight: 800;
}
.section-heading {
  text-align: center;
  margin-bottom: 24px;
}
.section-heading.align-left {
  text-align: left;
}
.steps-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
}
.step-card {
  padding: 16px;
  text-align: center;
}
.step-art {
  min-height: 160px;
  border-radius: 16px;
  margin-bottom: 16px;
  background: linear-gradient(135deg, #4c77ff 0%, #ff2f7d 100%);
  display: grid;
  place-items: center;
  color: #fff;
  font-size: 18px;
  font-weight: 700;
  position: relative;
}
.step-art::after {
  content: "";
  width: 46px;
  height: 46px;
  border-radius: 14px;
  background: rgba(255, 255, 255, 0.95);
  position: absolute;
  bottom: 14px;
  right: 14px;
  box-shadow: 0 8px 18px rgba(18, 27, 69, 0.16);
}
.split-card {
  align-items: center;
}
.browser-chip {
  position: absolute;
  top: 16px;
  left: 16px;
  right: 16px;
  padding: 8px 12px;
  border-radius: 10px;
  background: #fff;
  color: #f2357d;
  font-size: 12px;
  z-index: 1;
}
.mountain-art {
  position: absolute;
  inset: 58px 16px 16px;
  border-radius: 14px;
  background: linear-gradient(180deg, #e8efff 0%, #fff 20%, #d1dcff 100%);
}
.mountain-art::before {
  content: "";
  position: absolute;
  inset: auto 18px 0 18px;
  height: 75%;
  background: linear-gradient(
    135deg,
    #cad5ff 0%,
    #9ab4ff 40%,
    #ffffff 41%,
    #bacbff 100%
  );
  clip-path: polygon(0 100%, 20% 55%, 36% 74%, 54% 34%, 72% 66%, 100% 100%);
}
.benefits-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 18px;
}
.benefit-card {
  text-align: center;
  padding: 14px 12px;
  background: transparent;
  box-shadow: none;
  border: 0;
}
.benefit-icon {
  margin: 0 auto 12px;
  min-width: 54px;
  height: 54px;
  display: grid;
  place-items: center;
  padding: 0 10px;
  font-size: 18px;
  font-weight: 800;
  border-radius: 18px;
  background: #fff;
  box-shadow: var(--shadow);
  color: #4c5eff;
}
.feature-stack {
  display: grid;
  gap: 20px;
}
.feature-card {
  display: grid;
  grid-template-columns: 1fr 320px;
  overflow: hidden;
}
.feature-card.reverse {
  grid-template-columns: 320px 1fr;
}
.feature-card.reverse .feature-content {
  order: 2;
}
.feature-card.reverse .feature-visual {
  order: 1;
}
.feature-content {
  padding: 28px;
}
.feature-0::after,
.feature-1::after,
.feature-2::after,
.feature-3::after,
.feature-4::after,
.extension-preview::after {
  content: "";
  position: absolute;
  inset: 18px;
  border-radius: 16px;
  background: rgba(255, 255, 255, 0.24);
}
.feature-0::after {
  background:
    radial-gradient(
      circle at 50% 50%,
      rgba(255, 255, 255, 0.95) 0 18px,
      transparent 19px
    ),
    linear-gradient(
      90deg,
      rgba(255, 255, 255, 0.8) 0 14px,
      transparent 14px calc(100% - 14px),
      rgba(255, 255, 255, 0.8) calc(100% - 14px)
    ),
    linear-gradient(
      rgba(255, 255, 255, 0.8) 0 14px,
      transparent 14px calc(100% - 14px),
      rgba(255, 255, 255, 0.8) calc(100% - 14px)
    );
}
.feature-1::after {
  background: linear-gradient(
    135deg,
    rgba(255, 255, 255, 0.95),
    rgba(255, 255, 255, 0.3)
  );
  clip-path: polygon(
    8% 20%,
    36% 8%,
    52% 34%,
    25% 48%,
    8% 20%,
    36% 8%,
    70% 18%,
    88% 42%,
    54% 52%,
    36% 28%,
    40% 70%,
    18% 88%,
    8% 20%
  );
}
.feature-2::after,
.feature-3::after {
  background:
    linear-gradient(
      135deg,
      rgba(255, 255, 255, 0.88),
      rgba(255, 255, 255, 0.16)
    ),
    radial-gradient(
      circle at 50% 50%,
      rgba(255, 255, 255, 0.95) 0 18px,
      transparent 19px
    );
}
.feature-4::after {
  background: linear-gradient(
    90deg,
    rgba(255, 255, 255, 0.8) 0 28%,
    transparent 28% 36%,
    rgba(255, 255, 255, 0.8) 36% 64%,
    transparent 64% 72%,
    rgba(255, 255, 255, 0.8) 72%
  );
}
.extension-card {
  grid-template-columns: 1fr 400px;
  padding: 26px;
}
.check-list {
  margin: 18px 0 22px;
  padding: 0;
  list-style: none;
}
.check-list li {
  position: relative;
  padding-left: 22px;
  margin-bottom: 10px;
}
.check-list li::before {
  content: "?";
  position: absolute;
  left: 0;
  top: 0;
  color: #a547ff;
  font-weight: 700;
}
.extension-preview {
  min-height: 260px;
  background:
    linear-gradient(
      180deg,
      rgba(255, 255, 255, 0.92),
      rgba(255, 255, 255, 0.82)
    ),
    linear-gradient(135deg, #6c3bff 0%, #ff2f7d 100%);
}
.extension-preview::after {
  inset: 20px;
  background:
    linear-gradient(#eef2f9 0 16%, transparent 16%),
    linear-gradient(90deg, #eef2f9 0 27%, transparent 27%),
    linear-gradient(180deg, #8ab6ff 0, #ffdbeb 100%);
}
.faq-list {
  display: grid;
  gap: 16px;
}
.faq-item {
  background: transparent;
  padding: 0 0 14px;
  border-bottom: 1px solid rgba(85, 99, 163, 0.16);
}
.hero-compact .hero-inner {
  padding-bottom: 30px;
}
.legal-hero {
  min-height: 220px;
  justify-content: center;
}
.legal-section {
  padding-top: 0;
}
.legal-card {
  padding: 28px;
  margin-top: -18px;
  position: relative;
  z-index: 1;
}
.legal-block + .legal-block {
  margin-top: 22px;
  padding-top: 22px;
  border-top: 1px solid rgba(85, 99, 163, 0.14);
}
.site-footer {
  background: #fff;
  border-top: 1px solid rgba(61, 78, 136, 0.12);
  margin-top: 24px;
}
.footer-inner {
  display: flex;
  justify-content: space-between;
  gap: 20px;
  padding: 22px 0;
}
.footer-links {
  display: flex;
  flex-wrap: wrap;
  gap: 14px;
  align-items: center;
}
.footer-links a {
  color: #2454ee;
  font-weight: 600;
}
.footer-extra {
  border-top: 1px solid rgba(61, 78, 136, 0.08);
  padding: 24px 0;
  text-align: center;
}
.footer-downloader-links {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 20px;
  margin-bottom: 12px;
}
.footer-downloader-links a {
  font-size: 14px;
  color: var(--muted);
  transition: color 0.2s ease;
}
.footer-downloader-links a:hover {
  color: var(--primary);
}
.footer-copyright {
  font-size: 13px;
  color: var(--muted);
  opacity: 0.8;
}

@media (max-width: 992px) {
  .steps-grid,
  .benefits-grid,
  .feature-card,
  .feature-card.reverse,
  .intro-card,
  .split-card,
  .extension-card {
    grid-template-columns: 1fr;
  }
  .feature-card.reverse .feature-content,
  .feature-card.reverse .feature-visual {
    order: initial;
  }
}
@media (max-width: 768px) {
  .download-form {
    grid-template-columns: 1fr;
    gap: 8px;
    padding: 10px;
  }
  .download-form input {
    padding: 12px;
  }
  .paste-button,
  .primary-button {
    padding: 12px;
    width: 100%;
  }
  .hero-inner {
    padding: 30px 18px 36px;
    border-radius: 24px;
  }
  .hero-copy h1 {
    font-size: clamp(26px, 9vw, 38px);
    margin-top: 10px;
  }
  .results-header {
    flex-direction: column;
    align-items: flex-start;
  }
  .footer-inner {
    flex-direction: column;
    align-items: center;
    text-align: center;
    padding: 20px 0;
  }
  .hero-tab {
    padding: 5px 10px;
    font-size: 14px;
  }
}
/* Premium Grid & AJAX Results */
.premium-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 15px;
  margin-top: 20px;
}

.premium-card {
  border-radius: 12px;
  overflow: hidden;
  background: #fff;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.08);
  transition: transform 0.3s ease;
}

.premium-card:hover {
  transform: translateY(-5px);
}

.premium-card .result-media-container {
  aspect-ratio: 1 / 1;
  position: relative;
  background-color: #000;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
}

.premium-media {
  width: 100%;
  height: 100%;
  object-fit: contain;
  display: block;
}

video.premium-media {
  background: #000;
}

.download-actions {
  display: flex;
  flex-direction: column;
  gap: 8px;
  margin-top: 12px;
}

.download-button-premium {
  display: block;
  width: 100%;
  padding: 12px;
  background: #3897f0;
  color: #fff;
  text-align: center;
  font-weight: 600;
  font-size: 14px;
  border: none;
  border-radius: 8px;
  transition: all 0.2s;
  text-decoration: none;
}

.download-button-premium:hover {
  background: #1877f2;
  transform: translateY(-1px);
}

.download-button-premium.audio-btn {
  background: #ebecf0;
  color: #1f2453;
  border: 1px solid rgba(0, 0, 0, 0.05);
}

.download-button-premium.audio-btn:hover {
  background: #dfe2e8;
  color: #000;
}

/* Loading States */
.loading-state {
  text-align: center;
  padding: 40px 20px;
  color: #000000;
}

.dots-loader {
  width: 60px;
  aspect-ratio: 2;
  --_g: no-repeat radial-gradient(circle closest-side, #000000 90%, #0000);
  background:
    var(--_g) 0% 50%,
    var(--_g) 50% 50%,
    var(--_g) 100% 50%;
  background-size: calc(100% / 3) 50%;
  animation: d7 1s infinite linear;
  margin: 0 auto 15px;
}
@keyframes d7 {
  33% {
    background-size:
      calc(100% / 3) 0%,
      calc(100% / 3) 100%,
      calc(100% / 3) 100%;
  }
  50% {
    background-size:
      calc(100% / 3) 100%,
      calc(100% / 3) 0%,
      calc(100% / 3) 100%;
  }
  66% {
    background-size:
      calc(100% / 3) 100%,
      calc(100% / 3) 100%,
      calc(100% / 3) 0%;
  }
}

.spinner {
  display: inline-block;
  width: 16px;
  height: 16px;
  border: 2px solid rgba(28, 28, 28, 0.3);
  border-radius: 50%;
  border-top-color: #000000;
  animation: spin 1s ease-in-out infinite;
  margin-right: 8px;
  vertical-align: middle;
}

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

.animate-in {
  animation: fadeInUp 0.5s ease-out;
}

@keyframes fadeInUp {
  from {
    opacity: 0;
    transform: translateY(20px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

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

@media (max-width: 576px) {
  .premium-grid {
    grid-template-columns: 1fr;
  }
}
