/* Nexo — site de apresentação. Mesma linguagem do app: grafite frio, filetes de 1px, um único âmbar. */

@font-face {
  font-family: "IBM Plex Sans Variable";
  font-style: normal;
  font-display: swap;
  font-weight: 100 700;
  src: url("assets/fonts/ibm-plex-sans-latin-wght-normal.woff2") format("woff2-variations");
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}

@font-face {
  font-family: "IBM Plex Sans Variable";
  font-style: normal;
  font-display: swap;
  font-weight: 100 700;
  src: url("assets/fonts/ibm-plex-sans-latin-ext-wght-normal.woff2") format("woff2-variations");
  unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF;
}

@font-face {
  font-family: "IBM Plex Mono";
  font-style: normal;
  font-display: swap;
  font-weight: 500;
  src: url("assets/fonts/ibm-plex-mono-latin-500-normal.woff2") format("woff2");
}

@font-face {
  font-family: "IBM Plex Mono";
  font-style: normal;
  font-display: swap;
  font-weight: 600;
  src: url("assets/fonts/ibm-plex-mono-latin-600-normal.woff2") format("woff2");
}

:root {
  --bg: #0e141b;
  --surface: #151d27;
  --surface-2: #1b2531;
  --border: #263241;
  --border-hi: #34445a;
  --text: #e6edf3;
  --text-2: #a3b2c4;
  --text-3: #8999af;
  --amber: #f2a93b;
  --amber-hi: #ffc164;
  --amber-ink: #17120a;
  --teal: #3ec9b6;
  --blue: #5b9cf6;
  --pink: #e470a9;
  --danger: #f0616f;

  --font: "IBM Plex Sans Variable", "Segoe UI Variable", "Segoe UI", system-ui, -apple-system, sans-serif;
  --mono: "IBM Plex Mono", ui-monospace, "Cascadia Code", Consolas, monospace;

  --ease: cubic-bezier(0.22, 1, 0.36, 1);
  --wrap: 1180px;
}

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

html {
  scroll-behavior: smooth;
  scroll-padding-top: 72px;
  -webkit-text-size-adjust: 100%;
  scrollbar-color: var(--border-hi) var(--bg);
}

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

::selection {
  background: rgba(242, 169, 59, 0.34);
  color: var(--text);
}

::-webkit-scrollbar {
  width: 12px;
  height: 12px;
}

::-webkit-scrollbar-track {
  background: var(--bg);
}

::-webkit-scrollbar-thumb {
  border: 3px solid var(--bg);
  border-radius: 8px;
  background: var(--border-hi);
}

img {
  display: block;
  max-width: 100%;
  height: auto;
}

a {
  color: inherit;
  text-decoration-color: var(--border-hi);
  text-underline-offset: 0.22em;
}

a:hover {
  text-decoration-color: var(--amber);
}

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

.mono {
  font-family: var(--mono);
  font-variant-numeric: tabular-nums;
}

.wrap {
  width: min(100% - 48px, var(--wrap));
  margin-inline: auto;
}

.skip {
  position: absolute;
  left: 12px;
  top: -60px;
  z-index: 50;
  padding: 10px 14px;
  border-radius: 8px;
  background: var(--amber);
  color: var(--amber-ink);
  font-weight: 600;
}

.skip:focus {
  top: 12px;
}

/* ───── Barra do topo ───── */

.top {
  position: sticky;
  top: 0;
  z-index: 20;
  border-bottom: 1px solid var(--border);
  background: var(--bg);
}

.top-in {
  display: flex;
  align-items: center;
  gap: 28px;
  height: 64px;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-size: 1.125rem;
  font-weight: 650;
  letter-spacing: -0.01em;
  text-decoration: none;
}

.brand.small {
  font-size: 1rem;
}

.nav {
  display: flex;
  gap: 26px;
  margin-left: auto;
  margin-right: 8px;
}

