/* ===== Reset & Base ===== */
*,
*::before,
*::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

:root {
  --white-90: rgba(255, 255, 255, 0.9);
  --white-80: rgba(255, 255, 255, 0.8);
  --white-70: rgba(255, 255, 255, 0.7);
  --white-15: rgba(255, 255, 255, 0.15);
  --white-10: rgba(255, 255, 255, 0.1);
  --white-5: rgba(255, 255, 255, 0.05);
  --ease-out: cubic-bezier(0.16, 1, 0.3, 1);
  --duration: 0.7s;
  --header-offset: 4.5rem;
  --focus-ring: 0 0 0 2px #000, 0 0 0 4px rgba(255, 255, 255, 0.92);
}

html {
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  scroll-behavior: smooth;
}

body {
  font-family: 'Inter', system-ui, -apple-system, sans-serif;
  color: white;
  background: #000;
  line-height: 1.5;
}

body.nav-open {
  overflow: hidden;
}

.skip-link {
  position: absolute;
  top: 0.75rem;
  left: 0.75rem;
  z-index: 100;
  padding: 0.5rem 0.875rem;
  border-radius: 9999px;
  background: white;
  color: #171717;
  font-size: 0.875rem;
  font-weight: 500;
  clip-path: inset(50%);
  width: 1px;
  height: 1px;
  overflow: hidden;
  white-space: nowrap;
}

.skip-link:focus-visible {
  clip-path: none;
  width: auto;
  height: auto;
  overflow: visible;
  white-space: nowrap;
  outline: none;
  box-shadow: var(--focus-ring);
}

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

:focus {
  outline: none;
}

:focus-visible {
  outline: none;
  box-shadow: var(--focus-ring);
}

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

/* ===== Hero Section ===== */
.hero {
  position: relative;
  display: flex;
  flex-direction: column;
  width: 100%;
  min-height: 100vh;
  min-height: 100dvh;
  overflow: hidden;
  isolation: isolate;
}

.hero__bg {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  z-index: 0;
  opacity: 0;
  transform: translate3d(0, 0, 0);
  backface-visibility: hidden;
  perspective: 1000px;
  will-change: opacity;
  pointer-events: none;
}

.hero__bg--1 {
  opacity: 1;
}

.hero.is-ready .hero__bg {
  animation: hero-crossfade 18s linear infinite;
}

.hero.is-ready .hero__bg--1 {
  animation-delay: 0s;
}

.hero.is-ready .hero__bg--2 {
  animation-delay: -12s;
}

.hero.is-ready .hero__bg--3 {
  animation-delay: -6s;
}

@keyframes hero-crossfade {
  0% { opacity: 1; }
  25% { opacity: 1; }
  33.33% { opacity: 0; }
  91.67% { opacity: 0; }
  100% { opacity: 1; }
}

.hero__ring-overlay,
.hero__scrim {
  position: absolute;
  inset: 0;
  z-index: 1;
  pointer-events: none;
}

.hero__ring-overlay {
  box-shadow: inset 0 0 0 1px rgba(0, 0, 0, 0.3);
}

.hero__scrim {
  background:
    linear-gradient(180deg, rgba(0, 0, 0, 0.38) 0%, rgba(0, 0, 0, 0.08) 38%, rgba(0, 0, 0, 0.42) 100%);
}

/* ===== Header ===== */
.header {
  position: relative;
  z-index: 30;
}

.header__inner {
  margin: 0 max(1.25rem, env(safe-area-inset-right)) 0 max(1.25rem, env(safe-area-inset-left));
  padding-top: max(1rem, env(safe-area-inset-top));
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
}

.header__logo {
  position: relative;
  display: inline-flex;
  align-items: center;
  overflow: visible;
  flex-shrink: 0;
  padding-right: 0;
  border-radius: 0.5rem;
}

.header__logo img {
  height: 28px;
  width: auto;
}

.header__logo-main {
  position: relative;
  z-index: 2;
}

.header__logo-smile {
  position: absolute;
  left: calc(100% + 1px);
  top: 50%;
  height: 28px;
  opacity: 0;
  transform: translateY(-50%);
  animation: smile-slide-in 5.4s cubic-bezier(0.16, 1, 0.3, 1) forwards;
  animation-delay: 8s;
}

@keyframes smile-slide-in {
  from {
    opacity: 0;
    transform: translate(2px, -50%);
  }
  to {
    opacity: 1;
    transform: translate(12px, -50%);
  }
}

/* ===== Navigation ===== */
.nav-backdrop {
  position: fixed;
  inset: 0;
  z-index: 20;
  background: rgba(0, 0, 0, 0.45);
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.25s var(--ease-out);
}

.nav-backdrop.is-visible {
  opacity: 1;
  pointer-events: auto;
}

