:root {
  color-scheme: dark;

  /* Stack-like palette */
  --orange: #f48024;
  --orange-dark: #d66a12;

  /* Backgrounds */
  --bg: #0b0b0b; /* mais preto */
  --surface: #1c1c1c;
  --surface-2: #2a2a2a;

  /* Text */
  --text: #ffffff;
  --muted: #b3b3b3;

  /* Lines & shadows */
  --line: #3a3a3a;
  --shadow: 0 18px 40px rgba(0, 0, 0, 0.35);

  /* Mapped tokens for existing components */
  --primary: var(--orange);
  --accent: var(--orange);
  --accent-strong: var(--orange-dark);
  --accent-soft: rgba(244, 128, 36, 0.14);
  --round: 1000px;

  /* Display font (optional): will fall back if Pregio isn't installed/loaded */
  --display-font: "Pregio", "Plus Jakarta Sans", -apple-system, BlinkMacSystemFont,
    "SF Pro Display", "Segoe UI", "Liberation Sans", "Helvetica Neue", Arial,
    sans-serif;
}

* {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

body {
  font-family: "Plus Jakarta Sans", -apple-system, BlinkMacSystemFont,
    "SF Pro Display", "Segoe UI", "Liberation Sans", "Helvetica Neue", Arial,
    sans-serif;
  background: var(--bg);
  color: var(--text);
  line-height: 1.6;
  min-height: 100vh;
  font-size: 13px;
}

#top {
  position: absolute;
  top: 0;
  left: 0;
}

.js:not(.is-loaded) .reveal {
  opacity: 0;
  transform: translateY(10px);
}

.js.is-loaded .reveal {
  animation: linearReveal 520ms linear both;
  animation-delay: var(--d, 0ms);
  will-change: opacity, transform;
}

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

@media (prefers-reduced-motion: reduce) {
  .js:not(.is-loaded) .reveal {
    opacity: 1;
    transform: none;
  }
  .js.is-loaded .reveal {
    animation: none;
  }
}

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

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

.container {
  width: min(1100px, 92vw);
  margin: 0 auto;
}

.hero .container {
  width: min(1260px, 94vw);
}

.nav {
  position: sticky;
  top: 0;
  background: rgba(11, 11, 11, 0.72);
  backdrop-filter: blur(14px);
  border-bottom: 1px solid rgba(255, 255, 255, 0.06);
  z-index: 10;
}

.nav-content {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 18px 0;
  gap: 14px;
}

.brand {
  font-weight: 700;
  letter-spacing: -0.02em;
  font-size: 1.05rem;
}

.nav-links {
  flex: 1;
  display: flex;
  justify-content: center;
  gap: 22px;
  align-items: center;
  font-size: 0.95rem;
  color: rgba(255, 255, 255, 0.78);
  min-width: 0;
}

.nav-actions {
  display: flex;
  align-items: center;
  gap: 14px;
}

.lang-switch {
  display: inline-flex;
  background: rgba(255, 255, 255, 0.06);
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 999px;
  overflow: hidden;
}

.lang-btn {
  background: transparent;
  border: none;
  color: rgba(255, 255, 255, 0.75);
  padding: 8px 10px;
  min-width: 40px;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.2s ease;
  font-size: 16px;
  line-height: 1;
}

.lang-btn.active {
  background: rgba(244, 128, 36, 0.18);
  color: #fff;
}

