:root {
  --bg: #f4f5f6;
  --text: #0b0f18;
  --muted: #8a8f99;
  --line: rgba(11, 15, 24, 0.14);
  --shadow: 0 24px 70px rgba(11, 15, 24, 0.18);
  --radius: 999px;
  --max: 1160px;
}

* {
  box-sizing: border-box;
}
html,
body {
  height: 100%;
}

body {
  margin: 0;
  font-family: ui-sans-serif, system-ui, -apple-system, Segoe UI, Roboto,
    Helvetica, Arial, "Apple Color Emoji", "Segoe UI Emoji";
  color: var(--text);
  background: radial-gradient(
    1200px 700px at 70% 35%,
    #ffffff 0%,
    var(--bg) 55%,
    #eef0f2 100%
  );
  overflow: hidden; /* ✅ sem scroll no body */
}

:focus-visible {
  outline: 3px solid rgba(0, 0, 0, 0.35);
  outline-offset: 4px;
  border-radius: 10px;
}

.container {
  width: min(var(--max), calc(100% - 48px));
  margin: 0 auto;
}

/* ✅ TRAVA A PÁGINA EM 100vh */
.page {
  height: 100vh;
  min-height: 100vh;
  display: grid;
  grid-template-rows: 86px 1fr; /* header fixo + main */
  overflow: hidden;
}

header {
  padding: 22px 0;
}
.nav {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
}
.brand {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  text-decoration: none;
  color: inherit;
  font-weight: 650;
  letter-spacing: -0.02em;
}
.brand span {
  opacity: 0.55;
  font-weight: 750;
}
.brand strong {
  opacity: 1;
  font-weight: 800;
}

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

.btn-pill {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 10px 16px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: rgba(255, 255, 255, 0.7);
  backdrop-filter: blur(8px);
  color: var(--text);
  text-decoration: none;
  font-weight: 650;
  box-shadow: 0 10px 30px rgba(11, 15, 24, 0.06);
  transition: transform 0.15s ease, background 0.15s ease;
  white-space: nowrap;
}
.btn-pill:hover {
  transform: translateY(-1px);
  background: rgba(255, 255, 255, 0.9);
}
.btn-pill .arrow {
  width: 18px;
  height: 18px;
  display: inline-block;
}

/* ✅ main não pode empurrar altura */
main {
  padding: 0;
  overflow: hidden;
  display: grid;
  align-items: stretch;
}

/* ✅ hero ocupa o espaço do main */
.hero {
  height: 100%;
  min-height: 0;
  display: grid;
  grid-template-columns: 1.05fr 0.95fr;
  gap: clamp(18px, 4vw, 44px);
  align-items: center;
}

.kicker {
  font-size: 18px;
  opacity: 0.85;
  margin: 0 0 10px;
}

.title {
  margin: 0;
  font-size: clamp(48px, 5.2vw, 92px);
  line-height: 0.92;
  letter-spacing: -0.04em;
  font-weight: 900;
}
.title .muted {
  color: rgba(11, 15, 24, 0.3);
  font-weight: 900;
}

.btn-primary {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 16px 22px;
  background: var(--text);
  color: #fff;
  border-radius: var(--radius);
  text-decoration: none;
  font-weight: 750;
  box-shadow: 0 18px 44px rgba(11, 15, 24, 0.25);
  transition: transform 0.15s ease, filter 0.15s ease;
  white-space: nowrap;
}
.btn-primary:hover {
  transform: translateY(-2px);
  filter: brightness(1.02);
}
.btn-primary svg {
  width: 18px;
  height: 18px;
}
.btn-nav {
  padding: 12px 20px;
  font-size: 15px;
  gap: 6px;
}

.desc {
  margin-top: 20px;
  max-width: 40ch;
  color: rgba(11, 15, 24, 0.7);
  font-size: 16px;
  line-height: 1.6;
}

