/* ================================================================
   SCALE GROWTH — Theme System (Seolla Style)
   Dark #141414 + Lime Green #C0E850 | Inter | 3D Depth
   ================================================================ */

/* --- CSS Variables / Tokens --- */
:root {
  /* Fundos */
  --bg-primary: #141414;
  --bg-secondary: #191919;
  --bg-card: #1B1B1B;
  --bg-card-alt: #202020;
  --bg-card-hover: #242424;

  /* Bordas */
  --border-subtle: #2A2A2A;
  --border-medium: #303030;

  /* Textos */
  --text-primary: #F3F3F3;
  --text-secondary: #9D9C9C;
  --text-muted: #5A585A;

  /* Accent — Verde Limão */
  --accent: #C0E850;
  --accent-cta: #C4EA54;
  --accent-olive: #959F56;
  --accent-dark: #5D6131;
  --accent-glow: rgba(192, 232, 80, 0.12);
  --accent-glow-strong: rgba(192, 232, 80, 0.25);

  /* Raios */
  --radius-sm: 8px;
  --radius-md: 12px;
  --radius-lg: 16px;
  --radius-xl: 20px;
  --radius-2xl: 24px;
  --radius-full: 50px;

  /* Tipografia */
  --font-main: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
}

/* --- Reset Mínimo --- */
*, *::before, *::after { box-sizing: border-box; }