.btn {
  background: linear-gradient(180deg, #ff9d4d, var(--orange));
  color: #fff;
  border: none;
  padding: 12px 22px;
  border-radius: var(--round);
  font-weight: 600;
  letter-spacing: -0.01em;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  box-shadow: 0 8px 20px rgba(244, 128, 36, 0.35);
  transition: transform 0.2s ease, filter 0.2s ease, box-shadow 0.2s ease;
}

.btn:hover {
  transform: translateY(-2px);
  filter: brightness(1.02);
  box-shadow: 0 12px 30px rgba(244, 128, 36, 0.45);
}

.btn.ghost {
  background: transparent;
  color: rgba(255, 255, 255, 0.9);
  border: 1px solid rgba(255, 255, 255, 0.14);
  box-shadow: none;
}

.btn.pill {
  padding: 10px 16px;
  font-size: 0.9rem;
  background: rgba(255, 255, 255, 0.06);
  color: rgba(255, 255, 255, 0.9);
  border: 1px solid rgba(255, 255, 255, 0.12);
  box-shadow: none;
  border-radius: var(--round);
}

.hero {
  padding: 64px 0 40px;
  background: transparent;
  color: var(--text);
}

.hero-panel {
  background: transparent;
  border: none;
  border-radius: 32px;
  overflow: hidden;
  box-shadow: 0 28px 90px rgba(0, 0, 0, 0.55);
  position: relative;
}

.hero-content {
  display: grid;
  grid-template-columns: 1fr;
  gap: 28px;
  padding: 42px;
  align-items: center;
  max-width: 860px;
  margin: 0;
}

.hero-left {
  max-width: 760px;
}

.hero-left h1 {
  font-family: var(--display-font);
  font-size: clamp(2.6rem, 5vw, 4rem);
  line-height: 1.05;
  margin: 14px 0 14px;
  letter-spacing: -0.02em;
}

.badge {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 8px 12px;
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.07);
  color: rgba(255, 255, 255, 0.86);
  font-weight: 700;
  font-size: 0.75rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  margin-bottom: 14px;
}

.lead {
  font-size: 17px;
  color: rgba(255, 255, 255, 0.72);
  margin-bottom: 22px;
  white-space: pre-line;
}

.hero-form {
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 12px;
  margin: 22px 0 22px;
  align-items: center;
}

.hero-form input {
  width: 100%;
  background: rgba(255, 255, 255, 0.06);
  border: 1px solid rgba(255, 255, 255, 0.12);
  color: rgba(255, 255, 255, 0.92);
  padding: 12px 16px;
  border-radius: var(--round);
  outline: none;
}

.hero-form input::placeholder {
  color: rgba(255, 255, 255, 0.45);
}

.hero-stats {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 0;
  border-top: 1px solid rgba(255, 255, 255, 0.08);
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
  margin-top: 6px;
}

.stat {
  padding: 18px 0;
}

.stat + .stat {
  border-left: 1px solid rgba(255, 255, 255, 0.08);
  padding-left: 18px;
  margin-left: 18px;
}

.stat-value {
  font-size: 2.2rem;
  font-weight: 700;
  letter-spacing: -0.02em;
}

.stat-label {
  color: rgba(255, 255, 255, 0.62);
  font-size: 0.95rem;
}

/* rating removido */

.hero-card {
  background: rgba(255, 255, 255, 0.84);
  border: 1px solid rgba(0, 0, 0, 0.1);
  border-radius: 20px;
  padding: 24px;
  box-shadow: 0 30px 60px rgba(0, 0, 0, 0.25);
  position: relative;
  overflow: hidden;
  color: #1a1a1a;
}

/* imagem da hero removida */

.card-header {
  font-weight: 600;
  margin-bottom: 12px;
}

.hero-card ul {
  list-style: none;
  display: grid;
  gap: 12px;
  margin-bottom: 16px;
  color: rgba(26, 26, 26, 0.78);
}

.card-footer {
  font-size: 0.9rem;
  color: rgba(26, 26, 26, 0.65);
}

.section {
  padding: 80px 0;
}

.section.alt {
  background: #141414;
}

.section-title {
  margin-bottom: 32px;
}

.section-title h2 {
  font-family: var(--display-font);
  font-size: clamp(1.9rem, 3vw, 2.5rem);
  margin-bottom: 10px;
}

.section-title p {
  color: var(--muted);
}

.steps {
  display: grid;
  gap: 20px;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
}

.step {
  background: var(--surface);
  padding: 24px;
  border-radius: 18px;
  border: 1px solid var(--line);
  box-shadow: var(--shadow);
}

.step-number {
  font-size: 0.8rem;
  color: var(--muted);
  letter-spacing: 0.2em;
}

.step h3 {
  margin: 12px 0 6px;
}

