/* Cless IT — estilos do site (tema claro por padrão; escuro via data-theme="dark")
   Paleta derivada do Conceito 05 — Premium Elegante (Identidade Visual/cless-it-download.html) */
:root {
  --bg: #ffffff;
  --bg-2: #f7f7fb;
  --surface: #ffffff;
  --surface-2: #f3f3f9;
  --border: #e6e6f0;
  --text: #3a3a55;
  --text-strong: #1e1b4b;
  --muted: #6b6b85;
  --accent: #6366f1;
  --accent-2: #4f46e5;
  --accent-deep: #4f46e5;
  --accent-soft: rgba(99, 102, 241, 0.08);
  --accent-line: rgba(79, 70, 229, 0.30);
  --icon-fill: rgba(99, 102, 241, 0.04);
  --glow: rgba(99, 102, 241, 0.06);
  --shadow: 0 20px 50px rgba(30, 27, 75, 0.08);
}
:root[data-theme="dark"] {
  --bg: #0d1117;
  --bg-2: #0a0d13;
  --surface: #131722;
  --surface-2: #1a1f2e;
  --border: #1f2433;
  --text: #e8e8f0;
  --text-strong: #f1f5f9;
  --muted: #8b8ba0;
  --accent: #818cf8;
  --accent-2: #a5b4fc;
  --accent-deep: #6366f1;
  --accent-soft: rgba(129, 140, 248, 0.10);
  --accent-line: rgba(165, 180, 252, 0.35);
  --icon-fill: rgba(99, 102, 241, 0.06);
  --glow: rgba(99, 102, 241, 0.08);
  --shadow: 0 20px 60px rgba(0, 0, 0, 0.35);
}

* { margin: 0; padding: 0; box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  background: var(--bg);
  color: var(--text);
  font-family: 'DM Sans', sans-serif;
  font-size: 16px;
  line-height: 1.6;
  transition: background .3s, color .3s;
}
a { color: inherit; text-decoration: none; }
.wrap { max-width: 1160px; margin: 0 auto; padding: 0 24px; }
.wrap.narrow { max-width: 760px; }

/* ---------- Marca ---------- */
.brand { display: flex; align-items: center; gap: 12px; }
.brand-icon {
  width: 30px; height: 30px; border-radius: 9px;
  border: 2px solid var(--accent-line);
  background: var(--icon-fill);
  transform: rotate(45deg);
  display: grid; place-items: center; flex-shrink: 0;
  margin: 0 4px;
}
.brand-icon span {
  transform: rotate(-45deg);
  font-family: 'Sora', sans-serif; font-weight: 800; font-size: 13px;
  background: linear-gradient(135deg, var(--accent-2), var(--accent));
  -webkit-background-clip: text; background-clip: text; -webkit-text-fill-color: transparent;
}
.brand-name {
  font-family: 'Plus Jakarta Sans', sans-serif; font-weight: 700; font-size: 21px;
  letter-spacing: -0.5px; color: var(--text-strong); line-height: 1;
}
.brand-name .it { font-weight: 400; color: var(--accent-2); opacity: .75; }

/* ---------- Header ---------- */
header {
  position: sticky; top: 0; z-index: 50;
  background: color-mix(in srgb, var(--bg) 82%, transparent);
  backdrop-filter: blur(14px);
  border-bottom: 1px solid var(--border);
}
.nav { display: flex; align-items: center; justify-content: space-between; height: 72px; }
.nav-links { display: flex; gap: 30px; font-size: 14.5px; font-weight: 500; }
.nav-links a { color: var(--muted); transition: color .2s; position: relative; }
.nav-links a:hover, .nav-links a.active { color: var(--text-strong); }
.nav-links a.active::after {
  content: ''; position: absolute; left: 0; right: 0; bottom: -25px; height: 2px; background: var(--accent);
}
.nav-actions { display: flex; align-items: center; gap: 12px; }
.theme-btn {
  width: 38px; height: 38px; border-radius: 10px; border: 1px solid var(--border);
  background: var(--surface); color: var(--muted); cursor: pointer; display: grid; place-items: center;
}
.theme-btn svg { width: 17px; height: 17px; }
.menu-btn { display: none; }

