/* ============================================================
   SWG Sistemas — Landing Page
   ============================================================ */

:root {
  --bg: #050b18;
  --bg-alt: #0a1428;
  --bg-card: #0d1830;
  --border: rgba(122, 168, 255, 0.16);
  --border-strong: rgba(122, 168, 255, 0.35);
  --text: #eaf0ff;
  --text-muted: #9fb0d0;
  --text-dim: #6b7a9c;
  --blue: #3b82f6;
  --blue-light: #60a5fa;
  --cyan: #38bdf8;
  --gradient: linear-gradient(135deg, #2f6bff 0%, #38bdf8 100%);
  --shadow-glow: 0 0 60px rgba(56, 130, 246, 0.15);
  --radius: 16px;
  --radius-sm: 10px;
  --font-heading: 'Sora', sans-serif;
  --font-body: 'Inter', sans-serif;
}

* { box-sizing: border-box; }

html {
  scroll-behavior: smooth;
  scroll-padding-top: 84px;
}

body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font-family: var(--font-body);
  line-height: 1.6;
  overflow-x: hidden;
}

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

a { color: inherit; text-decoration: none; }

.container {
  width: 100%;
  max-width: 1180px;
  margin: 0 auto;
  padding: 0 24px;
}

.skip-link {
  position: absolute;
  left: -999px;
  top: 0;
  background: var(--blue);
  color: #fff;
  padding: 10px 16px;
  z-index: 1000;
  border-radius: 0 0 8px 0;
}
.skip-link:focus { left: 0; }

h1, h2, h3, h4 {
  font-family: var(--font-heading);
  font-weight: 700;
  line-height: 1.2;
  margin: 0 0 0.5em;
  color: #fff;
}

p { margin: 0 0 1em; color: var(--text-muted); }

.eyebrow {
  font-family: var(--font-heading);
  font-size: 0.78rem;
  font-weight: 700;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--cyan);
  margin: 0 0 0.9em;
}

/* ---------------------------------------------------------- */
/* Buttons                                                     */
/* ---------------------------------------------------------- */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-family: var(--font-heading);
  font-weight: 600;
  font-size: 0.95rem;
  padding: 13px 26px;
  border-radius: 999px;
  border: 1px solid transparent;
  cursor: pointer;
  transition: transform 0.2s ease, box-shadow 0.2s ease, background 0.2s ease, border-color 0.2s ease;
  white-space: nowrap;
}
.btn:hover { transform: translateY(-2px); }

.btn-primary {
  background: var(--gradient);
  color: #fff;
  box-shadow: 0 8px 24px rgba(56, 130, 246, 0.35);
}
.btn-primary:hover { box-shadow: 0 10px 30px rgba(56, 130, 246, 0.5); }

.btn-outline {
  background: rgba(255, 255, 255, 0.04);
  color: var(--text);
  border-color: var(--border-strong);
  backdrop-filter: blur(6px);
}
.btn-outline:hover { border-color: var(--cyan); background: rgba(56, 189, 248, 0.08); }

.btn-sm { padding: 9px 18px; font-size: 0.85rem; }
.btn-lg { padding: 16px 34px; font-size: 1.05rem; }

/* ---------------------------------------------------------- */
/* Header / Nav                                                 */
/* ---------------------------------------------------------- */
.site-header {
  position: fixed;
  top: 0; left: 0; right: 0;
  z-index: 500;
  background: rgba(5, 11, 24, 0.55);
  backdrop-filter: blur(14px);
  border-bottom: 1px solid transparent;
  transition: background 0.3s ease, border-color 0.3s ease;
}
.site-header.scrolled {
  background: rgba(5, 11, 24, 0.92);
  border-bottom-color: var(--border);
}

.header-inner {
  display: flex;
  align-items: center;
  gap: 24px;
  height: 76px;
}

.brand {
  display: flex;
  align-items: baseline;
  gap: 6px;
  font-family: var(--font-heading);
  font-weight: 800;
  font-size: 1.3rem;
  color: #fff;
  margin-right: auto;
}
.brand-mark {
  background: var(--gradient);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}
