:root {
  --bg: #eef1f5;
  --bg-deep: #e4e8ef;
  --ink: #0f141c;
  --ink-soft: #3a4454;
  --muted: #6a7385;
  --line: #d0d6e0;
  --brand: #e10600;
  --brand-ink: #9f0400;
  --download: #0f7a4e;
  --download-ink: #0a5a39;
  --demo: #1d4ed8;
  --demo-ink: #163a9e;
  --surface: #f7f9fc;
  --surface-2: #ffffff;
  --ok: #0f7a4e;
  --shadow: 0 12px 36px rgba(15, 20, 28, 0.08);
  --font-display: "Syne", "Segoe UI", sans-serif;
  --font-body: "Figtree", "Segoe UI", sans-serif;
  --max: 1120px;
  --radius: 12px;
}

*,
*::before,
*::after {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  font-family: var(--font-body);
  color: var(--ink);
  background:
    radial-gradient(900px 420px at 10% -5%, rgba(29, 78, 216, 0.06), transparent 55%),
    radial-gradient(800px 400px at 95% 8%, rgba(225, 6, 0, 0.06), transparent 50%),
    linear-gradient(180deg, var(--bg) 0%, var(--bg-deep) 100%);
  line-height: 1.55;
  min-height: 100vh;
}

img,
video {
  max-width: 100%;
  display: block;
}

a {
  color: inherit;
}

.wrap {
  width: min(var(--max), calc(100% - 2.5rem));
  margin-inline: auto;
}

.wrap.narrow {
  width: min(40rem, calc(100% - 2.5rem));
}

/* —— Top nav —— */
.topnav {
  position: absolute;
  inset: 0 0 auto;
  z-index: 20;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  padding: 1.15rem 0;
  color: #f4f6fa;
  width: min(var(--max), calc(100% - 2.5rem));
  left: 50%;
  transform: translateX(-50%);
}

.brand {
  display: inline-flex;
  align-items: baseline;
  text-decoration: none;
  font-family: var(--font-display);
  font-weight: 800;
  font-size: 1.35rem;
  letter-spacing: -0.03em;
}

.brand-name {
  color: #ff3b33;
}

.topnav-links {
  display: flex;
  align-items: center;
  gap: 1.25rem;
  font-size: 0.95rem;
}

.topnav-links a {
  text-decoration: none;
  color: rgba(244, 246, 250, 0.86);
}

.topnav-links a:hover {
  color: #fff;
}

/* —— Buttons —— */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.45rem;
  border: 0;
  border-radius: 10px;
  padding: 0.85rem 1.25rem;
  font: inherit;
  font-weight: 700;
  text-decoration: none;
  cursor: pointer;
  transition: transform 0.2s ease, background 0.2s ease, color 0.2s ease, border-color 0.2s ease;
}

.btn:hover {
  transform: translateY(-1px);
}

.btn:active {
  transform: translateY(0);
}

.btn-brand {
  background: var(--brand);
  color: #fff;
}

.btn-brand:hover {
  background: var(--brand-ink);
}

.btn-download {
  background: var(--download);
  color: #fff;
}

.btn-download:hover {
  background: var(--download-ink);
}

.btn-demo {
  background: var(--demo);
  color: #fff;
}

.btn-demo:hover {
  background: var(--demo-ink);
}

.btn-ghost {
  background: transparent;
  color: #f4f6fa;
  border: 1px solid rgba(244, 246, 250, 0.35);
}

.btn-ghost:hover {
  background: rgba(255, 255, 255, 0.08);
}

.btn-dark {
  background: var(--ink);
  color: #fff;
}

.btn-dark:hover {
  background: #000;
}

.btn-outline {
  background: transparent;
  color: var(--ink);
  border: 1px solid var(--line);
}

.btn-outline:hover {
  border-color: var(--ink);
}

.btn-block {
  width: 100%;
}

.btn-sm {
  padding: 0.65rem 1rem;
  font-size: 0.92rem;
}

/* —— Hero —— */
.hero {
  position: relative;
  /* Deixa a barra de confiança visível já na primeira tela */
  min-height: calc(100vh - 3.4rem);
  min-height: calc(100dvh - 3.4rem);
  display: grid;
  align-items: end;
  color: #f4f6fa;
  overflow: hidden;
  isolation: isolate;
}