body {
  font-family: var(--font-main) !important;
  background: var(--bg-primary) !important;
  color: var(--text-primary) !important;
  line-height: 1.7;
  font-size: 17px;
  margin: 0;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

h1, h2, h3, h4, h5, h6 {
  font-family: var(--font-main) !important;
  color: var(--text-primary);
  margin: 0 0 0.5em;
}

h1 {
  font-size: clamp(2.5rem, 5vw, 3.5rem);
  font-weight: 700;
  line-height: 1.1;
  letter-spacing: -0.02em;
}
h2 {
  font-size: clamp(1.75rem, 3.5vw, 2.25rem);
  font-weight: 700;
  line-height: 1.15;
  letter-spacing: -0.015em;
}
h3 {
  font-size: clamp(1.1rem, 2vw, 1.3rem);
  font-weight: 600;
  line-height: 1.35;
}

p { color: var(--text-secondary); margin: 0 0 1em; }
a { color: var(--accent); text-decoration: none; transition: color 0.2s; }
a:hover { color: var(--accent-cta); }
img { max-width: 100%; height: auto; display: block; }


/* =============================================================
   LAYOUT
   ============================================================= */
.sg-container { max-width: 1200px; margin: 0 auto; padding: 0 24px; }

.sg-section {
  padding: 120px 0;
  position: relative;
  background: var(--bg-primary);
}
.sg-section-alt {
  padding: 120px 0;
  position: relative;
  background: var(--bg-secondary);
}
@media (max-width: 768px) {
  .sg-section, .sg-section-alt { padding: 80px 0; }
}

.sg-section-header { text-align: center; margin-bottom: 72px; }
.sg-section-header h2 { margin-bottom: 16px; }
.sg-section-header p {
  max-width: 600px;
  margin: 0 auto;
  font-size: 1.1rem;
  color: var(--text-secondary);
}

/* --- Grids --- */
.sg-grid-2 { display: grid; grid-template-columns: repeat(2, 1fr); gap: 32px; }
.sg-grid-3 { display: grid; grid-template-columns: repeat(3, 1fr); gap: 28px; }
@media (max-width: 1024px) { .sg-grid-3 { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 768px) { .sg-grid-2, .sg-grid-3 { grid-template-columns: 1fr; } }


/* =============================================================
   HIGHLIGHT DO H1 (marca-texto verde limão)
   ============================================================= */
.sg-highlight {
  background: var(--accent);
  color: #141414;
  padding: 2px 10px;
  border-radius: 6px;
  display: inline;
  -webkit-box-decoration-break: clone;
  box-decoration-break: clone;
}


/* =============================================================
   LABEL / BADGE
   ============================================================= */
.sg-label {
  display: inline-block;
  background: rgba(192, 232, 80, 0.08);
  color: var(--accent);
  padding: 8px 22px;
  border-radius: var(--radius-full);
  font-size: 0.78rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 1.2px;
  border: 1px solid rgba(192, 232, 80, 0.15);
  margin-bottom: 20px;
}


/* =============================================================
   CARDS — Dark Premium com 3D hover
   ============================================================= */
.sg-card {
  background: var(--bg-card);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-xl);
  padding: 36px;
  transition: all 0.35s cubic-bezier(0.4, 0, 0.2, 1);
  position: relative;
  overflow: hidden;
}
.sg-card::before {
  content: '';
  position: absolute;
  top: 0; left: 0; right: 0;
  height: 1px;
  background: linear-gradient(90deg, transparent, rgba(192, 232, 80, 0.25), transparent);
  opacity: 0;
  transition: opacity 0.35s;
}
.sg-card:hover {
  background: var(--bg-card-hover);
  border-color: rgba(192, 232, 80, 0.2);
  transform: translateY(-6px);
  box-shadow: 0 25px 50px rgba(0, 0, 0, 0.3), 0 0 40px var(--accent-glow);
}
.sg-card:hover::before { opacity: 1; }
.sg-card h3 { margin-bottom: 12px; }
.sg-card p { font-size: 0.95rem; line-height: 1.65; margin: 0; }

/* Card com efeito 3D (perspective tilt no hover) */
.card-3d {
  perspective: 1200px;
  transform-style: preserve-3d;
  transition: transform 0.4s cubic-bezier(0.4, 0, 0.2, 1), box-shadow 0.4s ease;
}
.card-3d:hover {
  transform: rotateX(2deg) rotateY(-2deg) translateY(-6px);
  box-shadow: 0 30px 60px rgba(0, 0, 0, 0.35), 0 0 50px var(--accent-glow);
}

/* Card Icon */
.sg-card-icon {
  width: 56px; height: 56px;
  border-radius: var(--radius-lg);
  background: rgba(192, 232, 80, 0.06);
  border: 1px solid rgba(192, 232, 80, 0.1);
  display: flex; align-items: center; justify-content: center;
  margin-bottom: 24px;
  font-size: 1.5rem;
  color: var(--accent);
}

/* Card icon with SVG */
.sg-card-icon svg {
  width: 28px;
  height: 28px;
  stroke: var(--accent);
  fill: none;
  stroke-width: 1.5;
}


/* =============================================================
   BUTTONS
   ============================================================= */
.sg-btn-primary {
  display: inline-flex; align-items: center; gap: 8px;
  background: var(--accent-cta);
  color: #141414 !important;
  font-family: var(--font-main) !important;
  font-weight: 700; font-size: 1rem;
  padding: 18px 40px;
  border-radius: var(--radius-md);
  border: none; cursor: pointer;
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  text-decoration: none !important;
  position: relative; overflow: hidden;
}
.sg-btn-primary::after {
  content: '';
  position: absolute; top: 0; left: -100%;
  width: 100%; height: 100%;
  background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.15), transparent);
  transition: left 0.5s;
}
.sg-btn-primary:hover {
  transform: translateY(-2px) scale(1.02);
  box-shadow: 0 15px 40px rgba(192, 232, 80, 0.3);
}
.sg-btn-primary:hover::after { left: 100%; }

.sg-btn-secondary {
  display: inline-flex; align-items: center; gap: 8px;
  background: transparent;
  color: var(--text-primary) !important;
  font-family: var(--font-main) !important;
  font-weight: 600; font-size: 1rem;
  padding: 18px 40px;
  border-radius: var(--radius-md);
  border: 1px solid var(--border-medium);
  cursor: pointer; transition: all 0.3s;
  text-decoration: none !important;
}
.sg-btn-secondary:hover {
  border-color: var(--accent);
  background: rgba(192, 232, 80, 0.04);
  color: var(--accent) !important;
}


/* =============================================================
   GLOW & BACKGROUND EFFECTS
   ============================================================= */
.glow-accent {
  box-shadow: 0 0 30px var(--accent-glow), 0 0 60px rgba(192, 232, 80, 0.06);
}

