/* ============================================================
   Evandro Reichert — Portfolio
   Direção visual: "Laranja Energia" (tech + clean corporate)
   ============================================================ */

/* ---------- Custom properties ---------- */
:root {
  /* Paleta */
  --bg:            #1a1714;  /* fundo base escuro quente */
  --bg-alt:        #211c17;  /* seções alternadas */
  --surface:       #26201a;  /* cards / superfícies */
  --border:        #332b23;  /* bordas hairline */
  --accent:        #ff6b2b;  /* acento primário */
  --accent-soft:   rgba(255, 107, 43, 0.14);
  --text:          #f5f1ea;  /* texto principal */
  --text-2:        #9a9188;  /* texto secundário */
  --muted:         #6b635a;  /* texto mudo */
  --wa:            #25d366;  /* WhatsApp verde */
  --wa-hover:      #1fbb59;

  /* Tipografia */
  --font-sans: 'Sora', system-ui, sans-serif;
  --font-body: 'Inter', system-ui, sans-serif;
  --font-mono: 'JetBrains Mono', ui-monospace, 'SFMono-Regular', 'Courier New', monospace;

  /* Escala / layout */
  --maxw: 1120px;
  --gutter: clamp(1.25rem, 5vw, 2.5rem);
  --radius: 14px;
  --radius-sm: 10px;

  --nav-h: 68px;

  --shadow: 0 18px 50px -20px rgba(0, 0, 0, 0.7);
  --shadow-accent: 0 14px 40px -16px rgba(255, 107, 43, 0.45);

  --ease: cubic-bezier(0.22, 1, 0.36, 1);
}

/* ---------- Reset / base ---------- */
*, *::before, *::after { box-sizing: border-box; }

* { margin: 0; }

html {
  scroll-behavior: smooth;
  scroll-padding-top: calc(var(--nav-h) + 16px);
  -webkit-text-size-adjust: 100%;
}

