@import url("https://fonts.googleapis.com/css2?family=Cinzel:wght@600;700;800&family=Inter:wght@400;500;600;700;800&display=swap");

:root {
  --bg: #080304;
  --bg-soft: #14080a;
  --surface: rgba(19, 8, 10, 0.84);
  --surface-strong: rgba(30, 12, 13, 0.92);
  --surface-soft: rgba(255, 197, 72, 0.08);
  --text: #fff4de;
  --text-soft: #e7d7b7;
  --text-muted: #c1ae90;
  --line: rgba(255, 203, 108, 0.16);
  --line-strong: rgba(255, 203, 108, 0.32);
  --brand: #ffc547;
  --brand-strong: #ff9214;
  --brand-deep: #4f1806;
  --shadow-lg: 0 34px 80px rgba(0, 0, 0, 0.42);
  --shadow-md: 0 20px 48px rgba(0, 0, 0, 0.28);
  --radius-xl: 32px;
  --radius-lg: 24px;
  --radius-md: 18px;
  --radius-sm: 14px;
  --container: 1240px;
}

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

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  min-width: 320px;
  background:
    radial-gradient(circle at top, rgba(255, 199, 87, 0.14), transparent 28%),
    radial-gradient(circle at 100% 14%, rgba(255, 122, 24, 0.14), transparent 24%),
    linear-gradient(180deg, #050203 0%, #0b0405 18%, #13080a 46%, #080304 100%);
  color: var(--text);
  font-family: "Inter", "Segoe UI", sans-serif;
  line-height: 1.7;
  text-rendering: optimizeLegibility;
  overflow-x: hidden;
}

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

a {
  color: inherit;
}

button,
input,
a {
  -webkit-tap-highlight-color: transparent;
}

h1,
h2,
p,
ul {
  margin-top: 0;
}

h1,
h2 {
  font-family: "Cinzel", Georgia, serif;
  color: #fffaf0;
  line-height: 1.08;
  letter-spacing: 0.02em;
}

h1 {
  margin-bottom: 20px;
  font-size: clamp(2.6rem, 5vw, 5rem);
  max-width: 11ch;
  text-wrap: balance;
}

h2 {
  margin-bottom: 14px;
  font-size: clamp(1.5rem, 2.4vw, 2.4rem);
  text-wrap: balance;
}

p {
  margin-bottom: 0;
  color: var(--text-soft);
  font-size: 1rem;
}

.page {
  min-height: 100vh;
  position: relative;
  isolation: isolate;
}

.container {
  width: min(var(--container), calc(100% - 40px));
  margin: 0 auto;
}

.hero {
  position: relative;
  padding: 28px 0 120px;
  overflow: clip;
}

.hero::before,
.hero::after {
  content: "";
  position: absolute;
  pointer-events: none;
}

.hero::before {
  inset: 0;
  background:
    linear-gradient(180deg, rgba(4, 2, 3, 0.72) 0%, rgba(4, 2, 3, 0.38) 22%, rgba(4, 2, 3, 0.86) 100%),
    linear-gradient(90deg, rgba(5, 2, 3, 0.92) 0%, rgba(5, 2, 3, 0.62) 42%, rgba(5, 2, 3, 0.36) 100%),
    url("img/backgroundimg.webp") center top / cover no-repeat;
  transform: scale(1.03);
}

.hero::after {
  top: 90px;
  right: -120px;
  width: 420px;
  height: 420px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(255, 205, 98, 0.34) 0%, rgba(255, 145, 20, 0.14) 48%, rgba(255, 145, 20, 0) 74%);
  filter: blur(20px);
}

.hero .container,
.main-content .container {
  position: relative;
  z-index: 1;
}

.topbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  margin-bottom: 44px;
}

.brand {
  display: inline-flex;
  align-items: center;
  padding: 14px 18px;
  border: 1px solid rgba(255, 215, 139, 0.16);
  border-radius: 24px;
  background: linear-gradient(180deg, rgba(41, 18, 14, 0.72), rgba(16, 8, 9, 0.56));
  backdrop-filter: blur(14px);
  box-shadow: var(--shadow-md);
}