/* ===== Typing animation ===== */
.typing-stage {
  display: grid;
  justify-items: start;
  align-self: center;
}
.typing-card {
  width: min(520px, 46vw);
  padding: 0;
  position: relative;
  display: grid;
}
.screen-line {
  font-size: clamp(32px, 3.6vw, 56px);
  line-height: 1.1;
  font-weight: 900;
  letter-spacing: -0.03em;
  min-height: 0;
  display: flex;
  align-items: center;
  gap: 0;
  padding: 6px 0;
  color: var(--text);
}
.cursor {
  width: 11px;
  height: 1.05em;
  background: rgba(11, 15, 24, 0.9);
  border-radius: 3px;
  margin-left: 8px;
  align-self: flex-end;
  animation: blink 0.85s steps(1) infinite;
}
@keyframes blink {
  50% {
    opacity: 0;
  }
}
/* ✅ Contato fixo no rodapé (não empurra layout) */
.contact-bar {
  position: fixed;
  left: 0;
  right: 0;
  bottom: 0;
  padding: 14px 24px;
  background: rgba(244, 245, 246, 0.75);
  backdrop-filter: blur(10px);
  border-top: 1px solid rgba(11, 15, 24, 0.12);
  color: rgba(11, 15, 24, 0.75);
  display: flex;
  gap: 18px;
  justify-content: center;
  align-items: center;
  font-size: 14px;
  flex-wrap: wrap;
}
.contact-bar strong {
  color: rgba(11, 15, 24, 0.9);
}
.contact-label {
  display: flex;
  flex-direction: column;
  gap: 2px;
  text-align: center;
}
.contact-label span {
  font-size: 13px;
  color: rgba(11, 15, 24, 0.6);
}
.contact-chip {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 10px 18px;
  border-radius: var(--radius);
  border: 1px solid rgba(11, 15, 24, 0.12);
  text-decoration: none;
  color: inherit;
  font-weight: 650;
  background: rgba(255, 255, 255, 0.85);
  box-shadow: 0 12px 28px rgba(11, 15, 24, 0.12);
  transition: transform 0.15s ease, background 0.15s ease;
}
.contact-chip:hover {
  transform: translateY(-1px);
  background: rgba(255, 255, 255, 0.95);
}

/* ===== Afiliados ===== */
body.has-scroll {
  overflow: auto;
}
body.has-scroll .page {
  min-height: 100vh;
  height: auto;
  grid-template-rows: auto 1fr;
}
body.has-scroll main {
  padding-bottom: 120px;
}
body.has-scroll .contact-bar {
  position: static;
  margin-top: 48px;
}
.affiliate-hero {
  padding-top: clamp(20px, 6vw, 80px);
  padding-bottom: clamp(20px, 4vw, 60px);
  max-width: 780px;
}
.affiliate-hero .title {
  font-size: clamp(40px, 4vw, 72px);
}
.affiliate-list {
  display: grid;
  gap: 26px;
  margin-bottom: 30px;
}
.affiliate-card {
  border-radius: 28px;
  padding: 28px;
  background: rgba(255, 255, 255, 0.82);
  border: 1px solid rgba(11, 15, 24, 0.08);
  box-shadow: 0 20px 50px rgba(11, 15, 24, 0.15);
  display: grid;
  gap: 14px;
}
.affiliate-card h2 {
  margin: 0;
  font-size: 30px;
}
.affiliate-card p {
  margin: 0;
  color: rgba(11, 15, 24, 0.7);
  line-height: 1.6;
}
.badge {
  display: inline-flex;
  align-items: center;
  padding: 6px 16px;
  border-radius: 999px;
  background: rgba(11, 15, 24, 0.08);
  font-size: 13px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.08em;
}
.card-actions {
  display: flex;
  justify-content: flex-start;
}

/* ✅ Responsivo (cabe no mobile sem scroll) */
@media (max-width: 920px) {
  body {
    overflow: auto;
  }
  .page {
    min-height: auto;
    height: auto;
  }
  .hero {
    grid-template-columns: 1fr;
    gap: 16px;
    align-content: center;
  }
  .typing-stage {
    display: none;
  }

  .typing-card {
    width: min(560px, 92vw);
    max-height: calc(100vh - 86px - 70px); /* header + footer */
    overflow: hidden;
  }
  .contact-bar {
    flex-direction: column;
  }
  .contact-chip {
    width: 100%;
    justify-content: center;
  }
  .affiliate-card {
    padding: 20px;
  }
}
