/* =========================================================
   Lecember — tons frios (índigo / ciano / teal)
   ========================================================= */

:root {
  --bg: #060b17;
  --bg-2: #0a1224;
  --surface: rgba(255, 255, 255, 0.045);
  --surface-2: rgba(255, 255, 255, 0.075);
  --line: rgba(140, 180, 255, 0.14);
  --text: #e8eefc;
  --muted: #93a3c4;
  --cyan: #38e1ff;
  --blue: #4f7cff;
  --indigo: #6c5cff;
  --teal: #2ee6c5;
  --grad: linear-gradient(100deg, #38e1ff, #4f7cff 45%, #6c5cff);
  --radius: 18px;
  --shadow: 0 24px 60px rgba(2, 8, 23, 0.55);
  --font: "Inter", system-ui, -apple-system, sans-serif;
  --display: "Space Grotesk", var(--font);
}

* { box-sizing: border-box; margin: 0; padding: 0; }

html { scroll-behavior: smooth; scroll-padding-top: 6rem; }

body {
  font-family: var(--font);
  background:
    radial-gradient(1200px 700px at 80% -10%, rgba(79, 124, 255, 0.16), transparent 60%),
    radial-gradient(900px 600px at -10% 40%, rgba(56, 225, 255, 0.10), transparent 60%),
    var(--bg);
  color: var(--text);
  line-height: 1.6;
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
}

img { max-width: 100%; display: block; }
a { color: inherit; text-decoration: none; }

a:focus-visible, button:focus-visible, summary:focus-visible {
  outline: 3px solid var(--cyan);
  outline-offset: 4px;
}

.skip-link {
  position: fixed;
  top: 0.75rem;
  left: 0.75rem;
  z-index: 200;
  padding: 0.7rem 1rem;
  border-radius: 0.6rem;
  background: var(--text);
  color: var(--bg);
  transform: translateY(-180%);
}
.skip-link:focus { transform: translateY(0); }

.container {
  width: min(1160px, 92vw);
  margin-inline: auto;
}

/* ---------- Utilidades ---------- */
.grad {
  background: var(--grad);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

.kicker {
  font-size: 0.78rem;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--cyan);
  font-weight: 600;
  display: inline-flex;
  align-items: center;
  gap: 0.6em;
}

.dot {
  width: 8px; height: 8px; border-radius: 50%;
  background: var(--teal);
}

/* ---------- Botões ---------- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.55em;
  padding: 0.78em 1.5em;
  border-radius: 999px;
  font-weight: 600;
  font-size: 0.95rem;
  border: 1px solid transparent;
  cursor: pointer;
  transition: transform 0.25s cubic-bezier(.2,.8,.3,1), box-shadow 0.25s, background 0.25s, border-color 0.25s;
  white-space: nowrap;
}
.btn-lg { padding: 1em 1.9em; font-size: 1rem; }

.btn-primary {
  background: var(--grad);
  color: #04101f;
  box-shadow: 0 12px 30px rgba(79, 124, 255, 0.32);
}
.btn-primary:hover { transform: translateY(-3px); box-shadow: 0 18px 40px rgba(79, 124, 255, 0.45); }

.btn-ghost {
  background: var(--surface);
  border-color: var(--line);
  color: var(--text);
  backdrop-filter: blur(10px);
}
.btn-ghost:hover { background: var(--surface-2); border-color: rgba(140, 180, 255, 0.4); transform: translateY(-3px); }

/* ---------- Navbar ---------- */
.navbar {
  position: fixed;
  top: 0; left: 0; right: 0;
  z-index: 50;
  padding: 1rem 0;
  transition: background 0.3s, padding 0.3s, border-color 0.3s;
  border-bottom: 1px solid transparent;
}
.navbar.scrolled {
  background: rgba(6, 11, 23, 0.82);
  backdrop-filter: blur(12px);
  border-bottom-color: var(--line);
  padding: 0.6rem 0;
}

.nav-inner { display: flex; align-items: center; justify-content: space-between; gap: 1rem; }

.logo { display: inline-flex; align-items: center; gap: 0.65rem; font-family: var(--display); font-weight: 700; }
.logo-mark { width: 32px; height: 32px; display: block; flex-shrink: 0; }
.logo-text { letter-spacing: 0.04em; font-size: 1rem; }
.logo-text em { font-style: normal; color: var(--cyan); }

.nav-links { display: flex; gap: 1.7rem; }
.nav-links a {
  font-size: 0.92rem;
  color: var(--muted);
  position: relative;
  transition: color 0.25s;
}
.nav-links a::after {
  content: "";
  position: absolute; left: 0; bottom: -6px;
  width: 0; height: 2px;
  background: var(--grad);
  transition: width 0.3s;
}
.nav-links a:hover, .nav-links a.active, .nav-links a[aria-current="page"] { color: var(--text); }
.nav-links a:hover::after, .nav-links a.active::after, .nav-links a[aria-current="page"]::after { width: 100%; }

.nav-toggle {
  display: none;
  flex-direction: column;
  gap: 5px;
  background: none;
  border: 0;
  padding: 8px;
  cursor: pointer;
}
.nav-toggle span { width: 24px; height: 2px; background: var(--text); border-radius: 2px; transition: 0.3s; }
.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;
  isolation: isolate;
  padding: 11rem 0 6rem;
  background-image:
    radial-gradient(ellipse 38% 75% at 8% 18%, rgba(40, 104, 255, 0.28), transparent 72%),
    radial-gradient(ellipse 32% 54% at 67% 72%, rgba(108, 92, 255, 0.16), transparent 72%),
    radial-gradient(ellipse 30% 60% at 100% 94%, rgba(46, 230, 197, 0.13), transparent 72%),
    linear-gradient(rgba(138, 164, 210, 0.045) 1px, transparent 1px),
    linear-gradient(90deg, rgba(138, 164, 210, 0.045) 1px, transparent 1px);
  background-size: auto, auto, auto, 64px 64px, 64px 64px;
  background-position: center, center, center, center top, center top;
}
.hero-inner {
  display: block;
  max-width: 1160px;
}
.hero-main {
  display: grid;
  grid-template-columns: minmax(0, 1.15fr) minmax(0, 0.85fr);
  align-items: center;
  gap: clamp(2rem, 5vw, 4.5rem);
}
.hero-copy { max-width: 620px; }
.hero h1 { max-width: 900px; }
.hero-stats {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  max-width: none;
  margin-top: 3rem;
  padding: 1.35rem 1rem;
  background: linear-gradient(135deg, rgba(56, 225, 255, 0.09), rgba(79, 124, 255, 0.12) 55%, rgba(108, 92, 255, 0.12));
  border: 1px solid rgba(140, 180, 255, 0.2);
  border-radius: 18px;
  box-shadow: 0 18px 42px rgba(2, 8, 23, 0.28);
}