/* Expandable gallery (Como funciona) */
.how-gallery {
  --gap: 8px;
  --base: clamp(2rem, 8cqi, 80px);
  --speed: 0.6s;
  --easing: cubic-bezier(0.22, 1, 0.36, 1);

  display: grid;
  grid-template-columns: 10fr 1fr 1fr 1fr 1fr;
  gap: var(--gap);
  list-style: none;
  padding: 0;
  margin: 0;
  width: min(980px, 100%);
  height: clamp(300px, 40dvh, 474px);
  transition: grid-template-columns var(--speed) var(--easing);
  container-type: inline-size;
}

.how-item {
  background: rgba(255, 255, 255, 0.02);
  border: 1px solid rgba(255, 255, 255, 0.08);
  position: relative;
  overflow: hidden;
  min-width: var(--base);
  border-radius: 12px;
}

.how-item :is(svg, h3) {
  opacity: 0.6;
  transition: opacity calc(var(--speed) * 1.2) var(--easing);
}

.how-item :is(a, p) {
  opacity: 0;
  transition: opacity calc(var(--speed) * 1.2) var(--easing);
  width: fit-content;
}

.how-item img {
  filter: grayscale(1) brightness(1.2);
  transform: scale(1.06);
  transition: filter calc(var(--speed) * 1.2) var(--easing),
    transform calc(var(--speed) * 1.2) var(--easing);
}

.how-item[data-active="true"] :is(a, p, h3, svg) {
  opacity: var(--opacity, 1);
}

.how-item[data-active="true"] :is(a, p) {
  transition-delay: calc(var(--speed) * 0.25);
}

.how-item[data-active="true"] img {
  filter: grayscale(0) brightness(1);
  transform: scale(1);
  transition-delay: calc(var(--speed) * 0.25);
}

.how-article {
  width: calc(var(--article-width, 420) * 1px);
  height: 100%;
  position: absolute;
  top: 0;
  left: 0;
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  gap: 12px;
  padding-inline: calc(var(--base) * 0.5 - 9px);
  padding-bottom: 16px;
  overflow: hidden;
  font-family: ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, "Liberation Mono",
    "Courier New", monospace;
}

.how-article h3 {
  position: absolute;
  top: 14px;
  left: calc(var(--base) * 0.5);
  transform-origin: 0 50%;
  transform: rotate(90deg);
  font-size: 0.95rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.12em;
  white-space: nowrap;
}

