/* =====================================================
   ProductLab — responsive landing
   Dark base · gradiente roxo→rosa como única cor accent
   ===================================================== */

:root {
  --bg: #0e0b14;
  --bg-2: #16121f;
  --bg-3: #1e1929;
  --ink: #f2eef7;
  --dim: #8a82a0;
  --border: #251f33;
  --purple: #a78bfa;
  --pink: #f472b6;
  --grad: linear-gradient(135deg, var(--purple), var(--pink));

  --container: 1280px;
  --radius-sm: 10px;
  --radius: 16px;
  --radius-lg: 24px;
  --radius-pill: 999px;

  /* fluid spacing */
  --pad-x: clamp(20px, 5vw, 64px);
  --section-y: clamp(72px, 12vw, 120px);

  --font-sans: "Manrope", -apple-system, BlinkMacSystemFont, "Segoe UI", system-ui, sans-serif;
  --font-mono: "JetBrains Mono", ui-monospace, monospace;
}

/* ============ SPOTLIGHT (segue o cursor) ============ */
.spotlight {
  position: fixed;
  inset: 0;
  pointer-events: none;
  z-index: 100;
  opacity: 0;
  transition: opacity 0.4s ease;
  /* coordenadas atualizadas via JS */
  --mx: 50%;
  --my: 50%;
  background: radial-gradient(
    600px circle at var(--mx) var(--my),
    rgba(167, 139, 250, 0.12) 0%,
    rgba(244, 114, 182, 0.06) 25%,
    transparent 55%
  );
  mix-blend-mode: screen;
}
.spotlight.is-active {
  opacity: 1;
}

/* Desabilita em touch / mobile (sem cursor) */
@media (hover: none), (max-width: 720px) {
  .spotlight {
    display: none;
  }
}

* {
  box-sizing: border-box;
}
html {
  scroll-behavior: smooth;
}
body {
  margin: 0;
  background: var(--bg);
  color: var(--ink);
  font-family: var(--font-sans);
  font-size: 16px;
  line-height: 1.5;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}

a {
  color: inherit;
  text-decoration: none;
}
img {
  max-width: 100%;
  display: block;
}

.container {
  width: 100%;
  max-width: var(--container);
  margin: 0 auto;
  padding-left: var(--pad-x);
  padding-right: var(--pad-x);
}

/* ============ TYPE ============ */
h1,
h2,
h3,
h4 {
  margin: 0;
  letter-spacing: -0.03em;
  font-weight: 700;
  line-height: 1;
}
p {
  margin: 0;
}

.grad-text {
  background: var(--grad);
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
  color: transparent;
  font-style: italic;
  font-weight: 700;
  /* itálico + background-clip:text corta a última letra à direita;
     estende a caixa do recorte sem mexer no layout do texto seguinte */
  padding-right: 0.08em;
  margin-right: -0.08em;
}

/* ============ BUTTONS ============ */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 16px 28px;
  border-radius: var(--radius-pill);
  font-family: inherit;
  font-weight: 700;
  font-size: 15px;
  border: 1px solid transparent;
  cursor: pointer;
  transition:
    transform 0.15s ease,
    box-shadow 0.15s ease,
    opacity 0.15s ease;
  white-space: nowrap;
}
.btn:hover {
  transform: translateY(-1px);
}
.btn-primary {
  background: var(--grad);
  color: var(--bg);
  box-shadow: 0 10px 32px rgba(167, 139, 250, 0.35);
}
.btn-primary:hover {
  box-shadow: 0 14px 40px rgba(167, 139, 250, 0.5);
}
.btn-secondary {
  background: var(--bg-2);
  color: var(--ink);
  border-color: var(--border);
}
.btn-secondary:hover {
  background: var(--bg-3);
}
.btn-ghost {
  background: var(--ink);
  color: var(--bg);
  padding: 11px 22px;
  font-size: 14px;
}
.btn-ghost:hover {
  opacity: 0.9;
}
.btn-large {
  padding: 20px 40px;
  font-size: 17px;
}

/* ============ PILL ============ */
.pill {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 7px 14px;
  background: var(--bg-2);
  color: var(--ink);
  border: 1px solid var(--border);
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  border-radius: var(--radius-pill);
}
.pill-dot {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--purple);
  box-shadow: 0 0 8px rgba(167, 139, 250, 0.55);
}
.pill-dot-pink {
  background: var(--pink);
  box-shadow: 0 0 8px rgba(244, 114, 182, 0.55);
}
.pill-on-dark {
  background: var(--bg-3);
}

/* ============ NAV ============ */
.nav {
  position: sticky;
  top: 0;
  z-index: 50;
  background: rgba(14, 11, 20, 0.8);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--border);
}
.nav-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  padding-top: 18px;
  padding-bottom: 18px;
}
.brand {
  display: flex;
  align-items: center;
  gap: 6px;
}
.brand-mark {
  width: 36px;
  height: 36px;
  display: inline-flex;
  align-items: center;
  place-items: center;
}
.brand-name {
  font-weight: 800;
  font-size: 20px;
  letter-spacing: -0.02em;
}
.nav-links {
  display: flex;
  gap: 28px;
  font-size: 14px;
  font-weight: 500;
  color: var(--dim);
}
.nav-links a {
  transition: color 0.15s;
}
.nav-links a:hover {
  color: var(--ink);
}
.nav-actions {
  display: flex;
  align-items: center;
  gap: 12px;
}

