/* ============ Reset ============ */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; }

/* ============ Design Tokens ============ */
:root {
  --display: "Space Grotesk", system-ui, sans-serif;
  --body: "Inter", system-ui, sans-serif;
  --accent: #6c63ff;
  --accent-hover: #8B85FF;
  --success: #22C55E;
  --radius-sm: 8px;
  --radius: 12px;
  --radius-lg: 16px;
  --radius-xl: 20px;
  --shadow-elegant: 0 30px 80px -20px rgba(108, 99, 255, 0.25);
  --shadow-plan: 0 20px 60px -20px rgba(108, 99, 255, 0.35);
  --transition: all .25s ease;
}

/* Dark (default) */
html[data-theme="dark"] {
  --bg: #0A0A0C;
  --bg-elev: #101014;
  --card: #13131A;
  --card-hover: #17171F;
  --border: #22222E;
  --border-strong: #2E2E3A;
  --text: #F0F0F0;
  --text-strong: #FFFFFF;
  --muted: #7A7A8A;
  --nav-bg: rgba(10, 10, 12, 0.6);
  --nav-bg-scrolled: rgba(10, 10, 12, 0.85);
  --mock-line: rgba(255, 255, 255, 0.12);
  --mock-card: rgba(255, 255, 255, 0.06);
  color-scheme: dark;
}

/* Light */
html[data-theme="light"] {
  --bg: #FAFAF7;
  --bg-elev: #FFFFFF;
  --card: #FFFFFF;
  --card-hover: #FCFCFA;
  --border: #E7E5E0;
  --border-strong: #D1CFCA;
  --text: #0A0A0C;
  --text-strong: #000000;
  --muted: #6B6B78;
  --nav-bg: rgba(250, 250, 247, 0.7);
  --nav-bg-scrolled: rgba(250, 250, 247, 0.92);
  --mock-line: rgba(0, 0, 0, 0.10);
  --mock-card: rgba(0, 0, 0, 0.04);
  color-scheme: light;
}

html, body {
  background: var(--bg);
  color: var(--text);
  font-family: var(--body);
  -webkit-font-smoothing: antialiased;
  transition: background .35s ease, color .35s ease;
}
img, svg { display: block; max-width: 100%; }
a { color: inherit; text-decoration: none; }
button { font: inherit; color: inherit; background: none; border: none; cursor: pointer; }
ul { list-style: none; }

.container { width: 100%; max-width: 1200px; margin: 0 auto; padding: 0 24px; }
.container--narrow { max-width: 820px; }
.center { text-align: center; }
.muted { color: var(--muted); }
.small { font-size: 14px; }
.accent { color: var(--accent); }

/* ============ Typography ============ */
h1, h2, h3, .display {
  font-family: var(--display); font-weight: 700; line-height: 1.05;
  letter-spacing: -0.02em; color: var(--text-strong);
}
.display { font-size: clamp(48px, 8vw, 88px); }
.h2 { font-size: clamp(32px, 4.5vw, 52px); margin-bottom: 24px; }
.sub {
  font-family: var(--body); color: var(--muted); font-size: 18px;
  margin: 0 0 48px; max-width: 640px; line-height: 1.6;
}
.lead { color: var(--muted); font-size: 18px; margin: 24px 0 32px; max-width: 520px; line-height: 1.6; }
.eyebrow {
  display: inline-block; font-size: 12px; font-weight: 600;
  color: var(--accent); text-transform: uppercase; letter-spacing: 0.15em;
  margin-bottom: 16px;
}

/* ============ Section ============ */
.section { padding: 120px 0; border-top: 1px solid var(--border); }

