/**
 * Landing pública (/) — layout específico (hero, cards, secções, modal).
 * Chrome partilhado: public-chrome.css
 */

/* —— Conteúdo —— */
.landing-wrap {
  overflow-x: clip;
}

/* Hero colado ao sticky header */
.landing-hero.ds-section {
  position: relative;
  display: block;
  padding: 1.5rem 0 3.5rem;
  margin: 0;
  text-align: center;
  isolation: isolate;
  border-top: none;
  border-bottom: none;
  background: transparent;
  overflow: visible;
}

.landing-hero.ds-section::before {
  display: none;
}

.landing-hero__inner {
  position: relative;
  z-index: 1;
  max-width: 48rem;
  margin: 0 auto;
}

.landing-hero__title.ds-display {
  margin: 0;
  font-size: clamp(2.35rem, 5.8vw, 3.65rem);
  line-height: 1.12;
  letter-spacing: -0.03em;
}

.landing-hero__eyebrow.tagline {
  margin: 1rem auto 0;
}

.landing-hero__lead {
  max-width: 36rem;
  margin: 1.15rem auto 0;
  font-size: 1.05rem;
  line-height: 1.6;
  color: var(--text-secondary, #a1a1aa);
}

.landing-hero__cta-row,
.landing-section__cta {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
  justify-content: center;
  margin-top: 1.65rem;
  margin-bottom: 0;
}

/*
 * Mockup hero — maior e legível (fora do max-width do texto).
 * img_start 3797×1870 | img_end 3802×1884
 */
.landing-hero__mock-wrap {
  position: relative;
  z-index: 1;
  width: min(1120px, 94vw);
  margin: 1.75rem auto 0;
  padding: 0 clamp(0.75rem, 2vw, 1.25rem);
  box-sizing: border-box;
}

.landing-hero__inner--after-mock {
  margin-top: 1.75rem;
}

.landing-hero__inner--after-mock .landing-hero__eyebrow.tagline {
  margin: 0 auto 0.85rem;
}

.landing-hero__inner--after-mock .landing-hero__lead {
  margin-top: 0;
}

.landing-hero__mock {
  position: relative;
  width: 100%;
  aspect-ratio: 7600 / 3754;
  min-height: 0;
  overflow: visible;
  height: auto;
}

.landing-hero__mock-card {
  position: absolute;
  border-radius: 12px;
  border: 1px solid rgba(255, 255, 255, 0.12);
  background: #0c0e14;
  box-shadow: 0 28px 90px rgba(0, 0, 0, 0.58);
  overflow: hidden;
  box-sizing: border-box;
  height: auto;
}

.landing-hero__mock-card--back {
  width: 82%;
  aspect-ratio: 3797 / 1870;
  left: 0;
  top: 10%;
  opacity: 0.95;
  transform: none;
}

.landing-hero__mock-card--front {
  width: 82%;
  aspect-ratio: 3802 / 1884;
  right: 0;
  bottom: 0;
  background: #0c0e14;
  transform: none;
}

.landing-hero__mock-inner {
  position: absolute;
  inset: 0;
  box-sizing: border-box;
  overflow: hidden;
  border-radius: 11px;
  background: #0a0c10;
  min-width: 0;
  min-height: 0;
  display: flex;
  align-items: center;
  justify-content: center;
}

.landing-hero__mock-img {
  display: block;
  margin: 0;
  padding: 0;
  flex: 0 1 auto;
  min-width: 0;
  min-height: 0;
  max-width: 100%;
  max-height: 100%;
  width: auto;
  height: auto;
  object-fit: contain;
  object-position: center center;
}

.landing-section.ds-section {
  padding: 3.25rem 0;
  border-top: 1px solid var(--border-dim, rgba(255, 255, 255, 0.06));
  background: transparent;
  overflow: hidden;
}

.landing-section.ds-section.ds-section--alt {
  background: var(--bg-alt, #0a0a0e);
}

.landing-section.ds-section.ds-section--alt::before {
  display: none;
}

.landing-section.ds-section::before {
  opacity: 0.55;
}

.landing-section--tight {
  padding-top: 2.5rem;
}

.ds-section--stars > .landing-shell {
  position: relative;
  z-index: 1;
}

.landing-section.ds-section--alt > .ds-section-stars {
  display: none;
}

.landing-section__intro {
  max-width: 32rem;
  margin: 0.75rem auto 0;
  text-align: center;
  color: var(--text-secondary, #a1a1aa);
  line-height: 1.55;
}

.landing-section > .landing-shell > h2,
.landing-section .landing-section__title {
  text-align: center;
  margin: 0;
}

.landing-cards-wrap {
  width: min(1200px, 96vw);
  margin: 2rem auto 0;
  padding: 0 clamp(0.75rem, 2vw, 1.25rem);
  box-sizing: border-box;
}

.landing-cards {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 1.35rem;
}

@media (max-width: 900px) {
  .landing-cards {
    grid-template-columns: 1fr;
  }
}

.landing-card.neural-panel {
  overflow: hidden;
  border-radius: 14px;
  border: 1px solid rgba(255, 255, 255, 0.08) !important;
  background: rgba(255, 255, 255, 0.03) !important;
  box-shadow: 0 12px 40px rgba(0, 0, 0, 0.28) !important;
  padding: 0 !important;
  display: flex;
  flex-direction: column;
  min-height: 100%;
  transition: transform 0.2s, border-color 0.2s, box-shadow 0.2s;
}

.landing-card.neural-panel:hover {
  transform: translateY(-4px);
  border-color: rgba(78, 96, 255, 0.35) !important;
  box-shadow: 0 16px 48px rgba(0, 0, 0, 0.4) !important;
}

.landing-card__thumb {
  /* proporção nativa dos JPGs (~1024×506) */
  aspect-ratio: 1024 / 506;
  width: 100%;
  min-height: 0;
  overflow: hidden;
  background: #0a0c10;
  border-radius: 0;
  border-bottom: 1px solid rgba(255, 255, 255, 0.06);
  display: flex;
  align-items: center;
  justify-content: center;
}

.landing-card__img {
  display: block;
  width: 100%;
  height: 100%;
  max-width: 100%;
  max-height: 100%;
  object-fit: contain;
  object-position: center center;
  transform: none;
}

.landing-card__body {
  padding: 1.25rem 1.25rem 1.4rem;
  flex: 1;
}

.landing-card__body h3 {
  margin: 0 0 0.45rem;
  font-size: 1.05rem;
}

.landing-card__body p {
  margin: 0;
  color: var(--text-secondary, #a1a1aa);
  font-size: 0.92rem;
  line-height: 1.5;
}

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

.landing-feature--flip {
  grid-template-columns: 1.05fr 1fr;
}

.landing-feature--flip .landing-feature__text {
  order: 2;
}

.landing-feature--flip .landing-feature__visual {
  order: 1;
}

@media (max-width: 900px) {
  .landing-feature,
  .landing-feature--flip {
    grid-template-columns: 1fr;
  }

  .landing-feature--flip .landing-feature__text,
  .landing-feature--flip .landing-feature__visual {
    order: initial;
  }
}

.landing-feature__text h2 {
  margin: 0 0 0.75rem;
  text-align: left;
}

.landing-feature__text p {
  margin: 0 0 1.15rem;
  color: var(--text-secondary, #a1a1aa);
  line-height: 1.6;
}

.landing-feature__visual {
  border-radius: 1rem;
  overflow: hidden;
  border: 1px solid var(--stroke, rgba(255, 255, 255, 0.1));
  background: var(--bg-alt, #0a0a0e);
}

.landing-feature__visual-img {
  display: block;
  width: 100%;
  height: auto;
}

.landing-icons {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 1rem;
  margin-top: 2rem;
}

@media (max-width: 900px) {
  .landing-icons {
    grid-template-columns: 1fr;
  }
}

.landing-icon-card {
  padding: 1.35rem;
  border-radius: 1rem;
  border: 1px solid var(--stroke, rgba(255, 255, 255, 0.1));
  background: color-mix(in srgb, var(--bg-alt, #0a0a0e) 90%, #0f172a);
  text-align: left;
}

.landing-icon-card svg {
  width: 1.75rem;
  height: 1.75rem;
  color: var(--accent-cyan, #33d2ff);
  margin-bottom: 0.75rem;
}

.landing-icon-card h3 {
  margin: 0 0 0.35rem;
  font-size: 1.02rem;
}

.landing-icon-card p {
  margin: 0;
  color: var(--text-secondary, #a1a1aa);
  font-size: 0.92rem;
  line-height: 1.5;
}

.landing-dual-cta {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1rem;
}

@media (max-width: 767px) {
  .landing-dual-cta {
    grid-template-columns: 1fr;
  }
}

.landing-dual-cta__card {
  padding: 1.5rem;
  border-radius: 1rem;
  border: 1px solid var(--stroke, rgba(255, 255, 255, 0.1));
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
  align-items: flex-start;
}

.landing-dual-cta__card h3 {
  margin: 0;
}

.landing-dual-cta__card p {
  margin: 0;
  flex: 1;
  line-height: 1.5;
  color: var(--text-secondary, #a1a1aa);
}

.landing-dual-cta__card--accent {
  background: linear-gradient(
    135deg,
    rgba(51, 210, 255, 0.18) 0%,
    rgba(59, 91, 219, 0.28) 100%
  );
  border-color: rgba(51, 210, 255, 0.35);
}

.landing-dual-cta__card--accent p {
  color: rgba(255, 255, 255, 0.92);
}

.landing-dual-cta__card--dark {
  background: color-mix(in srgb, var(--bg-alt, #0a0a0e) 85%, #111827);
}

/* Modal contacto — usa .ds-modal-backdrop / .ds-modal do DSF;
   só reforços locais de erros/opcional */
.landing-contact-modal__optional {
  font-weight: 500;
  color: var(--text-dim, #888894);
}

.landing-contact-modal__errors,
.contact-form__error {
  margin: 0.15rem 0 0;
  font-size: 0.8rem;
  color: #fca5a5;
}

/* —— Light mode —— */
html[data-theme="light"] .landing-hero__lead,
html[data-theme="light"] .landing-section__intro,
html[data-theme="light"] .landing-card__body p,
html[data-theme="light"] .landing-feature__text p,
html[data-theme="light"] .landing-icon-card p,
html[data-theme="light"] .landing-dual-cta__card p {
  color: var(--text-secondary, #5b6472);
}

html[data-theme="light"] .landing-hero__mock-card,
html[data-theme="light"] .landing-hero__mock-card--front,
html[data-theme="light"] .landing-hero__mock-card--back {
  border-color: rgba(10, 10, 14, 0.12);
  background: #fff;
  box-shadow: 0 20px 60px rgba(15, 23, 42, 0.12);
}

html[data-theme="light"] .landing-hero__mock-inner {
  background: #f1f5f9;
}

html[data-theme="light"] .landing-section.ds-section {
  border-top-color: rgba(10, 10, 14, 0.08);
}

html[data-theme="light"] .landing-section.ds-section.ds-section--alt {
  background: var(--bg-alt, #eef2f7);
}

html[data-theme="light"] .landing-card.neural-panel {
  border-color: rgba(10, 10, 14, 0.1) !important;
  background: rgba(255, 255, 255, 0.92) !important;
  box-shadow: 0 10px 32px rgba(15, 23, 42, 0.08) !important;
}

html[data-theme="light"] .landing-card.neural-panel:hover {
  border-color: rgba(59, 91, 219, 0.35) !important;
  box-shadow: 0 14px 40px rgba(15, 23, 42, 0.12) !important;
}

html[data-theme="light"] .landing-card__thumb {
  background: #eef2f7;
  border-bottom-color: rgba(10, 10, 14, 0.08);
}

html[data-theme="light"] .landing-feature__visual,
html[data-theme="light"] .landing-icon-card,
html[data-theme="light"] .landing-dual-cta__card {
  border-color: rgba(10, 10, 14, 0.1);
  background: rgba(255, 255, 255, 0.9);
}

html[data-theme="light"] .landing-dual-cta__card--accent {
  background: linear-gradient(
    135deg,
    rgba(51, 210, 255, 0.16) 0%,
    rgba(59, 91, 219, 0.22) 100%
  );
  border-color: rgba(51, 210, 255, 0.4);
}

html[data-theme="light"] .landing-dual-cta__card--accent p {
  color: var(--heading, #0a0a0e);
}

html[data-theme="light"] .landing-dual-cta__card--dark {
  background: color-mix(in srgb, var(--bg-alt, #e8eef6) 85%, #dbe4f0);
}