.nav-toggle {
  display: none;
  width: 40px;
  height: 40px;
  border: 1px solid var(--border);
  background: var(--bg-2);
  border-radius: 10px;
  cursor: pointer;
  position: relative;
  padding: 0;
}
.nav-toggle span {
  display: block;
  position: absolute;
  left: 10px;
  width: 20px;
  height: 2px;
  background: var(--ink);
  border-radius: 2px;
  transition:
    transform 0.2s,
    opacity 0.2s,
    top 0.2s;
}
.nav-toggle span:nth-child(1) {
  top: 13px;
}
.nav-toggle span:nth-child(2) {
  top: 19px;
}
.nav-toggle span:nth-child(3) {
  top: 25px;
}
.nav-toggle.is-open span:nth-child(1) {
  top: 19px;
  transform: rotate(45deg);
}
.nav-toggle.is-open span:nth-child(2) {
  opacity: 0;
}
.nav-toggle.is-open span:nth-child(3) {
  top: 19px;
  transform: rotate(-45deg);
}

.nav-mobile {
  display: flex;
  flex-direction: column;
  gap: 4px;
  padding: 16px var(--pad-x) 24px;
  border-top: 1px solid var(--border);
  background: var(--bg);
}
.nav-mobile[hidden] {
  display: none;
}
.nav-mobile a {
  padding: 14px 12px;
  font-weight: 600;
  color: var(--ink);
  border-radius: 10px;
}
.nav-mobile a:hover {
  background: var(--bg-2);
}
.nav-mobile .btn {
  margin-top: 8px;
}

/* ============ HERO ============ */
.hero {
  position: relative;
  padding: clamp(48px, 8vw, 96px) 0 var(--section-y);
  overflow: hidden;
}
.hero-glow {
  position: absolute;
  filter: blur(80px);
  pointer-events: none;
  border-radius: 50%;
}
.hero-glow-1 {
  top: -200px;
  right: -200px;
  width: min(800px, 90vw);
  height: min(800px, 90vw);
  background: radial-gradient(circle, rgba(167, 139, 250, 0.25) 0%, transparent 60%);
}
.hero-glow-2 {
  top: 100px;
  left: -150px;
  width: min(500px, 80vw);
  height: min(500px, 80vw);
  background: radial-gradient(circle, rgba(244, 114, 182, 0.18) 0%, transparent 60%);
}
.hero-inner {
  position: relative;
  z-index: 2;
  display: grid;
  grid-template-columns: minmax(0, 1.5fr) minmax(0, 1fr);
  gap: 48px;
  align-items: start;
}
.hero-text {
  max-width: 720px;
}
.hero-title {
  font-size: clamp(40px, 7vw, 96px);
  line-height: 0.98;
  letter-spacing: -0.045em;
  margin: 28px 0 0;
}
.hero-sub {
  font-size: clamp(16px, 1.4vw, 20px);
  line-height: 1.55;
  max-width: 580px;
  margin-top: 28px;
  color: var(--dim);
}
.hero-ctas {
  display: flex;
  gap: 12px;
  margin-top: 36px;
  flex-wrap: wrap;
}
.hero-social {
  display: flex;
  align-items: center;
  gap: 20px;
  margin-top: 48px;
  font-size: 14px;
  color: var(--dim);
  flex-wrap: wrap;
}
.avatars {
  display: flex;
}
.avatars span {
  width: 32px;
  height: 32px;
  border-radius: 50%;
  background: var(--bg-3);
  border: 2px solid var(--bg);
  margin-left: -8px;
}
.avatars span:first-child {
  margin-left: 0;
}
.hero-social-text {
  font-weight: 500;
}
.hero-social-divider {
  width: 1px;
  height: 18px;
  background: var(--border);
}

/* Floating cards */
.hero-cards {
  position: relative;
  min-height: 360px;
}
.float-card {
  position: absolute;
  background: var(--bg-2);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 20px;
  box-shadow: 0 20px 50px rgba(0, 0, 0, 0.4);
  width: 260px;
}
.card-sprint {
  top: 20px;
  right: 0;
  transform: rotate(3deg);
}
.card-brief {
  top: 230px;
  right: 180px;
  width: 220px;
  background: var(--bg-3);
  transform: rotate(-2deg);
  padding: 16px;
}
.card-row {
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 14px;
  margin-bottom: 8px;
}
.check-badge {
  width: 26px;
  height: 26px;
  border-radius: 8px;
  background: var(--grad);
  display: grid;
  place-items: center;
  color: var(--bg);
  font-size: 13px;
  font-weight: 800;
}
.float-card p {
  font-size: 13px;
  color: var(--dim);
  line-height: 1.45;
  margin: 0;
}
.progress {
  height: 5px;
  background: var(--bg-3);
  border-radius: 3px;
  overflow: hidden;
  margin-top: 14px;
}
.progress-bar {
  width: 78%;
  height: 100%;
  background: var(--grad);
}
.float-card small {
  display: block;
  font-size: 11px;
  color: var(--dim);
  margin-top: 6px;
  font-weight: 600;
}
.mono-tag {
  font-family: var(--font-mono);
  font-size: 11px;
  color: var(--dim);
}
.card-brief .quote {
  color: var(--ink);
  font-size: 13px;
  margin-top: 6px;
  font-weight: 500;
  line-height: 1.45;
}
.status-chip {
  display: inline-block;
  margin-top: 12px;
  font-size: 10px;
  padding: 4px 10px;
  border-radius: var(--radius-pill);
  background: rgba(167, 139, 250, 0.14);
  color: var(--purple);
  font-weight: 700;
  letter-spacing: 0.05em;
  border: 1px solid rgba(167, 139, 250, 0.3);
}

