/* ==========================================================================
   CNC STUDIO R27 — LANDING PAGE IMERSIVA & DESIGN SYSTEM HIGH-END (v1.0.6)
   Design System: Glassmorphism, Aurora Gradients, Cybernetic Engineering Grid
   Tipografia: Google Fonts Outfit (Títulos & Métricas) + Inter (Corpo & Textos)
   ========================================================================== */

/* Font loading handled non-blockingly via document <head> + native CJK fallbacks */

:root {
  --lp-bg: #070a13;
  --lp-bg-subtle: #0b1120;
  --lp-surface: rgba(15, 23, 42, 0.75);
  --lp-surface-hover: rgba(30, 41, 59, 0.85);
  --lp-border: rgba(255, 255, 255, 0.08);
  --lp-border-hover: rgba(16, 185, 129, 0.4);
  --lp-primary: #10b981;
  --lp-primary-glow: rgba(16, 185, 129, 0.35);
  --lp-cyan: #06b6d4;
  --lp-cyan-glow: rgba(6, 182, 212, 0.3);
  --lp-indigo: #6366f1;
  --lp-amber: #f59e0b;
  --lp-text: #f8fafc;
  --lp-text-muted: #94a3b8;
  --lp-text-dim: #64748b;
  --lp-radius: 20px;
  --lp-radius-sm: 12px;
  --lp-radius-lg: 32px;
  --lp-font-heading: 'Outfit', -apple-system, BlinkMacSystemFont, 'Hiragino Kaku Gothic ProN', 'Yu Gothic UI', 'Meiryo', 'Noto Sans JP', 'PingFang SC', 'Malgun Gothic', 'Segoe UI', Roboto, sans-serif;
  --lp-font-body: 'Inter', -apple-system, BlinkMacSystemFont, 'Hiragino Kaku Gothic ProN', 'Yu Gothic UI', 'Meiryo', 'Noto Sans JP', 'PingFang SC', 'Malgun Gothic', 'Segoe UI', Roboto, sans-serif;
  --lp-font: var(--lp-font-body);
  --lp-transition: all 0.3s cubic-bezier(0.16, 1, 0.3, 1);
}

/* Controle de Rolagem e Alternância de Modo (Landing Page vs Estúdio 3D) */
html {
  scroll-behavior: smooth;
  height: auto;
  min-height: 100%;
}

body {
  margin: 0;
  overflow-x: hidden;
  background-color: var(--lp-bg);
  font-family: var(--lp-font-body);
}

body:not(.studio-active) {
  overflow-y: auto !important;
  overflow-x: hidden !important;
  height: auto !important;
  min-height: 100vh !important;
}

body.studio-active {
  overflow: hidden !important;
  height: 100vh !important;
  height: 100dvh !important;
}

body.lp-active #cnc-r27,
body:not(.studio-active) #cnc-r27 {
  display: none !important;
}

body.studio-active #cnc-landing-page {
  display: none !important;
}

/* Container Mestre da Landing Page */
#cnc-landing-page {
  position: relative;
  width: 100%;
  min-height: 100vh;
  background-color: var(--lp-bg);
  color: var(--lp-text);
  font-family: var(--lp-font-body);
  overflow-x: hidden;
  z-index: 10;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}

