:root{
  --bg:#EDF1F4;
  --surface:#FFFFFF;
  --surface-2:#E7ECEF;
  --line:#D7DEE3;
  --text:#0A0E12;
  --muted:#59636D;
  --amber:#FF9F45;
  --amber-dim:#805027;
  --green:#2FA24A;
  --ink:#0A0E12;
  /* cores originais do tema escuro, usadas só no header quando rolado */
  --header-dark-bg:rgba(10,14,18,0.78);
  --header-dark-line:#1F2830;
  --header-dark-text:#EDF1F4;
  --header-dark-muted:#8A97A3;
}
*{margin:0;padding:0;box-sizing:border-box;}
html{overflow-x:hidden; max-width:100%;}
html,body{height:100%;}
body{
  background:var(--bg);
  color:var(--text);
  font-family:'Inter',sans-serif;
  min-height:100vh;
  position:relative;
  overflow-x:hidden;
  max-width:100%;
  scroll-behavior:smooth;
}
img{max-width:100%; display:block;}
a{color:inherit;}
ul{list-style:none;}
:focus-visible{outline:2px solid var(--amber); outline-offset:2px;}

.grid-bg{
  position:fixed;
  inset:0;
  background-image:
    linear-gradient(var(--line) 1px, transparent 1px),
    linear-gradient(90deg, var(--line) 1px, transparent 1px);
  background-size:48px 48px;
  opacity:0.3;
  mask-image:radial-gradient(ellipse 80% 55% at 50% 10%, #000 40%, transparent 85%);
  -webkit-mask-image:radial-gradient(ellipse 80% 55% at 50% 10%, #000 40%, transparent 85%);
  pointer-events:none;
  z-index:0;
}

.wrap{
  position:relative;
  max-width:1040px;
  margin:0 auto;
  padding:0 24px;
}

/* ---------- HEADER ---------- */
header{
  position:sticky;
  top:0;
  z-index:50;
  background:rgba(237,241,244,0.86);
  backdrop-filter:blur(10px);
  border-bottom:1px solid var(--line);
  transition:background .25s ease, border-color .25s ease;
}
/* ao rolar a página, o header volta à cor escura original (tema padrão) */
header.is-scrolled{
  background:var(--header-dark-bg);
  border-bottom-color:var(--header-dark-line);
  box-shadow:0 12px 28px -14px rgba(10,14,18,0.45);
}
header.is-scrolled nav a{color:var(--header-dark-muted);}
header.is-scrolled nav a:hover{color:var(--header-dark-text);}
header.is-scrolled .nav-toggle{color:var(--header-dark-text); border-color:var(--header-dark-line);}
header .wrap{
  display:flex;
  align-items:center;
  justify-content:space-between;
  padding:20px 24px;
}
.logo{
  display:flex;
  align-items:center;
}
.logo img{height:72px; width:auto; display:block;}
nav ul{display:flex; gap:36px;}
nav a{
  position:relative;
  font-size:17px;
  color:var(--muted);
  padding-bottom:3px;
  text-decoration:none;
  transition:color .15s ease;
}
nav a::after{
  content:"";
  position:absolute;
  left:0; right:100%; bottom:0;
  height:1.5px;
  background:var(--amber);
  transition:right .22s ease;
}
nav a:hover{color:var(--text);}
nav a:hover::after{right:0;}
.btn-nav{
  display:inline-flex;
  align-items:center;
  gap:8px;
  font-family:'IBM Plex Mono',monospace;
  font-size:13px;
  color:var(--ink);
  background:var(--amber);
  padding:9px 18px;
  border-radius:8px;
  font-weight:500;
  box-shadow:0 6px 16px -6px rgba(255,159,69,0.55);
  transition:filter .15s ease, transform .15s ease, box-shadow .15s ease, color .15s ease;
}
.btn-nav:hover{filter:brightness(1.08); transform:translateY(-1px); box-shadow:0 10px 20px -6px rgba(255,159,69,0.6); color:#fff;}
.btn-nav:active{transform:scale(0.98);}
.nav-links{display:flex; align-items:center; gap:36px;}
.nav-toggle{
  display:none;
  flex-direction:column;
  align-items:center;
  justify-content:center;
  gap:5px;
  background:none;
  border:1px solid var(--line);
  border-radius:6px;
  width:38px;
  height:38px;
  color:var(--text);
  cursor:pointer;
  transition:border-color .2s ease;
}
.nav-toggle-bar{
  display:block;
  width:16px;
  height:2px;
  border-radius:2px;
  background:currentColor;
  transition:transform .3s ease, opacity .2s ease;
}
.nav-toggle.is-open{border-color:var(--amber-dim);}
.nav-toggle.is-open .nav-toggle-bar:nth-child(1){transform:translateY(7px) rotate(45deg);}
.nav-toggle.is-open .nav-toggle-bar:nth-child(2){opacity:0; transform:scaleX(0);}
.nav-toggle.is-open .nav-toggle-bar:nth-child(3){transform:translateY(-7px) rotate(-45deg);}
@media (prefers-reduced-motion: reduce){
  .nav-toggle-bar{transition:none;}
}

/* ---------- HERO ---------- */
.hero{padding:116px 0 100px; position:relative;}
@keyframes fadeUp{
  from{opacity:0; transform:translateY(18px);}
  to{opacity:1; transform:translateY(0);}
}
.hero .eyebrow{animation:fadeUp .6s ease both;}
.hero h1{animation:fadeUp .6s ease .08s both;}
.hero .lede{animation:fadeUp .6s ease .16s both;}
.hero-ctas{animation:fadeUp .6s ease .24s both;}
.hero .stat-row{animation:fadeUp .6s ease .32s both;}
@media (prefers-reduced-motion: reduce){
  .hero .eyebrow, .hero h1, .hero .lede, .hero-ctas, .hero .stat-row{animation:none;}
}
.eyebrow{
  font-family:'IBM Plex Mono',monospace;
  font-size:12px;
  color:var(--amber);
  letter-spacing:0.08em;
  text-transform:uppercase;
  margin-bottom:20px;
  display:flex;
  align-items:center;
  gap:8px;
}
.eyebrow .pulse{width:6px;height:6px;border-radius:50%;background:var(--amber); box-shadow:0 0 0 0 rgba(255,159,69,0.6); animation:pulse 1.8s infinite;}
@keyframes pulse{
  0%{box-shadow:0 0 0 0 rgba(255,159,69,0.45);}
  70%{box-shadow:0 0 0 8px rgba(255,159,69,0);}
  100%{box-shadow:0 0 0 0 rgba(255,159,69,0);}
}
.hero h1{
  font-family:'Space Grotesk',sans-serif;
  font-weight:600;
  font-size:clamp(32px,5vw,54px);
  line-height:1.08;
  letter-spacing:-0.01em;
  max-width:16ch;
  margin-bottom:24px;
}
.hero h1 em{color:var(--amber); font-style:normal;}
.hero .lede{
  font-size:17.5px;
  line-height:1.65;
  color:var(--muted);
  max-width:52ch;
  margin-bottom:40px;
}
.hero .lede strong{color:var(--text); font-weight:500;}
.hero-ctas{display:flex; gap:14px; flex-wrap:wrap;}
.btn-primary{
  display:inline-flex;
  align-items:center;
  gap:8px;
  background:var(--amber);
  color:#2A1608;
  font-weight:600;
  font-size:14.5px;
  letter-spacing:0.1em;
  padding:14px 26px;
  border-radius:9px;
  box-shadow:0 10px 24px -8px rgba(255,159,69,0.55);
  transition:filter .15s ease, transform .15s ease, box-shadow .15s ease, color .15s ease;
}
.btn-primary:hover{filter:brightness(1.08); transform:translateY(-2px); box-shadow:0 14px 30px -8px rgba(255,159,69,0.65); color:#fff;}
.btn-primary:active{transform:scale(0.98);}
.btn-ghost{
  display:inline-flex;
  align-items:center;
  gap:8px;
  background:none;
  border:1px solid var(--line);
  color:var(--text);
  font-weight:500;
  font-size:14.5px;
  padding:14px 26px;
  border-radius:9px;
  transition:border-color .15s ease, color .15s ease, background .15s ease, transform .15s ease;
}
.btn-ghost:hover{border-color:var(--amber); color:#fff; background:var(--amber); transform:translateY(-2px);}

.stat-row{
  display:flex;
  gap:44px;
  flex-wrap:wrap;
  margin-top:64px;
  padding-top:32px;
  border-top:1px solid var(--line);
}
.stat b{
  display:block;
  font-family:'Space Grotesk',sans-serif;
  font-size:26px;
  font-weight:600;
  color:var(--text);
  margin-bottom:4px;
}
.stat span{
  font-family:'IBM Plex Mono',monospace;
  font-size:12px;
  color:var(--muted);
  text-transform:uppercase;
  letter-spacing:0.04em;
}

/* ---------- SEÇÃO GENÉRICA ---------- */
section{padding:116px 0;}
.section-head{max-width:56ch; margin-bottom:52px;}
.section-eyebrow{
  display:flex;
  align-items:center;
  gap:8px;
  font-family:'IBM Plex Mono',monospace;
  font-size:12px;
  color:var(--amber);
  letter-spacing:0.08em;
  text-transform:uppercase;
  margin-bottom:14px;
}
.section-eyebrow::before{content:""; width:16px; height:1.5px; background:var(--amber); flex-shrink:0;}
.section-head h2{
  font-family:'Space Grotesk',sans-serif;
  font-weight:600;
  font-size:clamp(24px,3.4vw,34px);
  letter-spacing:-0.01em;
  margin-bottom:14px;
}
.section-head p{color:var(--muted); font-size:16px; line-height:1.6;}

/* ---------- PROJETOS ---------- */
/* carrossel: os cards rolam na horizontal em vez de grade fixa, pra caber
   mais projetos no futuro sem precisar redesenhar a seção */
#projetos{border-top:1px solid var(--line);}
.project-carousel{position:relative;}
.projects-grid{
  display:flex;
  justify-content:safe center;
  gap:18px;
  overflow-x:auto;
  scroll-snap-type:x mandatory;
  scroll-behavior:smooth;
  scrollbar-width:none;
  padding:4px 2px 14px;
  margin:-4px -2px -14px;
}
.projects-grid::-webkit-scrollbar{display:none;}
.project-carousel-btn{
  position:absolute;
  top:159px;
  z-index:6;
  width:38px; height:38px;
  border-radius:50%;
  background:var(--surface);
  border:1px solid var(--line);
  color:var(--text);
  display:flex;
  align-items:center;
  justify-content:center;
  cursor:pointer;
  box-shadow:0 8px 20px -6px rgba(10,14,18,0.18);
  transition:background .2s, border-color .2s, color .2s, opacity .2s, transform .2s, box-shadow .2s;
}
.project-carousel-btn svg{width:16px; height:16px;}
.project-carousel-btn:hover{background:var(--amber); border-color:transparent; color:#fff; transform:scale(1.06);}
.project-carousel-btn:disabled{opacity:0.3; cursor:default; pointer-events:none;}
.project-carousel-prev{left:-19px;}
.project-carousel-next{right:-19px;}
.projects-grid > .project-card{
  flex:0 0 460px;
  min-width:0;
  scroll-snap-align:start;
}
/* card mostra só a imagem por padrão; todo o texto (título, descrição,
   stack, link) mora num painel que só aparece no hover/foco — igual ao
   hover dos cards de "Nossa equipe" do site do Clinicar */
.project-card{
  position:relative;
  background:var(--surface);
  border:1px solid var(--line);
  border-radius:13px;
  overflow:hidden;
  box-shadow:0 1px 2px rgba(10,14,18,0.04), 0 16px 32px -18px rgba(10,14,18,0.16);
  transition:transform .3s ease, border-color .3s ease, box-shadow .3s ease;
}
.project-card:hover, .project-card:focus-within{transform:translateY(-6px); border-color:var(--amber-dim); box-shadow:0 1px 2px rgba(10,14,18,0.04), 0 26px 44px -18px rgba(10,14,18,0.24);}
/* moldura de "navegador" com print real do site dentro — a barra de
   pontinhos fica fixa no topo, a screenshot preenche o resto recortada */
.project-preview{
  height:355px;
  position:relative;
  overflow:hidden;
  background:var(--surface-2);
}
.mock-browser{
  width:100%;
  height:100%;
  display:flex;
  flex-direction:column;
}
.mock-browser .mock-bar{
  height:19px;
  flex-shrink:0;
  display:flex;
  align-items:center;
  gap:4px;
  padding:0 9px;
  background:#181F27;
  border-bottom:1px solid var(--line);
}
.mock-bar span{width:6px;height:6px;border-radius:50%; background:#333D48;}
.mock-shot{
  flex:1;
  width:100%;
  height:100%;
  object-fit:cover;
  object-position:top center;
  transition:transform .4s ease;
}
.project-card:hover .mock-shot, .project-card:focus-within .mock-shot{transform:scale(1.045);}

/* painel de hover desce de cima pra baixo cobrindo a foto com uma cor da
   marca (mesmo mecanismo do hover da equipe no site do Clinicar) */
.project-hover{
  position:absolute;
  inset:0;
  z-index:5;
  overflow:hidden;
  display:flex;
  flex-direction:column;
  justify-content:flex-end;
  padding:22px;
  opacity:0;
  transform:translateY(-100%);
  transition:transform .45s cubic-bezier(.2,.8,.2,1), opacity .3s ease;
  pointer-events:none;
}
.project-hover::before{
  content:"";
  position:absolute;
  inset:0;
  z-index:-1;
  background:
    linear-gradient(180deg, rgba(10,14,18,0.35) 0%, rgba(10,14,18,0.97) 100%),
    linear-gradient(135deg, rgba(255,159,69,0.5), rgba(128,80,39,0.4));
}
.project-card:hover .project-hover,
.project-card:focus-within .project-hover{
  opacity:1;
  transform:translateY(0);
  pointer-events:auto;
}
.project-tag{
  font-family:'IBM Plex Mono',monospace;
  font-size:10px;
  color:var(--amber);
  text-transform:uppercase;
  letter-spacing:0.05em;
  margin-bottom:6px;
}
.project-hover h3{
  font-family:'Space Grotesk',sans-serif;
  font-size:15.5px;
  font-weight:600;
  color:#fff;
  margin-bottom:6px;
}
.project-hover p{
  color:#C7CFD6;
  font-size:12.5px;
  line-height:1.5;
  margin-bottom:12px;
  display:-webkit-box;
  -webkit-line-clamp:2;
  -webkit-box-orient:vertical;
  overflow:hidden;
}
.project-stack{
  display:flex;
  gap:6px;
  flex-wrap:wrap;
  margin-bottom:11px;
}
.project-stack span{
  font-family:'IBM Plex Mono',monospace;
  font-size:10px;
  color:#C7CFD6;
  border:1px solid rgba(255,255,255,0.18);
  border-radius:100px;
  padding:3px 9px;
}
.project-link{
  display:inline-flex;
  align-items:center;
  gap:6px;
  font-size:13px;
  font-weight:500;
  color:#fff;
  border-bottom:1px solid rgba(255,255,255,0.3);
  padding-bottom:2px;
  width:fit-content;
  transition:color .15s ease, border-color .15s ease;
}
.project-link:hover{color:var(--amber); border-color:var(--amber-dim);}
.project-link svg{width:14px; height:14px; transition:transform .15s ease;}
.project-link:hover svg{transform:translate(2px,-2px);}
.project-link.disabled{color:#C7CFD6; cursor:default; pointer-events:none;}

/* ---------- SOBRE ---------- */
#sobre{border-top:1px solid var(--line);}
.about-grid{display:grid; grid-template-columns:1.1fr 0.9fr; gap:56px; align-items:start;}
.about-text p{color:var(--muted); font-size:16px; line-height:1.75; margin-bottom:18px;}
.about-text strong{color:var(--text); font-weight:500;}
.about-list{display:flex; flex-direction:column; gap:20px;}
.about-item{
  background:var(--surface);
  border:1px solid var(--line);
  border-radius:12px;
  padding:20px 22px;
  box-shadow:0 1px 2px rgba(10,14,18,0.03), 0 12px 26px -16px rgba(10,14,18,0.1);
  transition:transform .25s ease, box-shadow .25s ease, border-color .25s ease;
}
.about-item:hover{transform:translateY(-3px); border-color:var(--amber-dim); box-shadow:0 1px 2px rgba(10,14,18,0.03), 0 18px 32px -16px rgba(10,14,18,0.16);}
.about-item h4{
  font-family:'Space Grotesk',sans-serif;
  font-size:15.5px;
  font-weight:600;
  margin-bottom:6px;
  display:flex;
  align-items:center;
  gap:10px;
}
.about-item h4::before{
  content:"✓";
  display:inline-flex;
  align-items:center;
  justify-content:center;
  width:20px; height:20px;
  flex-shrink:0;
  border-radius:50%;
  background:rgba(47,162,74,0.12);
  color:var(--green);
  font-size:11px;
  font-family:'IBM Plex Mono',monospace;
}
.about-item p{color:var(--muted); font-size:13.5px; line-height:1.55;}

/* ---------- DEMO DE CÓDIGO (contato) ---------- */
/* painel escuro "de editor" com digitação em tempo real do HTML do
   formulário — mesma linguagem visual da barra de pontinhos dos
   mock-browsers dos projetos, só que em modo "editor" em vez de "site". */
.code-demo{
  background:#0A0E12;
  border:1px solid #1F2830;
  border-radius:12px;
  overflow:hidden;
  margin-bottom:22px;
  box-shadow:0 1px 2px rgba(10,14,18,0.03), 0 16px 32px -18px rgba(10,14,18,0.28);
}
.code-demo-bar{
  display:flex;
  align-items:center;
  gap:6px;
  padding:11px 14px;
  background:#181F27;
  border-bottom:1px solid #1F2830;
}
.code-dot{width:9px; height:9px; border-radius:50%; background:#333D48; flex-shrink:0;}
.code-demo-file{
  margin-left:8px;
  font-family:'IBM Plex Mono',monospace;
  font-size:11.5px;
  color:#8A97A3;
}
.code-demo-body{padding:18px 20px; min-height:236px;}
.code-demo-body code{
  display:block;
  font-family:'IBM Plex Mono',monospace;
  font-size:12.5px;
  line-height:1.9;
  white-space:pre;
  color:#EDF1F4;
}
.code-line{min-height:1.9em;}
.code-line .tag{color:var(--amber);}
.code-line .attr{color:#6FC3D6;}
.code-line .str{color:#5FD97A;}
.code-cursor{
  display:inline-block;
  width:7px;
  height:1em;
  margin-left:1px;
  background:var(--amber);
  vertical-align:text-bottom;
  animation:codeBlink 1s step-end infinite;
}
@keyframes codeBlink{0%,100%{opacity:1;} 50%{opacity:0;}}
@media (prefers-reduced-motion: reduce){
  .code-cursor{animation:none;}
}

/* ---------- CONTATO ---------- */
#contato{border-top:1px solid var(--line);}
.contact-grid{display:grid; grid-template-columns:0.85fr 1.15fr; gap:56px;}
.contact-note{
  background:var(--surface);
  border:1px solid var(--line);
  border-radius:12px;
  padding:22px;
  font-family:'IBM Plex Mono',monospace;
  font-size:12.5px;
  line-height:1.7;
  color:var(--muted);
  box-shadow:0 1px 2px rgba(10,14,18,0.03), 0 12px 26px -16px rgba(10,14,18,0.1);
}
.contact-note .ok{color:var(--green);}
.form-field{display:flex; flex-direction:column; gap:8px; margin-bottom:18px;}
.form-field label{
  font-family:'IBM Plex Mono',monospace;
  font-size:12px;
  text-transform:uppercase;
  letter-spacing:0.05em;
  color:var(--muted);
}
.form-field input, .form-field textarea{
  background:var(--surface);
  border:1px solid var(--line);
  border-radius:8px;
  padding:13px 16px;
  color:var(--amber);
  font-weight:500;
  font-family:'Inter',sans-serif;
  font-size:14.5px;
  outline:none;
  resize:vertical;
  box-shadow:0 1px 2px rgba(10,14,18,0.03);
  transition:border-color .15s ease, box-shadow .15s ease;
}
.form-field input::placeholder, .form-field textarea::placeholder{color:#8A97A3; font-weight:400;}
.form-field input:focus, .form-field textarea:focus{border-color:var(--amber-dim); box-shadow:0 0 0 3px rgba(255,159,69,0.15);}
/* e-mail inválido: some assim que o formato fica correto */
.form-field input.is-invalid{border-color:#D64545;}
.form-field input.is-invalid:focus{box-shadow:0 0 0 3px rgba(214,69,69,0.15);}
.field-error{
  font-family:'IBM Plex Mono',monospace;
  font-size:11.5px;
  color:#D64545;
  min-height:14px;
}
/* linha com dois campos lado a lado (e-mail + celular) */
.form-row{display:flex; gap:14px;}
.form-row .form-field{flex:1 1 0; min-width:0;}
.form-check{
  display:flex;
  align-items:center;
  gap:9px;
}
.form-check input[type="checkbox"]{
  width:17px;
  height:17px;
  accent-color:var(--amber);
  cursor:pointer;
  flex-shrink:0;
}
.form-check label{
  font-size:13px;
  color:var(--muted);
  cursor:pointer;
}
.form-msg{
  font-family:'IBM Plex Mono',monospace;
  font-size:12.5px;
  min-height:18px;
  margin-top:4px;
}
@media (max-width:480px){
  .form-row{flex-direction:column; gap:0;}
}

/* ---------- FOOTER ---------- */
footer{border-top:1px solid var(--line); padding:36px 0;}
footer .wrap{
  display:flex;
  justify-content:space-between;
  align-items:center;
  flex-wrap:wrap;
  gap:14px;
}
.footer-brand{display:flex; align-items:center; gap:14px;}
.footer-brand img{height:30px; width:auto; display:block;}
.footer-admin-link{
  font-family:'IBM Plex Mono',monospace;
  font-size:11.5px;
  color:var(--line);
  text-decoration:none;
  transition:color .15s ease;
}
.footer-admin-link:hover{color:var(--muted);}
footer p{font-size:12.5px; color:var(--muted);}
.footer-zeno{display:flex; align-items:baseline; gap:10px;}
.footer-zeno-copy{
  font-family:'IBM Plex Mono',monospace;
  font-size:12.5px;
  color:var(--muted);
}
.footer-zeno-word{
  font-family:'Space Grotesk',sans-serif;
  font-weight:700;
  font-size:18px;
  letter-spacing:0.04em;
  color:var(--text);
  text-decoration:none;
  transition:color .15s ease;
}
.footer-zeno-word:hover{color:var(--amber);}
.socials{display:flex; gap:20px;}
.socials a{
  font-size:12.5px;
  color:var(--muted);
  border-bottom:1px solid transparent;
  transition:color .15s ease, border-color .15s ease;
}
.socials a:hover{color:var(--text); border-color:var(--line);}

@media (max-width:860px){
  .projects-grid{grid-template-columns:1fr;}
  .about-grid, .contact-grid{grid-template-columns:1fr; gap:36px;}
}
@media (max-width:720px){
  header .wrap{position:relative;}
  .nav-links{display:none;}
  .nav-links.mobile-open{
    display:flex;
    flex-direction:column;
    align-items:flex-start;
    gap:20px;
    position:absolute;
    top:100%; left:0; right:0;
    background:var(--surface);
    border-bottom:1px solid var(--line);
    padding:22px 24px 26px;
  }
  .nav-links.mobile-open nav ul{flex-direction:column; gap:18px;}
  .nav-links.mobile-open .btn-nav{align-self:flex-start;}
  .nav-toggle{display:flex;}
  .logo img{height:52px;}
  header .wrap{padding:14px 20px;}
  .hero{padding:64px 0 64px;}
  section{padding:64px 0;}
  .stat-row{gap:28px;}
  .project-carousel-btn{display:none;}
  .projects-grid > .project-card{flex:0 0 84vw;}
  .project-preview{height:280px;}
}
@media (max-width:420px){
  .wrap{padding:0 18px;}
  .logo img{height:44px;}
  header .wrap{padding:12px 18px;}
  .about-item, .contact-note{padding:18px;}
  .code-demo-body{min-height:190px; padding:16px;}
  .btn-primary, .btn-ghost{padding:13px 20px; font-size:14px;}
}
@media (prefers-reduced-motion: reduce){
  .eyebrow .pulse{animation:none;}
}

/* entrada suave ao rolar (aplicada via JS; sem JS o conteúdo já nasce visível) */
.reveal{opacity:0; transform:translateY(20px); transition:opacity .6s ease, transform .6s ease;}
.reveal.is-visible{opacity:1; transform:translateY(0);}
