/*
 * Digital IA — landing page
 * Etapa 3: composição pública e entrada para autenticação.
 */

.landing {
  min-height: 100vh;
  color: var(--text);
}

.landing-nav {
  position: sticky;
  top: 0;
  z-index: 20;
  max-width: 100%;
  padding: 1rem clamp(1.25rem, 4vw, 3rem);
  border-bottom-color: rgba(137, 164, 198, 0.14);
  background: rgba(5, 11, 22, 0.78);
  backdrop-filter: blur(18px);
}

.landing-nav .brand-icon {
  width: 2.3rem;
  height: 2.3rem;
  border: 1px solid rgba(248, 212, 119, 0.46);
  border-radius: 0.7rem;
  background: linear-gradient(145deg, rgba(232, 182, 75, 0.23), rgba(232, 182, 75, 0.06));
}

.landing-nav .brand-icon svg {
  color: var(--gold-light);
}

.landing-nav .brand-name {
  font-size: 1.1rem;
  color: var(--text);
}

.landing-nav .nav-links {
  gap: clamp(0.7rem, 2vw, 1.35rem);
}

.landing-nav .nav-links a:not(.btn) {
  color: var(--text-secondary);
  font-size: 0.82rem;
}

.landing-nav .nav-links a:not(.btn):hover {
  color: var(--gold-light);
}

.landing-nav .btn {
  min-height: 2.3rem;
  padding-inline: 1rem;
}

.landing-nav .btn-outline {
  border-color: rgba(137, 164, 198, 0.3);
  color: var(--text-secondary);
}

.landing-hero {
  display: grid;
  grid-template-columns: minmax(340px, 0.78fr) minmax(0, 1.22fr);
  align-items: center;
  gap: clamp(1.5rem, 3vw, 3rem);
  max-width: 1380px;
  padding: clamp(2.35rem, 5.5vw, 4.25rem) clamp(1rem, 3.2vw, 2.35rem) clamp(2rem, 4vw, 3rem);
  text-align: left;
}

.landing-hero .hero-copy {
  max-width: 40rem;
}

.landing-hero .hero-badge {
  margin-bottom: var(--space-4);
  border-color: rgba(232, 182, 75, 0.26);
  background: rgba(232, 182, 75, 0.08);
  color: var(--gold-light);
}

.landing-hero h1 {
  max-width: 11ch;
  font-size: clamp(2rem, 4vw, 3rem);
  line-height: 0.98;
  letter-spacing: -0.075em;
}

.landing-hero h1 span {
  color: var(--gold-light);
}

.landing-hero .hero-desc {
  max-width: 33rem;
  margin: 1rem 0 1.25rem;
  color: var(--text-secondary);
  font-size: clamp(1rem, 1.5vw, 1.22rem);
  line-height: 1.6;
}

.landing-hero .hero-actions {
  justify-content: flex-start;
}

.landing-hero .hero-actions .btn {
  min-height: 3.35rem;
  padding-inline: 1.8rem;
  border-radius: 0.85rem;
  font-weight: 750;
}

.landing-hero .hero-actions .btn-gold {
  box-shadow: 0 16px 34px rgba(232, 182, 75, 0.17);
}

.hero-note {
  margin-top: 0.75rem;
  color: var(--text-muted);
  font-size: 0.77rem;
}

.hero-note span {
  padding-inline: 0.6rem;
  color: var(--gold);
}

.hero-visual {
  min-width: 0;
  perspective: 1600px;
}

.browser-frame {
  position: relative;
  overflow: hidden;
  border: 1px solid rgba(146, 174, 211, 0.34);
  border-radius: 1rem;
  background: #0a1220;
  box-shadow: 0 32px 90px rgba(0, 0, 0, 0.38), 0 0 0 6px rgba(255, 255, 255, 0.015);
  transform: rotateY(-3deg) rotateX(1deg);
}

.browser-toolbar {
  display: flex;
  align-items: center;
  gap: 0.35rem;
  height: 2rem;
  padding: 0 0.8rem;
  border-bottom: 1px solid rgba(137, 164, 198, 0.13);
  background: #121b2a;
}

.browser-toolbar i {
  width: 0.45rem;
  height: 0.45rem;
  border-radius: 50%;
  background: #ff766e;
}

