/* =========================
   RESET BÁSICO / NORMALIZE
   ========================= */

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

html {
  font-size: 100%;
  scroll-behavior: smooth;
}

body {
  margin: 0;
  padding: 0;
  font-family: "Bai Jamjuree", system-ui, -apple-system, BlinkMacSystemFont,
    "Segoe UI", sans-serif;
  /* 
    Se quiser usar a fonte local, adicione em assets/fonts e
    declare @font-face acima desta regra.
  */
  color: #4c545d;
  background-color: #ffffff;
}

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

a {
  color: inherit;
  text-decoration: none;
}

button {
  font-family: inherit;
}

/* Remove outlines apenas visuais, reaplicando no :focus-visible */
:focus {
  outline: none;
}

:focus-visible {
  outline: 2px solid #26baa4;
  outline-offset: 3px;
}

/* =========================
   VARIÁVEIS
   ========================= */

:root {
  --color-primary: #26baa4;
  --color-primary-hover: #21a190;
  --color-secondary: #6173ff;
  --color-secondary-hover: #4f62e5;

  --color-text-main: #4c545d;
  --color-text-muted: #9fabb2;
  --color-bg-light: #f5f6f8;

  --radius-pill: 999px;
  --shadow-btn: 0 10px 25px rgba(0, 0, 0, 0.15);

  --container-max-width: 1100px;
  --section-padding-y: 4.5rem;
}

/* =========================
   HELPERS
   ========================= */

.container {
  width: 100%;
  max-width: var(--container-max-width);
  margin-inline: auto;
  padding-inline: 1.5rem;
}

/* Skip link */
.skip-link {
  position: absolute;
  top: 1rem;
  left: 1rem;
  padding: 0.5rem 1rem;
  background-color: #ffffff;
  border-radius: 0.25rem;
  transform: translateY(-200%);
  transition: transform 0.2s ease;
  z-index: 1000;
}

.skip-link:focus-visible {
  transform: translateY(0);
}

/* =========================
   HERO
   ========================= */

.hero {
  position: relative;
  text-align: center;
  padding-top: 5rem;
  padding-bottom: 4.5rem;
  overflow: hidden;
}

/* Fundo esfumado do topo.
   Ajuste para usar imagem real se tiver:
   .hero__bg { background-image: url("../assets/images/bg-header-mobile.png"); }
*/
.hero__bg {
  position: absolute;
  inset: 0;
  background: linear-gradient(
    to bottom,
    #f5f6f8 0%,
    rgba(245, 246, 248, 0.7) 40%,
    #ffffff 100%
  );
  z-index: -1;
}

.hero__content {
  display: flex;
  flex-direction: column;
  align-items: center;
}

.hero__logo {
  margin-bottom: 2.5rem;
}

.hero__logo img {
  width: 90px;
  height: auto;
}

.hero__title {
  font-size: 1.9rem;
  line-height: 1.3;
  margin: 0 0 1rem;
}

.hero__subtitle {
  max-width: 34rem;
  margin: 0 0 2.5rem;
  color: var(--color-text-muted);
  font-size: 0.95rem;
}

/* Botões principais */

.hero__actions {
  display: flex;
  flex-direction: column;
  gap: 1rem;
}

/* =========================
   BOTÕES
   ========================= */

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0.9rem 2.7rem;
  border-radius: var(--radius-pill);
  border: none;
  cursor: pointer;
  font-weight: 600;
  font-size: 0.95rem;
  color: #ffffff;
  box-shadow: var(--shadow-btn);
  transition: background-color 0.15s ease, transform 0.15s ease,
    box-shadow 0.15s ease;
  white-space: nowrap;
}

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

.btn--primary:hover,
.btn--primary:focus-visible {
  background-color: var(--color-primary-hover);
  transform: translateY(-1px);
}

.btn--secondary {
  background-color: var(--color-secondary);
}

.btn--secondary:hover,
.btn--secondary:focus-visible {
  background-color: var(--color-secondary-hover);
  transform: translateY(-1px);
}

/* =========================
   SEÇÕES GENÉRICAS
   ========================= */

.section {
  padding-block: var(--section-padding-y);
}

.section__header {
  text-align: center;
  margin-bottom: 3rem;
}

.section__title {
  font-size: 1.5rem;
  margin: 0 0 0.8rem;
}

.section__subtitle {
  margin: 0 auto;
  max-width: 36rem;
  color: var(--color-text-muted);
  font-size: 0.95rem;
}

/* =========================
   SECTION: SNIPPETS
   ========================= */

.section--snippets {
  padding-top: 0;
}

.snippets {
  display: flex;
  flex-direction: column;
  gap: 2.5rem;
}

