/* ==========================================================
   Lucas Roberto · site pessoal + blog

   Mobile first: os estilos base são os do celular e os
   @media (min-width) acrescentam o que muda em telas maiores.
   Breakpoints: 640px (sm) · 768px (md) · 1024px (lg)
   ========================================================== */

:root {
  --accent: #1F5EFF;
  --accent-hover: #1546C7;
  --accent-soft: #EAF0FF;
  --accent-soft-2: #F2F6FF;
  --accent-ink: #1F3F8F;
  --accent-light: #6F9BFF;
  --accent-lighter: #8FB1FF;

  --bg: #F7F9FC;
  --surface: #FFFFFF;
  --ink: #0B1B33;
  --ink-2: #33445E;
  --muted: #4A5B75;
  --muted-2: #5A6B85;
  --line: #E4EAF4;
  --line-2: #D3DCEA;

  --navy: #0B1B33;
  --navy-line: #1B2D4D;
  --navy-line-2: #2A3E62;
  --navy-text: #9FB2D3;

  --font: 'Inter', system-ui, sans-serif;
  --mono: 'JetBrains Mono', ui-monospace, monospace;
  --container: 1240px;

  /* Espaçamentos que crescem com a tela */
  --gutter: 20px;
  --section-y: 72px;
  --block-gap: 40px;
  --card-pad: 22px;
  --panel-pad: 24px;
  --radius-lg: 20px;
}

@media (min-width: 768px) {
  :root { --gutter: 24px; --section-y: 104px; --block-gap: 56px; --card-pad: 28px; --panel-pad: 36px; --radius-lg: 24px; }
}

@media (min-width: 1024px) {
  :root { --section-y: 128px; --block-gap: 64px; --panel-pad: 44px; }
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  background: var(--bg);
  color: var(--ink);
  font-family: var(--font);
  font-weight: 300;
  -webkit-font-smoothing: antialiased;
}
a { color: var(--accent); text-decoration: none; }
a:hover { color: var(--accent-hover); }
h1, h2, h3, p { margin: 0; }
img { max-width: 100%; }

.page { position: relative; overflow: hidden; min-height: 100vh; }
.container { max-width: var(--container); margin: 0 auto; padding-left: var(--gutter); padding-right: var(--gutter); }

/* ---------- Animações ---------- */
@keyframes lr-rise { from { opacity: 0; transform: translateY(32px); } to { opacity: 1; transform: none; } }
@keyframes lr-mask { from { clip-path: inset(0 100% 0 0); } to { clip-path: inset(0 0 0 0); } }
@keyframes lr-spin { to { transform: rotate(360deg); } }
@keyframes lr-spin-rev { to { transform: rotate(-360deg); } }
/* Gira o pill no sentido oposto ao anel para o texto ficar sempre de pé */
@keyframes lr-upright { from { transform: var(--pos, translate(0, 0)) rotate(0deg); } to { transform: var(--pos, translate(0, 0)) rotate(-360deg); } }
@keyframes lr-upright-rev { from { transform: var(--pos, translate(0, 0)) rotate(0deg); } to { transform: var(--pos, translate(0, 0)) rotate(360deg); } }
@keyframes lr-marquee { from { transform: translateX(0); } to { transform: translateX(-50%); } }
@keyframes lr-blink { 50% { opacity: 0; } }
@keyframes lr-pulse { 0%, 100% { transform: scale(1); opacity: .9; } 50% { transform: scale(1.6); opacity: .25; } }
@keyframes lr-float { 0%, 100% { transform: translateY(0); } 50% { transform: translateY(-12px); } }
@keyframes lr-dash { to { stroke-dashoffset: 0; } }
@keyframes lr-scan { from { transform: translateY(-100%); } to { transform: translateY(260%); } }
@keyframes lr-type { from { width: 0; } to { width: var(--typed-width, 100%); } }
@keyframes lr-grid { from { background-position: 0 0; } to { background-position: 72px 72px; } }
@keyframes lr-blob { 0%, 100% { transform: translate(0, 0) scale(1); } 50% { transform: translate(-40px, 30px) scale(1.08); } }
@keyframes lr-fade { from { opacity: 0; } to { opacity: 1; } }