.nav a {
  color: var(--text-2);
  font-size: 0.9375rem;
  text-decoration: none;
  transition: color 160ms var(--ease);
}

.nav a:hover {
  color: var(--text);
}

/* ───── Botões ───── */

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  min-height: 40px;
  padding: 0 18px;
  border: 1px solid transparent;
  border-radius: 10px;
  font: inherit;
  font-size: 0.9375rem;
  font-weight: 600;
  line-height: 1;
  text-decoration: none;
  cursor: pointer;
  transition: background-color 160ms var(--ease), border-color 160ms var(--ease), transform 120ms var(--ease);
}

.btn:active {
  transform: scale(0.98);
}

.btn-sm {
  min-height: 36px;
  padding: 0 16px;
}

.btn-lg {
  min-height: 52px;
  padding: 0 26px;
  font-size: 1.0625rem;
}

.btn-amber {
  background: var(--amber);
  color: var(--amber-ink);
}

.btn-amber:hover {
  background: var(--amber-hi);
}

.btn-ghost {
  border-color: var(--border-hi);
  color: var(--text);
}

.btn-ghost:hover {
  border-color: var(--text-3);
  background: var(--surface);
}

.btn-dark {
  flex-direction: column;
  align-items: flex-start;
  gap: 6px;
  min-width: 190px;
  min-height: 72px;
  padding: 14px 22px;
  background: var(--bg);
  color: var(--text);
}

.btn-dark:hover {
  background: #070b10;
}

.btn-dark span {
  font-size: 1.1875rem;
}

.btn-dark small {
  color: var(--amber);
  font-size: 0.8125rem;
  font-weight: 500;
}

/* ───── Primeiro viewport ───── */

.hero {
  padding: clamp(40px, 7vw, 88px) 0 clamp(56px, 8vw, 104px);
  border-bottom: 1px solid var(--border);
}

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

h1,
h2,
h3 {
  margin: 0;
  letter-spacing: -0.03em;
  text-wrap: balance;
}

h1 {
  font-size: clamp(2.4rem, 4.6vw, 4.1rem);
  font-weight: 650;
  line-height: 1.03;
  letter-spacing: -0.035em;
}

.lead {
  max-width: 34rem;
  margin: 24px 0 0;
  color: var(--text-2);
  font-size: 1.1875rem;
  line-height: 1.55;
  text-wrap: pretty;
}

.cta {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 32px;
}

.meta {
  margin: 14px 0 0;
  color: var(--text-3);
  font-family: var(--mono);
  font-size: 0.8125rem;
}

.chips {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin: 26px 0 0;
  padding: 0;
  list-style: none;
}

.chips li {
  padding: 5px 12px;
  border: 1px solid var(--border);
  border-radius: 999px;
  color: var(--text-2);
  font-size: 0.8125rem;
}

/* A cena: dois monitores do PC da mesa e um notebook, com o cursor atravessando a emenda. */

.stage {
  --seam: 61%;
  position: relative;
  width: 100%;
  aspect-ratio: 16 / 9;
  container-type: inline-size;
}

.rig {
  position: absolute;
}

.rig.desk {
  left: 0;
  top: 2%;
  width: 60%;
}

.rig.book {
  right: 0;
  top: 22%;
  width: 38%;
}

.screen {
  position: relative;
  overflow: hidden;
  border: 2px solid var(--border-hi);
  border-radius: 12px;
  background: var(--surface);
  aspect-ratio: 16 / 9;
}

.rig.book .screen {
  aspect-ratio: 16 / 10;
  border-radius: 10px 10px 4px 4px;
}

.s-teal {
  background: #12262a;
  border-color: rgba(62, 201, 182, 0.55);
}

.s-blue {
  background: #14223a;
  border-color: rgba(91, 156, 246, 0.55);
}

