/* ==========================================================
   Pedro Poiato — Soluções Digitais · V2
   Dark premium, tipografia moderna, animações com critério.
   ========================================================== */

:root {
  --bg: #07090f;
  --bg-2: #0a0e17;
  --surface: #0e1420;
  --surface-2: #131b2a;
  --line: rgba(255, 255, 255, 0.08);
  --line-strong: rgba(255, 255, 255, 0.14);
  --text: #e8ecf5;
  --text-2: #a7b0c4;
  --muted: #6f7a92;

  --blue: #3b82f6;
  --blue-2: #60a5fa;
  --cyan: #22d3ee;
  --violet: #8b5cf6;
  --wa: #25d366;

  --grad: linear-gradient(120deg, #60a5fa 0%, #22d3ee 45%, #8b5cf6 100%);

  --font-body: "Inter", system-ui, -apple-system, "Segoe UI", sans-serif;
  --font-head: "Space Grotesk", "Inter", system-ui, sans-serif;
  --font-mono: "JetBrains Mono", ui-monospace, monospace;

  --radius: 16px;
  --radius-lg: 22px;
  --header-h: 76px;
  --max: 1200px;
  --ease: cubic-bezier(0.22, 1, 0.36, 1);
  --shadow-card: 0 1px 0 rgba(255,255,255,.04) inset, 0 24px 60px -24px rgba(0, 0, 0, .7);
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: calc(var(--header-h) + 16px); -webkit-text-size-adjust: 100%; }
html, body { margin: 0; padding: 0; }
body {
  background: var(--bg);
  color: var(--text);
  font-family: var(--font-body);
  font-size: 16px;
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
  padding-bottom: env(safe-area-inset-bottom, 0);
}
img { display: block; max-width: 100%; height: auto; }
a { color: inherit; text-decoration: none; }
h1, h2, h3, p, ul { margin: 0; }
ul { padding: 0; list-style: none; }
button { font: inherit; color: inherit; }

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

.material-symbols-outlined {
  font-family: "Material Symbols Outlined";
  font-weight: normal; font-style: normal; font-size: 22px; line-height: 1;
  display: inline-block; white-space: nowrap; direction: ltr;
  -webkit-font-smoothing: antialiased;
  font-variation-settings: "FILL" 0, "wght" 400, "GRAD" 0, "opsz" 24;
}

.skip-link {
  position: absolute; left: 16px; top: -60px; z-index: 200;
  background: var(--text); color: var(--bg); padding: 10px 14px; border-radius: 10px;
  transition: top .2s;
}
.skip-link:focus { top: 16px; }

.container { width: min(100% - 48px, var(--max)); margin-inline: auto; }

/* ---------- Tipografia ---------- */
.eyebrow {
  display: inline-flex; align-items: center; gap: 10px;
  font-family: var(--font-mono); font-size: 12px; letter-spacing: .16em; text-transform: uppercase;
  color: var(--cyan);
}
.eyebrow::before {
  content: ""; width: 22px; height: 1px; background: currentColor; opacity: .7;
}
.h2 {
  font-family: var(--font-head); font-weight: 700; letter-spacing: -.02em;
  font-size: clamp(30px, 4.2vw, 46px); line-height: 1.12; color: var(--text);
  text-wrap: balance;
}
.lead { color: var(--text-2); font-size: clamp(16px, 1.6vw, 18px); max-width: 60ch; }
.gradient-text {
  background: var(--grad); background-size: 200% auto;
  -webkit-background-clip: text; background-clip: text; color: transparent;
  animation: gradient-shift 9s linear infinite;
}
@keyframes gradient-shift { to { background-position: 200% center; } }

/* ---------- Header ---------- */
.site-header {
  position: fixed; inset: 0 0 auto 0; z-index: 100; height: var(--header-h);
  transition: background .4s var(--ease), box-shadow .4s var(--ease), backdrop-filter .4s;
}
.site-header.is-scrolled {
  background: rgba(7, 9, 15, .72);
  backdrop-filter: blur(18px) saturate(140%);
  -webkit-backdrop-filter: blur(18px) saturate(140%);
  box-shadow: 0 1px 0 var(--line), 0 12px 40px -20px rgba(0,0,0,.6);
}
.header-inner { height: 100%; display: flex; align-items: center; justify-content: space-between; gap: 24px; }

.brand { display: inline-flex; align-items: center; gap: 12px; flex-shrink: 0; }
.brand-mark { width: 34px; height: auto; filter: drop-shadow(0 0 12px rgba(59,130,246,.35)); transition: transform .5s var(--ease), filter .5s; }
.brand:hover .brand-mark { transform: rotate(-6deg) scale(1.06); filter: drop-shadow(0 0 16px rgba(34,211,238,.5)); }
.brand-text { display: flex; flex-direction: column; line-height: 1; }
.brand-name { font-family: var(--font-head); font-weight: 700; font-size: 17px; letter-spacing: .02em; color: var(--text); }
.brand-sub { font-family: var(--font-mono); font-size: 10px; letter-spacing: .28em; text-transform: uppercase; color: var(--blue-2); margin-top: 5px; }

.nav { display: none; align-items: center; gap: 6px; padding: 5px; border-radius: 999px; background: rgba(255,255,255,.03); border: 1px solid var(--line); }
.nav-link {
  position: relative; padding: 8px 16px; border-radius: 999px; font-size: 14px; color: var(--text-2);
  transition: color .25s, background .25s;
}
.nav-link:hover { color: var(--text); background: rgba(255,255,255,.05); }
.nav-link.is-active { color: var(--text); background: rgba(59,130,246,.16); box-shadow: inset 0 0 0 1px rgba(96,165,250,.3); }

.header-actions { display: flex; align-items: center; gap: 12px; }

.menu-toggle {
  width: 44px; height: 44px; display: inline-flex; align-items: center; justify-content: center;
  border-radius: 12px; border: 1px solid var(--line-strong); background: var(--surface); cursor: pointer;
}
.menu-bars { position: relative; width: 18px; height: 12px; }
.menu-bars i {
  position: absolute; left: 0; width: 100%; height: 2px; border-radius: 2px; background: var(--text);
  transition: transform .35s var(--ease), top .35s var(--ease), opacity .2s;
}
.menu-bars i:first-child { top: 0; }
.menu-bars i:last-child { top: 10px; }
.menu-toggle[aria-expanded="true"] .menu-bars i:first-child { top: 5px; transform: rotate(45deg); }
.menu-toggle[aria-expanded="true"] .menu-bars i:last-child { top: 5px; transform: rotate(-45deg); }

.mobile-nav {
  position: fixed; inset: var(--header-h) 0 auto 0; z-index: 99; padding: 12px 24px 28px;
  background: rgba(7, 9, 15, .96); backdrop-filter: blur(20px);
  border-bottom: 1px solid var(--line);
  transform: translateY(-8px); opacity: 0; pointer-events: none; visibility: hidden;
  transition: opacity .3s var(--ease), transform .3s var(--ease), visibility .3s;
}
.mobile-nav.is-open { opacity: 1; transform: none; pointer-events: auto; visibility: visible; }
.mobile-nav-inner { display: flex; flex-direction: column; }
.mobile-nav-inner a { padding: 16px 4px; font-family: var(--font-head); font-size: 22px; border-bottom: 1px solid var(--line); }

.scroll-progress { position: fixed; inset: 0 0 auto 0; height: 2px; z-index: 120; pointer-events: none; }
.scroll-progress span { display: block; height: 100%; width: 100%; background: var(--grad); transform-origin: 0 50%; transform: scaleX(var(--p, 0)); }

/* ---------- Botões ---------- */
.btn {
  position: relative; display: inline-flex; align-items: center; justify-content: center; gap: 10px;
  padding: 14px 22px; border-radius: 14px; font-family: var(--font-head); font-weight: 600; font-size: 15px;
  letter-spacing: .01em; border: 1px solid transparent; cursor: pointer; white-space: nowrap; isolation: isolate;
  transition: transform .4s var(--ease), box-shadow .4s var(--ease), background .3s, border-color .3s, color .3s;
  will-change: transform;
}
.btn-sm { padding: 10px 16px; font-size: 14px; border-radius: 12px; }
.btn-lg { padding: 18px 30px; font-size: 16px; border-radius: 16px; }
.btn-icon { font-size: 19px; transition: transform .45s var(--ease); }

.btn-primary {
  color: #fff;
  background: linear-gradient(135deg, #3b82f6 0%, #2563eb 55%, #4f46e5 100%);
  box-shadow: 0 10px 30px -10px rgba(59,130,246,.65), inset 0 1px 0 rgba(255,255,255,.22);
}
.btn-ghost {
  color: var(--text); background: rgba(255,255,255,.03); border-color: var(--line-strong);
  backdrop-filter: blur(8px);
}
@media (hover: hover) {
  .btn-primary:hover { transform: translateY(-2px); box-shadow: 0 16px 40px -12px rgba(59,130,246,.8), inset 0 1px 0 rgba(255,255,255,.3); }
  .btn-ghost:hover { background: rgba(255,255,255,.07); border-color: rgba(255,255,255,.28); transform: translateY(-2px); }
  .btn:hover .btn-icon { transform: translateX(4px); }
  .btn:active { transform: translateY(0) scale(.98); }
}
.btn:active { transform: scale(.98); }

/* ---------- Hero ---------- */
.hero {
  position: relative; min-height: 100vh; min-height: 100svh; display: flex; align-items: center;
  padding: calc(var(--header-h) + 40px) 0 80px; overflow: hidden; isolation: isolate;
}
.hero-bg { position: absolute; inset: 0; z-index: -1; pointer-events: none; }
.hero-grid-lines {
  position: absolute; inset: 0;
  background-image:
    linear-gradient(rgba(96,165,250,.06) 1px, transparent 1px),
    linear-gradient(90deg, rgba(96,165,250,.06) 1px, transparent 1px);
  background-size: 64px 64px;
  mask-image: radial-gradient(ellipse 70% 60% at 60% 40%, #000 30%, transparent 75%);
  -webkit-mask-image: radial-gradient(ellipse 70% 60% at 60% 40%, #000 30%, transparent 75%);
}
.hero-orb {
  position: absolute; border-radius: 50%; filter: blur(90px); opacity: .55;
  will-change: transform;
  animation: float 16s ease-in-out infinite;
}
.orb-a { width: 520px; height: 520px; top: -160px; right: -120px; background: radial-gradient(circle, rgba(59,130,246,.55), transparent 70%); }
.orb-b { width: 460px; height: 460px; bottom: -180px; left: -140px; background: radial-gradient(circle, rgba(139,92,246,.4), transparent 70%); animation-delay: -6s; }
@keyframes float {
  0%, 100% { transform: translate3d(0,0,0); }
  50% { transform: translate3d(30px,-24px,0); }
}
.hero-circuit { position: absolute; inset: 0; width: 100%; height: 100%; opacity: .5; }
.circuit-path {
  fill: none; stroke: rgba(96,165,250,.35); stroke-width: 1.2;
  stroke-dasharray: 1400; stroke-dashoffset: 1400;
  animation: draw 4s var(--ease) .6s forwards;
  vector-effect: non-scaling-stroke;
}
.circuit-path-2 { animation-delay: 1.2s; stroke: rgba(34,211,238,.28); }
@keyframes draw { to { stroke-dashoffset: 0; } }

.hero-inner {
  display: grid; gap: 56px; align-items: center;
}
@media (min-width: 960px) {
  .hero-inner { grid-template-columns: 1.15fr .85fr; gap: 40px; }
}

.hero-copy { display: flex; flex-direction: column; gap: 26px; }
.status-dot {
  position: relative; width: 8px; height: 8px; border-radius: 50%; background: var(--cyan);
  box-shadow: 0 0 0 0 rgba(34,211,238,.6); animation: pulse 2.4s infinite;
}
@keyframes pulse {
  0% { box-shadow: 0 0 0 0 rgba(34,211,238,.55); }
  70% { box-shadow: 0 0 0 10px rgba(34,211,238,0); }
  100% { box-shadow: 0 0 0 0 rgba(34,211,238,0); }
}
.eyebrow.reveal::before { display: none; }
.eyebrow.reveal { gap: 12px; color: var(--text-2); text-transform: none; letter-spacing: .02em; font-family: var(--font-body); font-size: 15px; }

.hero-title {
  display: flex; flex-direction: column; font-family: var(--font-head); font-weight: 700;
  font-size: clamp(56px, 10vw, 128px); line-height: .95; letter-spacing: -.045em;
}
.split-line { display: block; overflow: hidden; padding-bottom: .06em; }
.word {
  display: inline-block; transform: translate3d(0, 110%, 0); opacity: 0;
  transition: transform 1.1s var(--ease) var(--d, 0s), opacity .8s var(--ease) var(--d, 0s);
}
.hero.is-ready .word { transform: none; opacity: 1; }

.hero-sub { color: var(--text-2); font-size: clamp(17px, 1.7vw, 19px); max-width: 52ch; }
.hero-actions { display: flex; flex-wrap: wrap; gap: 14px; }

.hero-tags { display: flex; flex-wrap: wrap; gap: 8px; }
.hero-tags li {
  font-family: var(--font-mono); font-size: 12px; color: var(--text-2);
  padding: 6px 12px; border-radius: 999px; border: 1px solid var(--line); background: rgba(255,255,255,.02);
}

.hero-visual { position: relative; display: flex; justify-content: center; align-items: center; min-height: 340px; }
.hero-symbol-wrap { position: relative; width: min(100%, 360px); transform-style: preserve-3d; }
.hero-symbol {
  width: 100%; height: auto;
  filter: drop-shadow(0 30px 60px rgba(59,130,246,.35)) drop-shadow(0 0 40px rgba(34,211,238,.25));
  animation: symbol-float 7s ease-in-out infinite;
}
@keyframes symbol-float {
  0%, 100% { transform: translateY(0) rotate(0); }
  50% { transform: translateY(-14px) rotate(.6deg); }
}
.symbol-ring {
  position: absolute; inset: -18%; border-radius: 50%; pointer-events: none;
  border: 1px dashed rgba(96,165,250,.25);
  animation: spin 60s linear infinite;
}
@keyframes spin { to { transform: rotate(360deg); } }

.floating-card {
  position: absolute; display: flex; align-items: center; gap: 10px; padding: 10px 14px;
  border-radius: 14px; background: rgba(14,20,32,.8); border: 1px solid var(--line-strong);
  backdrop-filter: blur(12px); box-shadow: 0 20px 40px -20px rgba(0,0,0,.7);
  font-size: 13px; color: var(--text); white-space: nowrap;
  animation: float-card 6s ease-in-out infinite;
}
.floating-card .material-symbols-outlined { color: var(--cyan); font-size: 20px; }
.fc-1 { top: 8%; left: -4%; }
.fc-2 { bottom: 10%; right: -2%; animation-delay: -3s; }
@keyframes float-card {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(-10px); }
}

.scroll-cue {
  position: absolute; left: 50%; bottom: 26px; transform: translateX(-50%);
  width: 44px; height: 44px; border-radius: 50%; display: inline-flex; align-items: center; justify-content: center;
  border: 1px solid var(--line-strong); color: var(--text-2); animation: bob 2.2s ease-in-out infinite;
}
@keyframes bob { 0%,100% { transform: translate(-50%,0);} 50% { transform: translate(-50%,6px);} }

/* ---------- Reveal (IntersectionObserver) ---------- */
.reveal {
  opacity: 0; translate: 0 28px;
  transition: opacity .9s var(--ease) var(--d, 0s), translate .9s var(--ease) var(--d, 0s);
}
.reveal.is-visible { opacity: 1; translate: 0 0; }

/* ---------- Seções ---------- */
.section { position: relative; padding: clamp(96px, 12vw, 150px) 0; }
.section-alt { background: linear-gradient(180deg, transparent, var(--bg-2) 18%, var(--bg-2) 82%, transparent); }
.section-head { display: flex; flex-direction: column; gap: 18px; max-width: 760px; margin-bottom: clamp(48px, 6vw, 72px); }

/* ---------- Projetos ---------- */
.project-grid { display: grid; gap: 28px; }
@media (min-width: 900px) { .project-grid { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 1240px) { .project-grid { grid-template-columns: repeat(3, 1fr); } }

.project-card {
  position: relative; display: flex; flex-direction: column; border-radius: var(--radius-lg);
  background: linear-gradient(180deg, var(--surface-2), var(--surface));
  border: 1px solid var(--line); box-shadow: var(--shadow-card); overflow: hidden;
  transform-style: preserve-3d;
  transition: transform .6s var(--ease), box-shadow .6s var(--ease), border-color .4s;
  --mx: 50%; --my: 0%;
}
.project-card::before {
  content: ""; position: absolute; inset: 0; border-radius: inherit; padding: 1px; pointer-events: none; z-index: 3;
  background: radial-gradient(360px circle at var(--mx) var(--my), rgba(96,165,250,.9), rgba(34,211,238,.25) 40%, transparent 70%);
  -webkit-mask: linear-gradient(#000 0 0) content-box, linear-gradient(#000 0 0);
  -webkit-mask-composite: xor; mask-composite: exclude;
  opacity: 0; transition: opacity .5s;
}
.project-card::after {
  content: ""; position: absolute; inset: 0; pointer-events: none; z-index: 2; border-radius: inherit;
  background: radial-gradient(520px circle at var(--mx) var(--my), rgba(255,255,255,.07), transparent 45%);
  opacity: 0; transition: opacity .5s;
}
@media (hover: hover) {
  .project-card:hover { box-shadow: 0 2px 0 rgba(255,255,255,.03) inset, 0 40px 80px -30px rgba(37,99,235,.45); border-color: rgba(96,165,250,.25); }
  .project-card:hover::before, .project-card:hover::after { opacity: 1; }
  .project-card:hover .browser-view img { transform: scale(1.06); }
  .project-card:hover .project-title { color: #fff; }
}

.project-media { position: relative; padding: 20px 20px 0; }
.browser-frame {
  border-radius: 14px 14px 0 0; overflow: hidden; background: #0b0f18; border: 1px solid var(--line-strong); border-bottom: 0;
  box-shadow: 0 -10px 40px -18px rgba(59,130,246,.35);
}
.browser-bar { display: flex; align-items: center; gap: 6px; padding: 10px 12px; background: #111827; border-bottom: 1px solid var(--line); }
.browser-bar i { width: 9px; height: 9px; border-radius: 50%; background: #2a3344; }
.browser-bar i:nth-child(1) { background: #ff5f57; opacity: .8; }
.browser-bar i:nth-child(2) { background: #febc2e; opacity: .8; }
.browser-bar i:nth-child(3) { background: #28c840; opacity: .8; }
.browser-url {
  margin-left: 10px; flex: 1; min-width: 0; padding: 4px 10px; border-radius: 7px; background: rgba(255,255,255,.04);
  font-family: var(--font-mono); font-size: 11px; color: var(--muted); overflow: hidden; text-overflow: ellipsis; white-space: nowrap;
}
.browser-view { position: relative; aspect-ratio: 16 / 10; overflow: hidden; background: var(--bg-2); }
.browser-view img {
  width: 100%; height: 100%; object-fit: cover; object-position: top;
  transition: transform 1.2s var(--ease);
}
/* fallback quando a prévia ainda não existe no repositório */
.browser-view.is-fallback img { display: none; }
.preview-fallback {
  position: absolute; inset: 0; display: none; flex-direction: column; align-items: center; justify-content: center; gap: 10px;
  background:
    radial-gradient(circle at 30% 20%, rgba(59,130,246,.25), transparent 60%),
    repeating-linear-gradient(0deg, rgba(255,255,255,.03) 0 1px, transparent 1px 22px);
  color: var(--text-2); text-align: center; padding: 20px;
}
.browser-view.is-fallback .preview-fallback { display: flex; }
.preview-fallback .material-symbols-outlined { font-size: 40px; color: var(--blue-2); }
.preview-fallback strong { font-family: var(--font-head); font-size: 18px; color: var(--text); }
.preview-fallback span:last-child { font-size: 13px; color: var(--muted); }

.project-body { display: flex; flex-direction: column; gap: 14px; padding: 24px 26px 26px; flex: 1; position: relative; z-index: 1; }
.project-title-row { display: flex; align-items: baseline; gap: 14px; }
.project-index { font-family: var(--font-mono); font-size: 12px; color: var(--cyan); letter-spacing: .08em; }
.project-title { font-family: var(--font-head); font-weight: 700; font-size: 24px; letter-spacing: -.01em; color: var(--text); transition: color .4s; }
.project-desc { color: var(--text-2); font-size: 15px; line-height: 1.7; }
.project-note { font-size: 13px; color: var(--muted); }

.chips { display: flex; flex-wrap: wrap; gap: 6px; }
.chips li {
  font-family: var(--font-mono); font-size: 11.5px; padding: 5px 10px; border-radius: 8px;
  color: var(--text-2); background: rgba(255,255,255,.04); border: 1px solid var(--line);
  transition: color .3s, border-color .3s, transform .3s var(--ease);
}
@media (hover: hover) {
  .project-card:hover .chips li { border-color: rgba(96,165,250,.22); }
  .chips li:hover { color: var(--text); transform: translateY(-2px); }
}

.project-actions { display: flex; flex-wrap: wrap; gap: 10px; margin-top: auto; padding-top: 10px; }

/* ---------- Serviços ---------- */
.service-grid { display: grid; gap: 20px; }
@media (min-width: 720px) { .service-grid { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 1100px) { .service-grid { grid-template-columns: repeat(3, 1fr); } }

.service-card {
  position: relative; padding: 32px 28px; border-radius: var(--radius-lg); overflow: hidden;
  background: linear-gradient(180deg, rgba(19,27,42,.7), rgba(14,20,32,.7));
  border: 1px solid var(--line); transform-style: preserve-3d;
  transition: transform .6s var(--ease), border-color .4s, box-shadow .6s var(--ease);
  --mx: 50%; --my: 0%;
}
.service-card::after {
  content: ""; position: absolute; inset: 0; pointer-events: none; border-radius: inherit;
  background: radial-gradient(420px circle at var(--mx) var(--my), rgba(59,130,246,.14), transparent 50%);
  opacity: 0; transition: opacity .5s;
}
.service-icon {
  width: 52px; height: 52px; display: inline-flex; align-items: center; justify-content: center; border-radius: 14px;
  color: var(--blue-2); background: rgba(59,130,246,.1); border: 1px solid rgba(96,165,250,.2); margin-bottom: 22px; font-size: 24px;
  transition: transform .5s var(--ease), color .3s, background .3s;
}
.service-card h3 { font-family: var(--font-head); font-size: 20px; font-weight: 600; margin-bottom: 10px; color: var(--text); }
.service-card p { color: var(--text-2); font-size: 15px; }
@media (hover: hover) {
  .service-card:hover { border-color: rgba(96,165,250,.28); box-shadow: 0 30px 60px -30px rgba(37,99,235,.4); }
  .service-card:hover::after { opacity: 1; }
  .service-card:hover .service-icon { transform: translateY(-3px) rotate(-4deg); color: var(--cyan); background: rgba(34,211,238,.1); }
}

/* ---------- Sobre ---------- */
.about-grid { display: grid; gap: 40px; }
@media (min-width: 900px) { .about-grid { grid-template-columns: .9fr 1.1fr; gap: 80px; align-items: start; } }
.about-grid header { display: flex; flex-direction: column; gap: 18px; }
.about-text { display: flex; flex-direction: column; gap: 18px; color: var(--text-2); font-size: 17px; }
.about-text p:first-child { color: var(--text); font-size: 19px; line-height: 1.6; }

/* ---------- Contato ---------- */
.section-contact { overflow: hidden; border-top: 1px solid var(--line); text-align: center; }
.contact-glow {
  position: absolute; left: 50%; top: 40%; width: 900px; height: 500px; transform: translate(-50%, -50%);
  background: radial-gradient(closest-side, rgba(59,130,246,.22), transparent 70%); pointer-events: none;
  filter: blur(40px);
}
.contact-inner { position: relative; display: flex; flex-direction: column; align-items: center; gap: 22px; }
.contact-title { max-width: 18ch; margin-inline: auto; }
.contact-cta { display: flex; flex-direction: column; align-items: center; gap: 14px; margin-top: 14px; }
.cta-hint { font-family: var(--font-mono); font-size: 13px; color: var(--muted); }

.contact-list {
  display: grid; gap: 12px; width: 100%; max-width: 760px; margin-top: 44px; text-align: left;
}
@media (min-width: 720px) { .contact-list { grid-template-columns: 1fr; } }
.contact-item {
  width: 100%; display: flex; align-items: center; gap: 16px; padding: 18px 22px; border-radius: 16px;
  background: rgba(255,255,255,.025); border: 1px solid var(--line); cursor: pointer; text-align: left;
  transition: background .3s, border-color .3s, transform .4s var(--ease);
}
.contact-item > .material-symbols-outlined:first-child { color: var(--blue-2); font-size: 24px; }
.ci-text { display: flex; flex-direction: column; min-width: 0; flex: 1; }
.ci-label { font-family: var(--font-mono); font-size: 11px; letter-spacing: .14em; text-transform: uppercase; color: var(--muted); }
.ci-value { font-size: 15px; color: var(--text); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.ci-status { font-family: var(--font-mono); font-size: 12px; color: var(--muted); }
.ci-arrow { color: var(--muted); transition: transform .4s var(--ease), color .3s; }
@media (hover: hover) {
  .contact-item:hover { background: rgba(255,255,255,.05); border-color: rgba(96,165,250,.3); transform: translateY(-2px); }
  .contact-item:hover .ci-arrow { color: var(--cyan); transform: translate(3px,-3px); }
}
.contact-item.is-copied .ci-status { color: var(--wa); }

/* ---------- Footer ---------- */
.site-footer { padding: 36px 0 110px; border-top: 1px solid var(--line); background: var(--bg); }
.footer-inner { display: flex; flex-direction: column; gap: 20px; align-items: center; text-align: center; }
@media (min-width: 720px) { .footer-inner { flex-direction: row; justify-content: space-between; text-align: left; } }
.footer-copy { font-size: 14px; color: var(--muted); }

/* ---------- WhatsApp flutuante ---------- */
.whatsapp-fab {
  position: fixed; right: max(18px, env(safe-area-inset-right)); bottom: max(18px, env(safe-area-inset-bottom));
  z-index: 150; display: inline-flex; align-items: center; gap: 0;
  height: 56px; min-width: 56px; padding: 0 16px; border-radius: 999px;
  background: var(--wa); color: #fff; box-shadow: 0 14px 34px -10px rgba(37,211,102,.6), 0 2px 6px rgba(0,0,0,.35);
  transition: transform .4s var(--ease), box-shadow .4s var(--ease), gap .4s var(--ease);
}
.wa-icon { width: 28px; height: 28px; flex-shrink: 0; }
.fab-label {
  max-width: 0; overflow: hidden; white-space: nowrap; font-family: var(--font-head); font-weight: 600; font-size: 14px;
  opacity: 0; transition: max-width .5s var(--ease), opacity .3s;
}
.whatsapp-fab::before {
  content: ""; position: absolute; inset: -6px; border-radius: inherit; border: 2px solid rgba(37,211,102,.45);
  animation: wa-ping 2.6s ease-out infinite; pointer-events: none;
}
@keyframes wa-ping { 0% { transform: scale(.9); opacity: .9; } 100% { transform: scale(1.35); opacity: 0; } }
@media (hover: hover) {
  .whatsapp-fab:hover { transform: translateY(-3px) scale(1.03); box-shadow: 0 20px 44px -12px rgba(37,211,102,.75); gap: 10px; }
  .whatsapp-fab:hover .fab-label { max-width: 120px; opacity: 1; }
}
.whatsapp-fab:focus-visible { outline: 3px solid #fff; outline-offset: 4px; }

/* ---------- Cursor glow (apenas ponteiro fino) ---------- */
.cursor-glow {
  position: fixed; left: 0; top: 0; width: 420px; height: 420px; margin: -210px 0 0 -210px;
  border-radius: 50%; pointer-events: none; z-index: 0; opacity: 0;
  background: radial-gradient(closest-side, rgba(59,130,246,.12), transparent 70%);
  transition: opacity .6s;
}
body.has-cursor .cursor-glow { opacity: 1; }

/* ---------- Magnetic (ajustado via JS) ---------- */
.magnetic { will-change: transform; }

/* ---------- Responsividade ---------- */
@media (max-width: 1023px) {
  .nav { display: none !important; }
}
@media (min-width: 1024px) {
  .nav { display: inline-flex; }
  .menu-toggle { display: none; }
  .mobile-nav { display: none !important; }
}
@media (max-width: 719px) {
  :root { --header-h: 66px; }
  .header-actions .btn { display: none; }
  .brand-sub { font-size: 9px; letter-spacing: .22em; }
  .hero { min-height: auto; padding-bottom: 110px; }
  .hero-visual { min-height: 260px; }
  .hero-symbol-wrap { width: min(70%, 260px); }
  .fc-1 { left: 0; top: 0; } .fc-2 { right: 0; bottom: 0; }
  .floating-card { font-size: 12px; padding: 8px 11px; }
  .scroll-cue { display: none; }
  .project-body { padding: 22px 20px 24px; }
  .whatsapp-fab { right: 16px; bottom: 16px; }
}

/* ---------- Dispositivos sem hover: sem tilt e sem spotlight ---------- */
@media (hover: none) {
  .cursor-glow { display: none; }
  .project-card::before, .project-card::after, .service-card::after { display: none; }
}

/* ---------- Movimento reduzido ---------- */
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after {
    animation-duration: .001ms !important; animation-iteration-count: 1 !important;
    transition-duration: .001ms !important; scroll-behavior: auto !important;
  }
  .reveal { opacity: 1; translate: none; }
  .word { transform: none; opacity: 1; }
  .circuit-path { stroke-dashoffset: 0; }
  .whatsapp-fab::before { display: none; }
  .cursor-glow { display: none; }
}
