/*
Theme Name: Nexsure Landing Page
Theme URI: https://nexsure.com.br
Author: Nexsure
Author URI: https://nexsure.com.br
Description: Tema de landing page para conversão em Meta Ads - CRM + IA Humanizada para Delivery
Version: 1.0
License: GNU General Public License v2 or later
License URI: http://www.gnu.org/licenses/gpl-2.0.html
Text Domain: nexsure
*/

/* ─────────────────────────────────────────────────────────────────
   Imports e variáveis
   ───────────────────────────────────────────────────────────────── */
@import url('https://fonts.googleapis.com/css2?family=Inter:wght@400;500;600;700;800;900&family=Space+Grotesk:wght@500;600;700&display=swap');

:root {
  --background: hsl(220 20% 4%);
  --foreground: hsl(0 0% 98%);
  --card: hsl(220 18% 8%);
  --primary: #1ac7f8;
  --primary-hover: hsl(195 90% 44%);
  --secondary: hsl(220 15% 12%);
  --muted: hsl(220 15% 15%);
  --muted-foreground: hsl(220 10% 55%);
  --border: hsl(220 15% 18%);
  --destructive: hsl(0 84.2% 60.2%);
  --whatsapp: hsl(142 70% 45%);
  --whatsapp-dark: hsl(142 70% 35%);
  --whatsapp-light: hsl(142 60% 90%);
  --whatsapp-bubble-out: hsl(142 44% 22%);
  --whatsapp-bubble-in: hsl(220 14% 18%);
  --whatsapp-bg: hsl(220 15% 8%);
  --radius: 0.75rem;
  --shadow-glow: 0 0 30px rgba(26, 199, 248, 0.3);
  --shadow-glow-sm: 0 0 15px rgba(26, 199, 248, 0.2);
  --gradient-hero: linear-gradient(135deg, hsl(220 20% 4%) 0%, hsl(220 18% 8%) 50%, hsl(195 40% 10%) 100%);
  --gradient-cta: linear-gradient(135deg, #1ac7f8 0%, hsl(195 90% 44%) 100%);
  --gradient-card: linear-gradient(180deg, hsl(220 18% 10%) 0%, hsl(220 20% 6%) 100%);
}

/* Base */
*, *::before, *::after { box-sizing: border-box; }
* { border-color: var(--border); }
html { scroll-behavior: smooth; }

body {
  margin: 0;
  padding: 0;
  background: var(--background);
  color: var(--foreground);
  font-family: 'Inter', sans-serif;
  font-size: 16px;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}

h1, h2, h3, h4, h5, h6 {
  font-family: 'Space Grotesk', sans-serif;
}

a { color: inherit; text-decoration: none; }
img { max-width: 100%; height: auto; display: block; }
button { cursor: pointer; font-family: inherit; }

/* Utilities */
.text-gradient {
  background: linear-gradient(135deg, #1ac7f8, hsl(195 80% 70%));
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.glow-border {
  box-shadow: var(--shadow-glow-sm);
  border: 1px solid rgba(26, 199, 248, 0.3);
}

/* Animations - Framer Motion equivalents */
@keyframes fadeUp {
  from { opacity: 0; transform: translateY(30px); }
  to { opacity: 1; transform: translateY(0); }
}

@keyframes fadeIn {
  from { opacity: 0; }
  to { opacity: 1; }
}

@keyframes scaleIn {
  from { opacity: 0; transform: scale(0.9); }
  to { opacity: 1; transform: scale(1); }
}

@keyframes slideRight {
  from { opacity: 0; transform: translateX(20px); }
  to { opacity: 1; transform: translateX(0); }
}

@keyframes slideLeft {
  from { opacity: 0; transform: translateX(-20px); }
  to { opacity: 1; transform: translateX(0); }
}

@keyframes whatsapp-pulse {
  0%, 100% { transform: scale(1); box-shadow: 0 0 0 0 rgba(34, 197, 94, 0.7); }
  50% { transform: scale(1.05); box-shadow: 0 0 20px 10px rgba(34, 197, 94, 0); }
}

.animate-fade-up { animation: fadeUp 0.5s ease forwards; }
.animate-fade-in { animation: fadeIn 0.3s ease forwards; }
.animate-scale-in { animation: scaleIn 0.3s ease forwards; }
.animate-whatsapp-pulse { animation: whatsapp-pulse 2s ease-in-out infinite; }

/* Layout */
.container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 1.5rem;
}

/* Hero section */
.hero-section {
  position: relative;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  background: var(--gradient-hero);
}

.hero-video-overlay {
  position: absolute;
  inset: 0;
  overflow: hidden;
}

.hero-video-overlay video {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  opacity: 0.1;
}

.hero-video-overlay::after {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(to bottom, rgba(7, 9, 12, 0.6) 0%, rgba(7, 9, 12, 0.8) 50%, var(--background) 100%);
}

.hero-content {
  position: relative;
  z-index: 10;
}

/* Header */
.site-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 1.5rem 0;
}

.site-logo {
  display: flex;
  align-items: center;
  gap: 0.75rem;
}

.site-logo img {
  height: 40px;
  width: 40px;
  border-radius: 0.5rem;
}

.btn-cta {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0.625rem 1.25rem;
  border-radius: 0.5rem;
  background: var(--gradient-cta);
  color: #0a0c0f;
  font-weight: 600;
  font-size: 0.875rem;
  transition: opacity 0.2s;
}

.btn-cta:hover { opacity: 0.9; }

/* Sections */
.section {
  padding: 4rem 0;
}

.section-card {
  background: var(--card);
}

.section-title {
  font-size: clamp(1.5rem, 4vw, 2.25rem);
  font-weight: 700;
  text-align: center;
  margin: 0 0 1rem;
}

.section-subtitle {
  color: var(--muted-foreground);
  text-align: center;
  max-width: 42rem;
  margin: 0 auto 3rem;
}

/* Pain points */
.pain-point {
  display: flex;
  align-items: flex-start;
  gap: 0.75rem;
  padding: 1rem;
  border-radius: 0.5rem;
  background: rgba(220, 15%, 12%, 0.5);
  margin-bottom: 1rem;
}

.pain-point-icon { color: var(--destructive); font-size: 1.25rem; margin-top: 0.125rem; }

/* Cards */
.card-feature {
  border-radius: 0.75rem;
  padding: 1.5rem;
  background: var(--gradient-card);
  border: 1px solid var(--border);
  transition: all 0.2s;
}

.card-feature:hover {
  box-shadow: var(--shadow-glow-sm);
  border-color: rgba(26, 199, 248, 0.3);
}

.card-glow {
  background: var(--gradient-card);
  border-radius: 0.75rem;
  padding: 1.5rem;
  box-shadow: var(--shadow-glow-sm);
  border: 1px solid rgba(26, 199, 248, 0.3);
}

/* Feature grid */
.features-grid {
  display: grid;
  gap: 1rem;
}

@media (min-width: 768px) {
  .features-grid-3 { grid-template-columns: repeat(3, 1fr); }
  .features-grid-4 { grid-template-columns: repeat(2, 1fr); }
}

@media (min-width: 1024px) {
  .features-grid-4 { grid-template-columns: repeat(4, 1fr); }
}

/* Form */
.lead-form-box {
  border-radius: 0.75rem;
  padding: 1.5rem 2rem;
  max-width: 32rem;
  margin: 0 auto;
  background: var(--gradient-card);
  box-shadow: var(--shadow-glow-sm);
  border: 1px solid rgba(26, 199, 248, 0.3);
}

.form-input {
  width: 100%;
  padding: 0.75rem 1rem;
  border-radius: 0.5rem;
  border: 1px solid var(--border);
  background: var(--secondary);
  color: var(--foreground);
  font-size: 1rem;
  margin-bottom: 1rem;
  transition: box-shadow 0.2s;
}

.form-input::placeholder { color: var(--muted-foreground); }
.form-input:focus {
  outline: none;
  box-shadow: 0 0 0 2px var(--primary);
}

.btn-submit {
  width: 100%;
  padding: 1rem 1.5rem;
  border-radius: 0.5rem;
  border: none;
  background: var(--gradient-cta);
  color: #0a0c0f;
  font-family: 'Space Grotesk', sans-serif;
  font-weight: 700;
  font-size: 1.125rem;
  transition: opacity 0.2s;
}

.btn-submit:hover { opacity: 0.9; }

/* Testimonials carousel */
.testimonial-card {
  max-width: 28rem;
  margin: 0 auto;
  border-radius: 1rem;
  overflow: hidden;
  box-shadow: var(--shadow-glow-sm);
}

.testimonial-header {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  padding: 0.75rem 1rem;
  background: hsl(220 18% 10%);
}

.testimonial-avatar {
  width: 36px;
  height: 36px;
  border-radius: 50%;
  object-fit: cover;
  flex-shrink: 0;
}

.testimonial-messages {
  padding: 1rem;
  min-height: 200px;
  background: var(--whatsapp-bg);
}

.bubble-client {
  background: var(--whatsapp-bubble-out);
  border-radius: 0.75rem;
  border-top-right-radius: 0;
  padding: 0.5rem 0.75rem;
  margin-left: auto;
  max-width: 80%;
  margin-bottom: 0.5rem;
}

.bubble-support {
  background: var(--whatsapp-bubble-in);
  border-radius: 0.75rem;
  border-top-left-radius: 0;
  padding: 0.5rem 0.75rem;
  max-width: 80%;
  margin-bottom: 0.5rem;
}

.carousel-nav {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 1rem;
  margin-top: 1.5rem;
}

.carousel-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--muted);
  border: none;
  padding: 0;
  transition: all 0.2s;
}

