/* =========================================================
   RSTECH — estilos
   Referência visual: estética escura premium, brilhos roxos
   difusos, título em degradê, botões em pílula.
   ========================================================= */

/* ---------- 1. Tokens ---------- */
:root {
  --bg: #09080D;          /* preto profundo */
  --graphite: #15131D;    /* grafite */
  --graphite-2: #1C1927;
  --purple: #7000FF;      /* roxo */
  --violet: #A855F7;      /* violeta */
  --yellow: #FFFF00;      /* amarelo neon — só destaques */
  --white: #F5F5F7;       /* branco */

  --text: #F5F5F7;
  --muted: #A7A3B5;       /* ≥ 7:1 sobre --bg */
  --line: rgba(245, 245, 247, .09);
  --line-2: rgba(245, 245, 247, .16);

  --font: "Geist", "Segoe UI", system-ui, -apple-system, sans-serif;
  --mono: "Geist Mono", ui-monospace, Consolas, monospace;

  --wrap: 1240px;
  --gutter: clamp(20px, 4vw, 48px);
  --header-h: 76px;
  --section-y: clamp(96px, 12vw, 168px);

  --r-sm: 10px;
  --r-md: 16px;
  --r-lg: 22px;

  --ease: cubic-bezier(.22, .8, .24, 1);
  --ease-io: cubic-bezier(.65, 0, .35, 1);
}

/* ---------- 2. Base ---------- */
*, *::before, *::after { box-sizing: border-box; }

html {
  scroll-behavior: smooth;
  scroll-padding-top: calc(var(--header-h) + 12px);
  -webkit-text-size-adjust: 100%;
}

body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font-family: var(--font);
  font-size: 1.0625rem;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}

img, svg { display: block; max-width: 100%; }
h1, h2, h3, p { margin: 0; }
h1, h2, h3 { font-weight: 500; line-height: 1.08; letter-spacing: -.03em; }
ul, ol { margin: 0; padding: 0; list-style: none; }
a { color: inherit; }
strong { font-weight: 600; color: var(--white); }

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

.sr-only {
  position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px;
  overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0;
}

.skip-link {
  position: absolute; left: 16px; top: -80px; z-index: 200;
  background: var(--yellow); color: var(--bg); padding: 12px 18px; border-radius: 999px;
  font-weight: 600; text-decoration: none;
}
.skip-link:focus { top: 14px; }

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

