/* Home pública: base */
/* Home pública: base */
*,
*::before,
*::after {
  box-sizing: border-box;
}

html,
body {
  width: 100%;
  min-height: 100%;
  margin: 0;
  padding: 0;
}

html {
  background: #031b0e;
}

body {
  min-width: 320px;
  background: #031b0e;
  color: #ffffff;
  font-family: "Inter", sans-serif;
  font-weight: 400;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

/* Estrutura e fundo */
.home-page {
  --home-green-950: #031b0e;
  --home-green-900: #062e18;
  --home-green-850: #083a1f;
  --home-green-800: #0c4423;
  --home-green-700: #10522b;
  --home-green-600: #166f41;
  --home-accent: #67b67b;
  --home-accent-light: #86cb96;
  --home-white: #ffffff;
  --home-text: rgba(255, 255, 255, 0.96);
  --home-text-soft: rgba(255, 255, 255, 0.73);
  --home-text-muted: rgba(255, 255, 255, 0.5);
  position: relative;
  display: grid;
  grid-template-rows:
    auto
    minmax(0, 1fr)
    auto;
  width: 100%;
  min-height: 100vh;
  min-height: 100svh;
  overflow: hidden;
  isolation: isolate;
  background: var(--home-green-950);
}

.home-background {
  position: absolute;
  inset: 0;
  z-index: -4;
  overflow: hidden;
}

.home-background img {
  display: block;
  width: 100vw;
  height: 100vh;
  object-fit: cover;
  object-position: center center;
  transform: scale(1.015);
}

.home-overlay {
  position: absolute;
  inset: 0;
  z-index: -3;
  pointer-events: none;
  background: rgba(3, 25, 13, 0.2);
}

.home-gradient {
  position: absolute;
  inset: 0;
  z-index: -2;
  pointer-events: none;
  background:
    linear-gradient(
      90deg,
      rgba(1, 19, 9, 0.98) 0%,
      rgba(2, 26, 13, 0.95) 18%,
      rgba(3, 34, 17, 0.87) 34%,
      rgba(4, 38, 19, 0.70) 50%,
      rgba(3, 29, 16, 0.40) 67%,
      rgba(2, 21, 11, 0.16) 84%,
      rgba(1, 16, 8, 0.06) 100%
    ),
    linear-gradient(
      180deg,
      rgba(1, 16, 8, 0.24) 0%,
      rgba(1, 15, 7, 0.05) 44%,
      rgba(1, 13, 6, 0.32) 68%,
      rgba(1, 11, 5, 0.80) 100%
    );
}

/* Cabeçalho e acesso */
.home-header {
  position: relative;
  z-index: 2;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 32px;
  width: 100%;
  padding: clamp(26px, 3.6vw, 46px) clamp(28px, 5vw, 70px);
}

.home-brand {
  display: inline-flex;
  align-items: center;
  width: clamp(145px, 13vw, 185px);
  flex: 0 0 auto;
  text-decoration: none;
}

.home-brand__logo {
  display: block;
  width: 90%;
  height: auto;
  margin-top: 16px;
  filter: brightness(0) invert(1);
  opacity: 0.96;
  transition: opacity 150ms ease;
}

.home-brand:hover .home-brand__logo {
  opacity: 1;
}

.home-header-login {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 9px;
  min-height: 48px;
  padding: 0 18px;
  border: 1px solid rgba(255, 255, 255, 0.34);
  border-radius: 10px;
  background: rgba(3, 35, 18, 0.42);
  color: rgba(255, 255, 255, 0.95);
  font-size: 12px;
  font-weight: 600;
  text-decoration: none;
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.05);
  transition:
    border-color 150ms ease,
    background 150ms ease,
    transform 150ms ease;
}

.home-header-login:hover {
  border-color: rgba(255, 255, 255, 0.58);
  background: rgba(6, 58, 30, 0.7);
  transform: translateY(-1px);
}

.home-header-login svg {
  width: 16px;
  height: 16px;
  flex: 0 0 auto;
  stroke-width: 1.8;
}

