/* ============================================
   VG Tech — Landing SaaS
   Container max-w-7xl (80rem), sem imagens quebradas
   ============================================ */

:root {
  --vg-blue: #0f172a;
  --vg-blue-mid: #1e293b;
  --vg-accent: #059669;
  --vg-accent-hover: #047857;
  --vg-accent-glow: rgba(5, 150, 105, 0.35);
  --vg-surface: #f8fafc;
  --vg-surface-alt: #f1f5f9;
  --vg-text: #0f172a;
  --vg-text-muted: #64748b;
  --vg-border: rgba(0, 0, 0, 0.08);
  --vg-white: #ffffff;

  --font: 'Plus Jakarta Sans', system-ui, -apple-system, sans-serif;
  --text-xs: 0.75rem;
  --text-sm: 0.875rem;
  --text-base: 1rem;
  --text-lg: 1.125rem;
  --text-xl: 1.25rem;
  --text-2xl: 1.5rem;
  --text-3xl: 1.875rem;
  --text-4xl: 2.25rem;
  --text-hero: clamp(2.25rem, 5.5vw, 3.75rem);
  --text-cta: clamp(2rem, 4vw, 3rem);

  --space-2: 0.5rem;
  --space-3: 0.75rem;
  --space-4: 1rem;
  --space-5: 1.25rem;
  --space-6: 1.5rem;
  --space-8: 2rem;
  --space-10: 2.5rem;
  --space-12: 3rem;
  --space-16: 4rem;
  --space-20: 5rem;
  --space-24: 6rem;
  --space-28: 7rem;

  --radius: 12px;
  --radius-lg: 16px;
  --radius-xl: 20px;
  --radius-2xl: 24px;
  --radius-full: 9999px;
  --shadow-soft: 0 4px 20px rgba(0, 0, 0, 0.06), 0 1px 3px rgba(0, 0, 0, 0.04);
  --shadow-card: 0 12px 40px -8px rgba(15, 23, 42, 0.12), 0 0 0 1px rgba(0, 0, 0, 0.04);
  --shadow-card-hover: 0 24px 48px -12px rgba(15, 23, 42, 0.14), 0 0 0 1px rgba(5, 150, 105, 0.1);

  --ease: cubic-bezier(0.25, 0.46, 0.45, 0.94);
  --duration: 0.3s;

  /* max-w-7xl = 80rem = 1280px; px-6 = 1.5rem em todos os breakpoints */
  --container-max: 80rem;
  --container-px: 1.5rem; /* 24px, equivalente a px-6 */
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    animation-duration: 0.01ms !important;
    transition-duration: 0.01ms !important;
  }
}

.vg-body {
  font-family: var(--font);
  font-size: var(--text-base);
  line-height: 1.6;
  color: var(--vg-text);
  background: var(--vg-white);
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}

html {
  scroll-behavior: smooth;
}

/* Container: max-w-7xl, mx-auto, px-6 */
.vg-container {
  width: 100%;
  max-width: var(--container-max);
  margin-left: auto;
  margin-right: auto;
  padding-left: var(--container-px);
  padding-right: var(--container-px);
  box-sizing: border-box;
}

/* ========== HEADER ========== */
.vg-header {
  position: sticky;
  top: 0;
  z-index: 100;
  background: rgba(255, 255, 255, 0.9);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--vg-border);
}

.vg-header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 72px;
}

.vg-logo {
  display: flex;
  align-items: center;
  text-decoration: none;
  color: var(--vg-text);
  font-weight: 800;
  font-size: var(--text-xl);
  letter-spacing: -0.02em;
}

.vg-logo:hover {
  color: var(--vg-accent);
}

.vg-logo-text {
  display: block;
}

.vg-nav {
  display: none;
  align-items: center;
  gap: var(--space-8);
}

@media (min-width: 768px) {
  .vg-nav {
    display: flex;
  }
}

.vg-nav-link {
  font-size: var(--text-sm);
  font-weight: 500;
  color: var(--vg-text-muted);
  text-decoration: none;
  transition: color var(--duration) var(--ease);
}

.vg-nav-link:hover {
  color: var(--vg-text);
}

/* Base button */
.vg-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-family: var(--font);
  font-weight: 600;
  font-size: var(--text-sm);
  padding: var(--space-3) var(--space-5);
  border-radius: var(--radius);
  text-decoration: none;
  transition: transform var(--duration) var(--ease), box-shadow var(--duration) var(--ease), background var(--duration) var(--ease), border-color var(--duration) var(--ease), color var(--duration) var(--ease);
  cursor: pointer;
  border: 2px solid transparent;
  white-space: nowrap;
}

