/* PestanaLabs — design tokens */
:root {
  --color-bg: #0c0f1d;
  --color-bg-alt: #0f1320;
  --color-surface: #151a2e;
  --color-border: #1e2540;
  --color-text: #ffffff;
  --color-text-muted: #a8b4c4;
  --color-accent: #0f4c75;
  --color-accent-hover: #1a6ba3;
  --color-accent-muted: rgba(15, 76, 117, 0.25);
  --font-sans: 'Inter', system-ui, -apple-system, sans-serif;
  --radius: 8px;
  --radius-lg: 12px;
  --transition: 0.2s ease;
}

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

html {
  scroll-behavior: smooth;
  color-scheme: dark;
}

body {
  margin: 0;
  font-family: var(--font-sans);
  font-size: 16px;
  line-height: 1.6;
  color: #ffffff;
  background: var(--color-bg);
  -webkit-tap-highlight-color: rgba(255, 255, 255, 0.08);
}

/* Skip link: totalmente fora da tela até :focus-visible (evita “barrinha” branca no canto) */
.skip-link {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip-path: inset(50%);
  white-space: nowrap;
  border: 0;
  z-index: 200;
}

.skip-link:focus-visible {
  position: fixed;
  left: 1rem;
  top: 1rem;
  width: auto;
  height: auto;
  padding: 0.5rem 0.75rem;
  margin: 0;
  overflow: visible;
  clip-path: none;
  white-space: normal;
  background: var(--color-surface);
  color: var(--color-text);
  border-radius: var(--radius);
  text-decoration: none;
  outline: 2px solid #c084fc;
  outline-offset: 2px;
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.35);
}

.container {
  width: 100%;
  max-width: 1140px;
  margin: 0 auto;
  padding: 0 1.5rem;
}

/* Header - integrado no topo, estiliza após rolagem */
.header {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 100;
  background: transparent;
  backdrop-filter: none;
  border-bottom: none;
  transition: background 0.3s ease, backdrop-filter 0.3s ease, border-color 0.3s ease;
}

.header.header-scrolled {
  background: rgba(10, 15, 20, 0.9);
  backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--color-border);
}

.nav {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0.5rem 1.5rem;
  min-height: 64px;
}

.logo {
  color: #ffffff;
  display: flex;
  align-items: center;
}

.header .logo .logo-svg {
  height: 48px;
  width: auto;
}

.nav-links {
  display: flex;
  list-style: none;
  margin: 0;
  padding: 0;
  gap: 2rem;
}

.nav-links a {
  color: #ffffff !important;
  text-decoration: none;
  font-weight: 500;
  transition: color var(--transition);
}

.nav-links a:hover {
  color: var(--color-accent);
}

.nav-toggle {
  display: none;
  flex-direction: column;
  gap: 6px;
  background: none;
  border: none;
  cursor: pointer;
  padding: 8px;
}

.nav-toggle span {
  width: 24px;
  height: 2px;
  background: var(--color-text);
  border-radius: 1px;
}

/* Hero - orbs que seguem o mouse */
.hero {
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  padding: 8rem 0 2rem;
  position: relative;
  overflow: hidden;
  background: var(--color-bg);
  perspective: 1000px;
}

.hero-content {
  position: relative;
  z-index: 2;
  flex: 1;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  width: 100%;
}

.hero-top {
  flex: 1;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  text-align: center;
  padding: 2rem 1rem;
}

.hero-bottom {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  padding: 1rem 1rem 1.5rem;
}

.hero-orb {
  position: absolute;
  border-radius: 50%;
  pointer-events: none;
  will-change: transform;
  transform-style: preserve-3d;
  transition: transform 0.12s ease-out;
}

.hero-orb-purple {
  width: 800px;
  height: 800px;
  left: 50%;
  top: 50%;
  margin-left: -460px;
  margin-top: -400px;
  background: radial-gradient(
    circle at center,
    rgba(124, 58, 237, 0.5) 0%,
    rgba(109, 40, 217, 0.28) 35%,
    rgba(88, 28, 135, 0.1) 55%,
    transparent 75%
  );
}

