/* ============================================================
   Vítor Veneroso — Design System
   ============================================================ */

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

:root {
  --bg: #0c0c0e;
  --bg-alt: #121215;
  --surface: #18181c;
  --surface-2: #1f1f24;
  --border: #2a2a30;
  --text: #f4f2ec;
  --text-dim: #a7a6ad;
  --text-faint: #6f6e77;
  --accent: #d7ff3f;
  --accent-dim: #a9cb2f;
  --accent-ink: #10130a;
  --blue: #7fb8ff;

  --font-head: 'Space Grotesk', sans-serif;
  --font-body: 'Inter', sans-serif;

  --radius-s: 8px;
  --radius-m: 16px;
  --radius-l: 28px;
  --container: 1160px;
}

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

html { scroll-behavior: smooth; }

body {
  background: var(--bg);
  color: var(--text);
  font-family: var(--font-body);
  font-size: 16px;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}

img, svg { display: block; max-width: 100%; }

a { color: inherit; text-decoration: none; }

ul { list-style: none; }

h1, h2, h3, h4 {
  font-family: var(--font-head);
  font-weight: 600;
  line-height: 1.15;
  letter-spacing: -0.01em;
}

h1, h2, h3, h4 { color: var(--text); }

h1 { font-size: clamp(2.4rem, 5vw, 4rem); font-weight: 700; }
h2 { font-size: clamp(1.9rem, 3.4vw, 2.6rem); }
h3 { font-size: 1.3rem; }

p { color: var(--text-dim); }

.container {
  max-width: var(--container);
  margin: 0 auto;
  padding: 0 28px;
}

.section {
  padding: 96px 0;
  border-top: 1px solid var(--border);
}

.section--tight { padding: 64px 0; }

.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-family: var(--font-head);
  font-size: 0.78rem;
  font-weight: 600;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--accent);
  margin-bottom: 18px;
}

.eyebrow::before {
  content: '';
  width: 18px;
  height: 2px;
  background: var(--accent);
}

.lede {
  font-size: 1.15rem;
  color: var(--text-dim);
  max-width: 640px;
}

/* ---------- Buttons ---------- */

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 15px 28px;
  border-radius: 100px;
  font-family: var(--font-head);
  font-weight: 600;
  font-size: 0.95rem;
  border: 1px solid transparent;
  cursor: pointer;
  transition: transform 0.15s ease, background 0.15s ease, border-color 0.15s ease;
  white-space: nowrap;
}

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