.hero-inner {
  position: relative;
  width: 100%;
  max-width: none;
  padding: 0;
}

.hero-inner > .hero-content {
  width: min(var(--max), calc(100% - 2.5rem));
  margin-inline: auto;
}

.hero-media {
  position: absolute;
  inset: 0;
  z-index: -2;
  background:
    linear-gradient(180deg, rgba(8, 12, 18, 0.2) 0%, rgba(8, 12, 18, 0.5) 42%, rgba(8, 12, 18, 0.92) 100%),
    url("../img/hero-remote.svg") center / cover no-repeat,
    #10151e;
  animation: heroDrift 28s ease-in-out infinite alternate;
}

.hero-media::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(90deg, rgba(8, 12, 18, 0.78) 0%, rgba(8, 12, 18, 0.4) 55%, rgba(8, 12, 18, 0.22) 100%);
}

.hero-content {
  padding: 7.5rem 0 3rem;
  max-width: 38rem;
}

.hero-brand {
  margin: 0 0 0.85rem;
  font-family: var(--font-display);
  font-size: clamp(2.8rem, 8vw, 5.2rem);
  font-weight: 800;
  letter-spacing: -0.05em;
  line-height: 0.95;
}

.hero-brand span {
  color: #ff3b33;
}

.hero-headline {
  margin: 0 0 0.75rem;
  font-family: var(--font-display);
  font-size: clamp(1.35rem, 3.2vw, 1.85rem);
  font-weight: 700;
  letter-spacing: -0.03em;
  line-height: 1.2;
  color: #f4f6fa;
  max-width: 28rem;
}

.hero-lead {
  margin: 0 0 1.75rem;
  font-size: clamp(1.05rem, 2.2vw, 1.2rem);
  color: rgba(244, 246, 250, 0.78);
  max-width: 26rem;
}

.hero-cta {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
}