.hero-orb-blue {
  width: 700px;
  height: 700px;
  left: 50%;
  top: 50%;
  margin-left: -240px;
  margin-top: -350px;
  background: radial-gradient(
    circle at center,
    rgba(216, 180, 254, 0.45) 0%,
    rgba(192, 132, 252, 0.25) 38%,
    rgba(167, 139, 250, 0.08) 60%,
    transparent 78%
  );
}

.hero-title {
  font-family: 'Epilogue', sans-serif;
  font-size: clamp(3.5rem, 9vw, 7rem);
  font-weight: 800;
  line-height: 1.05;
  margin: 0 0 2rem;
  color: #ffffff !important;
  letter-spacing: -0.04em;
  text-align: center;
  text-wrap: balance;
}

.hero-subtitle {
  font-size: 1.125rem;
  color: #b8c4d4 !important;
  margin: 0 0 1.5rem;
  text-align: center;
  line-height: 1.6;
}

.hero-services {
  font-size: 0.9375rem;
  color: rgba(184, 196, 212, 0.85) !important;
  margin: 0 0 1.5rem;
  text-align: center;
  line-height: 1.7;
}

/* Buttons */
.btn {
  display: inline-block;
  padding: 0.875rem 1.75rem;
  font-family: inherit;
  font-size: 1rem;
  font-weight: 600;
  text-decoration: none;
  border-radius: var(--radius);
  cursor: pointer;
  transition: background var(--transition), color var(--transition), border-color var(--transition);
  border: 2px solid transparent;
  touch-action: manipulation;
}

a:focus-visible,
button:focus-visible,
input:focus-visible,
textarea:focus-visible {
  outline: 2px solid #c084fc;
  outline-offset: 2px;
}

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

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

/* CTA hero - estilo Skuad (claro em fundo escuro) */
.btn-hero {
  background: #ffffff;
  color: #0c0f1d;
}

.btn-hero:hover {
  background: #f0f0f0;
  color: #0c0f1d;
}

/* Indicador de scroll - maior com glow */
.hero-scroll {
  display: inline-flex;
  color: rgba(216, 180, 254, 1);
  animation: bounce 2s infinite;
  text-decoration: none;
}

.hero-scroll svg {
  width: 96px;
  height: 96px;
  filter: drop-shadow(0 0 12px rgba(167, 139, 250, 0.8))
          drop-shadow(0 0 24px rgba(192, 132, 252, 0.5))
          drop-shadow(0 0 40px rgba(167, 139, 250, 0.3));
}

@keyframes bounce {
  0%, 20%, 50%, 80%, 100% { transform: translateY(0); }
  40% { transform: translateY(8px); }
  60% { transform: translateY(4px); }
}

.btn-outline {
  background: transparent;
  color: var(--color-accent);
  border-color: var(--color-accent);
}

.btn-outline:hover {
  background: var(--color-accent-muted);
}

/* Sections */
.section {
  padding: 5rem 0;
  border-top: 1px solid var(--color-border);
  scroll-margin-top: 80px;
}

.section-title {
  font-size: clamp(1.75rem, 3vw, 2.25rem);
  font-weight: 700;
  margin: 0 0 0.5rem;
}

.section-intro {
  color: var(--color-text-muted);
  font-size: 1.125rem;
  margin: 0 0 3rem;
}

/* Services */
.services-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 1.5rem;
  margin-top: 2rem;
}

.service-card {
  background: var(--color-surface);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-lg);
  padding: 2rem;
  transition: border-color var(--transition), transform var(--transition);
}

.service-card:hover {
  border-color: var(--color-accent);
  transform: translateY(-2px);
}

.service-icon {
  font-size: 2rem;
  margin-bottom: 1rem;
}

