/* ==========================================================================
   Soberano — site
   Estático, sem dependência externa, sem fonte remota.
   ========================================================================== */

:root {
  --bg:        #0a0b0d;
  --bg-soft:   #0e1013;
  --panel:     #121419;
  --line:      #20232a;
  --line-soft: #17191f;
  --text:      #e8e9ec;
  --muted:     #8d929c;
  --dim:       #636973;
  --accent:    #e0a458;
  --accent-dim:#a3763c;

  --sans: -apple-system, BlinkMacSystemFont, "Inter", "Segoe UI", Roboto,
          "Helvetica Neue", Arial, sans-serif;
  --mono: ui-monospace, "JetBrains Mono", SFMono-Regular, "SF Mono", Menlo,
          Consolas, "Liberation Mono", monospace;

  --wrap: 1180px;
  --pad: clamp(1.15rem, 4vw, 2.5rem);
  --radius: 14px;
}

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

html {
  scroll-behavior: smooth;
  -webkit-text-size-adjust: 100%;
}

body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font-family: var(--sans);
  font-size: 16.5px;
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

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

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

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

.wrap {
  width: 100%;
  max-width: var(--wrap);
  margin-inline: auto;
  padding-inline: var(--pad);
}

.sr-only {
  position: absolute;
  width: 1px; height: 1px;
  padding: 0; margin: -1px;
  overflow: hidden;
  clip: rect(0 0 0 0);
  white-space: nowrap;
  border: 0;
}

.skip {
  position: absolute;
  left: -9999px;
  top: 0;
  z-index: 100;
  background: var(--accent);
  color: #0a0b0d;
  padding: .7rem 1.1rem;
  font-weight: 600;
}
.skip:focus { left: .5rem; top: .5rem; }

/* ---------------------------------------------------------------- header */

.top {
  position: sticky;
  top: 0;
  z-index: 40;
  background: rgba(10, 11, 13, .82);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  border-bottom: 1px solid var(--line-soft);
}

.top .wrap {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  min-height: 62px;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: .55rem;
  font-weight: 650;
  letter-spacing: -.01em;
  font-size: 1.02rem;
}
.brand svg { color: var(--accent); }

.top nav {
  display: flex;
  align-items: center;
  gap: clamp(.6rem, 2vw, 1.6rem);
  font-size: .88rem;
}
.top nav a {
  color: var(--muted);
  transition: color .18s ease;
}
.top nav a:hover { color: var(--text); }
.top nav a.ext::after {
  content: " ↗";
  color: var(--dim);
  font-size: .9em;
}

@media (max-width: 720px) {
  .top nav a:not(.ext) { display: none; }
  .top nav { gap: .8rem; }
}

/* ------------------------------------------------------------------ hero */

.hero {
  padding-block: clamp(3rem, 8vw, 6.5rem) clamp(2rem, 5vw, 3.5rem);
  position: relative;
  overflow: hidden;
}

.hero::before {
  content: "";
  position: absolute;
  inset: -40% 20% 40% -10%;
  background: radial-gradient(60% 55% at 30% 25%, rgba(224, 164, 88, .10), transparent 70%);
  pointer-events: none;
}

.hero-grid {
  position: relative;
  display: grid;
  grid-template-columns: 0.92fr 1.12fr;
  gap: clamp(2rem, 5vw, 4.5rem);
  align-items: center;
}

.eyebrow {
  margin: 0 0 1.1rem;
  font-family: var(--mono);
  font-size: .72rem;
  letter-spacing: .16em;
  text-transform: uppercase;
  color: var(--accent-dim);
}

.hero h1 {
  margin: 0;
  font-size: clamp(2.9rem, 7vw, 4.6rem);
  line-height: .98;
  letter-spacing: -.035em;
  font-weight: 700;
}

.lead {
  margin: 1.1rem 0 0;
  font-size: clamp(1.15rem, 2.3vw, 1.45rem);
  line-height: 1.4;
  letter-spacing: -.012em;
  color: var(--text);
  max-width: 26ch;
}

.body {
  margin: 1.1rem 0 0;
  color: var(--muted);
  max-width: 46ch;
  font-size: .97rem;
}

/* ------------------------------------------------------------ command box */

