/* ============================================================
   DNTH — design system v3 "palco noturno × EVO"
   Temas: dark (padrão) + light, via [data-theme] no <html>
   Gradiente da marca (extraído do logo EVO):
   ciano → verde-lima → laranja → vermelho
   ============================================================ */
:root,
:root[data-theme="dark"] {
  --bg: #06090f;
  --bg2: #0b101c;
  --surface: rgba(255, 255, 255, 0.035);
  --surface2: rgba(255, 255, 255, 0.07);
  --border: rgba(255, 255, 255, 0.09);
  --text: #e9edf5;
  --muted: #9aa5b8;
  --glow1: rgba(34, 211, 238, 0.16);
  --glow2: rgba(251, 146, 60, 0.14);
  --chip-bg: rgba(34, 211, 238, 0.07);
  --header-bg: rgba(6, 9, 15, 0.72);
  --shadow: 0 10px 40px rgba(0, 0, 0, 0.45);
  color-scheme: dark;
}
:root[data-theme="light"] {
  --bg: #e8edf5;
  --bg2: #e1e8f2;
  --surface: #ffffff;
  --surface2: #eef2f8;
  --border: #d3dce9;
  --text: #0b1220;
  --muted: #4f5b76;
  --glow1: rgba(34, 211, 238, 0.12);
  --glow2: rgba(251, 146, 60, 0.1);
  --chip-bg: rgba(34, 211, 238, 0.13);
  --header-bg: rgba(232, 237, 245, 0.82);
  --shadow: 0 12px 36px rgba(15, 30, 60, 0.14);
  /* Tons profundos no claro: os claros lavam no branco */
  --evo-cyan: #2563eb;
  --evo-teal: #7c3aed;
  --evo-lime: #7c3aed;
  --evo-orange: #0ea5e9;
  --evo-red: #0ea5e9;
  color-scheme: light;
}
:root[data-theme="light"] .hero-grid { opacity: 0.3; }

:root {
  --evo-cyan: #4f7cff;
  --evo-teal: #8b5cf6;
  --evo-lime: #8b5cf6;
  --evo-orange: #22d3ee;
  --evo-red: #22d3ee;
  --grad: linear-gradient(90deg, var(--evo-cyan) 0%, var(--evo-teal) 30%, var(--evo-lime) 50%, var(--evo-orange) 76%, var(--evo-red) 100%);
  --grad-soft: linear-gradient(90deg, var(--evo-cyan), var(--evo-lime) 55%, var(--evo-orange));
  --radius: 18px;
  --font-display: "Sora", -apple-system, "Segoe UI", Roboto, sans-serif;
  --font-body: "Inter", -apple-system, "Segoe UI", Roboto, sans-serif;
  --font-mono: "JetBrains Mono", ui-monospace, Consolas, monospace;
}

* { margin: 0; padding: 0; box-sizing: border-box; }
html { scroll-behavior: smooth; }

body {
  font-family: var(--font-body);
  background: var(--bg);
  color: var(--text);
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
  transition: background 0.25s ease, color 0.25s ease;
}

::selection { background: rgba(45, 212, 191, 0.35); }
a { color: var(--text); text-decoration: none; }
:focus-visible { outline: 2px solid var(--evo-teal); outline-offset: 3px; border-radius: 6px; }

.container { max-width: 1080px; margin: 0 auto; padding: 0 24px; }

