:root {
  --bg: #071028;
  --bg-soft: #0d1738;
  --surface: rgba(255, 255, 255, 0.08);
  --surface-strong: rgba(255, 255, 255, 0.12);
  --text: #eef4ff;
  --muted: #b8c4e0;
  --primary: #60a5fa;
  --secondary: #38bdf8;
  --accent: #7c3aed;
  --success: #10b981;
  --border: rgba(255, 255, 255, 0.12);
  --shadow: 0 20px 60px rgba(0, 0, 0, 0.28);
}

body.dark {
  --bg: #05070f;
  --bg-soft: #0b1020;
  --surface: rgba(255, 255, 255, 0.04);
  --surface-strong: rgba(255, 255, 255, 0.07);
  --text: #f8fafc;
  --muted: #a8b0c2;
  --primary: #22c55e;
  --secondary: #06b6d4;
  --accent: #10b981;
  --success: #22c55e;
  --border: rgba(255, 255, 255, 0.09);
  --shadow: 0 20px 60px rgba(0, 0, 0, 0.36);
}

* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  min-height: 100vh;
  font-family: "Inter", sans-serif;
  color: var(--text);
  background:
    radial-gradient(circle at top left, rgba(96, 165, 250, 0.18), transparent 30%),
    radial-gradient(circle at top right, rgba(56, 189, 248, 0.14), transparent 28%),
    linear-gradient(180deg, var(--bg), var(--bg-soft));
  transition: background 0.35s ease, color 0.35s ease;
  overflow-x: hidden;
}

.bg-effect {
  position: fixed;
  inset: 0;
  pointer-events: none;
  background:
    radial-gradient(circle at 20% 20%, rgba(124, 58, 237, 0.12), transparent 18%),
    radial-gradient(circle at 80% 15%, rgba(34, 211, 238, 0.1), transparent 16%),
    radial-gradient(circle at 50% 80%, rgba(59, 130, 246, 0.12), transparent 18%);
  filter: blur(18px);
  z-index: -1;
}

.hero {
  padding: 70px 20px 30px;
}

.hero-content,
.container,
.footer {
  width: min(1100px, calc(100% - 32px));
  margin: 0 auto;
}

.hero-content {
  text-align: center;
}

.tag {
  display: inline-block;
  padding: 10px 16px;
  border-radius: 999px;
  background: var(--surface-strong);
  border: 1px solid var(--border);
  color: var(--primary);
  font-weight: 700;
  margin-bottom: 18px;
  backdrop-filter: blur(14px);
}

.titulo {
  font-size: clamp(2.2rem, 5vw, 4.2rem);
  line-height: 1.05;
  font-weight: 800;
  margin-bottom: 18px;
  background: linear-gradient(90deg, #ffffff, var(--primary), var(--secondary));
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

.hero-texto {
  max-width: 760px;
  margin: 0 auto 26px;
  color: var(--muted);
  font-size: 1.08rem;
  line-height: 1.7;
}

.hero-actions {
  display: flex;
  gap: 14px;
  justify-content: center;
  flex-wrap: wrap;
}

.container {
  padding-bottom: 70px;
}

.card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 26px;
  padding: 28px;
  margin-bottom: 22px;
  box-shadow: var(--shadow);
  backdrop-filter: blur(14px);
}

.card h2 {
  font-size: clamp(1.3rem, 2vw, 2rem);
  margin-bottom: 16px;
  line-height: 1.35;
}

.card p {
  color: var(--muted);
  line-height: 1.7;
}

.intro p + p {
  margin-top: 10px;
}

.info-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 14px;
  margin-top: 22px;
}

.mini-card {
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid var(--border);
  border-radius: 18px;
  padding: 16px;
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.mini-card strong {
  color: var(--text);
}

.mini-card span {
  color: var(--muted);
}

.form-bloco {
  display: flex;
  flex-direction: column;
  gap: 14px;
}

.option {
  display: flex;
  align-items: center;
  gap: 12px;
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid var(--border);
  border-radius: 16px;
  padding: 16px 18px;
  transition: 0.25s ease;
  cursor: pointer;
}

.option:hover {
  transform: translateY(-2px);
  border-color: rgba(96, 165, 250, 0.45);
  background: rgba(255, 255, 255, 0.07);
}

.option input {
  width: auto;
  accent-color: var(--primary);
}

.option span {
  font-weight: 600;
  color: var(--text);
}

.checks-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 14px;
}

