@font-face {
  font-family: "Hanken Grotesk";
  src: url("../fonts/hanken-grotesk-latin-wght-normal.woff2") format("woff2");
  font-weight: 100 900;
  font-style: normal;
  font-display: swap;
}

:root {
  --black: #08090b;
  --surface: #0e1014;
  --line: #1b1f27;
  --navy: #0f2a52;
  --navy-deep: #0a1e3d;
  --navy-line: #3a64a0;
  --bordeaux: #8a1c3a;
  --bordeaux-deep: #5e1426;
  --bordeaux-soft: #c2546f;
  --text: #e8ecf4;
  --muted: #9aa3b2;
  --radius: 14px;
  --maxw: 1120px;
  color-scheme: dark;
}

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

html {
  scroll-behavior: smooth;
  scroll-padding-top: 88px;
}

body {
  margin: 0;
  background: var(--black);
  color: var(--text);
  font-family: "Hanken Grotesk", system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
  font-size: 1.0625rem;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

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

a {
  color: inherit;
}

:focus-visible {
  outline: 2px solid var(--bordeaux-soft);
  outline-offset: 3px;
  border-radius: 4px;
}

.skip {
  position: absolute;
  left: 16px;
  top: -64px;
  background: var(--text);
  color: var(--black);
  padding: 10px 16px;
  border-radius: 8px;
  font-weight: 600;
  text-decoration: none;
  z-index: 20;
  transition: top 0.15s;
}
.skip:focus {
  top: 12px;
}

.wrap {
  width: min(100% - 48px, var(--maxw));
  margin-inline: auto;
}

/* ---------- Cabeçalho ---------- */
.site-header {
  position: sticky;
  top: 0;
  z-index: 10;
  background: rgba(8, 9, 11, 0.82);
  backdrop-filter: saturate(140%) blur(14px);
  -webkit-backdrop-filter: saturate(140%) blur(14px);
  border-bottom: 1px solid var(--line);
}
.site-header .wrap {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  min-height: 72px;
}
.brand img {
  height: 36px;
  width: auto;
}
.nav {
  display: flex;
  align-items: center;
  gap: 28px;
}
.nav a:not(.btn) {
  color: var(--muted);
  text-decoration: none;
  font-size: 0.9375rem;
  transition: color 0.15s;
}
.nav a:not(.btn):hover {
  color: var(--text);
}

/* ---------- Botões ---------- */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 13px 22px;
  border-radius: 10px;
  border: 1px solid transparent;
  font: inherit;
  font-size: 0.9375rem;
  font-weight: 600;
  text-decoration: none;
  line-height: 1.2;
  transition: background-color 0.15s, border-color 0.15s, transform 0.15s;
}
.btn-primary {
  background: var(--bordeaux);
  color: #fff;
}
.btn-primary:hover {
  background: #a02245;
}
.btn-ghost {
  border-color: #2a3140;
  color: var(--text);
}
.btn-ghost:hover {
  border-color: var(--navy-line);
  background: rgba(58, 100, 160, 0.08);
}
.btn-sm {
  padding: 9px 16px;
  font-size: 0.875rem;
}
.btn span[aria-hidden] {
  transition: transform 0.15s;
}
.btn:hover span[aria-hidden] {
  transform: translateX(3px);
}

/* ---------- Hero ---------- */
.hero {
  position: relative;
  overflow: hidden;
  padding: clamp(72px, 14vh, 150px) 0 clamp(72px, 12vh, 130px);
  background:
    radial-gradient(900px 520px at 88% -8%, rgba(15, 42, 82, 0.6), transparent 62%),
    radial-gradient(640px 380px at 6% 108%, rgba(138, 28, 58, 0.16), transparent 62%);
}
.hero-mark {
  position: absolute;
  right: max(-80px, calc((100vw - var(--maxw)) / 2 - 80px));
  top: 50%;
  width: clamp(300px, 42vw, 520px);
  transform: translateY(-50%);
  opacity: 0.1;
  pointer-events: none;
}
.hero .wrap {
  position: relative;
}
.eyebrow {
  display: inline-block;
  margin: 0 0 22px;
  color: var(--bordeaux-soft);
  font-size: 0.75rem;
  font-weight: 600;
  letter-spacing: 0.22em;
  text-transform: uppercase;
}
h1,
h2,
h3 {
  margin: 0;
  font-weight: 600;
  letter-spacing: -0.02em;
  line-height: 1.08;
}
h1 {
  max-width: 21ch;
  font-size: clamp(2.4rem, 5.6vw, 4.25rem);
}
.lead {
  max-width: 52ch;
  margin: 26px 0 0;
  color: var(--muted);
  font-size: clamp(1.0625rem, 1.6vw, 1.25rem);
}
.cta {
  display: flex;
  flex-wrap: wrap;
  gap: 14px;
  margin-top: 40px;
}

