/* EMPIRES Dev — estilos compartilhados pelas duas versões de idioma
   (/ em inglês e /br/ em português). */

:root {
  --color-bg: #061B40;
  --color-text: #FCF5ED;
  --color-muted: #A8B4C8;
  --color-accent: #38B6B2;
  --color-divider: #1E4272;
  --font: 'Space Grotesk', ui-sans-serif, system-ui, -apple-system, 'Segoe UI', sans-serif;
  --gutter: clamp(20px, 5vw, 72px);
}

* { box-sizing: border-box; }

body {
  margin: 0;
  background: var(--color-bg);
  color: var(--color-text);
  font-family: var(--font);
  text-wrap: pretty;
  -webkit-font-smoothing: antialiased;
}

.nav {
  display: flex;
  align-items: center;
  gap: 16px;
  padding: 12px max(var(--gutter), calc((100% - 1200px) / 2 + var(--gutter)));
  border-bottom: 2px solid var(--color-divider);
}

.nav__logo {
  width: 164px;
  height: 40px;
  display: block;
}

/* — seletor de idioma — */

/* `margin-left: auto` empurra o seletor para o canto superior direito. */
.lang {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-left: auto;
  font-size: 13px;
  letter-spacing: 0.06em;
}

.lang__link {
  color: var(--color-muted);
  text-decoration: none;
  padding: 4px 2px;
  border-radius: 3px;
  transition: color 0.15s ease;
}

.lang__link:hover { color: var(--color-text); }

.lang__link:focus-visible {
  outline: 2px solid var(--color-accent);
  outline-offset: 2px;
}

/* O idioma da página atual não é link: fica marcado e não navega. */
.lang__current {
  color: var(--color-accent);
  font-weight: 700;
  padding: 4px 2px;
}

.lang__sep {
  width: 1px;
  height: 12px;
  background: var(--color-divider);
}

.container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 var(--gutter);
}

/* — hero — */

.hero {
  display: flex;
  flex-direction: column;
  justify-content: center;
  min-height: calc(100vh - 300px);
  padding: clamp(84px, 12vh, 168px) 0 84px;
}

.hero__mark {
  width: 64px;
  height: 64px;
  display: block;
  margin-bottom: 42px;
}

.hero__title {
  font-weight: 700;
  font-size: clamp(46px, 6.8vw, 92px);
  line-height: 1.06;
  letter-spacing: -0.02em;
  margin: 0 0 0 -0.03em;
}

.hero__title span { display: block; }

.hero__lede {
  font-size: 17px;
  line-height: 28px;
  max-width: 56ch;
  margin: 42px 0 0;
  color: var(--color-muted);
}

.hero__cta {
  display: inline-flex;
  align-items: baseline;
  gap: 12px;
  width: fit-content;
  margin-top: 56px;
  font-weight: 700;
  font-size: clamp(20px, 2.2vw, 28px);
  letter-spacing: -0.01em;
  color: var(--color-accent);
  text-decoration: underline;
  text-decoration-thickness: 2px;
  text-underline-offset: 6px;
  transition: color 0.15s ease;
}

.hero__cta:hover { color: var(--color-text); }

.hero__cta:focus-visible {
  outline: 2px solid var(--color-accent);
  outline-offset: 2px;
}

.rule {
  height: 2px;
  border: 0;
  margin: 0;
  background: var(--color-divider);
}

/* — portfolio — */

.portfolio { padding: clamp(72px, 10vh, 120px) 0; }

.kicker {
  font-size: 13px;
  line-height: 28px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--color-accent);
  margin: 0 0 40px;
}

.project {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
  gap: clamp(40px, 6vw, 88px);
  align-items: center;
}

/* O badge do ícone usa o mesmo navy do fundo, então o contorno é o que
   define a silhueta de app icon. */
.project__icon {
  width: 72px;
  height: 72px;
  display: block;
  border-radius: 17px;
  border: 1px solid var(--color-divider);
  margin-bottom: 28px;
}

.project__name {
  font-weight: 700;
  font-size: clamp(30px, 3.6vw, 44px);
  line-height: 1.1;
  letter-spacing: -0.02em;
  margin: 0;
}

.project__tagline {
  font-weight: 500;
  font-size: clamp(18px, 1.6vw, 21px);
  line-height: 1.4;
  letter-spacing: -0.01em;
  color: var(--color-accent);
  margin: 14px 0 0;
}

.project__body {
  font-size: 17px;
  line-height: 28px;
  max-width: 46ch;
  margin: 24px 0 0;
  color: var(--color-muted);
}

.shots {
  display: flex;
  gap: clamp(16px, 2.5vw, 28px);
  justify-content: center;
}

/* A máscara dissolve o card inteiro — imagem, borda e sombra — no fundo da
   página, em vez de sobrepor um gradiente que viraria uma faixa cinza sobre
   o creme do app. */
.shot {
  position: relative;
  flex: 1 1 0;
  max-width: 260px;
  aspect-ratio: 390 / 660;
  border-radius: 22px;
  overflow: hidden;
  background: #FCF5ED;
  border: 1px solid var(--color-divider);
  box-shadow: 0 18px 40px rgba(0, 0, 0, 0.28);
  -webkit-mask-image: linear-gradient(to bottom, #000 78%, transparent 99%);
  mask-image: linear-gradient(to bottom, #000 78%, transparent 99%);
}

.shot img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: top;
  display: block;
}

@media (max-width: 860px) {
  .project {
    grid-template-columns: minmax(0, 1fr);
    gap: 48px;
  }
  .shots { justify-content: flex-start; }
}

/* — rodapé — */

.footer {
  display: flex;
  flex-wrap: wrap;
  gap: 8px 28px;
  padding: 56px 0;
  font-size: 13px;
  line-height: 28px;
  color: var(--color-muted);
}

.footer__note {
  letter-spacing: 0.08em;
  text-transform: uppercase;
}
