/* ========== 1. FONT IMPORT ========= */
@import url('https://fonts.googleapis.com/css2?family=Space+Grotesk:wght@400;500;700&display=swap');

/* ========== 2. VARIÁVEIS ========= */
:root {
  --primary: #0081FE;
  --secondary: #00C3FF;
  --white: #F4F9FF;
  --black: #353436;
  --text-dark: #11111F;
  --blue-text: #0081FE;
}

/* ========== 3. RESET GLOBAL ========= */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

html, body {
  height: 100%;
  display: flex;
  flex-direction: column;
}

body {
  font-family: 'Space Grotesk', sans-serif;
  background: var(--white);
  color: var(--text-dark);
}

/* ========== 4. CONTAINER PADRÃO ========= */
.container {
  max-width: 1216px;
  margin: 0 auto;
  padding: 0 2rem;
}

/* =======================================================================
   5. HEADER FIXO (Logo + Nav + Toggle)
   ======================================================================= */
header {
  background: var(--primary);
  color: white;
  border-bottom-left-radius: 12px;
  border-bottom-right-radius: 12px;
  box-shadow: 0 4px 12px rgba(0,0,0,0.05);
}

.header-content {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 142px;
}

.logo-group {
  display: flex;
  align-items: center;
  text-decoration: none;
}

.logo {
  height: 44px;
  background: white;
  border-radius: 50%;
  padding: 0.05rem;
  box-shadow: 0 0 0 4px var(--primary);
}

.logo-text {
  margin-left: 12px;
  font-size: 1.5rem;
  font-weight: 600;
  color: white;
}

nav {
  display: flex;
  align-items: center;
}

nav a {
  margin-left: 1.5rem;
  font-size: 16px;
  font-weight: 500;
  color: white;
  text-decoration: none;
}

nav .btn-cta {
  background: white;
  color: var(--primary);
  padding: 0.6rem 1.2rem;
  border-radius: 8px;
  margin-left: 2rem;
  font-weight: 600;
  transition: background 0.3s ease;
}

nav .btn-cta:hover {
  background: #e6e6e6;
}

/* =======================================================================
   6. HERO SECTION (Textos + Benefícios + Botões + Imagem)
   ======================================================================= */
main {
  flex: 1;
}

.hero {
  background: var(--white);
  padding: 4rem 0;
}

.hero .container {
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 4rem;
}

.hero-text {
  flex: 1 1 500px;
  display: flex;
  flex-direction: column;
  justify-content: center;
}

.hero-text h1 {
  font-size: 3.25rem;
  line-height: 1.3;
  margin-bottom: 2rem;
}

.hero-text .blue {
  color: var(--blue-text);
}

.benefits-list {
  list-style: none;
  font-size: 18px;
  margin-bottom: 2rem;
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
}

.benefits-list .icon-check {
  width: 18px;
  height: 18px;
  margin-right: 8px;
  vertical-align: middle;
  filter: brightness(0) saturate(100%) invert(27%) sepia(98%) saturate(2824%) hue-rotate(201deg) brightness(100%) contrast(101%);
}

.btns {
  display: flex;
  gap: 1rem;
  align-items: center;
  flex-wrap: wrap;
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 0.75rem 1.5rem;
  border-radius: 8px;
  font-weight: bold;
  font-size: 1rem;
  text-decoration: none;
  height: 48px;
}

.btn-download {
  background: #333;
  color: white;
}

.btn-assinar {
  background: var(--primary);
  color: white;
}

.icon-download {
  width: 20px;
  height: 20px;
  /* filter: brightness(0) invert(1); */
}

.versao-txt {
  font-size: 0.8rem;
  color: #ccc;
  font-weight: 500;
  margin-left: 4px;
}

.hero-image {
  flex: 1 1 500px;
  text-align: center;
}

.hero-image img {
  max-width: 100%;
  height: auto;
  margin-top: 2rem;
}

/* ========== Responsivo: HERO ========= */
@media (max-width: 768px) {
  .hero .container {
    flex-direction: column;
    text-align: center;
  }

  .hero-image img {
    max-width: 75%;
    margin: 2rem auto 0;
  }
}

/* =======================================================================
   7. FOOTER
   ======================================================================= */
footer {
  background: var(--black);
  color: white;
  text-align: center;
  padding: 1rem 0;
}

/* =======================================================================
   8. CHANGELOG PAGE
   ======================================================================= */
.changelog-container {
  background: var(--white);
  padding: 6rem 0 4rem;
}

