/* =========================================================
   Darkersoft — site público
   Tema escuro/tech · acento verde
   ========================================================= */

/* ---------- Fonts ---------- */
@import url('https://fonts.googleapis.com/css2?family=Space+Grotesk:wght@500;600;700&family=Manrope:wght@400;500;600;700&display=swap');

/* ---------- Tokens ---------- */
:root {
  --bg:           #0a0e14;
  --bg-elev:      #10151e;
  --bg-elev-2:    #151c27;
  --border:       #1e2733;
  --border-soft:  rgba(230, 237, 243, 0.07);

  --text:         #e6edf3;
  --text-muted:   #99a3b2;
  --text-dim:     #6b7585;

  --accent:       #22c55e;
  --accent-600:   #16a34a;
  --accent-300:   #6ee7a0;
  --accent-soft:  rgba(34, 197, 94, 0.12);
  --accent-line:  rgba(34, 197, 94, 0.28);

  --radius-sm: 9px;
  --radius:    14px;
  --radius-lg: 22px;

  --maxw: 1120px;
  --shadow: 0 1px 0 rgba(255,255,255,0.03) inset, 0 18px 40px -24px rgba(0,0,0,0.8);

  --font-display: 'Space Grotesk', system-ui, sans-serif;
  --font-body: 'Manrope', system-ui, -apple-system, sans-serif;
}

/* ---------- Reset ---------- */
*, *::before, *::after { box-sizing: border-box; }
* { margin: 0; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
body {
  font-family: var(--font-body);
  background: var(--bg);
  color: var(--text);
  line-height: 1.6;
  font-size: 17px;
  letter-spacing: -0.005em;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
  overflow-x: hidden;
}
img, svg { display: block; max-width: 100%; }
a { color: inherit; text-decoration: none; }

/* ---------- Language toggle visibility ---------- */
[data-lang="pt"] [lang="en"] { display: none !important; }
[data-lang="en"] [lang="pt"] { display: none !important; }

/* ---------- Layout helpers ---------- */
.container {
  width: 100%;
  max-width: var(--maxw);
  margin-inline: auto;
  padding-inline: 24px;
}
.section { padding-block: clamp(56px, 9vw, 112px); }
.eyebrow {
  font-family: var(--font-body);
  font-weight: 600;
  font-size: 13px;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--accent-300);
  display: inline-flex;
  align-items: center;
  gap: 8px;
}
.eyebrow::before {
  content: "";
  width: 22px; height: 1px;
  background: var(--accent-line);
}

