/* APNexus Digital — estilos */

:root {
  --blue: #0A2BF5;
  --blue-l: #4C66FF;
  --teal: #00CDB4;
  --navy: #0B1838;
  --bg: #050B1A;
  --bg-2: #081128;
  --ink: #EAF0FF;
  --ink-2: #A9B6D6;
  --ink-3: #6B7AA0;
  --line: rgba(120, 150, 255, .16);
  --glass: rgba(12, 24, 60, .42);
  --grad: linear-gradient(100deg, var(--blue-l) 0%, var(--teal) 100%);
  --f-display: 'Montserrat', system-ui, sans-serif;
  --f-body: 'Inter', system-ui, sans-serif;
  --ease: cubic-bezier(.2, .8, .2, 1);
  --wrap: min(1200px, 100% - 3rem);
}

*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
body {
  background: var(--bg);
  color: var(--ink);
  font-family: var(--f-body);
  font-size: 1.0625rem;
  line-height: 1.65;
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
}
body.is-loading { overflow: hidden; }
img, svg { display: block; max-width: 100%; }
a { color: inherit; text-decoration: none; }
ul, ol { list-style: none; }
::selection { background: var(--teal); color: var(--bg); }

/* ---------- Camadas de fundo ---------- */
#webgl {
  position: fixed; inset: 0;
  width: 100vw; height: 100vh;
  z-index: 0;
  display: block;
}
.noise {
  position: fixed; inset: 0; z-index: 1; pointer-events: none;
  opacity: .05; mix-blend-mode: overlay;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='160' height='160'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.9' numOctaves='2' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
}
.cursor-glow {
  position: fixed; z-index: 1; pointer-events: none;
  width: 520px; height: 520px; left: 0; top: 0;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(0, 205, 180, .10) 0%, rgba(10, 43, 245, .06) 35%, transparent 70%);
  transform: translate(-50%, -50%);
  transition: opacity .4s;
}
main, .footer, .nav, .rail { position: relative; z-index: 2; }

/* ---------- Navegação ---------- */
.nav {
  position: fixed; top: 0; left: 0; right: 0; z-index: 50;
  display: flex; align-items: center; justify-content: space-between;
  padding: 1.25rem clamp(1.25rem, 4vw, 3rem);
  transition: padding .4s;
}
.nav::before {
  content: ''; position: absolute; inset: 0; z-index: -1; pointer-events: none;
  background: rgba(5, 11, 26, .62);
  backdrop-filter: blur(16px) saturate(140%);
  -webkit-backdrop-filter: blur(16px) saturate(140%);
  border-bottom: 1px solid var(--line);
  opacity: 0; transition: opacity .4s;
}
.nav.is-scrolled { padding-block: .8rem; }
.nav.is-scrolled::before { opacity: 1; }
.brand { display: flex; align-items: center; gap: .7rem; }
.brand__mark { width: 40px; filter: drop-shadow(0 0 10px rgba(10, 43, 245, .55)); }
.brand__name {
  font: 900 1.2rem/1 var(--f-display); letter-spacing: -.01em;
  display: flex; flex-direction: column;
}
.brand__name small { font-weight: 600; font-size: .52rem; letter-spacing: .62em; color: var(--ink-2); margin-top: .3rem; }
.nav__links { display: flex; align-items: center; gap: 2rem; }
.nav__links a:not(.btn) {
  position: relative; font: 500 .9rem/1 var(--f-display); color: var(--ink-2);
  transition: color .3s;
}
.nav__links a:not(.btn)::after {
  content: ''; position: absolute; left: 0; bottom: -.45em; height: 1px; width: 100%;
  background: var(--grad); transform: scaleX(0); transform-origin: left; transition: transform .4s var(--ease);
}
.nav__links a:hover, .nav__links a.is-active { color: var(--ink); }
.nav__links a:hover::after, .nav__links a.is-active::after { transform: scaleX(1); }
.nav__toggle { display: none; background: none; border: 0; width: 40px; height: 40px; cursor: pointer; position: relative; }
.nav__toggle span { position: absolute; left: 9px; right: 9px; height: 2px; background: var(--ink); transition: transform .35s var(--ease), top .35s; }
.nav__toggle span:first-child { top: 15px; }
.nav__toggle span:last-child { top: 23px; }
.nav.is-open::before { opacity: 0; }
.nav.is-open .brand { position: relative; z-index: 2; }
.nav.is-open .nav__toggle span:first-child { top: 19px; transform: rotate(45deg); }
.nav.is-open .nav__toggle span:last-child { top: 19px; transform: rotate(-45deg); }

