/**
 * landing/assets/css/landing.css
 * Estilos específicos da Landing Page do Nucelo SaaS.
 * Design Premium, Glassmorphism, Micro-animações e 100% Responsivo.
 */

/* ─── Google Font ─── */
@import url('https://fonts.googleapis.com/css2?family=Inter:wght@300;400;500;600;700;800;900&display=swap');

:root {
  --lp-primary:        #4f46e5;
  --lp-primary-light:  #6366f1;
  --lp-primary-dark:   #3730a3;
  --lp-accent:         #10b981;
  --lp-accent-light:   #34d399;
  --lp-dark:           #0f172a;
  --lp-dark-2:         #1e293b;
  --lp-text:           #f8fafc;
  --lp-muted:          #94a3b8;
  --lp-border:         rgba(255, 255, 255, 0.08);
  --lp-card:           rgba(30, 41, 59, 0.7);
  --lp-glass:          rgba(15, 23, 42, 0.85);
  font-family: 'Inter', system-ui, -apple-system, sans-serif;
}

*, *::before, *::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html {
  scroll-behavior: smooth;
  overflow-x: hidden;
  width: 100%;
}

body {
  background: var(--lp-dark);
  color: var(--lp-text);
  font-family: 'Inter', system-ui, sans-serif;
  overflow-x: hidden;
  width: 100%;
  position: relative;
  line-height: 1.5;
  -webkit-font-smoothing: antialiased;
}