.hero h1 {
  font-family: var(--display);
  font-size: clamp(2.4rem, 5.2vw, 4.2rem);
  line-height: 1.05;
  letter-spacing: -0.02em;
  margin: 1.2rem 0 1.4rem;
}

.hero-lead { color: var(--muted); font-size: 1.08rem; max-width: 42rem; }

/* Prévia visual inspirada em uma tela holográfica, sem imagens ou bibliotecas extras. */
.hero-visual { position: relative; isolation: isolate; width: 100%; max-width: 580px; margin-inline: auto; aspect-ratio: 1.2; display: grid; place-items: center; }
.holo-glow { position: absolute; z-index: -1; inset: 14% 8%; background: radial-gradient(ellipse, rgba(56, 225, 255, 0.23), rgba(79, 124, 255, 0.15) 46%, transparent 72%); }
.site-preview {
  width: 100%; overflow: hidden; border: 1px solid rgba(114, 183, 255, 0.5); border-radius: 22px;
  background: linear-gradient(135deg, rgba(56, 225, 255, 0.6), rgba(79, 124, 255, 0.38) 48%, rgba(108, 92, 255, 0.65));
  padding: 1px; box-shadow: 0 28px 70px rgba(0, 0, 0, 0.44), 0 0 40px rgba(79, 124, 255, 0.18);
  transform: perspective(1100px) rotateY(-7deg) rotateX(2deg);
}
.preview-top { height: 42px; display: grid; grid-template-columns: 1fr auto; align-items: center; gap: 0.5rem; padding: 0 1rem; color: #8fa4c6; background: #080e1c; border-radius: 21px 21px 0 0; }
.preview-dots { display: flex; gap: 5px; }
.preview-dots i { width: 7px; height: 7px; border-radius: 50%; background: #38e1ff; opacity: 0.85; }
.preview-dots i:nth-child(2) { background: #4f7cff; }
.preview-dots i:nth-child(3) { background: #6c5cff; }
.preview-lock { justify-self: end; color: var(--teal); font-size: 0.65rem; }
.preview-page { min-height: 330px; padding: 0 1.45rem 1rem; color: var(--text); background: radial-gradient(ellipse at 100% 30%, rgba(79, 124, 255, 0.15), transparent 42%), linear-gradient(150deg, #111c34, #080e1c 78%); border-radius: 0 0 21px 21px; }
.preview-nav { display: flex; align-items: center; justify-content: space-between; min-height: 58px; border-bottom: 1px solid rgba(140, 180, 255, 0.12); }
.preview-brand { display: inline-flex; align-items: center; gap: 0.5rem; font-family: var(--display); font-weight: 600; font-size: 0.77rem; text-transform: capitalize; }
.preview-brand i { width: 17px; height: 17px; border-radius: 6px; background: var(--grad); }
.preview-menu { display: flex; gap: 0.85rem; }
.preview-menu i { width: 27px; height: 3px; border-radius: 9px; background: rgba(199, 214, 241, 0.45); }
.preview-content { display: grid; grid-template-columns: minmax(0, 1.1fr) minmax(130px, 0.9fr); align-items: center; gap: 1rem; padding: 1.65rem 0 1.25rem; }
.preview-copy { display: flex; flex-direction: column; align-items: flex-start; }
.preview-eyebrow { margin-bottom: 0.6rem; color: var(--cyan); font-size: 0.58rem; font-weight: 700; letter-spacing: 0.15em; }
.preview-title { font-family: var(--display); font-size: clamp(1.45rem, 2.4vw, 2.05rem); font-weight: 600; line-height: 1.04; letter-spacing: -0.04em; }
.preview-title b { color: #8a9aff; font-weight: 600; }
.preview-text { max-width: 16rem; margin-top: 0.65rem; color: #9aabc9; font-size: 0.67rem; line-height: 1.5; }
.preview-button { display: inline-flex; align-items: center; gap: 0.5rem; margin-top: 0.9rem; padding: 0.5rem 0.75rem; border-radius: 8px; color: #05111e; background: var(--grad); font-size: 0.63rem; font-weight: 700; }
.preview-art { position: relative; display: grid; place-items: center; justify-self: center; width: 154px; aspect-ratio: 1; border: 1px solid rgba(140, 180, 255, 0.2); border-radius: 50%; background: radial-gradient(circle at 35% 30%, rgba(56, 225, 255, 0.25), rgba(79, 124, 255, 0.12) 45%, rgba(6, 11, 23, 0.35) 70%); box-shadow: inset 0 0 36px rgba(79, 124, 255, 0.15), 0 0 35px rgba(56, 225, 255, 0.09); }
.preview-art-ring { position: absolute; inset: 13%; border: 1px solid rgba(56, 225, 255, 0.42); border-radius: 50%; transform: rotate(-28deg) scaleY(0.53); }
.preview-art-mark { font-family: var(--display); font-size: 4rem; font-weight: 700; line-height: 1; color: transparent; background: var(--grad); background-clip: text; -webkit-background-clip: text; }
.preview-art-caption { position: absolute; bottom: 13%; color: #b7c7e7; font-size: 0.52rem; letter-spacing: 0.1em; text-transform: uppercase; }
.preview-bottom { display: flex; align-items: center; gap: 0.45rem; padding-top: 0.8rem; border-top: 1px solid rgba(140, 180, 255, 0.1); color: #7f91b1; font-size: 0.57rem; }
.preview-bottom i { width: 5px; height: 5px; border-radius: 50%; background: var(--cyan); }
.preview-bottom i:nth-child(2) { background: var(--blue); }
.preview-bottom i:nth-child(3) { background: var(--indigo); }
.preview-bottom span { margin-left: auto; }

.page-hero { padding: 10.5rem 0 3.5rem; }
.page-hero h1 {
  max-width: 54rem;
  font-family: var(--display);
  font-size: clamp(2.35rem, 5.2vw, 4rem);
  line-height: 1.08;
  letter-spacing: -0.025em;
  margin: 1rem 0;
}
.page-lead { max-width: 42rem; color: var(--muted); font-size: 1.08rem; margin-bottom: 1.7rem; }

.hero-actions { display: flex; flex-wrap: wrap; gap: 0.9rem; margin-top: 2.2rem; }

.stat { min-width: 0; padding: 0 1rem; }
.stat + .stat { border-left: 1px solid rgba(140, 180, 255, 0.2); }
.stat strong {
  display: block;
  font-family: var(--display);
  font-size: 1.12rem;
  line-height: 1.3;
  color: var(--text);
}
.stat span { font-size: 0.86rem; color: var(--muted); }

/* ---------- Seções ---------- */
section[id] { scroll-margin-top: 84px; }
.section { padding: 6.5rem 0; position: relative; }
.section-alt {
  background: linear-gradient(180deg, rgba(255,255,255,0.02), rgba(255,255,255,0.045));
  border-block: 1px solid var(--line);
}

.section-head { max-width: 44rem; margin-bottom: 3.2rem; }
.section-head h2, .contact-box h2 {
  font-family: var(--display);
  font-size: clamp(1.9rem, 3.6vw, 2.9rem);
  line-height: 1.1;
  letter-spacing: -0.02em;
  margin: 0.8rem 0 0.9rem;
}
.section-lead { color: var(--muted); }

/* Cards de serviço */
.cards { display: grid; grid-template-columns: repeat(4, 1fr); gap: 1.4rem; }

.card {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 1.8rem 1.5rem;
  transition: transform 0.35s cubic-bezier(.2,.8,.3,1), background 0.35s, border-color 0.35s;
  position: relative;
  overflow: hidden;
}
.card::before {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(160deg, rgba(56, 225, 255, 0.14), transparent 55%);
  opacity: 0;
  transition: opacity 0.35s;
}
.card:hover { transform: translateY(-8px); background: var(--surface-2); border-color: rgba(56, 225, 255, 0.4); }
.card:hover::before { opacity: 1; }
.card > * { position: relative; }

.card-icon {
  font-family: var(--display);
  font-size: 0.85rem;
  color: var(--cyan);
  border: 1px solid var(--line);
  border-radius: 10px;
  width: 42px; height: 42px;
  display: grid; place-items: center;
  margin-bottom: 1.1rem;
  background: rgba(56, 225, 255, 0.08);
}
.card h3 { font-family: var(--display); font-size: 1.12rem; margin-bottom: 0.5rem; }
.card p { color: var(--muted); font-size: 0.93rem; }

/* ---------- Portfólio ---------- */
.portfolio-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1.6rem; }
.portfolio-grid-page { grid-template-columns: repeat(2, minmax(0, 1fr)); max-width: 920px; margin-inline: auto; }
.portfolio-cta {
  display: flex;
  align-items: center;
  justify-content: center;
  flex-wrap: wrap;
  gap: 1rem 1.5rem;
  margin-top: 2rem;
  color: var(--muted);
}

.quick-page-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 1.4rem; }
.quick-page { display: block; color: inherit; transition: transform 0.25s, border-color 0.25s; }
.quick-page:hover { transform: translateY(-5px); border-color: rgba(56, 225, 255, 0.45); }
.quick-page .card-icon, .quick-page h3, .quick-page p, .quick-page-link { position: relative; }
.quick-page-link { display: inline-flex; gap: 0.5rem; margin-top: 1.2rem; color: var(--cyan); font-weight: 600; }
.page-cta { display: flex; align-items: center; justify-content: center; flex-wrap: wrap; gap: 1rem 1.5rem; margin-top: 3rem; text-align: center; }
.page-cta p { color: var(--muted); }

.project {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  overflow: hidden;
  transition: transform 0.35s cubic-bezier(.2,.8,.3,1), border-color 0.35s, box-shadow 0.35s;
}
.project:hover {
  transform: translateY(-8px);
  border-color: rgba(79, 124, 255, 0.5);
  box-shadow: var(--shadow);
}

.project-thumb {
  aspect-ratio: 16 / 10;
  position: relative;
  display: grid;
  place-items: center;
  overflow: hidden;
}
.project-thumb img { width: 100%; height: 100%; object-fit: cover; }
.thumb-a { background: #123a6b; }
.thumb-b { background: #201b16; }
.thumb-c { background: #0d4a4a; }

.thumb-tag {
  position: relative;
  z-index: 1;
  font-size: 0.72rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  font-weight: 600;
  padding: 0.45em 1em;
  border-radius: 999px;
  background: rgba(6, 11, 23, 0.7);
  border: 1px solid rgba(255, 255, 255, 0.25);
  backdrop-filter: none;
}

.project-info {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  padding: 1.3rem 1.4rem;
}
.project-info h3 { font-family: var(--display); font-size: 1.05rem; }
.project-info p { color: var(--muted); font-size: 0.85rem; }

.project-link {
  flex-shrink: 0;
  width: 42px; height: 42px;
  display: grid; place-items: center;
  border-radius: 50%;
  border: 1px solid var(--line);
  font-size: 1.1rem;
  transition: 0.3s;
}
.project:hover .project-link { background: var(--grad); color: #04101f; border-color: transparent; transform: rotate(45deg); }

/* ---------- Time ---------- */
.team { display: grid; grid-template-columns: repeat(2, 1fr); gap: 1.6rem; max-width: 860px; }

.member {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 2.2rem 2rem;
  text-align: center;
  transition: transform 0.35s cubic-bezier(.2,.8,.3,1), border-color 0.35s;
}
.member:hover { transform: translateY(-6px); border-color: rgba(108, 92, 255, 0.5); }

.member { min-height: 168px; display: grid; justify-items: center; align-content: center; gap: 0.9rem; border-top: 3px solid rgba(56, 225, 255, 0.6); }
.member-avatar {
  width: 64px;
  aspect-ratio: 1;
  display: grid;
  place-items: center;
  border-radius: 50%;
  color: #04101f;
  background: var(--grad);
  box-shadow: 0 8px 22px rgba(79, 124, 255, 0.25);
  font-family: var(--display);
  font-weight: 700;
  font-size: 1.1rem;
}
.member h3 { font-family: var(--display); font-size: 1.35rem; }
.member p { max-width: 18rem; color: var(--muted); font-size: 0.92rem; }
.service-note { max-width: 42rem; padding: 0.9rem 1.1rem; margin: 0 0 1.5rem; color: var(--muted); background: var(--surface); border: 1px solid var(--line); border-left: 3px solid var(--cyan); border-radius: 12px; }
.service-note strong { color: var(--text); }
/* ---------- Contato ---------- */
.contact-box {
  text-align: center;
  background: linear-gradient(160deg, rgba(79, 124, 255, 0.12), rgba(56, 225, 255, 0.05));
  border: 1px solid var(--line);
  border-radius: 26px;
  padding: clamp(2.5rem, 6vw, 4.5rem) clamp(1.5rem, 5vw, 4rem);
  box-shadow: var(--shadow);
}
.contact-box .kicker { justify-content: center; }
.contact-box .section-lead { max-width: 34rem; margin-inline: auto; }

.contact-actions {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 1rem;
  margin-top: 2.2rem;
}
.contact-note { max-width: 40rem; margin: 1.3rem auto 0; font-size: 0.92rem; color: var(--muted); }

/* ---------- Janela de orçamento ---------- */
.contact-dialog {
  width: min(540px, calc(100% - 2rem));
  max-width: none;
  max-height: calc(100% - 2rem);
  overflow: auto;
  margin: auto;
  padding: clamp(1.25rem, 4vw, 2rem);
  color: var(--text);
  background: linear-gradient(145deg, #101a30, #080e1c 78%) padding-box,
              linear-gradient(135deg, rgba(56, 225, 255, 0.72), rgba(79, 124, 255, 0.42) 48%, rgba(108, 92, 255, 0.72)) border-box;
  border: 1px solid transparent;
  border-radius: 22px;
  box-shadow: 0 28px 80px rgba(0, 0, 0, 0.55), 0 0 42px rgba(79, 124, 255, 0.16);
}
.contact-dialog[open] { animation: budgetDialogIn 260ms cubic-bezier(.2,.8,.3,1) both; }
.contact-dialog::backdrop { background: rgba(2, 6, 18, 0.68); backdrop-filter: blur(7px); animation: budgetBackdropIn 180ms ease-out both; }
@keyframes budgetDialogIn { from { opacity: 0; transform: translateY(14px) scale(0.975); } to { opacity: 1; transform: translateY(0) scale(1); } }
@keyframes budgetBackdropIn { from { opacity: 0; } to { opacity: 1; } }
.dialog-head { display: flex; align-items: flex-start; justify-content: space-between; gap: 1rem; margin-bottom: 1.25rem; }
.dialog-head .kicker { font-size: 0.68rem; text-shadow: 0 0 18px rgba(56, 225, 255, 0.3); }
.dialog-head h2 { margin-top: 0.5rem; font-family: var(--display); font-size: clamp(1.45rem, 4vw, 1.8rem); line-height: 1.15; }
.dialog-close { flex: 0 0 auto; width: 38px; height: 38px; display: grid; place-items: center; color: var(--muted); background: var(--surface); border: 1px solid var(--line); border-radius: 50%; font: inherit; font-size: 1.5rem; cursor: pointer; transition: color .2s, border-color .2s, transform .2s, box-shadow .2s; }
.dialog-close:hover { color: var(--text); border-color: rgba(56, 225, 255, 0.5); transform: rotate(90deg); box-shadow: 0 0 18px rgba(56, 225, 255, 0.12); }
.dialog-price-note { margin: -0.25rem 0 1rem; padding: 0.75rem 0.9rem; color: var(--muted); background: linear-gradient(100deg, rgba(56, 225, 255, 0.09), rgba(79, 124, 255, 0.08), rgba(108, 92, 255, 0.09)); border: 1px solid rgba(114, 183, 255, 0.24); border-radius: 11px; box-shadow: inset 0 0 22px rgba(79, 124, 255, 0.05); font-size: 0.82rem; line-height: 1.45; }
.dialog-price-note strong { color: var(--text); }
.contact-form label { display: block; margin: 0.9rem 0 0.4rem; color: var(--text); font-size: 0.88rem; font-weight: 600; }
.contact-form label span { color: var(--muted); font-size: 0.8rem; font-weight: 400; }
.contact-form input, .contact-form select, .contact-form textarea { width: 100%; min-height: 46px; padding: 0.72rem 0.85rem; color: var(--text); background: rgba(6, 11, 23, 0.78); border: 1px solid var(--line); border-radius: 10px; font: inherit; font-size: 0.94rem; transition: border-color .2s, box-shadow .2s, background .2s; }
.contact-form textarea { min-height: 96px; resize: vertical; }
.contact-form input::placeholder, .contact-form textarea::placeholder { color: #7283a4; }
.contact-form input:focus, .contact-form select:focus, .contact-form textarea:focus { border-color: var(--cyan); outline: 2px solid rgba(56, 225, 255, 0.25); outline-offset: 1px; box-shadow: 0 0 22px rgba(56, 225, 255, 0.12); background: rgba(6, 11, 23, 0.94); }
.dialog-note { margin-top: 0.9rem; color: var(--muted); font-size: 0.8rem; line-height: 1.5; }
.dialog-actions { display: flex; justify-content: flex-end; flex-wrap: wrap; gap: 0.7rem; margin-top: 1.2rem; }
.dialog-actions .btn-primary { box-shadow: 0 10px 28px rgba(79, 124, 255, 0.28); }
.dialog-actions .btn-primary:hover { transform: translateY(-2px); box-shadow: 0 14px 34px rgba(79, 124, 255, 0.4); }

/* ---------- Footer ---------- */
.footer {
  border-top: 1px solid var(--line);
  padding: 2.6rem 0;
  background: rgba(6, 11, 23, 0.7);
}
.footer-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1.2rem;
  flex-wrap: wrap;
}
.footer-names { font-family: var(--display); color: var(--cyan); font-size: 0.95rem; }
.footer-copy { color: var(--muted); font-size: 0.85rem; }

/* ---------- WhatsApp flutuante ---------- */
.wa-float {
  position: fixed;
  right: max(16px, env(safe-area-inset-right));
  bottom: max(16px, env(safe-area-inset-bottom));
  z-index: 60;
  width: 60px; height: 60px;
  display: grid; place-items: center;
  border-radius: 50%;
  background: linear-gradient(135deg, #2ee6c5, #12b981);
  color: #04231b;
  box-shadow: 0 14px 34px rgba(46, 230, 197, 0.4);
  transition: transform 0.3s cubic-bezier(.2,.8,.3,1), box-shadow 0.3s;
  animation: waIn 0.35s 0.5s backwards;
}
.wa-float:hover { transform: scale(1.1) translateY(-4px); box-shadow: 0 20px 44px rgba(46, 230, 197, 0.55); }
@keyframes waIn { from { transform: translateY(80px) scale(0.6); opacity: 0; } }

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

/* ---------- Responsivo ---------- */
@media (max-width: 980px) {
  .nav-inner { flex-wrap: wrap; }
  .hero-main { gap: 2rem; }
  .hero-visual { max-width: 500px; }
  .nav-links {
    order: 3;
    width: 100%;
    justify-content: center;
    flex-wrap: wrap;
    gap: 0.6rem 1.2rem;
    padding: 0.4rem 0;
  }
  .nav-cta { order: 4; }
  .nav-toggle { display: none; }

  html.nav-ready .nav-links {
    position: fixed;
    top: 0; right: 0;
    height: 100vh;
    height: 100dvh;
    width: min(300px, 80vw);
    flex-direction: column;
    justify-content: center;
    gap: 2rem;
    padding: 2rem;
    background: rgba(8, 14, 28, 0.97);
    /* O fundo opaco mantém boa leitura sem o custo de blur em celulares. */
    backdrop-filter: none;
    border-left: 1px solid var(--line);
    transform: translateX(100%);
    visibility: hidden;
    transition: transform 0.4s cubic-bezier(.2,.8,.3,1), visibility 0s linear 0.4s;
    z-index: 60;
  }
  html.nav-ready .nav-links.open {
    transform: none;
    visibility: visible;
    transition: transform 0.4s cubic-bezier(.2,.8,.3,1), visibility 0s;
  }
  html.nav-ready .nav-links a { font-size: 1.15rem; }
  html.nav-ready .nav-cta { display: none; }
  html.nav-ready .nav-toggle { display: flex; position: relative; z-index: 61; }

  .cards { grid-template-columns: repeat(2, 1fr); }
  .portfolio-grid { grid-template-columns: repeat(2, 1fr); }
}

@media (min-width: 881px) and (max-width: 1200px) {
  .hero h1 { font-size: clamp(2.35rem, 4.2vw, 2.9rem); }
  .hero-actions { flex-wrap: nowrap; gap: 0.65rem; }
  .hero-actions .btn { padding-inline: 1.15rem; font-size: 0.9rem; }
}

@media (max-width: 760px) {
  .hero { padding: 8.5rem 0 3.5rem; }
  .hero-main { grid-template-columns: 1fr; gap: 1.8rem; }
  .hero-visual { max-width: 500px; aspect-ratio: 1.55; }
  .site-preview { transform: none; border-radius: 17px; }
  .preview-top { height: 32px; grid-template-columns: 1fr auto; padding-inline: 0.7rem; }
  .preview-page { min-height: 0; padding: 0 1rem 0.7rem; border-radius: 0 0 16px 16px; }
  .preview-nav { min-height: 38px; }
  .preview-content { grid-template-columns: minmax(0, 1.1fr) minmax(76px, 0.8fr); gap: 0.45rem; padding: 0.8rem 0 0.65rem; }
  .preview-eyebrow { margin-bottom: 0.35rem; font-size: 0.5rem; }
  .preview-title { font-size: clamp(1.1rem, 5.5vw, 1.65rem); }
  .preview-text { margin-top: 0.4rem; font-size: 0.62rem; line-height: 1.35; }
  .preview-button { margin-top: 0.55rem; padding: 0.4rem 0.6rem; font-size: 0.57rem; }
  .preview-art { width: clamp(76px, 22vw, 118px); }
  .preview-art-mark { font-size: 3rem; }
  .preview-art-caption { font-size: 0.43rem; }
  .preview-bottom { gap: 0.3rem; padding-top: 0.55rem; font-size: 0.48rem; }
  .page-hero { padding-top: 9rem; }
  .kicker { font-size: 0.7rem; letter-spacing: 0.1em; }
  .hero h1 { font-size: clamp(2.05rem, 8.5vw, 3rem); line-height: 1.08; }
  .hero-lead { font-size: 1rem; }
  .hero-stats { grid-template-columns: 1fr; gap: 0; margin-top: 2rem; padding: 0.25rem 1rem; border-radius: 16px; }
  .stat { padding: 0.9rem 0.15rem; text-align: left; }
  .stat + .stat { border-left: 0; border-top: 1px solid rgba(140, 180, 255, 0.2); }
  .stat strong { font-size: 1rem; }
  .stat span { font-size: 0.84rem; }
  .hero-actions { flex-direction: column; align-items: stretch; }
  .hero-actions .btn, .contact-actions .btn { width: 100%; white-space: normal; text-align: center; }
  .dialog-actions { flex-direction: column-reverse; }
  .dialog-actions .btn { width: 100%; }
  .portfolio-cta { flex-direction: column; text-align: center; }
  .cards, .portfolio-grid, .portfolio-grid-page, .team, .quick-page-grid, .steps { grid-template-columns: 1fr; }
  .section { padding: 3.75rem 0; }
  .section-head { margin-bottom: 2.2rem; }
  .footer-inner { flex-direction: column; text-align: center; }
  .wa-float { width: 54px; height: 54px; right: 14px; bottom: max(14px, env(safe-area-inset-bottom)); }
}

@media (max-width: 380px) {
  .container { width: min(100% - 2rem, 1160px); }
  .hero { padding-top: 8rem; }
  .hero h1 { font-size: clamp(1.9rem, 9vw, 2.35rem); }
  .hero-actions .btn { padding-inline: 1rem; font-size: 0.92rem; }
  .preview-bottom span { max-width: 12rem; text-align: right; }
  .contact-box { padding-inline: 1.15rem; }
  .faq details { padding-inline: 1rem; }
}
/* ---------- Como funciona ---------- */
.steps { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1.4rem; }

.step {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 1.9rem 1.7rem;
  position: relative;
  overflow: hidden;
  transition: transform 0.35s cubic-bezier(.2,.8,.3,1), border-color 0.35s, background 0.35s;
}
.step:hover { border-color: rgba(56, 225, 255, 0.45); background: var(--surface-2); }
.step::after {
  content: "→";
  position: absolute;
  top: 1.6rem; right: 1.5rem;
  color: var(--muted);
  font-size: 1.3rem;
}
.step:last-child::after { content: ""; }

.step-num {
  font-family: var(--display);
  font-size: 2.6rem;
  font-weight: 700;
  line-height: 1;
  margin-bottom: 1rem;
  background: var(--grad);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}
.step h3 { font-family: var(--display); font-size: 1.15rem; margin-bottom: 0.5rem; }
.step p { color: var(--muted); font-size: 0.93rem; }

/* ---------- FAQ ---------- */
.faq { display: grid; gap: 0.9rem; max-width: 840px; }

.faq details {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: 14px;
  padding: 1.1rem 1.3rem;
  transition: border-color 0.3s, background 0.3s;
}
.faq details[open] {
  border-color: rgba(56, 225, 255, 0.45);
  background: var(--surface-2);
}

.faq summary {
  cursor: pointer;
  font-family: var(--display);
  font-weight: 600;
  font-size: 1.02rem;
  list-style: none;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
}
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after {
  content: "+";
  font-size: 1.5rem;
  line-height: 1;
  color: var(--cyan);
  transition: transform 0.3s;
}
.faq details[open] summary::after { transform: rotate(45deg); }
.faq details p { color: var(--muted); font-size: 0.95rem; margin-top: 0.8rem; }

/* ---------- Imagem no card do portfólio ---------- */
.project-thumb img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.5s cubic-bezier(.2,.8,.3,1);
}
.project:hover .project-thumb img { transform: scale(1.06); }

/* ---------- Tilt 3D ---------- */
/* ---------- Código no texto ---------- */
code {
  font-family: ui-monospace, "SF Mono", Menlo, monospace;
  font-size: 0.9em;
  background: rgba(56, 225, 255, 0.1);
  border: 1px solid var(--line);
  border-radius: 6px;
  padding: 0.1em 0.45em;
  color: var(--cyan);
}

/* ---------- Responsivo dos novos blocos ---------- */
@media (max-width: 980px) {
  .steps { grid-template-columns: 1fr; }
}
