/* ============================================
   BANCA VIRTUAL — styles.css (compartilhado)
   Paleta LoL Summoner's Rift adaptada
   Regra 60-30-10
   Cravado 2026-05-26 (Sessão #6)
   ============================================ */

/* ============================================
   1. TOKENS
   ============================================ */
:root {
  /* 60% — Fundos */
  --bg-canvas: #eef2ec;
  --bg-surface: #f7f8f6;
  --bg-deep: #e3e8e3;
  --bg-overlay: rgba(42, 58, 48, 0.04);

  /* 30% — Estrutura */
  --moss-900: #2f4737;
  --moss-700: #4a6a52;
  --moss-500: #7a9e7e;
  --moss-300: #a9c2ad;
  --moss-100: #d8e3da;
  --slate-blue-600: #5d7d94;
  --slate-blue-400: #8aa3b5;
  --slate-blue-200: #cbd9e2;

  /* 10% — Destaques */
  --amber-warm: #d97a3c;
  --amber-soft: #e8a86b;
  --amber-glow: rgba(217, 122, 60, 0.35);
  --gold-attn: #c9a449;
  --crimson-alert: #b8534e;
  --green-pass: #5a8f64;

  /* Texto */
  --text-primary: #2a3a30;
  --text-secondary: #5a6b62;
  --text-muted: #8a9890;
  --text-inverse: #f7f8f6;

  /* Bordas */
  --border-soft: #d8ddd6;
  --border-medium: #c2c9c0;
  --border-strong: #a9b4ad;

  /* Tipografia */
  --font-sans: 'Inter', system-ui, -apple-system, 'Segoe UI', Roboto, sans-serif;
  --font-mono: 'JetBrains Mono', 'Consolas', 'Menlo', monospace;

  --fs-xs: 12px;
  --fs-sm: 14px;
  --fs-base: 16px;
  --fs-md: 18px;
  --fs-lg: 22px;
  --fs-xl: 28px;
  --fs-2xl: 36px;
  --fs-hero: 44px;

  /* Espaçamento */
  --space-1: 4px;  --space-2: 8px;  --space-3: 12px; --space-4: 16px;
  --space-5: 20px; --space-6: 24px; --space-7: 28px; --space-8: 32px; --space-10: 40px;
  --space-12: 48px; --space-16: 64px; --space-20: 80px; --space-24: 96px;

  /* Raios */
  --radius-sm: 6px;
  --radius-md: 10px;
  --radius-lg: 16px;
  --radius-xl: 24px;
  --radius-full: 999px;

  /* Sombras */
  --shadow-1: 0 1px 2px rgba(42, 58, 48, 0.04), 0 1px 1px rgba(42, 58, 48, 0.03);
  --shadow-2: 0 4px 12px rgba(42, 58, 48, 0.06), 0 2px 4px rgba(42, 58, 48, 0.04);
  --shadow-3: 0 12px 32px rgba(42, 58, 48, 0.08), 0 4px 12px rgba(42, 58, 48, 0.05);
  --shadow-glow-amber: 0 0 24px var(--amber-glow);

  /* Easing */
  --ease-out: cubic-bezier(0.16, 1, 0.3, 1);
  --ease-in-out: cubic-bezier(0.4, 0, 0.2, 1);
  --duration-fast: 150ms;
  --duration-base: 250ms;
  --duration-slow: 400ms;
}

@media (min-width: 768px) {
  :root {
    --fs-base: 17px;
    --fs-md: 19px;
    --fs-lg: 26px;
    --fs-xl: 36px;
    --fs-2xl: 52px;
    --fs-hero: 72px;
  }
}

/* ============================================
   2. RESET
   ============================================ */
*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  font-family: var(--font-sans);
  font-size: var(--fs-base);
  line-height: 1.6;
  color: var(--text-primary);
  background: var(--bg-canvas);
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}
img, svg { display: block; max-width: 100%; }
button { font: inherit; cursor: pointer; }
a { color: inherit; text-decoration: none; transition: color var(--duration-fast) var(--ease-out); }
h1, h2, h3, h4 { margin: 0; line-height: 1.2; }
p { margin: 0; }

