/* ========================================
   Emplorix Landing Page Styles
   Modern, Clean, Professional
   ======================================== */

/* CSS Variables */
:root {
  /* Modern Indigo-Violet Palette */
  --primary: #6366f1;
  --primary-dark: #4f46e5;
  --primary-light: #818cf8;
  --secondary: #10b981;
  --secondary-dark: #059669;
  --accent: #f59e0b;

  /* Neutral Scale (Slate) */
  --dark: #0f172a;
  /* Slate 900 */
  --dark-light: #1e293b;
  /* Slate 800 */
  --gray-900: #111827;
  --gray-800: #1f2937;
  --gray-700: #334155;
  /* Slate 700 */
  --gray-600: #475569;
  /* Slate 600 */
  --gray-500: #64748b;
  /* Slate 500 */
  --gray-400: #94a3b8;
  /* Slate 400 */
  --gray-300: #cbd5e1;
  /* Slate 300 */
  --gray-200: #e2e8f0;
  /* Slate 200 */
  --gray-100: #f1f5f9;
  /* Slate 100 */
  --gray-50: #f8fafc;
  /* Slate 50 */
  --white: #ffffff;

  /* Advanced Gradients */
  --gradient: linear-gradient(135deg, #6366f1 0%, #8b5cf6 100%);
  /* Indigo to Violet */
  --gradient-hover: linear-gradient(135deg, #4f46e5 0%, #7c3aed 100%);
  --gradient-text: linear-gradient(135deg, #4f46e5 0%, #ec4899 100%);
  /* Indigo to Pink */
  --gradient-surface: linear-gradient(180deg, rgba(255, 255, 255, 0.8) 0%, rgba(255, 255, 255, 0.4) 100%);

  /* Shadows */
  --shadow-sm: 0 1px 2px 0 rgb(0 0 0 / 0.05);
  --shadow: 0 4px 6px -1px rgb(0 0 0 / 0.05), 0 2px 4px -2px rgb(0 0 0 / 0.05);
  --shadow-md: 0 10px 15px -3px rgb(0 0 0 / 0.08), 0 4px 6px -4px rgb(0 0 0 / 0.08);
  --shadow-lg: 0 20px 25px -5px rgb(0 0 0 / 0.08), 0 8px 10px -6px rgb(0 0 0 / 0.08);
  --shadow-xl: 0 25px 50px -12px rgb(0 0 0 / 0.15);
  --shadow-glow: 0 0 20px rgba(99, 102, 241, 0.3);

  /* Layout */
  --radius: 12px;
  --radius-lg: 20px;
  --radius-xl: 32px;
  --transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  --container-width: 1280px;
}

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

html {
  scroll-behavior: smooth;
}

body {
  font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
  font-size: 16px;
  line-height: 1.6;
  color: var(--gray-700);
  background: var(--white);
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

img {
  max-width: 100%;
  height: auto;
}

a {
  color: inherit;
  text-decoration: none;
  transition: var(--transition);
}

/* Container */
.container {
  max-width: var(--container-width);
  margin: 0 auto;
  padding: 0 24px;
}

/* Buttons */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  padding: 14px 28px;
  font-size: 15px;
  font-weight: 600;
  border-radius: 99px;
  /* Pill shape */
  border: none;
  cursor: pointer;
  transition: var(--transition);
  text-decoration: none;
  letter-spacing: -0.01em;
}

.btn-primary {
  background: var(--gradient);
  color: var(--white);
  box-shadow: 0 4px 14px 0 rgba(99, 102, 241, 0.3);
}

.btn-primary:hover {
  transform: translateY(-2px);
  box-shadow: 0 10px 25px 0 rgba(99, 102, 241, 0.4);
  background: var(--gradient-hover);
}

.btn-outline {
  background: transparent;
  color: var(--primary);
  border: 1.5px solid var(--gray-200);
}

.btn-outline:hover {
  border-color: var(--primary);
  background: var(--gray-50);
  color: var(--primary-dark);
}

.btn-ghost {
  background: transparent;
  color: var(--gray-600);
}

.btn-ghost:hover {
  background: var(--gray-100);
  color: var(--dark);
}

.btn-white {
  background: var(--white);
  color: var(--primary);
}

.btn-white:hover {
  transform: translateY(-2px);
  box-shadow: var(--shadow-lg);
}

.btn-lg {
  padding: 18px 36px;
  font-size: 17px;
}

/* Header */
.header {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 1000;
  background: rgba(255, 255, 255, 0.7);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  border-bottom: 1px solid rgba(255, 255, 255, 0.3);
  transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
}

.header.scrolled {
  background: rgba(255, 255, 255, 0.9);
  border-bottom: 1px solid var(--gray-200);
  box-shadow: var(--shadow-sm);
}

.header.scrolled {
  box-shadow: var(--shadow);
}

.nav {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 72px;
}

.logo {
  display: flex;
  align-items: center;
  gap: 10px;
}

.logo-img {
  width: 40px;
  height: 40px;
  object-fit: contain;
}

.logo-img.header-logo {
  width: 140px;
  height: 48px;
}

.logo-text {
  font-size: 22px;
  font-weight: 700;
  color: var(--dark);
}

.nav-links {
  display: flex;
  align-items: center;
  gap: 32px;
}

.nav-links a {
  font-size: 15px;
  font-weight: 500;
  color: var(--gray-600);
}

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

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

.mobile-menu-btn {
  display: none;
  background: none;
  border: none;
  font-size: 24px;
  color: var(--gray-700);
  cursor: pointer;
}

/* Mobile Menu */
.mobile-menu {
  position: fixed;
  top: 72px;
  left: 0;
  right: 0;
  background: var(--white);
  border-bottom: 1px solid var(--gray-200);
  padding: 24px;
  display: none;
  z-index: 999;
}

.mobile-menu.active {
  display: block;
}

.mobile-menu-content {
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.mobile-menu-content a {
  font-size: 16px;
  font-weight: 500;
  color: var(--gray-700);
  padding: 8px 0;
}

.mobile-menu-actions {
  display: flex;
  flex-direction: column;
  gap: 12px;
  margin-top: 16px;
}

/* Hero Section */
.hero {
  position: relative;
  padding: 180px 0 140px;
  background: var(--white);
  overflow: hidden;
}

.hero-bg {
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background:
    radial-gradient(circle at 15% 50%, rgba(99, 102, 241, 0.08) 0%, transparent 25%),
    radial-gradient(circle at 85% 30%, rgba(236, 72, 153, 0.08) 0%, transparent 25%);
  z-index: 0;
}

.hero-bg::after {
  content: '';
  position: absolute;
  inset: 0;
  background-image: url("data:image/svg+xml,%3Csvg width='60' height='60' viewBox='0 0 60 60' xmlns='http://www.w3.org/2000/svg'%3E%3Cg fill='none' fill-rule='evenodd'%3E%3Cg fill='%236366f1' fill-opacity='0.03'%3E%3Cpath d='M36 34v-4h-2v4h-4v2h4v4h2v-4h4v-2h-4zm0-30V0h-2v4h-4v2h4v4h2V6h4V4h-4zM6 34v-4H4v4H0v2h4v4h2v-4h4v-2H6zM6 4V0H4v4H0v2h4v4h2V6h4V4H6z'/%3E%3C/g%3E%3C/g%3E%3C/svg%3E");
  opacity: 0.8;
}

.hero-content {
  position: relative;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 60px;
  align-items: center;
}

.hero-title {
  font-size: 64px;
  font-weight: 800;
  line-height: 1.1;
  color: var(--dark);
  margin-bottom: 24px;
  letter-spacing: -0.02em;
}

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

.hero-description {
  font-size: 18px;
  color: var(--gray-600);
  margin-bottom: 32px;
  max-width: 540px;
}

.hero-actions {
  display: flex;
  gap: 16px;
  margin-bottom: 48px;
}

.hero-stats {
  display: flex;
  gap: 48px;
}

.stat {
  display: flex;
  flex-direction: column;
}

.stat-value {
  font-size: 32px;
  font-weight: 700;
  color: var(--dark);
}

.stat-label {
  font-size: 14px;
  color: var(--gray-500);
}

/* Dashboard Preview */
.hero-visual {
  position: relative;
  perspective: 2000px;
  /* Enhanced 3D depth */
}

.dashboard-preview {
  background: var(--white);
  border-radius: var(--radius-xl);
  box-shadow:
    0 50px 100px -20px rgba(50, 50, 93, 0.15),
    0 30px 60px -30px rgba(0, 0, 0, 0.15),
    0 -2px 6px 0 rgba(10, 37, 64, 0.05) inset;
  /* Inner highlight */
  overflow: hidden;
  transform: rotateY(-10deg) rotateX(5deg);
  transition: transform 0.4s cubic-bezier(0.25, 0.46, 0.45, 0.94);
  /* Smooth interaction */
  border: 1px solid rgba(255, 255, 255, 0.8);
}

.dashboard-preview:hover {
  transform: rotateY(0) rotateX(0) scale(1.02);
  box-shadow:
    0 60px 120px -20px rgba(50, 50, 93, 0.2),
    0 40px 80px -40px rgba(0, 0, 0, 0.2);
}

.preview-header {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 12px 16px;
  background: var(--gray-100);
  border-bottom: 1px solid var(--gray-200);
}

.preview-dots {
  display: flex;
  gap: 6px;
}

.preview-dots span {
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background: var(--gray-300);
}

.preview-dots span:first-child {
  background: #ef4444;
}

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

.preview-dots span:last-child {
  background: #22c55e;
}

.preview-title {
  font-size: 13px;
  font-weight: 500;
  color: var(--gray-500);
}

.preview-content {
  display: flex;
  min-height: 300px;
}

.preview-sidebar {
  width: 60px;
  background: var(--dark);
  padding: 16px 12px;
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.preview-menu-item {
  height: 36px;
  border-radius: 8px;
  background: var(--dark-light);
  display: flex;
  align-items: center;
  justify-content: center;
}

.preview-menu-item i {
  color: var(--gray-500);
  font-size: 14px;
}

.preview-menu-item.active {
  background: var(--primary);
}

.preview-menu-item.active i {
  color: var(--white);
}

.preview-main {
  flex: 1;
  padding: 16px;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 12px;
}

.preview-card {
  background: var(--white);
  border-radius: var(--radius);
  border: 1px solid var(--gray-200);
}

.preview-card.stat-card {
  padding: 14px;
  display: flex;
  align-items: center;
  gap: 12px;
}

.stat-icon {
  width: 40px;
  height: 40px;
  border-radius: 10px;
  display: flex;
  align-items: center;
  justify-content: center;
}

.stat-icon i {
  font-size: 16px;
  color: var(--white);
}

.stat-icon.blue {
  background: linear-gradient(135deg, #6366f1, #4f46e5);
}

.stat-icon.green {
  background: linear-gradient(135deg, #10b981, #059669);
}

.stat-icon.purple {
  background: linear-gradient(135deg, #8b5cf6, #7c3aed);
}

.stat-icon.orange {
  background: linear-gradient(135deg, #f59e0b, #d97706);
}

.stat-info {
  display: flex;
  flex-direction: column;
}

.stat-info .stat-number {
  font-size: 20px;
  font-weight: 700;
  color: var(--dark);
  line-height: 1.2;
}

.stat-info .stat-label {
  font-size: 11px;
  color: var(--gray-500);
}

.preview-chart {
  grid-column: span 2;
  background: var(--white);
  border: 1px solid var(--gray-200);
  border-radius: var(--radius);
  padding: 14px;
}

.chart-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 12px;
}

.chart-header span {
  font-size: 12px;
  font-weight: 600;
  color: var(--dark);
}

.chart-period {
  font-size: 11px !important;
  font-weight: 500 !important;
  color: var(--gray-500) !important;
  background: var(--gray-100);
  padding: 2px 8px;
  border-radius: 4px;
}

.chart-bars {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  height: 70px;
  gap: 8px;
}

.chart-bars .bar {
  flex: 1;
  background: linear-gradient(180deg, var(--primary) 0%, var(--primary-dark) 100%);
  border-radius: 4px 4px 0 0;
  height: var(--height);
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  align-items: center;
  position: relative;
}

.chart-bars .bar span {
  font-size: 9px;
  color: var(--gray-500);
  position: absolute;
  bottom: -16px;
}

.hero-wave {
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
}

.hero-wave svg {
  display: block;
  width: 100%;
  height: auto;
}

/* Section Styles */
.section-header {
  text-align: center;
  max-width: 640px;
  margin: 0 auto 60px;
}

.section-badge {
  display: inline-block;
  padding: 6px 16px;
  font-size: 13px;
  font-weight: 600;
  color: var(--primary);
  background: rgba(99, 102, 241, 0.1);
  border-radius: 20px;
  margin-bottom: 16px;
}

.section-title {
  font-size: 40px;
  font-weight: 700;
  color: var(--dark);
  margin-bottom: 16px;
}

.section-description {
  font-size: 18px;
  color: var(--gray-600);
}

/* Features Section */
.features {
  padding: 120px 0;
  background: var(--white);
}

.features-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 32px;
}

.feature-card {
  padding: 40px 32px;
  background: var(--white);
  border: 1px solid var(--gray-100);
  border-radius: var(--radius-lg);
  transition: var(--transition);
  position: relative;
  overflow: hidden;
  z-index: 1;
}

.feature-card::after {
  content: '';
  position: absolute;
  inset: 0;
  background: radial-gradient(circle at top right, rgba(99, 102, 241, 0.03), transparent 70%);
  opacity: 0;
  transition: opacity 0.5s ease;
  z-index: -1;
}

.feature-card:hover {
  transform: translateY(-8px);
  box-shadow: var(--shadow-xl);
  border-color: rgba(99, 102, 241, 0.1);
}

.feature-card:hover::after {
  opacity: 1;
}

.feature-icon {
  width: 64px;
  height: 64px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: var(--gray-50);
  border-radius: 20px;
  margin-bottom: 24px;
  transition: var(--transition);
  color: var(--primary);
  font-size: 24px;
}

.feature-card:hover .feature-icon {
  background: var(--primary);
  color: var(--white);
  transform: scale(1.1) rotate(3deg);
  box-shadow: 0 10px 20px -5px rgba(99, 102, 241, 0.4);
}

.feature-card h3 {
  font-size: 20px;
  font-weight: 700;
  color: var(--dark);
  margin-bottom: 12px;
  letter-spacing: -0.01em;
}

.feature-card p {
  font-size: 16px;
  color: var(--gray-600);
  line-height: 1.6;
}

/* Benefits Section */
.benefits {
  padding: 120px 0;
  background: var(--gray-50);
  position: relative;
}

.benefits::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 1px;
  background: linear-gradient(90deg, transparent, rgba(0, 0, 0, 0.05), transparent);
}

.benefits-content {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 100px;
  align-items: center;
}

/* ... existing benefits-text ... */

.benefit-item {
  display: flex;
  gap: 20px;
  padding: 16px;
  border-radius: var(--radius);
  transition: var(--transition);
}

.benefit-item:hover {
  background: var(--white);
  box-shadow: var(--shadow);
  transform: translateX(10px);
}

.benefit-check {
  width: 32px;
  height: 32px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: var(--secondary);
  border-radius: 50%;
  flex-shrink: 0;
  box-shadow: 0 2px 5px rgba(16, 185, 129, 0.3);
}

/* ... existing benefit-content ... */

.benefits-card {
  background: var(--white);
  border-radius: 24px;
  /* Larger radius */
  padding: 40px;
  box-shadow:
    0 25px 50px -12px rgba(0, 0, 0, 0.1),
    0 0 0 1px rgba(0, 0, 0, 0.03);
  position: relative;
  z-index: 10;
}

.benefits-card::before {
  content: '';
  position: absolute;
  inset: -15px;
  border-radius: 36px;
  background: linear-gradient(135deg, rgba(99, 102, 241, 0.1), rgba(236, 72, 153, 0.1));
  z-index: -1;
  transform: rotate(-2deg);
}

.benefits-card-header {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-bottom: 32px;
}

.benefits-card-header i {
  font-size: 24px;
  color: var(--primary);
}

.benefits-card-header span {
  font-size: 18px;
  font-weight: 600;
  color: var(--dark);
}

.benefits-metrics {
  display: flex;
  flex-direction: column;
  gap: 24px;
}

.metric {
  display: flex;
  align-items: center;
  gap: 16px;
}

.metric-bar {
  flex: 1;
  height: 8px;
  background: var(--gray-200);
  border-radius: 4px;
  position: relative;
  overflow: hidden;
}

.metric-bar::after {
  content: '';
  position: absolute;
  left: 0;
  top: 0;
  bottom: 0;
  width: var(--width);
  background: var(--gradient);
  border-radius: 4px;
}

.metric span {
  font-size: 14px;
  color: var(--gray-600);
  min-width: 140px;
}

.metric strong {
  font-size: 16px;
  font-weight: 600;
  color: var(--dark);
  min-width: 48px;
  text-align: right;
}

/* Modules Section */
.modules {
  padding: 100px 0;
}

.modules-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 24px;
}

/* Modules Section */
.module-card {
  padding: 32px 24px;
  background: var(--white);
  border: 1px solid var(--gray-200);
  border-radius: 20px;
  text-align: center;
  transition: var(--transition);
  height: 100%;
  display: flex;
  flex-direction: column;
  align-items: center;
}

.module-card:hover {
  border-color: var(--primary);
  transform: translateY(-6px);
  box-shadow: var(--shadow-lg);
}

.module-icon {
  width: 72px;
  height: 72px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: var(--gray-50);
  border-radius: 24px;
  margin: 0 auto 20px;
  transition: var(--transition);
}

.module-card:hover .module-icon {
  background: var(--primary);
  transform: rotate(360deg);
}

.module-icon i {
  font-size: 32px;
  color: var(--gray-500);
  transition: var(--transition);
}

.module-card:hover .module-icon i {
  color: var(--white);
}

.module-card h4 {
  font-size: 18px;
  font-weight: 700;
  color: var(--dark);
  margin-bottom: 8px;
}

.module-card p {
  font-size: 15px;
  color: var(--gray-500);
  line-height: 1.5;
}

/* CTA Section */
.cta {
  padding: 120px 0;
  background: linear-gradient(135deg, var(--dark) 0%, var(--dark-light) 50%, var(--primary-dark) 100%);
  position: relative;
  overflow: hidden;
}

.cta::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 100px;
  background: linear-gradient(to bottom, white 0%, transparent 100%);
  pointer-events: none;
}

.cta::after {
  content: '';
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  width: 800px;
  height: 800px;
  background: radial-gradient(circle, rgba(99, 102, 241, 0.15) 0%, transparent 60%);
  pointer-events: none;
}

.cta-content {
  text-align: center;
  max-width: 700px;
  margin: 0 auto;
  position: relative;
  z-index: 1;
}

.cta h2 {
  font-size: 44px;
  font-weight: 800;
  color: var(--white);
  margin-bottom: 20px;
  line-height: 1.2;
}

.cta p {
  font-size: 20px;
  color: rgba(255, 255, 255, 0.7);
  margin-bottom: 40px;
  line-height: 1.6;
}

.cta-form {
  max-width: 520px;
  margin: 0 auto;
}

.cta-input-group {
  display: flex;
  gap: 12px;
  background: rgba(255, 255, 255, 0.1);
  border-radius: var(--radius-lg);
  padding: 8px;
  backdrop-filter: blur(10px);
  border: 1px solid rgba(255, 255, 255, 0.2);
}

.cta-input-group input {
  flex: 1;
  padding: 16px 20px;
  font-size: 16px;
  border: none;
  background: transparent;
  color: var(--white);
  font-family: inherit;
  min-width: 0;
}

.cta-input-group input::placeholder {
  color: rgba(255, 255, 255, 0.5);
}

.cta-input-group input:focus {
  outline: none;
}

.cta-input-group .btn {
  flex-shrink: 0;
  padding: 16px 28px;
  font-size: 15px;
  white-space: nowrap;
}

.cta-hint {
  margin-top: 16px;
  font-size: 14px;
  color: rgba(255, 255, 255, 0.5);
}

/* Legacy CTA button styles - keep for backwards compatibility */
.cta-actions {
  display: flex;
  justify-content: center;
  gap: 16px;
}

.cta .btn-white {
  background: var(--white);
  color: var(--primary-dark);
  padding: 18px 36px;
  font-size: 17px;
  font-weight: 600;
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.2);
}

.cta .btn-white:hover {
  transform: translateY(-3px);
  box-shadow: 0 8px 30px rgba(0, 0, 0, 0.3);
}

/* CTA responsive */
@media (max-width: 600px) {
  .cta-input-group {
    flex-direction: column;
  }

  .cta-input-group .btn {
    width: 100%;
  }
}

/* Footer */
.footer {
  padding: 80px 0 40px;
  background: var(--dark);
  color: var(--gray-400);
  position: relative;
}

.footer::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 1px;
  background: linear-gradient(90deg, transparent, var(--primary), var(--secondary), transparent);
}

.footer-content {
  display: grid;
  grid-template-columns: 1.2fr 2fr;
  gap: 80px;
  margin-bottom: 60px;
}

.footer-brand {
  max-width: 300px;
}

.footer-brand .logo {
  margin-bottom: 20px;
}

.footer-brand .logo-img {
  width: 48px;
  height: 48px;
  filter: brightness(0) invert(1);
}

.footer-brand .logo-text {
  color: var(--white);
  font-size: 24px;
}

.footer-brand p {
  font-size: 15px;
  line-height: 1.7;
  color: var(--gray-400);
  margin-bottom: 24px;
}

.footer-brand-social {
  display: flex;
  gap: 12px;
}

.footer-brand-social a {
  width: 38px;
  height: 38px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 10px;
  color: var(--gray-400);
  transition: var(--transition);
}

.footer-brand-social a:hover {
  background: var(--primary);
  border-color: var(--primary);
  color: var(--white);
  transform: translateY(-2px);
}

.footer-links {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 40px;
}

.footer-column h5 {
  font-size: 15px;
  font-weight: 600;
  color: var(--white);
  margin-bottom: 24px;
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

.footer-column a {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 15px;
  color: var(--gray-400);
  margin-bottom: 14px;
  transition: var(--transition);
}

.footer-column a::before {
  content: '';
  width: 0;
  height: 2px;
  background: var(--primary);
  transition: width 0.3s ease;
}

.footer-column a:hover {
  color: var(--white);
  padding-left: 4px;
}

.footer-column a:hover::before {
  width: 12px;
}

.footer-bottom {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding-top: 32px;
  border-top: 1px solid rgba(255, 255, 255, 0.08);
}

.footer-bottom p {
  font-size: 14px;
  color: var(--gray-500);
}

.footer-bottom-links {
  display: flex;
  gap: 24px;
}

.footer-bottom-links a {
  font-size: 14px;
  color: var(--gray-500);
  transition: var(--transition);
}

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

.footer-social {
  display: flex;
  gap: 12px;
}

.footer-social a {
  width: 40px;
  height: 40px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 50%;
  color: var(--gray-400);
  transition: var(--transition);
}

.footer-social a:hover {
  background: var(--primary);
  border-color: var(--primary);
  color: var(--white);
  transform: translateY(-2px);
}

/* Animations */
@keyframes fadeInUp {
  from {
    opacity: 0;
    transform: translateY(30px);
  }

  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@keyframes fadeIn {
  from {
    opacity: 0;
  }

  to {
    opacity: 1;
  }
}

@keyframes float {

  0%,
  100% {
    transform: translateY(0);
  }

  50% {
    transform: translateY(-10px);
  }
}

@keyframes pulse {

  0%,
  100% {
    transform: scale(1);
  }

  50% {
    transform: scale(1.05);
  }
}

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

  100% {
    background-position: 200% 0;
  }
}

@keyframes gradientMove {
  0% {
    background-position: 0% 50%;
  }

  50% {
    background-position: 100% 50%;
  }

  100% {
    background-position: 0% 50%;
  }
}

/* Scroll Animations */
.animate-on-scroll {
  opacity: 0;
  transform: translateY(30px);
  transition: opacity 0.6s ease, transform 0.6s ease;
}

.animate-on-scroll.animated {
  opacity: 1;
  transform: translateY(0);
}

.animate-on-scroll:nth-child(2) {
  transition-delay: 0.1s;
}

.animate-on-scroll:nth-child(3) {
  transition-delay: 0.2s;
}

.animate-on-scroll:nth-child(4) {
  transition-delay: 0.3s;
}

.animate-on-scroll:nth-child(5) {
  transition-delay: 0.4s;
}

.animate-on-scroll:nth-child(6) {
  transition-delay: 0.5s;
}

/* Hero Animations */
.hero-title {
  animation: fadeInUp 0.8s ease forwards;
}

.hero-description {
  animation: fadeInUp 0.8s ease 0.2s forwards;
  opacity: 0;
}

.hero-actions {
  animation: fadeInUp 0.8s ease 0.4s forwards;
  opacity: 0;
}

.hero-stats {
  animation: fadeInUp 0.8s ease 0.6s forwards;
  opacity: 0;
}

.hero-visual {
  animation: fadeIn 1s ease 0.5s forwards;
  opacity: 0;
}

/* Floating Dashboard */
.dashboard-preview {
  animation: float 6s ease-in-out infinite;
}

/* Gradient Text Animation */
.gradient-text {
  background: linear-gradient(135deg, var(--primary), var(--secondary), var(--primary));
  background-size: 200% auto;
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  animation: gradientMove 4s ease infinite;
}

/* Button Shine Effect */
.btn-primary {
  position: relative;
  overflow: hidden;
}

.btn-primary::after {
  content: '';
  position: absolute;
  top: -50%;
  left: -50%;
  width: 200%;
  height: 200%;
  background: linear-gradient(to right,
      transparent 0%,
      rgba(255, 255, 255, 0.2) 50%,
      transparent 100%);
  transform: rotate(45deg) translateX(-100%);
  transition: transform 0.6s;
}

.btn-primary:hover::after {
  transform: rotate(45deg) translateX(100%);
}

/* Stat Counter Animation */
.stat-value {
  display: inline-block;
}

.stat-value.counting {
  animation: pulse 0.3s ease;
}

/* Feature Card Hover Effects */
.feature-card {
  position: relative;
  overflow: hidden;
}

.feature-card::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 3px;
  background: var(--gradient);
  transform: scaleX(0);
  transition: transform 0.3s ease;
}

.feature-card:hover::before {
  transform: scaleX(1);
}

.feature-icon {
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.feature-card:hover .feature-icon {
  transform: scale(1.1);
  box-shadow: 0 8px 20px rgba(99, 102, 241, 0.3);
}

/* Module Card Effects */
.module-card {
  position: relative;
  overflow: hidden;
}

.module-card::after {
  content: '';
  position: absolute;
  inset: 0;
  background: var(--gradient);
  opacity: 0;
  transition: opacity 0.3s ease;
  z-index: 0;
}

.module-card:hover::after {
  opacity: 0.05;
}

.module-card>* {
  position: relative;
  z-index: 1;
}

/* Benefit Check Animation */
.benefit-check {
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.benefit-item:hover .benefit-check {
  transform: scale(1.15);
  box-shadow: 0 4px 15px rgba(16, 185, 129, 0.4);
}

/* Chart Bar Animation */
.chart-bars .bar {
  transform-origin: bottom;
  animation: growBar 1s ease forwards;
  opacity: 0;
}

@keyframes growBar {
  from {
    transform: scaleY(0);
    opacity: 0;
  }

  to {
    transform: scaleY(1);
    opacity: 1;
  }
}

.chart-bars .bar:nth-child(1) {
  animation-delay: 0.1s;
}

.chart-bars .bar:nth-child(2) {
  animation-delay: 0.2s;
}

.chart-bars .bar:nth-child(3) {
  animation-delay: 0.3s;
}

.chart-bars .bar:nth-child(4) {
  animation-delay: 0.4s;
}

.chart-bars .bar:nth-child(5) {
  animation-delay: 0.5s;
}

.chart-bars .bar:nth-child(6) {
  animation-delay: 0.6s;
}

.chart-bars .bar:nth-child(7) {
  animation-delay: 0.7s;
}

.chart-bars .bar:nth-child(8) {
  animation-delay: 0.8s;
}

/* Metrics Bar Animation */
.metric-bar::after {
  animation: expandBar 1.5s ease forwards;
  transform-origin: left;
}

@keyframes expandBar {
  from {
    transform: scaleX(0);
  }

  to {
    transform: scaleX(1);
  }
}

/* CTA Section Glow */
.cta {
  position: relative;
}

.cta::before {
  content: '';
  position: absolute;
  top: -50%;
  left: -50%;
  width: 200%;
  height: 200%;
  background: radial-gradient(circle, rgba(255, 255, 255, 0.1) 0%, transparent 60%);
  animation: float 8s ease-in-out infinite;
}

/* Social Icons Hover */
.footer-social a {
  position: relative;
  overflow: hidden;
}

.footer-social a::before {
  content: '';
  position: absolute;
  inset: 0;
  background: var(--gradient);
  opacity: 0;
  transition: opacity 0.3s ease;
}

.footer-social a:hover::before {
  opacity: 1;
}

.footer-social a i {
  position: relative;
  z-index: 1;
}

/* Smooth Section Transitions */
section {
  position: relative;
}

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

  .hero-title {
    font-size: 44px;
  }

  .hero-description {
    margin: 0 auto 32px;
  }

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

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

  .hero-visual {
    display: none;
  }

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

  .benefits-content {
    grid-template-columns: 1fr;
    gap: 60px;
  }

  .benefits-text .section-title {
    text-align: center;
  }

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

  .footer-content {
    grid-template-columns: 1fr;
    gap: 48px;
  }
}

@media (max-width: 768px) {

  .nav-links,
  .nav-actions {
    display: none;
  }

  .mobile-menu-btn {
    display: block;
  }

  .hero {
    padding: 120px 0 80px;
  }

  .hero-title {
    font-size: 36px;
  }

  .hero-actions {
    flex-direction: column;
    align-items: center;
  }

  .hero-stats {
    flex-direction: column;
    gap: 24px;
    align-items: center;
  }

  .section-title {
    font-size: 32px;
  }

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

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

  .footer-links {
    grid-template-columns: 1fr;
    gap: 32px;
  }

  .footer-bottom {
    flex-direction: column;
    gap: 16px;
    text-align: center;
  }

  .cta h2 {
    font-size: 32px;
  }
}

/* ========================================
   Registration Modal
   ======================================== */

.modal {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  z-index: 2000;
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.3s ease, visibility 0.3s ease;
}

.modal.active {
  opacity: 1;
  visibility: visible;
}

.modal-overlay {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(15, 23, 42, 0.7);
  backdrop-filter: blur(4px);
}

.modal-content {
  position: relative;
  background: var(--white);
  border-radius: var(--radius-xl);
  box-shadow: var(--shadow-xl);
  max-width: 480px;
  width: 90%;
  max-height: 90vh;
  overflow-y: auto;
  padding: 40px;
  transform: translateY(20px);
  transition: transform 0.3s ease;
}

.modal.active .modal-content {
  transform: translateY(0);
}

.modal-close {
  position: absolute;
  top: 16px;
  right: 16px;
  width: 36px;
  height: 36px;
  border: none;
  background: var(--gray-100);
  border-radius: 50%;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--gray-600);
  transition: var(--transition);
}

.modal-close:hover {
  background: var(--gray-200);
  color: var(--gray-800);
}

.modal-header {
  text-align: center;
  margin-bottom: 32px;
}

.modal-header .modal-logo {
  height: 48px !important;
  width: auto !important;
  max-width: none;
  margin-bottom: 16px;
  object-fit: contain;
}

.modal-header h2 {
  font-size: 24px;
  font-weight: 700;
  color: var(--dark);
  margin-bottom: 8px;
}

.modal-header p {
  font-size: 15px;
  color: var(--gray-600);
}

.modal-form {
  display: flex;
  flex-direction: column;
  gap: 20px;
}

.form-group {
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.form-group label {
  font-size: 14px;
  font-weight: 600;
  color: var(--gray-700);
}

.form-group input {
  padding: 12px 16px;
  font-size: 15px;
  border: 2px solid var(--gray-200);
  border-radius: var(--radius);
  transition: var(--transition);
  font-family: inherit;
}

.form-group input:focus {
  outline: none;
  border-color: var(--primary);
  box-shadow: 0 0 0 4px rgba(99, 102, 241, 0.1);
}

.form-group input::placeholder {
  color: var(--gray-400);
}

.input-with-prefix {
  display: flex;
  align-items: center;
  border: 2px solid var(--gray-200);
  border-radius: var(--radius);
  overflow: hidden;
  transition: var(--transition);
}

.input-with-prefix:focus-within {
  border-color: var(--primary);
  box-shadow: 0 0 0 4px rgba(99, 102, 241, 0.1);
}

.input-prefix {
  padding: 12px 12px 12px 16px;
  background: var(--gray-100);
  color: var(--gray-600);
  font-size: 14px;
  white-space: nowrap;
  border-right: 1px solid var(--gray-200);
}

.input-with-prefix input {
  border: none;
  padding: 12px 16px 12px 8px;
  flex: 1;
  min-width: 0;
}

.input-with-prefix input:focus {
  outline: none;
  box-shadow: none;
}

.form-hint {
  font-size: 13px;
  color: var(--gray-500);
}

.form-hint.success {
  color: var(--secondary);
}

.form-hint.error {
  color: #ef4444;
}

.form-error {
  padding: 12px 16px;
  background: #fef2f2;
  border: 1px solid #fee2e2;
  border-radius: var(--radius);
  color: #ef4444;
  font-size: 14px;
  display: none;
}

.form-error.visible {
  display: block;
}

.btn-block {
  width: 100%;
}

.form-footer {
  font-size: 13px;
  color: var(--gray-500);
  text-align: center;
  margin-top: 8px;
}

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

.form-footer a:hover {
  text-decoration: underline;
}

/* Success state */
.modal-success {
  text-align: center;
  padding: 20px 0;
}

.success-icon {
  width: 80px;
  height: 80px;
  background: linear-gradient(135deg, var(--secondary) 0%, #059669 100%);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto 24px;
}

.success-icon i {
  font-size: 40px;
  color: var(--white);
}

.modal-success h3 {
  font-size: 24px;
  font-weight: 700;
  color: var(--dark);
  margin-bottom: 8px;
}

.modal-success p {
  font-size: 15px;
  color: var(--gray-600);
  margin-bottom: 24px;
}

/* Modal responsive */
@media (max-width: 480px) {
  .modal-content {
    padding: 24px;
    margin: 16px;
    width: calc(100% - 32px);
  }

  .input-prefix {
    font-size: 12px;
    padding: 12px 8px 12px 12px;
  }
}

/* CTA Section */
.cta {
  padding: 100px 0;
  background: var(--dark);
  color: var(--white);
  text-align: center;
}

/* ========================================
   Responsive Design
   ======================================== */

@media (max-width: 1024px) {
  :root {
    --container-width: 100%;
  }

  .hero {
    padding: 140px 0 100px;
  }

  .hero-content {
    grid-template-columns: 1fr;
    text-align: center;
    gap: 60px;
  }

  .hero-text {
    max-width: 700px;
    margin: 0 auto;
  }

  .hero-title {
    font-size: 52px;
  }

  .hero-description {
    margin: 0 auto 32px;
  }

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

  .hero-stats {
    justify-content: center;
    margin-top: 48px;
  }

  /* Keep visual but scale it down */
  .hero-visual {
    max-width: 600px;
    margin: 0 auto;
    perspective: 1000px;
  }

  .dashboard-preview {
    transform: rotateX(5deg);
    /* Remove Y rotation for simpler look */
  }

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

  .benefits-content {
    grid-template-columns: 1fr;
    gap: 60px;
  }

  .benefits-visual {
    order: -1;
    /* Show image first on tablet */
  }

  .benefits-text .section-title {
    text-align: center;
  }

  .benefits-text .section-badge {
    margin: 0 auto 16px;
    display: table;
  }

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

  .footer-content {
    grid-template-columns: 1fr;
    gap: 48px;
    text-align: center;
  }

  .footer-brand {
    align-items: center;
    max-width: 500px;
    margin: 0 auto;
  }

  .footer-brand-social {
    justify-content: center;
  }

  .footer-links {
    grid-template-columns: repeat(3, 1fr);
    text-align: left;
  }
}

@media (max-width: 768px) {

  .nav-links,
  .nav-actions {
    display: none;
  }

  .mobile-menu-btn {
    display: block;
    padding: 8px;
    /* Touch target */
  }

  .hero {
    padding: 120px 0 80px;
  }

  .hero-title {
    font-size: 36px;
  }

  .hero-description {
    font-size: 16px;
    padding: 0 16px;
  }

  .hero-actions {
    flex-direction: column;
    align-items: stretch;
    gap: 16px;
    padding: 0 24px;
  }

  .btn-lg {
    width: 100%;
  }

  .hero-stats {
    flex-direction: column;
    gap: 32px;
    align-items: center;
  }

  .stat {
    min-width: 120px;
  }

  .features {
    padding: 80px 0;
  }

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

  .feature-card {
    padding: 32px 24px;
  }

  .benefits {
    padding: 80px 0;
  }

  .benefits-content {
    gap: 40px;
  }

  .benefits-card {
    padding: 24px;
  }

  .benefits-metrics {
    gap: 16px;
  }

  .modules {
    padding: 80px 0;
  }

  .modules-grid {
    grid-template-columns: repeat(2, 1fr);
    /* 2 columns for better density */
    gap: 16px;
  }

  .module-card {
    padding: 24px 16px;
  }

  .cta {
    padding: 80px 0;
  }

  .cta h2 {
    font-size: 28px;
    padding: 0 16px;
  }

  .cta p {
    padding: 0 16px;
  }

  .cta-form {
    flex-direction: column;
    padding: 0 24px;
  }

  .cta-input-group {
    flex-direction: column;
  }

  .cta-input-group button {
    width: 100%;
  }

  .footer-links {
    grid-template-columns: 1fr;
    text-align: center;
    gap: 40px;
  }

  .footer-bottom {
    flex-direction: column;
    gap: 16px;
    text-align: center;
    padding-top: 32px;
  }

  /* Modal Mobile */
  .modal-content {
    padding: 32px 24px;
    width: 95%;
  }
}

@media (max-width: 480px) {
  .hero-title {
    font-size: 32px;
  }

  .modules-grid {
    grid-template-columns: 1fr;
    /* 1 column for very small screens */
  }

  .nav {
    height: 64px;
  }

  .mobile-menu {
    top: 64px;
  }
}