/* ---------- Botões ---------- */
.btn {
  --bx: 50%; --by: 50%;
  position: relative; display: inline-flex; align-items: center; justify-content: center; gap: .6rem;
  padding: 1rem 1.7rem;
  font: 700 .82rem/1 var(--f-display); letter-spacing: .14em; text-transform: uppercase;
  color: #fff; background: var(--blue);
  border: 1px solid transparent; border-radius: 4px; cursor: pointer;
  overflow: hidden; isolation: isolate;
  box-shadow: 0 0 0 0 rgba(10, 43, 245, .0), 0 10px 40px -10px rgba(10, 43, 245, .8);
  transition: transform .3s var(--ease), box-shadow .3s;
}
.btn::before {
  content: ''; position: absolute; inset: 0; z-index: -1;
  background: radial-gradient(180px circle at var(--bx) var(--by), rgba(0, 205, 180, .9), transparent 60%);
  opacity: 0; transition: opacity .3s;
}
.btn:hover { transform: translateY(-2px); box-shadow: 0 0 0 1px rgba(0, 205, 180, .5), 0 16px 50px -10px rgba(0, 205, 180, .6); }
.btn:hover::before { opacity: 1; }
.btn--ghost { background: transparent; border-color: rgba(0, 205, 180, .45); box-shadow: none; }
.btn--ghost::before { background: radial-gradient(180px circle at var(--bx) var(--by), rgba(0, 205, 180, .25), transparent 60%); }
.btn--small { padding: .75rem 1.15rem; font-size: .7rem; }
.btn--full { width: 100%; grid-column: 1 / -1; padding-block: 1.15rem; }

/* ---------- Rail de progresso ---------- */
.rail {
  position: fixed; left: clamp(.8rem, 2vw, 1.8rem); top: 50%; transform: translateY(-50%);
  z-index: 40; display: flex; gap: .8rem; align-items: stretch;
  opacity: 0; transition: opacity .5s;
}
.rail.is-visible { opacity: 1; }
.rail__track { width: 1px; background: var(--line); position: relative; }
.rail__track span { position: absolute; top: 0; left: 0; width: 100%; height: 0; background: var(--grad); box-shadow: 0 0 8px var(--teal); }
.rail__dots { display: flex; flex-direction: column; justify-content: space-between; gap: 1.1rem; }
.rail__dots li { font: 600 .62rem/1 var(--f-display); letter-spacing: .1em; color: var(--ink-3); transition: color .3s, transform .3s; cursor: pointer; }
.rail__dots li.is-active { color: var(--teal); transform: translateX(3px); }

