


.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: var(--space-2);
  padding: 14px 28px;
  border-radius: var(--radius-md);
  font-size: var(--text-sm);
  font-weight: 500;
  text-decoration: none;
  transition: var(--transition);
  cursor: pointer;
  border: none;
  white-space: nowrap;
}

.btn:hover {
  transform: translateY(-2px);
}

.btn:active {
  transform: translateY(0);
}

.btn-primary {
  background-color: #fff;
  color: var(--primary-dark);
  box-shadow: var(--shadow-md);
}

.btn-primary:hover {
  box-shadow: var(--shadow-xl);
  color: var(--primary-dark);
}

.btn-outline {
  background-color: transparent;
  color: #fff;
  border: 2px solid rgba(255, 255, 255, 0.5);
}

.btn-outline:hover {
  background-color: rgba(255, 255, 255, 0.1);
  border-color: #fff;
  color: #fff;
}


.sticky-nav {
  position: sticky;
  top: 0;
  z-index: var(--z-sticky);
  background-color: rgba(255, 255, 255, 0.92);
  -webkit-backdrop-filter: blur(12px);
  backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--border);
  box-shadow: var(--shadow-sm);
}

.sticky-nav .container {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 64px;
}

.nav-logo {
  display: flex;
  align-items: center;
  gap: 10px;
  font-weight: 700;
  font-size: var(--text-lg);
  color: var(--text-dark);
}

.nav-logo-icon {
  width: 26px;
  height: 26px;
  color: var(--primary);
  flex-shrink: 0;
}

.nav-logo i {
  color: var(--primary);
  font-size: 22px;
}

.nav-links {
  display: flex;
  gap: 6px;
  flex-wrap: wrap;
}

.nav-links a {
  padding: 8px 14px;
  font-size: var(--text-sm);
  color: var(--text-muted);
  text-decoration: none;
  border-radius: var(--radius-sm);
  transition: var(--transition-fast);
  white-space: nowrap;
}

.nav-links a:hover,
.nav-links a.active {
  color: var(--primary);
  background-color: rgba(99, 102, 241, 0.1);
}

.nav-links a.active {
  font-weight: 500;
}


.nav-hamburger {
  display: none;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  gap: 5px;
  width: 40px;
  height: 40px;
  padding: 8px;
  border: none;
  background: none;
  cursor: pointer;
  border-radius: var(--radius-sm);
  transition: background-color var(--transition-fast);
  z-index: calc(var(--z-sticky) + 1);
}

.nav-hamburger:hover {
  background-color: rgba(99, 102, 241, 0.08);
}

.nav-hamburger-line {
  display: block;
  width: 20px;
  height: 2px;
  background-color: var(--text-dark);
  border-radius: 1px;
  transition: transform 0.3s ease, opacity 0.3s ease;
  transform-origin: center;
}


.nav-hamburger[aria-expanded="true"] .nav-hamburger-line:nth-child(1) {
  transform: translateY(7px) rotate(45deg);
}

.nav-hamburger[aria-expanded="true"] .nav-hamburger-line:nth-child(2) {
  opacity: 0;
}

.nav-hamburger[aria-expanded="true"] .nav-hamburger-line:nth-child(3) {
  transform: translateY(-7px) rotate(-45deg);
}


.nav-overlay {
  display: none;
  position: fixed;
  inset: 0;
  top: 64px;
  background-color: rgba(0, 0, 0, 0.4);
  z-index: calc(var(--z-sticky) - 1);
  opacity: 0;
  transition: opacity 0.3s ease;
}

.nav-overlay.visible {
  opacity: 1;
}


.data-source {
  font-size: var(--text-xs);
  color: var(--text-light);
  font-style: normal;
}


.section {
  padding: var(--space-20) 0;
  position: relative;
  
}


.section + .section {
  margin-top: 0;
}


.section.alt-bg {
  background-color: var(--bg-light);
}


.section-tinted {
  background-color: var(--bg-light);
}

.section-header {
  text-align: center;
  margin-bottom: var(--space-12);
  max-width: 720px;
  margin-left: auto;
  margin-right: auto;
}

.section-tag {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 6px 14px;
  background-color: rgba(99, 102, 241, 0.1);
  color: var(--primary);
  border-radius: var(--radius-full);
  font-size: var(--text-xs);
  font-weight: 500;
  margin-bottom: var(--space-4);
  letter-spacing: 0.3px;
}

.section-title {
  font-size: var(--text-3xl);
  font-weight: 700;
  color: var(--text-dark);
  margin-bottom: var(--space-4);
  line-height: 1.3;
}