.btn--accent { background: var(--accent); color: var(--accent-ink); }
.btn--accent:hover { background: #e4ff70; }

.btn--outline { background: transparent; color: var(--text); border-color: var(--border); }
.btn--outline:hover { border-color: var(--accent); color: var(--accent); }

.btn--ghost { background: transparent; color: var(--text-dim); padding: 15px 8px; }
.btn--ghost:hover { color: var(--text); }

.btn--sm { padding: 10px 20px; font-size: 0.85rem; }

.btn-row { display: flex; gap: 14px; flex-wrap: wrap; align-items: center; }

/* ---------- Header ---------- */

.site-header {
  position: sticky;
  top: 0;
  z-index: 100;
  backdrop-filter: blur(14px);
  background: rgba(12, 12, 14, 0.85);
  border-bottom: 1px solid var(--border);
}

.site-header .container {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 78px;
}

.logo {
  display: flex;
  align-items: center;
  gap: 10px;
  font-family: var(--font-head);
  font-weight: 700;
  font-size: 1.15rem;
  letter-spacing: -0.01em;
}

.logo span { color: var(--accent); }

.logo-mark {
  width: 34px;
  height: 34px;
  border-radius: 50%;
  object-fit: cover;
  flex-shrink: 0;
}

.footer-top .logo .logo-mark { width: 40px; height: 40px; }

.site-header .logo .logo-mark { width: 42px; height: 42px; }

.nav-links {
  display: flex;
  align-items: center;
  gap: 34px;
}

.nav-links a {
  font-size: 0.92rem;
  font-weight: 500;
  color: var(--text-dim);
  transition: color 0.15s ease;
}

.nav-links a:hover, .nav-links a.is-active { color: var(--text); }

.nav-cta { display: flex; align-items: center; gap: 22px; }

.nav-links .btn { margin-left: 6px; }

.nav-toggle {
  display: none;
  flex-direction: column;
  gap: 5px;
  background: none;
  border: none;
  cursor: pointer;
  padding: 8px;
}

.nav-toggle span { width: 22px; height: 2px; background: var(--text); display: block; }

/* ---------- Hero ---------- */

.hero {
  position: relative;
  padding: 90px 0 100px;
  overflow: hidden;
}

.hero::before {
  content: '';
  position: absolute;
  top: -180px;
  right: -160px;
  width: 560px;
  height: 560px;
  background: radial-gradient(circle, rgba(215,255,63,0.16) 0%, rgba(215,255,63,0) 70%);
  pointer-events: none;
}

.hero::after {
  content: '';
  position: absolute;
  bottom: -220px;
  left: -180px;
  width: 480px;
  height: 480px;
  background: radial-gradient(circle, rgba(127,184,255,0.10) 0%, rgba(127,184,255,0) 70%);
  pointer-events: none;
}

.hero .container { position: relative; z-index: 1; }

.hero h1 { max-width: 820px; }

.hero .lede { margin-top: 22px; margin-bottom: 36px; font-size: 1.2rem; }

/* ---------- Portrait ---------- */

.portrait {
  border-radius: var(--radius-l);
  overflow: hidden;
  border: 1px solid var(--border);
  background: var(--surface);
}

.portrait img { width: 100%; height: 100%; object-fit: cover; display: block; }

/* ---------- Grids & cards ---------- */

.grid-2 { display: grid; grid-template-columns: 1fr 1fr; gap: 24px; }
.grid-3 { display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; }
.grid-4 { display: grid; grid-template-columns: repeat(4, 1fr); gap: 20px; }

.card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-m);
  padding: 36px;
  transition: transform 0.2s ease, border-color 0.2s ease;
}

.card:hover { transform: translateY(-4px); border-color: var(--accent-dim); }

.card--product {
  display: flex;
  flex-direction: column;
  gap: 18px;
  padding: 44px 38px;
}

.card--product .tag {
  align-self: flex-start;
  font-family: var(--font-head);
  font-size: 0.72rem;
  font-weight: 600;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--accent-ink);
  background: var(--accent);
  padding: 5px 12px;
  border-radius: 100px;
}

.card--product ul { display: flex; flex-direction: column; gap: 10px; margin: 6px 0 8px; }

.card--product li {
  display: flex;
  gap: 10px;
  color: var(--text-dim);
  font-size: 0.96rem;
}

.card--product li::before { content: '▸'; color: var(--accent); flex-shrink: 0; }

/* ---------- Stats ---------- */

.stats {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 24px;
  padding: 48px 0;
}

.stat { text-align: left; }

.stat .num {
  font-family: var(--font-head);
  font-size: clamp(2rem, 3.4vw, 2.8rem);
  font-weight: 700;
  color: var(--accent);
  display: block;
}

.stat .label { color: var(--text-dim); font-size: 0.9rem; margin-top: 6px; }

/* ---------- Testimonials ---------- */

.quote-card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-m);
  padding: 32px;
  display: flex;
  flex-direction: column;
  gap: 20px;
  height: 100%;
}

.quote-card .mark { font-family: var(--font-head); font-size: 2.4rem; color: var(--accent); line-height: 1; }

.quote-card p { color: var(--text); font-size: 1.02rem; }

.quote-card .who { color: var(--text-faint); font-size: 0.85rem; }

/* ---------- Numbered steps ---------- */

.steps { display: flex; flex-direction: column; gap: 0; }

.step {
  display: grid;
  grid-template-columns: 64px 1fr;
  gap: 24px;
  padding: 30px 0;
  border-top: 1px solid var(--border);
}

.step:last-child { border-bottom: 1px solid var(--border); }

.step .index {
  font-family: var(--font-head);
  font-size: 1.6rem;
  font-weight: 700;
  color: var(--accent);
}

.step h3 { margin-bottom: 8px; }

/* ---------- FAQ ---------- */

.faq-item {
  border-top: 1px solid var(--border);
  padding: 6px 0;
}

.faq-item:last-child { border-bottom: 1px solid var(--border); }

