/* ============================================
   Pages — Estilos de página específicos (dark)
   ============================================ */

/* === Hero === */
.hero {
  position: relative;
  overflow: hidden;
  padding: calc(var(--header-h) + var(--sp-16)) 0 var(--sp-16);
  min-height: 90vh;
  display: flex;
  align-items: center;
  background:
    linear-gradient(180deg, rgba(7, 11, 24, 0.82) 0%, rgba(7, 11, 24, 0.55) 30%, rgba(7, 11, 24, 0.65) 70%, var(--c-bg) 100%),
    var(--c-bg) url('../img/hero-bg.jpg') center / cover no-repeat;
}

.hero__bg { position: absolute; inset: 0; pointer-events: none; z-index: 0; overflow: hidden; }

.hero__shape { position: absolute; border-radius: 50%; filter: blur(80px); opacity: 0.5; }

.hero__shape--1 {
  top: -15%;
  right: -5%;
  width: 480px;
  height: 480px;
  background: radial-gradient(circle, rgba(124, 77, 255, 0.5) 0%, transparent 70%);
  animation: float 14s ease-in-out infinite;
}

.hero__shape--2 {
  bottom: -10%;
  left: -8%;
  width: 400px;
  height: 400px;
  background: radial-gradient(circle, rgba(34, 211, 238, 0.4) 0%, transparent 70%);
  animation: float 14s ease-in-out infinite;
  animation-delay: -4s;
}

.hero__shape--3 {
  top: 40%;
  left: 45%;
  width: 300px;
  height: 300px;
  background: radial-gradient(circle, rgba(59, 130, 246, 0.4) 0%, transparent 70%);
  animation: float 14s ease-in-out infinite;
  animation-delay: -8s;
}

@keyframes float {
  0%, 100% { transform: translateY(0) scale(1); }
  33% { transform: translateY(-30px) scale(1.05); }
  66% { transform: translateY(20px) scale(0.95); }
}

.hero__inner {
  display: grid;
  grid-template-columns: 1fr;
  gap: var(--sp-12);
  align-items: center;
  position: relative;
  z-index: 1;
  width: 100%;
}

.hero__content { max-width: 720px; text-align: center; margin-inline: auto; }

.hero__tag {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.375rem 0.875rem;
  background: rgba(34, 211, 238, 0.08);
  border: 1px solid rgba(34, 211, 238, 0.25);
  color: var(--c-accent-500);
  font-size: var(--fs-xs);
  font-weight: var(--fw-bold);
  border-radius: var(--radius-full);
  margin-bottom: var(--sp-5);
  letter-spacing: 0.14em;
  text-transform: uppercase;
}

.hero__title {
  font-size: clamp(2rem, 4vw, 3.25rem);
  font-weight: var(--fw-extrabold);
  line-height: var(--lh-tight);
  letter-spacing: var(--ls-tight);
  color: var(--c-text);
  margin-bottom: var(--sp-5);
}

.hero__title span { background: var(--grad-text); -webkit-background-clip: text; background-clip: text; color: transparent; }

.hero__subtitle {
  font-size: var(--fs-lg);
  color: var(--c-text-secondary);
  line-height: var(--lh-relaxed);
  margin-bottom: var(--sp-6);
}

.hero__diffs {
  display: flex;
  flex-direction: column;
  gap: var(--sp-3);
  margin-bottom: var(--sp-8);
  padding: 0;
  max-width: 480px;
  margin-inline: auto;
}

.hero__diffs li {
  display: flex;
  align-items: center;
  gap: var(--sp-3);
  font-size: var(--fs-sm);
  font-weight: var(--fw-medium);
  color: var(--c-text);
  line-height: var(--lh-snug);
}

.hero__diffs svg { flex-shrink: 0; width: 20px; height: 20px; color: var(--c-success); }

.hero__actions {
  display: flex;
  gap: var(--sp-4);
  flex-wrap: wrap;
  margin-bottom: var(--sp-10);
  justify-content: center;
}

/* === Portal Demo === */
.portal-demo { background: var(--c-bg-alt); }

.portal-demo__filters {
  display: flex;
  flex-wrap: wrap;
  gap: var(--sp-2);
  justify-content: center;
  margin-bottom: var(--sp-8);
}

.portal-demo__filter {
  padding: var(--sp-2) var(--sp-5);
  background: var(--c-bg-glass);
  border: 1px solid var(--c-border);
  border-radius: var(--radius-full);
  font-size: var(--fs-sm);
  font-weight: var(--fw-medium);
  color: var(--c-text-secondary);
  cursor: pointer;
  transition: all var(--t-fast);
}