/* Primary: fundo verde, texto branco, padding maior, borda arredondada, hover com leve sombra */
.vg-btn-primary {
  background: var(--vg-accent);
  color: white;
  padding: 0.75rem 1.5rem;
  box-shadow: 0 4px 14px var(--vg-accent-glow);
}

.vg-btn-primary:hover {
  background: var(--vg-accent-hover);
  transform: translateY(-2px);
  box-shadow: 0 8px 24px var(--vg-accent-glow);
}

.vg-btn-primary--lg {
  font-size: 1.25rem;
  font-weight: 700;
  padding: 1rem 2.5rem;
  border-radius: var(--radius-lg);
  box-shadow: 0 8px 28px var(--vg-accent-glow), 0 0 0 1px rgba(255, 255, 255, 0.1) inset;
}

.vg-btn-primary--lg:hover {
  transform: translateY(-3px);
  box-shadow: 0 14px 36px var(--vg-accent-glow), 0 0 0 1px rgba(255, 255, 255, 0.12) inset;
}

/* Secondary: fundo transparente, borda cinza ou branca, hover com leve background */
.vg-btn-secondary {
  background: transparent;
  color: var(--vg-text);
  border-color: var(--vg-border);
}

.vg-btn-secondary:hover {
  background: var(--vg-surface);
  border-color: var(--vg-text-muted);
}

.vg-btn-secondary--dark {
  color: white;
  border-color: rgba(255, 255, 255, 0.5);
}

.vg-btn-secondary--dark:hover {
  background: rgba(255, 255, 255, 0.1);
  border-color: rgba(255, 255, 255, 0.85);
}

/* ========== HERO ========== — layout coluna no mobile, título e botões centralizados */
.vg-hero {
  position: relative;
  min-height: 100vh;
  min-height: 100dvh;
  display: flex;
  align-items: center;
  justify-content: center;
  color: white;
  padding-top: 5.5rem;
  padding-bottom: var(--space-24);
  overflow: hidden;
}

@media (min-width: 768px) {
  .vg-hero {
    padding-top: 6rem;
  }
}

.vg-hero-bg {
  position: absolute;
  inset: 0;
  background: linear-gradient(160deg, #030712 0%, #071018 20%, #0f172a 50%, #1e293b 85%, #0f172a 100%);
  pointer-events: none;
}

.vg-hero-bg::before {
  content: '';
  position: absolute;
  top: -40%;
  right: -30%;
  width: 100%;
  height: 100%;
  background: radial-gradient(ellipse 60% 60%, rgba(5, 150, 105, 0.25) 0%, transparent 60%);
  pointer-events: none;
}

.vg-hero-bg::after {
  content: '';
  position: absolute;
  bottom: -30%;
  left: -20%;
  width: 70%;
  height: 80%;
  background: radial-gradient(ellipse 50% 50%, rgba(30, 64, 115, 0.35) 0%, transparent 60%);
  pointer-events: none;
}

.vg-hero-inner {
  position: relative;
  z-index: 1;
  width: 100%;
}

.vg-hero-content {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  max-width: 42rem;
  margin-left: auto;
  margin-right: auto;
  width: 100%;
}

.vg-hero-title {
  font-size: var(--text-hero);
  font-weight: 800;
  line-height: 1.1;
  letter-spacing: -0.04em;
  margin: 0 0 var(--space-6);
  color: white;
}

.vg-hero-subtitle {
  font-size: clamp(var(--text-base), 1.6vw, var(--text-lg));
  line-height: 1.6;
  color: rgba(255, 255, 255, 0.9);
  margin: 0 0 var(--space-10);
}

.vg-hero-buttons {
  display: flex;
  flex-wrap: wrap;
  gap: var(--space-4);
  align-items: center;
  justify-content: center;
}

.vg-hero-buttons .vg-btn-primary {
  font-size: var(--text-base);
  padding: 0.875rem 2rem;
}

/* ========== SEÇÕES ========== — py-24 para ritmo visual consistente */
.vg-section {
  padding-top: var(--space-24);
  padding-bottom: var(--space-24);
}

.vg-section-header {
  text-align: center;
  max-width: 40rem;
  margin-left: auto;
  margin-right: auto;
  margin-bottom: var(--space-16);
}

.vg-section-title {
  font-size: clamp(var(--text-2xl), 3.5vw, var(--text-3xl));
  font-weight: 800;
  color: var(--vg-text);
  letter-spacing: -0.03em;
  line-height: 1.2;
  margin: 0 0 var(--space-3);
}

.vg-section-title--center {
  margin-left: auto;
  margin-right: auto;
}

.vg-section-lead {
  font-size: var(--text-lg);
  color: var(--vg-text-muted);
  line-height: 1.55;
  margin: 0;
}

/* ========== O QUE A VG TECH FAZ ========== */
.vg-section-delivery {
  background: linear-gradient(180deg, var(--vg-white) 0%, var(--vg-surface) 50%, var(--vg-white) 100%);
}

/* Grid: mobile 1 col, tablet 2 cols, desktop 3 ou 4 cols */
.vg-delivery-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: var(--space-6);
}