@keyframes rise {
  from {
    opacity: 0;
    transform: translateY(18px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@keyframes heroDrift {
  from {
    transform: scale(1);
  }
  to {
    transform: scale(1.04);
  }
}

.hero-content > * {
  animation: rise 0.85s ease both;
}

.hero-content > *:nth-child(2) {
  animation-delay: 0.1s;
}

.hero-content > *:nth-child(3) {
  animation-delay: 0.18s;
}

.hero-content > *:nth-child(4) {
  animation-delay: 0.28s;
}

/* —— Trust bar —— */
.trust-bar {
  position: sticky;
  top: 0;
  z-index: 40;
  background: var(--surface-2);
  border-bottom: 1px solid var(--line);
  padding: 0.85rem 0;
  box-shadow: 0 6px 18px rgba(15, 20, 28, 0.06);
}

.trust-checks {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  flex-wrap: wrap;
  gap: 0.65rem 1.5rem;
  justify-content: center;
  align-items: center;
  width: 100%;
}

.trust-checks li {
  display: inline-flex;
  align-items: center;
  gap: 0.45rem;
  font-weight: 700;
  font-size: 0.9rem;
  color: var(--ink-soft);
  white-space: nowrap;
}

.trust-checks li::before {
  content: "";
  width: 0.55rem;
  height: 0.55rem;
  background: var(--download);
  flex-shrink: 0;
}

/* —— Sections —— */
.section {
  padding: 5.5rem 0;
}

.section-head {
  max-width: 36rem;
  margin-bottom: 2.5rem;
}

.section-head h2 {
  margin: 0 0 0.65rem;
  font-family: var(--font-display);
  font-size: clamp(1.8rem, 4vw, 2.6rem);
  letter-spacing: -0.04em;
  line-height: 1.1;
}

.section-head p {
  margin: 0;
  color: var(--ink-soft);
  font-size: 1.05rem;
}

.section-band {
  background:
    linear-gradient(135deg, rgba(29, 78, 216, 0.04), transparent 42%),
    var(--surface);
  border-block: 1px solid var(--line);
}

.section-statement {
  background: #121820;
  color: #f4f6fa;
  text-align: center;
  padding: 5rem 0;
}

.big-line {
  margin: 0 0 2rem;
  font-family: var(--font-display);
  font-size: clamp(1.75rem, 4.5vw, 2.85rem);
  font-weight: 800;
  letter-spacing: -0.04em;
  line-height: 1.15;
}

.diff-list {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  gap: 0.85rem;
  justify-items: center;
}

.diff-list li {
  font-size: 1.05rem;
  color: rgba(244, 246, 250, 0.78);
  padding-left: 1.25rem;
  position: relative;
}

.diff-list li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 0.55rem;
  width: 0.45rem;
  height: 0.45rem;
  background: var(--brand);
}

.section-perf {
  background:
    radial-gradient(700px 280px at 80% 0%, rgba(225, 6, 0, 0.07), transparent 60%),
    var(--bg);
}

.perf-grid {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 2rem 2.5rem;
}

.perf-grid li {
  display: grid;
  gap: 0.4rem;
  padding-top: 1rem;
  border-top: 2px solid var(--brand);
}

.perf-grid strong {
  font-family: var(--font-display);
  font-size: 1.35rem;
  letter-spacing: -0.03em;
}

.perf-grid span {
  color: var(--ink-soft);
}

.section-security {
  background: #0f141c;
  color: #f4f6fa;
}

.section-security .section-head p {
  color: rgba(244, 246, 250, 0.72);
}

.security-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.75rem 1.5rem;
}

.security-grid article {
  padding-top: 1rem;
  border-top: 1px solid rgba(255, 255, 255, 0.12);
}

.security-grid h3 {
  margin: 0 0 0.45rem;
  font-family: var(--font-display);
  font-size: 1.1rem;
  letter-spacing: -0.02em;
}

.security-grid p {
  margin: 0;
  color: rgba(244, 246, 250, 0.68);
  font-size: 0.98rem;
}

/* —— Feature icons —— */
.feature-icons {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 2rem 1.5rem;
}

.feature-icons li {
  display: grid;
  gap: 0.75rem;
  justify-items: start;
}

.feature-icons .fi {
  width: 3.25rem;
  height: 3.25rem;
  color: var(--brand);
}

.feature-icons .fi svg {
  width: 100%;
  height: 100%;
}

.feature-icons strong {
  font-family: var(--font-display);
  font-size: 1.15rem;
  letter-spacing: -0.02em;
  font-weight: 700;
}

/* —— Video demo —— */
.demo-video {
  max-width: 900px;
}

.demo-video video {
  width: 100%;
  aspect-ratio: 16 / 9;
  object-fit: cover;
  background: #121820;
  border: 1px solid var(--line);
}

.video-note {
  margin: 0.85rem 0 0;
  color: var(--muted);
  font-size: 0.9rem;
}

.video-note code {
  font-size: 0.85em;
  background: var(--surface-2);
  padding: 0.1rem 0.35rem;
  border-radius: 4px;
  border: 1px solid var(--line);
}

/* —— Demo / download —— */
.demo-box {
  display: grid;
  grid-template-columns: minmax(0, 380px) minmax(0, 1fr);
  gap: 2rem;
  align-items: start;
  background: var(--surface-2);
  border: 1px solid var(--line);
  border-radius: 16px;
  padding: 1.5rem;
}

.demo-form .field {
  margin-bottom: 0.85rem;
}

.demo-status {
  min-height: 1.2rem;
  margin: 0.75rem 0 0;
  font-size: 0.9rem;
  color: var(--muted);
}

.demo-status.err {
  color: var(--brand);
}

.demo-status.ok {
  color: var(--ok);
}

.demo-label {
  margin: 0 0 0.45rem;
  font-size: 0.88rem;
  font-weight: 700;
  color: var(--ink-soft);
}

.demo-token-row {
  display: flex;
  flex-wrap: wrap;
  gap: 0.55rem;
  align-items: center;
  margin-bottom: 0.65rem;
}

.demo-token-row code {
  flex: 1;
  min-width: 12rem;
  padding: 0.7rem 0.85rem;
  background: #12141a;
  color: #f4f6fa;
  border-radius: 10px;
  font-size: 0.85rem;
  word-break: break-all;
}

.demo-meta {
  margin: 0 0 1rem;
  color: var(--muted);
  font-size: 0.92rem;
}

.demo-steps {
  margin: 0 0 1.15rem;
  padding-left: 1.2rem;
  color: var(--ink-soft);
}

.demo-steps li {
  margin: 0.35rem 0;
}

.demo-downloads {
  display: flex;
  flex-wrap: wrap;
  gap: 0.65rem;
  margin-bottom: 1rem;
}

.demo-note {
  margin: 0 0 1rem;
  color: var(--muted);
  font-size: 0.9rem;
}

/* —— Pricing —— */
.billing-toggle {
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  padding: 0.3rem;
  border: 1px solid var(--line);
  border-radius: 12px;
  background: var(--surface-2);
  margin-bottom: 1.75rem;
}

.billing-toggle button {
  border: 0;
  background: transparent;
  color: var(--ink-soft);
  font: inherit;
  font-weight: 700;
  padding: 0.65rem 1rem;
  border-radius: 9px;
  cursor: pointer;
}

.billing-toggle button[aria-pressed="true"] {
  background: var(--ink);
  color: #fff;
}

.save-pill {
  margin-left: 0.25rem;
  font-size: 0.75rem;
  font-weight: 800;
  color: var(--ok);
  letter-spacing: 0.02em;
}

.plans {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 1rem;
}

.plan {
  display: flex;
  flex-direction: column;
  gap: 1rem;
  padding: 1.35rem 1.2rem 1.2rem;
  background: var(--surface-2);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  min-height: 100%;
}

.plan.is-hot {
  border-color: var(--brand);
  box-shadow: var(--shadow);
  position: relative;
}

.plan-badge {
  position: absolute;
  top: -0.65rem;
  left: 1rem;
  background: var(--brand);
  color: #fff;
  font-size: 0.72rem;
  font-weight: 800;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  padding: 0.3rem 0.55rem;
  border-radius: 6px;
}

.plan-name {
  margin: 0;
  font-family: var(--font-display);
  font-size: 1.45rem;
  letter-spacing: -0.03em;
}

.plan-tag {
  margin: -0.55rem 0 0;
  color: var(--muted);
  font-size: 0.92rem;
}

.plan-price {
  display: flex;
  align-items: baseline;
  gap: 0.25rem;
  font-family: var(--font-display);
  letter-spacing: -0.04em;
}

.plan-price .currency {
  font-size: 1.1rem;
  font-weight: 700;
}

.plan-price .amount {
  font-size: 2.35rem;
  font-weight: 800;
  line-height: 1;
}

.plan-price .period {
  color: var(--muted);
  font-size: 0.95rem;
  font-weight: 600;
}

.plan-meta {
  margin: 0;
  padding: 0;
  list-style: none;
  display: grid;
  gap: 0.45rem;
  color: var(--ink-soft);
  font-size: 0.95rem;
  flex: 1;
}

.plan-meta li {
  padding-left: 0.9rem;
  position: relative;
}

.plan-meta li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 0.55rem;
  width: 0.4rem;
  height: 0.4rem;
  background: var(--brand);
}

