/* =========================================================
   Victor Security — design system (light, institucional)
   ========================================================= */
:root {
  /* palette */
  --bg:        #ffffff;
  --bg-2:      #f7f8fa;
  --bg-elev:   #ffffff;
  --bg-soft:   #eef1f6;
  --border:    #e4e7ee;
  --border-2:  #cdd3df;
  --text:      #0f172a;
  --text-dim:  #475569;
  --text-mute: #64748b;

  --accent:    #059669;  /* emerald-600 — verde para texto/borders em fundo claro */
  --accent-2:  #047857;  /* emerald-700 — hover */
  --accent-3:  #065f46;  /* emerald-800 */
  --accent-glow: #10b981; /* emerald-500 — para glows e gradientes */
  --cyan:      #0891b2;  /* cyan-600 */
  --blue:      #2563eb;  /* blue-600 */
  --violet:    #7c3aed;  /* violet-600 */
  --warn:      #d97706;  /* amber-600 */
  --danger:    #dc2626;  /* red-600 */

  /* dark surface (terminal, code blocks) — mantém o "verde fluo" característico */
  --dark-surface: #0c1322;
  --dark-surface-2: #080d1a;
  --dark-text:    #e8edf7;
  --dark-text-dim:#94a0b8;
  --dark-accent:  #2ee59e;
  --dark-border:  #1c2845;

  /* typography */
  --font-sans: 'Inter', 'SF Pro Display', system-ui, -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
  --font-mono: 'JetBrains Mono', ui-monospace, Menlo, Consolas, monospace;

  /* layout */
  --radius:    14px;
  --radius-sm: 10px;
  --radius-lg: 22px;
  --maxw:      1180px;
  --maxw-narrow: 760px;
  --shadow-1:  0 1px 2px rgba(15,23,42,0.04), 0 10px 30px -12px rgba(15,23,42,0.10);
  --shadow-2:  0 20px 50px -20px rgba(15,23,42,0.18), 0 1px 0 rgba(15,23,42,0.04);
}

* { box-sizing: border-box; }
html, body { margin: 0; padding: 0; }
html { scroll-behavior: smooth; }

