/* ===== VARIABLES ===== */
:root {
  /* Colors */
  --primary: #06b6d4;
  --primary-dark: #0891b2;
  --secondary: #a855f7;
  --secondary-dark: #9333ea;
  --success: #10b981;
  --warning: #f59e0b;
  --danger: #ef4444;
  --cyan-500: #06b6d4;
  --purple-600: #a855f7;
  
  /* Neutrals */
  --gray-50: #f9fafb;
  --gray-100: #f3f4f6;
  --gray-200: #e5e7eb;
  --gray-300: #d1d5db;
  --gray-500: #6b7280;
  --gray-700: #374151;
  --gray-800: #1f2937;
  --gray-900: #111827;
  
  /* Spacing */
  --spacing-xs: 0.5rem;
  --spacing-sm: 0.75rem;
  --spacing-md: 1rem;
  --spacing-lg: 1.5rem;
  --spacing-xl: 2rem;
  --spacing-2xl: 3rem;
  
  /* Typography */
  --font-sans: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, 'Helvetica Neue', Arial, sans-serif;
  --font-mono: 'SF Mono', Monaco, 'Cascadia Code', monospace;
  
  /* Border radius */
  --radius-sm: 0.375rem;
  --radius-md: 0.5rem;
  --radius-lg: 0.75rem;
  --radius-xl: 1rem;
  --radius-2xl: 1.5rem;
  
  /* Shadows */
  --shadow-sm: 0 1px 2px 0 rgba(0, 0, 0, 0.05);
  --shadow-md: 0 4px 6px -1px rgba(0, 0, 0, 0.1);
  --shadow-lg: 0 10px 15px -3px rgba(0, 0, 0, 0.1);
  --shadow-xl: 0 20px 25px -5px rgba(0, 0, 0, 0.1);
}

/* ===== RESET ===== */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  font-family: var(--font-sans);
  line-height: 1.6;
  color: var(--gray-900);
  background-color: var(--gray-50);
}

a {
  text-decoration: none;
  color: inherit;
}

button {
  font-family: inherit;
  cursor: pointer;
  border: none;
  background: none;
}

img {
  max-width: 100%;
  height: auto;
}

/* ===== UTILITIES ===== */
.container {
  max-width: 1280px;
  margin: 0 auto;
  padding: 0 var(--spacing-lg);
}

.hidden {
  display: none !important;
}