.label {
  position: absolute;
  left: 4%;
  top: 6%;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 3px 9px;
  border-radius: 999px;
  background: rgba(14, 20, 27, 0.7);
  color: var(--text);
  font-size: clamp(0.5625rem, 1.5cqi, 0.8125rem);
  font-weight: 600;
  white-space: nowrap;
}

.label i {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: var(--teal);
}

.s-blue .label i {
  background: var(--blue);
}

.doc {
  position: absolute;
  left: 8%;
  right: 8%;
  top: 28%;
  display: flex;
  flex-direction: column;
  gap: 9%;
}

.doc b {
  display: block;
  width: 34%;
  height: 7px;
  border-radius: 4px;
  background: rgba(230, 237, 243, 0.55);
}

.doc .ln {
  position: relative;
  display: block;
  height: 6px;
  border-radius: 4px;
  background: rgba(230, 237, 243, 0.16);
  text-decoration: none;
}

.doc .ln.short {
  width: 58%;
}

.doc .ln em {
  position: absolute;
  left: -2%;
  top: 50%;
  display: block;
  width: 78%;
  padding: 2px 6px;
  transform: translateY(-50%);
  border-radius: 3px;
  background: rgba(242, 169, 59, 0.28);
  color: var(--text);
  font-family: var(--font);
  font-size: clamp(0.5rem, 1.35cqi, 0.75rem);
  font-style: normal;
  line-height: 1.3;
  white-space: nowrap;
}

.doc .ln.sel,
.doc .ln.pasted {
  height: 14px;
  background: transparent;
}

.foot {
  width: 16%;
  height: clamp(8px, 2.4cqi, 18px);
  margin: 0 auto;
  background: var(--border-hi);
}

.foot::after {
  content: "";
  display: block;
  width: 230%;
  height: 5px;
  margin: clamp(8px, 2.4cqi, 18px) 0 0 -65%;
  border-radius: 3px;
  background: var(--border);
}

.base {
  width: 112%;
  height: clamp(5px, 1.2cqi, 9px);
  margin-left: -6%;
  border-radius: 0 0 10px 10px;
  background: var(--border-hi);
}

/* O cursor: o mesmo ponteiro do logo, claro de um lado da emenda e âmbar do outro. */

.cur-layer {
  position: absolute;
  inset: 0;
  pointer-events: none;
}

.cur-a {
  clip-path: inset(0 calc(100% - var(--seam)) 0 0);
}

.cur-b {
  clip-path: inset(0 0 0 var(--seam));
}

.cur {
  position: absolute;
  width: clamp(18px, 4.6cqi, 34px);
  height: auto;
  left: 80%;
  top: 52%;
  stroke-linejoin: round;
  stroke-width: 30;
  filter: drop-shadow(0 6px 8px rgba(0, 0, 0, 0.45));
}

.cur-a .cur {
  fill: var(--text);
  stroke: var(--text);
}

.cur-b .cur {
  fill: var(--amber);
  stroke: var(--amber);
}

.toast {
  position: absolute;
  left: 50%;
  bottom: 3%;
  margin: 0;
  padding: 9px 16px;
  transform: translateX(-50%);
  border: 1px solid var(--border-hi);
  border-radius: 999px;
  background: var(--surface);
  color: var(--text);
  font-size: clamp(0.6875rem, 1.9cqi, 0.9375rem);
  white-space: nowrap;
}

/* Um laço de 10 s: o cursor atravessa, o texto copiado aparece no outro, e ele volta. */

