/* =========================================================
   YS CODE | style.css
   Direção: editorial, tipografia grande, preto azulado com azul e ciano.
   Estados iniciais de animação só existem sob a classe .js, que é
   removida automaticamente se o JavaScript ou o GSAP não carregarem.
   ========================================================= */

/* ---------- 1. Tokens ---------- */
:root {
  --ink: #020611;
  --ink-2: #050b1d;
  --ink-3: #0a1330;
  --blue: #064cff;
  --cyan: #00cfff;
  --paper: #eef3ff;
  --mute: #8d99ba;
  --mute-2: #5c6891;
  --line: rgba(160, 185, 255, 0.14);
  --line-2: rgba(160, 185, 255, 0.28);
  --danger: #ff8a98;

  --font-display: "Bricolage Grotesque", "Helvetica Neue", Arial, sans-serif;
  --font-body: "Instrument Sans", "Helvetica Neue", Arial, sans-serif;

  --ease: cubic-bezier(0.2, 0, 0, 1);
  --ease-io: cubic-bezier(0.7, 0, 0.2, 1);

  --pad: clamp(20px, 4vw, 56px);
  --max: 1480px;
  --nav-h: 76px;
}

/* ---------- 2. Base ---------- */
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
html.lenis, html.lenis body { height: auto; }
.lenis.lenis-smooth { scroll-behavior: auto !important; }
.lenis.lenis-stopped { overflow: hidden; }

body {
  margin: 0;
  background: var(--ink);
  color: var(--paper);
  font-family: var(--font-body);
  font-size: 1.0625rem;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  text-rendering: optimizeLegibility;
  overflow-x: hidden;
}

img, svg, canvas { display: block; max-width: 100%; }
a { color: inherit; text-decoration: none; }
button, input, textarea, select { font: inherit; color: inherit; }
button { background: none; border: 0; padding: 0; cursor: pointer; }
ul, ol { list-style: none; margin: 0; padding: 0; }
h1, h2, h3, h4, p, dl, dd, figure { margin: 0; }
p { text-wrap: pretty; }
[hidden] { display: none !important; }

