/* ============================================================
   MIMICUS — main stylesheet
   ============================================================ */

:root {
  /* neon palette */
  --neon-purple: #A855F7;
  --neon-purple-soft: #7C3AED;
  --neon-cyan: #22D3EE;
  --neon-magenta: #EC4899;
  --neon-yellow: #D9F441;

  /* primary is overridden via Tweaks (sets --primary, --primary-rgb, --primary-soft) */
  --primary: var(--neon-purple);
  --primary-rgb: 168, 85, 247;
  --primary-soft: #7C3AED;

  /* dark theme tokens (default) */
  --bg: #050507;
  --bg-2: #0B0B10;
  --surface: #0E0E14;
  --surface-2: #14141C;
  --border: rgba(255, 255, 255, 0.08);
  --border-2: rgba(255, 255, 255, 0.14);
  --text: #F5F5F7;
  --text-2: #A8A8B3;
  --text-3: #6E6E7A;
  --grain: 0.05;

  --font-display: "Space Grotesk", ui-sans-serif, system-ui, sans-serif;
  --font-body: "Space Grotesk", ui-sans-serif, system-ui, sans-serif;
  --font-mono: "JetBrains Mono", ui-monospace, monospace;
  --font-pixel: "Press Start 2P", "VT323", ui-monospace, monospace;

  --container: 1280px;
  --pad: clamp(20px, 4vw, 56px);
  --glitch: 1; /* glitch density 0..2 */
}

[data-theme="light"] {
  --bg: #F5F4F0;
  --bg-2: #ECEAE3;
  --surface: #FFFFFF;
  --surface-2: #F0EEE7;
  --border: rgba(10, 10, 14, 0.08);
  --border-2: rgba(10, 10, 14, 0.14);
  --text: #0A0A0E;
  --text-2: #4A4A55;
  --text-3: #82828D;
  --grain: 0.02;
}

[data-font-mode="pixel"] {
  --font-display: "VT323", "Press Start 2P", ui-monospace, monospace;
  --font-body: "VT323", "JetBrains Mono", monospace;
}

* { box-sizing: border-box; }

html, body {
  margin: 0;
  padding: 0;
  background: var(--bg);
  color: var(--text);
  font-family: var(--font-body);
  font-size: 16px;
  line-height: 1.55;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  scroll-behavior: smooth;
}

/* film-grain / scanline overlay */
body::before {
  content: "";
  position: fixed;
  inset: 0;
  pointer-events: none;
  z-index: 1000;
  background-image:
    repeating-linear-gradient(0deg, rgba(255,255,255,0.012) 0 1px, transparent 1px 3px),
    radial-gradient(circle at 20% 10%, rgba(var(--primary-rgb), 0.10), transparent 50%),
    radial-gradient(circle at 80% 80%, rgba(34, 211, 238, 0.06), transparent 50%);
  opacity: var(--grain);
  mix-blend-mode: screen;
}

[data-theme="light"] body::before {
  mix-blend-mode: multiply;
}

/* ===== type ===== */
h1, h2, h3, h4 {
  font-family: var(--font-display);
  font-weight: 700;
  letter-spacing: -0.02em;
  line-height: 1.05;
  margin: 0;
  text-wrap: balance;
}

h1 { font-size: clamp(40px, 6.5vw, 92px); }
h2 { font-size: clamp(32px, 4.5vw, 60px); }
h3 { font-size: clamp(20px, 1.8vw, 26px); letter-spacing: -0.01em; }

p { margin: 0; }

a { color: inherit; text-decoration: none; }

.eyebrow {
  font-family: var(--font-mono);
  font-size: 12px;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--primary);
  display: inline-flex;
  align-items: center;
  gap: 10px;
}
.eyebrow::before {
  content: "";
  width: 8px; height: 8px;
  background: var(--primary);
  box-shadow: 0 0 12px var(--primary);
  display: inline-block;
}

.muted { color: var(--text-2); }
.dim { color: var(--text-3); }

/* ===== layout ===== */
.section {
  position: relative;
  padding: clamp(72px, 10vw, 140px) var(--pad);
  scroll-margin-top: 80px;
}
.section.compact { padding-block: clamp(48px, 7vw, 90px); }
.container {
  max-width: var(--container);
  margin: 0 auto;
  position: relative;
}