.bg-radial {
  position: relative;
}
.bg-radial::before {
  content: '';
  position: absolute;
  top: 50%; left: 50%;
  transform: translate(-50%, -50%);
  width: 800px; height: 800px;
  background: radial-gradient(circle, rgba(192, 232, 80, 0.05), transparent 65%);
  border-radius: 50%;
  pointer-events: none;
}

.divider {
  height: 1px;
  background: var(--border-subtle);
  border: none;
  margin: 0;
}


/* =============================================================
   STATS
   ============================================================= */
.sg-stat-number {
  font-size: 3rem;
  font-weight: 700;
  line-height: 1;
  color: var(--accent);
}
.sg-stat-label {
  color: var(--text-muted);
  font-size: 0.78rem;
  text-transform: uppercase;
  letter-spacing: 1.5px;
  margin-top: 8px;
  font-weight: 500;
}


/* =============================================================
   STEP NUMBERS (Metodologia)
   ============================================================= */
.sg-step-number {
  width: 52px; height: 52px; min-width: 52px;
  border-radius: 50%;
  background: var(--accent);
  color: #141414;
  display: flex; align-items: center; justify-content: center;
  font-weight: 700; font-size: 1.3rem;
  box-shadow: 0 8px 25px rgba(192, 232, 80, 0.2);
}

/* Progress line between steps */
.sg-steps-line {
  position: relative;
}
.sg-steps-line::before {
  content: '';
  position: absolute;
  left: 25px;
  top: 52px;
  bottom: 0;
  width: 2px;
  background: var(--border-subtle);
}
.sg-steps-line:last-child::before { display: none; }


/* =============================================================
   HERO
   ============================================================= */
.sg-hero {
  min-height: 92vh;
  display: flex; align-items: center;
  padding: 160px 0 120px;
  position: relative; overflow: hidden;
  background: var(--bg-primary);
}
.sg-hero::before {
  content: '';
  position: absolute; top: -20%; right: -10%;
  width: 700px; height: 700px;
  background: radial-gradient(circle, rgba(192, 232, 80, 0.07), transparent 65%);
  border-radius: 50%; pointer-events: none;
  animation: sgGlow 8s ease-in-out infinite alternate;
}
.sg-hero::after {
  content: '';
  position: absolute; bottom: -15%; left: -10%;
  width: 500px; height: 500px;
  background: radial-gradient(circle, rgba(192, 232, 80, 0.04), transparent 65%);
  border-radius: 50%; pointer-events: none;
  animation: sgGlow 10s ease-in-out infinite alternate-reverse;
}
@keyframes sgGlow {
  0% { transform: translate(0, 0) scale(1); opacity: 0.7; }
  100% { transform: translate(25px, -25px) scale(1.15); opacity: 1; }
}

.sg-hero-content { position: relative; z-index: 2; }
.sg-hero-visual { position: relative; z-index: 2; }
.sg-hero-visual img {
  border-radius: var(--radius-2xl);
  box-shadow: 0 30px 60px rgba(0, 0, 0, 0.5), 0 0 80px rgba(192, 232, 80, 0.04);
}


/* =============================================================
   SCROLL REVEAL & ANIMATIONS
   ============================================================= */
.sg-reveal {
  opacity: 0; transform: translateY(35px);
  transition: opacity 0.7s cubic-bezier(0.4, 0, 0.2, 1), transform 0.7s cubic-bezier(0.4, 0, 0.2, 1);
}
.sg-reveal.active { opacity: 1; transform: translateY(0); }

.sg-stagger > * {
  opacity: 0; transform: translateY(25px);
  transition: opacity 0.6s cubic-bezier(0.4, 0, 0.2, 1), transform 0.6s cubic-bezier(0.4, 0, 0.2, 1);
}
.sg-stagger.active > *:nth-child(1) { transition-delay: 0s; }
.sg-stagger.active > *:nth-child(2) { transition-delay: 0.07s; }
.sg-stagger.active > *:nth-child(3) { transition-delay: 0.14s; }
.sg-stagger.active > *:nth-child(4) { transition-delay: 0.21s; }
.sg-stagger.active > *:nth-child(5) { transition-delay: 0.28s; }
.sg-stagger.active > *:nth-child(6) { transition-delay: 0.35s; }
.sg-stagger.active > *:nth-child(7) { transition-delay: 0.42s; }
.sg-stagger.active > *:nth-child(8) { transition-delay: 0.49s; }
.sg-stagger.active > * { opacity: 1; transform: translateY(0); }


