/* =========================================================
   Nexya — Landing page
   Design system / estilos globais
   ========================================================= */

:root {
  --bg: #060a13;
  --bg-soft: #080d18;
  --surface: #0b1220;
  --surface-2: #0f1829;
  --line: rgba(255, 255, 255, 0.08);
  --line-2: rgba(255, 255, 255, 0.14);

  --ink: #eaf0ff;
  --ink-2: #aebbd4;
  --ink-3: #7d8ba8;

  --brand: #4f8cff;
  --brand-2: #2be3a4;
  --brand-3: #8a6bff;
  --grad: linear-gradient(135deg, #4f8cff 0%, #2be3a4 100%);
  --grad-soft: linear-gradient(135deg, rgba(79, 140, 255, 0.16), rgba(43, 227, 164, 0.14));

  --radius-sm: 12px;
  --radius: 18px;
  --radius-lg: 26px;

  --shadow-sm: 0 2px 8px rgba(0, 0, 0, 0.25);
  --shadow: 0 18px 40px -18px rgba(0, 0, 0, 0.75);
  --shadow-lg: 0 40px 90px -40px rgba(0, 0, 0, 0.9);

  --font: "Inter", "Segoe UI Variable Text", "Segoe UI", system-ui, -apple-system,
    "Helvetica Neue", Arial, sans-serif;

  --max: 1180px;
  --nav-h: 72px;
}

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

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

body {
  margin: 0;
  background: var(--bg);
  color: var(--ink);
  font-family: var(--font);
  font-size: 16px;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
  overflow-x: hidden;
}

img,
svg {
  max-width: 100%;
  display: block;
}

a {
  color: inherit;
  text-decoration: none;
}

button,
input,
select,
textarea {
  font: inherit;
  color: inherit;
}

h1,
h2,
h3,
h4 {
  margin: 0;
  font-weight: 700;
  letter-spacing: -0.025em;
  line-height: 1.1;
  text-wrap: balance;
}

p {
  margin: 0;
}

ul {
  margin: 0;
  padding: 0;
  list-style: none;
}

::selection {
  background: rgba(43, 227, 164, 0.3);
  color: #fff;
}

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

/* ---------- layout ---------- */

.container {
  width: 100%;
  max-width: var(--max);
  margin-inline: auto;
  padding-inline: 24px;
}

.section {
  padding-block: 88px;
  position: relative;
}

.section--tight {
  padding-block: 56px;
}

.section__head {
  max-width: 680px;
  margin-bottom: 48px;
}

.section__head--center {
  margin-inline: auto;
  text-align: center;
}

.kicker {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-size: 12.5px;
  font-weight: 600;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--brand-2);
  margin-bottom: 14px;
}

.kicker::before {
  content: "";
  width: 22px;
  height: 1px;
  background: currentColor;
  opacity: 0.7;
}

.h2 {
  font-size: clamp(28px, 4vw, 42px);
}

.h3 {
  font-size: 19px;
  line-height: 1.35;
}

.lead {
  margin-top: 16px;
  font-size: clamp(16px, 1.6vw, 18px);
  color: var(--ink-2);
  line-height: 1.65;
}

.muted {
  color: var(--ink-3);
}