.rise { opacity: 0; animation: lr-rise 1s cubic-bezier(.2, .8, .2, 1) forwards; }
.mask { display: block; animation: lr-mask 1.2s cubic-bezier(.7, 0, .2, 1) both; }
.d1 { animation-delay: .1s; } .d2 { animation-delay: .2s; } .d45 { animation-delay: .45s; }
.d6 { animation-delay: .6s; } .d7 { animation-delay: .7s; } .d11 { animation-delay: 1.1s; }
.d13 { animation-delay: 1.3s; } .d18 { animation-delay: 1.8s; } .d21 { animation-delay: 2.1s; }
.d24 { animation-delay: 2.4s; } .d27 { animation-delay: 2.7s; } .d30 { animation-delay: 3s; }
.d33 { animation-delay: 3.3s; }

/* ---------- Fundo ---------- */
.bg-grid {
  position: absolute; inset: 0 0 auto 0; height: 760px; pointer-events: none;
  background-image: linear-gradient(var(--line) 1px, transparent 1px), linear-gradient(90deg, var(--line) 1px, transparent 1px);
  background-size: 56px 56px;
  animation: lr-grid 8s linear infinite;
  mask-image: radial-gradient(ellipse at 70% 30%, #000 15%, transparent 65%);
  -webkit-mask-image: radial-gradient(ellipse at 70% 30%, #000 15%, transparent 65%);
}
.bg-glow {
  position: absolute; right: -200px; top: -160px; width: 480px; height: 480px; border-radius: 50%;
  background: radial-gradient(circle, rgba(31, 94, 255, .14), rgba(31, 94, 255, 0) 65%);
  animation: lr-blob 14s ease-in-out infinite; pointer-events: none;
}

@media (min-width: 768px) {
  .bg-grid { height: 1000px; background-size: 72px 72px; }
  .bg-glow { right: -160px; top: -120px; width: 680px; height: 680px; }
}

/* ---------- Botões ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 10px;
  min-height: 48px; padding: 14px 22px; border-radius: 999px; font-size: 16px; font-weight: 400;
  transition: transform .25s, background .25s, box-shadow .25s;
}
.btn-primary { background: var(--accent); color: #fff; box-shadow: 0 12px 28px -14px rgba(31, 94, 255, .7); }
.btn-primary:hover { color: #fff; background: var(--accent-hover); }
.btn-ghost { background: var(--surface); color: var(--ink); border: 1px solid var(--line-2); }
.btn-ghost:hover { color: var(--ink); }
.btn-dark { background: var(--ink); color: #fff; padding: 10px 16px; font-size: 14px; min-height: 44px; }
.btn-dark:hover { color: #fff; }

@media (min-width: 768px) {
  .btn { padding: 16px 26px; }
  .btn-dark { padding: 12px 20px; font-size: 15px; }
}

/* Só levanta no hover em quem tem mouse: no toque o hover "gruda" depois do clique. */
@media (hover: hover) {
  .btn:hover { transform: translateY(-2px); }
}

/* ---------- Header ---------- */
/* Celular: marca e botão na primeira linha, links embaixo ocupando a largura toda. */
.header {
  position: relative; z-index: 2; padding-top: 20px; padding-bottom: 8px;
  display: flex; flex-wrap: wrap; align-items: center; column-gap: 12px; row-gap: 8px;
}
.brand { display: flex; align-items: center; gap: 10px; color: var(--ink); }
.brand:hover { color: var(--ink); }
.brand-mark {
  width: 36px; height: 36px; border-radius: 50%; border: 1px solid var(--accent); color: var(--accent);
  display: grid; place-items: center; font-weight: 400; font-size: 13px; letter-spacing: .04em;
}
.brand-name { font-weight: 400; font-size: 15px; letter-spacing: -0.01em; }
.header-cta { margin-left: auto; }
.nav { order: 3; flex-basis: 100%; display: flex; gap: 4px; margin-left: -12px; font-size: 15px; font-weight: 400; }
.nav-link { color: var(--muted-2); padding: 12px; }
.nav-link:hover { color: var(--ink); }

@media (min-width: 768px) {
  .header { padding-top: 28px; padding-bottom: 28px; column-gap: 16px; }
  .brand { gap: 12px; }
  .brand-name { font-size: 16px; }
  .nav { order: 0; flex-basis: auto; margin-left: auto; }
  .nav-link { padding: 12px 14px; }
  .header-cta { margin-left: 0; }
}

/* ---------- Hero ---------- */
.hero {
  position: relative; z-index: 1; padding-top: 32px; padding-bottom: 64px;
  display: flex; flex-direction: column; gap: 48px;
}
.hero-text { min-width: 0; }
.badge {
  display: inline-flex; align-items: center; gap: 10px; padding: 8px 14px; border-radius: 999px;
  background: var(--accent-soft); font-size: 13px; font-weight: 400; color: var(--accent-ink);
}
.pulse { position: relative; width: 7px; height: 7px; }
.pulse span { position: absolute; inset: 0; border-radius: 50%; background: var(--accent); }
.pulse span:first-child { animation: lr-pulse 1.8s ease-in-out infinite; }
.hero h1 {
  margin-top: 24px; font-weight: 200; font-size: clamp(40px, 11.5vw, 96px);
  line-height: 1; letter-spacing: -0.045em;
}
.hero h1 .accent { color: var(--accent); font-weight: 300; }
.hero-lead { margin-top: 24px; max-width: 540px; font-size: 17px; line-height: 1.65; color: var(--muted); }
.hero-ctas { margin-top: 32px; display: flex; flex-wrap: wrap; gap: 12px; }
.hero-ctas .btn { flex: 1 1 auto; }

@media (min-width: 640px) {
  .hero-ctas .btn { flex: 0 0 auto; }
}

@media (min-width: 768px) {
  .hero { padding-top: 64px; padding-bottom: 96px; gap: 56px; }
  .hero h1 { margin-top: 32px; font-size: clamp(56px, 7.4vw, 96px); }
  .hero-lead { margin-top: 36px; font-size: 19px; }
  .hero-ctas { margin-top: 44px; }
}

@media (min-width: 1024px) {
  .hero { flex-direction: row; align-items: center; padding-top: 80px; padding-bottom: 112px; }
  .hero-text { flex: 1 1 560px; }
  .hero h1 { font-size: clamp(56px, 6.6vw, 96px); }
}

/* órbita: as medidas internas são proporcionais para não sobrepor no celular */
.orbit-wrap { min-width: 0; display: flex; justify-content: center; }
.orbit { position: relative; width: min(430px, 100% - 64px); aspect-ratio: 1 / 1; }
.ring { position: absolute; border-radius: 50%; }
.ring-outer { inset: 0; border: 1px solid #DCE4F1; animation: lr-spin 44s linear infinite; }
.ring-inner { inset: 17%; border: 1px dashed #C5D4F0; animation: lr-spin-rev 30s linear infinite; }
.pill {
  position: absolute; padding: 6px 12px; border-radius: 999px; font-family: var(--mono);
  font-weight: 300; font-size: 11px; white-space: nowrap;
}
.ring-outer .pill { background: var(--surface); border: 1px solid #DCE4F1; color: var(--ink-2); animation: lr-upright 44s linear infinite; }
.ring-inner .pill { padding: 5px 10px; background: var(--accent-soft); color: var(--accent-ink); font-weight: 400; animation: lr-upright-rev 30s linear infinite; }
.p-top { top: -15px; left: 50%; --pos: translateX(-50%); }
.p-bottom { bottom: -15px; left: 50%; --pos: translateX(-50%); }
.p-left { top: 50%; left: -28px; --pos: translateY(-50%); }
.p-right { top: 50%; right: -28px; --pos: translateY(-50%); }
.p-a { top: 10%; left: 0; }
.p-b { bottom: 12%; right: -4%; }
.p-c { bottom: 2%; left: 6%; }
.core {
  position: absolute; inset: 35%; border-radius: 50%;
  background: radial-gradient(circle at 35% 30%, #FFFFFF, #E3EBFB 75%);
  border: 1px solid var(--line-2); box-shadow: 0 30px 60px -30px rgba(31, 94, 255, .45);
  display: grid; place-items: center; animation: lr-float 5s ease-in-out infinite;
}
.core svg { width: 55%; height: 55%; }

@media (min-width: 768px) {
  .pill { padding: 7px 14px; font-size: 12px; }
  .ring-inner .pill { padding: 6px 12px; }
  .p-top { top: -17px; }
  .p-bottom { bottom: -17px; }
  .p-a { top: 14%; left: 4%; }
  .p-b { bottom: 14%; right: 4%; }
  .p-c { bottom: 8%; left: 12%; }
}

@media (min-width: 1024px) {
  .orbit-wrap { flex: 1 1 420px; }
}

/* ---------- Marquee ---------- */
.marquee {
  position: relative; z-index: 1; border-top: 1px solid var(--line); border-bottom: 1px solid var(--line);
  background: var(--surface); padding: 18px 0; overflow: hidden;
}
.marquee-track {
  display: flex; align-items: center; width: max-content; gap: 32px;
  animation: lr-marquee 36s linear infinite;
  font-size: 20px; font-weight: 200; letter-spacing: -0.02em; white-space: nowrap; color: var(--ink-2);
}
.dot { width: 6px; height: 6px; border-radius: 50%; background: var(--accent); }

@media (min-width: 768px) {
  .marquee { padding: 24px 0; }
  .marquee-track { gap: 44px; font-size: 26px; }
}

/* ---------- Seções ---------- */
.eyebrow { font-family: var(--mono); font-weight: 300; font-size: 12px; color: var(--accent); letter-spacing: .12em; }
.section-title {
  margin-top: 14px; font-weight: 200; font-size: clamp(30px, 8.5vw, 52px);
  line-height: 1.1; letter-spacing: -0.035em;
}

@media (min-width: 768px) {
  .section-title { margin-top: 18px; font-size: clamp(36px, 4.4vw, 52px); }
}

.about {
  position: relative; z-index: 1; padding-top: var(--section-y); padding-bottom: var(--section-y);
  display: flex; flex-direction: column; gap: var(--block-gap);
}
.about-text { min-width: 0; }
.about-text p { margin-top: 20px; font-size: 17px; line-height: 1.75; color: var(--muted); }

@media (min-width: 768px) {
  .about-text p { margin-top: 28px; font-size: 18px; }
}

@media (min-width: 1024px) {
  .about { flex-direction: row; align-items: flex-start; }
  .about-text { flex: 1 1 380px; }
}

/* terminal */
.terminal {
  min-width: 0; border-radius: 16px; background: var(--navy); overflow: hidden;
  position: relative; box-shadow: 0 40px 80px -40px rgba(11, 27, 51, .45);
}
.terminal-bar { display: flex; align-items: center; gap: 8px; padding: 12px 16px; border-bottom: 1px solid var(--navy-line); }
.terminal-bar i { width: 10px; height: 10px; border-radius: 50%; background: var(--navy-line-2); }
.terminal-bar span { margin-left: 10px; font-family: var(--mono); font-weight: 300; font-size: 12px; color: #7F93B5; }
.scan {
  position: absolute; left: 0; right: 0; top: 0; height: 40%; pointer-events: none;
  background: linear-gradient(to bottom, transparent, rgba(111, 155, 255, .07), transparent);
  animation: lr-scan 4s linear infinite;
}
.terminal-body { padding: 20px; font-family: var(--mono); font-weight: 300; font-size: 13px; line-height: 1.9; color: var(--navy-text); overflow-wrap: anywhere; }
.terminal-body b { font-weight: 300; color: #fff; }
.prompt { color: var(--accent-light); }
.typed {
  /* Largura final em caracteres ("whoami --verbose" = 16) para não quebrar a linha do prompt. */
  --typed-width: 16ch;
  display: inline-block; overflow: hidden; white-space: nowrap; width: 0;
  vertical-align: bottom; color: #fff; animation: lr-type 1.4s steps(36) .3s forwards;
}
.cursor {
  display: inline-block; width: 8px; height: 17px; background: var(--accent-light);
  vertical-align: middle; animation: lr-blink 1s steps(1) infinite;
}

@media (min-width: 768px) {
  .terminal { border-radius: 20px; }
  .terminal-bar { padding: 14px 18px; }
  .terminal-body { padding: 26px; font-size: 14px; line-height: 2; }
}

@media (min-width: 1024px) {
  .terminal { flex: 1 1 480px; }
}

/* ---------- Cards ---------- */
.card {
  display: flex; flex-direction: column; gap: 14px; padding: var(--card-pad); border-radius: var(--radius-lg);
  border: 1px solid var(--line); background: var(--surface); color: var(--ink);
  transition: transform .4s cubic-bezier(.2, .8, .2, 1), border-color .4s, box-shadow .4s;
}
.card:hover { color: var(--ink); border-color: #BCD0FF; }
.arrow { transition: transform .4s; }
.card-head { display: flex; justify-content: space-between; align-items: center; gap: 12px; }
.meta { font-family: var(--mono); font-weight: 300; font-size: 12px; color: var(--muted-2); }

@media (hover: hover) {
  .card:hover { transform: translateY(-6px); box-shadow: 0 24px 48px -24px rgba(31, 94, 255, .28); }
  .card:hover .arrow { transform: translate(4px, -4px); }
}

.work { position: relative; z-index: 1; padding-top: 24px; padding-bottom: var(--section-y); }
.grid-cards { margin-top: 32px; display: grid; grid-template-columns: 1fr; gap: 16px; }
.project-img { display: block; width: 100%; height: auto; aspect-ratio: 1200 / 630; object-fit: cover; border-radius: 12px; border: 1px solid var(--line); margin-bottom: 6px; }
.project-name { margin-top: auto; font-size: 24px; font-weight: 300; letter-spacing: -0.025em; }
.project-desc { font-size: 15px; line-height: 1.6; color: var(--muted); }

@media (min-width: 640px) {
  .grid-cards { grid-template-columns: repeat(2, 1fr); gap: 20px; }
}

@media (min-width: 768px) {
  .work { padding-top: 32px; }
  .grid-cards { margin-top: 52px; }
  .project { min-height: 250px; }
  .project-name { font-size: 26px; }
}

@media (min-width: 1200px) {
  .grid-cards { grid-template-columns: repeat(auto-fit, minmax(270px, 1fr)); }
}

/* ---------- Blog ---------- */
.blog { position: relative; z-index: 1; background: var(--surface); border-top: 1px solid var(--line); }
.blog-inner { padding-top: var(--section-y); padding-bottom: var(--section-y); }
.blog-head { display: flex; flex-wrap: wrap; gap: 24px; justify-content: space-between; align-items: flex-end; }
.blog-title { margin-top: 14px; font-weight: 200; font-size: clamp(40px, 11vw, 80px); line-height: 1; letter-spacing: -0.045em; }

/* Filtros: no celular, uma linha que rola para o lado em vez de quebrar em várias. */
.filters {
  flex: 0 0 calc(100% + var(--gutter) * 2); min-width: 0;
  display: flex; gap: 8px; overflow-x: auto; scrollbar-width: none;
  margin-left: calc(var(--gutter) * -1); margin-right: calc(var(--gutter) * -1);
  padding-left: var(--gutter); padding-right: var(--gutter);
}
.filters::-webkit-scrollbar { display: none; }
.chip {
  flex: 0 0 auto; display: inline-flex; align-items: center; min-height: 44px; padding: 0 18px; border-radius: 999px; cursor: pointer;
  font-family: inherit; font-size: 14px; font-weight: 400;
  border: 1px solid var(--line-2); background: var(--surface); color: var(--ink-2);
  transition: background .2s, color .2s, border-color .2s;
}
.chip:hover { border-color: var(--accent); color: var(--ink-2); }
.chip[aria-current="page"] { background: var(--accent); border-color: var(--accent); color: #fff; }

@media (min-width: 768px) {
  .blog-head { gap: 28px; }
  .blog-title { margin-top: 18px; font-size: clamp(56px, 7vw, 80px); }
  .filters { flex: 0 1 auto; flex-wrap: wrap; overflow: visible; margin: 0; padding: 0; }
}

.featured {
  margin-top: 40px; display: flex; flex-direction: column; border-radius: var(--radius-lg); background: var(--bg);
  color: var(--ink); overflow: hidden; border: 1px solid var(--line);
  transition: transform .4s cubic-bezier(.2, .8, .2, 1), border-color .4s, box-shadow .4s;
}
.featured:hover { color: var(--ink); border-color: #BCD0FF; }
.featured-art {
  min-width: 0; position: relative; overflow: hidden; aspect-ratio: 600 / 340;
  background: linear-gradient(160deg, var(--accent-soft), var(--bg));
}
.cover svg, .cover img { position: absolute; inset: 0; width: 100%; height: 100%; }
.cover img { object-fit: cover; }
.draw { stroke-dasharray: 900; stroke-dashoffset: 900; animation: lr-dash 3s ease forwards; }
.draw-2 { animation-delay: .6s; }
.cover-fade { opacity: 0; animation: lr-fade .8s ease forwards; }
.featured-tag {
  position: absolute; left: 16px; top: 16px; padding: 6px 12px; border-radius: 999px;
  background: var(--surface); color: var(--accent-ink); font-family: var(--mono);
  font-weight: 400; font-size: 11px; letter-spacing: .08em;
}
.featured-body { min-width: 0; padding: var(--panel-pad); display: flex; flex-direction: column; gap: 14px; justify-content: center; }
.featured-body h3 { font-size: clamp(24px, 6.5vw, 36px); font-weight: 300; line-height: 1.2; letter-spacing: -0.03em; }
.featured-body p { font-size: 16px; line-height: 1.7; color: var(--muted); }
.read-more { display: inline-flex; align-items: center; gap: 8px; color: var(--accent); font-weight: 400; }

@media (hover: hover) {
  .featured:hover { transform: translateY(-6px); box-shadow: 0 24px 48px -24px rgba(31, 94, 255, .28); }
  .featured:hover .arrow { transform: translate(4px, -4px); }
}

@media (min-width: 768px) {
  .featured { margin-top: 56px; }
  .featured-tag { left: 24px; top: 24px; padding: 7px 14px; }
  .featured-body { gap: 18px; }
  .featured-body h3 { font-size: clamp(28px, 3.4vw, 36px); }
  .featured-body p { font-size: 17px; }
}

@media (min-width: 1024px) {
  .featured { flex-direction: row; }
  .featured-art { flex: 1 1 420px; aspect-ratio: auto; min-height: 320px; }
  .featured-body { flex: 1 1 420px; }
}

.posts { margin-top: 20px; display: grid; grid-template-columns: 1fr; gap: 16px; }
.post[hidden], .featured[hidden] { display: none; }
.tag {
  padding: 5px 12px; border-radius: 999px; background: var(--accent-soft);
  font-family: var(--mono); font-weight: 400; font-size: 11px; color: var(--accent-ink);
}
.post h3 { margin-top: 4px; font-size: 19px; font-weight: 400; line-height: 1.3; letter-spacing: -0.02em; }
.post p { font-size: 15px; line-height: 1.65; color: var(--muted); }
.post-foot { margin-top: auto; display: flex; justify-content: space-between; align-items: center; font-size: 13px; color: var(--muted-2); }

@media (min-width: 640px) {
  .posts { grid-template-columns: repeat(2, 1fr); gap: 20px; }
}

@media (min-width: 768px) {
  .posts { margin-top: 24px; }
  .post { min-height: 240px; }
  .post h3 { margin-top: 8px; font-size: 21px; }
}

@media (min-width: 1024px) {
  .posts { grid-template-columns: repeat(auto-fit, minmax(300px, 1fr)); }
}

.newsletter {
  margin-top: 48px; padding: var(--panel-pad); border-radius: var(--radius-lg); background: var(--accent-soft-2);
  display: flex; flex-direction: column; gap: 20px;
}
.newsletter-text { min-width: 0; }
.newsletter-text h3 { font-size: 24px; font-weight: 300; letter-spacing: -0.025em; }
.newsletter-text p { margin-top: 8px; font-size: 16px; color: var(--muted); }
.newsletter-form { min-width: 0; display: flex; flex-wrap: wrap; gap: 10px; }
.sr-only { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.newsletter input {
  flex: 1 1 100%; min-width: 0; height: 54px; padding: 0 22px; border-radius: 999px;
  border: 1px solid #C9D6EE; background: var(--surface);
  font-family: inherit; font-weight: 300; font-size: 16px; color: var(--ink);
}
.newsletter input:focus { outline: 2px solid var(--accent); outline-offset: 2px; }
.newsletter button {
  flex: 1 1 100%; height: 54px; padding: 0 28px; border-radius: 999px; border: 0; background: var(--accent); color: #fff;
  font-family: inherit; font-size: 16px; font-weight: 400; cursor: pointer; transition: transform .25s, background .25s;
}
.newsletter button:hover { background: var(--accent-hover); }
.newsletter-status { flex-basis: 100%; padding-left: 22px; font-size: 14px; color: var(--accent-ink); }
.newsletter-status.is-error { color: #B42318; }

@media (hover: hover) {
  .newsletter button:hover { transform: translateY(-2px); }
}

@media (min-width: 640px) {
  .newsletter input { flex: 1 1 220px; }
  .newsletter button { flex: 0 0 auto; }
}

@media (min-width: 768px) {
  .newsletter { margin-top: 72px; }
  .newsletter-text h3 { font-size: 26px; }
}

@media (min-width: 1024px) {
  .newsletter { flex-direction: row; flex-wrap: wrap; gap: 24px; align-items: center; justify-content: space-between; }
  .newsletter-text { flex: 1 1 320px; }
  .newsletter-form { flex: 1 1 380px; }
}

/* ---------- Footer ---------- */
.footer { position: relative; z-index: 1; background: var(--navy); color: #fff; padding: 72px 0 32px; overflow: hidden; }
.footer-glow {
  position: absolute; right: -240px; top: -240px; width: 480px; height: 480px; border-radius: 50%;
  background: radial-gradient(circle, rgba(111, 155, 255, .22), rgba(111, 155, 255, 0) 65%);
  animation: lr-blob 16s ease-in-out infinite;
}
.footer-ring {
  position: absolute; right: -160px; bottom: -160px; width: 320px; height: 320px; border-radius: 50%;
  border: 1px dashed #22365A; animation: lr-spin 50s linear infinite;
}
.footer .container { position: relative; }
.footer .eyebrow { color: var(--accent-light); }
.footer h2 { margin-top: 18px; font-weight: 200; font-size: clamp(40px, 12vw, 116px); line-height: .98; letter-spacing: -0.05em; }
.footer h2 span { color: var(--accent-lighter); }
.contact-links { margin-top: 36px; display: flex; flex-wrap: wrap; gap: 10px; }
.contact-links .btn { flex: 1 1 auto; padding: 14px 20px; font-size: 16px; }
.contact-links .btn-white { flex-basis: 100%; }
.btn-white { background: #fff; color: var(--ink); }
.btn-white:hover { color: var(--ink); }
.btn-outline { border: 1px solid var(--navy-line-2); color: #fff; font-weight: 300; }
.btn-outline:hover { color: #fff; border-color: var(--accent-light); }
.footer-bottom {
  margin-top: 64px; padding-top: 24px; border-top: 1px solid var(--navy-line);
  display: flex; flex-wrap: wrap; gap: 8px 16px; justify-content: space-between; font-size: 13px; color: #8A9CBC;
}
.footer-bottom .mono { font-family: var(--mono); font-weight: 300; }

@media (min-width: 640px) {
  .contact-links .btn, .contact-links .btn-white { flex: 0 0 auto; }
}

@media (min-width: 768px) {
  .footer { padding: 104px 0 48px; }
  .footer-glow { right: -200px; top: -200px; width: 640px; height: 640px; }
  .footer-ring { right: -120px; bottom: -120px; width: 420px; height: 420px; }
  .footer h2 { margin-top: 22px; font-size: clamp(64px, 9vw, 116px); }
  .contact-links { margin-top: 52px; gap: 12px; }
  .contact-links .btn { padding: 18px 24px; font-size: 17px; }
  .contact-links .btn-white { padding: 18px 28px; }
  .footer-bottom { margin-top: 128px; padding-top: 28px; font-size: 14px; }
}

@media (min-width: 1024px) {
  .footer { padding-top: 128px; }
  .footer h2 { font-size: clamp(64px, 7.4vw, 116px); }
}

/* ---------- Blog: listagem e artigo ---------- */
.posts-empty { color: var(--muted); }
.blog-page { border-top: 0; }
.blog-page .posts { margin-top: 40px; }
.all-posts { display: inline-flex; align-items: center; gap: 8px; min-height: 44px; margin-top: 24px; font-size: 16px; }
.pagination { margin-top: 40px; display: flex; flex-wrap: wrap; gap: 12px; align-items: center; justify-content: space-between; }
.page-link { min-height: 44px; display: inline-flex; align-items: center; padding: 0 18px; border-radius: 999px; border: 1px solid var(--line-2); font-size: 14px; }
.page-link.is-disabled { color: var(--muted-2); opacity: .5; }
.page-info { order: -1; flex-basis: 100%; text-align: center; font-family: var(--mono); font-size: 12px; color: var(--muted-2); }

@media (hover: hover) {
  .all-posts:hover .arrow { transform: translate(4px, -4px); }
}

@media (min-width: 640px) {
  .page-info { order: 0; flex-basis: auto; }
}

@media (min-width: 768px) {
  .blog-page .posts { margin-top: 56px; }
  .all-posts { margin-top: 32px; }
  .pagination { margin-top: 56px; gap: 16px; }
  .page-link { padding: 0 20px; }
}

.article { position: relative; z-index: 1; max-width: 780px; padding-top: 32px; padding-bottom: var(--section-y); }
.article-back { display: inline-block; margin-bottom: 20px; font-family: var(--mono); font-size: 13px; }
.article-back a { color: inherit; display: inline-block; padding: 12px 0; }
.article .section-title { margin-top: 0; font-size: clamp(30px, 8.5vw, 52px); }
.article-lead { margin-top: 20px; font-size: 18px; line-height: 1.6; color: var(--ink-2); }
.article-byline { margin-top: 16px; line-height: 1.8; }
.article-byline a { color: var(--accent); }
.article-cover {
  position: relative; overflow: hidden; margin-top: 32px; aspect-ratio: 600 / 340; border-radius: 16px;
  margin-left: calc(var(--gutter) * -1); margin-right: calc(var(--gutter) * -1);
  border: 1px solid var(--line); background: linear-gradient(160deg, var(--accent-soft), var(--bg));
}
.article-body { margin-top: 32px; font-size: 17px; line-height: 1.75; color: var(--ink-2); overflow-wrap: break-word; }
.article-body > * + * { margin-top: 1.2em; }
.article-body h2, .article-body h3 { font-weight: 400; letter-spacing: -0.02em; line-height: 1.3; color: var(--ink); }
.article-body h2 { margin-top: 1.8em; font-size: 24px; }
.article-body h3 { margin-top: 1.5em; font-size: 20px; }
.article-body ul, .article-body ol { padding-left: 1.3em; }
.article-body li + li { margin-top: .4em; }
.article-body code { font-family: var(--mono); font-size: .88em; }
.article-body pre {
  overflow-x: auto; padding: 18px var(--gutter); border-radius: 0; background: var(--navy); color: #E6EDF8;
  margin-left: calc(var(--gutter) * -1); margin-right: calc(var(--gutter) * -1); font-size: 14px; line-height: 1.6;
}
.article-body table { display: block; max-width: 100%; overflow-x: auto; border-collapse: collapse; font-size: 15px; }
.article-body th, .article-body td { padding: 10px 14px; border-bottom: 1px solid var(--line); text-align: left; vertical-align: top; }
.article-body th { font-weight: 400; color: var(--ink); }
.author-box {
  margin-top: 48px; padding: 20px; border-radius: var(--radius-lg); border: 1px solid var(--line);
  background: var(--surface); display: flex; gap: 16px; align-items: flex-start;
}
.author-box .brand-mark { flex: 0 0 auto; }
.author-box p { font-size: 15px; line-height: 1.6; color: var(--muted); }
.author-box .author-name { font-size: 17px; font-weight: 400; color: var(--ink); }
.related { position: relative; z-index: 1; padding-bottom: var(--section-y); }
.related .posts { margin-top: 20px; }

@media (min-width: 768px) {
  .article { padding-top: 96px; }
  .article-back { margin-bottom: 32px; }
  .article .section-title { margin-top: 14px; font-size: clamp(36px, 4.4vw, 52px); }
  .article-lead { margin-top: 24px; font-size: 20px; }
  .article-byline { margin-top: 20px; }
  .article-cover { margin: 48px 0 0; border-radius: 24px; }
  .article-body { margin-top: 48px; line-height: 1.8; }
  .article-body h2 { font-size: 28px; }
  .article-body h3 { font-size: 22px; }
  .article-body pre { padding: 20px; border-radius: 12px; margin-left: 0; margin-right: 0; }
  .author-box { margin-top: 64px; padding: 28px; gap: 18px; }
  .related .posts { margin-top: 24px; }
}

/* ---------- Acessibilidade ---------- */
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation-duration: .01ms !important; animation-iteration-count: 1 !important; scroll-behavior: auto !important; }
}