.carousel-dot.active {
  width: 24px;
  background: var(--primary);
}

.carousel-btn {
  padding: 0.5rem;
  border-radius: 50%;
  background: var(--secondary);
  border: none;
  color: var(--foreground);
  transition: background 0.2s;
}

.carousel-btn:hover { background: var(--muted); }

/* FAQ */
.faq-item {
  border-radius: 0.75rem;
  border: 1px solid var(--border);
  background: var(--card);
  margin-bottom: 0.75rem;
  overflow: hidden;
}

.faq-trigger {
  width: 100%;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 1rem 1.25rem;
  background: none;
  border: none;
  color: var(--foreground);
  font-weight: 600;
  font-size: 0.875rem;
  text-align: left;
  cursor: pointer;
}

.faq-trigger svg {
  flex-shrink: 0;
  transition: transform 0.2s;
}

.faq-item.open .faq-trigger svg { transform: rotate(180deg); }

.faq-content {
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.3s ease;
}

.faq-item.open .faq-content { max-height: 300px; }

.faq-content p {
  padding: 0 1.25rem 1rem;
  color: var(--muted-foreground);
  font-size: 0.875rem;
  margin: 0;
}

/* WhatsApp button floating */
.whatsapp-float {
  position: fixed;
  bottom: 1.5rem;
  right: 1.5rem;
  z-index: 50;
  width: 64px;
  height: 64px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 50%;
  background: var(--whatsapp);
  color: var(--foreground);
  box-shadow: 0 25px 50px -12px rgba(0, 0, 0, 0.5);
  transition: background 0.2s;
}

