:root {
  --bg: #e4ebe8;
  --bg-deep: #d2ddd8;
  --surface: #f5f8f6;
  --ink: #143d3a;
  --ink-soft: #3d5c58;
  --muted: #6a7f7a;
  --line: #b8c9c3;
  --accent: #1f7a6c;
  --accent-hover: #186257;
  --header-top: #0f3330;
  --header-bot: #1a524c;
  --on-accent: #f5f8f6;
  --font-brand: "Fraunces", Georgia, serif;
  --font-ui: "Figtree", "Segoe UI", sans-serif;
  --max: 1100px;
}

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

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  font-family: var(--font-ui);
  color: var(--ink);
  background: var(--bg);
  line-height: 1.5;
}

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

code {
  font-size: 0.92em;
  background: var(--bg-deep);
  padding: 0.1em 0.4em;
  border-radius: 4px;
}

/* —— Top —— */
.top {
  position: fixed;
  inset: 0 0 auto;
  z-index: 20;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0.9rem clamp(1rem, 4vw, 2rem);
  background: color-mix(in srgb, var(--surface) 88%, transparent);
  backdrop-filter: blur(10px);
  border-bottom: 1px solid transparent;
  transition: border-color 0.3s ease, box-shadow 0.3s ease;
}

.top.is-scrolled {
  border-bottom-color: var(--line);
  box-shadow: 0 8px 24px color-mix(in srgb, var(--ink) 6%, transparent);
}

.top__brand {
  font-family: var(--font-brand);
  font-weight: 700;
  font-size: 1.35rem;
  letter-spacing: -0.02em;
}

.top__nav {
  display: flex;
  gap: 1.25rem;
  align-items: center;
  font-size: 0.95rem;
  font-weight: 500;
  color: var(--ink-soft);
}

.top__nav a:hover {
  color: var(--accent);
}

.top__cta {
  color: var(--on-accent) !important;
  background: var(--accent);
  padding: 0.45rem 0.9rem;
  border-radius: 6px;
}

.top__cta:hover {
  background: var(--accent-hover);
}

/* —— Hero —— */
.hero {
  position: relative;
  min-height: 100svh;
  display: grid;
  grid-template-columns: 1.05fr 1fr;
  align-items: end;
  gap: clamp(1.5rem, 4vw, 3rem);
  padding: clamp(5.5rem, 12vh, 7rem) clamp(1rem, 4vw, 2.5rem) 2.5rem;
  overflow: hidden;
  background: linear-gradient(
    165deg,
    var(--header-top) 0%,
    var(--header-bot) 42%,
    #245e56 78%,
    var(--bg-deep) 100%
  );
  color: var(--on-accent);
}

.hero__mist {
  position: absolute;
  inset: 0;
  background:
    radial-gradient(ellipse 70% 50% at 18% 30%, rgba(212, 235, 229, 0.18), transparent 55%),
    radial-gradient(ellipse 50% 40% at 85% 70%, rgba(15, 51, 48, 0.45), transparent 50%),
    repeating-linear-gradient(
      -12deg,
      transparent,
      transparent 18px,
      rgba(245, 248, 246, 0.02) 18px,
      rgba(245, 248, 246, 0.02) 19px
    );
  pointer-events: none;
  animation: mist-drift 18s ease-in-out infinite alternate;
}

@keyframes mist-drift {
  from {
    transform: translate3d(0, 0, 0) scale(1);
  }
  to {
    transform: translate3d(-1.5%, 1%, 0) scale(1.04);
  }
}

.hero__content,
.hero__stage {
  position: relative;
  z-index: 1;
  max-width: var(--max);
}

.hero__brand {
  margin: 0 0 0.35rem;
  font-family: var(--font-brand);
  font-size: clamp(3.2rem, 8vw, 5.2rem);
  font-weight: 700;
  line-height: 0.95;
  letter-spacing: -0.03em;
  opacity: 0;
  transform: translateY(18px);
  animation: rise 0.9s 0.1s ease forwards;
}

