/* ============================================================
   Centimetra — estética de documentário espacial premium
   ============================================================ */

:root {
  --bg: #050d1a;
  --bg-soft: #081426;
  --blue: #4db8ff;
  --green: #2ecc71;
  --silver: #b8c2cf;
  --text: #e8edf4;
  --text-dim: #93a1b3;
  --border: rgba(184, 194, 207, 0.18);
  --border-strong: rgba(77, 184, 255, 0.35);
  --font: 'Inter', system-ui, -apple-system, sans-serif;
  --nav-h: 72px;
}

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

html {
  scroll-behavior: smooth;
}

html.lenis,
html.lenis body {
  height: auto;
}
.lenis.lenis-smooth {
  scroll-behavior: auto !important;
}

body {
  background: var(--bg);
  color: var(--text);
  font-family: var(--font);
  font-weight: 300;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}

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

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

/* ---------- utilitários ---------- */

.container {
  width: min(1200px, 100% - 3rem);
  margin-inline: auto;
}

.container--narrow {
  width: min(860px, 100% - 3rem);
}

.eyebrow {
  font-size: 0.72rem;
  font-weight: 400;
  letter-spacing: 0.32em;
  text-transform: uppercase;
  color: var(--blue);
  margin-bottom: 1.4rem;
}

.eyebrow--green {
  color: var(--green);
}

.section-title {
  font-size: clamp(1.9rem, 4.5vw, 3.4rem);
  font-weight: 300;
  line-height: 1.15;
  letter-spacing: -0.01em;
  color: var(--text);
}

.section-intro {
  margin-top: 1.4rem;
  font-size: clamp(1rem, 1.6vw, 1.2rem);
  color: var(--text-dim);
  max-width: 46ch;
}

.section-head {
  margin-bottom: clamp(3rem, 7vw, 5.5rem);
}

/* ---------- botões ---------- */

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 48px;
  padding: 0.85rem 2.2rem;
  font-family: var(--font);
  font-size: 0.82rem;
  font-weight: 400;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  border-radius: 999px;
  border: 0.5px solid transparent;
  cursor: pointer;
  transition: background 0.35s ease, color 0.35s ease, border-color 0.35s ease,
    transform 0.35s ease;
}

.btn--primary {
  background: var(--blue);
  color: #04101f;
}

.btn--primary:hover {
  background: #6ec6ff;
  transform: translateY(-2px);
}

.btn--ghost {
  border-color: var(--border-strong);
  color: var(--text);
  background: rgba(5, 13, 26, 0.35);
  backdrop-filter: blur(6px);
}

.btn--ghost:hover {
  border-color: var(--blue);
  color: var(--blue);
  transform: translateY(-2px);
}

.btn--full {
  width: 100%;
}

/* ============================================================
   NAV
   ============================================================ */

.nav {
  position: fixed;
  inset: 0 0 auto 0;
  z-index: 100;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1.5rem;
  height: var(--nav-h);
  padding-inline: clamp(1.25rem, 4vw, 3rem);
  transition: background 0.4s ease, border-color 0.4s ease;
  border-bottom: 0.5px solid transparent;
}

.nav.is-scrolled {
  background: rgba(5, 13, 26, 0.82);
  backdrop-filter: blur(14px);
  border-bottom-color: var(--border);
}

.nav__logo {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  min-height: 44px;
}

.nav__logo img {
  height: 30px;
  width: auto;
}

.nav__logo-fallback {
  font-size: 0.95rem;
  font-weight: 400;
  letter-spacing: 0.42em;
  color: var(--text);
}

.nav__links {
  display: flex;
  gap: clamp(1.4rem, 3vw, 2.6rem);
}

.nav__links a {
  font-size: 0.74rem;
  font-weight: 400;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--text-dim);
  padding: 0.75rem 0;
  transition: color 0.3s ease;
}

.nav__links a:hover {
  color: var(--blue);
}

.nav__right {
  display: flex;
  align-items: center;
  gap: 1.25rem;
}

.lang-toggle {
  display: flex;
  align-items: center;
  gap: 0.35rem;
  border: 0.5px solid var(--border);
  border-radius: 999px;
  padding: 0.3rem 0.9rem;
  min-height: 44px;
}