/* ---------- Typography ---------- */
h1, h2, h3, h4 { font-family: var(--font-display); font-weight: 600; line-height: 1.08; letter-spacing: -0.02em; color: #fff; }
h1 { font-size: clamp(2.4rem, 5.4vw, 4rem); }
h2 { font-size: clamp(1.8rem, 3.6vw, 2.7rem); }
h3 { font-size: 1.28rem; letter-spacing: -0.01em; }
p  { color: var(--text-muted); text-wrap: pretty; }
strong { color: var(--text); font-weight: 600; }
.lead { font-size: clamp(1.05rem, 1.7vw, 1.28rem); color: var(--text-muted); max-width: 60ch; }

/* ---------- Header ---------- */
.site-header {
  position: sticky; top: 0; z-index: 50;
  background: color-mix(in srgb, var(--bg) 82%, transparent);
  backdrop-filter: blur(14px) saturate(140%);
  border-bottom: 1px solid var(--border-soft);
}
.nav {
  display: flex; align-items: center; gap: 24px;
  height: 70px;
}
.brand { display: inline-flex; align-items: center; gap: 11px; font-family: var(--font-display); font-weight: 700; font-size: 1.18rem; color: #fff; letter-spacing: -0.02em; }
.brand .logo-mark { width: 32px; height: 32px; flex: none; }
.brand span b { color: var(--accent); font-weight: 700; }

.nav-links { display: flex; align-items: center; gap: 4px; margin-left: 14px; }
.nav-links a {
  padding: 8px 13px; border-radius: 9px; white-space: nowrap;
  font-size: 0.95rem; font-weight: 500; color: var(--text-muted);
  transition: color .15s, background .15s;
}
.nav-links a:hover { color: var(--text); background: var(--bg-elev); }
.nav-spacer { flex: 1; }

.nav-actions { display: flex; align-items: center; gap: 10px; }

.lang-toggle {
  display: inline-flex; align-items: center;
  border: 1px solid var(--border); border-radius: 999px;
  padding: 3px; background: var(--bg-elev);
}
.lang-toggle button {
  font-family: var(--font-body); font-weight: 600; font-size: 0.8rem;
  color: var(--text-dim); background: none; border: 0; cursor: pointer;
  padding: 5px 11px; border-radius: 999px; transition: .15s; letter-spacing: 0.02em;
}
.lang-toggle button[aria-pressed="true"] { background: var(--accent); color: #06210f; }

.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  font-family: var(--font-body); font-weight: 600; font-size: 0.95rem;
  padding: 11px 20px; border-radius: 11px; cursor: pointer;
  border: 1px solid transparent; transition: .15s; white-space: nowrap;
}
.btn-primary { background: var(--accent); color: #06210f; box-shadow: 0 8px 24px -10px var(--accent); }
.btn-primary:hover { background: var(--accent-300); transform: translateY(-1px); }
.btn-ghost { background: transparent; color: var(--text); border-color: var(--border); }
.btn-ghost:hover { border-color: var(--accent-line); background: var(--bg-elev); }
.btn-lg { padding: 14px 26px; font-size: 1.02rem; }

.nav-toggle {
  display: none; background: var(--bg-elev); border: 1px solid var(--border);
  border-radius: 10px; width: 42px; height: 42px; cursor: pointer; color: var(--text);
  align-items: center; justify-content: center;
}
.nav-toggle svg { width: 20px; height: 20px; }

/* ---------- Hero ---------- */
.hero { position: relative; overflow: hidden; padding-block: clamp(70px, 11vw, 150px) clamp(48px, 7vw, 90px); }
.hero-bg {
  position: absolute; inset: 0; z-index: 0; pointer-events: none;
  background:
    radial-gradient(540px 360px at 78% -8%, rgba(34,197,94,0.16), transparent 70%),
    radial-gradient(420px 320px at 8% 12%, rgba(34,197,94,0.07), transparent 72%);
}
.hero-grid {
  position: absolute; inset: 0; z-index: 0; pointer-events: none; opacity: 0.5;
  background-image:
    linear-gradient(to right, var(--border-soft) 1px, transparent 1px),
    linear-gradient(to bottom, var(--border-soft) 1px, transparent 1px);
  background-size: 56px 56px;
  mask-image: radial-gradient(680px 480px at 60% 0%, #000 35%, transparent 78%);
}
.hero .container { position: relative; z-index: 1; }
.hero-inner { max-width: 760px; }
.badge {
  display: inline-flex; align-items: center; gap: 9px;
  border: 1px solid var(--border); background: var(--bg-elev);
  padding: 7px 14px 7px 11px; border-radius: 999px;
  font-size: 0.82rem; font-weight: 600; color: var(--text-muted); margin-bottom: 26px;
}
.badge .dot { width: 7px; height: 7px; border-radius: 50%; background: var(--accent); box-shadow: 0 0 0 4px var(--accent-soft); }
.hero h1 { margin-bottom: 22px; }
.hero h1 em { font-style: normal; color: var(--accent); }
.hero .lead { margin-bottom: 34px; }
.hero-actions { display: flex; flex-wrap: wrap; gap: 13px; align-items: center; }
.hero-note { margin-top: 22px; font-size: 0.88rem; color: var(--text-dim); display: flex; align-items: center; gap: 8px; }
.hero-note svg { width: 16px; height: 16px; color: var(--accent); flex: none; }

/* ---------- Generic section head ---------- */
.section-head { max-width: 640px; margin-bottom: 48px; }
.section-head .eyebrow { margin-bottom: 16px; }
.section-head h2 { margin-bottom: 16px; }

/* ---------- Feature grid ---------- */
.grid { display: grid; gap: 18px; }
.grid-3 { grid-template-columns: repeat(3, 1fr); }
.grid-2 { grid-template-columns: repeat(2, 1fr); }

.card {
  background: linear-gradient(180deg, var(--bg-elev) 0%, var(--bg) 130%);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 26px;
  box-shadow: var(--shadow);
  transition: border-color .18s, transform .18s;
}
.card:hover { border-color: var(--accent-line); transform: translateY(-2px); }
.card .ic {
  width: 46px; height: 46px; border-radius: 12px;
  background: var(--accent-soft); border: 1px solid var(--accent-line);
  display: grid; place-items: center; color: var(--accent-300); margin-bottom: 18px;
}
.card .ic svg { width: 22px; height: 22px; }
.card h3 { margin-bottom: 9px; }
.card p { font-size: 0.97rem; }

/* ---------- "Como funciona" steps ---------- */
.steps { display: grid; grid-template-columns: repeat(3, 1fr); gap: 18px; counter-reset: step; }
.step {
  position: relative; padding: 28px 26px; border: 1px solid var(--border);
  border-radius: var(--radius); background: var(--bg-elev);
}
.step .num {
  font-family: var(--font-display); font-weight: 700; font-size: 0.95rem;
  width: 34px; height: 34px; border-radius: 9px; display: grid; place-items: center;
  background: var(--accent); color: #06210f; margin-bottom: 18px;
}
.step h3 { margin-bottom: 8px; font-size: 1.12rem; }
.step p { font-size: 0.95rem; }

/* ---------- Split / Meta integration ---------- */
.split { display: grid; grid-template-columns: 1.05fr 0.95fr; gap: 52px; align-items: center; }
.panel {
  border: 1px solid var(--border); border-radius: var(--radius-lg);
  background:
    radial-gradient(420px 240px at 80% 0%, rgba(34,197,94,0.10), transparent 70%),
    var(--bg-elev);
  padding: 34px; box-shadow: var(--shadow);
}
.panel ul { list-style: none; padding: 0; display: grid; gap: 14px; }
.panel li { display: flex; gap: 13px; align-items: flex-start; color: var(--text-muted); font-size: 0.98rem; }
.panel li svg { width: 20px; height: 20px; color: var(--accent); flex: none; margin-top: 2px; }
.panel li b { color: var(--text); }

.feature-list { list-style: none; padding: 0; display: grid; gap: 16px; margin-top: 10px; }
.feature-list li { display: flex; gap: 13px; align-items: flex-start; }
.feature-list svg { width: 22px; height: 22px; color: var(--accent); flex: none; margin-top: 1px; }
.feature-list b { color: var(--text); display: block; margin-bottom: 2px; }
.feature-list span { color: var(--text-muted); font-size: 0.96rem; }

/* ---------- CTA band ---------- */
.cta {
  border: 1px solid var(--accent-line); border-radius: var(--radius-lg);
  background:
    radial-gradient(600px 300px at 50% -40%, rgba(34,197,94,0.16), transparent 70%),
    var(--bg-elev);
  padding: clamp(34px, 5vw, 60px); text-align: center;
}
.cta h2 { margin-bottom: 14px; }
.cta p { max-width: 52ch; margin-inline: auto; margin-bottom: 28px; }
.cta .hero-actions { justify-content: center; }

/* ---------- Footer ---------- */
.site-footer { border-top: 1px solid var(--border-soft); background: #070a0f; padding-block: 54px 30px; margin-top: 40px; }
.footer-grid { display: grid; grid-template-columns: 1.4fr 1fr 1fr; gap: 40px; margin-bottom: 38px; }
.footer-brand .brand { margin-bottom: 14px; }
.footer-brand p { font-size: 0.92rem; max-width: 34ch; }
.footer-col h4 { font-family: var(--font-body); font-size: 0.78rem; letter-spacing: 0.12em; text-transform: uppercase; color: var(--text-dim); margin-bottom: 16px; font-weight: 700; }
.footer-col ul { list-style: none; padding: 0; display: grid; gap: 11px; }
.footer-col a { color: var(--text-muted); font-size: 0.95rem; transition: color .15s; }
.footer-col a:hover { color: var(--accent-300); }
.footer-bottom {
  display: flex; justify-content: space-between; gap: 16px; flex-wrap: wrap;
  padding-top: 24px; border-top: 1px solid var(--border-soft);
  font-size: 0.86rem; color: var(--text-dim);
}

/* ---------- Legal / content pages ---------- */
.page-hero { padding-block: clamp(54px, 8vw, 90px) clamp(24px, 4vw, 44px); border-bottom: 1px solid var(--border-soft); position: relative; overflow: hidden; }
.page-hero .hero-bg { opacity: 0.7; }
.page-hero .container { position: relative; z-index: 1; }
.page-hero .eyebrow { margin-bottom: 14px; }
.page-hero h1 { font-size: clamp(2rem, 4.4vw, 3rem); margin-bottom: 14px; }
.page-hero .updated { font-size: 0.9rem; color: var(--text-dim); }

.legal { padding-block: clamp(40px, 6vw, 64px); }
.legal-wrap { display: grid; grid-template-columns: 240px 1fr; gap: 56px; align-items: start; }
.toc { position: sticky; top: 92px; }
.toc h4 { font-family: var(--font-body); font-size: 0.76rem; letter-spacing: 0.12em; text-transform: uppercase; color: var(--text-dim); margin-bottom: 14px; font-weight: 700; }
.toc ul { list-style: none; padding: 0; display: grid; gap: 3px; border-left: 1px solid var(--border); }
.toc a { display: block; padding: 6px 14px; font-size: 0.9rem; color: var(--text-muted); border-left: 2px solid transparent; margin-left: -1px; transition: .15s; }
.toc a:hover { color: var(--text); border-left-color: var(--accent-line); }

.prose { max-width: 72ch; }
.prose h2 { font-size: 1.5rem; margin-top: 46px; margin-bottom: 14px; scroll-margin-top: 92px; }
.prose h2:first-child { margin-top: 0; }
.prose h3 { font-size: 1.12rem; margin-top: 28px; margin-bottom: 10px; color: var(--text); }
.prose p { margin-bottom: 15px; }
.prose ul { margin: 0 0 18px; padding-left: 0; list-style: none; display: grid; gap: 10px; }
.prose ul li { position: relative; padding-left: 26px; color: var(--text-muted); }
.prose ul li::before { content: ""; position: absolute; left: 4px; top: 11px; width: 6px; height: 6px; border-radius: 50%; background: var(--accent); }
.prose a { color: var(--accent-300); text-decoration: underline; text-underline-offset: 3px; text-decoration-color: var(--accent-line); }
.prose a:hover { text-decoration-color: var(--accent); }
.prose .note {
  border: 1px solid var(--border); border-left: 3px solid var(--accent);
  background: var(--bg-elev); border-radius: 0 var(--radius) var(--radius) 0;
  padding: 18px 22px; margin: 24px 0; font-size: 0.96rem;
}
.prose .note p:last-child { margin-bottom: 0; }

/* ---------- Contact ---------- */
.contact-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 22px; }
.contact-card {
  border: 1px solid var(--border); border-radius: var(--radius); background: var(--bg-elev);
  padding: 30px; box-shadow: var(--shadow);
}
.contact-card .ic { width: 46px; height: 46px; border-radius: 12px; background: var(--accent-soft); border: 1px solid var(--accent-line); display: grid; place-items: center; color: var(--accent-300); margin-bottom: 18px; }
.contact-card .ic svg { width: 22px; height: 22px; }
.contact-card h3 { margin-bottom: 7px; }
.contact-card p { font-size: 0.97rem; margin-bottom: 14px; }
.contact-card .big-link { font-family: var(--font-display); font-size: 1.2rem; font-weight: 600; color: var(--accent-300); word-break: break-word; }
.contact-card .big-link:hover { color: var(--accent); }

/* ---------- Mobile menu ---------- */
.mobile-menu { display: none; }

@media (max-width: 1024px) {
  .nav-links, .nav-actions .btn { display: none; }
  .nav-toggle { display: inline-flex; }
  .mobile-menu {
    display: block; position: fixed; inset: 70px 0 auto; z-index: 49;
    background: var(--bg); border-bottom: 1px solid var(--border);
    padding: 16px 24px 24px;
    transform: translateY(-12px); opacity: 0; pointer-events: none;
    transition: .2s;
  }
  .mobile-menu.open { transform: translateY(0); opacity: 1; pointer-events: auto; }
  .mobile-menu a { display: block; padding: 13px 6px; font-size: 1.05rem; font-weight: 500; border-bottom: 1px solid var(--border-soft); color: var(--text); }
  .mobile-menu .btn { width: 100%; margin-top: 16px; }
}

@media (max-width: 880px) {
  .grid-3, .steps { grid-template-columns: 1fr; }
  .grid-2 { grid-template-columns: 1fr; }
  .footer-grid { grid-template-columns: 1fr 1fr; gap: 28px; }
  .footer-brand { grid-column: 1 / -1; }
  .legal-wrap { grid-template-columns: 1fr; gap: 28px; }
  .toc { position: static; padding-bottom: 18px; border-bottom: 1px solid var(--border-soft); }
  .toc ul { grid-template-columns: repeat(2, 1fr); border-left: 0; }
  .contact-grid { grid-template-columns: 1fr; }
}

@media (max-width: 520px) {
  body { font-size: 16px; }
  .footer-grid { grid-template-columns: 1fr; }
  .container { padding-inline: 18px; }
}

/* ---------- Reduced motion ---------- */
@media (prefers-reduced-motion: reduce) {
  * { scroll-behavior: auto; animation: none !important; transition: none !important; }
}

/* ---------- Reveal (no-op: content always visible for print/PDF/headless safety) ---------- */
.reveal { opacity: 1; transform: none; }
