/* Nodra v3 · landing.css
   Tema escuro, Geist auto-hospedada, sem dependências externas. */

@font-face {
  font-family: "Geist";
  src: url("assets/fonts/Geist-Variable.woff2") format("woff2");
  font-weight: 100 900;
  font-style: normal;
  font-display: swap;
}
@font-face {
  font-family: "Geist Mono";
  src: url("assets/fonts/GeistMono-Variable.woff2") format("woff2");
  font-weight: 100 900;
  font-style: normal;
  font-display: swap;
}

@property --angle {
  syntax: "<angle>";
  inherits: false;
  initial-value: 0deg;
}

/* ---------- Tokens ---------- */
:root {
  color-scheme: dark;

  --bg: #06080d;
  --bg-2: #0b0f17;
  --surface: #0f1420;
  --surface-2: #151b2a;
  --line: rgba(255, 255, 255, .08);
  --line-2: rgba(255, 255, 255, .14);
  --text: #e9edf6;
  --muted: #8d96ab;
  --blue: #4255ff;
  --steel: #6f8cff;
  --ice: #b9d4ff;
  --grad: linear-gradient(120deg, #4255ff 0%, #6f8cff 45%, #b9d4ff 100%);

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

  --fs-hero: clamp(2.5rem, 1.25rem + 5vw, 5rem);
  --fs-h2: clamp(2rem, 1.25rem + 3vw, 3.5rem);
  --fs-h3: clamp(1.25rem, 1.1rem + .5vw, 1.5rem);
  --fs-name: clamp(1.75rem, 1.35rem + 1.5vw, 2.5rem);
  --fs-lead: clamp(1.0625rem, 1rem + .35vw, 1.25rem);

  --gutter: clamp(16px, 5vw, 48px);
  --max: 1240px;
  --header-h: 64px;
  --section-y: clamp(72px, 8vw, 112px);
  --radius: 20px;
  --radius-lg: 28px;

  --ease: cubic-bezier(.2, .7, .2, 1);
  --ease-out: cubic-bezier(.16, 1, .3, 1);
}

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

html {
  -webkit-text-size-adjust: 100%;
  text-size-adjust: 100%;
  scroll-behavior: smooth;
  scroll-padding-top: calc(var(--header-h) + 16px);
  background: var(--bg);
  scrollbar-color: #283043 var(--bg);
  scrollbar-width: thin;
}
html.menu-open { overflow: hidden; }

body {
  margin: 0;
  min-height: 100vh;
  overflow-x: clip;
  background: var(--bg);
  color: var(--text);
  font-family: var(--font-sans);
  font-size: 16px;
  line-height: 1.6;
  font-optical-sizing: auto;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  text-rendering: optimizeLegibility;
}

/* Grão sutil sobre a página inteira */
body::after {
  content: "";
  position: fixed;
  inset: 0;
  z-index: 100;
  pointer-events: none;
  opacity: .035;
  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%3CfeColorMatrix values='0 0 0 0 1 0 0 0 0 1 0 0 0 0 1 0 0 0 .9 0'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
}

::-webkit-scrollbar { width: 10px; height: 10px; }
::-webkit-scrollbar-track { background: var(--bg); }
::-webkit-scrollbar-thumb { background: #232a3a; border: 3px solid var(--bg); border-radius: 10px; }
::-webkit-scrollbar-thumb:hover { background: #313a50; }

::selection { background: rgba(66, 85, 255, .6); color: #fff; }

img, svg, canvas { display: block; max-width: 100%; }
img { height: auto; }
a { color: inherit; text-decoration: none; }
button, select { font: inherit; color: inherit; }
ul, ol { margin: 0; padding: 0; list-style: none; }
figure { margin: 0; }
p { margin: 0; text-wrap: pretty; }
h1, h2, h3 {
  margin: 0;
  font-weight: 600;
  line-height: 1.08;
  letter-spacing: -.03em;
  text-wrap: balance;
  overflow-wrap: break-word;
}
em { font-style: normal; }

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

.sprite { position: absolute; width: 0; height: 0; overflow: hidden; }
.icon {
  width: 1.15em;
  height: 1.15em;
  flex: none;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.6;
  stroke-linecap: round;
  stroke-linejoin: round;
}
.sr-only {
  position: absolute !important;
  width: 1px; height: 1px;
  padding: 0; margin: -1px;
  overflow: hidden; clip: rect(0 0 0 0);
  white-space: nowrap; border: 0;
}

.wrap {
  width: min(var(--max), 100% - 2 * var(--gutter));
  margin-inline: auto;
}

.skip-link {
  position: fixed;
  top: 12px;
  left: 12px;
  z-index: 200;
  padding: 10px 16px;
  border-radius: 10px;
  background: var(--blue);
  color: #fff;
  font-weight: 500;
  transform: translateY(-160%);
  transition: transform .2s var(--ease);
}
.skip-link:focus-visible { transform: none; }

/* ---------- Logo ---------- */
.logo {
  display: inline-flex;
  align-items: baseline;
  font-size: 22px;
  font-weight: 650;
  letter-spacing: -.045em;
  line-height: 1;
  color: var(--text);
  white-space: nowrap;
}
.logo span { color: var(--steel); }
.logo small {
  margin-left: 8px;
  font-family: var(--font-mono);
  font-size: 9.5px;
  font-weight: 500;
  letter-spacing: .22em;
  color: var(--muted);
  transform: translateY(-2px);
}

/* ---------- Botões ---------- */
.btn {
  --magnet-x: 0px;
  --magnet-y: 0px;
  --glow-x: 50%;
  --glow-y: 50%;
  position: relative;
  isolation: isolate;
  overflow: hidden;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  height: 46px;
  padding: 0 20px;
  border: 1px solid transparent;
  border-radius: 999px;
  font-size: 15px;
  font-weight: 500;
  letter-spacing: -.005em;
  line-height: 1;
  white-space: nowrap;
  cursor: pointer;
  transform: translate3d(var(--magnet-x), var(--magnet-y), 0);
  transition: transform .35s var(--ease-out), background-color .25s, border-color .25s, box-shadow .35s var(--ease-out), color .25s;
}
.btn::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: -1;
  border-radius: inherit;
  background: radial-gradient(140px circle at var(--glow-x) var(--glow-y), rgba(255, 255, 255, .32), transparent 65%);
  opacity: 0;
  transition: opacity .3s;
}
.btn:hover::before { opacity: 1; }
.btn .icon { width: 18px; height: 18px; }

.btn-primary {
  color: #fff;
  background: linear-gradient(180deg, #5567ff 0%, #3d4ff5 100%);
  border-color: rgba(140, 155, 255, .55);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, .28), 0 10px 30px -10px rgba(66, 85, 255, .75), 0 0 0 1px rgba(66, 85, 255, .25);
}
.btn-primary:hover {
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, .32), 0 14px 40px -10px rgba(66, 85, 255, .95), 0 0 0 1px rgba(111, 140, 255, .5);
}
.btn-ghost {
  color: var(--text);
  background: rgba(255, 255, 255, .04);
  border-color: var(--line-2);
  -webkit-backdrop-filter: blur(10px);
  backdrop-filter: blur(10px);
}
.btn-ghost::before { background: radial-gradient(140px circle at var(--glow-x) var(--glow-y), rgba(185, 212, 255, .16), transparent 65%); }
.btn-ghost:hover { border-color: rgba(255, 255, 255, .26); background: rgba(255, 255, 255, .07); }
.btn-sm { height: 38px; padding: 0 16px; font-size: 14px; gap: 8px; }
.btn-sm .icon { width: 16px; height: 16px; }
.btn-lg { height: 52px; padding: 0 24px; font-size: 15.5px; }
.btn-xl { height: 60px; padding: 0 30px; font-size: 17px; gap: 12px; }
.btn-xl .icon { width: 20px; height: 20px; }

/* ---------- Header ---------- */
.site-header {
  position: fixed;
  inset: 0 0 auto;
  z-index: 50;
  height: var(--header-h);
}
/* O vidro fica num pseudo-elemento: backdrop-filter no próprio header prenderia o painel fixo do menu. */
.site-header::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: -1;
  background: rgba(6, 8, 13, 0);
  border-bottom: 1px solid transparent;
  transition: background-color .35s var(--ease), border-color .35s var(--ease), -webkit-backdrop-filter .35s, backdrop-filter .35s;
}
.site-header.is-scrolled::before {
  background: rgba(8, 11, 18, .72);
  border-bottom-color: var(--line);
  -webkit-backdrop-filter: saturate(170%) blur(18px);
  backdrop-filter: saturate(170%) blur(18px);
}
.header-bar {
  height: 100%;
  display: flex;
  align-items: center;
  gap: 16px;
}
.header-bar > .logo { position: relative; z-index: 2; margin-right: auto; }
.header-menu {
  display: flex;
  align-items: center;
  gap: 16px;
  flex: 1;
}
.site-nav {
  display: flex;
  align-items: center;
  gap: 2px;
  margin-inline: auto;
}
.site-nav a {
  position: relative;
  display: inline-flex;
  align-items: center;
  height: 36px;
  padding: 0 14px;
  border-radius: 999px;
  font-size: 14.5px;
  font-weight: 450;
  color: var(--muted);
  transition: color .2s, background-color .2s;
}
.site-nav a:hover { color: var(--text); }
.site-nav a.is-active {
  color: var(--text);
  background: rgba(255, 255, 255, .06);
  box-shadow: inset 0 0 0 1px var(--line);
}
.nav-index { display: none; }
.menu-foot { display: flex; align-items: center; gap: 12px; }
.menu-cta { display: none; }

.lang {
  position: relative;
  display: inline-flex;
  align-items: center;
  color: var(--muted);
}
.lang .icon { position: absolute; pointer-events: none; }
.lang-globe { left: 12px; width: 15px; height: 15px; }
.lang-chevron { right: 10px; width: 14px; height: 14px; }
.lang select {
  -webkit-appearance: none;
  appearance: none;
  height: 38px;
  padding: 0 30px 0 34px;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: rgba(255, 255, 255, .03);
  color: var(--text);
  font-size: 14px;
  font-weight: 450;
  cursor: pointer;
  transition: border-color .2s, background-color .2s;
}
.lang select:hover { border-color: var(--line-2); background: rgba(255, 255, 255, .06); }
.lang select option { background: var(--surface); color: var(--text); }

.menu-toggle {
  position: relative;
  z-index: 2;
  display: none;
  width: 44px;
  height: 44px;
  margin-right: -8px;
  padding: 0;
  border: 0;
  border-radius: 12px;
  background: transparent;
  cursor: pointer;
}
.menu-icon { position: absolute; inset: 0; }
.menu-icon i {
  position: absolute;
  left: 12px;
  right: 12px;
  height: 1.5px;
  border-radius: 2px;
  background: var(--text);
  transition: transform .35s var(--ease-out), top .35s var(--ease-out);
}
.menu-icon i:first-child { top: 17px; }
.menu-icon i:last-child { top: 25px; }
.menu-toggle[aria-expanded="true"] .menu-icon i:first-child { top: 21px; transform: rotate(45deg); }
.menu-toggle[aria-expanded="true"] .menu-icon i:last-child { top: 21px; transform: rotate(-45deg); }

@media (max-width: 1023.98px) {
  .menu-toggle { display: block; }
  .header-cta { margin-left: auto; }
  .header-bar > .logo { margin-right: 0; }
  .header-bar { justify-content: space-between; }

  .header-menu {
    position: fixed;
    inset: 0;
    z-index: 1;
    flex-direction: column;
    align-items: stretch;
    justify-content: space-between;
    gap: 32px;
    padding: calc(var(--header-h) + 24px) var(--gutter) max(28px, env(safe-area-inset-bottom));
    background:
      radial-gradient(80% 50% at 100% 0%, rgba(66, 85, 255, .2), transparent 70%),
      radial-gradient(60% 40% at 0% 100%, rgba(66, 85, 255, .1), transparent 70%),
      var(--bg);
    overflow-y: auto;
    visibility: hidden;
    opacity: 0;
    transition: opacity .35s var(--ease), visibility 0s linear .35s;
  }
  .menu-open .header-menu {
    visibility: visible;
    opacity: 1;
    transition: opacity .35s var(--ease), visibility 0s;
  }
  .site-nav {
    flex-direction: column;
    align-items: stretch;
    gap: 0;
    margin: 0;
  }
  .site-nav a {
    height: auto;
    padding: 18px 0;
    gap: 16px;
    border-radius: 0;
    border-bottom: 1px solid var(--line);
    font-size: clamp(1.75rem, 1.2rem + 3vw, 2.5rem);
    font-weight: 550;
    letter-spacing: -.035em;
    color: var(--text);
    transform: translateY(12px);
    opacity: 0;
    transition: transform .5s var(--ease-out), opacity .5s var(--ease-out), color .2s;
  }
  .site-nav a.is-active { background: none; box-shadow: none; border-bottom: 1px solid var(--line); }
  .site-nav a.is-active .nav-index { color: var(--ice); }
  .menu-open .site-nav a { transform: none; opacity: 1; }
  .menu-open .site-nav a:nth-child(2) { transition-delay: .04s; }
  .menu-open .site-nav a:nth-child(3) { transition-delay: .08s; }
  .menu-open .site-nav a:nth-child(4) { transition-delay: .12s; }
  .nav-index {
    display: inline-block;
    min-width: 2.2em;
    font-family: var(--font-mono);
    font-size: 13px;
    font-weight: 450;
    letter-spacing: 0;
    color: var(--muted);
  }
  .menu-foot {
    flex-direction: column;
    align-items: stretch;
    gap: 12px;
  }
  .menu-foot .lang select { width: 100%; height: 50px; font-size: 16px; }
  .menu-cta { display: inline-flex; width: 100%; }
}
@media (max-width: 559.98px) {
  .header-cta { display: none; }
}
@media (min-width: 1024px) and (max-width: 1199.98px) {
  .site-nav a { padding: 0 11px; font-size: 14px; }
  .header-menu, .header-bar { gap: 12px; }
}

/* ---------- Rótulos ---------- */
.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 20px;
  font-family: var(--font-mono);
  font-size: 12.5px;
  font-weight: 500;
  letter-spacing: .14em;
  text-transform: uppercase;
  color: var(--ice);
}
.eyebrow::before {
  content: "";
  width: 18px;
  height: 1px;
  background: var(--grad);
}
.eyebrow--center::after {
  content: "";
  width: 18px;
  height: 1px;
  background: linear-gradient(270deg, #4255ff, #b9d4ff);
}

/* ---------- Hero ---------- */
.hero {
  position: relative;
  isolation: isolate;
  overflow: hidden;
  display: flex;
  flex-direction: column;
  justify-content: center;
  min-height: min(100svh, 1080px);
  padding: calc(var(--header-h) + 56px) 0 128px;
}
.hero-bg {
  position: absolute;
  inset: 0;
  z-index: -4;
  background:
    radial-gradient(42% 52% at 76% 46%, rgba(66, 85, 255, .34), transparent 72%),
    radial-gradient(30% 34% at 86% 24%, rgba(185, 212, 255, .16), transparent 72%),
    radial-gradient(36% 42% at 64% 78%, rgba(111, 140, 255, .18), transparent 72%),
    radial-gradient(60% 50% at 10% 0%, rgba(66, 85, 255, .10), transparent 70%),
    var(--bg);
}
.hero-lines {
  position: absolute;
  inset: 0;
  z-index: -3;
  background-image:
    linear-gradient(rgba(255, 255, 255, .05) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255, 255, 255, .05) 1px, transparent 1px);
  background-size: 64px 64px;
  background-position: center top;
  -webkit-mask-image: radial-gradient(70% 70% at 70% 40%, #000 10%, transparent 72%);
  mask-image: radial-gradient(70% 70% at 70% 40%, #000 10%, transparent 72%);
}
/* Esfera em CSS: aparece só sem WebGL (ou se hero3d.js não carregar) */
.hero-orb {
  position: absolute;
  z-index: -3;
  left: 72%;
  top: 48%;
  width: min(40vw, 560px);
  aspect-ratio: 1;
  opacity: 0;
  transform: translate(-50%, -50%);
  pointer-events: none;
  animation: fade 1.4s var(--ease) .9s forwards;
}
.has-webgl .hero-orb { display: none; }
.hero-orb i { position: absolute; inset: 0; border-radius: 50%; }
.hero-orb i:nth-child(1) {
  background:
    radial-gradient(circle at 34% 30%, rgba(185, 212, 255, .55), rgba(111, 140, 255, .28) 22%, rgba(66, 85, 255, .16) 45%, rgba(10, 14, 40, .2) 70%, transparent 71%);
  box-shadow: 0 0 120px 10px rgba(66, 85, 255, .28), inset -30px -40px 80px rgba(6, 8, 13, .55);
}
.hero-orb i:nth-child(2) {
  inset: -16% -30%;
  border: 1px solid rgba(185, 212, 255, .22);
  transform: rotate(-18deg) scaleY(.32);
}
.hero-orb i:nth-child(3) {
  inset: 6%;
  border: 1px dashed rgba(185, 212, 255, .16);
  animation: orbit 60s linear infinite;
}
.hero-canvas {
  position: absolute;
  inset: 0;
  z-index: -2;
  width: 100%;
  height: 100%;
}
.hero-shade {
  position: absolute;
  inset: 0;
  z-index: -1;
  pointer-events: none;
  background:
    linear-gradient(90deg, rgba(6, 8, 13, .78) 0%, rgba(6, 8, 13, .45) 34%, rgba(6, 8, 13, 0) 62%),
    linear-gradient(180deg, rgba(6, 8, 13, .55) 0%, rgba(6, 8, 13, 0) 18%, rgba(6, 8, 13, 0) 72%, var(--bg) 100%);
}
.hero-inner { pointer-events: none; }
.hero-copy { max-width: 780px; pointer-events: auto; }

.pill {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  max-width: 100%;
  margin-bottom: 28px;
  padding: 7px 14px 7px 12px;
  border: 1px solid var(--line-2);
  border-radius: 999px;
  background: rgba(15, 20, 32, .55);
  -webkit-backdrop-filter: blur(10px);
  backdrop-filter: blur(10px);
  font-size: 13.5px;
  font-weight: 450;
  line-height: 1.3;
  color: #cdd5e6;
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, .06);
}
.pulse {
  position: relative;
  width: 8px;
  height: 8px;
  flex: none;
  border-radius: 50%;
  background: #7cf5c8;
  box-shadow: 0 0 10px rgba(124, 245, 200, .8);
}
.pulse::after {
  content: "";
  position: absolute;
  inset: -4px;
  border-radius: 50%;
  border: 1px solid rgba(124, 245, 200, .7);
  animation: ping 2.2s var(--ease-out) infinite;
}

.hero h1 {
  font-size: var(--fs-hero);
  font-weight: 600;
  line-height: 1.02;
  letter-spacing: -.045em;
}
.hero h1 em {
  display: block;
  background: var(--grad);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
  -webkit-box-decoration-break: clone;
  box-decoration-break: clone;
  padding-right: .04em;
}
.hero-lead {
  max-width: 560px;
  margin-top: 26px;
  font-size: var(--fs-lead);
  line-height: 1.6;
  color: #a9b2c6;
}
.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 36px;
}
.hero-notes {
  display: flex;
  flex-wrap: wrap;
  gap: 10px 22px;
  margin-top: 32px;
  font-size: 14px;
  color: var(--muted);
}
.hero-notes li { display: inline-flex; align-items: center; gap: 8px; }
.hero-notes .icon { width: 16px; height: 16px; color: var(--ice); stroke-width: 2; }