::selection { background: var(--blue); color: #fff; }

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

.skip {
  position: fixed; left: 16px; top: -80px; z-index: 300;
  padding: 12px 18px; border-radius: 999px;
  background: var(--paper); color: var(--ink); font-weight: 600;
  transition: top 0.25s var(--ease);
}
.skip:focus { top: 16px; }

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

.display {
  font-family: var(--font-display);
  font-weight: 700;
  font-variation-settings: "wdth" 88, "opsz" 96;
  font-size: clamp(2.6rem, 7.4vw, 7rem);
  line-height: 0.92;
  letter-spacing: -0.04em;
  text-wrap: balance;
}
.display--md { font-size: clamp(2rem, 4.6vw, 4rem); line-height: 0.98; letter-spacing: -0.035em; }

.lead { font-size: clamp(1.15rem, 1.7vw, 1.5rem); line-height: 1.5; color: var(--paper); max-width: 34em; }
.muted { color: var(--mute); }

/* máscara de linha usada pelos títulos animados */
.line { display: block; overflow: hidden; padding-bottom: 0.1em; margin-bottom: -0.1em; }
.line > span { display: block; will-change: transform; }

/* estados iniciais, somente com JS ativo */
.js [data-lines] .line > span,
.js [data-fade],
.js [data-clip],
.js .hero__title .line > span,
.js .hero [data-hero],
.js .hero .mock,
.js .hero .chip-code,
.js .hero__grid,
.js .hero .orb,
.js .hero canvas { opacity: 0; }
.js [data-draw] { transform: scaleX(0); transform-origin: left center; }
.js [data-lit] { opacity: 0.28; }
.js [data-lit].is-active { opacity: 1; }

/* ---------- 3. Botões ---------- */
.btn {
  position: relative; isolation: isolate; overflow: hidden;
  display: inline-flex; align-items: center; justify-content: center;
  min-height: 48px; padding: 0 28px; border-radius: 999px;
  font-weight: 600; font-size: 1rem; line-height: 1; white-space: nowrap; cursor: pointer;
  transition: scale 0.2s var(--ease), color 0.35s var(--ease), border-color 0.35s var(--ease), box-shadow 0.35s var(--ease);
}
.btn > span { position: relative; z-index: 1; }
.btn::before {
  content: ""; position: absolute; inset: 0; z-index: 0;
  transform: translateY(101%); border-radius: inherit;
  transition: transform 0.5s var(--ease);
}
.btn:hover::before { transform: translateY(0); }
.btn:active { scale: 0.96; }

.btn--primary {
  background: var(--blue); color: #fff;
  box-shadow: 0 0 0 1px rgba(255, 255, 255, 0.1) inset, 0 12px 32px -12px rgba(6, 76, 255, 0.9);
}
.btn--primary::before { background: var(--cyan); }
.btn--primary:hover { color: var(--ink); }

.btn--ghost { border: 1px solid var(--line-2); color: var(--paper); }
.btn--ghost::before { background: var(--paper); }
.btn--ghost:hover { color: var(--ink); border-color: var(--paper); }

.btn--lg { min-height: 60px; padding: 0 40px; font-size: 1.0625rem; }
.btn--sm { min-height: 44px; padding: 0 22px; font-size: 0.9375rem; }

.link-line {
  position: relative; display: inline-block; padding-block: 4px; font-weight: 500;
}
.link-line::after {
  content: ""; position: absolute; left: 0; right: 0; bottom: 0; height: 1px;
  background: currentColor; transform-origin: right; transition: transform 0.5s var(--ease);
}
.link-line:hover::after { transform: scaleX(0); transform-origin: left; }

/* rolagem de texto em links */
.roll { position: relative; display: inline-block; overflow: hidden; vertical-align: top; }
.roll > span { display: block; transition: transform 0.5s var(--ease); }
.roll > span + span { position: absolute; left: 0; top: 100%; }
a:hover > .roll > span, button:hover > .roll > span { transform: translateY(-100%); }

/* ---------- 4. Navbar e menu ---------- */
.nav {
  position: fixed; inset: 0 0 auto 0; z-index: 50; height: var(--nav-h);
  border-bottom: 1px solid transparent;
  transition: transform 0.55s var(--ease), background-color 0.4s var(--ease), border-color 0.4s var(--ease), backdrop-filter 0.4s var(--ease);
}
.nav.is-scrolled {
  background: rgba(2, 6, 17, 0.72); border-bottom-color: var(--line);
  -webkit-backdrop-filter: blur(16px); backdrop-filter: blur(16px);
}
.nav.is-hidden { transform: translateY(-100%); }
.nav__inner {
  height: 100%; max-width: var(--max); margin-inline: auto; padding-inline: var(--pad);
  display: flex; align-items: center; gap: 40px;
}
.logo { display: inline-flex; align-items: center; gap: 12px; min-height: 44px; }
.logo__img { height: 40px; width: auto; flex: none; transition: scale 0.4s var(--ease); }
.logo:hover .logo__img { scale: 1.06; }
.nav__links { display: flex; gap: clamp(20px, 3vw, 44px); margin-left: auto; }
.nav__link {
  position: relative; display: inline-flex; align-items: center; min-height: 44px;
  font-weight: 500; font-size: 0.975rem; color: var(--mute); transition: color 0.3s var(--ease);
}
.nav__link:hover, .nav__link[aria-current="page"] { color: var(--paper); }
.nav__link[aria-current="page"]::after {
  content: ""; position: absolute; left: 0; right: 0; bottom: 6px; height: 2px;
  border-radius: 2px; background: var(--cyan);
}

.burger { display: none; width: 48px; height: 48px; position: relative; margin-left: auto; border-radius: 50%; }
.burger span {
  position: absolute; left: 14px; right: 14px; height: 2px; border-radius: 2px; background: var(--paper);
  transition: transform 0.5s var(--ease), top 0.5s var(--ease);
}
.burger span:nth-child(1) { top: 20px; }
.burger span:nth-child(2) { top: 27px; }
.burger[aria-expanded="true"] span:nth-child(1) { top: 23px; transform: rotate(45deg); }
.burger[aria-expanded="true"] span:nth-child(2) { top: 23px; transform: rotate(-45deg); }

.menu {
  position: fixed; inset: 0; z-index: 45; background: var(--ink);
  padding: calc(var(--nav-h) + 24px) var(--pad) 32px;
  display: flex; flex-direction: column; justify-content: space-between;
  visibility: hidden; clip-path: inset(0 0 100% 0);
  transition: clip-path 0.8s var(--ease-io), visibility 0s linear 0.8s;
  overflow-y: auto;
}
.menu::before {
  content: ""; position: absolute; inset: auto -20% -30% auto; width: 80vw; aspect-ratio: 1; pointer-events: none;
  background: radial-gradient(circle, rgba(6, 76, 255, 0.4), transparent 65%);
}
.menu.is-open { visibility: visible; clip-path: inset(0); transition: clip-path 0.8s var(--ease-io), visibility 0s; }
.menu__links { position: relative; display: grid; gap: 4px; }
.menu__link {
  display: block; padding: 6px 0;
  font-family: var(--font-display); font-weight: 700; font-variation-settings: "wdth" 88;
  font-size: clamp(2.6rem, 13vw, 5rem); line-height: 1.02; letter-spacing: -0.035em;
  opacity: 0; translate: 0 36px;
  transition: opacity 0.6s var(--ease), translate 0.7s var(--ease), color 0.3s var(--ease);
}
.menu__link[aria-current="page"] { color: var(--cyan); }
.menu.is-open .menu__link { opacity: 1; translate: 0 0; transition-delay: calc(0.25s + var(--i) * 0.06s), calc(0.25s + var(--i) * 0.06s), 0s; }
.menu__foot { position: relative; display: flex; flex-wrap: wrap; gap: 12px; align-items: center; margin-top: 40px; }

/* ---------- 5. Transição de página e cursor ---------- */
.page-overlay {
  position: fixed; inset: 0; z-index: 400; pointer-events: none; overflow: hidden;
  background: var(--ink-2); transform: translate3d(0, 100%, 0);
  display: flex; align-items: flex-end; padding: var(--pad);
}
.is-transitioning .page-overlay { transform: translate3d(0, 0, 0); }
.page-overlay__glow {
  position: absolute; inset: auto -10% -40% auto; width: 90vw; max-width: 1100px; aspect-ratio: 1;
  background: radial-gradient(circle, rgba(6, 76, 255, 0.55), rgba(0, 207, 255, 0.08) 45%, transparent 66%);
}
.page-overlay__label {
  position: relative; font-family: var(--font-display); font-weight: 700; font-variation-settings: "wdth" 88;
  font-size: clamp(3rem, 12vw, 10rem); line-height: 0.9; letter-spacing: -0.04em;
}

.cursor {
  position: fixed; left: 0; top: 0; z-index: 350; width: 12px; height: 12px; margin: -6px 0 0 -6px;
  border-radius: 50%; background: var(--cyan); pointer-events: none; opacity: 0;
  display: grid; place-items: center;
  transition: width 0.4s var(--ease), height 0.4s var(--ease), margin 0.4s var(--ease), background-color 0.3s var(--ease), opacity 0.3s var(--ease);
}
.has-cursor .cursor { opacity: 1; }
.cursor.is-active { width: 92px; height: 92px; margin: -46px 0 0 -46px; background: var(--blue); }
.cursor__label { font-size: 0.8rem; font-weight: 600; color: #fff; opacity: 0; transition: opacity 0.25s var(--ease); }
.cursor.is-active .cursor__label { opacity: 1; }

/* ---------- 6. Hero ---------- */
.hero {
  position: relative; min-height: 100svh; overflow: hidden;
  display: flex; flex-direction: column; justify-content: flex-end;
  padding: calc(var(--nav-h) + 40px) 0 clamp(24px, 4vh, 44px);
}
.hero__bg { position: absolute; inset: 0; pointer-events: none; }
.hero__bg canvas { position: absolute; inset: 0; width: 100%; height: 100%; }
.hero__grid, .bg-grid {
  position: absolute; inset: 0;
  background-image: linear-gradient(var(--line) 1px, transparent 1px), linear-gradient(90deg, var(--line) 1px, transparent 1px);
  background-size: 72px 72px;
  -webkit-mask-image: radial-gradient(ellipse 85% 75% at 62% 38%, #000 18%, transparent 74%);
  mask-image: radial-gradient(ellipse 85% 75% at 62% 38%, #000 18%, transparent 74%);
}
.orb { position: absolute; border-radius: 50%; will-change: transform; }
.orb--blue { width: min(70vw, 980px); aspect-ratio: 1; right: -18vw; top: -22vh; background: radial-gradient(circle, rgba(6, 76, 255, 0.5), rgba(6, 76, 255, 0.12) 45%, transparent 68%); }
.orb--cyan { width: min(34vw, 520px); aspect-ratio: 1; left: -8vw; bottom: -12vh; background: radial-gradient(circle, rgba(0, 207, 255, 0.22), transparent 66%); }
.hero__spot {
  position: absolute; inset: 0; --mx: 70%; --my: 30%;
  background: radial-gradient(480px circle at var(--mx) var(--my), rgba(0, 207, 255, 0.09), transparent 60%);
}
.hero__ring {
  position: absolute; right: 4vw; top: 6vh; width: min(54vw, 780px); aspect-ratio: 1; border-radius: 50%;
  border: 1px dashed rgba(0, 207, 255, 0.2); animation: spin 90s linear infinite;
}
.hero__ring::after { content: ""; position: absolute; inset: 12%; border-radius: 50%; border: 1px solid rgba(6, 76, 255, 0.22); }
@keyframes spin { to { rotate: 360deg; } }

.hero__mocks { position: absolute; inset: 0; pointer-events: none; }
.layer { position: absolute; }
.layer--a { right: var(--pad); top: calc(var(--nav-h) + 2vh); width: min(40vw, 620px); }
.layer--b { right: calc(var(--pad) + min(33vw, 500px)); top: calc(var(--nav-h) + 12vh); width: min(10vw, 150px); }
.layer--c { right: calc(var(--pad) + 2vw); top: calc(var(--nav-h) + 2vh + min(26vw, 390px)); }

.mock {
  border-radius: 18px; overflow: hidden;
  background: linear-gradient(160deg, #0b1738, #050c22);
  border: 1px solid var(--line-2);
  box-shadow: 0 0 0 1px rgba(6, 76, 255, 0.08), 0 40px 80px -30px rgba(0, 0, 0, 0.85), 0 0 120px -30px rgba(6, 76, 255, 0.5);
  will-change: transform;
}
.mock--browser { aspect-ratio: 16 / 10; }
.mock__bar { display: flex; align-items: center; gap: 6px; height: 34px; padding: 0 14px; border-bottom: 1px solid var(--line); }
.mock__bar i { width: 9px; height: 9px; border-radius: 50%; background: var(--line-2); }
.mock__bar span { margin-left: 12px; font-size: 0.7rem; color: var(--mute-2); }
.mock__body { padding: 18px; display: grid; gap: 14px; }
.mock__nav { display: flex; gap: 10px; align-items: center; }
.mock__nav b { width: 22px; height: 22px; border-radius: 50%; background: var(--blue); }
.mock__nav span { height: 6px; width: 34px; border-radius: 3px; background: var(--line-2); }
.mock__nav b + span { margin-left: auto; }
.mock__h span { display: block; height: 20px; width: 74%; border-radius: 6px; margin-bottom: 8px; background: linear-gradient(90deg, var(--paper), rgba(238, 243, 255, 0.45)); }
.mock__h span + span { width: 48%; }
.mock__btn { width: 88px; height: 26px; border-radius: 999px; background: var(--blue); box-shadow: 0 0 24px rgba(6, 76, 255, 0.7); }
.mock__grid { display: grid; grid-template-columns: 1.4fr 1fr 1fr; gap: 10px; }
.mock__grid span { aspect-ratio: 4 / 3; border-radius: 10px; border: 1px solid var(--line); }
.mock__grid span:first-child { background: linear-gradient(140deg, rgba(6, 76, 255, 0.6), rgba(0, 207, 255, 0.25)); }

.mock--phone { aspect-ratio: 9 / 18; border-radius: 26px; padding: 9px; }
.mock--phone .mock__screen { height: 100%; border-radius: 18px; padding: 12px 10px; display: grid; align-content: start; gap: 10px; background: #060d24; }
.mock--phone .mock__notch { width: 38%; height: 6px; border-radius: 3px; background: var(--line-2); margin: 0 auto 6px; }
.mock--phone .mock__pic { aspect-ratio: 1; border-radius: 12px; background: linear-gradient(150deg, var(--blue), rgba(0, 207, 255, 0.4)); }
.mock--phone .mock__ln { height: 6px; border-radius: 3px; background: var(--line-2); }
.mock--phone .mock__ln:nth-of-type(2) { width: 70%; }

.chip-code {
  padding: 12px 16px; border-radius: 12px; background: rgba(5, 11, 29, 0.88);
  border: 1px solid var(--line-2); backdrop-filter: blur(8px); -webkit-backdrop-filter: blur(8px);
  font-family: ui-monospace, "SFMono-Regular", Menlo, Consolas, monospace; font-size: 0.8rem; line-height: 1.6; color: var(--mute);
  box-shadow: 0 24px 50px -20px rgba(0, 0, 0, 0.8); white-space: nowrap;
}
.chip-code .k { color: var(--cyan); }
.chip-code .s { color: #9db6ff; }

.hero__inner { position: relative; z-index: 2; }
.hero__title {
  font-family: var(--font-display); font-weight: 700; font-variation-settings: "wdth" 85, "opsz" 96;
  font-size: clamp(3.1rem, 10.6vw, 11rem); line-height: 0.88; letter-spacing: -0.045em;
}
.hero__foot {
  display: grid; grid-template-columns: minmax(0, 1.1fr) auto auto; gap: 24px 48px; align-items: end;
  margin-top: clamp(28px, 5vh, 56px);
}
.hero__lead { max-width: 30em; color: var(--mute); font-size: clamp(1rem, 1.3vw, 1.2rem); }
.hero__actions { display: flex; flex-wrap: wrap; gap: 12px; }
.hero__scroll { display: inline-flex; align-items: center; gap: 14px; min-height: 44px; color: var(--mute); font-size: 0.9rem; }
.hero__scroll-line { position: relative; width: 56px; height: 1px; background: var(--line-2); overflow: hidden; }
.hero__scroll-line::after { content: ""; position: absolute; inset: 0; background: var(--cyan); animation: scan 2.4s var(--ease) infinite; }
@keyframes scan { 0% { transform: translateX(-100%); } 60%, 100% { transform: translateX(100%); } }

/* ---------- 7. Faixa tipográfica ---------- */
.marquee { overflow: hidden; border-block: 1px solid var(--line); padding: clamp(20px, 3vw, 36px) 0; }
.marquee__track { display: flex; align-items: center; gap: clamp(24px, 4vw, 56px); padding-right: clamp(24px, 4vw, 56px); width: max-content; will-change: transform; }
.marquee__track span {
  font-family: var(--font-display); font-weight: 700; font-variation-settings: "wdth" 85;
  font-size: clamp(2.4rem, 7vw, 6rem); letter-spacing: -0.04em; line-height: 1; white-space: nowrap;
}
.marquee__track span:nth-child(4n + 1) { color: var(--paper); }
.marquee__track span:nth-child(4n + 3) { color: var(--mute-2); }
.marquee__track i { flex: none; width: 12px; height: 12px; border-radius: 50%; background: var(--blue); box-shadow: 0 0 24px var(--blue); }

/* ---------- 8. Seções da home ---------- */
.section { padding-block: clamp(80px, 13vw, 190px); position: relative; }
.sec-head { display: flex; justify-content: space-between; align-items: flex-end; gap: 32px; margin-bottom: clamp(40px, 6vw, 80px); }
.sec-head__side { max-width: 22em; color: var(--mute); }

.feature { display: block; position: relative; }
.feature__media {
  position: relative; overflow: hidden; border-radius: 24px; background: var(--ink-2);
  width: 100%;
  outline: 1px solid oklch(1 0 0 / 0.1); outline-offset: -1px;
}
.feature__media img { width: 100%; height: auto; transition: scale 1.1s var(--ease); }
.feature__meta { display: grid; grid-template-columns: minmax(0, 1.1fr) minmax(0, 1fr) auto; gap: 24px 48px; align-items: end; padding-top: 28px; }
.feature__title { font-family: var(--font-display); font-weight: 700; font-variation-settings: "wdth" 88; font-size: clamp(2.4rem, 6vw, 5.5rem); line-height: 0.95; letter-spacing: -0.04em; transition: color 0.4s var(--ease); }
.feature__text { color: var(--mute); max-width: 28em; }
.feature:hover .feature__title { color: var(--cyan); }
.feature:hover .feature__media img { scale: 1.035; }

.arrow {
  display: inline-grid; place-items: center; width: 64px; height: 64px; border-radius: 50%; flex: none;
  border: 1px solid var(--line-2); transition: background-color 0.4s var(--ease), border-color 0.4s var(--ease), color 0.4s var(--ease), rotate 0.5s var(--ease);
  rotate: -45deg;
}
.arrow svg { width: 22px; height: 22px; }
.feature:hover .arrow, .row:hover .arrow { background: var(--cyan); border-color: var(--cyan); color: var(--ink); rotate: 0deg; }

.rows { border-bottom: 1px solid var(--line-2); }
.rows > li { position: relative; }
.row { position: relative; display: grid; grid-template-columns: minmax(0, 1.2fr) minmax(0, 1fr) auto; gap: 24px 48px; align-items: center; padding-block: clamp(26px, 4vw, 48px); }
.row__line { position: absolute; left: 0; right: 0; top: 0; height: 1px; background: var(--line-2); }
.row__title { font-family: var(--font-display); font-weight: 700; font-variation-settings: "wdth" 88; font-size: clamp(1.9rem, 4.6vw, 4rem); line-height: 1; letter-spacing: -0.035em; transition: color 0.4s var(--ease), translate 0.6s var(--ease); }
.row__text { color: var(--mute); max-width: 26em; transition: color 0.4s var(--ease); }
.row .arrow { width: 52px; height: 52px; }
.row:hover .row__title { color: var(--cyan); translate: 14px 0; }
.row:hover .row__text { color: var(--paper); }

.dif__grid { display: grid; grid-template-columns: minmax(0, 5fr) minmax(0, 7fr); gap: clamp(32px, 6vw, 96px); align-items: start; }
.dif__head { position: sticky; top: 22vh; }
.dif__head p { margin-top: 28px; color: var(--mute); max-width: 22em; }
.dif__item { padding-block: clamp(32px, 5vw, 64px); border-top: 1px solid var(--line-2); transition: opacity 0.6s var(--ease), border-color 0.6s var(--ease); }
.dif__item.is-active { border-top-color: var(--blue); }
.dif__item h3 { font-family: var(--font-display); font-weight: 700; font-variation-settings: "wdth" 90; font-size: clamp(1.7rem, 3.4vw, 2.9rem); line-height: 1.02; letter-spacing: -0.03em; margin-bottom: 18px; text-wrap: balance; }
.dif__item p { color: var(--mute); max-width: 32em; }

.cta { position: relative; overflow: hidden; padding-block: clamp(96px, 16vw, 230px); border-top: 1px solid var(--line); }
.cta__glow { position: absolute; right: -12%; bottom: -55%; width: min(90vw, 1100px); aspect-ratio: 1; pointer-events: none; background: radial-gradient(circle, rgba(6, 76, 255, 0.45), rgba(0, 207, 255, 0.06) 48%, transparent 68%); }
.cta .wrap { position: relative; }
.cta__title { font-family: var(--font-display); font-weight: 700; font-variation-settings: "wdth" 86, "opsz" 96; font-size: clamp(2.8rem, 9.4vw, 9.5rem); line-height: 0.92; letter-spacing: -0.045em; }
.cta__actions { display: flex; flex-wrap: wrap; gap: 14px; margin-top: clamp(32px, 5vw, 64px); }

/* ---------- 9. Rodapé ---------- */
.footer { border-top: 1px solid var(--line); padding: clamp(48px, 7vw, 88px) 0 28px; position: relative; }
.footer__grid { display: grid; grid-template-columns: minmax(0, 1.4fr) repeat(2, minmax(0, 1fr)); gap: 40px; }
.footer__brand p { margin-top: 18px; color: var(--mute); max-width: 22em; }
.footer h2 { font-size: 0.9rem; font-weight: 600; color: var(--mute-2); margin-bottom: 14px; }
.footer__list { display: grid; gap: 2px; }
.footer__list a { display: inline-flex; align-items: center; min-height: 40px; color: var(--paper); transition: color 0.3s var(--ease); }
.footer__list a:hover { color: var(--cyan); }
.footer__base { display: flex; justify-content: space-between; flex-wrap: wrap; gap: 12px; margin-top: clamp(40px, 6vw, 80px); padding-top: 24px; border-top: 1px solid var(--line); color: var(--mute-2); font-size: 0.9rem; }
.footer__legal { display: flex; flex-wrap: wrap; gap: 4px 24px; }
.footer__base a { color: var(--mute); min-height: 40px; display: inline-flex; align-items: center; }
.footer__base a:hover { color: var(--paper); }

/* ---------- 10. Cabeçalho de página ---------- */
.phead { position: relative; overflow: hidden; padding: calc(var(--nav-h) + clamp(56px, 13vh, 150px)) 0 clamp(40px, 7vw, 96px); }
.phead .bg-grid { -webkit-mask-image: radial-gradient(ellipse 70% 90% at 80% 0%, #000 10%, transparent 70%); mask-image: radial-gradient(ellipse 70% 90% at 80% 0%, #000 10%, transparent 70%); }
.phead .orb--blue { top: -48vh; right: -20vw; width: min(60vw, 820px); }
.phead .wrap { position: relative; display: flex; justify-content: space-between; align-items: flex-end; gap: 32px; }
.phead__title { font-family: var(--font-display); font-weight: 700; font-variation-settings: "wdth" 85, "opsz" 96; font-size: clamp(3.4rem, 13vw, 13rem); line-height: 0.88; letter-spacing: -0.045em; }
.phead__side { max-width: 22em; color: var(--mute); padding-bottom: 0.6em; }

/* ---------- 11. Projetos ---------- */
.gallery { display: grid; gap: clamp(56px, 8vw, 110px); padding-bottom: clamp(80px, 12vw, 160px); }
.slot {
  position: relative; display: flex; flex-direction: column; justify-content: flex-end; gap: 10px;
  min-height: clamp(220px, 28vw, 340px); padding: clamp(24px, 4vw, 48px); border-radius: 24px;
  border: 1px dashed var(--line-2); transition: border-color 0.4s var(--ease), background-color 0.4s var(--ease);
}
.slot:hover { border-color: var(--blue); background: rgba(6, 76, 255, 0.07); }
.slot__title { font-family: var(--font-display); font-weight: 700; font-variation-settings: "wdth" 88; font-size: clamp(1.9rem, 4.4vw, 3.6rem); line-height: 1; letter-spacing: -0.035em; max-width: 14em; }
.slot__text { color: var(--mute); }

.meta { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 24px; padding-block: 28px; border-block: 1px solid var(--line-2); margin-bottom: clamp(32px, 5vw, 64px); }
.meta dt { font-size: 0.875rem; color: var(--mute-2); margin-bottom: 4px; }
.meta dd { font-weight: 500; }
.meta a { color: var(--cyan); }

.case { display: grid; grid-template-columns: minmax(0, 4fr) minmax(0, 8fr); gap: 24px clamp(32px, 6vw, 96px); padding-block: clamp(48px, 8vw, 110px); border-top: 1px solid var(--line); }
.case h2 { font-family: var(--font-display); font-weight: 700; font-variation-settings: "wdth" 90; font-size: clamp(1.8rem, 3.4vw, 3rem); line-height: 1; letter-spacing: -0.03em; }
.case p { font-size: clamp(1.1rem, 1.7vw, 1.45rem); line-height: 1.5; max-width: 34em; }
.case ul { display: grid; gap: 0; max-width: 34em; }
.case li { padding-block: 16px; border-bottom: 1px solid var(--line); }
.case li:first-child { border-top: 1px solid var(--line); }
.case li strong { font-weight: 600; margin-right: 8px; }
.case li span { color: var(--mute); }

.palette { display: flex; flex-wrap: wrap; gap: 12px; }
.palette li { display: flex; align-items: center; gap: 12px; padding: 8px 18px 8px 8px; border: 1px solid var(--line-2); border-radius: 999px; font-size: 0.95rem; }
.palette i { width: 32px; height: 32px; border-radius: 50%; outline: 1px solid oklch(1 0 0 / 0.14); outline-offset: -1px; }

/* ---------- 12. Soluções ---------- */
.solpage { display: grid; grid-template-columns: minmax(0, 240px) minmax(0, 1fr); gap: clamp(32px, 6vw, 96px); padding-bottom: clamp(60px, 10vw, 140px); }
.spy { position: sticky; top: calc(var(--nav-h) + 40px); align-self: start; display: grid; gap: 2px; }
.spy a { display: flex; align-items: center; gap: 12px; min-height: 44px; color: var(--mute-2); transition: color 0.3s var(--ease); }
.spy a::before { content: ""; width: 8px; height: 8px; border-radius: 50%; background: var(--line-2); transition: background-color 0.3s var(--ease), scale 0.3s var(--ease); }
.spy a:hover { color: var(--paper); }
.spy a.is-active { color: var(--paper); }
.spy a.is-active::before { background: var(--cyan); scale: 1.4; }
.sol { padding-block: clamp(48px, 8vw, 110px); border-top: 1px solid var(--line-2); scroll-margin-top: 40px; }
.sol:first-child { border-top: 0; padding-top: 0; }
.sol h2 { margin-bottom: clamp(20px, 3vw, 36px); }
.sol__cols { display: grid; grid-template-columns: minmax(0, 1.3fr) minmax(0, 1fr); gap: 32px clamp(32px, 5vw, 72px); margin-top: clamp(32px, 5vw, 56px); }
.sol h3 { font-size: 0.95rem; font-weight: 600; color: var(--mute-2); margin-bottom: 14px; }
.sol__list li { padding-block: 14px; border-bottom: 1px solid var(--line); }
.sol__list li:first-child { border-top: 1px solid var(--line); }

/* ---------- 13. Estúdio ---------- */
.statement { font-family: var(--font-display); font-weight: 600; font-variation-settings: "wdth" 92, "opsz" 72; font-size: clamp(1.8rem, 4.2vw, 3.8rem); line-height: 1.08; letter-spacing: -0.03em; max-width: 21em; text-wrap: balance; }
.principles { display: grid; gap: clamp(40px, 7vw, 100px); }
.principle { max-width: 38em; }
.principle:nth-child(2) { margin-left: auto; }
.principle:nth-child(3) { margin-left: clamp(0px, 14vw, 220px); }
.principle h3 { font-family: var(--font-display); font-weight: 700; font-variation-settings: "wdth" 88; font-size: clamp(1.9rem, 4vw, 3.4rem); line-height: 1; letter-spacing: -0.035em; margin-bottom: 20px; }
.principle p { color: var(--mute); font-size: clamp(1.05rem, 1.5vw, 1.25rem); }

.swatches { display: flex; gap: 12px; height: clamp(260px, 36vw, 440px); }
.swatch { position: relative; border-radius: 20px; padding: 22px; display: flex; flex-direction: column; justify-content: flex-end; transition: flex-grow 0.7s var(--ease); flex: 3 1 0; outline: 1px solid oklch(1 0 0 / 0.1); outline-offset: -1px; }
.swatch:hover { flex-grow: 4.5; }
.swatch--ink { background: var(--ink); }
.swatch--blue { background: var(--blue); flex-grow: 2; color: #fff; }
.swatch--cyan { background: var(--cyan); flex-grow: 1.3; color: var(--ink); }
.swatch b { font-weight: 600; }
.swatch span { font-size: 0.9rem; opacity: 0.8; font-variant-numeric: tabular-nums; }
.type-spec { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 32px; margin-top: clamp(40px, 6vw, 72px); align-items: end; }
.type-spec__aa { font-family: var(--font-display); font-weight: 700; font-variation-settings: "wdth" 85, "opsz" 96; font-size: clamp(7rem, 22vw, 18rem); line-height: 0.8; letter-spacing: -0.05em; }
.type-spec p { color: var(--mute); max-width: 26em; }

.process { position: relative; margin-left: 8px; }
.process__rail { position: absolute; left: 0; top: 0; bottom: 0; width: 1px; background: var(--line-2); }
.process__progress { position: absolute; inset: 0; background: linear-gradient(180deg, var(--blue), var(--cyan)); transform-origin: top; }
.step { position: relative; display: grid; grid-template-columns: minmax(0, 4fr) minmax(0, 6fr); gap: 16px clamp(24px, 5vw, 80px); padding: clamp(28px, 4.5vw, 56px) 0 clamp(28px, 4.5vw, 56px) clamp(28px, 5vw, 72px); }
.step::before { content: ""; position: absolute; left: -5px; top: calc(clamp(28px, 4.5vw, 56px) + 0.6em); width: 11px; height: 11px; border-radius: 50%; background: var(--ink); border: 1px solid var(--line-2); transition: background-color 0.4s var(--ease), border-color 0.4s var(--ease), box-shadow 0.4s var(--ease); }
.step.is-active::before { background: var(--cyan); border-color: var(--cyan); box-shadow: 0 0 20px var(--cyan); }
.step h3 { font-family: var(--font-display); font-weight: 700; font-variation-settings: "wdth" 90; font-size: clamp(1.7rem, 3.2vw, 2.7rem); line-height: 1; letter-spacing: -0.03em; display: flex; align-items: baseline; gap: 16px; }
.step h3 em { font-style: normal; font-family: var(--font-body); font-weight: 500; font-size: 0.95rem; color: var(--mute-2); font-variant-numeric: tabular-nums; }
.step p { color: var(--mute); max-width: 28em; }

/* ---------- 14. Contato ---------- */
.contact { display: grid; grid-template-columns: minmax(0, 7fr) minmax(0, 5fr); gap: clamp(40px, 8vw, 120px); padding-bottom: clamp(80px, 12vw, 160px); align-items: start; }
.form { display: grid; gap: clamp(28px, 4vw, 40px); }
.field { display: grid; gap: 6px; position: relative; }
.field label, .field legend { font-size: 0.9rem; font-weight: 500; color: var(--mute); padding: 0; }
.field input[type="text"], .field input[type="email"], .field textarea {
  width: 100%; padding: 10px 0 14px; background: none; border: 0; border-bottom: 1px solid var(--line-2); border-radius: 0;
  font-size: clamp(1.15rem, 2vw, 1.5rem); color: var(--paper); outline: 0;
  transition: border-color 0.35s var(--ease);
}
.field textarea { resize: vertical; min-height: 140px; line-height: 1.4; }
.field input::placeholder, .field textarea::placeholder { color: var(--mute-2); }
.field input:focus, .field textarea:focus { border-bottom-color: var(--cyan); }
.field input[aria-invalid="true"], .field textarea[aria-invalid="true"] { border-bottom-color: var(--danger); }
.field__error { min-height: 1.2em; font-size: 0.875rem; color: var(--danger); }
fieldset.field { border: 0; margin: 0; padding: 0; min-width: 0; }
.choices { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 10px; }
.choices input { position: absolute; opacity: 0; pointer-events: none; }
.choices label {
  display: inline-flex; align-items: center; min-height: 44px; padding: 0 20px; border-radius: 999px; cursor: pointer;
  border: 1px solid var(--line-2); color: var(--paper); font-size: 0.975rem;
  transition: background-color 0.3s var(--ease), border-color 0.3s var(--ease), scale 0.2s var(--ease);
}
.choices label:hover { border-color: var(--paper); }
.choices label:active { scale: 0.96; }
.choices input:checked + label { background: var(--blue); border-color: var(--blue); color: #fff; }
.choices input:focus-visible + label { outline: 2px solid var(--cyan); outline-offset: 3px; }
.hp { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }
.form__note { color: var(--mute-2); font-size: 0.9rem; max-width: 34em; }
.form__note a { color: var(--mute); }
.form__foot { display: flex; flex-wrap: wrap; align-items: center; gap: 20px; }
.form__status { min-height: 1.5em; color: var(--mute); }
.form__status.is-ok { color: var(--cyan); }
.form__status.is-error { color: var(--danger); }
.form.is-sending .btn { opacity: 0.6; pointer-events: none; }

.aside h2 { font-family: var(--font-display); font-weight: 700; font-variation-settings: "wdth" 90; font-size: clamp(1.8rem, 3vw, 2.6rem); line-height: 1; letter-spacing: -0.03em; margin-bottom: 20px; }
.aside p { color: var(--mute); max-width: 26em; margin-bottom: 28px; }
.aside__group + .aside__group { margin-top: 40px; }
.aside h3 { font-size: 0.9rem; font-weight: 600; color: var(--mute-2); margin-bottom: 8px; }
.socials { display: grid; }
.socials a { display: flex; justify-content: space-between; align-items: center; min-height: 52px; border-bottom: 1px solid var(--line); transition: color 0.3s var(--ease), padding-left 0.4s var(--ease); }
.socials a:first-child { border-top: 1px solid var(--line); }
.socials a:hover { color: var(--cyan); padding-left: 10px; }

/* ---------- 14b. Páginas legais ---------- */
.phead__title--sm { font-size: clamp(2.6rem, 7.4vw, 7rem); line-height: 0.95; }
.legal { max-width: 46em; padding-bottom: clamp(80px, 12vw, 160px); }
.legal__date { color: var(--mute-2); margin-bottom: 40px; }
.legal h2 { font-family: var(--font-display); font-weight: 700; font-variation-settings: "wdth" 90; font-size: clamp(1.5rem, 2.6vw, 2.1rem); line-height: 1.05; letter-spacing: -0.03em; margin: clamp(40px, 6vw, 64px) 0 16px; }
.legal p, .legal li { color: #c3cce6; }
.legal p + p { margin-top: 14px; }
.legal ul { margin: 14px 0; padding-left: 1.2em; list-style: disc; }
.legal li { padding-block: 4px; }
.legal li::marker { color: var(--blue); }
.legal a { color: var(--cyan); text-decoration: underline; text-underline-offset: 3px; }
.legal table { width: 100%; border-collapse: collapse; margin: 18px 0; font-size: 0.95rem; }
.legal th, .legal td { text-align: left; vertical-align: top; padding: 12px 14px 12px 0; border-bottom: 1px solid var(--line-2); color: #c3cce6; }
.legal th { color: var(--mute-2); font-weight: 600; }
.legal .scroll-x { overflow-x: auto; }

/* ---------- 15. 404 ---------- */
.nf { min-height: 100svh; display: flex; flex-direction: column; justify-content: center; position: relative; overflow: hidden; }
.nf .wrap { position: relative; }
.nf__num { font-family: var(--font-display); font-weight: 800; font-variation-settings: "wdth" 80, "opsz" 96; font-size: clamp(8rem, 30vw, 26rem); line-height: 0.8; letter-spacing: -0.05em; color: var(--blue); }
.nf p { margin: 24px 0 32px; color: var(--mute); max-width: 26em; }

/* ---------- 16. Responsivo ---------- */
@media (max-width: 1100px) {
  .layer--b { display: none; }
  .layer--a { width: min(54vw, 560px); }
  .layer--c { right: var(--pad); top: calc(var(--nav-h) + 4vh + min(34vw, 360px)); }
  .hero__foot { grid-template-columns: 1fr auto; }
  .hero__scroll { display: none; }
}

@media (max-width: 960px) {
  .nav__links, .nav__cta { display: none; }
  .burger { display: block; }
  .dif__grid, .contact, .solpage, .case { grid-template-columns: 1fr; }
  .dif__head, .spy { position: static; }
  .spy { display: none; }
  .sol__cols { grid-template-columns: 1fr; }
  .meta { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .footer__grid { grid-template-columns: 1fr 1fr; }
  .footer__brand { grid-column: 1 / -1; }
}

@media (max-width: 760px) {
  :root { --nav-h: 68px; }
  .layer--a { right: -14vw; width: 88vw; top: calc(var(--nav-h) + 8px); opacity: 0.55; }
  .layer--c { display: none; }
  .hero__ring { right: -30vw; width: 110vw; }
  .hero__foot { grid-template-columns: 1fr; gap: 24px; }
  .sec-head, .phead .wrap { flex-direction: column; align-items: flex-start; }
  .feature__meta { grid-template-columns: 1fr auto; }
  .feature__text { grid-column: 1 / -1; order: 3; }
  .row { grid-template-columns: 1fr auto; }
  .row__text { grid-column: 1 / -1; order: 3; }
  .swatches { flex-direction: column; height: auto; }
  .swatch, .swatch:hover { flex: none; min-height: 140px; }
  .type-spec, .step { grid-template-columns: 1fr; }
  .principle:nth-child(n) { margin-left: 0; }
  .footer__grid { grid-template-columns: 1fr; }
  .cursor { display: none; }
}

@media (hover: none) {
  .cursor { display: none; }
}

/* ---------- 17. Movimento reduzido ---------- */
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after {
    animation-duration: 0.001ms !important; animation-iteration-count: 1 !important;
    transition-duration: 0.001ms !important; transition-delay: 0s !important;
  }
  .page-overlay { display: none; }
  .menu__link { opacity: 1; translate: 0 0; }
}