/* ---------- Hero ---------- */
.hero {
  position: relative; min-height: 100vh; min-height: 100svh;
  display: flex; align-items: flex-end; justify-content: center;
  padding: 0 1.5rem clamp(5rem, 11vh, 8rem);
  text-align: center;
}
.hero__title { font-family: var(--f-display); line-height: .9; display: grid; justify-items: center; }
.hero__name { font-weight: 900; font-size: clamp(2.6rem, 6.5vw, 5.2rem); letter-spacing: -.035em; }
.hero__name {
  display: inline-block; padding-bottom: .08em;
  background: linear-gradient(180deg, #fff 30%, #9fb1ff 100%); -webkit-background-clip: text; background-clip: text; color: transparent;
}
.hero__sub { font-weight: 600; font-size: clamp(.8rem, 1.6vw, 1.1rem); letter-spacing: 1.1em; margin-right: -1.1em; color: var(--teal); margin-top: .8rem; }

.scroll-hint {
  position: absolute; right: clamp(1.25rem, 4vw, 3rem); bottom: 2.2rem;
  display: flex; flex-direction: column; align-items: center; gap: .7rem;
  font: 600 .62rem/1 var(--f-display); letter-spacing: .3em; text-transform: uppercase; color: var(--ink-3);
  writing-mode: vertical-rl;
}
.scroll-hint__line { width: 1px; height: 60px; background: var(--line); position: relative; overflow: hidden; }
.scroll-hint__line::after { content: ''; position: absolute; left: 0; width: 100%; height: 40%; background: var(--teal); animation: drip 2s var(--ease) infinite; }
@keyframes drip { from { top: -40%; } to { top: 100%; } }

/* Entrada do hero ao abrir a página (enquanto o logo 3D chega) */
.hero__title { opacity: 0; transform: translate3d(0, 22px, 0); transition: opacity 1.1s var(--ease) .5s, transform 1.1s var(--ease) .5s; }
.hero__sub { opacity: 0; transition: opacity 1s var(--ease) 1.1s; }
body.is-ready .hero__title, body.is-ready .hero__sub { opacity: 1; transform: none; }

/* ---------- Secções ---------- */
.section { position: relative; padding: clamp(6rem, 16vh, 10rem) 0; }
.wrap { width: var(--wrap); margin-inline: auto; }
.section__head { margin-bottom: clamp(2.5rem, 6vh, 4.5rem); max-width: 820px; }
.section__idx {
  display: inline-flex; align-items: center; gap: .8rem;
  font: 600 .72rem/1 var(--f-display); letter-spacing: .3em; text-transform: uppercase; color: var(--teal);
  margin-bottom: 1.3rem;
}
.section__idx::before { content: ''; width: 36px; height: 1px; background: var(--teal); box-shadow: 0 0 8px var(--teal); }
.section__title, .contact__title {
  font: 800 clamp(2.1rem, 5vw, 4rem)/1.04 var(--f-display); letter-spacing: -.03em;
}
.section__lead { margin-top: 1.2rem; color: var(--ink-2); max-width: 560px; }

/* Títulos: cada palavra sobe de dentro de uma máscara (sem desfoque) */
.split .w { display: inline-block; overflow: hidden; vertical-align: top; padding-bottom: .22em; margin-bottom: -.22em; }
.split .w > span {
  display: inline-block; transform: translate3d(0, 105%, 0);
  transition: transform .9s var(--ease);
  transition-delay: calc(var(--i, 0) * 55ms);
}
.split.is-in .w > span { transform: none; }

/* Revelação ao fazer scroll: subida curta e suave */
.reveal {
  opacity: 0; transform: translate3d(0, 24px, 0);
  transition: opacity .8s var(--ease), transform .8s var(--ease);
  transition-delay: calc(var(--d, 0) * 80ms);
}
.reveal.is-in { opacity: 1; transform: none; }

/* Vidro com borda luminosa */
.glass, .card, .form, .quote {
  position: relative;
  background: var(--glass);
  border: 1px solid var(--line);
  border-radius: 8px;
  backdrop-filter: blur(14px) saturate(130%);
  -webkit-backdrop-filter: blur(14px) saturate(130%);
}

/* ---------- Sobre ---------- */
.about__grid { max-width: 660px; }
.about__text { font-size: clamp(1.15rem, 1.7vw, 1.45rem); color: var(--ink-2); line-height: 1.65; }
.about__text em { font-style: normal; color: var(--ink); background: var(--grad); -webkit-background-clip: text; background-clip: text; color: transparent; font-weight: 600; }

/* ---------- Serviços ---------- */
.cards { display: grid; grid-template-columns: repeat(4, 1fr); gap: 1rem; perspective: 1200px; }
.card {
  --mx: 50%; --my: 50%; --rx: 0deg; --ry: 0deg;
  padding: 1.8rem 1.6rem 2rem; min-height: 290px;
  display: flex; flex-direction: column; gap: .8rem;
  transform-style: preserve-3d;
  transform: rotateX(var(--rx)) rotateY(var(--ry));
  transition: transform .5s var(--ease), border-color .4s, opacity 1s var(--ease), filter 1s var(--ease);
  overflow: hidden;
}
.card.reveal:not(.is-in) { transform: translate3d(0, 40px, 0); }
.card::before {
  content: ''; position: absolute; inset: 0; border-radius: inherit; pointer-events: none;
  background: radial-gradient(400px circle at var(--mx) var(--my), rgba(0, 205, 180, .16), transparent 45%);
  opacity: 0; transition: opacity .4s;
}
.card::after {
  content: ''; position: absolute; inset: -1px; border-radius: inherit; pointer-events: none; padding: 1px;
  background: radial-gradient(260px circle at var(--mx) var(--my), rgba(0, 205, 180, .9), rgba(10, 43, 245, .5) 40%, transparent 70%);
  -webkit-mask: linear-gradient(#000 0 0) content-box, linear-gradient(#000 0 0);
  -webkit-mask-composite: xor; mask-composite: exclude;
  opacity: 0; transition: opacity .4s;
}
.card:hover::before, .card:hover::after { opacity: 1; }
.card__top { display: flex; justify-content: space-between; align-items: flex-start; margin-bottom: auto; }
.card__n { font: 600 .75rem/1 var(--f-display); letter-spacing: .2em; color: var(--ink-3); }
.card__icon { width: 46px; height: 46px; fill: none; stroke: var(--teal); stroke-width: 1.6; stroke-linecap: round; stroke-linejoin: round; filter: drop-shadow(0 0 6px rgba(0, 205, 180, .5)); transform: translateZ(30px); }
.card h3 { font: 700 1.12rem/1.25 var(--f-display); margin-top: 2.4rem; transform: translateZ(20px); }
.card p { color: var(--ink-2); font-size: .93rem; transform: translateZ(10px); }
.card--cta { background: linear-gradient(140deg, rgba(10, 43, 245, .55), rgba(0, 205, 180, .25)); border-color: rgba(0, 205, 180, .35); }
.card--cta .card__n { font-size: 1.6rem; color: var(--teal); margin-bottom: auto; letter-spacing: 0; }
.card--cta p { color: var(--ink); }
.card__link { margin-top: .6rem; font: 700 .72rem/1 var(--f-display); letter-spacing: .2em; text-transform: uppercase; color: var(--teal); }





/* ---------- Contacto ---------- */
/* Espaçamento mais curto entre Sobre, Serviços, Testemunhos e Contacto */
.about, .services, .testimonials, .contact { padding-block: clamp(3rem, 7vh, 5rem); }
.evolve { padding-block: clamp(3rem, 7vh, 5rem); }
/* "Sobre" é a primeira secção depois do hero: mantém o espaço maior em cima */
.about { padding-top: clamp(6rem, 16vh, 10rem); }
.contact { padding-bottom: clamp(4rem, 9vh, 6rem); }
.contact__wrap { display: grid; grid-template-columns: 1fr 1fr; gap: clamp(2rem, 6vw, 6rem); align-items: center; }
.contact__title { margin-bottom: 1.4rem; }
.contact__intro > p { color: var(--ink-2); max-width: 460px; }
.contact__btns { margin-top: 2rem; display: flex; flex-wrap: wrap; gap: .9rem; }
.contact__btns .btn { padding: 1rem 1.5rem; }
.contact__btns .btn svg { width: 20px; height: 20px; flex: none; }
.btn--whatsapp { background: #1FA855; box-shadow: 0 10px 40px -12px rgba(31, 168, 85, .75); }
.btn--whatsapp:hover { box-shadow: 0 0 0 1px rgba(37, 211, 102, .6), 0 16px 50px -10px rgba(37, 211, 102, .55); }

.form { padding: clamp(1.6rem, 3vw, 2.4rem); display: grid; grid-template-columns: 1fr 1fr; gap: 1rem; }
.field { position: relative; }
.field--full { grid-column: 1 / -1; }
.field input, .field textarea, .field select {
  width: 100%; padding: 1.35rem 1rem .6rem; font: 400 1rem/1.4 var(--f-body); color: var(--ink);
  background: rgba(5, 11, 26, .55); border: 1px solid var(--line); border-radius: 4px; outline: none; resize: vertical;
  transition: border-color .3s, box-shadow .3s;
}
.field select { padding-block: 1rem; appearance: none; color: var(--ink-2); cursor: pointer;
  background-image: linear-gradient(45deg, transparent 50%, var(--teal) 50%), linear-gradient(135deg, var(--teal) 50%, transparent 50%);
  background-position: calc(100% - 20px) 50%, calc(100% - 15px) 50%; background-size: 5px 5px; background-repeat: no-repeat; }
.field select option { background: var(--bg-2); color: var(--ink); }
.field label { position: absolute; left: 1rem; top: 1rem; color: var(--ink-3); pointer-events: none; transition: all .25s var(--ease); font-size: 1rem; }
.field input:focus, .field textarea:focus, .field select:focus { border-color: var(--teal); box-shadow: 0 0 0 3px rgba(0, 205, 180, .15); }
.field input:focus + label, .field input:not(:placeholder-shown) + label,
.field textarea:focus + label, .field textarea:not(:placeholder-shown) + label {
  top: .45rem; font-size: .68rem; letter-spacing: .14em; text-transform: uppercase; color: var(--teal);
}
.field.is-invalid input, .field.is-invalid textarea { border-color: #ff5d7a; }
.form__status { grid-column: 1 / -1; font-size: .9rem; color: var(--ink-2); min-height: 1.4em; text-align: center; }

/* ---------- Projetos: "Antes era assim… Agora é Nexus" ---------- */
.evolve__wrap {
  display: grid; grid-template-columns: minmax(0, 1.2fr) minmax(0, .8fr);
  gap: clamp(2.5rem, 6vw, 6rem); align-items: center;
}
.evolve__title > span { display: block; }
.evolve__before { color: var(--ink-3); font-weight: 700; }
.evolve__after > span {
  display: inline-block; padding: 0 .04em .14em 0;
  background: var(--grad); -webkit-background-clip: text; background-clip: text; color: transparent;
}
.techniques { display: grid; grid-template-columns: 1fr 1fr; gap: 1.7rem 2.2rem; margin-top: 2.6rem; }
.technique { display: flex; gap: 1rem; align-items: flex-start; }
.technique__n {
  flex: none; min-width: 2.2rem; padding-top: .45rem;
  border-top: 1px solid var(--teal);
  font: 700 .7rem/1 var(--f-display); letter-spacing: .14em; color: var(--teal);
}
.technique h3 { font: 700 1.02rem/1.3 var(--f-display); margin-bottom: .35rem; }
.technique p { color: var(--ink-2); font-size: .92rem; line-height: 1.55; }

/* Dispositivo */
.evolve__device { justify-self: center; display: grid; justify-items: center; gap: 1.3rem; }
.evolve__device.is-in .iphone { animation: float 7s ease-in-out infinite; }
@keyframes float { 50% { transform: translateY(-12px) rotate(-.6deg); } }

/* iPhone Pro Max branco (desenhado em CSS) */
.iphone {
  position: relative; width: min(330px, 76vw); aspect-ratio: 440 / 956;
  padding: 6px; border-radius: 13.5% / 6.2%;
  background: linear-gradient(140deg, #ffffff 0%, #ececf0 35%, #cfcfd6 70%, #f4f4f7 100%);
  box-shadow:
    inset 0 0 0 1px #b8b8c0,
    inset 0 0 0 3px #f7f7f9,
    0 50px 100px -35px rgba(10, 43, 245, .65),
    0 0 90px -25px rgba(0, 205, 180, .45);
}
.iphone__btn { position: absolute; width: 3px; background: linear-gradient(90deg, #bdbdc4, #e9e9ee); }
.iphone__btn--action  { left: -3px; top: 17%; height: 3.6%; border-radius: 2px 0 0 2px; }
.iphone__btn--volup   { left: -3px; top: 23.5%; height: 6.6%; border-radius: 2px 0 0 2px; }
.iphone__btn--voldown { left: -3px; top: 31.5%; height: 6.6%; border-radius: 2px 0 0 2px; }
.iphone__btn--power   { right: -3px; top: 26%; height: 10%; border-radius: 0 2px 2px 0; }
.iphone__screen {
  position: relative; height: 100%; overflow: hidden;
  border: 6px solid #0a0a0c; border-radius: 12% / 5.6%;
  background: #000; isolation: isolate;
}
.iphone__island {
  position: absolute; top: 1.3%; left: 50%; z-index: 6; transform: translateX(-50%);
  width: 31%; height: 3.4%; border-radius: 100px; background: #000;
}
.iphone__sweep {
  position: absolute; top: 0; bottom: 0; right: 0; z-index: 5; width: 3px;
  background: linear-gradient(var(--teal), var(--blue-l));
  box-shadow: 0 0 18px 5px rgba(0, 205, 180, .7);
  opacity: 0; pointer-events: none;
}
.iphone__sweep.run { animation: sweep 1.1s var(--ease); }
@keyframes sweep { 0% { right: 0; opacity: 1; } 85% { opacity: 1; } 100% { right: 100%; opacity: 0; } }

.slide { position: absolute; inset: 0; margin: 0; clip-path: inset(0 0 0 100%); background: var(--bar); }
.slide.is-prev { clip-path: inset(0); z-index: 1; }
.slide.is-active { clip-path: inset(0); z-index: 2; transition: clip-path 1.1s var(--ease); }
.slide__status {
  height: 6.4%; padding: 0 9% 0 11%;
  display: flex; align-items: center; justify-content: space-between;
  background: var(--bar); color: var(--ink);
}
.slide__status b { font: 600 12px/1 var(--f-body); letter-spacing: .01em; }
/* ícones de rede, wi-fi e bateria */
.slide__status i {
  width: 58px; height: 11px; opacity: .95;
  background: currentColor;
  -webkit-mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 58 11'%3E%3Crect x='0' y='7' width='3' height='4' rx='.6'/%3E%3Crect x='4.5' y='5' width='3' height='6' rx='.6'/%3E%3Crect x='9' y='2.5' width='3' height='8.5' rx='.6'/%3E%3Crect x='13.5' y='0' width='3' height='11' rx='.6'/%3E%3Cpath d='M28 2.2a9 9 0 0 1 6.4 2.6l1.2-1.2a10.7 10.7 0 0 0-15.2 0l1.2 1.2A9 9 0 0 1 28 2.2zm0 3.3a5.6 5.6 0 0 1 4 1.6l1.2-1.2a7.3 7.3 0 0 0-10.4 0L24 7.1a5.6 5.6 0 0 1 4-1.6zm0 3.3a2.3 2.3 0 0 1 1.6.7L28 11l-1.6-1.5a2.3 2.3 0 0 1 1.6-.7z'/%3E%3Crect x='40.5' y='.5' width='15' height='10' rx='2.6' fill='none' stroke='%23000'/%3E%3Crect x='42' y='2' width='12' height='7' rx='1.4'/%3E%3Crect x='56.4' y='3.6' width='1.4' height='3.8' rx='.6'/%3E%3C/svg%3E") center / contain no-repeat;
          mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 58 11'%3E%3Crect x='0' y='7' width='3' height='4' rx='.6'/%3E%3Crect x='4.5' y='5' width='3' height='6' rx='.6'/%3E%3Crect x='9' y='2.5' width='3' height='8.5' rx='.6'/%3E%3Crect x='13.5' y='0' width='3' height='11' rx='.6'/%3E%3Cpath d='M28 2.2a9 9 0 0 1 6.4 2.6l1.2-1.2a10.7 10.7 0 0 0-15.2 0l1.2 1.2A9 9 0 0 1 28 2.2zm0 3.3a5.6 5.6 0 0 1 4 1.6l1.2-1.2a7.3 7.3 0 0 0-10.4 0L24 7.1a5.6 5.6 0 0 1 4-1.6zm0 3.3a2.3 2.3 0 0 1 1.6.7L28 11l-1.6-1.5a2.3 2.3 0 0 1 1.6-.7z'/%3E%3Crect x='40.5' y='.5' width='15' height='10' rx='2.6' fill='none' stroke='%23000'/%3E%3Crect x='42' y='2' width='12' height='7' rx='1.4'/%3E%3Crect x='56.4' y='3.6' width='1.4' height='3.8' rx='.6'/%3E%3C/svg%3E") center / contain no-repeat;
}
.slide img, .slide video {
  display: block; width: 100%; height: 93.6%;
  object-fit: cover; object-position: top center;
  transform-origin: top center;
  -webkit-user-drag: none; user-select: none; pointer-events: none;
}
.slide--poster img, .slide--poster video { object-position: center; }
.slide.is-active img { animation: settle 5.5s var(--ease) both; }
/* a recuar, o slide entra pela esquerda */
.iphone__screen.is-rev .slide:not(.is-active):not(.is-prev) { clip-path: inset(0 100% 0 0); }
.iphone__screen.is-rev .iphone__sweep.run { animation-direction: reverse; }
/* arrastar com o dedo / rato */
.iphone__screen { touch-action: pan-y; cursor: grab; user-select: none; -webkit-user-select: none; }
.iphone__screen:active { cursor: grabbing; }
@keyframes settle { from { transform: scale(1.06); } to { transform: none; } }

/* Legenda por baixo do telemóvel */
.evolve__caption { display: flex; align-items: center; gap: .8rem; min-height: 2rem; }
.evolve__stage {
  font: 700 .64rem/1 var(--f-display); letter-spacing: .24em; text-transform: uppercase;
  padding: .55rem .85rem; border-radius: 100px;
  color: var(--ink-2); border: 1px solid var(--line); background: rgba(8, 17, 40, .55);
  transition: color .4s, border-color .4s, box-shadow .4s;
}
.evolve__stage.is-after { color: var(--teal); border-color: rgba(0, 205, 180, .5); box-shadow: 0 0 22px rgba(0, 205, 180, .25); }
.evolve__name { font: 700 1rem/1 var(--f-display); }
.evolve__nav { display: flex; align-items: center; gap: 1rem; }
.evolve__arrow {
  width: 42px; height: 42px; flex: none; display: grid; place-items: center;
  border-radius: 50%; border: 1px solid var(--line); background: rgba(8, 17, 40, .55); color: var(--ink);
  cursor: pointer; transition: border-color .3s, box-shadow .3s, transform .3s;
}
.evolve__arrow svg { width: 18px; height: 18px; fill: none; stroke: currentColor; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }
.evolve__arrow:hover { border-color: rgba(0, 205, 180, .6); box-shadow: 0 0 22px rgba(0, 205, 180, .25); }
.evolve__arrow:active { transform: scale(.94); }
.evolve__arrow:focus-visible { outline: 2px solid var(--teal); outline-offset: 3px; }
.evolve__dots { display: flex; gap: .2rem; }
.evolve__dots button { padding: 10px 3px; border: 0; background: none; cursor: pointer; }
.evolve__dots button::before { content: ''; display: block; width: 18px; height: 3px; border-radius: 3px; background: var(--line); transition: background .4s, width .4s; }
.evolve__dots button.is-active::before { width: 34px; background: var(--grad); }

/* ---------- Testemunhos ---------- */
.quotes { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1rem; }
.quote { padding: 2rem 1.8rem; display: flex; flex-direction: column; gap: 1.3rem; }
.quote__stars { display: flex; gap: .3rem; }
.quote__stars svg { width: 18px; height: 18px; fill: #FFC94D; filter: drop-shadow(0 0 6px rgba(255, 201, 77, .45)); }
.quote__stars .off svg { fill: rgba(255, 255, 255, .14); filter: none; }
.quote blockquote { flex: 1; font-size: 1.04rem; line-height: 1.65; color: var(--ink); position: relative; }
.quote blockquote::before {
  content: '“'; display: block; height: .55em; margin-bottom: .2rem;
  font: 900 3.4rem/1 var(--f-display); color: var(--teal); opacity: .5;
}
.quote figcaption { display: flex; align-items: center; gap: .85rem; padding-top: 1.2rem; border-top: 1px solid var(--line); }
.quote figcaption b { display: block; font: 700 .98rem/1.3 var(--f-display); }
.quote figcaption small { display: block; color: var(--ink-3); font-size: .85rem; }
.quote__avatar {
  flex: none; width: 44px; height: 44px; border-radius: 50%;
  display: grid; place-items: center;
  font: 800 .85rem/1 var(--f-display); color: var(--bg); background: var(--grad);
}
.quote__flag {
  position: absolute; top: 1rem; right: 1rem;
  font: 600 .58rem/1 var(--f-display); letter-spacing: .2em; text-transform: uppercase;
  color: #FFC94D; border: 1px dashed rgba(255, 201, 77, .6); padding: .35rem .6rem; border-radius: 100px;
}

/* ---------- Rodapé ---------- */
.footer { border-top: 1px solid var(--line); padding: 2rem 0; background: rgba(5, 11, 26, .7); backdrop-filter: blur(10px); }
.footer__wrap { display: flex; justify-content: space-between; align-items: center; gap: 1rem; flex-wrap: wrap; }
.footer p { color: var(--ink-3); font-size: .85rem; }

/* ---------- Responsivo ---------- */
@media (max-width: 1320px) {
  .nav__links { gap: 1.5rem; }
}
@media (max-width: 1180px) {
  .nav__toggle { display: block; z-index: 2; }
  .nav__links {
    position: fixed; inset: 0; flex-direction: column; justify-content: center; gap: 2.2rem;
    background: rgba(5, 11, 26, .96); backdrop-filter: blur(20px);
    opacity: 0; visibility: hidden; transition: opacity .4s, visibility .4s;
  }
  .nav.is-open .nav__links { opacity: 1; visibility: visible; }
  .nav__links a:not(.btn) { font-size: 1.6rem; }
}
@media (max-width: 1080px) {
  .cards { grid-template-columns: repeat(2, 1fr); }
  .rail { display: none; }
  .quotes { grid-template-columns: repeat(2, 1fr); }
  .iphone { width: min(280px, 76vw); }
  .evolve__wrap { gap: 2.5rem; }
  .techniques { gap: 1.4rem 1.6rem; }
}
@media (max-width: 860px) {
  .contact__wrap { grid-template-columns: 1fr; }
  .scroll-hint { display: none; }
  .evolve__wrap { grid-template-columns: 1fr; }
  .evolve__device { order: 2; }
}
@media (max-width: 560px) {
  .cards, .form, .quotes, .techniques { grid-template-columns: 1fr; }
  .card { min-height: 0; }
  .hero__sub { letter-spacing: .7em; margin-right: -.7em; }
}
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation-duration: .01ms !important; animation-iteration-count: 1 !important; transition-duration: .01ms !important; }
  .reveal, .hero__sub, .hero__title { opacity: 1; transform: none; }
  .split .w > span { transform: none; }
  .evolve__device.is-in .iphone { animation: none; }
}