.grad-text {
  background: var(--grad);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

/* ---------- botões ---------- */

.btn {
  --btn-bg: var(--surface-2);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  padding: 14px 22px;
  border-radius: 999px;
  border: 1px solid var(--line-2);
  background: var(--btn-bg);
  color: var(--ink);
  font-weight: 600;
  font-size: 15px;
  line-height: 1;
  cursor: pointer;
  transition: transform 0.18s ease, box-shadow 0.18s ease, background 0.18s ease,
    border-color 0.18s ease, opacity 0.18s ease;
  white-space: nowrap;
  text-align: center;
}

.btn:hover {
  transform: translateY(-2px);
  border-color: rgba(255, 255, 255, 0.28);
}

.btn:active {
  transform: translateY(0);
}

.btn svg {
  width: 18px;
  height: 18px;
  flex: none;
}

.btn--primary {
  background: var(--grad);
  border-color: transparent;
  color: #04121f;
  font-weight: 700;
  box-shadow: 0 14px 34px -14px rgba(43, 227, 164, 0.65);
}

.btn--primary:hover {
  box-shadow: 0 18px 44px -14px rgba(43, 227, 164, 0.8);
}

.btn--ghost {
  background: rgba(255, 255, 255, 0.03);
}

.btn--lg {
  padding: 17px 28px;
  font-size: 16px;
}

.btn--block {
  width: 100%;
}

.btn[disabled] {
  opacity: 0.55;
  cursor: not-allowed;
  transform: none;
}

.btn__hint {
  display: block;
  font-size: 12px;
  font-weight: 500;
  opacity: 0.72;
  margin-top: 2px;
}

/* ---------- navegação ---------- */

.nav {
  position: fixed;
  inset: 0 0 auto 0;
  height: var(--nav-h);
  z-index: 60;
  display: flex;
  align-items: center;
  transition: background 0.25s ease, border-color 0.25s ease, backdrop-filter 0.25s ease;
  border-bottom: 1px solid transparent;
}

.nav.is-scrolled {
  background: rgba(6, 10, 19, 0.82);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  border-bottom-color: var(--line);
}

.nav__inner {
  display: flex;
  align-items: center;
  gap: 28px;
  width: 100%;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-weight: 700;
  letter-spacing: -0.03em;
  font-size: 21px;
  flex: none;
}

.brand img {
  width: 34px;
  height: 34px;
  border-radius: 10px;
}

.brand span i {
  font-style: normal;
  color: var(--brand-2);
}

.nav__links {
  display: flex;
  align-items: center;
  gap: 4px;
  margin-left: 8px;
}

.nav__links a {
  padding: 9px 13px;
  border-radius: 10px;
  font-size: 14.5px;
  color: var(--ink-2);
  font-weight: 500;
  transition: color 0.16s ease, background 0.16s ease;
}

.nav__links a:hover {
  color: var(--ink);
  background: rgba(255, 255, 255, 0.05);
}

.nav__actions {
  margin-left: auto;
  display: flex;
  align-items: center;
  gap: 10px;
}

.nav__actions .btn {
  padding: 11px 18px;
  font-size: 14px;
}

.nav__toggle {
  display: none;
  width: 42px;
  height: 42px;
  border-radius: 12px;
  border: 1px solid var(--line-2);
  background: rgba(255, 255, 255, 0.04);
  cursor: pointer;
  align-items: center;
  justify-content: center;
}

.nav__toggle svg {
  width: 20px;
  height: 20px;
}

/* ---------- hero ---------- */

.hero {
  position: relative;
  padding-top: calc(var(--nav-h) + 56px);
  padding-bottom: 40px;
  overflow: hidden;
}

.hero::before {
  content: "";
  position: absolute;
  top: -320px;
  left: 50%;
  transform: translateX(-50%);
  width: 1100px;
  height: 700px;
  background: radial-gradient(
    circle at 50% 50%,
    rgba(79, 140, 255, 0.22),
    rgba(43, 227, 164, 0.08) 45%,
    transparent 70%
  );
  pointer-events: none;
}

.hero::after {
  content: "";
  position: absolute;
  inset: 0;
  background-image: linear-gradient(rgba(255, 255, 255, 0.028) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255, 255, 255, 0.028) 1px, transparent 1px);
  background-size: 64px 64px;
  mask-image: radial-gradient(circle at 50% 0%, #000 0%, transparent 68%);
  -webkit-mask-image: radial-gradient(circle at 50% 0%, #000 0%, transparent 68%);
  pointer-events: none;
}

.hero__grid {
  position: relative;
  display: grid;
  grid-template-columns: 1.02fr 0.98fr;
  gap: 56px;
  align-items: center;
}

.hero__copy {
  min-width: 0;
}

.badge {
  display: inline-flex;
  align-items: center;
  gap: 9px;
  padding: 7px 14px 7px 10px;
  border-radius: 999px;
  border: 1px solid rgba(43, 227, 164, 0.28);
  background: rgba(43, 227, 164, 0.09);
  font-size: 13px;
  font-weight: 600;
  color: #c9ffe9;
}

.badge .dot {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: var(--brand-2);
  box-shadow: 0 0 0 0 rgba(43, 227, 164, 0.6);
  animation: pulse 2.4s infinite;
}

@keyframes pulse {
  0% {
    box-shadow: 0 0 0 0 rgba(43, 227, 164, 0.55);
  }
  70% {
    box-shadow: 0 0 0 9px rgba(43, 227, 164, 0);
  }
  100% {
    box-shadow: 0 0 0 0 rgba(43, 227, 164, 0);
  }
}

.hero h1 {
  margin-top: 22px;
  font-size: clamp(34px, 5.2vw, 58px);
  line-height: 1.04;
  letter-spacing: -0.035em;
}

.hero__sub {
  margin-top: 20px;
  font-size: clamp(16px, 1.7vw, 18.5px);
  color: var(--ink-2);
  max-width: 540px;
  line-height: 1.65;
}

.hero__cta {
  margin-top: 32px;
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  align-items: center;
}

.hero__note {
  margin-top: 14px;
  display: flex;
  flex-wrap: wrap;
  gap: 6px 18px;
  font-size: 13px;
  color: var(--ink-3);
}

.hero__note span {
  display: inline-flex;
  align-items: center;
  gap: 7px;
}

.hero__note svg {
  width: 15px;
  height: 15px;
  color: var(--brand-2);
  flex: none;
}

.hero__social {
  margin-top: 38px;
  padding-top: 26px;
  border-top: 1px solid var(--line);
  display: flex;
  align-items: center;
  gap: 18px;
  flex-wrap: wrap;
}

.avatars {
  display: flex;
}

.avatars img,
.avatars span {
  width: 34px;
  height: 34px;
  border-radius: 50%;
  border: 2px solid var(--bg);
  margin-left: -10px;
  display: grid;
  place-items: center;
  font-size: 12px;
  font-weight: 700;
  color: #04121f;
  background: var(--grad);
}

.avatars > :first-child {
  margin-left: 0;
}

.hero__social p {
  font-size: 13.5px;
  color: var(--ink-3);
  line-height: 1.45;
}

.hero__social strong {
  color: var(--ink);
  font-weight: 600;
}

.stars {
  display: inline-flex;
  gap: 2px;
  color: #ffc247;
}

.stars svg {
  width: 14px;
  height: 14px;
}

/* ---------- mockup ---------- */

.mock {
  position: relative;
  perspective: 1400px;
}

.mock__window {
  position: relative;
  border-radius: var(--radius-lg);
  border: 1px solid rgba(255, 255, 255, 0.12);
  background: linear-gradient(180deg, #0d1626, #080e1a);
  box-shadow: var(--shadow-lg), 0 0 0 1px rgba(255, 255, 255, 0.03) inset;
  overflow: hidden;
  transform: rotateY(-8deg) rotateX(3deg) translateZ(0);
  transition: transform 0.6s cubic-bezier(0.2, 0.8, 0.2, 1);
}

.mock:hover .mock__window {
  transform: rotateY(-2deg) rotateX(0deg);
}

.mock__bar {
  display: flex;
  align-items: center;
  gap: 7px;
  padding: 12px 16px;
  border-bottom: 1px solid var(--line);
  background: rgba(255, 255, 255, 0.02);
}

.mock__bar i {
  width: 9px;
  height: 9px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.16);
}

.mock__bar i:nth-child(1) {
  background: #ff5f57;
}
.mock__bar i:nth-child(2) {
  background: #febc2e;
}
.mock__bar i:nth-child(3) {
  background: #28c840;
}

.mock__title {
  margin-left: 10px;
  font-size: 11.5px;
  color: var(--ink-3);
  letter-spacing: 0.02em;
}

.mock__body {
  display: grid;
  grid-template-columns: 132px 1fr;
  min-height: 390px;
}

.mock__side {
  border-right: 1px solid var(--line);
  padding: 14px 10px;
  display: flex;
  flex-direction: column;
  gap: 4px;
  background: rgba(255, 255, 255, 0.012);
}

.mock__side b {
  font-size: 10px;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: var(--ink-3);
  padding: 6px 8px;
  font-weight: 600;
}

.mock__side span {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 8px;
  border-radius: 9px;
  font-size: 12px;
  color: var(--ink-2);
}

.mock__side span svg {
  width: 15px;
  height: 15px;
  opacity: 0.8;
  flex: none;
}

.mock__side span.is-active {
  background: rgba(79, 140, 255, 0.14);
  color: #dbe7ff;
  box-shadow: inset 0 0 0 1px rgba(79, 140, 255, 0.25);
}

.mock__chat {
  padding: 18px 16px;
  display: flex;
  flex-direction: column;
  gap: 12px;
  font-size: 12.5px;
}

.bubble {
  max-width: 88%;
  padding: 11px 13px;
  border-radius: 14px;
  line-height: 1.5;
}

.bubble--user {
  align-self: flex-end;
  background: rgba(79, 140, 255, 0.18);
  border: 1px solid rgba(79, 140, 255, 0.28);
  border-bottom-right-radius: 5px;
  color: #e3ecff;
}

.bubble--ai {
  align-self: flex-start;
  background: rgba(255, 255, 255, 0.045);
  border: 1px solid var(--line);
  border-bottom-left-radius: 5px;
  color: #cfd9ec;
}

.bubble--ai strong {
  color: #fff;
}

.bubble__file {
  margin-top: 9px;
  display: flex;
  align-items: center;
  gap: 9px;
  padding: 8px 10px;
  border-radius: 9px;
  background: rgba(0, 0, 0, 0.28);
  border: 1px solid var(--line);
  font-size: 11.5px;
  color: var(--ink-2);
}

.bubble__file svg {
  width: 15px;
  height: 15px;
  color: var(--brand-2);
  flex: none;
}

.typing {
  display: inline-flex;
  gap: 4px;
  align-items: center;
  padding: 12px 14px;
}

.typing i {
  width: 5px;
  height: 5px;
  border-radius: 50%;
  background: var(--ink-3);
  animation: blink 1.3s infinite;
}

.typing i:nth-child(2) {
  animation-delay: 0.18s;
}
.typing i:nth-child(3) {
  animation-delay: 0.36s;
}

@keyframes blink {
  0%,
  60%,
  100% {
    opacity: 0.35;
    transform: translateY(0);
  }
  30% {
    opacity: 1;
    transform: translateY(-2px);
  }
}

.mock__input {
  margin-top: auto;
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 9px 10px 9px 14px;
  border-radius: 12px;
  border: 1px solid var(--line-2);
  background: rgba(255, 255, 255, 0.03);
  font-size: 12px;
  color: var(--ink-3);
}

.mock__input svg {
  width: 15px;
  height: 15px;
  color: var(--brand-2);
  margin-left: auto;
}

.mock__tag {
  position: absolute;
  display: flex;
  align-items: center;
  gap: 9px;
  padding: 10px 14px;
  border-radius: 12px;
  background: rgba(12, 20, 34, 0.92);
  border: 1px solid var(--line-2);
  box-shadow: var(--shadow);
  backdrop-filter: blur(10px);
  font-size: 12.5px;
  font-weight: 600;
  animation: float 7s ease-in-out infinite;
  white-space: nowrap;
}

.mock__tag svg {
  width: 16px;
  height: 16px;
  flex: none;
}

.mock__tag--a {
  top: 6%;
  right: -14px;
  color: #c9ffe9;
  animation-delay: 0.4s;
}

.mock__tag--a svg {
  color: var(--brand-2);
}

.mock__tag--b {
  bottom: 8%;
  left: -18px;
  color: #dbe7ff;
  animation-delay: 1.6s;
}

.mock__tag--b svg {
  color: var(--brand);
}

@keyframes float {
  0%,
  100% {
    transform: translateY(0);
  }
  50% {
    transform: translateY(-9px);
  }
}

/* ---------- faixa de números ---------- */

.stats {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 1px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--line);
  overflow: hidden;
  margin-top: 20px;
}

.stats > div {
  background: var(--bg-soft);
  padding: 26px 24px;
}

.stats b {
  display: block;
  font-size: clamp(24px, 3vw, 32px);
  font-weight: 700;
  letter-spacing: -0.03em;
  background: var(--grad);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

.stats span {
  font-size: 13px;
  color: var(--ink-3);
  line-height: 1.45;
  display: block;
  margin-top: 4px;
}

/* ---------- cards ---------- */

.grid-3 {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 18px;
}

.grid-2 {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 18px;
}

.card {
  position: relative;
  padding: 28px 26px;
  border-radius: var(--radius);
  border: 1px solid var(--line);
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.035), rgba(255, 255, 255, 0.012));
  transition: transform 0.25s ease, border-color 0.25s ease, background 0.25s ease;
  overflow: hidden;
}