.how-article svg {
  width: 18px;
  height: 18px;
  fill: none;
  stroke: currentColor;
  stroke-width: 2;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.how-article p {
  font-size: 13px;
  text-wrap: balance;
  line-height: 1.25;
  --opacity: 0.82;
  color: rgba(255, 255, 255, 0.8);
}

.how-article a {
  position: absolute;
  bottom: 14px;
  height: 18px;
  line-height: 1;
  color: inherit;
}

.how-article a span {
  display: inline-block;
  line-height: 18px;
  transform: translateX(calc(var(--base) * 0.5));
  font-weight: 700;
}

.how-article img {
  position: absolute;
  pointer-events: none;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  mask: radial-gradient(100% 100% at 100% 0, #fff, #0000);
  -webkit-mask: radial-gradient(100% 100% at 100% 0, #fff, #0000);
}

@media (max-width: 900px) {
  .how-gallery {
    width: 100%;
  }
}

@media (max-width: 720px) {
  .how-gallery {
    grid-template-columns: 7fr 1fr 1fr 1fr 1fr;
    height: 360px;
    max-width: 100%;
  }
}

.grid-3,
.grid-2 {
  display: grid;
  gap: 20px;
}

.grid-3 {
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
}

.grid-2 {
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
}

.card {
  background: var(--surface);
  padding: 24px;
  border-radius: 18px;
  border: 1px solid var(--line);
  box-shadow: var(--shadow);
  position: relative;
  overflow: hidden;
  transition: transform 0.2s ease, border-color 0.2s ease;
}

.card::before {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(
    140deg,
    rgba(244, 128, 36, 0.12),
    transparent 55%
  );
  pointer-events: none;
}

.card:hover {
  transform: translateY(-6px);
  border-color: rgba(244, 128, 36, 0.6);
}

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

.card p {
  color: var(--muted);
}

.mini-showcase {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 18px;
  margin-top: 28px;
  color: var(--muted);
}

.metrics {
  display: grid;
  gap: 24px;
  align-items: center;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
}

.metrics-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(160px, 1fr));
  gap: 18px;
}

.metrics-grid strong {
  font-size: 1.8rem;
  display: block;
}

.metrics-grid span {
  color: var(--muted);
}

.cta {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
  gap: 30px;
  align-items: center;
}

.cta-copy {
  display: grid;
  gap: 12px;
}

.cta-points {
  list-style: none;
  display: grid;
  gap: 8px;
  color: var(--muted);
}

.cta-form {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: 20px;
  padding: 26px;
  display: grid;
  gap: 14px;
  box-shadow: var(--shadow);
}

.cta-form label span {
  display: inline-block;
  margin-bottom: 6px;
}

.cta-form label {
  display: grid;
  gap: 6px;
  font-size: 0.9rem;
}

.cta-form input {
  padding: 12px 14px;
  border-radius: var(--round);
  border: 1px solid var(--line);
  font-size: 0.95rem;
  background: var(--surface);
  color: var(--text);
}

.cta-form input:focus {
  outline: none;
  border-color: rgba(244, 128, 36, 0.6);
  box-shadow: 0 0 0 3px rgba(244, 128, 36, 0.18);
}

.form-note {
  color: var(--muted);
  font-size: 0.85rem;
}

.pill {
  display: inline-flex;
  align-items: center;
  padding: 6px 10px;
  border-radius: var(--round);
  background: var(--accent-soft);
  color: var(--accent);
  font-size: 0.78rem;
  font-weight: 700;
  letter-spacing: 0.02em;
}

.pill.ghost {
  background: transparent;
  color: var(--muted);
  border: 1px solid var(--line);
}

.proof {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 16px;
  margin-top: 24px;
}

.proof-item {
  background: var(--surface);
  border: 1px solid var(--line);
  padding: 16px;
  border-radius: 14px;
  color: var(--muted);
  box-shadow: var(--shadow);
}

.footer {
  border-top: 1px solid var(--line);
  padding: 24px 0;
  background: var(--surface);
}

.footer-content {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 12px;
  font-size: 0.9rem;
  color: var(--muted);
}

.floating-cta {
  position: fixed;
  bottom: 18px;
  left: 50%;
  transform: translateX(-50%);
  padding: 12px 14px 12px 16px;
  border-radius: 18px;
  background: rgba(42, 42, 42, 0.78);
  border: 1px solid rgba(255, 255, 255, 0.08);
  box-shadow: 0 18px 40px rgba(0, 0, 0, 0.45),
    inset 0 1px 0 rgba(255, 255, 255, 0.06);
  display: grid;
  grid-template-columns: auto 1fr auto;
  align-items: center;
  gap: 12px;
  backdrop-filter: blur(16px) saturate(140%);
  width: min(520px, 92vw);
  animation: fadeUp 0.35s ease;
}

.glass {
  background: rgba(42, 42, 42, 0.7);
  border: 1px solid rgba(255, 255, 255, 0.08);
  box-shadow: 0 18px 40px rgba(0, 0, 0, 0.45),
    inset 0 1px 0 rgba(255, 255, 255, 0.06);
  backdrop-filter: blur(16px) saturate(140%);
}

.floating-cta__text {
  display: grid;
  gap: 2px;
}

.floating-cta strong {
  display: block;
  font-size: 0.98rem;
}

.floating-cta span {
  color: var(--muted);
  font-size: 0.88rem;
}

.floating-cta .btn {
  box-shadow: none;
  padding: 10px 16px;
}

.floating-cta__close {
  background: transparent;
  border: 1px solid rgba(255, 255, 255, 0.08);
  color: rgba(255, 255, 255, 0.82);
  width: 30px;
  height: 30px;
  border-radius: 50%;
  font-size: 18px;
  line-height: 1;
  display: grid;
  place-items: center;
  cursor: pointer;
  transition: all 0.2s ease;
  backdrop-filter: blur(6px);
}

.floating-cta__close:hover {
  background: rgba(255, 255, 255, 0.08);
  color: #fff;
  transform: translateY(-1px);
}

@keyframes fadeUp {
  from {
    opacity: 0;
    transform: translate(-50%, 10px);
  }
  to {
    opacity: 1;
    transform: translate(-50%, 0);
  }
}

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

  .hero {
    padding-top: 60px;
  }

  .floating-cta {
    grid-template-columns: auto 1fr auto;
  }

  .hero-content {
    padding: 26px;
  }

  .hero-form {
    grid-template-columns: 1fr;
  }

}