/* ============ LOGOS ============ */
.logos {
  border-top: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
  padding: 28px 0;
}
.logos-inner {
  display: flex;
  align-items: center;
  gap: 32px;
  flex-wrap: wrap;
}
.logos-label {
  font-size: 12px;
  font-weight: 600;
  color: var(--dim);
  text-transform: uppercase;
  letter-spacing: 0.08em;
  min-width: 180px;
  margin: 0;
}
.logos-row {
  display: flex;
  align-items: center;
  flex: 1;
  justify-content: space-around;
  gap: 24px;
  flex-wrap: wrap;
}
.logos-row span {
  font-weight: 700;
  font-size: clamp(15px, 1.6vw, 20px);
  color: var(--dim);
  letter-spacing: -0.02em;
}

/* ============ FEATURES ============ */
.features {
  padding: var(--section-y) 0;
}
.section-head {
  display: grid;
  grid-template-columns: 1.4fr 1fr;
  gap: 32px;
  align-items: end;
  margin-bottom: 48px;
}
.section-head h2 {
  font-size: clamp(32px, 5vw, 64px);
  margin-top: 18px;
  line-height: 1.05;
}
.section-lead {
  font-size: clamp(15px, 1.3vw, 17px);
  color: var(--dim);
  line-height: 1.55;
  max-width: 380px;
  justify-self: end;
}
.feature-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 16px;
}
.feature-card {
  background: var(--bg-2);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: clamp(20px, 2.5vw, 32px);
  transition:
    transform 0.18s,
    border-color 0.18s;
}
.feature-card:hover {
  border-color: rgba(167, 139, 250, 0.4);
  transform: translateY(-2px);
}
.feature-num {
  display: inline-grid;
  place-items: center;
  width: 44px;
  height: 44px;
  border-radius: 12px;
  background: var(--bg-3);
  border: 1px solid var(--border);
  color: var(--purple);
  font-family: var(--font-mono);
  font-weight: 600;
  font-size: 15px;
  margin-bottom: 18px;
}
.feature-card h3 {
  font-size: clamp(18px, 1.8vw, 22px);
  margin-bottom: 8px;
}
.feature-card p {
  font-size: 14px;
  line-height: 1.55;
  color: var(--dim);
}

/* ============ CASE ============ */
.case {
  padding-bottom: var(--section-y);
}
.case-card {
  background: var(--bg-2);
  border: 1px solid var(--border);
  border-radius: clamp(20px, 3vw, 28px);
  padding: clamp(28px, 5vw, 64px);
  position: relative;
  overflow: hidden;
}
.case-glow {
  position: absolute;
  filter: blur(80px);
  border-radius: 50%;
  pointer-events: none;
}
.case-glow-1 {
  top: -150px;
  right: -150px;
  width: 500px;
  height: 500px;
  background: radial-gradient(circle, rgba(244, 114, 182, 0.25) 0%, transparent 60%);
}
.case-glow-2 {
  bottom: -200px;
  left: -100px;
  width: 500px;
  height: 500px;
  background: radial-gradient(circle, rgba(167, 139, 250, 0.2) 0%, transparent 60%);
}
.case-content {
  position: relative;
  z-index: 2;
}
.case-quote {
  font-size: clamp(24px, 3.5vw, 48px);
  margin: 18px 0 24px;
  line-height: 1.1;
  max-width: 900px;
}
.case-author {
  display: flex;
  align-items: center;
  gap: 14px;
  margin-bottom: 40px;
}
.case-avatar {
  width: 44px;
  height: 44px;
  border-radius: 50%;
  background: var(--grad);
}
.case-author strong {
  font-size: 15px;
  display: block;
}
.case-author small {
  font-size: 13px;
  color: var(--dim);
}

.case-next {
  position: absolute;
  top: 50%;
  right: clamp(16px, 2.5vw, 28px);
  transform: translateY(-50%);
  width: 44px;
  height: 44px;
  border-radius: 50%;
  border: 1px solid var(--border);
  background: rgba(255, 255, 255, 0.02);
  color: var(--dim);
  font-size: 18px;
  cursor: pointer;
  opacity: 0.18;
  transition:
    opacity 0.25s ease,
    background 0.25s ease,
    color 0.25s ease,
    transform 0.25s ease;
  z-index: 3;
  display: inline-flex;
  align-items: center;
  justify-content: center;
}
.case-card:hover .case-next,
.case-next:hover,
.case-next:focus-visible {
  opacity: 1;
  color: #fff;
  background: var(--grad);
  border-color: transparent;
}
.case-next:hover {
  transform: translateY(-50%) scale(1.06);
}

