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

html {
  scroll-behavior: smooth;
}

.scroll-progress {
  position: fixed;
  top: 0;
  left: 0;
  width: 0%;
  height: 3px;
  background: var(--accent);
  z-index: 10001;
  transition: width 0.1s linear;
}

body {
  font-family: "Inter", sans-serif;
  background: var(--bg);
  color: var(--text);
  overflow-x: hidden;
  line-height: 1.6;
}

h1, h2, h3, h4, h5, h6 {
  font-family: "Outfit", sans-serif;
  font-weight: 700;
}

/* ===== FOCUS STATES ===== */
a:focus-visible,
button:focus-visible,
input:focus-visible,
textarea:focus-visible,
select:focus-visible,
.skip-link:focus {
  outline: 2px solid var(--accent);
  outline-offset: 2px;
}

.skip-link {
  position: absolute;
  top: -100%;
  left: 1rem;
  background: var(--accent);
  color: var(--on-accent);
  padding: 0.5rem 1rem;
  border-radius: 8px;
  font-weight: 600;
  z-index: 10001;
  text-decoration: none;
  transition: top 0.3s ease;
}

.skip-link:focus-visible {
  top: 1rem;
}

/* ===== SECTIONS COMMON ===== */
section {
  padding: 6rem 5%;
  position: relative;
}

.section-header {
  text-align: center;
  max-width: 700px;
  margin: 0 auto 4rem;
}

.section-tag {
  display: inline-block;
  color: var(--accent);
  font-size: 0.85rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 3px;
  margin-bottom: 1rem;
}

.section-header h2 {
  font-size: clamp(2rem, 4vw, 3rem);
  margin-bottom: 1rem;
  line-height: 1.2;
}

.section-header p {
  color: var(--text-muted);
  font-size: 1.1rem;
}

/* ===== BUTTONS ===== */
.btn {
  padding: 1rem 2.5rem;
  border-radius: 50px;
  font-family: "Outfit", sans-serif;
  font-weight: 600;
  font-size: 1rem;
  cursor: pointer;
  transition: background 0.3s ease, transform 0.3s ease, border-color 0.3s ease, color 0.3s ease;
  text-decoration: none;
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  border: none;
  transform: translate(calc(var(--mx, 0) * 1px), calc(var(--my, 0) * 1px));
}

.btn-primary {
  background: var(--accent);
  color: var(--on-accent);
}

.btn-primary:hover {
  background: var(--accent-dark);
  transform: translate(calc(var(--mx, 0) * 1px), calc(var(--my, 0) * 1px - 3px));
}

.btn-primary:active {
  transform: translate(calc(var(--mx, 0) * 1px), calc(var(--my, 0) * 1px - 1px)) scale(0.98);
}

.btn-outline {
  background: transparent;
  color: var(--text);
  border: 2px solid var(--border);
}

.btn-outline:hover {
  border-color: var(--accent);
  color: var(--accent);
  transform: translate(calc(var(--mx, 0) * 1px), calc(var(--my, 0) * 1px - 3px));
  background: var(--accent-soft);
}

.btn-outline:active {
  transform: translate(calc(var(--mx, 0) * 1px), calc(var(--my, 0) * 1px - 1px)) scale(0.98);
}

/* ===== SCROLL TO TOP ===== */
.scroll-top {
  position: fixed;
  bottom: 2rem;
  right: 2rem;
  width: 50px;
  height: 50px;
  background: var(--accent);
  color: var(--on-accent);
  border: none;
  border-radius: 50%;
  cursor: pointer;
  font-size: 1.2rem;
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.3s ease, visibility 0.3s ease, transform 0.3s ease;
  z-index: 999;
  transform: translate(calc(var(--mx, 0) * 1px), calc(var(--my, 0) * 1px));
}

.scroll-top.visible {
  opacity: 1;
  visibility: visible;
}

.scroll-top:hover {
  transform: translate(calc(var(--mx, 0) * 1px), calc(var(--my, 0) * 1px - 5px));
}

.scroll-top:active {
  transform: translate(calc(var(--mx, 0) * 1px), calc(var(--my, 0) * 1px - 2px)) scale(0.95);
}

/* ===== SCROLL REVEAL ===== */
.reveal {
  opacity: 1;
  transform: none;
  filter: blur(0);
  transition: opacity 0.6s ease, transform 0.6s ease, filter 0.6s ease;
}

.js .reveal {
  opacity: 0;
  transform: translateY(30px) scale(0.97);
  filter: blur(6px);
}

.js .reveal.is-visible {
  opacity: 1;
  transform: translateY(0) scale(1);
  filter: blur(0);
}

/* ===== REDUCED MOTION ===== */
@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
    transition-delay: 0ms !important;
    scroll-behavior: auto !important;
  }

  .clients-track,
  .testimonials-slider {
    animation: none !important;
  }

  .js .reveal {
    opacity: 1 !important;
    transform: none !important;
    filter: none !important;
  }
}
