:root {
  --bg: #08080f;
  --bg-alt: #0d0d18;
  --surface: #13131f;
  --surface-hover: #1a1a2b;
  --border: rgba(255, 255, 255, 0.08);
  --text: #f2f2f7;
  --text-muted: #9797ad;
  --accent: #8b5cf6;
  --accent-2: #06b6d4;
  --gradient: linear-gradient(135deg, var(--accent), var(--accent-2));
  --shadow-glow: 0 0 40px rgba(139, 92, 246, 0.25);
  --font-heading: 'Baloo 2', sans-serif;
  --font-body: 'Inter', sans-serif;
  --font-code: 'Fira Code', monospace;
  --container-width: 1140px;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }

body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font-family: var(--font-body);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}

h1, h2, h3 {
  font-family: var(--font-heading);
  line-height: 1.2;
  letter-spacing: -0.01em;
  margin: 0 0 16px;
}

p { margin: 0 0 16px; }
ul { list-style: none; margin: 0; padding: 0; }
a { color: inherit; text-decoration: none; }
img { max-width: 100%; display: block; }
button { font-family: inherit; cursor: pointer; }

.container {
  max-width: var(--container-width);
  margin: 0 auto;
  padding: 0 24px;
}

/* Scroll progress bar */
.scroll-progress {
  position: fixed;
  top: 0;
  left: 0;
  height: 3px;
  width: 0%;
  background: var(--gradient);
  z-index: 210;
  pointer-events: none;
}

/* Grain texture overlay */
.grain-overlay {
  position: fixed;
  inset: -100px;
  z-index: 150;
  opacity: 0.035;
  mix-blend-mode: overlay;
  pointer-events: none;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='180' height='180'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.85' numOctaves='2' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
  background-size: 180px 180px;
  animation: grainShift 8s steps(8) infinite;
}
@keyframes grainShift {
  0% { transform: translate(0, 0); }
  12% { transform: translate(-5%, -8%); }
  24% { transform: translate(-12%, 4%); }
  37% { transform: translate(6%, -10%); }
  50% { transform: translate(-8%, 8%); }
  62% { transform: translate(10%, 3%); }
  75% { transform: translate(-4%, 10%); }
  87% { transform: translate(8%, -6%); }
  100% { transform: translate(0, 0); }
}

/* Custom cursor (fine pointers only, added via JS) */
.cursor-dot, .cursor-ring {
  position: fixed;
  top: 0;
  left: 0;
  border-radius: 50%;
  pointer-events: none;
  z-index: 300;
  transform: translate(-50%, -50%);
  opacity: 0;
}
.cursor-dot {
  width: 8px;
  height: 8px;
  background: var(--accent-2);
}
.cursor-ring {
  width: 36px;
  height: 36px;
  border: 1.5px solid rgba(139, 92, 246, 0.6);
  transition: width 0.25s ease, height 0.25s ease, border-color 0.25s ease, background 0.25s ease;
}
.cursor-ring.is-active {
  width: 56px;
  height: 56px;
  border-color: var(--accent-2);
  background: rgba(6, 182, 212, 0.08);
}
body.cursor-ready { cursor: none; }
body.cursor-ready a,
body.cursor-ready button,
body.cursor-ready input,
body.cursor-ready select,
body.cursor-ready textarea { cursor: none; }
body.cursor-ready .cursor-dot,
body.cursor-ready .cursor-ring { opacity: 1; }

/* Marquee strip */
.marquee {
  overflow: hidden;
  border-top: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
  background: var(--surface);
  padding: 18px 0;
}
.marquee-inner {
  display: flex;
  width: max-content;
  animation: marqueeScroll 26s linear infinite;
}
.marquee:hover .marquee-inner { animation-play-state: paused; }
.marquee-set {
  display: flex;
  align-items: center;
  flex-shrink: 0;
}
.marquee-set span {
  font-family: var(--font-code);
  font-size: 0.9rem;
  letter-spacing: 0.05em;
  color: var(--text-muted);
  white-space: nowrap;
  padding: 0 20px;
}
.marquee-set .marquee-dot { color: var(--accent-2); padding: 0; }
@keyframes marqueeScroll {
  from { transform: translateX(0); }
  to { transform: translateX(-50%); }
}