.lang-toggle__btn {
  background: none;
  border: none;
  font-family: var(--font);
  font-size: 0.74rem;
  letter-spacing: 0.14em;
  color: var(--text-dim);
  cursor: pointer;
  padding: 0.5rem 0.25rem;
  transition: color 0.3s ease;
}

.lang-toggle__btn.is-active {
  color: var(--blue);
}

.lang-toggle__sep {
  color: var(--border);
  font-size: 0.7rem;
}

.nav__burger {
  display: none;
  flex-direction: column;
  justify-content: center;
  gap: 7px;
  width: 44px;
  height: 44px;
  background: none;
  border: none;
  cursor: pointer;
}

.nav__burger span {
  display: block;
  width: 24px;
  height: 1px;
  margin-inline: auto;
  background: var(--text);
  transition: transform 0.35s ease, opacity 0.35s ease;
}

.nav__burger[aria-expanded='true'] span:first-child {
  transform: translateY(4px) rotate(45deg);
}

.nav__burger[aria-expanded='true'] span:last-child {
  transform: translateY(-4px) rotate(-45deg);
}

/* ============================================================
   HERO
   ============================================================ */

.hero {
  position: relative;
  min-height: 100svh;
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  overflow: hidden;
}

.hero__media {
  position: absolute;
  inset: 0;
  z-index: -1;
}

.hero__video {
  width: 100%;
  height: 100%;
  object-fit: cover;
  opacity: 0;
  transition: opacity 1.4s ease;
  background: var(--bg) center/cover no-repeat;
}

.hero__video.is-ready,
.hero__video[poster] {
  opacity: 1;
}

.hero__overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(
      180deg,
      rgba(5, 13, 26, 0.55) 0%,
      rgba(5, 13, 26, 0.25) 40%,
      rgba(5, 13, 26, 0.92) 100%
    ),
    radial-gradient(ellipse at center, transparent 30%, rgba(5, 13, 26, 0.45) 100%);
}

.hero__content {
  width: min(920px, 100% - 3rem);
  padding-top: var(--nav-h);
}

.hero__title {
  font-size: clamp(2.1rem, 5.6vw, 4.4rem);
  font-weight: 300;
  line-height: 1.12;
  letter-spacing: -0.015em;
  margin-bottom: 1.6rem;
}

.hero__subtitle {
  font-size: clamp(0.95rem, 1.8vw, 1.25rem);
  color: var(--silver);
  letter-spacing: 0.04em;
  margin-bottom: 2.8rem;
}

.hero__ctas {
  display: flex;
  gap: 1rem;
  justify-content: center;
  flex-wrap: wrap;
}

.hero__scroll {
  position: absolute;
  bottom: 2.2rem;
  left: 50%;
  transform: translateX(-50%);
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.8rem;
}

.hero__scroll-label {
  font-size: 0.62rem;
  letter-spacing: 0.3em;
  text-transform: uppercase;
  color: var(--text-dim);
}

.hero__scroll-line {
  width: 1px;
  height: 56px;
  background: linear-gradient(180deg, var(--blue), transparent);
  overflow: hidden;
  position: relative;
}

.hero__scroll-line::after {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, transparent, var(--blue));
  animation: scrollPulse 2.2s ease-in-out infinite;
}

@keyframes scrollPulse {
  0% {
    transform: translateY(-100%);
  }
  60%,
  100% {
    transform: translateY(100%);
  }
}

/* ============================================================
   MANIFESTO
   ============================================================ */

.manifesto {
  padding: clamp(7rem, 18vh, 12rem) 0;
}

.manifesto__text {
  font-size: clamp(1.45rem, 3.4vw, 2.5rem);
  font-weight: 300;
  line-height: 1.45;
  letter-spacing: -0.005em;
}

.manifesto__text .w {
  display: inline-block;
  opacity: 0.14;
  will-change: opacity;
}

/* ============================================================
   O PROBLEMA
   ============================================================ */

.problem {
  padding: clamp(6rem, 14vh, 10rem) 0;
  border-top: 0.5px solid var(--border);
}

.problem__blocks {
  display: flex;
  flex-direction: column;
}

.problem__block {
  display: grid;
  grid-template-columns: minmax(90px, 180px) 1fr;
  gap: 1rem 2rem;
  padding: clamp(2.4rem, 5vh, 3.6rem) 0;
  border-top: 0.5px solid var(--border);
}

