﻿/* ===== CSS VARIABLES & THEME ===== */
:root {
  /* Primary Brand Colors */
  --primary-50: #eff6ff;
  --primary-100: #dbeafe;
  --primary-200: #bfdbfe;
  --primary-300: #93c5fd;
  --primary-400: #60a5fa;
  --primary-500: #3b82f6;
  --primary-600: #2563eb;
  --primary-700: #1d4ed8;
  --primary-800: #1e40af;
  --primary-900: #1e3a8a;

  /* Secondary Colors */
  --secondary-50: #f8fafc;
  --secondary-100: #f1f5f9;
  --secondary-200: #e2e8f0;
  --secondary-300: #cbd5e1;
  --secondary-400: #94a3b8;
  --secondary-500: #64748b;
  --secondary-600: #475569;
  --secondary-700: #334155;
  --secondary-800: #1e293b;
  --secondary-900: #0f172a;

  /* Accent Colors */
  --accent-emerald: #10b981;
  --accent-amber: #f59e0b;
  --accent-rose: #f43f5e;
  --accent-purple: #8b5cf6;

  /* Neutrals */
  --white: #ffffff;
  --gray-50: #f9fafb;
  --gray-100: #f3f4f6;
  --gray-200: #e5e7eb;
  --gray-300: #d1d5db;
  --gray-400: #9ca3af;
  --gray-500: #6b7280;
  --gray-600: #4b5563;
  --gray-700: #374151;
  --gray-800: #1f2937;
  --gray-900: #111827;

  /* 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), 0 2px 4px -1px rgba(0, 0, 0, 0.06);
  --shadow-lg: 0 10px 15px -3px rgba(0, 0, 0, 0.1), 0 4px 6px -2px rgba(0, 0, 0, 0.05);
  --shadow-xl: 0 20px 25px -5px rgba(0, 0, 0, 0.1), 0 10px 10px -5px rgba(0, 0, 0, 0.04);

  /* Border Radius */
  --radius-sm: 0.25rem;
  --radius-md: 0.375rem;
  --radius-lg: 0.5rem;
  --radius-xl: 0.75rem;
  --radius-2xl: 1rem;

  /* Typography */
  --font-family-sans: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', 'Roboto', 'Oxygen', 'Ubuntu', 'Cantarell', 'Fira Sans', 'Droid Sans', 'Helvetica Neue', sans-serif;
  --font-family-mono: 'SF Mono', Monaco, 'Cascadia Code', 'Roboto Mono', Consolas, 'Courier New', monospace;
}

/* ===== BASE STYLES ===== */
html {
  font-size: 14px;
  scroll-behavior: smooth;
  position: relative;
  min-height: 100%;
  overflow-y: scroll;
}

@media (min-width: 768px) {
  html {
    font-size: 16px;
  }
}

body {
  font-family: var(--font-family-sans);
  margin: 0;
  padding: 0;
  line-height: 1.6;
  background: linear-gradient(to bottom, var(--gray-50), var(--white));
  color: var(--gray-800);
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
}

/* ===== LAYOUT STRUCTURE ===== */
.main-content {
  flex: 1;
  padding-top: 80px; /* Account for fixed navbar */
  width: 100%;
}

.content-wrapper {
  min-height: calc(100vh - 80px - 300px); /* Full height minus header and footer */
}

/* Remove max-width constraints for full-width design */
.container {
  max-width: 1400px !important; /* Increased from default Bootstrap */
  width: 100%;
  padding-right: 15px;
  padding-left: 15px;
  margin-right: auto;
  margin-left: auto;
}

/* Full-width container variant */
.container-fluid {
  width: 100%;
  padding-right: 0;
  padding-left: 0;
  margin-right: auto;
  margin-left: auto;
}

/* ===== TYPOGRAPHY ===== */
h1, h2, h3, h4, h5, h6 {
  font-weight: 600;
  line-height: 1.2;
  color: var(--gray-900);
  margin-bottom: 0.75rem;
}

h1 {
  font-size: 2.5rem;
  font-weight: 700;
  letter-spacing: -0.025em;
}

h2 {
  font-size: 2rem;
  margin-top: 2rem;
}

h3 {
  font-size: 1.5rem;
}

h4 {
  font-size: 1.25rem;
}

.display-4 {
  font-size: 3rem;
  font-weight: 700;
  letter-spacing: -0.03em;
  color: var(--gray-900);
}

.display-5 {
  font-size: 2.5rem;
  font-weight: 700;
  letter-spacing: -0.025em;
}