.text-gradient {
  background: var(--gradient);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

/* Buttons */
.btn {
  position: relative;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 12px 24px;
  border-radius: 10px;
  border: 1px solid transparent;
  font-weight: 600;
  font-size: 0.95rem;
  overflow: hidden;
  transition: transform 0.25s ease, box-shadow 0.25s ease, background 0.25s ease, border-color 0.25s ease;
  white-space: nowrap;
}
.btn-lg { padding: 15px 32px; font-size: 1rem; }
.btn-primary {
  background: var(--gradient);
  color: #fff;
  box-shadow: var(--shadow-glow);
}
.btn-primary::before {
  content: '';
  position: absolute;
  top: 0;
  left: -60%;
  width: 40%;
  height: 100%;
  background: linear-gradient(120deg, transparent, rgba(255, 255, 255, 0.35), transparent);
  transform: skewX(-20deg);
  transition: left 0.6s ease;
  pointer-events: none;
}
.btn-primary:hover { transform: translateY(-2px) scale(1.02); box-shadow: 0 0 55px rgba(139, 92, 246, 0.4); }
.btn-primary:hover::before { left: 130%; }
.btn-ghost {
  background: linear-gradient(90deg, var(--accent), var(--accent-2));
  background-size: 0% 100%;
  background-repeat: no-repeat;
  background-position: left center;
  color: var(--text);
  border-color: var(--border);
  transition: transform 0.25s ease, box-shadow 0.25s ease, background-size 0.4s ease, border-color 0.3s ease, color 0.3s ease;
}
.btn-ghost:hover {
  background-size: 100% 100%;
  color: #fff;
  border-color: transparent;
  transform: translateY(-2px);
}

/* Header */
.header {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 100;
  padding: 20px 0;
  transition: padding 0.3s ease, background 0.3s ease, backdrop-filter 0.3s ease, box-shadow 0.3s ease;
}
.header.scrolled {
  padding: 12px 0;
  background: rgba(8, 8, 15, 0.8);
  backdrop-filter: blur(12px);
  box-shadow: 0 1px 0 var(--border);
}
.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
}
.brand {
  display: flex;
  align-items: center;
  gap: 12px;
  font-family: var(--font-heading);
  font-weight: 600;
  font-size: 1.1rem;
}
.brand-icon {
  width: 40px;
  height: auto;
  animation: brandFloat 4s ease-in-out infinite;
  transition: filter 0.3s ease, transform 0.3s ease;
}
.brand:hover .brand-icon {
  transform: scale(1.08) rotate(-4deg);
  filter: drop-shadow(0 0 14px rgba(139, 92, 246, 0.55));
}
.brand-dot { color: var(--accent); }
.brand-accent { color: var(--accent-2); }
@keyframes brandFloat {
  0%, 100% { transform: translateY(0); filter: drop-shadow(0 0 0 rgba(139,92,246,0)); }
  50% { transform: translateY(-3px); filter: drop-shadow(0 0 10px rgba(139,92,246,0.35)); }
}

.nav {
  display: flex;
  align-items: center;
  gap: 32px;
}
.nav-link {
  position: relative;
  color: var(--text-muted);
  font-weight: 500;
  font-size: 0.95rem;
  transition: color 0.2s ease;
}
.nav-link::after {
  content: '';
  position: absolute;
  left: 0;
  bottom: -4px;
  width: 100%;
  height: 2px;
  background: var(--gradient);
  transform: scaleX(0);
  transform-origin: left;
  transition: transform 0.3s ease;
}
.nav-link:hover { color: var(--text); }
.nav-link:hover::after { transform: scaleX(1); }
.nav-cta { padding: 10px 22px; font-size: 0.9rem; }

.nav-toggle {
  display: none;
  flex-direction: column;
  justify-content: center;
  gap: 5px;
  width: 40px;
  height: 40px;
  background: none;
  border: none;
}
.nav-toggle span {
  display: block;
  width: 22px;
  height: 2px;
  background: var(--text);
  margin: 0 auto;
  transition: transform 0.3s ease, opacity 0.3s ease;
}
.nav-toggle.open span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.nav-toggle.open span:nth-child(2) { opacity: 0; }
.nav-toggle.open span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