.scroll-cue {
  position: absolute;
  left: 50%;
  bottom: 28px;
  display: inline-flex;
  flex-direction: column;
  align-items: center;
  gap: 12px;
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: .16em;
  text-transform: uppercase;
  color: var(--muted);
  transform: translateX(-50%);
  white-space: nowrap;
  transition: color .2s;
}
.scroll-cue:hover { color: var(--text); }
.scroll-cue-track {
  position: relative;
  width: 1px;
  height: 40px;
  overflow: hidden;
  background: var(--line-2);
}
.scroll-cue-track i {
  position: absolute;
  left: 0;
  top: 0;
  width: 1px;
  height: 16px;
  background: linear-gradient(180deg, transparent, var(--ice));
  animation: drip 2s var(--ease) infinite;
}

/* Entrada do hero */
.hero-copy > * { animation: rise 1s var(--ease-out) both; animation-delay: calc(var(--i, 0) * 90ms + 100ms); }
.scroll-cue { animation: fade 1s var(--ease) .9s both; }

/* ---------- Faixa de tecnologias ---------- */
.stack {
  position: relative;
  padding: 36px 0 40px;
  border-block: 1px solid var(--line);
  background: linear-gradient(180deg, var(--bg-2), rgba(11, 15, 23, .4));
}
.stack-label {
  margin-bottom: 22px;
  padding-inline: var(--gutter);
  text-align: center;
  font-family: var(--font-mono);
  font-size: 12px;
  letter-spacing: .14em;
  text-transform: uppercase;
  color: var(--muted);
}
.marquee {
  --gap: clamp(36px, 5vw, 64px);
  display: flex;
  overflow: hidden;
  -webkit-mask-image: linear-gradient(90deg, transparent, #000 12%, #000 88%, transparent);
  mask-image: linear-gradient(90deg, transparent, #000 12%, #000 88%, transparent);
}
.marquee-list {
  display: flex;
  flex: none;
  align-items: center;
  gap: var(--gap);
  padding-right: var(--gap);
  animation: marquee 42s linear infinite;
}
.marquee:hover .marquee-list { animation-play-state: paused; }
.marquee-list li {
  display: inline-flex;
  align-items: center;
  gap: var(--gap);
  font-size: clamp(17px, 1rem + .4vw, 21px);
  font-weight: 550;
  letter-spacing: -.02em;
  color: #9aa3b8;
  white-space: nowrap;
  transition: color .25s;
}
.marquee-list li::after {
  content: "";
  width: 5px;
  height: 5px;
  border-radius: 1px;
  background: rgba(185, 212, 255, .35);
  transform: rotate(45deg);
}
.marquee-list li:hover { color: var(--text); }

/* ---------- Seções ---------- */
.section { position: relative; padding-block: var(--section-y); }
.section-head {
  display: grid;
  gap: 20px;
  margin-bottom: clamp(40px, 5vw, 64px);
}
.section-head h2 {
  max-width: 16ch;
  font-size: var(--fs-h2);
  letter-spacing: -.04em;
  line-height: 1.04;
}
.section-intro {
  max-width: 460px;
  font-size: var(--fs-lead);
  line-height: 1.6;
  color: var(--muted);
}
@media (min-width: 900px) {
  .section-head {
    grid-template-columns: minmax(0, 1.4fr) minmax(0, 1fr);
    align-items: end;
    gap: 48px;
  }
  .section-intro { justify-self: end; padding-bottom: 6px; }
}

/* ---------- Cards (base) ---------- */
.card {
  --accent: var(--steel);
  --accent-ink: var(--ice);
  --mx: 50%;
  --my: 50%;
  --tx: 0;
  --ty: 0;
  position: relative;
  isolation: isolate;
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  background:
    linear-gradient(180deg, rgba(255, 255, 255, .03), rgba(255, 255, 255, 0) 30%),
    var(--surface);
  transition: border-color .35s var(--ease), transform .6s var(--ease-out);
}
/* luz interna que segue o cursor */
.card::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: -1;
  background: radial-gradient(520px circle at var(--mx) var(--my), color-mix(in srgb, var(--accent) 13%, transparent), transparent 45%);
  opacity: 0;
  transition: opacity .45s var(--ease);
  pointer-events: none;
}
/* borda iluminada que segue o cursor */
.card::after {
  content: "";
  position: absolute;
  inset: -1px;
  z-index: 3;
  padding: 1px;
  border-radius: inherit;
  background: radial-gradient(360px circle at var(--mx) var(--my), color-mix(in srgb, var(--accent) 85%, #fff 15%), transparent 55%);
  -webkit-mask: linear-gradient(#000 0 0) content-box, linear-gradient(#000 0 0);
  -webkit-mask-composite: xor;
  mask: linear-gradient(#000 0 0) content-box exclude, linear-gradient(#000 0 0);
  opacity: 0;
  transition: opacity .45s var(--ease);
  pointer-events: none;
}
.card.is-tracking::before,
.card.is-tracking::after { opacity: 1; }
.card[data-tilt].is-tracking {
  transform: perspective(var(--persp, 1400px)) rotateX(calc(var(--ty) * var(--tilt, 1.2deg) * -1)) rotateY(calc(var(--tx) * var(--tilt, 1.2deg)));
}
.card:hover { border-color: var(--line-2); }

/* ---------- Projetos ---------- */
.bento {
  display: grid;
  grid-template-columns: repeat(12, minmax(0, 1fr));
  gap: clamp(14px, 1.6vw, 20px);
}
.project {
  grid-column: span 12;
  display: flex;
  flex-direction: column;
  background:
    radial-gradient(70% 55% at 0% 0%, color-mix(in srgb, var(--accent) 9%, transparent), transparent 70%),
    linear-gradient(180deg, rgba(255, 255, 255, .03), rgba(255, 255, 255, 0) 30%),
    var(--surface);
}
.project-copy {
  position: relative;
  z-index: 2;
  display: flex;
  flex-direction: column;
  padding: clamp(24px, 4vw, 52px);
}
.project-meta {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 10px 16px;
  margin-bottom: 18px;
}
.project-tag {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-family: var(--font-mono);
  font-size: 12px;
  font-weight: 500;
  letter-spacing: .12em;
  text-transform: uppercase;
  color: var(--accent-ink);
}
.project-tag::before {
  content: "";
  width: 7px;
  height: 7px;
  border-radius: 2px;
  background: var(--accent);
  box-shadow: 0 0 12px var(--accent);
}
.status {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  height: 26px;
  padding: 0 10px;
  border: 1px solid color-mix(in srgb, var(--accent) 30%, transparent);
  border-radius: 999px;
  background: color-mix(in srgb, var(--accent) 9%, transparent);
  font-family: var(--font-mono);
  font-size: 11px;
  font-weight: 500;
  letter-spacing: .08em;
  text-transform: uppercase;
  color: var(--accent-ink);
  white-space: nowrap;
}
.status-dot {
  position: relative;
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--accent);
}
.status-dot::after {
  content: "";
  position: absolute;
  inset: -3px;
  border-radius: 50%;
  border: 1px solid var(--accent);
  animation: ping 2.4s var(--ease-out) infinite;
}
.project-name {
  font-size: var(--fs-name);
  font-weight: 600;
  letter-spacing: -.04em;
  line-height: 1.05;
}
.project-text {
  max-width: 52ch;
  margin-top: 14px;
  font-size: 16px;
  line-height: 1.65;
  color: var(--muted);
}
.features {
  display: grid;
  gap: 12px;
  margin-top: 26px;
}
.features li {
  display: flex;
  align-items: flex-start;
  gap: 12px;
  font-size: 15px;
  line-height: 1.45;
  color: #c9d0df;
}
.feature-icon {
  display: inline-grid;
  place-items: center;
  width: 30px;
  height: 30px;
  flex: none;
  margin-top: -4px;
  border: 1px solid color-mix(in srgb, var(--accent) 26%, transparent);
  border-radius: 9px;
  background: color-mix(in srgb, var(--accent) 8%, transparent);
  color: var(--accent-ink);
}
.feature-icon .icon { width: 16px; height: 16px; }
.project-foot {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 16px 20px;
  margin-top: auto;
  padding-top: 30px;
}
.chips { display: flex; flex-wrap: wrap; gap: 8px; }
.chips li {
  height: 28px;
  display: inline-flex;
  align-items: center;
  padding: 0 11px;
  border: 1px solid var(--line-2);
  border-radius: 8px;
  background: rgba(255, 255, 255, .025);
  font-family: var(--font-mono);
  font-size: 12px;
  font-weight: 450;
  color: #b8c0d2;
}
.project-cta {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 6px 0;
  font-size: 15px;
  font-weight: 500;
  color: var(--text);
  white-space: nowrap;
}
.project-cta span {
  background: linear-gradient(currentColor, currentColor) 0 100% / 0 1px no-repeat;
  transition: background-size .35s var(--ease-out);
}
.project-cta .icon { width: 17px; height: 17px; color: var(--accent-ink); transition: transform .35s var(--ease-out); }
.project-cta:hover span { background-size: 100% 1px; }
.project-cta:hover .icon { transform: translateX(4px); }

/* Visuais */
.project-visual {
  position: relative;
  z-index: 1;
  perspective: 2000px;
}
.visual-note {
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: .04em;
  color: #7c869c;
}
.window {
  --base-x: 0deg;
  --base-y: 0deg;
  position: relative;
  display: block;
  overflow: hidden;
  border-radius: 14px;
  background: #0b0f17;
  box-shadow:
    0 0 0 1px rgba(255, 255, 255, .1),
    0 1px 0 0 rgba(255, 255, 255, .08) inset,
    0 50px 100px -30px rgba(0, 0, 0, .8),
    0 30px 120px -40px color-mix(in srgb, var(--accent) 55%, transparent);
  transform: rotateX(calc(var(--base-x) - var(--ty) * 3deg)) rotateY(calc(var(--base-y) + var(--tx) * 4deg));
  transform-style: preserve-3d;
  transition: transform .8s var(--ease-out);
}
.window-bar {
  position: relative;
  display: flex;
  align-items: center;
  gap: 6px;
  height: 34px;
  padding: 0 12px;
  border-bottom: 1px solid rgba(255, 255, 255, .06);
  background: linear-gradient(180deg, #171d2c, #121725);
}
.window-bar > i {
  width: 9px;
  height: 9px;
  border-radius: 50%;
  background: rgba(255, 255, 255, .16);
}
.window-title {
  position: absolute;
  left: 50%;
  top: 50%;
  display: block;
  max-width: calc(100% - 120px);
  height: 22px;
  padding: 0 12px;
  line-height: 22px;
  border-radius: 6px;
  background: rgba(255, 255, 255, .05);
  font-family: var(--font-mono);
  font-size: 11px;
  color: #8d96ab;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  transform: translate(-50%, -50%);
}
.window-title .icon { display: inline-block; width: 11px; height: 11px; margin-right: 6px; vertical-align: -1px; stroke-width: 2; }
.shot {
  position: relative;
  display: block;
  aspect-ratio: 16 / 10;
  overflow: hidden;
  background:
    radial-gradient(90% 70% at 15% 0%, color-mix(in srgb, var(--accent) 22%, transparent), transparent 65%),
    radial-gradient(60% 60% at 100% 100%, rgba(66, 85, 255, .14), transparent 70%),
    linear-gradient(180deg, #121828, #0b0f17);
}
.shot::before {
  content: "";
  position: absolute;
  inset: 0;
  background-image:
    linear-gradient(rgba(255, 255, 255, .035) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255, 255, 255, .035) 1px, transparent 1px);
  background-size: 28px 28px;
  -webkit-mask-image: linear-gradient(180deg, #000, transparent 85%);
  mask-image: linear-gradient(180deg, #000, transparent 85%);
}
.shot img {
  position: relative;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: top center;
}
.shot img.is-missing { visibility: hidden; }

/* Cards divididos (Stock, Pulse, Depth) */
.project--split .project-visual {
  display: flex;
  flex-direction: column;
  gap: 16px;
  padding: 0 clamp(20px, 4vw, 40px) clamp(24px, 4vw, 40px);
}
.project--split .visual-note { order: 2; }

@media (min-width: 1024px) {
  .project--split {
    flex-direction: row;
    align-items: stretch;
    min-height: 560px;
  }
  .project--split .project-copy { flex: 0 0 43%; padding-right: 24px; }
  .project--split .project-visual {
    flex: 1 1 auto;
    min-width: 0;
    justify-content: center;
    padding: 64px 0 56px 16px;
  }
  .project--split .window {
    width: 112%;
    --base-x: 6deg;
    --base-y: 14deg;
    transform-origin: 0% 50%;
  }
  .project--split .visual-note { position: absolute; left: 20px; bottom: 26px; }

  .project--reverse { flex-direction: row-reverse; }
  .project--reverse .project-copy { padding-right: clamp(24px, 4vw, 52px); padding-left: 24px; }
  .project--reverse .project-visual { padding: 64px 16px 56px 0; align-items: flex-end; }
  .project--reverse .window { --base-y: -14deg; transform-origin: 100% 50%; }
  .project--reverse .visual-note { left: auto; right: 20px; }
}

/* Linha Sites + Launch: mesma largura, mesma estrutura, linhas internas alinhadas */
.project-pair {
  grid-column: span 12;
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  gap: inherit;
}
.project--stacked { --pad: clamp(24px, 4vw, 52px); grid-column: auto; }
/* rodapé: etiquetas e chamada numa linha só quando cabem nos 6 idiomas (precisa de ~442px);
   abaixo disso os dois cards quebram juntos, porque têm a mesma largura */
.project--stacked .project-foot { container: foot / inline-size; }
@container foot (max-width: 459.98px) {
  .project--stacked .chips { width: 100%; }
}
.project--stacked .project-visual {
  display: flex;
  flex-direction: column;
  gap: 14px;
  padding: var(--pad) var(--pad) 0;
}
.project--stacked .project-copy { flex: 1 1 auto; padding: clamp(22px, 3vw, 32px) var(--pad) var(--pad); }
.project--stacked .visual-note { align-self: flex-start; }
@media (min-width: 1024px) {
  .project-pair { grid-template-columns: repeat(2, minmax(0, 1fr)); row-gap: 0; }
  /* subgrid: visual, tag, título, texto, recursos, casos e rodapé dos dois cards nas mesmas linhas */
  @supports (grid-template-rows: subgrid) {
    .project--stacked {
      display: grid;
      grid-row: span 7;
      grid-template-rows: subgrid;
      row-gap: 0;
    }
    .project--stacked .project-copy {
      grid-row: span 6;
      display: grid;
      grid-template-rows: subgrid;
      row-gap: 0;
    }
  }
}

/* Área visual: a mesma caixa, com o mesmo recuo, nos dois cards */
.visual-stage {
  position: relative;
  aspect-ratio: 16 / 11.2;
  transform-style: preserve-3d;
}
.visual-stage .window-bar { height: 26px; }
.visual-stage .window-bar > i { width: 7px; height: 7px; }
.visual-stage .window-title { width: max-content; height: 18px; line-height: 18px; font-size: 10px; max-width: calc(100% - 80px); }

/* Launch: a captura preenche a caixa, com o mesmo giro das janelas do card de sites */
.launch-stage .window {
  position: absolute;
  inset: 0 .65% 0 -.65%;
  display: flex;
  flex-direction: column;
  --base-x: 4deg;
  --base-y: -6deg;
}
.launch-stage .shot { flex: 1 1 auto; min-height: 0; aspect-ratio: auto; }

/* Sites: janela de trás, janela da frente e celular */
.sites-stage .window { position: absolute; width: 70%; }
/* recuos de .5% compensam a perspectiva do giro (-6deg) e centralizam a composição na caixa */
.window--back {
  top: 0;
  right: .5%;
  --base-x: 4deg;
  --base-y: -6deg;
  opacity: .9;
}
.window--front {
  left: -.5%;
  bottom: 0;
  z-index: 2;
  --base-x: 4deg;
  --base-y: -6deg;
}
.window--front:hover { box-shadow: 0 0 0 1px rgba(185, 212, 255, .35), 0 50px 100px -30px rgba(0, 0, 0, .8), 0 30px 120px -40px color-mix(in srgb, var(--accent) 55%, transparent); }
.device {
  position: absolute;
  right: 3%;
  bottom: 0;
  z-index: 3;
  width: 20%;
  padding: 5px;
  border-radius: 22px;
  background: linear-gradient(160deg, #2a3142, #11151f);
  box-shadow: 0 0 0 1px rgba(255, 255, 255, .12), 0 30px 60px -18px rgba(0, 0, 0, .85);
  transform: rotateX(calc(4deg - var(--ty) * 4deg)) rotateY(calc(-8deg + var(--tx) * 6deg)) translateZ(40px);
  transition: transform .8s var(--ease-out);
}
.device .shot {
  aspect-ratio: 780 / 1688;
  border-radius: 17px;
}
.device .shot::before { display: none; }

.cases {
  display: grid;
  align-content: start;
  margin-top: 26px;
  border-top: 1px solid var(--line);
}
/* nome em cima, área embaixo, link à direita: mesma forma em qualquer largura e idioma */
.cases li {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  align-items: center;
  gap: 2px 16px;
  padding: 13px 0;
  border-bottom: 1px solid var(--line);
  font-size: 14.5px;
}
.case-name { grid-area: 1 / 1; font-weight: 550; color: var(--text); }
.case-area { grid-area: 2 / 1; color: var(--muted); }
.case-link {
  grid-area: 1 / 2 / 3 / 3;
  display: inline-flex;
  align-items: center;
  gap: 4px;
  font-size: 14px;
  font-weight: 500;
  color: var(--accent-ink);
}
.case-link .icon { width: 15px; height: 15px; transition: transform .3s var(--ease-out); }
.case-link:hover .icon { transform: translate(2px, -2px); }

/* Depth */
.project--depth .project-copy { padding-bottom: clamp(24px, 4vw, 52px); }
.live-note {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  margin-top: 24px;
  padding: 12px 14px;
  border: 1px solid rgba(111, 140, 255, .25);
  border-radius: 12px;
  background: rgba(66, 85, 255, .08);
  font-size: 14px;
  line-height: 1.5;
  color: #c9d4f5;
}
.live-dot {
  width: 7px;
  height: 7px;
  flex: none;
  margin-top: 7px;
  border-radius: 50%;
  background: var(--ice);
  box-shadow: 0 0 10px var(--ice);
  animation: blink 2.4s var(--ease) infinite;
}
.depth-stage {
  position: relative;
  min-height: 340px;
  margin: 0 clamp(12px, 2vw, 16px) clamp(12px, 2vw, 16px);
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: calc(var(--radius-lg) - 10px);
  background:
    radial-gradient(50% 60% at 55% 45%, rgba(66, 85, 255, .35), transparent 70%),
    radial-gradient(30% 35% at 70% 30%, rgba(185, 212, 255, .18), transparent 70%),
    linear-gradient(180deg, #0a0e18, #070a12);
}
.depth-fallback {
  position: absolute;
  inset: 0;
  background-image:
    linear-gradient(rgba(255, 255, 255, .05) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255, 255, 255, .05) 1px, transparent 1px);
  background-size: 40px 40px;
  -webkit-mask-image: radial-gradient(60% 70% at 55% 50%, #000, transparent 80%);
  mask-image: radial-gradient(60% 70% at 55% 50%, #000, transparent 80%);
}
.depth-fallback i {
  position: absolute;
  left: 55%;
  top: 46%;
  width: 46%;
  aspect-ratio: 1;
  border: 1px solid rgba(185, 212, 255, .22);
  border-radius: 50%;
  transform: translate(-50%, -50%) rotateX(68deg);
}
.depth-fallback i:nth-child(2) { width: 32%; border-color: rgba(111, 140, 255, .3); transform: translate(-50%, -50%) rotateX(68deg) rotateY(30deg); }
.depth-fallback i:nth-child(3) { width: 16%; border: 0; background: radial-gradient(circle at 35% 35%, #b9d4ff, #4255ff 55%, #1c2380); box-shadow: 0 0 60px rgba(66, 85, 255, .7); transform: translate(-50%, -50%); }
.has-webgl .depth-fallback i { display: none; }
.depth-canvas {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  touch-action: pan-y;
}
.depth-hint {
  position: absolute;
  left: 14px;
  bottom: 14px;
  z-index: 2;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  max-width: calc(100% - 28px);
  padding: 7px 12px;
  border: 1px solid var(--line-2);
  border-radius: 999px;
  background: rgba(6, 8, 13, .6);
  -webkit-backdrop-filter: blur(10px);
  backdrop-filter: blur(10px);
  font-size: 12.5px;
  color: #c3cbe0;
  pointer-events: none;
}
.depth-hint .icon { width: 15px; height: 15px; color: var(--ice); }
@media (min-width: 1024px) {
  .project--depth .project-copy { flex-basis: 43%; }
  .depth-stage { flex: 1 1 auto; min-height: 420px; margin: 16px 16px 16px 0; }
}

/* ---------- Serviços ---------- */
.service-grid {
  display: grid;
  gap: clamp(14px, 1.6vw, 20px);
  grid-template-columns: repeat(auto-fit, minmax(min(100%, 300px), 1fr));
}
@media (min-width: 1024px) {
  .service-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); }
}
.service {
  --tilt: 3deg;
  --persp: 900px;
  display: flex;
  flex-direction: column;
  gap: 12px;
  padding: clamp(22px, 2.6vw, 30px);
  border-radius: var(--radius);
}
.service-top {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  margin-bottom: 18px;
}
.service-icon {
  position: relative;
  display: inline-grid;
  place-items: center;
  width: 46px;
  height: 46px;
  border-radius: 13px;
  color: var(--ice);
  background:
    linear-gradient(180deg, rgba(111, 140, 255, .16), rgba(66, 85, 255, .04)) padding-box,
    linear-gradient(160deg, rgba(185, 212, 255, .45), rgba(66, 85, 255, .1) 60%) border-box;
  border: 1px solid transparent;
  box-shadow: 0 10px 30px -12px rgba(66, 85, 255, .6);
}
.service-icon .icon { width: 22px; height: 22px; stroke-width: 1.4; }
.service-num {
  font-family: var(--font-mono);
  font-size: 12px;
  letter-spacing: .08em;
  color: #5d6780;
  transition: color .3s;
}
.service:hover .service-num { color: var(--ice); }
@media (max-width: 639.98px) {
  .service {
    display: grid;
    grid-template-columns: auto minmax(0, 1fr);
    column-gap: 16px;
    row-gap: 8px;
    padding: 22px 20px;
  }
  .service-top { grid-row: span 2; margin: 0; }
  .service-icon { width: 42px; height: 42px; border-radius: 12px; }
  .service-num { position: absolute; top: 18px; right: 18px; }
  .service h3 { padding-right: 28px; align-self: center; }
}
.service h3 { font-size: var(--fs-h3); letter-spacing: -.025em; }
.service p { font-size: 15px; line-height: 1.6; color: var(--muted); }

/* ---------- Como funciona ---------- */
.process { background: linear-gradient(180deg, transparent, rgba(11, 15, 23, .7) 30%, rgba(11, 15, 23, .7) 70%, transparent); }
.timeline { position: relative; --progress: 1; }
.steps {
  position: relative;
  display: grid;
  gap: 40px;
}
.step {
  position: relative;
  padding-left: 64px;
}
.step-node {
  position: absolute;
  left: 0;
  top: -6px;
  display: inline-grid;
  place-items: center;
  width: 40px;
  height: 40px;
  border-radius: 50%;
  border: 1px solid var(--line-2);
  background: var(--bg-2);
  font-family: var(--font-mono);
  font-size: 12.5px;
  font-weight: 500;
  color: var(--muted);
  transition: color .4s, border-color .4s, box-shadow .4s, background-color .4s;
}
.step h3 { font-size: clamp(1.2rem, 1.05rem + .4vw, 1.375rem); letter-spacing: -.025em; }
.step p { margin-top: 10px; max-width: 34ch; font-size: 15px; line-height: 1.6; color: var(--muted); }
.timeline-track {
  position: absolute;
  left: 19.5px;
  top: 14px;
  bottom: 24px;
  width: 1px;
  background: var(--line-2);
  overflow: hidden;
  -webkit-mask-image: linear-gradient(180deg, #000 80%, transparent);
  mask-image: linear-gradient(180deg, #000 80%, transparent);
}
.timeline-fill {
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, #4255ff, #6f8cff 50%, #b9d4ff);
  transform-origin: 50% 0;
  transform: scaleY(var(--progress));
}
.step.is-lit .step-node,
.timeline:not(.is-tracking) .step-node {
  color: #fff;
  border-color: rgba(185, 212, 255, .55);
  background-color: #2a37c4;
  box-shadow: 0 0 0 4px rgba(66, 85, 255, .14), 0 0 24px rgba(66, 85, 255, .55);
}

@media (min-width: 900px) {
  .steps { grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 32px; }
  .step { padding: 72px 8px 0 0; }
  .step-node { top: 0; width: 44px; height: 44px; }
  .timeline-track {
    left: 22px;
    right: calc(25% - 46px);
    top: 21.5px;
    bottom: auto;
    width: auto;
    height: 1px;
    -webkit-mask-image: none;
    mask-image: none;
  }
  .timeline-fill {
    background: var(--grad);
    transform-origin: 0 50%;
    transform: scaleX(var(--progress));
  }
}

/* Linha de progresso guiada pela rolagem (CSS puro onde houver suporte) */
@supports (animation-timeline: view()) {
  @media (prefers-reduced-motion: no-preference) {
    .timeline { view-timeline: --steps block; }
    .timeline-fill {
      animation: fill-y linear both;
      animation-timeline: --steps;
      animation-range: cover 22% cover 68%;
    }
    .step-node {
      animation: node-on linear both;
      animation-timeline: view();
      animation-range: cover 38% cover 42%;
    }
    @media (min-width: 900px) {
      .timeline-fill {
        animation-name: fill-x;
        animation-range: cover 22% cover 52%;
      }
      .step-node {
        animation-timeline: --steps;
        animation-range: cover calc(21.5% + var(--i) * 10%) cover calc(22.5% + var(--i) * 10%);
      }
    }
  }
}

/* ---------- Contato ---------- */
.contact-panel {
  --angle: 0deg;
  position: relative;
  isolation: isolate;
  overflow: hidden;
  padding: clamp(48px, 8vw, 112px) clamp(20px, 6vw, 80px);
  border: 1px solid transparent;
  border-radius: clamp(24px, 3vw, 36px);
  text-align: center;
  background:
    radial-gradient(60% 80% at 50% 0%, rgba(66, 85, 255, .22), transparent 70%) padding-box,
    linear-gradient(180deg, #0e1320, #090c14) padding-box,
    conic-gradient(from var(--angle), rgba(255, 255, 255, .08) 0deg, rgba(255, 255, 255, .08) 200deg, #4255ff 260deg, #b9d4ff 300deg, #6f8cff 330deg, rgba(255, 255, 255, .08) 360deg) border-box;
  animation: spin 9s linear infinite;
}
.contact-decor {
  position: absolute;
  inset: 0;
  z-index: -1;
  background-image:
    linear-gradient(rgba(255, 255, 255, .04) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255, 255, 255, .04) 1px, transparent 1px);
  background-size: 56px 56px;
  background-position: center center;
  -webkit-mask-image: radial-gradient(60% 70% at 50% 0%, #000, transparent 80%);
  mask-image: radial-gradient(60% 70% at 50% 0%, #000, transparent 80%);
}
.contact h2 {
  max-width: 18ch;
  margin-inline: auto;
  font-size: clamp(2.125rem, 1.2rem + 3.6vw, 4.25rem);
  letter-spacing: -.045em;
  line-height: 1.02;
}
.contact-text {
  max-width: 560px;
  margin: 24px auto 0;
  font-size: var(--fs-lead);
  line-height: 1.6;
  color: var(--muted);
}
.contact-actions {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 22px;
  margin-top: 40px;
}
.contact-mail {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-size: 15.5px;
  color: #c3cbe0;
  overflow-wrap: anywhere;
  transition: color .2s;
}
.contact-mail .icon { width: 18px; height: 18px; color: var(--muted); }
.contact-mail:hover { color: #fff; }

/* ---------- Rodapé ---------- */
.site-footer {
  position: relative;
  overflow: hidden;
  padding-top: clamp(56px, 7vw, 88px);
  border-top: 1px solid var(--line);
  background: linear-gradient(180deg, var(--bg), var(--bg-2));
}
.footer-grid {
  display: grid;
  gap: 36px;
}
.footer-brand p { margin-top: 14px; max-width: 30ch; font-size: 15px; color: var(--muted); }
.footer-nav { display: flex; flex-wrap: wrap; gap: 10px 28px; }
.footer-nav a, .footer-mail {
  font-size: 15px;
  color: #b5bdcf;
  transition: color .2s;
}
.footer-nav a:hover, .footer-mail:hover { color: #fff; }
.footer-contact {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 14px;
}
.to-top {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  height: 38px;
  padding: 0 14px;
  border: 1px solid var(--line-2);
  border-radius: 999px;
  font-size: 14px;
  color: var(--text);
  transition: border-color .2s, background-color .2s;
}
.to-top .icon { width: 15px; height: 15px; transition: transform .3s var(--ease-out); }
.to-top:hover { border-color: rgba(255, 255, 255, .28); background: rgba(255, 255, 255, .05); }
.to-top:hover .icon { transform: translateY(-2px); }
.footer-bottom {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 8px 24px;
  margin-top: 48px;
  padding-block: 22px;
  border-top: 1px solid var(--line);
  font-size: 13.5px;
  color: var(--muted);
}
.footer-domain { font-family: var(--font-mono); font-size: 12.5px; }
.footer-mark {
  margin-top: 8px;
  margin-bottom: -.2em;
  text-align: center;
  font-size: clamp(6rem, 25vw, 22rem);
  font-weight: 700;
  letter-spacing: -.07em;
  line-height: .8;
  color: transparent;
  background: linear-gradient(180deg, rgba(111, 140, 255, .16), rgba(111, 140, 255, 0) 80%);
  -webkit-background-clip: text;
  background-clip: text;
  user-select: none;
  pointer-events: none;
}
@media (min-width: 768px) {
  .footer-grid { grid-template-columns: 1.4fr 1.2fr 1fr; align-items: start; }
  .footer-nav { flex-direction: column; }
  .footer-contact { align-items: flex-end; }
}

/* ---------- Revelação ao rolar ---------- */
/* fill-mode backwards: depois da entrada, o estado normal (inclusive o tilt) volta a valer */
.reveal-ready [data-reveal]:not(.is-in) { opacity: 0; }
.reveal-ready [data-reveal].is-in { animation: reveal .9s var(--ease-out) backwards; animation-delay: var(--reveal-delay, 0ms); }

/* ---------- Animações ---------- */
@keyframes rise {
  from { opacity: 0; transform: translate3d(0, 22px, 0); filter: blur(6px); }
  to { opacity: 1; transform: none; filter: blur(0); }
}
@keyframes fade { from { opacity: 0; } to { opacity: 1; } }
@keyframes orbit { to { transform: rotate(360deg); } }
@keyframes reveal {
  from { opacity: 0; transform: translate3d(0, 28px, 0); }
  to { opacity: 1; transform: none; }
}
@keyframes ping {
  0% { transform: scale(.6); opacity: .9; }
  80%, 100% { transform: scale(1.9); opacity: 0; }
}
@keyframes blink { 50% { opacity: .35; } }
@keyframes drip {
  0% { transform: translateY(-16px); }
  100% { transform: translateY(40px); }
}
@keyframes marquee { to { transform: translate3d(-100%, 0, 0); } }
@keyframes spin { to { --angle: 360deg; } }
@keyframes fill-y { from { transform: scaleY(0); } to { transform: scaleY(1); } }
@keyframes fill-x { from { transform: scaleX(0); } to { transform: scaleX(1); } }
@keyframes node-on {
  from { color: var(--muted); border-color: var(--line-2); background-color: var(--bg-2); box-shadow: none; }
  to { color: #fff; border-color: rgba(185, 212, 255, .55); background-color: #2a37c4; box-shadow: 0 0 0 4px rgba(66, 85, 255, .14), 0 0 24px rgba(66, 85, 255, .55); }
}

/* ---------- Telas pequenas ---------- */
@media (max-width: 767.98px) {
  .hero { padding-bottom: 112px; }
  .hero-shade {
    background:
      linear-gradient(180deg, rgba(6, 8, 13, .45) 0%, rgba(6, 8, 13, .12) 30%, rgba(6, 8, 13, .3) 70%, var(--bg) 100%);
  }
  .hero-bg {
    background:
      radial-gradient(70% 40% at 80% 18%, rgba(66, 85, 255, .34), transparent 72%),
      radial-gradient(50% 30% at 90% 70%, rgba(111, 140, 255, .18), transparent 72%),
      radial-gradient(60% 30% at 0% 100%, rgba(66, 85, 255, .12), transparent 72%),
      var(--bg);
  }
  .hero-actions .btn { flex: 1 1 100%; }
  .hero-orb { left: 50%; top: 40%; width: 86vw; }
  .hero-orb i:nth-child(1) { opacity: .6; }
  .scroll-cue { bottom: 22px; }
  .window-bar { height: 28px; }
  .window-title { font-size: 10px; height: 18px; line-height: 18px; max-width: calc(100% - 90px); }
  .project-foot { flex-direction: column; align-items: flex-start; }
  .sites-stage .window-title { display: none; }
  .device { border-radius: 14px; padding: 3px; }
  .device .shot { border-radius: 11px; }
}
@media (max-width: 420px) {
  .pill { font-size: 12.5px; }
  .hero-notes { gap: 8px 16px; font-size: 13.5px; }
  .btn-xl { height: 56px; padding: 0 22px; font-size: 16px; width: 100%; }
}

/* ---------- Movimento reduzido ---------- */
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after {
    animation-duration: .001ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: .001ms !important;
    transition-delay: 0ms !important;
  }
  .hero-copy > *, .scroll-cue { animation: none; }
  .marquee { -webkit-mask-image: none; mask-image: none; }
  .marquee-list { animation: none; flex-wrap: wrap; justify-content: center; flex: 1 1 100%; padding: 0 var(--gutter); gap: 14px 28px; }
  .marquee-list { gap: 12px 36px; }
  .marquee-list li::after { display: none; }
  .marquee-list[aria-hidden="true"] { display: none; }
  .contact-panel { animation: none; --angle: 300deg; }
  .card, .card[data-tilt].is-tracking { transform: none !important; }
  .window { transform: rotateX(var(--base-x)) rotateY(var(--base-y)) !important; }
  .device { transform: rotateX(4deg) rotateY(-8deg) translateZ(40px) !important; }
  .reveal-ready [data-reveal]:not(.is-in) { opacity: 1; }
  .pulse::after, .status-dot::after { display: none; }
  .scroll-cue-track i { animation: none; transform: translateY(12px); }
}

@media (forced-colors: active) {
  .hero h1 em { color: CanvasText; background: none; }
  .btn { border: 1px solid ButtonText; }
}

/* Ajustes finos de alinhamento (auditoria de 09/10/2026, medidos em 360 a 1920px e 6 idiomas) */

/* D1 · uma margem interna só nos cards de projeto (celular e tablet) */
.project { --card-pad: clamp(24px, 4vw, 52px); }
@media (max-width: 1023.98px) {
  .project--split .project-visual { padding: 0 var(--card-pad) var(--card-pad); }
  .depth-stage { margin: 0 var(--card-pad) var(--card-pad); }
}

/* D2 · botão do Contato não cabe em telas estreitas */
@media (max-width: 420px) {
  .contact .btn-xl { gap: 10px; padding-inline: 20px; }
  .contact .btn-xl .icon:last-child { display: none; }
}

/* D3 · rodapé dos cards divididos com o mesmo comportamento em todos */
@media (min-width: 1024px) and (max-width: 1335.98px) {
  .project--split .project-foot { flex-direction: column; align-items: flex-start; gap: 16px; }
}

/* D4 · legenda alinhada à quina visível da janela */
@media (min-width: 1024px) {
  .project--split .visual-note { left: 12px; }
  .project--reverse .visual-note { left: auto; right: 12px; }
}

/* D5 · textos dos cards de serviço começam na mesma altura em cada linha */
@media (min-width: 640px) {
  @supports (grid-template-rows: subgrid) {
    .service { display: grid; grid-row: span 3; grid-template-rows: subgrid; row-gap: 12px; align-content: start; }
  }
}

/* D6 · sem palavra sozinha na última linha das listas */
.features li, .cases li { text-wrap: pretty; }

/* D7 · ícone do menu na borda do conteúdo */
.menu-toggle { margin-right: -12px; }

/* D8 · marca d'água do rodapé centrada */
.footer-mark { padding-right: .07em; }

/* D8 · linha de base da intro igual à do h2 nos cabeçalhos de seção */
@media (min-width: 900px) {
  .section-intro { padding-bottom: 0; }
}

/* D5 · cards divididos: texto centrado na altura do card (sem buraco entre a lista e o rodapé) */
@media (min-width: 1024px) {
  .project--split .project-copy { justify-content: center; }
  .project--split .project-foot { margin-top: 0; }
}

/* Briefing (09/10/2026): link "Preencher briefing" nos cards Sites, Launch e Depth
   e segundo botão no Contato. Os dois levam ao formulário em /briefing/. */

/* Cards: chamada principal em cima e o link do briefing logo abaixo, mais discreto */
/* baseline: o texto das etiquetas fica na linha do "Quero um projeto assim" (em coluna vira início) */
.project-foot:has(> .project-actions) { align-items: baseline; }
.project-actions {
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  gap: 2px;
  min-width: 0;
}
.project-brief {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  max-width: 100%;
  padding: 5px 0;
  font-size: 14px;
  font-weight: 450;
  line-height: 1.35;
  color: var(--muted);
  transition: color .2s;
}
.project-brief .icon { width: 15px; height: 15px; flex: none; transition: color .2s; }
.project-brief span {
  min-width: 0;
  text-wrap: balance;
  background: linear-gradient(currentColor, currentColor) 0 100% / 0 1px no-repeat;
  transition: background-size .35s var(--ease-out);
}
.project-brief:hover { color: var(--text); }
.project-brief:hover .icon { color: var(--accent-ink); }
.project-brief:hover span { background-size: 100% 1px; }
/* rodapé em coluna (celular, cards divididos entre 1024 e 1335, cards empilhados estreitos): tudo à esquerda */
@media (max-width: 767.98px) {
  .project-actions { align-items: flex-start; }
}
@media (min-width: 1024px) and (max-width: 1335.98px) {
  .project--split .project-actions { align-items: flex-start; }
}
@container foot (max-width: 459.98px) {
  .project--stacked .project-actions { align-items: flex-start; }
}

/* Contato: WhatsApp e briefing um embaixo do outro, com a mesma largura; lado a lado a partir de 1024px
   (onde cabem nos 6 idiomas); largura total no celular */
.contact-buttons {
  align-self: stretch;
  display: grid;
  grid-template-columns: minmax(0, max-content);
  justify-content: center;
  gap: 14px;
}
@media (min-width: 1024px) {
  .contact-buttons { grid-template-columns: repeat(2, minmax(0, max-content)); }
}
@media (max-width: 420px) {
  .contact-buttons { grid-template-columns: minmax(0, 1fr); }
}
/* rótulo longo nos outros idiomas ("... (in Portuguese)") quebra entre palavras, sem vazar */
.contact-buttons .btn-ghost {
  height: auto;
  min-height: 60px;
  padding-block: 14px;
  white-space: normal;
  line-height: 1.25;
  text-align: center;
}
.contact-buttons .btn-ghost span { text-wrap: balance; }
@media (max-width: 420px) {
  .contact-buttons .btn-ghost { min-height: 56px; padding-block: 12px; }
}