.browser-toolbar i:nth-child(2) { background: #f5c451; }
.browser-toolbar i:nth-child(3) { background: #48d6a2; }

.browser-address {
  width: 46%;
  height: 1.1rem;
  margin: 0 auto;
  border-radius: 0.25rem;
  background: rgba(137, 164, 198, 0.12);
}

.preview-app {
  display: grid;
  grid-template-columns: 8.6rem minmax(0, 1fr);
  min-height: 25rem;
}

.preview-sidebar {
  padding: 0.9rem 0.55rem;
  border-right: 1px solid rgba(137, 164, 198, 0.14);
  background: #0b1524;
}

.preview-brand {
  display: flex;
  align-items: center;
  gap: 0.35rem;
  margin-bottom: 0.85rem;
  color: var(--gold-light);
  font-size: 0.62rem;
  font-weight: 750;
}

.preview-brand-mark {
  width: 1.1rem;
  height: 1.1rem;
  border: 1px solid rgba(232, 182, 75, 0.7);
  border-radius: 0.3rem;
}

.preview-nav {
  display: grid;
  gap: 0.24rem;
}

.preview-nav span {
  display: flex;
  align-items: center;
  gap: 0.35rem;
  padding: 0.34rem 0.38rem;
  border-radius: 0.3rem;
  color: #7d8ea6;
  font-size: 0.55rem;
}

.preview-nav span::before {
  content: "";
  width: 0.5rem;
  height: 0.5rem;
  border: 1px solid currentColor;
  border-radius: 0.15rem;
}

.preview-nav span:first-child {
  color: var(--gold-light);
  background: rgba(232, 182, 75, 0.11);
}

.preview-main {
  min-width: 0;
  padding: 1rem;
  background: linear-gradient(155deg, #0c1727, #0a1220);
}

.preview-main-header,
.preview-panel-heading {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.75rem;
}

.preview-main-header {
  margin-bottom: 1rem;
}

.preview-greeting {
  color: var(--text);
  font-size: 0.75rem;
  font-weight: 700;
}

.preview-subtext {
  margin-top: 0.2rem;
  color: #718197;
  font-size: 0.5rem;
}

.preview-date {
  width: 4.6rem;
  height: 1.35rem;
  border: 1px solid rgba(137, 164, 198, 0.16);
  border-radius: 0.3rem;
}

.preview-stats {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 0.45rem;
  margin-bottom: 0.55rem;
}

.preview-stat,
.preview-panel,
.preview-attention {
  border: 1px solid rgba(137, 164, 198, 0.15);
  border-radius: 0.45rem;
  background: rgba(18, 32, 52, 0.82);
}

.preview-stat {
  padding: 0.55rem;
}

.preview-stat-label {
  display: block;
  color: #8492a7;
  font-size: 0.45rem;
}

.preview-stat-value {
  display: block;
  margin-top: 0.22rem;
  color: var(--text);
  font-size: 0.9rem;
  font-weight: 750;
}

.preview-stat-value.gold { color: var(--gold-light); }
.preview-stat-value.red { color: var(--danger); }

.preview-attention {
  margin-bottom: 0.55rem;
  padding: 0.6rem;
}

.preview-attention-title {
  margin-bottom: 0.45rem;
  color: var(--text);
  font-size: 0.58rem;
  font-weight: 700;
}

.preview-attention-row {
  display: grid;
  grid-template-columns: 0.4rem minmax(0, 1fr) auto;
  align-items: center;
  gap: 0.4rem;
  padding: 0.35rem 0;
  border-top: 1px solid rgba(137, 164, 198, 0.1);
  color: #9caac0;
  font-size: 0.48rem;
}

.preview-attention-row::before {
  content: "";
  width: 0.35rem;
  height: 0.35rem;
  border-radius: 50%;
  background: var(--danger);
  box-shadow: 0 0 0 3px var(--danger-bg);
}

.preview-attention-row:nth-child(3)::before { background: var(--gold); box-shadow: 0 0 0 3px var(--gold-bg); }
.preview-attention-row:nth-child(4)::before { background: var(--info); box-shadow: 0 0 0 3px var(--info-bg); }

.preview-bottom {
  display: grid;
  grid-template-columns: 1.15fr 0.85fr;
  gap: 0.55rem;
}

.preview-panel {
  padding: 0.6rem;
}

.preview-panel-heading {
  margin-bottom: 0.4rem;
  color: var(--text);
  font-size: 0.56rem;
  font-weight: 700;
}

.preview-panel-link {
  color: var(--gold-light);
  font-size: 0.45rem;
  font-weight: 600;
}

.preview-list-row {
  display: flex;
  justify-content: space-between;
  gap: 0.35rem;
  padding: 0.36rem 0;
  border-top: 1px solid rgba(137, 164, 198, 0.09);
  color: #8c9cb3;
  font-size: 0.46rem;
}

.preview-list-row strong {
  color: var(--text-secondary);
  font-weight: 600;
}

.trust-strip {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  max-width: 1350px;
  margin: 0 auto;
  padding: var(--space-3) clamp(1.25rem, 4.5vw, 3rem);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  background: rgba(11, 20, 35, 0.56);
}

.trust-item {
  display: flex;
  align-items: center;
  gap: 0.8rem;
  padding: var(--space-2) var(--space-4);
  border-right: 1px solid var(--border);
}

.trust-item:last-child {
  border-right: 0;
}

.trust-icon {
  display: grid;
  place-items: center;
  width: 2.15rem;
  height: 2.15rem;
  flex: 0 0 auto;
  border: 1px solid rgba(232, 182, 75, 0.25);
  border-radius: 50%;
  color: var(--gold-light);
  background: var(--gold-bg);
}

.trust-icon svg {
  width: 1rem;
  height: 1rem;
}

.trust-copy strong,
.trust-copy span {
  display: block;
}

.trust-copy strong {
  color: var(--text);
  font-size: 0.82rem;
}

.trust-copy span {
  margin-top: 0.15rem;
  color: var(--muted);
  font-size: 0.7rem;
}

.landing .features-section {
  max-width: 1350px;
  padding: clamp(2rem, 5vw, 3.5rem) clamp(1.25rem, 4.5vw, 3rem);
}

.landing .section-title {
  margin-bottom: 1.25rem;
  text-align: left;
}

.landing .section-title h2 {
  font-size: clamp(1.6rem, 3vw, 2.5rem);
  letter-spacing: -0.055em;
}

.landing .section-title p {
  max-width: 34rem;
  color: var(--muted);
}

.landing .features-grid {
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: var(--space-3);
}

.landing .feature-card {
  padding: var(--space-4);
  background: linear-gradient(145deg, rgba(19, 34, 56, 0.8), rgba(10, 19, 32, 0.84));
}

.landing .feature-card .feature-icon {
  margin-bottom: 1.2rem;
  border: 1px solid rgba(232, 182, 75, 0.16);
  background: rgba(232, 182, 75, 0.08);
}

.landing .feature-card h3 {
  font-size: 0.95rem;
}

.landing .feature-card p {
  color: var(--text-secondary);
  font-size: 0.78rem;
}

.landing .cta-section {
  max-width: 1350px;
  margin: 0 auto;
  padding: 1rem clamp(1.25rem, 4.5vw, 3rem) 2.5rem;
}

.landing .cta-section .cta-card {
  max-width: none;
  padding: clamp(1.5rem, 4vw, 2.5rem);
  text-align: left;
  background: linear-gradient(120deg, rgba(35, 45, 56, 0.75), rgba(13, 25, 41, 0.9));
}

.landing .cta-section h2 {
  font-size: clamp(1.7rem, 3vw, 2.6rem);
  letter-spacing: -0.055em;
}

.landing .cta-section p {
  max-width: 30rem;
  color: var(--text-secondary);
}

.landing .landing-footer {
  padding-inline: 1.25rem;
  border-top-color: var(--border);
}

@media (max-width: 1080px) {
  .landing-hero {
    grid-template-columns: 1fr;
    padding-top: 4rem;
  }

  .landing-hero .hero-copy {
    max-width: 48rem;
  }

  .landing-hero h1 {
    max-width: 14ch;
  }

  .landing-hero .hero-desc {
    margin-left: 0;
  }

  .browser-frame {
    max-width: 55rem;
    margin: 0 auto;
    transform: none;
  }
}

@media (max-width: 780px) {
  .landing-nav .nav-links a:not(.btn) {
    display: none;
  }

  .trust-strip {
    grid-template-columns: 1fr;
    margin-inline: 1.25rem;
    padding: 0.7rem;
  }

  .trust-item {
    padding: 0.8rem;
    border-right: 0;
    border-bottom: 1px solid var(--border);
  }

  .trust-item:last-child {
    border-bottom: 0;
  }

  .landing .features-grid {
    grid-template-columns: 1fr 1fr;
  }
}

@media (max-width: 560px) {
  .landing-nav {
    padding-inline: 1rem;
  }

  .landing-nav .btn {
    padding-inline: 0.75rem;
  }

  .landing-hero {
    gap: 2rem;
    padding-top: 3rem;
  }

  .landing-hero h1 {
    font-size: clamp(2.6rem, 15vw, 4rem);
  }

  .landing-hero .hero-actions {
    flex-direction: column;
    align-items: stretch;
  }

  .landing-hero .hero-actions .btn {
    width: 100%;
  }

  .preview-app {
    grid-template-columns: 4.6rem minmax(0, 1fr);
    min-height: 20rem;
  }

  .preview-sidebar {
    padding-inline: 0.35rem;
  }

  .preview-brand {
    justify-content: center;
  }

  .preview-brand span:last-child,
  .preview-nav span {
    font-size: 0;
  }

  .preview-nav span {
    justify-content: center;
  }

  .preview-nav span::before {
    width: 0.6rem;
    height: 0.6rem;
  }

  .preview-main {
    padding: 0.6rem;
  }

  .preview-stats {
    grid-template-columns: 1fr 1fr;
  }

  .preview-bottom {
    grid-template-columns: 1fr;
  }

  .landing .features-grid {
    grid-template-columns: 1fr;
  }
}