@media (min-width: 640px) {
  .vg-delivery-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (min-width: 1024px) {
  .vg-delivery-grid {
    grid-template-columns: repeat(3, 1fr);
    gap: var(--space-8);
  }
}

@media (min-width: 1280px) {
  .vg-delivery-grid {
    grid-template-columns: repeat(4, 1fr);
  }
}

.vg-delivery-card {
  background: var(--vg-white);
  border-radius: var(--radius-xl);
  padding: var(--space-8);
  border: 1px solid var(--vg-border);
  box-shadow: var(--shadow-soft);
  transition: transform var(--duration) var(--ease), box-shadow var(--duration) var(--ease), border-color var(--duration) var(--ease);
}

.vg-delivery-card:hover {
  transform: translateY(-6px);
  box-shadow: var(--shadow-card-hover);
  border-color: rgba(5, 150, 105, 0.2);
}

.vg-delivery-icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 52px;
  height: 52px;
  border-radius: var(--radius-lg);
  background: linear-gradient(135deg, rgba(5, 150, 105, 0.12) 0%, rgba(5, 150, 105, 0.06) 100%);
  color: var(--vg-accent);
  margin-bottom: var(--space-5);
  flex-shrink: 0;
  transition: transform var(--duration) var(--ease);
}

.vg-delivery-card:hover .vg-delivery-icon {
  transform: scale(1.05);
}

.vg-delivery-title {
  font-size: var(--text-lg);
  font-weight: 700;
  color: var(--vg-text);
  margin: 0 0 var(--space-2);
  letter-spacing: -0.02em;
  line-height: 1.3;
}

.vg-delivery-text {
  font-size: var(--text-sm);
  color: var(--vg-text-muted);
  line-height: 1.6;
  margin: 0;
}

/* ========== COMO FUNCIONA ========== */
.vg-section-steps {
  background: var(--vg-surface);
}

.vg-steps {
  display: grid;
  grid-template-columns: 1fr;
  gap: var(--space-6);
}

@media (min-width: 768px) {
  .vg-steps {
    grid-template-columns: repeat(2, 1fr);
    gap: var(--space-8);
  }
}

@media (min-width: 1024px) {
  .vg-steps {
    grid-template-columns: repeat(3, 1fr);
    max-width: 56rem;
    margin-left: auto;
    margin-right: auto;
  }
}

.vg-step {
  background: var(--vg-white);
  border-radius: var(--radius-2xl);
  padding: var(--space-12);
  text-align: center;
  border: 1px solid var(--vg-border);
  box-shadow: var(--shadow-soft);
  transition: transform var(--duration) var(--ease), box-shadow var(--duration) var(--ease), border-color var(--duration) var(--ease);
}

.vg-step:hover {
  transform: translateY(-6px);
  box-shadow: var(--shadow-card-hover);
  border-color: rgba(5, 150, 105, 0.15);
}

.vg-step-number {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 64px;
  height: 64px;
  background: linear-gradient(135deg, var(--vg-blue) 0%, var(--vg-blue-mid) 100%);
  color: white;
  font-weight: 800;
  font-size: var(--text-2xl);
  border-radius: 50%;
  margin: 0 auto var(--space-6);
  box-shadow: 0 8px 24px rgba(15, 23, 42, 0.25);
}

.vg-step-title {
  font-size: clamp(var(--text-lg), 1.4vw, var(--text-xl));
  font-weight: 700;
  color: var(--vg-text);
  margin: 0 0 var(--space-4);
  letter-spacing: -0.02em;
  line-height: 1.3;
}

.vg-step-text {
  font-size: var(--text-base);
  color: var(--vg-text-muted);
  line-height: 1.55;
  margin: 0;
}

/* ========== PLATAFORMA EM AÇÃO (texto) ========== */
.vg-section-platform {
  background: var(--vg-white);
}

.vg-platform-features {
  display: grid;
  grid-template-columns: 1fr;
  gap: var(--space-6);
}