.pricing-note {
  margin: 1.5rem 0 0;
  color: var(--muted);
  font-size: 0.92rem;
  max-width: 46rem;
}

/* —— FAQ —— */
.faq {
  display: grid;
  gap: 0.75rem;
  max-width: 720px;
}

.faq details {
  background: var(--surface-2);
  border: 1px solid var(--line);
  border-radius: 12px;
  padding: 1rem 1.15rem;
}

.faq summary {
  cursor: pointer;
  font-weight: 700;
  font-family: var(--font-display);
  letter-spacing: -0.02em;
  list-style: none;
}

.faq summary::-webkit-details-marker {
  display: none;
}

.faq details[open] summary {
  margin-bottom: 0.55rem;
  color: var(--brand-ink);
}

.faq p {
  margin: 0;
  color: var(--ink-soft);
}

/* —— CTA final —— */
.final-cta {
  text-align: center;
  padding: 4.5rem 0;
}

.final-cta h2 {
  margin: 0 0 0.65rem;
  font-family: var(--font-display);
  font-size: clamp(1.8rem, 4vw, 2.6rem);
  letter-spacing: -0.04em;
}

.final-cta p {
  margin: 0 auto 1.5rem;
  max-width: 32rem;
  color: var(--ink-soft);
}

.final-cta .actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
  justify-content: center;
}