.portal-demo__filter:hover,
.portal-demo__filter.active {
  background: var(--grad-brand);
  color: #fff;
  border-color: transparent;
  box-shadow: var(--glow-violet);
}

.portal-demo__grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(260px, 1fr));
  gap: var(--sp-4);
}

.portal-demo__card {
  display: flex;
  align-items: center;
  gap: var(--sp-4);
  padding: var(--sp-4) var(--sp-5);
  background: var(--c-bg-glass);
  border: 1px solid var(--c-border);
  border-radius: var(--radius-lg);
  transition: all var(--t-base);
  cursor: pointer;
  text-decoration: none;
  color: var(--c-text);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
}

.portal-demo__card:hover {
  border-color: rgba(124, 77, 255, 0.4);
  box-shadow: var(--glow-violet), var(--shadow-md);
  transform: translateY(-2px);
  color: var(--c-text);
}

.portal-demo__card-icon {
  width: 44px;
  height: 44px;
  min-width: 44px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: var(--grad-brand);
  border-radius: var(--radius-md);
  color: #fff;
  box-shadow: var(--glow-violet);
}

.portal-demo__card-title { font-size: var(--fs-sm); font-weight: var(--fw-semibold); color: var(--c-text); line-height: var(--lh-snug); }
.portal-demo__card-tag { font-size: var(--fs-2xs); color: var(--c-text-muted); margin-top: 2px; }

/* === CTA Section === */
.cta-section { position: relative; overflow: hidden; }

.cta-section__inner {
  text-align: center;
  position: relative;
  z-index: 1;
  max-width: 700px;
  margin: 0 auto;
}

.cta-section h2 {
  font-family: var(--ff-display);
  font-size: clamp(1.5rem, 3vw, 2.25rem);
  font-weight: var(--fw-extrabold);
  color: #fff;
  margin-bottom: var(--sp-4);
}

.cta-section p {
  font-size: var(--fs-lg);
  color: rgba(255, 255, 255, 0.75);
  margin-bottom: var(--sp-8);
  line-height: var(--lh-relaxed);
}

.cta-section__shapes { position: absolute; inset: 0; pointer-events: none; }
.cta-section__shape { position: absolute; border-radius: 50%; filter: blur(60px); opacity: 0.5; }

.cta-section__shape--1 {
  width: 400px; height: 400px;
  background: radial-gradient(circle, rgba(124, 77, 255, 0.5) 0%, transparent 60%);
  top: -100px; right: -100px;
}

.cta-section__shape--2 {
  width: 300px; height: 300px;
  background: radial-gradient(circle, rgba(34, 211, 238, 0.4) 0%, transparent 60%);
  bottom: -80px; left: -80px;
}

/* === Contact Section === */
.contact-section__grid {
  display: grid;
  grid-template-columns: 1fr 1.2fr;
  gap: var(--sp-12);
  align-items: flex-start;
}

.contact-section__info h2 { font-size: var(--fs-3xl); margin-bottom: var(--sp-4); }

.contact-section__desc {
  font-size: var(--fs-lg);
  color: var(--c-text-muted);
  margin-bottom: var(--sp-8);
  line-height: var(--lh-relaxed);
}

.contact-section__details { display: flex; flex-direction: column; gap: var(--sp-4); }

.contact-section__detail {
  display: flex;
  align-items: center;
  gap: var(--sp-3);
  font-size: var(--fs-sm);
  color: var(--c-text-secondary);
}

.contact-section__detail svg { flex-shrink: 0; color: var(--c-accent-500); }

.contact-section__form {
  background: var(--c-bg-glass);
  border: 1px solid var(--c-border);
  border-radius: var(--radius-xl);
  padding: var(--sp-8);
  box-shadow: var(--shadow-sm);
  backdrop-filter: blur(18px);
  -webkit-backdrop-filter: blur(18px);
}

@media (max-width: 768px) {
  .contact-section__grid { grid-template-columns: 1fr; gap: var(--sp-8); }
}