.brand__logo {
  width: auto;
  max-width: min(100%, 319px);
  height: clamp(56px, 7.2vw, 108px);
  filter: drop-shadow(0 10px 22px rgba(255, 169, 33, 0.28));
}

.hero__actions {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: 12px;
  padding: 12px;
  border: 1px solid rgba(255, 215, 139, 0.14);
  border-radius: 999px;
  background: rgba(17, 8, 9, 0.62);
  backdrop-filter: blur(14px);
  box-shadow: var(--shadow-md);
}

.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 54px;
  padding: 0 28px;
  border: 1px solid transparent;
  border-radius: 999px;
  font-size: 0.95rem;
  font-weight: 800;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  text-decoration: none;
  transition:
    transform 0.2s ease,
    box-shadow 0.2s ease,
    background-color 0.2s ease,
    border-color 0.2s ease,
    color 0.2s ease;
}

.button:hover,
.button:focus-visible {
  transform: translateY(-2px);
}

.button:focus-visible,
.toc__switch:focus-within,
.toc__list a:focus-visible,
.author-card__socials a:focus-visible,
.scrolltop:focus-visible {
  outline: 3px solid rgba(255, 198, 72, 0.22);
  outline-offset: 3px;
}

.button--primary {
  color: #3d1300;
  border-color: rgba(255, 232, 182, 0.38);
  background: linear-gradient(180deg, #fff0b9 0%, #ffc53f 50%, #ec8500 100%);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.62), 0 18px 34px rgba(236, 133, 0, 0.24);
}

.button--primary:hover,
.button--primary:focus-visible {
  background: linear-gradient(180deg, #fff5ca 0%, #ffcf53 50%, #f6920a 100%);
}

.button--secondary,
.button--ghost {
  color: #fff8ef;
  border-color: rgba(255, 213, 123, 0.18);
  background: linear-gradient(180deg, rgba(80, 33, 18, 0.76), rgba(24, 10, 10, 0.84));
}

.button--secondary:hover,
.button--secondary:focus-visible,
.button--ghost:hover,
.button--ghost:focus-visible {
  background: linear-gradient(180deg, rgba(102, 41, 20, 0.88), rgba(34, 14, 13, 0.92));
}

.button--large {
  min-height: 60px;
  padding: 0 34px;
}

.button--wide {
  width: 100%;
}

.hero__grid {
  display: grid;
  grid-template-columns: minmax(0, 1.05fr) minmax(320px, 0.95fr);
  gap: 42px;
  align-items: center;
}

.hero__content {
  max-width: 760px;
}

.toc__eyebrow,
.author-section__eyebrow,
.overview-card__kicker,
.hero__badge-label,
.stat-card__label,
.article__cta-kicker {
  display: inline-block;
  color: #ffd68a;
  font-size: 0.78rem;
  font-weight: 800;
  letter-spacing: 0.2em;
  text-transform: uppercase;
}

.lead {
  max-width: 62ch;
  margin-bottom: 28px;
  color: #f2e3bf;
  font-size: 1.08rem;
  line-height: 1.82;
}

.hero__cta {
  display: flex;
  flex-wrap: wrap;
  gap: 14px;
  margin-bottom: 24px;
}

.hero__trust {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  padding: 0;
  margin: 0 0 28px;
  list-style: none;
}

.hero__trust li {
  display: flex;
}

.hero__trust-link {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 100%;
  min-height: 48px;
  padding: 11px 16px;
  border: 1px solid rgba(255, 213, 123, 0.16);
  border-radius: 999px;
  background: rgba(255, 196, 72, 0.08);
  color: var(--text);
  font-size: 0.92rem;
  font-weight: 600;
  text-decoration: none;
  box-shadow: inset 0 1px 0 rgba(255, 250, 229, 0.04);
  transition:
    transform 0.2s ease,
    border-color 0.2s ease,
    background-color 0.2s ease,
    color 0.2s ease;
}

.hero__trust-link:hover,
.hero__trust-link:focus-visible {
  transform: translateY(-2px);
  border-color: rgba(255, 213, 123, 0.3);
  background: rgba(255, 196, 72, 0.14);
  color: #fff8ea;
}

.hero__highlights {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 16px;
}

.stat-card {
  min-height: 132px;
  padding: 20px;
  border: 1px solid var(--line);
  border-radius: var(--radius-md);
  background: linear-gradient(180deg, rgba(40, 16, 14, 0.82), rgba(18, 8, 10, 0.78));
  backdrop-filter: blur(12px);
  box-shadow: var(--shadow-md);
}

.stat-card strong {
  display: block;
  margin-top: 10px;
  color: #fff8eb;
  font-size: 1rem;
  line-height: 1.45;
}

.hero__visual {
  position: relative;
  min-height: 620px;
}

.hero__visual-frame {
  position: absolute;
  inset: 44px 0 52px 40px;
  overflow: hidden;
  border: 1px solid rgba(255, 221, 161, 0.18);
  border-radius: 34px;
  background:
    linear-gradient(180deg, rgba(255, 205, 98, 0.18), rgba(255, 205, 98, 0)),
    linear-gradient(180deg, rgba(30, 11, 12, 0.9), rgba(11, 5, 6, 0.96));
  box-shadow: 0 40px 80px rgba(0, 0, 0, 0.42);
}

.hero__visual-frame::before {
  content: "";
  position: absolute;
  inset: 18px;
  border: 1px solid rgba(255, 216, 137, 0.12);
  border-radius: 24px;
  z-index: 1;
  pointer-events: none;
}

.hero__visual-frame > a {
  display: block;
  width: 100%;
  height: 100%;
}

.hero__visual-frame img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
  filter: saturate(1.06) contrast(1.03);
}

.hero__badge {
  position: absolute;
  max-width: 230px;
  padding: 18px 20px;
  border: 1px solid rgba(255, 215, 139, 0.18);
  border-radius: 22px;
  background: rgba(18, 8, 10, 0.84);
  backdrop-filter: blur(14px);
  box-shadow: var(--shadow-md);
}

.hero__badge strong {
  display: block;
  margin-top: 8px;
  color: #fff8ec;
  font-size: 1rem;
  line-height: 1.45;
}

.hero__badge--top {
  top: 0;
  left: 0;
}

.hero__badge--bottom {
  right: 0;
  bottom: 0;
}

.main-content {
  padding-bottom: 80px;
}

.main-content .container {
  display: grid;
  gap: 34px;
  margin-top: -70px;
}

.overview {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 18px;
}

.overview-card,
.article,
.author-card,
.footer__inner {
  border: 1px solid var(--line);
  background: linear-gradient(180deg, rgba(29, 12, 13, 0.94), rgba(11, 6, 8, 0.96));
  box-shadow: var(--shadow-lg);
}

.overview-card {
  padding: 26px;
  border-radius: var(--radius-lg);
}

.overview-card__kicker {
  margin-bottom: 14px;
}

.overview-card h2 {
  font-size: clamp(1.28rem, 1.6vw, 1.7rem);
}

.overview-card p {
  color: var(--text-muted);
}

.article {
  padding: 34px;
  border-radius: var(--radius-xl);
}

.toc {
  margin-bottom: 26px;
  padding: 24px 26px;
  border: 1px solid rgba(255, 211, 122, 0.16);
  border-radius: var(--radius-lg);
  background:
    linear-gradient(180deg, rgba(255, 185, 74, 0.1), rgba(255, 185, 74, 0)),
    rgba(255, 196, 72, 0.05);
}

.toc__checkbox {
  position: absolute;
  width: 1px;
  height: 1px;
  margin: -1px;
  padding: 0;
  border: 0;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  clip-path: inset(50%);
  white-space: nowrap;
}

.toc__header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
}

