/* =========================================================
   UNAM Technology | site institucional
   Pensado primeiro para celular e tablet.
   Paleta da marca: laranja tech, azul digital, azul escuro.
   ========================================================= */

:root {
  color-scheme: dark;
  --navy-900: #040b17;
  --navy-800: #071b33;
  --navy-700: #0b2744;
  --navy-600: #12365c;
  --orange: #ff6b1a;
  --orange-2: #ff8a3d;
  --blue: #1fb0ff;
  --blue-2: #0a84ff;
  --paper: #f3f0ea;
  --light: #f5f5f7;
  --white: #ffffff;
  --ink: #0b1a2c;
  --muted-d: #8fa6bc;      /* texto secundário no escuro */
  --muted-l: #5b6b7c;      /* texto secundário no claro */
  --line-d: rgba(143, 196, 255, .16);
  --line-l: #dde3ea;

  --font: "Inter", -apple-system, BlinkMacSystemFont, "SF Pro Display", "Segoe UI", Roboto, Arial, sans-serif;
  --gutter: 20px;
  --radius: 28px;
  --radius-sm: 18px;
  --nav-h: 52px;
  --ease: cubic-bezier(.22, .61, .36, 1);
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-padding-top: var(--nav-h); }
body {
  margin: 0;
  font-family: var(--font);
  font-size: 17px;
  line-height: 1.47;
  color: var(--ink);
  background: var(--navy-900);
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}
img { max-width: 100%; height: auto; display: block; }
a { color: inherit; text-decoration: none; }
button { font: inherit; color: inherit; cursor: pointer; border: 0; background: none; }
h1, h2, h3, h4 { margin: 0; font-weight: 700; letter-spacing: -.025em; }
p { margin: 0; }
[hidden] { display: none !important; }
:focus-visible { outline: 3px solid var(--orange); outline-offset: 3px; border-radius: 6px; }

.skip {
  position: fixed; left: 12px; top: -80px; z-index: 100;
  background: var(--orange); color: #111; padding: 10px 16px; border-radius: 999px; font-weight: 600;
}
.skip:focus { top: 12px; }

.wrap { width: 100%; max-width: 1080px; margin: 0 auto; padding: 0 var(--gutter); }
.wrap--narrow { max-width: 760px; }