/* ---------- Botões / links ---------- */
.btn {
  display: inline-flex; align-items: center; gap: 8px;
  background: var(--accent-deep); color: #fff; border: none;
  padding: 11px 20px; border-radius: 10px;
  font-family: 'DM Sans', sans-serif; font-size: 14px; font-weight: 600;
  cursor: pointer; transition: transform .2s, background .2s;
}
.btn:hover { transform: translateY(-1px); background: #5458e8; }
.btn.ghost { background: transparent; color: var(--text-strong); border: 1px solid var(--border); }
.btn.ghost:hover { background: var(--surface-2); }
.btn svg { width: 16px; height: 16px; }
.link-arrow { color: var(--accent); font-weight: 600; font-size: 14.5px; display: inline-flex; align-items: center; gap: 6px; white-space: nowrap; transition: gap .2s; }
.link-arrow:hover { gap: 10px; }
.breadcrumb { font-size: 13.5px; color: var(--muted); margin-bottom: 20px; }
.breadcrumb a:hover { color: var(--text-strong); }

/* ---------- Tags / chips ---------- */
.tags { display: flex; flex-wrap: wrap; gap: 8px; }
.tag {
  font-size: 12px; font-weight: 500; padding: 5px 11px; border-radius: 8px;
  background: var(--surface-2); border: 1px solid var(--border); color: var(--text);
}
.eyebrow {
  display: inline-flex; align-items: center; gap: 10px;
  font-family: 'JetBrains Mono', monospace; font-size: 12px; letter-spacing: 1.5px;
  text-transform: uppercase; color: var(--accent);
  background: var(--accent-soft); border: 1px solid var(--accent-line);
  padding: 6px 12px; border-radius: 999px; margin-bottom: 28px;
}
.chip {
  font-family: inherit; font-size: 13.5px; font-weight: 500; padding: 7px 15px; border-radius: 999px; cursor: pointer;
  border: 1px solid var(--border); background: var(--surface); color: var(--muted); transition: all .2s;
}
.chip:hover { color: var(--text-strong); }
.chip.on { background: var(--accent-soft); border-color: var(--accent-line); color: var(--accent); }
.filters { display: flex; gap: 8px; flex-wrap: wrap; margin-bottom: 32px; }

/* ---------- Topo de página interna ---------- */
.page-hero { position: relative; overflow: hidden; padding: 80px 0 64px; border-bottom: 1px solid var(--border); }
.page-hero::before, .hero::before {
  content: ''; position: absolute; inset: 0; pointer-events: none;
  background:
    radial-gradient(ellipse 60% 70% at 20% 40%, var(--glow), transparent 70%),
    radial-gradient(ellipse 40% 50% at 85% 20%, rgba(168, 85, 247, 0.05), transparent 70%);
}
.page-hero .wrap { position: relative; }
.page-hero h1 {
  font-family: 'Sora', sans-serif; font-weight: 700; font-size: clamp(34px, 4.6vw, 52px);
  letter-spacing: -1.6px; line-height: 1.1; color: var(--text-strong); margin-bottom: 16px;
}
.page-hero p { font-size: 18px; color: var(--muted); max-width: 620px; }

/* ---------- Seções ---------- */
section { padding: 96px 0; }
section.alt { background: var(--bg-2); border-top: 1px solid var(--border); border-bottom: 1px solid var(--border); }
.section-head { display: flex; align-items: end; justify-content: space-between; gap: 24px; margin-bottom: 48px; flex-wrap: wrap; }
.section-num { font-family: 'JetBrains Mono', monospace; font-size: 12px; color: var(--accent); display: inline-block; margin-bottom: 14px; letter-spacing: 1px; }
.section-head h2 {
  font-family: 'Sora', sans-serif; font-weight: 700; font-size: clamp(28px, 3.4vw, 40px);
  letter-spacing: -1.2px; color: var(--text-strong); line-height: 1.15;
}
.section-head p { color: var(--muted); max-width: 440px; }

/* ---------- Hero da home ---------- */
.hero { position: relative; overflow: hidden; padding: 120px 0 110px; }
.hero .wrap { position: relative; }
.hero-grid { display: grid; grid-template-columns: 1.3fr 1fr; gap: 64px; align-items: center; }
.hero h1 {
  font-family: 'Sora', sans-serif; font-weight: 700;
  font-size: clamp(38px, 5.4vw, 62px); line-height: 1.08; letter-spacing: -2px;
  color: var(--text-strong); margin-bottom: 24px;
}
.hero h1 em, .grad {
  font-style: normal;
  background: linear-gradient(135deg, var(--accent-2), #a78bfa);
  -webkit-background-clip: text; background-clip: text; -webkit-text-fill-color: transparent;
}
.hero p.lead { font-size: 18px; color: var(--muted); max-width: 540px; margin-bottom: 36px; }
.hero-ctas { display: flex; gap: 12px; flex-wrap: wrap; }
.hero-art {
  aspect-ratio: 1; max-width: 420px; width: 100%; justify-self: center; position: relative;
  display: grid; place-items: center;
}
.hero-art .d { position: absolute; border-radius: 22%; transform: rotate(45deg); border: 2px solid var(--accent-line); }
.hero-art .d1 { width: 86%; height: 86%; opacity: .35; }
.hero-art .d2 { width: 62%; height: 62%; opacity: .6; }
/* Bordas do logo pulsam em onda: a interna primeiro, depois a externa (scale combina com a rotação) */
.hero-art .d1, .hero-art .d2 { animation: hero-pulse 4s ease-in-out infinite; }
.hero-art .d1 { animation-delay: .6s; }
@keyframes hero-pulse {
  0%, 100% { scale: 1; }
  50% { scale: 1.06; border-color: var(--accent); box-shadow: 0 0 28px var(--accent-soft), inset 0 0 28px var(--accent-soft); }
}
@media (prefers-reduced-motion: reduce) { .hero-art .d1, .hero-art .d2 { animation: none; } }
.hero-art .d3 {
  width: 38%; height: 38%; background: linear-gradient(135deg, #1e1b4b, #312e81);
  border: 3px solid rgba(165,180,252,.45); box-shadow: 0 10px 60px rgba(99,102,241,.3);
  display: grid; place-items: center;
}
.hero-art .d3 span {
  transform: rotate(-45deg); font-family: 'Sora', sans-serif; font-weight: 800; font-size: clamp(40px, 6vw, 64px);
  background: linear-gradient(135deg, #c7d2fe, #a5b4fc);
  -webkit-background-clip: text; background-clip: text; -webkit-text-fill-color: transparent;
}
.stats { display: flex; gap: 40px; margin-top: 56px; padding-top: 32px; border-top: 1px solid var(--border); flex-wrap: wrap; }
.stat strong { display: block; font-family: 'Sora', sans-serif; font-size: 28px; color: var(--text-strong); line-height: 1.1; }
.stat span { font-size: 13px; color: var(--muted); }

/* ---------- Cards genéricos ---------- */
.card { background: var(--surface); border: 1px solid var(--border); border-radius: 18px; padding: 26px; }
.grid-4 { display: grid; grid-template-columns: repeat(4, 1fr); gap: 16px; }
.grid-3 { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; }
.grid-2 { display: grid; grid-template-columns: repeat(2, 1fr); gap: 24px; }
.ic {
  width: 40px; height: 40px; border-radius: 11px; background: var(--accent-soft); color: var(--accent);
  display: grid; place-items: center; margin-bottom: 16px; flex-shrink: 0;
}
.ic svg { width: 19px; height: 19px; }
.card h3, .card h4 { font-family: 'Sora', sans-serif; color: var(--text-strong); }
.card h3 { font-size: 18px; margin-bottom: 8px; }
.card h4 { font-size: 16px; margin-bottom: 6px; }
.card p { font-size: 14.5px; color: var(--muted); }

.steps { counter-reset: step; }
.step { position: relative; padding-top: 56px; }
.step::before {
  counter-increment: step; content: '0' counter(step);
  position: absolute; top: 0; left: 0; font-family: 'JetBrains Mono', monospace; font-size: 13px;
  color: var(--accent); border: 1px solid var(--accent-line); background: var(--accent-soft);
  padding: 4px 10px; border-radius: 6px;
}
.step h3 { font-family: 'Sora', sans-serif; color: var(--text-strong); font-size: 18px; margin-bottom: 6px; }
.step p { color: var(--muted); font-size: 14.5px; }

/* ---------- Projetos ---------- */
.project {
  background: var(--surface); border: 1px solid var(--border); border-radius: 22px; overflow: hidden;
  transition: transform .25s, border-color .25s, box-shadow .25s; display: flex; flex-direction: column;
}
.project:hover { transform: translateY(-4px); border-color: var(--accent-line); box-shadow: var(--shadow); }
.project-visual { height: 230px; position: relative; overflow: hidden; padding: 28px 28px 0; display: flex; align-items: flex-end; justify-content: center; }
.project.compact .project-visual { height: 150px; padding: 20px 20px 0; }
.p-cityz    { --p-grad: linear-gradient(140deg, #064e3b, #0f766e 60%, #115e59); }
.p-business { --p-grad: linear-gradient(140deg, #172554, #1e3a8a 60%, #1e40af); }
.p-harmonie { --p-grad: linear-gradient(140deg, #3b0764, #6b21a8 60%, #86198f); }
.p-jamtab   { --p-grad: linear-gradient(140deg, #431407, #9a3412 60%, #b45309); }
.project-visual, .detail-cover { background: var(--p-grad); }
.screen {
  width: 82%; height: 180px; border-radius: 14px 14px 0 0;
  background: rgba(255,255,255,.08); border: 1px solid rgba(255,255,255,.16); border-bottom: none;
  backdrop-filter: blur(6px); padding: 14px; display: grid; gap: 10px; grid-template-rows: 14px 1fr;
}
.project.compact .screen { height: 100px; padding: 10px; grid-template-rows: 10px 1fr; }
.screen .bar { display: flex; gap: 5px; }
.screen .bar i { width: 8px; height: 8px; border-radius: 50%; background: rgba(255,255,255,.3); }
.screen .body { display: grid; grid-template-columns: 1fr 1.6fr; gap: 10px; }
.screen .body div { border-radius: 8px; background: rgba(255,255,255,.1); }
.screen .body .col { display: grid; gap: 8px; background: none; }
.screen .body .col span { display: block; border-radius: 6px; background: rgba(255,255,255,.12); }
.project-logo {
  position: absolute; top: 22px; left: 24px;
  font-family: 'Sora', sans-serif; font-weight: 800; font-size: 15px; color: #fff; letter-spacing: -.3px;
  display: flex; align-items: center; gap: 8px;
}
.project.compact .project-logo { top: 16px; left: 18px; font-size: 14px; }
.project-logo b { width: 26px; height: 26px; border-radius: 8px; background: rgba(255,255,255,.18); display: grid; place-items: center; font-size: 12px; }
.project-body { padding: 26px 28px 28px; display: flex; flex-direction: column; flex: 1; }
.project.compact .project-body { padding: 20px; }
.project-meta { display: flex; justify-content: space-between; align-items: center; margin-bottom: 10px; gap: 8px; }
.project-type { font-family: 'JetBrains Mono', monospace; font-size: 11px; letter-spacing: 1.2px; text-transform: uppercase; color: var(--muted); }
.status { font-size: 12px; font-weight: 600; padding: 3px 10px; border-radius: 999px; white-space: nowrap; }
.status.live { color: #34d399; background: rgba(52,211,153,.1); }
.status.dev { color: #fbbf24; background: rgba(251,191,36,.1); }
.project h3 { font-family: 'Sora', sans-serif; font-size: 23px; color: var(--text-strong); letter-spacing: -.5px; margin-bottom: 8px; }
.project.compact h3 { font-size: 18px; margin-bottom: 4px; }
.project p { color: var(--muted); font-size: 15px; margin-bottom: 20px; flex: 1; }
.project.compact p { font-size: 14px; margin-bottom: 0; }
.project-foot { display: flex; justify-content: space-between; align-items: center; gap: 12px; flex-wrap: wrap; }

/* Detalhe de projeto */
.detail-cover { position: relative; overflow: hidden; padding: 72px 0 0; }
.detail-cover .wrap { position: relative; color: #fff; }
.detail-cover .breadcrumb { color: rgba(255,255,255,.6); }
.detail-cover h1 { font-family: 'Sora', sans-serif; font-size: clamp(36px, 5vw, 56px); letter-spacing: -1.6px; line-height: 1.1; margin-bottom: 12px; }
.detail-cover p.lead { color: rgba(255,255,255,.75); font-size: 18px; max-width: 600px; margin-bottom: 28px; }
.detail-cover .screen { width: 100%; max-width: 860px; height: 300px; margin: 48px auto 0; }
.detail-cover .btn.ghost { color: #fff; border-color: rgba(255,255,255,.3); }
.detail-grid { display: grid; grid-template-columns: 1.6fr 1fr; gap: 56px; }
.facts { display: grid; gap: 16px; }
.fact small { display: block; font-size: 12px; color: var(--muted); text-transform: uppercase; letter-spacing: 1px; font-family: 'JetBrains Mono', monospace; }
.fact strong { color: var(--text-strong); font-weight: 600; }

/* ---------- Artigos ---------- */
.a-meta { display: flex; gap: 14px; align-items: center; font-size: 13px; color: var(--muted); margin-bottom: 10px; flex-wrap: wrap; }
.a-meta .cat { color: var(--accent); font-weight: 600; }
.a-card { background: var(--surface); border: 1px solid var(--border); border-radius: 20px; overflow: hidden; display: flex; flex-direction: column; transition: transform .25s, border-color .25s; }
.a-card:hover { transform: translateY(-3px); border-color: var(--accent-line); }
.a-cover { height: 170px; position: relative; overflow: hidden; background: linear-gradient(135deg, #1e1b4b, #312e81 55%, #4c1d95); }
.a-cover.v2 { background: linear-gradient(135deg, #0f172a, #1e3a8a 60%, #312e81); }
.a-cover.v3 { background: linear-gradient(135deg, #1e1b4b, #4c1d95 55%, #701a75); }
.a-cover::before {
  content: ''; position: absolute; width: 170px; height: 170px; right: -30px; top: -30px; border-radius: 40px;
  transform: rotate(45deg); border: 2px solid rgba(165,180,252,.25);
}
.a-cover::after {
  content: ''; position: absolute; width: 80px; height: 80px; right: 30px; top: 30px; border-radius: 20px;
  transform: rotate(45deg); border: 2px solid rgba(165,180,252,.35); background: rgba(99,102,241,.08);
}
.a-cover.big { height: 300px; }
.a-cover .badge {
  position: absolute; left: 22px; top: 20px; z-index: 1;
  font-family: 'JetBrains Mono', monospace; font-size: 11px; letter-spacing: 1.5px;
  color: #c7d2fe; background: rgba(255,255,255,.1); padding: 5px 10px; border-radius: 6px;
}
.a-body { padding: 22px 24px 24px; display: flex; flex-direction: column; flex: 1; }
.a-body h3 { font-family: 'Sora', sans-serif; font-size: 19px; line-height: 1.3; color: var(--text-strong); margin-bottom: 8px; }
.a-body p { font-size: 14.5px; color: var(--muted); flex: 1; }
.a-featured { display: grid; grid-template-columns: 1.2fr 1fr; margin-bottom: 32px; }
.a-featured .a-cover { height: auto; min-height: 300px; }
.a-featured .a-body { padding: 36px; justify-content: center; }
.a-featured h3 { font-size: 28px; letter-spacing: -.6px; }
.pagination { display: flex; justify-content: center; gap: 8px; margin-top: 48px; }
.pagination a { width: 40px; height: 40px; display: grid; place-items: center; border-radius: 10px; border: 1px solid var(--border); color: var(--muted); font-size: 14px; }
.pagination a.on { background: var(--accent-soft); border-color: var(--accent-line); color: var(--accent); font-weight: 600; }

/* Leitura de artigo */
.article-head { padding: 72px 0 40px; }
.article-head h1 { font-family: 'Sora', sans-serif; font-size: clamp(32px, 4.4vw, 46px); line-height: 1.15; letter-spacing: -1.4px; color: var(--text-strong); margin-bottom: 18px; }
.article-head .sub { font-size: 19px; color: var(--muted); margin-bottom: 28px; }
.author { display: flex; align-items: center; gap: 14px; }
.author .av { width: 44px; height: 44px; border-radius: 50%; background: linear-gradient(135deg, #1e1b4b, #312e81); display: grid; place-items: center; color: #c7d2fe; font-family: 'Sora', sans-serif; font-weight: 700; flex-shrink: 0; }
.author strong { display: block; color: var(--text-strong); font-size: 15px; }
.author span { font-size: 13px; color: var(--muted); }
.prose { font-size: 18px; line-height: 1.8; color: var(--text); padding: 48px 0 24px; }
.prose p { margin-bottom: 24px; }
.prose h2 { font-family: 'Sora', sans-serif; font-size: 26px; letter-spacing: -.5px; color: var(--text-strong); margin: 44px 0 16px; }
.prose blockquote { border-left: 3px solid var(--accent); padding: 4px 0 4px 22px; margin: 32px 0; font-size: 20px; color: var(--text-strong); font-style: italic; }
.prose ul { padding-left: 22px; margin-bottom: 24px; }
.prose li { margin-bottom: 8px; }
.prose code { font-family: 'JetBrains Mono', monospace; font-size: 15px; background: var(--surface-2); border: 1px solid var(--border); padding: 2px 6px; border-radius: 6px; }
.share { display: flex; justify-content: space-between; align-items: center; gap: 16px; flex-wrap: wrap; padding: 28px 0; border-top: 1px solid var(--border); border-bottom: 1px solid var(--border); }

/* ---------- Perfil (estilo LinkedIn) ---------- */
.profile-top { border-bottom: 1px solid var(--border); }
.profile-cover {
  height: 220px; position: relative; overflow: hidden;
  background: linear-gradient(120deg, #1e1b4b, #312e81 50%, #4c1d95);
}
.profile-cover::before {
  content: ''; position: absolute; width: 420px; height: 420px; right: 8%; top: -140px; border-radius: 90px;
  transform: rotate(45deg); border: 2px solid rgba(165,180,252,.2);
}
.profile-cover::after {
  content: ''; position: absolute; width: 220px; height: 220px; right: calc(8% + 100px); top: -40px; border-radius: 50px;
  transform: rotate(45deg); border: 2px solid rgba(165,180,252,.3); background: rgba(99,102,241,.06);
}
.profile-id { display: flex; align-items: flex-end; gap: 28px; margin-top: -70px; position: relative; padding-bottom: 36px; flex-wrap: wrap; }
.profile-photo {
  width: 168px; height: 168px; border-radius: 50%; border: 5px solid var(--bg); flex-shrink: 0;
  background: linear-gradient(135deg, #1e1b4b, #312e81); display: grid; place-items: center;
  font-family: 'JetBrains Mono', monospace; font-size: 10px; letter-spacing: 1.5px; color: rgba(199,210,254,.5); text-align: center;
}
.profile-info { flex: 1; min-width: 260px; padding-bottom: 6px; }
.profile-info h1 { font-family: 'Sora', sans-serif; font-size: 32px; letter-spacing: -.8px; color: var(--text-strong); line-height: 1.2; }
.profile-info .headline { font-size: 17px; color: var(--text); margin: 4px 0 8px; }
.profile-info .loc { font-size: 14px; color: var(--muted); display: flex; gap: 14px; flex-wrap: wrap; }
.profile-actions { display: flex; gap: 10px; flex-wrap: wrap; padding-bottom: 6px; }
.profile-layout { display: grid; grid-template-columns: 1fr 320px; gap: 32px; padding: 48px 0 96px; align-items: start; }
.profile-main { display: grid; gap: 24px; }
.profile-side { display: grid; gap: 20px; position: sticky; top: 96px; }
.p-block { background: var(--surface); border: 1px solid var(--border); border-radius: 18px; padding: 28px 30px; }
.p-block > h2 { font-family: 'Sora', sans-serif; font-size: 20px; color: var(--text-strong); margin-bottom: 20px; display: flex; align-items: center; justify-content: space-between; }
.p-block > h2 small { font-family: 'DM Sans', sans-serif; font-size: 13px; font-weight: 500; color: var(--muted); }
.p-block > p { color: var(--text); margin-bottom: 14px; }
.p-block > p:last-child { margin-bottom: 0; }
.xp { display: grid; grid-template-columns: 52px 1fr; gap: 18px; padding: 20px 0; border-top: 1px solid var(--border); }
.xp:first-of-type { border-top: none; padding-top: 0; }
.xp:last-child { padding-bottom: 0; }
.xp-logo { width: 52px; height: 52px; border-radius: 12px; background: var(--surface-2); border: 1px solid var(--border); display: grid; place-items: center; font-family: 'Sora', sans-serif; font-weight: 700; color: var(--muted); font-size: 15px; }
.xp-logo.cless { background: linear-gradient(135deg, #1e1b4b, #312e81); border: none; }
.xp-logo.cless span { width: 22px; height: 22px; border-radius: 6px; transform: rotate(45deg); border: 2px solid rgba(165,180,252,.5); display: grid; place-items: center; }
.xp-logo.cless span i { transform: rotate(-45deg); font-style: normal; font-size: 10px; font-weight: 800; color: #c7d2fe; }
.xp h3 { font-family: 'Sora', sans-serif; font-size: 16.5px; color: var(--text-strong); line-height: 1.35; }
.xp .org { font-size: 14.5px; color: var(--text); }
.xp .when { font-size: 13.5px; color: var(--muted); margin-bottom: 10px; }
.xp ul { padding-left: 18px; font-size: 14.5px; color: var(--muted); }
.xp ul li { margin-bottom: 4px; }
.xp .tags { margin-top: 12px; }
.skill-group { margin-bottom: 18px; }
.skill-group:last-child { margin-bottom: 0; }
.skill-group h4 { font-size: 13px; font-weight: 600; color: var(--muted); margin-bottom: 10px; text-transform: uppercase; letter-spacing: 1px; font-family: 'JetBrains Mono', monospace; }
.lang { display: flex; justify-content: space-between; padding: 10px 0; border-top: 1px solid var(--border); font-size: 15px; }
.lang:first-of-type { border-top: none; padding-top: 0; }
.lang span { color: var(--muted); font-size: 14px; }
.side-list { display: grid; gap: 14px; }
.side-item { display: flex; gap: 12px; align-items: center; font-size: 14px; }
.side-item .ic { width: 34px; height: 34px; margin: 0; border-radius: 9px; }
.side-item .ic svg { width: 16px; height: 16px; }
.side-item small { display: block; font-size: 12px; color: var(--muted); }
.side-item strong { color: var(--text-strong); font-weight: 600; word-break: break-all; }

/* ---------- Bloco do fundador (home) ---------- */
.founder { display: grid; grid-template-columns: 200px 1fr auto; gap: 36px; align-items: center; }
.founder .profile-photo { width: 200px; height: 200px; border-color: var(--surface); }

/* ---------- Descoberta / caixas ---------- */
.discover .card { display: flex; flex-direction: column; transition: border-color .2s, transform .2s; }
.discover .card:hover { border-color: var(--accent-line); transform: translateY(-2px); }
.discover .card p { flex: 1; }
.go { margin-top: 16px; color: var(--accent); font-weight: 600; font-size: 14.5px; }
.card.about-box { display: grid; grid-template-columns: auto 1fr; gap: 18px; align-items: start; }
.about-box .go { display: inline-block; margin-top: 10px; }
.av-lg { width: 64px; height: 64px; border-radius: 50%; background: linear-gradient(135deg, #1e1b4b, #312e81); display: grid; place-items: center; color: #c7d2fe; font-family: 'Sora', sans-serif; font-weight: 700; font-size: 22px; }
.soft-note { text-align: center; color: var(--muted); margin-top: 40px; font-size: 15.5px; }
.foot-about { font-size: 14px; color: var(--muted); max-width: 300px; margin-top: 14px; }

/* Linha do tempo */
.timeline { position: relative; padding-left: 26px; }
.timeline::before { content: ''; position: absolute; left: 6px; top: 8px; bottom: 8px; width: 1.5px; background: var(--border); }
.tl-item { position: relative; padding-bottom: 22px; }
.tl-item:last-child { padding-bottom: 0; }
.tl-item::before {
  content: ''; position: absolute; left: -26px; top: 6px; width: 12px; height: 12px; border-radius: 3px;
  transform: rotate(45deg); background: var(--surface); border: 2px solid var(--accent-line);
}
.tl-item.current::before { background: var(--accent); border-color: var(--accent); }
.tl-period { font-family: 'JetBrains Mono', monospace; font-size: 12px; color: var(--accent); }
.tl-item h5 { font-family: 'Sora', sans-serif; font-size: 15px; color: var(--text-strong); margin: 2px 0; }
.tl-item p { font-size: 13.5px; color: var(--muted); }

/* ---------- CTA ---------- */
.cta {
  padding: 48px; border-radius: 24px; position: relative; overflow: hidden;
  background: linear-gradient(135deg, #1e1b4b, #312e81 60%, #4c1d95); color: #fff;
  display: flex; justify-content: space-between; align-items: center; gap: 28px; flex-wrap: wrap;
}
.cta h2 { font-family: 'Sora', sans-serif; font-size: clamp(24px, 3vw, 32px); letter-spacing: -.8px; line-height: 1.2; margin-bottom: 6px; }
.cta p { color: rgba(255,255,255,.7); }
.cta .btn { background: #fff; color: #1e1b4b; }

/* ---------- Formulários / contato ---------- */
.input {
  flex: 1; padding: 12px 16px; border-radius: 10px; border: 1px solid var(--border);
  background: var(--bg); color: var(--text-strong); font-family: inherit; font-size: 14px; min-width: 0;
}
.input::placeholder { color: var(--muted); }
.input:focus { outline: 2px solid var(--accent-line); outline-offset: 1px; }
.newsletter {
  margin-top: 56px; padding: 36px 40px; border-radius: 22px;
  background: linear-gradient(135deg, var(--accent-soft), transparent 70%), var(--surface);
  border: 1px solid var(--border);
  display: flex; align-items: center; justify-content: space-between; gap: 28px; flex-wrap: wrap;
}
.newsletter h4 { font-family: 'Sora', sans-serif; font-size: 20px; color: var(--text-strong); margin-bottom: 4px; }
.newsletter p { color: var(--muted); font-size: 14.5px; }
.nl-form { display: flex; gap: 8px; flex: 1; max-width: 420px; min-width: 260px; }
.contact { display: grid; grid-template-columns: 1fr 1.1fr; gap: 64px; align-items: start; }
.contact-links { display: flex; flex-direction: column; gap: 12px; }
.c-link {
  display: flex; align-items: center; gap: 16px; padding: 16px 20px; border-radius: 14px;
  background: var(--surface); border: 1px solid var(--border); transition: border-color .2s;
}
.c-link:hover { border-color: var(--accent-line); }
.c-link .ic { margin: 0; }
.c-link small { display: block; font-size: 12px; color: var(--muted); }
.c-link strong { font-weight: 600; color: var(--text-strong); font-size: 15px; word-break: break-all; }
.form { background: var(--surface); border: 1px solid var(--border); border-radius: 22px; padding: 32px; display: grid; gap: 16px; }
.form .row { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
.form label { display: block; font-size: 13px; font-weight: 500; color: var(--text); margin-bottom: 6px; }
.form .input { width: 100%; }
.form textarea.input { min-height: 140px; resize: vertical; }

/* ---------- Footer ---------- */
footer { border-top: 1px solid var(--border); padding: 48px 0 36px; }
.foot { display: flex; justify-content: space-between; align-items: flex-start; gap: 32px; flex-wrap: wrap; }
.foot .tagline { font-size: 10.5px; letter-spacing: 4px; text-transform: uppercase; color: var(--muted); margin-top: 10px; }
.foot-cols { display: flex; gap: 64px; flex-wrap: wrap; }
.foot-col h5 { font-family: 'Sora', sans-serif; font-size: 13px; color: var(--text-strong); margin-bottom: 12px; }
.foot-col a { display: block; font-size: 14px; color: var(--muted); margin-bottom: 8px; }
.foot-col a:hover { color: var(--text-strong); }
.copy { margin-top: 40px; padding-top: 24px; border-top: 1px solid var(--border); font-size: 13px; color: var(--muted); display: flex; justify-content: space-between; flex-wrap: wrap; gap: 12px; }

/* Etiqueta de mockup */
.mock-note {
  position: fixed; right: 16px; bottom: 16px; z-index: 60;
  font-family: 'JetBrains Mono', monospace; font-size: 11px; letter-spacing: 1px;
  background: var(--surface); border: 1px dashed var(--accent-line); color: var(--muted);
  padding: 8px 12px; border-radius: 8px;
}

/* ---------- Responsivo ---------- */
@media (max-width: 1020px) {
  .nav-links { display: none; }
  .menu-btn { display: grid; }
  .nav-actions .btn { display: none; }
  .nav-links.open {
    display: flex; flex-direction: column; gap: 4px; position: absolute; top: 72px; left: 0; right: 0;
    background: var(--bg); border-bottom: 1px solid var(--border); padding: 12px 24px 20px;
  }
  .nav-links.open a { padding: 10px 0; font-size: 16px; }
  .nav-links.open a.active::after { display: none; }
  .grid-4 { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 900px) {
  .hero-grid, .contact, .detail-grid, .profile-layout, .a-featured { grid-template-columns: 1fr; gap: 40px; }
  .hero-art { max-width: 280px; }
  .grid-3 { grid-template-columns: 1fr 1fr; }
  .profile-side { position: static; }
  .founder { grid-template-columns: 1fr; text-align: left; gap: 24px; }
  .founder .profile-photo { width: 140px; height: 140px; }
  .a-featured { gap: 0; }
  .a-featured .a-cover { min-height: 200px; }
}
@media (max-width: 680px) {
  .wrap { padding: 0 16px; }
  section { padding: 64px 0; }
  .hero { padding: 64px 0; }
  .page-hero { padding: 56px 0 44px; }
  .grid-2, .grid-3, .grid-4, .form .row { grid-template-columns: 1fr; }
  .stats { gap: 24px; }
  .newsletter, .cta { padding: 28px 22px; }
  .nl-form { flex-direction: column; min-width: 0; max-width: none; width: 100%; }
  .form, .p-block { padding: 22px; }
  .profile-cover { height: 140px; }
  .profile-photo { width: 120px; height: 120px; }
  .profile-id { margin-top: -50px; gap: 16px; }
  .profile-info h1 { font-size: 26px; }
  .a-featured .a-body { padding: 24px; }
  .detail-cover .screen { height: 180px; }
  .prose { font-size: 17px; }
  .mock-note { display: none; }
}

/* =====================================================================
   Complementos do site dinâmico
   ===================================================================== */
.a-cover > img, .project-visual > img.shot, .detail-cover img.shot {
  position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; z-index: 0;
}
.a-cover.has-img::before, .a-cover.has-img::after { display: none; }
.screen.has-img { padding: 0; overflow: hidden; display: block; }
.screen.has-img img { width: 100%; height: 100%; object-fit: cover; object-position: top; display: block; }
.profile-photo img, .av img, .av-lg img { width: 100%; height: 100%; object-fit: cover; border-radius: 50%; display: block; }
.av, .av-lg { overflow: hidden; }
.chip { display: inline-block; }
.list-tools { display: flex; justify-content: space-between; gap: 16px; flex-wrap: wrap; align-items: flex-start; margin-bottom: 32px; }
.list-tools .filters { margin-bottom: 0; }
.search { display: flex; gap: 8px; min-width: 240px; }
.search .input { padding: 8px 14px; }
.list-info { color: var(--muted); font-size: 14.5px; margin-bottom: 24px; }
.list-info a { color: var(--accent); font-weight: 600; }
.empty { text-align: center; padding: 64px 24px; color: var(--muted); border: 1px dashed var(--border); border-radius: 20px; }
.empty h3 { font-family: 'Sora', sans-serif; color: var(--text-strong); margin-bottom: 6px; }
.alert { padding: 14px 18px; border-radius: 12px; font-size: 14.5px; margin-bottom: 16px; border: 1px solid; }
.alert.ok { color: #34d399; background: rgba(52,211,153,.08); border-color: rgba(52,211,153,.3); }
.alert.err { color: #f87171; background: rgba(248,113,113,.08); border-color: rgba(248,113,113,.3); }
.field-err { color: #f87171; font-size: 12.5px; margin-top: 4px; display: block; }
.hp { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }
.preview-bar {
  position: sticky; top: 72px; z-index: 40; background: #f59e0b; color: #1c1917; text-align: center;
  font-size: 13.5px; font-weight: 600; padding: 8px 16px;
}
.preview-bar a { text-decoration: underline; }
.prose img { max-width: 100%; height: auto; border-radius: 14px; margin: 8px 0; }
.prose h3 { font-family: 'Sora', sans-serif; font-size: 21px; color: var(--text-strong); margin: 32px 0 12px; }
.prose ol { padding-left: 22px; margin-bottom: 24px; }
.prose a { color: var(--accent); text-decoration: underline; text-underline-offset: 3px; }
.prose pre { font-family: 'JetBrains Mono', monospace; font-size: 14.5px; line-height: 1.6; background: var(--surface-2); border: 1px solid var(--border); border-radius: 12px; padding: 18px 20px; overflow-x: auto; margin-bottom: 24px; }
.prose pre code { background: none; border: 0; padding: 0; }
.prose iframe { width: 100%; aspect-ratio: 16/9; height: auto; border: 0; border-radius: 14px; margin-bottom: 24px; }
.prose .ql-align-center { text-align: center; }
.prose .ql-align-right { text-align: right; }
.prose > :last-child { margin-bottom: 0; }
.prose-sm { padding: 8px 0 0; font-size: 16.5px; }
.tag-link:hover { border-color: var(--accent-line); color: var(--accent); }
.err-page { text-align: center; padding: 120px 0; }
.err-page .code { font-family: 'JetBrains Mono', monospace; color: var(--accent); font-size: 14px; letter-spacing: 2px; }
.err-page h1 { font-family: 'Sora', sans-serif; font-size: clamp(30px, 4vw, 44px); color: var(--text-strong); margin: 12px 0; letter-spacing: -1px; }
.err-page p { color: var(--muted); margin-bottom: 28px; }

/* ---------- Em construção ---------- */
.building { position: relative; overflow: hidden; min-height: 100vh; min-height: 100dvh; display: flex; flex-direction: column; }
.building::before {
  content: ''; position: absolute; inset: 0; pointer-events: none;
  background:
    radial-gradient(ellipse 60% 70% at 20% 40%, var(--glow), transparent 70%),
    radial-gradient(ellipse 40% 50% at 85% 20%, rgba(168, 85, 247, 0.05), transparent 70%);
}
.building .wrap { position: relative; width: 100%; }
/* Barra e rodapé ocupam a largura toda (sem o comportamento fixo do cabeçalho do site) */
.building-top { position: relative; z-index: 1; background: none; backdrop-filter: none; border-bottom: 1px solid var(--border); }
.building-bar { display: flex; align-items: center; justify-content: space-between; gap: 16px; height: 72px; }
.building-main { position: relative; flex: 1; display: flex; align-items: center; padding: 64px 0 96px; }
.building-grid { display: grid; grid-template-columns: 1.3fr 1fr; gap: 64px; align-items: center; }
.building h1 {
  font-family: 'Sora', sans-serif; font-weight: 700;
  font-size: clamp(36px, 5.4vw, 62px); line-height: 1.08; letter-spacing: -2px;
  color: var(--text-strong); margin-bottom: 24px; max-width: 820px;
}
.building h1 em { font-style: normal; background: linear-gradient(135deg, var(--accent-2), #a78bfa); -webkit-background-clip: text; background-clip: text; -webkit-text-fill-color: transparent; }
.building p { font-size: 18px; color: var(--muted); max-width: 560px; margin-bottom: 32px; }
.building .eyebrow { display: inline-flex; align-items: center; gap: 8px; }
.building-pulse { width: 7px; height: 7px; border-radius: 50%; background: var(--accent); box-shadow: 0 0 0 0 var(--accent); animation: building-pulse 2s infinite; }
@keyframes building-pulse { 70% { box-shadow: 0 0 0 7px transparent; } 100% { box-shadow: 0 0 0 0 transparent; } }
.building-art { max-width: 380px; }
.building-art .d1 { animation: building-spin 40s linear infinite, hero-pulse 4s ease-in-out .6s infinite; }
@keyframes building-spin { to { transform: rotate(405deg); } }
.building-foot { position: relative; padding: 24px 0; font-size: 13px; color: var(--muted); border-top: 1px solid var(--border); }
@media (max-width: 900px) {
  .building-grid { grid-template-columns: 1fr; gap: 0; }
  .building-art { order: -1; max-width: 140px; justify-self: start; margin: 0 0 28px -8px; }
  .building-art .d3 span { font-size: 22px; }
  .building-main { padding: 40px 0 64px; align-items: flex-start; }
}
@media (prefers-reduced-motion: reduce) { .building-pulse, .building-art .d1 { animation: none; } }
@media (max-width: 680px) {
  .search { width: 100%; }
}
[hidden] { display: none !important; }
