/* =========================================
   VOX.SERVICES - CSS Stylesheet
   Theme: Dark SaaS, Modern, Glassmorphism
   Colors: Purple Gradients, Deep Dark Backgrounds
   ========================================= */

/* --- CSS Variables --- */
:root {
  --color-bg: #09090b;
  /* Very dark zinc */
  --color-bg-secondary: #18181b;
  --color-text: #f4f4f5;
  --color-text-muted: #a1a1aa;

  --color-primary: #9333ea;
  /* Purple */
  --color-primary-hover: #7e22ce;
  --color-secondary: #7c3aed;
  /* Violet */
  --color-secondary-hover: #6d28d9;

  --color-accent: #c084fc;

  --gradient-primary: linear-gradient(135deg, var(--color-primary), var(--color-secondary));
  --gradient-text: linear-gradient(to right, #e9d5ff, #c084fc, #9333ea);

  --glass-bg: rgba(255, 255, 255, 0.03);
  --glass-border: rgba(255, 255, 255, 0.08);
  --glass-shadow: 0 8px 32px 0 rgba(0, 0, 0, 0.37);

  --font-main: 'Inter', sans-serif;

  --transition-smooth: all 0.3s cubic-bezier(0.25, 0.8, 0.25, 1);
  --border-radius: 12px;
  --border-radius-lg: 24px;
}

/* --- Reset & Base --- */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

html,
body {
  overflow-x: hidden;
  width: 100%;
  max-width: 100vw;
}

html {
  scroll-behavior: smooth;
  font-family: var(--font-main);
  background-color: var(--color-bg);
  color: var(--color-text);
  line-height: 1.6;
}

body {
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

a {
  text-decoration: none;
  color: inherit;
}

ul {
  list-style: none;
}

img,
svg {
  max-width: 100%;
}

/* --- Typography --- */
h1,
h2,
h3,
h4,
h5,
h6 {
  font-weight: 700;
  line-height: 1.2;
  margin-bottom: 1rem;
  letter-spacing: -0.02em;
}

h1 {
  font-size: clamp(2.5rem, 5vw, 4rem);
}

h2 {
  font-size: clamp(2rem, 4vw, 3rem);
}

h3 {
  font-size: 1.5rem;
}

h4 {
  font-size: 1.25rem;
}

p {
  color: var(--color-text-muted);
  font-size: 1.125rem;
  margin-bottom: 1rem;
}

.text-gradient {
  background: var(--gradient-text);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  color: transparent;
  display: inline-block;
}

.text-center {
  text-align: center;
}

/* --- Layout & Utility --- */
.container {
  width: 100%;
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 2rem;
}

section {
  padding: 6rem 0;
  position: relative;
}

.section-header {
  max-width: 800px;
  margin: 0 auto 4rem auto;
}

.section-flex {
  display: flex;
  align-items: center;
  gap: 4rem;
}

.flex-text,
.flex-visual {
  flex: 1;
}

.grid {
  display: grid;
  gap: 2rem;
}

.grid-2 {
  grid-template-columns: repeat(2, 1fr);
}

.grid-3 {
  grid-template-columns: repeat(3, 1fr);
}

.grid-4 {
  grid-template-columns: repeat(4, 1fr);
}

/* --- Components --- */
/* Buttons */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0.75rem 1.5rem;
  border-radius: 50px;
  font-weight: 600;
  transition: var(--transition-smooth);
  cursor: pointer;
  border: none;
  font-size: 1rem;
}

.btn-primary {
  background: var(--gradient-primary);
  color: #fff;
  box-shadow: 0 4px 14px 0 rgba(147, 51, 234, 0.39);
}

.btn-primary:hover {
  transform: translateY(-2px);
  box-shadow: 0 6px 20px 0 rgba(147, 51, 234, 0.5);
}

.btn-secondary {
  background: var(--glass-bg);
  border: 1px solid var(--glass-border);
  color: var(--color-text);
  backdrop-filter: blur(10px);
}

.btn-secondary:hover {
  background: rgba(255, 255, 255, 0.08);
  transform: translateY(-2px);
}

.btn-large {
  padding: 1rem 2rem;
  font-size: 1.125rem;
}

.btn-small {
  padding: 0.5rem 1rem;
  font-size: 0.875rem;
}

/* Glassmorphism Cards */
.glass-card,
.glass-panel {
  background: var(--glass-bg);
  border: 1px solid var(--glass-border);
  border-radius: var(--border-radius);
  padding: 2rem;
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  box-shadow: var(--glass-shadow);
  transition: var(--transition-smooth);
}

.glass-card:hover {
  transform: translateY(-5px);
  border-color: rgba(147, 51, 234, 0.4);
  background: rgba(255, 255, 255, 0.05);
}

/* Badges */
.badge {
  display: inline-block;
  padding: 0.5rem 1rem;
  background: rgba(147, 51, 234, 0.15);
  color: var(--color-accent);
  border-radius: 50px;
  font-size: 0.875rem;
  font-weight: 600;
  margin-bottom: 1.5rem;
  border: 1px solid rgba(147, 51, 234, 0.3);
}

.badge-small {
  padding: 0.25rem 0.5rem;
  font-size: 0.75rem;
  margin-bottom: 0;
  margin-left: 0.5rem;
  vertical-align: middle;
}

/* --- Header --- */
.header {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  z-index: 100;
  padding: 1.25rem 0;
  transition: var(--transition-smooth);
  border-bottom: 1px solid transparent;
}

.header.scrolled {
  background: rgba(9, 9, 11, 0.8);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  border-bottom: 1px solid var(--glass-border);
}

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

.logo {
  font-size: 1.5rem;
  font-weight: 800;
  letter-spacing: -0.05em;
  color: var(--color-text);
}

.logo span {
  color: var(--color-primary);
}

.nav {
  display: flex;
  gap: 2rem;
}

.nav a {
  color: var(--color-text-muted);
  font-size: 0.95rem;
  font-weight: 500;
  transition: var(--transition-smooth);
}

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

.mobile-menu-toggle {
  display: none;
  background: none;
  border: none;
  cursor: pointer;
  flex-direction: column;
  gap: 5px;
}

.mobile-menu-toggle span {
  display: block;
  width: 24px;
  height: 2px;
  background: var(--color-text);
  transition: var(--transition-smooth);
}

/* --- Hero Section --- */
.hero {
  min-height: 100vh;
  display: flex;
  align-items: center;
  padding-top: 6rem;
  position: relative;
  overflow: hidden;
}

.hero-bg-glow {
  position: absolute;
  top: 10%;
  left: 50%;
  transform: translateX(-50%);
  width: 800px;
  height: 600px;
  background: radial-gradient(circle, rgba(147, 51, 234, 0.15) 0%, rgba(9, 9, 11, 0) 70%);
  z-index: -1;
  pointer-events: none;
}

.hero-container {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 4rem;
  align-items: center;
}

.hero-content h1 {
  margin-bottom: 1.5rem;
}

.hero-content p {
  font-size: 1.25rem;
  margin-bottom: 2.5rem;
  max-width: 500px;
}

.hero-actions {
  display: flex;
  gap: 1rem;
  flex-wrap: wrap;
}

/* Hero Mockup */
.dashboard-mockup {
  border-radius: var(--border-radius-lg);
  padding: 0;
  overflow: hidden;
  position: relative;
  transform: perspective(1000px) rotateY(-15deg) rotateX(5deg);
  box-shadow: -20px 20px 60px rgba(0, 0, 0, 0.5), 0 0 40px rgba(147, 51, 234, 0.2);
  transition: transform 0.5s ease;
}

.dashboard-mockup:hover {
  transform: perspective(1000px) rotateY(-5deg) rotateX(2deg);
}

.mockup-header {
  background: rgba(0, 0, 0, 0.2);
  padding: 1rem;
  display: flex;
  align-items: center;
  border-bottom: 1px solid var(--glass-border);
}

.dots {
  display: flex;
  gap: 6px;
  margin-right: 1rem;
}

.dots span {
  width: 10px;
  height: 10px;
  border-radius: 50%;
}

.dots span:nth-child(1) {
  background: #ff5f56;
}

.dots span:nth-child(2) {
  background: #ffbd2e;
}

.dots span:nth-child(3) {
  background: #27c93f;
}

.mockup-header .title {
  font-size: 0.8rem;
  color: var(--color-text-muted);
  font-weight: 600;
  margin: 0 auto;
}

.mockup-body {
  padding: 2rem;
  display: grid;
  gap: 1.5rem;
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.02) 0%, rgba(255, 255, 255, 0) 100%);
}