/* Hero */
.hero {
  position: relative;
  padding: 170px 0 120px;
  overflow: hidden;
}
.hero-bg {
  position: absolute;
  inset: 0;
  z-index: 0;
  overflow: hidden;
}
.blob {
  position: absolute;
  border-radius: 50%;
  filter: blur(90px);
  opacity: 0.35;
}
.blob-1 {
  width: 480px;
  height: 480px;
  background: var(--accent);
  top: -120px;
  left: -100px;
}
.blob-2 {
  width: 420px;
  height: 420px;
  background: var(--accent-2);
  bottom: -140px;
  right: -80px;
}
.grid-overlay {
  position: absolute;
  inset: 0;
  background-image:
    linear-gradient(rgba(255,255,255,0.035) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255,255,255,0.035) 1px, transparent 1px);
  background-size: 48px 48px;
  mask-image: radial-gradient(ellipse at center, black 40%, transparent 80%);
}

.hero-inner {
  position: relative;
  z-index: 1;
  display: grid;
  grid-template-columns: 1.1fr 0.9fr;
  gap: 60px;
  align-items: center;
}
.eyebrow, .section-eyebrow {
  display: inline-block;
  font-family: var(--font-code);
  font-size: 0.85rem;
  color: var(--accent-2);
  letter-spacing: 0.05em;
  margin-bottom: 16px;
}
.hero h1 {
  font-size: clamp(2.2rem, 4.2vw, 3.4rem);
  font-weight: 700;
}
.hero-lead {
  font-size: 1.1rem;
  color: var(--text-muted);
  max-width: 46ch;
}
.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 16px;
  margin: 28px 0;
}
.hero-highlights {
  display: flex;
  flex-wrap: wrap;
  gap: 20px;
}
.hero-highlights li {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 0.9rem;
  color: var(--text-muted);
}
.icon-check { width: 18px; height: 18px; color: var(--accent-2); flex-shrink: 0; }

.hero-showcase {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 20px;
  padding: 48px 32px;
  min-height: 320px;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 28px;
  text-align: center;
  box-shadow: 0 30px 60px rgba(0,0,0,0.45);
}
.hero-showcase-logo {
  width: min(55%, 200px);
  height: auto;
  animation: heroLogoFloat 3.6s ease-in-out infinite;
}
@keyframes heroLogoFloat {
  0%, 100% { transform: translateY(0); filter: drop-shadow(0 0 16px rgba(139,92,246,0.25)); }
  50% { transform: translateY(-8px); filter: drop-shadow(0 0 34px rgba(6,182,212,0.35)); }
}
.hero-rotator {
  font-family: var(--font-heading);
  font-size: 1.15rem;
  font-weight: 600;
  color: var(--text);
  min-height: 2.6em;
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0;
}
#rotatorText {
  display: inline-block;
  transition: opacity 0.35s ease;
}

/* Section shared */
section { padding: 100px 0; position: relative; }
.section-title {
  font-size: clamp(1.7rem, 3vw, 2.3rem);
  text-align: center;
  max-width: 720px;
  margin-left: auto;
  margin-right: auto;
}
.section-subtitle {
  text-align: center;
  color: var(--text-muted);
  max-width: 560px;
  margin: -8px auto 48px;
}
.servicos, .diferenciais, .processo, .stack, .sobre { text-align: center; }
.servicos .section-eyebrow, .diferenciais .section-eyebrow, .processo .section-eyebrow, .stack .section-eyebrow, .sobre .section-eyebrow {
  display: block;
}

/* Cards / Services */
.cards-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 24px;
  margin-top: 32px;
  perspective: 1000px;
}
.card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 16px;
  padding: 32px 28px;
  text-align: left;
  transition: transform 0.3s ease, border-color 0.3s ease, box-shadow 0.3s ease;
}
.card:hover {
  transform: translateY(-6px);
  border-color: rgba(139, 92, 246, 0.4);
  box-shadow: 0 20px 40px rgba(139, 92, 246, 0.12);
}
.card-icon { font-size: 1.8rem; margin-bottom: 16px; }
.card h3 { font-size: 1.1rem; margin-bottom: 10px; }
.card p { color: var(--text-muted); font-size: 0.95rem; margin: 0; }