.problem__index {
  font-size: clamp(2.4rem, 5vw, 4rem);
  font-weight: 200;
  color: transparent;
  -webkit-text-stroke: 0.75px var(--blue);
  line-height: 1;
}

.problem__block-title {
  font-size: clamp(1.25rem, 2.4vw, 1.7rem);
  font-weight: 300;
  margin-bottom: 0.7rem;
  grid-column: 2;
}

.problem__block-body {
  grid-column: 2;
  color: var(--text-dim);
  max-width: 56ch;
  font-size: clamp(0.95rem, 1.5vw, 1.1rem);
}

.problem__block-title,
.problem__index {
  grid-row: 1;
}

.problem__index {
  grid-row: 1 / span 2;
  grid-column: 1;
}

/* ============================================================
   A VISÃO
   ============================================================ */

.vision {
  position: relative;
  padding: clamp(8rem, 22vh, 15rem) 0;
  overflow: hidden;
  border-top: 0.5px solid var(--border);
  background: radial-gradient(ellipse 80% 60% at 50% 40%, rgba(46, 204, 113, 0.05), transparent 70%),
    var(--bg);
}

.vision__canvas {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  opacity: 0.85;
}

.vision__inner {
  position: relative;
  text-align: center;
}

.vision__text {
  margin: 2rem auto 0;
  font-size: clamp(1.1rem, 2.2vw, 1.5rem);
  color: var(--silver);
  line-height: 1.65;
  max-width: 58ch;
}

/* ============================================================
   MERCADOS
   ============================================================ */

.markets {
  padding: clamp(6rem, 14vh, 10rem) 0;
  border-top: 0.5px solid var(--border);
}

.markets__grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 1px;
  background: var(--border);
  border: 0.5px solid var(--border);
}

.card {
  background: var(--bg);
  padding: clamp(2rem, 4vw, 3.2rem);
  min-height: 260px;
  display: flex;
  flex-direction: column;
  gap: 1rem;
  position: relative;
  transition: background 0.45s ease;
}

.card::after {
  content: '';
  position: absolute;
  inset: 0;
  background: radial-gradient(ellipse at 20% 0%, rgba(77, 184, 255, 0.07), transparent 60%);
  opacity: 0;
  transition: opacity 0.45s ease;
  pointer-events: none;
}

.card:hover {
  background: var(--bg-soft);
}

.card:hover::after {
  opacity: 1;
}

.card__tag {
  font-size: 0.68rem;
  letter-spacing: 0.3em;
  text-transform: uppercase;
  color: var(--green);
}

.card__title {
  font-size: clamp(1.3rem, 2.2vw, 1.7rem);
  font-weight: 300;
  line-height: 1.25;
}

.card__body {
  color: var(--text-dim);
  font-size: clamp(0.92rem, 1.4vw, 1.05rem);
  max-width: 42ch;
}

/* ============================================================
   FECHAMENTO
   ============================================================ */

.closing {
  min-height: 92svh;
  display: flex;
  align-items: center;
  text-align: center;
  border-top: 0.5px solid var(--border);
  background: radial-gradient(ellipse 70% 55% at 50% 55%, rgba(77, 184, 255, 0.06), transparent 70%),
    var(--bg);
}

.closing__text {
  font-size: clamp(1.55rem, 3.8vw, 2.9rem);
  font-weight: 300;
  line-height: 1.35;
  letter-spacing: -0.01em;
}

/* ============================================================
   CTA + FOOTER
   ============================================================ */

.cta {
  padding: clamp(6rem, 14vh, 10rem) 0;
  border-top: 0.5px solid var(--border);
}

.cta__grid {
  display: grid;
  grid-template-columns: 1.1fr 1fr;
  gap: clamp(3rem, 7vw, 6rem);
  align-items: start;
}

.cta__email {
  display: inline-block;
  margin-top: 2.2rem;
  color: var(--blue);
  font-size: 1rem;
  letter-spacing: 0.06em;
  border-bottom: 0.5px solid var(--border-strong);
  padding-bottom: 0.3rem;
  min-height: 44px;
  transition: color 0.3s ease, border-color 0.3s ease;
}

