/* ═══════════════════════════════════════════════════════════════════════
   LANDING — Tema claro
   ═══════════════════════════════════════════════════════════════════════ */

body {
  background: var(--bg-base);
  min-height: 100vh;
}

/* ─── Topbar ─── */
.topbar {
  border-bottom: 1px solid var(--border-soft);
  background: #FFFFFF;
  position: sticky;
  top: 0;
  z-index: 50;
}
.topbar-inner {
  max-width: 1200px;
  margin: 0 auto;
  padding: 16px 24px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
}
.brand {
  display: flex;
  align-items: center;
  gap: 12px;
  color: var(--text-primary);
  text-decoration: none;
}
.brand-logo { height: 36px; width: auto; border-radius: 8px; }
.brand-name {
  font-size: 1.15rem;
  font-weight: 900;
  letter-spacing: 0.5px;
  text-transform: uppercase;
}
.brand-accent { color: var(--red); }

.topbar-nav {
  display: flex;
  align-items: center;
  gap: 12px;
}
.topbar-user {
  font-size: 0.9rem;
  font-weight: 700;
  color: var(--text-primary);
}
.btn-ghost {
  background: transparent;
  color: var(--text-primary);
  border: none;
  padding: 8px 14px;
  font-size: 0.9rem;
  font-weight: 700;
  border-radius: 50px;
  transition: background 0.15s;
}
.btn-ghost:hover { background: var(--bg-hover); color: var(--red); }

/* ─── Hero ─── */
.landing {
  max-width: 1200px;
  margin: 0 auto;
  padding: 64px 24px 80px;
}
.hero {
  text-align: center;
  margin-bottom: 48px;
}
.hero h1 {
  font-size: clamp(2rem, 5vw, 3rem);
  font-weight: 900;
  letter-spacing: -0.02em;
  margin-bottom: 12px;
  color: var(--text-primary);
}
.hero p {
  font-size: 1.05rem;
  color: var(--text-secondary);
  max-width: 520px;
  margin: 0 auto;
}

/* ─── Grid de apps ─── */
.apps-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 20px;
}

.app-card {
  display: flex;
  flex-direction: column;
  padding: 28px 24px;
  background: #FFFFFF;
  border: 1px solid var(--border-soft);
  border-radius: var(--radius-lg);
  text-decoration: none;
  color: var(--text-primary);
  transition: all 0.2s ease;
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.04);
}
.app-card:hover {
  transform: translateY(-3px);
  border-color: var(--yellow);
  box-shadow: 0 12px 24px rgba(0, 0, 0, 0.08);
}

.app-card-icon {
  width: 56px;
  height: 56px;
  border-radius: 14px;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 20px;
  background: rgba(255, 199, 44, 0.15);
  color: var(--red);
  transition: transform 0.2s ease;
}
.app-card:hover .app-card-icon { transform: scale(1.05); }
.app-card-icon svg {
  width: 28px;
  height: 28px;
  stroke-width: 2;
}

.app-card-title {
  font-size: 1.15rem;
  font-weight: 800;
  letter-spacing: -0.01em;
  margin-bottom: 8px;
  color: var(--text-primary);
}
.app-card-desc {
  font-size: 0.9rem;
  color: var(--text-secondary);
  line-height: 1.5;
  margin-bottom: 20px;
  flex: 1;
}
.app-card-action {
  font-size: 0.8rem;
  font-weight: 800;
  letter-spacing: 1px;
  text-transform: uppercase;
  color: var(--red);
  display: inline-flex;
  align-items: center;
  gap: 6px;
  transition: gap 0.2s ease;
}
.app-card:hover .app-card-action { gap: 10px; }
.app-card-action::after { content: '→'; }

/* ─── Footer ─── */
.footer {
  text-align: center;
  padding: 32px 24px;
  color: var(--text-muted);
  font-size: 0.85rem;
  border-top: 1px solid var(--border-soft);
  margin-top: 40px;
  background: #FFFFFF;
}

/* ─── Responsivo ─── */
@media (max-width: 600px) {
  .landing { padding: 32px 16px 48px; }
  .hero { margin-bottom: 32px; }
  .apps-grid { grid-template-columns: 1fr; gap: 14px; }
  .app-card { padding: 22px 20px; }
  .topbar-inner { padding: 14px 16px; }
  .brand-name { font-size: 1rem; }
}

/* ═══════════════════════════════════════════════════════════════════
   LAYOUT GERAL (RODAPÉ NO FUNDO E CARTÕES LADO A LADO)
   ═══════════════════════════════════════════════════════════════════ */
body {
  display: flex !important;
  flex-direction: column !important;
  min-height: 100vh !important;
  margin: 0;
}

main.landing {
  flex: 1 !important;
  display: flex;
  flex-direction: column;
  padding: 40px 20px;
}

/* Grelha responsiva para os cartões */
.apps-grid {
  display: grid !important;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr)) !important;
  gap: 24px !important;
  max-width: 1200px;
  margin: 0 auto;
  width: 100%;
}

/* Ajustes no Hero (título "Bem-vindo") */
.hero {
  text-align: center;
  margin-bottom: 40px;
}
.hero h1 {
  font-size: 32px;
  font-weight: 800;
  color: #111827;
  margin-bottom: 8px;
}
.hero p {
  font-size: 16px;
  color: #6b7280;
}

/* Rodapé preso ao fundo */
.footer {
  margin-top: auto !important;
  padding: 20px;
  text-align: center;
  border-top: 1px solid #eee;
  background: #f9fafb;
  font-size: 13px;
  color: #9ca3af;
}