/* Portfólio */
.portfolio-header {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  align-items: flex-end;
  gap: 24px;
  margin-bottom: 40px;
}
.portfolio-title {
  font-size: clamp(1.7rem, 3vw, 2.3rem);
  margin: 0;
}
.portfolio-subtitle { color: var(--text-muted); margin: 0; max-width: 320px; }
.portfolio-list { display: flex; flex-direction: column; gap: 28px; }
.portfolio-card {
  display: grid;
  grid-template-columns: 1fr 1fr;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 20px;
  overflow: hidden;
  transition: transform 0.3s ease, border-color 0.3s ease, box-shadow 0.3s ease;
}
.portfolio-card:hover {
  transform: translateY(-4px);
  border-color: rgba(139, 92, 246, 0.4);
  box-shadow: 0 24px 48px rgba(139, 92, 246, 0.12);
}
.portfolio-media {
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 32px;
  min-height: 260px;
}
.portfolio-logo { max-width: 100%; max-height: 160px; width: auto; margin: 0 auto; border-radius: 8px; }
.portfolio-media-accent {
  background: linear-gradient(135deg, #ff6b35, #c81d25);
  flex-direction: column;
  gap: 16px;
}
.portfolio-emoji { font-size: 4rem; }
.portfolio-domain {
  font-family: var(--font-code);
  font-size: 0.85rem;
  color: rgba(255, 255, 255, 0.85);
  letter-spacing: 0.03em;
}
.portfolio-info { padding: 36px 40px; display: flex; flex-direction: column; }
.portfolio-meta {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 16px;
}
.portfolio-tag {
  font-family: var(--font-code);
  font-size: 0.8rem;
  letter-spacing: 0.05em;
  color: var(--accent-2);
  text-transform: uppercase;
}
.portfolio-date {
  font-family: var(--font-code);
  font-size: 0.8rem;
  color: var(--text-muted);
}
.portfolio-info h3 { font-size: 1.5rem; margin-bottom: 12px; }
.portfolio-info > p { color: var(--text-muted); margin-bottom: 20px; }
.portfolio-stack {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-bottom: 24px;
}
.portfolio-link {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  margin-top: auto;
  font-weight: 600;
  color: var(--text);
  transition: color 0.2s ease, gap 0.2s ease;
}
.portfolio-link svg { width: 16px; height: 16px; transition: transform 0.25s ease; }
.portfolio-link:hover { color: var(--accent-2); gap: 12px; }
.portfolio-link:hover svg { transform: translate(2px, -2px); }

/* Diferenciais */
.diferenciais-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: 24px;
  margin-top: 32px;
  text-align: left;
}
.diferencial {
  padding: 28px;
  border-radius: 16px;
  border: 1px solid var(--border);
  background: linear-gradient(180deg, var(--surface), transparent);
}
.diferencial-num {
  font-family: var(--font-code);
  font-size: 1.6rem;
  font-weight: 600;
  color: transparent;
  -webkit-text-stroke: 1px var(--accent-2);
  margin-bottom: 12px;
}
.diferencial h3 { font-size: 1.05rem; margin-bottom: 8px; }
.diferencial p { color: var(--text-muted); font-size: 0.92rem; margin: 0; }

/* Processo / Timeline */
.timeline {
  position: relative;
  max-width: 720px;
  margin: 48px auto 0;
  text-align: left;
}
.timeline-line {
  position: absolute;
  left: 23px;
  top: 8px;
  bottom: 8px;
  width: 2px;
  background: var(--border);
}
.timeline-progress {
  display: block;
  width: 100%;
  height: 0%;
  background: var(--gradient);
  transform-origin: top;
}
.timeline-step {
  position: relative;
  display: flex;
  gap: 24px;
  padding-bottom: 40px;
}
.timeline-step:last-child { padding-bottom: 0; }
.timeline-marker {
  flex-shrink: 0;
  width: 48px;
  height: 48px;
  border-radius: 50%;
  background: var(--surface);
  border: 1px solid var(--border);
  display: flex;
  align-items: center;
  justify-content: center;
  font-family: var(--font-heading);
  font-weight: 700;
  color: var(--accent-2);
  z-index: 1;
}
.timeline-content h3 { font-size: 1.1rem; margin-bottom: 6px; }
.timeline-content p { color: var(--text-muted); margin: 0; font-size: 0.95rem; }

/* Stack */
.stack-badges {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 14px;
  margin-top: 32px;
}
.badge {
  padding: 10px 20px;
  border-radius: 999px;
  border: 1px solid var(--border);
  background: var(--surface);
  font-family: var(--font-code);
  font-size: 0.88rem;
  color: var(--text-muted);
  transition: color 0.2s ease, border-color 0.2s ease;
}
.badge:hover { color: var(--text); border-color: var(--accent); }

/* Sobre */
.sobre-inner { max-width: 680px; }
.sobre-text { color: var(--text-muted); font-size: 1.05rem; }
.sobre-values {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 12px;
  margin-top: 24px;
}
.sobre-values li {
  padding: 8px 18px;
  border-radius: 999px;
  background: var(--surface);
  border: 1px solid var(--border);
  font-size: 0.88rem;
  color: var(--text-muted);
}

