/* ==========================================================================
   CECHINATTO — main.css
   Mobile first · Tema escuro tecnológico · Sem dependências
   ========================================================================== */

@font-face {
  font-family: "Poppins";
  src: url("../fonts/poppins-medium.woff") format("woff");
  font-weight: 500;
  font-style: normal;
  font-display: swap;
}
@font-face {
  font-family: "Poppins";
  src: url("../fonts/poppins-light.woff") format("woff");
  font-weight: 300;
  font-style: normal;
  font-display: swap;
}

:root {
  --bg: #07090c;
  --bg-1: #0a0d12;
  --bg-2: #0e131a;
  --surface: rgba(255, 255, 255, .035);
  --surface-2: rgba(255, 255, 255, .06);
  --line: rgba(255, 255, 255, .08);
  --line-2: rgba(255, 255, 255, .14);
  --text: #eef2f6;
  --text-2: #b9c3cd;
  --muted: #8b96a2;
  --accent: #3dd6f0;
  --accent-2: #3b82f6;
  --accent-ink: #04141a;
  --accent-soft: rgba(61, 214, 240, .12);
  --it-green: #0b9a4f;
  --it-white: #f1f2ee;
  --it-red: #d33a44;
  --grass: #7fd6a2;
  --warm: #d9b48f;
  --danger: #ff8a8a;
  --success: #6ee7b7;

  --font-display: "Poppins", ui-sans-serif, system-ui, -apple-system, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  --font-body: ui-sans-serif, system-ui, -apple-system, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  --font-mono: ui-monospace, "SFMono-Regular", "Cascadia Code", Consolas, "Roboto Mono", Menlo, monospace;

  --container: 1200px;
  --gutter: clamp(20px, 5vw, 40px);
  --header-h: 64px;
  --radius: 20px;
  --radius-sm: 12px;
  --ease: cubic-bezier(.2, .7, .2, 1);
  --section-y: clamp(80px, 10vw, 136px);
  color-scheme: dark;
}