.metrics {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 12px;
}
.metric {
  background: var(--bg);
  border: 1px solid var(--border);
  border-radius: 16px;
  padding: clamp(16px, 2vw, 22px);
}
.metric-num {
  display: block;
  font-size: clamp(28px, 4vw, 40px);
  font-weight: 700;
  letter-spacing: -0.04em;
  background: var(--grad);
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
  color: transparent;
  line-height: 1;
}
.metric-label {
  display: block;
  font-size: 13px;
  color: var(--dim);
  margin-top: 6px;
}

/* ============ CTA ============ */
.cta {
  position: relative;
  text-align: center;
  padding: var(--section-y) 0;
  overflow: hidden;
}
.cta-glow {
  position: absolute;
  top: 30%;
  left: 50%;
  transform: translateX(-50%);
  width: min(700px, 90vw);
  height: 400px;
  background: radial-gradient(ellipse, rgba(167, 139, 250, 0.18) 0%, transparent 60%);
  filter: blur(60px);
  pointer-events: none;
}
.cta-inner {
  position: relative;
  z-index: 2;
}
.cta-title {
  font-size: clamp(36px, 6.5vw, 80px);
  margin: 18px 0 18px;
  letter-spacing: -0.045em;
  line-height: 0.98;
}
.cta-sub {
  font-size: clamp(15px, 1.4vw, 19px);
  color: var(--dim);
  max-width: 560px;
  margin: 0 auto 32px;
}

/* ============ FOOTER ============ */
.footer {
  background: var(--bg-2);
  border-top: 1px solid var(--border);
  padding: 40px 0;
}
.footer-inner {
  display: flex;
  justify-content: space-between;
  align-items: start;
  gap: 24px;
  flex-wrap: wrap;
}
.footer-brand {
  font-weight: 700;
  font-size: 18px;
}
.footer p {
  color: var(--dim);
  margin-top: 6px;
  font-size: 13px;
}
.footer-links {
  display: flex;
  gap: 32px;
  font-size: 13px;
  color: var(--dim);
  flex-wrap: wrap;
}
.footer-links a:hover {
  color: var(--ink);
}

/* ============ HELPERS ============ */
.show-mobile {
  display: none;
}
.hide-mobile {
  display: inline;
}

/* ============ RESPONSIVE ============ */

/* Tablet */
@media (max-width: 1024px) {
  .hero-inner {
    grid-template-columns: 1fr;
    gap: 24px;
  }
  .hero-cards {
    display: none; /* hide floating preview cards on tablet+ down */
  }
  .feature-grid {
    grid-template-columns: repeat(2, 1fr);
  }
  .section-head {
    grid-template-columns: 1fr;
    align-items: start;
  }
  .section-lead {
    justify-self: start;
    max-width: 540px;
  }
  .metrics {
    grid-template-columns: repeat(2, 1fr);
  }
}

/* Mobile */
@media (max-width: 720px) {
  .nav-links {
    display: none;
  }
  .nav-toggle {
    display: block;
  }
  .nav-actions .btn-ghost {
    display: none;
  }

  .hero-ctas {
    flex-direction: column;
    align-items: stretch;
  }
  .hero-ctas .btn {
    width: 100%;
  }

  .hero-social {
    gap: 14px;
  }
  .hero-social-divider {
    display: none;
  }

  .logos-inner {
    gap: 18px;
  }
  .logos-label {
    min-width: auto;
    flex-basis: 100%;
  }
  .logos-row {
    justify-content: flex-start;
    gap: 18px;
  }

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

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

  .case-author {
    flex-wrap: wrap;
  }

  .footer-inner {
    flex-direction: column;
  }
  .footer-links {
    gap: 14px;
    flex-direction: column;
  }

  .show-mobile {
    display: inline;
  }
  .hide-mobile {
    display: none;
  }
}

/* Very small */
@media (max-width: 380px) {
  .metrics {
    grid-template-columns: 1fr;
  }
  .brand-name {
    font-size: 18px;
  }
}

/* Reduced motion */
@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    animation-duration: 0.01ms !important;
    transition-duration: 0.01ms !important;
  }
  html {
    scroll-behavior: auto;
  }
}