@media (min-width: 640px) {
  .vg-platform-features {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (min-width: 1024px) {
  .vg-platform-features {
    grid-template-columns: repeat(3, 1fr);
    gap: var(--space-8);
  }
}

.vg-platform-item {
  background: var(--vg-surface);
  border-radius: var(--radius-xl);
  padding: var(--space-10);
  border: 1px solid var(--vg-border);
  box-shadow: var(--shadow-soft);
  transition: transform var(--duration) var(--ease), box-shadow var(--duration) var(--ease);
}

.vg-platform-item:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-card);
  border-color: rgba(5, 150, 105, 0.12);
}

.vg-platform-item-title {
  font-size: var(--text-xl);
  font-weight: 700;
  color: var(--vg-text);
  margin: 0 0 var(--space-3);
  letter-spacing: -0.02em;
}

.vg-platform-item-text {
  font-size: var(--text-base);
  color: var(--vg-text-muted);
  line-height: 1.6;
  margin: 0;
}

/* ========== DEPOIMENTOS ========== */
.vg-section-testimonials {
  background: var(--vg-surface);
}

.vg-testimonials {
  display: grid;
  grid-template-columns: 1fr;
  gap: var(--space-6);
}

@media (min-width: 768px) {
  .vg-testimonials {
    grid-template-columns: repeat(2, 1fr);
    gap: var(--space-8);
  }
}

@media (min-width: 1024px) {
  .vg-testimonials {
    grid-template-columns: repeat(3, 1fr);
  }
}

.vg-testimonial {
  background: var(--vg-white);
  border-radius: var(--radius-2xl);
  padding: var(--space-8);
  border: 1px solid var(--vg-border);
  box-shadow: var(--shadow-soft);
  transition: transform var(--duration) var(--ease), box-shadow var(--duration) var(--ease);
}

.vg-testimonial:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-card);
}

.vg-testimonial-stars {
  display: flex;
  gap: 2px;
  margin-bottom: var(--space-4);
}

.vg-testimonial-stars span {
  width: 18px;
  height: 18px;
  background: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='%23fbbf24'%3E%3Cpath d='M12 2l3.09 6.26L22 9.27l-5 4.87 1.18 6.88L12 17.77l-6.18 3.25L7 14.14 2 9.27l6.91-1.01L12 2z'/%3E%3C/svg%3E") center/contain no-repeat;
}

.vg-testimonial-text {
  font-size: var(--text-base);
  color: var(--vg-text);
  line-height: 1.6;
  margin: 0 0 var(--space-5);
}

.vg-testimonial-author {
  display: flex;
  flex-direction: column;
  gap: 2px;
  padding-top: var(--space-4);
  border-top: 1px solid var(--vg-border);
}

.vg-testimonial-name {
  font-size: var(--text-base);
  font-weight: 700;
  color: var(--vg-text);
}

.vg-testimonial-role {
  font-size: var(--text-sm);
  color: var(--vg-text-muted);
}

.vg-testimonial-company {
  font-size: var(--text-sm);
  color: var(--vg-accent);
  font-weight: 600;
}

/* ========== CTA FINAL ========== */
.vg-cta {
  position: relative;
  padding-top: var(--space-24);
  padding-bottom: var(--space-24);
  color: white;
  overflow: hidden;
}

.vg-cta-bg {
  position: absolute;
  inset: 0;
  background: linear-gradient(155deg, #050810 0%, #0a0f1a 30%, #0f172a 55%, #1e293b 100%);
  pointer-events: none;
}

.vg-cta-bg::before {
  content: '';
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  width: 120%;
  height: 120%;
  background: radial-gradient(ellipse, rgba(5, 150, 105, 0.2) 0%, rgba(5, 150, 105, 0.05) 50%, transparent 70%);
  pointer-events: none;
}

.vg-cta-inner {
  position: relative;
  z-index: 1;
  text-align: center;
  max-width: 36rem;
  margin-left: auto;
  margin-right: auto;
}

.vg-cta-badge {
  display: inline-block;
  background: rgba(255, 255, 255, 0.12);
  color: white;
  font-size: var(--text-sm);
  font-weight: 600;
  padding: var(--space-2) var(--space-5);
  border-radius: var(--radius-full);
  border: 1px solid rgba(255, 255, 255, 0.2);
  margin-bottom: var(--space-8);
}

.vg-cta-title {
  font-size: var(--text-cta);
  font-weight: 800;
  letter-spacing: -0.04em;
  line-height: 1.1;
  margin: 0 0 var(--space-5);
  color: white;
}

.vg-cta-subtitle {
  font-size: var(--text-xl);
  color: rgba(255, 255, 255, 0.92);
  margin: 0 0 var(--space-10);
  line-height: 1.45;
}

/* ========== CONTATO ========== */
.vg-section-alt {
  background: var(--vg-surface);
}

.vg-contact-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: var(--space-12);
  max-width: 48rem;
  margin-left: auto;
  margin-right: auto;
}