/* Apresentação */
.home-hero {
  position: relative;
  z-index: 1;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: clamp(42px, 6vw, 90px);
  width: 100%;
  padding: 26px clamp(28px, 5vw, 70px) 52px;
}

.home-hero__content {
  width: min(720px, 65vw);
  min-width: 0;
  padding-bottom: clamp(8px, 2.4vh, 30px);
}

.home-eyebrow {
  display: flex;
  align-items: center;
  gap: 19px;
  margin-bottom: 24px;
}

.home-eyebrow > span:first-child {
  color: var(--home-accent-light);
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 0.24em;
  text-transform: uppercase;
}

.home-eyebrow__line {
  width: 58px;
  height: 1px;
  background: rgba(134, 203, 150, 0.58);
}

.home-hero h1 {
  max-width: 760px;
  margin: 0;
  color: var(--home-text);
  font-size: clamp(44px, 5vw, 75px);
  font-weight: 700;
  line-height: 1.035;
  letter-spacing: -0.052em;
}

.home-hero h1 span {
  color: var(--home-accent-light);
  font-weight: 700;
}

.home-hero__description {
  margin: clamp(23px, 2.8vw, 32px) 0 0;
  color: var(--home-text-soft);
  font-size: clamp(14px, 1.25vw, 17px);
  font-weight: 400;
  line-height: 1.72;
}

.home-hero__actions {
  display: flex;
  align-items: center;
  margin-top: clamp(27px, 3.4vw, 38px);
}

.home-primary-button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  min-width: 190px;
  min-height: 56px;
  padding: 0 22px;
  border: 1px solid rgba(115, 192, 135, 0.36);
  border-radius: 10px;
  background: var(--home-green-700);
  color: #ffffff;
  font-size: 13px;
  font-weight: 600;
  text-decoration: none;
  box-shadow: 0 12px 28px rgba(0, 15, 7, 0.3);
  transition:
    background 150ms ease,
    border-color 150ms ease,
    box-shadow 150ms ease,
    transform 150ms ease;
}

.home-primary-button:hover {
  border-color: rgba(134, 203, 150, 0.65);
  background: var(--home-green-600);
  box-shadow: 0 16px 34px rgba(0, 15, 7, 0.36);
  transform: translateY(-2px);
}

.home-primary-button svg {
  width: 17px;
  height: 17px;
  flex: 0 0 auto;
  stroke-width: 1.9;
}

/* Recursos */
.home-features {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 10px;
  width: min(680px, 100%);
  margin-top: clamp(29px, 4vw, 44px);
}

.home-feature {
  display: grid;
  grid-template-columns: 36px minmax(0, 1fr);
  align-items: center;
  gap: 11px;
  min-width: 0;
  min-height: 64px;
  padding: 12px;
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: 9px;
  background: rgba(3, 32, 16, 0.5);
  backdrop-filter: blur(9px);
  -webkit-backdrop-filter: blur(9px);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.035);
}

.home-feature__icon {
  display: grid;
  place-items: center;
  width: 36px;
  height: 36px;
  border-radius: 7px;
  background: rgba(103, 182, 123, 0.13);
  color: var(--home-accent-light);
}

.home-feature__icon svg {
  width: 17px;
  height: 17px;
  stroke-width: 1.8;
}

.home-feature > div {
  min-width: 0;
}

.home-feature strong,
.home-feature small {
  display: block;
}

.home-feature strong {
  color: rgba(255, 255, 255, 0.92);
  font-size: 11px;
  font-weight: 600;
}

.home-feature small {
  margin-top: 3px;
  overflow: hidden;
  color: rgba(255, 255, 255, 0.48);
  font-size: 9px;
  font-weight: 400;
  text-overflow: ellipsis;
  white-space: nowrap;
}

/* Rodapé */
.home-footer {
  position: relative;
  z-index: 2;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 28px;
  margin: 0 clamp(28px, 5vw, 64px);
  padding: 21px 0 25px;
  border-top: 1px solid rgba(255, 255, 255, 0.28);
  color: var(--home-text-muted);
  font-size: 10px;
}