/* ============ BRIEFING PAGE ============ */
.brief-form {
  display: flex;
  flex-direction: column;
  gap: 40px;
}
.brief-group {
  background: var(--bg-2);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: clamp(24px, 3vw, 36px);
}
.brief-group-title {
  font-size: 13px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--purple);
  margin: 0 0 24px;
}
.brief-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 20px;
}
.brief-field {
  display: flex;
  flex-direction: column;
  gap: 8px;
}
.brief-field-full {
  grid-column: 1 / -1;
}
.brief-label {
  font-size: 13px;
  font-weight: 600;
  color: var(--ink);
}
.brief-field input,
.brief-field select,
.brief-field textarea {
  background: var(--bg);
  border: 1px solid var(--border);
  color: var(--ink);
  border-radius: var(--radius-sm);
  padding: 12px 14px;
  font-family: inherit;
  font-size: 15px;
  line-height: 1.45;
  width: 100%;
  transition:
    border-color 0.15s,
    box-shadow 0.15s;
  resize: vertical;
}
.brief-field textarea {
  min-height: 96px;
}
.brief-field input::placeholder,
.brief-field textarea::placeholder {
  color: var(--dim);
}
.brief-field input:focus,
.brief-field select:focus,
.brief-field textarea:focus {
  outline: none;
  border-color: var(--purple);
  box-shadow: 0 0 0 3px rgba(167, 139, 250, 0.18);
}
.brief-field select {
  appearance: none;
  background-image: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' width='12' height='8' viewBox='0 0 12 8'><path fill='%238A82A0' d='M6 8L0 0h12z'/></svg>");
  background-repeat: no-repeat;
  background-position: right 14px center;
  padding-right: 38px;
}
.brief-field.has-error input,
.brief-field.has-error select,
.brief-field.has-error textarea {
  border-color: #f472b6;
  box-shadow: 0 0 0 3px rgba(244, 114, 182, 0.18);
}
.brief-error {
  font-size: 12px;
  color: #f472b6;
  font-weight: 600;
}
.brief-actions {
  display: flex;
  gap: 12px;
  justify-content: flex-end;
  flex-wrap: wrap;
}
.brief-success {
  text-align: center;
  background: var(--bg-2);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: clamp(40px, 6vw, 72px) clamp(24px, 4vw, 48px);
}
.brief-success .check-badge {
  margin: 0 auto;
}
@media (max-width: 720px) {
  .brief-grid {
    grid-template-columns: 1fr;
  }
  .brief-actions {
    flex-direction: column-reverse;
  }
  .brief-actions .btn {
    width: 100%;
  }
}

