:root {
  --background: #f4f5f6;
  --surface: #f4f6f9;
  --raised: #dde1ea;
  --ink: #010415;
  --muted: #52627e;
  --border: #d5d9de;
  --action: #1746c8;
  --on-action: #f7f9ff;
  --link: #1746c8;
  --warning: #994c00;
  --inverse-surface: #18191d;
  --inverse-ink: #f4f5f6;
  --inverse-link: #5b8af5;
  --watermark: rgb(1 4 21 / 5%);
  --code-bg: rgb(1 4 21 / 4%);
  --shadow: rgb(1 4 21 / 12%);
  --radius: 16px;
  color-scheme: light dark;
  font-family: Georgia, "Times New Roman", serif;
}

* { box-sizing: border-box; }

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

body {
  margin: 0;
  color: var(--ink);
  background: var(--background);
  font-size: 17px;
  line-height: 1.65;
}

a {
  color: var(--link);
  text-decoration-color: var(--link);
  text-decoration-thickness: 2px;
  text-underline-offset: 3px;
}

a:hover { text-decoration-color: var(--ink); }

a:focus-visible {
  outline: 3px solid var(--action);
  outline-offset: 4px;
}

.page {
  width: min(920px, calc(100% - 24px));
  margin: 24px auto;
  overflow: hidden;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  box-shadow: 0 24px 70px var(--shadow);
}

.topbar {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 24px;
  padding: 20px clamp(22px, 6vw, 58px);
  border-bottom: 1px solid var(--border);
}

.brand {
  display: flex;
  align-items: center;
  gap: 10px;
  color: var(--ink);
  text-decoration: none;
}

.brand img {
  height: 40px;
  width: auto;
  display: block;
}

.topbar nav {
  display: flex;
  flex-wrap: wrap;
  justify-content: flex-end;
  gap: 8px 18px;
  font: 700 .76rem/1.25 "Arial Narrow", "Roboto Condensed", sans-serif;
  letter-spacing: .04em;
  text-transform: uppercase;
}

.topbar nav a {
  color: var(--ink);
  padding: 7px 0;
  text-decoration: none;
}

.topbar nav a[aria-current="page"] {
  box-shadow: inset 0 -5px 0 var(--action);
}

.hero {
  position: relative;
  padding: clamp(38px, 8vw, 76px) clamp(22px, 7vw, 68px) 46px;
  overflow: hidden;
  border-bottom: 4px solid var(--ink);
}

.hero::after {
  content: attr(data-word);
  position: absolute;
  right: -10px;
  bottom: -28px;
  color: var(--watermark);
  font: 900 clamp(4rem, 15vw, 8.5rem)/1 "Arial Narrow", sans-serif;
  letter-spacing: -.07em;
  text-transform: uppercase;
  pointer-events: none;
}

.eyebrow,
.stamp,
.number,
.label {
  font-family: "Arial Narrow", "Roboto Condensed", sans-serif;
  text-transform: uppercase;
  letter-spacing: .1em;
}

.eyebrow {
  display: inline-block;
  margin: 0 0 16px;
  padding: 6px 9px 5px;
  color: var(--on-action);
  background: var(--action);
  font-size: .72rem;
  font-weight: 800;
  line-height: 1;
}

h1 {
  position: relative;
  z-index: 1;
  max-width: 11ch;
  margin: 0;
  font: 900 clamp(3.1rem, 10vw, 6.5rem)/.88 "Arial Narrow", "Roboto Condensed", sans-serif;
  letter-spacing: -.07em;
  text-transform: uppercase;
}

.stamp {
  margin: 24px 0 0;
  color: var(--muted);
  font-size: .72rem;
  font-weight: 700;
}

.lead {
  position: relative;
  z-index: 1;
  max-width: 650px;
  margin: 26px 0 0;
  font-size: clamp(1.15rem, 2.5vw, 1.4rem);
  line-height: 1.48;
}

.content {
  padding: 8px clamp(22px, 7vw, 68px) 64px;
}

.summary {
  margin: 38px 0 6px;
  padding: 20px;
  border: 3px solid var(--ink);
  box-shadow: 7px 7px 0 var(--action);
}

.summary p:last-child { margin-bottom: 0; }


.notice {
  margin: 28px 0;
  padding: 16px 18px;
  color: var(--warning);
  background: var(--raised);
  border: 1px solid var(--warning);
}

.notice strong { display: block; }

section {
  padding: 46px 0 10px;
  border-bottom: 1px solid var(--border);
}

section:last-child { border-bottom: 0; }

h2 {
  display: grid;
  grid-template-columns: 3rem minmax(0, 1fr);
  gap: 10px;
  margin: 0 0 24px;
  font: 900 clamp(1.8rem, 5vw, 2.7rem)/.98 "Arial Narrow", "Roboto Condensed", sans-serif;
  letter-spacing: -.045em;
  text-transform: uppercase;
}

.number {
  padding-top: .25rem;
  color: var(--link);
  font: 800 .78rem/1 "Courier New", monospace;
}