.section-head {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: clamp(24px, 4vw, 80px);
  align-items: end;
  margin-bottom: clamp(36px, 5vw, 64px);
}
.section-head h2 { max-width: 14ch; }
.section-head .desc {
  color: var(--text-2);
  max-width: 46ch;
  font-size: 17px;
  line-height: 1.5;
}

@media (max-width: 720px) {
  .section-head { grid-template-columns: 1fr; align-items: start; gap: 16px; }
}

/* ===== nav ===== */
.nav {
  position: sticky;
  top: 0;
  z-index: 100;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 18px var(--pad);
  background: color-mix(in oklab, var(--bg) 78%, transparent);
  backdrop-filter: blur(14px) saturate(140%);
  -webkit-backdrop-filter: blur(14px) saturate(140%);
  border-bottom: 1px solid transparent;
  transition: border-color 220ms ease, background 220ms ease;
}
.nav.scrolled { border-bottom-color: var(--border); }
.nav-brand {
  display: flex;
  align-items: center;
  gap: 12px;
}
.nav-brand img {
  width: 38px; height: 38px;
  image-rendering: pixelated;
  image-rendering: crisp-edges;
}
.nav-brand img.nav-logo-full {
  width: auto;
  height: 56px;
  display: block;
  image-rendering: pixelated;
  image-rendering: crisp-edges;
}
.footer-brand .nav-brand img.nav-logo-full {
  height: 64px;
}
.nav-brand-text {
  display: flex; flex-direction: column; line-height: 1;
}
.nav-brand-text .wordmark {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 18px;
  letter-spacing: 0.04em;
  color: var(--text);
}
.nav-brand-text .tag {
  font-family: var(--font-mono);
  font-size: 9px;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--text-3);
  margin-top: 4px;
}
.nav-links {
  display: flex;
  gap: clamp(18px, 2.4vw, 36px);
  list-style: none;
  margin: 0;
  padding: 0;
}
.nav-links a {
  font-size: 14px;
  letter-spacing: 0.04em;
  color: var(--text-2);
  position: relative;
  padding: 6px 2px;
  transition: color 180ms ease;
}
.nav-links a:hover { color: var(--text); }
.nav-links a::after {
  content: "";
  position: absolute;
  left: 0; right: 0; bottom: 0;
  height: 2px;
  background: var(--primary);
  transform: scaleX(0);
  transform-origin: left;
  transition: transform 220ms ease;
}
.nav-links a:hover::after { transform: scaleX(1); }
.nav-cta {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 12px 20px;
  border: 1px solid var(--primary);
  border-radius: 999px;
  color: var(--text);
  font-size: 13px;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  font-weight: 500;
  transition: background 200ms ease, color 200ms ease, box-shadow 200ms ease;
}
.nav-cta:hover {
  background: var(--primary);
  color: #fff;
  box-shadow: 0 0 28px -2px rgba(var(--primary-rgb), 0.5);
}

@media (max-width: 980px) {
  .nav-links { display: none; }
}

/* ===== buttons ===== */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  padding: 16px 26px;
  border-radius: 4px;
  border: 1px solid transparent;
  font-family: var(--font-display);
  font-weight: 500;
  font-size: 13.5px;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  cursor: pointer;
  transition: all 220ms ease;
  white-space: nowrap;
}
.btn .arrow {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 22px; height: 22px;
  border: 1px solid currentColor;
  border-radius: 999px;
  font-size: 11px;
  transition: transform 220ms ease;
}
.btn:hover .arrow { transform: translate(2px, -2px); }

.btn.primary {
  background: var(--primary);
  color: #fff;
  border-color: var(--primary);
  box-shadow: 0 8px 30px -8px rgba(var(--primary-rgb), 0.55);
}
.btn.primary:hover {
  background: color-mix(in oklab, var(--primary) 88%, white);
  box-shadow: 0 12px 40px -6px rgba(var(--primary-rgb), 0.7);
}
.btn.ghost {
  background: transparent;
  color: var(--text);
  border-color: var(--border-2);
}
.btn.ghost:hover {
  border-color: var(--text);
  background: rgba(255, 255, 255, 0.04);
}
[data-theme="light"] .btn.ghost:hover { background: rgba(0,0,0,0.04); }