.service-card h3 {
  font-size: 1.125rem;
  font-weight: 600;
  margin: 0 0 0.5rem;
}

.service-card p {
  color: var(--color-text-muted);
  font-size: 0.9375rem;
  margin: 0;
}

/* About */
.about-lead {
  font-size: 1.25rem;
  margin: 0 0 1rem;
}

.about-text p {
  color: var(--color-text-muted);
  margin: 0 0 1rem;
}

.about-text .btn {
  margin-top: 0.5rem;
}

/* Cases */
.cases-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: 1.5rem;
  margin-top: 2rem;
}

.case-card {
  background: var(--color-surface);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-lg);
  padding: 2rem;
  transition: border-color var(--transition);
}

.case-card:hover {
  border-color: var(--color-accent);
}

.case-metrics {
  display: flex;
  flex-direction: column;
  gap: 0.25rem;
  margin-bottom: 1rem;
}

.metric-value {
  font-size: 1.5rem;
  font-weight: 700;
  color: var(--color-accent);
}

.metric-label {
  font-size: 0.875rem;
  color: var(--color-text-muted);
}

.case-desc {
  font-size: 0.9375rem;
  color: var(--color-text-muted);
  margin: 0;
}

/* Experiência — blocos com carrossel */
.experience .section-intro {
  margin-bottom: 2rem;
}

.experience-block {
  margin-top: 3rem;
}

.experience-block:first-of-type {
  margin-top: 0;
}

.experience-block--last {
  margin-bottom: 0;
}

.experience-disclaimer {
  font-size: 0.625rem;
  font-style: italic;
  color: var(--color-text-muted);
  margin: 2.25rem 0 0;
  line-height: 1.45;
  opacity: 0.78;
}