/* Stacking cards */
.stack-shell {
  position: relative;
  padding: 80px 0 60px;
}

.stack-hero {
  display: flex;
  justify-content: center;
  padding: 0 5vw 40px;
}

.stack-hero__content {
  max-width: 820px;
  text-align: center;
  display: grid;
  gap: 12px;
}

.stack-hero__content h2 {
  font-size: clamp(2.1rem, 3.6vw, 3rem);
  letter-spacing: -0.02em;
}

.stack-hero__lead {
  color: var(--muted);
  font-size: 1.05rem;
}

.stack-hero__hint {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  color: var(--muted);
  justify-content: center;
}

.stack-hero__hint .dot {
  width: 10px;
  height: 10px;
  border-radius: 999px;
  background: var(--accent);
  box-shadow: 0 0 12px rgba(124, 240, 200, 0.6);
}

.stack-section {
  position: relative;
  width: 100%;
  height: 90vh;
  display: flex;
  align-items: center;
  justify-content: center;
}

.cards-wrapper {
  position: relative;
  width: min(1100px, 92vw);
  height: min(72vh, 760px);
  perspective: 1000px;
}

.stack-card {
  position: absolute;
  inset: 0;
  border-radius: 22px;
  border: 1px solid var(--line);
  overflow: hidden;
  transform-origin: top center;
  will-change: transform;
  box-shadow: 0 16px 50px rgba(0, 0, 0, 0.1);
  background: var(--surface);
}

.stack-card img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  z-index: 0;
}

.stack-card__overlay {
  position: absolute;
  inset: 0;
  background: #000;
  opacity: 0;
  z-index: 1;
  pointer-events: none;
}

.stack-card__content {
  position: absolute;
  inset: 0;
  z-index: 2;
  padding: 28px;
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  background: linear-gradient(to top, rgba(0, 0, 0, 0.92) 0%, rgba(0, 0, 0, 0.35) 50%, transparent 100%);
  pointer-events: none;
}

.stack-card__text-wrapper {
  max-width: 82%;
  pointer-events: auto;
}

.stack-card__title {
  font-size: clamp(1.9rem, 3.2vw, 3rem);
  color: #fff;
  line-height: 1.12;
  font-weight: 500;
  margin-bottom: 16px;
  letter-spacing: -0.01em;
}

.stack-card__actions {
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
}

.stack-card__actions a {
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.12);
  padding: 10px 16px;
  font-size: 0.95rem;
  border: 1px solid rgba(255, 255, 255, 0.2);
  color: #fff;
  text-decoration: none;
  transition: all 0.25s ease;
  backdrop-filter: blur(10px);
  cursor: pointer;
}

.stack-card__actions a:hover {
  background: #fff;
  color: #000;
  border-color: #fff;
  transform: translateY(-2px);
}

.stack-footer {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 12px;
  margin-top: 32px;
  flex-wrap: wrap;
  color: var(--muted);
}

.stack-footer .btn {
  box-shadow: none;
}

.interest-section {
  padding: 60px 0;
}

.interest-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 24px;
  align-items: center;
}

.interest-counter {
  padding: 20px;
  border-radius: 16px;
  border: 1px solid var(--line);
  display: grid;
  gap: 8px;
}

.interest-number {
  font-size: 2.4rem;
  font-weight: 700;
}

.interest-meta {
  color: var(--muted);
}

@media (max-width: 768px) {
  .cards-wrapper {
    height: min(70vh, 620px);
  }
  .stack-card__text-wrapper {
    max-width: 100%;
  }
  .stack-card__title {
    font-weight: 600;
  }
  .nav-actions {
    gap: 10px;
  }
}
