/* ===========================================================
   Capsula — Home
   HTML + CSS puros, recriação fiel do layout
   =========================================================== */

:root {
  /* Cores */
  --bg: #ffffff; /* off-white quente, sutil */
  --ink: #0e1b22; /* texto principal, azul-escuro quase preto */
  --ink-soft: #1c2a33;
  --muted: #b7b7b5; /* nav inativo */
  --primary: #c9d2da; /* botão "Vamos falar" — azul/cinza claro */
  --primary-ink: #0e1b22;
  --line: #0e1b22;

  /* Tipografia */
  --font-sans: 'Manrope', 'Söhne', 'Helvetica Neue', Helvetica, Arial, sans-serif;
  --font-mono: 'JetBrains Mono', ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;

  /* Layout */
  --pad-x: clamp(24px, 4.5vw, 80px);
  --pad-y: clamp(24px, 3.5vw, 48px);

  /* Tamanhos */
  --title-size: clamp(40px, 5.6vw, 52px);
  --lede-size: clamp(16px, 1.15vw, 20px);
  --nav-size: clamp(13px, 0.95vw, 16px);
  --btn-size: clamp(12px, 0.85vw, 14px);
  --hero-image-w: clamp(280px, 42vw, 720px);
  --hero-image-h: clamp(380px, 78vh, 920px);
  --hero-glass-height: 50%;
  --hero-glass-blur: 10px;
}

* {
  box-sizing: border-box;
}

html,
body {
  margin: 0;
  padding: 0;
  background: var(--bg);
  color: var(--ink);
  font-family: var(--font-sans);
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  text-rendering: optimizeLegibility;
}

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

/* -----------------------------------------------------------
   HERO (página única, ocupa a viewport no desktop)
   ----------------------------------------------------------- */
.hero {
  position: relative;
  min-height: 100vh;
  padding: var(--pad-y) var(--pad-x);
  display: flex;
  flex-direction: column;
  overflow: hidden;
  isolation: isolate;
}

.hero::after {
  content: '';
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  height: var(--hero-glass-height);
  z-index: 2;
  pointer-events: none;
  background: linear-gradient(
    to top,
    rgba(255, 255, 255, 1) 0%,
    rgba(255, 255, 255, 0.96) 22%,
    rgba(255, 255, 255, 0.78) 48%,
    rgba(255, 255, 255, 0.42) 72%,
    rgba(255, 255, 255, 0.16) 88%,
    rgba(255, 255, 255, 0) 100%
  );
}

/* -----------------------------------------------------------
   TOPBAR — logo à esquerda, nav à direita
   ----------------------------------------------------------- */
.topbar {
  position: relative;
  z-index: 4;
  display: flex;
  justify-content: space-between;
  align-items: center;
}

/* Logo */
.logo {
  display: inline-flex;
  align-items: center;
  color: var(--ink);
}

.logo-full {
  display: block;
  width: clamp(136px, 11vw, 190px);
  height: auto;
}

.logo-mark {
  display: none;
  width: clamp(28px, 7.5vw, 38px);
  height: auto;
}

/* Nav (monoespaçado, com caret piscando) */
.nav {
  display: inline-flex;
  align-items: baseline;
  gap: 0.6em;
  font-family: var(--font-mono);
  font-size: var(--nav-size);
  letter-spacing: 0.04em;
  color: var(--ink);
}

.nav-item {
  position: relative;
  padding: 0.35em 0.15em;
  transition: color 0.2s ease;
}

.nav-item.is-muted {
  color: var(--muted);
}
.nav-item:hover {
  color: var(--ink);
}

.caret {
  display: inline-block;
  margin-left: 0.05em;
  animation: blink 1s steps(1) infinite;
  color: var(--ink);
}

@keyframes blink {
  0%,
  50% {
    opacity: 1;
  }
  50.01%,
  100% {
    opacity: 0;
  }
}

/* -----------------------------------------------------------
   IMAGEM (centralizada, ocupa o miolo da composição)
   ----------------------------------------------------------- */
