:root {
  --brand-orange: #ff4500;
  --bg-color: #ffffff;
  --bg-soft: #f4f4f6;
  --bg-soft-transparent: rgba(255, 255, 255, 0.8);
  --text-color: #1f2937;
  --text-muted: #6b7280;
  --border-color: #e5e7eb;
  --border-color-darker: #d1d5db;
  --focus-ring: #ff4500;
  --white: #ffffff;
  --black: #000000;

  --font-sans: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica,
    Arial, sans-serif, "Apple Color Emoji", "Segoe UI Emoji", "Segoe UI Symbol";
}

html[data-theme="dark"] {
  --bg-color: #131419;
  --bg-soft: #22222c;
  --bg-soft-transparent: rgba(4, 4, 4, 0.8);
  --text-color: #f3f4f6;
  --text-muted: #9ca3af;
  --border-color: #282b32;
  --border-color-darker: #4b5563;
}

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

html {
  scroll-behavior: smooth;
}

body {
  font-family: var(--font-sans);
  background-color: var(--bg-color);
  color: var(--text-color);
  line-height: 1.6;
}

.container {
  width: 100%;
  max-width: 1200px;
  margin-left: auto;
  margin-right: auto;
  padding-left: 16px;
  padding-right: 16px;
}

.brand-text {
  color: var(--brand-orange);
}

.hidden {
  display: none !important;
}

.site-header {
  background-color: var(--bg-soft-transparent);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  box-shadow: 0 5px 42px 0 #00000014;
  position: sticky;
  top: 0px;
  z-index: 50;
  transition: background-color 0.3s, border-color 0.3s;
}

.header-container {
  display: flex;
  justify-content: space-between;
  align-items: center;
  height: 70px;
}

.logo {
  display: flex;
  align-items: center;
  gap: 8px;
  text-decoration: none;
  color: var(--text-color);
}
.logo-icon {
  width: 32px;
  height: 32px;
  color: var(--brand-orange);
  margin-top: 10px;
}
.logo-text {
  font-size: 24px;
  font-weight: 600;
}

.main-nav {
  display: none;
}

.nav-link {
  font-weight: 500;
  text-decoration: none;
  color: var(--text-muted);
  transition: color 0.2s;
}
.nav-link:hover {
  color: var(--brand-orange);
}
.nav-link.active {
  color: var(--brand-orange);
}

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

.theme-toggle,
.mobile-menu-button {
  background: none;
  border: none;
  cursor: pointer;
  padding: 8px;
  border-radius: 9999px;
  color: var(--text-muted);
}
.theme-toggle:hover,
.mobile-menu-button:hover {
  background-color: var(--bg-soft);
}
.theme-toggle .icon,
.mobile-menu-button .icon {
  width: 24px;
  height: 24px;
}
#sun-icon {
  color: #facc15;
}
#moon-icon {
  color: var(--text-color);
}
.mobile-menu-button .close {
  display: none;
}
.mobile-menu-button[aria-expanded="true"] .open {
  display: none;
}
.mobile-menu-button[aria-expanded="true"] .close {
  display: block;
}

.mobile-menu {
  padding: 16px 0;
  border-top: 1px solid var(--border-color);
}
.mobile-menu .nav-link {
  display: block;
  padding: 12px 24px;
  font-size: 18px;
}

.hero-section {
  text-align: center;
  padding: 64px 0 48px;
}
.hero-title {
  font-size: 30px;
  font-weight: 600;
  margin-bottom: 12px;
}
.hero-subtitle {
  font-size: 18px;
  color: var(--text-muted);
  margin-bottom: 32px;
  max-width: 60ch;
  margin-left: auto;
  margin-right: auto;
}

.downloader-form-container {
  max-width: 784px;
  margin: 0 auto;
}
.downloader-form {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.url-input {
  display: block;
  flex-grow: 1;
  width: 100%;
  padding: 16px 20px;
  font-size: 16px;
  color: var(--text-color);
  background-color: var(--bg-color);
  border: 1px solid var(--border-color-darker);
  border-radius: 6px;
  transition: border-color 0.2s, box-shadow 0.2s;
}
.url-input::placeholder {
  color: var(--text-muted);
}
.url-input:focus {
  outline: none;
  border-color: var(--focus-ring);
  box-shadow: 0 0 0 1px var(--focus-ring);
}

.inputbutton {
  position: relative;
  width: 100%;
}

.buttons .button {
  cursor: pointer;
  border: none;
  background: transparent;
  color: var(--text-muted);
}

.inputbutton .buttons {
  position: absolute;
  right: 5px;
  top: 10px;
  display: flex;
}

#clear {
  display: none;
}