.card:hover {
  transform: translateY(-4px);
  border-color: rgba(79, 140, 255, 0.35);
  background: linear-gradient(180deg, rgba(79, 140, 255, 0.08), rgba(255, 255, 255, 0.012));
}

.card__icon {
  width: 46px;
  height: 46px;
  border-radius: 13px;
  display: grid;
  place-items: center;
  background: var(--grad-soft);
  border: 1px solid rgba(79, 140, 255, 0.25);
  margin-bottom: 18px;
}

.card__icon svg {
  width: 22px;
  height: 22px;
  color: var(--brand-2);
}

.card h3 {
  margin-bottom: 9px;
}

.card p {
  color: var(--ink-2);
  font-size: 14.5px;
  line-height: 1.6;
}

.card--pain .card__icon {
  background: rgba(255, 95, 87, 0.1);
  border-color: rgba(255, 95, 87, 0.25);
}

.card--pain .card__icon svg {
  color: #ff8a80;
}

/* ---------- passos ---------- */

.steps {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 18px;
  counter-reset: step;
}

.step {
  position: relative;
  padding: 28px 26px;
  border-radius: var(--radius);
  border: 1px solid var(--line);
  background: var(--bg-soft);
}

.step::before {
  counter-increment: step;
  content: "0" counter(step);
  position: absolute;
  top: 20px;
  right: 24px;
  font-size: 13px;
  font-weight: 700;
  letter-spacing: 0.08em;
  color: var(--ink-3);
  opacity: 0.7;
}

