/* ========================================================
   DESIGN SYSTEM OFICIAL - TABLESY B2B SAAS
   Paleta: Cream, Sage, Champagne, Deep Black, Emerald
   ======================================================== */

@import url('https://fonts.googleapis.com/css2?family=Outfit:wght@400;500;600;700;800&family=Plus+Jakarta+Sans:wght@300;400;500;600;700&display=swap');

:root {
  --font-heading: 'Outfit', 'Plus Jakarta Sans', -apple-system, BlinkMacSystemFont, sans-serif;
  --font-body: 'Plus Jakarta Sans', -apple-system, BlinkMacSystemFont, sans-serif;

  /* Paleta Executiva Padrão Tablesy */
  --c-sage: #b2b39f;
  --c-champagne: #c8c9b5;
  --c-cream: #dedfc5;
  --c-light-glow: #f5f7bd;
  --c-graphite: #3d423c;

  /* Fundo Noturno Premium */
  --bg-deep: #0B0D0F;
  --bg-surface: #121417;
  --bg-card: rgba(18, 20, 23, 0.92);
  --bg-card-hover: rgba(26, 30, 36, 0.98);

  /* Bordas Refinadas */
  --border-subtle: rgba(255, 255, 255, 0.08);
  --border-medium: rgba(255, 255, 255, 0.16);
  --border-glow: rgba(222, 223, 197, 0.28);

  /* Acentos de Conversão e Destaque */
  --primary: #dedfc5; /* Cream executivo */
  --primary-glow: rgba(245, 247, 189, 0.25);
  --emerald: #10B981;
  --emerald-glow: rgba(16, 185, 129, 0.25);
  --rose: #EF4444;

  /* Tipografia */
  --text-bright: #FFFFFF;
  --text-main: #E5E7EB;
  --text-muted: #9CA3AF;
  --text-dim: #6B7280;

  /* Sombras & Formas */
  --shadow-sm: 0 4px 12px rgba(0, 0, 0, 0.4);
  --shadow-md: 0 12px 32px -8px rgba(0, 0, 0, 0.7);
  --shadow-lg: 0 24px 60px -12px rgba(0, 0, 0, 0.85);
  --shadow-glow: 0 0 35px -5px var(--primary-glow);

  --radius-sm: 8px;
  --radius-md: 14px;
  --radius-lg: 20px;
  --radius-full: 9999px;

  --transition: all 0.25s cubic-bezier(0.16, 1, 0.3, 1);
}

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

/* Custom Scrollbar Premium Tablesy */
::-webkit-scrollbar {
  width: 8px;
  height: 8px;
}

::-webkit-scrollbar-track {
  background: var(--bg-deep);
}

::-webkit-scrollbar-thumb {
  background: rgba(222, 223, 197, 0.2);
  border-radius: var(--radius-full);
  border: 2px solid var(--bg-deep);
}

::-webkit-scrollbar-thumb:hover {
  background: rgba(222, 223, 197, 0.45);
}

/* Firefox */
* {
  scrollbar-width: thin;
  scrollbar-color: rgba(222, 223, 197, 0.25) var(--bg-deep);
}

html {
  scroll-behavior: smooth;
  font-size: 16px;
  background-color: var(--bg-deep);
  color: var(--text-main);
  font-family: var(--font-body);
  overflow-x: hidden;
}

body {
  position: relative;
  background: radial-gradient(circle at 15% 15%, rgba(222, 223, 197, 0.04) 0%, transparent 45%),
              radial-gradient(circle at 85% 30%, rgba(16, 185, 129, 0.03) 0%, transparent 45%),
              var(--bg-deep);
  min-height: 100vh;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}

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

/* Tipografia Base */
h1, h2, h3, h4, h5, h6 {
  font-family: var(--font-heading);
  color: var(--text-bright);
  font-weight: 700;
  line-height: 1.2;
}

p {
  color: var(--text-muted);
}

a {
  text-decoration: none;
  color: inherit;
  transition: var(--transition);
}