/* —— Footer —— */
.site-footer {
  border-top: 1px solid var(--line);
  padding: 2rem 0 2.5rem;
  color: var(--muted);
  font-size: 0.92rem;
}

.site-footer .wrap {
  display: flex;
  flex-wrap: wrap;
  gap: 1rem;
  justify-content: space-between;
  align-items: center;
}

.site-footer a {
  color: var(--ink-soft);
  text-decoration: none;
}

.site-footer a:hover {
  color: var(--brand);
}

/* —— Reveal motion —— */
.reveal {
  opacity: 0;
  transform: translateY(22px);
  transition: opacity 0.7s ease, transform 0.7s ease;
}

.reveal.is-in {
  opacity: 1;
  transform: translateY(0);
}

/* —— Checkout modal —— */
.modal[hidden] {
  display: none !important;
}

.modal {
  position: fixed;
  inset: 0;
  z-index: 50;
  display: grid;
  place-items: center;
  padding: 1rem;
  background: rgba(10, 11, 14, 0.55);
}

.modal-card {
  width: min(420px, 100%);
  background: var(--surface-2);
  border: 1px solid var(--line);
  border-radius: 16px;
  padding: 1.35rem 1.25rem 1.25rem;
  box-shadow: var(--shadow);
}

.modal-card h3 {
  margin: 0 0 0.35rem;
  font-family: var(--font-display);
  letter-spacing: -0.03em;
}

.modal-card .sub {
  margin: 0 0 1rem;
  color: var(--muted);
  font-size: 0.95rem;
}

.field {
  display: grid;
  gap: 0.35rem;
  margin-bottom: 0.85rem;
}

.field label {
  font-size: 0.88rem;
  font-weight: 700;
  color: var(--ink-soft);
}

.field input {
  border: 1px solid var(--line);
  border-radius: 10px;
  padding: 0.75rem 0.85rem;
  font: inherit;
  background: #fff;
  color: var(--ink);
}

.field input:focus {
  outline: 2px solid rgba(225, 6, 0, 0.25);
  border-color: var(--brand);
}

.modal-actions {
  display: flex;
  gap: 0.6rem;
  margin-top: 0.5rem;
}

.modal-status {
  min-height: 1.25rem;
  margin: 0.35rem 0 0;
  font-size: 0.88rem;
  color: var(--muted);
}

.modal-status.err {
  color: var(--brand);
}

.modal-status.ok {
  color: var(--ok);
}

/* —— Utility pages —— */
.page-simple {
  min-height: 100vh;
  display: grid;
  place-items: center;
  padding: 2rem 1rem;
}

.page-simple .box {
  width: min(520px, 100%);
  background: var(--surface-2);
  border: 1px solid var(--line);
  border-radius: 16px;
  padding: 2rem 1.5rem;
  text-align: center;
}

.page-simple h1 {
  margin: 0 0 0.65rem;
  font-family: var(--font-display);
  letter-spacing: -0.03em;
}

.page-simple p {
  margin: 0 0 1.35rem;
  color: var(--ink-soft);
}

@media (max-width: 980px) {
  .plans,
  .feature-icons,
  .security-grid,
  .perf-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (max-width: 800px) {
  .demo-box {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 640px) {
  .wrap,
  .wrap.narrow {
    width: min(var(--max), calc(100% - 1.5rem));
  }

  .topnav {
    width: min(var(--max), calc(100% - 1.5rem));
  }

  .topnav-links a:not(.btn) {
    display: none;
  }

  .plans,
  .feature-icons,
  .security-grid,
  .perf-grid {
    grid-template-columns: 1fr;
  }

  .hero-content,
  .hero-inner > .hero-content {
    padding-top: 6.5rem;
  }

  .trust-checks {
    justify-content: center;
    gap: 0.5rem 1rem;
  }

  .trust-checks li {
    font-size: 0.82rem;
    white-space: normal;
  }

  .trust-bar {
    padding: 0.7rem 0;
  }
}

@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    animation: none !important;
    transition: none !important;
  }

  .reveal {
    opacity: 1;
    transform: none;
  }

  html {
    scroll-behavior: auto;
  }
}