body {
  font-family: var(--font-sans);
  font-size: 16px;
  line-height: 1.6;
  color: var(--text);
  background: var(--bg);
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

::selection { background: rgba(5,150,105,0.18); color: var(--text); }

a { color: var(--accent); text-decoration: none; }
a:hover { color: var(--accent-2); }

img, svg { display: block; max-width: 100%; height: auto; }

h1, h2, h3, h4 {
  font-family: var(--font-sans);
  letter-spacing: -0.018em;
  line-height: 1.1;
  margin: 0;
}

.muted { color: var(--text-dim); }

.container {
  width: 100%;
  max-width: var(--maxw);
  margin: 0 auto;
  padding: 0 1.5rem;
}
.container.narrow { max-width: var(--maxw-narrow); }

/* =========================================================
   Header
   ========================================================= */
.site-header {
  position: sticky;
  top: 0;
  z-index: 30;
  background: rgba(255, 255, 255, 0.82);
  backdrop-filter: saturate(160%) blur(14px);
  -webkit-backdrop-filter: saturate(160%) blur(14px);
  border-bottom: 1px solid var(--border);
}
.nav {
  display: flex;
  align-items: center;
  justify-content: space-between;
  min-height: 68px;
  gap: 1rem;
}
.brand {
  display: inline-flex;
  align-items: center;
  gap: 0.55rem;
  font-weight: 700;
  font-size: 1.05rem;
  color: var(--text);
  letter-spacing: -0.01em;
}
.brand:hover { color: var(--text); }
.brand-mark {
  display: grid;
  place-items: center;
  width: 30px; height: 30px;
  color: var(--accent);
  background: rgba(5,150,105,0.10);
  border: 1px solid rgba(5,150,105,0.25);
  border-radius: 8px;
  transition: box-shadow 0.2s;
}
.brand:hover .brand-mark { box-shadow: 0 0 0 4px rgba(5,150,105,0.10); }
.brand-accent { color: var(--accent); }
.nav-links {
  display: flex;
  align-items: center;
  gap: 1.5rem;
}
.nav-links a {
  color: var(--text-dim);
  font-size: 0.94rem;
  font-weight: 500;
  transition: color 0.15s;
}
.nav-links a:hover { color: var(--text); }
.nav-links a.cta {
  background: var(--accent);
  color: #ffffff;
  padding: 0.55rem 1rem;
  border-radius: 999px;
  font-weight: 600;
  box-shadow: 0 6px 18px -8px rgba(5,150,105,0.55);
}
.nav-links a.cta:hover {
  background: var(--accent-2);
  color: #ffffff;
  transform: translateY(-1px);
}

/* mobile nav toggle (hidden on desktop) */
.nav-toggle {
  display: none;
  width: 42px;
  height: 42px;
  padding: 0;
  background: transparent;
  border: 1px solid var(--border);
  border-radius: 10px;
  cursor: pointer;
  align-items: center;
  justify-content: center;
  color: var(--text);
  transition: border-color 0.15s, background 0.15s;
}
.nav-toggle:hover { border-color: var(--border-2); background: var(--bg-soft); }
.nav-toggle:focus-visible {
  outline: none;
  border-color: var(--accent);
  box-shadow: 0 0 0 4px rgba(5,150,105,0.18);
}
.nav-toggle-bars {
  position: relative;
  display: inline-block;
  width: 20px;
  height: 14px;
}
.nav-toggle-bars span {
  position: absolute;
  left: 0;
  right: 0;
  height: 2px;
  background: currentColor;
  border-radius: 2px;
  transition: transform 0.2s ease, opacity 0.15s ease, top 0.2s ease;
}
.nav-toggle-bars span:nth-child(1) { top: 0; }
.nav-toggle-bars span:nth-child(2) { top: 6px; }
.nav-toggle-bars span:nth-child(3) { top: 12px; }
body[data-nav-open="true"] .nav-toggle-bars span:nth-child(1) {
  top: 6px; transform: rotate(45deg);
}
body[data-nav-open="true"] .nav-toggle-bars span:nth-child(2) { opacity: 0; }
body[data-nav-open="true"] .nav-toggle-bars span:nth-child(3) {
  top: 6px; transform: rotate(-45deg);
}

.nav-backdrop {
  display: none;
  position: fixed;
  inset: 0;
  background: rgba(15, 23, 42, 0.35);
  backdrop-filter: blur(2px);
  z-index: 20;
}

@media (max-width: 760px) {
  .nav-toggle { display: inline-flex; }

  .nav-links {
    position: fixed;
    top: 68px;
    left: 0;
    right: 0;
    flex-direction: column;
    align-items: stretch;
    gap: 0;
    padding: 1rem 1.25rem 1.5rem;
    background: var(--bg);
    border-bottom: 1px solid var(--border);
    box-shadow: 0 18px 40px -20px rgba(15,23,42,0.18);
    transform: translateY(-12px);
    opacity: 0;
    pointer-events: none;
    transition: transform 0.2s ease, opacity 0.2s ease;
    z-index: 25;
  }
  .nav-links a {
    display: block;
    padding: 0.95rem 0.6rem;
    font-size: 1.02rem;
    color: var(--text);
    border-bottom: 1px solid var(--border);
  }
  .nav-links a:hover,
  .nav-links a:focus-visible { color: var(--accent); }
  .nav-links a.cta {
    margin: 0.9rem 0 0;
    text-align: center;
    border-bottom: none;
    padding: 0.85rem 1rem;
  }
  body[data-nav-open="true"] .nav-links {
    transform: translateY(0);
    opacity: 1;
    pointer-events: auto;
  }
  body[data-nav-open="true"] .nav-backdrop { display: block; }
  body[data-nav-open="true"] { overflow: hidden; }
}

/* =========================================================
   Buttons
   ========================================================= */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  padding: 0.72rem 1.1rem;
  border-radius: 999px;
  font-weight: 600;
  font-size: 0.95rem;
  border: 1px solid transparent;
  cursor: pointer;
  text-align: center;
  transition: transform 0.15s, background 0.15s, border-color 0.15s, box-shadow 0.2s;
  white-space: nowrap;
  font-family: inherit;
}
.btn-lg { padding: 0.95rem 1.4rem; font-size: 1rem; }
.btn-primary {
  background: linear-gradient(180deg, var(--accent-glow) 0%, var(--accent) 100%);
  color: #ffffff;
  box-shadow: 0 1px 0 rgba(255,255,255,0.30) inset, 0 10px 26px -10px rgba(5,150,105,0.55);
}
.btn-primary:hover {
  background: linear-gradient(180deg, var(--accent) 0%, var(--accent-2) 100%);
  transform: translateY(-1px);
  box-shadow: 0 1px 0 rgba(255,255,255,0.40) inset, 0 14px 32px -10px rgba(5,150,105,0.6);
  color: #ffffff;
}
.btn-ghost {
  background: var(--bg);
  color: var(--text);
  border-color: var(--border-2);
}
.btn-ghost:hover { border-color: var(--accent); background: var(--bg-soft); color: var(--text); }
.btn-danger {
  background: transparent;
  color: var(--danger);
  border-color: rgba(220,38,38,0.4);
}
.btn-danger:hover { background: rgba(220,38,38,0.08); color: var(--danger); }