/* CTA final */
.cta-final { padding: 0; }
.cta-final-inner {
  background: var(--gradient);
  border-radius: 24px;
  padding: 64px 32px;
  text-align: center;
  color: #fff;
}
.cta-final-inner h2 { font-size: clamp(1.6rem, 3vw, 2.1rem); margin-bottom: 12px; }
.cta-final-inner p { opacity: 0.9; margin-bottom: 28px; }
.cta-final-inner .btn-primary {
  background: #fff;
  color: var(--accent);
  box-shadow: 0 20px 40px rgba(0,0,0,0.2);
}
.cta-final-inner .btn-primary:hover { box-shadow: 0 24px 50px rgba(0,0,0,0.3); }

/* Contato */
.contato-inner {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 60px;
  align-items: start;
}
.contato-list { margin: 28px 0; display: flex; flex-direction: column; gap: 16px; }
.contato-list li { display: flex; align-items: center; gap: 12px; }
.icon-wpp, .icon-phone { width: 24px; height: 24px; color: var(--accent-2); flex-shrink: 0; }
.contato-list a { font-weight: 600; transition: color 0.2s ease; }
.contato-list a:hover { color: var(--accent-2); }
.contato-note { color: var(--text-muted); font-size: 0.92rem; }

.contato-form {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 16px;
  padding: 32px;
  display: flex;
  flex-direction: column;
  gap: 18px;
}
.form-field { display: flex; flex-direction: column; gap: 8px; }
.form-field label { font-size: 0.88rem; color: var(--text-muted); }
.form-field input, .form-field select, .form-field textarea {
  background: var(--bg-alt);
  border: 1px solid var(--border);
  border-radius: 8px;
  padding: 12px 14px;
  color: var(--text);
  font-family: inherit;
  font-size: 0.95rem;
  resize: vertical;
  transition: border-color 0.2s ease;
}
.form-field input:focus, .form-field select:focus, .form-field textarea:focus {
  outline: none;
  border-color: var(--accent);
}
.form-submit { width: 100%; margin-top: 4px; }
.form-consent {
  margin: 0;
  font-size: 0.82rem;
  color: var(--text-muted);
  text-align: center;
}
.form-consent a { color: var(--accent-2); text-decoration: underline; text-underline-offset: 2px; }

/* Footer */
.footer { padding: 56px 0 48px; border-top: 1px solid var(--border); }
.footer-inner {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 12px;
  text-align: center;
  color: var(--text-muted);
  font-size: 0.9rem;
}
.footer-logo {
  width: min(70%, 280px);
  height: auto;
  margin-bottom: 8px;
  animation: footerLogoGlow 5s ease-in-out infinite;
}
@keyframes footerLogoGlow {
  0%, 100% { filter: drop-shadow(0 0 0 rgba(139,92,246,0)); }
  50% { filter: drop-shadow(0 0 22px rgba(139,92,246,0.3)); }
}
.footer-links {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 8px 16px;
}
.footer-links a { color: var(--text-muted); transition: color 0.2s ease; }
.footer-links a:hover { color: var(--accent-2); }

/* Legal page (Termos de Uso / Política de Privacidade) */
.legal-hero { padding: 160px 0 32px; text-align: center; }
.legal-hero h1 {
  font-size: clamp(1.8rem, 3.6vw, 2.6rem);
  max-width: 780px;
  margin: 0 auto 12px;
}
.legal-updated { color: var(--text-muted); font-size: 0.9rem; margin: 0; }
.legal { padding-top: 0; padding-bottom: 100px; }
.legal-container {
  display: grid;
  grid-template-columns: 220px 1fr;
  gap: 48px;
  align-items: start;
}
.legal-toc {
  position: sticky;
  top: 110px;
  display: flex;
  flex-direction: column;
  gap: 12px;
  padding: 20px;
  border: 1px solid var(--border);
  border-radius: 16px;
  background: var(--surface);
}
.legal-toc a {
  color: var(--text-muted);
  font-size: 0.9rem;
  font-weight: 600;
  transition: color 0.2s ease;
}
.legal-toc a:hover { color: var(--accent-2); }
.legal-content { max-width: 720px; }
.legal-content h2 {
  font-size: 1.6rem;
  margin-top: 48px;
  padding-top: 32px;
  border-top: 1px solid var(--border);
}
.legal-content h2:first-child { margin-top: 0; padding-top: 0; border-top: none; }
.legal-content ol {
  list-style: none;
  margin: 24px 0 0;
  display: flex;
  flex-direction: column;
  gap: 28px;
}
.legal-content ol li h3 { font-size: 1.05rem; margin-bottom: 8px; }
.legal-content p { color: var(--text-muted); font-size: 0.98rem; margin: 0; }
.legal-content ul {
  list-style: disc;
  padding-left: 20px;
  display: flex;
  flex-direction: column;
  gap: 6px;
  margin: 12px 0 0;
  color: var(--text-muted);
  font-size: 0.98rem;
}
.legal-content a { color: var(--accent-2); text-decoration: underline; text-underline-offset: 3px; }