.changelog-container h1 {
  font-size: 2.75rem;
  font-weight: 700;
  margin-bottom: 3rem;
  color: var(--text-dark);
}

.changelog-container .container {
  max-width: 1216px;
  margin: 0 auto;
}

.changelog-box {
  background: #fff;
  padding: 2rem 2rem 1.75rem;
  margin-bottom: 2.5rem;
  border-left: 5px solid var(--primary);
  border-radius: 12px;
  box-shadow: 0 8px 20px rgba(0, 0, 0, 0.08);
  transition: transform 0.2s ease;
}

.changelog-box:hover {
  transform: translateY(-2px);
}

.changelog-header {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  margin-bottom: 1rem;
}

.changelog-box h2 {
  font-size: 1.6rem;
  color: var(--primary);
  margin: 0;
  font-weight: 700;
}

.changelog-date {
  font-size: 0.95rem;
  color: #999;
  font-weight: 500;
}

.changelog-items {
  padding-left: 1.2rem;
  list-style: disc;
  line-height: 1.7;
  font-size: 1.05rem;
  margin-top: 0.75rem;
}


/* =========================
   9. MOBILE MENU TOGGLE
   ========================= */
.menu-toggle {
  display: none;
  flex-direction: column;
  justify-content: center;
  gap: 6px;
  cursor: pointer;
  margin-left: auto;
  z-index: 1001;
  width: 30px;
  height: 30px;
  position: relative;
}

.menu-toggle span {
  display: block;
  width:100%;
  height: 3px;
  background: white;
  border-radius: 2px;
  transition: all 0.3s ease-in-out;
  transform-origin: center;
  position: absolute;
  left: 0;
}

/* Top bar */
.menu-toggle span:nth-child(1) {
  top: 6px;
}

/* Middle bar */
.menu-toggle span:nth-child(2) {
  top: 13px;
}

/* Bottom bar */
.menu-toggle span:nth-child(3) {
  top: 20px;
}

/* Estado aberto - vira X */
.menu-toggle.open span:nth-child(1) {
  transform: rotate(45deg);
  top: 13px;
}

.menu-toggle.open span:nth-child(2) {
  opacity: 0;
}

.menu-toggle.open span:nth-child(3) {
  transform: rotate(-45deg);
  top: 13px;
}



/* =======================================================================
   10. RESPONSIVO: Header & Mobile Nav
   ======================================================================= */
@media (max-width: 768px) {
  .header-content {
    flex-direction: row;
    align-items: center;
    justify-content: space-between;
    padding: 0.5rem 1.5rem;
    position: relative;
  }

  .logo-group {
    display: flex;
    align-items: center;
  }

  .logo-text {
    margin-left: 8px;
    font-size: 1.25rem;
    font-weight: 600;
  }

  .menu-toggle {
    display: flex;
  }

  nav {
    position: absolute;
    top: 100%;
    left: 0;
    width: 100%;
    display: flex;
    justify-content: center;
    align-items: center;
    flex-wrap: wrap;
    background: transparent;
    padding: 0.5rem 1rem;
    opacity: 0;
    pointer-events: none;
    transform: scale(0.95);
    transition: opacity 1.2s ease, transform 1.2s ease;
    z-index: 999;
  }

  nav.active {
    opacity: 1;
    pointer-events: auto;
    transform: scale(1);
  }

  nav a {
    color: var(--primary);
    font-size: 0.95rem;
    font-weight: 500;
    text-decoration: none;
    padding: 0.4rem 0.5rem;
    margin: 0 2px;
    border-radius: 6px;
    transition: background 0.2s ease;
    position: relative;
  }

  /* nav a:not(:last-child)::after {
    content: "|";
    position: absolute;
    right: -6px;
    top: 50%;
    transform: translateY(-50%);
    color: var(--primary);
    opacity: 0.4;
  } */

  nav a:hover {
    background: rgba(0, 129, 254, 0.07);
  }

  nav .btn-cta {
    background: var(--primary);
    color: white;
    padding: 0.4rem 1rem;
    font-weight: 600;
    margin-left: 6px;
  }

  /* Hero layout mobile */
  .btns {
    flex-wrap: wrap;
    justify-content: flex-start;
    gap: 1rem;
  }

  .hero .container {
    flex-direction: column;
    align-items: flex-start;
  }

  .hero-text {
    width: 100%;
    text-align: left;
  }

  .hero-image img {
    max-width: 75%;
    margin: 2rem auto 0;
  }
}
