/* ConectaCond – Site comercial v2 – Visual inovador
   Identidade: azul primário, acentos ciano/teal, fundos com profundidade */

:root {
  --color-primary: #0a6ebd;
  --color-primary-light: #3d9ae8;
  --color-primary-dark: #055a9e;
  --color-accent: #06b6d4;
  --color-accent-soft: rgba(6, 182, 212, 0.15);
  --color-dark: #0f172a;
  --color-dark-soft: #1e293b;
  --color-slate: #475569;
  --color-muted: #64748b;
  --color-gray-light: #e2e8f0;
  --color-bg: #ffffff;
  --color-bg-soft: #f8fafc;
  --color-bg-muted: #f1f5f9;
  --font-sans: 'Plus Jakarta Sans', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
  --font-display: 'Syne', var(--font-sans);
  --container: min(1140px, 100% - 2.5rem);
  --radius: 16px;
  --radius-lg: 24px;
  --shadow-sm: 0 2px 8px rgba(15, 23, 42, 0.06);
  --shadow: 0 8px 32px rgba(15, 23, 42, 0.08);
  --shadow-lg: 0 24px 56px rgba(15, 23, 42, 0.12);
  --shadow-glow: 0 0 60px rgba(10, 110, 189, 0.15);
  --transition: 0.25s cubic-bezier(0.4, 0, 0.2, 1);
  --transition-slow: 0.5s cubic-bezier(0.4, 0, 0.2, 1);
}

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

html {
  scroll-behavior: smooth;
}

body {
  font-family: var(--font-sans);
  font-size: 1rem;
  line-height: 1.65;
  color: var(--color-dark);
  background: var(--color-bg);
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
  position: relative;
}
body::before {
  content: '';
  position: fixed;
  inset: 0;
  background: url('../assets/background-logo.png?v=2') center center / cover no-repeat;
  opacity: 0.12;
  z-index: -1;
  pointer-events: none;
}

img {
  max-width: 100%;
  height: auto;
  display: block;
}

a {
  color: var(--color-primary);
  text-decoration: none;
  transition: color var(--transition);
}
a:hover {
  color: var(--color-primary-dark);
}

/* ----- Scroll reveal ----- */
.reveal {
  opacity: 0;
  transform: translateY(28px);
  transition: opacity 0.7s cubic-bezier(0.4, 0, 0.2, 1), transform 0.7s cubic-bezier(0.4, 0, 0.2, 1);
}
.reveal.revealed {
  opacity: 1;
  transform: translateY(0);
}
.feature-card.reveal { transition-delay: 0s; }
.feature-card.reveal.revealed:nth-child(1) { transition-delay: 0.05s; }
.feature-card.reveal.revealed:nth-child(2) { transition-delay: 0.1s; }
.feature-card.reveal.revealed:nth-child(3) { transition-delay: 0.15s; }
.feature-card.reveal.revealed:nth-child(4) { transition-delay: 0.2s; }
.feature-card.reveal.revealed:nth-child(5) { transition-delay: 0.25s; }
.feature-card.reveal.revealed:nth-child(6) { transition-delay: 0.3s; }

@media (prefers-reduced-motion: reduce) {
  .reveal { opacity: 1; transform: none; transition: none; }
  .scroll-section.scroll-past { opacity: 1; transform: none; }
}

/* ----- Header ----- */
.site-header {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 100;
  padding: 0.875rem 0;
  background: rgba(255, 255, 255, 0.82);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  border-bottom: 1px solid rgba(15, 23, 42, 0.06);
  transition: padding 0.35s ease, background 0.35s ease, box-shadow 0.35s ease;
}
.site-header.is-scrolled {
  background: rgba(255, 255, 255, 0.95);
  box-shadow: 0 4px 24px rgba(15, 23, 42, 0.06);
}