/* ===== glitch headline ===== */
.glitch-word {
  position: relative;
  display: inline-block;
  color: var(--primary);
}
.glitch-word::before,
.glitch-word::after {
  content: attr(data-text);
  position: absolute;
  inset: 0;
  pointer-events: none;
  mix-blend-mode: screen;
}
.glitch-word::before {
  color: var(--neon-cyan);
  transform: translate(calc(-2px * var(--glitch)), 0);
  opacity: calc(0.55 * var(--glitch));
}
.glitch-word::after {
  color: var(--neon-magenta);
  transform: translate(calc(2px * var(--glitch)), 0);
  opacity: calc(0.55 * var(--glitch));
}
[data-theme="light"] .glitch-word::before,
[data-theme="light"] .glitch-word::after { mix-blend-mode: multiply; }

/* on-scroll reveal */
.reveal {
  opacity: 0;
  transform: translateY(28px);
  transition: opacity 720ms cubic-bezier(.2,.7,.2,1), transform 720ms cubic-bezier(.2,.7,.2,1);
  will-change: transform, opacity;
}
.reveal.in {
  opacity: 1;
  transform: none;
}
.reveal[data-stagger="1"] { transition-delay: 80ms; }
.reveal[data-stagger="2"] { transition-delay: 160ms; }
.reveal[data-stagger="3"] { transition-delay: 240ms; }
.reveal[data-stagger="4"] { transition-delay: 320ms; }
.reveal[data-stagger="5"] { transition-delay: 400ms; }

/* ===== HERO ===== */
.hero {
  position: relative;
  padding: clamp(20px, 2.5vw, 36px) var(--pad) clamp(48px, 6vw, 90px);
  min-height: auto;
  display: flex;
  align-items: center;
  overflow: hidden;
}
.hero-grid {
  display: grid;
  grid-template-columns: 1.05fr 0.95fr;
  gap: clamp(24px, 5vw, 64px);
  align-items: center;
  width: 100%;
  max-width: var(--container);
  margin: 0 auto;
  position: relative;
  z-index: 2;
}
@media (max-width: 1080px) {
  .hero-grid { grid-template-columns: 1fr; }
}

.hero h1 {
  margin-top: 22px;
}
.hero .sub {
  color: var(--text-2);
  font-size: 18px;
  margin-top: 24px;
  max-width: 48ch;
  line-height: 1.55;
}
.hero .cta-row {
  display: flex;
  gap: 16px;
  margin-top: 36px;
  flex-wrap: wrap;
}

/* hero visual: dashboard + phone + big pixel octopus */
.hero-visual {
  position: relative;
  height: 560px;
}
@media (max-width: 1080px) {
  .hero-visual { height: 460px; }
}

.hero-octopus {
  position: absolute;
  right: -40px;
  top: -10px;
  width: 230px;
  height: auto;
  z-index: 3;
  image-rendering: pixelated;
  image-rendering: crisp-edges;
  filter:
    drop-shadow(0 0 28px rgba(var(--primary-rgb), 0.55))
    drop-shadow(0 12px 24px rgba(0, 0, 0, 0.45));
  animation: octFloat 5.6s ease-in-out infinite;
  pointer-events: none;
}
@keyframes octFloat {
  0%, 100% { transform: translateY(0) rotate(0deg); }
  50%      { transform: translateY(-10px) rotate(-1.5deg); }
}
@media (max-width: 1080px) {
  .hero-octopus { width: 180px; right: 0; top: 0; }
}
@media (max-width: 720px) {
  .hero-octopus { width: 140px; right: 8px; top: -10px; }
}