.hero__title {
  margin: 0 0 0.85rem;
  font-family: var(--font-ui);
  font-size: clamp(1.25rem, 2.6vw, 1.65rem);
  font-weight: 600;
  line-height: 1.25;
  color: #b7d4ce;
  opacity: 0;
  transform: translateY(18px);
  animation: rise 0.9s 0.25s ease forwards;
}

.hero__lead {
  margin: 0 0 1.6rem;
  max-width: 28ch;
  font-size: 1.05rem;
  color: color-mix(in srgb, var(--on-accent) 82%, transparent);
  opacity: 0;
  transform: translateY(18px);
  animation: rise 0.9s 0.4s ease forwards;
}

.hero__actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
  opacity: 0;
  transform: translateY(18px);
  animation: rise 0.9s 0.55s ease forwards;
}

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

.hero__stage {
  display: flex;
  justify-content: flex-end;
  align-items: flex-end;
  opacity: 0;
  transform: translateY(28px);
  animation: rise 1s 0.35s ease forwards;
}

/* Fake UI — visual dominante, sem “card” de marketing */
.stage {
  width: min(100%, 420px);
  background: var(--surface);
  color: var(--ink);
  border: 1px solid var(--line);
  border-radius: 10px 10px 0 0;
  box-shadow: 0 24px 60px rgba(15, 51, 48, 0.35);
  overflow: hidden;
  transform-origin: bottom center;
}

.stage__bar {
  display: flex;
  align-items: center;
  gap: 0.4rem;
  padding: 0.65rem 0.9rem;
  background: linear-gradient(180deg, var(--header-top), var(--header-bot));
  color: var(--on-accent);
  font-size: 0.85rem;
}

.stage__bar span {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: #6a8f88;
}

.stage__bar span:nth-child(1) {
  background: #c47a6a;
}
.stage__bar span:nth-child(2) {
  background: #c4b06a;
}
.stage__bar span:nth-child(3) {
  background: #6aa87a;
}

.stage__bar strong {
  margin-left: 0.5rem;
  font-family: var(--font-brand);
  font-weight: 700;
}

.stage__tabs {
  display: flex;
  gap: 0;
  padding: 0.55rem 0.7rem 0;
  background: var(--bg);
  border-bottom: 1px solid var(--line);
  font-size: 0.78rem;
  font-weight: 600;
  color: var(--ink-soft);
}

.stage__tabs span {
  padding: 0.45rem 0.7rem;
  border: 1px solid transparent;
  border-bottom: none;
}

.stage__tabs .is-on {
  background: var(--surface);
  border-color: var(--line);
  color: var(--ink);
  border-radius: 6px 6px 0 0;
}

.stage__list {
  list-style: none;
  margin: 0;
  padding: 0.75rem;
  background: var(--surface);
}

.stage__list li {
  display: grid;
  grid-template-columns: 64px 1fr auto;
  gap: 0.5rem;
  align-items: center;
  padding: 0.55rem 0.35rem;
  border-bottom: 1px solid var(--bg-deep);
  font-size: 0.86rem;
}

.stage__list li:last-child {
  border-bottom: none;
}

.stage__list em {
  font-style: normal;
  font-size: 0.75rem;
  font-weight: 700;
  color: var(--accent);
}

.stage__list b {
  font-weight: 600;
  font-size: 0.75rem;
  color: var(--muted);
}

.stage__toast {
  margin: 0.4rem 0.75rem 0.9rem;
  padding: 0.75rem 0.85rem;
  background: var(--bg);
  border: 1px solid var(--line);
  font-size: 0.82rem;
  animation: toast-in 0.7s 1.1s both;
}

.stage__toast div {
  display: flex;
  gap: 0.4rem;
  margin-top: 0.55rem;
}

.stage__toast i {
  font-style: normal;
  font-size: 0.75rem;
  font-weight: 600;
  padding: 0.3rem 0.55rem;
  border-radius: 4px;
  background: var(--bg-deep);
  color: var(--ink-soft);
}

.stage__toast i:first-child {
  background: var(--accent);
  color: var(--on-accent);
}

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