/* ---------- 3. Tipografia reutilizável ---------- */
.display {
  font-size: clamp(2.25rem, 4.6vw, 3.75rem);
  font-weight: 500;
  letter-spacing: -.04em;
  line-height: 1.04;
  text-wrap: balance;
  /* degradê prateado → lilás, como na referência */
  background: linear-gradient(100deg, #9E99AE 0%, #F5F5F7 42%, #F5F5F7 62%, #CDB4FF 100%);
  -webkit-background-clip: text; background-clip: text;
  color: transparent;
}
.display-xl { font-size: clamp(2.75rem, 7vw, 6rem); }

.overline {
  display: inline-flex; align-items: center; gap: 10px;
  font: 500 .75rem/1 var(--mono);
  letter-spacing: .16em; text-transform: uppercase;
  color: var(--violet);
  margin-bottom: 22px;
}
.overline .dot {
  width: 6px; height: 6px; border-radius: 50%;
  background: var(--yellow);
  box-shadow: 0 0 12px var(--yellow);
}

.section-text { color: var(--muted); font-size: 1.125rem; max-width: 52ch; }

/* ---------- 4. Botões ---------- */
.btn {
  --glow: rgba(255, 255, 0, .45);
  position: relative;
  display: inline-flex; align-items: center; justify-content: center; gap: 10px;
  min-height: 52px; padding: 0 28px;
  border-radius: 999px; border: 1px solid transparent;
  font: 600 .9875rem/1 var(--font); letter-spacing: -.005em;
  text-decoration: none; cursor: pointer;
  transition: transform .35s var(--ease), box-shadow .35s var(--ease), background-color .25s, border-color .25s, color .25s;
}
.btn:active { transform: translateY(0) scale(.98); }

.btn-primary { background: var(--yellow); color: var(--bg); }
.btn-primary:hover {
  transform: translateY(-2px);
  box-shadow: 0 0 0 4px rgba(255, 255, 0, .12), 0 14px 34px -10px var(--glow);
}

.btn-ghost {
  color: var(--white); border-color: var(--line-2);
  background: rgba(245, 245, 247, .02);
}
.btn-ghost:hover {
  transform: translateY(-2px);
  border-color: rgba(168, 85, 247, .7);
  box-shadow: 0 0 0 4px rgba(168, 85, 247, .1), 0 14px 34px -14px rgba(168, 85, 247, .7);
}

.btn-sm { min-height: 42px; padding: 0 20px; font-size: .9375rem; }
.btn-block { width: 100%; }

.chev { width: 14px; height: 14px; fill: none; stroke: currentColor; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; transition: transform .3s var(--ease); }

.btn-link {
  display: inline-flex; align-items: center; gap: 6px;
  min-height: 52px; padding: 0 6px;
  font-weight: 500; text-decoration: none; color: var(--white);
}
.btn-link:hover .chev, .card-link:hover .chev { transform: translateX(4px); }

/* ---------- 5. Cabeçalho ---------- */
.site-header {
  position: fixed; inset: 0 0 auto 0; z-index: 100;
  height: var(--header-h);
  border-bottom: 1px solid transparent;
  transition: background-color .35s var(--ease), border-color .35s var(--ease), backdrop-filter .35s;
}
.site-header.is-scrolled,
.menu-open .site-header {
  background: rgba(9, 8, 13, .72);
  -webkit-backdrop-filter: blur(18px) saturate(150%);
  backdrop-filter: blur(18px) saturate(150%);
  border-bottom-color: var(--line);
}

.header-inner { height: 100%; display: flex; align-items: center; justify-content: space-between; gap: 24px; }

.brand { display: inline-flex; align-items: center; border-radius: 6px; }
.brand img { height: 30px; width: auto; }

.site-nav { display: flex; align-items: center; gap: 36px; }
.site-nav ul { display: flex; gap: 32px; }
.site-nav ul a {
  text-decoration: none; font-size: .9375rem; color: rgba(245, 245, 247, .78);
  padding: 8px 0; transition: color .2s;
}
.site-nav ul a:hover, .site-nav ul a[aria-current="true"] { color: var(--white); }

.nav-toggle {
  display: none; width: 48px; height: 48px; margin-right: -12px;
  background: none; border: 0; color: var(--white); cursor: pointer;
  align-items: center; justify-content: center; border-radius: 12px;
}
.nav-toggle-bars, .nav-toggle-bars::before, .nav-toggle-bars::after {
  display: block; width: 22px; height: 1.5px; background: currentColor; border-radius: 2px;
  transition: transform .3s var(--ease), background-color .2s;
}
.nav-toggle-bars { position: relative; }
.nav-toggle-bars::before, .nav-toggle-bars::after { content: ""; position: absolute; left: 0; }
.nav-toggle-bars::before { top: -7px; }
.nav-toggle-bars::after { top: 7px; }
.nav-toggle[aria-expanded="true"] .nav-toggle-bars { background: transparent; }
.nav-toggle[aria-expanded="true"] .nav-toggle-bars::before { transform: translateY(7px) rotate(45deg); }
.nav-toggle[aria-expanded="true"] .nav-toggle-bars::after { transform: translateY(-7px) rotate(-45deg); }

@media (max-width: 939px) {
  .nav-toggle { display: inline-flex; }
  .site-nav {
    position: fixed; inset: var(--header-h) 0 auto 0;
    flex-direction: column; align-items: stretch; gap: 28px;
    padding: 16px var(--gutter) 32px;
    background: rgba(9, 8, 13, .96);
    -webkit-backdrop-filter: blur(18px); backdrop-filter: blur(18px);
    border-bottom: 1px solid var(--line);
    visibility: hidden; opacity: 0; transform: translateY(-10px);
    transition: opacity .25s var(--ease), transform .25s var(--ease), visibility 0s linear .25s;
  }
  .menu-open .site-nav {
    visibility: visible; opacity: 1; transform: none;
    transition: opacity .25s var(--ease), transform .25s var(--ease), visibility 0s;
  }
  .site-nav ul { flex-direction: column; gap: 0; }
  .site-nav ul a {
    display: block; padding: 16px 0; font-size: 1.375rem; letter-spacing: -.02em; color: var(--white);
    border-bottom: 1px solid var(--line);
  }
}

/* ---------- 6. Luz ambiente (gradientes animados discretos) ---------- */
.ambient { position: absolute; inset: 0; z-index: -1; overflow: hidden; pointer-events: none; }
.ambient span {
  position: absolute; border-radius: 50%;
  filter: blur(40px);
  will-change: transform;
}
.hero .ambient span:nth-child(1) {
  width: 60vw; height: 60vw; max-width: 900px; max-height: 900px;
  left: 30%; top: -42%;
  background: radial-gradient(closest-side, rgba(112, 0, 255, .42), rgba(112, 0, 255, 0));
}
.hero .ambient span:nth-child(2) {
  width: 46vw; height: 46vw; max-width: 700px; max-height: 700px;
  right: -12%; top: 18%;
  background: radial-gradient(closest-side, rgba(168, 85, 247, .22), rgba(168, 85, 247, 0));
}

/* ---------- 7. Hero ---------- */
.hero {
  position: relative; isolation: isolate;
  padding-top: calc(var(--header-h) + clamp(40px, 7vw, 96px));
  padding-bottom: clamp(64px, 9vw, 128px);
  overflow: hidden;
}
/* grade sutil no fundo, apagando nas bordas */
.hero::before {
  content: ""; position: absolute; inset: 0; z-index: -1;
  background-image:
    linear-gradient(rgba(245, 245, 247, .035) 1px, transparent 1px),
    linear-gradient(90deg, rgba(245, 245, 247, .035) 1px, transparent 1px);
  background-size: 64px 64px;
  -webkit-mask-image: radial-gradient(ellipse 70% 60% at 50% 30%, #000, transparent 75%);
  mask-image: radial-gradient(ellipse 70% 60% at 50% 30%, #000, transparent 75%);
}

.hero-grid {
  display: grid; grid-template-columns: minmax(0, 1.05fr) minmax(0, 1fr);
  align-items: center; gap: clamp(32px, 5vw, 72px);
}

.hero h1 {
  font-size: clamp(2.6rem, 5vw, 4.25rem);
  line-height: 1.02;
  letter-spacing: -.045em;
}
.hero-text { margin-top: 28px; max-width: 46ch; font-size: clamp(1.0625rem, 1.3vw, 1.1875rem); color: var(--muted); }
.hero-actions { margin-top: 40px; display: flex; flex-wrap: wrap; align-items: center; gap: 12px 20px; }

/* composição à direita */
.hero-visual { position: relative; width: 100%; max-width: 600px; aspect-ratio: 1; margin-inline: auto; }
.hero-visual::before {
  content: ""; position: absolute; inset: 18%;
  border-radius: 50%;
  background: radial-gradient(closest-side, rgba(112, 0, 255, .5), rgba(112, 0, 255, 0));
  filter: blur(30px);
}
.orbits { position: absolute; inset: 0; width: 100%; height: 100%; overflow: visible; }
.orbit-spin { transform-origin: 300px 300px; }

.orbit-label {
  position: absolute;
  font: 500 .6875rem/1 var(--mono); letter-spacing: .16em; text-transform: uppercase;
  color: rgba(245, 245, 247, .72);
}
.orbit-label.l1 { top: 3%; left: 30%; }
.orbit-label.l2 { top: 49%; left: -3%; }
.orbit-label.l3 { bottom: 5%; left: 28%; color: rgba(245, 245, 247, .62); }
.orbit-label.l4 { bottom: 22%; right: -2%; }

.stage { position: absolute; inset: 16%; perspective: 1400px; }

.ui {
  position: absolute;
  background: linear-gradient(180deg, rgba(34, 29, 47, .94), rgba(21, 19, 29, .96));
  border: 1px solid rgba(245, 245, 247, .1);
  border-radius: 14px;
  box-shadow: 0 40px 80px -30px rgba(0, 0, 0, .8), 0 20px 60px -20px rgba(112, 0, 255, .45), inset 0 1px 0 rgba(255, 255, 255, .06);
}
.ui-main {
  left: -6%; top: 14%; width: 92%;
  transform: rotateY(-14deg) rotateX(7deg);
}
.ui-bar { display: flex; align-items: center; gap: 6px; padding: 10px 12px; border-bottom: 1px solid var(--line); }
.ui-bar i { width: 7px; height: 7px; border-radius: 50%; background: rgba(245, 245, 247, .18); }
.ui-bar span { margin-left: 8px; font: 400 .625rem/1 var(--mono); color: rgba(245, 245, 247, .45); letter-spacing: .04em; }
.ui-body { display: grid; grid-template-columns: 30px 1fr; }
.ui-side { display: grid; align-content: start; gap: 8px; padding: 12px 8px; border-right: 1px solid var(--line); }
.ui-side b { display: block; height: 14px; border-radius: 4px; background: rgba(245, 245, 247, .08); }
.ui-side b.on { background: var(--violet); box-shadow: 0 0 12px rgba(168, 85, 247, .7); }
.ui-content { padding: 12px; display: grid; gap: 10px; }
.ui-kpis { display: grid; grid-template-columns: repeat(3, 1fr); gap: 8px; }
.ui-kpis div { padding: 8px; border-radius: 8px; background: rgba(245, 245, 247, .04); border: 1px solid var(--line); display: grid; gap: 6px; }
.ui-kpis em { display: block; height: 5px; width: 60%; border-radius: 3px; background: rgba(245, 245, 247, .18); }
.ui-kpis strong { display: block; height: 10px; width: 80%; border-radius: 3px; background: rgba(245, 245, 247, .5); }
.ui-kpis .hl { background: linear-gradient(135deg, rgba(112, 0, 255, .5), rgba(168, 85, 247, .2)); border-color: rgba(168, 85, 247, .45); }
.ui-kpis .hl strong { background: var(--white); }
.ui-chart { width: 100%; height: 70px; }
.ui-rows { display: grid; gap: 6px; }
.ui-rows span { display: block; height: 7px; border-radius: 4px; background: rgba(245, 245, 247, .07); }
.ui-rows span:nth-child(2) { width: 82%; }
.ui-rows span:nth-child(3) { width: 64%; }

.ui-order {
  right: -14%; top: -4%; width: 40%; padding: 14px;
  display: grid; gap: 8px;
  transform: rotateY(-14deg) rotateX(7deg) translateZ(60px);
}
.ui-tag {
  justify-self: start;
  font: 500 .5625rem/1 var(--mono); letter-spacing: .12em; text-transform: uppercase;
  color: var(--bg); background: var(--yellow); padding: 5px 8px; border-radius: 999px;
}
.ui-line { height: 7px; border-radius: 4px; background: rgba(245, 245, 247, .22); }
.w80 { width: 80%; } .w70 { width: 70%; } .w55 { width: 55%; background: rgba(245, 245, 247, .1); }
.ui-items { display: grid; gap: 5px; margin-top: 4px; }
.ui-items span { height: 16px; border-radius: 5px; border: 1px solid var(--line); background: rgba(245, 245, 247, .03); }
.ui-btn { height: 18px; border-radius: 999px; background: linear-gradient(90deg, var(--purple), var(--violet)); margin-top: 2px; }

.ui-cat {
  left: -16%; bottom: -6%; width: 42%; padding: 12px;
  display: grid; gap: 10px;
  transform: rotateY(-14deg) rotateX(7deg) translateZ(90px);
}
.ui-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 6px; }
.ui-grid span { aspect-ratio: 1; border-radius: 7px; background: rgba(245, 245, 247, .06); border: 1px solid var(--line); }
.ui-grid span.v { background: linear-gradient(140deg, rgba(168, 85, 247, .55), rgba(112, 0, 255, .25)); }

@media (max-width: 939px) {
  .hero-grid { grid-template-columns: 1fr; }
  .hero-visual { max-width: 520px; }
}
@media (max-width: 539px) {
  .hero-actions .btn { width: 100%; }
  .hero-actions .btn-link { width: 100%; justify-content: center; }
  .orbit-label.l2 { left: 0; }
  .orbit-label.l4 { right: 0; }
}

/* ---------- 8. Seções ---------- */
.section { position: relative; padding-block: var(--section-y); }
.section + .section { border-top: 1px solid var(--line); }

.section-head { max-width: 760px; margin-bottom: clamp(48px, 6vw, 80px); }
.section-head .section-text { margin-top: 22px; }
.section-head-split {
  max-width: none;
  display: grid; grid-template-columns: minmax(0, 1.2fr) minmax(0, 1fr); gap: 24px 64px; align-items: end;
}
.section-head-split .section-text { margin-top: 0; }
@media (max-width: 859px) { .section-head-split { grid-template-columns: 1fr; } }

/* ---------- 9. Cartões de solução ---------- */
.cards { display: grid; grid-template-columns: repeat(6, minmax(0, 1fr)); gap: 16px; }
.card { grid-column: span 2; }
.card-wide { grid-column: span 3; }

.card {
  --mx: 50%; --my: 0%;
  position: relative; isolation: isolate; overflow: hidden;
  display: flex; flex-direction: column; gap: 14px;
  padding: clamp(26px, 2.6vw, 36px);
  background: var(--graphite);
  border: 1px solid var(--line);
  border-radius: var(--r-md);
  transition: transform .45s var(--ease), border-color .45s var(--ease), box-shadow .45s var(--ease);
}
/* iluminação roxa que segue o cursor */
.card::before {
  content: ""; position: absolute; inset: 0; z-index: -1;
  background: radial-gradient(420px circle at var(--mx) var(--my), rgba(168, 85, 247, .16), transparent 60%);
  opacity: 0; transition: opacity .45s var(--ease);
}
.card:hover { transform: translateY(-4px); border-color: rgba(168, 85, 247, .38); box-shadow: 0 24px 60px -30px rgba(112, 0, 255, .7); }
.card:hover::before { opacity: 1; }

.icon {
  width: 52px; height: 52px; padding: 12px; margin-bottom: 10px;
  border-radius: 14px; border: 1px solid var(--line-2);
  background: linear-gradient(160deg, rgba(168, 85, 247, .14), rgba(168, 85, 247, 0));
  fill: none; stroke: var(--violet); stroke-width: 1.6; stroke-linecap: round; stroke-linejoin: round;
  transition: border-color .45s var(--ease), box-shadow .45s var(--ease);
}
.card:hover .icon { border-color: rgba(168, 85, 247, .6); box-shadow: 0 0 24px -4px rgba(168, 85, 247, .6); }

.card h3 { font-size: 1.375rem; letter-spacing: -.025em; }
.card p { color: var(--muted); font-size: 1rem; max-width: 48ch; }
.card-link {
  margin-top: auto; padding-top: 10px;
  display: inline-flex; align-items: center; gap: 6px; align-self: flex-start;
  font-weight: 500; font-size: .9375rem; text-decoration: none; color: var(--white);
}
.card-link::after { content: ""; position: absolute; inset: 0; } /* cartão inteiro clicável */

@media (max-width: 1023px) {
  .cards { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .card, .card-wide { grid-column: span 1; }
  .card-wide:last-child { grid-column: span 2; }
}
@media (max-width: 639px) {
  .cards { grid-template-columns: 1fr; }
  .card, .card-wide, .card-wide:last-child { grid-column: auto; }
}

/* ---------- 10. Projetos (galeria assimétrica) ---------- */
.projects { display: grid; grid-template-columns: repeat(12, minmax(0, 1fr)); gap: clamp(20px, 2.4vw, 32px); }
.project { display: grid; gap: 24px; align-content: start; }
.p-a { grid-column: span 7; }
.p-b { grid-column: span 5; margin-top: clamp(0px, 8vw, 120px); }
.p-c { grid-column: 1 / -1; grid-template-columns: minmax(0, 7fr) minmax(0, 5fr); align-items: center; gap: clamp(24px, 4vw, 64px); }

.shot {
  position: relative; overflow: hidden;
  aspect-ratio: 16 / 11;
  border-radius: var(--r-lg);
  border: 1px solid var(--line);
  background:
    radial-gradient(110% 80% at 85% -10%, rgba(112, 0, 255, .55), transparent 60%),
    radial-gradient(70% 60% at 0% 110%, rgba(168, 85, 247, .18), transparent 70%),
    linear-gradient(160deg, #1B1727, #0E0C14);
}
.shot > * { transition: transform .9s var(--ease); }
.project:hover .shot > * { transform: translate(-6px, -6px); }
.p-b .shot { aspect-ratio: 4 / 5; }
.p-c .shot { aspect-ratio: 16 / 10; }

.project-meta { display: flex; flex-wrap: wrap; align-items: center; gap: 8px 14px; font-size: .875rem; color: var(--muted); margin-bottom: 12px; }
.badge {
  font: 500 .6875rem/1 var(--mono); letter-spacing: .12em; text-transform: uppercase;
  color: var(--yellow); border: 1px solid rgba(255, 255, 0, .35);
  padding: 6px 10px; border-radius: 999px;
}
.project h3 { font-size: clamp(1.375rem, 2vw, 1.75rem); letter-spacing: -.03em; margin-bottom: 10px; }
.project-info > p:last-child { color: var(--muted); max-width: 52ch; }

/* — mock: painel — */
.sd-top, .sd-wrap { position: absolute; left: 8%; right: -6%; background: #110F18; border: 1px solid var(--line-2); }
.sd-top { top: 12%; height: 30px; border-bottom: 0; border-radius: 12px 12px 0 0; display: flex; gap: 6px; align-items: center; padding-inline: 14px; }
.sd-top span { width: 8px; height: 8px; border-radius: 50%; background: rgba(245, 245, 247, .16); }
.sd-wrap { top: calc(12% + 30px); bottom: -8%; display: grid; grid-template-columns: 56px 1fr; box-shadow: 0 40px 80px -30px rgba(0, 0, 0, .8); }
.sd-nav { display: grid; align-content: start; gap: 12px; padding: 16px 14px; border-right: 1px solid var(--line); }
.sd-nav b { height: 26px; border-radius: 8px; background: rgba(245, 245, 247, .06); }
.sd-nav b.on { background: rgba(168, 85, 247, .5); box-shadow: 0 0 16px rgba(168, 85, 247, .5); }
.sd-main { padding: 18px; display: grid; gap: 14px; align-content: start; }
.sd-cards { display: grid; grid-template-columns: repeat(4, 1fr); gap: 10px; }
.sd-cards div { height: 58px; border-radius: 10px; border: 1px solid var(--line); background: rgba(245, 245, 247, .03); }
.sd-cards .hl { background: linear-gradient(135deg, rgba(112, 0, 255, .6), rgba(168, 85, 247, .25)); border-color: rgba(168, 85, 247, .5); }
.sd-split { display: grid; grid-template-columns: 1.6fr 1fr; gap: 12px; }
.sd-chart, .sd-list { border-radius: 10px; border: 1px solid var(--line); background: rgba(245, 245, 247, .02); padding: 14px; }
.sd-chart svg { width: 100%; height: 120px; }
.sd-chart rect { fill: rgba(168, 85, 247, .5); rx: 3; }
.sd-chart rect.y { fill: var(--yellow); }
.sd-list { display: grid; gap: 10px; align-content: start; }
.sd-list span { height: 18px; border-radius: 6px; background: rgba(245, 245, 247, .06); }

/* — mock: celular — */
.phone {
  position: absolute; left: 50%; top: 9%; width: 54%; aspect-ratio: 9 / 18.5;
  translate: -50% 0;
  padding: 18px 14px; border-radius: 34px;
  background: #100E17; border: 1px solid var(--line-2);
  box-shadow: 0 50px 90px -30px rgba(0, 0, 0, .9), 0 0 0 6px rgba(245, 245, 247, .03);
  display: grid; align-content: start; gap: 12px;
}
.ph-head { display: flex; justify-content: space-between; align-items: center; }
.ph-head span { width: 40%; height: 9px; border-radius: 5px; background: rgba(245, 245, 247, .5); }
.ph-head i { width: 22px; height: 22px; border-radius: 50%; background: rgba(245, 245, 247, .08); }
.ph-search { height: 30px; border-radius: 999px; border: 1px solid var(--line-2); }
.ph-chips { display: flex; gap: 6px; }
.ph-chips b { height: 20px; width: 28%; border-radius: 999px; background: rgba(245, 245, 247, .06); }
.ph-chips b.on { background: var(--violet); }
.ph-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; }
.ph-grid div { display: grid; gap: 6px; }
.ph-grid span { aspect-ratio: 1; border-radius: 12px; background: rgba(245, 245, 247, .05); border: 1px solid var(--line); }
.ph-grid span.v { background: linear-gradient(140deg, rgba(168, 85, 247, .6), rgba(112, 0, 255, .2)); }
.ph-grid em { height: 7px; width: 70%; border-radius: 4px; background: rgba(245, 245, 247, .18); }
.ph-cta { height: 34px; border-radius: 999px; background: var(--yellow); margin-top: 4px; }

/* — mock: site — */
.browser {
  position: absolute; left: 7%; top: 11%; right: -8%; bottom: -10%;
  border-radius: 14px; overflow: hidden;
  background: #0E0C14; border: 1px solid var(--line-2);
  box-shadow: 0 40px 80px -30px rgba(0, 0, 0, .85);
}
.br-bar { display: flex; align-items: center; gap: 6px; padding: 10px 14px; border-bottom: 1px solid var(--line); background: #15121E; }
.br-bar i { width: 8px; height: 8px; border-radius: 50%; background: rgba(245, 245, 247, .16); }
.br-bar span { margin-left: 14px; height: 16px; width: 38%; border-radius: 999px; background: rgba(245, 245, 247, .06); }
.br-page { padding: 4% 6%; display: grid; gap: 7%; }
.bp-nav { display: flex; align-items: center; gap: 4%; }
.bp-nav b { width: 12%; height: 12px; border-radius: 4px; background: rgba(245, 245, 247, .6); margin-right: auto; }
.bp-nav span { width: 7%; height: 6px; border-radius: 3px; background: rgba(245, 245, 247, .2); }
.bp-nav em { width: 12%; height: 18px; border-radius: 999px; background: var(--yellow); }
.bp-hero { display: grid; grid-template-columns: 1.1fr 1fr; gap: 6%; align-items: center; }
.bp-copy { display: grid; gap: 12px; }
.bp-copy span { height: 18px; border-radius: 5px; background: linear-gradient(90deg, #9E99AE, #F5F5F7); }
.bp-copy .t2 { width: 80%; }
.bp-copy .t3 { width: 64%; height: 7px; background: rgba(245, 245, 247, .2); margin-top: 6px; }
.bp-copy em { width: 34%; height: 22px; border-radius: 999px; background: var(--yellow); margin-top: 8px; }
.bp-art { aspect-ratio: 1; border-radius: 50%; border: 1px solid rgba(168, 85, 247, .4); display: grid; place-items: center; }
.bp-art i { width: 56%; aspect-ratio: 1; border-radius: 28%; transform: rotate(45deg); background: linear-gradient(135deg, var(--violet), var(--purple)); box-shadow: 0 0 60px rgba(112, 0, 255, .7); }
.bp-row { display: grid; grid-template-columns: repeat(3, 1fr); gap: 4%; }
.bp-row span { height: 54px; border-radius: 10px; border: 1px solid var(--line); background: rgba(245, 245, 247, .03); }

@media (max-width: 859px) {
  .p-a, .p-b { grid-column: 1 / -1; margin-top: 0; }
  .p-c { grid-template-columns: 1fr; }
  .p-b .shot { aspect-ratio: 16 / 13; }
  .phone { width: 40%; }
}
@media (max-width: 539px) {
  .phone { width: 52%; }
  .sd-wrap { grid-template-columns: 34px 1fr; }
  .sd-nav { padding: 10px 7px; gap: 8px; }
  .sd-nav b { height: 16px; }
  .sd-main { padding: 10px; gap: 8px; }
  .sd-cards div { height: 30px; }
  .sd-chart svg { height: 60px; }
}

/* ---------- 11. Como funciona ---------- */
.steps { position: relative; display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 32px; }
/* linha que conecta as etapas */
.steps::before, .steps::after {
  content: ""; position: absolute; top: 27px; left: 28px; right: 28px; height: 1px;
}
.steps::before { background: var(--line-2); }
.steps::after {
  background: linear-gradient(90deg, var(--yellow), var(--violet) 30%, var(--purple) 75%, rgba(112, 0, 255, 0));
  transform-origin: left; transform: scaleX(0);
  transition: transform 1.6s var(--ease-io) .2s;
}
.steps.is-in::after, html:not(.js) .steps::after { transform: scaleX(1); }

.step { position: relative; z-index: 1; }
.step-num {
  display: grid; place-items: center;
  width: 56px; height: 56px; margin-bottom: 28px;
  border-radius: 50%;
  font: 500 .875rem/1 var(--mono); color: var(--white);
  background: var(--graphite); border: 1px solid rgba(168, 85, 247, .45);
  box-shadow: 0 0 0 6px var(--bg), 0 0 30px -6px rgba(168, 85, 247, .6);
}
.step:first-child .step-num { color: var(--bg); background: var(--yellow); border-color: var(--yellow); box-shadow: 0 0 0 6px var(--bg), 0 0 30px -4px rgba(255, 255, 0, .5); }
.step h3 { font-size: 1.25rem; letter-spacing: -.025em; margin-bottom: 10px; }
.step p { color: var(--muted); font-size: 1rem; }

@media (max-width: 939px) {
  .steps { grid-template-columns: 1fr; gap: 40px; max-width: 620px; }
  .steps::before, .steps::after { top: 28px; bottom: 28px; left: 27px; right: auto; width: 1px; height: auto; }
  .steps::after { transform-origin: top; transform: scaleY(0); background: linear-gradient(180deg, var(--yellow), var(--violet) 30%, var(--purple) 75%, rgba(112, 0, 255, 0)); }
  .steps.is-in::after, html:not(.js) .steps::after { transform: scaleY(1); }
  .step { display: grid; grid-template-columns: 56px 1fr; column-gap: 24px; }
  .step-num { grid-row: span 2; margin: 0; }
  .step h3 { margin: 14px 0 8px; }
}

/* ---------- 12. Sobre ---------- */
.about-grid { display: grid; grid-template-columns: minmax(0, 5fr) minmax(0, 7fr); gap: clamp(40px, 7vw, 112px); align-items: center; }

.about-visual { position: relative; aspect-ratio: 1; max-width: 480px; width: 100%; margin-inline: auto; display: grid; place-items: center; }
.about-visual::before {
  content: ""; position: absolute; inset: 14%; border-radius: 50%;
  background: radial-gradient(closest-side, rgba(112, 0, 255, .55), rgba(112, 0, 255, 0));
  filter: blur(24px);
}
.about-rings, .about-rings span { position: absolute; inset: 0; border-radius: 50%; }
.about-rings span { border: 1px solid var(--line-2); }
.about-rings span:nth-child(2) { inset: 13%; border-style: dashed; border-color: rgba(168, 85, 247, .35); }
.about-rings span:nth-child(3) { inset: 26%; border-color: rgba(245, 245, 247, .06); background: radial-gradient(circle, rgba(21, 19, 29, .8), rgba(21, 19, 29, 0) 70%); }
.about-visual img {
  position: relative; width: 50%; height: auto;
  filter: drop-shadow(0 0 30px rgba(112, 0, 255, .6));
  /* suaviza as bordas do recorte do símbolo */
  -webkit-mask-image: radial-gradient(circle, #000 52%, transparent 70%);
  mask-image: radial-gradient(circle, #000 52%, transparent 70%);
}

.about-copy .section-text { margin-top: 22px; }
.values { margin-top: 44px; display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 24px; }
.values li { padding-top: 20px; border-top: 1px solid var(--line-2); display: grid; gap: 8px; }
.values li:first-child { border-top-color: var(--yellow); }
.values strong { font-size: 1.0625rem; font-weight: 500; }
.values span { color: var(--muted); font-size: .9375rem; }

@media (max-width: 939px) {
  .about-grid { grid-template-columns: 1fr; }
  .about-visual { max-width: 340px; }
}
@media (max-width: 639px) { .values { grid-template-columns: 1fr; } }

/* ---------- 13. Contato ---------- */
.contact { isolation: isolate; overflow: hidden; }
.ambient-contact span {
  width: 80vw; height: 50vw; max-width: 1100px; max-height: 700px;
  left: 50%; top: -6%; translate: -50% 0;
  background: radial-gradient(closest-side, rgba(112, 0, 255, .4), rgba(112, 0, 255, 0));
}

.contact-head { text-align: center; max-width: 900px; margin: 0 auto clamp(56px, 7vw, 96px); display: grid; justify-items: center; }
.contact-head .section-text { margin-top: 24px; }
.contact-actions { margin-top: 40px; display: flex; flex-wrap: wrap; justify-content: center; gap: 12px; }
.wa { width: 20px; height: 20px; fill: currentColor; }
#wa-status { margin-top: 16px; }

.contact-grid { display: grid; grid-template-columns: minmax(0, 4fr) minmax(0, 7fr); gap: 16px; align-items: start; }
.contact-channels, .contact-form {
  background: var(--graphite); border: 1px solid var(--line); border-radius: var(--r-lg);
  padding: clamp(24px, 3vw, 40px);
}
.contact-channels h3 { font-size: 1.25rem; letter-spacing: -.02em; margin-bottom: 18px; }
.channels li + li { border-top: 1px solid var(--line); }
.channels a {
  display: flex; justify-content: space-between; align-items: center; gap: 16px;
  padding: 16px 0; text-decoration: none;
}
.channels a:hover .channel-value { color: var(--yellow); }
.channel-label { font: 500 .6875rem/1 var(--mono); text-transform: uppercase; letter-spacing: .14em; color: var(--muted); }
.channel-value { font-weight: 500; overflow-wrap: anywhere; text-align: right; transition: color .2s; }
.channels-pending { color: var(--muted); font-size: .9375rem; }

.contact-form { display: grid; gap: 22px; }
.field-row { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
.field { display: grid; gap: 8px; border: 0; margin: 0; padding: 0; min-width: 0; }
.field label, .field legend { font-weight: 500; font-size: .9375rem; padding: 0; }
.field legend { margin-bottom: 10px; }
.optional { font-weight: 400; color: var(--muted); }

input[type="text"], textarea {
  width: 100%; font: 400 1rem/1.5 var(--font); color: var(--white);
  background: #0E0C14; border: 1px solid var(--line-2); border-radius: var(--r-sm);
  padding: 13px 16px;
  transition: border-color .25s, box-shadow .25s;
}
textarea { resize: vertical; min-height: 130px; }
input[type="text"]:hover, textarea:hover { border-color: rgba(245, 245, 247, .3); }
input[type="text"]:focus-visible, textarea:focus-visible {
  outline: none; border-color: var(--violet);
  box-shadow: 0 0 0 4px rgba(168, 85, 247, .2);
}
[aria-invalid="true"] { border-color: #FF8A8A !important; }

.choices { display: grid; grid-template-columns: repeat(3, 1fr); gap: 8px; }
.choice { position: relative; cursor: pointer; }
.choice input { position: absolute; opacity: 0; width: 1px; height: 1px; }
.choice span {
  display: flex; align-items: center; justify-content: center; text-align: center;
  min-height: 46px; padding: 8px 12px; border-radius: 999px;
  border: 1px solid var(--line-2); font-size: .9375rem; line-height: 1.2;
  transition: border-color .25s, background-color .25s, color .25s, box-shadow .25s;
}
.choice:hover span { border-color: rgba(168, 85, 247, .5); }
.choice input:checked + span {
  background: linear-gradient(135deg, var(--purple), #8B2CF5);
  border-color: transparent; color: #fff;
  box-shadow: 0 8px 24px -10px rgba(112, 0, 255, .8);
}
.choice input:focus-visible + span { outline: 2px solid var(--yellow); outline-offset: 2px; }

.form-status { font-size: .9375rem; min-height: 1.5em; }
.form-status.is-ok { color: var(--yellow); }
.form-status.is-error { color: #FFB4B4; }

@media (max-width: 939px) { .contact-grid { grid-template-columns: 1fr; } }
@media (max-width: 539px) {
  .field-row { grid-template-columns: 1fr; }
  .choices { grid-template-columns: 1fr 1fr; }
  .contact-actions .btn { width: 100%; }
}

/* ---------- 14. Rodapé ---------- */
.site-footer { border-top: 1px solid var(--line); padding-block: 48px; color: var(--muted); font-size: .9375rem; }
.footer-inner { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 24px 40px; }
.footer-inner .brand img { height: 26px; }
.footer-inner nav ul { display: flex; flex-wrap: wrap; gap: 8px 28px; }
.footer-inner nav a { text-decoration: none; padding: 6px 0; display: inline-block; transition: color .2s; }
.footer-inner nav a:hover { color: var(--white); }
.copy { width: 100%; padding-top: 24px; border-top: 1px solid var(--line); font-size: .8125rem; }

/* ---------- 15. Movimento ---------- */
/* surgir ao rolar (só com JS ativo) */
.js .reveal { opacity: 0; transform: translateY(28px); transition: opacity .9s var(--ease), transform .9s var(--ease); }
.js .reveal.is-in { opacity: 1; transform: none; }
.js .cards .reveal:nth-child(2), .js .projects .reveal:nth-child(2) { transition-delay: .08s; }
.js .cards .reveal:nth-child(3) { transition-delay: .16s; }
.js .cards .reveal:nth-child(5) { transition-delay: .08s; }

@media (prefers-reduced-motion: no-preference) {
  /* entrada do hero */
  .hero-copy > * { animation: rise 1s var(--ease) both; }
  .hero-copy > :nth-child(2) { animation-delay: .08s; }
  .hero-copy > :nth-child(3) { animation-delay: .16s; }
  .hero-copy > :nth-child(4) { animation-delay: .24s; }
  .hero-visual { animation: fade-scale 1.4s var(--ease) .15s both; }

  /* gradientes vivos, bem lentos */
  .hero .ambient span:nth-child(1) { animation: drift-a 18s ease-in-out infinite alternate; }
  .hero .ambient span:nth-child(2) { animation: drift-b 22s ease-in-out infinite alternate; }
  .ambient-contact span { animation: pulse 10s ease-in-out infinite alternate; }

  .orbit-spin { animation: spin 60s linear infinite; }
  .about-rings span:nth-child(2) { animation: spin 80s linear infinite; }
  .ui-main  { animation: float-a 9s ease-in-out infinite alternate; }
  .ui-order { animation: float-b 7s ease-in-out infinite alternate; }
  .ui-cat   { animation: float-c 8s ease-in-out infinite alternate; }
  .chart-line { stroke-dasharray: 420; stroke-dashoffset: 420; animation: draw 2.2s var(--ease) .8s forwards; }
}

@keyframes rise { from { opacity: 0; transform: translateY(22px); } to { opacity: 1; transform: none; } }
@keyframes fade-scale { from { opacity: 0; transform: scale(.94); } to { opacity: 1; transform: none; } }
@keyframes drift-a { to { transform: translate(-8%, 6%) scale(1.08); } }
@keyframes drift-b { to { transform: translate(-10%, -8%) scale(.92); } }
@keyframes pulse { to { opacity: .6; transform: scale(1.1); } }
@keyframes spin { to { transform: rotate(360deg); } }
@keyframes draw { to { stroke-dashoffset: 0; } }
@keyframes float-a { from { transform: rotateY(-14deg) rotateX(7deg) translateY(0); } to { transform: rotateY(-14deg) rotateX(7deg) translateY(-10px); } }
@keyframes float-b { from { transform: rotateY(-14deg) rotateX(7deg) translateZ(60px) translateY(0); } to { transform: rotateY(-14deg) rotateX(7deg) translateZ(60px) translateY(-14px); } }
@keyframes float-c { from { transform: rotateY(-14deg) rotateX(7deg) translateZ(90px) translateY(0); } to { transform: rotateY(-14deg) rotateX(7deg) translateZ(90px) translateY(-8px); } }

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .js .reveal { opacity: 1; transform: none; transition: none; }
  .steps::after { transform: none !important; transition: none; }
  *, *::before, *::after { transition-duration: .01ms !important; animation: none !important; }
}

/* ---------- 16. Botão flutuante do WhatsApp (js/comum.js) ---------- */
.wa-float {
  position: fixed; z-index: 90;
  right: max(20px, env(safe-area-inset-right)); bottom: max(20px, env(safe-area-inset-bottom));
  display: inline-flex; align-items: center; gap: 10px;
  min-height: 56px; padding: 0 22px 0 18px; border-radius: 999px;
  background: var(--yellow); color: var(--bg);
  font: 600 .9375rem/1 var(--font); text-decoration: none;
  box-shadow: 0 0 0 1px rgba(9, 8, 13, .4), 0 16px 40px -12px rgba(0, 0, 0, .8);
  transition: transform .35s var(--ease), opacity .3s var(--ease), box-shadow .35s var(--ease);
}
.wa-float svg { width: 22px; height: 22px; fill: currentColor; flex: none; }
.wa-float:hover { transform: translateY(-2px); box-shadow: 0 0 0 4px rgba(255, 255, 0, .14), 0 16px 40px -12px rgba(255, 255, 0, .45); }
.wa-float.is-hidden { opacity: 0; transform: translateY(16px); pointer-events: none; }
@media (max-width: 639px) {
  .wa-float { width: 56px; padding: 0; justify-content: center; }
  .wa-float span { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
}

/* ---------- 17. Perguntas frequentes ---------- */
.faq-grid { display: grid; grid-template-columns: minmax(0, 4fr) minmax(0, 7fr); gap: clamp(32px, 6vw, 96px); align-items: start; }
.faq-grid .section-head { margin-bottom: 0; position: sticky; top: calc(var(--header-h) + 32px); }
.faq { border-top: 1px solid var(--line-2); }
.faq details { border-bottom: 1px solid var(--line-2); }
.faq summary {
  list-style: none; cursor: pointer;
  display: flex; justify-content: space-between; align-items: center; gap: 24px;
  padding: 24px 0; font-size: 1.1875rem; font-weight: 500; letter-spacing: -.015em;
}
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after {
  content: ""; flex: none; width: 12px; height: 12px;
  border-right: 1.5px solid var(--violet); border-bottom: 1.5px solid var(--violet);
  transform: translateY(-3px) rotate(45deg); transition: transform .3s var(--ease);
}
.faq details[open] summary::after { transform: translateY(3px) rotate(-135deg); }
.faq summary:hover { color: var(--white); }
.faq details p { color: var(--muted); padding: 0 40px 26px 0; max-width: 62ch; }
.faq details p a { color: var(--white); }
@media (max-width: 939px) {
  .faq-grid { grid-template-columns: 1fr; }
  .faq-grid .section-head { position: static; }
}

/* ---------- 18. Responsável pelo projeto ---------- */
.person { display: grid; grid-template-columns: minmax(0, 5fr) minmax(0, 7fr); gap: clamp(40px, 7vw, 112px); align-items: center; }
.person-photo {
  position: relative; margin: 0; aspect-ratio: 1; width: 100%; max-width: 440px; justify-self: center;
  border-radius: var(--r-lg); overflow: hidden; border: 1px solid var(--line-2);
  background: radial-gradient(90% 90% at 80% 0%, rgba(112, 0, 255, .5), transparent 60%), linear-gradient(160deg, #1B1727, #0E0C14);
  display: grid; place-items: center;
}
.person-initials { font: 500 clamp(4rem, 9vw, 7rem)/1 var(--font); letter-spacing: -.05em; color: rgba(245, 245, 247, .85); }
.person-photo img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.person-role { margin-top: 14px; color: var(--violet); font-weight: 500; font-size: 1.125rem; }
.person-copy .section-text { margin-top: 22px; }
.person-facts { margin-top: 36px; display: grid; grid-template-columns: 1fr 1fr; gap: 24px; }
.person-facts li { display: grid; gap: 8px; padding-top: 18px; border-top: 1px solid var(--line-2); }
.person-facts li:first-child { border-top-color: var(--yellow); }
.person-facts strong { font-weight: 500; }
.person-facts span { color: var(--muted); font-size: .9375rem; }
@media (max-width: 859px) {
  .person { grid-template-columns: 1fr; }
  .person-photo { max-width: 320px; justify-self: start; }
}
@media (max-width: 539px) { .person-facts { grid-template-columns: 1fr; } }

/* ---------- 19. Links legais no rodapé ---------- */
.copy a { color: inherit; }
.copy a:hover { color: var(--white); }