.site-header .wrap {
  max-width: var(--container);
  margin: 0 auto;
  padding: 0 1.25rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.logo {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 1.4rem;
  letter-spacing: -0.02em;
  color: var(--color-dark);
}
.logo img {
  height: 42px;
  width: auto;
  object-fit: contain;
}
.logo-text span:first-of-type { color: var(--color-primary); }
.logo-text span:last-of-type { color: var(--color-dark-soft); }

.nav-list {
  display: flex;
  align-items: center;
  gap: 2.25rem;
  list-style: none;
}
.nav-list a {
  color: var(--color-slate);
  font-weight: 500;
  font-size: 0.9375rem;
  position: relative;
}
.nav-list a::after {
  content: '';
  position: absolute;
  bottom: -4px;
  left: 0;
  width: 0;
  height: 2px;
  background: var(--color-primary);
  transition: width 0.3s ease;
}
.nav-list a:hover::after,
.nav-list a:focus-visible::after { width: 100%; }
.nav-list a:hover {
  color: var(--color-primary);
}

.menu-toggle {
  display: none;
  background: none;
  border: none;
  padding: 0.5rem;
  cursor: pointer;
  color: var(--color-dark);
}

@media (max-width: 768px) {
  .nav-list {
    position: fixed;
    top: 0;
    right: 0;
    width: min(300px, 85vw);
    height: 100vh;
    background: rgba(255, 255, 255, 0.96);
    backdrop-filter: blur(14px);
    flex-direction: column;
    padding: 5rem 1.5rem 2rem;
    gap: 0.25rem;
    box-shadow: -8px 0 40px rgba(0, 0, 0, 0.08);
    transform: translateX(100%);
    transition: transform var(--transition);
  }
  .nav-list.is-open { transform: translateX(0); }
  .nav-list a { font-size: 1.0625rem; padding: 0.75rem 0; }
  .menu-toggle { display: block; }
}

/* ----- Hero ----- */
.hero {
  position: relative;
  min-height: 100vh;
  display: flex;
  align-items: center;
  padding: 6rem 1rem 4rem;
  isolation: isolate;
}

.hero::before {
  content: '';
  position: absolute;
  inset: 0;
  background:
    radial-gradient(ellipse 80% 50% at 70% 20%, rgba(10, 110, 189, 0.12) 0%, transparent 55%),
    radial-gradient(ellipse 60% 40% at 20% 80%, rgba(6, 182, 212, 0.1) 0%, transparent 50%),
    radial-gradient(ellipse 50% 30% at 85% 60%, rgba(10, 110, 189, 0.08) 0%, transparent 45%);
  pointer-events: none;
  z-index: 0;
  animation: heroBgPulse 8s ease-in-out infinite;
}
@keyframes heroBgPulse {
  0%, 100% { opacity: 1; }
  50% { opacity: 0.85; }
}

.hero::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  height: 1px;
  background: linear-gradient(90deg, transparent, rgba(10, 110, 189, 0.2), transparent);
  opacity: 0.6;
  z-index: 0;
}

.hero .wrap {
  position: relative;
  z-index: 1;
  max-width: var(--container);
  margin: 0 auto;
  display: grid;
  grid-template-columns: 1fr 1.7fr;
  gap: 4rem;
  align-items: center;
}

.hero-content.reveal.revealed {
  animation: none;
}

.hero-content h1 {
  font-family: var(--font-display);
  font-size: clamp(2.5rem, 5vw, 3.5rem);
  font-weight: 700;
  line-height: 1.12;
  letter-spacing: -0.03em;
  color: var(--color-dark);
  margin-bottom: 1.25rem;
}