html[data-theme="dark"] .url-input {
  background-color: #374151;
}

.isflex {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  min-width: 130px;
}

@keyframes blinkAnimation {
  0% {
    opacity: 1;
  }
  50% {
    opacity: 0.5;
  }
  100% {
    opacity: 1;
  }
}
.blink {
  animation: blinkAnimation 0.5s linear infinite;
}

.is_button {
  padding: 16px 32px;
  font-weight: 600;
  border: none;
  border-radius: 6px;
  cursor: pointer;
  transition: background-color 0.3s;
}
.main_button {
  background-color: var(--brand-orange);
  color: var(--white);
}
.main_button:hover {
  background-color: #e63e00;
}

.main_button:disabled {
  background-color: var(--text-muted);
  cursor: not-allowed;
  pointer-events: none;
}
.info-section {
  padding: 32px 0;
}

.heading-title {
  font-size: 24px;
  font-weight: 600;
  margin-top: 32px;
  margin-bottom: 10px;
}
.section-title {
  font-size: 24px;
  font-weight: 600;
  margin-bottom: 32px;
  text-align: center;
  color: var(--text-color);
}
.card {
  background-color: var(--bg-soft);
  padding: 32px;
  border-radius: 12px;
  max-width: 896px;
  margin: 0 auto;
  transition: background-color 0.3s;
  color: var(--text-color);
}

.card-content {
  color: var(--text-muted);
  font-size: 18px;
}
.card-content p,
.card-content ul {
  margin-bottom: 24px;
}
.card-content p:last-child,
.card-content ul:last-child {
  margin-bottom: 0;
}

.ullist {
  padding-left: 40px;
}

.steps-list {
  list-style: none;
  counter-reset: step;
  padding-left: 40px;
}

.steps-list li {
  position: relative;
  margin-bottom: 32px;
  counter-increment: step;
}

.steps-list li::before {
  content: counter(step);
  position: absolute;
  left: -38px;
  top: 0px;
  width: 30px;
  height: 30px;
  background-color: var(--brand-orange);
  color: white;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
}

.steps-list strong {
  color: var(--text-color);
}

.faq-section {
  padding: 48px 0;
}
.faq-container {
  max-width: 896px;
  margin: 0 auto;
  border-radius: 12px;
  overflow: hidden;
  transition: background-color 0.3s;
}
.faq-item {
  border-radius: 12px;
  margin-bottom: 16px;
  background-color: var(--bg-soft);
  box-shadow: 0 1px 1px rgba(0, 0, 0, 0.05);
}

.faq-question {
  width: 100%;
  display: flex;
  justify-content: space-between;
  align-items: center;
  text-align: left;
  padding: 14.4px 24px;
  font-size: 16px;
  font-weight: 500;
  color: var(--text-color);
  background: none;
  border: none;
  cursor: pointer;
}
.faq-question:hover {
  background-color: rgba(0, 0, 0, 0.02);
}
html[data-theme="dark"] .faq-question:hover {
  background-color: rgba(255, 255, 255, 0.03);
}

.faq-icon {
  width: 24px;
  height: 24px;
  color: var(--text-muted);
  transition: transform 0.3s ease;
}
.faq-icon.rotate-180 {
  transform: rotate(180deg);
}
.faq-answer {
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.3s ease-in-out;
}
.faq-answer p {
  padding: 0 24px 20px;
  color: var(--text-muted);
}

.site-footer-bottom {
  background-color: transparent;
  border-top: 1px solid var(--border-color);
  padding: 48px 0 32px;
  transition: background-color 0.3s, border-color 0.3s;
}

.footer-grid {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr 1fr;
  gap: 40px;
}

.footer-about .logo {
  margin-bottom: 16px;
}
.footer-text {
  font-size: 14px;
  color: var(--text-muted);
  margin-bottom: 16px;
}
.social-links {
  display: flex;
  gap: 16px;
}
.social-links a {
  color: var(--text-muted);
  transition: color 0.2s;
}
.social-links a:hover {
  color: var(--brand-orange);
}
.social-links svg {
  width: 20px;
  height: 20px;
}