.whatsapp-float:hover { background: var(--whatsapp-dark); }

.whatsapp-float svg {
  width: 32px;
  height: 32px;
}

/* Exit popup */
.exit-popup-overlay {
  position: fixed;
  inset: 0;
  z-index: 100;
  display: flex;
  align-items: center;
  justify-content: center;
  background: rgba(7, 9, 12, 0.8);
  backdrop-filter: blur(4px);
  padding: 1rem;
}

.exit-popup-box {
  max-width: 24rem;
  width: 100%;
  border-radius: 1rem;
  overflow: hidden;
  box-shadow: var(--shadow-glow);
}

.exit-popup-header {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  padding: 0.75rem 1rem;
  background: var(--whatsapp-dark);
}

.exit-popup-avatar {
  width: 40px;
  height: 40px;
  border-radius: 50%;
  object-fit: cover;
  background: var(--muted);
}

.exit-popup-cta {
  display: block;
  width: 100%;
  padding: 1rem;
  background: var(--whatsapp);
  color: var(--foreground);
  font-weight: 700;
  text-align: center;
  border-radius: 0.75rem;
  transition: background 0.2s;
}

.exit-popup-cta:hover { background: var(--whatsapp-dark); }

/* Success message */
.success-box {
  text-align: center;
  padding: 2rem;
}

.success-box .icon { font-size: 2.5rem; margin-bottom: 0.75rem; }

/* Hide carousel slides */
.carousel-slide { display: none; }
.carousel-slide.active { display: block; }

/* Utilities */
.hidden { display: none !important; }
@media (min-width: 640px) {
  .sm-block { display: block !important; }
}
.flex-1 { flex: 1; }
.mt-10 { margin-top: 2.5rem; }
.font-display { font-family: 'Space Grotesk', sans-serif; }
.text-muted-foreground { color: var(--muted-foreground); }

/* Exit popup close button */
.exit-popup-header button {
  background: none;
  border: none;
  color: rgba(250,250,250,.7);
  font-size: 1.5rem;
  line-height: 1;
  padding: 0;
  cursor: pointer;
}
.exit-popup-header button:hover { color: #fff; }

/* Pricing grid responsive */
@media (max-width: 768px) {
  .pricing-grid-inner {
    grid-template-columns: 1fr !important;
  }
}