/* ---------- HEADER ---------- */
header {
  position: sticky; top: 0; z-index: 50;
  background: var(--header-bg);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  border-bottom: 1px solid var(--border);
}
.header-inner {
  display: flex; align-items: center; justify-content: space-between;
  gap: 16px; padding: 13px 24px; max-width: 1080px; margin: 0 auto;
}
.logo { display: flex; align-items: center; gap: 10px; font-family: var(--font-display); }
.logo-badge {
  width: 34px; height: 34px; border-radius: 10px;
  background: var(--bg2);
  border: 1.5px solid transparent;
  background-clip: padding-box;
  display: grid; place-items: center;
  font-weight: 800; font-size: 1.05rem;
  background-image: linear-gradient(var(--bg2), var(--bg2)), var(--grad);
  background-origin: border-box;
  color: transparent;
}
.logo-badge span {
  background: var(--grad);
  -webkit-background-clip: text; background-clip: text;
}
.logo-name { font-weight: 700; letter-spacing: 3px; font-size: 1rem; }
nav.topnav { display: flex; align-items: center; gap: 2px; }
nav.topnav > a:not(.btn) {
  color: var(--muted);
  padding: 8px 12px; border-radius: 10px;
  font-size: 0.92rem; font-weight: 500;
}
nav.topnav > a:not(.btn):hover { color: var(--text); background: var(--surface2); }
.header-actions { display: flex; align-items: center; gap: 10px; }

.theme-toggle {
  width: 38px; height: 38px;
  border-radius: 10px;
  border: 1px solid var(--border);
  background: var(--surface);
  color: var(--text);
  display: grid; place-items: center;
  cursor: pointer;
  transition: background 0.15s ease, transform 0.15s ease;
}
.theme-toggle:hover { background: var(--surface2); transform: translateY(-1px); }
.theme-toggle svg { width: 18px; height: 18px; }
/* Ordem visual no header: Instagram, WhatsApp, por último o tema */
.theme-toggle { order: 2; }
.header-actions .btn-wa { order: 1; }
.icon-sun { display: none; }
.icon-moon { display: block; }
:root[data-theme="light"] .icon-sun { display: block; }
:root[data-theme="light"] .icon-moon { display: none; }

/* ---------- BOTÕES (estilo shadcn) ---------- */
.btn {
  display: inline-flex; align-items: center; gap: 8px;
  border-radius: 12px; padding: 10px 18px;
  font-weight: 600; font-size: 0.92rem;
  border: 1px solid transparent;
  transition: transform 0.15s ease, box-shadow 0.15s ease, background 0.15s ease, border-color 0.15s ease;
}
.btn:hover { text-decoration: none; transform: translateY(-1px); }
.btn:active { transform: translateY(0); }
.btn-grad {
  background: var(--grad-soft);
  color: #04121a;
  box-shadow: 0 6px 24px rgba(34, 211, 238, 0.28);
}
.btn-grad:hover { box-shadow: 0 8px 30px rgba(251, 146, 60, 0.32); }
.btn-ghost { border-color: var(--border); background: var(--surface); color: var(--text); }
.btn-ghost:hover { background: var(--surface2); }