.footer-heading {
  font-size: 15px;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.8px;
  color: var(--text-color);
  margin-bottom: 16px;
}
.footer-links ul {
  list-style: none;
  padding: 0;
  display: flex;
  flex-direction: column;
  gap: 12px;
}
.footer-links a {
  text-decoration: none;
  color: var(--text-muted);
  transition: color 0.2s;
}
.footer-links a:hover {
  color: var(--brand-orange);
}

.footer-copyright {
  margin-top: 48px;
  padding-top: 32px;
  border-top: 1px solid var(--border-color);
  text-align: center;
  font-size: 16px;
  color: var(--text-muted);
}

.dropdown {
  position: relative;
  display: inline-block;
}

.dropdown-button {
  padding: 10px;
  border-radius: 50%;
  background: transparent;
  color: var(--text-color);
  border: none;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
}

.dropdown-menu {
  display: none;
  position: absolute;
  right: 0;
  top: 100%;
  background: var(--bg-color);
  border: 1px solid var(--border-color);
  border-radius: 10px;
  box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
  padding: 10px;
  z-index: 1000;
}

.dropdown:hover .dropdown-menu {
  display: flex;
}

.dropdown-column {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 8px 44.8px;
}

.dropdown-column a {
  display: block;
  padding: 5px 10px;
  text-decoration: none;
  color: var(--text-color);
  font-size: 15px;
}

.dropdown-column a:hover {
  color: var(--brand-orange);
}

.is_error {
  animation: blink 1s step-start infinite, hideIt 5s forwards;
  color: red;
  font-weight: bold;
}

.verysmall {
  font-size: 12px;
  color: var(--text-muted);
}

.chweb_result {
  min-height: 40px;
}

@keyframes blink {
  10% {
    color: rgb(0, 0, 0);
  }
  30% {
    color: rgb(255, 0, 0);
  }
  60% {
    color: rgb(0, 0, 0);
  }
  100% {
    color: rgb(255, 0, 0);
  }
}

@keyframes hideIt {
  0% {
    visibility: visible;
    opacity: 1;
  }
  99% {
    visibility: visible;
    opacity: 1;
  }
  100% {
    visibility: hidden;
    opacity: 0;
  }
}

.disclaimer {
  margin-top: 32px;
  color: var(--brand-orange);
}

.page_content {
  margin-block: 32px;
}

.page_content h1 {
  font-size: 32px;
  font-weight: bold;
  margin-bottom: 8px;
}

.page_content h2 {
  font-size: 27.2px;
  font-weight: bold;
  margin-top: 9.6px;
}

.page_content h3 {
  font-size: 24px;
  font-weight: bold;
  margin-top: 9.6px;
}

.page_content h4 {
  font-size: 20.8px;
  font-weight: 600;
  margin-top: 8px;
}

.page_content h5 {
  font-size: 18.56px;
  font-weight: 600;
  margin-top: 6.4px;
}

.page_content h6 {
  font-size: 14.4px;
  font-weight: 600;
  margin-top: 6.4px;
}

.page_content p {
  font-size: 16px;
  line-height: 1.6;
  color: var(--text-color);
  margin-bottom: 15px;
}

.page_content ul,
.page_content ol {
  margin-left: 20px;
  margin-bottom: 15px;
  padding-left: 24px;
}

.page_content ul li,
.page_content ol li {
  line-height: 1.5;
  color: var(--text-color);
  margin-bottom: 8px;
}

.page_content ul {
  list-style-type: disc;
}

.page_content ol {
  list-style-type: decimal;
}

@media screen and (max-width: 768px) {
  .hero-title {
    font-size: 28px;
    font-weight: 600;
    margin-bottom: 9px;
  }
  .hero-subtitle {
    font-size: 16px;
    margin-bottom: 24px;
    max-width: 100%;
  }

  .site-header .container {
    padding-left: 10px;
    padding-right: 10px;
  }

  .header-actions {
    gap: 2.56px;
  }

  .footer-grid {
    grid-template-columns: 1fr;
  }
}

@media (min-width: 768px) {
  .card {
    padding: 48px;
  }
  .downloader-form {
    flex-direction: row;
  }

  .mobile-menu-button {
    display: none;
  }
  .main-nav {
    display: flex;
    gap: 32px;
  }
}