h3 {
  margin: 28px 0 9px;
  font: 800 1.2rem/1.25 "Arial Narrow", "Roboto Condensed", sans-serif;
}

p, ul, ol { margin: 0 0 17px; }
ul, ol { padding-left: 1.3rem; }
li { margin-bottom: 8px; }

.rows {
  margin: 22px 0;
  padding: 0;
  list-style: none;
  border-top: 2px solid var(--ink);
}

.rows li {
  display: grid;
  grid-template-columns: minmax(150px, .38fr) minmax(0, 1fr);
  gap: 22px;
  margin: 0;
  padding: 14px 0;
  border-bottom: 1px solid var(--border);
}

.rows span {
  color: var(--muted);
  line-height: 1.5;
}

.cards {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 12px;
  margin: 24px 0;
}

.card {
  padding: 18px;
  background: var(--raised);
  border: 1px solid var(--border);
  border-radius: 11px;
}

.card h3 { margin: 0 0 6px; }
.card p { margin: 0; color: var(--muted); font-size: .94rem; line-height: 1.5; }

.label {
  display: block;
  margin-bottom: 8px;
  color: var(--link);
  font-size: .67rem;
  font-weight: 800;
}

.quote {
  margin: 22px 0;
  padding: 17px 19px;
  background: var(--inverse-surface);
  color: var(--inverse-ink);
  border-radius: 10px;
  font-size: 1.05rem;
}

.quote p:last-child { margin: 0; }

.button {
  display: inline-block;
  min-height: 44px;
  padding: 12px 16px;
  color: var(--on-action);
  background: var(--action);
  border: 2px solid var(--ink);
  font: 800 .78rem/1.2 "Arial Narrow", sans-serif;
  letter-spacing: .05em;
  text-decoration: none;
  text-transform: uppercase;
}

.contact {
  margin-top: 24px;
  padding: 22px;
  color: var(--inverse-ink);
  background: var(--inverse-surface);
  border-radius: 11px;
}

.quote a, .contact a { color: var(--inverse-link); text-decoration-color: var(--inverse-link); }
.quote a:focus-visible, .contact a:focus-visible { outline-color: var(--inverse-link); }
.contact p:last-child { margin-bottom: 0; }

code {
  padding: .08em .3em;
  border: 1px solid var(--border);
  background: var(--code-bg);
  font-size: .84em;
  overflow-wrap: anywhere;
}

footer {
  display: flex;
  justify-content: space-between;
  gap: 24px;
  padding: 26px clamp(22px, 7vw, 68px) 32px;
  color: var(--muted);
  background: var(--background);
  font-size: .82rem;
}

footer p { margin: 0; }

footer nav {
  display: flex;
  flex-wrap: wrap;
  justify-content: flex-end;
  gap: 8px 16px;
}

/* Página inicial temporária */
.home-body {
  min-height: 100vh;
  padding: clamp(10px, 2.5vw, 30px);
  background:
    linear-gradient(90deg, transparent 49.9%, var(--border) 50%, transparent 50.1%),
    var(--background);
}

.home-shell {
  position: relative;
  display: grid;
  grid-template-columns: repeat(12, minmax(0, 1fr));
  grid-template-rows: 1fr auto;
  width: min(1180px, 100%);
  min-height: calc(100vh - clamp(20px, 5vw, 60px));
  margin: 0 auto;
  overflow: hidden;
  background: var(--surface);
  border: 1px solid var(--border);
  box-shadow: 0 24px 70px var(--shadow);
}

.home-main {
  z-index: 2;
  grid-column: 1 / span 8;
  align-self: center;
  padding: clamp(42px, 8vw, 96px);
  border: 0;
}

.home-logo {
  display: block;
  width: clamp(150px, 18vw, 240px);
  height: auto;
  margin-bottom: clamp(54px, 10vh, 106px);
}

.home-kicker {
  display: inline-block;
  margin: 0 0 18px;
  padding: 6px 9px 5px;
  color: var(--on-action);
  background: var(--action);
  font: 800 .72rem/1 "Arial Narrow", "Roboto Condensed", sans-serif;
  letter-spacing: .1em;
  text-transform: uppercase;
}

.home-title {
  max-width: 12ch;
  font-size: clamp(3.2rem, 7.3vw, 7rem);
}

.home-copy {
  max-width: 590px;
  margin: 30px 0 0;
  color: var(--muted);
  font-size: clamp(1.05rem, 1.7vw, 1.28rem);
  line-height: 1.55;
}

.home-links {
  z-index: 2;
  grid-column: 9 / -1;
  align-self: end;
  margin: 0 clamp(28px, 4vw, 52px) clamp(64px, 9vh, 94px) 0;
  border-top: 3px solid var(--ink);
}

.home-links a {
  display: grid;
  grid-template-columns: 2.1rem minmax(0, 1fr);
  gap: 12px;
  align-items: center;
  min-height: 64px;
  padding: 10px 4px;
  color: var(--ink);
  border-bottom: 1px solid var(--border);
  font: 800 clamp(.78rem, 1.15vw, .92rem)/1.3 "Arial Narrow", "Roboto Condensed", sans-serif;
  letter-spacing: .035em;
  text-decoration: none;
  text-transform: uppercase;
  transition: color 160ms ease, transform 160ms ease, border-color 160ms ease;
}

