/* ==========================================================================
   Home / Landing Page — Premium Tech Edition
   ========================================================================== */

:root{
  --bg: #06070a;
  --bg-soft: #0b0d12;
  --surface: #10131a;
  --surface-2: #151924;
  --border: rgba(255,255,255,0.08);
  --border-strong: rgba(255,255,255,0.14);
  --text: #f3f5f9;
  --text-dim: #a6acbb;
  --text-faint: #6b7280;
  --accent: #6ea8ff;
  --accent-2: #9b7bff;
  --accent-soft: rgba(110,168,255,0.12);
  --gradient: linear-gradient(120deg, #6ea8ff 0%, #9b7bff 60%, #ff8ad1 100%);
  --shadow-lg: 0 40px 80px -30px rgba(0,0,0,0.7);
  --radius-lg: 24px;
  --radius-md: 16px;
  --radius-sm: 10px;
  --ease: cubic-bezier(.16,.84,.44,1);
}

*{ box-sizing: border-box; }

html{ scroll-behavior: smooth; }

body.home-body{
  margin:0;
  background: var(--bg);
  color: var(--text);
  font-family: 'Inter', 'Segoe UI', -apple-system, BlinkMacSystemFont, sans-serif;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}

.home-body img{ max-width: 100%; display:block; }

.container{
  width: 100%;
  max-width: 1240px;
  margin: 0 auto;
  padding: 0 32px;
}

a{ color: inherit; text-decoration: none; }

::selection{ background: var(--accent-soft); color: var(--text); }

/* ---------- Reveal on scroll ---------- */
.reveal{
  opacity: 0;
  transform: translateY(24px);
  transition: opacity .8s var(--ease), transform .8s var(--ease);
  will-change: transform, opacity;
}
.reveal.is-visible{ opacity: 1; transform: translateY(0); }
.reveal-stagger > *{ transition-delay: calc(var(--i, 0) * 90ms); }

@media (prefers-reduced-motion: reduce){
  .reveal{ transition: none; opacity: 1; transform: none; }
}

/* ---------- Navbar ---------- */
.navbar{
  position: fixed;
  top: 0; left: 0; right: 0;
  z-index: 100;
  padding: 18px 0;
  transition: background .4s var(--ease), border-color .4s var(--ease), padding .4s var(--ease);
  border-bottom: 1px solid transparent;
}
.navbar.is-scrolled{
  background: rgba(6,7,10,0.72);
  backdrop-filter: blur(16px) saturate(140%);
  -webkit-backdrop-filter: blur(16px) saturate(140%);
  border-bottom: 1px solid var(--border);
  padding: 12px 0;
}
.navbar .container{
  display:flex;
  align-items:center;
  justify-content: space-between;
  gap: 24px;
}
.nav-logo{
  font-size: 1.15rem;
  font-weight: 700;
  letter-spacing: -0.02em;
  display: flex;
  align-items: center;
  gap: 10px;
}
.nav-logo .dot{
  width: 8px; height: 8px; border-radius: 50%;
  background: var(--gradient);
  box-shadow: 0 0 16px rgba(110,168,255,0.7);
}
.nav-links{
  display:flex;
  align-items:center;
  gap: 36px;
  list-style:none;
  margin:0; padding:0;
}
.nav-links a{
  font-size: 0.92rem;
  color: var(--text-dim);
  transition: color .25s var(--ease);
  position: relative;
}
.nav-links a:hover{ color: var(--text); }
.nav-links a::after{
  content:'';
  position:absolute; left:0; bottom:-6px;
  width:0; height:1px;
  background: var(--accent);
  transition: width .3s var(--ease);
}
.nav-links a:hover::after{ width: 100%; }

.nav-actions{ display:flex; align-items:center; gap: 18px; }

.btn{
  display:inline-flex;
  align-items:center;
  justify-content:center;
  gap: 8px;
  padding: 12px 24px;
  border-radius: 999px;
  font-size: 0.92rem;
  font-weight: 600;
  border: 1px solid transparent;
  cursor: pointer;
  transition: transform .35s var(--ease), box-shadow .35s var(--ease), background .35s var(--ease), border-color .35s var(--ease);
  white-space: nowrap;
}
.btn-primary{
  background: var(--text);
  color: #06070a;
}
.btn-primary:hover{
  transform: translateY(-2px);
  box-shadow: 0 12px 30px -8px rgba(255,255,255,0.25);
}
.btn-ghost{
  background: transparent;
  color: var(--text);
  border-color: var(--border-strong);
}
.btn-ghost:hover{
  border-color: var(--text-dim);
  transform: translateY(-2px);
}
.btn-sm{ padding: 9px 18px; font-size: 0.85rem; }

.nav-toggle{
  display:none;
  width: 40px; height: 40px;
  border-radius: 10px;
  border: 1px solid var(--border-strong);
  background: transparent;
  color: var(--text);
  align-items:center; justify-content:center;
  cursor:pointer;
}

/* ---------- Hero ---------- */
.hero{
  position: relative;
  min-height: 100vh;
  display:flex;
  align-items:center;
  padding: 150px 0 100px;
  overflow: hidden;
}

.hero-bg{
  position:absolute; inset: 0;
  z-index: 0;
  pointer-events:none;
}
.hero-bg .glow{
  position:absolute;
  border-radius: 50%;
  filter: blur(90px);
  opacity: 0.35;
}
.hero-bg .glow-1{
  width: 560px; height: 560px;
  top: -180px; left: -120px;
  background: radial-gradient(circle, #6ea8ff, transparent 70%);
}
.hero-bg .glow-2{
  width: 480px; height: 480px;
  bottom: -220px; right: -100px;
  background: radial-gradient(circle, #9b7bff, transparent 70%);
}
.hero-particle{
  position:absolute;
  width: 4px; height: 4px;
  border-radius: 50%;
  background: var(--text);
  opacity: 0.5;
  box-shadow: 0 0 10px 2px rgba(255,255,255,0.35);
  will-change: transform;
}
.hero-grid{
  position:absolute; inset:0;
  background-image:
    linear-gradient(to right, rgba(255,255,255,0.035) 1px, transparent 1px),
    linear-gradient(to bottom, rgba(255,255,255,0.035) 1px, transparent 1px);
  background-size: 64px 64px;
  mask-image: radial-gradient(ellipse 60% 50% at 50% 40%, black, transparent 80%);
}

.hero .container{
  position: relative;
  z-index: 2;
  display:grid;
  grid-template-columns: 1fr 1fr;
  align-items:center;
  gap: 40px;
}

.hero-content{ max-width: 560px; }

.eyebrow{
  display:inline-flex;
  align-items:center;
  gap: 8px;
  font-size: 0.8rem;
  font-weight: 600;
  letter-spacing: 0.02em;
  color: var(--text-dim);
  background: var(--surface);
  border: 1px solid var(--border);
  padding: 7px 14px 7px 8px;
  border-radius: 999px;
  margin-bottom: 24px;
}
.eyebrow .tag{
  background: var(--gradient);
  color: #06070a;
  font-size: 0.7rem;
  padding: 3px 9px;
  border-radius: 999px;
  font-weight: 700;
}

.hero h1{
  font-size: clamp(2.4rem, 4.4vw, 3.6rem);
  line-height: 1.08;
  letter-spacing: -0.03em;
  font-weight: 700;
  margin: 0 0 22px;
}
.hero h1 .grad{
  background: var(--gradient);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

.hero p.lead{
  font-size: 1.08rem;
  line-height: 1.65;
  color: var(--text-dim);
  margin: 0 0 36px;
  max-width: 480px;
}

.hero-ctas{
  display:flex;
  align-items:center;
  gap: 16px;
  flex-wrap: wrap;
  margin-bottom: 44px;
}

.hero-meta{
  display:flex;
  align-items:center;
  gap: 28px;
  color: var(--text-faint);
  font-size: 0.85rem;
}
.hero-meta strong{
  color: var(--text);
  font-size: 1.1rem;
  display:block;
  font-weight: 700;
}

/* ---------- Notebook (CSS 3D) ---------- */
.hero-stage{
  position: relative;
  height: 520px;
  display:flex;
  align-items:center;
  justify-content:center;
  perspective: 1800px;
}

.notebook-float{
  animation: notebookIdleFloat 6s ease-in-out infinite;
  transform-style: preserve-3d;
}
@keyframes notebookIdleFloat{
  0%, 100%{ transform: translateY(0); }
  50%{ transform: translateY(-14px); }
}
@media (prefers-reduced-motion: reduce){
  .notebook-float{ animation: none; }
}

.notebook-wrap{
  position: relative;
  width: min(560px, 100%);
  transform-style: preserve-3d;
  will-change: transform;
}

.notebook{
  position: relative;
  transform-style: preserve-3d;
  transform: rotateX(14deg) rotateY(-16deg);
}

.notebook-shadow{
  position:absolute;
  left: 8%; right: 8%;
  bottom: -58px;
  height: 60px;
  background: radial-gradient(ellipse at center, rgba(0,0,0,0.55), rgba(0,0,0,0) 70%);
  filter: blur(4px);
  transform-origin: center;
  will-change: transform;
}

.notebook-lid{
  position: relative;
  margin: 0 auto;
  width: 100%;
  aspect-ratio: 16 / 10.6;
  border-radius: 18px 18px 6px 6px;
  background: linear-gradient(155deg, #2b2f3a 0%, #14161c 55%, #0b0c10 100%);
  border: 1px solid rgba(255,255,255,0.08);
  box-shadow:
    0 2px 0 rgba(255,255,255,0.06) inset,
    0 60px 90px -40px rgba(0,0,0,0.8);
  padding: 14px;
  transform-style: preserve-3d;
}

.notebook-screen{
  position: relative;
  width: 100%;
  height: 100%;
  border-radius: 8px;
  overflow: hidden;
  background: #05060a;
  border: 1px solid rgba(255,255,255,0.06);
}

.notebook-screen .notch{
  position:absolute;
  top: 0; left: 50%;
  transform: translateX(-50%);
  width: 90px; height: 14px;
  background: #05060a;
  border-radius: 0 0 10px 10px;
  z-index: 3;
}

.notebook-screen .screen-glare{
  position:absolute; inset:0;
  background: linear-gradient(120deg, rgba(255,255,255,0.14) 0%, rgba(255,255,255,0.02) 30%, transparent 55%);
  pointer-events:none;
  z-index: 4;
  mix-blend-mode: screen;
}

.notebook-screen .screen-content{
  position:absolute; inset:0;
  display:flex;
  flex-direction:column;
}

.screen-topbar{
  display:flex;
  align-items:center;
  gap: 6px;
  padding: 10px 14px 8px;
  border-bottom: 1px solid rgba(255,255,255,0.06);
}
.screen-topbar span{
  width: 8px; height: 8px; border-radius: 50%;
  background: rgba(255,255,255,0.18);
}
.screen-topbar .bar{
  flex:1;
  height: 14px;
  margin-left: 10px;
  border-radius: 6px;
  background: rgba(255,255,255,0.05);
}
.screen-topbar .bar.mono{
  height: auto;
  background: transparent;
  font-family: 'JetBrains Mono', 'Consolas', monospace;
  font-size: 0.68rem;
  color: var(--text-faint);
  display:flex;
  align-items:center;
}

/* Code editor variant of the notebook screen */
.code-body{
  display:block;
  padding: 18px 20px;
  font-family: 'JetBrains Mono', 'Consolas', monospace;
  font-size: 0.72rem;
  line-height: 1.9;
}
.code-line{ white-space: nowrap; color: var(--text-dim); }
.code-line.indent{ padding-left: 22px; }
.code-line .ln{
  display:inline-block;
  width: 22px;
  color: var(--text-faint);
  opacity: 0.5;
}
.tok.kw{ color: #c792ea; }
.tok.fn{ color: #82aaff; }
.tok.var{ color: #f3f5f9; }
.tok.str{ color: #a3e6a3; }
.tok.op{ color: var(--text-faint); }
.tok.com{ color: var(--text-faint); font-style: italic; }
.cursor-blink{
  display:inline-block;
  color: var(--accent);
  animation: blink 1s step-end infinite;
}
@keyframes blink{ 50%{ opacity: 0; } }
@media (prefers-reduced-motion: reduce){
  .cursor-blink{ animation: none; }
}

.screen-body{
  flex:1;
  padding: 18px;
  display:grid;
  grid-template-columns: 84px 1fr;
  gap: 14px;
}
.screen-nav{
  display:flex;
  flex-direction:column;
  gap: 8px;
}
.screen-nav i{
  display:block;
  height: 9px;
  border-radius: 4px;
  background: rgba(255,255,255,0.06);
}
.screen-nav i:nth-child(1){ background: var(--accent-soft); width: 70%; }
.screen-main{
  display:flex;
  flex-direction:column;
  gap: 10px;
}
.screen-card{
  border-radius: 10px;
  background: linear-gradient(150deg, rgba(255,255,255,0.06), rgba(255,255,255,0.02));
  border: 1px solid rgba(255,255,255,0.05);
}
.screen-card.tall{ flex:1; }
.screen-row{ display:flex; gap: 10px; }
.screen-row .screen-card{ flex:1; height: 46px; }
.screen-card.chart{
  height: 100%;
  position: relative;
  overflow:hidden;
}
.screen-card.chart::before{
  content:'';
  position:absolute;
  left: 0; right:0; bottom:0; height: 70%;
  background: linear-gradient(to top, rgba(110,168,255,0.35), transparent);
  clip-path: polygon(0% 80%, 12% 60%, 26% 70%, 40% 40%, 55% 55%, 70% 25%, 85% 40%, 100% 15%, 100% 100%, 0% 100%);
}

.notebook-base{
  position: relative;
  margin: 0 auto;
  width: 108%;
  left: -4%;
  height: 16px;
  background: linear-gradient(180deg, #23262f, #101218);
  border-radius: 0 0 14px 14px;
  transform: rotateX(-90deg);
  transform-origin: top center;
  border: 1px solid rgba(255,255,255,0.06);
  border-top: none;
}
.notebook-base::after{
  content:'';
  position:absolute;
  left: 50%; top: 0;
  transform: translateX(-50%);
  width: 70px; height: 5px;
  background: rgba(0,0,0,0.4);
  border-radius: 0 0 6px 6px;
}

.notebook-keydeck{
  position: relative;
  margin: 0 auto;
  width: 100%;
  height: 210px;
  background: linear-gradient(160deg, #24272f 0%, #16181e 100%);
  border-radius: 6px 6px 16px 16px;
  transform: rotateX(-90deg);
  transform-origin: top center;
  border: 1px solid rgba(255,255,255,0.07);
  border-top: none;
  box-shadow: 0 40px 60px -20px rgba(0,0,0,0.7);
  padding: 14px 22px;
  display:flex;
  flex-direction:column;
  gap: 10px;
}
.keys-row{ display:flex; gap: 4px; justify-content:center; }
.keys-row span{
  flex:1;
  max-width: 26px;
  height: 16px;
  border-radius: 3px;
  background: rgba(255,255,255,0.05);
  border: 1px solid rgba(255,255,255,0.04);
}
.trackpad{
  margin: 8px auto 0;
  width: 34%;
  height: 46px;
  border-radius: 8px;
  background: rgba(255,255,255,0.03);
  border: 1px solid rgba(255,255,255,0.05);
}

.hero-float-badge{
  position:absolute;
  padding: 10px 16px;
  border-radius: 14px;
  background: rgba(16,19,26,0.85);
  border: 1px solid var(--border-strong);
  backdrop-filter: blur(10px);
  font-size: 0.8rem;
  font-weight: 600;
  display:flex;
  align-items:center;
  gap: 8px;
  box-shadow: var(--shadow-lg);
  transform: translateZ(60px);
  will-change: transform;
}
.hero-float-badge.badge-1{ top: 8%; right: -4%; }
.hero-float-badge.badge-2{ bottom: 14%; left: -8%; }
.hero-float-badge .pulse{
  width: 8px; height: 8px; border-radius: 50%;
  background: #4ade80;
  box-shadow: 0 0 0 3px rgba(74,222,128,0.2);
}

@media (prefers-reduced-motion: reduce){
  .notebook{ transition: none !important; }
}

/* ---------- Internal pages (Sobre, Blog, Contato, Política) ---------- */
.page-hero{
  padding: 170px 0 64px;
  text-align: left;
}
.page-hero .eyebrow{ margin-bottom: 20px; }
.page-hero h1{
  font-size: clamp(2rem, 3.6vw, 2.9rem);
  letter-spacing: -0.03em;
  line-height: 1.12;
  margin: 0 0 16px;
}
.page-hero p.lead{ margin: 0; max-width: 600px; }

.prose{ max-width: 720px; padding-bottom: 110px; }
.prose > p{
  color: var(--text-dim);
  font-size: 1.02rem;
  line-height: 1.8;
  margin: 0 0 20px;
}
.prose h2{
  font-size: 1.3rem;
  letter-spacing: -0.015em;
  margin: 44px 0 16px;
}
.prose ul{
  color: var(--text-dim);
  font-size: 1rem;
  line-height: 1.9;
  padding-left: 22px;
  margin: 0 0 20px;
}
.prose strong{ color: var(--text); }

/* ---------- Artigos ---------- */
.article-hero{ padding-bottom: 40px; }
.article-hero h1{ max-width: 860px; }
.back-link{
  display: inline-block;
  margin-bottom: 22px;
  color: var(--text-faint);
  text-decoration: none;
  font-size: 0.9rem;
  transition: color .2s var(--ease);
}
.back-link:hover{ color: var(--accent); }
.article-hero .eyebrow{ display: flex; width: fit-content; }
.article-meta{ color: var(--text-faint); font-size: 0.95rem; }

.article-content{ max-width: 760px; }
.article-cover,
.article-cover-img{
  margin: 0 0 40px;
  border-radius: var(--radius-md);
  border: 1px solid var(--border);
  overflow: hidden;
  aspect-ratio: 1200 / 630;
}
.article-cover{
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  gap: 8px;
  padding: 24px;
  color: #fff;
}
.article-cover-title{ font-size: clamp(1.4rem, 3vw, 2rem); font-weight: 700; letter-spacing: -0.02em; }
.article-cover-sub{ opacity: 0.7; font-size: 0.95rem; }
.article-cover-img img{ width: 100%; height: 100%; object-fit: cover; }

.prose h3{
  font-size: 1.08rem;
  margin: 32px 0 12px;
  color: var(--text);
}
.prose ol{
  color: var(--text-dim);
  font-size: 1rem;
  line-height: 1.9;
  padding-left: 22px;
  margin: 0 0 20px;
}
.prose li{ margin-bottom: 6px; }
.prose a{ color: var(--accent); text-underline-offset: 3px; }
.prose a:hover{ color: var(--accent-2); }
.prose em{ color: var(--text); }
.prose code{
  font-family: 'JetBrains Mono', Consolas, monospace;
  font-size: 0.86em;
  background: var(--surface-2);
  border: 1px solid var(--border);
  padding: 1px 6px;
  border-radius: 6px;
  color: var(--text);
}
.prose pre{
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  padding: 18px 20px;
  overflow-x: auto;
  margin: 0 0 24px;
  line-height: 1.6;
}
.prose pre code{ background: none; border: 0; padding: 0; font-size: 0.85rem; }
.prose .video-container{
  margin: 32px 0;
  border-radius: var(--radius-md);
  overflow: hidden;
  border: 1px solid var(--border);
  aspect-ratio: 16 / 9;
}
.prose .video-container iframe{ width: 100%; height: 100%; border: 0; display: block; }
.prose .article-source{ margin-top: 36px; font-size: 0.9rem; color: var(--text-faint); }

.related-posts{
  margin-top: 56px;
  padding: 28px;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
}
.related-posts h2{ margin: 0 0 14px; font-size: 1.1rem; }
.related-posts ul{ list-style: none; padding: 0; margin: 0; }
.related-posts li{ margin-bottom: 10px; }
.related-posts li:last-child{ margin-bottom: 0; }
.related-posts a{ text-decoration: none; }
.related-posts a::before{ content: "→ "; color: var(--text-faint); }

/* ---------- Blog grid ---------- */
.blog-grid-new{
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
  padding-bottom: 110px;
}
.blog-card-new{
  display: flex;
  flex-direction: column;
  border-radius: var(--radius-md);
  overflow: hidden;
  border: 1px solid var(--border);
  background: var(--surface);
  transition: transform .4s var(--ease), border-color .4s var(--ease), box-shadow .4s var(--ease);
}
.blog-card-new:hover{
  transform: translateY(-6px);
  border-color: var(--border-strong);
  box-shadow: var(--shadow-lg);
}
.blog-card-new .blog-img{
  aspect-ratio: 16/10;
  overflow: hidden;
  background: var(--surface-2);
}
.blog-card-new .blog-img img{
  width: 100%; height: 100%;
  object-fit: cover;
  transition: transform .6s var(--ease);
}
.blog-card-new:hover .blog-img img{ transform: scale(1.08); }
.blog-img-placeholder{
  width: 100%; height: 100%;
  display:flex; align-items:center; justify-content:center;
  text-align:center;
  padding: 16px;
  font-weight: 700;
  font-size: 0.95rem;
  color: var(--text);
  background: linear-gradient(135deg, #1e3c72 0%, #2a5298 100%);
}
.blog-content{
  padding: 20px 22px 26px;
  display:flex;
  flex-direction:column;
  gap: 10px;
  flex: 1;
}
.blog-meta-tag{
  font-family: 'JetBrains Mono', monospace;
  font-size: 0.72rem;
  color: var(--accent);
}
.blog-content h2, .blog-content h3{ font-size: 1.04rem; line-height: 1.4; margin: 0; letter-spacing: -0.01em; }
.blog-content p{ color: var(--text-dim); font-size: 0.88rem; line-height: 1.6; margin: 0; flex: 1; }
.blog-read-more{
  display: inline-flex;
  align-items:center;
  gap: 6px;
  font-size: 0.85rem;
  font-weight: 600;
  color: var(--text);
  margin-top: 6px;
  transition: gap .3s var(--ease), color .3s var(--ease);
}
.blog-card-new:hover .blog-read-more{ gap: 10px; color: var(--accent); }

/* ---------- Contact form ---------- */
.contact-form{
  max-width: 560px;
  display:flex;
  flex-direction:column;
  gap: 16px;
  margin-bottom: 56px;
}
.contact-form input,
.contact-form textarea{
  width: 100%;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  padding: 14px 16px;
  color: var(--text);
  font-family: inherit;
  font-size: 0.95rem;
  transition: border-color .3s var(--ease), background .3s var(--ease);
}
.contact-form input::placeholder,
.contact-form textarea::placeholder{ color: var(--text-faint); }
.contact-form input:focus,
.contact-form textarea:focus{
  outline: none;
  border-color: var(--accent);
  background: var(--surface-2);
}
.contact-form textarea{ resize: vertical; min-height: 150px; }
.contact-form button{ align-self: flex-start; }

.contact-socials{ padding-top: 8px; border-top: 1px solid var(--border); max-width: 560px; }
.contact-socials h2{ font-size: 1.05rem; margin: 24px 0 16px; }
.contact-socials-links{ display:flex; gap: 24px; }
.contact-socials-links a{
  font-size: 0.92rem;
  font-weight: 600;
  color: var(--text-dim);
  transition: color .25s var(--ease);
}
.contact-socials-links a:hover{ color: var(--accent); }

/* ---------- Footer legal row (internal pages) ---------- */
.footer-legal{ display:flex; gap: 20px; }
.footer-legal a{ color: var(--text-faint); font-size: 0.82rem; transition: color .2s; }
.footer-legal a:hover{ color: var(--text-dim); }

/* ---------- Section shells ---------- */
section{ position: relative; }
.section-pad{ padding: 120px 0; }
.section-head{
  max-width: 640px;
  margin: 0 auto 64px;
  text-align:center;
}
.section-head.left{ text-align:left; margin: 0 0 56px; }
.section-label{
  display:inline-block;
  font-size: 0.78rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--accent);
  margin-bottom: 14px;
}
.section-head h2{
  font-size: clamp(1.8rem, 3vw, 2.5rem);
  letter-spacing: -0.025em;
  line-height: 1.2;
  margin: 0 0 16px;
}
.section-head p{
  color: var(--text-dim);
  font-size: 1.02rem;
  line-height: 1.6;
}

/* ---------- Sobre mim (orbital visual) ---------- */
.about-grid{
  display:grid;
  grid-template-columns: 0.9fr 1.1fr;
  gap: 72px;
  align-items:center;
}
.about-heading{
  font-size: clamp(1.7rem, 2.8vw, 2.3rem);
  letter-spacing: -0.025em;
  margin: 0 0 24px;
}
.about-text{
  color: var(--text-dim);
  font-size: 1.02rem;
  line-height: 1.75;
  margin: 0 0 18px;
  max-width: 520px;
}
.about-text:last-of-type{ margin-bottom: 0; }

.about-visual{
  position: relative;
  height: 360px;
  display:flex;
  align-items:center;
  justify-content:center;
}
.orbit-ring{
  position:absolute;
  border-radius: 50%;
  border: 1px solid var(--border);
}
.orbit-ring.ring-1{ width: 260px; height: 260px; animation: spin 34s linear infinite; }
.orbit-ring.ring-2{ width: 340px; height: 340px; border-style: dashed; animation: spin 50s linear infinite reverse; }
@keyframes spin{ to{ transform: rotate(360deg); } }

.orbit-core{
  position: relative;
  z-index: 2;
  width: 84px; height: 84px;
  border-radius: 50%;
  display:flex; align-items:center; justify-content:center;
  color: var(--accent);
  background: var(--surface);
  border: 1px solid var(--border-strong);
  box-shadow: 0 0 60px -10px rgba(110,168,255,0.35);
}

.orbit-node{
  position:absolute;
  width: 46px; height: 46px;
  border-radius: 12px;
  background: var(--surface);
  border: 1px solid var(--border-strong);
  display:flex; align-items:center; justify-content:center;
  font-family: 'JetBrains Mono', monospace;
  font-size: 0.75rem;
  font-weight: 600;
  color: var(--text-dim);
  box-shadow: var(--shadow-lg);
}
.orbit-node.node-1{ top: 6%; left: 14%; }
.orbit-node.node-2{ top: 10%; right: 8%; color: var(--accent-2); }
.orbit-node.node-3{ bottom: 8%; left: 8%; }
.orbit-node.node-4{ bottom: 4%; right: 16%; color: var(--accent); }

@media (prefers-reduced-motion: reduce){
  .orbit-ring{ animation: none; }
}

/* ---------- Portfolio (alternating cards) ---------- */
.portfolio-section{ background: var(--bg-soft); border-top: 1px solid var(--border); border-bottom: 1px solid var(--border); }
.project-cards{
  display:flex;
  flex-direction:column;
  gap: 32px;
}
.project-card-lg{
  display:grid;
  grid-template-columns: 1.15fr 0.85fr;
  gap: 48px;
  align-items:center;
  padding: 20px;
  border-radius: var(--radius-lg);
  border: 1px solid var(--border);
  background: var(--surface);
  transition: transform .5s var(--ease), border-color .5s var(--ease), box-shadow .5s var(--ease);
}
.project-card-lg.reverse{ grid-template-columns: 0.85fr 1.15fr; }
.project-card-lg.reverse .project-media{ order: 2; }
.project-card-lg.reverse .project-info-lg{ order: 1; }
.project-card-lg:hover{
  transform: translateY(-8px);
  border-color: var(--border-strong);
  box-shadow: var(--shadow-lg);
}

.project-media{
  position: relative;
  border-radius: var(--radius-md);
  overflow: hidden;
  aspect-ratio: 16/10;
  border: 1px solid var(--border);
  background: var(--bg);
}
.project-media img{
  width: 100%; height: 100%;
  object-fit: cover;
  object-position: top;
  transition: transform .6s var(--ease);
}
.project-card-lg:hover .project-media img{ transform: scale(1.06); }
.project-media-placeholder{
  width:100%; height:100%;
  display:flex; align-items:center; justify-content:center;
  color: var(--text-faint);
  font-family: 'JetBrains Mono', monospace;
  font-size: 0.85rem;
  background: linear-gradient(150deg, var(--surface-2), var(--bg));
}

.project-info-lg{ padding: 20px 28px; }
.project-number{
  display:block;
  font-family: 'JetBrains Mono', monospace;
  font-size: 0.85rem;
  color: var(--accent);
  margin-bottom: 12px;
}
.project-info-lg h3{ font-size: 1.6rem; letter-spacing: -0.02em; margin: 0 0 6px; }
.project-domain{
  display:inline-block;
  font-family: 'JetBrains Mono', monospace;
  font-size: 0.8rem;
  color: var(--text-faint);
  margin-bottom: 18px;
}
.project-info-lg p{ color: var(--text-dim); font-size: 0.96rem; line-height: 1.65; margin: 0 0 26px; max-width: 440px; }

.project-link{
  display:inline-flex;
  align-items:center;
  gap: 8px;
  font-weight: 600;
  font-size: 0.92rem;
  color: var(--text);
  padding-bottom: 3px;
  border-bottom: 1px solid var(--border-strong);
  transition: gap .3s var(--ease), border-color .3s var(--ease), color .3s var(--ease);
}
.project-card-lg:hover .project-link{
  gap: 12px;
  border-color: var(--accent);
  color: var(--accent);
}

/* ---------- Tecnologia & IA ---------- */
.tech-flow{
  display:flex;
  align-items:center;
  justify-content:center;
  gap: 0;
  flex-wrap: wrap;
}
.tech-node{
  display:flex;
  flex-direction:column;
  align-items:center;
  gap: 14px;
  width: 140px;
}
.tech-icon{
  width: 64px; height: 64px;
  border-radius: 18px;
  display:flex; align-items:center; justify-content:center;
  background: var(--surface);
  border: 1px solid var(--border-strong);
  color: var(--text-dim);
  transition: transform .4s var(--ease), color .4s var(--ease), border-color .4s var(--ease);
}
.tech-node:hover .tech-icon{
  transform: translateY(-6px);
  color: var(--accent);
  border-color: var(--accent);
}
.tech-node.highlight .tech-icon{
  color: #06070a;
  background: var(--gradient);
  border-color: transparent;
  box-shadow: 0 0 50px -10px rgba(155,123,255,0.6);
}
.tech-node span{ font-size: 0.88rem; color: var(--text-dim); font-weight: 500; }
.tech-node.highlight span{ color: var(--text); font-weight: 700; }
.tech-line{
  width: 64px;
  height: 1px;
  background: linear-gradient(90deg, var(--border-strong), var(--border-strong));
  position: relative;
  margin-bottom: 30px;
  overflow: hidden;
}
.tech-line::after{
  content:'';
  position:absolute;
  top:0; left:-40%;
  width: 40%; height: 100%;
  background: var(--accent);
  animation: flowLine 3s ease-in-out infinite;
}
@keyframes flowLine{
  0%{ left: -40%; }
  60%, 100%{ left: 100%; }
}
@media (prefers-reduced-motion: reduce){
  .tech-line::after{ animation: none; display:none; }
}

/* ---------- Final CTA ---------- */
.cta-final{
  padding: 120px 0;
  text-align:center;
  position: relative;
}
.cta-final .cta-box{
  max-width: 720px;
  margin: 0 auto;
  padding: 72px 48px;
  border-radius: 28px;
  border: 1px solid var(--border-strong);
  background: radial-gradient(120% 140% at 50% 0%, rgba(110,168,255,0.12), transparent 60%), var(--surface);
  position: relative;
  overflow: hidden;
}
.cta-final h2{
  font-size: clamp(1.8rem, 3.4vw, 2.6rem);
  letter-spacing: -0.03em;
  margin: 0 0 18px;
}
.cta-final p{ color: var(--text-dim); margin: 0 0 36px; font-size: 1.02rem; }

/* ---------- Footer ---------- */
.home-footer{
  padding: 64px 0 32px;
  border-top: 1px solid var(--border);
}
.footer-top{
  display:grid;
  grid-template-columns: 1.4fr repeat(3, 1fr);
  gap: 40px;
  padding-bottom: 48px;
  border-bottom: 1px solid var(--border);
  margin-bottom: 28px;
}
.footer-brand p{ color: var(--text-faint); font-size: 0.88rem; line-height: 1.6; margin-top: 14px; max-width: 280px; }
.footer-col h5{ font-size: 0.82rem; text-transform: uppercase; letter-spacing: 0.06em; color: var(--text-faint); margin: 0 0 18px; }
.footer-col ul{ list-style:none; margin:0; padding:0; display:flex; flex-direction:column; gap: 12px; }
.footer-col a{ color: var(--text-dim); font-size: 0.9rem; transition: color .2s; }
.footer-col a:hover{ color: var(--text); }
.footer-bottom{
  display:flex;
  align-items:center;
  justify-content:space-between;
  flex-wrap: wrap;
  gap: 16px;
  color: var(--text-faint);
  font-size: 0.82rem;
}
.footer-socials{ display:flex; gap: 16px; }

.home-footer.minimal{ padding: 40px 0; text-align:center; }
.home-footer.minimal .footer-bottom{ justify-content:center; }

/* ---------- Counter number formatting helper ---------- */
[data-counter]{ font-variant-numeric: tabular-nums; }

/* ==========================================================================
   Responsive
   ========================================================================== */

@media (max-width: 1024px){
  .footer-top{ grid-template-columns: 1fr 1fr; }
  .blog-grid-new{ grid-template-columns: repeat(2, 1fr); }
  .about-grid{ grid-template-columns: 1fr; gap: 48px; }
  .about-visual{ order: -1; height: 280px; }
  .project-card-lg, .project-card-lg.reverse{ grid-template-columns: 1fr; }
  .project-card-lg .project-media, .project-card-lg.reverse .project-media{ order: 1; }
  .project-card-lg .project-info-lg, .project-card-lg.reverse .project-info-lg{ order: 2; }
  .project-info-lg{ padding: 8px 8px 20px; }
}

@media (max-width: 900px){
  .nav-links{ display:none; }
  .nav-toggle{ display:flex; }
  .hero .container{ grid-template-columns: 1fr; }
  .hero-content{ max-width: 100%; text-align:center; margin: 0 auto; }
  .hero p.lead{ margin-left:auto; margin-right:auto; }
  .hero-ctas{ justify-content:center; }
  .hero-meta{ justify-content:center; }
  .hero-stage{ order: 3; height: 420px; margin-top: 20px; }
  .tech-flow{ gap: 20px; }
  .tech-line{ width: 32px; }
}

@media (max-width: 640px){
  .container{ padding: 0 20px; }
  .hero{ padding: 130px 0 70px; }
  .page-hero{ padding: 140px 0 44px; }
  .blog-grid-new{ grid-template-columns: 1fr; }
  .footer-bottom{ flex-direction: column; align-items: flex-start; }
  .footer-top{ grid-template-columns: 1fr; gap: 32px; }
  .cta-final .cta-box{ padding: 48px 24px; }
  .hero-float-badge{ display:none; }
  .hero-stage{ height: 320px; }
  .screen-body{ grid-template-columns: 56px 1fr; padding: 12px; }
  .code-body{ font-size: 0.6rem; padding: 12px; }
  .code-line .ln{ width: 16px; }
  .tech-flow{ flex-direction: column; }
  .tech-line{ width: 1px; height: 32px; margin-bottom: 0; }
  .tech-line::after{ top: -40%; left: 0; width: 100%; height: 40%; animation: flowLineVertical 3s ease-in-out infinite; }
  .project-card-lg{ padding: 14px; }
}

@keyframes flowLineVertical{
  0%{ top: -40%; }
  60%, 100%{ top: 100%; }
}

/* ---------- Figuras dentro dos artigos ---------- */
.prose .article-figure{ margin: 32px 0; }
.prose .article-figure img{
  width: 100%; height: auto;
  border-radius: var(--radius-md);
  border: 1px solid var(--border);
}
.prose .article-figure figcaption{
  margin-top: 10px;
  font-size: 0.88rem;
  color: var(--text-faint);
  text-align: center;
}