/* Botões */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  font-family: var(--font-body);
  font-weight: 600;
  font-size: 0.95rem;
  padding: 12px 24px;
  border-radius: var(--radius-sm);
  cursor: pointer;
  border: 1px solid transparent;
  transition: var(--transition);
  text-align: center;
}

.btn-primary {
  background: #FFFFFF;
  color: #0B0D0F;
  border-color: #FFFFFF;
  box-shadow: none;
}

.btn-primary:hover {
  background: var(--c-cream);
  border-color: var(--c-cream);
  transform: translateY(-2px);
  box-shadow: none;
}

.btn-emerald {
  background: var(--emerald);
  color: #FFFFFF;
  border-color: var(--emerald);
  box-shadow: none;
}

.btn-emerald:hover {
  background: #059669;
  border-color: #059669;
  transform: translateY(-2px);
  box-shadow: none;
}

.btn-secondary {
  background: rgba(255, 255, 255, 0.05);
  color: var(--text-bright);
  border-color: var(--border-medium);
  backdrop-filter: none;
  box-shadow: none;
}

.btn-secondary:hover {
  background: rgba(255, 255, 255, 0.1);
  border-color: var(--c-cream);
  transform: translateY(-2px);
  box-shadow: none;
}

.btn-sm {
  padding: 8px 16px;
  font-size: 0.88rem;
}

.btn-lg {
  padding: 16px 32px;
  font-size: 1.05rem;
  border-radius: 10px;
}

/* Barra de Navegação Superior */
.navbar {
  position: sticky;
  top: 0;
  left: 0;
  width: 100%;
  z-index: 1000;
  background: transparent;
  border-bottom: 1px solid transparent;
  transition: all 0.25s cubic-bezier(0.16, 1, 0.3, 1);
}

.navbar.scrolled {
  background: rgba(11, 13, 15, 0.92);
  backdrop-filter: blur(16px);
  border-bottom: 1px solid var(--border-subtle);
  box-shadow: 0 10px 30px -10px rgba(0, 0, 0, 0.8);
}

.navbar .nav-wrapper {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 74px;
  width: 100%;
  max-width: 100%;
  padding: 0 clamp(60px, 5.5vw, 120px);
  position: relative;
  box-sizing: border-box;
}

.brand-logo {
  display: flex;
  align-items: center;
  gap: 10px;
}

.brand-logo img {
  height: 36px;
  width: auto;
  object-fit: contain;
}

.navbar .nav-links {
  position: absolute;
  left: 50%;
  transform: translateX(-50%);
  display: flex;
  list-style: none;
  gap: 36px;
}

.nav-links a {
  font-size: 0.95rem;
  color: var(--text-muted);
  font-weight: 500;
}

.nav-links a:hover,
.nav-links a.active {
  color: var(--c-cream);
}

.nav-actions {
  display: flex;
  align-items: center;
  gap: 12px;
}

/* ========================================================
   MENU MOBILE HAMBURGUER (3 BARRINHAS) & DRAWER
   ======================================================== */
.menu-toggle {
  display: none;
  background: transparent;
  border: 1px solid rgba(255, 255, 255, 0.12);
  cursor: pointer;
  padding: 8px;
  width: 40px;
  height: 40px;
  border-radius: 8px;
  align-items: center;
  justify-content: center;
  flex-direction: column;
  gap: 5px;
  transition: all 0.2s ease;
  z-index: 1002;
}

.menu-toggle:hover,
.menu-toggle:focus {
  background: rgba(255, 255, 255, 0.08);
  border-color: rgba(222, 223, 197, 0.35);
}

.menu-toggle span {
  display: block;
  width: 20px;
  height: 2px;
  background-color: #FFFFFF;
  border-radius: 2px;
  transition: transform 0.25s cubic-bezier(0.16, 1, 0.3, 1),
              opacity 0.2s ease,
              background-color 0.2s ease;
}

/* Animação das 3 barrinhas virando X quando aberto */
.menu-toggle.active span:nth-child(1) {
  transform: translateY(7px) rotate(45deg);
  background-color: var(--c-cream);
}

.menu-toggle.active span:nth-child(2) {
  opacity: 0;
  transform: translateX(-8px);
}