/* ============ HERO VIDEO PLACEHOLDER ============ */
.hero-video-wrap {
  margin-top: 28px;
  display: flex;
  justify-content: center;
  width: 100%;
}
.hero-video-frame {
  position: relative;
  width: min(100%, 720px);
  aspect-ratio: 16 / 9;
  border-radius: var(--radius-lg);
  border: 1px solid var(--border);
  overflow: hidden;
  background: linear-gradient(180deg, var(--bg-2), var(--bg-3));
  box-shadow: 0 30px 80px -30px rgba(167, 139, 250, 0.25);
}
.hero-video {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}
.hero-video-cover {
  position: absolute;
  inset: 0;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 18px;
  cursor: pointer;
  border: 0;
  padding: 0;
  background:
    radial-gradient(120% 80% at 50% 0%, rgba(167, 139, 250, 0.15), transparent 60%),
    linear-gradient(180deg, var(--bg-2), var(--bg-3));
  transition: opacity 0.2s ease;
}
.hero-video-brand {
  font-size: clamp(22px, 4vw, 32px);
  font-weight: 800;
  letter-spacing: -0.01em;
}
.hero-video-play {
  display: grid;
  place-items: center;
  width: 66px;
  height: 66px;
  border-radius: 50%;
  background: linear-gradient(135deg, #a855f7, #ec4899);
  box-shadow: 0 12px 40px -8px rgba(236, 72, 153, 0.55);
  padding-left: 3px;
  transition:
    transform 0.18s ease,
    box-shadow 0.18s ease;
}
.hero-video-cover:hover .hero-video-play {
  transform: scale(1.06);
  box-shadow: 0 16px 50px -8px rgba(236, 72, 153, 0.7);
}

/* =====================================================
   ADMIN / CRM (ProductLab) — painel pós-login
   ===================================================== */

/* ---------- Login ---------- */
.crm-login {
  position: relative;
  min-height: 100vh;
  display: grid;
  place-items: center;
  padding: 24px;
  background: var(--bg);
  overflow: hidden;
}
.crm-login-card {
  position: relative;
  z-index: 2;
  width: 100%;
  max-width: 400px;
  background: linear-gradient(180deg, var(--bg-2), var(--bg-3));
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: clamp(28px, 5vw, 40px);
  display: flex;
  flex-direction: column;
  gap: 14px;
  box-shadow: 0 30px 80px -30px rgba(167, 139, 250, 0.3);
}
.crm-login-title {
  font-size: 26px;
  margin-top: 8px;
}
.crm-login-sub {
  color: var(--dim);
  font-size: 14px;
  margin-bottom: 8px;
}
.crm-login-error {
  background: rgba(244, 114, 182, 0.12);
  border: 1px solid rgba(244, 114, 182, 0.4);
  color: #fbcfe8;
  font-size: 13px;
  padding: 10px 14px;
  border-radius: var(--radius-sm);
}
.crm-login-back {
  text-align: center;
  color: var(--dim);
  font-size: 13px;
  margin-top: 4px;
}
.crm-login-back:hover {
  color: var(--ink);
}

/* ---------- Campos (login) ---------- */
.crm-field {
  display: flex;
  flex-direction: column;
  gap: 6px;
}
.crm-field-label {
  font-size: 13px;
  color: var(--dim);
  font-weight: 600;
}
.crm-field input {
  width: 100%;
  background: var(--bg);
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  color: var(--ink);
  font-family: inherit;
  font-size: 15px;
  padding: 12px 14px;
  transition: border-color 0.15s ease;
}
.crm-field input:focus {
  outline: none;
  border-color: var(--purple);
}

/* ---------- Marca ---------- */
.crm-brand {
  display: flex;
  align-items: center;
  gap: 8px;
  font-weight: 800;
  letter-spacing: -0.02em;
}
.crm-brand-lg {
  font-size: 20px;
  justify-content: center;
}
.crm-brand-dot {
  width: 18px;
  height: 18px;
  border-radius: 999px;
  background: var(--grad);
  flex: none;
}
.crm-brand-name {
  color: var(--ink);
}
.crm-brand-tag {
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 0.08em;
  color: var(--purple);
  border: 1px solid var(--border);
  border-radius: 6px;
  padding: 2px 6px;
}

/* ---------- Loading ---------- */
.crm-loading {
  min-height: 100vh;
  display: grid;
  place-items: center;
  color: var(--dim);
  font-size: 15px;
  background: var(--bg);
}

/* ---------- Shell ---------- */
.crm-shell {
  display: grid;
  grid-template-columns: 220px 1fr;
  min-height: 100vh;
  background: var(--bg);
}

/* ---------- Sidebar ---------- */
.crm-sidebar {
  display: flex;
  flex-direction: column;
  gap: 24px;
  padding: 22px 16px;
  border-right: 1px solid var(--border);
  background: var(--bg-2);
  position: sticky;
  top: 0;
  height: 100vh;
}
.crm-nav {
  display: flex;
  flex-direction: column;
  gap: 4px;
  flex: 1;
}
.crm-nav-item {
  display: flex;
  align-items: center;
  gap: 12px;
  width: 100%;
  padding: 11px 14px;
  border-radius: var(--radius-sm);
  background: transparent;
  border: none;
  color: var(--dim);
  font-family: inherit;
  font-size: 14px;
  font-weight: 600;
  text-align: left;
  cursor: pointer;
  transition:
    background 0.15s ease,
    color 0.15s ease;
}
.crm-nav-item:hover {
  background: var(--bg-3);
  color: var(--ink);
}
.crm-nav-item.is-active {
  background: var(--bg-3);
  color: var(--ink);
}
.crm-nav-icon {
  font-size: 15px;
  width: 18px;
  text-align: center;
  opacity: 0.9;
}

.crm-user {
  border-top: 1px solid var(--border);
  padding-top: 16px;
  display: flex;
  flex-direction: column;
  gap: 12px;
}
.crm-user-row {
  display: flex;
  align-items: center;
  gap: 10px;
}
.crm-avatar {
  width: 34px;
  height: 34px;
  border-radius: 999px;
  background: var(--grad);
  color: var(--bg);
  display: grid;
  place-items: center;
  font-weight: 800;
  font-size: 14px;
  flex: none;
}
.crm-user-info {
  display: flex;
  flex-direction: column;
  min-width: 0;
}
.crm-user-info strong {
  font-size: 12px;
  color: var(--ink);
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.crm-user-info span {
  font-size: 11px;
  color: var(--dim);
}
.crm-logout {
  width: 100%;
  padding: 9px;
  border-radius: var(--radius-sm);
  background: var(--bg-3);
  border: 1px solid var(--border);
  color: var(--ink);
  font-family: inherit;
  font-size: 13px;
  font-weight: 600;
  cursor: pointer;
  transition: border-color 0.15s ease;
}
.crm-logout:hover {
  border-color: var(--purple);
}

/* ---------- Main ---------- */
.crm-main {
  padding: clamp(24px, 3vw, 40px);
  overflow-x: auto;
}
.crm-pagehead {
  margin-bottom: 24px;
}
.crm-pagehead h1 {
  font-size: 30px;
}
.crm-pagehead p {
  color: var(--dim);
  margin-top: 6px;
  font-size: 14px;
}

/* ---------- Stat cards ---------- */
.crm-stats {
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  gap: 16px;
  margin-bottom: 16px;
}
.crm-stats-3 {
  grid-template-columns: repeat(3, minmax(0, 320px));
}
.crm-stat {
  background: var(--bg-2);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 18px;
  display: flex;
  flex-direction: column;
  gap: 8px;
}
.crm-stat-label {
  font-size: 11px;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--dim);
  font-weight: 700;
}
.crm-stat-value {
  font-size: 30px;
  font-weight: 800;
  color: var(--ink);
  letter-spacing: -0.02em;
}
.crm-stat-hint {
  font-size: 12px;
  color: var(--dim);
}

/* ---------- Panel ---------- */
.crm-panel {
  background: var(--bg-2);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 24px;
  margin-top: 16px;
}
.crm-panel-flush {
  padding: 0;
  overflow: hidden;
}
.crm-panel-title {
  font-size: 17px;
  margin-bottom: 18px;
}

/* ---------- Funil ---------- */
.crm-funnel {
  display: flex;
  flex-direction: column;
  gap: 12px;
}
.crm-funnel-row {
  display: grid;
  grid-template-columns: 110px 1fr 28px;
  align-items: center;
  gap: 14px;
}
.crm-funnel-label {
  font-size: 14px;
  color: var(--dim);
}
.crm-funnel-track {
  height: 18px;
  border-radius: 999px;
  background: var(--bg-3);
  overflow: hidden;
}
.crm-funnel-fill {
  height: 100%;
  border-radius: 999px;
  background: var(--grad);
  min-width: 0;
  transition: width 0.4s ease;
}
.crm-funnel-count {
  font-size: 14px;
  color: var(--ink);
  text-align: right;
  font-weight: 600;
}

/* ---------- Kanban ---------- */
.crm-kanban {
  display: grid;
  grid-auto-flow: column;
  grid-auto-columns: 220px;
  gap: 14px;
  overflow-x: auto;
  padding-bottom: 8px;
}
.crm-kanban-col {
  background: var(--bg-2);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 14px;
  display: flex;
  flex-direction: column;
  gap: 12px;
}
.crm-kanban-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  font-size: 13px;
  font-weight: 700;
  color: var(--ink);
}
.crm-kanban-body {
  display: flex;
  flex-direction: column;
  gap: 10px;
  min-height: 60px;
}
.crm-kanban-col.is-over {
  border-color: var(--purple);
  background: linear-gradient(180deg, rgba(167, 139, 250, 0.1), var(--bg-2));
}
.crm-card {
  background: var(--bg-3);
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  padding: 12px;
  display: flex;
  flex-direction: column;
  gap: 4px;
}
.crm-card-draggable {
  cursor: grab;
  transition:
    opacity 0.15s ease,
    transform 0.15s ease,
    border-color 0.15s ease;
}
.crm-card-draggable:hover {
  border-color: var(--purple);
  transform: translateY(-1px);
}
.crm-card-draggable:active {
  cursor: grabbing;
}
.crm-card-draggable.is-dragging {
  opacity: 0.4;
}
.crm-card strong {
  font-size: 14px;
}
.crm-card span {
  font-size: 12px;
  color: var(--dim);
}
.crm-card-value {
  color: var(--purple) !important;
  font-weight: 600;
}

