html.preload *,
html.preload *::before,
html.preload *::after {
  transition: none !important;
  animation: none !important;
}

* {
  box-sizing: border-box;
}

html, body {
  margin: 0;
  padding: 0;
  min-height: 100%;
  font-family: "Figtree", sans-serif;
  background-color: #0e0e0e;
  color: #f1f1f1;
  transition: background-color 1s, color 1s;
  width: 100%;
  overflow-x: hidden;
}

body.menu-open {
  overflow: hidden;
}

.navbar {
  display: flex;
  flex-direction: column;
  align-items: center;
  width: 100%;
  padding-top: 1rem;
  position: relative;
  z-index: 1001;
}

.nav-content {
  width: min(90%, 1200px);
  display: flex;
  align-items: center;
  justify-content: space-between;
  position: relative;
  padding: 0 1rem;
}

.navbar .logo img {
  height: clamp(80px, 15vw, 150px);
  width: auto;
  object-fit: contain;
  transition: transform 0.8s;
}

.navbar .logo:hover img {
  transform: scale(1.05);
}

.nav-buttons {
  display: flex;
  align-items: center;
  gap: 0.8rem;
}

.connect-btn {
  background: #1db954;
  border: none;
  padding: clamp(0.5rem, 2vw, 0.8rem) clamp(1rem, 3vw, 1.6rem);
  border-radius: 30px;
  font-weight: 500;
  cursor: pointer;
  color: white;
  font-size: clamp(0.85rem, 2vw, 1rem);
  white-space: nowrap;
}

.icon-btn {
  background: none;
  border: none;
  cursor: pointer;
  padding: 0.4rem;
  transition: transform 0.3s;
  display: inline-flex;
  align-items: center;
  color: inherit;
  text-decoration: none;
}

.icon-btn img {
  width: clamp(24px, 4vw, 28px);
  height: clamp(24px, 4vw, 28px);
  filter: brightness(0) invert(1);
}

.icon-btn:hover {
  transform: scale(1.12);
}

.mobile-menu-btn {
  display: none;
  background: none;
  border: none;
  cursor: pointer;
  padding: 0.5rem;
  width: 40px;
  height: 40px;
  position: relative;
  z-index: 1002;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  gap: 6px;
}

.hamburger-line {
  width: 28px;
  height: 3px;
  background-color: #fff;
  border-radius: 2px;
  transition: all 0.3s ease;
  display: block;
}

body.light-theme .hamburger-line {
  background-color: #0e0e0e;
}

.mobile-menu-btn.active .hamburger-line:nth-child(1) {
  transform: translateY(9px) rotate(45deg);
}

.mobile-menu-btn.active .hamburger-line:nth-child(2) {
  opacity: 0;
}

.mobile-menu-btn.active .hamburger-line:nth-child(3) {
  transform: translateY(-9px) rotate(-45deg);
}