.hero-content h1 .highlight {
  background: linear-gradient(135deg, var(--color-primary) 0%, var(--color-accent) 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.hero-content p {
  font-size: 1.125rem;
  color: var(--color-muted);
  max-width: 420px;
  margin-bottom: 2rem;
  line-height: 1.7;
}

.hero-cta {
  display: flex;
  flex-wrap: wrap;
  gap: 1rem;
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0.9375rem 1.875rem;
  font-family: var(--font-sans);
  font-size: 1rem;
  font-weight: 600;
  border-radius: var(--radius);
  border: none;
  cursor: pointer;
  transition: transform 0.3s ease, box-shadow 0.3s ease, background 0.3s ease;
}

.btn:active { transform: scale(0.98); }

.btn-primary {
  background: linear-gradient(135deg, var(--color-primary) 0%, var(--color-primary-dark) 100%);
  color: #fff;
  box-shadow: 0 4px 20px rgba(10, 110, 189, 0.35);
}

.btn-primary:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 28px rgba(10, 110, 189, 0.45);
}

.btn-secondary {
  background: var(--color-dark);
  color: #fff;
}

.btn-secondary:hover {
  background: var(--color-dark-soft);
  transform: translateY(-2px);
}

/* Hero visual */
.hero-visual {
  display: flex;
  justify-content: center;
  align-items: center;
}

.hero-visual .logo-hero {
  width: 100%;
  min-width: 420px;
  max-width: 100%;
  height: auto;
  filter: drop-shadow(0 24px 48px rgba(10, 110, 189, 0.2));
  transition: transform 0.5s ease;
}
.hero-visual:hover .logo-hero {
  transform: translateY(-8px);
}

@keyframes heroFadeIn {
  from {
    opacity: 0;
    transform: translateY(24px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@keyframes logoFloat {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(-12px); }
}

@media (max-width: 768px) {
  .funcionalidades,
  .sobre,
  .cta-section {
    padding-bottom: 3rem;
  }
}

@media (max-width: 900px) {
  .hero .wrap {
    grid-template-columns: 1fr;
    text-align: center;
    gap: 3rem;
  }
  .hero-content p { margin-left: auto; margin-right: auto; }
  .hero-cta { justify-content: center; }
  .hero-visual { order: -1; }
  .hero-visual .logo-hero { max-width: 580px; }
}

/* ----- Seções sobrepostas ----- */
.scroll-sections {
  position: relative;
}

.scroll-section {
  position: relative;
  z-index: 1;
  transition: opacity 0.5s ease, transform 0.5s ease;
}

.scroll-section.scroll-past {
  opacity: 0.6;
  transform: translateY(-8px);
}

.scroll-section.scroll-visible {
  opacity: 1;
  transform: translateY(0);
}

/* ----- Section comum ----- */
section {
  padding: 4rem 1rem;
  max-width: 100%;
}

.funcionalidades,
.sobre,
.cta-section {
  padding-bottom: 4rem;
}

section .wrap {
  max-width: var(--container);
  margin: 0 auto;
}

.section-title {
  font-family: var(--font-display);
  font-size: clamp(1.875rem, 3.5vw, 2.5rem);
  font-weight: 700;
  letter-spacing: -0.02em;
  color: var(--color-dark);
  text-align: center;
  margin-bottom: 0.75rem;
}

.section-subtitle {
  text-align: center;
  color: var(--color-muted);
  font-size: 1.0625rem;
  max-width: 520px;
  margin: 0 auto 3.5rem;
  line-height: 1.65;
}

/* ----- Funcionalidades ----- */
.funcionalidades {
  background: var(--color-bg-soft);
  position: relative;
}

.funcionalidades::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 120px;
  background: linear-gradient(180deg, var(--color-bg) 0%, transparent 100%);
  pointer-events: none;
}

.funcionalidades .section-subtitle {
  margin-bottom: 2.5rem;
}

.features-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 1.5rem;
  position: relative;
  z-index: 1;
}

.feature-card {
  background: var(--color-bg);
  padding: 2rem;
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-sm);
  border: 1px solid rgba(15, 23, 42, 0.06);
  transition: transform 0.4s cubic-bezier(0.4, 0, 0.2, 1), box-shadow 0.4s ease, border-color 0.4s ease;
}

.feature-card:hover {
  transform: translateY(-8px);
  box-shadow: var(--shadow-lg);
  border-color: rgba(10, 110, 189, 0.2);
}
.feature-card .icon-wrap {
  width: 56px;
  height: 56px;
  border-radius: 14px;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 1.25rem;
  background: linear-gradient(135deg, var(--color-accent-soft) 0%, rgba(10, 110, 189, 0.08) 100%);
  color: var(--color-primary);
  transition: transform 0.35s ease, background 0.35s ease;
}
.feature-card:hover .icon-wrap {
  transform: scale(1.08);
}

.feature-card .icon-wrap svg {
  width: 28px;
  height: 28px;
}

.feature-card h3 {
  font-family: var(--font-display);
  font-size: 1.2rem;
  font-weight: 700;
  letter-spacing: -0.01em;
  color: var(--color-dark);
  margin-bottom: 0.5rem;
}

.feature-card p {
  font-size: 0.9375rem;
  color: var(--color-muted);
  line-height: 1.65;
}


/* ----- Sobre ----- */
.sobre {
  background: var(--color-bg);
}

.sobre .wrap {
  display: grid;
  grid-template-columns: 1fr 1.7fr;
  gap: 4rem;
  align-items: center;
}