/* ---------- Reset ---------- */
*, *::before, *::after { box-sizing: border-box; }
html {
  -webkit-text-size-adjust: 100%;
  text-size-adjust: 100%;
  scroll-behavior: smooth;
  scroll-padding-top: calc(var(--header-h) + 8px);
  background: var(--bg);
}
body {
  margin: 0;
  min-height: 100vh;
  background: var(--bg);
  color: var(--text);
  font-family: var(--font-body);
  font-size: 1rem;
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  text-rendering: optimizeLegibility;
  overflow-x: hidden;
}
body.menu-open { overflow: hidden; }
img, svg, canvas { display: block; max-width: 100%; }
img { height: auto; }
h1, h2, h3, h4, p, ul, ol, figure, blockquote { margin: 0; }
:where(ul[role="list"], ol[role="list"]) { list-style: none; padding: 0; }
a { color: inherit; text-decoration: none; }
button, input, textarea { font: inherit; color: inherit; }
button { cursor: pointer; background: none; border: 0; padding: 0; }
[hidden] { display: none !important; }
html:has(dialog[open]) { overflow: hidden; }
::selection { background: rgba(61, 214, 240, .3); color: #fff; }

.sprite { position: absolute; width: 0; height: 0; overflow: hidden; }
.sr-only {
  position: absolute !important; width: 1px; height: 1px; padding: 0; margin: -1px;
  overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0;
}
.icon { width: 1.15em; height: 1.15em; flex: none; fill: none; stroke: currentColor; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; }
.icon-lg { width: 28px; height: 28px; flex: none; fill: none; stroke: currentColor; stroke-width: 1.4; stroke-linecap: round; stroke-linejoin: round; }

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

.skip-link {
  position: fixed; left: 16px; top: 12px; z-index: 200;
  padding: 10px 16px; border-radius: 10px;
  background: var(--accent); color: var(--accent-ink); font-weight: 600;
  transform: translateY(-160%); transition: transform .2s var(--ease);
}
.skip-link:focus { transform: none; }

.container { width: 100%; max-width: var(--container); margin-inline: auto; padding-inline: var(--gutter); }

/* ---------- Tipografia ---------- */
.eyebrow {
  display: inline-flex; align-items: center; gap: 12px;
  font-family: var(--font-mono); font-size: .75rem; letter-spacing: .18em; text-transform: uppercase;
  color: var(--accent);
}
.eyebrow-num {
  display: inline-grid; place-items: center; min-width: 34px; height: 22px; padding: 0 6px;
  border: 1px solid rgba(61, 214, 240, .35); border-radius: 999px;
  font-size: .68rem; letter-spacing: .08em; color: var(--text);
}
.section-title {
  font-family: var(--font-display); font-weight: 500;
  font-size: clamp(2.5rem, 1.4rem + 5vw, 5rem);
  line-height: 1.02; letter-spacing: -.03em;
  margin-top: 14px;
  background: linear-gradient(180deg, #fff 30%, #aeb9c4 110%);
  -webkit-background-clip: text; background-clip: text; color: transparent;
}
.section-title--sm { font-size: clamp(2.1rem, 1.3rem + 3.6vw, 3.75rem); }
.section-lead {
  margin-top: 20px; max-width: 34rem;
  font-size: clamp(1.02rem, .95rem + .4vw, 1.2rem); color: var(--text-2); line-height: 1.6;
}
.section-head--center { text-align: center; display: flex; flex-direction: column; align-items: center; }
.section-head--center .section-lead { margin-inline: auto; }

.tag {
  display: inline-flex; align-items: center; gap: 8px; height: 26px; padding: 0 12px;
  border-radius: 999px; border: 1px solid rgba(61, 214, 240, .3); background: var(--accent-soft);
  font-family: var(--font-mono); font-size: .68rem; letter-spacing: .14em; text-transform: uppercase; color: var(--accent);
  white-space: nowrap;
}
.tag::before { content: ""; width: 6px; height: 6px; border-radius: 50%; background: currentColor; box-shadow: 0 0 10px currentColor; }
.tag--warm { color: var(--warm); border-color: rgba(217, 180, 143, .3); background: rgba(217, 180, 143, .08); }

/* ---------- Botões ---------- */
.btn {
  position: relative; isolation: isolate;
  display: inline-flex; align-items: center; justify-content: center; gap: 10px;
  min-height: 50px; padding: 0 24px; border-radius: 999px;
  font-family: var(--font-display); font-weight: 500; font-size: .98rem; letter-spacing: .01em; white-space: nowrap;
  transition: transform .25s var(--ease), box-shadow .3s var(--ease), background-color .3s, border-color .3s, color .3s;
  -webkit-tap-highlight-color: transparent;
}
.btn .icon { transition: transform .3s var(--ease); }
.btn:hover .icon { transform: translateX(3px); }
.btn-primary {
  color: var(--accent-ink);
  background: linear-gradient(120deg, #6fe6f7 0%, var(--accent) 45%, #58a8ff 100%);
  box-shadow: 0 0 0 1px rgba(61, 214, 240, .5), 0 10px 30px -10px rgba(61, 214, 240, .55);
}
.btn-primary:hover { transform: translateY(-2px); box-shadow: 0 0 0 1px rgba(61, 214, 240, .7), 0 16px 40px -10px rgba(61, 214, 240, .75); }
.btn-primary:active { transform: translateY(0); }
.btn-ghost {
  color: var(--text); background: rgba(255, 255, 255, .04);
  border: 1px solid var(--line-2);
  -webkit-backdrop-filter: blur(10px); backdrop-filter: blur(10px);
}
.btn-ghost:hover { border-color: rgba(61, 214, 240, .5); background: rgba(61, 214, 240, .07); box-shadow: 0 0 24px -6px rgba(61, 214, 240, .45); }

.link-arrow {
  display: inline-flex; align-items: center; gap: 10px; min-height: 44px;
  font-family: var(--font-display); font-weight: 500; color: var(--text);
  border-bottom: 1px solid var(--line-2); transition: color .25s, border-color .25s;
}
.link-arrow:hover { color: var(--accent); border-color: var(--accent); }
.link-arrow .icon { transition: transform .3s var(--ease); }
.link-arrow:hover .icon { transform: translateX(4px); }

/* ---------- Header / Menu ---------- */
.site-header {
  position: fixed; inset: 0 0 auto; z-index: 100; height: var(--header-h);
  transition: background-color .35s, border-color .35s, backdrop-filter .35s;
  border-bottom: 1px solid transparent;
}
.site-header.is-scrolled {
  background: rgba(7, 9, 12, .72);
  -webkit-backdrop-filter: saturate(160%) blur(16px); backdrop-filter: saturate(160%) blur(16px);
  border-bottom-color: var(--line);
}
.header-inner { height: 100%; display: flex; align-items: center; justify-content: space-between; gap: 24px; }
.brand { position: relative; z-index: 2; display: inline-flex; align-items: center; min-height: 44px; color: var(--text); }
.brand .wordmark { width: 138px; height: auto; fill: currentColor; }
.wordmark .elo { fill: var(--accent); }

.nav-toggle {
  position: relative; z-index: 2; width: 44px; height: 44px; border-radius: 12px;
  display: inline-grid; place-content: center; gap: 6px;
  border: 1px solid var(--line-2); background: rgba(255, 255, 255, .03);
}
.nav-toggle-bar { display: block; width: 18px; height: 1.5px; background: var(--text); border-radius: 2px; transition: transform .35s var(--ease); }
.menu-open .nav-toggle-bar:first-child { transform: translateY(3.75px) rotate(45deg); }
.menu-open .nav-toggle-bar:last-child { transform: translateY(-3.75px) rotate(-45deg); }

.nav {
  position: fixed; inset: 0; z-index: 1;
  display: flex; flex-direction: column; justify-content: center;
  padding: calc(var(--header-h) + 24px) var(--gutter) 40px;
  background: rgba(7, 9, 12, .96);
  -webkit-backdrop-filter: blur(20px); backdrop-filter: blur(20px);
  opacity: 0; visibility: hidden; transition: opacity .35s var(--ease), visibility 0s linear .35s;
}
.menu-open .nav { opacity: 1; visibility: visible; transition: opacity .35s var(--ease); }
.nav-list { list-style: none; margin: 0; padding: 0; display: grid; gap: 4px; }
.nav-list a {
  display: flex; align-items: center; min-height: 56px;
  font-family: var(--font-display); font-weight: 500; font-size: clamp(1.9rem, 8vw, 2.6rem); letter-spacing: -.02em;
  color: var(--text-2); transition: color .25s;
  transform: translateY(12px); opacity: 0;
}
.menu-open .nav-list a { transform: none; opacity: 1; transition: transform .5s var(--ease), opacity .5s var(--ease), color .25s; }
.menu-open .nav-list li:nth-child(2) a { transition-delay: .04s; }
.menu-open .nav-list li:nth-child(3) a { transition-delay: .08s; }
.menu-open .nav-list li:nth-child(4) a { transition-delay: .12s; }
.menu-open .nav-list li:nth-child(5) a { transition-delay: .16s; }
.nav-list a:hover, .nav-list a[aria-current="true"] { color: var(--text); }
.nav-list a[aria-current="true"]::after { content: ""; width: 8px; height: 8px; margin-left: 14px; border-radius: 50%; background: var(--accent); box-shadow: 0 0 12px var(--accent); }
.nav-indicator { display: none; }
.nav-sign { margin-top: 40px; font-family: var(--font-mono); font-size: .75rem; letter-spacing: .2em; text-transform: uppercase; color: var(--muted); }

@media (min-width: 900px) {
  :root { --header-h: 76px; }
  .brand .wordmark { width: 158px; }
  .nav-toggle { display: none; }
  .nav {
    position: relative; inset: auto; padding: 0; background: none; opacity: 1; visibility: visible;
    -webkit-backdrop-filter: none; backdrop-filter: none;
  }
  .nav-list { display: flex; gap: 4px; padding: 5px; border-radius: 999px; border: 1px solid var(--line); background: rgba(255, 255, 255, .025); }
  .site-header.is-scrolled .nav-list { background: rgba(255, 255, 255, .035); }
  .nav-list a {
    position: relative; z-index: 1; min-height: 38px; padding: 0 16px; border-radius: 999px;
    font-size: .9rem; letter-spacing: .01em; transform: none; opacity: 1;
  }
  .nav-list a[aria-current="true"]::after { display: none; }
  .nav-indicator {
    display: block; position: absolute; top: 5px; left: 0; height: 38px; width: 0; border-radius: 999px;
    background: rgba(61, 214, 240, .1); border: 1px solid rgba(61, 214, 240, .28);
    box-shadow: 0 0 20px -6px rgba(61, 214, 240, .5) inset;
    opacity: 0; pointer-events: none;
    transition: transform .45s var(--ease), width .45s var(--ease), opacity .3s;
  }
  .nav-indicator.is-ready { opacity: 1; }
  .nav-sign { display: none; }
}

/* ---------- Hero ---------- */
.hero {
  position: relative; isolation: isolate; overflow: hidden;
  min-height: 100vh; min-height: 100svh;
  display: flex; flex-direction: column; justify-content: center;
  padding-top: calc(var(--header-h) + 32px); padding-bottom: 28px;
}
.hero-bg { position: absolute; inset: 0; z-index: -1; pointer-events: none; }
.hero-grid {
  position: absolute; inset: -1px;
  background-image:
    linear-gradient(to right, rgba(255, 255, 255, .045) 1px, transparent 1px),
    linear-gradient(to bottom, rgba(255, 255, 255, .045) 1px, transparent 1px);
  background-size: 56px 56px;
  -webkit-mask-image: radial-gradient(ellipse 80% 70% at 50% 40%, #000 20%, transparent 75%);
  mask-image: radial-gradient(ellipse 80% 70% at 50% 40%, #000 20%, transparent 75%);
}
.hero-canvas { position: absolute; inset: 0; width: 100%; height: 100%; opacity: 0; transition: opacity 1.4s ease; }
.hero-canvas.is-on { opacity: 1; }
.hero-glow {
  position: absolute; inset: 0;
  background:
    linear-gradient(180deg, transparent 62%, var(--bg) 100%),
    radial-gradient(ellipse 60% 45% at 50% 38%, rgba(61, 214, 240, .13), transparent 70%),
    radial-gradient(ellipse 40% 35% at 80% 80%, rgba(59, 130, 246, .08), transparent 70%);
}
.hero-spot {
  position: absolute; width: 520px; height: 520px; left: 0; top: 0; border-radius: 50%;
  background: radial-gradient(circle, rgba(61, 214, 240, .10), transparent 65%);
  transform: translate3d(var(--sx, -999px), var(--sy, -999px), 0) translate(-50%, -50%);
  opacity: 0; transition: opacity .6s;
}
.hero-spot.is-on { opacity: 1; }

.hero-content { display: flex; flex-direction: column; align-items: center; text-align: center; }
.hero-kicker {
  display: inline-flex; align-items: center; gap: 10px; margin-bottom: 28px;
  padding: 6px 14px 6px 10px; border-radius: 999px; border: 1px solid var(--line-2); background: rgba(255, 255, 255, .03);
  font-family: var(--font-mono); font-size: .72rem; letter-spacing: .12em; color: var(--text-2);
  -webkit-backdrop-filter: blur(8px); backdrop-filter: blur(8px);
}
.pulse { position: relative; width: 8px; height: 8px; border-radius: 50%; background: var(--accent); }
.pulse::after { content: ""; position: absolute; inset: -4px; border-radius: 50%; border: 1px solid var(--accent); animation: pulse 2.4s ease-out infinite; }
@keyframes pulse { from { transform: scale(.6); opacity: .9; } to { transform: scale(2.1); opacity: 0; } }

.hero-title { width: min(100%, 980px); }
@media (min-width: 1600px) {
  :root { --container: 1320px; }
  .hero-title { width: min(100%, 1120px); }
}
.hero-title .wordmark { width: 100%; height: auto; fill: var(--text); overflow: visible; filter: drop-shadow(0 0 40px rgba(61, 214, 240, .12)); }
.hero-tagline {
  display: flex; align-items: center; justify-content: center; flex-wrap: wrap; gap: 10px 14px;
  margin-top: clamp(20px, 3.4vw, 34px);
  font-family: var(--font-mono); font-size: clamp(.72rem, .6rem + .5vw, .9rem); letter-spacing: .32em; text-transform: uppercase; color: var(--text-2);
}
.hero-tagline span:not(.sep) { padding-left: .32em; }
.hero-tagline .sep { width: 5px; height: 5px; border-radius: 50%; background: var(--accent); box-shadow: 0 0 10px var(--accent); }
.hero-lead {
  margin-top: clamp(22px, 3vw, 30px); max-width: 30rem;
  font-family: var(--font-display); font-weight: 300; font-size: clamp(1.1rem, .95rem + .8vw, 1.45rem); line-height: 1.5; color: var(--text-2);
}
.hero-actions { display: flex; flex-direction: column; gap: 12px; width: 100%; max-width: 360px; margin-top: 34px; }
.hero-actions .btn { width: 100%; }

.hero-pillars-wrap { margin-top: clamp(40px, 7vh, 72px); }
.hero-pillars { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(3, 1fr); border-top: 1px solid var(--line); }
.hero-pillars a {
  display: flex; flex-direction: column; align-items: center; gap: 2px; padding: 18px 6px 4px;
  text-align: center; transition: color .25s;
}
.hero-pillars .num { font-family: var(--font-mono); font-size: .68rem; color: var(--accent); letter-spacing: .12em; }
.hero-pillars .pillar-name { font-family: var(--font-display); font-weight: 500; font-size: .95rem; }
.hero-pillars .pillar-desc { display: none; font-size: .85rem; color: var(--muted); }
.hero-pillars a:hover .pillar-name { color: var(--accent); }

@media (min-width: 560px) {
  .hero-actions { flex-direction: row; justify-content: center; width: auto; max-width: none; }
  .hero-actions .btn { width: auto; }
}
@media (min-width: 900px) {
  .hero-pillars a { align-items: flex-start; text-align: left; padding: 22px 24px 4px 0; gap: 4px; }
  .hero-pillars li + li a { padding-left: 24px; border-left: 1px solid var(--line); }
  .hero-pillars .pillar-name { font-size: 1.1rem; }
  .hero-pillars .pillar-desc { display: block; }
}

/* Intro (entrada) — rápida e elegante */
@media (prefers-reduced-motion: no-preference) {
  .wm-letters path { opacity: 0; transform: translateY(18%); transform-box: fill-box; animation: letterIn .7s var(--ease) forwards; }
  .wm-letters path:nth-child(1) { animation-delay: 0.03s; }
  .wm-letters path:nth-child(2) { animation-delay: 0.07s; }
  .wm-letters path:nth-child(3) { animation-delay: 0.10s; }
  .wm-letters path:nth-child(4) { animation-delay: 0.14s; }
  .wm-letters path:nth-child(5) { animation-delay: 0.17s; }
  .wm-letters path:nth-child(6) { animation-delay: 0.21s; }
  .wm-letters path:nth-child(7) { animation-delay: 0.25s; }
  .wm-letters path:nth-child(8) { animation-delay: 0.28s; }
  .wm-letters path:nth-child(9) { animation-delay: 0.32s; }
  .wm-letters path:nth-child(10) { animation-delay: 0.35s; }
  .hero-title .elo { transform: scaleX(0); transform-box: fill-box; transform-origin: left center; animation: eloIn .45s var(--ease) .45s forwards; }
  .hero-tagline span { opacity: 0; filter: blur(6px); animation: fadeBlur .7s var(--ease) forwards; }
  .hero-tagline span:nth-child(1) { animation-delay: 0.50s; }
  .hero-tagline span:nth-child(2) { animation-delay: 0.56s; }
  .hero-tagline span:nth-child(3) { animation-delay: 0.60s; }
  .hero-tagline span:nth-child(4) { animation-delay: 0.66s; }
  .hero-tagline span:nth-child(5) { animation-delay: 0.70s; }
  .hero-kicker, .hero-actions, .hero-pillars-wrap { opacity: 0; animation: rise .8s var(--ease) forwards; }
  /* A frase principal já é pintada no primeiro quadro (desfocada) e entra em foco: bom para LCP */
  .hero-lead { animation: focusIn 1s var(--ease) .12s both; }
  .hero-kicker { animation-delay: .1s; }
    .hero-actions { animation-delay: .65s; }
  .hero-pillars-wrap { animation-delay: .8s; }
}
@keyframes letterIn { to { opacity: 1; transform: none; } }
@keyframes eloIn { to { transform: scaleX(1); } }
@keyframes fadeBlur { to { opacity: 1; filter: blur(0); } }
@keyframes focusIn { from { opacity: .4; filter: blur(8px); transform: translateY(8px); } to { opacity: 1; filter: blur(0); transform: none; } }
@keyframes rise { from { opacity: 0; transform: translateY(14px); } to { opacity: 1; transform: none; } }

/* ---------- Seções ---------- */
.section { position: relative; isolation: isolate; padding-block: var(--section-y); }

/* Reveal on scroll (apenas quando há JavaScript) */
@media (scripting: enabled) and (prefers-reduced-motion: no-preference) {
  .reveal { opacity: 0; transform: translateY(24px); transition: opacity .8s var(--ease), transform .8s var(--ease); transition-delay: var(--d, 0s); }
  .reveal.is-in { opacity: 1; transform: none; }
}

/* ---------- Tecnologia ---------- */
.tech { background: linear-gradient(180deg, var(--bg) 0%, var(--bg-1) 100%); }
.tech-bg {
  position: absolute; inset: 0; z-index: -1; pointer-events: none; opacity: .55;
  background:
    radial-gradient(ellipse 50% 40% at 85% 10%, rgba(61, 214, 240, .09), transparent 70%),
    url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='240' height='240' fill='none' stroke='%233dd6f0' stroke-opacity='.10'%3E%3Cpath d='M0 60h60l20 20h80M240 140h-50l-20-20H90M120 0v40l20 20M120 240v-50l-20-20'/%3E%3Ccircle cx='160' cy='80' r='3'/%3E%3Ccircle cx='90' cy='120' r='3'/%3E%3Ccircle cx='140' cy='60' r='2'/%3E%3Ccircle cx='100' cy='170' r='2'/%3E%3C/svg%3E");
  -webkit-mask-image: linear-gradient(180deg, transparent, #000 25%, #000 60%, transparent);
  mask-image: linear-gradient(180deg, transparent, #000 25%, #000 60%, transparent);
}
.tech-top { display: grid; gap: 48px; align-items: center; }

.console {
  position: relative; border-radius: var(--radius); overflow: hidden;
  background: linear-gradient(160deg, rgba(20, 28, 38, .75), rgba(10, 13, 18, .85));
  border: 1px solid var(--line-2);
  box-shadow: 0 30px 80px -30px rgba(0, 0, 0, .8), 0 0 0 1px rgba(61, 214, 240, .05) inset;
  -webkit-backdrop-filter: blur(14px); backdrop-filter: blur(14px);
}
.console::before {
  content: ""; position: absolute; inset: 0; pointer-events: none;
  background: linear-gradient(120deg, rgba(61, 214, 240, .08), transparent 40%);
}
.console-bar { display: flex; align-items: center; gap: 7px; padding: 14px 16px; border-bottom: 1px solid var(--line); }
.console-bar span { width: 10px; height: 10px; border-radius: 50%; background: rgba(255, 255, 255, .14); }
.console-bar em { margin-left: 10px; font-style: normal; font-family: var(--font-mono); font-size: .72rem; color: var(--muted); }
.console-code {
  margin: 0; padding: 20px 18px 12px; overflow-x: auto;
  font-family: var(--font-mono); font-size: clamp(.74rem, .68rem + .3vw, .88rem); line-height: 1.75; color: var(--text-2);
}
.c-k { color: #8fb4ff; } .c-v { color: var(--text); } .c-p { color: var(--accent); } .c-s { color: #a8e6c2; }
.caret { display: inline-block; width: 8px; height: 1.1em; margin-left: 4px; vertical-align: -3px; background: var(--accent); animation: blink 1.1s steps(1) infinite; }
@keyframes blink { 50% { opacity: 0; } }
.console-chart { width: 100%; height: 70px; }
.chart-area { fill: rgba(61, 214, 240, .07); }
.chart-line { fill: none; stroke: var(--accent); stroke-width: 1.6; vector-effect: non-scaling-stroke; stroke-dasharray: 520; stroke-dashoffset: 520; }
.console.is-in .chart-line, .no-reveal .chart-line { animation: draw 2.2s var(--ease) .3s forwards; }
@keyframes draw { to { stroke-dashoffset: 0; } }

.interest-grid { display: grid; grid-template-columns: 1fr; gap: 12px; margin-top: 56px; }
.interest {
  --mx: 50%; --my: 50%;
  position: relative; overflow: hidden;
  display: grid; grid-template-columns: auto 1fr; column-gap: 16px; align-items: start;
  padding: 20px; border-radius: var(--radius-sm);
  background: var(--surface); border: 1px solid var(--line);
  transition: border-color .3s, background-color .3s, transform .35s var(--ease);
}
.interest::before {
  content: ""; position: absolute; inset: 0; pointer-events: none; opacity: 0; transition: opacity .35s;
  background: radial-gradient(260px circle at var(--mx) var(--my), rgba(61, 214, 240, .12), transparent 60%);
}
.interest:hover { border-color: rgba(61, 214, 240, .3); transform: translateY(-3px); }
.interest:hover::before { opacity: 1; }
.interest .icon-lg { grid-row: span 2; color: var(--accent); margin-top: 2px; }
.interest h3 { font-family: var(--font-display); font-weight: 500; font-size: 1.02rem; line-height: 1.35; }
.interest p { margin-top: 4px; font-size: .92rem; color: var(--muted); line-height: 1.5; }

.projects {
  margin-top: 16px; padding: 22px 22px; border-radius: var(--radius-sm);
  border: 1px dashed rgba(61, 214, 240, .28); background: rgba(61, 214, 240, .03);
}
.projects-head { display: flex; align-items: center; justify-content: space-between; gap: 12px; flex-wrap: wrap; }
.projects h3 { font-family: var(--font-display); font-weight: 500; font-size: 1.05rem; }
.projects p { margin-top: 6px; font-size: .95rem; color: var(--muted); }

@media (min-width: 560px) {
  .interest-grid { grid-template-columns: repeat(2, 1fr); }
  .interest { grid-template-columns: 1fr; padding: 24px; }
  .interest .icon-lg { grid-row: auto; margin-bottom: 18px; }
}
@media (min-width: 1024px) {
  .tech-top { grid-template-columns: 1.05fr .95fr; gap: 72px; }
  .interest-grid { grid-template-columns: repeat(4, 1fr); gap: 14px; margin-top: 80px; }
  .projects { display: flex; align-items: center; justify-content: space-between; gap: 24px; padding: 22px 28px; }
  .projects p { margin-top: 0; }
  .projects-head { flex: none; gap: 16px; }
}

/* ---------- Futebol ---------- */
.football {
  overflow: hidden;
  background:
    radial-gradient(ellipse 70% 50% at 50% 100%, rgba(18, 90, 52, .28), transparent 70%),
    linear-gradient(180deg, var(--bg-1) 0%, #06100b 55%, #050b08 100%);
}
.football-bg { position: absolute; inset: 0; z-index: -1; pointer-events: none; }
.stadium-light { position: absolute; top: 0; width: 34%; height: 100%; transform-origin: 50% 0; }
.stadium-light::before {
  content: ""; position: absolute; inset: 0;
  background: linear-gradient(180deg, rgba(225, 240, 255, .06), rgba(225, 240, 255, .015) 45%, transparent 75%);
  clip-path: polygon(47% 0, 53% 0, 100% 100%, 0 100%);
}
.stadium-light::after {
  content: ""; position: absolute; top: 0; left: 50%; width: 150px; height: 64px; transform: translate(-50%, -50%);
  background: radial-gradient(ellipse at center, rgba(255, 255, 255, .45), rgba(210, 235, 255, .1) 35%, transparent 70%);
}
.stadium-light--l { left: 4%; transform: rotate(-24deg); }
.stadium-light--r { right: 4%; transform: rotate(24deg); }
.football-bg::after {
  content: ""; position: absolute; left: 0; right: 0; bottom: 0; height: 160px;
  background: linear-gradient(180deg, transparent, #050b08);
}
.pitch {
  position: absolute; left: 50%; bottom: -8%; width: 180%; max-width: 1800px; aspect-ratio: 1000 / 640;
  transform: translateX(-50%) perspective(900px) rotateX(62deg); transform-origin: 50% 100%;
  background: repeating-linear-gradient(90deg, rgba(127, 214, 162, .045) 0 10%, transparent 10% 20%);
  -webkit-mask-image: linear-gradient(0deg, transparent 0%, #000 22%, #000 40%, transparent 85%);
  mask-image: linear-gradient(0deg, transparent 0%, #000 22%, #000 40%, transparent 85%);
}
.pitch svg { width: 100%; height: 100%; fill: none; stroke: rgba(230, 255, 240, .22); stroke-width: 2; vector-effect: non-scaling-stroke; }
.pitch svg * { vector-effect: non-scaling-stroke; }
.pitch .spot { fill: rgba(230, 255, 240, .4); }

.football .eyebrow { color: var(--grass); }
.football .eyebrow-num { border-color: rgba(127, 214, 162, .4); }
.football-quote { margin: clamp(40px, 6vw, 64px) auto 0; max-width: 56rem; text-align: center; }
.football-quote p {
  font-family: var(--font-display); font-weight: 300;
  font-size: clamp(1.55rem, 1rem + 2.6vw, 2.9rem); line-height: 1.28; letter-spacing: -.015em; color: var(--text);
}
.football-quote p span { color: var(--text-2); }
.football-quote::before {
  content: ""; display: block; width: 46px; height: 2px; margin: 0 auto 32px; border-radius: 2px;
  background: linear-gradient(90deg, transparent, var(--grass), transparent);
}
.values { display: grid; gap: 12px; margin-top: clamp(48px, 7vw, 80px); }
.value {
  padding: 24px; border-radius: var(--radius-sm);
  background: rgba(8, 20, 14, .55); border: 1px solid rgba(127, 214, 162, .12);
  -webkit-backdrop-filter: blur(10px); backdrop-filter: blur(10px);
  transition: border-color .3s, transform .35s var(--ease);
}
.value:hover { border-color: rgba(127, 214, 162, .35); transform: translateY(-3px); }
.value .icon-lg { color: var(--grass); margin-bottom: 16px; }
.value h3 { font-family: var(--font-display); font-weight: 500; font-size: 1.1rem; }
.value p { margin-top: 6px; color: var(--muted); font-size: .95rem; line-height: 1.55; }
.football-more { margin-top: 40px; text-align: center; }
.football-more .link-arrow:hover { color: var(--grass); border-color: var(--grass); }
@media (min-width: 768px) {
  .values { grid-template-columns: repeat(3, 1fr); gap: 16px; }
  .pitch { width: 130%; bottom: -12%; }
}

/* ---------- Família ---------- */
.family {
  padding-bottom: calc(var(--section-y) * .5);
  background:
    radial-gradient(ellipse 60% 50% at 15% 20%, rgba(217, 180, 143, .06), transparent 70%),
    linear-gradient(180deg, #050b08 0%, #0b0a09 18%, #0a0a0b 100%);
}
.family .eyebrow { color: var(--warm); }
.family .eyebrow-num { border-color: rgba(217, 180, 143, .4); }
.family .section-title { background: linear-gradient(180deg, #fff 30%, #cdbfae 120%); -webkit-background-clip: text; background-clip: text; }
.tricolor {
  display: block; width: 120px; height: 2px; margin-top: 26px; border-radius: 2px;
  background: linear-gradient(90deg, var(--it-green) 0 33.3%, var(--it-white) 33.3% 66.6%, var(--it-red) 66.6% 100%);
  opacity: .85; transform-origin: left;
}
@media (scripting: enabled) and (prefers-reduced-motion: no-preference) {
  .tricolor { transform: scaleX(0); transition: transform 1.1s var(--ease) .35s; }
  .is-in .tricolor { transform: scaleX(1); }
}
.family-grid { display: grid; gap: 28px; margin-top: 44px; }
.family-statement {
  font-family: var(--font-display); font-weight: 300; font-size: clamp(1.5rem, 1rem + 2.2vw, 2.5rem); line-height: 1.3; letter-spacing: -.015em;
}
.family-statement span { display: block; color: var(--warm); }
.family-text p { color: var(--text-2); font-size: 1.02rem; }
.family-text p + p { margin-top: 14px; color: var(--muted); }

.archive {
  margin-top: clamp(48px, 7vw, 80px); padding: 24px; border-radius: var(--radius);
  background: linear-gradient(160deg, rgba(255, 255, 255, .035), rgba(255, 255, 255, .012));
  border: 1px solid var(--line);
}
.archive-head { display: flex; align-items: center; justify-content: space-between; gap: 12px; flex-wrap: wrap; }
.archive-head h3 { font-family: var(--font-display); font-weight: 500; font-size: 1.1rem; }
.archive-list { display: grid; grid-template-columns: 1fr; gap: 8px; margin-top: 20px; }
.archive-list li {
  display: flex; align-items: center; gap: 14px; min-height: 52px; padding: 12px 16px; border-radius: 12px;
  border: 1px dashed rgba(217, 180, 143, .2); color: var(--text-2); font-size: .95rem;
}
.archive-list .icon { color: var(--warm); width: 20px; height: 20px; }
@media (min-width: 560px) { .archive-list { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 1024px) {
  .family-grid { grid-template-columns: 1.1fr .9fr; gap: 80px; align-items: end; }
  .archive { padding: 32px; }
  .archive-list { grid-template-columns: repeat(3, 1fr); gap: 12px; }
}

/* ---------- Linha do tempo ---------- */
.history { background: #0a0a0b; padding-top: calc(var(--section-y) * .5); }
.timeline { position: relative; margin-top: clamp(48px, 7vw, 80px); padding-left: 28px; display: grid; gap: 14px; }
.timeline::before {
  content: ""; position: absolute; left: 7px; top: 8px; bottom: 8px; width: 2px; border-radius: 2px;
  background: linear-gradient(180deg, var(--it-green), var(--it-white) 18%, var(--it-red) 34%, rgba(217, 180, 143, .5) 55%, var(--accent) 100%);
  opacity: .7;
}
.tl-item { position: relative; }
.tl-dot {
  position: absolute; left: -28px; top: 22px; width: 16px; height: 16px; border-radius: 50%;
  background: var(--bg); border: 2px solid var(--line-2);
}
.tl-dot::after { content: ""; position: absolute; inset: 3px; border-radius: 50%; background: var(--muted); }
.tl-item:first-child .tl-dot::after { background: var(--it-green); }
.tl-item:nth-child(2) .tl-dot::after { background: var(--it-white); }
.tl-item:nth-child(3) .tl-dot::after { background: var(--it-red); }
.tl-item:nth-child(4) .tl-dot::after { background: var(--warm); }
.tl-item:last-child .tl-dot::after { background: var(--accent); box-shadow: 0 0 10px var(--accent); }
.tl-body {
  padding: 18px 20px; border-radius: var(--radius-sm); border: 1px solid var(--line); background: var(--surface);
  transition: border-color .3s, transform .35s var(--ease);
}
.tl-body:hover { border-color: var(--line-2); transform: translateY(-2px); }
.tl-date { font-family: var(--font-mono); font-size: .7rem; letter-spacing: .16em; text-transform: uppercase; color: var(--muted); }
.tl-body h3 { margin-top: 4px; font-family: var(--font-display); font-weight: 500; font-size: 1.12rem; }
.tl-body p { margin-top: 4px; font-size: .93rem; color: var(--muted); }

@media (min-width: 1024px) {
  .timeline { grid-template-columns: repeat(5, 1fr); padding-left: 0; padding-top: 36px; gap: 14px; }
  .timeline::before { left: 8px; right: 8px; top: 7px; bottom: auto; width: auto; height: 2px;
    background: linear-gradient(90deg, var(--it-green), var(--it-white) 10%, var(--it-red) 20%, rgba(217, 180, 143, .5) 50%, var(--accent) 100%); }
  .tl-dot { left: 0; top: -36px; }
  .tl-body { height: 100%; }
}

.family-cta {
  display: flex; flex-direction: column; align-items: flex-start; gap: 18px;
  margin-top: clamp(48px, 7vw, 72px); padding: 24px; border-radius: var(--radius);
  border: 1px solid var(--line); background: linear-gradient(120deg, rgba(217, 180, 143, .06), rgba(61, 214, 240, .04));
}
.family-cta p { font-family: var(--font-display); font-weight: 300; font-size: 1.2rem; line-height: 1.4; }
@media (min-width: 768px) {
  .family-cta { flex-direction: row; align-items: center; justify-content: space-between; padding: 28px 32px; }
}

/* ---------- Galeria ---------- */
.gallery { background: linear-gradient(180deg, #0a0a0b, var(--bg)); padding-top: calc(var(--section-y) * .6); }
.gallery-head { display: flex; flex-direction: column; gap: 24px; }
.filters {
  display: flex; gap: 8px; overflow-x: auto; margin-inline: calc(var(--gutter) * -1); padding: 2px var(--gutter) 6px;
  scrollbar-width: none; -webkit-overflow-scrolling: touch;
}
.filters::-webkit-scrollbar { display: none; }
.filter {
  flex: none; min-height: 40px; padding: 0 16px; border-radius: 999px;
  border: 1px solid var(--line-2); color: var(--text-2); font-size: .88rem;
  transition: color .25s, border-color .25s, background-color .25s;
}
.filter:hover { color: var(--text); border-color: rgba(61, 214, 240, .45); }
.filter[aria-pressed="true"] { color: var(--accent-ink); background: var(--accent); border-color: var(--accent); }
.gallery-note { margin-top: 24px; color: var(--muted); font-size: .95rem; max-width: 40rem; }
.gallery-grid { display: grid; grid-template-columns: repeat(2, 1fr); grid-auto-flow: dense; gap: 10px; margin-top: 28px; }
.g-item[hidden] { display: none; }
.g-item figure { position: relative; height: 100%; border-radius: var(--radius-sm); overflow: hidden; border: 1px solid var(--line); background: var(--bg-2); }
.g-item a { display: block; height: 100%; }
.g-item img { width: 100%; height: 100%; aspect-ratio: 4 / 3; object-fit: cover; transition: transform .7s var(--ease), filter .5s; }
.g-item--tall { grid-row: span 2; }
.g-item--tall img { aspect-ratio: auto; }
.g-item figcaption .tag { height: 22px; margin-left: 8px; padding: 0 8px; font-size: .6rem; vertical-align: middle; }
.g-item figcaption {
  position: absolute; left: 0; right: 0; bottom: 0; padding: 28px 14px 12px;
  font-size: .85rem; color: var(--text);
  background: linear-gradient(0deg, rgba(0, 0, 0, .7), transparent);
  opacity: 0; transform: translateY(6px); transition: opacity .35s, transform .35s var(--ease);
  pointer-events: none;
}
.g-item a:hover img, .g-item a:focus-visible img { transform: scale(1.04); }
.g-item a:hover + figcaption, .g-item a:focus-visible + figcaption { opacity: 1; transform: none; }
.g-item a:focus-visible { outline-offset: -3px; }
@media (hover: none) { .g-item figcaption { opacity: 1; transform: none; } }
.g-item--placeholder figcaption { opacity: 1; transform: none; }
@media (min-width: 768px) {
  .gallery-grid { grid-template-columns: repeat(3, 1fr); gap: 14px; }
}
@media (min-width: 1024px) {
  .gallery-head { flex-direction: row; align-items: flex-end; justify-content: space-between; }
  .filters { margin: 0; padding: 0; flex-wrap: wrap; justify-content: flex-end; overflow: visible; }
}
@media (min-width: 768px) and (max-width: 1023.98px) {
  .g-item--tall { grid-row: auto; }
  .g-item--tall img { aspect-ratio: 4 / 3; }
}
@media (min-width: 1024px) { .gallery-grid { grid-template-columns: repeat(4, 1fr); } }

/* Lightbox */
.lightbox {
  width: 100%; max-width: 100%; height: 100%; max-height: 100%; margin: 0; padding: 0; border: 0;
  background: transparent; color: var(--text); overflow: hidden;
}
.lightbox::backdrop { background: rgba(3, 5, 8, .92); -webkit-backdrop-filter: blur(10px); backdrop-filter: blur(10px); }
.lightbox[open] { display: grid; animation: lbIn .35s var(--ease); }
@keyframes lbIn { from { opacity: 0; } to { opacity: 1; } }
.lb-inner { position: relative; display: grid; place-items: center; width: 100%; height: 100%; padding: 64px 12px 24px; touch-action: pan-y; }
.lb-figure { display: flex; flex-direction: column; align-items: center; gap: 14px; max-width: 100%; max-height: 100%; }
.lb-img { max-width: min(100%, 1400px); max-height: calc(100vh - 150px); max-height: calc(100svh - 150px); width: auto; height: auto; border-radius: 12px; box-shadow: 0 30px 80px rgba(0, 0, 0, .6); transition: opacity .25s; }
.lb-img.is-loading { opacity: 0; }
.lb-caption { display: flex; gap: 16px; align-items: baseline; font-size: .92rem; color: var(--text-2); }
.lb-count { font-family: var(--font-mono); font-size: .75rem; color: var(--muted); }
.lb-btn {
  position: absolute; width: 48px; height: 48px; border-radius: 50%; display: grid; place-items: center;
  background: rgba(255, 255, 255, .06); border: 1px solid var(--line-2); color: var(--text);
  -webkit-backdrop-filter: blur(10px); backdrop-filter: blur(10px); transition: background-color .25s, border-color .25s;
}
.lb-btn:hover { background: rgba(61, 214, 240, .12); border-color: rgba(61, 214, 240, .5); }
.lb-btn .icon { width: 22px; height: 22px; }
.lb-close { top: 12px; right: 12px; }
.lb-prev, .lb-next { bottom: 18px; }
.lb-prev { left: calc(50% - 60px); }
.lb-next { right: calc(50% - 60px); }
.lb-inner { padding-bottom: 84px; }
@media (min-width: 768px) {
  .lb-inner { padding: 72px 96px 40px; }
  .lb-prev, .lb-next { top: 50%; bottom: auto; transform: translateY(-50%); }
  .lb-prev { left: 24px; } .lb-next { right: 24px; }
  .lb-close { top: 20px; right: 24px; }
}

/* ---------- Contato ---------- */
.contact { overflow: hidden; }
.contact-bg {
  position: absolute; inset: 0; z-index: -1; pointer-events: none;
  background:
    radial-gradient(ellipse 50% 50% at 90% 40%, rgba(61, 214, 240, .08), transparent 70%),
    radial-gradient(ellipse 40% 40% at 0% 100%, rgba(59, 130, 246, .07), transparent 70%);
}
.contact-layout { display: grid; gap: 44px; }
.contact-points { display: grid; gap: 14px; margin-top: 32px; }
.contact-points li { display: flex; align-items: flex-start; gap: 12px; color: var(--text-2); font-size: .97rem; }
.contact-points .icon { color: var(--accent); margin-top: 4px; }

.contact-card {
  position: relative; padding: 22px; border-radius: var(--radius);
  background: linear-gradient(160deg, rgba(22, 30, 40, .7), rgba(10, 13, 18, .8));
  border: 1px solid var(--line-2);
  box-shadow: 0 40px 100px -40px rgba(0, 0, 0, .9);
  -webkit-backdrop-filter: blur(16px); backdrop-filter: blur(16px);
}
.contact-card::before {
  content: ""; position: absolute; inset: -1px; border-radius: inherit; padding: 1px; pointer-events: none;
  background: linear-gradient(140deg, rgba(61, 214, 240, .45), transparent 35%, transparent 70%, rgba(59, 130, 246, .3));
  -webkit-mask: linear-gradient(#000 0 0) content-box, linear-gradient(#000 0 0);
  -webkit-mask-composite: xor; mask-composite: exclude;
}
.contact-form { display: grid; gap: 18px; }
.field-row { display: grid; gap: 18px; }
.field { display: grid; gap: 8px; min-width: 0; }
.field label { font-size: .88rem; font-weight: 500; color: var(--text); }
.req { color: var(--accent); }
.opt { color: var(--muted); font-weight: 400; }
.field input, .field textarea {
  width: 100%; min-height: 50px; padding: 13px 16px; border-radius: 12px;
  background: rgba(5, 7, 10, .6); border: 1px solid var(--line-2); color: var(--text);
  font-size: 1rem; line-height: 1.4;
  transition: border-color .25s, box-shadow .25s, background-color .25s;
  -webkit-appearance: none; appearance: none;
}
.field textarea { min-height: 150px; resize: vertical; }
.field input::placeholder, .field textarea::placeholder { color: #6c7682; }
.field input:hover, .field textarea:hover { border-color: rgba(255, 255, 255, .24); }
.field input:focus, .field textarea:focus { outline: none; border-color: var(--accent); box-shadow: 0 0 0 4px rgba(61, 214, 240, .14); background: rgba(5, 7, 10, .85); }
.field [aria-invalid="true"] { border-color: var(--danger); }
.field [aria-invalid="true"]:focus { box-shadow: 0 0 0 4px rgba(255, 138, 138, .15); }
.field-error { min-height: 0; font-size: .82rem; color: var(--danger); }
.field-error:empty { display: none; }
.field-meta { display: flex; justify-content: space-between; gap: 12px; align-items: baseline; }
.counter { margin-left: auto; font-family: var(--font-mono); font-size: .72rem; color: var(--muted); }
.counter.is-near { color: #fbbf24; }

.hp-field { position: absolute !important; left: -10000px; top: auto; width: 1px; height: 1px; overflow: hidden; }
.turnstile { min-height: 65px; }
.turnstile[hidden] { display: none; }

.privacy-note { display: flex; gap: 10px; align-items: flex-start; font-size: .82rem; color: var(--muted); line-height: 1.5; }
.privacy-note .icon { margin-top: 2px; color: var(--accent); }
.form-actions { display: flex; flex-direction: column; gap: 12px; align-items: stretch; }
.btn-submit { width: 100%; }
.req-note { font-size: .78rem; color: var(--muted); text-align: center; }
.req-note span { color: var(--accent); }
.spinner { display: none; width: 18px; height: 18px; border-radius: 50%; border: 2px solid rgba(4, 20, 26, .3); border-top-color: var(--accent-ink); animation: spin .8s linear infinite; }
.btn-submit.is-loading { pointer-events: none; opacity: .85; }
.btn-submit.is-loading .spinner { display: inline-block; }
@keyframes spin { to { transform: rotate(360deg); } }
.form-status { font-size: .92rem; }
.form-status:empty { display: none; }
.form-status.is-error { padding: 12px 14px; border-radius: 12px; color: #ffd1d1; background: rgba(255, 90, 90, .08); border: 1px solid rgba(255, 138, 138, .3); }

.form-success { display: grid; justify-items: center; text-align: center; gap: 10px; padding: 40px 8px; }
.form-success[hidden] { display: none; }
.form-success:focus { outline: none; }
.success-icon svg { width: 68px; height: 68px; fill: none; stroke: var(--success); stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }
.success-icon circle { stroke-dasharray: 151; stroke-dashoffset: 151; animation: draw .8s var(--ease) forwards; stroke-opacity: .6; }
.success-icon path { stroke-dasharray: 36; stroke-dashoffset: 36; animation: draw .5s var(--ease) .55s forwards; }
.form-success h3 { margin-top: 10px; font-family: var(--font-display); font-weight: 500; font-size: 1.35rem; }
.form-success p { color: var(--text-2); margin-bottom: 18px; }

@media (min-width: 560px) {
  .contact-card { padding: 32px; }
  .field-row { grid-template-columns: 1fr 1fr; }
  .form-actions { flex-direction: row; align-items: center; justify-content: space-between; }
  .btn-submit { width: auto; min-width: 220px; }
}
@media (min-width: 1200px) {
  .contact-layout { grid-template-columns: .8fr 1.2fr; gap: 80px; align-items: start; }
  .contact-intro { padding-top: 24px; }
  .contact-card { padding: 40px; }
}

/* ---------- Rodapé ---------- */
.site-footer { position: relative; border-top: 1px solid var(--line); background: #050608; padding-top: 56px; }
.site-footer::before {
  content: ""; position: absolute; top: -1px; left: 50%; width: min(420px, 60%); height: 1px; transform: translateX(-50%);
  background: linear-gradient(90deg, transparent, var(--accent), transparent); opacity: .6;
}
.footer-inner { display: grid; gap: 32px; }
.brand--footer .wordmark { width: 170px; }
.footer-sign { margin-top: 10px; font-family: var(--font-mono); font-size: .72rem; letter-spacing: .22em; text-transform: uppercase; color: var(--muted); }
.footer-nav { display: flex; flex-wrap: wrap; gap: 4px 22px; }
.footer-nav a { display: inline-flex; align-items: center; min-height: 44px; color: var(--text-2); font-size: .95rem; transition: color .25s; }
.footer-nav a:hover { color: var(--accent); }
.footer-bottom {
  display: flex; flex-direction: column-reverse; gap: 12px; align-items: flex-start;
  margin-top: 36px; padding-top: 22px; padding-bottom: calc(24px + env(safe-area-inset-bottom));
  background: linear-gradient(var(--line), var(--line)) no-repeat center top / calc(100% - 2 * var(--gutter)) 1px;
  font-size: .85rem; color: var(--muted);
}
.to-top { display: inline-flex; align-items: center; gap: 8px; min-height: 44px; color: var(--text-2); transition: color .25s; }
.to-top:hover { color: var(--accent); }
.to-top .icon { transition: transform .3s var(--ease); }
.to-top:hover .icon { transform: translateY(-3px); }
@media (min-width: 768px) {
  .footer-inner { grid-template-columns: 1fr auto; align-items: center; }
  .footer-bottom { flex-direction: row; justify-content: space-between; align-items: center; }
}

/* ---------- Página 404 ---------- */
.page-404 { min-height: 100vh; min-height: 100svh; display: grid; place-items: center; text-align: center; position: relative; isolation: isolate; overflow: hidden; padding: 40px var(--gutter); }
.page-404 .hero-grid { z-index: -1; }
.e404-code {
  font-family: var(--font-display); font-weight: 500; font-size: clamp(6rem, 3rem + 18vw, 13rem); line-height: 1; letter-spacing: -.05em;
  background: linear-gradient(180deg, #fff 20%, rgba(61, 214, 240, .5) 120%); -webkit-background-clip: text; background-clip: text; color: transparent;
}
.e404-title { margin-top: 12px; font-family: var(--font-display); font-weight: 300; font-size: clamp(1.4rem, 1rem + 2vw, 2.2rem); }
.e404-text { margin: 12px auto 32px; max-width: 28rem; color: var(--muted); }
.e404-brand { display: inline-block; margin-bottom: 48px; }
.e404-brand .wordmark { width: 150px; fill: var(--text); }
.e404-route { width: min(360px, 80vw); height: 60px; margin: 0 auto 28px; overflow: visible; }
.e404-route path { fill: none; stroke: rgba(255, 255, 255, .25); stroke-width: 2; stroke-dasharray: 6 8; }
.e404-route circle { fill: var(--accent); }
.e404-route .off { fill: none; stroke: var(--accent); stroke-width: 1.5; }

/* ---------- Movimento reduzido ---------- */
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation-duration: .01ms !important; animation-iteration-count: 1 !important; transition-duration: .01ms !important; scroll-behavior: auto !important; }
  .hero-canvas { display: none; }
  .chart-line { stroke-dashoffset: 0; }
  .caret { animation: none; }
}
