/* Base das paginas de marketing.
 *
 * As paginas de produto carregavam o `styles.css` inteiro -- 246 KB do painel
 * logado -- para usar 24 regras dele. Isto e o recorte: tokens de cor, reset,
 * botao e a navegacao da landing.
 *
 * A lista nao foi adivinhada. Foi o navegador quem respondeu, perguntando a
 * cada regra do styles.css se ela casa com algum elemento das duas paginas.
 *
 * Consequencia de manter isto: pagina de marketing so pode usar o que esta
 * aqui e no `landing.css`. Uma classe do painel numa pagina de produto vai
 * aparecer sem estilo -- e e melhor assim do que voltar a carregar o painel
 * inteiro para desenhar um rodape.
 */
:root {
  
  --bg: #09090b;
  --bg-surface: #111113;
  --bg-elevated: #18181b;
  --bg-overlay: #1f1f23;
  --bg-hover: #27272a;
  --bg-active: #2e2e33;
  --bg-panel: #111113;

  
  --line: rgba(255,255,255,0.10);
  --border-subtle: rgba(255,255,255,0.06);
  --border-default: rgba(255,255,255,0.10);
  --border-strong: rgba(255,255,255,0.16);
  --border-accent: rgba(52,211,153,0.3);

  
  --text: #fafafa;
  --text-secondary: #a1a1aa;
  --muted: #71717a;
  --text-disabled: #52525b;

  
  --accent: #34d399;
  --accent-strong: #6ee7b7;
  --accent-warm: #f59e0b;
  --accent-muted: rgba(52,211,153,0.15);
  --accent-subtle: rgba(52,211,153,0.08);

  
  --success: #22c55e;
  --success-muted: rgba(34,197,94,0.15);
  --warning: #f59e0b;
  --warning-muted: rgba(245,158,11,0.15);
  --danger: #ef4444;
  --danger-muted: rgba(239,68,68,0.15);
  --info: #3b82f6;
  --info-muted: rgba(59,130,246,0.15);

  
  --shadow-sm: 0 1px 2px rgba(0,0,0,0.3);
  --shadow: 0 4px 12px rgba(0,0,0,0.4);
  --shadow-lg: 0 8px 32px rgba(0,0,0,0.5);
  --shadow-glow: 0 0 20px rgba(52,211,153,0.15);

  
  --radius-sm: 6px;
  --radius-md: 8px;
  --radius-lg: 12px;
  --radius-xl: 16px;
  --radius-full: 9999px;

  
  --font-sans: 'Inter', -apple-system, BlinkMacSystemFont, sans-serif;
  --font-display: 'Space Grotesk', sans-serif;
  --font-mono: 'JetBrains Mono', 'IBM Plex Mono', monospace;

  --text-xs: 11px;
  --text-sm: 13px;
  --text-base: 14px;
  --text-md: 15px;
  --text-lg: 16px;
  --text-xl: 18px;
  --text-2xl: 22px;
  --text-3xl: 28px;
  --text-4xl: 36px;
  --text-5xl: 48px;

  
  --space-1: 4px;
  --space-2: 8px;
  --space-3: 12px;
  --space-4: 16px;
  --space-5: 20px;
  --space-6: 24px;
  --space-8: 32px;
  --space-10: 40px;
  --space-12: 48px;
  --space-16: 64px;

  
  --transition-fast: 120ms ease;
  --transition-base: 200ms ease;
  --transition-slow: 300ms ease;

  
  --sidebar-width: 240px;
  --sidebar-collapsed: 64px;
  --header-height: 52px;
}
* { box-sizing: border-box; }
body {
  margin: 0;
  min-height: 100vh;
  font-family: var(--font-sans);
  font-size: var(--text-base);
  line-height: 1.5;
  color: var(--text);
  background: var(--bg);
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}
[data-lucide] {
  width: 18px;
  height: 18px;
}
.btn {
  display: inline-flex;
  align-items: center;
  gap: var(--space-2);
  padding: 8px 16px;
  border-radius: var(--radius-md);
  font-family: var(--font-sans);
  font-size: var(--text-sm);
  font-weight: 500;
  border: none;
  cursor: pointer;
  transition: all var(--transition-fast);
  line-height: 1.4;
  white-space: nowrap;
}
.btn-primary {
  background: var(--accent);
  color: var(--bg);
}
.btn-secondary {
  background: var(--bg-elevated);
  color: var(--text);
  border: 1px solid var(--border-default);
}
.landing-hero {
  padding: var(--space-16) var(--space-8);
  text-align: center;
  position: relative;
  overflow: hidden;
}
.landing-hero > *:not(.hero-canvas) {
  position: relative;
  z-index: 1;
}
.landing-hero::before {
  content: '';
  position: absolute;
  top: -100px;
  left: 50%;
  transform: translateX(-50%);
  width: 600px;
  height: 400px;
  background: radial-gradient(ellipse, rgba(52,211,153,0.12) 0%, transparent 70%);
  pointer-events: none;
}
.landing-hero .eyebrow {
  font-size: var(--text-xs);
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: var(--accent);
  margin-bottom: var(--space-4);
  display: inline-flex;
  align-items: center;
  gap: var(--space-2);
  padding: 4px 14px;
  border-radius: var(--radius-full);
  background: var(--accent-muted);
}
.landing-hero h1 {
  font-family: var(--font-display);
  font-size: 44px;
  font-weight: 700;
  letter-spacing: -0.035em;
  line-height: 1.15;
  max-width: 680px;
  margin: 0 auto var(--space-5);
  color: var(--text);
}
.landing-hero .subtitle {
  color: var(--text-secondary);
  font-size: var(--text-lg);
  max-width: 520px;
  margin: 0 auto var(--space-8);
  line-height: 1.6;
}
.landing-cta-row {
  display: flex;
  gap: var(--space-3);
  justify-content: center;
  margin-bottom: var(--space-10);
}
.landing-stats {
  display: flex;
  justify-content: center;
  gap: var(--space-8);
  flex-wrap: wrap;
}
.landing-stat {
  text-align: center;
}
.landing-stat-value {
  font-size: var(--text-2xl);
  font-weight: 700;
  font-family: var(--font-display);
}
.landing-stat-label {
  font-size: var(--text-xs);
  color: var(--muted);
}
.landing-features {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: var(--space-4);
  padding: 0 var(--space-8) var(--space-8);
}
.landing-feature-card {
  background: var(--bg-surface);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-lg);
  padding: var(--space-6);
  transition: all var(--transition-base);
}
.landing-feature-card:hover {
  border-color: var(--border-accent);
  transform: translateY(-2px);
  box-shadow: var(--shadow-glow);
}
.landing-feature-icon {
  width: 40px;
  height: 40px;
  border-radius: var(--radius-md);
  background: var(--accent-muted);
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: var(--space-4);
  color: var(--accent);
}
.landing-feature-icon svg { width: 20px; height: 20px; }
.landing-feature-card h3 {
  font-size: var(--text-md);
  font-weight: 600;
  margin-bottom: var(--space-2);
}
.landing-feature-card p {
  color: var(--text-secondary);
  font-size: var(--text-sm);
  line-height: 1.6;
  margin: 0;
}
.landing-header {
  display: flex;
  align-items: center;
  padding: var(--space-4) var(--space-8);
  border-bottom: 1px solid var(--border-subtle);
}
.landing-header-brand {
  display: flex;
  align-items: center;
  gap: var(--space-3);
  font-family: var(--font-display);
  font-weight: 600;
  font-size: var(--text-md);
}
.landing-header-nav {
  margin-left: auto;
  display: flex;
  align-items: center;
  gap: var(--space-6);
}
.landing-header-nav a {
  color: var(--text-secondary);
  text-decoration: none;
  font-size: var(--text-sm);
  font-weight: 500;
}
.landing-header-nav a:hover { color: var(--text); }
@media (max-width: 960px) {
.landing-features { grid-template-columns: 1fr; }
.landing-hero h1 { font-size: 32px; }
.landing-stats { gap: var(--space-4); }
}
@keyframes fade-up {
  from { opacity: 0; transform: translateY(8px); }
  to { opacity: 1; transform: translateY(0); }
}
.landing-pricing {
  margin-top: var(--space-12, 64px);
  padding: var(--space-8, 48px) 0;
}
.landing-pricing-header {
  text-align: center;
  margin-bottom: var(--space-8, 48px);
}
.landing-pricing-header h2 {
  margin-top: var(--space-2, 8px);
}
.landing-pricing-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 24px;
  max-width: 960px;
  margin: 0 auto;
}
.landing-pricing-carousel {
  position: relative;
}
.landing-pricing-arrow {
  display: none;
}
@media (max-width: 768px) {
.landing-pricing-carousel {
    margin: 0 -20px;
    padding: 0 20px;
  }
.landing-pricing-grid {
    display: grid;
    grid-auto-flow: column;
    grid-auto-columns: minmax(280px, 86vw);
    grid-template-columns: none;
    gap: 16px;
    max-width: none;
    margin: 0;
    overflow-x: auto;
    overflow-y: visible;
    padding: 4px 0 10px;
    scroll-snap-type: x proximity;
    -webkit-overflow-scrolling: touch;
    scrollbar-width: none;
  }
.landing-pricing-grid::-webkit-scrollbar {
    display: none;
  }
.landing-pricing-grid .pricing-card {
    scroll-snap-align: start;
  }
.landing-pricing-arrow {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    width: 38px;
    height: 38px;
    border-radius: 999px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    z-index: 2;
    border: 1px solid rgba(255,255,255,0.08);
    background: rgba(8, 12, 18, 0.88);
    color: var(--text);
    box-shadow: 0 10px 24px rgba(0,0,0,0.22);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
  }
.landing-pricing-arrow[disabled] {
    opacity: 0.34;
    pointer-events: none;
  }
.landing-pricing-arrow--prev {
    left: 8px;
  }
.landing-pricing-arrow--next {
    right: 8px;
  }
}
.landing-footer {
  border-top: 1px solid var(--border-subtle);
  padding: 48px 48px 28px;
  margin-top: 48px;
}
.landing-footer-grid {
  display: grid;
  grid-template-columns: 1.6fr repeat(3, 1fr);
  gap: 32px;
  margin-bottom: 32px;
}
.landing-footer-brand p {
  margin: 0;
  color: var(--muted);
  font-size: var(--text-sm);
  line-height: 1.55;
  max-width: 300px;
}
.landing-footer-col {
  display: flex;
  flex-direction: column;
  gap: 10px;
}
.landing-footer-col strong {
  font-size: var(--text-sm);
  margin-bottom: 4px;
}
.landing-footer-col a {
  color: var(--muted);
  text-decoration: none;
  font-size: var(--text-sm);
  transition: color var(--transition-fast);
}
.landing-footer-col a:hover {
  color: var(--text);
}
.landing-footer-bottom {
  border-top: 1px solid var(--border-subtle);
  padding-top: 20px;
  text-align: center;
  color: var(--text-disabled);
  font-size: var(--text-xs);
}
@media (max-width: 720px) {
.landing-footer-grid {
    grid-template-columns: 1fr 1fr;
    gap: 24px;
  }
}
@keyframes loadingSpin {
  to { transform: rotate(360deg); }
}
@keyframes loadingPulse {
  0%, 100% { opacity: 1; }
  50% { opacity: 0.6; }
}
.landing-hamburger {
  display: none;
  flex-direction: column;
  justify-content: center;
  gap: 5px;
  width: 40px;
  height: 40px;
  padding: 8px;
  margin-left: auto;
  background: none;
  border: 1px solid var(--border-subtle);
  border-radius: 8px;
  cursor: pointer;
  flex-shrink: 0;
}
.landing-hamburger span {
  display: block;
  height: 2px;
  border-radius: 2px;
  background: var(--text);
  transition: transform 0.22s ease, opacity 0.22s ease, width 0.22s ease;
}
.landing-hamburger.open span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.landing-hamburger.open span:nth-child(2) { opacity: 0; width: 0; }
.landing-hamburger.open span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }
.landing-mobile-menu {
  display: none;
  position: fixed;
  inset: 0;
  top: 72px;          
  z-index: 200;
  background: rgba(5,7,10,0.97);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  flex-direction: column;
  padding: 24px 20px 32px;
  gap: 4px;
  overflow-y: auto;
  border-top: 1px solid var(--border-subtle);
  transform: translateY(-8px);
  opacity: 0;
  transition: opacity 0.2s ease, transform 0.2s ease;
  pointer-events: none;
}
.landing-mobile-menu.open {
  display: flex;
  opacity: 1;
  transform: translateY(0);
  pointer-events: auto;
}
.landing-mobile-link {
  display: block;
  padding: 14px 4px;
  color: var(--text-secondary);
  text-decoration: none;
  font-size: 1.05rem;
  font-weight: 500;
  border-bottom: 1px solid var(--border-subtle);
  transition: color 0.15s;
}
.landing-mobile-link:last-of-type { border-bottom: none; }
.landing-mobile-link:hover { color: var(--text); }
.landing-mobile-actions {
  display: flex;
  gap: 12px;
  margin-top: 24px;
}
.landing-mobile-actions .btn { flex: 1; justify-content: center; }
@media (max-width: 900px) {
.landing-hero {
    padding: 56px 20px 36px;
  }
.landing-hero::before {
    width: 360px;
    height: 260px;
    top: -40px;
  }
.landing-hero h1 {
    font-size: clamp(2rem, 8vw, 3rem);
    line-height: 1.06;
    max-width: 100%;
  }
.landing-hero .subtitle {
    font-size: 0.98rem;
    max-width: 100%;
    margin-bottom: 24px;
  }
.landing-cta-row {
    flex-direction: column;
    align-items: stretch;
    margin-bottom: 28px;
  }
.landing-cta-row .btn {
    width: 100%;
    justify-content: center;
  }
.landing-stats {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 14px;
  }
.landing-stat {
    padding: 14px 12px;
    border-radius: 16px;
    background: rgba(255,255,255,0.03);
    border: 1px solid var(--border-subtle);
  }
.landing-stat-value {
    font-size: 1.1rem;
  }
.landing-features,
  .landing-pricing,
  .landing-footer {
    padding-left: 20px;
    padding-right: 20px;
  }
.landing-feature-card,
  .pricing-card {
    padding: 22px 18px;
  }
}
@media (max-width: 680px) {
.landing-header {
    padding: 14px 16px;
    position: sticky;
    top: 0;
    z-index: 300;
    background: rgba(5,7,10,0.95);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
  }
.landing-header-brand img {
    height: 36px !important;
  }
.landing-header-nav {
    display: none !important;
  }
.landing-hamburger {
    display: flex;
  }
.landing-hero {
    padding: 40px 16px 32px;
  }
.landing-hero h1 {
    font-size: clamp(1.75rem, 9vw, 2.4rem);
    line-height: 1.1;
  }
.landing-hero .subtitle {
    font-size: 0.92rem;
    line-height: 1.6;
  }
.landing-cta-row {
    gap: 10px;
  }
.landing-cta-row .btn {
    padding: 14px 20px;
    font-size: 0.95rem;
  }
.landing-stats {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 10px;
  }
.landing-stat {
    padding: 12px 10px;
  }
.landing-stat-value {
    font-size: 1rem;
  }
.landing-stat-label {
    font-size: 0.7rem;
  }
.landing-pricing-grid {
    grid-auto-columns: minmax(264px, 92vw);
    padding-right: 0;
    padding-left: 0;
  }
.landing-pricing-arrow {
    width: 34px;
    height: 34px;
  }
.landing-pricing-arrow--prev { left: 4px; }
.landing-pricing-arrow--next { right: 4px; }
.landing-features,
  .landing-pricing,
  .landing-footer {
    padding-left: 16px;
    padding-right: 16px;
  }
}
@keyframes lp-blink { 0%,80%,100% { opacity: 0.25; } 40% { opacity: 1; } }
.landing-intro {
  position: fixed;
  inset: 0;
  z-index: 9999;
  display: flex;
  align-items: center;
  justify-content: center;
  background: radial-gradient(circle at 50% 50%, #0a0f0d 0%, #000 72%);
  opacity: 1;
  transition: opacity 0.6s ease;
}
.landing-intro.done {
  opacity: 0;
  pointer-events: none;
}
body.app-mode .landing-intro { display: none; }
.landing-intro::before {
  content: "";
  position: absolute;
  left: 50%;
  top: 50%;
  width: clamp(320px, 48vw, 560px);
  height: clamp(320px, 48vw, 560px);
  border-radius: 50%;
  background: radial-gradient(circle, rgba(52,211,153,0.20) 0%, rgba(52,211,153,0) 66%);
  opacity: 0;
  transform: translate(-50%, -50%) scale(0.6);
  animation: li-glow 2000ms ease forwards;
  pointer-events: none;
  z-index: 0;
}
.landing-intro-stage {
  position: relative;
  z-index: 1;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 22px 34px;
  overflow: hidden;
}
.landing-intro-stage::after {
  content: "";
  position: absolute;
  top: 0;
  bottom: 0;
  left: 0;
  width: 36%;
  background: linear-gradient(100deg, transparent 0%, rgba(255,255,255,0.12) 50%, transparent 100%);
  transform: skewX(-18deg) translateX(-280%);
  opacity: 0;
  animation: li-shine 1300ms ease 650ms forwards;
  z-index: 2;
}
.landing-intro-logo {
  position: relative;
  z-index: 1;
  height: clamp(52px, 9vw, 92px);
  width: auto;
  opacity: 0;
  transform: translateY(10px) scale(0.96);
  filter: drop-shadow(0 10px 34px rgba(0,0,0,0.55));
  animation: li-logo-in 1000ms cubic-bezier(0.22, 1, 0.36, 1) forwards;
}
@keyframes li-logo-in {
  0%   { opacity: 0; transform: translateY(10px) scale(0.96); }
  100% { opacity: 1; transform: translateY(0) scale(1); }
}
@keyframes li-glow {
  0%   { opacity: 0; transform: translate(-50%, -50%) scale(0.6); }
  45%  { opacity: 1; transform: translate(-50%, -50%) scale(1); }
  100% { opacity: 0.7; transform: translate(-50%, -50%) scale(1.06); }
}
@keyframes li-shine {
  0%   { opacity: 0; transform: skewX(-18deg) translateX(-280%); }
  18%  { opacity: 1; }
  100% { opacity: 0; transform: skewX(-18deg) translateX(380%); }
}
@media (prefers-reduced-motion: reduce) {
.landing-intro-logo { animation: none; opacity: 1; transform: none; }
.landing-intro-stage::before,
  .landing-intro-stage::after { animation: none; opacity: 0; }
}