.menu-toggle.active span:nth-child(3) {
  transform: translateY(-7px) rotate(-45deg);
  background-color: var(--c-cream);
}

/* Painel do Menu Mobile */
.mobile-menu {
  position: fixed;
  top: 74px;
  left: 0;
  width: 100%;
  background: #0B0D0F;
  border-bottom: 1px solid rgba(222, 223, 197, 0.15);
  box-shadow: 0 30px 60px rgba(0, 0, 0, 0.95);
  z-index: 999;
  max-height: calc(100vh - 74px);
  max-height: calc(100dvh - 74px);
  overflow-y: auto;
  opacity: 0;
  visibility: hidden;
  transform: translateY(-10px);
  transition: opacity 0.22s ease, transform 0.22s ease, visibility 0.22s;
  pointer-events: none;
}

.mobile-menu.open {
  opacity: 1;
  visibility: visible;
  transform: translateY(0);
  pointer-events: auto;
}

.mobile-menu-inner {
  padding: 24px 20px 32px;
  display: flex;
  flex-direction: column;
  gap: 20px;
  max-width: 480px;
  margin: 0 auto;
}

.mobile-nav-links {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 6px;
  margin: 0;
  padding: 0;
}

.mobile-nav-links li a {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 14px 16px;
  font-size: 1.02rem;
  font-weight: 600;
  color: var(--text-muted);
  border-radius: var(--radius-sm);
  background: rgba(255, 255, 255, 0.02);
  border: 1px solid transparent;
  transition: all 0.2s ease;
}

.mobile-nav-links li a:hover,
.mobile-nav-links li a.active {
  color: var(--c-cream);
  background: rgba(222, 223, 197, 0.06);
  border-color: rgba(222, 223, 197, 0.15);
  padding-left: 20px;
}

.mobile-nav-links li a::after {
  content: '➔';
  font-size: 0.82rem;
  opacity: 0.4;
  transition: transform 0.2s ease, opacity 0.2s ease;
}

.mobile-nav-links li a:hover::after,
.mobile-nav-links li a.active::after {
  opacity: 1;
  transform: translateX(3px);
  color: var(--c-cream);
}

.mobile-menu-divider {
  height: 1px;
  width: 100%;
  background: var(--border-subtle);
  margin: 4px 0;
}

.mobile-nav-actions {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.mobile-nav-actions .btn {
  width: 100%;
  padding: 13px 20px;
  font-size: 0.95rem;
}

/* Pílula de Destaque */
.badge-pill {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 6px 14px;
  background: rgba(222, 223, 197, 0.08);
  border: 1px solid rgba(222, 223, 197, 0.2);
  border-radius: var(--radius-full);
  font-size: 0.85rem;
  font-weight: 600;
  color: var(--c-cream);
  margin-bottom: 24px;
}

.badge-pill .dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--emerald);
  box-shadow: 0 0 8px var(--emerald);
}

