/* =========================================================
   caio.dev — Portfólio de dev full stack
   Ordem: tokens → base → utilitários → preloader → cabeçalho →
   seções (na ordem da página) → janelas → responsividade
   ========================================================= */

/* ---------- Tokens ---------- */
:root {
  --font-display: 'Space Grotesk', system-ui, sans-serif;
  --font-body: 'Geist', system-ui, sans-serif;
  --font-mono: 'Geist Mono', ui-monospace, monospace;

  --bg: #05080C;
  --bg-2: #080D13;
  --surface: #0C1219;
  --surface-2: #111922;
  --surface-hover: #15202B;
  --border: rgba(255,255,255,0.08);
  --border-strong: rgba(255,255,255,0.16);
  --accent: #22D3EE;
  --accent-hover: #67E8F9;
  --accent-deep: #0891B2;
  --accent-2: #2563EB;
  --accent-soft: rgba(34,211,238,0.12);
  --accent-line: rgba(34,211,238,0.35);
  --accent-glow: rgba(34,211,238,0.45);
  --text: #EEF6FA;
  --text-2: #C3CED8;
  --text-muted: #8E9BA8;
  --text-dim: #5C6874;
  --error: #FB7185;

  --radius-sm: 8px;
  --radius-md: 12px;
  --radius-lg: 16px;
  --radius-xl: 24px;
  --radius-pill: 999px;

  --shadow-card: 0 24px 48px -28px rgba(0,0,0,.7);
  --shadow-glow: 0 0 0 1px var(--accent-line), 0 12px 40px -10px var(--accent-glow);

  --container: 1280px;
  --gutter: 32px;
  --section-gap: 112px;
  --ease: cubic-bezier(.22,.8,.24,1);
}

/* ---------- Base ---------- */
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-padding-top: 96px; }
html:not(.has-smoother) { scroll-behavior: smooth; }
body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font-family: var(--font-body);
  font-size: 16px;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}