@media (prefers-reduced-motion: no-preference) {
  .cur {
    animation: cross 10s infinite;
  }

  .toast {
    opacity: 0;
    animation: toast 10s infinite;
  }

  .doc .ln.pasted em {
    opacity: 0;
    animation: pasted 10s infinite;
  }

  .doc .ln.sel em {
    animation: selected 10s infinite;
  }

  @keyframes cross {
    0%,
    8% {
      left: 22%;
      top: 56%;
      animation-timing-function: cubic-bezier(0.65, 0, 0.35, 1);
    }
    36%,
    62% {
      left: 82%;
      top: 50%;
      animation-timing-function: cubic-bezier(0.65, 0, 0.35, 1);
    }
    88%,
    100% {
      left: 22%;
      top: 56%;
    }
  }

  @keyframes toast {
    0%,
    38% {
      opacity: 0;
      transform: translate(-50%, 8px);
    }
    42%,
    64% {
      opacity: 1;
      transform: translate(-50%, 0);
    }
    68%,
    100% {
      opacity: 0;
      transform: translate(-50%, 8px);
    }
  }

  @keyframes pasted {
    0%,
    52% {
      opacity: 0;
    }
    56%,
    86% {
      opacity: 1;
    }
    92%,
    100% {
      opacity: 0;
    }
  }

  @keyframes selected {
    0%,
    10% {
      opacity: 0;
    }
    14%,
    40% {
      opacity: 1;
    }
    46%,
    100% {
      opacity: 0.35;
    }
  }
}

/* ───── Seções ───── */

.sec {
  padding: clamp(64px, 9vw, 120px) 0;
}

.sec-alt {
  border-block: 1px solid var(--border);
  background: var(--surface);
}

h2 {
  max-width: 24ch;
  font-size: clamp(1.875rem, 3.6vw, 3rem);
  font-weight: 650;
  line-height: 1.08;
}

.sub {
  max-width: 44rem;
  margin: 18px 0 0;
  color: var(--text-2);
  text-wrap: pretty;
}

/* Passos ligados por uma linha */

.steps {
  position: relative;
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: clamp(24px, 4vw, 56px);
  margin: 56px 0 0;
  padding: 0;
  list-style: none;
  counter-reset: step;
}

.steps::before {
  content: "";
  position: absolute;
  left: 11px;
  right: 11px;
  top: 11px;
  height: 1.5px;
  background: var(--border-hi);
}

.steps li {
  position: relative;
  padding-top: 44px;
}

.steps li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 0;
  width: 24px;
  height: 24px;
  border: 1.5px solid var(--amber);
  border-radius: 50%;
  background: var(--bg);
}

.steps li::after {
  content: "";
  position: absolute;
  left: 7px;
  top: 7px;
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background: var(--amber);
}

.steps h3 {
  font-size: 1.3125rem;
  font-weight: 600;
  letter-spacing: -0.02em;
}

.steps p {
  margin: 10px 0 0;
  color: var(--text-2);
  text-wrap: pretty;
}

.code {
  display: flex;
  gap: 8px;
  margin-top: 20px;
}

.code span {
  display: grid;
  place-items: center;
  width: 38px;
  height: 46px;
  border: 1px solid rgba(242, 169, 59, 0.45);
  border-radius: 8px;
  background: rgba(242, 169, 59, 0.1);
  color: var(--amber);
  font-size: 1.375rem;
  font-weight: 600;
}

/* Recursos: texto e captura real, alternando os lados */

.feature {
  display: grid;
  grid-template-columns: minmax(0, 5fr) minmax(0, 7fr);
  align-items: center;
  gap: clamp(28px, 5vw, 72px);
  margin-top: clamp(56px, 8vw, 104px);
}

.feature:first-of-type {
  margin-top: 56px;
}

.feature.flip .f-text {
  order: 2;
}

.feature h3 {
  font-size: clamp(1.5rem, 2.6vw, 2.125rem);
  font-weight: 650;
  line-height: 1.12;
}

.f-text p {
  margin: 16px 0 0;
  color: var(--text-2);
  text-wrap: pretty;
}

.dash {
  margin: 20px 0 0;
  padding: 0;
  list-style: none;
}

.dash li {
  position: relative;
  padding: 6px 0 6px 22px;
  color: var(--text-2);
  font-size: 0.9688rem;
}

.dash li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 1.1em;
  width: 10px;
  height: 1.5px;
  background: var(--amber);
}