.brand-name { color: var(--text-muted); font-weight: 600; font-size: 0.95em; }

.main-nav ul {
  list-style: none;
  display: flex;
  gap: 6px;
  margin: 0;
  padding: 0;
}

.nav-link {
  display: inline-block;
  padding: 9px 14px;
  border-radius: 999px;
  font-size: 0.92rem;
  font-weight: 500;
  color: var(--text-muted);
  transition: color 0.2s ease, background 0.2s ease;
}
.nav-link:hover { color: #fff; }
.nav-link.active { color: #fff; background: rgba(122, 168, 255, 0.12); }

.nav-cta { flex-shrink: 0; }

.menu-toggle {
  display: none;
  flex-direction: column;
  justify-content: center;
  gap: 5px;
  width: 40px;
  height: 40px;
  background: none;
  border: 1px solid var(--border);
  border-radius: 8px;
  cursor: pointer;
}
.menu-toggle span {
  display: block;
  height: 2px;
  margin: 0 8px;
  background: #fff;
  border-radius: 2px;
  transition: transform 0.25s ease, opacity 0.25s ease;
}
.menu-toggle.open span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.menu-toggle.open span:nth-child(2) { opacity: 0; }
.menu-toggle.open span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

/* ---------------------------------------------------------- */
/* Hero                                                         */
/* ---------------------------------------------------------- */
.hero {
  position: relative;
  min-height: 100vh;
  display: flex;
  align-items: center;
  overflow: hidden;
}

.hero-bg {
  position: absolute;
  inset: 0;
  background-size: cover;
  background-position: center;
  transform: scale(1.05);
}

.hero-overlay {
  position: absolute;
  inset: 0;
  background:
    radial-gradient(60% 60% at 50% 38%, rgba(5,11,24,0.72) 0%, rgba(5,11,24,0.93) 60%, #050b18 100%),
    linear-gradient(180deg, rgba(5,11,24,0.55) 0%, rgba(5,11,24,0.97) 100%);
}

.hero-content {
  position: relative;
  z-index: 2;
  max-width: 720px;
  padding-top: 90px;
  text-align: center;
  margin: 0 auto;
}

.hero h1 {
  font-size: clamp(2.6rem, 6vw, 4.2rem);
  letter-spacing: -0.02em;
  margin-bottom: 0.15em;
}

.hero-tagline {
  font-family: var(--font-heading);
  font-size: clamp(1.1rem, 2vw, 1.4rem);
  color: var(--cyan);
  font-weight: 600;
  margin-bottom: 0.8em;
}

.hero-text {
  font-size: 1.08rem;
  color: var(--text-muted);
  max-width: 560px;
  margin-left: auto;
  margin-right: auto;
}

.hero-actions {
  display: flex;
  gap: 14px;
  justify-content: center;
  flex-wrap: wrap;
  margin-top: 1.6em;
}

.scroll-hint {
  position: absolute;
  bottom: 28px;
  left: 50%;
  transform: translateX(-50%);
  z-index: 2;
  width: 40px;
  height: 40px;
  display: flex;
  align-items: center;
  justify-content: center;
  border: 1px solid var(--border);
  border-radius: 50%;
  color: var(--text-muted);
  animation: bounce 2.2s infinite;
}

@keyframes bounce {
  0%, 100% { transform: translateX(-50%) translateY(0); }
  50% { transform: translateX(-50%) translateY(8px); }
}

/* ---------------------------------------------------------- */
/* Generic sections                                             */
/* ---------------------------------------------------------- */
.section {
  padding: 110px 0;
  position: relative;
}

.section-alt { background: var(--bg-alt); }
.section-dark { background: #030712; }

.section-heading {
  max-width: 640px;
  margin: 0 auto 56px;
  text-align: center;
}
.section-heading .eyebrow { display: block; text-align: center; }
.section-lead { font-size: 1.05rem; }

/* Split layout (image + text) */
.split-layout {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 64px;
  align-items: center;
}
.split-reverse .split-media { order: 2; }
.split-reverse .split-text { order: 1; }

.split-media img {
  border-radius: var(--radius);
  border: 1px solid var(--border);
  box-shadow: var(--shadow-glow);
}

.split-text h2 { font-size: clamp(1.8rem, 3vw, 2.4rem); }

.check-list {
  list-style: none;
  margin: 1.4em 0 0;
  padding: 0;
  display: flex;
  flex-direction: column;
  gap: 10px;
}
.check-list li {
  display: flex;
  align-items: center;
  gap: 10px;
  color: var(--text);
  font-weight: 500;
  font-size: 0.96rem;
}
.check-list i { color: var(--cyan); font-size: 1.1rem; }

.tag-row {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 1.6em;
}
.tag {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 10px 16px;
  border-radius: 999px;
  border: 1px solid var(--border-strong);
  background: rgba(56, 189, 248, 0.06);
  font-size: 0.88rem;
  font-weight: 500;
  color: var(--text);
}
.tag i { color: var(--cyan); }

/* ---------------------------------------------------------- */
/* Feature grid                                                 */
/* ---------------------------------------------------------- */
.feature-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
}

.feature-card {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 32px 26px;
  transition: transform 0.25s ease, border-color 0.25s ease, box-shadow 0.25s ease;
}
.feature-card:hover {
  transform: translateY(-4px);
  border-color: var(--border-strong);
  box-shadow: 0 16px 40px rgba(0,0,0,0.35);
}

.feature-icon {
  width: 52px;
  height: 52px;
  border-radius: 14px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: var(--gradient);
  font-size: 1.4rem;
  color: #fff;
  margin-bottom: 20px;
}

.feature-card h3 {
  font-size: 1.1rem;
  margin-bottom: 0.4em;
}
.feature-card p { font-size: 0.92rem; margin: 0; }

/* ---------------------------------------------------------- */
/* Soluções por segmento                                        */
/* ---------------------------------------------------------- */
.solutions-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 24px;
}

.solution-card {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 32px 30px;
  transition: transform 0.25s ease, border-color 0.25s ease, box-shadow 0.25s ease;
}
.solution-card:hover {
  transform: translateY(-4px);
  border-color: var(--border-strong);
  box-shadow: 0 16px 40px rgba(0, 0, 0, 0.35);
}

.solution-head {
  display: flex;
  align-items: center;
  gap: 16px;
  margin-bottom: 20px;
}

.solution-badge {
  flex-shrink: 0;
  width: 52px;
  height: 52px;
  border-radius: 14px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: var(--gradient);
  font-size: 1.4rem;
  color: #fff;
}

.solution-card h3 { font-size: 1.25rem; margin-bottom: 0; }
.solution-card > p { font-size: 0.94rem; margin-bottom: 1.4em; }

.module-list {
  list-style: none;
  margin: 0;
  padding: 18px 0 0;
  border-top: 1px solid var(--border);
  display: flex;
  flex-direction: column;
  gap: 12px;
}
.module-list li {
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 0.92rem;
  font-weight: 500;
  color: var(--text);
}
.module-list i { color: var(--cyan); font-size: 1.05rem; width: 20px; text-align: center; }

/* ---------------------------------------------------------- */
/* Showcase (produto)                                           */
/* ---------------------------------------------------------- */
.showcase {
  display: grid;
  grid-template-columns: 1.4fr 1fr;
  gap: 24px;
}
.showcase-media img {
  border-radius: var(--radius);
  border: 1px solid var(--border);
  box-shadow: var(--shadow-glow);
  width: 100%;
  height: 100%;
  object-fit: cover;
}

/* ---------------------------------------------------------- */
/* Playlist de vídeos (Reforma Tributária)                      */
/* ---------------------------------------------------------- */
.video-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
}

.video-card {
  display: block;
  width: 100%;
  text-align: left;
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  overflow: hidden;
  cursor: pointer;
  padding: 0;
  font-family: inherit;
  transition: transform 0.25s ease, border-color 0.25s ease, box-shadow 0.25s ease;
}
.video-card:hover {
  transform: translateY(-4px);
  border-color: var(--border-strong);
  box-shadow: 0 16px 40px rgba(0, 0, 0, 0.35);
}

.video-card-thumb {
  display: block;
  position: relative;
  aspect-ratio: 16 / 9;
  background: #000 center / cover no-repeat;
}
.video-card-thumb img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}
.video-card-play {
  position: absolute;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
}
.video-card-play i {
  width: 56px;
  height: 56px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  background: rgba(5, 11, 24, 0.65);
  color: #fff;
  font-size: 1.4rem;
  border: 1px solid rgba(255, 255, 255, 0.35);
  transition: background 0.25s ease, transform 0.25s ease;
}
.video-card:hover .video-card-play i {
  background: var(--gradient);
  transform: scale(1.08);
}