.stat-card {
  background: rgba(255, 255, 255, 0.03);
  padding: 1.25rem;
  border-radius: 12px;
  border: 1px solid var(--glass-border);
}

.stat-card span {
  display: block;
  font-size: 0.875rem;
  color: var(--color-text-muted);
  margin-bottom: 0.5rem;
}

.stat-card strong {
  display: block;
  font-size: 1.5rem;
  color: var(--color-primary);
  margin-bottom: 1rem;
}

.chart-line {
  height: 4px;
  width: 100%;
  background: var(--glass-bg);
  border-radius: 2px;
  position: relative;
  overflow: hidden;
}

.chart-line::after {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  height: 100%;
  width: 75%;
  background: var(--gradient-primary);
  border-radius: 2px;
}

.chart-bar {
  display: flex;
  gap: 4px;
  height: 20px;
  align-items: flex-end;
}

.chart-bar::before,
.chart-bar::after {
  content: '';
  width: 20%;
  background: var(--color-primary);
  opacity: 0.5;
  border-radius: 2px 2px 0 0;
}

.chart-bar::after {
  height: 100%;
  opacity: 1;
  width: 40%;
}

.chart-bar::before {
  height: 60%;
}

.chart-circle {
  width: 40px;
  height: 40px;
  border-radius: 50%;
  border: 4px solid var(--glass-border);
  border-top-color: var(--color-primary);
  border-right-color: var(--color-primary);
  transform: rotate(45deg);
}

