:root {
  --primary-hue: 273deg;
  --primary-saturation: 25%;
  --primary-lightness: 33%;
  --color-brand: #553e67;
  --color-brand-dark: #201727;

  --hero-bg: #ffffff;
  --hero-text: #111111;
  --hero-subtext: #444;

  --accordion-text: #ffffff;
  --accordion-content-bg: transparent;
}

.dark {
  --primary-hue: 273deg;
  --primary-saturation: 30%;
  --primary-lightness: 40%;
  --color-brand: #6b4c82;
  --color-brand-dark: #201727;

  --hero-bg: #0f0f11;
  --hero-text: #f5f5f5;
  --hero-subtext: #cfcfcf;

  --accordion-text: #ffffff;
  --accordion-content-bg: transparent;
}

/* Fontes */
h1 {
  font-size: clamp(1.8rem, 4vw, 2.5rem);
  font-weight: 600;
}

h2 {
  font-size: clamp(1.5rem, 3vw, 2rem);
  font-weight: 600;
}

h3 {
  font-size: clamp(1.3rem, 2.4vw, 1.6rem);
  font-weight: 600;
}

h4 {
  font-size: clamp(1.15rem, 2vw, 1.3rem);
  font-weight: 600;
}

h5 {
  font-size: clamp(1rem, 1.6vw, 1.15rem);
  font-weight: 600;
}

/* Botões */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;

  padding: 0.8rem 1.6rem;
  margin: 1rem;

  font-weight: 600;
  font-size: 0.95rem;
  letter-spacing: 0.01em;

  background-color: var(--color-brand);
  color: #ffffff;

  border: none;
  border-radius: .2rem;

  text-decoration: none;
  cursor: pointer;

  transition: transform 0.15s ease, filter 0.2s ease;
}

.btn:hover {
  filter: brightness(1.1);
}

.btn:active {
  filter: brightness(0.95);
  transform: translateY(0);
}

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

.dark .btn {
  background-color: var(--color-brand-dark);
  color: #c4b5fd;
}


/* FOOTER */
.hextra-footer {
  background-color: var(--color-brand);
  position: relative;
  z-index: 10;
}

.hextra-footer .hx\:text-gray-600 {
  color: #c4b5fd;
}

.hextra-footer .hx\:border-gray-200 {
  border-color: #3b2a4a;
}

.hextra-footer:is(html[class~="dark"] *) {
  background-color: var(--color-brand-dark);
}

/* HERO */
.home-hero {
  min-height: 60vh;
  display: flex;
  flex-direction: column;
  justify-content: center;

  padding: 4rem 2rem;
  margin: 0;
  width: 100%;

  background: var(--hero-bg);
}

.home-hero h1 {
  font-size: clamp(3.5rem, 9vw, 7rem);
  line-height: 0.9;
  font-weight: 900;
  letter-spacing: -0.02em;

  color: var(--hero-text);
  margin: 0;
}

.home-hero p {
  margin-top: 2rem;
  font-size: 1.1rem;
  max-width: 480px;
  line-height: 1.5;

  color: var(--hero-subtext);
}

.hextra-banner {
  position: relative;
  z-index: 1;
}

.hextra-nav-container {
  position: sticky;
  top: 0;
  z-index: 1000;
}