.home-footer__right {
  display: flex;
  align-items: center;
  gap: 18px;
}

.home-footer__item {
  display: inline-flex;
  align-items: center;
  gap: 7px;
}

.home-footer__item svg {
  width: 14px;
  height: 14px;
  stroke-width: 1.7;
}

.home-footer__divider {
  width: 1px;
  height: 17px;
  background: rgba(255, 255, 255, 0.25);
}

.home-footer strong {
  color: rgba(255, 255, 255, 0.78);
  font-weight: 600;
}

.home-brand:focus-visible,
.home-header-login:focus-visible,
.home-primary-button:focus-visible {
  outline: 3px solid rgba(134, 203, 150, 0.4);
  outline-offset: 4px;
}

@media (max-width: 1180px) {
  .home-hero {
    gap: 32px;
  }

  .home-hero__content {
    width: min(680px, 72vw);
  }
}

@media (max-width: 920px) {
  .home-background img {
    object-position: 62% center;
  }

  .home-gradient {
    background:
      linear-gradient(
        90deg,
        rgba(2, 24, 12, 0.98) 0%,
        rgba(3, 34, 17, 0.94) 40%,
        rgba(4, 37, 20, 0.7) 70%,
        rgba(3, 25, 14, 0.38) 100%
      ),
      linear-gradient(
        180deg,
        rgba(2, 20, 10, 0.25) 0%,
        rgba(2, 18, 10, 0.06) 44%,
        rgba(1, 14, 7, 0.76) 100%
      );
  }

  .home-hero__content {
    width: min(660px, 84vw);
  }
}

@media (max-width: 640px) {
  .home-background img {
    object-position: 67% center;
  }

  .home-gradient {
    background:
      linear-gradient(
        90deg,
        rgba(2, 24, 12, 0.97) 0%,
        rgba(3, 34, 17, 0.82) 100%
      ),
      linear-gradient(
        180deg,
        rgba(2, 18, 9, 0.31) 0%,
        rgba(2, 18, 9, 0.14) 43%,
        rgba(1, 14, 7, 0.88) 100%
      );
  }

  .home-header {
    padding: 21px 20px;
  }

  .home-brand {
    width: 125px;
  }

  .home-header-login {
    width: 44px;
    height: 44px;
    min-height: 44px;
    padding: 0;
    border-radius: 9px;
  }

  .home-header-login span {
    display: none;
  }

  .home-hero {
    align-items: center;
    padding: 31px 20px 44px;
  }

  .home-hero__content {
    width: 100%;
    padding-bottom: 0;
  }

  .home-eyebrow {
    gap: 15px;
    margin-bottom: 19px;
  }

  .home-eyebrow > span:first-child {
    font-size: 9px;
  }

  .home-eyebrow__line {
    width: 42px;
  }

  .home-hero h1 {
    font-size: clamp(38px, 10.7vw, 52px);
    line-height: 1.02;
  }

  .home-hero__description {
    margin-top: 23px;
    font-size: 14px;
    line-height: 1.62;
  }

  .home-desktop-only {
    display: none;
  }

  .home-primary-button {
    width: 100%;
    min-height: 56px;
  }

  .home-features {
    grid-template-columns: 1fr;
    gap: 8px;
    width: 100%;
    margin-top: 27px;
  }

  .home-feature {
    min-height: 58px;
    padding: 10px 12px;
  }

  .home-feature small {
    white-space: normal;
  }

  .home-footer {
    align-items: flex-start;
    flex-direction: column;
    gap: 12px;
    margin: 0 20px;
    padding-bottom: 20px;
  }

  .home-footer__right {
    flex-wrap: wrap;
    gap: 11px;
  }
}

@media (max-width: 420px) {
  .home-brand {
    width: 115px;
  }

  .home-hero h1 {
    font-size: clamp(35px, 10.4vw, 43px);
  }
}

@media (prefers-reduced-motion: reduce) {
  .home-brand__logo,
  .home-header-login,
  .home-primary-button {
    transition: none;
  }

  .home-header-login:hover,
  .home-primary-button:hover {
    transform: none;
  }
}
