/* =========================================================
   LabPolicial - site estático
   Arquivo: style.css
   ========================================================= */

:root {
  --navy-950: #06101f;
  --navy-900: #08172b;
  --navy-850: #0b1e36;
  --navy-800: #0e2848;
  --blue-500: #2d8cff;
  --blue-400: #65b4ff;
  --cyan-300: #9ee7ff;
  --ice: #f4f8fc;
  --text: #eaf1f8;
  --muted: #aab8c9;
  --muted-dark: #556271;
  --line: rgba(255,255,255,.12);
  --line-dark: rgba(7,22,40,.12);
  --card: rgba(255,255,255,.08);
  --shadow: 0 24px 70px rgba(2, 10, 24, .25);
  --radius-xl: 28px;
  --radius-lg: 20px;
  --radius-md: 14px;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  font-family: "Segoe UI", system-ui, -apple-system, BlinkMacSystemFont, Arial, sans-serif;
  color: var(--text);
  background: var(--navy-950);
  line-height: 1.6;
}

a {
  color: inherit;
}

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

.container {
  width: min(1160px, calc(100% - 40px));
  margin: 0 auto;
}

/* Header */

.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  background: rgba(6, 16, 31, .78);
  border-bottom: 1px solid var(--line);
  backdrop-filter: blur(16px);
}