.step h3 {
  margin-bottom: 10px;
  margin-top: 10px;
}

.step p {
  color: var(--ink-2);
  font-size: 14.5px;
}

.step__tag {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: 12px;
  color: var(--brand-2);
  font-weight: 600;
  padding: 4px 10px;
  border-radius: 999px;
  background: rgba(43, 227, 164, 0.1);
}

/* ---------- demo ---------- */

.demo {
  display: grid;
  grid-template-columns: 0.85fr 1.15fr;
  gap: 40px;
  align-items: start;
}

.demo__panel {
  border-radius: var(--radius-lg);
  border: 1px solid var(--line-2);
  background: linear-gradient(180deg, #0c1524, #070c15);
  box-shadow: var(--shadow);
  overflow: hidden;
}

.demo__head {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 14px 18px;
  border-bottom: 1px solid var(--line);
  background: rgba(255, 255, 255, 0.02);
  font-size: 13px;
  color: var(--ink-2);
}

.demo__head .dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--brand-2);
  flex: none;
}

.demo__log {
  height: 380px;
  overflow-y: auto;
  padding: 18px;
  display: flex;
  flex-direction: column;
  gap: 12px;
  scrollbar-width: thin;
  scrollbar-color: rgba(255, 255, 255, 0.15) transparent;
}

.demo__log::-webkit-scrollbar {
  width: 6px;
}

.demo__log::-webkit-scrollbar-thumb {
  background: rgba(255, 255, 255, 0.15);
  border-radius: 99px;
}

.demo__log .bubble {
  max-width: 92%;
  font-size: 13.5px;
  animation: rise 0.35s ease both;
}