.home-links a span {
  color: var(--link);
  font: 800 .68rem/1 "Courier New", monospace;
}

.home-links a:hover {
  transform: translateX(9px);
  color: var(--link);
  border-color: var(--link);
}

.home-route {
  position: absolute;
  inset: 0 0 auto auto;
  width: 42%;
  height: 58%;
  color: var(--action);
  opacity: .14;
  pointer-events: none;
}

.home-route__line {
  position: absolute;
  top: 0;
  right: 15%;
  width: 61%;
  height: 70%;
  border-right: clamp(18px, 2.8vw, 38px) solid currentColor;
  border-bottom: clamp(18px, 2.8vw, 38px) solid currentColor;
  transform: skewY(-21deg);
}

.home-route__start,
.home-route__end {
  position: absolute;
  z-index: 1;
  display: block;
  width: clamp(28px, 3vw, 42px);
  aspect-ratio: 1;
  background: var(--surface);
  border: clamp(8px, 1vw, 13px) solid currentColor;
  border-radius: 50%;
}

.home-route__start { top: 10%; right: calc(76% - 11px); }

.home-route__end {
  right: calc(15% - 2px);
  bottom: 16%;
  border-radius: 50% 50% 50% 0;
  transform: rotate(-45deg);
}

.home-footer {
  z-index: 2;
  grid-column: 1 / -1;
  display: flex;
  justify-content: space-between;
  padding: 18px clamp(24px, 4vw, 48px);
  color: var(--muted);
  background: transparent;
  border-top: 1px solid var(--border);
  font: 700 .68rem/1.4 "Arial Narrow", "Roboto Condensed", sans-serif;
  letter-spacing: .08em;
  text-transform: uppercase;
}

.home-main,
.home-links,
.home-footer {
  animation: home-arrive 560ms both;
}

.home-links { animation-delay: 100ms; }
.home-footer { animation-delay: 180ms; }

@keyframes home-arrive {
  from { opacity: 0; transform: translateY(12px); }
  to { opacity: 1; transform: translateY(0); }
}

@media (max-width: 640px) {
  .page { width: calc(100% - 12px); margin: 6px auto; border-radius: 12px; }
  .topbar { display: block; }
  .topbar nav { justify-content: flex-start; margin-top: 14px; }
  .hero::after { bottom: -12px; }
  .cards { grid-template-columns: 1fr; }
  .rows li { display: block; }
  .rows strong { display: block; margin-bottom: 4px; }
  footer { display: block; }
  footer nav { justify-content: flex-start; margin-top: 12px; }

  .home-body { padding: 6px; }

  .home-shell {
    display: flex;
    flex-direction: column;
    min-height: calc(100vh - 12px);
  }

  .home-main {
    flex: 1;
    align-self: stretch;
    padding: 34px 24px 50px;
  }

  .home-logo {
    width: 150px;
    margin-bottom: clamp(64px, 15vh, 110px);
  }

  .home-title { font-size: clamp(3rem, 15.5vw, 4.5rem); }
  .home-copy { margin-top: 24px; }

  .home-links {
    align-self: stretch;
    margin: 0 24px 40px;
  }

  .home-route {
    width: 72%;
    height: 43%;
  }

  .home-footer {
    display: flex;
    padding: 16px 24px;
  }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .home-main, .home-links, .home-footer { animation: none; }
}

@media (prefers-color-scheme: dark) {
  :root {
    --background: #0c0d15;
    --surface: #14181c;
    --raised: #2c2f37;
    --ink: #ffffff;
    --muted: #9ea0a6;
    --border: #2a2e34;
    --action: #3568eb;
    --on-action: #f7f9ff;
    --link: #5b8af5;
    --warning: #ffb300;
    --inverse-surface: #f5f7ff;
    --inverse-ink: #0c0d15;
    --inverse-link: #3568eb;
    --watermark: rgb(255 255 255 / 5%);
    --code-bg: rgb(255 255 255 / 5%);
    --shadow: rgb(0 0 0 / 32%);
  }

  .home-logo {
    box-sizing: content-box;
    padding: 10px 14px;
    background: var(--on-action);
    border-radius: 8px;
  }
}

@media print {
  :root {
    --background: #fff;
    --surface: #fff;
    --raised: #fff;
    --ink: #000;
    --muted: #333;
    --border: #999;
    --action: #000;
    --on-action: #fff;
    --link: #000;
    --warning: #000;
    --inverse-surface: #fff;
    --inverse-ink: #000;
    --inverse-link: #000;
    --code-bg: #fff;
  }
  body { background: #fff; font-size: 11pt; }
  .page { width: auto; margin: 0; border: 0; border-radius: 0; box-shadow: none; }
  .topbar nav, footer nav { display: none; }
  .hero::after { display: none; }
  section { break-inside: avoid; }
  .home-body { padding: 0; }
  .home-shell { min-height: 100vh; border: 0; box-shadow: none; }
  .home-route { display: none; }
}