.header-inner {
  height: 76px;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.site-nav {
  display: flex;
  align-items: center;
  gap: 28px;
}

.site-nav a {
  text-decoration: none;
  color: rgba(234, 241, 248, .78);
  font-weight: 600;
  font-size: .95rem;
  transition: color .2s ease;
}

.site-nav a:hover {
  color: #fff;
}

.site-nav .nav-download {
  padding: 10px 16px;
  border: 1px solid rgba(158,231,255,.38);
  border-radius: 999px;
  color: #fff;
}

.menu-toggle {
  display: none;
  width: 42px;
  height: 42px;
  border: 1px solid var(--line);
  border-radius: 12px;
  background: transparent;
  cursor: pointer;
}

.menu-toggle span {
  display: block;
  width: 20px;
  height: 2px;
  margin: 4px auto;
  background: #fff;
}

/* Sections */

.section-dark {
  position: relative;
  overflow: hidden;
  background:
    radial-gradient(circle at 78% 20%, rgba(45,140,255,.18), transparent 34%),
    linear-gradient(135deg, var(--navy-950), var(--navy-850));
}

.section-light {
  background:
    linear-gradient(180deg, #ffffff, var(--ice));
  color: #0b1c31;
}

.section-blue {
  background:
    radial-gradient(circle at 20% 30%, rgba(101,180,255,.16), transparent 28%),
    linear-gradient(135deg, #08172b, #103058);
  color: var(--text);
}

.hero {
  min-height: calc(100vh - 76px);
  display: flex;
  align-items: center;
  padding: 88px 0 100px;
}

.hero-grid,
.product-grid {
  display: grid;
  grid-template-columns: 0.95fr 1.25fr;
  gap: 120px;
  align-items: center;
}

.product-grid-reverse {
  grid-template-columns: 1.25fr 0.95fr;
}

.eyebrow,
.section-label {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 18px;
  color: var(--cyan-300);
  font-weight: 800;
  letter-spacing: .12em;
  text-transform: uppercase;
  font-size: .78rem;
}

.section-light .section-label {
  color: #0b5fb3;
}

.eyebrow::before,
.section-label::before {
  content: "";
  width: 34px;
  height: 2px;
  background: currentColor;
  opacity: .7;
}

h1,
h2,
h3,
p {
  margin-top: 0;
}

h1 {
  margin-bottom: 22px;
  font-size: clamp(3.4rem, 8vw, 6.8rem);
  line-height: .9;
  letter-spacing: -0.07em;
}

h2 {
  margin-bottom: 20px;
  font-size: clamp(2.1rem, 4vw, 3.5rem);
  line-height: 1.03;
  letter-spacing: -0.045em;
}

h3 {
  margin-bottom: 12px;
  font-size: 1.25rem;
}

.hero-lead {
  max-width: 720px;
  color: rgba(234, 241, 248, .78);
  font-size: clamp(1.08rem, 1.5vw, 1.35rem);
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 14px;
  margin: 34px 0 28px;
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 50px;
  padding: 14px 22px;
  border-radius: 999px;
  text-decoration: none;
  font-weight: 800;
  transition: transform .2s ease, box-shadow .2s ease, border-color .2s ease;
}

.btn:hover {
  transform: translateY(-2px);
}

.btn-primary {
  background: linear-gradient(135deg, var(--blue-500), var(--cyan-300));
  color: #03101f;
  box-shadow: 0 16px 44px rgba(45,140,255,.26);
}

.btn-secondary {
  border: 1px solid rgba(255,255,255,.22);
  color: #fff;
  background: rgba(255,255,255,.04);
}

.hero-panel {
  position: relative;
}

.panel-glow {
  position: absolute;
  inset: 7%;
  background: rgba(45,140,255,.25);
  filter: blur(70px);
}

.terminal-card {
  position: relative;
  overflow: hidden;
  border: 1px solid rgba(158,231,255,.22);
  border-radius: var(--radius-xl);
  background:
    linear-gradient(180deg, rgba(255,255,255,.12), rgba(255,255,255,.055));
  box-shadow: var(--shadow);
  backdrop-filter: blur(10px);
}

.terminal-top {
  display: flex;
  gap: 8px;
  padding: 18px 20px;
  border-bottom: 1px solid var(--line);
}

.terminal-body {
  padding: 30px;
}

.terminal-body p {
  color: rgba(234, 241, 248, .72);
}

.terminal-body ul {
  list-style: none;
  padding: 0;
  margin: 28px 0;
}

.terminal-body li {
  display: flex;
  justify-content: space-between;
  gap: 20px;
  padding: 14px 0;
  border-bottom: 1px solid rgba(255,255,255,.09);
  color: rgba(234, 241, 248, .7);
}

.terminal-body li span {
  color: #fff;
  font-weight: 800;
}

.status-line {
  display: flex;
  align-items: center;
  gap: 10px;
  color: var(--cyan-300);
  font-size: .92rem;
}

.pulse {
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background: #54ffb2;
  box-shadow: 0 0 0 rgba(84,255,178,.8);
  animation: pulse 1.6s infinite;
}

.hero-stripes {
  position: absolute;
  inset: auto 0 0;
  height: 110px;
  opacity: .36;
  pointer-events: none;
}

.hero-stripes span {
  position: absolute;
  left: -8%;
  width: 118%;
  height: 18px;
  background: linear-gradient(90deg, transparent, rgba(158,231,255,.32), transparent);
  transform: rotate(-3deg);
}

.hero-stripes span:nth-child(1) { bottom: 80px; }
.hero-stripes span:nth-child(2) { bottom: 45px; opacity: .7; }
.hero-stripes span:nth-child(3) { bottom: 12px; opacity: .45; }

/* Product */

.product-section,
.tools-section,
.download-section {
  padding: 112px 0;
}

.product-copy p,
.section-heading p {
  font-size: 1.08rem;
  color: inherit;
  opacity: .82;
}

.product-copy .muted {
  color: var(--muted-dark);
}

.section-blue .product-copy .muted {
  color: var(--muted);
}

.feature-list {
  display: grid;
  gap: 14px;
  margin-top: 30px;
}

.feature-list div {
  padding: 18px;
  border-radius: var(--radius-md);
  border: 1px solid var(--line-dark);
  background: rgba(255,255,255,.58);
}

.section-blue .feature-list div {
  border-color: var(--line);
  background: rgba(255,255,255,.07);
}

.feature-list strong {
  display: block;
  margin-bottom: 4px;
}

.feature-list span {
  color: var(--muted-dark);
}

.section-blue .feature-list span {
  color: var(--muted);
}

/* Carousel */

.carousel {
  overflow: hidden;
  border-radius: var(--radius-xl);
  background: rgba(255,255,255,.72);
  border: 1px solid var(--line-dark);
  box-shadow: var(--shadow);
}

.section-blue .carousel {
  background: rgba(255,255,255,.08);
  border-color: var(--line);
}

.carousel-frame {
  position: relative;
  aspect-ratio: 1915 / 1001;
  background: #ffffff;
  display: grid;
  place-items: center;
}

.carousel-frame img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: contain;
  opacity: 1;
}

.carousel-controls {
  display: grid;
  grid-template-columns: 46px 1fr 46px;
  gap: 14px;
  align-items: center;
  padding: 18px;
}

.carousel-controls button {
  width: 46px;
  height: 46px;
  border: 1px solid var(--line-dark);
  border-radius: 50%;
  background: #fff;
  color: #0b1c31;
  font-size: 1.8rem;
  cursor: pointer;
  transition: transform .2s ease;
}

.carousel-controls button:hover {
  transform: scale(1.04);
}

.dots {
  display: flex;
  justify-content: center;
  gap: 8px;
}

.dots button {
  width: 9px;
  height: 9px;
  min-height: 0;
  padding: 0;
  border: 0;
  border-radius: 999px;
  background: rgba(11,28,49,.25);
}

.dots button.active {
  width: 28px;
  background: var(--blue-500);
}

.section-blue .carousel-controls button {
  border-color: var(--line);
}

.section-blue .dots button {
  background: rgba(255,255,255,.25);
}

.section-blue .dots button.active {
  background: var(--cyan-300);
}

/* Tools */

.section-heading {
  max-width: 760px;
  margin-bottom: 44px;
}

.tool-cards {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 22px;
}

.tool-card {
  min-height: 250px;
  padding: 30px;
  border: 1px solid var(--line-dark);
  border-radius: var(--radius-lg);
  background: #fff;
  box-shadow: 0 18px 50px rgba(7,22,40,.08);
}

.tool-icon {
  width: 54px;
  height: 54px;
  display: grid;
  place-items: center;
  margin-bottom: 24px;
  border-radius: 16px;
  background: linear-gradient(135deg, #e6f3ff, #cce8ff);
  color: #0b5fb3;
  font-weight: 900;
}

.tool-card p {
  color: var(--muted-dark);
}

/* Download */

.download-box {
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 44px;
  align-items: center;
  padding: 46px;
  border: 1px solid rgba(158,231,255,.22);
  border-radius: var(--radius-xl);
  background:
    linear-gradient(135deg, rgba(255,255,255,.11), rgba(255,255,255,.045));
  box-shadow: var(--shadow);
}

.download-box p {
  max-width: 720px;
  color: rgba(234,241,248,.76);
}

code {
  padding: 2px 6px;
  border-radius: 6px;
  background: rgba(255,255,255,.12);
  color: var(--cyan-300);
}

.download-actions {
  display: grid;
  justify-items: start;
  gap: 12px;
}

.download-actions span {
  color: var(--muted);
  font-size: .9rem;
}

/* Footer */

.site-footer {
  border-top: 1px solid var(--line);
  background: #040b15;
}

.footer-inner {
  min-height: 84px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  color: rgba(234,241,248,.65);
}

.footer-inner p {
  margin: 0;
}

.footer-inner a {
  color: #fff;
  text-decoration: none;
  font-weight: 700;
}

/* Reveal */

.reveal {
  opacity: 0;
  transform: translateY(22px);
  transition: opacity .65s ease, transform .65s ease;
}

.reveal.visible {
  opacity: 1;
  transform: translateY(0);
}

@keyframes pulse {
  0% { box-shadow: 0 0 0 0 rgba(84,255,178,.55); }
  70% { box-shadow: 0 0 0 12px rgba(84,255,178,0); }
  100% { box-shadow: 0 0 0 0 rgba(84,255,178,0); }
}

/* Responsivo */

@media (max-width: 920px) {
  .menu-toggle {
    display: block;
  }

  .site-nav {
    position: absolute;
    top: 76px;
    left: 20px;
    right: 20px;
    display: none;
    flex-direction: column;
    align-items: stretch;
    gap: 0;
    padding: 12px;
    border: 1px solid var(--line);
    border-radius: 18px;
    background: rgba(6, 16, 31, .96);
  }

  .site-nav.open {
    display: flex;
  }

  .site-nav a {
    padding: 14px;
  }

  .hero-grid,
  .product-grid,
  .product-grid-reverse,
  .download-box {
    grid-template-columns: 1fr;
  }

  .hero {
    min-height: auto;
    padding: 72px 0 84px;
  }

  .product-section,
  .tools-section,
  .download-section {
    padding: 78px 0;
  }

  .tool-cards {
    grid-template-columns: 1fr;
  }

  .download-box {
    padding: 30px;
  }
}

@media (max-width: 560px) {
  .container {
    width: min(100% - 28px, 1160px);
  }

  .header-inner {
    height: 68px;
  }

  .site-nav {
    top: 68px;
  }

  h1 {
    font-size: 3.5rem;
  }

  .hero-actions {
    display: grid;
  }

  .btn {
    width: 100%;
  }

  .carousel-controls {
    grid-template-columns: 40px 1fr 40px;
    padding: 14px;
  }

  .carousel-controls button {
    width: 40px;
    height: 40px;
  }

  .placeholder-note {
    border-radius: 12px;
    font-size: .78rem;
  }

  .footer-inner {
    flex-direction: column;
    justify-content: center;
    text-align: center;
  }
}


/* Ajustes v2 */

.header-spacer {
  width: 42px;
  height: 42px;
}

.download-actions {
  min-width: 320px;
}

.download-actions .btn {
  width: 100%;
}

.tutorials-section {
  padding: 112px 0;
}

.tutorials-grid {
  display: grid;
  grid-template-columns: 0.95fr 1.25fr;
  gap: 120px;
  align-items: center;
}

.tutorials-copy .muted {
  color: var(--muted);
}

.tutorial-list {
  display: grid;
  gap: 14px;
  margin-top: 30px;
}

.tutorial-list div {
  padding: 18px;
  border: 1px solid var(--line);
  border-radius: var(--radius-md);
  background: rgba(255,255,255,.07);
}

.tutorial-list strong {
  display: block;
  margin-bottom: 4px;
}

.tutorial-list span {
  color: var(--muted);
}

.tutorial-preview {
  display: grid;
  gap: 18px;
}

.video-card {
  position: relative;
  overflow: hidden;
  border: 1px solid rgba(158,231,255,.22);
  border-radius: var(--radius-xl);
  background:
    linear-gradient(135deg, rgba(45,140,255,.20), rgba(255,255,255,.06)),
    repeating-linear-gradient(135deg, rgba(255,255,255,.06) 0 10px, transparent 10px 22px);
  box-shadow: var(--shadow);
}

.main-video {
  min-height: 310px;
  display: flex;
  align-items: end;
  padding: 28px;
}

.main-video strong,
.main-video span {
  display: block;
}

.main-video strong {
  font-size: 1.3rem;
}

.main-video span {
  color: var(--muted);
}

.play-button {
  position: absolute;
  top: 50%;
  left: 50%;
  width: 74px;
  height: 74px;
  display: grid;
  place-items: center;
  border-radius: 50%;
  transform: translate(-50%, -50%);
  background: linear-gradient(135deg, var(--blue-500), var(--cyan-300));
  color: #03101f;
  font-weight: 900;
  box-shadow: 0 18px 44px rgba(45,140,255,.32);
}

@media (max-width: 920px) {
  .header-spacer {
    display: none;
  }

  .tutorials-grid {
    grid-template-columns: 1fr;
  }

  .tutorials-section {
    padding: 78px 0;
  }

  .download-actions {
    min-width: 0;
  }
}

@media (max-width: 560px) {
}


/* Ajustes v3 */

.hero-actions {
  display: inline-grid;
  grid-template-columns: repeat(2, minmax(230px, 1fr));
  gap: 14px;
}

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

.tool-icon {
  background: linear-gradient(135deg, #e8f5ff, #cce8ff);
  box-shadow: inset 0 0 0 1px rgba(45,140,255,.18), 0 18px 34px rgba(45,140,255,.12);
}

.tool-icon svg {
  width: 30px;
  height: 30px;
  fill: none;
  stroke: #0b5fb3;
  stroke-width: 1.85;
  stroke-linecap: round;
  stroke-linejoin: round;
}

@media (max-width: 920px) {
}

@media (max-width: 640px) {
  .hero-actions {
    display: grid;
    grid-template-columns: 1fr;
    width: 100%;
  }
}


/* Ajustes v4 - Contato */

.nav-contact {
  appearance: none;
  border: 0;
  background: transparent;
  color: rgba(234, 241, 248, .78);
  font: inherit;
  font-weight: 600;
  cursor: pointer;
  padding: 0;
  transition: color .2s ease;
}

.nav-contact:hover {
  color: #fff;
}

.contact-modal {
  position: fixed;
  inset: 0;
  z-index: 100;
  display: none;
}

.contact-modal.open {
  display: block;
}

.contact-backdrop {
  position: absolute;
  inset: 0;
  background: rgba(2, 8, 18, .72);
  backdrop-filter: blur(12px);
}

.contact-dialog {
  position: relative;
  width: min(760px, calc(100% - 32px));
  max-height: calc(100vh - 40px);
  overflow: auto;
  margin: 20px auto;
  padding: 34px;
  border: 1px solid rgba(158,231,255,.24);
  border-radius: var(--radius-xl);
  background:
    radial-gradient(circle at 80% 0%, rgba(45,140,255,.16), transparent 34%),
    linear-gradient(135deg, #071629, #0d2542);
  color: var(--text);
  box-shadow: 0 34px 90px rgba(0,0,0,.45);
}

.contact-close {
  position: absolute;
  top: 16px;
  right: 18px;
  width: 42px;
  height: 42px;
  border: 1px solid var(--line);
  border-radius: 50%;
  background: rgba(255,255,255,.06);
  color: #fff;
  font-size: 1.7rem;
  cursor: pointer;
}

.contact-heading {
  max-width: 620px;
  margin-bottom: 24px;
}

.contact-heading p {
  color: var(--muted);
}

.contact-form {
  display: grid;
  gap: 18px;
}

.contact-form label {
  display: grid;
  gap: 8px;
  color: rgba(234,241,248,.88);
  font-weight: 700;
}

.contact-form input,
.contact-form textarea {
  width: 100%;
  border: 1px solid rgba(158,231,255,.20);
  border-radius: 14px;
  background: rgba(255,255,255,.08);
  color: #fff;
  padding: 14px 15px;
  font: inherit;
  outline: none;
}

.contact-form input:focus,
.contact-form textarea:focus {
  border-color: var(--cyan-300);
  box-shadow: 0 0 0 4px rgba(158,231,255,.12);
}

.form-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 6px;
}

.form-status {
  min-height: 24px;
  margin: 0;
  color: var(--cyan-300);
  font-weight: 700;
}

.form-status.error {
  color: #ffb4b4;
}

body.modal-open {
  overflow: hidden;
}

@media (max-width: 920px) {
  .nav-contact {
    text-align: left;
    padding: 14px;
  }
}

@media (max-width: 640px) {
  .contact-dialog {
    padding: 26px 18px;
  }

  .form-actions .btn {
    width: 100%;
  }
}


/* Ajustes v5 */

.contact-heading {
  margin-bottom: 18px;
}

.contact-heading .section-label {
  margin-bottom: 12px;
}

.contact-heading p {
  font-size: 1.04rem;
}

.contact-form .btn-primary {
  border: 0;
}

.contact-form .btn-secondary {
  border: 1px solid rgba(255,255,255,.22);
}

.form-actions .btn {
  width: auto;
}

@media (max-width: 640px) {
  .form-actions .btn {
    width: 100%;
  }
}


/* Revisão final */

.terminal-top p {
  margin: 0;
  color: rgba(234, 241, 248, .78);
}

.contact-form button,
.contact-close,
.contact-backdrop,
.nav-contact {
  cursor: pointer;
}

.contact-form button:disabled {
  cursor: wait;
  opacity: .72;
  transform: none;
}


/* Vídeo demonstrativo */
.main-video { min-height: 0; padding: 0; display: block; pointer-events: none; }
.main-video video { display: block; width: 100%; aspect-ratio: 16 / 9; border: 0; border-radius: inherit; background: #06101f; object-fit: contain; cursor: none; }
.play-button { display: none; }