.section-desc {
  font-size: var(--text-base);
  color: var(--text-muted);
  max-width: 640px;
  margin: 0 auto;
  line-height: 1.7;
}


.card {
  background-color: var(--bg-white);
  border-radius: var(--radius-lg);
  border: 1px solid var(--border-light);
  transition: var(--transition);
}

.card:hover {
  box-shadow: var(--shadow-lg);
  transform: translateY(-4px);
}


.badge {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  padding: 3px 10px;
  background-color: var(--primary-50);
  color: var(--primary);
  border-radius: var(--radius-full);
  font-size: var(--text-xs);
  font-weight: 500;
}

.badge-success {
  background-color: rgba(16, 185, 129, 0.1);
  color: var(--success);
}

.badge-warning {
  background-color: rgba(245, 158, 11, 0.1);
  color: var(--warning);
}


.reveal {
  opacity: 0;
  transform: translateY(30px);
  transition: opacity 0.6s ease, transform 0.6s ease;
}

.reveal.visible {
  opacity: 1;
  transform: translateY(0);
}

@keyframes fadeIn {
  from {
    opacity: 0;
    transform: translateY(10px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@keyframes float {
  0%, 100% {
    transform: translateY(0);
  }
  50% {
    transform: translateY(-30px);
  }
}


.scroll-progress {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 3px;
  background-color: transparent;
  z-index: 9999;
  pointer-events: none;
}

.scroll-progress-bar {
  height: 100%;
  width: 0;
  background: linear-gradient(
    90deg,
    var(--primary) 0%,
    var(--secondary) 50%,
    var(--accent) 100%
  );
  transition: width 0.1s linear;
  box-shadow: 0 0 8px rgba(99, 102, 241, 0.4);
}


.back-to-top {
  position: fixed;
  bottom: var(--space-8);
  right: var(--space-8);
  width: 48px;
  height: 48px;
  border-radius: 50%;
  background: linear-gradient(135deg, var(--primary), var(--primary-dark));
  color: #fff;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: var(--text-base);
  box-shadow: 0 6px 16px rgba(99, 102, 241, 0.35);
  opacity: 0;
  visibility: hidden;
  transform: translateY(20px);
  transition: var(--transition);
  cursor: pointer;
  z-index: var(--z-sticky);
  border: none;
}

.back-to-top.visible {
  opacity: 1;
  visibility: visible;
  transform: translateY(0);
}

.back-to-top:hover {
  transform: translateY(-4px);
  box-shadow: 0 10px 24px rgba(99, 102, 241, 0.45);
  background: linear-gradient(135deg, var(--primary-dark), var(--primary));
}

.back-to-top:active {
  transform: translateY(-2px);
}


.float-qrcode {
  position: fixed;
  bottom: calc(var(--space-8) + 48px + 16px);
  right: var(--space-8);
  display: inline-flex;
  align-items: center;
  gap: var(--space-2);
  padding: 10px 20px 10px 16px;
  border-radius: var(--radius-full);
  background: linear-gradient(135deg, var(--primary), var(--primary-dark));
  color: #fff;
  font-size: var(--text-sm);
  font-weight: 600;
  text-decoration: none;
  white-space: nowrap;
  box-shadow: 0 6px 20px rgba(99, 102, 241, 0.35);
  z-index: var(--z-sticky);
  transition: var(--transition);
  animation: floatQrEntrance 0.5s ease-out 0.3s both;
}

.float-qrcode::after {
  content: '';
  position: absolute;
  inset: 0;
  border-radius: inherit;
  animation: floatQrPulse 2.5s ease-out 1s infinite;
  pointer-events: none;
}

.float-qrcode i {
  font-size: 18px;
  line-height: 1;
}

.float-qrcode-text {
  line-height: 1;
}

.float-qrcode:hover {
  transform: translateY(-4px);
  box-shadow: 0 12px 30px rgba(99, 102, 241, 0.5);
  color: #fff;
}

.float-qrcode:active {
  transform: translateY(-2px);
  box-shadow: 0 8px 20px rgba(99, 102, 241, 0.4);
}


@keyframes floatQrEntrance {
  from {
    opacity: 0;
    transform: translateX(20px);
  }
  to {
    opacity: 1;
    transform: translateX(0);
  }
}


@keyframes floatQrPulse {
  0% {
    box-shadow: 0 0 0 0 rgba(99, 102, 241, 0.4);
  }
  70%, 100% {
    box-shadow: 0 0 0 12px rgba(99, 102, 241, 0);
  }
}