.video-card-title {
  display: block;
  padding: 16px 18px;
  font-size: 0.95rem;
  font-weight: 600;
  color: var(--text);
}

/* Cartões de exemplo (aparecem só enquanto playlistVideos estiver vazia) */
.video-card--placeholder {
  cursor: default;
  border-style: dashed;
}
.video-card--placeholder:hover {
  transform: none;
  box-shadow: none;
}
.video-card--placeholder .video-card-thumb {
  background: var(--bg-alt);
  display: flex;
  align-items: center;
  justify-content: center;
}
.video-card--placeholder .video-card-play i {
  background: rgba(255, 255, 255, 0.06);
  border-style: dashed;
}
.video-card--placeholder .video-card-title {
  color: var(--text-dim);
  font-weight: 500;
}

/* Modal de vídeo */
.video-modal {
  position: fixed;
  inset: 0;
  z-index: 200;
  display: none;
  align-items: center;
  justify-content: center;
  padding: 24px;
}
.video-modal.is-open { display: flex; }

.video-modal-backdrop {
  position: absolute;
  inset: 0;
  background: rgba(2, 6, 16, 0.85);
  backdrop-filter: blur(4px);
}

.video-modal-dialog {
  position: relative;
  z-index: 1;
  width: 100%;
  max-width: 880px;
  background: var(--bg-card);
  border: 1px solid var(--border-strong);
  border-radius: var(--radius);
  padding: 16px;
  box-shadow: 0 30px 80px rgba(0, 0, 0, 0.55);
}