/* =============================================================
   NAVBAR
   ============================================================= */
.nav-scrolled {
  background: rgba(20, 20, 20, 0.92) !important;
  backdrop-filter: blur(20px) !important;
  -webkit-backdrop-filter: blur(20px) !important;
  border-bottom: 1px solid var(--border-subtle) !important;
  box-shadow: 0 4px 30px rgba(0, 0, 0, 0.3) !important;
}


/* =============================================================
   FAQ ACCORDION
   ============================================================= */
.sg-faq {
  background: var(--bg-card);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-xl);
  margin-bottom: 16px;
  overflow: hidden;
  transition: border-color 0.3s;
}
.sg-faq[open] { border-color: rgba(192, 232, 80, 0.2); }
.sg-faq summary {
  padding: 24px 32px;
  font-weight: 600; font-size: 1.05rem;
  cursor: pointer; list-style: none;
  display: flex; justify-content: space-between; align-items: center;
  color: var(--text-primary);
}
.sg-faq summary::-webkit-details-marker { display: none; }
.sg-faq summary::after {
  content: '+';
  font-size: 1.5rem;
  color: var(--accent);
  font-weight: 300;
  transition: transform 0.3s;
}
.sg-faq[open] summary::after { transform: rotate(45deg); }
.sg-faq-body {
  padding: 0 32px 24px;
  color: var(--text-secondary);
  line-height: 1.7;
}


/* =============================================================
   COMPARISON TABLE
   ============================================================= */
.sg-compare-bad {
  border-color: rgba(200, 60, 60, 0.2);
}
.sg-compare-bad:hover {
  border-color: rgba(200, 60, 60, 0.3);
  box-shadow: 0 25px 50px rgba(0, 0, 0, 0.25), 0 0 30px rgba(200, 60, 60, 0.05);
}
.sg-compare-good {
  border-color: rgba(192, 232, 80, 0.2);
}
.sg-compare-good:hover {
  border-color: rgba(192, 232, 80, 0.3);
}


/* =============================================================
   FORM INPUTS
   ============================================================= */
.sg-input {
  width: 100%; padding: 16px 20px;
  background: rgba(255, 255, 255, 0.03);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-md);
  color: var(--text-primary);
  font-family: var(--font-main);
  font-size: 1rem; outline: none;
  transition: border-color 0.3s, box-shadow 0.3s;
}
.sg-input:focus {
  border-color: var(--accent);
  box-shadow: 0 0 0 3px rgba(192, 232, 80, 0.08);
}
.sg-input::placeholder { color: var(--text-muted); }


/* =============================================================
   FOOTER
   ============================================================= */
.sg-footer {
  background: var(--bg-secondary);
  border-top: 1px solid var(--border-subtle);
  padding: 72px 0 32px;
}
.sg-footer a { color: var(--text-secondary); }
.sg-footer a:hover { color: var(--accent); }


/* =============================================================
   SECTION IMAGE
   ============================================================= */
.sg-section-img {
  border-radius: var(--radius-xl);
  box-shadow: 0 20px 50px rgba(0, 0, 0, 0.35);
  margin: 48px auto 0;
  max-width: 900px;
}


/* =============================================================
   CTA SECTION
   ============================================================= */
.sg-cta-section {
  padding: 120px 0;
  position: relative;
  overflow: hidden;
  background: linear-gradient(180deg, var(--bg-primary) 0%, #101010 100%);
}
.sg-cta-section::before {
  content: '';
  position: absolute; top: 50%; left: 50%;
  transform: translate(-50%, -50%);
  width: 800px; height: 800px;
  background: radial-gradient(circle, rgba(192, 232, 80, 0.04), transparent 65%);
  border-radius: 50%; pointer-events: none;
}


/* =============================================================
   GRADIENT TEXT (deprecated, replaced by highlight)
   ============================================================= */
.sg-gradient-text {
  color: var(--text-primary);
}