.dash {
  position: absolute;
  top: 60px;
  left: 0;
  width: calc(100% - 70px);
  background: var(--surface);
  border: 1px solid var(--border-2);
  border-radius: 14px;
  padding: 22px;
  box-shadow:
    0 30px 80px -20px rgba(var(--primary-rgb), 0.25),
    0 1px 0 rgba(255, 255, 255, 0.04) inset;
  transform: rotate(-1deg);
  z-index: 1;
}
.dash-head {
  display: flex; align-items: center; justify-content: space-between;
  margin-bottom: 16px;
}
.dash-head .title { font-weight: 600; font-size: 14px; }
.dash-head .pill {
  font-family: var(--font-mono);
  font-size: 11px;
  color: var(--text-2);
  border: 1px solid var(--border-2);
  padding: 6px 10px;
  border-radius: 999px;
}
.dash-stats {
  display: grid;
  grid-template-columns: 1fr 1fr 1fr;
  gap: 10px;
  margin-bottom: 18px;
}
.dash-stat {
  background: var(--bg-2);
  border: 1px solid var(--border);
  border-radius: 10px;
  padding: 12px 12px 14px;
}
.dash-stat .lbl {
  font-size: 11px;
  color: var(--text-3);
  margin-bottom: 6px;
  font-family: var(--font-mono);
  text-transform: uppercase;
  letter-spacing: 0.06em;
}
.dash-stat .num {
  font-family: var(--font-display);
  font-weight: 600;
  font-size: 18px;
  letter-spacing: -0.01em;
}
.dash-stat .delta {
  font-family: var(--font-mono);
  font-size: 11px;
  margin-top: 4px;
}
.delta.up { color: #4ADE80; }
.delta.down { color: #F87171; }

.dash-chart {
  height: 170px;
  position: relative;
  border-top: 1px solid var(--border);
  padding-top: 14px;
}
.dash-chart .legend {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 8px;
}
.dash-chart .legend .title { font-size: 12px; color: var(--text-2); }
.dash-chart .legend .keys { display: flex; gap: 12px; font-family: var(--font-mono); font-size: 11px; color: var(--text-2); }
.dash-chart .legend .keys span { display: inline-flex; align-items: center; gap: 6px; }
.dash-chart .legend .keys i {
  width: 10px; height: 2px; display: inline-block;
}
.svg-chart { width: 100%; height: 120px; display: block; }

/* phone */
.phone {
  position: absolute;
  right: -10px;
  bottom: 0;
  width: 200px;
  height: 410px;
  background: #0a0a0e;
  border: 8px solid #18181f;
  border-radius: 32px;
  box-shadow:
    0 30px 60px -10px rgba(0,0,0,0.6),
    0 0 0 2px rgba(var(--primary-rgb), 0.3),
    0 0 50px -8px rgba(var(--primary-rgb), 0.4);
  overflow: hidden;
  z-index: 2;
  transform: rotate(4deg);
}
.phone::before {
  content: "";
  position: absolute;
  top: 8px; left: 50%;
  transform: translateX(-50%);
  width: 60px; height: 14px;
  background: #000;
  border-radius: 999px;
  z-index: 3;
}
.phone-screen {
  position: absolute;
  inset: 0;
  background:
    linear-gradient(180deg, #1a1a25 0%, #0a0a0e 100%);
  padding: 36px 16px 16px;
  color: #fff;
  display: flex;
  flex-direction: column;
}
.phone-screen .ph-eyebrow {
  font-family: var(--font-mono);
  font-size: 9px;
  color: rgba(255,255,255,0.6);
  letter-spacing: 0.18em;
  text-transform: uppercase;
}
.phone-screen .ph-title {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 32px;
  letter-spacing: -0.02em;
  line-height: 1;
  margin-top: 6px;
}
.phone-screen .ph-shoe {
  flex: 1;
  margin-top: 14px;
  border-radius: 12px;
  background:
    radial-gradient(circle at 50% 60%, rgba(var(--primary-rgb), 0.4), transparent 70%),
    repeating-linear-gradient(135deg, rgba(255,255,255,0.04) 0 6px, transparent 6px 12px),
    #18182a;
  position: relative;
  border: 1px solid rgba(255,255,255,0.08);
  display: flex;
  align-items: center;
  justify-content: center;
  font-family: var(--font-mono);
  font-size: 9px;
  color: rgba(255,255,255,0.4);
  letter-spacing: 0.16em;
  text-transform: uppercase;
}
.phone-screen .ph-cta {
  margin-top: 12px;
  background: rgba(255,255,255,0.05);
  border: 1px solid rgba(255,255,255,0.1);
  border-radius: 999px;
  padding: 10px 0;
  text-align: center;
  font-family: var(--font-mono);
  font-size: 10px;
  letter-spacing: 0.18em;
  text-transform: uppercase;
}
.phone-screen .ph-cta b { color: var(--primary); font-weight: 700; }

/* hero pixel particles */
.hero-pixels {
  position: absolute;
  pointer-events: none;
  z-index: 0;
  inset: 0;
}
.hero-pixels span {
  position: absolute;
  display: block;
  width: 8px; height: 8px;
  image-rendering: pixelated;
  animation: pixelFloat 6s ease-in-out infinite;
}

@keyframes pixelFloat {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(-12px); }
}

/* ===== logos strip ===== */
.logos {
  border-top: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
  padding: 28px var(--pad);
  background: var(--bg-2);
  overflow: hidden;
}
.logos-cap {
  text-align: center;
  font-family: var(--font-mono);
  color: var(--text-3);
  font-size: 11px;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  margin-bottom: 22px;
}
.logos-track {
  display: flex;
  gap: clamp(40px, 6vw, 80px);
  align-items: center;
  justify-content: space-around;
  opacity: 0.7;
  flex-wrap: wrap;
}
.logos-track .logo {
  font-family: var(--font-display);
  font-weight: 700;
  letter-spacing: 0.04em;
  font-size: 22px;
  color: var(--text-2);
  white-space: nowrap;
  transition: color 220ms ease, transform 220ms ease;
}
.logos-track .logo:hover {
  color: var(--text);
  transform: translateY(-2px);
}

/* ===== service cards ===== */
.svc-grid {
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  gap: 14px;
}
@media (max-width: 1280px) { .svc-grid { grid-template-columns: repeat(3, 1fr); } }
@media (max-width: 720px)  { .svc-grid { grid-template-columns: 1fr 1fr; } }
@media (max-width: 480px)  { .svc-grid { grid-template-columns: 1fr; } }

.svc-grid.layout-list {
  grid-template-columns: 1fr;
  gap: 0;
}
.svc-grid.layout-list .svc {
  border-radius: 0;
  border-left: 0;
  border-right: 0;
  border-bottom: 0;
  display: grid;
  grid-template-columns: 80px 1fr auto;
  gap: 30px;
  align-items: center;
  padding: 28px 14px;
}
.svc-grid.layout-list .svc:last-child { border-bottom: 1px solid var(--border); }
.svc-grid.layout-list .svc .svc-icon { margin: 0; }
.svc-grid.layout-list .svc .svc-arrow {
  position: static;
  opacity: 1;
}

.svc-grid.layout-stack {
  grid-template-columns: repeat(2, 1fr);
}
.svc-grid.layout-stack .svc { padding: 36px 28px; min-height: 230px; }

.svc {
  position: relative;
  padding: 24px 22px 28px;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 12px;
  min-height: 220px;
  display: flex;
  flex-direction: column;
  transition: border-color 240ms ease, transform 240ms ease, background 240ms ease;
  overflow: hidden;
}
.svc::before {
  content: "";
  position: absolute;
  inset: -1px;
  border-radius: 13px;
  padding: 1px;
  background: linear-gradient(135deg, transparent, rgba(var(--primary-rgb), 0.5), transparent);
  -webkit-mask: linear-gradient(#000 0 0) content-box, linear-gradient(#000 0 0);
  mask: linear-gradient(#000 0 0) content-box, linear-gradient(#000 0 0);
  -webkit-mask-composite: xor;
  mask-composite: exclude;
  opacity: 0;
  transition: opacity 280ms ease;
  pointer-events: none;
}
.svc:hover {
  transform: translateY(-3px);
  background: var(--surface-2);
}
.svc:hover::before { opacity: 1; }
.svc-icon {
  width: 36px; height: 36px;
  margin-bottom: 18px;
  color: var(--primary);
}
.svc-num {
  position: absolute;
  top: 18px; right: 18px;
  font-family: var(--font-mono);
  font-size: 10px;
  color: var(--text-3);
  letter-spacing: 0.1em;
}
.svc h3 {
  margin-bottom: 8px;
  font-size: 19px;
}
.svc p {
  color: var(--text-2);
  font-size: 14px;
  line-height: 1.55;
  flex: 1;
}
.svc-arrow {
  position: absolute;
  bottom: 22px;
  right: 22px;
  width: 30px; height: 30px;
  display: inline-flex; align-items: center; justify-content: center;
  border: 1px solid var(--border-2);
  border-radius: 999px;
  color: var(--text-2);
  opacity: 0.6;
  transition: opacity 220ms ease, background 220ms ease, color 220ms ease, border-color 220ms ease;
}
.svc:hover .svc-arrow {
  opacity: 1;
  background: var(--primary);
  color: #fff;
  border-color: var(--primary);
}

/* ===== process ===== */
.process {
  position: relative;
}
.process-track {
  position: relative;
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 18px;
}
@media (max-width: 980px)  { .process-track { grid-template-columns: 1fr 1fr; } }
@media (max-width: 560px)  { .process-track { grid-template-columns: 1fr; } }
.process-step {
  position: relative;
  padding: 28px 22px 32px;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 12px;
  min-height: 210px;
  display: flex;
  flex-direction: column;
  gap: 10px;
}
.process-step .num {
  font-family: var(--font-pixel);
  font-size: 12px;
  color: var(--primary);
  letter-spacing: 0.05em;
}
.process-step h3 { font-size: 20px; }
.process-step p { color: var(--text-2); font-size: 14px; line-height: 1.55; }
.process-step::before {
  content: "";
  position: absolute;
  top: 28px; right: -22px;
  width: 22px; height: 1px;
  background: var(--border-2);
  display: none;
}
@media (min-width: 981px) {
  .process-step:not(:last-child)::before { display: block; }
}

/* ===== sobre ===== */
.about {
  display: grid;
  grid-template-columns: 1fr 0.9fr;
  gap: clamp(32px, 5vw, 72px);
  align-items: start;
}
@media (max-width: 980px) { .about { grid-template-columns: 1fr; } }
.about-stats {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 14px;
  margin-top: 32px;
}
.about-stat {
  border: 1px solid var(--border);
  border-radius: 12px;
  padding: 22px;
  background: var(--surface);
}
.about-stat .num {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: clamp(36px, 4vw, 52px);
  letter-spacing: -0.02em;
  color: var(--primary);
  line-height: 1;
}
.about-stat .lbl {
  margin-top: 8px;
  color: var(--text-2);
  font-size: 13px;
  line-height: 1.4;
}

.team {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 12px;
}
.team-card {
  border: 1px solid var(--border);
  border-radius: 12px;
  padding: 22px;
  background: var(--surface);
  transition: background 220ms ease, border-color 220ms ease;
}
.team-card:hover { background: var(--surface-2); border-color: var(--border-2); }
.team-avatar {
  width: 100%;
  aspect-ratio: 1 / 1;
  border-radius: 8px;
  background:
    radial-gradient(circle at 50% 35%, rgba(var(--primary-rgb), 0.25), transparent 60%),
    repeating-linear-gradient(45deg, rgba(255,255,255,0.04) 0 6px, transparent 6px 12px),
    var(--surface-2);
  border: 1px solid var(--border);
  margin-bottom: 14px;
  position: relative;
  overflow: hidden;
}
.team-avatar .pixel-eye {
  position: absolute;
  width: 8px; height: 8px;
  background: var(--primary);
  image-rendering: pixelated;
}
.team-card .nom {
  font-family: var(--font-display);
  font-weight: 600;
  font-size: 15px;
}
.team-card .role {
  font-family: var(--font-mono);
  font-size: 11px;
  color: var(--text-3);
  letter-spacing: 0.06em;
  text-transform: uppercase;
  margin-top: 4px;
}

/* ===== depoimentos ===== */
.testimonials {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 14px;
}
@media (max-width: 980px) { .testimonials { grid-template-columns: 1fr; } }
.test-card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 12px;
  padding: 28px 26px;
  display: flex;
  flex-direction: column;
  gap: 18px;
  position: relative;
  transition: background 220ms ease, border-color 220ms ease;
}
.test-card:hover { background: var(--surface-2); }
.test-card .quote-mark {
  font-family: var(--font-display);
  font-size: 56px;
  line-height: 0.6;
  color: var(--primary);
  height: 26px;
  font-weight: 700;
}
.test-card blockquote {
  margin: 0;
  font-size: 16px;
  line-height: 1.55;
  color: var(--text);
  flex: 1;
}
.test-card footer {
  display: flex;
  align-items: center;
  gap: 12px;
  border-top: 1px solid var(--border);
  padding-top: 16px;
}
.test-card .ava {
  width: 38px; height: 38px;
  border-radius: 999px;
  background: linear-gradient(135deg, rgba(var(--primary-rgb),0.35), rgba(var(--primary-rgb),0.05));
  border: 1px solid var(--border-2);
  font-family: var(--font-display);
  font-weight: 600;
  font-size: 13px;
  color: var(--text);
  display: flex; align-items: center; justify-content: center;
}
.test-card .meta { line-height: 1.2; }
.test-card .nom { font-weight: 600; font-size: 14px; }
.test-card .co { font-family: var(--font-mono); font-size: 11px; color: var(--text-3); margin-top: 4px; letter-spacing: 0.04em; }

/* ===== faq ===== */
.faq {
  display: grid;
  grid-template-columns: 1fr;
  border-top: 1px solid var(--border);
}
.faq-item {
  border-bottom: 1px solid var(--border);
  padding: 22px 0;
}
.faq-item summary {
  cursor: pointer;
  list-style: none;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 24px;
  font-family: var(--font-display);
  font-weight: 500;
  font-size: 19px;
  letter-spacing: -0.01em;
  outline: none;
  transition: color 220ms ease;
}
.faq-item summary::-webkit-details-marker { display: none; }
.faq-item summary:hover { color: var(--primary); }
.faq-item summary .plus {
  width: 28px; height: 28px;
  position: relative;
  flex: 0 0 28px;
  border: 1px solid var(--border-2);
  border-radius: 999px;
  transition: border-color 220ms ease, background 220ms ease;
}
.faq-item summary .plus::before,
.faq-item summary .plus::after {
  content: "";
  position: absolute;
  background: currentColor;
  top: 50%; left: 50%;
  transform: translate(-50%, -50%);
  transition: transform 220ms ease, opacity 220ms ease;
}
.faq-item summary .plus::before { width: 12px; height: 1.5px; }
.faq-item summary .plus::after  { width: 1.5px; height: 12px; }
.faq-item[open] summary .plus { background: var(--primary); border-color: var(--primary); color: #fff; }
.faq-item[open] summary .plus::after { opacity: 0; transform: translate(-50%, -50%) rotate(90deg); }
.faq-item .ans {
  margin-top: 16px;
  color: var(--text-2);
  max-width: 70ch;
  font-size: 15.5px;
  line-height: 1.6;
}

/* ===== final cta ===== */
.cta-final {
  position: relative;
  border-top: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
  padding: clamp(80px, 10vw, 160px) var(--pad);
  background:
    radial-gradient(ellipse at 50% 0%, rgba(var(--primary-rgb), 0.15), transparent 55%),
    var(--bg);
  text-align: center;
  overflow: hidden;
}
.cta-final h2 { max-width: 16ch; margin: 18px auto 22px; }
.cta-final p { color: var(--text-2); max-width: 50ch; margin: 0 auto 36px; font-size: 17px; }
.cta-final .cta-row { justify-content: center; display: flex; flex-wrap: wrap; gap: 14px; }
.cta-final-bg {
  position: absolute;
  inset: 0;
  pointer-events: none;
  background-image:
    linear-gradient(0deg, var(--bg) 0%, transparent 30%, transparent 70%, var(--bg) 100%),
    repeating-linear-gradient(90deg, transparent 0 40px, rgba(var(--primary-rgb), 0.08) 40px 41px),
    repeating-linear-gradient(0deg, transparent 0 40px, rgba(var(--primary-rgb), 0.08) 40px 41px);
  z-index: 0;
}
.cta-final > * { position: relative; z-index: 1; }

/* ===== footer ===== */
.footer {
  padding: 48px var(--pad) 28px;
  background: var(--bg);
  border-top: 1px solid var(--border);
}
.footer-inner {
  max-width: var(--container);
  margin: 0 auto;
  display: grid;
  grid-template-columns: 1.4fr repeat(3, 1fr);
  gap: 48px;
  margin-bottom: 36px;
}
@media (max-width: 720px) {
  .footer-inner { grid-template-columns: 1fr 1fr; gap: 28px; }
}
.footer-brand .nav-brand { margin-bottom: 14px; }
.footer p.tag {
  color: var(--text-2);
  font-size: 14px;
  max-width: 30ch;
  line-height: 1.5;
}
.footer h4 {
  font-family: var(--font-mono);
  font-size: 11px;
  text-transform: uppercase;
  letter-spacing: 0.16em;
  color: var(--text-3);
  margin-bottom: 14px;
  font-weight: 500;
}
.footer ul { list-style: none; padding: 0; margin: 0; display: flex; flex-direction: column; gap: 10px; }
.footer ul a { color: var(--text-2); font-size: 14px; transition: color 200ms ease; }
.footer ul a:hover { color: var(--text); }
.footer-bottom {
  max-width: var(--container);
  margin: 0 auto;
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding-top: 24px;
  border-top: 1px solid var(--border);
  font-family: var(--font-mono);
  font-size: 11px;
  color: var(--text-3);
  text-transform: uppercase;
  letter-spacing: 0.1em;
}

/* ===== scroll mascot ===== */
.mascot {
  position: fixed;
  right: clamp(12px, 2vw, 24px);
  bottom: clamp(12px, 2vw, 24px);
  width: 72px;
  height: 72px;
  z-index: 80;
  pointer-events: none;
  image-rendering: pixelated;
  image-rendering: crisp-edges;
  transition: transform 200ms cubic-bezier(.2, .9, .3, 1.2),
              opacity 240ms ease;
}
.mascot img {
  width: 100%; height: 100%;
  display: block;
  image-rendering: pixelated;
  image-rendering: crisp-edges;
  filter: drop-shadow(0 4px 12px rgba(var(--primary-rgb), 0.4));
}
.mascot.hidden { opacity: 0; transform: translateY(20px) scale(0.85); }
.mascot .speech {
  position: absolute;
  right: 80px;
  top: 8px;
  background: var(--surface);
  color: var(--text);
  border: 1px solid var(--border-2);
  padding: 8px 12px;
  border-radius: 8px;
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: 0.05em;
  white-space: nowrap;
  opacity: 0;
  transform: translateX(8px);
  transition: opacity 220ms ease, transform 220ms ease;
  pointer-events: none;
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.4);
}
.mascot .speech::after {
  content: "";
  position: absolute;
  top: 12px;
  right: -6px;
  border: 6px solid transparent;
  border-left-color: var(--surface);
  border-right: 0;
}
.mascot.show-speech .speech {
  opacity: 1;
  transform: translateX(0);
}

@keyframes mascotBob {
  0%, 100% { transform: translateY(0) rotate(0deg); }
  50%      { transform: translateY(-6px) rotate(-2deg); }
}
.mascot-inner {
  width: 100%; height: 100%;
  animation: mascotBob 3.4s ease-in-out infinite;
}

/* progress strip */
.scroll-progress {
  position: fixed;
  top: 0; left: 0;
  height: 2px;
  background: var(--primary);
  z-index: 200;
  width: 0%;
  transition: width 80ms linear;
  box-shadow: 0 0 12px rgba(var(--primary-rgb), 0.7);
}

/* shared utility - wraps content blocks */
.tag-pill {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 6px 12px;
  border: 1px solid var(--border-2);
  border-radius: 999px;
  font-family: var(--font-mono);
  font-size: 11px;
  text-transform: uppercase;
  letter-spacing: 0.14em;
  color: var(--text-2);
  background: var(--surface);
}
.tag-pill .dot {
  width: 6px; height: 6px;
  background: var(--primary);
  box-shadow: 0 0 8px var(--primary);
  display: inline-block;
}

/* footer pixel border decoration */
.pixel-line {
  display: flex;
  gap: 4px;
  margin-block: 20px;
}
.pixel-line span {
  width: 6px;
  height: 6px;
  background: var(--border-2);
}
.pixel-line span:nth-child(3n) { background: var(--primary); }
.pixel-line span:nth-child(7n) { background: var(--neon-cyan); }
.pixel-line span:nth-child(11n) { background: var(--neon-magenta); }