.crm-badge {
  font-size: 11px;
  font-weight: 700;
  background: var(--bg-3);
  border: 1px solid var(--border);
  border-radius: 999px;
  padding: 2px 9px;
  color: var(--dim);
}
.crm-badge-new {
  background: var(--grad);
  color: var(--bg);
  border: none;
}

/* ---------- Tabela ---------- */
.crm-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 14px;
}
.crm-table th {
  text-align: left;
  font-size: 11px;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--dim);
  font-weight: 700;
  padding: 14px 18px;
  border-bottom: 1px solid var(--border);
}
.crm-table td {
  padding: 14px 18px;
  border-bottom: 1px solid var(--border);
  color: var(--ink);
}
.crm-table tr:last-child td {
  border-bottom: none;
}
.crm-stage-tag {
  font-size: 12px;
  font-weight: 600;
  border: 1px solid var(--border);
  border-radius: 999px;
  padding: 3px 10px;
  color: var(--purple);
}

/* ---------- Formulários ---------- */
.crm-forms {
  display: flex;
  flex-direction: column;
  gap: 12px;
}
.crm-form-item {
  background: var(--bg-2);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 18px;
}
.crm-form-top {
  display: flex;
  align-items: center;
  gap: 10px;
}
.crm-form-top strong {
  font-size: 15px;
}
.crm-form-date {
  margin-left: auto;
  font-size: 12px;
  color: var(--dim);
}
.crm-form-email {
  font-size: 13px;
  color: var(--purple);
  display: inline-block;
  margin-top: 4px;
}
.crm-form-msg {
  font-size: 14px;
  color: var(--dim);
  margin-top: 8px;
}

/* ---------- Vazios ---------- */
.crm-empty {
  color: var(--dim);
  font-size: 14px;
  padding: 40px;
  text-align: center;
  border: 1px dashed var(--border);
  border-radius: var(--radius);
}
.crm-empty-sm {
  color: var(--dim);
  font-size: 13px;
  text-align: center;
  padding: 6px;
}

/* ---------- Responsivo ---------- */
@media (max-width: 1100px) {
  .crm-stats {
    grid-template-columns: repeat(3, 1fr);
  }
}
@media (max-width: 860px) {
  .crm-shell {
    grid-template-columns: 1fr;
  }
  .crm-sidebar {
    position: static;
    height: auto;
    flex-direction: row;
    flex-wrap: wrap;
    align-items: center;
    gap: 12px;
  }
  .crm-nav {
    flex-direction: row;
    flex-wrap: wrap;
    flex: 1 1 100%;
    order: 3;
  }
  .crm-nav-item {
    width: auto;
  }
  .crm-user {
    border-top: none;
    padding-top: 0;
    flex: 1;
    flex-direction: row;
    align-items: center;
  }
  .crm-logout {
    width: auto;
  }
  .crm-stats,
  .crm-stats-3 {
    grid-template-columns: repeat(2, 1fr);
  }
}
@media (max-width: 520px) {
  .crm-stats,
  .crm-stats-3 {
    grid-template-columns: 1fr;
  }
}