/* —— Buttons —— */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0.7rem 1.15rem;
  border-radius: 7px;
  font-weight: 600;
  font-size: 0.98rem;
  border: 1px solid transparent;
  transition: background 0.2s ease, transform 0.2s ease, border-color 0.2s ease;
}

.btn:hover {
  transform: translateY(-1px);
}

.btn--primary {
  background: var(--accent);
  color: var(--on-accent);
}

.btn--primary:hover {
  background: var(--accent-hover);
}

.btn--ghost {
  background: transparent;
  border-color: color-mix(in srgb, var(--on-accent) 35%, transparent);
  color: var(--on-accent);
}

.btn--ghost:hover {
  border-color: var(--on-accent);
  background: color-mix(in srgb, var(--on-accent) 8%, transparent);
}

.hero .btn--primary {
  background: var(--surface);
  color: var(--ink);
}

.hero .btn--primary:hover {
  background: #fff;
}

.btn--lg {
  padding: 0.95rem 1.5rem;
  font-size: 1.05rem;
}

/* —— Sections —— */
.block {
  max-width: var(--max);
  margin: 0 auto;
  padding: clamp(3.5rem, 8vw, 5.5rem) clamp(1rem, 4vw, 2rem);
}

.block--tint {
  max-width: none;
  background: linear-gradient(180deg, var(--bg-deep), var(--bg));
  border-block: 1px solid var(--line);
}

.block--tint > * {
  max-width: var(--max);
  margin-left: auto;
  margin-right: auto;
}

.block h2 {
  margin: 0 0 0.75rem;
  font-family: var(--font-brand);
  font-size: clamp(1.7rem, 3.5vw, 2.35rem);
  font-weight: 700;
  letter-spacing: -0.02em;
  line-height: 1.15;
  max-width: 18ch;
}

.block__lead {
  margin: 0 0 2rem;
  max-width: 42ch;
  color: var(--ink-soft);
  font-size: 1.08rem;
}

.steps {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  gap: 1.1rem;
}

.steps li {
  display: grid;
  grid-template-columns: 2.4rem 1fr;
  gap: 1rem;
  align-items: start;
  padding-bottom: 1.1rem;
  border-bottom: 1px solid var(--line);
}

.steps li:last-child {
  border-bottom: none;
  padding-bottom: 0;
}

.steps strong {
  display: grid;
  place-items: center;
  width: 2.4rem;
  height: 2.4rem;
  border-radius: 50%;
  background: var(--header-bot);
  color: var(--on-accent);
  font-size: 0.95rem;
}

.steps span {
  padding-top: 0.35rem;
  color: var(--ink-soft);
  font-size: 1.02rem;
}

.feats {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  gap: 0.85rem;
  max-width: 36rem;
}

.feats li {
  position: relative;
  padding-left: 1.35rem;
  color: var(--ink-soft);
  font-size: 1.05rem;
}

.feats li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 0.55em;
  width: 0.55rem;
  height: 0.55rem;
  border-radius: 2px;
  background: var(--accent);
}

.download {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 0.75rem;
}

.download__note {
  margin: 0;
  color: var(--muted);
  font-size: 0.92rem;
}

.foot {
  padding: 2rem clamp(1rem, 4vw, 2rem) 2.5rem;
  border-top: 1px solid var(--line);
  background: var(--surface);
  text-align: center;
}

.foot p {
  margin: 0.25rem 0;
}

.foot__muted {
  color: var(--muted);
  font-size: 0.9rem;
}

@media (max-width: 860px) {
  .hero {
    grid-template-columns: 1fr;
    align-items: start;
    min-height: auto;
    padding-bottom: 0;
  }

  .hero__stage {
    justify-content: center;
    margin-top: 1.5rem;
  }

  .stage {
    width: 100%;
    max-width: 420px;
    border-radius: 10px 10px 0 0;
  }

  .top__nav a:not(.top__cta) {
    display: none;
  }
}

@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    animation: none !important;
    transition: none !important;
  }

  .hero__brand,
  .hero__title,
  .hero__lead,
  .hero__actions,
  .hero__stage,
  .stage__toast {
    opacity: 1;
    transform: none;
  }
}