/* Intro logo splash */
.intro-overlay {
  position: fixed;
  inset: 0;
  z-index: 200;
  display: flex;
  align-items: center;
  justify-content: center;
  background: var(--bg);
  animation: introHide 0.5s ease forwards;
  animation-delay: 1.3s;
  pointer-events: none;
}
.intro-logo {
  width: min(60vw, 240px);
  height: auto;
  opacity: 0;
  transform: scale(0.82);
  animation:
    introLogoIn 0.7s cubic-bezier(0.16, 1, 0.3, 1) forwards,
    introLogoGlow 1.8s ease-in-out infinite;
}
@keyframes introHide {
  to { opacity: 0; visibility: hidden; }
}
@keyframes introLogoIn {
  to { opacity: 1; transform: scale(1); }
}
@keyframes introLogoGlow {
  0%, 100% { filter: drop-shadow(0 0 16px rgba(139, 92, 246, 0.3)); }
  50% { filter: drop-shadow(0 0 34px rgba(6, 182, 212, 0.4)); }
}

/* WhatsApp float */
.whatsapp-float {
  position: fixed;
  bottom: 24px;
  right: 24px;
  width: 56px;
  height: 56px;
  border-radius: 50%;
  background: #25d366;
  color: #fff;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 10px 30px rgba(37, 211, 102, 0.4);
  z-index: 90;
  transition: transform 0.25s ease;
}
.whatsapp-float:hover { transform: scale(1.08); }
.whatsapp-float svg { width: 30px; height: 30px; }

/* Reveal animation base state - only hidden once GSAP confirms it can animate it back in */
.gsap-ready .reveal { opacity: 0; transform: translateY(24px); }

/* Responsive */
@media (max-width: 960px) {
  .hero-inner { grid-template-columns: 1fr; }
  .hero-visual { order: -1; }
  .contato-inner { grid-template-columns: 1fr; }
  .legal-container { grid-template-columns: 1fr; }
  .legal-toc { position: static; flex-direction: row; flex-wrap: wrap; }
  .portfolio-card { grid-template-columns: 1fr; }
  .portfolio-header { align-items: flex-start; }
  .nav {
    position: fixed;
    top: 0;
    right: 0;
    height: 100vh;
    width: min(78vw, 320px);
    background: var(--bg-alt);
    border-left: 1px solid var(--border);
    flex-direction: column;
    align-items: flex-start;
    justify-content: center;
    gap: 28px;
    padding: 40px;
    transform: translateX(100%);
    transition: transform 0.35s ease;
  }
  .nav.open { transform: translateX(0); }
  .nav-cta { margin-top: 8px; }
  .nav-toggle { display: flex; }
}

@media (max-width: 640px) {
  .hero { padding: 140px 0 80px; }
  section { padding: 72px 0; }
  .hero-actions { flex-direction: column; align-items: stretch; }
  .cta-final-inner { padding: 48px 24px; }
  .portfolio-info { padding: 28px 24px; }
  .portfolio-media { padding: 24px; min-height: 200px; }
}

@media (max-width: 640px) {
  .marquee-set span { font-size: 0.8rem; padding: 0 14px; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .reveal { opacity: 1; transform: none; }
  .intro-overlay { display: none; }
  .brand-icon, .footer-logo, .hero-showcase-logo, .grain-overlay { animation: none; }
  .marquee-inner { animation: none; }
  .marquee-set:last-child { display: none; }
  .cursor-dot, .cursor-ring { display: none; }
  *, *::before, *::after { transition-duration: 0.01ms !important; animation-duration: 0.01ms !important; }
}