/* --- Problem --- */
.problem-card {
  display: flex;
  flex-direction: column;
}

.icon-danger {
  width: 48px;
  height: 48px;
  background: rgba(239, 68, 68, 0.1);
  color: #ef4444;
  border-radius: 12px;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 1.5rem;
}

/* --- Services --- */
.service-icon {
  width: 56px;
  height: 56px;
  background: var(--gradient-primary);
  border-radius: 16px;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 1.5rem;
  color: white;
  box-shadow: 0 4px 14px 0 rgba(147, 51, 234, 0.39);
}

.feature-list {
  margin-top: 1.5rem;
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
}

.feature-list li {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  color: var(--color-text-muted);
  font-size: 0.95rem;
}

.feature-list li svg {
  color: var(--color-primary);
  width: 18px;
  height: 18px;
}

/* --- How it Works --- */
.steps {
  margin-top: 3rem;
  display: flex;
  flex-direction: column;
  gap: 2rem;
}

.step {
  display: flex;
  gap: 1.5rem;
}

.step-num {
  width: 40px;
  height: 40px;
  border-radius: 50%;
  background: rgba(147, 51, 234, 0.1);
  color: var(--color-accent);
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 700;
  border: 1px solid rgba(147, 51, 234, 0.3);
  flex-shrink: 0;
}

.visual-container {
  position: relative;
  display: flex;
  justify-content: center;
  align-items: center;
}

.glow-sphere {
  position: absolute;
  width: 300px;
  height: 300px;
  background: radial-gradient(circle, rgba(147, 51, 234, 0.4) 0%, rgba(9, 9, 11, 0) 70%);
  filter: blur(40px);
  z-index: 0;
}

.workflow-visual {
  position: relative;
  z-index: 1;
  width: 100%;
  max-width: 400px;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 1rem;
  background: rgba(9, 9, 11, 0.6);
}

.node {
  padding: 1rem 2rem;
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid var(--glass-border);
  border-radius: 8px;
  width: 100%;
  text-align: center;
  font-weight: 600;
  color: var(--color-text-muted);
  transition: var(--transition-smooth);
}

.node.active,
.node.highlight {
  color: var(--color-text);
  border-color: rgba(147, 51, 234, 0.5);
  box-shadow: 0 0 20px rgba(147, 51, 234, 0.2);
}

.node.highlight {
  background: var(--gradient-primary);
}

.workflow-visual .line {
  width: 2px;
  height: 20px;
  background: var(--glass-border);
}

.workflow-visual .node.active+.line {
  background: var(--color-primary);
}

/* --- Benefits --- */
.benefit-item {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  padding: 2rem;
}

.benefit-icon {
  font-size: 3rem;
  margin-bottom: 1rem;
}

/* --- Testimonials --- */
.testimonial {
  display: flex;
  flex-direction: column;
  justify-content: space-between;
}

.quote {
  font-style: italic;
  font-size: 1.125rem;
  color: var(--color-text);
  margin-bottom: 2rem;
}

.author {
  display: flex;
  align-items: center;
  gap: 1rem;
}

.avatar {
  width: 48px;
  height: 48px;
  border-radius: 50%;
  background: var(--color-primary);
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 700;
  font-size: 1.25rem;
}

.bg-alt {
  background: #3b82f6;
}

.bg-alt2 {
  background: #10b981;
}

.author .info strong {
  display: block;
}

.author .info span {
  font-size: 0.875rem;
  color: var(--color-text-muted);
}

/* --- FAQ --- */
.faq-section {
  max-width: 800px;
  margin: 0 auto;
}

.faq-accordion {
  display: flex;
  flex-direction: column;
  gap: 1rem;
}

.faq-item {
  background: var(--glass-bg);
  border: 1px solid var(--glass-border);
  border-radius: var(--border-radius);
  overflow: hidden;
  transition: var(--transition-smooth);
}