.nav {
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

.nav__panel-label {
  display: none;
}

.nav__pill {
  display: flex;
  align-items: center;
  gap: 0.25rem;
  padding: 0.25rem;
  border-radius: 9999px;
  background: var(--white-5);
  box-shadow: inset 0 0 0 1px var(--white-10);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
}

.nav__link {
  padding: 0.5rem 0.75rem;
  font-size: 0.875rem;
  font-weight: 500;
  color: var(--white-80);
  border-radius: 9999px;
  transition: color 0.2s, background 0.2s;
  background: none;
  border: none;
  cursor: pointer;
  font-family: inherit;
}

.nav__link:hover {
  color: white;
}

.nav__cta {
  margin-left: 0.25rem;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  padding: 0.5rem 0.875rem;
  border-radius: 9999px;
  background: white;
  font-size: 0.875rem;
  font-weight: 500;
  color: #171717;
  transition: background 0.2s;
  border: none;
  cursor: pointer;
  font-family: inherit;
}

.nav__cta:hover {
  background: rgba(255, 255, 255, 0.9);
}

@media (max-width: 767px) {
  .nav {
    position: fixed;
    top: calc(var(--header-offset) + env(safe-area-inset-top));
    right: 0;
    left: 0;
    z-index: 80;
    display: block;
    padding: 0.5rem max(1.25rem, env(safe-area-inset-right)) 1.5rem max(1.25rem, env(safe-area-inset-left));
    visibility: hidden;
    opacity: 0;
    pointer-events: none;
    transform: translateY(-0.5rem);
    transition: opacity 0.25s var(--ease-out), transform 0.25s var(--ease-out), visibility 0.25s;
  }

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

  .nav__panel {
    width: 100%;
  }

  .nav__panel-label {
    display: block;
    margin-bottom: 0.75rem;
    padding-left: 0.25rem;
    font-size: 0.75rem;
    font-weight: 500;
    letter-spacing: 0.04em;
    text-transform: uppercase;
    color: var(--white-70);
  }

  .nav__pill {
    flex-direction: column;
    align-items: stretch;
    gap: 0.25rem;
    padding: 0.5rem;
    border-radius: 1.25rem;
    background: rgba(18, 18, 18, 0.72);
    box-shadow: inset 0 0 0 1px var(--white-15);
  }

  .nav__link {
    padding: 0.875rem 1rem;
    min-height: 2.75rem;
    text-align: left;
  }

  .nav__link:hover,
  .nav__link:focus-visible {
    background: var(--white-10);
    color: white;
  }

  .nav__cta {
    margin: 0.25rem 0 0;
    min-height: 2.75rem;
    padding: 0.875rem 1rem;
  }
}

@media (min-width: 768px) {
  .nav-backdrop {
    display: none;
  }
}

/* ===== Mobile Menu Toggle ===== */
.menu-toggle {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 2.75rem;
  height: 2.75rem;
  min-width: 44px;
  min-height: 44px;
  border-radius: 9999px;
  border: none;
  background: var(--white-10);
  box-shadow: inset 0 0 0 1px var(--white-15);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  color: var(--white-90);
  cursor: pointer;
  flex-shrink: 0;
  transition: background 0.2s;
}

.menu-toggle:hover {
  background: var(--white-15);
}

.menu-toggle[aria-expanded="true"] {
  background: white;
  color: #171717;
  box-shadow: none;
}

.menu-toggle__icon--close {
  display: none;
}

.menu-toggle[aria-expanded="true"] .menu-toggle__icon--open {
  display: none;
}

.menu-toggle[aria-expanded="true"] .menu-toggle__icon--close {
  display: block;
}

@media (min-width: 768px) {
  .menu-toggle {
    display: none;
  }
}

/* ===== Hero Content ===== */
.hero__content {
  position: relative;
  z-index: 10;
  flex: 1;
  display: flex;
  flex-direction: column;
}

.hero__container {
  max-width: 80rem;
  width: 100%;
  margin: 0 auto;
  padding:
    3.5rem max(1.25rem, env(safe-area-inset-right)) max(2rem, env(safe-area-inset-bottom)) max(1.25rem, env(safe-area-inset-left));
  flex: 1;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  gap: 2.5rem;
}

.hero__text {
  max-width: 48rem;
  margin: 0 auto;
  text-align: center;
}

@media (min-width: 640px) {
  .hero__container {
    padding-top: 5.5rem;
  }
}

@media (min-width: 768px) {
  .hero__container {
    padding-top: 7rem;
    padding-bottom: 3rem;
  }
}

@media (min-width: 1024px) {
  .hero__container {
    padding-top: 8.5rem;
  }
}

/* ===== Badge ===== */
.hero__badge {
  display: inline-flex;
  align-items: center;
  gap: 0.75rem;
  padding: 0.5rem 0.75rem 0.5rem 0.5rem;
  margin-bottom: 1.5rem;
  border-radius: 9999px;
  background: var(--white-10);
  box-shadow: inset 0 0 0 1px var(--white-15);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  max-width: 100%;
}

@media (max-width: 639px) {
  .hero__badge {
    flex-direction: column;
    align-items: center;
    gap: 0.4rem;
    padding: 0.55rem 0.9rem;
    border-radius: 1.15rem;
    text-align: center;
  }
}

.hero__badge-tag {
  display: inline-flex;
  align-items: center;
  flex-shrink: 0;
  padding: 0.125rem 0.5rem;
  border-radius: 9999px;
  background: rgba(255, 255, 255, 0.9);
  font-size: 0.75rem;
  font-weight: 500;
  color: #171717;
  min-height: 1.25rem;
}

.hero__badge-text {
  font-size: 0.875rem;
  font-weight: 500;
  color: var(--white-90);
  line-height: 1.35;
}

@media (max-width: 639px) {
  .hero__badge-text {
    font-size: 0.8125rem;
  }
}

/* ===== Font Face ===== */
@font-face {
  font-family: 'GeorgiaLocal';
  src: url('/nova-home/assets/font/georgia.ttf') format('truetype');
  font-weight: 400;
  font-style: normal;
  font-display: swap;
}

@font-face {
  font-family: 'GeorgiaLocal';
  src: url('/nova-home/assets/font/georgiab.ttf') format('truetype');
  font-weight: 700;
  font-style: normal;
  font-display: swap;
}

@font-face {
  font-family: 'GeorgiaLocal';
  src: url('/nova-home/assets/font/georgiai.ttf') format('truetype');
  font-weight: 400;
  font-style: italic;
  font-display: swap;
}

@font-face {
  font-family: 'GeorgiaLocal';
  src: url('/nova-home/assets/font/georgiaz.ttf') format('truetype');
  font-weight: 700;
  font-style: italic;
  font-display: swap;
}

/* ===== Title ===== */
.hero__title {
  font-family: 'GeorgiaLocal', Georgia, serif;
  font-weight: 400;
  font-size: 2.25rem;
  line-height: 1.12;
  letter-spacing: -0.025em;
  color: white;
  max-width: 48rem;
  margin: 0 auto;
}

.hero__title-break {
  display: inline;
}

@media (min-width: 640px) {
  .hero__title-break {
    display: block;
  }
}

@media (min-width: 640px) {
  .hero__title {
    font-size: 3rem;
  }
}

@media (min-width: 768px) {
  .hero__title {
    font-size: 3.75rem;
  }
}

@media (min-width: 1024px) {
  .hero__title {
    font-size: 4.5rem;
  }
}

/* ===== Subtitle ===== */
.hero__subtitle {
  max-width: 36rem;
  margin: 1.25rem auto 0;
  font-size: 1rem;
  color: var(--white-90);
}

@media (min-width: 640px) {
  .hero__subtitle {
    font-size: 1.125rem;
  }
}

/* ===== CTAs ===== */
.hero__ctas {
  display: flex;
  flex-direction: column;
  align-items: stretch;
  gap: 0.75rem;
  margin-top: 2rem;
  width: min(100%, 22rem);
  margin-left: auto;
  margin-right: auto;
}

@media (min-width: 640px) {
  .hero__ctas {
    flex-direction: row;
    justify-content: center;
    align-items: center;
    gap: 1rem;
    width: auto;
  }
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  min-height: 2.75rem;
  padding: 0.75rem 1.25rem;
  border-radius: 9999px;
  font-size: 0.875rem;
  font-weight: 500;
  transition: background 0.2s, color 0.2s;
  border: none;
  cursor: pointer;
  font-family: inherit;
}

.btn--primary {
  background: var(--white-10);
  color: white;
  box-shadow: inset 0 0 0 1px var(--white-15);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
}

.btn--primary:hover {
  background: var(--white-15);
}

.btn--ghost {
  background: transparent;
  color: var(--white-90);
  box-shadow: inset 0 0 0 1px var(--white-15);
}

.btn--ghost:hover {
  color: white;
  background: var(--white-5);
}

/* ===== Logos Section ===== */
.hero__logos {
  max-width: 64rem;
  width: 100%;
  margin: 0 auto;
  padding-top: 0.5rem;
}

.hero__logos-label {
  text-align: center;
  font-size: 0.875rem;
  color: var(--white-70);
}

.hero__logos-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 0.75rem 1rem;
  margin-top: 1.25rem;
  align-items: center;
  justify-items: center;
}

