/*
 * ARQUIVO COMENTADO: css/landing.css
 * FUNÇÃO: Estilos exclusivos da página pública.
 * As regras originais foram preservadas; foram adicionados comentários para estudo.
 */

.site-header {
  position: sticky;
  top: 0;
  z-index: 20;
  backdrop-filter: blur(18px);
  background: rgba(251, 251, 255, .78);
  border-bottom: 1px solid rgba(233, 231, 242, .72);
}

.nav {
  min-height: 82px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-size: 1.1rem;
  font-weight: 950;
  color: var(--navy);
}

.brand img {
  width: 58px;
  height: 58px;
  object-fit: contain;
}

.brand strong {
  color: var(--purple);
}

.nav-actions {
  display: flex;
  align-items: center;
  gap: 20px;
  color: var(--muted);
  font-weight: 850;
}

.hero {
  min-height: calc(100vh - 82px);
  display: grid;
  grid-template-columns: 1.03fr .82fr;
  align-items: center;
  gap: 48px;
  padding-block: 54px;
}

.hero h1 {
  margin: 12px 0 16px;
  color: var(--navy);
  font-size: clamp(2.6rem, 7vw, 5.8rem);
  line-height: .92;
  letter-spacing: -.07em;
}

.hero p {
  margin: 0;
  color: var(--muted);
  font-size: clamp(1.05rem, 2vw, 1.28rem);
  line-height: 1.7;
  max-width: 680px;
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 28px;
}

.trust-row {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 22px;
}

.trust-row span {
  /* Usa a superfície do tema em vez de branco fixo. */
  background: var(--surface);
  border: 1px solid var(--line);
  box-shadow: var(--shadow-soft);
  border-radius: 999px;
  padding: 10px 14px;
  font-weight: 850;
  color: var(--navy);
}

.hero-preview {
  min-height: 680px;
  display: grid;
  place-items: center;
  position: relative;
}

.hero-preview:before {
  content: "";
  position: absolute;
  inset: 6% 0;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(124, 58, 237, .24), transparent 60%);
  filter: blur(12px);
}