.faq-question {
  padding: 1.5rem;
  display: flex;
  justify-content: space-between;
  align-items: center;
  cursor: pointer;
  font-weight: 600;
}

.faq-question h3 {
  margin: 0;
  font-size: 1.125rem;
}

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

.faq-answer {
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.3s ease;
  padding: 0 1.5rem;
}

.faq-answer p {
  margin-bottom: 1.5rem;
}

.faq-item.active {
  border-color: rgba(147, 51, 234, 0.4);
}

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

.faq-item.active .faq-answer {
  max-height: 200px;
}

/* --- Final CTA --- */
.cta-box {
  padding: 4rem 2rem;
  background: radial-gradient(circle at center, rgba(147, 51, 234, 0.1) 0%, var(--glass-bg) 100%);
  border: 1px solid rgba(147, 51, 234, 0.3);
}

.cta-box h2 {
  font-size: 2.5rem;
  margin-bottom: 1rem;
}

.cta-box p {
  font-size: 1.25rem;
  margin-bottom: 2.5rem;
  max-width: 600px;
  margin-left: auto;
  margin-right: auto;
}

.cta-btn {
  margin-bottom: 1rem;
}

.urgency-text {
  font-size: 0.875rem !important;
  color: var(--color-text-muted) !important;
  margin-bottom: 0 !important;
}

/* --- Footer --- */
.footer {
  border-top: 1px solid var(--glass-border);
  padding: 4rem 0 0 0;
  background: var(--color-bg-secondary);
}

.footer-grid {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr 1fr;
  gap: 3rem;
  margin-bottom: 3rem;
}

.footer-brand p {
  margin-top: 1rem;
  font-size: 0.95rem;
}

.footer-links h4 {
  color: var(--color-text);
  margin-bottom: 1.5rem;
  font-size: 1rem;
}

.footer-links a {
  display: block;
  color: var(--color-text-muted);
  margin-bottom: 0.75rem;
  transition: var(--transition-smooth);
}

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

.footer-bottom {
  border-top: 1px solid var(--glass-border);
  padding: 1.5rem 0;
  color: var(--color-text-muted);
  font-size: 0.875rem;
}

/* --- Floating WhatsApp --- */
.floating-whatsapp {
  position: fixed;
  bottom: 2rem;
  right: 2rem;
  width: 60px;
  height: 60px;
  background-color: #25d366;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 4px 14px 0 rgba(37, 211, 102, 0.39);
  z-index: 1000;
  transition: var(--transition-smooth);
}

.floating-whatsapp:hover {
  transform: scale(1.1);
  box-shadow: 0 6px 20px 0 rgba(37, 211, 102, 0.5);
}

/* --- Responsive --- */
@media (max-width: 992px) {
  .hero-container {
    grid-template-columns: 1fr;
    text-align: center;
  }

  .section-flex {
    flex-direction: column;
    text-align: center;
  }

  .hero-content p {
    margin-left: auto;
    margin-right: auto;
  }

  .hero-actions {
    justify-content: center;
  }

  .dashboard-mockup {
    transform: none !important;
    margin-top: 2rem;
  }

  .grid-4,
  .grid-3 {
    grid-template-columns: repeat(2, 1fr);
  }

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

  .visual-container {
    margin-top: 3rem;
  }
}

@media (max-width: 768px) {
  h1 {
    font-size: 2.5rem;
  }

  h2 {
    font-size: 2rem;
  }

  .d-none-mobile {
    display: none;
  }

  .mobile-menu-toggle {
    display: flex;
  }

  .nav {
    position: fixed;
    top: 70px;
    left: 0;
    width: 100%;
    background: rgba(9, 9, 11, 0.95);
    backdrop-filter: blur(10px);
    flex-direction: column;
    padding: 2rem;
    gap: 1.5rem;
    text-align: center;
    border-bottom: 1px solid var(--glass-border);
    clip-path: polygon(0 0, 100% 0, 100% 0, 0 0);
    transition: clip-path 0.4s ease;
  }

  .nav.active {
    clip-path: polygon(0 0, 100% 0, 100% 100%, 0 100%);
  }

  .grid-4,
  .grid-3,
  .grid-2 {
    grid-template-columns: 1fr;
  }

  .footer-grid {
    grid-template-columns: 1fr;
    text-align: center;
  }

  .step {
    flex-direction: column;
    align-items: center;
    text-align: center;
  }

  .cta-box {
    padding: 3rem 1.5rem;
  }

  .cta-box h2 {
    font-size: 2rem;
    word-break: break-word;
  }
}