.mobile-menu-overlay {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100vh;
  background: linear-gradient(135deg, #0e0e0e 0%, #1a1a1a 100%);
  z-index: 1000;
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.4s ease;
}

body.light-theme .mobile-menu-overlay {
  background: linear-gradient(135deg, #ffffff 0%, #f5f5f5 100%);
}

.mobile-menu-overlay.active {
  opacity: 1;
  pointer-events: all;
}

.mobile-menu-content {
  display: flex;
  flex-direction: column;
  gap: 2rem;
  align-items: center;
  padding: 2rem;
  transform: translateY(30px);
  opacity: 0;
  transition: all 0.4s ease 0.1s;
}

.mobile-menu-overlay.active .mobile-menu-content {
  transform: translateY(0);
  opacity: 1;
}

.mobile-menu-item {
  display: flex;
  align-items: center;
  gap: 1.5rem;
  padding: 1rem 2rem;
  background: rgba(255, 255, 255, 0.05);
  border-radius: 16px;
  text-decoration: none;
  color: #f1f1f1;
  font-size: 1.2rem;
  font-weight: 500;
  border: 2px solid transparent;
  transition: all 0.3s ease;
  width: 100%;
  max-width: 400px;
  backdrop-filter: blur(10px);
}

body.light-theme .mobile-menu-item {
  background: rgba(0, 0, 0, 0.05);
  color: #0e0e0e;
}

.mobile-menu-item:hover {
  transform: translateX(10px);
  border-color: #1db954;
  background: rgba(29, 185, 84, 0.1);
}

body.light-theme .mobile-menu-item:hover {
  border-color: #4caf50;
  background: rgba(76, 175, 80, 0.1);
}

.mobile-menu-item img {
  width: 32px;
  height: 32px;
  filter: brightness(0) invert(1);
}

body.light-theme .mobile-menu-item img {
  filter: brightness(0) invert(0);
}

.nav-divider, .footer-divider {
  width: 85%;
  height: 1px;
  background-color: #fff;
  margin: 1rem auto 2rem auto;
  transition: background-color 0.6s;
}

.content-main {
  display: flex;
  flex-wrap: wrap;
  width: min(90%, 1200px);
  margin: clamp(2rem, 5vw, 4rem) auto;
  gap: clamp(1.5rem, 3vw, 2rem);
  min-height: auto;
}

.main-left, .main-right {
  flex: 1;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  min-width: min(100%, 340px);
}

.top-section, .bottom-section {
  display: flex;
  flex-direction: column;
  align-items: center;
}

.text-zone {
  display: flex;
  flex-direction: column;
  align-items: center;
  margin-bottom: 0;
  padding: 0 1rem;
}

.text-zone h2 {
  margin-bottom: 1rem;
  text-align: center;
  font-family: "Archivo Black", sans-serif;
  font-size: clamp(1.1rem, 3vw, 1.4rem);
  line-height: 1.3;
}

.text-zone p {
  line-height: 1.6;
  text-align: justify;
  max-width: 100%;
  margin: 0 auto;
  font-size: clamp(0.9rem, 2vw, 1rem);
}

.spacer-block {
  height: clamp(20px, 5vw, 80px);
}

.spacer-block-b {
  height: clamp(40px, 8vw, 130px);
}

.spacer-block-d {
  height: clamp(80px, 15vw, 250px);
}

.circle-container {
  display: flex;
  gap: clamp(20px, 8vw, 60px);
  margin-top: clamp(40px, 10vw, 120px);
  justify-content: center;
  margin-bottom: clamp(20px, 5vw, 40px);
  flex-wrap: wrap;
}

.circle-wrapper {
  position: relative;
  width: clamp(80px, 15vw, 120px);
  height: clamp(80px, 15vw, 120px);
  transition: transform 0.3s;
  flex-shrink: 0;
}

.circle-bg {
  position: absolute;
  top: 50%;
  left: 50%;
  width: 100%;
  height: 100%;
  background-color: #1db954;
  border-radius: 50%;
  transform: translate(-50%, -50%) scale(0.9);
  transition: transform 1.5s, opacity 0.3s;
  z-index: 0;
  opacity: 0.8;
}

.circle {
  position: relative;
  width: 100%;
  height: 100%;
  border-radius: 50%;
  background-color: #333;
  display: flex;
  justify-content: center;
  align-items: center;
  color: white;
  font-weight: bold;
  font-size: clamp(0.85rem, 2.5vw, 1.1rem);
  z-index: 1;
  transition: transform 0.3s;
  text-align: center;
  padding: 0.5rem;
}

.animate-bg {
  transform: translate(-50%, -50%) scale(1.2);
}

.circle-wrapper:hover .circle {
  transform: scale(1.1);
}

.container {
  display: flex;
  flex-direction: column;
  gap: clamp(15px, 3vw, 20px);
  width: 100%;
  padding: 0 1rem;
}

.progress-container {
  display: flex;
  align-items: center;
  gap: clamp(10px, 3vw, 20px);
  width: 100%;
  min-width: 0;
}

.progress-logo {
  width: clamp(40px, 8vw, 60px);
  height: clamp(40px, 8vw, 60px);
  background: #333;
  border-radius: 50%;
  display: flex;
  justify-content: center;
  align-items: center;
  flex-shrink: 0;
}

.progress-logo img {
  width: 65%;
  height: 65%;
  object-fit: contain;
}

.progress-bar {
  position: relative;
  flex: 1;
  height: clamp(24px, 4vw, 30px);
  background: #222;
  border-radius: 15px;
  overflow: hidden;
  min-width: 0;
}

.progress-fill {
  height: 100%;
  width: 0%;
  background: linear-gradient(90deg, #1db954, #1db954);
  border-radius: 15px;
  transition: width 0.15s;
}

.progress-text {
  position: absolute;
  width: 100%;
  text-align: center;
  top: 50%;
  left: 0;
  transform: translateY(-50%);
  font-size: clamp(0.8rem, 2vw, 1rem);
  font-weight: 500;
  color: white;
  pointer-events: none;
  white-space: nowrap;
}

.arc-card-integration {
  background: #333;
  border-radius: 18px;
  width: min(90vw, 345px);
  height: auto;
  aspect-ratio: 345 / 285;
  display: flex;
  align-items: flex-start;
  justify-content: center;
  position: relative;
  flex-direction: column;
  padding: 3px 0 40.5px 0;
  margin: 2.5rem auto 0 auto;
}

.arc-svg-zone {
  width: min(85vw, 292.5px);
  height: auto;
  aspect-ratio: 292.5 / 165;
  position: relative;
  margin: 0 auto;
}

.arc-svg-zone svg {
  width: 100%;
  height: auto;
  display: block;
}

.arc-bg {
  stroke: #222;
  stroke-width: 33;
  fill: none;
  stroke-linecap: round;
}

.arc-progress {
  stroke: #1db954;
  stroke-width: 33;
  fill: none;
  stroke-linecap: butt;
}

.arc-dot {
  fill: #1db954;
}

.big-number {
  position: absolute;
  left: 50%;
  top: 82%;
  transform: translate(-50%, -50%);
  color: #fff;
  font-size: clamp(2rem, 6vw, 3.3rem);
  font-weight: bold;
  text-align: center;
  letter-spacing: 0.02em;
  line-height: 1;
  pointer-events: none;
  z-index: 2;
  text-shadow: 0 1px 0 #2227;
  white-space: nowrap;
}

.label-text {
  position: absolute;
  left: 50%;
  top: 106%;
  transform: translate(-50%, 0);
  color: #fff;
  font-size: clamp(0.8rem, 2vw, 0.96rem);
  font-weight: 500;
  text-align: center;
  letter-spacing: 0.01em;
  pointer-events: none;
  z-index: 2;
  text-shadow: 0 1px 0 #2227;
  white-space: nowrap;
  padding: 0 0.5rem;
}

.footer {
  text-align: center;
  padding: clamp(2rem, 5vw, 4rem) 1rem clamp(1.5rem, 3vw, 3rem) 1rem;
  background-color: inherit;
  transition: background-color 1s;
}

.footer-divider {
  width: 92%;
}

.footer-logos {
  display: flex;
  justify-content: center;
  align-items: center;
  flex-wrap: wrap;
  gap: clamp(1rem, 3vw, 2rem);
  margin-bottom: 1rem;
}

.footer-logos img {
  height: clamp(30px, 5vw, 40px);
  width: auto;
  max-width: 120px;
  object-fit: contain;
  filter: brightness(0) invert(1);
  opacity: 0.8;
  transition: filter 0.5s, opacity 0.5s;
}

.footer-row {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: clamp(1rem, 3vw, 3.5rem);
  flex-wrap: wrap;
  padding: 1rem 0.5rem;
}

.footer .desc {
  margin: 0;
  line-height: 1.2;
  color: #aaa;
  font-size: clamp(0.8rem, 2vw, 0.9rem);
  text-align: center;
  text-decoration: none;
}

a.desc:hover {
  color: #1db954;
}

body.light-theme {
  background-color: #fff !important;
  color: #0e0e0e;
}

body.light-theme .navbar .logo img {
  content: url('../assets/playlistconverter-logo-b.png');
}

body.light-theme .icon-btn img {
  filter: brightness(0) invert(0);
}

body.light-theme .footer-logos img {
  filter: brightness(0) invert(0);
  opacity: 0.9;
}

body.light-theme .nav-divider,
body.light-theme .footer-divider {
  background-color: #000;
}

body.light-theme .desc {
  color: #555;
}

body.light-theme .progress-bar {
  background: #ddd;
}

body.light-theme .progress-fill {
  background: linear-gradient(90deg, #4caf50, #1ed760);
}

body.light-theme .progress-text {
  color: #0e0e0e;
}

body.light-theme .arc-card-integration {
  background: #f5f5f5;
}

body.light-theme .arc-bg {
  stroke: #ddd;
}

body.light-theme .arc-progress {
  stroke: #4caf50;
}

body.light-theme .arc-dot {
  fill: #4caf50;
}

body.light-theme .big-number,
body.light-theme .label-text {
  color: #222;
  text-shadow: none;
}

body.light-theme .progress-logo {
  background: #f5f5f5;
}

body.light-theme .circle-bg {
  background-color: #4caf50;
}

body.light-theme .circle {
  background-color: #f5f5f5;
  color: #222;
}

body.light-theme html {
  background-color: #fff !important;
}

@media (max-width: 768px) {
  .mobile-menu-btn {
    display: flex;
  }

  .nav-buttons {
    display: none;
  }
}

@media (max-width: 900px) {
  .content-main {
    flex-direction: column;
  }

  .main-left,
  .main-right {
    width: 100%;
    min-width: 0;
  }

  .main-left .top-section {
    order: 1;
  }

  .main-left .bottom-section {
    order: 3;
  }

  .main-right .top-section {
    order: 2;
  }

  .main-right .bottom-section {
    order: 4;
  }
}

@media (max-width: 380px) {
  .text-zone {
    padding: 0 0.5rem;
  }

  .circle {
    font-size: 0.75rem;
    padding: 0.3rem;
  }

  .progress-container {
    gap: 8px;
  }

  .container {
    padding: 0 0.5rem;
  }
}