/* ============================================
   3. LAYOUT
   ============================================ */
.container {
  width: 100%;
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 var(--space-6);
}
.container-narrow {
  max-width: 880px;
}
@media (min-width: 768px) {
  .container { padding: 0 var(--space-10); }
}

.section { padding: var(--space-12) 0; }
@media (min-width: 768px) {
  .section { padding: var(--space-20) 0; }
}

.section-deep { background: var(--bg-deep); }
.section-surface { background: var(--bg-surface); }

/* Variantes ESCURAS — pra criar transições estilo Lever (claro/escuro/verde) */
.section-dark {
  background:
    radial-gradient(circle at 20% 30%, rgba(122,158,126,0.08) 0%, transparent 50%),
    radial-gradient(circle at 80% 70%, rgba(217,122,60,0.05) 0%, transparent 50%),
    linear-gradient(180deg, #1e2b22 0%, #2a3a30 50%, #1e2b22 100%);
  color: var(--text-inverse);
  position: relative;
}
.section-dark .section-title,
.section-dark .section-sub,
.section-dark .eyebrow {
  color: var(--text-inverse);
}
.section-dark .section-title { color: #f7f8f6; }
.section-dark .section-sub { color: rgba(216,227,218,0.75); }
.section-dark .eyebrow { color: var(--moss-500); }

/* Variante MÉTODO — verde-musgo destacado com glow */
.section-method {
  background:
    radial-gradient(circle at 30% 40%, rgba(122,158,126,0.15) 0%, transparent 60%),
    radial-gradient(circle at 75% 60%, rgba(74,106,82,0.2) 0%, transparent 50%),
    linear-gradient(180deg, #243528 0%, #2f4737 50%, #243528 100%);
  color: var(--text-inverse);
  position: relative;
}
.section-method::before {
  content: '';
  position: absolute;
  top: 0; left: 0; right: 0; height: 1px;
  background: linear-gradient(90deg, transparent 0%, var(--moss-500) 50%, transparent 100%);
  opacity: 0.4;
}
.section-method::after {
  content: '';
  position: absolute;
  bottom: 0; left: 0; right: 0; height: 1px;
  background: linear-gradient(90deg, transparent 0%, var(--moss-500) 50%, transparent 100%);
  opacity: 0.4;
}
.section-method .section-title,
.section-method .section-sub,
.section-method .eyebrow {
  color: var(--text-inverse);
}
.section-method .section-title { color: #f7f8f6; }
.section-method .section-sub { color: rgba(216,227,218,0.78); }
.section-method .eyebrow {
  color: var(--moss-300);
  background: rgba(122,158,126,0.15);
  padding: 4px 12px;
  border-radius: 999px;
  border: 1px solid rgba(122,158,126,0.3);
}

.eyebrow {
  display: inline-block;
  font-size: var(--fs-xs);
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.15em;
  color: var(--moss-700);
  margin-bottom: var(--space-4);
}

.section-title {
  font-size: var(--fs-2xl);
  font-weight: 700;
  letter-spacing: -0.02em;
  color: var(--text-primary);
  margin-bottom: var(--space-4);
}

.section-sub {
  font-size: var(--fs-md);
  color: var(--text-secondary);
  max-width: 640px;
  margin-bottom: var(--space-12);
}

.section-header { text-align: center; margin-bottom: var(--space-12); }
.section-header .section-sub { margin-left: auto; margin-right: auto; }

/* ============================================
   4. BOTÕES
   ============================================ */
/* ============================================
   BOTÕES — estilo moderno IA (shine + glow + 3D)
   ============================================ */
.btn {
  position: relative;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: var(--space-2);
  padding: var(--space-4) var(--space-8);
  border-radius: 12px;
  font-weight: 600;
  font-size: var(--fs-base);
  letter-spacing: -0.005em;
  border: none;
  text-decoration: none;
  cursor: pointer;
  white-space: nowrap;
  overflow: hidden;
  isolation: isolate;
  transition: transform 0.25s var(--ease-out), box-shadow 0.25s var(--ease-out), filter 0.25s var(--ease-out);
}

/* Shine sweep (varredura de brilho diagonal no hover) */
.btn::before {
  content: '';
  position: absolute;
  top: 0; left: -100%;
  width: 60%;
  height: 100%;
  background: linear-gradient(115deg,
    transparent 0%,
    rgba(255, 255, 255, 0.25) 50%,
    transparent 100%);
  transition: left 0.7s var(--ease-out);
  pointer-events: none;
  z-index: 1;
}
.btn:hover::before { left: 130%; }
.btn > * { position: relative; z-index: 2; }

/* Botão GO — verde · CTA principal (confiança / entrar) */
.btn-go {
  background:
    radial-gradient(140% 100% at 50% 0%, rgba(255,255,255,0.18) 0%, rgba(255,255,255,0) 60%),
    linear-gradient(180deg, var(--moss-500) 0%, var(--moss-700) 60%, var(--moss-900) 100%);
  color: var(--text-inverse);
  box-shadow:
    0 1px 0 rgba(255,255,255,0.15) inset,
    0 -1px 0 rgba(0,0,0,0.15) inset,
    0 8px 22px -6px rgba(74, 106, 82, 0.55),
    0 2px 6px rgba(74, 106, 82, 0.35),
    0 0 0 1px rgba(74, 106, 82, 0.4);
}
.btn-go:hover {
  transform: translateY(-2px) scale(1.02);
  box-shadow:
    0 1px 0 rgba(255,255,255,0.2) inset,
    0 -1px 0 rgba(0,0,0,0.2) inset,
    0 16px 36px -6px rgba(74, 106, 82, 0.6),
    0 4px 12px rgba(74, 106, 82, 0.4),
    0 0 0 1px rgba(122, 158, 126, 0.6),
    0 0 32px rgba(122, 158, 126, 0.35);
  filter: brightness(1.05);
}
.btn-go:active { transform: translateY(0) scale(0.99); }
.btn-go .arrow { display: inline-block; transition: transform 0.3s var(--ease-out); }
.btn-go:hover .arrow { transform: translateX(4px); }

/* Botão PRIMARY (laranja-âmbar) — exploratório */
.btn-primary {
  background:
    radial-gradient(140% 100% at 50% 0%, rgba(255,255,255,0.2) 0%, rgba(255,255,255,0) 60%),
    linear-gradient(180deg, #e8a86b 0%, var(--amber-warm) 60%, #b85f29 100%);
  color: var(--text-inverse);
  box-shadow:
    0 1px 0 rgba(255,255,255,0.2) inset,
    0 -1px 0 rgba(0,0,0,0.15) inset,
    0 8px 22px -6px rgba(217, 122, 60, 0.55),
    0 2px 6px rgba(217, 122, 60, 0.35),
    0 0 0 1px rgba(217, 122, 60, 0.4);
}
.btn-primary:hover {
  transform: translateY(-2px) scale(1.02);
  box-shadow:
    0 1px 0 rgba(255,255,255,0.25) inset,
    0 -1px 0 rgba(0,0,0,0.2) inset,
    0 16px 36px -6px rgba(217, 122, 60, 0.6),
    0 4px 12px rgba(217, 122, 60, 0.4),
    0 0 0 1px rgba(232, 168, 107, 0.7),
    0 0 32px rgba(217, 122, 60, 0.4);
  filter: brightness(1.05);
}
.btn-primary:active { transform: translateY(0) scale(0.99); }
.btn-primary .arrow { display: inline-block; transition: transform 0.3s var(--ease-out); }
/* Teste Grátis do menu: badge mais escuro + contorno pra destacar */
.header-cta {
  background:
    radial-gradient(140% 100% at 50% 0%, rgba(255,255,255,0.16) 0%, rgba(255,255,255,0) 60%),
    linear-gradient(180deg, #d2884a 0%, #b85f29 55%, #934417 100%);
  border: 2px solid #6f3613;
  box-shadow:
    0 1px 0 rgba(255,255,255,0.18) inset,
    0 8px 20px -6px rgba(150, 70, 20, 0.55),
    0 0 0 1px rgba(111,54,19,0.35);
}
.header-cta:hover { filter: brightness(1.08); border-color: #5c2c0e; }
.btn-primary:hover .arrow { transform: translateX(4px); }

/* Botão SECONDARY (outline verde, mais sutil) */
.btn-secondary {
  background:
    linear-gradient(180deg, rgba(247,248,246,0.7) 0%, rgba(216,227,218,0.4) 100%);
  color: var(--moss-700);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  box-shadow:
    0 1px 0 rgba(255,255,255,0.6) inset,
    0 0 0 1px var(--moss-300),
    0 4px 12px rgba(74, 106, 82, 0.08);
}
.btn-secondary:hover {
  background:
    linear-gradient(180deg, var(--moss-100) 0%, rgba(216,227,218,0.6) 100%);
  box-shadow:
    0 1px 0 rgba(255,255,255,0.7) inset,
    0 0 0 1px var(--moss-500),
    0 8px 20px rgba(74, 106, 82, 0.15),
    0 0 24px rgba(122, 158, 126, 0.18);
  transform: translateY(-2px);
  color: var(--moss-900);
}
.btn-secondary:active { transform: translateY(0); }

.btn-ghost {
  background: transparent;
  color: var(--text-secondary);
  padding: var(--space-3) var(--space-4);
}
.btn-ghost:hover { color: var(--moss-700); }

.btn-large {
  padding: var(--space-5) var(--space-10);
  font-size: var(--fs-md);
}

@keyframes pulse-arrow {
  0%, 100% { transform: translateX(0); opacity: 0.85; }
  50% { transform: translateX(4px); opacity: 1; }
}

/* ============================================
   5. HEADER
   ============================================ */
.site-header {
  position: sticky;
  top: 0;
  z-index: 100;
  background: rgba(247, 248, 246, 0.85);
  backdrop-filter: saturate(180%) blur(12px);
  -webkit-backdrop-filter: saturate(180%) blur(12px);
  border-bottom: 1px solid transparent;
  transition: border-color var(--duration-base) var(--ease-out),
              box-shadow var(--duration-base) var(--ease-out),
              padding var(--duration-base) var(--ease-out);
}
.site-header.scrolled {
  border-bottom-color: var(--border-soft);
  box-shadow: var(--shadow-1);
}

.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: var(--space-6);
  padding: var(--space-4) 0;
  transition: padding var(--duration-base) var(--ease-out);
  position: relative;
}
.site-header.scrolled .header-inner { padding: var(--space-3) 0; }

.logo {
  display: inline-flex;
  align-items: center;
  gap: var(--space-2);
  font-weight: 700;
  font-size: var(--fs-lg);
  color: var(--moss-700);
  letter-spacing: -0.02em;
}
.logo-mark {
  width: 28px; height: 28px;
  border-radius: 8px;
  background: linear-gradient(135deg, var(--moss-500), var(--moss-700));
  display: inline-flex;
  align-items: center;
  justify-content: center;
  color: var(--bg-surface);
  font-size: 14px;
  font-weight: 800;
}

.nav-menu {
  display: none;
  gap: var(--space-4);
  list-style: none;
  padding: 0;
  margin: 0;
}
@media (min-width: 1024px) {
  .nav-menu { display: flex; }
}
.nav-menu a {
  color: var(--text-secondary);
  font-weight: 600;
  font-size: var(--fs-sm);
  padding: 6px 15px;
  border: 1.5px solid var(--border-soft, #ddd6c4);
  border-radius: var(--radius-full);
  transition: color .18s, border-color .18s, background .18s;
}
.nav-menu a:hover, .nav-menu a.active {
  color: var(--moss-700);
  border-color: var(--moss-500);
  background: rgba(122,158,126,.1);
}

.header-cta { font-size: var(--fs-sm); padding: var(--space-3) var(--space-5); }

.nav-toggle {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 40px; height: 40px;
  background: transparent;
  border: none;
  color: var(--moss-700);
  border-radius: var(--radius-md);
}
@media (min-width: 1024px) { .nav-toggle { display: none; } }
.nav-toggle:hover { background: var(--bg-overlay); }

.mobile-menu {
  display: none;
  position: absolute;
  top: 100%;
  left: 0; right: 0;
  background: var(--bg-surface);
  border-bottom: 1px solid var(--border-soft);
  padding: var(--space-4) var(--space-6);
  flex-direction: column;
  gap: var(--space-4);
  box-shadow: var(--shadow-2);
}
.mobile-menu.open { display: flex; }
.mobile-menu a {
  color: var(--text-primary);
  font-weight: 600;
  padding: var(--space-3) 0;
  border-bottom: 1px solid var(--border-soft);
}
.mobile-menu a:last-child { border-bottom: none; }

/* ============================================
   6. FOOTER
   ============================================ */
.site-footer {
  background: var(--text-primary);
  color: var(--text-inverse);
  padding: var(--space-16) 0 var(--space-8);
}
.footer-top {
  display: grid;
  grid-template-columns: 1fr;
  gap: var(--space-8);
  margin-bottom: var(--space-10);
}
@media (min-width: 768px) {
  .footer-top { grid-template-columns: 2fr 1fr 1fr 1fr 1fr; gap: var(--space-6); }
}
.footer-brand .logo { color: var(--text-inverse); margin-bottom: var(--space-3); }
.footer-tag {
  font-size: var(--fs-sm);
  opacity: 0.7;
  max-width: 240px;
  line-height: 1.5;
}
.footer-col h4 {
  font-size: var(--fs-xs);
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.15em;
  margin-bottom: var(--space-4);
  opacity: 0.6;
}
.footer-col ul { list-style: none; padding: 0; margin: 0; display: grid; gap: var(--space-3); }
.footer-col a {
  font-size: var(--fs-sm);
  opacity: 0.75;
  transition: opacity var(--duration-fast) var(--ease-out);
}
.footer-col a:hover { opacity: 1; }
.footer-bottom {
  padding-top: var(--space-6);
  border-top: 1px solid rgba(247, 248, 246, 0.1);
  display: flex;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: var(--space-4);
  font-size: var(--fs-xs);
  opacity: 0.6;
  letter-spacing: 0.02em;
}

/* ============================================
   7. PILL / BADGE
   ============================================ */
.pill {
  display: inline-flex;
  align-items: center;
  gap: var(--space-2);
  padding: var(--space-2) var(--space-4);
  background: var(--moss-100);
  border: 1px solid var(--moss-300);
  border-radius: var(--radius-full);
  color: var(--moss-700);
  font-size: var(--fs-xs);
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.12em;
}
.pill-green { background: rgba(90, 143, 100, 0.12); color: var(--green-pass); border-color: rgba(90, 143, 100, 0.3); }
.pill-amber { background: rgba(201, 164, 73, 0.12); color: var(--gold-attn); border-color: rgba(201, 164, 73, 0.3); }
.pill-red   { background: rgba(184, 83, 78, 0.12); color: var(--crimson-alert); border-color: rgba(184, 83, 78, 0.3); }

/* ============================================
   8. CARDS
   ============================================ */
.card {
  background: var(--bg-surface);
  border: 1px solid var(--border-soft);
  border-radius: var(--radius-lg);
  padding: var(--space-6);
  box-shadow: var(--shadow-1);
  transition: all var(--duration-base) var(--ease-out);
}
.card:hover {
  box-shadow: var(--shadow-2);
  border-color: var(--moss-300);
  transform: translateY(-2px);
}

/* ============================================
   9. ACESSIBILIDADE
   ============================================ */
*:focus-visible {
  outline: 2px solid var(--moss-500);
  outline-offset: 3px;
  border-radius: 2px;
}

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