/* ---------- Tipografia comum ---------- */
.eyebrow {
  font-size: 13px; font-weight: 600; letter-spacing: .14em; text-transform: uppercase;
  color: var(--orange); margin-bottom: 14px;
}
.grad {
  background: linear-gradient(92deg, var(--blue) 0%, #7cd4ff 45%, var(--orange-2) 100%);
  -webkit-background-clip: text; background-clip: text; color: transparent;
}
.muted { color: var(--muted-d); }
.head--light .muted, .section--paper .muted { color: var(--muted-l); }
.lead { font-size: 19px; line-height: 1.5; color: var(--muted-d); }

.head { text-align: center; margin-bottom: 40px; }
.head h2 { font-size: clamp(34px, 8.6vw, 64px); line-height: 1.06; }
.section { padding: 96px 0; }
.section--dark { background: var(--navy-900); color: var(--white); }
.section--paper { background: var(--paper); }

/* ---------- Botões e links ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  min-height: 48px; padding: 0 24px; border-radius: 999px;
  font-size: 17px; font-weight: 600; letter-spacing: -.01em;
  transition: transform .2s var(--ease), background .2s, box-shadow .2s;
}
.btn:active { transform: scale(.97); }
.btn--orange { background: var(--orange); color: #1a0d04; box-shadow: 0 8px 28px rgba(255, 107, 26, .35); }
.btn--orange:hover { background: var(--orange-2); }
.btn--blue { background: var(--blue-2); color: #fff; }
.btn--blue:hover { background: #2b95ff; }
.btn--ghost { border: 1.5px solid currentColor; }
.btn--sm { min-height: 34px; padding: 0 14px; font-size: 14px; }

.link {
  display: inline-flex; align-items: center; gap: 4px; min-height: 44px;
  color: var(--blue); font-weight: 500; font-size: 17px;
}
.link:hover { text-decoration: underline; }
.link span { font-size: 22px; line-height: 1; transform: translateY(-1px); }
.section--paper .link, .tile--light .link, .softwares .link, .faq .link { color: var(--blue-2); }

/* =========================================================
   NAVEGAÇÃO
   ========================================================= */
.nav { position: fixed; inset: 0 0 auto; z-index: 50; padding-top: env(safe-area-inset-top, 0px); }
/* o desfoque fica num pseudo-elemento para não prender o menu fixo dentro da barra */
.nav::before {
  content: ""; position: absolute; inset: 0 0 auto; height: calc(var(--nav-h) + env(safe-area-inset-top, 0px)); z-index: -1;
  background: rgba(4, 11, 23, .72);
  -webkit-backdrop-filter: saturate(180%) blur(20px);
  backdrop-filter: saturate(180%) blur(20px);
  border-bottom: 1px solid rgba(255, 255, 255, .06);
}
.nav__bar {
  height: var(--nav-h); max-width: 1080px; margin: 0 auto; padding: 0 var(--gutter);
  display: flex; align-items: center; gap: 16px;
}
.nav__logo img { height: 26px; width: auto; }
.nav__links { display: none; margin: 0 auto 0 24px; gap: 4px; }
.nav__links a { font-size: 13px; color: #d6e2ee; padding: 8px 12px; border-radius: 999px; transition: color .2s, background .2s; }
.nav__links a:hover, .nav__links a[aria-current="true"] { color: #fff; background: rgba(255, 255, 255, .08); }
.nav__cta { display: none; }
.nav__toggle {
  width: 44px; height: 44px; position: relative;
}
.nav__toggle span {
  position: absolute; left: 13px; width: 18px; height: 1.6px; background: #fff; border-radius: 2px;
  transition: transform .35s var(--ease), top .35s var(--ease);
}
.nav__toggle span:first-child { top: 18px; }
.nav__toggle span:last-child { top: 25px; }
.nav__toggle[aria-expanded="true"] span:first-child { top: 21.5px; transform: rotate(45deg); }
.nav__toggle[aria-expanded="true"] span:last-child { top: 21.5px; transform: rotate(-45deg); }

.menu {
  position: fixed; inset: calc(var(--nav-h) + env(safe-area-inset-top, 0px)) 0 0; background: rgba(4, 11, 23, .97);
  padding: 24px var(--gutter) 40px; overflow-y: auto;
}
.menu nav { display: flex; flex-direction: column; max-width: 680px; margin: 0 auto; }
.menu a {
  font-size: 30px; font-weight: 700; letter-spacing: -.02em; color: #e8eef5; padding: 10px 0;
  opacity: 0; transform: translateY(-8px);
}
.menu.is-open a { animation: menuIn .5s var(--ease) forwards; }
.menu.is-open a:nth-child(2) { animation-delay: .04s; }
.menu.is-open a:nth-child(3) { animation-delay: .08s; }
.menu.is-open a:nth-child(4) { animation-delay: .12s; }
.menu.is-open a:nth-child(5) { animation-delay: .16s; }
.menu.is-open a:nth-child(6) { animation-delay: .20s; }
.menu.is-open a:nth-child(7) { animation-delay: .24s; }
.menu .menu__cta { color: var(--orange); }
@keyframes menuIn { to { opacity: 1; transform: none; } }
body.menu-open { overflow: hidden; }


/* ---------- Botão de idioma ---------- */
.lang { position: relative; margin-left: auto; }
.lang__btn {
  display: inline-flex; align-items: center; gap: 6px; min-height: 36px; padding: 0 10px; border-radius: 999px;
  font-size: 13px; font-weight: 600; letter-spacing: .04em; color: #dbe7f2;
  border: 1px solid rgba(255, 255, 255, .16); transition: background .2s, border-color .2s;
}
.lang__btn:hover, .lang__btn[aria-expanded="true"] { background: rgba(255, 255, 255, .08); border-color: rgba(255, 255, 255, .3); }
.lang__btn svg { width: 16px; height: 16px; fill: none; stroke: currentColor; stroke-width: 1.6; }
.lang__list {
  position: absolute; right: 0; top: calc(100% + 8px); z-index: 60; list-style: none; margin: 0; padding: 6px; min-width: 168px;
  background: rgba(11, 30, 52, .98); border: 1px solid rgba(143, 196, 255, .2); border-radius: 16px;
  box-shadow: 0 18px 40px rgba(0, 0, 0, .45);
}
.lang__list button {
  display: flex; align-items: center; justify-content: space-between; width: 100%; min-height: 44px; padding: 0 12px;
  border-radius: 10px; font-size: 15px; color: #e6eef6; text-align: left;
}
.lang__list button:hover { background: rgba(255, 255, 255, .07); }
.lang__list button[aria-current="true"] { color: var(--orange); }
.lang__list button[aria-current="true"]::after { content: "✓"; font-size: 14px; }
.nav__toggle { margin-left: 4px !important; }

/* =========================================================
   HERO com rolagem guiada
   --p vai de 0 a 1 enquanto o hero está preso na tela
   ========================================================= */
.hero { position: relative; height: 200vh; height: 200svh; background: var(--navy-900); color: #fff; --p: 0; }
.hero__sticky {
  position: sticky; top: 0; height: 100vh; height: 100svh; overflow: hidden;
  display: flex; flex-direction: column; justify-content: flex-end;
  padding: calc(var(--nav-h) + 8px) var(--gutter) 84px;
}
.hero__bg { position: absolute; inset: 0; }
.hero__glow {
  position: absolute; inset: -20%;
  background:
    radial-gradient(40% 35% at 50% 34%, rgba(31, 176, 255, .35), transparent 70%),
    radial-gradient(30% 25% at 70% 60%, rgba(255, 107, 26, .18), transparent 70%);
  transform: scale(calc(1 + var(--p) * .4));
}
.hero__grid {
  position: absolute; inset: 0; opacity: .35;
  background-image: linear-gradient(rgba(143, 196, 255, .08) 1px, transparent 1px), linear-gradient(90deg, rgba(143, 196, 255, .08) 1px, transparent 1px);
  background-size: 44px 44px;
  -webkit-mask-image: radial-gradient(70% 55% at 50% 40%, #000, transparent);
  mask-image: radial-gradient(70% 55% at 50% 40%, #000, transparent);
}

/* Celular e tablet: NEX e ZIG em cima, texto embaixo, sem sobreposição.
   O palco ocupa o espaço que sobra acima do texto e o quadrado se ajusta a ele. */
.hero__stage {
  position: relative; flex: 1 1 0; min-height: 160px; width: 100%;
  container-type: size;
  transform: translateY(calc(var(--p) * -8vh)) scale(calc(1 + var(--p) * .12));
  opacity: calc(1 - var(--p) * 1.1);
}
.hero__sq {
  position: absolute; left: 50%; bottom: 0;
  width: min(100cqw, 116cqh, 620px); aspect-ratio: 1.16;
  transform: translateX(-50%);
}
.hero__sq .hero__img { left: 0; top: 0; width: 100%; }
.hero__sq .chip--a { left: 0; top: 30%; }
.hero__sq .chip--b { right: 0; top: 4%; left: auto; }
.hero__sq .chip--c { right: 0; top: 66%; }
.hero__sq .chip--d { left: 0; top: 80%; }
.hero__img {
  position: absolute; left: 8%; top: 9%; width: 84%;
  -webkit-mask-image: radial-gradient(closest-side, #000 62%, transparent 100%);
  mask-image: radial-gradient(closest-side, #000 62%, transparent 100%);
  animation: float 7s ease-in-out infinite;
}
@keyframes float { 50% { transform: translateY(-10px); } }

.orbit {
  position: absolute; inset: 0; border-radius: 50%;
  border: 1px solid rgba(31, 176, 255, .28);
  transform: rotateX(68deg) rotateZ(0deg);
  animation: spin 22s linear infinite;
}
.orbit--1 { inset: 4%; }
.orbit--2 { inset: 14%; border-color: rgba(255, 107, 26, .3); animation-duration: 30s; animation-direction: reverse; }
.orbit--3 { inset: -6%; border-color: rgba(31, 176, 255, .14); animation-duration: 40s; }
.orbit i {
  position: absolute; top: -4px; left: 50%; width: 8px; height: 8px; margin-left: -4px; border-radius: 50%;
  background: var(--blue); box-shadow: 0 0 14px 3px rgba(31, 176, 255, .8);
}
.orbit--2 i { background: var(--orange); box-shadow: 0 0 14px 3px rgba(255, 107, 26, .8); }
.orbit--2 i + i { top: auto; bottom: -4px; }
@keyframes spin { to { transform: rotateX(68deg) rotateZ(360deg); } }

.chip {
  position: absolute; font-size: 12px; font-weight: 600; letter-spacing: .02em;
  padding: 7px 12px; border-radius: 999px; color: #dff3ff;
  background: rgba(11, 39, 68, .72); border: 1px solid rgba(31, 176, 255, .35);
  -webkit-backdrop-filter: blur(8px); backdrop-filter: blur(8px);
  animation: bob 6s ease-in-out infinite;
}
.chip::before { content: ""; display: inline-block; width: 6px; height: 6px; border-radius: 50%; background: var(--orange); margin-right: 7px; vertical-align: 1px; }
.chip--a { left: 6%; top: 22%; }
.chip--b { right: 5%; top: 16%; animation-delay: -1.5s; }
.chip--c { right: 2%; top: 58%; animation-delay: -3s; }
.chip--d { left: 3%; top: 54%; animation-delay: -4.5s; }
@keyframes bob { 50% { transform: translateY(-8px); } }

.hero__copy {
  position: relative; flex: none; text-align: center; max-width: 720px; margin: 0 auto;
  transform: translateY(calc(var(--p) * -40px));
  opacity: calc(1 - var(--p) * 1.6);
}
.hero h1 { font-size: clamp(34px, min(10.5vw, 6.4svh), 72px); line-height: 1.03; letter-spacing: -.035em; }
.hero__sub { margin: 14px auto 0; max-width: 520px; font-size: clamp(16px, 2.2svh, 18px); color: #b9c9da; }
.hero__ctas { margin-top: 22px; display: flex; flex-wrap: wrap; gap: 8px 22px; justify-content: center; align-items: center; }

.hero__cue {
  position: absolute; left: 50%; bottom: 18px; transform: translateX(-50%);
  display: flex; flex-direction: column; align-items: center; gap: 8px;
  font-size: 11px; letter-spacing: .14em; text-transform: uppercase; color: var(--muted-d);
  opacity: calc(1 - var(--p) * 4);
}
.hero__cue i { width: 1px; height: 26px; background: linear-gradient(var(--blue), transparent); animation: cue 1.8s ease-in-out infinite; transform-origin: top; }
@keyframes cue { 0% { transform: scaleY(0); } 50% { transform: scaleY(1); } 100% { transform: scaleY(1); opacity: 0; } }

/* =========================================================
   MANIFESTO: palavras acendem com a rolagem
   ========================================================= */
.manifesto { height: 180vh; background: var(--navy-900); }
.manifesto__sticky {
  position: sticky; top: 0; height: 100vh; height: 100svh;
  display: flex; align-items: center; padding: 0 var(--gutter);
}
.manifesto__text {
  max-width: 900px; margin: 0 auto;
  font-size: clamp(30px, 8vw, 60px); font-weight: 700; line-height: 1.12; letter-spacing: -.03em; color: #fff;
}
.manifesto__text .w { opacity: .14; transition: opacity .25s linear, color .25s; }
.manifesto__text .w.on { opacity: 1; }
.manifesto__text .w.hl.on { color: var(--orange); }

/* =========================================================
   ATLAS
   ========================================================= */
.atlas { padding-top: 40px; overflow: hidden; }
.seg {
  position: relative; display: grid; grid-template-columns: 1fr 1fr;
  width: min(100%, 360px); margin: 0 auto 28px; padding: 4px;
  background: rgba(255, 255, 255, .07); border-radius: 999px;
}
.seg__btn {
  position: relative; z-index: 1; min-height: 40px; border-radius: 999px;
  font-size: 15px; font-weight: 600; color: #b9c9da; transition: color .3s;
}
.seg__btn[aria-pressed="true"] { color: #fff; }
.seg__thumb {
  position: absolute; top: 4px; bottom: 4px; left: 4px; width: calc(50% - 4px);
  background: var(--navy-600); border-radius: 999px; box-shadow: 0 2px 10px rgba(0, 0, 0, .35);
  transition: transform .4s var(--ease);
}
.seg[data-active="1"] .seg__thumb { transform: translateX(100%); }

.atlas__map {
  position: relative; width: min(100%, 520px); aspect-ratio: 1; margin: 0 auto;
}
.atlas__ring { position: absolute; border-radius: 50%; border: 1px dashed rgba(31, 176, 255, .3); animation: spin2 60s linear infinite; }
.atlas__ring--outer { inset: 12%; }
.atlas__ring--inner { inset: 30%; border-style: solid; border-color: rgba(255, 107, 26, .25); animation-duration: 40s; animation-direction: reverse; }
.atlas__ring i { position: absolute; top: -4px; left: 50%; width: 8px; height: 8px; border-radius: 50%; background: var(--blue); box-shadow: 0 0 12px 2px rgba(31, 176, 255, .7); }
.atlas__ring--inner i { background: var(--orange); box-shadow: 0 0 12px 2px rgba(255, 107, 26, .7); }
@keyframes spin2 { to { transform: rotate(360deg); } }

.atlas__core {
  position: absolute; left: 50%; top: 50%; width: 36%; aspect-ratio: 1; transform: translate(-50%, -50%);
  border-radius: 50%; overflow: hidden;
  background: radial-gradient(circle at 50% 35%, var(--navy-600), var(--navy-800));
  border: 1px solid rgba(31, 176, 255, .45);
  box-shadow: 0 0 0 10px rgba(31, 176, 255, .06), 0 0 60px rgba(31, 176, 255, .25);
}
.atlas__core img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; object-position: 50% 20%; opacity: .55; }
.atlas__core span {
  position: absolute; inset: auto 0 14%; text-align: center; font-size: 11px; letter-spacing: .12em; text-transform: uppercase; color: #dff3ff;
  text-shadow: 0 1px 8px #000;
}
.atlas__core b { font-size: 15px; letter-spacing: .04em; }

.node {
  position: absolute; transform: translate(-50%, -50%);
  display: inline-flex; align-items: center; gap: 7px; white-space: nowrap;
  min-height: 40px; padding: 0 14px; border-radius: 999px;
  font-size: 13px; font-weight: 600; color: #e6f2fc;
  background: rgba(11, 39, 68, .85); border: 1px solid rgba(31, 176, 255, .35);
  transition: background .25s, border-color .25s, transform .25s var(--ease), box-shadow .25s;
}
.node::before { content: ""; width: 7px; height: 7px; border-radius: 50%; background: var(--blue); box-shadow: 0 0 8px var(--blue); transition: background .25s; }
.node:hover { border-color: var(--blue); }
.node[aria-pressed="true"] {
  background: var(--orange); border-color: var(--orange); color: #1a0d04;
  box-shadow: 0 0 0 6px rgba(255, 107, 26, .18), 0 10px 30px rgba(255, 107, 26, .35);
  transform: translate(-50%, -50%) scale(1.06);
}
.node[aria-pressed="true"]::before { background: #1a0d04; box-shadow: none; }
.node.is-rel { border-color: var(--orange); }

.atlas__panel {
  margin: 24px auto 0; max-width: 760px;
  background: linear-gradient(180deg, var(--navy-700), var(--navy-800));
  border: 1px solid var(--line-d); border-radius: var(--radius); padding: 26px 22px;
}
.atlas__panel.swap { animation: swap .45s var(--ease); }
@keyframes swap { from { opacity: 0; transform: translateY(10px); } }
.atlas__panel .kicker { font-size: 12px; letter-spacing: .14em; text-transform: uppercase; color: var(--blue); font-weight: 600; }
.atlas__panel h3 { font-size: 28px; margin: 6px 0 10px; }
.atlas__panel > p { color: #b9c9da; }
.rel-title { margin: 22px 0 10px; font-size: 13px; font-weight: 600; letter-spacing: .08em; text-transform: uppercase; color: var(--muted-d); }
.rels { display: grid; gap: 10px; }
.rel { padding: 16px; border-radius: var(--radius-sm); background: rgba(255, 255, 255, .04); border: 1px solid var(--line-d); }
.rel b { display: block; color: #fff; margin-bottom: 4px; }
.rel p { font-size: 15px; color: #a9bccf; }
.rel-chips { display: flex; flex-wrap: wrap; gap: 8px; }
.rel-chip {
  min-height: 40px; padding: 0 14px; border-radius: 999px; font-size: 14px; font-weight: 600;
  color: #fff; border: 1px solid var(--line-d); background: rgba(255, 255, 255, .05);
}
.rel-chip:hover { border-color: var(--orange); }
.atlas__panel .panel__cta { margin-top: 22px; display: flex; flex-wrap: wrap; gap: 6px 20px; align-items: center; }

.tip {
  display: flex; align-items: center; gap: 14px; max-width: 760px; margin: 18px auto 0;
  padding: 14px 18px 14px 14px; border-radius: var(--radius-sm);
  background: rgba(31, 176, 255, .08); border: 1px solid rgba(31, 176, 255, .22);
}
.tip img { width: 56px; height: 56px; border-radius: 14px; object-fit: cover; object-position: 50% 15%; flex-shrink: 0; }
.tip p { font-size: 15px; color: #cfe2f3; }
.tip b { display: block; font-size: 12px; letter-spacing: .12em; color: var(--blue); }

/* =========================================================
   SOLUÇÕES: vitrine em blocos
   ========================================================= */
.solucoes { background: var(--light); padding: 96px 0 12px; }
.solucoes .head h2 { color: var(--ink); }
.tiles { display: grid; gap: 12px; padding: 0 12px; max-width: 1240px; margin: 0 auto; }
.tile {
  position: relative; overflow: hidden; border-radius: var(--radius);
  display: flex; flex-direction: column; text-align: center;
  padding: 44px 22px 0;
}
.tile--dark { background: #000; color: #fff; }
.tile--dark.tile--hero { background: radial-gradient(120% 80% at 50% 100%, #0d3b66 0%, #040b17 60%); }
.tile--light { background: #fff; color: var(--ink); }
.tile__kicker { font-size: 15px; font-weight: 600; color: var(--orange); margin-bottom: 6px; }
.tile h3 { font-size: clamp(28px, 7.4vw, 44px); line-height: 1.08; max-width: 560px; margin: 0 auto; }
.tile__copy > p:not(.tile__kicker) { margin: 10px auto 0; max-width: 460px; font-size: 17px; color: var(--muted-l); }
.tile--dark .tile__copy > p:not(.tile__kicker) { color: #a9bccf; }
.tile__links { margin-top: 18px; display: flex; flex-wrap: wrap; gap: 6px 20px; justify-content: center; align-items: center; }
.tile__links .btn { min-height: 40px; padding: 0 18px; font-size: 15px; }
.tile__links .link { font-size: 15px; }
.tile__media { margin-top: auto; padding-top: 28px; display: flex; justify-content: center; align-items: flex-end; }
.tile__media img {
  width: min(100%, 520px); border-radius: 22px 22px 0 0;
  transform: translateY(calc((1 - var(--v, 1)) * 40px)) scale(calc(.94 + var(--v, 1) * .06));
  transition: transform .1s linear;
}
.tile--light .tile__media img { box-shadow: 0 -10px 40px rgba(11, 26, 44, .12); }
.tile--dark .tile__media img { box-shadow: 0 -10px 60px rgba(31, 176, 255, .18); }

.tile__media--shield { min-height: 260px; align-items: center; padding-bottom: 40px; }
.shield { position: relative; width: 150px; }
.shield svg { width: 100%; overflow: visible; }
.shield path { fill: none; stroke: var(--blue); stroke-width: 3; filter: drop-shadow(0 0 10px rgba(31, 176, 255, .8)); }
.shield .shield__u { stroke: var(--orange); stroke-width: 7; stroke-linecap: round; filter: drop-shadow(0 0 10px rgba(255, 107, 26, .8)); }
.pulse { position: absolute; left: 50%; top: 50%; width: 200px; height: 200px; margin: -100px 0 0 -100px; border-radius: 50%; border: 1px solid rgba(31, 176, 255, .5); animation: pulse 3.2s ease-out infinite; }
.pulse--2 { animation-delay: 1.6s; }
@keyframes pulse { from { transform: scale(.5); opacity: 1; } to { transform: scale(1.5); opacity: 0; } }

/* =========================================================
   IA EMPRESARIAL
   ========================================================= */
.ia { background: radial-gradient(90% 60% at 50% 0%, #0d2f52 0%, var(--navy-900) 70%); }
.ia__grid { display: grid; gap: 40px; align-items: center; }
.ia__visual img {
  width: 100%; border-radius: var(--radius);
  box-shadow: 0 30px 80px rgba(31, 176, 255, .25), 0 0 0 1px var(--line-d);
}
.ia__copy { text-align: center; }
.ia h2 { font-size: clamp(36px, 9vw, 60px); line-height: 1.05; margin-bottom: 18px; }
.squad { list-style: none; padding: 0; margin: 26px 0 18px; display: grid; grid-template-columns: 1fr 1fr; gap: 10px; text-align: left; }
.squad li {
  display: flex; align-items: center; gap: 10px; padding: 14px; border-radius: 16px;
  background: rgba(255, 255, 255, .05); border: 1px solid var(--line-d); font-weight: 600; font-size: 15px;
}
.squad b { font-weight: 600; }
.squad span { font-size: 11px; color: var(--orange); font-variant-numeric: tabular-nums; }
.fine { font-size: 13px; color: var(--muted-d); margin-bottom: 26px; }

/* =========================================================
   SOFTWARES
   ========================================================= */
.softwares { background: var(--light); }
.softwares .head h2 { color: var(--ink); }
.apps { display: grid; gap: 14px; }
.app { background: #fff; border-radius: var(--radius); padding: 32px 24px 24px; }
.app__icon {
  width: 64px; height: 64px; border-radius: 16px; display: grid; place-items: center; margin-bottom: 18px;
  font-size: 30px; font-weight: 800; color: #fff;
}
.app__icon--field { background: linear-gradient(140deg, var(--orange-2), #e2510a); box-shadow: 0 10px 24px rgba(255, 107, 26, .35); }
.app__icon--tes { background: linear-gradient(140deg, #3dbbff, var(--blue-2)); box-shadow: 0 10px 24px rgba(10, 132, 255, .35); }
.app__tag { font-size: 13px; font-weight: 600; letter-spacing: .1em; text-transform: uppercase; color: var(--muted-l); }
.app h3 { font-size: 34px; margin: 4px 0 8px; }
.app > p { color: var(--muted-l); }
.app__list { list-style: none; padding: 0; margin: 18px 0 8px; border-top: 1px solid var(--line-l); }
.app__list li { padding: 12px 0 12px 26px; border-bottom: 1px solid var(--line-l); position: relative; font-size: 16px; }
.app__list li::before { content: ""; position: absolute; left: 4px; top: 19px; width: 8px; height: 8px; border-radius: 50%; background: var(--orange); }

/* =========================================================
   COMO FUNCIONA
   ========================================================= */
.steps { list-style: none; padding: 0; margin: 0; display: grid; gap: 12px; counter-reset: s; }
.step { background: #fff; border-radius: var(--radius); padding: 28px 24px; position: relative; overflow: hidden; }
.step__n {
  display: grid; place-items: center; width: 44px; height: 44px; border-radius: 50%;
  background: var(--navy-800); color: #fff; font-weight: 700; margin-bottom: 16px;
}
.step:nth-child(2) .step__n { background: var(--blue-2); }
.step:nth-child(3) .step__n { background: var(--orange); color: #1a0d04; }
.step h3 { font-size: 24px; margin-bottom: 6px; }
.step p { color: var(--muted-l); }

/* =========================================================
   GUIAS
   ========================================================= */
.guide__intro { display: flex; gap: 18px; align-items: center; max-width: 760px; margin: 0 auto 28px; }
.guide__intro img { width: 120px; height: 150px; object-fit: cover; object-position: 50% 20%; border-radius: 24px; flex-shrink: 0; box-shadow: 0 0 0 1px var(--line-d), 0 20px 40px rgba(31, 176, 255, .2); }
.guide__intro h3 { font-size: 30px; }
.guide__intro small { display: block; font-size: 13px; letter-spacing: .12em; text-transform: uppercase; color: var(--orange); font-weight: 600; margin-top: 2px; }
.guide__intro p { margin-top: 8px; color: #b9c9da; font-size: 16px; }
.guide.swap { animation: swap .45s var(--ease); }

.faces {
  list-style: none; margin: 0 calc(var(--gutter) * -1); padding: 6px var(--gutter) 18px;
  display: flex; gap: 12px; overflow-x: auto; scroll-snap-type: x mandatory; scrollbar-width: none;
  -webkit-overflow-scrolling: touch;
}
.faces::-webkit-scrollbar { display: none; }
.faces li { flex: 0 0 44%; max-width: 210px; scroll-snap-align: start; text-align: center; }
.faces img {
  width: 100%; aspect-ratio: 4 / 5; object-fit: cover; object-position: 50% 15%; border-radius: 22px;
  box-shadow: 0 0 0 1px var(--line-d); transition: transform .3s var(--ease);
}
.faces li:hover img { transform: translateY(-4px); }
.faces span { display: block; margin-top: 10px; font-size: 14px; font-weight: 600; color: #cfe2f3; }

/* =========================================================
   PERGUNTAS
   ========================================================= */
.faq { background: var(--light); }
.faq .head h2 { color: var(--ink); }
.faq__list { border-top: 1px solid var(--line-l); }
.faq details { border-bottom: 1px solid var(--line-l); }
.faq summary {
  list-style: none; cursor: pointer; padding: 22px 40px 22px 0; position: relative;
  font-size: 19px; font-weight: 600; letter-spacing: -.01em;
}
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after {
  content: "+"; position: absolute; right: 4px; top: 50%; transform: translateY(-50%);
  font-size: 28px; font-weight: 300; color: var(--blue-2); transition: transform .3s var(--ease);
}
.faq details[open] summary::after { transform: translateY(-50%) rotate(45deg); }
.faq details p { padding: 0 0 22px; color: var(--muted-l); }

/* =========================================================
   CTA FINAL
   ========================================================= */
.cta { position: relative; overflow: hidden; background: radial-gradient(80% 50% at 50% 100%, #0d3b66, var(--navy-900) 70%); color: #fff; text-align: center; padding: 120px 0 0; }
.cta__inner { position: relative; z-index: 1; }
.cta__art { position: relative; margin: 40px auto 0; width: min(100%, 620px); }
.cta__art img {
  width: 100%;
  -webkit-mask-image: radial-gradient(closest-side at 50% 55%, #000 55%, transparent 100%);
  mask-image: radial-gradient(closest-side at 50% 55%, #000 55%, transparent 100%);
}
.cta h2 { font-size: clamp(42px, 11vw, 80px); line-height: 1.02; margin-bottom: 18px; }
.cta .lead { max-width: 520px; margin: 0 auto; color: #c3d3e3; }
.cta__topic {
  display: inline-block; margin-top: 18px; padding: 8px 16px; border-radius: 999px;
  background: rgba(255, 107, 26, .14); border: 1px solid rgba(255, 107, 26, .4); color: #ffd2b8; font-size: 14px; font-weight: 600;
}
.cta__actions { margin-top: 30px; display: flex; flex-direction: column; gap: 12px; align-items: center; }
.cta__actions .btn { width: min(100%, 320px); }
.cta__note { font-size: 15px; color: #c3d3e3; user-select: all; -webkit-user-select: all; }

/* =========================================================
   RODAPÉ
   ========================================================= */
.footer { background: #02070f; color: #8fa6bc; padding: 56px 0 calc(40px + env(safe-area-inset-bottom)); font-size: 14px; }
.footer__logo { height: 30px; width: auto; }
.footer__top { display: flex; flex-wrap: wrap; gap: 20px; justify-content: space-between; align-items: flex-start; margin-bottom: 32px; }
.footer__tag { margin-top: 10px; }
.footer__lang { display: flex; gap: 6px; }
.footer__lang button { min-width: 44px; min-height: 36px; border-radius: 999px; border: 1px solid rgba(255, 255, 255, .14); font-size: 13px; font-weight: 600; color: #b9c9da; }
.footer__lang button[aria-current="true"] { background: #fff; color: var(--navy-900); border-color: #fff; }
.footer__cols { display: grid; grid-template-columns: 1fr 1fr; gap: 28px 20px; padding: 28px 0; border-top: 1px solid rgba(255, 255, 255, .08); border-bottom: 1px solid rgba(255, 255, 255, .08); }
.footer h4 { font-size: 12px; letter-spacing: .12em; text-transform: uppercase; color: #dbe6f0; margin-bottom: 10px; }
.footer__cols a { display: block; padding: 6px 0; }
.footer__cols a:hover { color: #fff; }
.footer__legal { margin-top: 22px; font-size: 12px; }

/* =========================================================
   FOLHA DE DETALHES (dialog)
   ========================================================= */
.sheet {
  width: 100%; max-width: 100%; max-height: 92vh; margin: auto 0 0; padding: 0; border: 0;
  border-radius: 28px 28px 0 0; background: #fff; color: var(--ink);
}
.sheet[open] { animation: sheetUp .45s var(--ease); }
.sheet::backdrop { background: rgba(2, 7, 15, .6); -webkit-backdrop-filter: blur(6px); backdrop-filter: blur(6px); }
@keyframes sheetUp { from { transform: translateY(40px); opacity: 0; } }
.sheet__inner { padding: 30px 22px calc(30px + env(safe-area-inset-bottom)); position: relative; }
.sheet__close {
  position: absolute; right: 14px; top: 14px; width: 40px; height: 40px; border-radius: 50%;
  background: #eef1f5; color: var(--ink); font-size: 15px;
}
.sheet__img { width: 100%; border-radius: 20px; margin-bottom: 22px; }
.sheet .kicker { font-size: 13px; font-weight: 600; color: var(--orange); letter-spacing: .1em; text-transform: uppercase; }
.sheet h3 { font-size: 30px; margin: 6px 40px 10px 0; line-height: 1.1; }
.sheet p { color: var(--muted-l); }
.sheet ul { list-style: none; padding: 0; margin: 18px 0; display: flex; flex-wrap: wrap; gap: 8px; }
.sheet li { padding: 8px 14px; border-radius: 999px; background: #eef4fb; color: #0b3a66; font-size: 14px; font-weight: 600; }
.sheet .note { margin-top: 4px; padding: 14px 16px; border-radius: 16px; background: #fff4ec; color: #7a3a10; font-size: 15px; }
.sheet .btn { margin-top: 22px; width: 100%; }

/* =========================================================
   REVELAR AO ROLAR
   ========================================================= */
.js .reveal { opacity: 0; transform: translateY(28px); transition: opacity .9s var(--ease), transform .9s var(--ease); }
.js .reveal.in { opacity: 1; transform: none; }

/* =========================================================
   TABLET (a partir de 640px)
   ========================================================= */
@media (min-width: 640px) {
  :root { --gutter: 32px; }
  .section { padding: 120px 0; }
  .tiles { grid-template-columns: 1fr 1fr; padding: 0 16px; gap: 16px; }
  .tile--hero { grid-column: 1 / -1; min-height: 640px; }
  .tile { min-height: 600px; }
  .cta { padding-top: 140px; }
  .tile h3 { font-size: clamp(28px, 4vw, 40px); }
  .tile--hero h3 { font-size: clamp(36px, 6vw, 56px); }
  .apps { grid-template-columns: 1fr 1fr; gap: 16px; }
  .steps { grid-template-columns: repeat(3, 1fr); gap: 16px; }
  .faces li { flex-basis: 26%; }
  .footer__cols { grid-template-columns: repeat(3, 1fr); }
  .atlas__panel { padding: 32px; }
  .rels { grid-template-columns: repeat(3, 1fr); }
  .node { font-size: 14px; }
  .sheet { max-width: 640px; margin: auto; border-radius: 28px; }
  .sheet__inner { padding: 36px; }
  .cta__actions { flex-direction: row; justify-content: center; }
  .cta__actions .btn { width: auto; }
}

/* Tablet deitado e telas maiores */
@media (min-width: 900px) {
  .nav__links { display: flex; }
  .nav__cta { display: inline-flex; }
  .lang { margin-left: 0; }
  .nav__toggle { display: none; }
  .nav__logo img { height: 28px; }
  .menu { display: none !important; }
  .ia__grid { grid-template-columns: 1fr 1fr; gap: 56px; }
  .ia__copy { text-align: left; }
  .squad { grid-template-columns: repeat(3, 1fr); }
  .tiles { grid-template-columns: repeat(2, 1fr); }
  .faces li { flex-basis: 19%; }
}

/* Hero em duas colunas no computador e no celular deitado:
   texto à esquerda, NEX e ZIG à direita */
@media (min-width: 1024px), (min-width: 640px) and (max-height: 560px) and (orientation: landscape) {
  .hero__sticky { justify-content: center; padding-bottom: 40px; }
  .hero__stage {
    position: absolute; flex: none; min-height: 0; container-type: normal;
    left: auto; right: max(1vw, calc((100vw - 1240px) / 2)); top: 50%;
    width: min(48vw, 70svh, 760px); aspect-ratio: 1;
    transform: translateY(calc(-50% + var(--p) * -10vh)) scale(calc(1 + var(--p) * .12));
  }
  .hero__sq { inset: 0; width: auto; transform: none; }
  .hero__sq .hero__img { left: 8%; top: 9%; width: 84%; }
  .hero__sq .chip--a { left: 6%; top: 22%; }
  .hero__sq .chip--b { right: 5%; top: 16%; }
  .hero__sq .chip--c { right: 2%; top: 58%; }
  .hero__sq .chip--d { left: 3%; top: 54%; }
  .hero__copy { margin: 0; width: 100%; max-width: 1240px; align-self: center; text-align: left; padding-right: 52%; }
  .hero h1 { font-size: clamp(32px, min(5.2vw, 9svh), 84px); }
  .hero__sub { margin-left: 0; }
  .hero__ctas { justify-content: flex-start; }
}

@media (min-width: 1024px) {
  .atlas__layout { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 48px; align-items: center; }
  .atlas__layout .atlas__panel { margin-top: 0; }
  .atlas__layout .rels { grid-template-columns: 1fr; }
  .atlas__layout .tip { margin-top: 14px; }
  .head h2 { font-size: clamp(48px, 5vw, 72px); }
  .tiles { gap: 20px; padding: 0 20px; }
  .tile { min-height: 640px; }
  .steps .step { padding: 36px 32px; }
  .faces li { flex-basis: 15%; }
  .guide__intro img { width: 150px; height: 190px; }
}

@media (min-width: 1100px) {
  .tile--hero { flex-direction: row; text-align: left; padding: 0 0 0 64px; align-items: center; }
  .tile--hero .tile__copy { flex: 1; }
  .tile--hero .tile__copy > p, .tile--hero h3 { margin-left: 0; }
  .tile--hero .tile__links { justify-content: flex-start; }
  .tile--hero .tile__media { flex: 1.1; padding: 0; align-self: stretch; align-items: center; }
  .tile--hero .tile__media img { border-radius: 22px; width: 92%; }
}

/* Movimento reduzido: tudo parado e visível */
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation: none !important; transition: none !important; }
  .js .reveal { opacity: 1; transform: none; }
  .hero, .manifesto { height: auto; }
  .hero__sticky, .manifesto__sticky { position: relative; }
  .hero__sticky { min-height: 100svh; }
  .manifesto__sticky { height: auto; padding: 96px var(--gutter); }
  .manifesto__text .w { opacity: 1; }
}