/* HERO DARK */
.dark .home-hero {
  background: linear-gradient(to bottom,
      #0f0f11 0%,
      #0f0f11 60%,
      #151518 100%);
}

/* ACCORDION */
.accordion {
  margin-top: 4rem;
}

.accordion p {
  margin-bottom: 1rem;
}

.accordion a {
  text-decoration-line: underline;
  text-decoration-thickness: from-font;
}

.accordion details {
  border: none;
}


.accordion-content {
  margin: 0 auto;
  padding: 2rem clamp(1rem, 5vw, 2rem);
  max-width: 1100px;
}

.grid-2 {
  display: grid;
  grid-template-columns: 1fr 2fr;
  gap: 2rem;
  align-items: center;
}
.grid-2-inverter {
  display: grid;
  grid-template-columns: 2fr 1fr;
  gap: 2rem;
  align-items: center;
}

.col.image {
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 2rem;
}

.col.image img {
  max-width: 100%;
  height: auto;
}

@media (max-width: 768px) {
  .grid-2 {
    grid-template-columns: 1fr;
  }
  .col.image img {
    max-width: 100px;
    width: 100%;
  }
}



/* FAIXA */
.accordion summary {
  font-size: 1.5rem;
  padding: 1.5rem 2rem;
  cursor: pointer;
  font-weight: 600;

  display: flex;
  align-items: center;
  justify-content: center;
  gap: 1rem;
  align-items: center;

  color: var(--accordion-text);
}

.accordion summary::-webkit-details-marker {
  display: none;
}

.accordion summary::after {
  content: "⌄";
  font-size: 1.4rem;
  line-height: 1;
}

/* CORES DAS FAIXAS */
.accordion details:nth-child(1) summary {
  background: #1c6456;
}

.accordion details:nth-child(2) summary {
  background: #d66626;
}

.accordion details:nth-child(3) summary {
  background: #e29c3a;
}

.accordion details:nth-child(4) summary {
  background: #7f4925;
}

.accordion details:nth-child(5) summary {
  background: #553e67;
}

/* DARK FAIXAS */
.dark .accordion details:nth-child(1) summary {
  background: #1c645627;
}

.dark .accordion details:nth-child(2) summary {
  background: #d6662627;
}

.dark .accordion details:nth-child(3) summary {
  background: #e29c3a27;
}

.dark .accordion details:nth-child(4) summary {
  background: #7f492527;
}

.dark .accordion details:nth-child(5) summary {
  background: #553e6727;
}

/* CONTEÚDO DO ACCORDION */
.accordion details>div {
  padding: 1.5rem 2rem;
  color: var(--accordion-text);
}

/* CORES DO CONTEÚDO  */
.accordion details:nth-child(1)>div {
  background: #1c6456;
}

.accordion details:nth-child(2)>div {
  background: #d66626;
}
.accordion details:nth-child(2)>div p {
  color: #33263d !important;
}

.accordion details:nth-child(3)>div {
  background: #e29c3a;
}

.accordion details:nth-child(3)>div p {
  color: #000 !important;
}

.accordion details:nth-child(4)>div {
  background: #7f4925;
}

.accordion details:nth-child(5)>div {
  background: #553e67;
}

/* DARK CONTEÚDO */
.dark .accordion details:nth-child(1)>div {
  background: #1c645627;
}

.dark .accordion details:nth-child(2)>div {
  background: #d6662627;
}
.dark .accordion details:nth-child(2)>div p {
  color: #fff !important;
}

.dark .accordion details:nth-child(3)>div {
  background: #e29c3a27;
}

.dark .accordion details:nth-child(3)>div p {
  color: #fff !important;
}

.dark .accordion details:nth-child(4)>div {
  background: #7f492527;
}

.dark .accordion details:nth-child(5)>div {
  background: #553e6727;
}

/* Logo do Projeto */
.logo-dark {
  display: none;
}

.dark .logo-light {
  display: none;
}

.dark .logo-dark {
  display: block;
}

/* BLOG */
.blog-section {
  min-height: 70vh;
  padding: clamp(3rem, 6vw, 5rem) 0;
  display: flex;
  align-items: center;
  justify-content: center;
}

.blog-container {
  width: 100%;
  max-width: 1100px;
  padding: 0 clamp(1rem, 5vw, 2rem);
  text-align: center;
}

/* Título */
.blog-container h2 {
  font-size: clamp(1.5rem, 3vw, 2rem);
  font-weight: 600;
  margin-bottom: 2rem;
}

/* Parágrafos */
.blog-container p {
  margin-bottom: 0.5rem;
}

/* Links da seção */
.blog-container a {
  text-decoration: underline;
  text-decoration-thickness: from-font;
}

/* Grid */
.posts-grid {
  display: grid;
  gap: 2rem;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  margin: 2rem 0;
}

/* Card */
.post-card {
  height: 100%;
  padding: 1.5rem;
  border-radius: 0.5rem;
  border: 1px solid rgba(0, 0, 0, 0.08);
  display: flex;
  flex-direction: column;
  justify-content: space-between;
}

/* Remover underline só dos cards */
.blog-container .post-link {
  text-decoration: none;
}

/* Ajustes internos */
.post-date {
  font-size: 0.85rem;
  opacity: 0.7;
  margin: 0;
}

.post-summary {
  margin-top: 1rem;
  opacity: 0.85;
}