/* ============ Nav ============ */
.nav {
  position: sticky; top: 0; z-index: 50;
  background: var(--nav-bg);
  border-bottom: 1px solid transparent;
  transition: background .3s ease, border-color .3s ease, backdrop-filter .3s ease;
}
.nav.is-scrolled {
  background: var(--nav-bg-scrolled);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  border-bottom-color: var(--border);
}
.nav__inner { display: flex; align-items: center; justify-content: space-between; height: 72px; gap: 24px; }
.nav__actions { display: flex; align-items: center; gap: 12px; }
.logo { font-family: var(--display); font-weight: 700; font-size: 22px; letter-spacing: -0.02em; }
.logo__by { color: var(--text-strong); }
.logo__diogo { color: var(--accent); }
.nav__links { display: flex; gap: 28px; }
.nav__links a { color: var(--muted); font-size: 15px; font-weight: 500; transition: color .2s; position: relative; }
.nav__links a:hover, .nav__links a.is-active { color: var(--text-strong); }
.nav__links a.is-active::after {
  content: ""; position: absolute; left: 0; right: 0; bottom: -22px; height: 2px; background: var(--accent);
}
.nav__cta { display: inline-flex; }
.nav__burger { display: none; flex-direction: column; gap: 5px; padding: 8px; }
.nav__burger span { width: 22px; height: 2px; background: var(--text); transition: transform .25s, opacity .2s; }
.nav__burger.is-open span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.nav__burger.is-open span:nth-child(2) { opacity: 0; }
.nav__burger.is-open span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

/* ============ Theme toggle ============ */
.theme-toggle {
  width: 40px; height: 40px; border-radius: 10px;
  display: inline-flex; align-items: center; justify-content: center;
  border: 1px solid var(--border); color: var(--muted);
  transition: color .2s, border-color .2s, background .2s;
  position: relative;
}
.theme-toggle:hover { color: var(--accent); border-color: var(--accent); }
.theme-toggle svg { position: absolute; transition: opacity .3s, transform .3s; }
.wa-float i {font-size: 30px;}
html[data-theme="dark"] .theme-toggle__sun { opacity: 1; transform: rotate(0); }
html[data-theme="dark"] .theme-toggle__moon { opacity: 0; transform: rotate(-90deg); }
html[data-theme="light"] .theme-toggle__sun { opacity: 0; transform: rotate(90deg); }
html[data-theme="light"] .theme-toggle__moon { opacity: 1; transform: rotate(0); }