.toc__eyebrow {
  margin-bottom: 10px;
}

.toc__title {
  margin: 0;
  color: #fff9f0;
  font-size: 1.18rem;
  font-weight: 800;
  letter-spacing: 0.04em;
  text-transform: uppercase;
}

.toc__switch {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  cursor: pointer;
  user-select: none;
}

.toc__switch-label {
  font-size: 0;
}

.toc__switch-control {
  position: relative;
  width: 54px;
  height: 32px;
  border-radius: 999px;
  background: rgba(255, 233, 182, 0.14);
  box-shadow: inset 0 0 0 1px rgba(255, 211, 122, 0.2);
  transition: background-color 0.2s ease;
}

.toc__switch-control::after {
  content: "";
  position: absolute;
  top: 4px;
  left: 4px;
  width: 24px;
  height: 24px;
  border-radius: 50%;
  background: linear-gradient(180deg, #fff6d3 0%, #ffd064 100%);
  box-shadow: 0 4px 10px rgba(0, 0, 0, 0.24);
  transition: transform 0.2s ease;
}

.toc__checkbox:checked ~ .toc__header .toc__switch-label::before {
  content: "Ocultar";
}

.toc__checkbox:not(:checked) ~ .toc__header .toc__switch-label::before {
  content: "Mostrar";
}

.toc__checkbox:checked ~ .toc__header .toc__switch-control {
  background: linear-gradient(180deg, #ffbf44 0%, #ff7d20 100%);
}

.toc__checkbox:checked ~ .toc__header .toc__switch-control::after {
  transform: translateX(22px);
}

.toc__panel {
  margin-top: 18px;
}

.toc__checkbox:not(:checked) ~ .toc__panel {
  display: none;
}

.toc__list {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 12px 20px;
  padding-left: 20px;
  margin-bottom: 0;
}

.toc__list a {
  color: #fff7ea;
  font-weight: 600;
  text-decoration: none;
}

.toc__list a:hover {
  color: #ffd46f;
}

.article__section {
  padding: 28px;
  border: 1px solid rgba(255, 211, 122, 0.12);
  border-radius: var(--radius-lg);
  background:
    linear-gradient(180deg, rgba(255, 196, 72, 0.05), rgba(255, 196, 72, 0)),
    rgba(255, 255, 255, 0.01);
}

.article__section + .article__section {
  margin-top: 20px;
}

.article__section p + p {
  margin-top: 14px;
}

.article__section--cta {
  display: grid;
  grid-template-columns: minmax(0, 1.3fr) minmax(280px, 0.7fr);
  gap: 24px;
  align-items: center;
}

.article__cta-box {
  padding: 24px;
  border: 1px solid rgba(255, 211, 122, 0.16);
  border-radius: 24px;
  background: linear-gradient(180deg, rgba(62, 26, 14, 0.72), rgba(19, 8, 10, 0.92));
}

.article__cta-kicker {
  margin-bottom: 12px;
}

.article__cta-text {
  margin-bottom: 18px;
  color: var(--text);
}

.author-section {
  display: grid;
  gap: 14px;
}

.author-section__eyebrow {
  margin-left: 8px;
}

.author-card {
  display: grid;
  grid-template-columns: auto 1fr;
  gap: 22px;
  align-items: center;
  padding: 28px;
  border-radius: var(--radius-xl);
}

.author-card__media img {
  width: 88px;
  height: 88px;
  border-radius: 50%;
  object-fit: cover;
  border: 2px solid rgba(255, 210, 118, 0.34);
  box-shadow: 0 10px 22px rgba(0, 0, 0, 0.34);
}

.author-card__body {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto auto;
  gap: 18px;
  align-items: center;
}

.author-card__name {
  margin-bottom: 4px;
  color: #fff9f0;
  font-size: 1.18rem;
  font-weight: 800;
}

.author-card__role {
  color: var(--text-soft);
}

.author-card__meta p + p {
  margin-top: 4px;
}

.author-card__meta p {
  color: var(--text-muted);
  font-size: 0.94rem;
}

.author-card__socials {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  justify-content: flex-end;
}

.author-card__socials a {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 42px;
  height: 42px;
  border: 1px solid rgba(255, 210, 118, 0.22);
  border-radius: 50%;
  background: rgba(255, 196, 72, 0.05);
  color: #fff7ea;
  transition:
    color 0.2s ease,
    border-color 0.2s ease,
    transform 0.2s ease,
    background-color 0.2s ease;
}

.author-card__socials a:hover {
  transform: translateY(-2px);
  border-color: rgba(255, 217, 143, 0.52);
  background: rgba(255, 196, 72, 0.12);
  color: #ffd98f;
}

.author-card__socials svg {
  width: 18px;
  height: 18px;
  stroke: currentColor;
}

.footer {
  padding: 0 0 32px;
}

.footer__inner {
  padding: 24px 28px;
  border-radius: var(--radius-lg);
  color: rgba(255, 244, 219, 0.76);
  text-align: center;
}

.footer__inner p {
  margin: 0;
  color: inherit;
}

.scrolltop {
  position: fixed;
  right: 18px;
  bottom: 18px;
  z-index: 40;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 48px;
  height: 48px;
  border: 0;
  border-radius: 50%;
  background: linear-gradient(180deg, #ffe199 0%, #ffbf3e 44%, #e18400 100%);
  box-shadow: inset 0 1px 0 rgba(255, 252, 232, 0.54), 0 18px 32px rgba(227, 134, 0, 0.26);
  color: #381300;
  cursor: pointer;
  opacity: 0;
  pointer-events: none;
  transform: translateY(10px);
  transition: opacity 0.2s ease, transform 0.2s ease, background-color 0.2s ease;
}

.scrolltop:hover {
  background: linear-gradient(180deg, #fff0bd 0%, #ffc847 46%, #f08f08 100%);
}

.scrolltop.is-visible {
  opacity: 1;
  pointer-events: auto;
  transform: translateY(0);
}

@media (max-width: 1100px) {
  .hero__grid,
  .article__section--cta,
  .author-card__body {
    grid-template-columns: 1fr;
  }

  .hero__visual {
    min-height: 560px;
  }

  .hero__visual-frame {
    inset: 44px 28px 48px;
  }

  .overview,
  .hero__highlights {
    grid-template-columns: 1fr;
  }

  .author-card__socials {
    justify-content: flex-start;
  }
}

@media (max-width: 860px) {
  .container {
    width: min(var(--container), calc(100% - 28px));
  }

  .hero {
    padding-bottom: 92px;
  }

  .topbar,
  .hero__actions,
  .toc__header {
    flex-direction: column;
    align-items: stretch;
  }

  .topbar {
    align-items: flex-start;
  }

  .hero__actions {
    width: 100%;
    border-radius: 28px;
  }

  .button,
  .button--large {
    width: 100%;
  }

  .main-content .container {
    margin-top: -44px;
  }

  .article,
  .author-card,
  .footer__inner,
  .overview-card {
    padding-left: 22px;
    padding-right: 22px;
  }

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

  .hero__visual {
    min-height: 500px;
  }

  .hero__badge {
    max-width: 210px;
  }
}

@media (max-width: 640px) {
  h1 {
    font-size: clamp(1.9rem, 10vw, 2.7rem);
    max-width: none;
    line-height: 1.02;
  }

  .hero {
    padding-bottom: 56px;
  }

  .hero::after {
    display: none;
  }

  .hero__grid {
    gap: 18px;
  }

  .hero__content {
    max-width: 100%;
  }

  .brand {
    padding: 12px 14px;
  }

  .brand__logo {
    max-width: min(100%, 250px);
    height: clamp(50px, 15vw, 82px);
  }

  .hero__cta,
  .hero__trust {
    flex-direction: column;
  }

  .lead {
    font-size: 1rem;
    line-height: 1.7;
    margin-bottom: 20px;
  }

  .hero__trust li {
    width: 100%;
  }

  .hero__trust {
    display: grid;
    grid-template-columns: 1fr;
    gap: 10px;
    margin-bottom: 0;
  }

  .hero__trust-link {
    justify-content: flex-start;
    text-align: left;
  }

  .hero__highlights,
  .hero__visual {
    display: none;
  }

  .article {
    padding-top: 22px;
    padding-bottom: 22px;
  }

  .article__section,
  .toc {
    padding: 20px 18px;
  }

  .author-card {
    grid-template-columns: 1fr;
    justify-items: start;
  }
}

@media (max-width: 460px) {
  .container {
    width: min(var(--container), calc(100% - 20px));
  }

  .hero {
    padding-top: 20px;
    padding-bottom: 48px;
  }

  .hero::before {
    background-position: 58% top;
  }

  .topbar {
    margin-bottom: 24px;
  }

  .overview {
    gap: 14px;
  }

  .scrolltop {
    right: 12px;
    bottom: 12px;
    width: 44px;
    height: 44px;
  }
}