input,
select,
textarea {
  width: 100%;
  padding: 16px 18px;
  border: 1px solid var(--border);
  border-radius: 18px;
  background: rgba(10, 18, 42, 0.45);
  color: var(--text);
  font-size: 1rem;
  outline: none;
  transition: 0.25s ease;
}

input::placeholder,
textarea::placeholder {
  color: rgba(255, 255, 255, 0.45);
}

input:focus,
select:focus,
textarea:focus {
  border-color: rgba(96, 165, 250, 0.7);
  box-shadow: 0 0 0 4px rgba(96, 165, 250, 0.14);
  transform: translateY(-1px);
}

code {
  color: #93c5fd;
  background: rgba(255, 255, 255, 0.06);
  padding: 3px 8px;
  border-radius: 8px;
}

.imagem-quiz {
  margin-bottom: 16px;
}

.imagem-quiz img {
  width: 100%;
  max-width: 320px;
  display: block;
  border-radius: 18px;
  border: 1px solid var(--border);
  margin-bottom: 10px;
}

.imagem-quiz figcaption {
  color: var(--muted);
  font-size: 0.95rem;
}

.table-wrap {
  overflow-x: auto;
}

table {
  width: 100%;
  border-collapse: collapse;
  min-width: 700px;
  border-radius: 18px;
  overflow: hidden;
}

thead th {
  background: rgba(255, 255, 255, 0.07);
  text-align: left;
  padding: 16px;
}

tbody td,
tfoot td {
  padding: 16px;
  border-top: 1px solid var(--border);
  color: var(--text);
}

tbody tr:hover {
  background: rgba(255, 255, 255, 0.03);
}

details {
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid var(--border);
  border-radius: 18px;
  padding: 16px;
}

summary {
  cursor: pointer;
  font-weight: 700;
  color: var(--text);
}

details ol {
  margin-top: 16px;
  padding-left: 20px;
  color: var(--muted);
  line-height: 1.8;
}

.feedback-form {
  display: flex;
  flex-direction: column;
  gap: 18px;
}

.campo-duplo {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 16px;
}

.campo {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.campo label {
  font-weight: 600;
}

.btn {
  position: relative;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  text-decoration: none;
  border: none;
  border-radius: 18px;
  padding: 14px 22px;
  font-weight: 700;
  cursor: pointer;
  transition: transform 0.2s ease, box-shadow 0.25s ease, filter 0.25s ease;
}

.btn:hover {
  transform: translateY(-2px);
}

.btn-principal {
  color: #fff;
  background: linear-gradient(135deg, var(--accent), var(--secondary));
  box-shadow: 0 16px 40px rgba(56, 189, 248, 0.18);
}

.btn-secundario {
  color: var(--text);
  background: var(--surface-strong);
  border: 1px solid var(--border);
}

.footer {
  padding: 0 0 40px;
  text-align: center;
}

.footer p {
  color: var(--muted);
  line-height: 1.8;
}

.footer a {
  color: var(--primary);
  text-decoration: none;
}

.reveal {
  opacity: 0;
  transform: translateY(28px) scale(0.98);
  transition: opacity 0.7s ease, transform 0.7s ease;
}

.reveal.on {
  opacity: 1;
  transform: none;
}

#toast {
  position: fixed;
  top: 24px;
  left: 50%;
  transform: translateX(-50%) translateY(-14px);
  background: #111827;
  color: #fff;
  padding: 14px 18px;
  border-radius: 14px;
  box-shadow: 0 16px 40px rgba(0, 0, 0, 0.4);
  z-index: 1000;
  opacity: 0;
  pointer-events: none;
  transition: 0.25s ease;
}

#toast.show {
  opacity: 1;
  transform: translateX(-50%) translateY(0);
}

canvas.confete {
  position: fixed;
  inset: 0;
  pointer-events: none;
  z-index: 999;
}

@media (max-width: 820px) {
  .info-grid,
  .checks-grid,
  .campo-duplo {
    grid-template-columns: 1fr;
  }

  .card {
    padding: 22px 18px;
  }
}

@media (max-width: 560px) {
  .hero {
    padding-top: 48px;
  }

  .hero-actions {
    flex-direction: column;
  }

  .btn {
    width: 100%;
  }

  .card h2 {
    font-size: 1.2rem;
  }
}