@keyframes rise {
  from {
    opacity: 0;
    transform: translateY(8px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.demo__form {
  display: flex;
  gap: 8px;
  padding: 12px;
  border-top: 1px solid var(--line);
  background: rgba(255, 255, 255, 0.015);
}

.demo__form input {
  flex: 1;
  min-width: 0;
  padding: 12px 14px;
  border-radius: 11px;
  border: 1px solid var(--line-2);
  background: rgba(0, 0, 0, 0.35);
  font-size: 14px;
  outline: none;
  transition: border-color 0.15s ease;
}

.demo__form input:focus {
  border-color: var(--brand);
}

.demo__form button {
  flex: none;
  width: 46px;
  border-radius: 11px;
  border: 0;
  background: var(--grad);
  color: #04121f;
  cursor: pointer;
  display: grid;
  place-items: center;
}

.demo__form button svg {
  width: 18px;
  height: 18px;
}

.demo__suggest {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 14px;
}

.chip {
  padding: 8px 13px;
  border-radius: 999px;
  border: 1px solid var(--line-2);
  background: rgba(255, 255, 255, 0.03);
  font-size: 12.5px;
  color: var(--ink-2);
  cursor: pointer;
  transition: all 0.15s ease;
  text-align: left;
}

.chip:hover {
  border-color: rgba(43, 227, 164, 0.5);
  color: #d8ffee;
  background: rgba(43, 227, 164, 0.08);
}

/* ---------- calculadora ---------- */

.calc {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 0;
  border-radius: var(--radius-lg);
  border: 1px solid var(--line-2);
  overflow: hidden;
  background: var(--bg-soft);
}

.calc__form {
  padding: 34px;
  border-right: 1px solid var(--line);
}

.calc__result {
  padding: 34px;
  background: radial-gradient(circle at 100% 0%, rgba(79, 140, 255, 0.16), transparent 60%),
    radial-gradient(circle at 0% 100%, rgba(43, 227, 164, 0.12), transparent 55%);
  display: flex;
  flex-direction: column;
  justify-content: center;
}

.field {
  margin-bottom: 20px;
}

.field label {
  display: block;
  font-size: 13.5px;
  font-weight: 600;
  color: var(--ink-2);
  margin-bottom: 8px;
}

.field input[type="range"] {
  width: 100%;
  accent-color: var(--brand-2);
  height: 6px;
  cursor: pointer;
}

.field__row {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  gap: 10px;
  margin-bottom: 6px;
}

.field__row label {
  margin: 0;
}

.field__val {
  font-size: 13px;
  font-weight: 700;
  color: var(--brand-2);
  background: rgba(43, 227, 164, 0.1);
  padding: 2px 10px;
  border-radius: 999px;
  font-variant-numeric: tabular-nums;
}

.calc__out {
  font-size: 13px;
  color: var(--ink-2);
  letter-spacing: 0.02em;
}

.calc__big {
  font-size: clamp(32px, 5vw, 48px);
  font-weight: 700;
  letter-spacing: -0.04em;
  line-height: 1.05;
  margin: 6px 0 4px;
  background: var(--grad);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
  font-variant-numeric: tabular-nums;
}

.calc__big small {
  font-size: 0.42em;
  font-weight: 600;
  color: var(--ink-2);
  -webkit-text-fill-color: var(--ink-2);
  letter-spacing: 0;
}

.calc__line {
  height: 1px;
  background: var(--line);
  margin: 20px 0;
}

.calc__row {
  display: flex;
  justify-content: space-between;
  font-size: 14px;
  color: var(--ink-2);
  padding: 5px 0;
}

.calc__row b {
  color: var(--ink);
  font-variant-numeric: tabular-nums;
}

/* ---------- segurança ---------- */

.sec-list {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 16px 28px;
}

.sec-item {
  display: flex;
  gap: 13px;
  align-items: flex-start;
}

.sec-item svg {
  width: 20px;
  height: 20px;
  color: var(--brand-2);
  flex: none;
  margin-top: 2px;
}

.sec-item b {
  display: block;
  font-size: 15px;
  margin-bottom: 3px;
}

.sec-item p {
  font-size: 13.5px;
  color: var(--ink-3);
  line-height: 1.55;
}

/* ---------- depoimentos ---------- */

.quote {
  padding: 28px 26px;
  border-radius: var(--radius);
  border: 1px solid var(--line);
  background: var(--bg-soft);
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.quote p {
  font-size: 15px;
  line-height: 1.65;
  color: #d7e0f2;
}

.quote__who {
  display: flex;
  align-items: center;
  gap: 11px;
  margin-top: auto;
  padding-top: 4px;
}

.quote__who span {
  width: 40px;
  height: 40px;
  border-radius: 50%;
  display: grid;
  place-items: center;
  font-weight: 700;
  font-size: 14px;
  color: #04121f;
  background: var(--grad);
  flex: none;
}

.quote__who b {
  display: block;
  font-size: 14px;
}

.quote__who em {
  font-style: normal;
  font-size: 12.5px;
  color: var(--ink-3);
}

/* ---------- faq ---------- */

.faq {
  max-width: 820px;
  margin-inline: auto;
}

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

.faq summary {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  padding: 22px 4px;
  cursor: pointer;
  font-size: 16.5px;
  font-weight: 600;
  list-style: none;
  transition: color 0.15s ease;
}

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

.faq summary:hover {
  color: var(--brand-2);
}

.faq summary::after {
  content: "+";
  font-size: 22px;
  font-weight: 400;
  color: var(--ink-3);
  line-height: 1;
  transition: transform 0.25s ease, color 0.2s ease;
  flex: none;
}

.faq details[open] summary::after {
  transform: rotate(45deg);
  color: var(--brand-2);
}

.faq details p {
  padding: 0 4px 24px;
  color: var(--ink-2);
  font-size: 15px;
  line-height: 1.7;
  max-width: 92%;
}

/* ---------- cta final ---------- */

.cta-final {
  position: relative;
  padding: 64px;
  border-radius: 30px;
  overflow: hidden;
  border: 1px solid rgba(43, 227, 164, 0.22);
  background: radial-gradient(circle at 15% 10%, rgba(79, 140, 255, 0.2), transparent 55%),
    radial-gradient(circle at 85% 90%, rgba(43, 227, 164, 0.16), transparent 55%),
    linear-gradient(180deg, #0b1424, #070c16);
  display: grid;
  grid-template-columns: 1.05fr 0.95fr;
  gap: 48px;
  align-items: center;
}

.cta-final h2 {
  font-size: clamp(26px, 3.6vw, 40px);
}

.cta-final p {
  margin-top: 14px;
  color: var(--ink-2);
  font-size: 16px;
  max-width: 440px;
}

/* ---------- formulário ---------- */

.form {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.form input[type="text"],
.form input[type="email"],
.form input[type="tel"],
.form select {
  width: 100%;
  padding: 14px 16px;
  border-radius: 12px;
  border: 1px solid var(--line-2);
  background: rgba(4, 8, 16, 0.65);
  font-size: 14.5px;
  outline: none;
  transition: border-color 0.15s ease, box-shadow 0.15s ease;
}

.form input::placeholder {
  color: var(--ink-3);
}

.form input:focus,
.form select:focus {
  border-color: var(--brand);
  box-shadow: 0 0 0 3px rgba(79, 140, 255, 0.16);
}

.form input[aria-invalid="true"] {
  border-color: #ff6b6b;
}

.form__error {
  font-size: 12.5px;
  color: #ff8f8f;
  min-height: 0;
}

.form__legal {
  font-size: 12px;
  color: var(--ink-3);
  line-height: 1.5;
  text-align: center;
}

.form__legal a {
  color: var(--ink-2);
  text-decoration: underline;
  text-underline-offset: 2px;
}

.hp {
  position: absolute !important;
  left: -9999px;
  width: 1px;
  height: 1px;
  opacity: 0;
}

/* ---------- modal ---------- */

.modal {
  position: fixed;
  inset: 0;
  z-index: 100;
  display: grid;
  place-items: center;
  padding: 20px;
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.22s ease, visibility 0.22s ease;
}

.modal.is-open {
  opacity: 1;
  visibility: visible;
}

.modal__backdrop {
  position: absolute;
  inset: 0;
  background: rgba(2, 5, 10, 0.78);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
}

.modal__box {
  position: relative;
  width: 100%;
  max-width: 480px;
  max-height: 92vh;
  overflow-y: auto;
  padding: 34px;
  border-radius: var(--radius-lg);
  border: 1px solid var(--line-2);
  background: linear-gradient(180deg, #0d1626, #080e19);
  box-shadow: var(--shadow-lg);
  transform: translateY(14px) scale(0.98);
  transition: transform 0.28s cubic-bezier(0.2, 0.8, 0.2, 1);
}

.modal.is-open .modal__box {
  transform: none;
}

.modal__close {
  position: absolute;
  top: 14px;
  right: 14px;
  width: 36px;
  height: 36px;
  border-radius: 10px;
  border: 1px solid var(--line);
  background: rgba(255, 255, 255, 0.04);
  cursor: pointer;
  display: grid;
  place-items: center;
}

.modal__close svg {
  width: 17px;
  height: 17px;
}

.modal__box h3 {
  font-size: 23px;
  margin-bottom: 8px;
}

.modal__box > p {
  color: var(--ink-2);
  font-size: 14px;
  margin-bottom: 22px;
}

.modal__success {
  display: none;
  text-align: center;
  padding: 8px 0;
}

.modal__success.is-visible {
  display: block;
}

.modal__check {
  width: 62px;
  height: 62px;
  border-radius: 50%;
  margin: 0 auto 18px;
  display: grid;
  place-items: center;
  background: rgba(43, 227, 164, 0.14);
  border: 1px solid rgba(43, 227, 164, 0.4);
}

.modal__check svg {
  width: 28px;
  height: 28px;
  color: var(--brand-2);
}

/* ---------- footer ---------- */

.footer {
  border-top: 1px solid var(--line);
  padding-block: 56px 32px;
  margin-top: 40px;
}

.footer__grid {
  display: grid;
  grid-template-columns: 1.4fr repeat(3, 1fr);
  gap: 40px;
  margin-bottom: 44px;
}

.footer__about p {
  color: var(--ink-3);
  font-size: 13.5px;
  margin-top: 14px;
  max-width: 280px;
  line-height: 1.6;
}

.footer h4 {
  font-size: 12px;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: var(--ink-3);
  margin-bottom: 14px;
  font-weight: 600;
}

.footer ul {
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.footer ul a {
  font-size: 14px;
  color: var(--ink-2);
  transition: color 0.15s ease;
}

.footer ul a:hover {
  color: var(--brand-2);
}

.footer__bottom {
  display: flex;
  justify-content: space-between;
  gap: 16px;
  flex-wrap: wrap;
  padding-top: 24px;
  border-top: 1px solid var(--line);
  font-size: 12.5px;
  color: var(--ink-3);
}

.footer__bottom a {
  color: var(--ink-3);
}

/* ---------- cookie banner ---------- */

.cookie {
  position: fixed;
  left: 20px;
  right: 20px;
  bottom: 20px;
  z-index: 90;
  max-width: 720px;
  margin-inline: auto;
  padding: 18px 20px;
  border-radius: 16px;
  border: 1px solid var(--line-2);
  background: rgba(10, 17, 29, 0.94);
  backdrop-filter: blur(14px);
  box-shadow: var(--shadow-lg);
  display: flex;
  align-items: center;
  gap: 18px;
  flex-wrap: wrap;
  transform: translateY(140%);
  transition: transform 0.45s cubic-bezier(0.2, 0.8, 0.2, 1);
}

.cookie.is-visible {
  transform: none;
}

.cookie p {
  flex: 1;
  min-width: 240px;
  font-size: 12.5px;
  color: var(--ink-2);
  line-height: 1.55;
}

.cookie p a {
  text-decoration: underline;
  text-underline-offset: 2px;
}

.cookie__actions {
  display: flex;
  gap: 8px;
}

.cookie .btn {
  padding: 10px 16px;
  font-size: 13px;
}

/* ---------- animações de entrada ---------- */

.reveal {
  opacity: 0;
  transform: translateY(18px);
  transition: opacity 0.6s ease, transform 0.6s cubic-bezier(0.2, 0.8, 0.2, 1);
}

.reveal.is-in {
  opacity: 1;
  transform: none;
}

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

.skip {
  position: absolute;
  left: -9999px;
  top: 12px;
  z-index: 200;
  padding: 12px 18px;
  background: var(--brand-2);
  color: #04121f;
  border-radius: 10px;
  font-weight: 700;
}

.skip:focus {
  left: 12px;
}

/* =========================================================
   Responsivo
   ========================================================= */

@media (max-width: 1024px) {
  .hero__grid {
    grid-template-columns: 1fr;
    gap: 44px;
  }

  .mock__window {
    transform: none;
  }

  .mock__tag--a {
    right: 4px;
  }

  .mock__tag--b {
    left: 4px;
  }

  .demo {
    grid-template-columns: 1fr;
  }

  .cta-final {
    grid-template-columns: 1fr;
    padding: 44px;
    gap: 32px;
  }

  .footer__grid {
    grid-template-columns: 1fr 1fr;
    gap: 32px;
  }

  .calc {
    grid-template-columns: 1fr;
  }

  .calc__form {
    border-right: 0;
    border-bottom: 1px solid var(--line);
  }
}

@media (max-width: 860px) {
  .nav__links {
    display: none;
  }

  .nav__toggle {
    display: flex;
  }

  .nav__actions .btn--ghost {
    display: none;
  }

  .nav.is-open .nav__links {
    display: flex;
    position: absolute;
    top: var(--nav-h);
    left: 12px;
    right: 12px;
    flex-direction: column;
    align-items: stretch;
    gap: 2px;
    padding: 12px;
    border-radius: var(--radius);
    border: 1px solid var(--line-2);
    background: rgba(9, 15, 26, 0.98);
    backdrop-filter: blur(18px);
    box-shadow: var(--shadow-lg);
  }

  .nav.is-open .nav__links a {
    padding: 13px 14px;
    font-size: 15px;
  }

  .grid-3,
  .steps {
    grid-template-columns: 1fr;
  }

  .stats {
    grid-template-columns: 1fr 1fr;
  }

  .sec-list {
    grid-template-columns: 1fr;
  }

  .section {
    padding-block: 64px;
  }

  .hero {
    padding-top: calc(var(--nav-h) + 34px);
  }

  .hero__cta .btn {
    flex: 1;
    min-width: 200px;
  }
}

@media (max-width: 620px) {
  .container {
    padding-inline: 18px;
  }

  .hero h1 {
    font-size: clamp(31px, 8.6vw, 42px);
  }

  .grid-2 {
    grid-template-columns: 1fr;
  }

  .cta-final {
    padding: 30px 22px;
    border-radius: 22px;
  }

  .footer__grid {
    grid-template-columns: 1fr;
    gap: 28px;
  }

  .mock__body {
    grid-template-columns: 1fr;
    min-height: 0;
  }

  .mock__side {
    display: none;
  }

  .mock__chat {
    min-height: 330px;
  }

  .mock__tag {
    display: none;
  }

  .stats > div {
    padding: 20px 18px;
  }

  .cookie {
    left: 10px;
    right: 10px;
    bottom: 10px;
  }

  .cookie__actions {
    width: 100%;
  }

  .cookie__actions .btn {
    flex: 1;
  }

  .modal__box {
    padding: 26px 22px;
  }

  .faq summary {
    font-size: 15px;
    padding: 18px 2px;
  }

  .bubble {
    max-width: 100%;
  }
}

@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }

  *,
  *::before,
  *::after {
    animation-duration: 0.001ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.001ms !important;
  }

  .reveal {
    opacity: 1;
    transform: none;
  }
}

@media print {
  .nav,
  .cookie,
  .modal,
  .mock__tag {
    display: none !important;
  }
}

/* =========================================================
   Páginas internas (obrigado, privacidade, termos)
   ========================================================= */

.topbar {
  position: sticky;
  top: 0;
  z-index: 50;
  height: 64px;
  display: flex;
  align-items: center;
  background: rgba(6, 10, 19, 0.86);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  border-bottom: 1px solid var(--line);
}

.topbar .container {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
}

.topbar .brand {
  font-size: 19px;
}

.topbar .brand img {
  width: 30px;
  height: 30px;
  border-radius: 9px;
}

.topbar__back {
  font-size: 14px;
  color: var(--ink-2);
  display: inline-flex;
  align-items: center;
  gap: 7px;
}

.topbar__back:hover {
  color: var(--brand-2);
}

.topbar__back svg {
  width: 16px;
  height: 16px;
  transform: rotate(180deg);
}

.legal {
  max-width: 760px;
  margin-inline: auto;
  padding-block: 56px 96px;
}

.legal h1 {
  font-size: clamp(30px, 4.6vw, 42px);
  margin-bottom: 10px;
}

.legal .updated {
  font-size: 13px;
  color: var(--ink-3);
  margin-bottom: 34px;
  padding-bottom: 24px;
  border-bottom: 1px solid var(--line);
}

.legal h2 {
  font-size: 20px;
  margin: 38px 0 12px;
  letter-spacing: -0.015em;
}

.legal h3 {
  font-size: 15.5px;
  margin: 22px 0 8px;
}

.legal p,
.legal li {
  color: var(--ink-2);
  font-size: 15px;
  line-height: 1.75;
}

.legal p {
  margin-bottom: 14px;
}

.legal ul,
.legal ol {
  margin: 0 0 18px;
  padding-left: 22px;
  list-style: disc;
}

.legal ol {
  list-style: decimal;
}

.legal li {
  margin-bottom: 8px;
}

.legal a {
  color: var(--brand-2);
  text-decoration: underline;
  text-underline-offset: 2px;
}

.legal strong {
  color: var(--ink);
  font-weight: 600;
}

.legal__box {
  margin: 26px 0;
  padding: 20px 22px;
  border-radius: 14px;
  border: 1px solid var(--line-2);
  background: rgba(79, 140, 255, 0.07);
}

.legal__box p:last-child {
  margin-bottom: 0;
}

/* página de obrigado */

.thanks {
  max-width: 660px;
  margin-inline: auto;
  padding-block: 72px 96px;
  text-align: center;
}

.thanks__check {
  width: 84px;
  height: 84px;
  border-radius: 50%;
  margin: 0 auto 26px;
  display: grid;
  place-items: center;
  background: rgba(43, 227, 164, 0.12);
  border: 1px solid rgba(43, 227, 164, 0.4);
  box-shadow: 0 0 60px -12px rgba(43, 227, 164, 0.55);
}

.thanks__check svg {
  width: 38px;
  height: 38px;
  color: var(--brand-2);
}

.thanks h1 {
  font-size: clamp(28px, 4.4vw, 40px);
}

.thanks > p {
  margin-top: 14px;
  color: var(--ink-2);
  font-size: 16.5px;
}

.thanks__steps {
  margin: 38px 0;
  display: grid;
  gap: 12px;
  text-align: left;
}

.thanks__step {
  display: flex;
  gap: 14px;
  align-items: flex-start;
  padding: 16px 18px;
  border-radius: 14px;
  border: 1px solid var(--line);
  background: var(--bg-soft);
}

.thanks__step b {
  width: 26px;
  height: 26px;
  border-radius: 8px;
  display: grid;
  place-items: center;
  font-size: 12.5px;
  background: var(--grad);
  color: #04121f;
  flex: none;
  margin-top: 1px;
}

.thanks__step div p {
  font-size: 13.5px;
  color: var(--ink-3);
  margin-top: 2px;
  line-height: 1.55;
}

.thanks__step div strong {
  font-size: 14.5px;
}

.thanks__note {
  margin-top: 26px;
  font-size: 13px;
  color: var(--ink-3);
}

.thanks__note a {
  color: var(--ink-2);
  text-decoration: underline;
}