.faq-item summary {
  cursor: pointer;
  list-style: none;
  padding: 20px 0;
  font-family: var(--font-head);
  font-weight: 600;
  font-size: 1.02rem;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 20px;
}

.faq-item summary::-webkit-details-marker { display: none; }

.faq-item summary::after {
  content: '+';
  font-size: 1.4rem;
  color: var(--accent);
  flex-shrink: 0;
  transition: transform 0.2s ease;
}

.faq-item[open] summary::after { transform: rotate(45deg); }

.faq-item .answer { padding-bottom: 22px; color: var(--text-dim); max-width: 720px; }

/* ---------- Pillar badges (blog) ---------- */

.pill {
  display: inline-block;
  font-family: var(--font-head);
  font-size: 0.7rem;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  padding: 5px 12px;
  border-radius: 100px;
  border: 1px solid var(--border);
}

.pill--pme { color: var(--blue); border-color: rgba(127,184,255,0.35); }
.pill--creator { color: var(--accent); border-color: rgba(215,255,63,0.35); }
.pill--autoridade { color: #ff9d7a; border-color: rgba(255,157,122,0.35); }
.pill--glossario { color: #c9a8ff; border-color: rgba(201,168,255,0.35); }

.post-card {
  border: 1px solid var(--border);
  border-radius: var(--radius-m);
  padding: 28px;
  display: flex;
  flex-direction: column;
  gap: 14px;
  background: var(--surface);
}

.post-card h3 { font-size: 1.1rem; }

.post-card .status {
  font-size: 0.78rem;
  color: var(--text-faint);
  margin-top: auto;
}

/* ---------- CTA band ---------- */

.cta-band {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-l);
  padding: 64px;
  text-align: center;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 22px;
}

.cta-band h2 { max-width: 620px; }

/* ---------- Timeline (Sobre) ---------- */

.timeline { display: flex; flex-direction: column; }

.timeline-item {
  display: grid;
  grid-template-columns: 120px 1fr;
  gap: 28px;
  padding: 26px 0;
  border-top: 1px solid var(--border);
}

.timeline-item:last-child { border-bottom: 1px solid var(--border); }

.timeline-item .when {
  font-family: var(--font-head);
  color: var(--accent);
  font-weight: 600;
  font-size: 0.92rem;
}

/* ---------- Footer ---------- */

.site-footer {
  border-top: 1px solid var(--border);
  padding: 56px 0 32px;
  background: var(--bg-alt);
}

.footer-top {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  gap: 40px;
  flex-wrap: wrap;
  padding-bottom: 36px;
}

.footer-nav { display: flex; gap: 44px; flex-wrap: wrap; }

.footer-nav h4 {
  font-size: 0.78rem;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: var(--text-faint);
  margin-bottom: 14px;
}

.footer-nav ul { display: flex; flex-direction: column; gap: 10px; }

.footer-nav a { color: var(--text-dim); font-size: 0.92rem; }
.footer-nav a:hover { color: var(--accent); }

.footer-bottom {
  border-top: 1px solid var(--border);
  padding-top: 24px;
  display: flex;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 12px;
  color: var(--text-faint);
  font-size: 0.82rem;
}

.socials { display: flex; gap: 16px; }
.socials a { color: var(--text-dim); }
.socials a:hover { color: var(--accent); }

/* ---------- Diagnostic form ---------- */

.diag-form { padding: 44px; }

.diag-q { margin-top: 28px; }

.diag-q h3 { font-size: 1.05rem; }

.diag-hint { color: var(--text-faint); font-weight: 400; font-size: 0.85rem; }

.diag-options {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 14px;
}

.diag-option {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 10px 16px;
  border-radius: 100px;
  border: 1px solid var(--border);
  background: var(--surface-2);
  font-size: 0.9rem;
  color: var(--text-dim);
  cursor: pointer;
  transition: border-color 0.15s ease, color 0.15s ease;
}

.diag-option:has(input:checked) {
  border-color: var(--accent);
  color: var(--text);
  background: rgba(215, 255, 63, 0.08);
}

.diag-option input { accent-color: var(--accent); }

.diag-other-input {
  margin-top: 12px;
  width: 100%;
  max-width: 420px;
  padding: 12px 16px;
  border-radius: var(--radius-s);
  border: 1px solid var(--border);
  background: var(--surface-2);
  color: var(--text);
  font-family: var(--font-body);
  font-size: 0.92rem;
}

.diag-q[data-conditional] { display: none; }
.diag-q[data-conditional].is-visible { display: block; }

.diag-error { color: #ff9d7a; font-size: 0.88rem; margin-top: 12px; }

/* ---------- Mini form (2 perguntas, dentro de card) ---------- */

.mini-form { margin-top: 20px; padding-top: 20px; border-top: 1px solid var(--border); }

.mini-q { margin-top: 16px; }
.mini-q:first-child { margin-top: 0; }

.mini-q-label { font-size: 0.88rem; color: var(--text); font-weight: 500; margin-bottom: 10px; }

.mini-input, .diag-other-input {
  width: 100%;
  max-width: 420px;
  padding: 12px 16px;
  border-radius: var(--radius-s);
  border: 1px solid var(--border);
  background: var(--surface-2);
  color: var(--text);
  font-family: var(--font-body);
  font-size: 0.92rem;
}

/* ---------- Post content (prose) ---------- */

.post-content { color: var(--text-dim); font-size: 1.05rem; }

.post-content > * + * { margin-top: 1.2em; }

.post-content h2 {
  font-size: 1.6rem;
  color: var(--text);
  margin-top: 2em;
}

.post-content h3 {
  font-size: 1.25rem;
  color: var(--text);
  margin-top: 1.6em;
}

.post-content p { line-height: 1.75; }

.post-content a { color: var(--accent); text-decoration: underline; text-underline-offset: 3px; }

.post-content ul, .post-content ol { padding-left: 1.4em; color: var(--text-dim); }
.post-content ul { list-style: disc; }
.post-content ol { list-style: decimal; }
.post-content li + li { margin-top: 0.5em; }

.post-content img {
  border-radius: var(--radius-m);
  border: 1px solid var(--border);
}

.post-content blockquote {
  border-left: 3px solid var(--accent);
  padding-left: 20px;
  color: var(--text);
  font-style: italic;
}

.post-content figcaption { color: var(--text-faint); font-size: 0.85rem; margin-top: 0.5em; }

.post-content hr { border: none; border-top: 1px solid var(--border); margin: 2em 0; }

.post-content code {
  background: var(--surface-2);
  padding: 2px 6px;
  border-radius: 4px;
  font-size: 0.9em;
}

/* ---------- Pagination ---------- */

.page-numbers {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 40px;
  height: 40px;
  padding: 0 12px;
  margin: 0 4px;
  border-radius: 100px;
  border: 1px solid var(--border);
  color: var(--text-dim);
  font-family: var(--font-head);
  font-size: 0.9rem;
}

.page-numbers.current { background: var(--accent); color: var(--accent-ink); border-color: var(--accent); }
a.page-numbers:hover { border-color: var(--accent-dim); color: var(--text); }

/* ---------- Utility ---------- */

.text-center { text-align: center; }
.mt-8 { margin-top: 8px; }
.mt-16 { margin-top: 16px; }
.mt-24 { margin-top: 24px; }
.mt-40 { margin-top: 40px; }
.mb-24 { margin-bottom: 24px; }
.section-head { max-width: 680px; margin-bottom: 52px; }
.section-head.text-center { margin-left: auto; margin-right: auto; }

/* ---------- Responsive ---------- */

@media (max-width: 960px) {
  .grid-3 { grid-template-columns: 1fr 1fr; }
  .grid-4 { grid-template-columns: 1fr 1fr; }
  .stats { grid-template-columns: 1fr 1fr; }
}

@media (max-width: 720px) {
  .nav-links { display: none; }
  .nav-toggle { display: flex; }
  .site-header.is-open .nav-links {
    display: flex;
    position: absolute;
    top: 78px;
    left: 0;
    right: 0;
    background: var(--bg);
    flex-direction: column;
    padding: 24px 28px 32px;
    border-bottom: 1px solid var(--border);
    gap: 20px;
  }
  .grid-2, .grid-3, .grid-4 { grid-template-columns: 1fr; }
  .stats { grid-template-columns: 1fr 1fr; }
  .section { padding: 64px 0; }
  .cta-band { padding: 40px 26px; }
  .step, .timeline-item { grid-template-columns: 1fr; gap: 8px; }
  .footer-top { flex-direction: column; }
}