.display-6 {
  font-size: 2rem;
  font-weight: 700;
  letter-spacing: -0.02em;
}

.lead {
  font-size: 1.125rem;
  font-weight: 400;
  color: var(--gray-600);
  line-height: 1.7;
}

/* ===== ENHANCED COMPONENTS ===== */

/* Navigation */
.navbar {
  background: rgba(255, 255, 255, 0.95) !important;
  backdrop-filter: blur(10px);
  border-bottom: 1px solid var(--gray-200);
  box-shadow: var(--shadow-sm);
  padding: 0.75rem 0;
}

.navbar-brand {
  font-weight: 700;
  color: var(--primary-600) !important;
  font-size: 1.5rem;
}

.nav-link {
  font-weight: 500;
  color: var(--gray-600) !important;
  transition: color 0.2s ease;
}

.nav-link:hover {
  color: var(--primary-600) !important;
}

/* Community Banner */
.community-banner {
  font-size: 0.9rem;
  z-index: 1060; /* Above navbar */
  position: relative;
}

.community-banner .btn {
  font-size: 0.8rem;
  padding: 0.25rem 0.75rem;
  border-radius: var(--radius-md);
}

@media (max-width: 768px) {
  .community-banner .d-flex {
    flex-direction: column;
    gap: 0.5rem;
  }
  
  .community-banner span {
    margin: 0 !important;
  }
}

/* Buttons */
.btn {
  font-weight: 500;
  border-radius: var(--radius-lg);
  padding: 0.75rem 1.5rem;
  transition: all 0.2s ease;
  border: none;
  position: relative;
  overflow: hidden;
}

.btn-primary {
  background: linear-gradient(135deg, var(--primary-600), var(--primary-700));
  color: var(--white);
  box-shadow: var(--shadow-md);
}

.btn-primary:hover {
  background: linear-gradient(135deg, var(--primary-700), var(--primary-800));
  transform: translateY(-1px);
  box-shadow: var(--shadow-lg);
  color: var(--white);
}

.btn-secondary {
  background: linear-gradient(135deg, var(--gray-600), var(--gray-700));
  color: var(--white);
  box-shadow: var(--shadow-md);
}

.btn-secondary:hover {
  background: linear-gradient(135deg, var(--gray-700), var(--gray-800));
  transform: translateY(-1px);
  box-shadow: var(--shadow-lg);
  color: var(--white);
}

.btn-outline-primary {
  border: 2px solid var(--primary-600);
  color: var(--primary-600);
  background: transparent;
}

.btn-outline-primary:hover {
  background: var(--primary-600);
  color: var(--white);
  transform: translateY(-1px);
  box-shadow: var(--shadow-lg);
}

.btn-outline-secondary {
  border: 2px solid var(--gray-300);
  color: var(--gray-700);
  background: transparent;
}

.btn-outline-secondary:hover {
  background: var(--gray-700);
  color: var(--white);
  border-color: var(--gray-700);
  transform: translateY(-1px);
  box-shadow: var(--shadow-md);
}