.snippets__image-wrapper {
  align-self: center;
}

.snippets__image {
  max-width: 100%;
}

.snippets__features {
  display: flex;
  flex-direction: column;
  gap: 2rem;
  text-align: center;
}

.feature__title {
  margin: 0 0 0.4rem;
  font-size: 1.1rem;
}

.feature__text {
  margin: 0;
  color: var(--color-text-muted);
  font-size: 0.9rem;
}

/* =========================
   SECTION: ACCESS
   ========================= */

.section--access {
  text-align: center;
}

.access__image-wrapper {
  margin-top: 2.5rem;
}

.access__image {
  max-width: 100%;
}

/* =========================
   SECTION: WORKFLOW
   ========================= */

.workflow {
  display: grid;
  grid-template-columns: 1fr;
  gap: 2.5rem;
  text-align: center;
}

.workflow-card__icon {
  margin-bottom: 1.4rem;
}

.workflow-card__icon img {
  width: 40px;
  height: auto;
  margin-inline: auto;
}

.workflow-card__title {
  margin: 0 0 0.4rem;
  font-size: 1.05rem;
}

.workflow-card__text {
  margin: 0;
  color: var(--color-text-muted);
  font-size: 0.9rem;
}

/* =========================
   SECTION: CLIENTS
   ========================= */

.section--clients {
  padding-block: 4rem;
}

.clients {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 2.5rem;
}

.clients__item img {
  height: 26px;
  width: auto;
}

/* =========================
   SECTION: DOWNLOADS / CTA
   ========================= */

.section--downloads {
  text-align: center;
}

.downloads__actions {
  display: flex;
  flex-direction: column;
  gap: 1rem;
  margin-top: 2.5rem;
}

/* =========================
   FOOTER
   ========================= */

.footer {
  background-color: var(--color-bg-light);
  padding-block: 2.5rem;
}

.footer__content {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 2rem;
}

.footer__brand img {
  width: 40px;
  height: auto;
}

.footer__nav {
  display: flex;
  flex-direction: column;
  gap: 0.7rem;
  text-align: center;
}

.footer__link {
  color: var(--color-text-main);
  font-size: 0.9rem;
}

.footer__link:hover,
.footer__link:focus-visible {
  color: var(--color-primary);
}

.footer__social {
  display: flex;
  gap: 1.2rem;
}

.footer__social-link img {
  width: 20px;
  height: auto;
}

.footer__social-link:hover img,
.footer__social-link:focus-visible img {
  filter: brightness(0) saturate(100%) invert(54%) sepia(47%) saturate(469%)
    hue-rotate(115deg) brightness(89%) contrast(87%);
}

/* =========================
   MEDIA QUERIES
   ========================= */

/* Tablets */
@media (min-width: 600px) {
  .hero {
    padding-top: 6rem;
    padding-bottom: 5.5rem;
  }

  .hero__title {
    font-size: 2.4rem;
  }

  .hero__subtitle {
    font-size: 1rem;
  }

  .hero__actions {
    flex-direction: row;
  }

  .section {
    padding-block: 5.5rem;
  }

  .workflow {
    grid-template-columns: repeat(3, 1fr);
    text-align: left;
  }

  .workflow-card {
    text-align: center; /* continua centralizado visualmente */
  }

  .clients {
    flex-direction: row;
    justify-content: center;
  }

  .footer__content {
    flex-direction: row;
    justify-content: space-between;
    align-items: center;
  }

  .footer__nav {
    flex-direction: row;
    gap: 2rem;
    text-align: left;
  }
}

/* Desktop */
@media (min-width: 900px) {
  /* Ajuste de fundo hero para desktop (caso use imagem) */
  /*
  .hero__bg {
    background-image: url("../assets/images/bg-header-desktop.png");
    background-repeat: no-repeat;
    background-size: cover;
  }
  */

  .hero__title {
    font-size: 2.8rem;
  }

  .section--snippets .section__header {
    margin-bottom: 3.5rem;
  }

  .snippets {
    flex-direction: row;
    align-items: center;
    gap: 5rem;
  }

  .snippets__image-wrapper {
    flex: 1;
    transform: translateX(-2rem); /* leve deslocamento, similar ao design */
  }

  .snippets__features {
    flex: 1;
    text-align: left;
    max-width: 22rem;
  }

  .downloads__actions {
    flex-direction: row;
    justify-content: center;
  }

  .section--clients {
    padding-block: 5rem;
  }

  .section {
    padding-block: 6rem;
  }
}

/* Grandes monitores / ultrawide */
@media (min-width: 1200px) {
  .hero {
    padding-top: 7rem;
  }

  .container {
    padding-inline: 0;
  }
}