/* Botões oficiais de marca */
.btn-wa {
  background: #25d366;
  color: #fff;
  box-shadow: 0 6px 22px rgba(37, 211, 102, 0.32);
}
.btn-wa:hover { background: #20bd5a; box-shadow: 0 8px 28px rgba(37, 211, 102, 0.42); }
.btn-wa svg { width: 17px; height: 17px; flex: none; }
.icon-btn {
  width: 38px; height: 38px; padding: 0;
  display: grid; place-items: center;
  border-radius: 10px;
  border: 1px solid var(--border);
  background: var(--surface);
  color: var(--text);
  transition: background 0.15s ease, transform 0.15s ease;
}
.icon-btn:hover { background: var(--surface2); transform: translateY(-1px); }
.icon-btn svg { width: 18px; height: 18px; }
.logo-badge svg { width: 22px; height: 22px; display: block; }

/* ---------- HERO ---------- */
.hero { position: relative; padding: 92px 0 76px; text-align: center; overflow: hidden; }
.hero::before, .hero::after {
  content: ""; position: absolute; border-radius: 50%;
  filter: blur(95px); pointer-events: none;
}
.hero::before { width: 520px; height: 520px; background: var(--glow1); top: -180px; left: -120px; }
.hero::after { width: 480px; height: 480px; background: var(--glow2); bottom: -210px; right: -110px; }
.hero-grid {
  position: absolute; inset: 0; pointer-events: none;
  background-image:
    linear-gradient(var(--border) 1px, transparent 1px),
    linear-gradient(90deg, var(--border) 1px, transparent 1px);
  background-size: 44px 44px;
  opacity: 0.5;
  mask-image: radial-gradient(ellipse 70% 60% at 50% 40%, #000 30%, transparent 75%);
  -webkit-mask-image: radial-gradient(ellipse 70% 60% at 50% 40%, #000 30%, transparent 75%);
}
.hero .container { position: relative; z-index: 1; }

.chip {
  display: inline-flex; align-items: center; gap: 8px;
  border: 1px solid var(--border);
  background: var(--chip-bg);
  border-radius: 999px; padding: 7px 16px;
  font-size: 0.85rem; color: var(--text); font-weight: 500;
}
.chip .dot {
  width: 8px; height: 8px; border-radius: 50%;
  background: var(--evo-teal);
  box-shadow: 0 0 10px rgba(45, 212, 191, 0.9);
  animation: pulse 2.2s ease-in-out infinite;
}
@keyframes pulse { 0%, 100% { opacity: 1; } 50% { opacity: 0.4; } }

.hero h1 {
  font-family: var(--font-display);
  font-size: clamp(3.2rem, 10vw, 5.6rem);
  font-weight: 800; letter-spacing: 0.06em;
  margin: 22px 0 12px;
  background: var(--grad);
  -webkit-background-clip: text; background-clip: text;
  color: transparent;
}
.razao {
  font-family: var(--font-mono);
  font-size: clamp(0.72rem, 2vw, 0.86rem);
  color: var(--muted); letter-spacing: 0.04em;
}
.tagline {
  margin: 18px auto 0; max-width: 640px;
  font-size: clamp(1.05rem, 2.6vw, 1.25rem); font-weight: 300;
}
.tagline strong { font-weight: 600; background: var(--grad-soft); -webkit-background-clip: text; background-clip: text; color: transparent; }
.hero-ctas { display: flex; gap: 14px; justify-content: center; flex-wrap: wrap; margin-top: 34px; }

.hero-stats {
  display: grid; grid-template-columns: repeat(3, 1fr);
  gap: 12px; max-width: 720px; margin: 46px auto 0;
}
.stat {
  border: 1px solid var(--border);
  background: var(--surface);
  border-radius: 14px;
  padding: 16px 12px;
}
.stat b {
  display: block;
  font-family: var(--font-display);
  font-size: clamp(1.3rem, 3.4vw, 1.7rem);
  font-weight: 800;
  background: var(--grad-soft);
  -webkit-background-clip: text; background-clip: text; color: transparent;
}
.stat span { color: var(--muted); font-size: 0.82rem; }

/* ---------- SEÇÕES ---------- */
section.block { padding: 64px 0; }
section.block + section.block { border-top: 1px solid var(--border); }
.kicker {
  display: inline-block;
  font-family: var(--font-mono);
  font-size: 0.74rem; letter-spacing: 0.22em; text-transform: uppercase;
  color: var(--evo-teal);
  margin-bottom: 10px;
}
h2 {
  font-family: var(--font-display);
  font-size: clamp(1.5rem, 3.6vw, 2rem);
  font-weight: 700; margin-bottom: 14px;
}
p.lead { color: var(--muted); max-width: 740px; }

/* ---------- BENTO ---------- */
.bento { display: grid; grid-template-columns: repeat(12, 1fr); gap: 14px; margin-top: 34px; }
.card {
  grid-column: span 4;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 26px 24px;
  position: relative; overflow: hidden;
  transition: transform 0.18s ease, border-color 0.18s ease, background 0.18s ease, box-shadow 0.18s ease;
}
.card:hover {
  transform: translateY(-3px);
  border-color: rgba(45, 212, 191, 0.5);
  box-shadow: var(--shadow);
}
.card::before {
  content: ""; position: absolute; top: 0; left: 24px; right: 24px; height: 1px;
  background: linear-gradient(90deg, transparent, rgba(45, 212, 191, 0.6), transparent);
}
.card.wide { grid-column: span 12; }
.card.tall { grid-column: span 6; }
.card .icon {
  width: 42px; height: 42px; border-radius: 12px;
  display: grid; place-items: center;
  background: var(--chip-bg);
  color: var(--evo-teal);
  margin-bottom: 16px;
}
.card h3 { font-family: var(--font-display); font-size: 1.08rem; font-weight: 700; margin-bottom: 8px; }
.card p { color: var(--muted); font-size: 0.95rem; }
.card .cta-link {
  display: inline-flex; align-items: center; gap: 6px;
  margin-top: 14px; font-weight: 600; font-size: 0.9rem;
  color: var(--evo-teal);
}
.card .cta-link:hover { text-decoration: underline; }

.garantias { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 6px; }
.garantias span {
  border: 1px solid var(--border);
  background: var(--chip-bg);
  color: var(--text);
  border-radius: 999px;
  padding: 7px 15px;
  font-size: 0.85rem; font-weight: 500;
}

/* ---------- EVENTOS ---------- */
.evento-meta {
  display: flex; flex-wrap: wrap; gap: 8px;
  margin: 12px 0 0;
}
.evento-meta span {
  font-family: var(--font-mono);
  font-size: 0.75rem;
  border: 1px solid var(--border);
  border-radius: 8px;
  padding: 4px 10px;
  color: var(--muted);
}
.evento-num {
  font-family: var(--font-display);
  font-size: 2rem; font-weight: 800;
  background: var(--grad-soft);
  -webkit-background-clip: text; background-clip: text; color: transparent;
}

/* ---------- TECH / GITHUB ---------- */
.tech-chips { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 14px; }
.tech-chips span {
  font-family: var(--font-mono);
  font-size: 0.78rem;
  border: 1px solid var(--border);
  background: var(--surface);
  border-radius: 8px;
  padding: 5px 11px;
  color: var(--muted);
}

/* ---------- FAQ ---------- */
.faq { display: grid; gap: 10px; margin-top: 30px; max-width: 820px; }
.faq details {
  border: 1px solid var(--border);
  background: var(--surface);
  border-radius: 14px;
  padding: 0 20px;
  transition: border-color 0.15s ease, background 0.15s ease;
}
.faq details:hover { border-color: rgba(45, 212, 191, 0.4); }
.faq details[open] { background: var(--surface2); }
.faq summary {
  cursor: pointer;
  list-style: none;
  padding: 16px 0;
  font-weight: 600;
  display: flex; justify-content: space-between; align-items: center; gap: 12px;
}
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after {
  content: "+";
  font-family: var(--font-mono);
  font-size: 1.2rem;
  color: var(--evo-teal);
  transition: transform 0.15s ease;
}
.faq details[open] summary::after { transform: rotate(45deg); }
.faq .faq-a { padding: 0 0 16px; color: var(--muted); }

/* ---------- CONTATO ---------- */
.contato-grid { display: grid; grid-template-columns: repeat(12, 1fr); gap: 14px; margin-top: 34px; }
.contato-card {
  grid-column: span 6;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 22px 24px;
}
.contato-card .label {
  font-family: var(--font-mono);
  font-size: 0.72rem; letter-spacing: 0.18em; text-transform: uppercase;
  color: var(--muted); margin-bottom: 8px;
}
.contato-card .valor { font-size: 1.05rem; font-weight: 600; }
.contato-card .valor a:hover { color: var(--evo-teal); }
.contato-card .nota { color: var(--muted); font-size: 0.88rem; margin-top: 4px; }

.cta-band {
  margin-top: 56px;
  border: 1px solid var(--border);
  border-radius: 22px;
  padding: clamp(28px, 5vw, 44px);
  text-align: center;
  position: relative;
  overflow: hidden;
  background:
    radial-gradient(ellipse 60% 120% at 15% 0%, var(--glow1), transparent),
    radial-gradient(ellipse 60% 120% at 85% 100%, var(--glow2), transparent),
    var(--surface);
}
.cta-band h2 { margin-bottom: 8px; }
.cta-band p { color: var(--muted); max-width: 560px; margin: 0 auto 22px; }

/* ---------- LEGAL ---------- */
.legal-wrap { padding: 64px 0; }
.legal-card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: clamp(26px, 5vw, 52px);
}
.legal-card h1 {
  font-family: var(--font-display);
  font-size: clamp(1.5rem, 4vw, 2.1rem);
  font-weight: 700; margin-bottom: 6px;
}
.atualizado { font-family: var(--font-mono); color: var(--muted); font-size: 0.82rem; margin-bottom: 26px; }
.legal h2 { font-size: 1.08rem; margin: 26px 0 10px; }
.legal p, .legal li { color: var(--muted); }
.legal a { color: var(--evo-teal); }
.legal ul, .legal ol { margin: 10px 0 10px 22px; }
.legal li + li { margin-top: 6px; }

/* ---------- FOOTER ---------- */
footer { border-top: 1px solid var(--border); padding: 36px 0; background: var(--surface); }
.footer-inner { display: flex; justify-content: space-between; align-items: center; flex-wrap: wrap; gap: 18px; }
footer p { color: var(--muted); font-size: 0.88rem; }
footer nav { display: flex; gap: 6px; flex-wrap: wrap; }
footer nav a { color: var(--muted); padding: 6px 10px; border-radius: 8px; font-size: 0.88rem; }
footer nav a:hover { color: var(--text); background: var(--surface2); }

/* ---------- ANIMAÇÃO / REVEAL ---------- */
.reveal { opacity: 0; transform: translateY(16px); transition: opacity 0.6s ease, transform 0.6s ease; }
.reveal.in { opacity: 1; transform: translateY(0); }
@media (prefers-reduced-motion: reduce) {
  .reveal { opacity: 1; transform: none; transition: none; }
  .chip .dot { animation: none; }
  html { scroll-behavior: auto; }
}

/* ---------- RESPONSIVO ---------- */
@media (max-width: 860px) {
  .card, .card.tall { grid-column: span 12; }
  .contato-card { grid-column: span 12; }
  nav.topnav > a:not(.btn) { display: none; }
  .hero-stats { grid-template-columns: repeat(3, 1fr); gap: 8px; }
}
@media (max-width: 520px) {
  .hero-stats { grid-template-columns: 1fr; }
  .stat { display: flex; align-items: baseline; justify-content: space-between; padding: 12px 16px; }
}

/* ---------- EXTRAS v4 ---------- */
.skip { position: absolute; left: -9999px; top: 0; z-index: 100; }
.skip:focus {
  left: 12px; top: 12px;
  background: var(--surface2); color: var(--text);
  padding: 10px 16px; border-radius: 10px;
  border: 1px solid var(--border);
}
.sr-only {
  position: absolute; width: 1px; height: 1px;
  padding: 0; margin: -1px; overflow: hidden;
  clip: rect(0 0 0 0); white-space: nowrap; border: 0;
}
.wa-float {
  position: fixed; right: 18px; bottom: 18px; z-index: 60;
  width: 56px; height: 56px; border-radius: 50%;
  background: #25d366; color: #fff;
  display: grid; place-items: center;
  box-shadow: 0 10px 30px rgba(37, 211, 102, 0.45);
  transition: transform 0.15s ease, box-shadow 0.15s ease;
}
.wa-float:hover { transform: scale(1.07); text-decoration: none; }
.wa-float svg { width: 28px; height: 28px; }
.form-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 12px; margin-top: 16px; }
.f-label { display: grid; gap: 6px; color: var(--muted); font-size: 0.85rem; }
.f-label input, .f-label select {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 10px; padding: 10px 12px;
  color: var(--text); font-family: var(--font-body); font-size: 0.95rem;
}
.f-label input:focus, .f-label select:focus { outline: 2px solid var(--evo-teal); outline-offset: 1px; }
.cd-num {
  font-family: var(--font-mono);
  font-size: 1.1rem;
  color: var(--evo-cyan);
  letter-spacing: 1px;
}
@media (max-width: 860px) { .form-grid { grid-template-columns: 1fr; } }