/* =========================================================
   Hero
   ========================================================= */
.hero {
  position: relative;
  overflow: hidden;
  padding: 5rem 0 5rem;
  background: radial-gradient(120% 80% at 80% -20%, rgba(16,185,129,0.10), transparent 60%),
              radial-gradient(80% 60% at 0% 20%, rgba(37,99,235,0.06), transparent 60%),
              var(--bg);
}
.bg-grid {
  position: absolute; inset: 0;
  background-image:
    linear-gradient(to right, rgba(15,23,42,0.05) 1px, transparent 1px),
    linear-gradient(to bottom, rgba(15,23,42,0.05) 1px, transparent 1px);
  background-size: 48px 48px;
  mask-image: radial-gradient(ellipse 80% 60% at 50% 30%, #000 30%, transparent 75%);
  -webkit-mask-image: radial-gradient(ellipse 80% 60% at 50% 30%, #000 30%, transparent 75%);
  pointer-events: none;
}
.bg-glow {
  position: absolute;
  width: 700px; height: 700px;
  top: -20%; right: -10%;
  background: radial-gradient(closest-side, rgba(16,185,129,0.14), transparent 70%);
  filter: blur(20px);
  pointer-events: none;
}
.hero-grid {
  position: relative;
  display: grid;
  grid-template-columns: 1.05fr 1fr;
  gap: 3rem;
  align-items: center;
  min-width: 0;
}
.hero-copy, .hero-visual { min-width: 0; }
@media (max-width: 900px) {
  .hero { padding: 3.5rem 0 3rem; }
  .hero-grid { grid-template-columns: 1fr; gap: 2.5rem; }
}

.badge {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.35rem 0.85rem;
  border-radius: 999px;
  font-size: 0.82rem;
  color: var(--text-dim);
  background: var(--bg);
  border: 1px solid var(--border);
  font-weight: 500;
}
.badge .dot {
  width: 8px; height: 8px;
  border-radius: 999px;
  background: var(--accent);
  box-shadow: 0 0 0 4px rgba(5,150,105,0.18);
  animation: pulse 2.2s infinite;
}
@keyframes pulse {
  0%   { box-shadow: 0 0 0 0   rgba(5,150,105,0.45); }
  70%  { box-shadow: 0 0 0 8px rgba(5,150,105,0.00); }
  100% { box-shadow: 0 0 0 0   rgba(5,150,105,0.00); }
}

.hero h1 {
  font-size: clamp(2.4rem, 5vw, 4.1rem);
  font-weight: 800;
  margin: 1.1rem 0 1.1rem;
  letter-spacing: -0.03em;
}
.grad {
  background: linear-gradient(90deg, var(--accent-2) 0%, var(--cyan) 50%, var(--blue) 100%);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}
.hero .lede {
  font-size: 1.15rem;
  color: var(--text-dim);
  max-width: 36rem;
  margin: 0 0 1.8rem;
}
.hero .lede strong { color: var(--text); font-weight: 600; }
.hero-cta { display: flex; gap: 0.8rem; flex-wrap: wrap; }
.hero-trust {
  list-style: none;
  padding: 0; margin: 2rem 0 0;
  display: flex;
  gap: 1.5rem;
  flex-wrap: wrap;
  color: var(--text-dim);
  font-size: 0.9rem;
}
.hero-trust li {
  display: inline-flex;
  align-items: center;
  gap: 0.45rem;
}
.hero-trust li svg { color: var(--accent); }

/* hero visual / terminal */
.hero-visual { position: relative; }
.hero-orb {
  position: absolute;
  width: 420px; height: 420px;
  right: -60px; top: -40px;
  background: radial-gradient(closest-side, rgba(37,99,235,0.12), transparent 70%);
  filter: blur(20px);
  pointer-events: none;
  z-index: 0;
}
.terminal {
  position: relative;
  z-index: 1;
  background: linear-gradient(180deg, var(--dark-surface) 0%, var(--dark-surface-2) 100%);
  border: 1px solid var(--dark-border);
  border-radius: var(--radius);
  box-shadow: 0 30px 60px -20px rgba(15,23,42,0.35), 0 1px 0 rgba(255,255,255,0.06) inset;
  overflow: hidden;
  transform: rotate(-1.5deg);
}
.term-bar {
  display: flex; align-items: center; gap: 0.5rem;
  padding: 0.7rem 0.9rem;
  background: linear-gradient(180deg, #131d33, #0e1626);
  border-bottom: 1px solid var(--dark-border);
}
.term-dot { width: 11px; height: 11px; border-radius: 999px; display: inline-block; }
.dot-r { background: #ff5f57; }
.dot-y { background: #febc2e; }
.dot-g { background: #28c840; }
.term-title {
  font-family: var(--font-mono);
  color: var(--dark-text-dim);
  font-size: 0.78rem;
  margin-left: 0.5rem;
}
.term-body {
  font-family: var(--font-mono);
  font-size: 0.86rem;
  line-height: 1.65;
  color: var(--dark-text);
  padding: 1rem 1.1rem;
  min-height: 320px;
  overflow: hidden;
}
.term-line {
  white-space: nowrap;
  overflow: hidden;
  text-overflow: clip;
  opacity: 0;
  animation: termIn 0.45s steps(40) forwards;
}
@media (max-width: 900px) {
  .terminal { transform: none; max-width: 100%; }
  .hero-orb { display: none; }
  .term-body { font-size: 0.78rem; min-height: 280px; padding: 0.9rem; }
}
@media (max-width: 480px) {
  .term-body { font-size: 0.72rem; }
}
.term-line:nth-child(1) { animation-delay: 0.10s; }
.term-line:nth-child(2) { animation-delay: 0.55s; }
.term-line:nth-child(3) { animation-delay: 1.00s; }
.term-line:nth-child(4) { animation-delay: 1.45s; }
.term-line:nth-child(5) { animation-delay: 1.95s; }
.term-line:nth-child(6) { animation-delay: 2.45s; }
.term-line:nth-child(7) { animation-delay: 2.95s; }
.term-line:nth-child(8) { animation-delay: 3.45s; }
.term-line:nth-child(9) { animation-delay: 3.95s; }
.term-line:nth-child(10) { animation-delay: 4.45s; }
@keyframes termIn {
  from { opacity: 0; transform: translateX(-6px); }
  to   { opacity: 1; transform: translateX(0); }
}
.term-prompt { color: var(--dark-accent); margin-right: 0.4rem; }
.term-dim    { color: var(--dark-text-dim); }
.term-ok     { color: var(--dark-accent); }
.terminal .alert { color: var(--warn); font-weight: 600; }
.terminal .ok    { color: var(--dark-accent); }
.caret {
  display: inline-block;
  width: 8px;
  animation: blink 1s steps(1) infinite;
  color: var(--dark-accent);
}
@keyframes blink { 50% { opacity: 0; } }

/* =========================================================
   Strip (stats below hero)
   ========================================================= */
.strip {
  border-top: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
  background: var(--bg-2);
}
.strip-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  padding: 1.4rem 0;
}
.strip-item {
  display: flex;
  flex-direction: column;
  gap: 0.15rem;
  padding: 0.4rem 1rem;
  border-left: 1px solid var(--border);
  text-align: center;
}
.strip-item:first-child { border-left: none; }
.strip-item strong {
  font-size: 1.05rem;
  font-weight: 700;
  color: var(--text);
  letter-spacing: -0.01em;
}
.strip-item span { color: var(--text-dim); font-size: 0.85rem; }
@media (max-width: 760px) {
  .strip-grid { grid-template-columns: repeat(2, 1fr); gap: 1rem; padding: 1.2rem 0; }
  .strip-item { border-left: none; }
}

/* =========================================================
   Section heads
   ========================================================= */
.section-head { max-width: 720px; margin: 0 0 2.5rem; }
.section-head h2 {
  font-size: clamp(1.8rem, 3.2vw, 2.6rem);
  font-weight: 800;
  letter-spacing: -0.025em;
  margin: 0.4rem 0 0.6rem;
}
.section-lede {
  color: var(--text-dim);
  font-size: 1.05rem;
  margin: 0;
}
.eyebrow {
  display: inline-block;
  font-family: var(--font-mono);
  font-size: 0.85rem;
  color: var(--accent);
  margin: 0;
  letter-spacing: 0;
}
.prompt { color: var(--accent); margin-right: 0.25rem; }

/* =========================================================
   Services
   ========================================================= */
.services { padding: 6rem 0; }
.service-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 1.25rem;
}
@media (max-width: 760px) { .service-grid { grid-template-columns: 1fr; } }

.service-card {
  position: relative;
  background:
    radial-gradient(120% 80% at 0% 0%, rgba(16,185,129,0.05), transparent 60%),
    var(--bg-elev);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 1.6rem 1.6rem 1.4rem;
  box-shadow: var(--shadow-1);
  transition: transform 0.2s, border-color 0.2s, box-shadow 0.2s;
}
.service-card:hover {
  transform: translateY(-3px);
  border-color: rgba(5,150,105,0.45);
  box-shadow: 0 20px 40px -20px rgba(5,150,105,0.20), var(--shadow-1);
}
.service-icon {
  display: grid; place-items: center;
  width: 44px; height: 44px;
  border-radius: 12px;
  background: rgba(5,150,105,0.08);
  color: var(--accent);
  border: 1px solid rgba(5,150,105,0.20);
  margin-bottom: 1.1rem;
}
.service-tags { display: flex; gap: 0.4rem; margin-bottom: 0.7rem; flex-wrap: wrap; }
.tag {
  font-family: var(--font-mono);
  font-size: 0.7rem;
  letter-spacing: 0.5px;
  text-transform: uppercase;
  padding: 0.25rem 0.55rem;
  border-radius: 5px;
  background: var(--bg-soft);
  color: var(--text-dim);
}
.tag-green { background: rgba(5,150,105,0.10); color: var(--accent); }
.tag-cyan  { background: rgba(8,145,178,0.10); color: var(--cyan); }
.tag-blue  { background: rgba(37,99,235,0.10); color: var(--blue); }
.tag-light { background: var(--bg-soft); color: var(--text); }
.service-card h3 { font-size: 1.2rem; font-weight: 700; margin: 0 0 0.5rem; }
.service-card > p { color: var(--text-dim); margin: 0 0 1rem; }
.service-list {
  list-style: none;
  padding: 0;
  margin: 1rem 0 0;
  display: grid;
  gap: 0.35rem;
}
.service-list li {
  color: var(--text-dim);
  font-size: 0.92rem;
  padding-left: 1.25rem;
  position: relative;
}
.service-list li::before {
  content: '';
  position: absolute;
  left: 0; top: 0.6rem;
  width: 6px; height: 6px;
  border-radius: 50%;
  background: var(--accent);
  box-shadow: 0 0 0 2px rgba(5,150,105,0.20);
}

/* =========================================================
   Methodology timeline
   ========================================================= */
.methodology {
  padding: 6rem 0;
  background:
    radial-gradient(60% 50% at 50% 0%, rgba(37,99,235,0.04), transparent 70%),
    var(--bg-2);
  border-top: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
}
.steps {
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  gap: 1rem;
  list-style: none;
  padding: 0; margin: 0;
}
.step {
  position: relative;
  background: var(--bg-elev);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 1.4rem 1.2rem 1.3rem;
  box-shadow: var(--shadow-1);
}
.step::after {
  content: '';
  position: absolute;
  right: -0.8rem; top: 50%;
  width: 1.2rem; height: 1px;
  background: linear-gradient(90deg, var(--border), transparent);
}
.step:last-child::after { display: none; }
.step-num {
  font-family: var(--font-mono);
  font-size: 0.82rem;
  color: var(--accent);
  background: rgba(5,150,105,0.10);
  border: 1px solid rgba(5,150,105,0.25);
  border-radius: 999px;
  padding: 0.15rem 0.55rem;
  display: inline-block;
  margin-bottom: 0.8rem;
}
.step h3 { font-size: 1rem; font-weight: 700; margin: 0 0 0.4rem; }
.step p { color: var(--text-dim); font-size: 0.9rem; margin: 0; }
@media (max-width: 980px) {
  .steps { grid-template-columns: repeat(2, 1fr); }
  .step::after { display: none; }
}
@media (max-width: 520px) { .steps { grid-template-columns: 1fr; } }

/* =========================================================
   Why us
   ========================================================= */
.why { padding: 6rem 0; }
.why-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1rem;
}
@media (max-width: 900px) { .why-grid { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 560px) { .why-grid { grid-template-columns: 1fr; } }

.feature {
  background: var(--bg-elev);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 1.4rem 1.4rem 1.3rem;
  box-shadow: var(--shadow-1);
  transition: transform 0.15s, border-color 0.15s, box-shadow 0.2s;
}
.feature:hover { transform: translateY(-2px); border-color: var(--border-2); box-shadow: var(--shadow-2); }
.feature-icon {
  display: grid; place-items: center;
  width: 40px; height: 40px;
  border-radius: 10px;
  background: rgba(37,99,235,0.08);
  color: var(--blue);
  border: 1px solid rgba(37,99,235,0.20);
  margin-bottom: 0.9rem;
}
.feature h3 { font-size: 1.05rem; font-weight: 700; margin: 0 0 0.35rem; }
.feature p { color: var(--text-dim); margin: 0; font-size: 0.94rem; }

/* =========================================================
   CTA band
   ========================================================= */
.cta-band { padding: 4rem 0 6rem; }
.cta-card {
  display: grid;
  grid-template-columns: 1.4fr auto;
  align-items: center;
  gap: 2rem;
  padding: 2.4rem 2.4rem;
  border-radius: var(--radius-lg);
  background:
    radial-gradient(120% 80% at 100% 0%, rgba(16,185,129,0.12), transparent 50%),
    radial-gradient(80% 80% at 0% 100%, rgba(37,99,235,0.08), transparent 60%),
    var(--bg-elev);
  border: 1px solid var(--border);
  box-shadow: var(--shadow-2);
}
.cta-card h2 {
  font-size: clamp(1.5rem, 2.6vw, 2.1rem);
  font-weight: 800;
  margin: 0 0 0.4rem;
  letter-spacing: -0.02em;
}
.cta-card p { color: var(--text-dim); margin: 0; max-width: 36rem; }
@media (max-width: 720px) {
  .cta-card { grid-template-columns: 1fr; padding: 1.8rem; }
}

/* =========================================================
   Generic page / blog / contact
   ========================================================= */
.page { position: relative; padding: 5rem 0; }
.page h1 {
  font-size: clamp(1.9rem, 3.2vw, 2.8rem);
  font-weight: 800;
  margin: 0.4rem 0 1rem;
  letter-spacing: -0.025em;
}
.page .lede { color: var(--text-dim); font-size: 1.1rem; max-width: 38rem; margin-bottom: 2.2rem; }
.page.contato { padding: 5rem 0 6rem; overflow: hidden; }
.page.contato .bg-glow { position: absolute; width: 600px; height: 600px; top: -10%; right: -10%; background: radial-gradient(closest-side, rgba(16,185,129,0.10), transparent 70%); filter: blur(20px); }

/* =========================================================
   Blog index — card grid
   ========================================================= */
.post-card-grid {
  list-style: none;
  padding: 0;
  margin: 2rem 0 0;
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 1.5rem;
}
@media (max-width: 760px) {
  .post-card-grid { grid-template-columns: 1fr; gap: 1.25rem; }
}
.post-card {
  background: var(--bg-elev);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  overflow: hidden;
  box-shadow: var(--shadow-1);
  transition: transform 0.2s, border-color 0.2s, box-shadow 0.2s;
}
.post-card:hover {
  transform: translateY(-3px);
  border-color: rgba(5,150,105,0.45);
  box-shadow: 0 20px 40px -20px rgba(5,150,105,0.20), var(--shadow-1);
}
.post-card-link {
  display: flex;
  flex-direction: column;
  height: 100%;
  color: var(--text);
}
.post-card-link:visited,
.post-card-link:hover,
.post-card-link:focus,
.post-card-link:active { color: var(--text); }
.post-card-media {
  position: relative;
  aspect-ratio: 16 / 9;
  overflow: hidden;
  background: var(--bg-2);
  border-bottom: 1px solid var(--border);
}
.post-card-media > img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.4s;
}
.post-card:hover .post-card-media > img { transform: scale(1.03); }
.post-card-media-fallback {
  display: grid;
  place-items: center;
  padding: 1.5rem;
  background:
    radial-gradient(120% 80% at 0% 0%, rgba(5,150,105,0.10), transparent 60%),
    radial-gradient(80% 80% at 100% 100%, rgba(37,99,235,0.08), transparent 60%),
    var(--bg-2);
}
.post-card-fallback-text {
  font-family: var(--font-mono);
  font-size: 1.1rem;
  color: var(--text-dim);
  text-align: center;
  letter-spacing: -0.01em;
  line-height: 1.3;
}
.post-card-body {
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
  padding: 1.3rem 1.4rem 1.5rem;
  flex: 1;
}
.post-card-body .eyebrow { margin: 0; }
.post-card-body h2 {
  margin: 0;
  font-size: 1.25rem;
  font-weight: 700;
  letter-spacing: -0.015em;
  transition: color 0.15s;
}
.post-card-link:hover h2 { color: var(--accent); }
.post-card-summary {
  color: var(--text-dim);
  margin: 0.2rem 0 0;
  font-size: 0.95rem;
  line-height: 1.55;
}
.post-meta {
  font-family: var(--font-mono);
  font-size: 0.8rem;
  color: var(--text-dim);
  display: flex;
  gap: 0.5rem;
  margin: 0;
}
.empty { color: var(--text-dim); font-style: italic; }

/* article hero (cover image on the post page) */
.article-hero {
  margin: 1.5rem 0 2.5rem;
  border-radius: var(--radius);
  overflow: hidden;
  border: 1px solid var(--border);
  box-shadow: var(--shadow-2);
}
.article-hero img {
  width: 100%;
  height: auto;
  display: block;
  aspect-ratio: 16 / 9;
  object-fit: cover;
}

/* admin cover field */
.cover-field {
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  padding: 1rem 1.1rem 0.5rem;
  margin: 0 0 1.1rem;
  background: var(--bg-2);
}
.cover-field legend {
  padding: 0 0.4rem;
  color: var(--text);
  font-weight: 500;
  font-size: 0.92rem;
}
.cover-field .form-footnote { margin-top: 0.25rem; }
.cover-current {
  display: flex;
  flex-direction: column;
  gap: 0.6rem;
  margin: 0 0 0.9rem;
}
.cover-current img {
  width: 100%;
  max-width: 360px;
  aspect-ratio: 16 / 9;
  object-fit: cover;
  border-radius: var(--radius-sm);
  border: 1px solid var(--border);
}
.cover-remove {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  margin: 0;
  color: var(--text-dim);
  font-size: 0.9rem;
}
.cover-remove input { width: auto; }
input[type="file"] {
  width: 100%;
  background: var(--bg);
  color: var(--text-dim);
  border: 1px dashed var(--border-2);
  border-radius: var(--radius-sm);
  padding: 0.7rem 0.9rem;
  font: inherit;
  font-size: 0.92rem;
  cursor: pointer;
}
input[type="file"]:hover { border-color: var(--accent); background: var(--bg-soft); }

.pagination {
  display: flex;
  gap: 1rem;
  align-items: center;
  justify-content: space-between;
  margin-top: 2rem;
  font-family: var(--font-mono);
  font-size: 0.9rem;
  color: var(--text-dim);
}

/* article body */
.article-body { font-size: 1.05rem; }
.article-body h2, .article-body h3, .article-body h4 { margin: 2rem 0 0.6rem; font-weight: 700; }
.article-body p { margin: 0 0 1rem; }
.article-body pre {
  background: var(--dark-surface);
  color: var(--dark-text);
  border: 1px solid var(--dark-border);
  border-radius: var(--radius-sm);
  padding: 1rem;
  overflow-x: auto;
  font-family: var(--font-mono);
  font-size: 0.9rem;
  box-shadow: var(--shadow-1);
}
.article-body code {
  font-family: var(--font-mono);
  background: var(--bg-soft);
  color: var(--accent-2);
  border-radius: 4px;
  padding: 0.1rem 0.35rem;
  font-size: 0.95em;
}
.article-body pre code { background: transparent; color: inherit; padding: 0; }
.article-body blockquote {
  border-left: 3px solid var(--accent);
  margin: 1rem 0;
  padding: 0.25rem 1rem;
  color: var(--text-dim);
  background: var(--bg-2);
  border-radius: 0 var(--radius-sm) var(--radius-sm) 0;
}
.article-body ul, .article-body ol { padding-left: 1.5rem; }
.article-body img { border-radius: var(--radius-sm); margin: 1rem 0; }
.article-body a { color: var(--accent); text-decoration: underline; text-underline-offset: 2px; }
.article-body a:hover { color: var(--accent-2); }

/* =========================================================
   Forms
   ========================================================= */
form label {
  display: block;
  margin-bottom: 1.1rem;
}
form label > span {
  display: block;
  color: var(--text);
  font-weight: 500;
  font-size: 0.92rem;
  margin-bottom: 0.4rem;
}
form label > span em {
  font-style: normal;
  color: var(--text-mute);
  font-weight: 400;
  font-size: 0.85em;
}
form .row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1rem;
}
@media (max-width: 600px) { form .row { grid-template-columns: 1fr; } }

input[type="text"], input[type="email"], input[type="password"], input[type="tel"],
select, textarea {
  width: 100%;
  background: var(--bg);
  color: var(--text);
  border: 1px solid var(--border-2);
  border-radius: var(--radius-sm);
  padding: 0.8rem 0.95rem;
  font: inherit;
  font-size: 1rem;
  transition: border-color 0.15s, box-shadow 0.15s;
}
input::placeholder, textarea::placeholder { color: var(--text-mute); }
input:focus, select:focus, textarea:focus {
  outline: none;
  border-color: var(--accent);
  box-shadow: 0 0 0 4px rgba(5,150,105,0.15);
}
textarea { resize: vertical; min-height: 130px; }
textarea.mono { font-family: var(--font-mono); font-size: 0.95rem; line-height: 1.55; }

.form-actions {
  display: flex;
  align-items: center;
  gap: 1rem;
  margin-top: 0.6rem;
  flex-wrap: wrap;
}
.form-footnote {
  color: var(--text-dim);
  font-size: 0.85rem;
  margin: 0;
}
.form-result { margin-top: 1rem; font-size: 0.95rem; }
.form-result.ok { color: var(--accent); }
.form-result.err { color: var(--danger); }

.alert {
  padding: 0.95rem 1.1rem;
  border-radius: var(--radius-sm);
  margin: 1rem 0 1.5rem;
  border: 1px solid transparent;
  font-size: 0.95rem;
}
.alert-success {
  background: rgba(5,150,105,0.08);
  border-color: rgba(5,150,105,0.35);
  color: var(--accent-3);
}
.alert-error {
  background: rgba(220,38,38,0.06);
  border-color: rgba(220,38,38,0.35);
  color: var(--danger);
}

/* =========================================================
   Footer
   ========================================================= */
.site-footer {
  border-top: 1px solid var(--border);
  padding: 4rem 0 2rem;
  background: var(--bg-2);
}
.footer-grid {
  display: grid;
  grid-template-columns: 1.5fr 1fr 1fr 1fr;
  gap: 2.5rem;
  padding-bottom: 2.5rem;
  border-bottom: 1px solid var(--border);
}
@media (max-width: 800px) {
  .footer-grid { grid-template-columns: 1fr 1fr; gap: 2rem; }
}
@media (max-width: 480px) {
  .footer-grid { grid-template-columns: 1fr; }
}
.footer-brand .brand { font-size: 1.05rem; }
.footer-brand p { margin: 0.9rem 0 0; }
.site-footer h4 {
  font-size: 0.85rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  color: var(--text-mute);
  margin: 0 0 0.8rem;
}
.site-footer ul { list-style: none; padding: 0; margin: 0; display: grid; gap: 0.45rem; }
.site-footer ul a { color: var(--text-dim); font-size: 0.94rem; }
.site-footer ul a:hover { color: var(--accent); }
.site-footer ul a.cta-link { color: var(--accent); font-weight: 600; }
.footer-bottom {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding-top: 1.5rem;
  color: var(--text-dim);
  font-size: 0.88rem;
  flex-wrap: wrap;
  gap: 0.5rem;
}

/* prefers-reduced-motion */
@media (prefers-reduced-motion: reduce) {
  .term-line { animation: none; opacity: 1; }
  .caret { animation: none; }
  .badge .dot { animation: none; }
  html { scroll-behavior: auto; }
}