kbd {
  display: inline-block;
  padding: 1px 7px;
  border: 1px solid var(--border-hi);
  border-radius: 6px;
  background: var(--bg);
  box-shadow: 0 2px 0 var(--border);
  color: var(--text);
  font-family: var(--mono);
  font-size: 0.8125rem;
  font-weight: 500;
}

.shot {
  margin: 0;
}

.shot img {
  border: 1px solid var(--border-hi);
  border-radius: 14px;
  background: var(--bg);
  box-shadow: 0 18px 36px -20px rgba(0, 0, 0, 0.7);
}

.shot figcaption {
  margin-top: 12px;
  color: var(--text-3);
  font-size: 0.8125rem;
}

.extras {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 0;
  margin-top: clamp(56px, 8vw, 104px);
  border-top: 1px solid var(--border-hi);
}

.extras > div {
  padding: 28px clamp(16px, 3vw, 36px) 0 0;
}

.extras > div + div {
  padding-left: clamp(16px, 3vw, 36px);
  border-left: 1px solid var(--border);
}

.extras h3 {
  font-size: 1.1875rem;
  font-weight: 600;
  letter-spacing: -0.015em;
}

.extras p {
  margin: 10px 0 0;
  color: var(--text-2);
  font-size: 0.9688rem;
  text-wrap: pretty;
}

/* Sistemas */

.table-wrap {
  margin-top: 40px;
  overflow-x: auto;
}

.support {
  width: 100%;
  border-collapse: collapse;
  font-size: 0.9688rem;
}

.support th,
.support td {
  padding: 18px 16px;
  border-bottom: 1px solid var(--border);
  text-align: left;
  vertical-align: top;
}

.support thead th {
  padding-top: 0;
  border-bottom-color: var(--border-hi);
  color: var(--text-3);
  font-size: 0.8125rem;
  font-weight: 500;
}

.support tbody th {
  font-weight: 600;
}

.support td {
  color: var(--text-2);
}

.support td.mono {
  color: var(--text);
  font-size: 0.875rem;
}

.tag {
  display: inline-block;
  padding: 3px 10px;
  border: 1px solid var(--border-hi);
  border-radius: 999px;
  color: var(--text-2);
  font-size: 0.8125rem;
  white-space: nowrap;
}

.tag.ok {
  border-color: rgba(62, 201, 182, 0.4);
  background: rgba(62, 201, 182, 0.1);
  color: var(--teal);
}

.tag.mid {
  border-color: rgba(242, 169, 59, 0.4);
  background: rgba(242, 169, 59, 0.1);
  color: var(--amber);
}

.note {
  max-width: 52rem;
  margin: 24px 0 0;
  color: var(--text-3);
  font-size: 0.9375rem;
  text-wrap: pretty;
}

/* Segurança */

.split {
  display: grid;
  grid-template-columns: minmax(0, 5fr) minmax(0, 7fr);
  gap: clamp(32px, 6vw, 96px);
  align-items: start;
}

.facts {
  margin: 0;
}

.facts > div {
  padding: 22px 0;
  border-top: 1px solid var(--border-hi);
}

.facts > div:last-child {
  border-bottom: 1px solid var(--border-hi);
}

.facts dt {
  font-size: 1.1875rem;
  font-weight: 600;
  letter-spacing: -0.015em;
}

.facts dd {
  margin: 8px 0 0;
  color: var(--text-2);
  text-wrap: pretty;
}

/* Perguntas */

.faq-wrap {
  display: grid;
  grid-template-columns: minmax(0, 4fr) minmax(0, 8fr);
  gap: clamp(32px, 6vw, 96px);
  align-items: start;
}

.faq details {
  border-top: 1px solid var(--border-hi);
}

.faq details:last-child {
  border-bottom: 1px solid var(--border-hi);
}