/* ---------- Seções ---------- */
.section {
  padding: clamp(64px, 11vh, 112px) 0;
  border-top: 1px solid var(--line);
}
.section h2 {
  max-width: 22ch;
  font-size: clamp(1.75rem, 3.6vw, 2.5rem);
}

/* ---------- Portfólio ---------- */
.cards {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 20px;
  margin-top: 44px;
}
.card {
  position: relative;
  display: flex;
  flex-direction: column;
  gap: 14px;
  min-height: 250px;
  padding: 30px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--surface);
  text-decoration: none;
  transition: border-color 0.2s, transform 0.2s, background-color 0.2s;
}
a.card:hover {
  border-color: var(--navy-line);
  background: #0f131a;
  transform: translateY(-2px);
}
.card h3 {
  font-size: 1.625rem;
}
.card p {
  margin: 0;
  color: var(--muted);
  max-width: 44ch;
}
.tag {
  align-self: flex-start;
  padding: 4px 11px;
  border: 1px solid rgba(194, 84, 111, 0.4);
  border-radius: 999px;
  color: var(--bordeaux-soft);
  font-size: 0.75rem;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}
.card-link {
  margin-top: auto;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  color: var(--text);
  font-weight: 600;
  font-size: 0.9375rem;
}
.card-link span[aria-hidden] {
  transition: transform 0.15s;
}
a.card:hover .card-link span[aria-hidden] {
  transform: translate(3px, -3px);
}
.card-soon {
  border-style: dashed;
  background: transparent;
}
.card-soon .tag {
  border-color: #2a3140;
  color: var(--muted);
}
.card-soon h3 {
  color: var(--muted);
}

/* ---------- Princípios ---------- */
.principles {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
  margin-top: 44px;
}
.principle {
  padding: 30px 0 0;
  border-top: 2px solid var(--navy);
}
.principle svg {
  width: 30px;
  height: 30px;
  margin-bottom: 18px;
  stroke: var(--navy-line);
  fill: none;
  stroke-width: 1.6;
  stroke-linecap: round;
  stroke-linejoin: round;
}
.principle h3 {
  font-size: 1.1875rem;
  letter-spacing: -0.01em;
}
.principle p {
  margin: 10px 0 0;
  color: var(--muted);
  font-size: 1rem;
}

/* ---------- Rodapé ---------- */
.site-footer {
  border-top: 1px solid var(--line);
  padding: 40px 0 48px;
  color: var(--muted);
  font-size: 0.875rem;
}
.site-footer .wrap {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
}
.site-footer img {
  height: 30px;
  width: auto;
}
.site-footer a {
  text-decoration: none;
  color: var(--muted);
}
.site-footer a:hover {
  color: var(--text);
}

/* ---------- Página 404 ---------- */
.center {
  min-height: 70vh;
  display: grid;
  place-content: center;
  justify-items: start;
  gap: 8px;
  padding: 64px 0;
}
.center h1 {
  font-size: clamp(2rem, 5vw, 3.2rem);
  max-width: none;
}
.center p {
  margin: 8px 0 24px;
  color: var(--muted);
}

/* ---------- Entrada suave ---------- */
@media (prefers-reduced-motion: no-preference) {
  .rise {
    animation: rise 0.7s cubic-bezier(0.2, 0.7, 0.2, 1) both;
  }
  .rise-2 {
    animation-delay: 0.08s;
  }
  .rise-3 {
    animation-delay: 0.16s;
  }
  @keyframes rise {
    from {
      opacity: 0;
      transform: translateY(14px);
    }
    to {
      opacity: 1;
      transform: none;
    }
  }
}

/* ---------- Telas menores ---------- */
@media (max-width: 860px) {
  .principles {
    grid-template-columns: 1fr;
    gap: 28px;
  }
}
@media (max-width: 720px) {
  .cards {
    grid-template-columns: 1fr;
  }
  .nav a:not(.btn) {
    display: none;
  }
  .brand img {
    height: 32px;
  }
  .hero-mark {
    opacity: 0.07;
    right: -120px;
  }
}
@media (max-width: 400px) {
  .wrap {
    width: min(100% - 32px, var(--maxw));
  }
  .btn {
    width: 100%;
    justify-content: center;
  }
}