@media (min-width: 768px) {
  .vg-contact-grid {
    grid-template-columns: 1fr 1fr;
  }
}

.vg-contact-heading {
  font-size: var(--text-lg);
  font-weight: 700;
  color: var(--vg-text);
  margin: 0 0 var(--space-4);
}

.vg-contact-list {
  list-style: none;
  padding: 0;
  margin: 0;
}

.vg-contact-list li {
  margin-bottom: var(--space-3);
  font-size: var(--text-base);
  color: var(--vg-text-muted);
}

.vg-contact-list--small {
  font-size: var(--text-sm);
}

.vg-link {
  color: var(--vg-accent);
  text-decoration: none;
  font-weight: 500;
  transition: color var(--duration) var(--ease);
}

.vg-link:hover {
  color: var(--vg-accent-hover);
  text-decoration: underline;
}

/* ========== FOOTER ========== */
.vg-footer {
  background: var(--vg-blue);
  color: white;
  padding-top: var(--space-12);
  padding-bottom: var(--space-12);
}

.vg-footer-inner {
  display: flex;
  flex-direction: column;
  gap: var(--space-6);
  align-items: center;
  text-align: center;
}

@media (min-width: 768px) {
  .vg-footer-inner {
    flex-direction: row;
    flex-wrap: wrap;
    justify-content: space-between;
    text-align: left;
  }
}

.vg-footer-brand {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: var(--space-2);
}

@media (min-width: 768px) {
  .vg-footer-brand {
    align-items: flex-start;
  }
}

.vg-footer-logo-text {
  font-weight: 800;
  font-size: var(--text-xl);
  letter-spacing: -0.02em;
}

.vg-footer-legal {
  font-size: var(--text-sm);
  color: rgba(255, 255, 255, 0.75);
  margin: 0;
}

.vg-footer-nav {
  display: flex;
  gap: var(--space-6);
}

.vg-footer-link {
  font-size: var(--text-sm);
  color: rgba(255, 255, 255, 0.8);
  text-decoration: none;
  transition: color var(--duration) var(--ease);
}

.vg-footer-link:hover {
  color: white;
}

.vg-footer-copy {
  width: 100%;
  font-size: var(--text-sm);
  color: rgba(255, 255, 255, 0.6);
  margin: var(--space-4) 0 0;
  padding-top: var(--space-4);
  border-top: 1px solid rgba(255, 255, 255, 0.1);
}

@media (min-width: 768px) {
  .vg-footer-copy {
    width: auto;
    margin: 0;
    padding-top: 0;
    border-top: none;
  }
}

/* ========== REVEAL ========== */
.reveal {
  opacity: 0;
  transform: translateY(32px);
  transition: opacity 0.6s var(--ease), transform 0.6s var(--ease);
}

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

/* ========== PÁGINAS LEGAIS ========== */
.vg-legal-page .vg-legal-content {
  max-width: 52rem;
  margin: 0 auto;
}

.vg-legal-page .vg-legal-content h2 {
  font-size: var(--text-xl);
  font-weight: 700;
  color: var(--vg-text);
  margin: var(--space-8) 0 var(--space-3);
}

.vg-legal-page .vg-legal-content h2:first-of-type {
  margin-top: 0;
}

.vg-legal-page .vg-legal-content h3 {
  font-size: var(--text-lg);
  font-weight: 600;
  color: var(--vg-text);
  margin: var(--space-6) 0 var(--space-2);
}

.vg-legal-page .vg-legal-content p,
.vg-legal-page .vg-legal-content li {
  color: var(--vg-text-muted);
  margin-bottom: var(--space-3);
  line-height: 1.65;
}

.vg-legal-page .vg-legal-content ul {
  margin: var(--space-3) 0;
  padding-left: var(--space-6);
}

.card-reveal {
  opacity: 0;
  transform: translateY(24px);
  transition: opacity 0.5s var(--ease), transform 0.5s var(--ease);
  transition-delay: calc(0.06s * var(--i, 0));
}

.reveal.reveal-visible .card-reveal {
  opacity: 1;
  transform: translateY(0);
}

a:focus-visible,
button:focus-visible,
.vg-btn:focus-visible {
  outline: 2px solid var(--vg-accent);
  outline-offset: 2px;
}