.hero-image {
  position: absolute;
  inset: 0;
  display: flex;
  justify-content: center;
  align-items: center;
  pointer-events: none;
  z-index: 1;
}

.hero-portrait {
  position: relative;
  z-index: 1;
  display: block;
  width: var(--hero-image-w);
  height: var(--hero-image-h);
  object-fit: cover;
  object-position: center;
}

/* -----------------------------------------------------------
   CONTEÚDO DE BAIXO — título à esquerda, lede à direita
   ----------------------------------------------------------- */
.hero-content {
  position: relative;
  z-index: 4;
  margin-top: auto;
  display: grid;
  grid-template-columns: minmax(0, 1.15fr) minmax(0, 0.85fr);
  gap: clamp(24px, 4vw, 80px);
  align-items: end;
  padding-top: clamp(40px, 6vh, 80px);
}

.headline {
  max-width: 760px;
}

.title {
  font-family: var(--font-sans);
  font-weight: 600;
  font-size: var(--title-size);
  line-height: 1.06;
  letter-spacing: -0.02em;
  color: var(--ink);
  margin: 0 0 clamp(28px, 3vw, 44px) 0;
  text-wrap: balance;
}

/* CTAs */
.cta-row {
  display: flex;
  gap: 14px;
  flex-wrap: wrap;
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-family: var(--font-mono);
  font-size: var(--btn-size);
  font-weight: 400;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  padding: 18px 32px;
  border-radius: 999px;
  border: 1.5px solid transparent;
  transition:
    background-color 0.2s ease,
    color 0.2s ease,
    transform 0.2s ease;
  cursor: pointer;
  white-space: nowrap;
}

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

.btn-primary:hover {
  background: #b8c3cd;
}

.btn-ghost {
  background: transparent;
  color: var(--ink);
  border-color: var(--line);
}

.btn-ghost:hover {
  background: var(--ink);
  color: var(--bg);
}

/* Lede (parágrafo à direita) */
.lede {
  max-width: 460px;
  justify-self: end;
  align-self: end;
  padding-bottom: 8px;
}

.lede p {
  margin: 0;
  font-size: var(--lede-size);
  line-height: 1.45;
  color: var(--ink);
  font-weight: 400;
}

.lede strong {
  font-weight: 700;
}

/* -----------------------------------------------------------
   MOBILE
   ----------------------------------------------------------- */
@media (max-width: 820px) {
  :root {
    --pad-x: 22px;
    --pad-y: 22px;
    --title-size: clamp(34px, 8.2vw, 48px);
    --lede-size: 16px;
    --hero-image-w: min(78vw, 480px);
    --hero-image-h: clamp(360px, 70vw, 560px);
    --hero-glass-height: 57%;
  }

  /* Logo vira só o triângulo */
  .logo-full {
    display: none;
  }
  .logo-mark {
    display: inline-block;
  }

  /* Nav menor */
  .nav {
    gap: 0.4em;
    font-size: 13px;
  }

  /* Layout empilhado */
  .hero {
    min-height: auto;
    padding-bottom: 48px;
  }

  .hero-image {
    position: relative;
    inset: auto;
    margin-top: 16px;
    height: auto;
  }

  .hero-portrait {
    width: var(--hero-image-w);
    height: var(--hero-image-h);
  }

  .hero-content {
    grid-template-columns: 1fr;
    gap: 36px;
    padding-top: 36px;
    margin-top: 0;
    align-items: start;
  }

  .title {
    font-size: var(--title-size);
    margin-bottom: 28px;
    text-wrap: pretty;
  }

  .cta-row {
    gap: 10px;
  }

  .btn {
    padding: 16px 26px;
    letter-spacing: 0.2em;
  }

  .lede {
    justify-self: start;
    max-width: none;
    padding-bottom: 0;
  }
}

/* Telas muito pequenas: força quebra natural dos botões */
@media (max-width: 360px) {
  .btn {
    padding: 14px 22px;
    font-size: 12px;
  }
}
