/* ===== Base ===== */

* { box-sizing: border-box; }

html, body {
  margin: 0; padding: 0;
  height: 100%;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

body {
  font-feature-settings: "cv11", "ss01", "ss03";
  background-image:
    radial-gradient(ellipse at top left,    rgba(255,91,110,0.07) 0%, transparent 50%),
    radial-gradient(ellipse at bottom right, rgba(74,141,247,0.06) 0%, transparent 50%);
}

/* Grain texture */
body::before {
  content: "";
  position: fixed;
  inset: 0;
  pointer-events: none;
  z-index: 0;
  background-image:
    radial-gradient(rgba(255,255,255,0.012) 1px, transparent 1px);
  background-size: 3px 3px;
}

/* Brand */
.brand-mark {
  width: 30px; height: 30px;
  border-radius: 7px;
  background: linear-gradient(135deg, #ff5b6e, #ffb648);
  display: flex; align-items: center; justify-content: center;
  color: #070912;
  font-family: "Space Grotesk", sans-serif;
  font-weight: 700;
  font-size: 1rem;
  box-shadow: 0 0 24px rgba(255,91,110,0.3);
}

/* Footer nav buttons */
.nav-btn {
  padding: 0.5rem 0.9rem;
  border-radius: 8px;
  border: 1px solid rgba(255,255,255,0.08);
  background: rgba(15,19,32,0.6);
  color: #9aa0b4;
  transition: all 0.2s ease;
  font-size: 0.72rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  font-family: "JetBrains Mono", monospace;
  backdrop-filter: blur(8px);
}
.nav-btn:hover { background: rgba(38,42,62,0.8); color: #e8e9f0; border-color: #ff5b6e; }
.nav-btn:disabled { opacity: 0.25; cursor: not-allowed; }

/* Side dots */
.dot-nav {
  width: 6px; height: 6px;
  border-radius: 999px;
  background: rgba(255,255,255,0.15);
  cursor: pointer;
  transition: all 0.25s ease;
  border: 0;
  padding: 0;
}
.dot-nav:hover { background: #9aa0b4; }
.dot-nav.active {
  background: #ff5b6e;
  width: 6px;
  height: 24px;
  border-radius: 3px;
}

/* Scrollbar */
::-webkit-scrollbar { width: 6px; height: 6px; }
::-webkit-scrollbar-track { background: transparent; }
::-webkit-scrollbar-thumb { background: rgba(255,255,255,0.08); border-radius: 6px; }

/* Animations utilitárias */
@keyframes fadeInUp {
  from { opacity: 0; transform: translateY(24px); }
  to   { opacity: 1; transform: translateY(0); }
}
@keyframes slideInRight {
  from { opacity: 0; transform: translateX(-12px); }
  to   { opacity: 1; transform: translateX(0); }
}

.slide.active .anim > * {
  animation: fadeInUp 0.65s cubic-bezier(0.16, 1, 0.3, 1) both;
}
.slide.active .anim > *:nth-child(1) { animation-delay: 0.05s; }
.slide.active .anim > *:nth-child(2) { animation-delay: 0.12s; }
.slide.active .anim > *:nth-child(3) { animation-delay: 0.19s; }
.slide.active .anim > *:nth-child(4) { animation-delay: 0.26s; }
.slide.active .anim > *:nth-child(5) { animation-delay: 0.33s; }
.slide.active .anim > *:nth-child(6) { animation-delay: 0.40s; }
.slide.active .anim > *:nth-child(7) { animation-delay: 0.47s; }
.slide.active .anim > *:nth-child(8) { animation-delay: 0.54s; }

/* ===== Mobile (≤ 640px) ===== */
@media (max-width: 640px) {
  /* Brand: encolhe e mostra só o S e o "Similab" */
  header.fixed.left-0 {
    padding: 0.85rem 1rem !important;
    gap: 0.6rem !important;
  }
  header.fixed.left-0 > div:last-child em { display: none; }
  header.fixed.left-0 > div:last-child strong { font-size: 0.85rem; }
  .brand-mark { width: 26px; height: 26px; font-size: 0.85rem; }

  /* Counter no canto direito */
  header.fixed.right-0 {
    padding: 0.85rem 1rem !important;
  }

  /* Dots laterais somem em mobile — overflow visual */
  nav#dots { display: none !important; }

  /* Footer compacto */
  footer.fixed {
    padding: 0.7rem 0.85rem !important;
    gap: 0.5rem;
  }
  .nav-btn {
    padding: 0.4rem 0.65rem;
    font-size: 0.65rem;
    letter-spacing: 0.06em;
  }
  #slide-title { font-size: 0.6rem !important; letter-spacing: 0.15em !important; }
}

@media (max-width: 420px) {
  /* Esconde título central do footer em telas muito estreitas */
  #slide-title { display: none; }
}