@media (min-width: 640px) {
  .hero__logos-grid {
    grid-template-columns: repeat(3, 1fr);
  }
}

@media (min-width: 768px) {
  .hero__logos-grid {
    grid-template-columns: repeat(6, 1fr);
  }
}

.hero__logo {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 120px;
  height: 36px;
  opacity: 0.8;
  transition: opacity 0.2s;
}

.hero__logo:hover {
  opacity: 1;
}

.hero__logo img {
  max-width: 100%;
  max-height: 100%;
  object-fit: contain;
  filter: brightness(0) invert(1);
}

.hero__logo--99 img {
  filter: grayscale(1) invert(1);
}

/* ===== Fade-in Animation ===== */
.fade-in {
  opacity: 0;
  transform: translateY(1rem);
  animation: fade-slide-in var(--duration) var(--ease-out) forwards;
}

.fade-in--1 { animation-delay: 0ms; }
.fade-in--2 { animation-delay: 100ms; }
.fade-in--3 { animation-delay: 200ms; }
.fade-in--4 { animation-delay: 300ms; }

@keyframes fade-slide-in {
  from {
    opacity: 0;
    transform: translateY(1rem);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

/* ==========================================================================
   MODAL - LIQUID GLASS
   ========================================================================== */

.modal {
  position: fixed;
  inset: 0;
  z-index: 1000;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 1rem;
  visibility: hidden;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.3s cubic-bezier(0.16, 1, 0.3, 1),
              visibility 0.3s cubic-bezier(0.16, 1, 0.3, 1);
}

.modal.is-open {
  visibility: visible;
  opacity: 1;
  pointer-events: auto;
}

.modal__backdrop {
  position: absolute;
  inset: 0;
  background: rgba(0, 0, 0, 0.78);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
}

.modal__dialog {
  position: relative;
  z-index: 2;
  width: 100%;
  max-width: 500px;
  max-height: calc(100dvh - 2rem);
  overflow-y: auto;
  overflow-x: hidden;
  background: rgba(16, 18, 24, 0.78);
  backdrop-filter: blur(24px);
  -webkit-backdrop-filter: blur(24px);
  border-radius: 1.75rem;
  border: 1px solid rgba(255, 255, 255, 0.16);
  box-shadow:
    0 24px 60px rgba(0, 0, 0, 0.7),
    0 0 0 1px rgba(255, 255, 255, 0.08),
    inset 0 1px 0 rgba(255, 255, 255, 0.35);
  padding: 2.25rem 2rem;
  color: var(--white-90);
  transform: scale(0.94) translateY(12px);
  transition: transform 0.35s cubic-bezier(0.16, 1, 0.3, 1);
}

.modal.is-open .modal__dialog {
  transform: scale(1) translateY(0);
}

/* Modal Wide (Modelos, Simulador) */
.modal__dialog--wide {
  max-width: 860px;
}

/* Botão de Fechar */
.modal__close {
  position: absolute;
  top: 1.25rem;
  right: 1.25rem;
  width: 36px;
  height: 36px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 9999px;
  background: rgba(255, 255, 255, 0.08);
  border: 1px solid rgba(255, 255, 255, 0.12);
  color: var(--white-80);
  cursor: pointer;
  transition: all 0.2s ease;
}

.modal__close:hover {
  background: rgba(255, 255, 255, 0.18);
  color: #fff;
  transform: scale(1.05);
}

.modal__header {
  margin-bottom: 1.75rem;
}

.modal__tag {
  display: inline-flex;
  align-items: center;
  padding: 0.25rem 0.75rem;
  border-radius: 9999px;
  font-size: 0.75rem;
  font-weight: 500;
  background: rgba(255, 255, 255, 0.08);
  border: 1px solid rgba(255, 255, 255, 0.15);
  color: var(--white-80);
  margin-bottom: 0.75rem;
}

.modal__title {
  font-family: 'GeorgiaLocal', Georgia, serif;
  font-size: 1.75rem;
  font-weight: 400;
  line-height: 1.2;
  color: #fff;
  margin-bottom: 0.5rem;
}

.modal__subtitle {
  font-size: 0.9rem;
  color: var(--white-70);
  line-height: 1.45;
}

/* Formulário e Campos */
.modal__form {
  display: flex;
  flex-direction: column;
  gap: 1.15rem;
}

.modal__field {
  display: flex;
  flex-direction: column;
  gap: 0.45rem;
  text-align: left;
}

.modal__label {
  font-size: 0.85rem;
  font-weight: 500;
  color: var(--white-80);
}

.modal__input,
.modal__select,
.modal__textarea {
  width: 100%;
  background: rgba(255, 255, 255, 0.06);
  border: 1px solid rgba(255, 255, 255, 0.14);
  border-radius: 0.875rem;
  padding: 0.8rem 1rem;
  font-family: inherit;
  font-size: 0.95rem;
  color: #fff;
  outline: none;
  box-shadow: inset 0 1px 2px rgba(0, 0, 0, 0.2);
  transition: all 0.25s ease;
}

.modal__input::placeholder,
.modal__textarea::placeholder {
  color: rgba(255, 255, 255, 0.35);
}

.modal__input:focus,
.modal__select:focus,
.modal__textarea:focus {
  background: rgba(255, 255, 255, 0.1);
  border-color: rgba(255, 255, 255, 0.45);
  box-shadow: 0 0 0 3px rgba(255, 255, 255, 0.15), inset 0 1px 2px rgba(0, 0, 0, 0.2);
}

.modal__select {
  appearance: none;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='16' height='16' viewBox='0 0 24 24' fill='none' stroke='rgba(255,255,255,0.7)' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='m6 9 6 6 6-6'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 1rem center;
  background-size: 1rem;
  cursor: pointer;
}

.modal__select option {
  background: #14171f;
  color: #fff;
  padding: 0.5rem;
}

.modal__textarea {
  resize: vertical;
  min-height: 80px;
  line-height: 1.45;
}

/* Botão Expansível de Detalhes Opcionais */
.modal__optional-toggle {
  display: inline-flex;
  align-items: center;
  justify-content: space-between;
  width: 100%;
  padding: 0.85rem 1.15rem;
  background: rgba(255, 255, 255, 0.05);
  border: 1px dashed rgba(255, 255, 255, 0.2);
  border-radius: 0.875rem;
  color: var(--white-80);
  font-family: inherit;
  font-size: 0.875rem;
  font-weight: 500;
  cursor: pointer;
  transition: all 0.2s ease;
  margin-top: 0.25rem;
}

.modal__optional-toggle:hover {
  background: rgba(255, 255, 255, 0.1);
  color: #fff;
  border-color: rgba(255, 255, 255, 0.35);
}

.modal__optional-toggle svg {
  transition: transform 0.35s cubic-bezier(0.16, 1, 0.3, 1);
}

.modal__optional-toggle[aria-expanded="true"] svg {
  transform: rotate(180deg);
}

/* Conteúdo Expansível (Gaveta Suave) */
.modal__optional-content {
  display: grid;
  grid-template-rows: 0fr;
  transition: grid-template-rows 0.35s cubic-bezier(0.16, 1, 0.3, 1),
              opacity 0.3s ease;
  opacity: 0;
}

.modal__optional-content.is-visible {
  grid-template-rows: 1fr;
  opacity: 1;
}

.modal__optional-inner {
  overflow: hidden;
  display: flex;
  flex-direction: column;
  gap: 1.15rem;
  padding-top: 0.75rem;
}

/* Botão Submit / Liquid Sheen */
.modal__submit {
  position: relative;
  overflow: hidden;
  margin-top: 0.5rem;
  width: 100%;
  padding: 0.95rem 1.5rem;
  border-radius: 9999px;
  background: #ffffff;
  color: #000000;
  font-family: inherit;
  font-size: 0.95rem;
  font-weight: 600;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  border: none;
  cursor: pointer;
  box-shadow: 0 4px 20px rgba(255, 255, 255, 0.25);
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.modal__submit:hover {
  transform: translateY(-2px);
  box-shadow: 0 6px 25px rgba(255, 255, 255, 0.4);
}

.modal__submit:active {
  transform: translateY(0);
}

/* Etapas do modal: formulário vs sucesso */
.modal:not(.is-success) .modal__step--success {
  display: none !important;
}

.modal__step--success[hidden] {
  display: none !important;
}

.modal.is-success .modal__step--form {
  display: none !important;
}

.modal.is-success .modal__step--success:not([hidden]) {
  display: block;
}

.modal__success {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  gap: 0.75rem;
  padding: 0.25rem 0 0.5rem;
}

.modal__success [hidden] {
  display: none !important;
}

.modal__success-icon {
  width: 4rem;
  height: 4rem;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 9999px;
  background: rgba(72, 199, 116, 0.15);
  border: 1px solid rgba(72, 199, 116, 0.45);
  color: #7ddea8;
  margin-bottom: 0.35rem;
  box-shadow:
    0 0 24px rgba(72, 199, 116, 0.2),
    inset 0 1px 0 rgba(255, 255, 255, 0.25);
}

.modal__success-title {
  font-family: 'GeorgiaLocal', Georgia, serif;
  font-size: 1.65rem;
  font-weight: 400;
  line-height: 1.25;
  color: #fff;
}

.modal__success-text {
  font-size: 0.9rem;
  color: var(--white-70);
  line-height: 1.45;
  max-width: 22rem;
}

.modal__countdown {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.25rem;
  margin: 0.5rem 0 0;
}

.modal__countdown-num {
  font-size: 1.75rem;
  font-weight: 500;
  line-height: 1;
  color: var(--white-80);
  font-variant-numeric: tabular-nums;
}

.modal__countdown-label {
  font-size: 0.8rem;
  font-weight: 400;
  color: var(--white-70);
}

.modal__success-skip,
.modal__success-fallback {
  font-size: 0.875rem;
  color: var(--white-70);
  line-height: 1.5;
  margin: 0.35rem 0 0;
  max-width: 22rem;
}

.modal__inline-link {
  display: inline;
  padding: 0;
  margin: 0;
  border: none;
  background: none;
  font: inherit;
  color: var(--white-90);
  text-decoration: underline;
  text-underline-offset: 3px;
  text-decoration-color: rgba(255, 255, 255, 0.35);
  cursor: pointer;
  transition: color 0.2s ease, text-decoration-color 0.2s ease;
}

.modal__inline-link-hover {
  display: none;
}

.modal__inline-link:hover {
  color: #fff;
  text-decoration-color: rgba(255, 255, 255, 0.65);
}

.modal__inline-link:hover .modal__inline-link-default {
  display: none;
}

.modal__inline-link:hover .modal__inline-link-hover {
  display: inline;
}

.modal__success-done {
  margin-top: 1.25rem;
  width: 100%;
  padding: 0.85rem 1.25rem;
  border-radius: 9999px;
  font-family: inherit;
  font-size: 0.9rem;
  font-weight: 600;
  cursor: pointer;
  border: none;
  background: #ffffff;
  color: #000000;
  box-shadow: 0 4px 20px rgba(255, 255, 255, 0.15);
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.modal__success-done:hover {
  transform: translateY(-1px);
  box-shadow: 0 6px 22px rgba(255, 255, 255, 0.22);
}

@media (max-width: 480px) {
  .modal__dialog {
    padding: 1.75rem 1.25rem;
    border-radius: 1.25rem;
  }

  .modal__title {
    font-size: 1.5rem;
  }
}

/* ==========================================================================
   MODAL MODELOS (Catálogo)
   ========================================================================== */

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

.modelo-card {
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: 1.15rem;
  overflow: hidden;
  display: flex;
  flex-direction: column;
}

.modelo-card img {
  width: 100%;
  height: 140px;
  object-fit: cover;
}

.modelo-card__body {
  padding: 16px;
  display: flex;
  flex-direction: column;
  flex: 1;
}

.modelo-card__body h3 {
  font-size: 1.05rem;
  color: #fff;
  margin-bottom: 6px;
}

.modelo-card__body p {
  font-size: 0.82rem;
  color: var(--white-70);
  line-height: 1.4;
  margin-bottom: 14px;
  flex: 1;
}

.modelo-card__body .btn {
  width: 100%;
  font-size: 0.82rem;
}

.modelos-carousel-hint {
  display: none;
}

/* ==========================================================================
   MODAL SIMULADOR VISUAL
   ========================================================================== */

.sim-card {
  display: grid;
  grid-template-columns: 0.95fr 1.05fr;
  gap: 20px;
  align-items: center;
  background: rgba(10, 12, 16, 0.5);
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: 1.25rem;
  padding: 18px;
}

.sim-controls {
  display: grid;
  gap: 8px;
}

.sim-btn {
  text-align: left;
  padding: 10px 12px;
  border-radius: 10px;
  border: 1px solid rgba(255, 255, 255, 0.1);
  background: rgba(255, 255, 255, 0.04);
  color: #ffffff;
  font-family: inherit;
  cursor: pointer;
  position: relative;
  overflow: hidden;
  transition: all 0.2s ease;
  display: flex;
  flex-direction: column;
}

.sim-btn span { font-size: 0.88rem; font-weight: 600; }
.sim-btn small { color: var(--white-70); font-size: 0.75rem; margin-top: 2px; }

.sim-btn:hover { background: rgba(255, 255, 255, 0.08); border-color: rgba(255, 255, 255, 0.25); }
.sim-btn.active { background: rgba(255, 255, 255, 0.14); border-color: rgba(255, 255, 255, 0.6); box-shadow: 0 0 15px rgba(255, 255, 255, 0.07); }

.sim-btn .progress-bar { position: absolute; bottom: 0; left: 0; height: 2px; width: 100%; background: transparent; }
.sim-btn .progress { height: 100%; width: 0; background: #fff; }
.sim-btn.active .progress { animation: sim-fill 5s linear forwards; }

@keyframes sim-fill { from { width: 0%; } to { width: 100%; } }

.sim-action-row { margin-top: 14px; }
.sim-action-row .btn { width: 100%; }

/* Scene Glass Preview */
.scene {
  position: relative;
  aspect-ratio: 16 / 10;
  border-radius: 10px;
  overflow: hidden;
  background: #111 url('/nova-home/assets/img/ambiente-artenacara.webp') center/cover;
  border: 1px solid rgba(255, 255, 255, 0.2);
}

.pane {
  position: absolute;
  left: 20%;
  width: 60%;
  top: 5%;
  bottom: 0;
  overflow: hidden;
  box-shadow: 0 0 0 1px rgba(255, 255, 255, 0.4), 0 0 30px rgba(255, 255, 255, 0.1);
}

.pane::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(115deg, rgba(255, 255, 255, 0.35), transparent 35%);
  pointer-events: none;
}

.layer {
  position: absolute;
  inset: 0;
  opacity: 0;
  transition: opacity 0.45s ease;
  background: rgba(255, 255, 255, 0.35);
  -webkit-backdrop-filter: blur(16px) brightness(1.1);
  backdrop-filter: blur(16px) brightness(1.1);
}

.layer.on { opacity: 1; }

.layer.stripes {
  -webkit-mask-image: repeating-linear-gradient(180deg, #000 0 28px, transparent 28px 48px);
  mask-image: repeating-linear-gradient(180deg, #000 0 28px, transparent 28px 48px);
}

.layer.cutout {
  --logo: url('/nova-home/assets/google-logo-white.svg');
  /* destination-out: recorte só no contorno das letras (furos internos ficam corretos) */
  -webkit-mask-image: linear-gradient(#fff, #fff), var(--logo);
  mask-image: linear-gradient(#fff, #fff), var(--logo);
  -webkit-mask-size: 100% 100%, 78% auto;
  mask-size: 100% 100%, 78% auto;
  -webkit-mask-position: 0 0, center calc(50% + 20px);
  mask-position: 0 0, center calc(50% + 20px);
  -webkit-mask-repeat: no-repeat;
  mask-repeat: no-repeat;
  -webkit-mask-composite: destination-out;
  mask-composite: subtract;
}

.sim-cap { margin-top: 10px; font-size: 0.85rem; color: var(--white-80); }
.sim-cap b { color: #fff; }
.sim-note { font-size: 0.72rem; color: rgba(255, 255, 255, 0.45); margin-top: 4px; }

/* ==========================================================================
   MODAL DÚVIDAS (FAQ)
   ========================================================================== */

.faq-list {
  display: flex;
  flex-direction: column;
  gap: 10px;
  overflow-anchor: none;
}

#modal-duvidas .modal__dialog {
  overflow-anchor: none;
  overscroll-behavior: contain;
}

.faq-item {
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: 0.875rem;
  padding: 12px 16px;
}

.faq-item__trigger {
  width: 100%;
  margin: 0;
  padding: 0;
  border: none;
  background: none;
  font: inherit;
  color: inherit;
  text-align: left;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 0.5rem;
  cursor: pointer;
}

.faq-item__label {
  font-weight: 600;
  font-size: 0.9rem;
  color: #fff;
}

.faq-item__icon::after {
  content: "+";
  display: block;
  font-size: 1.2rem;
  font-weight: 300;
  color: var(--white-70);
  flex-shrink: 0;
  transition: transform 0.28s cubic-bezier(0.16, 1, 0.3, 1);
}

.faq-item.is-open .faq-item__icon::after {
  transform: rotate(45deg);
}

.faq-item__panel {
  display: grid;
  grid-template-rows: 0fr;
  transition: grid-template-rows 0.38s cubic-bezier(0.16, 1, 0.3, 1);
}

.faq-item.is-open .faq-item__panel {
  grid-template-rows: 1fr;
}

.faq-list--no-motion .faq-item__panel {
  transition: none;
}

.faq-item__panel-inner {
  overflow: hidden;
  min-height: 0;
}

.faq-item__panel-inner p {
  margin: 0;
  padding-top: 10px;
  font-size: 0.85rem;
  color: var(--white-70);
  line-height: 1.5;
}

/* ==========================================================================
   MOBILE UX/UI REFINEMENTS (@media max-width: 767px)
   - Mantém desktop 100% intacto
   - Otimizado para 100dvh sem scroll indesejado
   - Tipografia fluida com clamp()
   - Botões com target touch confortável (44px+) em coluna
   - Logos em grid 3 colunas compacto
   ========================================================================== */
@media (max-width: 767px) {
  /* 1. Prender a tela em 100dvh e evitar scroll */
  .hero {
    height: 100dvh;
    max-height: 100dvh;
    min-height: 0;
    overflow: hidden;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
  }

  .hero__content {
    min-height: 0;
    flex: 1;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
  }

  .hero__container {
    flex: 1;
    min-height: 0;
    padding-top: clamp(0.75rem, 2.5vh, 1.5rem);
    padding-bottom: max(2.5rem, calc(env(safe-area-inset-bottom) + 1.5rem));
    padding-left: max(1rem, env(safe-area-inset-left));
    padding-right: max(1rem, env(safe-area-inset-right));
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    gap: clamp(0.5rem, 2vh, 1.25rem);
  }

  .hero__text {
    flex: 1;
    min-height: 0;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
  }

  /* 2. Cabeçalho limpo com Menu Hambúrguer */
  .header {
    position: relative;
    z-index: 100;
  }

  .header__inner {
    padding-top: max(0.75rem, env(safe-area-inset-top));
    padding-bottom: 0.25rem;
    gap: 0.75rem;
  }

  .menu-toggle {
    position: relative;
    z-index: 101;
    width: 44px;
    height: 44px;
    min-width: 44px;
    min-height: 44px;
    cursor: pointer;
    touch-action: manipulation;
    -webkit-tap-highlight-color: transparent;
  }

  .menu-toggle svg {
    pointer-events: none;
  }

  /* 3. Tipografia fluida com clamp() & Badge compacto */
  .hero__badge {
    flex-direction: row;
    display: inline-flex;
    align-items: center;
    gap: 0.4rem;
    padding: 0.25rem 0.65rem 0.25rem 0.35rem;
    margin-bottom: clamp(0.5rem, 1.8vh, 1.25rem);
    border-radius: 9999px;
    max-width: 100%;
    white-space: nowrap;
  }

  .hero__badge-tag {
    font-size: 0.7rem;
    padding: 0.1rem 0.45rem;
    min-height: 1.15rem;
  }

  .hero__badge-text {
    font-size: clamp(0.72rem, 1.6vh, 0.8125rem);
    line-height: 1.25;
    overflow: hidden;
    text-overflow: ellipsis;
  }

  .hero__title {
    font-size: clamp(1.6rem, 5.2vh, 2.5rem);
    line-height: 1.15;
    letter-spacing: -0.02em;
    margin: 0 auto;
    max-width: 22rem;
  }

  .hero__title-break {
    display: inline;
  }

  .hero__subtitle {
    font-size: clamp(0.8rem, 2vh, 1rem);
    line-height: 1.35;
    margin-top: clamp(0.4rem, 1.4vh, 0.85rem);
    max-width: 21rem;
    color: var(--white-80);
  }

  /* 4. Botões de Ação pensados para o Polegar */
  .hero__ctas {
    flex-direction: column;
    align-items: stretch;
    width: 100%;
    max-width: 22rem;
    gap: clamp(0.4rem, 1.2vh, 0.75rem);
    margin-top: clamp(0.6rem, 2vh, 1.25rem);
    margin-left: auto;
    margin-right: auto;
  }

  .hero__ctas .btn {
    width: 100%;
    min-height: 44px;
    padding: 0.65rem 1rem;
    font-size: 0.875rem;
  }

  /* 5. Grid de Logos compacto (3 colunas, clamp vertical) */
  .hero__logos {
    position: relative;
    bottom: 24px;
    padding-top: 0;
    margin-top: 0;
    margin-bottom: 0;
    flex-shrink: 0;
  }

  .hero__logos-label {
    font-size: clamp(0.68rem, 1.4vh, 0.78rem);
    margin-bottom: clamp(0.5rem, 1.5vh, 0.85rem);
    color: var(--white-70);
  }

  .hero__logos-grid {
    grid-template-columns: repeat(3, 1fr);
    row-gap: clamp(1rem, 2.4vh, 1.35rem);
    column-gap: clamp(0.5rem, 2vw, 0.85rem);
    margin-top: 0;
    align-items: center;
    justify-items: center;
  }

  .hero__logo {
    width: 100%;
    max-width: 95px;
    height: clamp(22px, 3.5vh, 36px);
  }

  .hero__logo img {
    max-height: 100%;
    width: auto;
    object-fit: contain;
  }

  /* 6. Catálogo de modelos — carrossel horizontal no mobile */
  #modal-modelos .modal__dialog {
    overflow-y: auto;
    overflow-x: hidden;
    max-height: calc(100dvh - 1rem);
  }

  #modal-modelos .modal__title {
    font-size: clamp(1.35rem, 5vw, 1.65rem);
  }

  #modal-modelos .modelos-grid {
    display: flex;
    flex-direction: row;
    align-items: stretch;
    gap: 12px;
    overflow-x: auto;
    overflow-y: hidden;
    overscroll-behavior-x: contain;
    -webkit-overflow-scrolling: touch;
    scroll-snap-type: x mandatory;
    scroll-behavior: smooth;
    scroll-padding-inline: 1.25rem;
    margin-inline: -1.25rem;
    padding-inline: 1.25rem;
    padding-bottom: 4px;
    scrollbar-width: none;
    -ms-overflow-style: none;
  }

  #modal-modelos .modelos-grid::-webkit-scrollbar {
    display: none;
    width: 0;
    height: 0;
  }

  #modal-modelos .modelo-card {
    flex: 0 0 88%;
    max-width: 88%;
    scroll-snap-align: center;
    scroll-snap-stop: always;
  }

  #modal-modelos .modelo-card img {
    height: clamp(150px, 28vh, 200px);
  }

  #modal-modelos .modelo-card__body {
    padding: 16px;
  }

  #modal-modelos .modelo-card__body p {
    margin-bottom: 12px;
    font-size: 0.8rem;
  }

  .modelos-carousel-hint {
    display: block;
    margin: 10px 0 0;
    text-align: center;
    font-size: 0.72rem;
    color: rgba(255, 255, 255, 0.45);
    letter-spacing: 0.02em;
  }

  .sim-card {
    grid-template-columns: 1fr;
    gap: 16px;
    padding: 14px;
  }

  .modal__dialog--wide {
    max-width: 100%;
  }
}

@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }

  .hero.is-ready .hero__bg,
  .hero__bg,
  .header__logo-smile,
  .nav,
  .nav-backdrop,
  .fade-in {
    animation: none !important;
    transition: none !important;
  }

  .hero__bg--1 { opacity: 1; }
  .hero__bg--2,
  .hero__bg--3 { opacity: 0; }

  .header__logo-smile {
    opacity: 1;
    transform: translate(12px, -50%);
  }

  .fade-in {
    opacity: 1;
    transform: none;
  }
}