/* ─── Gradients & Backgrounds ─── */
.lp-gradient-hero {
  background: radial-gradient(ellipse 90% 60% at 50% -10%, rgba(79, 70, 229, 0.35) 0%, transparent 60%),
              linear-gradient(180deg, #0f172a 0%, #111827 100%);
  position: relative;
}

.lp-gradient-section {
  background: radial-gradient(ellipse 60% 40% at 80% 50%, rgba(16, 185, 129, 0.08) 0%, transparent 60%),
              #111827;
}

.lp-gradient-pricing {
  background: radial-gradient(ellipse 70% 50% at 20% 50%, rgba(79, 70, 229, 0.12) 0%, transparent 60%),
              #0f172a;
}

.lp-glass {
  background: rgba(30, 41, 59, 0.6);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  border: 1px solid var(--lp-border);
}

.lp-glass-nav {
  background: rgba(15, 23, 42, 0.85);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  border-bottom: 1px solid var(--lp-border);
}

/* ─── Typography ─── */
.lp-h1 {
  font-size: clamp(2rem, 4.5vw, 3.75rem);
  font-weight: 900;
  line-height: 1.15;
  letter-spacing: -0.025em;
}

.lp-h2 {
  font-size: clamp(1.6rem, 3.2vw, 2.5rem);
  font-weight: 800;
  line-height: 1.25;
  letter-spacing: -0.015em;
}

.lp-h3 {
  font-size: 1.25rem;
  font-weight: 700;
}

.lp-lead {
  font-size: clamp(0.95rem, 1.8vw, 1.15rem);
  color: var(--lp-muted);
  line-height: 1.7;
}

.lp-gradient-text {
  background: linear-gradient(135deg, #a78bfa 0%, #818cf8 40%, #38bdf8 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.lp-gradient-text-green {
  background: linear-gradient(135deg, #34d399 0%, #10b981 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

/* ─── Buttons ─── */
.lp-btn-primary {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: .5rem;
  padding: .875rem 2rem;
  border-radius: 14px;
  background: linear-gradient(135deg, #4f46e5, #7c3aed);
  color: #fff;
  font-weight: 700;
  font-size: .95rem;
  border: none;
  cursor: pointer;
  text-decoration: none;
  transition: all .25s ease;
  box-shadow: 0 8px 32px rgba(79, 70, 229, 0.35);
  min-height: 48px;
}

.lp-btn-primary:hover {
  transform: translateY(-2px);
  box-shadow: 0 12px 40px rgba(79, 70, 229, 0.5);
  color: #fff;
}

.lp-btn-outline {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: .5rem;
  padding: .875rem 2rem;
  border-radius: 14px;
  background: rgba(255, 255, 255, 0.03);
  color: var(--lp-text);
  font-weight: 600;
  font-size: .95rem;
  border: 1px solid var(--lp-border);
  cursor: pointer;
  text-decoration: none;
  transition: all .25s ease;
  min-height: 48px;
}

.lp-btn-outline:hover {
  background: rgba(255, 255, 255, 0.08);
  border-color: rgba(255, 255, 255, 0.25);
  color: #fff;
}

.lp-btn-accent {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: .5rem;
  padding: .875rem 2rem;
  border-radius: 14px;
  background: linear-gradient(135deg, #059669, #10b981);
  color: #fff;
  font-weight: 700;
  font-size: .95rem;
  border: none;
  cursor: pointer;
  text-decoration: none;
  transition: all .25s ease;
  box-shadow: 0 8px 32px rgba(16, 185, 129, 0.3);
  min-height: 48px;
}

.lp-btn-accent:hover {
  transform: translateY(-2px);
  box-shadow: 0 12px 40px rgba(16, 185, 129, 0.45);
  color: #fff;
}

/* ─── Navigation ─── */
.lp-nav {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 100;
  transition: all 0.3s ease;
}

.lp-nav a {
  color: var(--lp-muted);
  text-decoration: none;
  font-size: .9rem;
  font-weight: 500;
  transition: color .2s;
}

.lp-nav a:hover {
  color: var(--lp-text);
}

.lp-logo {
  font-size: 1.35rem;
  font-weight: 900;
  color: var(--lp-text);
  text-decoration: none;
  display: flex;
  align-items: center;
  gap: .5rem;
}

/* ─── Cards & Grid ─── */
.lp-feature-card {
  background: var(--lp-card);
  border: 1px solid var(--lp-border);
  border-radius: 20px;
  padding: 2rem;
  transition: all .3s ease;
}

.lp-feature-card:hover {
  border-color: rgba(79, 70, 229, 0.4);
  transform: translateY(-4px);
  box-shadow: 0 20px 60px rgba(0, 0, 0, 0.4);
}

.lp-icon-wrap {
  width: 56px;
  height: 56px;
  border-radius: 16px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.5rem;
  margin-bottom: 1.25rem;
}

.lp-icon-purple { background: rgba(79, 70, 229, 0.15); color: #818cf8; }
.lp-icon-green  { background: rgba(16, 185, 129, 0.15); color: #34d399; }
.lp-icon-blue   { background: rgba(56, 189, 248, 0.15); color: #38bdf8; }
.lp-icon-orange { background: rgba(251, 146, 60, 0.15); color: #fb923c; }
.lp-icon-pink   { background: rgba(236, 72, 153, 0.15); color: #f472b6; }
.lp-icon-teal   { background: rgba(20, 184, 166, 0.15); color: #2dd4bf; }

/* ─── Pricing Cards ─── */
.lp-pricing-card {
  background: var(--lp-card);
  border: 1px solid var(--lp-border);
  border-radius: 24px;
  padding: 2.25rem;
  transition: all .3s ease;
  position: relative;
  overflow: hidden;
  display: flex;
  flex-direction: column;
}

.lp-pricing-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 24px 60px rgba(0, 0, 0, 0.4);
}

.lp-pricing-card.popular {
  border-color: rgba(79, 70, 229, 0.6);
  background: rgba(79, 70, 229, 0.09);
  box-shadow: 0 16px 48px rgba(79, 70, 229, 0.25);
}

.lp-pricing-card.popular::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 4px;
  background: linear-gradient(90deg, #4f46e5, #7c3aed, #38bdf8);
}

.lp-price-big {
  font-size: 3.2rem;
  font-weight: 900;
  line-height: 1;
}

.lp-price-period {
  font-size: .9rem;
  color: var(--lp-muted);
  font-weight: 500;
}

.lp-feature-list {
  list-style: none;
  margin-bottom: 2rem;
  flex: 1;
}

.lp-feature-list li {
  display: flex;
  align-items: center;
  gap: .625rem;
  font-size: .88rem;
  color: #cbd5e1;
  padding: .4rem 0;
}

.lp-feature-list li::before {
  content: '✓';
  color: #34d399;
  font-weight: 900;
  min-width: 18px;
}

.lp-badge-popular {
  position: absolute;
  top: 1.25rem;
  right: 1.25rem;
  background: linear-gradient(135deg, #4f46e5, #7c3aed);
  color: #fff;
  font-size: .68rem;
  font-weight: 800;
  padding: .3rem .75rem;
  border-radius: 100px;
  text-transform: uppercase;
  letter-spacing: .05em;
}

/* ─── Stats ─── */
.lp-stat-card {
  text-align: center;
  padding: 1.75rem 1rem;
  border-right: 1px solid var(--lp-border);
}

.lp-stat-card:last-child {
  border-right: none;
}

.lp-stat-number {
  font-size: clamp(1.8rem, 3.5vw, 2.75rem);
  font-weight: 900;
}

.lp-stat-label {
  font-size: .85rem;
  color: var(--lp-muted);
  margin-top: .25rem;
}

/* ─── How it works ─── */
.lp-step-card {
  text-align: center;
  padding: 1.75rem 1rem;
  position: relative;
}

.lp-step-number {
  width: 56px;
  height: 56px;
  border-radius: 50%;
  background: linear-gradient(135deg, #4f46e5, #7c3aed);
  color: #fff;
  font-weight: 900;
  font-size: 1.25rem;
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto 1.25rem;
  box-shadow: 0 8px 32px rgba(79, 70, 229, 0.4);
}

/* ─── FAQ ─── */
.lp-faq-item {
  border-bottom: 1px solid var(--lp-border);
}

.lp-faq-q {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 1.25rem 0;
  cursor: pointer;
  font-weight: 600;
  color: var(--lp-text);
  transition: color .2s;
}

.lp-faq-q:hover {
  color: #a78bfa;
}

.lp-faq-a {
  padding: 0 0 1.25rem;
  color: var(--lp-muted);
  line-height: 1.7;
  display: none;
  font-size: .95rem;
}

.lp-faq-item.open .lp-faq-a {
  display: block;
}

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

.lp-faq-icon {
  transition: transform .25s;
  font-style: normal;
  font-size: 1.4rem;
  color: var(--lp-muted);
  line-height: 1;
}

/* ─── Dashboard Mockup (Mobile Responsiveness Fixed) ─── */
.lp-mockup {
  border-radius: 16px;
  overflow: hidden;
  border: 1px solid var(--lp-border);
  box-shadow: 0 40px 120px rgba(0, 0, 0, 0.7), 0 0 0 1px rgba(255, 255, 255, 0.05);
  width: 100%;
  max-width: 100%;
}

.lp-mockup-bar {
  background: #1e293b;
  padding: .6rem 1rem;
  display: flex;
  align-items: center;
  gap: .5rem;
}

.lp-mockup-dot {
  width: 12px;
  height: 12px;
  border-radius: 50%;
}

.lp-mockup-body {
  background: #111827;
  padding: .75rem;
  display: flex;
  gap: .6rem;
  min-height: 240px;
  width: 100%;
  overflow: hidden;
}

.lp-col-1 {
  width: 30%;
  background: #1e293b;
  border-radius: 12px;
  padding: .6rem;
  flex-shrink: 0;
}

.lp-col-2 {
  flex: 1;
  background: #1e293b;
  border-radius: 12px;
  padding: .6rem;
  min-width: 0;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
}

.lp-col-3 {
  width: 26%;
  background: #1e293b;
  border-radius: 12px;
  padding: .6rem;
  flex-shrink: 0;
}

.lp-msg-out {
  background: linear-gradient(135deg, #4f46e5, #7c3aed);
  border-radius: 12px 12px 4px 12px;
  padding: .45rem .65rem;
  font-size: .65rem;
  color: #fff;
  margin-bottom: .35rem;
  max-width: 85%;
  margin-left: auto;
  word-break: break-word;
}

.lp-msg-in {
  background: #334155;
  border-radius: 12px 12px 12px 4px;
  padding: .45rem .65rem;
  font-size: .65rem;
  color: #cbd5e1;
  margin-bottom: .35rem;
  max-width: 85%;
  word-break: break-word;
}

.lp-chat-item {
  display: flex;
  align-items: center;
  gap: .4rem;
  padding: .4rem .45rem;
  border-radius: 8px;
  margin-bottom: .2rem;
  overflow: hidden;
}

.lp-chat-item.active {
  background: rgba(79, 70, 229, 0.25);
}

.lp-avatar {
  width: 26px;
  height: 26px;
  border-radius: 50%;
  flex-shrink: 0;
}

.lp-chat-name {
  font-size: .6rem;
  font-weight: 600;
  color: #f1f5f9;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.lp-chat-preview {
  font-size: .52rem;
  color: #94a3b8;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

/* ─── WhatsApp Float ─── */
.lp-wa-float {
  position: fixed;
  bottom: 2rem;
  right: 2rem;
  z-index: 99;
  width: 56px;
  height: 56px;
  border-radius: 50%;
  background: linear-gradient(135deg, #25d366, #128c7e);
  display: flex;
  align-items: center;
  justify-content: center;
  color: #fff;
  font-size: 1.75rem;
  text-decoration: none;
  box-shadow: 0 8px 32px rgba(37, 211, 102, 0.4);
  transition: all .3s ease;
  animation: lp-bounce 2s infinite;
}

.lp-wa-float:hover {
  transform: scale(1.1);
  box-shadow: 0 12px 48px rgba(37, 211, 102, 0.6);
}

/* ─── Modal & Plan Selector ─── */
.lp-modal-bg {
  position: fixed;
  inset: 0;
  background: rgba(0, 0, 0, 0.8);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  z-index: 9999;
  display: none;
  align-items: center;
  justify-content: center;
  padding: 1rem;
}

.lp-modal-bg.open {
  display: flex;
}

.lp-modal {
  background: #1e293b;
  border: 1px solid var(--lp-border);
  border-radius: 24px;
  width: 100%;
  max-width: 520px;
  box-shadow: 0 40px 100px rgba(0, 0, 0, 0.8);
  max-height: 90vh;
  overflow-y: auto;
  animation: lp-modal-in .3s ease;
}

.lp-input {
  width: 100%;
  padding: .85rem 1rem;
  border-radius: 12px;
  background: rgba(15, 23, 42, 0.7);
  border: 1px solid var(--lp-border);
  color: var(--lp-text);
  font-size: .9rem;
  outline: none;
  transition: border-color .2s;
}

.lp-input:focus {
  border-color: rgba(79, 70, 229, 0.6);
}

.lp-label {
  display: block;
  font-size: .78rem;
  font-weight: 700;
  color: var(--lp-muted);
  margin-bottom: .4rem;
  text-transform: uppercase;
  letter-spacing: .04em;
}

.lp-plan-opt {
  background: rgba(15, 23, 42, 0.6);
  border: 1px solid var(--lp-border);
  border-radius: 12px;
  padding: .6rem;
  text-align: center;
  cursor: pointer;
  transition: all .2s ease;
}

.lp-plan-opt:hover {
  border-color: rgba(79, 70, 229, 0.4);
}

.lp-plan-opt.active {
  background: rgba(79, 70, 229, 0.2);
  border-color: #6366f1;
  box-shadow: 0 0 15px rgba(99, 102, 241, 0.25);
}

/* ─── Animations ─── */
@keyframes lp-bounce {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(-6px); }
}

@keyframes lp-modal-in {
  from { opacity: 0; transform: scale(.96) translateY(10px); }
  to   { opacity: 1; transform: scale(1) translateY(0); }
}

@keyframes lp-fade-up {
  from { opacity: 0; transform: translateY(30px); }
  to   { opacity: 1; transform: translateY(0); }
}

.lp-animate { animation: lp-fade-up .6s ease both; }
.lp-delay-1 { animation-delay: .1s; }
.lp-delay-2 { animation-delay: .2s; }
.lp-delay-3 { animation-delay: .3s; }
.lp-delay-4 { animation-delay: .4s; }

/* ─── QR Code & Timer ─── */
.lp-qr-wrapper {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 1rem;
}

.lp-qr-pulse {
  width: 200px;
  height: 200px;
  border-radius: 16px;
  background: linear-gradient(90deg, #1e293b 25%, #334155 50%, #1e293b 75%);
  background-size: 200% 100%;
  animation: shimmer 1.5s infinite;
}

@keyframes shimmer {
  0% { background-position: -200% 0; }
  100% { background-position: 200% 0; }
}

.lp-copying-label {
  font-size: .7rem;
  color: var(--lp-muted);
  margin-top: .25rem;
  transition: color .3s;
}

.lp-copying-label.copied {
  color: #34d399;
}

.lp-pix-copia-cola {
  width: 100%;
  font-size: .65rem;
  font-family: monospace;
  background: rgba(15, 23, 42, 0.8);
  border: 1px solid var(--lp-border);
  border-radius: 8px;
  padding: .6rem .75rem;
  color: #94a3b8;
  word-break: break-all;
  cursor: pointer;
  transition: border-color .2s;
}

.lp-pix-copia-cola:hover {
  border-color: rgba(79, 70, 229, 0.4);
}

.lp-status-indicator {
  display: flex;
  align-items: center;
  gap: .5rem;
  font-size: .85rem;
  color: #fbbf24;
  font-weight: 600;
}

.lp-status-dot {
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background: #fbbf24;
  animation: lp-pulse-dot 1.2s infinite;
}

@keyframes lp-pulse-dot {
  0%, 100% { opacity: 1; transform: scale(1); }
  50% { opacity: .5; transform: scale(.8); }
}

.lp-timer {
  font-family: monospace;
  font-size: 1.1rem;
  font-weight: 700;
  color: #fb923c;
}

/* ─── COMPREHENSIVE MOBILE & TABLET BREAKPOINTS (Fixes #3 and #4) ─── */
@media (max-width: 1024px) {
  .lp-mockup-body {
    height: 220px;
  }
}

@media (max-width: 992px) {
  #navLinks, .lp-nav-links, .lp-nav-actions {
    display: none !important;
  }

  #navToggle, .lp-nav-toggle {
    display: inline-flex !important;
    align-items: center;
    justify-content: center;
  }

  #hero > div {
    grid-template-columns: 1fr !important;
    gap: 3rem !important;
    text-align: center;
  }
  
  #hero .lp-lead {
    margin-left: auto;
    margin-right: auto;
  }

  #hero button, #hero a.lp-btn-outline {
    justify-content: center;
  }

  #hero > div > div:first-child {
    display: flex;
    flex-direction: column;
    align-items: center;
  }

  #hero > div > div:first-child > div {
    justify-content: center;
  }

  #featuresGrid {
    grid-template-columns: repeat(2, 1fr) !important;
  }

  .pricing-grid {
    grid-template-columns: 1fr !important;
    max-width: 440px !important;
    margin: 0 auto;
  }
}

@media (max-width: 768px) {
  .lp-col-3 {
    display: none !important;
  }

  .lp-col-1 {
    width: 38%;
  }

  .lp-mockup-body {
    height: 200px;
  }

  .lp-stat-card {
    border-right: none !important;
    border-bottom: 1px solid var(--lp-border);
  }

  .lp-stat-card:last-child {
    border-bottom: none !important;
  }

  footer > div > div:first-child {
    grid-template-columns: 1fr !important;
    gap: 2rem !important;
    text-align: center;
  }

  footer > div > div:first-child > div {
    align-items: center;
  }
}

@media (max-width: 576px) {
  .lp-col-1 {
    display: none !important;
  }

  .lp-col-2 {
    width: 100% !important;
  }

  .lp-mockup-body {
    height: auto;
    min-height: 180px;
  }

  #featuresGrid {
    grid-template-columns: 1fr !important;
  }

  #hero {
    padding: 6.5rem 1rem 3.5rem !important;
  }

  .lp-btn-primary, .lp-btn-outline, .lp-btn-accent {
    width: 100%;
  }

  .lp-plan-selector {
    grid-template-columns: 1fr !important;
  }
}