.cta__email:hover {
  color: #8fd4ff;
  border-color: #8fd4ff;
}

.cta__form {
  display: flex;
  flex-direction: column;
  gap: 1.5rem;
}

.field {
  display: flex;
  flex-direction: column;
  gap: 0.55rem;
}

.field label {
  font-size: 0.7rem;
  letter-spacing: 0.26em;
  text-transform: uppercase;
  color: var(--text-dim);
}

.field input,
.field textarea {
  background: transparent;
  border: none;
  border-bottom: 0.5px solid var(--border);
  color: var(--text);
  font-family: var(--font);
  font-size: 1rem;
  font-weight: 300;
  padding: 0.7rem 0.1rem;
  min-height: 44px;
  transition: border-color 0.3s ease;
  resize: vertical;
}

.field input:focus,
.field textarea:focus {
  outline: none;
  border-bottom-color: var(--blue);
}

.cta__feedback {
  font-size: 0.85rem;
  color: var(--green);
  min-height: 1.2em;
}

.cta__feedback.is-error {
  color: #ff7b6b;
}

.footer {
  border-top: 0.5px solid var(--border);
  padding: clamp(3rem, 6vh, 4.5rem) 0 2rem;
}

.footer__inner {
  display: flex;
  justify-content: space-between;
  align-items: flex-end;
  gap: 2.5rem;
  flex-wrap: wrap;
}

.footer__brand-row {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  margin-bottom: 1rem;
}

.footer__logo {
  height: 26px;
  width: auto;
}

.footer__tagline {
  color: var(--text-dim);
  font-size: 0.9rem;
  letter-spacing: 0.04em;
}

.footer__contact .eyebrow {
  margin-bottom: 0.6rem;
}

.footer__contact a {
  color: var(--silver);
  font-size: 0.95rem;
  transition: color 0.3s ease;
  display: inline-block;
  padding: 0.4rem 0;
}

.footer__contact a:hover {
  color: var(--blue);
}

.footer__legal {
  margin-top: 3rem;
  padding-top: 1.4rem;
  border-top: 0.5px solid var(--border);
  color: var(--text-dim);
  font-size: 0.78rem;
  letter-spacing: 0.08em;
}

/* ============================================================
   RESPONSIVO
   ============================================================ */

@media (max-width: 900px) {
  .cta__grid {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 768px) {
  .nav__links {
    position: fixed;
    inset: var(--nav-h) 0 auto 0;
    flex-direction: column;
    gap: 0;
    background: rgba(5, 13, 26, 0.97);
    backdrop-filter: blur(18px);
    border-bottom: 0.5px solid var(--border);
    padding: 1rem clamp(1.25rem, 4vw, 3rem) 2rem;
    transform: translateY(-12px);
    opacity: 0;
    visibility: hidden;
    transition: transform 0.35s ease, opacity 0.35s ease, visibility 0.35s;
  }

  .nav__links.is-open {
    transform: translateY(0);
    opacity: 1;
    visibility: visible;
  }

  .nav__links a {
    padding: 1rem 0;
    border-bottom: 0.5px solid var(--border);
    min-height: 44px;
    display: flex;
    align-items: center;
  }

  .nav__burger {
    display: flex;
  }

  .markets__grid {
    grid-template-columns: 1fr;
  }

  .problem__block {
    grid-template-columns: 1fr;
  }

  .problem__index {
    grid-row: auto;
    grid-column: 1;
    margin-bottom: 0.5rem;
  }

  .problem__block-title,
  .problem__block-body {
    grid-column: 1;
    grid-row: auto;
  }

  .hero__ctas {
    flex-direction: column;
    align-items: stretch;
  }

  .hero__ctas .btn {
    width: 100%;
  }

  .hero__content {
    padding-bottom: 8rem;
  }

  .footer__inner {
    flex-direction: column;
    align-items: flex-start;
  }
}

@media (max-height: 560px) {
  .hero__scroll {
    display: none;
  }
}

/* ============================================================
   MOVIMENTO REDUZIDO
   ============================================================ */

@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }

  *,
  *::before,
  *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
  }

  .manifesto__text .w {
    opacity: 1;
  }

  .hero__scroll-line::after {
    animation: none;
  }
}