/* Background com Grade de Engenharia e Aurora Boreal */
.lp-bg-grid {
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 2000px;
  background-image: 
    linear-gradient(to right, rgba(255, 255, 255, 0.03) 1px, transparent 1px),
    linear-gradient(to bottom, rgba(255, 255, 255, 0.03) 1px, transparent 1px);
  background-size: 50px 50px;
  mask-image: radial-gradient(ellipse 90% 70% at 50% 0%, #000 60%, transparent 100%);
  -webkit-mask-image: radial-gradient(ellipse 90% 70% at 50% 0%, #000 60%, transparent 100%);
  pointer-events: none;
  contain: strict;
}

.lp-aurora-glow-1 {
  position: absolute;
  top: -150px;
  left: 20%;
  width: 600px;
  height: 600px;
  background: radial-gradient(circle, rgba(16, 185, 129, 0.18) 0%, rgba(6, 182, 212, 0.08) 50%, transparent 70%);
  filter: blur(80px);
  pointer-events: none;
  animation: lpFloat 14s ease-in-out infinite alternate;
  will-change: transform;
  transform: translate3d(0, 0, 0);
  contain: strict;
  backface-visibility: hidden;
}

.lp-aurora-glow-2 {
  position: absolute;
  top: 100px;
  right: 15%;
  width: 550px;
  height: 550px;
  background: radial-gradient(circle, rgba(99, 102, 241, 0.16) 0%, rgba(16, 185, 129, 0.05) 50%, transparent 70%);
  filter: blur(90px);
  pointer-events: none;
  animation: lpFloat 18s ease-in-out infinite alternate-reverse;
  will-change: transform;
  transform: translate3d(0, 0, 0);
  contain: strict;
  backface-visibility: hidden;
}

@keyframes lpFloat {
  0% { transform: translate3d(0, 0, 0) scale(1); }
  50% { transform: translate3d(40px, 30px, 0) scale(1.08); }
  100% { transform: translate3d(-30px, 50px, 0) scale(0.95); }
}

@media (max-width: 768px) {
  .lp-aurora-glow-1,
  .lp-aurora-glow-2 {
    filter: blur(45px);
    width: 320px;
    height: 320px;
    animation: none;
  }
}

/* ==========================================================================
   SPOTLIGHT EFFECT NOS CARDS (EFEITO GLOW SEGUINDO O MOUSE)
   ========================================================================== */
.lp-spotlight-card {
  position: relative;
  transition: transform 0.3s ease, border-color 0.3s ease, box-shadow 0.3s ease;
}

.lp-spotlight-card:hover {
  transform: translateY(-3px);
  border-color: rgba(16, 185, 129, 0.35);
  box-shadow: 0 16px 36px -10px rgba(0, 0, 0, 0.5), 0 0 24px -6px rgba(16, 185, 129, 0.15);
}

/* ==========================================================================
   BARRA DE NAVEGAÇÃO SUPERIOR
   ========================================================================== */
.lp-navbar {
  position: sticky;
  top: 0;
  width: 100%;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 16px 36px;
  background: rgba(7, 10, 19, 0.85);
  backdrop-filter: blur(24px);
  -webkit-backdrop-filter: blur(24px);
  border-bottom: 1px solid var(--lp-border);
  z-index: 100;
  transition: var(--lp-transition);
}

.lp-brand {
  display: flex;
  align-items: center;
  gap: 12px;
  text-decoration: none;
  color: #fff;
  cursor: pointer;
}

.lp-brand-logo {
  width: 40px;
  height: 40px;
  border-radius: 12px;
  background: linear-gradient(135deg, #10b981 0%, #06b6d4 100%);
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 4px 20px var(--lp-primary-glow);
}

.lp-brand-logo svg {
  width: 22px;
  height: 22px;
  fill: #fff;
}

.lp-brand-text {
  display: flex;
  flex-direction: column;
}

.lp-brand-title {
  font-family: var(--lp-font-heading);
  font-size: 1.15rem;
  font-weight: 800;
  letter-spacing: -0.02em;
  background: linear-gradient(to right, #fff, #cbd5e1);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
}

.lp-brand-badge {
  font-family: var(--lp-font-heading);
  font-size: 0.68rem;
  font-weight: 700;
  color: var(--lp-primary);
  text-transform: uppercase;
  letter-spacing: 0.08em;
}

.lp-nav-links {
  display: flex;
  align-items: center;
  gap: 28px;
  list-style: none;
  margin: 0;
  padding: 0;
}

.lp-nav-links a {
  color: var(--lp-text-muted);
  text-decoration: none;
  font-size: 0.92rem;
  font-weight: 500;
  transition: var(--lp-transition);
  position: relative;
}

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

.lp-nav-links a:after {
  content: '';
  position: absolute;
  bottom: -4px;
  left: 0;
  width: 0;
  height: 2px;
  background: var(--lp-primary);
  transition: width 0.25s ease;
}

.lp-nav-links a:hover:after {
  width: 100%;
}

.lp-nav-actions {
  display: flex;
  align-items: center;
  gap: 10px;
}

.lp-btn-nav-link {
  background: rgba(255, 255, 255, 0.04) !important;
  border: 1px solid rgba(255, 255, 255, 0.14) !important;
  color: #f1f5f9 !important;
  padding: 7px 14px !important;
  font-size: 0.86rem !important;
  border-radius: 10px !important;
  box-shadow: none !important;
  backdrop-filter: blur(10px);
}

.lp-btn-nav-link:hover {
  color: #34d399 !important;
  border-color: rgba(16, 185, 129, 0.45) !important;
  background: rgba(16, 185, 129, 0.1) !important;
  transform: translateY(-1px);
}

.lp-btn-nav-ghost {
  background: rgba(6, 182, 212, 0.1) !important;
  border: 1px solid rgba(6, 182, 212, 0.32) !important;
  color: #67e8f9 !important;
  padding: 7px 15px !important;
  font-size: 0.86rem !important;
  border-radius: 10px !important;
  box-shadow: none !important;
}

.lp-btn-nav-ghost:hover {
  background: rgba(6, 182, 212, 0.2) !important;
  border-color: rgba(6, 182, 212, 0.55) !important;
  color: #fff !important;
  transform: translateY(-1px);
}

.lp-btn-nav-primary {
  background: linear-gradient(135deg, #10b981 0%, #06b6d4 100%) !important;
  border: 1px solid rgba(52, 211, 153, 0.4) !important;
  color: #fff !important;
  padding: 7px 16px !important;
  font-size: 0.86rem !important;
  border-radius: 10px !important;
  box-shadow: 0 3px 14px rgba(16, 185, 129, 0.3) !important;
}

.lp-btn-nav-primary:hover {
  background: linear-gradient(135deg, #34d399 0%, #0891b2 100%) !important;
  box-shadow: 0 6px 20px rgba(16, 185, 129, 0.45) !important;
  transform: translateY(-1px);
}

/* Pill de Acesso Rápido 1-Clique (Conta Reconhecida / Conectada na Navbar) */
.lp-user-quick-pill {
  display: inline-flex;
  align-items: center;
  gap: 9px;
  padding: 4px 12px 4px 5px;
  border-radius: 9999px;
  background: linear-gradient(135deg, rgba(16, 185, 129, 0.14), rgba(6, 182, 212, 0.14));
  border: 1px solid rgba(16, 185, 129, 0.42);
  color: #f8fafc;
  cursor: pointer;
  transition: var(--lp-transition);
  font-family: var(--lp-font-heading);
  box-shadow: 0 2px 12px rgba(16, 185, 129, 0.18);
}

.lp-user-quick-pill[hidden],
.lp-btn[hidden] {
  display: none !important;
}

.lp-user-quick-pill:hover {
  background: linear-gradient(135deg, rgba(16, 185, 129, 0.24), rgba(6, 182, 212, 0.24));
  border-color: #10b981;
  transform: translateY(-1px);
  box-shadow: 0 4px 16px rgba(16, 185, 129, 0.32);
}

.lp-quick-avatar {
  width: 28px;
  height: 28px;
  border-radius: 50%;
  background: linear-gradient(135deg, #10b981, #06b6d4);
  color: #fff;
  font-size: 0.78rem;
  font-weight: 800;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 1px 6px rgba(0, 0, 0, 0.25);
}

.lp-quick-info {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  line-height: 1.15;
  text-align: left;
}

.lp-quick-info small {
  font-size: 0.62rem;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  color: #34d399;
  font-weight: 700;
}

.lp-quick-info strong {
  font-size: 0.78rem;
  color: #fff;
  font-weight: 700;
}

/* ==========================================================================
   BOTÕES GLOBAIS
   ========================================================================== */
.lp-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 10px 20px;
  border-radius: var(--lp-radius-sm);
  font-family: var(--lp-font-heading);
  font-size: 0.92rem;
  font-weight: 600;
  cursor: pointer;
  transition: var(--lp-transition);
  border: 1px solid transparent;
  text-decoration: none;
  white-space: nowrap;
}

.lp-btn:active {
  transform: scale(0.96) !important;
}

.lp-btn-sm {
  padding: 7px 14px;
  font-size: 0.82rem;
}

.lp-btn-lg {
  padding: 12px 24px;
  font-size: 0.96rem;
  border-radius: 12px;
}

.lp-btn-primary {
  background: linear-gradient(135deg, #10b981 0%, #059669 100%);
  color: #fff;
  border: 1px solid rgba(52, 211, 153, 0.3);
  box-shadow: 0 4px 14px rgba(16, 185, 129, 0.3);
}

.lp-btn-primary:hover {
  background: linear-gradient(135deg, #34d399 0%, #10b981 100%);
  box-shadow: 0 6px 20px rgba(16, 185, 129, 0.45);
  transform: translateY(-2px);
}

.lp-btn-studio {
  background: linear-gradient(135deg, #4f46e5 0%, #06b6d4 100%);
  color: #fff;
  border: 1px solid rgba(6, 182, 212, 0.3);
  box-shadow: 0 4px 14px rgba(6, 182, 212, 0.25);
}

.lp-btn-studio:hover {
  background: linear-gradient(135deg, #6366f1 0%, #22d3ee 100%);
  box-shadow: 0 6px 20px rgba(6, 182, 212, 0.45);
  transform: translateY(-2px);
}

.lp-btn-glass {
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid rgba(255, 255, 255, 0.12);
  color: #f8fafc;
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
}

.lp-btn-glass:hover {
  background: rgba(255, 255, 255, 0.1);
  border-color: rgba(255, 255, 255, 0.25);
  color: #fff;
  transform: translateY(-2px);
}

.lp-btn-subtle {
  background: transparent;
  border: 1px solid rgba(255, 255, 255, 0.08);
  color: var(--lp-text-muted);
}

.lp-btn-subtle:hover {
  color: #fff;
  background: rgba(255, 255, 255, 0.04);
  border-color: rgba(255, 255, 255, 0.2);
  transform: translateY(-1px);
}

.lp-btn-ghost {
  background: rgba(255, 255, 255, 0.05);
  border-color: var(--lp-border);
  color: var(--lp-text);
}

.lp-btn-ghost:hover {
  background: rgba(255, 255, 255, 0.12);
  border-color: rgba(255, 255, 255, 0.2);
  color: #fff;
}

/* ==========================================================================
   HERO SECTION
   ========================================================================== */
.lp-hero {
  position: relative;
  max-width: 1240px;
  margin: 0 auto;
  padding: 48px 24px 44px;
  text-align: center;
  display: flex;
  flex-direction: column;
  align-items: center;
}

.lp-hero-tag {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 5px 14px;
  background: rgba(16, 185, 129, 0.08);
  border: 1px solid rgba(16, 185, 129, 0.22);
  border-radius: 9999px;
  font-family: var(--lp-font-heading);
  font-size: 0.8rem;
  font-weight: 600;
  color: #34d399;
  margin-bottom: 20px;
  backdrop-filter: blur(8px);
}

.lp-pulse-dot {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: #10b981;
  box-shadow: 0 0 10px #10b981;
  animation: lpPulse 2s infinite;
}

@keyframes lpPulse {
  0% { transform: scale(0.9); opacity: 0.7; }
  50% { transform: scale(1.3); opacity: 1; box-shadow: 0 0 14px #10b981; }
  100% { transform: scale(0.9); opacity: 0.7; }
}

.lp-hero-title {
  font-family: var(--lp-font-heading);
  font-size: clamp(2.3rem, 4.8vw, 3.8rem);
  font-weight: 800;
  line-height: 1.15;
  letter-spacing: -0.03em;
  color: #fff;
  margin: 0 0 20px 0;
  max-width: 940px;
}

.lp-gradient-text {
  background: linear-gradient(135deg, #10b981 0%, #06b6d4 50%, #6366f1 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
}

.lp-hero-desc {
  font-size: clamp(1rem, 1.6vw, 1.15rem);
  color: var(--lp-text-muted);
  max-width: 780px;
  line-height: 1.65;
  margin: 0 0 34px 0;
}

.lp-hero-desc strong {
  color: #fff;
  font-weight: 600;
}

.lp-hero-cta-group {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 14px;
  flex-wrap: wrap;
  margin-bottom: 44px;
}

/* ==========================================================================
   MOCKUP TECNOLÓGICO FLUTUANTE DA MÁQUINA R27
   ========================================================================== */
.lp-machine-mockup-wrapper {
  width: 100%;
  max-width: 1040px;
  margin: 0 auto 52px;
}

.lp-mockup-card {
  background: rgba(10, 15, 28, 0.9);
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 18px;
  overflow: hidden;
  box-shadow: 0 24px 60px -15px rgba(0, 0, 0, 0.8), 0 0 30px -10px rgba(6, 182, 212, 0.12);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
}

.lp-mockup-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 11px 18px;
  background: rgba(7, 11, 20, 0.95);
  border-bottom: 1px solid var(--lp-border);
}

.lp-mockup-dots {
  display: flex;
  align-items: center;
  gap: 7px;
  opacity: 0.85;
}

.lp-dot-red, .lp-dot-yellow, .lp-dot-green {
  width: 10px;
  height: 10px;
  border-radius: 50%;
}
.lp-dot-red { background: #ef4444; }
.lp-dot-yellow { background: #f59e0b; }
.lp-dot-green { background: #10b981; }

.lp-mockup-title {
  display: flex;
  align-items: center;
  gap: 8px;
  font-family: var(--lp-font-heading);
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.06em;
  color: var(--lp-text-dim);
}

.lp-mockup-status {
  display: flex;
  align-items: center;
  gap: 6px;
  font-family: var(--lp-font-heading);
  font-size: 0.7rem;
  font-weight: 700;
  color: var(--lp-primary);
  background: rgba(16, 185, 129, 0.08);
  padding: 2px 10px;
  border-radius: 9999px;
  border: 1px solid rgba(16, 185, 129, 0.2);
}

.lp-mockup-nav {
  display: flex;
  align-items: center;
  gap: 6px;
  padding: 7px 14px;
  background: rgba(12, 17, 30, 0.8);
  border-bottom: 1px solid var(--lp-border);
  overflow-x: auto;
}

.lp-view-tab {
  padding: 6px 14px;
  background: transparent;
  border: 1px solid transparent;
  border-radius: 7px;
  color: var(--lp-text-muted);
  font-family: var(--lp-font-heading);
  font-size: 0.78rem;
  font-weight: 600;
  cursor: pointer;
  transition: var(--lp-transition);
  white-space: nowrap;
}

.lp-view-tab:hover {
  color: #fff;
  background: rgba(255, 255, 255, 0.05);
}

.lp-view-tab.active {
  color: #38bdf8;
  background: rgba(56, 189, 248, 0.12);
  border-color: rgba(56, 189, 248, 0.3);
}

.lp-view-tab.lp-fit-btn {
  margin-left: auto;
  display: inline-flex;
  align-items: center;
  background: rgba(56, 189, 248, 0.08);
  border: 1px solid rgba(56, 189, 248, 0.25);
  color: #38bdf8;
  font-weight: 600;
  border-radius: 7px;
  cursor: pointer;
  transition: var(--lp-transition);
}

.lp-view-tab.lp-fit-btn:hover {
  background: rgba(56, 189, 248, 0.2);
  border-color: rgba(56, 189, 248, 0.5);
  color: #ffffff;
  box-shadow: 0 0 10px rgba(56, 189, 248, 0.25);
}

.lp-mockup-viewport {
  position: relative;
  width: 100%;
  height: 500px;
  min-height: 420px;
  background: radial-gradient(circle at 50% 50%, rgba(15, 23, 42, 0.9) 0%, #060912 100%);
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 0;
  overflow: hidden;
}

/* Palco 3D Teaser 360° Real da CNC R27 */
.lp-mockup-3d-stage {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  z-index: 2;
  cursor: grab;
  touch-action: none;
}

.lp-mockup-3d-stage:active {
  cursor: grabbing;
}

.lp-mockup-3d-stage canvas {
  width: 100% !important;
  height: 100% !important;
  display: block;
  outline: none;
}

/* Indicador Flutuante Suave de Rotação 360° */
.lp-360-badge {
  position: absolute;
  top: 14px;
  left: 50%;
  transform: translateX(-50%);
  z-index: 12;
  display: inline-flex;
  align-items: center;
  gap: 7px;
  background: rgba(9, 14, 26, 0.72);
  border: 1px solid rgba(255, 255, 255, 0.1);
  padding: 5px 14px;
  border-radius: 9999px;
  color: #94a3b8;
  font-family: var(--lp-font-heading);
  font-size: 0.74rem;
  font-weight: 500;
  letter-spacing: 0.02em;
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  box-shadow: 0 4px 16px rgba(0, 0, 0, 0.4);
  pointer-events: none;
}

.spin-icon-slow {
  animation: spin 10s linear infinite;
}

/* Dock de Telemetria Integrada no Rodapé do Console */
.lp-mockup-telemetry-dock {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 12px 22px;
  background: rgba(8, 12, 22, 0.95);
  border-top: 1px solid var(--lp-border);
  gap: 16px;
  flex-wrap: wrap;
}

.lp-telemetry-item {
  display: flex;
  flex-direction: column;
  gap: 2px;
}

.lp-telemetry-label {
  font-size: 0.65rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: var(--lp-text-dim);
  font-family: var(--lp-font-heading);
}

.lp-telemetry-val {
  font-family: var(--lp-font-heading);
  font-size: 0.85rem;
  font-weight: 700;
  color: #f1f5f9;
}

.lp-telemetry-sep {
  width: 1px;
  height: 22px;
  background: rgba(255, 255, 255, 0.08);
}

.lp-telemetry-action .lp-btn {
  padding: 6px 14px;
  font-size: 0.8rem;
}

/* Ocultação limpa de chips sobrepostos legados */
.lp-telemetry-chip,
.lp-mockup-action-overlay {
  display: none !important;
}

@keyframes pulseButtonGlow {
  0%, 100% {
    box-shadow: 0 4px 20px rgba(79, 70, 229, 0.4), 0 0 15px rgba(6, 182, 212, 0.3);
  }
  50% {
    box-shadow: 0 6px 28px rgba(79, 70, 229, 0.7), 0 0 25px rgba(6, 182, 212, 0.5);
  }
}

/* ==========================================================================
   ESTATÍSTICAS / INDICADORES TÉCNICOS NA HERO
   ========================================================================== */
.lp-hero-stats {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
  gap: 16px;
  width: 100%;
  max-width: 1080px;
}

.lp-stat-card {
  background: var(--lp-surface);
  border: 1px solid var(--lp-border);
  border-radius: var(--lp-radius);
  padding: 24px 20px;
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  transition: var(--lp-transition);
}

.lp-stat-val {
  font-family: var(--lp-font-heading);
  font-size: 2.1rem;
  font-weight: 800;
  color: #fff;
  line-height: 1.1;
  margin-bottom: 6px;
}

.lp-stat-val-highlight {
  background: linear-gradient(135deg, #10b981 0%, #06b6d4 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
}

.lp-stat-label {
  font-size: 0.86rem;
  color: var(--lp-text-muted);
  line-height: 1.4;
}

/* ==========================================================================
   SEÇÕES GERAIS
   ========================================================================== */
.lp-section {
  max-width: 1200px;
  margin: 0 auto;
  padding: 90px 24px;
}

.lp-section-header {
  text-align: center;
  max-width: 760px;
  margin: 0 auto 56px;
}

.lp-section-tag {
  display: inline-block;
  font-family: var(--lp-font-heading);
  font-size: 0.82rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: var(--lp-primary);
  margin-bottom: 12px;
}

.lp-section-title {
  font-family: var(--lp-font-heading);
  font-size: clamp(2rem, 3.8vw, 3rem);
  font-weight: 800;
  letter-spacing: -0.03em;
  color: #fff;
  line-height: 1.2;
  margin: 0 0 16px 0;
}

.lp-section-desc {
  font-size: 1.05rem;
  color: var(--lp-text-muted);
  line-height: 1.7;
  margin: 0;
}

/* ==========================================================================
   SEÇÃO: CHAPA INTEIRA & COMPARATIVO DE CUSTOS
   ========================================================================== */
.lp-why-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 36px;
  align-items: center;
}

.lp-feature-list {
  display: flex;
  flex-direction: column;
  gap: 20px;
}

.lp-feature-item {
  display: flex;
  gap: 18px;
  background: var(--lp-surface);
  border: 1px solid var(--lp-border);
  border-radius: var(--lp-radius);
  padding: 22px;
  transition: var(--lp-transition);
}

.lp-feature-icon {
  flex-shrink: 0;
  width: 48px;
  height: 48px;
  border-radius: 14px;
  background: rgba(16, 185, 129, 0.12);
  border: 1px solid rgba(16, 185, 129, 0.3);
  display: flex;
  align-items: center;
  justify-content: center;
}

.lp-feature-icon svg {
  width: 24px;
  height: 24px;
  stroke: var(--lp-primary);
}

.lp-feature-title {
  font-family: var(--lp-font-heading);
  font-size: 1.1rem;
  font-weight: 700;
  color: #fff;
  margin-bottom: 6px;
}

.lp-feature-desc {
  font-size: 0.92rem;
  color: var(--lp-text-muted);
  line-height: 1.6;
}

.lp-compare-box {
  background: linear-gradient(145deg, rgba(15, 23, 42, 0.9) 0%, rgba(11, 17, 32, 0.95) 100%);
  border: 1px solid var(--lp-border);
  border-radius: var(--lp-radius);
  padding: 36px;
  box-shadow: 0 20px 50px rgba(0, 0, 0, 0.5);
}

.lp-compare-title {
  font-family: var(--lp-font-heading);
  font-size: 1.4rem;
  font-weight: 800;
  color: #fff;
  margin-bottom: 8px;
}

.lp-compare-desc {
  font-size: 0.9rem;
  color: var(--lp-text-muted);
  margin-bottom: 24px;
}

.lp-compare-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 14px 0;
  border-bottom: 1px solid rgba(255, 255, 255, 0.06);
}

.lp-compare-label {
  font-size: 0.92rem;
  color: var(--lp-text);
}

.lp-compare-val-comm {
  font-family: var(--lp-font-heading);
  font-size: 1.1rem;
  font-weight: 700;
  color: #f87171;
  text-decoration: line-through;
}

.lp-compare-val-diy {
  font-family: var(--lp-font-heading);
  font-size: 1.1rem;
  font-weight: 700;
  color: var(--lp-primary);
}

.lp-economy-badge {
  margin-top: 24px;
  background: rgba(16, 185, 129, 0.15);
  border: 1px solid rgba(16, 185, 129, 0.4);
  border-radius: 14px;
  padding: 16px 20px;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.lp-economy-text {
  font-size: 0.95rem;
  font-weight: 600;
  color: #fff;
}

.lp-economy-val {
  font-family: var(--lp-font-heading);
  font-size: 1.4rem;
  font-weight: 800;
  color: #34d399;
}

/* ==========================================================================
   NOVA SEÇÃO: CALCULADORA DE ECONOMIA & ROI DE MDF
   ========================================================================== */
.lp-calc-card {
  background: linear-gradient(160deg, rgba(15, 23, 42, 0.85) 0%, rgba(7, 10, 19, 0.95) 100%);
  border: 1px solid rgba(16, 185, 129, 0.3);
  border-radius: var(--lp-radius);
  padding: 40px;
  box-shadow: 0 24px 60px -15px rgba(0, 0, 0, 0.6), 0 0 35px -10px rgba(16, 185, 129, 0.15);
}

.lp-calc-inputs {
  margin-bottom: 36px;
}

.lp-calc-slider-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 14px;
}

.lp-calc-label {
  font-family: var(--lp-font-heading);
  font-size: 1.1rem;
  font-weight: 700;
  color: #fff;
}

.lp-calc-slider-val {
  font-family: var(--lp-font-heading);
  font-size: 1.5rem;
  font-weight: 800;
  color: var(--lp-primary);
}

.lp-calc-slider-val small {
  font-size: 0.9rem;
  font-weight: 500;
  color: var(--lp-text-muted);
}

.lp-range-slider {
  -webkit-appearance: none;
  width: 100%;
  height: 10px;
  border-radius: 5px;
  background: linear-gradient(to right, #10b981 0%, #06b6d4 100%);
  outline: none;
  cursor: pointer;
  box-shadow: 0 0 15px rgba(16, 185, 129, 0.3);
}

.lp-range-slider::-webkit-slider-thumb {
  -webkit-appearance: none;
  appearance: none;
  width: 24px;
  height: 24px;
  border-radius: 50%;
  background: #fff;
  border: 3px solid #10b981;
  box-shadow: 0 2px 10px rgba(0,0,0,0.5);
  cursor: pointer;
  transition: transform 0.2s ease;
}

.lp-range-slider::-webkit-slider-thumb:hover {
  transform: scale(1.2);
}

.lp-slider-ticks {
  display: flex;
  justify-content: space-between;
  margin-top: 10px;
  font-size: 0.78rem;
  color: var(--lp-text-dim);
}

.lp-calc-results-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 16px;
  margin-bottom: 28px;
}

.lp-calc-metric-box {
  background: rgba(15, 23, 42, 0.6);
  border: 1px solid var(--lp-border);
  border-radius: 16px;
  padding: 20px;
  display: flex;
  gap: 14px;
  align-items: center;
}

.lp-calc-metric-highlight {
  background: rgba(16, 185, 129, 0.1);
  border-color: rgba(16, 185, 129, 0.3);
}

.lp-calc-metric-icon {
  width: 44px;
  height: 44px;
  border-radius: 12px;
  background: rgba(255, 255, 255, 0.05);
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  color: var(--lp-primary);
}

.lp-calc-metric-number {
  font-family: var(--lp-font-heading);
  font-size: 1.45rem;
  font-weight: 800;
  color: #fff;
  line-height: 1.1;
  margin-bottom: 4px;
}

.lp-calc-metric-number.text-emerald {
  color: #34d399;
}

.lp-calc-metric-number.text-cyan {
  color: #38bdf8;
}

.lp-calc-metric-label {
  font-size: 0.8rem;
  color: var(--lp-text-muted);
  line-height: 1.3;
}

.lp-calc-footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding-top: 20px;
  border-top: 1px solid rgba(255, 255, 255, 0.08);
  flex-wrap: wrap;
  gap: 16px;
}

.lp-calc-footer span {
  font-size: 0.82rem;
  color: var(--lp-text-dim);
  max-width: 620px;
}

/* ==========================================================================
   GUIA DE MONTAGEM EM 6 FASES (ROADMAP)
   ========================================================================== */
.lp-roadmap-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(340px, 1fr));
  gap: 24px;
}

.lp-step-card {
  background: var(--lp-surface);
  border: 1px solid var(--lp-border);
  border-radius: var(--lp-radius);
  padding: 30px;
  display: flex;
  flex-direction: column;
}

.lp-step-top {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 12px;
}

.lp-step-num {
  font-family: var(--lp-font-heading);
  font-size: 0.82rem;
  font-weight: 800;
  color: var(--lp-primary);
  text-transform: uppercase;
  letter-spacing: 0.1em;
}

.lp-step-icon {
  width: 38px;
  height: 38px;
  border-radius: 10px;
  background: rgba(255, 255, 255, 0.05);
  display: flex;
  align-items: center;
  justify-content: center;
}

.lp-step-icon svg {
  width: 20px;
  height: 20px;
  stroke: var(--lp-cyan);
}

.lp-step-meta-tags {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-bottom: 14px;
  flex-wrap: wrap;
}

.lp-tag {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  font-size: 0.72rem;
  font-weight: 700;
  font-family: var(--lp-font-heading);
  padding: 3px 8px;
  border-radius: 6px;
  text-transform: uppercase;
  letter-spacing: 0.04em;
}

.lp-tag-time {
  background: rgba(56, 189, 248, 0.12);
  color: #38bdf8;
  border: 1px solid rgba(56, 189, 248, 0.25);
}

.lp-tag-diff {
  background: rgba(16, 185, 129, 0.12);
  color: #34d399;
  border: 1px solid rgba(16, 185, 129, 0.25);
}

.lp-tag-diff.diff-crit {
  background: rgba(245, 158, 11, 0.12);
  color: #fbbf24;
  border: 1px solid rgba(245, 158, 11, 0.25);
}

.lp-step-title {
  font-family: var(--lp-font-heading);
  font-size: 1.25rem;
  font-weight: 700;
  color: #fff;
  margin: 0 0 10px 0;
}

.lp-step-desc {
  font-size: 0.92rem;
  color: var(--lp-text-muted);
  line-height: 1.6;
  margin-bottom: 16px;
  flex-grow: 1;
}

.lp-step-tools {
  background: rgba(0, 0, 0, 0.25);
  border: 1px dashed rgba(255, 255, 255, 0.1);
  border-radius: 8px;
  padding: 10px 12px;
  margin-bottom: 16px;
}

.lp-tool-label {
  display: block;
  font-size: 0.7rem;
  color: var(--lp-text-dim);
  text-transform: uppercase;
  letter-spacing: 0.05em;
  font-weight: 700;
  margin-bottom: 2px;
}

.lp-tool-val {
  font-size: 0.8rem;
  color: #cbd5e1;
  font-weight: 500;
}

.lp-step-bullets {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  flex-direction: column;
  gap: 8px;
  border-top: 1px solid rgba(255, 255, 255, 0.06);
  padding-top: 14px;
}

.lp-step-bullets li {
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 0.85rem;
  color: var(--lp-text-muted);
}

.lp-step-bullets svg {
  width: 14px;
  height: 14px;
  stroke: var(--lp-primary);
  flex-shrink: 0;
}

/* ==========================================================================
   BANNER DO SAAS 3D
   ========================================================================== */
.lp-studio-banner {
  background: radial-gradient(circle at 100% 0%, rgba(99, 102, 241, 0.18) 0%, rgba(15, 23, 42, 0.85) 60%);
  border: 1px solid rgba(99, 102, 241, 0.3);
  border-radius: var(--lp-radius-lg);
  padding: 50px;
  display: grid;
  grid-template-columns: 1.4fr 1fr;
  gap: 40px;
  align-items: center;
}

.lp-studio-title {
  font-family: var(--lp-font-heading);
  font-size: clamp(1.8rem, 3.2vw, 2.6rem);
  font-weight: 800;
  color: #fff;
  letter-spacing: -0.03em;
  margin: 0 0 14px 0;
}

.lp-studio-desc {
  font-size: 1.02rem;
  color: var(--lp-text-muted);
  line-height: 1.7;
  margin-bottom: 28px;
}

.lp-studio-features {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 12px;
  margin-bottom: 32px;
}

.lp-studio-badge {
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 0.88rem;
  font-weight: 600;
  color: #e2e8f0;
}

.lp-studio-badge svg {
  width: 16px;
  height: 16px;
  stroke: var(--lp-primary);
  flex-shrink: 0;
}

.lp-studio-visual {
  background: rgba(15, 23, 42, 0.7);
  border: 1px solid var(--lp-border);
  border-radius: var(--lp-radius);
  padding: 30px;
  text-align: center;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
}

.lp-3d-preview-icon {
  width: 70px;
  height: 70px;
  border-radius: 20px;
  background: rgba(99, 102, 241, 0.15);
  border: 1px solid rgba(99, 102, 241, 0.3);
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 16px;
}

.lp-3d-preview-icon svg {
  width: 36px;
  height: 36px;
  stroke: #a5b4fc;
}

/* ==========================================================================
   FAQ SECTION
   ========================================================================== */
.lp-faq-grid {
  display: flex;
  flex-direction: column;
  gap: 16px;
  max-width: 860px;
  margin: 0 auto;
}

.lp-faq-item {
  background: var(--lp-surface);
  border: 1px solid var(--lp-border);
  border-radius: var(--lp-radius-sm);
  padding: 20px 24px;
  cursor: pointer;
  transition: var(--lp-transition);
}

.lp-faq-item:hover {
  border-color: var(--lp-border-hover);
  background: var(--lp-surface-hover);
}

.lp-faq-item[open] {
  border-color: rgba(16, 185, 129, 0.4);
  background: rgba(15, 23, 42, 0.9);
}

.lp-faq-question {
  font-family: var(--lp-font-heading);
  font-size: 1.05rem;
  font-weight: 700;
  color: #fff;
  list-style: none;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.lp-faq-question::-webkit-details-marker {
  display: none;
}

.lp-faq-icon {
  font-size: 1.2rem;
  color: var(--lp-primary);
  transition: transform 0.3s ease;
}

.lp-faq-item[open] .lp-faq-icon {
  transform: rotate(45deg);
}

.lp-faq-answer {
  font-size: 0.95rem;
  color: var(--lp-text-muted);
  line-height: 1.6;
  margin-top: 14px;
  padding-top: 14px;
  border-top: 1px solid rgba(255, 255, 255, 0.06);
}

/* ==========================================================================
   FINAL CTA BLOCK
   ========================================================================== */
.lp-final-cta {
  position: relative;
  text-align: center;
  max-width: 960px;
  margin: 0 auto 80px;
  padding: 70px 36px;
  background: radial-gradient(circle at 50% 0%, rgba(16, 185, 129, 0.15) 0%, rgba(15, 23, 42, 0.8) 75%);
  border: 1px solid rgba(16, 185, 129, 0.3);
  border-radius: var(--lp-radius-lg);
  box-shadow: 0 20px 60px rgba(0, 0, 0, 0.6);
  overflow: hidden;
}

.lp-final-title {
  font-family: var(--lp-font-heading);
  font-size: clamp(2rem, 4vw, 3rem);
  font-weight: 900;
  letter-spacing: -0.03em;
  margin-bottom: 18px;
  color: #fff;
}

.lp-final-desc {
  font-size: 1.1rem;
  color: var(--lp-text-muted);
  max-width: 650px;
  margin: 0 auto 36px;
}

/* ==========================================================================
   RODAPÉ
   ========================================================================== */
.lp-footer {
  border-top: 1px solid var(--lp-border);
  padding: 40px 36px;
  background: #04060b;
  text-align: center;
  color: var(--lp-text-dim);
  font-size: 0.88rem;
  margin-bottom: 0;
}

.lp-footer a {
  color: var(--lp-text-muted);
  text-decoration: none;
  transition: var(--lp-transition);
}

.lp-footer a:hover {
  color: var(--lp-primary);
}

/* ==========================================================================
   SCROLL TO TOP BUTTON WITH RING PROGRESS
   ========================================================================== */
.lp-scroll-top-btn {
  position: fixed;
  bottom: 30px;
  right: 30px;
  width: 48px;
  height: 48px;
  border-radius: 50%;
  background: rgba(15, 23, 42, 0.85);
  border: 1px solid var(--lp-border);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  z-index: 90;
  opacity: 0;
  pointer-events: none;
  transform: translateY(15px);
  transition: opacity 0.3s ease, transform 0.3s ease, border-color 0.3s ease;
  box-shadow: 0 10px 25px rgba(0, 0, 0, 0.5);
}

.lp-scroll-top-btn.visible {
  opacity: 1;
  pointer-events: auto;
  transform: translateY(0);
}

.lp-scroll-top-btn:hover {
  border-color: var(--lp-primary);
  transform: translateY(-3px);
}

.lp-scroll-progress-ring {
  position: absolute;
  top: 2px;
  left: 2px;
  transform: rotate(-90deg);
}

.ring-bg {
  stroke: rgba(255, 255, 255, 0.08);
}

.ring-indicator {
  stroke: var(--lp-primary);
  stroke-dasharray: 113.1;
  stroke-dashoffset: 113.1;
  transition: stroke-dashoffset 0.1s linear;
}

.lp-scroll-arrow {
  color: #fff;
  z-index: 2;
}

/* ==========================================================================
   BOTTOM NAVIGATION DOCK MOBILE-FIRST
   ========================================================================== */
.lp-mobile-dock {
  display: none;
}

@media (max-width: 768px) {
  #cnc-landing-page {
    padding-bottom: 74px; /* Espaço para o dock não tampar o conteúdo */
  }

  .lp-scroll-top-btn {
    bottom: 84px;
    right: 16px;
    width: 42px;
    height: 42px;
  }

  .lp-mobile-dock {
    display: flex;
    position: fixed;
    bottom: 0;
    left: 0;
    right: 0;
    height: 64px;
    background: rgba(7, 10, 19, 0.92);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border-top: 1px solid var(--lp-border);
    z-index: 99;
    align-items: center;
    justify-content: space-around;
    padding: 0 8px;
  }

  .lp-dock-item {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 4px;
    background: transparent;
    border: none;
    color: var(--lp-text-muted);
    font-size: 0.68rem;
    font-weight: 600;
    font-family: var(--lp-font-heading);
    text-decoration: none;
    cursor: pointer;
    min-height: 48px;
    min-width: 48px;
    padding: 4px 8px;
    border-radius: 8px;
    transition: var(--lp-transition);
  }

  .lp-dock-item:hover, .lp-dock-item:active {
    color: #fff;
  }

  .lp-dock-cta {
    background: linear-gradient(135deg, #10b981 0%, #059669 100%);
    color: #fff;
    padding: 6px 14px;
    border-radius: 12px;
    box-shadow: 0 4px 12px rgba(16, 185, 129, 0.4);
  }
}

/* ==========================================================================
   RESPONSIVIDADE FLUIDA (TABLET & MOBILE)
   ========================================================================== */
@media (max-width: 1024px) {
  .lp-nav-links {
    gap: 16px;
  }
  .lp-why-grid {
    grid-template-columns: 1fr;
  }
  .lp-studio-banner {
    grid-template-columns: 1fr;
    padding: 36px 24px;
  }
}

@media (max-width: 860px) {
  .lp-nav-links {
    display: none;
  }
  .lp-telemetry-chip {
    display: none;
  }
  .lp-mockup-telemetry-dock {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 12px;
    padding: 12px 16px;
  }
  .lp-telemetry-sep {
    display: none;
  }
  .lp-telemetry-action {
    grid-column: 1 / -1;
    margin-top: 4px;
  }
  .lp-telemetry-action .lp-btn {
    width: 100%;
  }
}

@media (max-width: 640px) {
  .lp-navbar {
    padding: 10px 14px;
    max-width: 100vw;
    box-sizing: border-box;
  }
  .lp-brand-badge {
    display: none;
  }
  .lp-nav-actions {
    gap: 8px;
  }
  .lp-nav-actions .lp-trigger-signup,
  .lp-nav-actions .lp-trigger-login,
  .lp-nav-actions .lp-btn-nav-ghost,
  .lp-nav-actions .lp-btn-nav-link {
    display: none;
  }
  .lp-nav-actions .lp-btn-studio,
  .lp-nav-actions .lp-btn-nav-primary {
    padding: 6px 12px !important;
    font-size: 0.82rem !important;
  }
  .lp-mockup-telemetry-dock {
    grid-template-columns: 1fr;
    gap: 10px;
    padding: 12px 14px;
  }
  .lp-hero {
    padding: 40px 16px 40px;
  }
  .lp-hero-title {
    font-size: 2.1rem;
  }
  .lp-hero-cta-group {
    flex-direction: column;
    width: 100%;
  }
  .lp-hero-cta-group .lp-btn {
    width: 100%;
  }
  .lp-hero-stats {
    grid-template-columns: 1fr 1fr;
    gap: 10px;
  }
  .lp-stat-card {
    padding: 16px 12px;
  }
  .lp-stat-val {
    font-size: 1.5rem;
  }
  .lp-mockup-viewport {
    min-height: 280px;
    padding: 15px 10px 45px;
  }
  .lp-roadmap-grid {
    grid-template-columns: 1fr;
  }
  .lp-calc-card {
    padding: 24px 18px;
  }
  .lp-calc-footer {
    flex-direction: column;
    text-align: center;
  }
  .lp-calc-footer .lp-btn {
    width: 100%;
  }
  .lp-studio-features {
    grid-template-columns: 1fr;
  }
  .lp-final-cta {
    padding: 40px 20px;
  }
}

/* No modo teaser da Landing Page, oculta marcações de estúdio que estejam dentro de #r27-stage */
.lp-teaser-active #r27-stage .view-caption,
.lp-teaser-active #r27-stage .mouse-hint,
.lp-teaser-active #r27-stage .axis-readout,
.lp-teaser-active #r27-stage #dim-layer,
.lp-teaser-active #r27-stage #ui-manual-layer,
.lp-teaser-active #r27-stage .dim-snap-tip,
.lp-teaser-active #r27-stage .parts-focus-bar {
  display: none !important;
}

.lp-teaser-active #r27-stage {
  position: absolute !important;
  inset: 0 !important;
  width: 100% !important;
  height: 100% !important;
}