.experience-block-title {
  font-size: clamp(1.125rem, 2vw, 1.35rem);
  font-weight: 600;
  margin: 0 0 1rem;
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

.experience-block-emoji {
  font-style: normal;
  line-height: 1;
}

.experience-block-text {
  color: var(--color-text-muted);
  margin: 0 0 1rem;
  font-size: 1rem;
}

.experience-block-text:last-of-type {
  margin-bottom: 0;
}

.experience-block .carousel {
  margin-top: 1.25rem;
}

.carousel--marquee {
  position: relative;
  display: block;
  width: 100%;
  margin-left: 0;
  margin-right: 0;
  outline: none;
}

.carousel-viewport {
  overflow-x: auto;
  overflow-y: hidden;
  scroll-behavior: auto;
  -webkit-overflow-scrolling: touch;
  scrollbar-width: none;
  -ms-overflow-style: none;
  border-radius: var(--radius-lg);
  outline: none;
  direction: ltr;
}

.carousel-viewport::-webkit-scrollbar {
  display: none;
}

.carousel-track {
  display: flex;
  gap: 0.75rem;
  list-style: none;
  margin: 0;
  padding: 0.2rem 0 0.35rem;
  justify-content: flex-start;
  align-items: stretch;
  width: max-content;
  min-height: 1px;
}

.carousel-slide {
  flex: 0 0 min(200px, 78vw);
}

.partner-card {
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  text-align: center;
  min-height: 86px;
  height: 100%;
  padding: 0.75rem 0.85rem;
  background: var(--color-surface);
  border: 1px solid var(--color-border);
  border-radius: var(--radius);
  text-decoration: none;
  color: var(--color-text);
  transition: border-color var(--transition), transform var(--transition);
}

a.partner-card:hover {
  border-color: var(--color-accent);
  transform: translateY(-2px);
}

.partner-card:focus-visible {
  outline: 2px solid #c084fc;
  outline-offset: 2px;
}

.partner-name {
  font-weight: 600;
  font-size: 0.9375rem;
  line-height: 1.35;
}

.partner-meta {
  font-size: 0.75rem;
  color: var(--color-text-muted);
  margin-top: 0.3rem;
  line-height: 1.35;
}

/* Gradientes nas bordas + setas decorativas (sem caixa), glow estilo hero-scroll */
.carousel-fade {
  position: absolute;
  top: 0;
  bottom: 0;
  width: min(32%, 160px);
  z-index: 2;
  pointer-events: none;
}

.carousel-fade--left {
  left: 0;
  background: linear-gradient(90deg, var(--color-bg) 0%, rgba(12, 15, 29, 0) 100%);
}

.carousel-fade--right {
  right: 0;
  background: linear-gradient(270deg, var(--color-bg) 0%, rgba(12, 15, 29, 0) 100%);
}

.carousel-arrow {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  display: flex;
  align-items: center;
  justify-content: center;
  pointer-events: none;
}

.carousel-fade--left .carousel-arrow {
  left: 18%;
}

.carousel-fade--right .carousel-arrow {
  right: 18%;
}

.carousel-arrow-svg {
  width: 44px;
  height: 44px;
  color: rgba(216, 180, 254, 0.92);
  filter: drop-shadow(0 0 12px rgba(167, 139, 250, 0.85))
    drop-shadow(0 0 24px rgba(192, 132, 252, 0.45))
    drop-shadow(0 0 40px rgba(167, 139, 250, 0.25));
  -webkit-mask-image: linear-gradient(90deg, transparent 0%, rgba(0, 0, 0, 0.35) 35%, #000 70%);
  mask-image: linear-gradient(90deg, transparent 0%, rgba(0, 0, 0, 0.35) 35%, #000 70%);
}

.carousel-fade--right .carousel-arrow-svg {
  -webkit-mask-image: linear-gradient(270deg, transparent 0%, rgba(0, 0, 0, 0.35) 35%, #000 70%);
  mask-image: linear-gradient(270deg, transparent 0%, rgba(0, 0, 0, 0.35) 35%, #000 70%);
}

@media (max-width: 520px) {
  .carousel-slide {
    flex: 0 0 min(180px, 82vw);
  }

  .carousel-arrow-svg {
    width: 36px;
    height: 36px;
  }

  .carousel-fade {
    width: min(38%, 120px);
  }
}

/* Footer */
.footer {
  padding: 4rem 0 2rem;
  background: var(--color-bg-alt);
}

.footer-content {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  width: 100%;
  max-width: 100%;
}

.footer-tagline {
  color: var(--color-text-muted);
  font-size: 0.9375rem;
  margin: 0 auto 1.5rem;
}

.footer-links {
  margin-bottom: 1.5rem;
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  align-items: center;
  gap: 1rem 1.5rem;
}

.footer-links a {
  color: var(--color-accent);
  text-decoration: none;
  font-weight: 500;
}

.footer-links a:hover {
  text-decoration: underline;
}

.footer-copy {
  font-size: 0.8125rem;
  color: var(--color-text-muted);
  opacity: 0.7;
  margin: 0;
}

/* Responsive */
@media (max-width: 768px) {
  .nav-links {
    position: fixed;
    top: 64px;
    left: 0;
    right: 0;
    flex-direction: column;
    background: var(--color-bg-alt);
    padding: 2rem;
    gap: 1rem;
    border-bottom: 1px solid var(--color-border);
    transform: translateY(-100%);
    opacity: 0;
    pointer-events: none;
    transition: transform var(--transition), opacity var(--transition);
  }

  .nav-links.is-open {
    transform: translateY(0);
    opacity: 1;
    pointer-events: auto;
  }

  .nav-toggle {
    display: flex;
  }

  .form-row {
    grid-template-columns: 1fr;
  }
}

@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }

  .carousel-viewport {
    scroll-behavior: auto;
  }

  .hero-orb,
  .hero-scroll {
    transition: none;
    animation: none;
  }

  .btn-submit .btn-spinner {
    animation: none;
    border-top-color: currentColor;
    opacity: 0.6;
  }
}