/* =====================================================
   ADMIN / CRM — CRUD: cabeçalho com ação, badges, ações,
   status de formulário e modais
   ===================================================== */

/* ---------- Page head com botão/contador ---------- */
.crm-pagehead-row {
  display: flex;
  align-items: flex-start;
  gap: 16px;
}
.crm-pagehead-row > div:first-child { flex: 1; }
.crm-head-btn {
  padding: 12px 20px;
  font-size: 14px;
  flex: none;
}
.crm-count-badge {
  background: var(--bg-3);
  border: 1px solid var(--border);
  color: var(--purple);
  font-weight: 700;
  font-size: 14px;
  min-width: 34px;
  height: 34px;
  padding: 0 10px;
  border-radius: var(--radius-pill);
  display: inline-flex;
  align-items: center;
  justify-content: center;
}

/* ---------- Ações em linha (tabelas / formulários) ---------- */
.crm-row-actions { display: flex; gap: 14px; justify-content: flex-end; }
.crm-link {
  background: none;
  border: none;
  padding: 0;
  font-family: inherit;
  font-size: 13px;
  font-weight: 600;
  color: var(--dim);
  cursor: pointer;
  transition: color 0.15s ease;
}
.crm-link:hover { color: var(--ink); }
.crm-link-danger:hover { color: var(--pink); }

/* ---------- Ações no card do Kanban ---------- */
.crm-card-top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
}
.crm-card-actions { display: flex; gap: 4px; opacity: 0; transition: opacity 0.15s ease; }
.crm-card:hover .crm-card-actions { opacity: 1; }
.crm-card-actions button {
  background: none;
  border: none;
  color: var(--dim);
  cursor: pointer;
  font-size: 13px;
  line-height: 1;
  padding: 2px 4px;
  border-radius: 6px;
}
.crm-card-actions button:hover { color: var(--ink); background: var(--bg-2); }

/* ---------- Status de formulário ---------- */
.crm-status {
  display: inline-flex;
  align-items: center;
  font-size: 12px;
  font-weight: 700;
  padding: 4px 12px;
  border-radius: var(--radius-pill);
  border: 1px solid transparent;
}
.crm-status-novo {
  color: var(--purple);
  background: rgba(167, 139, 250, 0.14);
  border-color: rgba(167, 139, 250, 0.35);
}
.crm-status-convertido {
  color: #6ee7b7;
  background: rgba(16, 185, 129, 0.14);
  border-color: rgba(16, 185, 129, 0.35);
}
.crm-status-arquivado {
  color: var(--dim);
  background: var(--bg-3);
  border-color: var(--border);
}

/* ---------- Modal ---------- */
.crm-modal-overlay {
  position: fixed;
  inset: 0;
  z-index: 200;
  background: rgba(8, 6, 12, 0.7);
  backdrop-filter: blur(4px);
  -webkit-backdrop-filter: blur(4px);
  display: grid;
  place-items: center;
  padding: 24px;
}
.crm-modal {
  width: 100%;
  max-width: 460px;
  max-height: 90vh;
  overflow-y: auto;
  background: linear-gradient(180deg, var(--bg-2), var(--bg-3));
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 28px;
  display: flex;
  flex-direction: column;
  gap: 14px;
  box-shadow: 0 30px 80px -20px rgba(0, 0, 0, 0.6);
}
.crm-modal-wide { max-width: 600px; }
.crm-modal-title { font-size: 22px; }
.crm-modal-head { display: flex; align-items: center; gap: 12px; }
.crm-modal-sub { color: var(--dim); font-size: 13px; margin-top: -6px; }
.crm-field-row { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }
.crm-modal-actions {
  display: flex;
  justify-content: flex-end;
  gap: 10px;
  margin-top: 8px;
}
.crm-modal-actions .btn { padding: 12px 22px; font-size: 14px; }

/* select/number/textarea herdam o estilo de .crm-field input */
.crm-field select,
.crm-field input[type="number"],
.crm-field textarea {
  width: 100%;
  background: var(--bg);
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  color: var(--ink);
  font-family: inherit;
  font-size: 15px;
  padding: 12px 14px;
}
.crm-field textarea {
  resize: vertical;
  min-height: 72px;
  line-height: 1.5;
}
.crm-field select:focus,
.crm-field input[type="number"]:focus,
.crm-field textarea:focus { outline: none; border-color: var(--purple); }

/* ---------- Detalhes do formulário (Ver) ---------- */
.crm-detail { display: flex; flex-direction: column; gap: 2px; }
.crm-detail-row {
  display: grid;
  grid-template-columns: 150px 1fr;
  gap: 14px;
  padding: 11px 0;
  border-bottom: 1px solid var(--border);
}
.crm-detail-row:last-child { border-bottom: none; }
.crm-detail-label { font-size: 13px; color: var(--dim); font-weight: 600; }
.crm-detail-value { font-size: 14px; color: var(--ink); white-space: pre-wrap; }

@media (max-width: 520px) {
  .crm-field-row { grid-template-columns: 1fr; }
  .crm-detail-row { grid-template-columns: 1fr; gap: 2px; }
}