/* Gradientes de Texto */
.gradient-cream {
  background: linear-gradient(135deg, #FFFFFF 20%, var(--c-cream) 70%, var(--c-sage) 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
}

.gradient-accent {
  background: linear-gradient(135deg, var(--c-cream) 0%, var(--c-light-glow) 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
}

/* Cabeçalho de Seção */
.section {
  padding: 96px 0;
  position: relative;
}

.section-header {
  text-align: center;
  max-width: 720px;
  margin: 0 auto 60px;
}

.section-tag {
  display: inline-block;
  font-size: 0.82rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: var(--c-sage);
  margin-bottom: 12px;
}

.section-title {
  font-size: 2.4rem;
  margin-bottom: 16px;
  letter-spacing: -0.02em;
}

.section-desc {
  font-size: 1.1rem;
  color: var(--text-muted);
}

/* Footer Oficial */
.footer {
  border-top: 1px solid var(--border-subtle);
  background: var(--bg-surface);
  padding: 32px 0 18px;
  width: 100%;
}

.footer-container {
  max-width: 1140px;
  margin: 0 auto;
  padding: 0 24px;
  width: 100%;
  box-sizing: border-box;
}

.footer-top {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  margin-bottom: 22px;
}

.footer-brand {
  max-width: 340px;
}

.footer-brand p {
  font-size: 0.86rem;
  color: var(--text-muted);
  line-height: 1.45;
  margin-top: 8px;
}

.footer-access h5 {
  font-size: 0.88rem;
  font-weight: 700;
  color: var(--text-bright);
  text-transform: uppercase;
  letter-spacing: 0.06em;
  margin-bottom: 10px;
  text-align: right;
}

.footer-access-links {
  list-style: none;
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  gap: 8px;
}

.footer-access-links a {
  color: var(--text-muted);
  font-size: 0.86rem;
  transition: var(--transition);
}

.footer-access-links a:hover {
  color: var(--c-cream);
}

.footer-grid {
  display: grid;
  grid-template-columns: 2fr repeat(3, 1fr);
  gap: 48px;
  margin-bottom: 56px;
}

.footer-col h5 {
  font-size: 0.95rem;
  font-weight: 700;
  color: var(--text-bright);
  text-transform: uppercase;
  letter-spacing: 0.05em;
  margin-bottom: 20px;
}

.footer-col ul {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.footer-col ul a {
  color: var(--text-muted);
  font-size: 0.92rem;
}

.footer-col ul a:hover {
  color: var(--c-cream);
}

.footer-divider {
  width: 100%;
  height: 1px;
  background-color: var(--border-subtle);
  margin: 0;
}

.footer-bottom {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding-top: 16px;
  font-size: 0.82rem;
  color: var(--text-dim);
  width: 100%;
}

.footer-copy {
  margin: 0;
  text-align: left;
  flex: 1;
}

.footer-dev {
  margin: 0;
  text-align: center;
  flex: 1;
}

.footer-dev a {
  color: var(--c-cream);
  font-weight: 600;
  text-decoration: none;
  transition: var(--transition);
}

.footer-dev a:hover {
  text-decoration: underline;
  color: #fff;
}

.footer-slogan {
  margin: 0;
  text-align: right;
  flex: 1;
  color: var(--text-dim);
}

@media (max-width: 768px) {
  .footer-container {
    padding: 0 20px;
  }
  .footer-top {
    flex-direction: column;
    gap: 20px;
  }
  .footer-access h5,
  .footer-access-links {
    align-items: flex-start;
    text-align: left;
  }
  .footer-bottom {
    flex-direction: column;
    gap: 10px;
    text-align: center;
  }
  .footer-copy,
  .footer-dev,
  .footer-slogan {
    text-align: center;
  }
}

/* Responsividade Base */
@media (max-width: 992px) {
  .navbar .nav-wrapper {
    padding: 0 24px;
  }
  .navbar .nav-links {
    display: none;
  }
  .nav-actions .btn {
    display: none;
  }
  .menu-toggle {
    display: flex;
  }
  .footer-grid {
    grid-template-columns: 1fr 1fr;
    gap: 36px;
  }
}

@media (max-width: 640px) {
  .navbar {
    background: rgba(11, 13, 15, 0.98);
    backdrop-filter: blur(12px);
    border-bottom: 1px solid rgba(222, 223, 197, 0.08);
  }

  .navbar .nav-wrapper {
    padding: 0 16px;
    height: 60px;
  }

  .brand-logo img {
    height: 28px;
  }

  .nav-actions {
    gap: 0;
  }

  .nav-actions .btn {
    display: none !important;
  }

  .menu-toggle {
    width: 38px;
    height: 38px;
    padding: 7px;
    gap: 4px;
  }

  .menu-toggle span {
    width: 20px;
  }

  .mobile-menu {
    top: 60px;
    max-height: calc(100vh - 60px);
    max-height: calc(100dvh - 60px);
  }

  .mobile-menu-inner {
    padding: 20px 16px 28px;
  }

  .section {
    padding: 56px 0;
  }

  .section-title {
    font-size: 1.85rem;
  }

  .footer-grid {
    grid-template-columns: 1fr;
  }

  .footer-bottom {
    flex-direction: column;
    gap: 12px;
    text-align: center;
  }
}