.video-modal-close {
  position: absolute;
  top: -14px;
  right: -14px;
  width: 40px;
  height: 40px;
  border-radius: 50%;
  border: 1px solid var(--border-strong);
  background: var(--bg-card);
  color: var(--text);
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  font-size: 1rem;
}
.video-modal-close:hover { background: var(--gradient); border-color: transparent; }

.video-modal-frame {
  position: relative;
  aspect-ratio: 16 / 9;
  border-radius: var(--radius-sm);
  overflow: hidden;
  background: #000;
}
.video-modal-frame iframe {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  border: 0;
}

.video-modal-title {
  margin: 14px 4px 4px;
  font-size: 1rem;
  color: var(--text);
}

@media (max-width: 900px) {
  .video-grid { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 640px) {
  .video-grid { grid-template-columns: 1fr; }
  .video-modal-close { top: 10px; right: 10px; }
}

/* ---------------------------------------------------------- */
/* Closing banner (imagem cheia, sem texto sobreposto)          */
/* ---------------------------------------------------------- */
.closing-banner {
  width: 100%;
  line-height: 0;
}
.closing-banner img {
  width: 100%;
  height: auto;
  max-height: 70vh;
  object-fit: cover;
}

/* ---------------------------------------------------------- */
/* Contact section                                              */
/* ---------------------------------------------------------- */
.contact-section {
  position: relative;
  text-align: center;
  padding: 140px 0;
  overflow: hidden;
}
.contact-content {
  position: relative;
  z-index: 2;
  max-width: 620px;
  margin: 0 auto;
}
.contact-content .eyebrow { text-align: center; }
.contact-content h2 { font-size: clamp(2rem, 4vw, 2.8rem); }
.contact-content .btn { margin-top: 1.4em; }

/* ---------------------------------------------------------- */
/* Footer                                                       */
/* ---------------------------------------------------------- */
.site-footer {
  background: #030712;
  border-top: 1px solid var(--border);
  padding-top: 56px;
}

.footer-inner {
  display: flex;
  flex-wrap: wrap;
  gap: 32px;
  justify-content: space-between;
  align-items: flex-start;
  padding-bottom: 40px;
}

.footer-brand {
  font-family: var(--font-heading);
  font-weight: 800;
  font-size: 1.15rem;
}
.footer-brand p {
  font-family: var(--font-body);
  font-weight: 400;
  font-size: 0.85rem;
  color: var(--text-dim);
  margin-top: 8px;
}

.footer-nav {
  display: flex;
  flex-wrap: wrap;
  gap: 18px;
}
.footer-nav a {
  font-size: 0.9rem;
  color: var(--text-muted);
  transition: color 0.2s ease;
}
.footer-nav a:hover { color: #fff; }

.footer-contact {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-weight: 600;
  color: var(--cyan);
  font-size: 0.92rem;
}

.footer-bottom {
  border-top: 1px solid var(--border);
  padding: 20px 0;
}
.footer-bottom p {
  margin: 0;
  font-size: 0.82rem;
  color: var(--text-dim);
  text-align: center;
}

/* ---------------------------------------------------------- */
/* Scroll reveal                                                */
/* ---------------------------------------------------------- */
.reveal {
  opacity: 0;
  transform: translateY(24px);
  transition: opacity 0.7s ease, transform 0.7s ease;
}
.reveal.is-visible {
  opacity: 1;
  transform: translateY(0);
}

/* ---------------------------------------------------------- */
/* Responsive                                                   */
/* ---------------------------------------------------------- */
@media (max-width: 991px) {
  .main-nav { position: fixed; }
  .main-nav ul { flex-direction: column; }

  .main-nav {
    position: fixed;
    top: 76px;
    left: 0;
    right: 0;
    background: rgba(5, 11, 24, 0.97);
    backdrop-filter: blur(14px);
    border-bottom: 1px solid var(--border);
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.3s ease;
  }
  .main-nav.open { max-height: 480px; }
  .main-nav ul { padding: 12px 24px 20px; gap: 4px; }
  .nav-link { display: block; padding: 12px 14px; }

  .nav-cta { display: none; }
  .menu-toggle { display: flex; }

  .split-layout { grid-template-columns: 1fr; gap: 40px; }
  .split-reverse .split-media,
  .split-reverse .split-text { order: initial; }

  .feature-grid { grid-template-columns: repeat(2, 1fr); }
  .showcase { grid-template-columns: 1fr; }
}

@media (max-width: 599px) {
  .section { padding: 80px 0; }
  .feature-grid { grid-template-columns: 1fr; }
  .solutions-grid { grid-template-columns: 1fr; }
  .hero-actions { flex-direction: column; align-items: stretch; }
  .hero-actions .btn { justify-content: center; }
  .footer-inner { flex-direction: column; }

  .whatsapp-float { width: 52px; height: 52px; font-size: 1.5rem; right: 16px; bottom: 16px; }
}

/* ===================== WHATSAPP FLUTUANTE (acesso rápido) ===================== */
.whatsapp-float {
  position: fixed;
  right: 24px;
  bottom: 24px;
  z-index: 150;
  width: 60px;
  height: 60px;
  border-radius: 50%;
  background: #25d366;
  color: #fff;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.8rem;
  text-decoration: none;
  box-shadow: 0 8px 24px rgba(37, 211, 102, 0.45);
  transition: transform 0.2s ease, box-shadow 0.2s ease;
  animation: whatsapp-pulse 2.4s ease-in-out infinite;
}
.whatsapp-float:hover {
  transform: scale(1.08);
  box-shadow: 0 10px 30px rgba(37, 211, 102, 0.6);
}
.whatsapp-float i { line-height: 1; }

@keyframes whatsapp-pulse {
  0%, 100% { box-shadow: 0 8px 24px rgba(37, 211, 102, 0.45), 0 0 0 0 rgba(37, 211, 102, 0.4); }
  50%      { box-shadow: 0 8px 24px rgba(37, 211, 102, 0.45), 0 0 0 10px rgba(37, 211, 102, 0); }
}

@media (prefers-reduced-motion: reduce) {
  .whatsapp-float { animation: none; }
}