.sobre-text h2 {
  font-family: var(--font-display);
  font-size: clamp(1.75rem, 2.5vw, 2.25rem);
  font-weight: 700;
  letter-spacing: -0.02em;
  color: var(--color-dark);
  margin-bottom: 1.25rem;
}

.sobre-text p {
  color: var(--color-muted);
  margin-bottom: 1.125rem;
  line-height: 1.7;
}

.sobre-visual {
  display: flex;
  justify-content: center;
  align-items: center;
}

.sobre-visual .logo-hero {
  width: 100%;
  min-width: 360px;
  max-width: 100%;
  height: auto;
  filter: drop-shadow(0 16px 40px rgba(10, 110, 189, 0.12));
  transition: transform 0.4s ease;
}
.sobre-visual:hover .logo-hero {
  transform: scale(1.03);
}

@media (max-width: 768px) {
  .sobre .wrap {
    grid-template-columns: 1fr;
    gap: 2.5rem;
  }
  .sobre-visual { order: -1; }
}

/* ----- CTA / Contato ----- */
.cta-section {
  position: relative;
  background: linear-gradient(135deg, var(--color-primary) 0%, var(--color-primary-dark) 50%, #034a7a 100%);
  color: #fff;
  text-align: center;
  padding: 5rem 1.5rem;
  overflow: hidden;
}

.cta-section::before {
  content: '';
  position: absolute;
  inset: 0;
  background-image: radial-gradient(circle at 20% 50%, rgba(255,255,255,0.06) 0%, transparent 45%),
                    radial-gradient(circle at 80% 80%, rgba(6, 182, 212, 0.15) 0%, transparent 40%);
  pointer-events: none;
}

.cta-section .wrap {
  position: relative;
  z-index: 1;
}

.cta-section h2 {
  font-family: var(--font-display);
  font-size: clamp(1.75rem, 3vw, 2.25rem);
  font-weight: 700;
  letter-spacing: -0.02em;
  margin-bottom: 0.75rem;
}

.cta-section p {
  opacity: 0.95;
  font-size: 1.0625rem;
  margin-bottom: 1.75rem;
}

.cta-section .btn {
  background: #fff;
  color: var(--color-primary);
}

.cta-section .btn {
  transition: transform 0.3s ease, background 0.3s ease;
}
.cta-section .btn:hover {
  background: var(--color-bg-muted);
  transform: translateY(-3px);
}

/* ----- Footer ----- */
.site-footer {
  background: var(--color-dark);
  color: var(--color-gray-light);
  padding: 3rem 1rem;
}

.site-footer .wrap {
  max-width: var(--container);
  margin: 0 auto;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 1.25rem;
}

.footer-logo {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 1.125rem;
  letter-spacing: -0.02em;
}

.footer-logo span { color: var(--color-primary-light); }

.footer-links {
  display: flex;
  gap: 2rem;
  list-style: none;
}

.footer-links a {
  color: rgba(255, 255, 255, 0.75);
  font-weight: 500;
  font-size: 0.9375rem;
  transition: color var(--transition);
}

.footer-links a:hover {
  color: #fff;
}

/* ----- Página Privacidade ----- */
.page-inner {
  max-width: 720px;
  margin: 0 auto;
  padding: 6rem 1rem 4rem;
}

.page-inner h1 {
  font-family: var(--font-display);
  font-size: 2rem;
  font-weight: 700;
  letter-spacing: -0.02em;
  color: var(--color-dark);
  margin-bottom: 0.5rem;
}

.page-inner .updated {
  color: var(--color-muted);
  font-size: 0.9375rem;
  margin-bottom: 2rem;
}

.page-inner h2 {
  font-size: 1.25rem;
  font-weight: 700;
  color: var(--color-dark);
  margin-top: 2rem;
  margin-bottom: 0.75rem;
}

.page-inner h3 {
  font-size: 1.0625rem;
  font-weight: 600;
  color: var(--color-dark-soft);
  margin-top: 1.25rem;
  margin-bottom: 0.5rem;
}

.page-inner p,
.page-inner li {
  color: var(--color-muted);
  margin-bottom: 0.75rem;
}

.page-inner ul {
  padding-left: 1.5rem;
  margin-bottom: 1rem;
}

.page-inner hr {
  border: none;
  border-top: 1px solid var(--color-gray-light);
  margin: 2rem 0;
}

.page-inner a {
  color: var(--color-primary);
}