.phone-frame {
  position: relative;
  width: min(390px, 100%);
  border-radius: 46px;
  padding: 12px;
  background: linear-gradient(145deg, #0b0821, #281150);
  box-shadow: 0 40px 120px rgba(20, 8, 47, .32);
}

.phone-screen {
  min-height: 640px;
  border-radius: 36px;
  overflow: hidden;
  padding: 28px 22px;
  color: #fff;
  background:
    radial-gradient(circle at 50% 0%, rgba(124, 58, 237, .75), transparent 32%),
    linear-gradient(180deg, #1c0a43, #09041d);
}

.phone-logo {
  width: 166px;
  margin-inline: auto;
  filter: drop-shadow(0 18px 28px rgba(0, 0, 0, .38));
}

.phone-screen p {
  margin-top: 24px;
  color: rgba(255, 255, 255, .78);
}

.phone-screen h2 {
  margin: 4px 0 20px;
  font-size: 1.45rem;
}

.mini-cards {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 12px;
}

.mini-cards span {
  min-height: 92px;
  border-radius: 18px;
  padding: 14px;
  display: grid;
  align-content: space-between;
  background: linear-gradient(135deg, rgba(32, 215, 210, .95), rgba(124, 58, 237, .86));
}

.mini-cards span:nth-child(2) { background: linear-gradient(135deg, #7c3aed, #a855f7); }
.mini-cards span:nth-child(3) { background: linear-gradient(135deg, #ff8a00, #ff4d00); }
.mini-cards span:nth-child(4) { background: linear-gradient(135deg, #ec2f73, #ff8a00); }

.mini-cards small {
  opacity: .86;
  font-weight: 800;
}

.mini-cards strong {
  font-size: 1.18rem;
}

.mock-chart {
  height: 180px;
  margin-top: 26px;
  padding: 18px;
  border: 1px solid rgba(255, 255, 255, .1);
  border-radius: 22px;
  display: flex;
  align-items: end;
  gap: 11px;
  background: rgba(255, 255, 255, .06);
}

.mock-chart i {
  flex: 1;
  border-radius: 999px 999px 6px 6px;
  background: linear-gradient(180deg, var(--purple-2), var(--cyan));
}

.section {
  padding-block: 70px;
}

.section-title {
  text-align: center;
  max-width: 830px;
  margin: 0 auto 34px;
}

.section-title h2,
.cta-section h2 {
  margin: 10px 0 0;
  color: var(--navy);
  font-size: clamp(2rem, 5vw, 3.4rem);
  line-height: 1;
  letter-spacing: -.045em;
}

.feature-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 18px;
}

.feature-card {
  padding: 24px;
  border-radius: var(--radius-lg);
  /* O card acompanha claro/escuro pelas variáveis globais. */
  background: var(--surface);
  border: 1px solid var(--line);
  box-shadow: var(--shadow-soft);
}

.feature-card span {
  width: 52px;
  height: 52px;
  border-radius: 18px;
  display: grid;
  place-items: center;
  font-size: 1.45rem;
  background: var(--surface-2);
}

.feature-card h3 {
  margin: 18px 0 8px;
  color: var(--navy);
  font-size: 1.18rem;
}

.feature-card p {
  margin: 0;
  color: var(--muted);
  line-height: 1.6;
}

.cta-section {
  display: grid;
  grid-template-columns: 1fr auto;
  align-items: center;
  gap: 32px;
  border-radius: 34px;
  margin-bottom: 70px;
  padding: 42px;
  background:
    radial-gradient(circle at 12% 0%, rgba(32, 215, 210, .25), transparent 34%),
    linear-gradient(135deg, #fff, #f4efff);
  border: 1px solid var(--line);
  box-shadow: var(--shadow);
}

.cta-section p {
  color: var(--muted);
  line-height: 1.7;
  font-size: 1.05rem;
}

.site-footer {
  border-top: 1px solid var(--line);
  padding: 28px 0;
  color: var(--muted);
}

.site-footer .container {
  display: flex;
  justify-content: space-between;
  gap: 16px;
}

@media (max-width: 880px) {
  .nav-actions a:not(.btn) { display: none; }
  .hero {
    grid-template-columns: 1fr;
    min-height: auto;
    padding-block: 38px 60px;
  }
  .hero-preview {
    min-height: auto;
  }
  .feature-grid {
    grid-template-columns: 1fr;
  }
  .cta-section {
    grid-template-columns: 1fr;
    padding: 28px;
  }
}

@media (max-width: 560px) {
  .brand span { display: none; }
  .hero h1 { font-size: 3.2rem; }
  .phone-frame { width: min(330px, 100%); }
  .phone-screen { min-height: 560px; }
  .site-footer .container { flex-direction: column; }
}

/* UKIVENDI v3 · landing também respeita claro/escuro */
:root[data-theme="dark"] .site-header {
  background: rgba(8, 5, 31, .78);
  border-bottom-color: var(--line);
}

:root[data-theme="dark"] .brand,
:root[data-theme="dark"] .hero h1,
:root[data-theme="dark"] .section-title h2,
:root[data-theme="dark"] .cta-section h2,
:root[data-theme="dark"] .feature-card h3,
:root[data-theme="dark"] .trust-row span {
  color: var(--ink);
}

:root[data-theme="dark"] .cta-section {
  background:
    radial-gradient(circle at 12% 0%, rgba(255, 210, 63, .12), transparent 34%),
    linear-gradient(135deg, #15102b, #20143f);
}

:root[data-theme="light"] .site-header {
  background: rgba(255, 253, 244, .82);
}

:root[data-theme="light"] .hero {
  background: radial-gradient(circle at 72% 18%, rgba(255, 210, 63, .2), transparent 28rem);
}