/* === Page Header (internas) === */
.page-header {
  padding: calc(var(--header-h) + var(--sp-12)) 0 var(--sp-12);
  background: linear-gradient(135deg, #0a0f1f 0%, #070b18 100%);
  color: #fff;
  position: relative;
  overflow: hidden;
}

.page-header::before {
  content: '';
  position: absolute;
  inset: 0;
  background:
    radial-gradient(ellipse 60% 50% at 20% 20%, rgba(124, 77, 255, 0.15), transparent 60%),
    radial-gradient(ellipse 50% 45% at 80% 30%, rgba(59, 130, 246, 0.12), transparent 60%);
  pointer-events: none;
}

.page-header__inner { max-width: 720px; position: relative; z-index: 1; }

.page-header h1 { color: #fff; margin-bottom: var(--sp-4); }

.page-header p {
  font-size: var(--fs-lg);
  color: rgba(255, 255, 255, 0.7);
  line-height: var(--lh-relaxed);
}

.page-header .breadcrumb { margin-bottom: var(--sp-4); }
.page-header .breadcrumb__item,
.page-header .breadcrumb__item a { color: rgba(255, 255, 255, 0.5); }
.page-header .breadcrumb__item[aria-current="page"] { color: rgba(255, 255, 255, 0.9); }
.page-header .breadcrumb__separator { color: rgba(255, 255, 255, 0.3); }

/* === Content Prose === */
.prose h2 { font-size: var(--fs-2xl); margin-top: var(--sp-10); margin-bottom: var(--sp-4); }
.prose h3 { font-size: var(--fs-xl); margin-top: var(--sp-8); margin-bottom: var(--sp-3); }

.prose p {
  font-size: var(--fs-base);
  line-height: var(--lh-relaxed);
  margin-bottom: var(--sp-4);
  color: var(--c-text-secondary);
}

.prose ul, .prose ol { margin-bottom: var(--sp-4); padding-left: var(--sp-6); }
.prose ul { list-style: disc; }
.prose ol { list-style: decimal; }
.prose li { margin-bottom: var(--sp-2); color: var(--c-text-secondary); line-height: var(--lh-normal); }

.prose blockquote {
  border-left: 4px solid var(--c-primary-500);
  padding: var(--sp-4) var(--sp-6);
  margin: var(--sp-6) 0;
  background: var(--c-bg-glass);
  border-radius: 0 var(--radius-md) var(--radius-md) 0;
}

.prose blockquote p { font-style: italic; color: var(--c-text); margin-bottom: 0; }

/* === Two Column Layout === */
.two-col {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: var(--sp-12);
  align-items: center;
}

@media (max-width: 768px) {
  .two-col { grid-template-columns: 1fr; }
}

/* === CLIENTES (carrossel) === */
.clients-carousel {
  position: relative;
  overflow: hidden;
  padding-block: var(--sp-4);
  mask-image: linear-gradient(90deg, transparent, #000 12%, #000 88%, transparent);
  -webkit-mask-image: linear-gradient(90deg, transparent, #000 12%, #000 88%, transparent);
}

.section--clients-sticky {
  position: fixed;
  bottom: 0;
  left: 0;
  width: 100%;
  z-index: 10;
  padding-block: 0;
  background: linear-gradient(180deg, rgba(6, 10, 20, 0.95) 0%, #060a14 100%);
  border-top: 1px solid rgba(255, 255, 255, 0.06);
}

.clients-carousel__title {
  text-align: center;
  margin: 0 0 var(--sp-2);
  font-size: var(--fs-md);
  font-weight: 400;
  color: var(--c-text);
  letter-spacing: 0.02em;
  margin-top: 9px;
}

.clients-carousel__track {
  display: flex;
  align-items: center;
  width: max-content;
  animation: marquee 40s linear infinite;
}

.clients-carousel__track:hover,
.clients-carousel:focus-within {
  animation-play-state: paused;
}

.client-logo {
  display: flex;
  align-items: center;
  justify-content: center;
  margin-inline: var(--sp-3);
  padding: 0.5rem 1rem;
  border: 2px solid rgba(255, 255, 255, 0.08);
  border-radius: var(--radius-md);
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.28);
  opacity: 0.92;
  transition: opacity var(--t-fast), border-color var(--t-fast), transform var(--t-fast), box-shadow var(--t-fast);
}

.client-logo img {
  display: block;
  width: 120px;
  height: auto;
  object-fit: contain;
}

.client-logo:hover {
  opacity: 1;
  border-color: rgba(124, 77, 255, 0.4);
}

@media (prefers-reduced-motion: reduce) {
  .clients-carousel__track {
    animation: none;
    transform: none;
  }
  .clients-carousel {
    overflow-x: auto;
    scrollbar-width: thin;
  }
}

@keyframes marquee {
  from { transform: translateX(0); }
  to { transform: translateX(-50%); }
}