.cmd {
  display: flex;
  align-items: center;
  gap: .8rem;
  margin-top: 1.9rem;
  padding: .85rem .95rem .85rem 1.05rem;
  background: var(--bg-soft);
  border: 1px solid var(--line);
  border-radius: 10px;
  font-family: var(--mono);
  font-size: .855rem;
  max-width: 100%;
}

.cmd code {
  flex: 1 1 auto;
  min-width: 0;
  overflow-x: auto;
  white-space: nowrap;
  scrollbar-width: none;
  color: var(--text);
  font-family: inherit;
}
.cmd code::-webkit-scrollbar { display: none; }

.cmd .prompt {
  color: var(--accent);
  margin-right: .5rem;
  user-select: none;
}

@media (max-width: 620px) {
  .cmd { flex-wrap: wrap; row-gap: .55rem; }
  .cmd code {
    white-space: pre-wrap;
    overflow-wrap: anywhere;
    overflow-x: visible;
    flex-basis: 100%;
  }
  .cmd .copy { margin-left: auto; }
}

.copy {
  flex: 0 0 auto;
  appearance: none;
  border: 1px solid var(--line);
  background: var(--panel);
  color: var(--muted);
  font-family: var(--mono);
  font-size: .72rem;
  letter-spacing: .07em;
  text-transform: uppercase;
  padding: .45rem .7rem;
  border-radius: 7px;
  cursor: pointer;
  transition: color .16s ease, border-color .16s ease, background .16s ease;
}
.copy:hover { color: var(--text); border-color: #2c3038; }
.copy.ok {
  color: #0a0b0d;
  background: var(--accent);
  border-color: var(--accent);
}

.hint {
  margin: .85rem 0 0;
  font-size: .82rem;
  color: var(--dim);
  font-family: var(--mono);
}
.hint a { color: var(--muted); text-decoration: underline; text-underline-offset: 3px; }
.hint a:hover { color: var(--accent); }

/* ------------------------------------------------------------- hero shot */

.hero-shot {
  margin: 0;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  overflow: hidden;
  background: var(--panel);
  box-shadow:
    0 1px 0 rgba(255,255,255,.03) inset,
    0 40px 90px -40px rgba(0,0,0,.95),
    0 0 0 1px rgba(0,0,0,.4);
}

.hero-shot img {
  width: 100%;
  aspect-ratio: 16 / 9;
  object-fit: cover;
}

.hero-shot figcaption {
  display: flex;
  align-items: center;
  gap: .5rem;
  padding: .6rem .9rem;
  border-top: 1px solid var(--line);
  font-family: var(--mono);
  font-size: .72rem;
  letter-spacing: .06em;
  color: var(--dim);
  text-transform: uppercase;
}
.hero-shot figcaption::before {
  content: "";
  width: 6px; height: 6px;
  border-radius: 50%;
  background: var(--accent);
  box-shadow: 0 0 8px rgba(224,164,88,.7);
}

@media (max-width: 900px) {
  .hero-grid { grid-template-columns: 1fr; }
  .lead { max-width: none; }
  .body { max-width: 58ch; }
  .hero-shot { order: -1; }
}

/* ----------------------------------------------------------------- stats */

.stats {
  border-block: 1px solid var(--line-soft);
  background: var(--bg-soft);
}

.stats dl {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  margin: 0;
  padding-block: clamp(1.2rem, 3vw, 1.7rem);
}

.stats dl > div {
  padding-inline: 1rem;
  border-left: 1px solid var(--line-soft);
}
.stats dl > div:first-child { border-left: 0; padding-left: 0; }

.stats dt {
  font-family: var(--mono);
  font-size: .68rem;
  letter-spacing: .14em;
  text-transform: uppercase;
  color: var(--dim);
  margin-bottom: .3rem;
}

.stats dd {
  margin: 0;
  font-size: clamp(1.35rem, 3vw, 1.75rem);
  font-weight: 650;
  letter-spacing: -.02em;
  font-variant-numeric: tabular-nums;
}

@media (max-width: 640px) {
  .stats dl { grid-template-columns: repeat(2, 1fr); gap: 1.4rem 0; }
  .stats dl > div:nth-child(3) { border-left: 0; padding-left: 0; }
}

/* --------------------------------------------------------------- section */

.section {
  padding-block: clamp(3.5rem, 9vw, 6.5rem);
  border-bottom: 1px solid var(--line-soft);
  scroll-margin-top: 76px;
}

.section h2 {
  margin: 0;
  font-size: clamp(1.75rem, 4.2vw, 2.7rem);
  line-height: 1.1;
  letter-spacing: -.028em;
  font-weight: 650;
  max-width: 22ch;
}

.section-lead {
  margin: 1.1rem 0 0;
  color: var(--muted);
  max-width: 62ch;
  font-size: .97rem;
}

/* ----------------------------------------------------------------- steps */

.steps {
  list-style: none;
  margin: clamp(2.2rem, 5vw, 3.4rem) 0 0;
  padding: 0;
  display: grid;
  gap: 1px;
  background: var(--line-soft);
  border: 1px solid var(--line-soft);
  border-radius: var(--radius);
  overflow: hidden;
}

.steps li {
  background: var(--bg);
  padding: clamp(1.4rem, 3.5vw, 2.1rem);
  display: grid;
  grid-template-columns: 3.2rem 1fr;
  column-gap: clamp(1rem, 3vw, 2rem);
  row-gap: .5rem;
}

.steps .num {
  grid-column: 1;
  grid-row: 1;
  align-self: start;
  font-family: var(--mono);
  font-size: .78rem;
  letter-spacing: .1em;
  color: var(--accent-dim);
  padding-top: .35rem;
}

.steps li > :not(.num) { grid-column: 2; }

.steps h3 {
  margin: 0;
  font-size: 1.08rem;
  font-weight: 620;
  letter-spacing: -.012em;
}

.steps p {
  margin: 0;
  color: var(--muted);
  font-size: .93rem;
  max-width: 66ch;
}

.steps .cmd { margin-top: .55rem; }

.steps .note {
  margin-top: .5rem;
  font-size: .82rem;
  color: var(--dim);
}

.steps .links { font-size: .86rem; color: var(--dim); }
.steps .links a {
  color: var(--muted);
  text-decoration: underline;
  text-underline-offset: 3px;
}
.steps .links a:hover { color: var(--accent); }

@media (max-width: 560px) {
  .steps li { grid-template-columns: 1fr; }
  .steps .num { grid-row: auto; padding-top: 0; }
  .steps li > :not(.num) { grid-column: 1; }
}

.callout {
  margin-top: 1.4rem;
  padding: clamp(1.3rem, 3vw, 1.9rem);
  border: 1px solid var(--line);
  border-left: 2px solid var(--accent-dim);
  border-radius: 0 var(--radius) var(--radius) 0;
  background: var(--bg-soft);
}

.callout h3 {
  margin: 0 0 .55rem;
  font-size: .95rem;
  font-weight: 620;
}

.callout p {
  margin: 0;
  color: var(--muted);
  font-size: .92rem;
  max-width: 74ch;
}

/* --------------------------------------------------------------- gallery */

.gallery {
  margin-top: clamp(2.2rem, 5vw, 3.2rem);
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: clamp(1rem, 2.5vw, 1.6rem);
}

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

.shot { margin: 0; }

.shot button {
  display: block;
  width: 100%;
  padding: 0;
  border: 1px solid var(--line);
  border-radius: 11px;
  overflow: hidden;
  background: var(--panel);
  cursor: zoom-in;
  transition: border-color .2s ease, transform .25s ease;
}
.shot button:hover { border-color: #333842; transform: translateY(-2px); }
.shot button:focus-visible { outline-offset: 4px; }

.shot img {
  width: 100%;
  aspect-ratio: 16 / 9;
  object-fit: cover;
  transition: opacity .2s ease;
}

.shot figcaption {
  display: flex;
  flex-direction: column;
  gap: .18rem;
  padding: .75rem .15rem 0;
  font-size: .82rem;
  color: var(--dim);
}
.shot figcaption strong {
  color: var(--text);
  font-weight: 600;
  font-size: .88rem;
  letter-spacing: -.005em;
}

/* ----------------------------------------------------------------- cards */

.cards {
  margin-top: clamp(2.2rem, 5vw, 3.2rem);
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(min(100%, 300px), 1fr));
  gap: 1px;
  background: var(--line-soft);
  border: 1px solid var(--line-soft);
  border-radius: var(--radius);
  overflow: hidden;
}

.cards article {
  background: var(--bg);
  padding: clamp(1.35rem, 3vw, 1.9rem);
}

.cards h3 {
  margin: 0 0 .6rem;
  font-size: 1rem;
  font-weight: 620;
  letter-spacing: -.012em;
  display: flex;
  align-items: center;
  gap: .5rem;
}
.cards h3::before {
  content: "";
  width: 5px; height: 5px;
  border-radius: 50%;
  background: var(--accent);
  flex: 0 0 auto;
}

.cards p {
  margin: 0;
  color: var(--muted);
  font-size: .91rem;
}

/* ----------------------------------------------------------------- table */

.table-wrap {
  margin-top: clamp(2rem, 4vw, 2.8rem);
  border: 1px solid var(--line-soft);
  border-radius: var(--radius);
  overflow: hidden;
}

table {
  width: 100%;
  border-collapse: collapse;
  font-size: .92rem;
}

table tr { border-top: 1px solid var(--line-soft); }
table tr:first-child { border-top: 0; }

table th,
table td {
  padding: .78rem clamp(.9rem, 2.5vw, 1.4rem);
  text-align: left;
  font-weight: 400;
}

table th {
  width: 46%;
  white-space: nowrap;
  color: var(--text);
}

table td { color: var(--muted); }

table tr:hover { background: var(--bg-soft); }

kbd {
  font-family: var(--mono);
  font-size: .78em;
  padding: .18em .45em;
  border: 1px solid var(--line);
  border-bottom-width: 2px;
  border-radius: 5px;
  background: var(--panel);
  color: var(--text);
  white-space: nowrap;
}

code {
  font-family: var(--mono);
  font-size: .87em;
  padding: .12em .38em;
  border-radius: 4px;
  background: var(--panel);
  color: var(--text);
}

/* ---------------------------------------------------------------- footer */

.bottom {
  padding-block: clamp(2.4rem, 5vw, 3.4rem);
}

.bottom .wrap {
  display: flex;
  flex-wrap: wrap;
  align-items: baseline;
  gap: .6rem 1.6rem;
}

.foot-brand {
  margin: 0;
  font-weight: 650;
  letter-spacing: -.01em;
}

.foot-note {
  margin: 0;
  color: var(--dim);
  font-size: .85rem;
  flex: 1 1 auto;
}

.foot-links {
  margin: 0;
  display: flex;
  gap: .7rem;
  font-size: .85rem;
  color: var(--dim);
}
.foot-links a { color: var(--muted); }
.foot-links a:hover { color: var(--accent); }

/* -------------------------------------------------------------- lightbox */

dialog#lightbox {
  border: 0;
  padding: 0;
  background: transparent;
  max-width: min(96vw, 1600px);
  max-height: 96vh;
}

dialog#lightbox::backdrop {
  background: rgba(4, 5, 7, .93);
  backdrop-filter: blur(4px);
}

dialog#lightbox img {
  max-width: 96vw;
  max-height: 92vh;
  border-radius: 10px;
  border: 1px solid var(--line);
  object-fit: contain;
}

dialog#lightbox .close {
  position: fixed;
  top: 1rem;
  right: 1rem;
  width: 42px;
  height: 42px;
  border-radius: 50%;
  border: 1px solid var(--line);
  background: rgba(18, 20, 25, .92);
  color: var(--text);
  font-size: 1.4rem;
  line-height: 1;
  cursor: pointer;
}
dialog#lightbox .close:hover { border-color: var(--accent); color: var(--accent); }

/* --------------------------------------------------------------- motion */

.reveal {
  opacity: 0;
  transform: translateY(14px);
  transition: opacity .55s ease, transform .55s ease;
}
.reveal.in {
  opacity: 1;
  transform: none;
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after {
    animation-duration: .001ms !important;
    transition-duration: .001ms !important;
  }
  .reveal { opacity: 1; transform: none; }
}

@media print {
  .top, .cmd .copy, .bottom, dialog#lightbox { display: none; }
  body { background: #fff; color: #000; }
}