img, svg, canvas { display: block; max-width: 100%; }
img { height: auto; }
a { color: inherit; text-decoration: none; }
button { font: inherit; color: inherit; background: none; border: 0; padding: 0; cursor: pointer; }
h1, h2, h3, p, ul, ol, dl, dd, figure, blockquote { margin: 0; }
ul, ol { list-style: none; padding: 0; }
input, select, textarea { font: inherit; color: inherit; }
fieldset { border: 0; margin: 0; padding: 0; min-width: 0; }
::selection { background: rgba(34,211,238,.35); color: #fff; }
html { scrollbar-color: #22D3EE #05080C; }
::-webkit-scrollbar { width: 10px; }
::-webkit-scrollbar-track { background: #05080C; }
::-webkit-scrollbar-thumb { background: #22D3EE; border-radius: 10px; border: 2px solid #05080C; }
::-webkit-scrollbar-thumb:hover { background: #67E8F9; }
:focus-visible { outline: 2px solid var(--accent); outline-offset: 3px; border-radius: 4px; }
[hidden] { display: none !important; }

.sprite { position: absolute; width: 0; height: 0; overflow: hidden; }
.ic { width: 18px; height: 18px; fill: none; stroke: currentColor; stroke-width: 1.75; stroke-linecap: round; stroke-linejoin: round; flex-shrink: 0; }
.ic.ic-fill { fill: currentColor; stroke: none; }
.skip-link { position: fixed; left: 16px; top: -60px; z-index: 300; background: var(--accent); color: var(--bg); padding: 10px 16px; border-radius: var(--radius-md); font-weight: 600; }
.skip-link:focus { top: 16px; }

/* ---------- Utilitários ---------- */
.container { width: 100%; max-width: calc(var(--container) + var(--gutter) * 2); margin: 0 auto; padding: 0 var(--gutter); }
.section { position: relative; padding: var(--section-gap) 0; border-top: 1px solid var(--border); }
.band { background: var(--bg-2); }
.accent { color: var(--accent); }
.mono { font-family: var(--font-mono); font-size: .78rem; font-weight: 500; letter-spacing: .02em; }
.text { color: var(--text-muted); font-size: .95rem; line-height: 1.65; }

.eyebrow {
  display: inline-flex; align-items: center; gap: 10px;
  font-family: var(--font-mono); font-size: .72rem; font-weight: 500;
  letter-spacing: .14em; text-transform: uppercase; color: var(--accent);
  margin-bottom: 12px;
}
/* Rótulo como uma tag de código: <sobre mim /> */
.eyebrow::before, .eyebrow::after { font-weight: 400; letter-spacing: 0; color: var(--text-dim); }
.eyebrow::before { content: '<'; margin-right: -4px; }
.eyebrow::after { content: '/>'; margin-left: -2px; }
.section-title {
  font-family: var(--font-display); font-weight: 600;
  font-size: clamp(1.9rem, 2.9vw, 2.6rem); line-height: 1.12; letter-spacing: -0.025em;
}
.section-head { margin-bottom: 40px; }
.section-head--split { display: flex; align-items: flex-end; justify-content: space-between; gap: 32px; }
.section-head--center { text-align: center; }
.section-head--center .eyebrow { justify-content: center; }
.head-aside { max-width: 420px; }
.card-title { font-family: var(--font-display); font-weight: 600; font-size: 1.15rem; line-height: 1.25; letter-spacing: -0.01em; }

.panel {
  position: relative;
  background: linear-gradient(180deg, rgba(12,18,25,.9), rgba(8,13,19,.9));
  border: 1px solid var(--border); border-radius: var(--radius-xl);
}
.card {
  position: relative; background: var(--surface); border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  transition: border-color .3s ease, background-color .3s ease, box-shadow .3s ease, translate .4s var(--ease);
}

/* Botões */
.btn {
  position: relative; display: inline-flex; align-items: center; justify-content: center; gap: 10px;
  height: 48px; padding: 0 22px; border-radius: var(--radius-pill);
  font-family: var(--font-display); font-weight: 600; font-size: .9rem; letter-spacing: .01em;
  border: 1px solid transparent; white-space: nowrap;
  transition: background-color .25s ease, border-color .25s ease, box-shadow .25s ease, color .25s ease;
}
.btn .ic { transition: translate .3s var(--ease); }
.btn:hover .ic { translate: 3px 0; }
.btn:hover .ic-diag { translate: 2px -2px; }
.btn:hover .ic-down { translate: 0 2px; }
.btn-sm { height: 40px; padding: 0 18px; font-size: .85rem; }
.btn-primary { background: var(--accent); color: #05080C; }
.btn-primary:hover { background: var(--accent-hover); box-shadow: var(--shadow-glow); }
.btn-primary:active { background: var(--accent-deep); }
.btn-outline { border-color: var(--border-strong); color: var(--text); }
.btn-outline:hover { border-color: var(--accent-line); }
.btn-ghost-accent { border-color: var(--accent-line); color: var(--text); }
.btn-ghost-accent .ic { color: var(--accent); }
.btn-ghost-accent:hover { background: var(--accent-soft); }
.btn-block { width: 100%; }
.btn-icon {
  display: inline-grid; place-items: center; width: 40px; height: 40px; flex-shrink: 0;
  border-radius: var(--radius-md); border: 1px solid var(--border-strong); color: var(--text);
  transition: background-color .25s ease, border-color .25s ease, color .25s ease;
}
.btn-icon:hover, .card:hover .btn-icon { background: var(--accent); border-color: var(--accent); color: #05080C; }
.link-arrow { display: inline-flex; align-items: center; gap: 8px; color: var(--accent); font-family: var(--font-display); font-weight: 500; font-size: .92rem; }
.link-arrow .ic { transition: translate .3s var(--ease); }
.link-arrow:hover .ic { translate: 4px 0; }
.link-inline { color: var(--accent); text-decoration: underline; text-underline-offset: 3px; font-size: inherit; }

.dot-pulse { position: relative; width: 8px; height: 8px; border-radius: 50%; background: var(--accent); flex-shrink: 0; }
.dot-pulse::after { content: ''; position: absolute; inset: 0; border-radius: 50%; background: var(--accent); animation: pulse 1.8s ease-out infinite; }
@keyframes pulse { from { transform: scale(1); opacity: .7; } to { transform: scale(3); opacity: 0; } }

.tag {
  display: inline-flex; align-items: center; height: 26px; padding: 0 10px;
  border-radius: var(--radius-pill); border: 1px solid var(--accent-line);
  background: rgba(5,8,12,.75); backdrop-filter: blur(8px); -webkit-backdrop-filter: blur(8px);
  font-family: var(--font-mono); font-size: .7rem; color: var(--accent);
}
.chip {
  display: inline-flex; align-items: center; gap: 6px; height: 30px; padding: 0 12px;
  border-radius: var(--radius-pill); background: var(--surface-2); border: 1px solid var(--border);
  font-family: var(--font-mono); font-size: .72rem; color: var(--text-2);
}
.chip .ic { width: 14px; height: 14px; color: var(--accent); }
.stars { display: inline-flex; gap: 3px; color: var(--accent); }
.stars .ic { width: 16px; height: 16px; }

.dots-bg::before {
  content: ''; position: absolute; inset: 0; pointer-events: none;
  background-image: radial-gradient(rgba(255,255,255,.05) 1px, transparent 1px);
  background-size: 28px 28px;
  mask-image: radial-gradient(ellipse at center, #000 20%, transparent 70%);
  -webkit-mask-image: radial-gradient(ellipse at center, #000 20%, transparent 70%);
}

/* ---------- Preloader ---------- */
.preloader { display: none; }
.is-loading .preloader {
  display: grid; place-items: center;
  position: fixed; inset: 0; z-index: 500; background: var(--bg);
}
.preloader::before {
  content: ''; position: absolute; inset: 0;
  background-image: radial-gradient(rgba(255,255,255,.05) 1px, transparent 1px); background-size: 28px 28px;
  mask-image: radial-gradient(ellipse at center, #000 10%, transparent 65%);
  -webkit-mask-image: radial-gradient(ellipse at center, #000 10%, transparent 65%);
}
.pl-term {
  position: relative; width: min(420px, calc(100vw - 40px));
  background: var(--surface-2); border: 1px solid var(--border); border-radius: var(--radius-lg);
  box-shadow: 0 30px 80px -30px rgba(34,211,238,.25); overflow: hidden;
}
.pl-bar { display: flex; align-items: center; gap: 6px; height: 32px; padding: 0 12px; border-bottom: 1px solid var(--border); }
.pl-bar span { width: 9px; height: 9px; border-radius: 50%; background: var(--border-strong); }
.pl-bar em { margin-left: auto; margin-right: auto; padding-right: 30px; font-style: normal; font-family: var(--font-mono); font-size: .7rem; color: var(--text-dim); }
.pl-body { padding: 18px 20px 20px; font-family: var(--font-mono); font-size: .85rem; line-height: 1.9; color: var(--text-2); min-height: 152px; }
.pl-line b { color: var(--accent); font-weight: 500; }
.pl-ok { padding-left: 14px; }
.pl-caret, .caret { display: inline-block; width: 8px; height: 15px; margin-left: 4px; vertical-align: -2px; background: var(--accent); animation: blink 1s steps(1) infinite; }
@keyframes blink { 50% { opacity: 0; } }
.pl-count { position: absolute; right: 40px; bottom: 32px; font-family: var(--font-display); font-weight: 600; font-size: clamp(2.5rem, 6vw, 4.5rem); line-height: 1; color: var(--text); font-variant-numeric: tabular-nums; }
.pl-progress { position: absolute; left: 0; right: 0; bottom: 0; height: 1px; background: var(--border); }
.pl-progress span { display: block; height: 100%; width: 100%; background: var(--accent); box-shadow: 0 0 12px var(--accent); transform: scaleX(0); transform-origin: left; }

/* ---------- Cabeçalho ---------- */
.header { position: fixed; top: 16px; left: 0; right: 0; z-index: 100; transition: translate .45s var(--ease); }
.header.is-hidden { translate: 0 -120%; }
.header-bar {
  display: flex; align-items: center; justify-content: space-between; gap: 24px;
  height: 64px; padding: 0 12px 0 20px; border-radius: var(--radius-lg);
  border: 1px solid var(--border); background: rgba(5,8,12,.55);
  backdrop-filter: blur(14px); -webkit-backdrop-filter: blur(14px);
  transition: background-color .3s ease, border-color .3s ease;
}
.header.is-scrolled .header-bar { background: rgba(5,8,12,.82); }
.logo { display: inline-flex; align-items: center; gap: 10px; }
.logo-icon { width: 30px; height: 30px; }
.cd-cursor { animation: blink 1.1s steps(1) infinite; }
.logo-text { font-family: var(--font-display); font-weight: 600; font-size: 1.25rem; letter-spacing: -0.02em; }
.logo-text span { color: var(--accent); }
.nav { display: flex; gap: 32px; }
.nav-link { position: relative; padding: 6px 0; font-size: .88rem; font-weight: 500; color: var(--text-muted); transition: color .25s ease; }
.nav-link:hover { color: var(--text); }
.nav-link.is-active { color: var(--text); }
.nav-link::after { content: ''; position: absolute; left: 50%; bottom: -4px; width: 16px; height: 2px; margin-left: -8px; border-radius: 2px; background: var(--accent); box-shadow: 0 0 8px var(--accent); transform: scaleX(0); transition: transform .3s var(--ease); }
.nav-link.is-active::after { transform: scaleX(1); }
.menu-toggle { display: none; position: relative; width: 44px; height: 44px; border-radius: var(--radius-md); border: 1px solid var(--border-strong); }
.menu-toggle span { position: absolute; left: 12px; right: 12px; height: 2px; border-radius: 2px; background: var(--text); transition: transform .3s var(--ease), top .3s var(--ease); }
.menu-toggle span:first-child { top: 16px; }
.menu-toggle span:last-child { top: 25px; }
.menu-open .menu-toggle span:first-child { top: 21px; transform: rotate(45deg); }
.menu-open .menu-toggle span:last-child { top: 21px; transform: rotate(-45deg); }

.menu-mobile {
  position: fixed; inset: 0; z-index: 90; background: var(--bg);
  display: flex; flex-direction: column; justify-content: space-between;
  padding: 120px 24px 32px; overflow-y: auto;
  clip-path: circle(0 at calc(100% - 52px) 48px); transition: clip-path .6s var(--ease);
}
.menu-mobile.is-open { clip-path: circle(150% at calc(100% - 52px) 48px); }
.menu-mobile nav { display: flex; flex-direction: column; gap: 6px; }
.menu-mobile nav a { display: flex; align-items: baseline; gap: 14px; font-family: var(--font-display); font-weight: 600; font-size: 2rem; letter-spacing: -0.02em; padding: 4px 0; }
.menu-mobile nav a i { font-style: normal; font-family: var(--font-mono); font-size: .75rem; color: var(--accent); }
.menu-mobile-foot { display: flex; flex-direction: column; gap: 10px; margin-top: 32px; color: var(--text-muted); }
.menu-mobile-foot .btn { margin-top: 10px; }

/* ---------- 1. Hero ---------- */
.hero { position: relative; min-height: clamp(760px, 100svh, 940px); display: flex; align-items: stretch; overflow: hidden; isolation: isolate; }
.hero-bg { position: absolute; inset: 0; z-index: -1; }
.hero-city { position: absolute; right: 0; top: 0; width: 78%; height: 100%; object-fit: cover; object-position: right center; opacity: .5; }
.hero-3d { position: absolute; inset: 0; width: 100%; height: 100%; }
.hero-bg::after {
  content: ''; position: absolute; inset: 0;
  background:
    linear-gradient(90deg, var(--bg) 0%, rgba(5,8,12,.85) 30%, rgba(5,8,12,0) 58%),
    linear-gradient(0deg, var(--bg) 0%, rgba(5,8,12,0) 28%),
    linear-gradient(180deg, rgba(5,8,12,.6) 0%, rgba(5,8,12,0) 18%);
}
.hero-grid { position: relative; display: grid; grid-template-columns: minmax(0,1fr) minmax(0,1fr); align-items: stretch; gap: 24px; }
.hero-text { display: flex; flex-direction: column; justify-content: center; padding: 140px 0 120px; max-width: 590px; position: relative; z-index: 2; }
.hero-badge {
  display: inline-flex; align-items: center; gap: 10px; align-self: flex-start;
  height: 32px; padding: 0 14px; border-radius: var(--radius-pill);
  border: 1px solid var(--border-strong); background: rgba(12,18,25,.6);
  font-family: var(--font-mono); font-size: .7rem; letter-spacing: .1em; color: var(--text-2);
  margin-bottom: 26px;
}
.hero-title { font-family: var(--font-display); font-weight: 700; font-size: clamp(2.6rem, 4.8vw, 4.5rem); line-height: 1.04; letter-spacing: -0.035em; }
.hero-title .line { display: block; }
.hero-title .accent { text-shadow: 0 0 40px rgba(34,211,238,.35); }
.hero-subtitle { margin-top: 24px; max-width: 500px; font-size: 1.08rem; line-height: 1.65; color: var(--text-2); }
.hero-actions { display: flex; flex-wrap: wrap; gap: 14px; margin-top: 36px; }
.scroll-hint { display: inline-flex; align-items: center; gap: 12px; margin-top: 64px; align-self: flex-start; font-family: var(--font-mono); font-size: .68rem; letter-spacing: .14em; color: var(--text-muted); }
.scroll-mouse { display: grid; place-items: center; width: 30px; height: 44px; border-radius: 16px; border: 1px solid var(--accent-line); }
.scroll-mouse svg { width: 18px; height: 26px; fill: none; stroke: var(--accent); stroke-width: 1.5; stroke-linecap: round; }
.mouse-wheel { animation: wheel 1.8s ease-in-out infinite; }
@keyframes wheel { 0% { transform: translateY(0); opacity: 1; } 70% { transform: translateY(5px); opacity: 0; } 100% { opacity: 0; } }

.hero-visual { position: relative; min-height: 100%; }
.hero-photo {
  position: absolute; bottom: 0; left: 50%; translate: -50% 0;
  width: auto; height: min(88%, 780px); max-width: none; z-index: 2;
  filter: drop-shadow(0 0 40px rgba(34,211,238,.12));
  mask-image: linear-gradient(0deg, transparent 0%, #000 14%);
  -webkit-mask-image: linear-gradient(0deg, transparent 0%, #000 14%);
}
.hero-ring {
  position: absolute; z-index: 1; left: 50%; top: 21%; width: 470px; height: 470px; margin-left: -235px;
  border-radius: 50%;
  background: conic-gradient(from 0deg, var(--accent), var(--accent-2), transparent 55%, var(--accent) 80%, var(--accent));
  -webkit-mask: radial-gradient(farthest-side, transparent calc(100% - 3px), #000 calc(100% - 2px));
  mask: radial-gradient(farthest-side, transparent calc(100% - 3px), #000 calc(100% - 2px));
  filter: drop-shadow(0 0 14px var(--accent)) drop-shadow(0 0 30px rgba(34,211,238,.6));
  animation: spin 40s linear infinite;
}
.hero-ring--dash {
  width: 540px; height: 540px; margin-left: -270px; top: calc(21% - 35px);
  background: none; mask: none; -webkit-mask: none; filter: none;
  border: 1px dashed rgba(34,211,238,.25);
  animation: spin 60s linear infinite reverse;
}
.hero-visual::before {
  content: ''; position: absolute; z-index: 0; left: 50%; top: 21%; width: 470px; height: 470px; margin-left: -235px; border-radius: 50%;
  background: radial-gradient(circle, rgba(34,211,238,.18), rgba(37,99,235,.08) 45%, transparent 70%);
}
@keyframes spin { to { transform: rotate(360deg); } }

.code-card {
  position: absolute; z-index: 3; right: 0; bottom: 72px; width: 380px;
  background: rgba(12,18,25,.82); backdrop-filter: blur(12px); -webkit-backdrop-filter: blur(12px);
  border: 1px solid var(--accent-line); border-radius: var(--radius-lg);
  box-shadow: 0 0 0 1px rgba(34,211,238,.06), 0 24px 60px -20px rgba(34,211,238,.28);
  overflow: hidden;
}
.code-top { display: flex; flex-direction: column; gap: 4px; padding: 14px 18px 0; }
.code-status { white-space: nowrap; display: inline-flex; align-items: center; gap: 10px; font-family: var(--font-mono); font-size: .66rem; letter-spacing: .1em; color: var(--text); }
.code-agenda { padding-left: 18px; font-family: var(--font-mono); font-size: .68rem; color: var(--text-dim); }
.code { margin: 0; padding: 14px 18px 16px; font-family: var(--font-mono); font-size: .84rem; line-height: 1.7; color: var(--text-2); white-space: pre; overflow: hidden; counter-reset: ln; }
.code code { font-family: inherit; }
.cl { display: block; min-height: 1.7em; }
.cl::before { counter-increment: ln; content: counter(ln); display: inline-block; width: 18px; margin-right: 12px; color: var(--text-dim); opacity: .6; text-align: right; }
.tk-k { color: #C084FC; }
.tk-f { color: var(--accent); }
.tk-key { color: var(--text-2); }
.tk-s { color: #A5F3FC; }
.tk-n { color: #FBBF24; }
.tk-p { color: var(--text-dim); }
.tk-prompt { color: var(--accent); }
.code-run {
  display: flex; align-items: center; gap: 8px; width: 100%;
  padding: 12px 18px; border-top: 1px solid var(--border);
  font-family: var(--font-mono); font-size: .84rem; color: var(--accent);
  transition: background-color .25s ease;
}
.code-run:hover { background: var(--accent-soft); }
.code-run .caret { margin-left: 0; }

/* ---------- 2. Sobre ---------- */
.about-panel { display: grid; grid-template-columns: 5fr 7fr; gap: 56px; padding: 40px; overflow: hidden; }
.about-panel::before {
  content: ''; position: absolute; inset: 0; pointer-events: none;
  background-image: radial-gradient(rgba(255,255,255,.05) 1px, transparent 1px); background-size: 28px 28px;
  mask-image: radial-gradient(ellipse at 80% 20%, #000 0%, transparent 60%);
  -webkit-mask-image: radial-gradient(ellipse at 80% 20%, #000 0%, transparent 60%);
}
.about-panel::after { content: ''; position: absolute; right: -10%; top: -30%; width: 60%; height: 90%; background: radial-gradient(circle, rgba(34,211,238,.08), transparent 65%); pointer-events: none; }
.about-media { position: relative; }
.about-frame { position: relative; border-radius: var(--radius-lg); overflow: hidden; border: 1px solid var(--border); aspect-ratio: 4 / 5; background: var(--surface-2); }
.about-frame img { width: 100%; height: 100%; object-fit: cover; }
.corner { position: absolute; width: 22px; height: 22px; border-color: var(--accent); border-style: solid; border-width: 0; z-index: 2; }
.c-tl { left: 12px; top: 12px; border-left-width: 2px; border-top-width: 2px; border-top-left-radius: 6px; }
.c-tr { right: 12px; top: 12px; border-right-width: 2px; border-top-width: 2px; border-top-right-radius: 6px; }
.c-bl { left: 12px; bottom: 12px; border-left-width: 2px; border-bottom-width: 2px; border-bottom-left-radius: 6px; }
.c-br { right: 12px; bottom: 12px; border-right-width: 2px; border-bottom-width: 2px; border-bottom-right-radius: 6px; }
.about-years {
  position: absolute; right: -22px; bottom: 48px; z-index: 3;
  display: flex; flex-direction: column; gap: 2px; padding: 16px 20px; min-width: 130px;
  background: rgba(17,25,34,.88); backdrop-filter: blur(10px); -webkit-backdrop-filter: blur(10px);
  border: 1px solid var(--accent-line); border-radius: var(--radius-md); box-shadow: var(--shadow-glow);
}
.about-years strong { font-family: var(--font-display); font-weight: 700; font-size: 2.4rem; line-height: 1; color: var(--accent); }
.about-years > span { font-size: .82rem; color: var(--text-2); line-height: 1.35; }
.about-text { position: relative; z-index: 1; display: flex; flex-direction: column; justify-content: center; }
.about-text .section-title { margin-bottom: 22px; }
.about-text .text + .text { margin-top: 14px; }
.stats { display: grid; grid-template-columns: repeat(3, 1fr); gap: 14px; margin: 32px 0 26px; }
.stat { display: flex; align-items: center; gap: 14px; padding: 16px; background: var(--surface-2); border: 1px solid var(--border); border-radius: var(--radius-md); }
.stat-icon { display: grid; place-items: center; width: 44px; height: 44px; flex-shrink: 0; border-radius: var(--radius-md); background: var(--accent-soft); color: var(--accent); }
.stat-icon .ic { width: 20px; height: 20px; }
.stat-num { display: block; font-family: var(--font-display); font-weight: 600; font-size: 1.7rem; line-height: 1; letter-spacing: -0.02em; font-variant-numeric: tabular-nums; }
.stat-label { display: block; margin-top: 4px; font-size: .78rem; color: var(--text-muted); line-height: 1.3; }

/* ---------- 3. Serviços ---------- */
.services-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 16px; }
.service { display: flex; flex-direction: column; gap: 14px; padding: 28px; min-height: 280px; overflow: hidden; }
.service::before {
  content: ''; position: absolute; inset: 0; border-radius: inherit; pointer-events: none; opacity: 0;
  background: radial-gradient(320px circle at var(--mx, 50%) var(--my, 0%), rgba(34,211,238,.12), transparent 60%);
  transition: opacity .3s ease;
}
.service:hover { border-color: var(--accent-line); background: var(--surface-hover); translate: 0 -4px; }
.service:hover::before { opacity: 1; }
.service-icon { display: grid; place-items: center; width: 48px; height: 48px; border-radius: var(--radius-md); border: 1px solid var(--accent-line); background: var(--accent-soft); color: var(--accent); margin-bottom: 8px; }
.service-icon .ic { width: 22px; height: 22px; }
.service .text { flex: 1; }
.service-foot { display: flex; align-items: center; justify-content: space-between; gap: 12px; }
.price { color: var(--accent); }

/* ---------- 4. Stack ---------- */
.stack-panel { padding: 40px 0 32px; overflow: hidden; }
.stack-head { padding: 0 40px; margin-bottom: 32px; }
.marquee {
  overflow: hidden;
  mask-image: linear-gradient(90deg, transparent, #000 10%, #000 90%, transparent);
  -webkit-mask-image: linear-gradient(90deg, transparent, #000 10%, #000 90%, transparent);
}
.marquee + .marquee { margin-top: 14px; }
.marquee-track { display: flex; gap: 14px; width: max-content; }
.tech {
  display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 12px;
  width: 112px; height: 104px; flex-shrink: 0;
  background: var(--surface-2); border: 1px solid var(--border); border-radius: var(--radius-md);
  color: var(--text-2); transition: border-color .3s ease, color .3s ease, background-color .3s ease;
}
.tech svg { width: 38px; height: 38px; fill: currentColor; }
.tech span { font-size: .78rem; color: var(--text-muted); }
.tech:hover { color: var(--brand); border-color: var(--accent-line); background: var(--surface-hover); }
.stack-note { margin-top: 26px; padding: 0 40px; font-size: .85rem; font-style: italic; color: var(--text-dim); text-align: center; }
.no-motion .marquee { mask-image: none; -webkit-mask-image: none; padding: 0 20px; }
.no-motion .marquee-track { width: auto; gap: 12px; }
/* Sem animação: no desktop cada fileira cabe numa linha; abaixo disso, quebra centralizada */
@media (min-width: 1025px) { .no-motion .tech { flex: 1 1 0; width: auto; min-width: 0; } }
@media (max-width: 1024px) { .no-motion .marquee-track { flex-wrap: wrap; justify-content: center; } }
.no-motion .marquee-track > li[aria-hidden="true"] { display: none; }

/* ---------- 5. Projetos ---------- */
.projects-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; }
.project { overflow: hidden; }
.project:hover { border-color: var(--accent-line); box-shadow: var(--shadow-card); }
.project-media { position: relative; overflow: hidden; background: var(--surface-2); }
.browser-bar { position: relative; z-index: 2; display: flex; align-items: center; gap: 6px; height: 28px; padding: 0 12px; background: var(--surface-2); border-bottom: 1px solid var(--border); }
.browser-bar i { width: 8px; height: 8px; border-radius: 50%; background: var(--border-strong); }
.browser-bar span { margin-left: 10px; padding: 2px 12px; border-radius: var(--radius-pill); background: rgba(255,255,255,.04); font-family: var(--font-mono); font-size: .65rem; color: var(--text-dim); }
.project-media img { width: 100%; aspect-ratio: 16 / 10; object-fit: cover; object-position: top; transition: transform .6s var(--ease); }
.project:hover .project-media img { transform: scale(1.04) translateY(-6px); }
.project-media .tag { position: absolute; left: 14px; bottom: 14px; z-index: 2; }
.project-body { padding: 22px; display: flex; flex-direction: column; gap: 10px; }
.project-open { text-align: left; font: inherit; }
.project-open::after { content: ''; position: absolute; inset: 0; z-index: 3; border-radius: inherit; }
.project-open:focus-visible { outline: none; }
.project:has(.project-open:focus-visible) { outline: 2px solid var(--accent); outline-offset: 3px; }
.project-foot { display: flex; align-items: center; justify-content: space-between; gap: 12px; margin-top: 4px; }
/* Grade de 2 colunas com só 3 projetos: o 3º ocupa a linha inteira, com a imagem ao lado do texto */
@media (min-width: 601px) and (max-width: 1024px) {
  .projects-grid:has(.project.is-extra[hidden]) .project:nth-child(3) { grid-column: span 2; display: grid; grid-template-columns: 1fr 1fr; align-items: center; }
  .projects-grid:has(.project.is-extra[hidden]) .project:nth-child(3) .project-media img { height: 100%; }
}
.stack-dots { display: flex; flex-wrap: wrap; align-items: center; gap: 4px 0; font-size: .78rem; color: var(--text-muted); }
.stack-dots span + span::before { content: ''; display: inline-block; width: 4px; height: 4px; margin: 0 9px 2px; border-radius: 50%; background: var(--accent); }

/* ---------- 6. Clientes ---------- */
.clients { overflow: hidden; }
.clients .container { position: relative; z-index: 1; pointer-events: none; }
.clients .container > * { pointer-events: auto; }
.clients-panel { max-width: 720px; padding: 8px 32px; background: rgba(12,18,25,.72); }
.clients-list { display: grid; grid-template-columns: repeat(4, 1fr); align-items: center; justify-items: center; }
.clients-list .client { display: flex; justify-content: center; width: 100%; padding: 26px 0; }
.clients-list .client:nth-child(-n+4) { border-bottom: 1px solid var(--border); }
.client { color: var(--text-muted); opacity: .75; transition: opacity .3s ease, color .3s ease; }
.client:hover { opacity: 1; color: var(--text); }
.client svg { width: 132px; height: 36px; fill: currentColor; font-family: var(--font-display); }
.clients-note { margin-top: 18px; font-size: .85rem; color: var(--text-dim); }
.globe-legend { display: flex; flex-wrap: wrap; gap: 10px 22px; margin-top: 14px; font-family: var(--font-mono); font-size: .72rem; letter-spacing: .04em; color: var(--text-muted); }
.globe-legend li { display: flex; align-items: center; gap: 8px; }
.globe-legend i { width: 8px; height: 8px; border-radius: 50%; background: var(--accent); }
.globe-legend .lg-base { width: 10px; height: 10px; background: #fff; box-shadow: 0 0 0 3px rgba(34,211,238,.35); }
.globe-legend .lg-ext { background: #C084FC; }

/* ---------- 7. Processo ---------- */
.process-wrap { position: relative; }
.process-line { position: absolute; left: 7px; right: 0; top: 7px; width: calc(100% - 7px); height: 2px; overflow: visible; }
.process-line line { stroke-width: 2; vector-effect: non-scaling-stroke; }
.pl-base { stroke: var(--border-strong); stroke-dasharray: 4 6; }
.pl-fill { stroke: var(--accent); filter: drop-shadow(0 0 6px var(--accent)); }
.process-steps { display: grid; grid-template-columns: repeat(4, 1fr); gap: 32px; }
.step { position: relative; padding-top: 40px; display: flex; flex-direction: column; align-items: flex-start; gap: 10px; }
.step-node { position: absolute; left: 0; top: 0; width: 16px; height: 16px; border-radius: 50%; background: var(--bg-2); border: 2px solid var(--border-strong); transition: border-color .4s ease, background-color .4s ease, box-shadow .4s ease; }
.step.is-on .step-node { border-color: var(--accent); background: var(--accent); box-shadow: 0 0 0 5px var(--accent-soft), 0 0 16px var(--accent); }
.step-num { font-family: var(--font-display); font-weight: 700; font-size: 4rem; line-height: 1; letter-spacing: -0.03em; color: transparent; -webkit-text-stroke: 1px var(--border-strong); transition: -webkit-text-stroke-color .4s ease; }
.step.is-on .step-num { -webkit-text-stroke-color: var(--accent-line); }
.step-cmd { color: var(--accent); }
.step .chip { margin-top: 6px; }

/* ---------- 8. Experiência ---------- */
.experience-grid { display: grid; grid-template-columns: 5fr 7fr; gap: 64px; align-items: start; }
.experience-intro { position: sticky; top: 120px; display: flex; flex-direction: column; align-items: flex-start; gap: 18px; }
.experience-intro .section-title { margin-bottom: 2px; }
.experience-intro .btn { margin-top: 10px; }
.timeline { position: relative; display: flex; flex-direction: column; gap: 40px; }
.timeline::before { content: ''; position: absolute; left: 7px; top: 8px; bottom: 8px; width: 1px; background: var(--border-strong); }
.tl-progress { position: absolute; left: 7px; top: 8px; bottom: 8px; width: 1px; }
.tl-progress span { display: block; width: 100%; height: 100%; background: var(--accent); box-shadow: 0 0 10px var(--accent); transform-origin: top; transform: scaleY(1); }
.tl-item { position: relative; padding-left: 44px; }
.tl-node { position: absolute; left: 0; top: 4px; display: grid; place-items: center; width: 15px; height: 15px; border-radius: 50%; background: var(--bg); border: 2px solid var(--accent); transition: border-color .4s ease, background-color .4s ease; }
.tl-item.is-current .tl-node { background: var(--accent); }
.tl-item.is-current .tl-node::after { content: ''; position: absolute; inset: -2px; border-radius: 50%; background: var(--accent); animation: pulse 1.8s ease-out infinite; }
.tl-edu .tl-node { width: 30px; height: 30px; left: -7px; top: -4px; border-radius: var(--radius-sm); background: var(--surface-2); color: var(--accent); }
.tl-edu .tl-node .ic { width: 16px; height: 16px; }
.tl-period { color: var(--accent); margin-bottom: 6px; }
.tl-place { margin: 4px 0 10px; font-size: .88rem; color: var(--text-muted); }
.js .timeline.is-anim .tl-node { border-color: var(--border-strong); }
.js .timeline.is-anim .tl-item.is-on .tl-node { border-color: var(--accent); }

/* ---------- 9. Depoimentos ---------- */
.rating { display: flex; flex-direction: column; align-items: flex-end; gap: 6px; font-size: .88rem; color: var(--text-muted); }
.testimonials-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; }
.quote { display: flex; flex-direction: column; gap: 18px; padding: 28px; overflow: hidden; }
.quote::after { content: '\201C'; position: absolute; right: 18px; top: -6px; font-family: Georgia, serif; font-size: 7rem; line-height: 1; color: var(--accent); opacity: .16; pointer-events: none; }
.quote:hover { border-color: var(--accent-line); }
.quote blockquote { flex: 1; color: var(--text-2); font-size: .95rem; line-height: 1.7; }
.quote figcaption { display: flex; align-items: center; gap: 12px; padding-top: 18px; border-top: 1px solid var(--border); }
.quote figcaption img { width: 48px; height: 48px; border-radius: 50%; object-fit: cover; border: 1px solid var(--border-strong); }
.quote figcaption > span { display: flex; flex-direction: column; flex: 1; min-width: 0; }
.quote figcaption strong { font-family: var(--font-display); font-weight: 600; font-size: .95rem; }
.quote figcaption em { font-style: normal; font-size: .78rem; color: var(--text-muted); }
.link-case { display: inline-flex; align-items: center; gap: 4px; font-family: var(--font-mono); font-size: .72rem; color: var(--accent); white-space: nowrap; }
.link-case .ic { width: 14px; height: 14px; transition: translate .3s var(--ease); }
.link-case:hover .ic { translate: 3px 0; }
.dots { display: none; }

/* ---------- 10. FAQ ---------- */
.faq-grid { display: grid; grid-template-columns: 5fr 7fr; gap: 64px; align-items: start; }
.faq-card { display: flex; flex-direction: column; align-items: flex-start; gap: 10px; margin-top: 36px; padding: 28px; }
.faq-card .btn { margin-top: 10px; }
.accordion { display: flex; flex-direction: column; gap: 10px; }
.acc-item { background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius-md); transition: border-color .3s ease; }
.acc-item.is-open { border-color: var(--accent-line); }
.acc-btn { display: flex; align-items: center; justify-content: space-between; gap: 16px; width: 100%; min-height: 60px; padding: 14px 20px; text-align: left; font-family: var(--font-display); font-weight: 500; font-size: 1.02rem; }
.acc-icon { display: grid; place-items: center; width: 30px; height: 30px; flex-shrink: 0; border-radius: var(--radius-sm); background: var(--accent-soft); color: var(--accent); transition: transform .35s var(--ease); }
.acc-item.is-open .acc-icon { transform: rotate(45deg); }
.acc-panel { overflow: hidden; }
.acc-panel p { padding: 0 20px 20px; color: var(--text-muted); font-size: .95rem; line-height: 1.7; max-width: 640px; }

/* ---------- 11. Contato ---------- */

.globe-wrap { position: absolute; z-index: 0; right: -20px; top: 50%; width: 680px; height: 680px; margin-top: -330px; }
@media (min-width: 1025px) { .clients { min-height: 700px; } }
@media (max-width: 1360px) and (min-width: 1025px) { .globe-wrap { right: -150px; } }
@media (max-width: 1180px) and (min-width: 1025px) { .globe-wrap { right: -230px; } }
.globe-3d { cursor: grab; touch-action: pan-y; }
.globe-3d.is-dragging { cursor: grabbing; }
.globe-hint { position: absolute; left: 50%; bottom: 4%; translate: -50% 0; display: none; padding: 6px 12px; border-radius: var(--radius-pill); border: 1px solid var(--border); background: rgba(12,18,25,.7); font-family: var(--font-mono); font-size: .7rem; letter-spacing: .06em; color: var(--text-muted); pointer-events: none; transition: opacity .5s ease; }
.has-globe .globe-hint { display: block; }
.globe-hint.is-gone { opacity: 0; }
.globe-img, .globe-3d { position: absolute; inset: 0; width: 100%; height: 100%; }
.globe-img { opacity: .9; }
.has-globe .globe-img { display: none; }
.contact-grid { position: relative; z-index: 1; display: grid; grid-template-columns: 5fr 7fr; gap: 64px; align-items: start; }
.contact-info .section-title { margin-bottom: 18px; }
.contact-list { display: flex; flex-direction: column; gap: 18px; margin: 32px 0 28px; }
.contact-list li { display: flex; align-items: center; gap: 14px; }
.contact-list small { display: block; font-size: .75rem; color: var(--text-dim); }
.contact-list a, .contact-list span:not(.stat-icon) { font-size: .95rem; color: var(--text); }
.contact-list a:hover { color: var(--accent); }
.agenda-pill { display: inline-flex; align-items: center; gap: 10px; height: 34px; padding: 0 14px; border-radius: var(--radius-pill); border: 1px solid var(--accent-line); background: var(--accent-soft); font-family: var(--font-mono); font-size: .74rem; color: var(--text-2); }
.form-card { padding: 32px; background: rgba(12,18,25,.88); backdrop-filter: blur(10px); -webkit-backdrop-filter: blur(10px); }
.form-title { font-family: var(--font-display); font-weight: 600; font-size: 1.35rem; letter-spacing: -0.015em; margin-bottom: 22px; }
.form-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; margin-bottom: 22px; }
.field { display: flex; flex-direction: column; gap: 8px; }
.field--full { grid-column: 1 / -1; }
.field label, .field legend { font-size: .8rem; color: var(--text-muted); padding: 0; }
.field small { color: var(--text-dim); font-size: .74rem; }
.field input, .field select, .field textarea {
  width: 100%; height: 50px; padding: 0 16px;
  background: var(--surface-2); border: 1px solid var(--border); border-radius: var(--radius-md);
  color: var(--text); outline: none; appearance: none; -webkit-appearance: none;
  transition: border-color .25s ease, box-shadow .25s ease;
}
.field textarea { height: 120px; padding: 14px 16px; resize: vertical; line-height: 1.6; }
.field ::placeholder { color: var(--text-dim); }
.field input:focus, .field select:focus, .field textarea:focus { border-color: var(--accent-line); box-shadow: 0 0 0 4px var(--accent-soft); }
.field select:invalid { color: var(--text-dim); }
.field select option { color: var(--text); background: var(--surface-2); }
.select-wrap { position: relative; }
.select-arrow { position: absolute; right: 16px; top: 50%; margin-top: -9px; color: var(--text-muted); pointer-events: none; }
.select-wrap.is-flash select { border-color: var(--accent); box-shadow: 0 0 0 4px var(--accent-soft), 0 0 24px -4px var(--accent-glow); }
.field.has-error input, .field.has-error select, .field.has-error textarea { border-color: var(--error); }
.field-error { font-size: .78rem; color: var(--error); min-height: 0; }
.field-error:empty { display: none; }
.field legend { margin-bottom: 8px; }
.pills { display: flex; flex-wrap: wrap; gap: 8px; }
.pill { position: relative; }
.pill input { position: absolute; opacity: 0; width: 1px; height: 1px; }
.pill span {
  display: inline-flex; align-items: center; height: 38px; padding: 0 16px; border-radius: var(--radius-pill);
  background: var(--surface-2); border: 1px solid var(--border); font-size: .84rem; color: var(--text-2); cursor: pointer;
  transition: border-color .25s ease, color .25s ease, background-color .25s ease;
}
.pill span:hover { border-color: var(--border-strong); }
.pill input:checked + span { border-color: var(--accent); color: var(--accent); background: var(--accent-soft); }
.pill input:focus-visible + span { outline: 2px solid var(--accent); outline-offset: 3px; }
.has-error .pill span { border-color: rgba(251,113,133,.5); }
.spinner { display: none; width: 18px; height: 18px; border-radius: 50%; border: 2px solid rgba(5,8,12,.3); border-top-color: #05080C; animation: spin .7s linear infinite; }
.is-sending .spinner { display: inline-block; }
.is-sending .btn-primary .ic { display: none; }
.form-note { margin-top: 14px; font-size: .78rem; color: var(--text-dim); text-align: center; }
.form-success { display: flex; flex-direction: column; align-items: flex-start; gap: 14px; padding: 12px 0; outline: none; }
.form-success .form-title { margin-bottom: 0; }
.success-icon { display: grid; place-items: center; width: 56px; height: 56px; border-radius: 50%; background: var(--accent-soft); border: 1px solid var(--accent-line); color: var(--accent); box-shadow: 0 0 30px -6px var(--accent-glow); }
.success-icon .ic { width: 26px; height: 26px; stroke-width: 2.2; }

/* ---------- Rodapé ---------- */
.footer { position: relative; z-index: 1; padding: 48px 0 32px; border-top: 1px solid var(--border); background: var(--bg); }
.footer-top { display: flex; align-items: center; justify-content: space-between; gap: 24px; }
.footer-brand { display: flex; align-items: center; gap: 28px; }
.footer-brand .text { max-width: 360px; font-size: .88rem; }
.socials { display: flex; gap: 10px; }
.socials a { display: grid; place-items: center; width: 42px; height: 42px; border-radius: 50%; border: 1px solid var(--border-strong); color: var(--text-2); transition: border-color .25s ease, color .25s ease, background-color .25s ease; }
.socials a:hover { border-color: var(--accent); color: var(--accent); background: var(--accent-soft); }
.socials svg { width: 18px; height: 18px; fill: currentColor; }
.footer-links { display: flex; flex-wrap: wrap; gap: 8px 28px; margin: 32px 0; padding: 24px 0; border-top: 1px solid var(--border); border-bottom: 1px solid var(--border); }
.footer-links a { font-size: .88rem; color: var(--text-muted); transition: color .25s ease; }
.footer-links a:hover { color: var(--text); }
.footer-bottom { display: flex; align-items: center; gap: 24px; font-size: .82rem; color: var(--text-dim); }
.footer-bottom .link-inline { color: var(--text-dim); }
.to-top { margin-left: auto; display: inline-flex; align-items: center; gap: 6px; color: var(--text-muted); }
.to-top .ic { width: 15px; height: 15px; transition: translate .3s var(--ease); }
.to-top:hover { color: var(--accent); }
.to-top:hover .ic { translate: 0 -3px; }

/* ---------- Janelas ---------- */
.modal { padding: 0; border: 0; background: transparent; color: var(--text); max-width: calc(100vw - 32px); max-height: calc(100dvh - 32px); overflow: visible; }
.modal::backdrop { background: rgba(3,5,8,.78); backdrop-filter: blur(6px); -webkit-backdrop-filter: blur(6px); }
.modal[open] { animation: modal-in .35s var(--ease); }
@keyframes modal-in { from { opacity: 0; transform: translateY(16px); } to { opacity: 1; transform: none; } }
.modal-box { position: relative; background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius-xl); padding: 32px; max-height: calc(100dvh - 32px); overflow-y: auto; overscroll-behavior: contain; }
.modal-small .modal-box { width: 520px; max-width: 100%; display: flex; flex-direction: column; gap: 14px; align-items: flex-start; }
.modal-small .btn { margin-top: 8px; }
.modal-close { position: absolute; right: 16px; top: 16px; display: grid; place-items: center; width: 40px; height: 40px; border-radius: var(--radius-md); border: 1px solid var(--border-strong); background: var(--surface); z-index: 3; transition: border-color .25s ease, color .25s ease; }
.modal-close:hover { border-color: var(--accent); color: var(--accent); }
.modal-case .modal-box { width: 1040px; max-width: 100%; padding: 24px 28px 28px; }
.modal-top { display: flex; align-items: center; justify-content: space-between; margin-bottom: 18px; min-height: 40px; }
.modal-top .modal-close { position: static; }
.case-nav { display: flex; align-items: center; gap: 12px; }
.case-count { color: var(--text-muted); }
.case-grid { display: grid; grid-template-columns: 7fr 5fr; gap: 32px; align-items: start; }
.case-media { position: relative; padding-bottom: 80px; }
.case-browser { border-radius: var(--radius-md); overflow: hidden; border: 1px solid var(--border); background: var(--surface-2); }
.case-browser img { width: 100%; aspect-ratio: 16 / 10; object-fit: cover; object-position: top; }
.case-phone { position: absolute; right: 18px; bottom: 0; width: 180px; border-radius: 28px; border: 6px solid #1A232D; background: #1A232D; overflow: hidden; box-shadow: 0 30px 60px -20px rgba(0,0,0,.8), 0 0 0 1px var(--border); }
.case-phone::before { content: ''; position: absolute; top: 6px; left: 50%; width: 54px; height: 6px; margin-left: -27px; border-radius: 6px; background: #1A232D; z-index: 2; }
.case-phone img { width: 100%; aspect-ratio: 390 / 844; object-fit: cover; object-position: top; border-radius: 22px; }
.case-info { display: flex; flex-direction: column; align-items: flex-start; gap: 12px; }
.case-info .tag { position: static; }
.case-title { font-family: var(--font-display); font-weight: 600; font-size: 2rem; line-height: 1.15; letter-spacing: -0.02em; }
.case-facts { display: grid; grid-template-columns: 1fr 1fr; gap: 10px 20px; width: 100%; padding: 14px 0; border-top: 1px solid var(--border); border-bottom: 1px solid var(--border); }
.case-facts dt { font-family: var(--font-mono); font-size: .68rem; letter-spacing: .08em; text-transform: uppercase; color: var(--text-dim); }
.case-facts dd { font-size: .9rem; color: var(--text); }
.case-stack { display: flex; flex-wrap: wrap; gap: 6px; }
.case-stack li { height: 28px; display: inline-flex; align-items: center; padding: 0 10px; border-radius: var(--radius-pill); background: var(--surface-2); border: 1px solid var(--border); font-family: var(--font-mono); font-size: .7rem; color: var(--text-2); }
.case-h { margin-top: 6px; font-family: var(--font-mono); font-size: .72rem; font-weight: 500; letter-spacing: .12em; text-transform: uppercase; color: var(--accent); }
.case-results { display: grid; grid-template-columns: repeat(3, 1fr); gap: 10px; width: 100%; margin-top: 6px; }
.case-results li { padding: 14px 12px; border-radius: var(--radius-md); background: var(--surface-2); border: 1px solid var(--border); }
.case-results strong { display: block; font-family: var(--font-display); font-weight: 600; font-size: 1.45rem; line-height: 1.1; color: var(--accent); letter-spacing: -0.02em; }
.case-results span { display: block; margin-top: 6px; font-size: .74rem; line-height: 1.35; color: var(--text-muted); }
.case-quote { display: flex; gap: 12px; align-items: flex-start; padding: 14px; border-radius: var(--radius-md); border-left: 2px solid var(--accent); background: rgba(34,211,238,.05); }
.case-quote img { width: 40px; height: 40px; border-radius: 50%; object-fit: cover; flex-shrink: 0; }
.case-quote p { font-size: .86rem; color: var(--text-2); line-height: 1.6; }
.case-quote cite { display: block; margin-top: 6px; font-style: normal; font-size: .76rem; color: var(--text-muted); }
.case-quote cite strong { color: var(--text); font-weight: 600; }
.case-info .btn { margin-top: 6px; }
html.modal-open { overflow: hidden; }

/* ---------- Animações iniciais (só com JS e sem reduzir movimento) ---------- */
.is-loading .hero-text, .is-loading .hero-visual { visibility: hidden; }

/* ---------- Responsividade ---------- */
@media (max-width: 1200px) {
  .nav { gap: 22px; }
  .services-grid { grid-template-columns: repeat(2, 1fr); }
  .service { min-height: 240px; }
  .hero-ring { width: 400px; height: 400px; margin-left: -200px; }
  .hero-ring--dash { width: 460px; height: 460px; margin-left: -230px; }
  .hero-visual::before { width: 400px; height: 400px; margin-left: -200px; }
  .code-card { width: 340px; }
}

@media (max-width: 1024px) {
  :root { --section-gap: 88px; }
  .nav, .header-cta { display: none; }
  .menu-toggle { display: block; }
  .header-bar { height: 60px; }
  .hero { min-height: 0; }
  .hero-grid { grid-template-columns: minmax(0,1fr); gap: 0; }
  .hero-visual { order: -1; height: 64svh; min-height: 520px; margin-top: 90px; }
  .hero-photo { height: 100%; }
  .hero-ring { top: 8%; }
  .hero-ring--dash { top: calc(8% - 30px); }
  .hero-visual::before { top: 8%; }
  .code-card { right: 0; bottom: 24px; }
  .hero-text { padding: 40px 0 72px; max-width: 640px; }
  .hero-city { width: 100%; height: 70%; }
  .hero-bg::after { background: linear-gradient(0deg, var(--bg) 0%, var(--bg) 35%, rgba(5,8,12,0) 70%), linear-gradient(180deg, rgba(5,8,12,.6) 0%, rgba(5,8,12,0) 18%); }
  .about-panel { grid-template-columns: 1fr; gap: 40px; }
  .about-media { max-width: 420px; }
  .experience-grid, .faq-grid, .contact-grid { grid-template-columns: 1fr; gap: 40px; }
  .experience-intro { position: static; }
  .projects-grid, .testimonials-grid { grid-template-columns: repeat(2, 1fr); }
  .process-steps { grid-template-columns: repeat(2, 1fr); row-gap: 48px; }
  .process-line { display: none; }
  .step-node { border-color: var(--accent); }
  .clients-panel { max-width: none; }
  .case-grid { grid-template-columns: 1fr; }
  .clients { display: flex; flex-direction: column; }
  .globe-wrap { order: 2; position: relative; top: auto; right: auto; width: min(560px, 100%); height: auto; aspect-ratio: 1; margin: 24px auto 0; }
}

@media (max-width: 768px) {
  .hero-visual { height: 58svh; min-height: 460px; }
  .code-card { position: relative; right: auto; bottom: auto; width: 100%; margin-top: -40px; }
  .hero-visual { display: flex; flex-direction: column; justify-content: flex-end; height: auto; min-height: 0; }
  .hero-photo-wrap { position: relative; }
  .hero-photo { position: relative; left: auto; translate: none; height: 56svh; min-height: 420px; margin: 0 auto; }
  .hero-ring { width: 300px; height: 300px; margin-left: -150px; top: 6%; }
  .hero-ring--dash { width: 350px; height: 350px; margin-left: -175px; top: calc(6% - 25px); }
  .hero-visual::before { width: 300px; height: 300px; margin-left: -150px; top: 6%; }
  .stats { grid-template-columns: 1fr; }
  .section-head--split { flex-direction: column; align-items: flex-start; }
  .rating { align-items: flex-start; }
  .footer-top { flex-direction: column; align-items: flex-start; }
  .footer-brand { flex-direction: column; align-items: flex-start; gap: 14px; }
  .about-years { right: -10px; }
}

@media (max-width: 600px) {
  :root { --gutter: 20px; --section-gap: 64px; }
  .hero-photo { height: 48svh; min-height: 360px; }
  .hero-text { padding: 32px 0 64px; }
  .hero-actions .btn { width: 100%; justify-content: center; }
  .about-panel, .stack-panel { padding: 24px; }
  .stack-panel { padding: 28px 0 24px; }
  .stack-head, .stack-note { padding: 0 24px; }
  .services-grid, .projects-grid { grid-template-columns: 1fr; }
  .testimonials-grid { display: flex; overflow-x: auto; scroll-snap-type: x mandatory; gap: 14px; margin: 0 calc(var(--gutter) * -1); padding: 0 var(--gutter) 6px; scrollbar-width: none; }
  .testimonials-grid::-webkit-scrollbar { display: none; }
  .quote { flex: 0 0 86%; scroll-snap-align: center; }
  .dots { display: flex; justify-content: center; gap: 8px; margin-top: 18px; }
  .dots i { width: 6px; height: 6px; border-radius: 50%; background: var(--border-strong); transition: background-color .3s ease, width .3s ease; }
  .dots i.is-on { width: 18px; border-radius: 4px; background: var(--accent); }
  .process-steps { grid-template-columns: 1fr; row-gap: 36px; padding-left: 0; }
  .process-steps::before { content: ''; position: absolute; left: 7px; top: 8px; bottom: 8px; width: 1px; background: var(--border-strong); }
  .step { padding: 0 0 0 40px; }
  .step-num { font-size: 3rem; }
  .clients-panel { padding: 4px 16px; }
  .clients-list { grid-template-columns: repeat(2, 1fr); }
  .clients-list .client { padding: 18px 0; }
  .clients-list .client:nth-child(-n+6) { border-bottom: 1px solid var(--border); }
  .client svg { width: 116px; }
  .form-card { padding: 22px; }
  .form-grid { grid-template-columns: 1fr; }
  .hero-actions .btn { flex: 1 1 auto; }
  .pl-count { right: 20px; bottom: 20px; }
  .footer-bottom { flex-wrap: wrap; gap: 12px 20px; }
  .to-top { margin-left: 0; }
  .modal { max-width: 100vw; max-height: 100dvh; margin: auto 0 0; width: 100%; }
  .modal-box, .modal-case .modal-box { border-radius: var(--radius-xl) var(--radius-xl) 0 0; padding: 20px; max-height: 92dvh; }
  .case-results { grid-template-columns: 1fr 1fr 1fr; }
  .case-results strong { font-size: 1.15rem; }
  .case-phone { width: 120px; border-width: 4px; border-radius: 20px; }
  .case-phone img { border-radius: 16px; }
  .case-media { padding-bottom: 56px; }
  .globe-wrap { margin-top: 8px; }
  .agenda-pill { height: auto; padding: 8px 14px; }
}

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