.gradient-text {
  background: linear-gradient(135deg, var(--primary), var(--secondary));
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

/* ===== BUTTONS ===== */
.btn-primary,
.btn-secondary,
.btn-outline {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0.75rem 1.5rem;
  font-size: 1rem;
  font-weight: 600;
  border-radius: var(--radius-lg);
  transition: all 0.2s;
  white-space: nowrap;
}

.btn-primary {
  background: linear-gradient(135deg, var(--primary), var(--secondary));
  color: white;
  box-shadow: 0 4px 14px rgba(6, 182, 212, 0.3);
}

.btn-primary:hover {
  transform: translateY(-2px);
  box-shadow: 0 6px 20px rgba(6, 182, 212, 0.4);
}

.btn-secondary {
  background: white;
  color: var(--gray-900);
  border: 2px solid var(--gray-200);
}

.btn-secondary:hover {
  border-color: var(--primary);
  color: var(--primary);
}

.btn-outline {
  background: transparent;
  color: var(--primary);
  border: 2px solid var(--primary);
}

.btn-outline:hover {
  background: var(--primary);
  color: white;
}

.btn-lg {
  padding: 1rem 2rem;
  font-size: 1.125rem;
}

.btn-sm {
  padding: 0.5rem 1rem;
  font-size: 0.875rem;
}

.btn-block {
  width: 100%;
}

/* ===== NAVBAR ===== */
.navbar {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 1000;
  background: rgba(255, 255, 255, 0.8);
  backdrop-filter: blur(20px);
  border-bottom: 1px solid var(--gray-200);
}

.nav-content {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: var(--spacing-md) 0;
}

.nav-brand {
  display: flex;
  align-items: center;
  gap: var(--spacing-sm);
}

.brand-name {
  font-size: 1.5rem;
  font-weight: 700;
  color: var(--gray-900);
}

.nav-links {
  display: flex;
  gap: var(--spacing-xl);
}

.nav-links a {
  color: var(--gray-700);
  font-weight: 500;
  transition: color 0.2s;
}

.nav-links a:hover {
  color: var(--primary);
}

.nav-actions {
  display: flex;
  gap: var(--spacing-md);
}

.mobile-menu {
  display: none;
  flex-direction: column;
  gap: 4px;
  padding: 8px;
}

.mobile-menu span {
  width: 24px;
  height: 2px;
  background: var(--gray-900);
  border-radius: 2px;
}

/* ===== HERO SECTION ===== */
.hero {
  position: relative;
  min-height: 100vh;
  display: flex;
  align-items: center;
  padding-top: 80px;
  overflow: hidden;
}

.hero-bg {
  position: absolute;
  inset: 0;
  background: linear-gradient(135deg, 
    rgba(6, 182, 212, 0.05) 0%, 
    rgba(168, 85, 247, 0.05) 100%);
  z-index: -1;
}

.hero-content {
  text-align: center;
  max-width: 900px;
  margin: 0 auto;
}

.hero-badge {
  display: inline-block;
  padding: 0.5rem 1.25rem;
  background: white;
  border: 1px solid var(--gray-200);
  border-radius: 9999px;
  font-size: 0.875rem;
  font-weight: 500;
  color: var(--gray-700);
  margin-bottom: var(--spacing-lg);
}

.hero-title {
  font-size: 4rem;
  font-weight: 800;
  line-height: 1.1;
  margin-bottom: var(--spacing-lg);
}

.hero-description {
  font-size: 1.25rem;
  color: var(--gray-600);
  margin-bottom: var(--spacing-2xl);
  max-width: 700px;
  margin-left: auto;
  margin-right: auto;
}

.hero-actions {
  display: flex;
  gap: var(--spacing-md);
  justify-content: center;
  margin-bottom: var(--spacing-2xl);
}

.hero-stats {
  display: flex;
  gap: var(--spacing-2xl);
  justify-content: center;
  padding-top: var(--spacing-2xl);
  border-top: 1px solid var(--gray-200);
}

.stat-item {
  text-align: center;
}

.stat-value {
  font-size: 2.5rem;
  font-weight: 800;
  background: linear-gradient(135deg, var(--primary), var(--secondary));
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.stat-label {
  font-size: 0.875rem;
  color: var(--gray-600);
  margin-top: 0.25rem;
}

/* ===== SERVICES SECTION ===== */
.services {
  padding: var(--spacing-2xl) 0;
}

.section-header {
  text-align: center;
  margin-bottom: var(--spacing-2xl);
}

.section-title {
  font-size: 3rem;
  font-weight: 800;
  margin-bottom: var(--spacing-md);
}

.section-description {
  font-size: 1.125rem;
  color: var(--gray-600);
  max-width: 600px;
  margin: 0 auto;
}

.services-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
  gap: var(--spacing-xl);
}

.service-card {
  position: relative;
  background: white;
  padding: var(--spacing-xl);
  border-radius: var(--radius-2xl);
  border: 2px solid var(--gray-200);
  transition: all 0.3s;
}

.service-card:hover {
  transform: translateY(-8px);
  border-color: var(--primary);
  box-shadow: var(--shadow-xl);
}

.service-card.featured {
  border-color: var(--primary);
  background: linear-gradient(135deg, 
    rgba(6, 182, 212, 0.05) 0%, 
    rgba(168, 85, 247, 0.05) 100%);
}

.featured-badge {
  position: absolute;
  top: -12px;
  right: var(--spacing-lg);
  background: linear-gradient(135deg, var(--primary), var(--secondary));
  color: white;
  padding: 0.375rem 1rem;
  border-radius: 9999px;
  font-size: 0.75rem;
  font-weight: 600;
}

.service-icon {
  font-size: 3rem;
  margin-bottom: var(--spacing-md);
}

.service-title {
  font-size: 1.5rem;
  font-weight: 700;
  margin-bottom: var(--spacing-md);
}

.service-description {
  color: var(--gray-600);
  margin-bottom: var(--spacing-lg);
}

.service-features {
  list-style: none;
}

.service-features li {
  padding: 0.5rem 0;
  color: var(--gray-700);
  font-size: 0.9375rem;
}

/* ===== BENEFITS SECTION ===== */
.benefits {
  padding: var(--spacing-2xl) 0;
  background: white;
}

.benefits-content {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: var(--spacing-2xl);
  align-items: center;
}

.benefit-list {
  display: flex;
  flex-direction: column;
  gap: var(--spacing-lg);
}

.benefit-item {
  display: flex;
  gap: var(--spacing-md);
}

.benefit-icon {
  font-size: 2rem;
  flex-shrink: 0;
}

.benefit-content h3 {
  font-size: 1.25rem;
  font-weight: 600;
  margin-bottom: 0.25rem;
}

.benefit-content p {
  color: var(--gray-600);
}

.benefits-visual {
  display: flex;
  flex-direction: column;
  gap: var(--spacing-md);
}

.metric-card {
  background: linear-gradient(135deg, 
    rgba(6, 182, 212, 0.05) 0%, 
    rgba(168, 85, 247, 0.05) 100%);
  padding: var(--spacing-xl);
  border-radius: var(--radius-2xl);
  border: 2px solid var(--gray-200);
}

.metric-value {
  font-size: 3rem;
  font-weight: 800;
  background: linear-gradient(135deg, var(--primary), var(--secondary));
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  margin-bottom: 0.5rem;
}

.metric-label {
  color: var(--gray-600);
  font-size: 1rem;
}

/* ===== CONTACT SECTION ===== */
.contact {
  padding: var(--spacing-2xl) 0;
}

.contact-content {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: var(--spacing-2xl);
  align-items: start;
}

.contact-features {
  display: flex;
  flex-direction: column;
  gap: var(--spacing-md);
  margin-top: var(--spacing-xl);
}

.contact-feature {
  display: flex;
  gap: var(--spacing-md);
  align-items: start;
}

.feature-icon {
  font-size: 1.5rem;
  flex-shrink: 0;
}

.feature-text {
  display: flex;
  flex-direction: column;
}

.feature-text strong {
  font-weight: 600;
  color: var(--gray-900);
}

.feature-text span {
  font-size: 0.875rem;
  color: var(--gray-600);
}

.contact-form-container {
  background: white;
  padding: var(--spacing-xl);
  border-radius: var(--radius-2xl);
  border: 2px solid var(--gray-200);
  box-shadow: var(--shadow-lg);
}

.contact-form {
  display: flex;
  flex-direction: column;
  gap: var(--spacing-lg);
}

.form-group {
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
}

.form-group label {
  font-weight: 600;
  color: var(--gray-700);
  font-size: 0.9375rem;
}

.form-group input,
.form-group select,
.form-group textarea {
  width: 100%;
  padding: 0.75rem 1rem;
  border: 2px solid var(--gray-200);
  border-radius: var(--radius-md);
  font-family: inherit;
  font-size: 1rem;
  transition: all 0.2s;
}

.form-group input:focus,
.form-group select:focus,
.form-group textarea:focus {
  outline: none;
  border-color: var(--primary);
  box-shadow: 0 0 0 3px rgba(6, 182, 212, 0.1);
}

.form-disclaimer {
  font-size: 0.75rem;
  color: var(--gray-500);
  text-align: center;
  margin-top: var(--spacing-sm);
}

.success-message {
  text-align: center;
  padding: var(--spacing-2xl);
}

.success-icon {
  width: 64px;
  height: 64px;
  margin: 0 auto var(--spacing-lg);
  background: linear-gradient(135deg, var(--primary), var(--secondary));
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  color: white;
  font-size: 2rem;
  font-weight: bold;
}

.success-message h3 {
  font-size: 1.5rem;
  margin-bottom: var(--spacing-md);
}

.success-message p {
  color: var(--gray-600);
}

/* ===== FOOTER ===== */
.footer {
  background: var(--gray-900);
  color: white;
  padding: var(--spacing-2xl) 0 var(--spacing-lg);
}

.footer-content {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: var(--spacing-xl);
  padding-bottom: var(--spacing-xl);
  border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

.footer-brand {
  display: flex;
  align-items: center;
  gap: var(--spacing-sm);
}

.footer-links {
  display: flex;
  gap: var(--spacing-xl);
}

.footer-links a {
  color: var(--gray-300);
  transition: color 0.2s;
}

.footer-links a:hover {
  color: white;
}

.footer-social {
  display: flex;
  gap: var(--spacing-md);
}

.footer-social a {
  color: var(--gray-300);
  transition: color 0.2s;
}

.footer-social a:hover {
  color: var(--primary);
}

.footer-bottom {
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.footer-text {
  color: var(--gray-400);
  font-size: 0.875rem;
}

.footer-legal {
  display: flex;
  gap: var(--spacing-lg);
}

.footer-legal a {
  color: var(--gray-400);
  font-size: 0.875rem;
  transition: color 0.2s;
}

.footer-legal a:hover {
  color: white;
}

/* ===== ADMIN PANEL ===== */
.login-screen {
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  background: linear-gradient(135deg, 
    rgba(6, 182, 212, 0.1) 0%, 
    rgba(168, 85, 247, 0.1) 100%);
}

.login-container {
  background: white;
  padding: var(--spacing-2xl);
  border-radius: var(--radius-2xl);
  box-shadow: var(--shadow-xl);
  width: 100%;
  max-width: 400px;
}

.login-logo {
  display: flex;
  justify-content: center;
  margin-bottom: var(--spacing-lg);
}

.login-title {
  font-size: 1.75rem;
  font-weight: 700;
  text-align: center;
  margin-bottom: 0.5rem;
}

.login-subtitle {
  text-align: center;
  color: var(--gray-600);
  margin-bottom: var(--spacing-xl);
}

.login-help {
  text-align: center;
  margin-top: var(--spacing-lg);
}

.login-help a {
  color: var(--primary);
  font-weight: 500;
}

.demo-credentials {
  margin-top: var(--spacing-lg);
  padding: var(--spacing-md);
  background: var(--gray-50);
  border-radius: var(--radius-md);
  text-align: center;
  font-size: 0.875rem;
  color: var(--gray-600);
}

.error-message {
  padding: var(--spacing-md);
  background: #fee2e2;
  color: #991b1b;
  border-radius: var(--radius-md);
  font-size: 0.875rem;
  margin-bottom: var(--spacing-md);
}

.admin-panel {
  min-height: 100vh;
  background: var(--gray-50);
}

.admin-nav {
  background: white;
  border-bottom: 1px solid var(--gray-200);
  padding: var(--spacing-md) var(--spacing-lg);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: var(--spacing-lg);
}

.admin-nav-brand {
  display: flex;
  align-items: center;
  gap: var(--spacing-sm);
  font-weight: 600;
  font-size: 1.25rem;
}

.logo-small {
  width: 32px;
  height: 32px;
}

.admin-nav-links {
  display: flex;
  gap: var(--spacing-md);
}

.nav-link {
  padding: 0.5rem 1rem;
  border-radius: var(--radius-md);
  font-weight: 500;
  color: var(--gray-600);
  transition: all 0.2s;
}

.nav-link:hover,
.nav-link.active {
  background: var(--gray-100);
  color: var(--primary);
}

.admin-view {
  display: none;
  padding: var(--spacing-2xl);
}

.admin-view.active {
  display: block;
}

.admin-header {
  margin-bottom: var(--spacing-2xl);
}

.admin-header h1 {
  font-size: 2rem;
  font-weight: 700;
  margin-bottom: 0.5rem;
}

.admin-header p {
  color: var(--gray-600);
}

.stats-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: var(--spacing-lg);
  margin-bottom: var(--spacing-2xl);
}

.stat-card {
  background: white;
  padding: var(--spacing-lg);
  border-radius: var(--radius-xl);
  border: 1px solid var(--gray-200);
  display: flex;
  align-items: center;
  gap: var(--spacing-md);
}

.stat-icon {
  font-size: 2rem;
  width: 56px;
  height: 56px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: var(--gray-50);
  border-radius: var(--radius-lg);
}

.stat-content {
  flex: 1;
}

.stat-card .stat-value {
  font-size: 2rem;
  font-weight: 700;
  color: var(--gray-900);
}

.stat-card .stat-label {
  font-size: 0.875rem;
  color: var(--gray-600);
}

.chart-section {
  background: white;
  padding: var(--spacing-xl);
  border-radius: var(--radius-xl);
  border: 1px solid var(--gray-200);
  margin-bottom: var(--spacing-lg);
}

.chart-section h2 {
  font-size: 1.25rem;
  font-weight: 600;
  margin-bottom: var(--spacing-lg);
}

.chart-container {
  position: relative;
  height: 300px;
}

.filters-bar {
  display: flex;
  gap: var(--spacing-md);
  margin-bottom: var(--spacing-lg);
  flex-wrap: wrap;
}

.search-box {
  flex: 1;
  min-width: 240px;
}

.search-box input {
  width: 100%;
  padding: 0.75rem 1rem;
  border: 2px solid var(--gray-200);
  border-radius: var(--radius-md);
  font-size: 0.9375rem;
}

.filter-select {
  padding: 0.75rem 1rem;
  border: 2px solid var(--gray-200);
  border-radius: var(--radius-md);
  font-size: 0.9375rem;
  background: white;
}

.table-container {
  background: white;
  border-radius: var(--radius-xl);
  border: 1px solid var(--gray-200);
  overflow: hidden;
}

.data-table {
  width: 100%;
  border-collapse: collapse;
}

.data-table thead {
  background: var(--gray-50);
}

.data-table th {
  padding: var(--spacing-md);
  text-align: left;
  font-weight: 600;
  font-size: 0.875rem;
  color: var(--gray-700);
  border-bottom: 2px solid var(--gray-200);
}

.data-table td {
  padding: var(--spacing-md);
  border-bottom: 1px solid var(--gray-200);
  font-size: 0.9375rem;
}

.data-table tbody tr:hover {
  background: var(--gray-50);
}

.empty-state {
  text-align: center;
  padding: var(--spacing-2xl) !important;
}

.empty-icon {
  font-size: 3rem;
  margin-bottom: var(--spacing-md);
}

.status-badge {
  display: inline-block;
  padding: 0.25rem 0.75rem;
  border-radius: 9999px;
  font-size: 0.75rem;
  font-weight: 600;
}

.status-new {
  background: #dbeafe;
  color: #1e40af;
}

.status-contacted {
  background: #fef3c7;
  color: #92400e;
}

.status-qualified {
  background: #e0e7ff;
  color: #3730a3;
}

.status-converted {
  background: #d1fae5;
  color: #065f46;
}

.status-lost {
  background: #fee2e2;
  color: #991b1b;
}

/* ===== MODAL ===== */
.modal {
  position: fixed;
  inset: 0;
  z-index: 9999;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: var(--spacing-lg);
}

.modal-overlay {
  position: absolute;
  inset: 0;
  background: rgba(0, 0, 0, 0.5);
  backdrop-filter: blur(4px);
}

.modal-content {
  position: relative;
  background: white;
  border-radius: var(--radius-2xl);
  box-shadow: var(--shadow-xl);
  max-width: 600px;
  width: 100%;
  max-height: 90vh;
  overflow-y: auto;
  padding: var(--spacing-xl);
}

.modal-close {
  position: absolute;
  top: var(--spacing-lg);
  right: var(--spacing-lg);
  width: 32px;
  height: 32px;
  border-radius: 50%;
  background: var(--gray-100);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.5rem;
  color: var(--gray-600);
  transition: all 0.2s;
}

.modal-close:hover {
  background: var(--gray-200);
  color: var(--gray-900);
}

.modal-body {
  margin: var(--spacing-lg) 0;
}

.modal-footer {
  display: flex;
  gap: var(--spacing-md);
  justify-content: flex-end;
  padding-top: var(--spacing-lg);
  border-top: 1px solid var(--gray-200);
}

/* ===== RESPONSIVE ===== */
@media (max-width: 1024px) {
  .benefits-content,
  .contact-content {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 768px) {
  .hero-title {
    font-size: 2.5rem;
  }
  
  .section-title {
    font-size: 2rem;
  }
  
  .hero-actions {
    flex-direction: column;
  }
  
  .hero-stats {
    flex-direction: column;
    gap: var(--spacing-lg);
  }
  
  .nav-links,
  .nav-actions {
    display: none;
  }
  
  .mobile-menu {
    display: flex;
  }
  
  .services-grid {
    grid-template-columns: 1fr;
  }
  
  .footer-content {
    flex-direction: column;
    gap: var(--spacing-lg);
    text-align: center;
  }
  
  .footer-bottom {
    flex-direction: column;
    gap: var(--spacing-md);
    text-align: center;
  }
  
  .admin-nav {
    flex-wrap: wrap;
  }
  
  .admin-nav-links {
    width: 100%;
    order: 3;
  }
  
  .filters-bar {
    flex-direction: column;
  }
  
  .table-container {
    overflow-x: auto;
  }
}