.faq summary {
  position: relative;
  padding: 22px 36px 22px 0;
  font-size: 1.125rem;
  font-weight: 600;
  letter-spacing: -0.01em;
  cursor: pointer;
  list-style: none;
}

.faq summary::-webkit-details-marker {
  display: none;
}

.faq summary::after {
  content: "";
  position: absolute;
  right: 4px;
  top: 50%;
  width: 9px;
  height: 9px;
  margin-top: -7px;
  border-right: 2px solid var(--text-3);
  border-bottom: 2px solid var(--text-3);
  transform: rotate(45deg);
  transition: transform 220ms var(--ease), border-color 160ms var(--ease);
}

.faq details[open] summary::after {
  margin-top: -3px;
  border-color: var(--amber);
  transform: rotate(225deg);
}

.faq summary:hover {
  color: var(--amber-hi);
}

.faq details p {
  margin: 0 0 22px;
  max-width: 44rem;
  color: var(--text-2);
  text-wrap: pretty;
}

/* Download: a única cor cheia da página */

.get {
  padding: clamp(72px, 10vw, 128px) 0;
  background: var(--amber);
  color: var(--amber-ink);
}

.get ::selection {
  background: var(--amber-ink);
  color: var(--amber);
}

.get h2 {
  max-width: 20ch;
  font-size: clamp(2.25rem, 5vw, 4rem);
  line-height: 1.03;
}

.get-sub {
  margin: 18px 0 0;
  font-size: 1.1875rem;
  font-weight: 500;
}

.get-buttons {
  display: flex;
  flex-wrap: wrap;
  gap: 14px;
  margin-top: 36px;
}

.get-links {
  margin: 28px 0 0;
  font-weight: 500;
}

.get-links a {
  text-decoration-color: rgba(23, 18, 10, 0.4);
}

.get-links a:hover {
  text-decoration-color: var(--amber-ink);
}

.get :focus-visible {
  outline-color: var(--amber-ink);
}

/* Rodapé */

.foot-site {
  padding: 32px 0;
  border-top: 1px solid var(--border);
  color: var(--text-3);
  font-size: 0.875rem;
}

.foot-in {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 12px 28px;
}

.foot-in .brand {
  color: var(--text);
}

/* ───── Telas menores ───── */

@media (max-width: 1000px) {
  .hero-in,
  .feature,
  .split,
  .faq-wrap {
    grid-template-columns: minmax(0, 1fr);
  }

  .feature.flip .f-text {
    order: 0;
  }

  .stage {
    max-width: 680px;
  }

  h2 {
    max-width: none;
  }
}

@media (max-width: 760px) {
  .nav {
    display: none;
  }

  .top-in {
    justify-content: space-between;
  }

  .steps {
    grid-template-columns: minmax(0, 1fr);
    gap: 36px;
  }

  .steps::before {
    left: 11.25px;
    right: auto;
    top: 12px;
    bottom: 40px;
    width: 1.5px;
    height: auto;
  }

  .steps li {
    padding: 0 0 0 48px;
  }

  .extras {
    grid-template-columns: minmax(0, 1fr);
  }

  .extras > div,
  .extras > div + div {
    padding: 24px 0;
    border-left: 0;
    border-bottom: 1px solid var(--border);
  }

  .support thead {
    position: absolute;
    width: 1px;
    height: 1px;
    overflow: hidden;
    clip: rect(0 0 0 0);
  }

  .support,
  .support tbody,
  .support tr,
  .support th,
  .support td {
    display: block;
  }

  .support tr {
    padding: 18px 0;
    border-bottom: 1px solid var(--border);
  }

  .support th,
  .support td {
    padding: 4px 0;
    border: 0;
  }

  .support td[data-label]::before {
    content: attr(data-label) ": ";
    color: var(--text-3);
    font-family: var(--font);
    font-size: 0.8125rem;
  }

  .btn-dark {
    flex: 1 1 100%;
  }

  .cta .btn {
    flex: 1 1 100%;
  }
}