body {
  font-family: var(--font-body);
  background: var(--bg);
  color: var(--text);
  line-height: 1.6;
  font-size: 1rem;
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

img { display: block; max-width: 100%; height: auto; }
ul, ol { list-style: none; padding: 0; }
a { color: inherit; text-decoration: none; }
button { font-family: inherit; cursor: pointer; }

h1, h2, h3 {
  font-family: var(--font-sans);
  font-weight: 800;
  line-height: 1.1;
  letter-spacing: -0.02em;
}

::selection { background: var(--accent); color: #1a1714; }

:focus-visible {
  outline: 2px solid var(--accent);
  outline-offset: 3px;
  border-radius: 4px;
}

/* ---------- Layout helpers ---------- */
.container {
  width: 100%;
  max-width: var(--maxw);
  margin-inline: auto;
  padding-inline: var(--gutter);
}

.section {
  padding-block: clamp(4rem, 10vw, 7rem);
  position: relative;
}
.section--alt { background: var(--bg-alt); }

/* Hairline divider on alt-section top edges */
.section--alt::before {
  content: "";
  position: absolute;
  inset: 0 0 auto 0;
  height: 1px;
  background: linear-gradient(90deg, transparent, var(--border) 20%, var(--border) 80%, transparent);
}

.section__head { margin-bottom: clamp(2rem, 5vw, 3.25rem); }
.section__head--center { text-align: center; max-width: 34rem; margin-inline: auto; }

.section__head h2 { font-size: clamp(1.75rem, 4.5vw, 2.75rem); }

.mono-label {
  font-family: var(--font-mono);
  color: var(--accent);
  font-size: 0.82rem;
  font-weight: 500;
  letter-spacing: 0.02em;
  margin-bottom: 0.85rem;
}

.mono-tag {
  display: inline-block;
  font-family: var(--font-mono);
  color: var(--accent);
  background: var(--accent-soft);
  border: 1px solid rgba(255, 107, 43, 0.28);
  padding: 0.4rem 0.85rem;
  border-radius: 100px;
  font-size: 0.82rem;
  font-weight: 500;
  margin-bottom: 1.75rem;
}

.skip-link {
  position: absolute;
  left: -9999px;
  top: 0;
  z-index: 200;
  background: var(--accent);
  color: #1a1714;
  padding: 0.7rem 1.1rem;
  font-weight: 600;
  border-radius: 0 0 8px 0;
}
.skip-link:focus { left: 0; }

/* ============================================================
   BUTTONS
   ============================================================ */
.btn {
  --btn-bg: transparent;
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  font-family: var(--font-sans);
  font-weight: 700;
  font-size: 0.95rem;
  letter-spacing: -0.01em;
  padding: 0.8rem 1.35rem;
  border-radius: var(--radius-sm);
  border: 1px solid transparent;
  transition: transform 0.2s var(--ease), background 0.2s var(--ease),
              box-shadow 0.25s var(--ease), border-color 0.2s var(--ease), color 0.2s var(--ease);
  white-space: nowrap;
}
.btn:active { transform: translateY(1px) scale(0.99); }

.btn--primary {
  background: var(--accent);
  color: #1a1714;
  box-shadow: var(--shadow-accent);
}
.btn--primary:hover,
.btn--primary:focus-visible { background: #ff7d44; transform: translateY(-2px); }

.btn--ghost {
  background: transparent;
  color: var(--text);
  border-color: var(--border);
}
.btn--ghost:hover,
.btn--ghost:focus-visible { border-color: var(--accent); color: var(--accent); }

.btn--wa {
  background: var(--wa);
  color: #062a12;
}
.btn--wa:hover,
.btn--wa:focus-visible { background: var(--wa-hover); transform: translateY(-2px); }

.btn--lg { padding: 1rem 1.8rem; font-size: 1.05rem; }
.btn--block { width: 100%; justify-content: center; }

/* ============================================================
   NAVBAR
   ============================================================ */
.navbar {
  position: fixed;
  inset: 0 0 auto 0;
  z-index: 100;
  height: var(--nav-h);
  display: flex;
  align-items: center;
  background: transparent;
  border-bottom: 1px solid transparent;
  transition: background 0.3s var(--ease), border-color 0.3s var(--ease), backdrop-filter 0.3s var(--ease);
}
.navbar.scrolled {
  background: rgba(26, 23, 20, 0.82);
  backdrop-filter: blur(14px) saturate(140%);
  -webkit-backdrop-filter: blur(14px) saturate(140%);
  border-bottom-color: var(--border);
}

.navbar__inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
}

.logo {
  font-family: var(--font-mono);
  font-weight: 700;
  font-size: 1rem;
  letter-spacing: -0.02em;
  color: var(--text);
  transition: color 0.2s var(--ease);
}
.logo:hover { color: var(--accent); }
.logo__dot { color: var(--accent); }

.navbar__nav {
  display: none;
  gap: 1.75rem;
}
.navbar__nav a {
  font-size: 0.92rem;
  font-weight: 500;
  color: var(--text-2);
  position: relative;
  padding-block: 0.35rem;
  transition: color 0.2s var(--ease);
}
.navbar__nav a::after {
  content: "";
  position: absolute;
  left: 0; bottom: 0;
  width: 100%; height: 2px;
  background: var(--accent);
  transform: scaleX(0);
  transform-origin: left;
  transition: transform 0.25s var(--ease);
}
.navbar__nav a:hover,
.navbar__nav a:focus-visible { color: var(--text); }
.navbar__nav a:hover::after,
.navbar__nav a:focus-visible::after { transform: scaleX(1); }

.navbar__cta { padding: 0.55rem 1rem; font-size: 0.88rem; }

/* ============================================================
   HERO
   ============================================================ */
.hero {
  position: relative;
  padding-top: calc(var(--nav-h) + clamp(3rem, 12vw, 6rem));
  padding-bottom: clamp(3.5rem, 10vw, 6rem);
  overflow: hidden;
}
.hero__bg {
  position: absolute;
  inset: 0;
  z-index: 0;
  background:
    radial-gradient(60% 55% at 78% 8%, rgba(255, 107, 43, 0.22), transparent 60%),
    radial-gradient(50% 50% at 10% 100%, rgba(255, 107, 43, 0.08), transparent 60%);
  pointer-events: none;
}
.hero__bg::after {
  /* subtle dotted texture */
  content: "";
  position: absolute;
  inset: 0;
  background-image: radial-gradient(rgba(255, 107, 43, 0.08) 1px, transparent 1px);
  background-size: 26px 26px;
  mask-image: radial-gradient(70% 60% at 50% 20%, #000, transparent 75%);
  -webkit-mask-image: radial-gradient(70% 60% at 50% 20%, #000, transparent 75%);
}
.hero__inner { position: relative; z-index: 1; max-width: 46rem; }

.hero h1 {
  font-size: clamp(2.35rem, 7vw, 4.25rem);
  margin-bottom: 1.35rem;
}
.hero h1 .accent {
  color: var(--accent);
  position: relative;
  white-space: nowrap;
}
.hero__sub {
  font-size: clamp(1.05rem, 2.6vw, 1.3rem);
  color: var(--text-2);
  max-width: 34rem;
  margin-bottom: 2.25rem;
}
.hero__ctas { display: flex; flex-wrap: wrap; gap: 0.9rem; }

/* Entrada escalonada do hero ao carregar (só com JS ativo) */
.js .hero__inner > * {
  opacity: 0;
  animation: heroIn 0.75s var(--ease) forwards;
}
.js .hero__inner > *:nth-child(1) { animation-delay: 0.05s; }
.js .hero__inner > *:nth-child(2) { animation-delay: 0.18s; }
.js .hero__inner > *:nth-child(3) { animation-delay: 0.31s; }
.js .hero__inner > *:nth-child(4) { animation-delay: 0.44s; }
@keyframes heroIn {
  from { opacity: 0; transform: translateY(20px); }
  to   { opacity: 1; transform: none; }
}

/* Seta do CTA primário desliza no hover */
.btn--primary { position: relative; overflow: hidden; }
.btn--primary::before {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(120deg, transparent 20%, rgba(255, 255, 255, 0.35) 50%, transparent 80%);
  transform: translateX(-120%);
  transition: transform 0.6s var(--ease);
}
.btn--primary:hover::before,
.btn--primary:focus-visible::before { transform: translateX(120%); }

/* ---------- Hero: layout em grid com o mockup ---------- */
.hero__grid {
  position: relative;
  z-index: 1;
  display: grid;
  grid-template-columns: 1fr;
  gap: clamp(2.5rem, 6vw, 3.5rem);
  align-items: center;
}
.hero__inner { max-width: 40rem; }

/* ---------- Mockup de navegador animado ---------- */
.hero__visual {
  position: relative;
  perspective: 1200px;
  display: flex;
  justify-content: center;
  will-change: transform;
  transition: transform 0.25s var(--ease);
}
/* Aurora pulsante por trás do mockup, dá vida e profundidade */
.hero__visual::before {
  content: "";
  position: absolute;
  inset: -8% -4%;
  z-index: -1;
  background: radial-gradient(50% 45% at 60% 45%, rgba(255, 107, 43, 0.28), transparent 70%);
  filter: blur(24px);
  animation: aurora 5s ease-in-out infinite;
}
@keyframes aurora {
  0%, 100% { opacity: 0.6; transform: scale(0.96); }
  50%      { opacity: 1; transform: scale(1.04); }
}
.browser {
  width: min(100%, 400px);
  border-radius: 14px;
  background: #14110e;
  border: 1px solid var(--border);
  box-shadow: 0 40px 80px -30px rgba(0, 0, 0, 0.85), var(--shadow-accent);
  overflow: hidden;
  animation: bob 6s ease-in-out infinite;
  transform-style: preserve-3d;
}
@keyframes bob {
  0%, 100% { transform: translateY(0); }
  50%      { transform: translateY(-10px); }
}

.browser__bar {
  display: flex;
  align-items: center;
  gap: 0.7rem;
  padding: 0.7rem 0.85rem;
  background: #201a15;
  border-bottom: 1px solid var(--border);
}
.browser__dots { display: flex; gap: 0.35rem; }
.browser__dots i {
  width: 10px; height: 10px; border-radius: 50%;
  background: #3a322a; display: block;
}
.browser__dots i:nth-child(1) { background: #e0965a; }
.browser__url {
  flex: 1;
  display: flex;
  align-items: center;
  gap: 0.4rem;
  background: #14110e;
  border: 1px solid var(--border);
  border-radius: 7px;
  padding: 0.3rem 0.6rem;
  font-family: var(--font-mono);
  font-size: 0.72rem;
  color: var(--text-2);
}
.browser__lock {
  width: 8px; height: 8px; border-radius: 2px;
  border: 1.5px solid var(--wa);
  border-bottom: none;
  position: relative;
  flex: none;
}
.browser__lock::after {
  content: ""; position: absolute; top: 6px; left: -3px;
  width: 12px; height: 8px; border-radius: 2px; background: var(--wa);
}
.browser__addr { white-space: nowrap; overflow: hidden; }
.js .browser__addr {
  display: inline-block;
  width: 0;
  animation: typeUrl 6s steps(19) infinite;
}
@keyframes typeUrl {
  0%   { width: 0; }
  22%  { width: 12ch; }
  30%  { width: 12ch; }
  100% { width: 12ch; }
}
.browser__caret {
  width: 1.5px; height: 0.85rem; background: var(--accent);
  flex: none;
  animation: caretBlink 1s steps(1) infinite;
}
@keyframes caretBlink { 50% { opacity: 0; } }

.browser__view {
  position: relative;
  aspect-ratio: 4 / 3.2;
  background: radial-gradient(120% 90% at 80% 0%, rgba(255,107,43,0.14), transparent 55%), #1a1714;
  padding: 1rem 1.1rem;
  overflow: hidden;
}

.mock { display: flex; flex-direction: column; justify-content: space-between; height: 100%; gap: 0.6rem; }
.mock__nav {
  display: flex; align-items: center; justify-content: space-between;
}
.mock__logo { width: 42px; height: 9px; border-radius: 3px; background: var(--text-2); }
.mock__links { display: flex; gap: 0.4rem; }
.mock__links i { width: 20px; height: 6px; border-radius: 3px; background: #3a322a; display: block; }

.mock__hero { display: flex; flex-direction: column; gap: 0.5rem; }
.mock__line { display: block; border-radius: 4px; background: #3a322a; }
.mock__line--tag { width: 34%; height: 7px; background: rgba(255,107,43,0.5); }
.mock__line--h1 { width: 82%; height: 15px; background: #4a4038; margin-top: 0.15rem; }
.mock__line--accent { width: 55%; background: var(--accent); }
.mock__line--sub { width: 70%; height: 8px; margin-top: 0.35rem; }
.mock__cta {
  align-self: flex-start;
  margin-top: 0.7rem;
  font-family: var(--font-sans);
  font-weight: 700;
  font-size: 0.72rem;
  color: #1a1714;
  background: var(--accent);
  border-radius: 7px;
  padding: 0.45rem 0.8rem;
  box-shadow: 0 8px 20px -8px rgba(255,107,43,0.7);
}
/* Linha de destaques (preenche o miolo, parece uma página completa) */
.mock__stats {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 0.6rem;
  padding: 0.7rem 0;
  border-block: 1px solid var(--border);
}
.mock__stat { display: flex; flex-direction: column; align-items: center; gap: 0.3rem; }
.mock__stat-num { width: 26px; height: 11px; border-radius: 3px; background: var(--accent); display: block; }
.mock__stat:nth-child(2) .mock__stat-num { background: var(--text-2); }
.mock__stat-lbl { width: 40px; height: 5px; border-radius: 2px; background: #3a322a; display: block; }

.mock__cards { display: grid; grid-template-columns: repeat(3, 1fr); gap: 0.5rem; }
.mock__card {
  border-radius: 7px;
  background: #241e19;
  border: 1px solid var(--border);
  padding: 0.5rem;
  display: flex;
  flex-direction: column;
  gap: 0.3rem;
  min-height: 46px;
  justify-content: flex-end;
}
.mock__card i { display: block; border-radius: 2px; background: #3a322a; height: 5px; }
.mock__card i:first-child { width: 60%; height: 6px; background: rgba(255,107,43,0.55); }
.mock__card i:last-child { width: 85%; }

/* Build: mini-site se monta e reinicia em loop */
.js .build {
  opacity: 0;
  animation: buildIn 7s var(--ease) infinite;
  animation-delay: calc(var(--i) * 0.18s);
}
@keyframes buildIn {
  0%   { opacity: 0; transform: translateY(10px); }
  7%   { opacity: 1; transform: none; }
  84%  { opacity: 1; transform: none; }
  92%  { opacity: 0; transform: translateY(8px); }
  100% { opacity: 0; transform: translateY(8px); }
}

/* Cursor falso que caminha até o CTA e clica */
.mock__cursor {
  position: absolute;
  top: 0; left: 0;
  width: 16px; height: 16px;
  z-index: 3;
  pointer-events: none;
  background: #fff;
  clip-path: polygon(0 0, 0 78%, 26% 60%, 44% 96%, 60% 88%, 42% 52%, 72% 52%);
  filter: drop-shadow(0 2px 3px rgba(0,0,0,0.5));
  opacity: 0;
}
.js .mock__cursor { animation: cursorWalk 7s var(--ease) infinite; }
@keyframes cursorWalk {
  0%, 30%  { transform: translate(230px, 210px); opacity: 0; }
  38%      { opacity: 1; }
  52%      { transform: translate(70px, 150px); opacity: 1; }
  56%      { transform: translate(70px, 150px) scale(0.82); }
  60%      { transform: translate(70px, 150px) scale(1); }
  82%      { transform: translate(70px, 150px); opacity: 1; }
  90%,100% { opacity: 0; }
}

/* Toast de conversão dispara após o clique */
.mock__toast {
  position: absolute;
  right: 12px; bottom: 12px;
  z-index: 4;
  font-family: var(--font-sans);
  font-weight: 700;
  font-size: 0.7rem;
  color: #062a12;
  background: var(--wa);
  border-radius: 8px;
  padding: 0.4rem 0.7rem;
  box-shadow: 0 10px 24px -8px rgba(37,211,102,0.6);
  display: flex;
  align-items: center;
  gap: 0.35rem;
  opacity: 0;
}
.mock__toast::before {
  content: "";
  width: 6px; height: 6px; border-radius: 50%;
  background: #062a12;
  flex: none;
}
.js .mock__toast { animation: toastPop 7s var(--ease) infinite; }
@keyframes toastPop {
  0%, 56%  { opacity: 0; transform: translateY(10px) scale(0.9); }
  62%      { opacity: 1; transform: none; }
  80%      { opacity: 1; transform: none; }
  88%,100% { opacity: 0; transform: translateY(-6px); }
}

/* ============================================================
   FAIXA DE CLIENTES
   ============================================================ */
.clients {
  border-block: 1px solid var(--border);
  background: var(--bg-alt);
  padding-block: clamp(1.75rem, 4vw, 2.25rem);
  overflow: hidden;
}
.clients__lead {
  text-align: center;
  font-family: var(--font-mono);
  font-size: 0.8rem;
  letter-spacing: 0.04em;
  color: var(--muted);
  margin-bottom: clamp(1.1rem, 3vw, 1.5rem);
}

/* Carrossel infinito das marcas.
   Faixa única com 3 cópias idênticas; a animação desloca exatamente 1/3 da
   largura total, então o loop é perfeitamente contínuo em qualquer viewport.
   O espaçamento é feito com padding-inline nos itens (não com gap), para que
   as 3 cópias sejam unidades idênticas e o -33.333% caia sempre no mesmo ponto. */
.marquee {
  width: 100%;
  overflow: hidden;
  -webkit-mask-image: linear-gradient(90deg, transparent 0, #000 14%, #000 86%, transparent 100%);
  mask-image: linear-gradient(90deg, transparent 0, #000 14%, #000 86%, transparent 100%);
}
.marquee__track {
  display: flex;
  width: max-content;
  align-items: center;
  animation: marquee 24s linear infinite;
  will-change: transform;
}
.marquee:hover .marquee__track,
.marquee:focus-within .marquee__track { animation-play-state: paused; }
.marquee__track li {
  padding-inline: clamp(1rem, 3.5vw, 2rem);
  font-family: var(--font-sans);
  font-weight: 700;
  font-size: clamp(0.85rem, 2.2vw, 1rem);
  letter-spacing: 0.08em;
  color: var(--muted);
  white-space: nowrap;
  transition: color 0.25s var(--ease);
}
.marquee__track li:hover { color: var(--accent); }

@keyframes marquee {
  from { transform: translateX(0); }
  to   { transform: translateX(calc(-100% / 3)); }
}

/* ============================================================
   PROJETOS
   ============================================================ */
.projects-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: clamp(1.25rem, 3vw, 1.75rem);
}

.project-card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  overflow: hidden;
  display: flex;
  flex-direction: column;
  transition: transform 0.3s var(--ease), border-color 0.3s var(--ease), box-shadow 0.3s var(--ease);
}
.project-card:hover {
  transform: translateY(-4px);
  border-color: rgba(255, 107, 43, 0.5);
  box-shadow: var(--shadow);
}

.project-card__media {
  display: block;
  aspect-ratio: 16 / 10;
  overflow: hidden;
  border-bottom: 1px solid var(--border);
  background: var(--bg);
}
.project-card__media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: top center;
  transition: transform 0.5s var(--ease);
}
.project-card:hover .project-card__media img { transform: scale(1.04); }

.project-card__body {
  padding: 1.35rem 1.4rem 1.5rem;
  display: flex;
  flex-direction: column;
  gap: 0.35rem;
  flex: 1;
}
.project-card__name { font-size: 1.25rem; }
.project-card__segment { color: var(--text-2); font-size: 0.95rem; }
.project-card__link {
  margin-top: 0.9rem;
  align-self: flex-start;
  font-family: var(--font-mono);
  font-size: 0.88rem;
  font-weight: 500;
  color: var(--accent);
  transition: gap 0.2s var(--ease), opacity 0.2s var(--ease);
}
.project-card__link:hover,
.project-card__link:focus-visible { text-decoration: underline; text-underline-offset: 4px; }

/* ============================================================
   SERVIÇOS
   ============================================================ */
.services-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: clamp(1.1rem, 2.5vw, 1.5rem);
}

.service-card {
  position: relative;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 1.9rem 1.7rem;
  transition: transform 0.3s var(--ease), border-color 0.3s var(--ease);
}
.service-card:hover { transform: translateY(-3px); border-color: rgba(255, 107, 43, 0.4); }

.service-card__num {
  font-family: var(--font-mono);
  color: var(--muted);
  font-size: 0.9rem;
  font-weight: 500;
}
.service-card h3 { font-size: 1.35rem; margin: 0.75rem 0 0.6rem; }
.service-card p { color: var(--text-2); font-size: 0.98rem; }

.service-card--featured {
  border-color: var(--accent);
  background: linear-gradient(180deg, var(--accent-soft), transparent 55%), var(--surface);
  box-shadow: var(--shadow-accent);
  animation: featuredGlow 3.6s var(--ease) infinite;
}
@keyframes featuredGlow {
  0%, 100% { box-shadow: 0 14px 40px -16px rgba(255, 107, 43, 0.4); }
  50%      { box-shadow: 0 14px 46px -14px rgba(255, 107, 43, 0.62); }
}
.service-card--featured .service-card__num { color: var(--accent); }

.service-card__badge {
  position: absolute;
  top: -0.7rem;
  left: 1.7rem;
  background: var(--accent);
  color: #1a1714;
  font-family: var(--font-mono);
  font-size: 0.7rem;
  font-weight: 700;
  letter-spacing: 0.03em;
  text-transform: uppercase;
  padding: 0.25rem 0.6rem;
  border-radius: 6px;
}

/* ============================================================
   PROCESSO
   ============================================================ */
.process-list {
  display: grid;
  grid-template-columns: 1fr;
  gap: clamp(1rem, 2.5vw, 1.5rem);
  counter-reset: step;
}
.process-step {
  display: flex;
  gap: 1.1rem;
  align-items: flex-start;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 1.5rem 1.6rem;
  transition: border-color 0.3s var(--ease), transform 0.3s var(--ease);
}
.process-step:hover { border-color: rgba(255, 107, 43, 0.4); transform: translateX(4px); }
.process-step__num {
  flex: none;
  font-family: var(--font-mono);
  font-weight: 700;
  font-size: 1.4rem;
  color: var(--accent);
  line-height: 1;
  padding-top: 0.15rem;
}
.process-step h3 { font-size: 1.15rem; margin-bottom: 0.3rem; }
.process-step p { color: var(--text-2); font-size: 0.96rem; }

/* ============================================================
   SOBRE
   ============================================================ */
.about {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  gap: 2rem;
}
.about__photo {
  flex: none;
  width: 128px;
  height: 128px;
  border-radius: 50%;
  object-fit: cover;
  object-position: center top;
  background: var(--surface);
  border: 2px solid var(--accent);
  box-shadow: var(--shadow-accent);
}
.about__content { max-width: 40rem; }
.about__content h2 { font-size: clamp(1.6rem, 4vw, 2.25rem); margin-bottom: 1rem; }
.about__text { color: var(--text-2); font-size: 1.05rem; }

/* ============================================================
   CONTATO
   ============================================================ */
.contact__sub { color: var(--text-2); margin-top: 0.6rem; font-size: 1.05rem; }

.contact__wa {
  display: flex;
  justify-content: center;
}

/* ============================================================
   RODAPÉ
   ============================================================ */
.footer {
  border-top: 1px solid var(--border);
  padding-block: 2.25rem;
  background: var(--bg);
}
.footer__inner {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.9rem;
  text-align: center;
}
.footer__logo { font-family: var(--font-mono); font-weight: 700; font-size: 0.95rem; }
.footer__copy { color: var(--muted); font-size: 0.9rem; }
.footer__links { display: flex; flex-wrap: wrap; gap: 1.25rem; justify-content: center; }
.footer__links a {
  color: var(--text-2);
  font-size: 0.92rem;
  transition: color 0.2s var(--ease);
}
.footer__links a:hover,
.footer__links a:focus-visible { color: var(--accent); }

/* ============================================================
   REVEAL ANIMATION (Task 3 adiciona .visible via JS)
   ============================================================ */
/* Só escondemos para animar quando o JS está ativo (html.js). Sem JS, o
   conteúdo aparece normalmente — progressive enhancement. */
.js .reveal {
  opacity: 0;
  transform: translateY(24px);
  transition: opacity 0.7s var(--ease), transform 0.7s var(--ease);
  will-change: opacity, transform;
}
.reveal.visible {
  opacity: 1;
  transform: none;
}

/* Staggered reveal within a grid/list */
.projects-grid .reveal:nth-child(2) { transition-delay: 0.06s; }
.projects-grid .reveal:nth-child(3) { transition-delay: 0.12s; }
.projects-grid .reveal:nth-child(4) { transition-delay: 0.18s; }
.projects-grid .reveal:nth-child(5) { transition-delay: 0.24s; }
.services-grid .reveal:nth-child(2) { transition-delay: 0.08s; }
.services-grid .reveal:nth-child(3) { transition-delay: 0.16s; }
.process-list .reveal:nth-child(2) { transition-delay: 0.06s; }
.process-list .reveal:nth-child(3) { transition-delay: 0.12s; }
.process-list .reveal:nth-child(4) { transition-delay: 0.18s; }

/* ============================================================
   BREAKPOINTS
   ============================================================ */
@media (min-width: 768px) {
  .projects-grid { grid-template-columns: repeat(2, 1fr); }
  .services-grid { grid-template-columns: repeat(3, 1fr); }
  .process-list { grid-template-columns: repeat(2, 1fr); }
  .navbar__nav { display: flex; }
  .hero__grid { grid-template-columns: 1.05fr 0.95fr; }
  .about {
    flex-direction: row;
    text-align: left;
    align-items: center;
    gap: 3rem;
  }
  .about__photo { width: 160px; height: 160px; }
}

@media (min-width: 1024px) {
  .hero h1 { font-size: clamp(3rem, 5.5vw, 4.25rem); }
}

/* ============================================================
   EFEITOS DE PORTFÓLIO (barra de scroll, spotlight, grão, tilt, reveal)
   ============================================================ */

/* Barra de progresso de scroll */
.scroll-progress {
  position: fixed;
  inset: 0 0 auto 0;
  height: 3px;
  z-index: 300;
  background: linear-gradient(90deg, var(--accent), #ff9a5a);
  transform: scaleX(0);
  transform-origin: 0 50%;
  will-change: transform;
  pointer-events: none;
}

/* Spotlight que segue o cursor (só ativado via JS em ponteiro fino) */
.cursor-glow {
  position: fixed;
  top: 0; left: 0;
  width: 520px; height: 520px;
  margin: -260px 0 0 -260px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(255, 107, 43, 0.12), transparent 62%);
  pointer-events: none;
  z-index: 4;
  opacity: 0;
  mix-blend-mode: screen;
  transition: opacity 0.5s var(--ease);
  will-change: transform;
}

/* Grão de filme (textura de agência) */
.grain {
  position: fixed;
  inset: 0;
  z-index: 350;
  pointer-events: none;
  opacity: 0.05;
  mix-blend-mode: overlay;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='300' height='300'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.85' numOctaves='2' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
}

/* Tilt 3D nos cards de projeto */
.projects-grid { perspective: 1000px; }
.project-card { transform-style: preserve-3d; position: relative; }
.project-card__glint {
  position: absolute;
  inset: 0;
  z-index: 3;
  pointer-events: none;
  border-radius: inherit;
  opacity: 0;
  transition: opacity 0.3s var(--ease);
  background: radial-gradient(340px circle at var(--mx, 50%) var(--my, 50%), rgba(255, 255, 255, 0.10), transparent 55%);
}
.project-card.is-tilting .project-card__glint { opacity: 1; }
.project-card.is-tilting { transition: transform 0.12s var(--ease); }

/* Reveal do título do hero por palavra (máscara) */
.hero h1.is-split { opacity: 1; animation: none; }
.hero h1 .word {
  display: inline-block;
  overflow: hidden;
  vertical-align: top;
  padding-bottom: 0.12em;
  margin-bottom: -0.12em;
}
.hero h1 .word__inner {
  display: inline-block;
  transform: translateY(110%);
  animation: wordUp 0.72s var(--ease) forwards;
  animation-delay: calc(var(--wi, 0) * 0.07s + 0.15s);
}
@keyframes wordUp { to { transform: translateY(0); } }

/* ============================================================
   REDUCED MOTION
   ============================================================ */
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after {
    animation-duration: 0.001ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.001ms !important;
    scroll-behavior: auto !important;
  }
  .reveal { opacity: 1; transform: none; transition: none; }
  .js .hero__inner > * { opacity: 1; transform: none; animation: none; }

  /* Carrossel estático e centralizado, mostrando só a 1ª cópia */
  .marquee { -webkit-mask-image: none; mask-image: none; }
  .marquee__track {
    animation: none;
    width: 100%;
    flex-wrap: wrap;
    justify-content: center;
  }
  .marquee__track li:nth-child(n+6) { display: none; }

  /* Mockup do hero em estado final estático */
  .browser { animation: none; }
  .js .build { opacity: 1 !important; transform: none !important; animation: none !important; }
  .browser__addr { width: auto !important; animation: none !important; }
  .browser__caret, .mock__cursor, .mock__toast { display: none !important; }

  /* Efeitos de portfólio: sem movimento */
  .cursor-glow { display: none !important; }
  .hero h1 .word__inner { transform: none !important; animation: none !important; }
}