/* ============ Buttons ============ */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  padding: 12px 20px; border-radius: 10px; font-weight: 600; font-size: 15px;
  border: 1px solid transparent; transition: var(--transition); cursor: pointer; white-space: nowrap;
}
.btn--primary { background: var(--accent); color: #fff; }
.btn--primary:hover { background: var(--accent-hover); transform: translateY(-1px); }
.btn--ghost { border-color: var(--border-strong); color: var(--text-strong); background: transparent; }
.btn--ghost:hover { border-color: var(--accent); color: var(--accent); }
.btn--white { background: #fff; color: var(--accent); }
.btn--white:hover { background: #f0f0f0; transform: translateY(-1px); }
.btn--lg { padding: 16px 28px; font-size: 16px; }
.btn--sm { padding: 8px 14px; font-size: 13px; border-radius: 8px; }
.btn--block { width: 100%; }

/* ============ Reveal animation ============ */
.reveal { opacity: 0; transform: translateY(24px); transition: opacity .7s ease, transform .7s ease; }
.reveal.is-visible { opacity: 1; transform: none; }

/* ============ Final CTA ============ */
.cta-final { background: var(--accent); padding: 100px 0; }
.cta-final__title { color: #fff; margin-bottom: 20px; font-size: clamp(36px, 5vw, 64px); }
.cta-final__sub { color: rgba(255,255,255,0.9); font-size: 18px; margin-bottom: 40px; max-width: 620px; margin-left: auto; margin-right: auto; line-height: 1.6; }
.cta-final__foot { color: rgba(255,255,255,0.75); margin-top: 24px; font-size: 14px; }

/* ============ Footer ============ */
.footer { border-top: 1px solid var(--border); padding: 48px 0 0; background: var(--bg-elev); }
.footer__grid { display: flex; align-items: center; justify-content: space-between; gap: 24px; flex-wrap: wrap; padding-bottom: 32px; }
.footer__links { display: flex; gap: 24px; flex-wrap: wrap; }
.footer__links a { color: var(--muted); font-size: 14px; }
.footer__links a:hover { color: var(--text-strong); }
.footer__seo {
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.footer__seo a {
  color: var(--muted);
  font-size: 14px;
  transition: color .2s ease;
}

.footer__seo a:hover {
  color: var(--text-strong);
}
.footer__contact { font-size: 14px; }
.footer__bar { border-top: 1px solid var(--border); padding: 20px 0; text-align: center; color: var(--muted); font-size: 13px; }
.footer__bar a { color: var(--muted); text-decoration: underline; transition: color .2s ease; }
.footer__bar a:hover { color: var(--text-strong); }

/* ============ WhatsApp float ============ */
.wa-float {
  position: fixed; bottom: 24px; right: 24px; z-index: 60;
  width: 56px; height: 56px; border-radius: 50%;
  background: var(--accent); color: #fff;
  display: flex; align-items: center; justify-content: center;
  box-shadow: 0 12px 30px -6px rgba(108,99,255,0.6);
  transition: transform .2s, background .2s;
}
.wa-float:hover { background: var(--accent-hover); transform: scale(1.08); }

/* ===== Banner de cookies — herda o roxo do tema se --accent existir ===== */
#cookie-banner {
  position: fixed;
  bottom: 0;
  left: 0;
  right: 0;
  z-index: 1000;
  display: none;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
  padding: 18px 24px;
  background: var(--bg-elevated, #16121f);
  color: var(--text, #f2f0f7);
  border-top: 1px solid var(--border, rgba(139, 92, 246, 0.25));
  box-shadow: 0 -6px 24px rgba(0,0,0,0.25);
  font-family: 'Inter', sans-serif;
  font-size: 14px;
}
[data-theme="light"] #cookie-banner {
  background: var(--bg-elevated, #ffffff);
  color: var(--text, #201a2b);
  border-top: 1px solid var(--border, rgba(139, 92, 246, 0.2));
}
#cookie-banner p {
  margin: 0;
  max-width: 620px;
  line-height: 1.5;
}
#cookie-banner a {
  color: var(--accent, #8b5cf6);
  text-decoration: underline;
}
.cookie-actions {
  display: flex;
  gap: 10px;
  flex-shrink: 0;
}
.cookie-actions button {
  padding: 10px 20px;
  border-radius: 8px;
  border: none;
  cursor: pointer;
  font-family: 'Inter', sans-serif;
  font-size: 14px;
  font-weight: 600;
  transition: opacity .2s ease;
}
.cookie-actions button:hover { opacity: .85; }
#cookie-aceitar {
  background: var(--accent, #8b5cf6);
  color: #fff;
}
#cookie-recusar {
  background: transparent;
  color: inherit;
  border: 1px solid var(--border, rgba(255,255,255,0.25));
}


@media (max-width: 640px) {
  #cookie-banner { flex-direction: column; align-items: flex-start; }
  .cookie-actions { width: 100%; justify-content: flex-end; }
}


/* ============ Responsive ============ */
@media (max-width: 768px) {
  .section { padding: 80px 0; }
  .nav__cta { display: none; }
  .nav__burger { display: flex; }
  .nav__links {
    position: absolute; top: 72px; left: 0; right: 0;
    flex-direction: column; gap: 0;
    background: var(--bg-elev); backdrop-filter: blur(14px);
    border-bottom: 1px solid var(--border);
    max-height: 0; overflow: hidden; transition: max-height .3s ease;
  }
  .nav__links.is-open { max-height: 460px; }
  .nav__links a { padding: 16px 24px; border-bottom: 1px solid var(--border); }
  .nav__links a.is-active::after { display: none; }
  .display { font-size: clamp(40px, 12vw, 56px); }
  .footer__grid { flex-direction: column; text-align: center; gap: 16px; }
  .wa-float { width: 52px; height: 52px; bottom: 16px; right: 16px; }
}