.btn-success {
  background: linear-gradient(135deg, var(--accent-emerald), #059669);
  color: var(--white);
  box-shadow: var(--shadow-md);
}

.btn-success:hover {
  background: linear-gradient(135deg, #059669, #047857);
  transform: translateY(-1px);
  box-shadow: var(--shadow-lg);
  color: var(--white);
}

.btn-lg {
  padding: 1rem 2rem;
  font-size: 1.125rem;
  border-radius: var(--radius-xl);
}

/* Cards */
.card {
  border: 1px solid var(--gray-200);
  border-radius: var(--radius-xl);
  background: var(--white);
  transition: all 0.3s ease;
  overflow: hidden;
}

.card:hover {
  transform: translateY(-2px);
  box-shadow: var(--shadow-lg);
}

.card-body {
  padding: 2rem;
}

.card.shadow-sm {
  box-shadow: var(--shadow-md);
}

.card.shadow-lg {
  box-shadow: var(--shadow-lg);
}

.card.shadow-xl {
  box-shadow: var(--shadow-xl);
}

/* Forms */
.form-control, .form-select {
  border: 2px solid var(--gray-300);
  border-radius: var(--radius-lg);
  padding: 0.875rem 1rem;
  font-size: 1rem;
  transition: all 0.2s ease;
  background: var(--white);
}

.form-control:focus, .form-select:focus {
  border-color: var(--primary-500);
  box-shadow: 0 0 0 3px rgba(59, 130, 246, 0.1);
  outline: none;
}

.form-control::placeholder {
  color: var(--gray-400);
}

.form-control-lg {
  padding: 1rem 1.25rem;
  font-size: 1.125rem;
  border-radius: var(--radius-xl);
}

/* Layout Sections */
section {
  position: relative;
}

.bg-subtle {
  background: linear-gradient(135deg, var(--gray-50), var(--secondary-50));
}

.bg-lavender {
  background: linear-gradient(135deg, var(--primary-50), #f3f0ff);
}

.bg-light {
  background: var(--gray-50) !important;
}

/* Progress Bar */
.progress {
  background: var(--gray-200);
  border-radius: var(--radius-lg);
  overflow: hidden;
}

.progress-bar {
  background: linear-gradient(90deg, var(--primary-600), var(--primary-500));
  transition: width 0.3s ease;
}

/* Tables */
.table {
  border-radius: var(--radius-lg);
  overflow: hidden;
  box-shadow: var(--shadow-sm);
}

.table-bordered {
  border: 1px solid var(--gray-200);
}

.table-light {
  background: var(--gray-50);
}

.table th {
  font-weight: 600;
  color: var(--gray-800);
  padding: 1rem;
}

.table td {
  padding: 1rem;
  vertical-align: middle;
}

/* Alerts */
.alert {
  border-radius: var(--radius-lg);
  border: none;
  padding: 1rem 1.5rem;
}

.alert-info {
  background: var(--primary-50);
  color: var(--primary-800);
  border-left: 4px solid var(--primary-500);
}

/* Text Colors */
.text-heading {
  color: var(--gray-900);
}

.text-body {
  color: var(--gray-600);
}

.text-muted {
  color: var(--gray-500) !important;
}

.text-primary {
  color: var(--primary-600) !important;
}

.text-white-50 {
  color: rgba(255, 255, 255, 0.5) !important;
}

/* Validation */
.text-danger {
  color: var(--accent-rose) !important;
  font-size: 0.875rem;
  font-weight: 500;
}

/* Lists */
ul.list-unstyled {
  list-style: none;
  padding-left: 0;
}

ul.list-unstyled li {
  margin-bottom: 0.75rem;
  display: flex;
  align-items: flex-start;
  padding: 0.5rem 0;
}

ul.feature-list li::before {
  content: "✨";
  margin-right: 0.75rem;
  font-size: 1.125rem;
}

/* Wizard Steps */
.wizard-step {
  background: var(--white);
  border-radius: var(--radius-xl);
  padding: 2rem;
  margin-bottom: 1.5rem;
  box-shadow: var(--shadow-md);
  border: 1px solid var(--gray-200);
}

.wizard-step h4 {
  color: var(--gray-900);
  margin-bottom: 1.5rem;
  font-size: 1.375rem;
  font-weight: 600;
}

.wizard-step .form-check {
  margin-bottom: 0.75rem;
  padding: 0.5rem;
}

.wizard-step .text-danger {
  min-height: 1.2em;
  display: block;
  font-size: 0.875rem;
  margin-top: 0.5rem;
  font-weight: 500;
}

/* Footer */
footer {
  background: var(--gray-50);
  border-top: 1px solid var(--gray-200);
  color: var(--gray-600);
  padding: 2rem 0;
  margin-top: auto; /* Push footer to bottom */
  width: 100%;
}

footer a {
  color: var(--gray-600);
  text-decoration: none;
  transition: color 0.2s ease;
}

footer a:hover {
  color: var(--primary-600);
}

/* Marketing Specific Styles */

/* Hero Section */
.hero-gradient {
  background: linear-gradient(135deg, var(--primary-600), var(--primary-800));
}

/* Badges */
.badge {
  font-weight: 500;
  padding: 0.5rem 1rem;
  border-radius: var(--radius-lg);
  font-size: 0.875rem;
}

.badge.bg-success {
  background: var(--accent-emerald) !important;
  color: var(--white) !important;
}

.badge.bg-warning {
  background: var(--accent-amber) !important;
  color: var(--gray-900) !important;
}

.badge.bg-primary {
  background: var(--primary-600) !important;
  color: var(--white) !important;
}

.badge.bg-light {
  background: var(--gray-200) !important;
  color: var(--gray-700) !important;
}

/* Feature Icons */
.feature-icon {
  width: 60px;
  height: 60px;
  border-radius: var(--radius-xl);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.5rem;
  margin-bottom: 1rem;
}

/* Product Cards */
.product-card {
  transition: all 0.3s ease;
}

.product-card:hover {
  transform: translateY(-5px);
}

/* Testimonial Cards */
.testimonial-card {
  transition: all 0.3s ease;
}

.testimonial-card:hover {
  transform: translateY(-3px);
}

/* CTA Sections */
.cta-section {
  background: linear-gradient(135deg, var(--primary-600), var(--primary-800));
  color: var(--white);
}

/* Enhanced Links */
a {
  color: var(--primary-600);
  text-decoration: none;
  transition: color 0.2s ease;
}

a:hover {
  color: var(--primary-700);
  text-decoration: underline;
}

/* Responsive Utilities */
@media (max-width: 768px) {
  .display-4 {
    font-size: 2.25rem;
  }
  
  .display-5 {
    font-size: 2rem;
  }

  .display-6 {
    font-size: 1.75rem;
  }

  h1 {
    font-size: 2rem;
  }

  .btn-lg {
    padding: 0.875rem 1.5rem;
    font-size: 1rem;
  }

  .card-body {
    padding: 1.5rem;
  }

  .wizard-step {
    padding: 1.5rem;
  }

  .hero-stats .stat-item {
    margin-bottom: 1rem;
  }

  .container {
    max-width: 100% !important;
    padding-right: 20px;
    padding-left: 20px;
  }
}

/* Focus States */
.btn:focus, .btn:active:focus, .btn-link.nav-link:focus, .form-control:focus, .form-check-input:focus {
  box-shadow: 0 0 0 3px rgba(59, 130, 246, 0.2);
  outline: none;
}

/* Accessibility */
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
  }
}

/* Animation Utilities */
.fade-in {
  opacity: 0;
  transform: translateY(20px);
  animation: fadeInMoveUp 0.8s ease-out forwards;
}

@keyframes fadeInMoveUp {
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

/* Custom Scrollbar */
::-webkit-scrollbar {
  width: 8px;
}

::-webkit-scrollbar-track {
  background: var(--gray-100);
}

::-webkit-scrollbar-thumb {
  background: var(--gray-400);
  border-radius: var(--radius-lg);
}

::-webkit-scrollbar-thumb:hover {
  background: var(--gray-500);
}

/* Legacy styles preserved for compatibility */
header, main, footer {
  width: 100%;
}

input[type="email"] {
  padding: 0.875rem 1rem;
  font-size: 1rem;
  width: 70%;
  max-width: 320px;
  margin-right: 1rem;
  border: 2px solid var(--gray-300);
  border-radius: var(--radius-lg);
  transition: border-color 0.2s ease;
}

input[type="email"]:focus {
  border-color: var(--primary-500);
  outline: none;
  box-shadow: 0 0 0 3px rgba(59, 130, 246, 0.1);
}

.cta {
  background: var(--white);
  border: 1px solid var(--gray-200);
  border-radius: var(--radius-xl);
  padding: 2.5rem;
  margin-top: 2rem;
  text-align: center;
  box-shadow: var(--shadow-md);
}

/* Additional Marketing Styles */

/* Pricing Cards */
.pricing-card {
  transition: all 0.3s ease;
}

.pricing-card:hover {
  transform: translateY(-5px);
}

/* Integration Icons */
.integration-icon {
  width: 60px;
  height: 60px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.5rem;
  margin-bottom: 1rem;
}

/* Stats Section */
.stat-item h4 {
  font-size: 2rem;
  font-weight: 700;
  margin-bottom: 0.5rem;
}

/* Workflow Steps */
.workflow-step {
  position: relative;
  margin-bottom: 2rem;
}

.step-number {
  width: 48px;
  height: 48px;
  background: var(--primary-600);
  color: white;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: bold;
  font-size: 1.25rem;
}

/* Avatar for Testimonials */
.avatar {
  width: 50px;
  height: 50px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: bold;
  font-size: 1.25rem;
}

/* Success Icons */
.icon-circle {
  width: 40px;
  height: 40px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1rem;
}

/* Stars for Testimonials */
.stars {
  margin-bottom: 1rem;
}

.stars i {
  font-size: 1rem;
  margin-right: 0.25rem;
}

/* Floating Elements */
.floating-card, .floating-notification {
  animation: float 3s ease-in-out infinite;
}

@keyframes float {
  0%, 100% { transform: translateY(0px); }
  50% { transform: translateY(-10px); }
}
