/*
  Tema e cores
  Trocar cores aqui se desejar (CTA verde, fundo, texto)
*/
:root {
  --bg-start: #0f0f10;
  --bg-end: #1a1a1b;
  --text: #ffffff;
  --muted: #b3b3b3;
  --card: #171717;
  --border: #2a2a2a;
  --accent: #22c55e; /* Verde CTA */
  --accent-contrast: #0d2718;
  --shadow: rgba(0, 0, 0, 0.25);
}

* { box-sizing: border-box; }
html, body { height: 100%; }
body {
  margin: 0;
  font-family: Inter, system-ui, -apple-system, Segoe UI, Roboto, Ubuntu, Cantarell, "Fira Sans", "Droid Sans", "Helvetica Neue", Arial, sans-serif;
  color: var(--text);
  background: linear-gradient(180deg, var(--bg-start), var(--bg-end));
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

.container {
  max-width: 640px;
  margin: 0 auto;
  padding: 24px 16px 40px;
}

.header {
  text-align: center;
  margin-bottom: 20px;
}

.logo {
  font-weight: 800;
  letter-spacing: 0.08em;
  font-size: 22px;
}

.subtitle {
  margin: 8px 0 12px;
  color: var(--muted);
  font-size: 14px;
}

.badges { display: flex; gap: 8px; justify-content: center; flex-wrap: wrap; }
.badge {
  background: var(--card);
  border: 1px solid var(--border);
  box-shadow: 0 6px 20px var(--shadow);
  padding: 6px 10px;
  border-radius: 999px;
  font-size: 12px;
}

.top-toggle { display: flex; gap: 8px; justify-content: center; margin-top: 14px; }
.toggle-btn {
  background: var(--card);
  border: 1px solid var(--border);
  color: var(--text);
  padding: 8px 12px;
  border-radius: 12px;
  font-weight: 600;
  font-size: 13px;
  cursor: pointer;
  transition: transform 120ms ease, background 120ms ease, border-color 120ms ease;
}
.toggle-btn:hover { border-color: #3a3a3a; }
.toggle-btn:active { transform: scale(0.98); }
.toggle-btn:focus-visible { outline: 2px solid var(--accent); outline-offset: 2px; }

.section { margin-top: 24px; }
.section-title { font-size: 16px; margin: 0 0 10px; text-align: center; }
.section-muted .muted { color: var(--muted); font-size: 13px; text-align: center; }

.cards { display: grid; gap: 12px; }

.card {
  display: flex;
  gap: 12px;
  padding: 14px;
  border-radius: 16px;
  background: var(--card);
  border: 1px solid var(--border);
  box-shadow: 0 10px 30px var(--shadow);
  align-items: center;
  flex-direction: column;
  text-align: center;
  transition: transform 120ms ease, border-color 120ms ease, box-shadow 120ms ease;
}
.card:hover { border-color: #3a3a3a; box-shadow: 0 12px 36px rgba(0,0,0,0.3); }
.card:active, .card.pressed { transform: scale(0.98); }

.card-icon {
  width: 40px; height: 40px; display: grid; place-items: center;
  border-radius: 12px; border: 1px solid var(--border);
}

.card-title { margin: 0; font-size: 16px; }
.card-sub { margin: 4px 0 10px; color: var(--muted); font-size: 13px; }
.card-content { text-align: center; }

.cta-row { display: flex; gap: 8px; flex-wrap: wrap; justify-content: center; }
.cta {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 10px 12px;
  border-radius: 12px;
  background: var(--accent);
  color: #08240f;
  text-decoration: none;
  font-weight: 700;
  font-size: 14px;
  border: 1px solid var(--accent-contrast);
  transition: transform 120ms ease, filter 120ms ease, box-shadow 120ms ease;
}
.cta:hover { filter: brightness(1.05); box-shadow: 0 8px 18px rgba(34,197,94,0.3); }
.cta:active { transform: scale(0.98); }
.cta:focus-visible { outline: 2px solid #3ae37b; outline-offset: 2px; }

.cta.secondary {
  background: transparent;
  color: var(--text);
  border-color: var(--border);
}
.cta.secondary:hover { border-color: #3a3a3a; }

.card-highlight { border-color: #3a3a3a; }

.footer { margin-top: 28px; text-align: center; color: var(--muted); font-size: 12px; }
.footer-links { display: inline-flex; gap: 8px; align-items: center; }
.footer a { color: var(--muted); text-decoration: none; }
.footer a:hover { color: var(--text); }
.sep { opacity: 0.5; }

/* Mobile-first: já otimizado. Ajustes simples para telas maiores */
@media (min-width: 560px) {
  .section-title { font-size: 18px; }
  .card-title { font-size: 18px; }
}

/* Acessibilidade: reduzir animações quando preferido */
@media (prefers-reduced-motion: reduce) {
  .toggle-btn, .card, .cta { transition: none; }
}

/* Rolagem suave para navegação */
html { scroll-behavior: smooth; }