/* ==========================================================================
   AI TIME IS MONEY - COMPLETE STYLESHEET
   Digital Trend Professional Marketing Theme
   ========================================================================== */

/* ==========================================================================
   BASE STYLES - Reset, typography, utilities
   ========================================================================== */

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

html {
  scroll-behavior: smooth;
}

body {
  font-family: 'Inter', 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
  background: #ffffff;
  color: #333333;
  line-height: 1.6;
  overflow-x: hidden;
  font-size: 16px;
}

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

h1 { font-size: 3.5rem; }
h2 { font-size: 2.5rem; }
h3 { font-size: 1.8rem; }
h4 { font-size: 1.5rem; }
h5 { font-size: 1.2rem; }
h6 { font-size: 1rem; }

p {
  margin-bottom: 1rem;
  color: #666;
  line-height: 1.6;
}

a {
  color: #667eea;
  text-decoration: none;
  transition: color 0.3s ease;
}

a:hover {
  color: #764ba2;
}

/* Utility Classes */
.text-center { text-align: center; }
.text-left { text-align: left; }
.text-right { text-align: right; }

.mb-1 { margin-bottom: 0.5rem; }
.mb-2 { margin-bottom: 1rem; }
.mb-3 { margin-bottom: 2rem; }
.mb-4 { margin-bottom: 3rem; }

.mt-1 { margin-top: 0.5rem; }
.mt-2 { margin-top: 1rem; }
.mt-3 { margin-top: 2rem; }
.mt-4 { margin-top: 3rem; }

.p-1 { padding: 0.5rem; }
.p-2 { padding: 1rem; }
.p-3 { padding: 2rem; }
.p-4 { padding: 3rem; }

.gradient-text {
  background: linear-gradient(45deg, #667eea, #764ba2);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

/* Container and Layout */
.container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 2rem;
}

.section {
  padding: 5rem 0;
}

.section-content {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 2rem;
}

.section-title {
  font-size: 2.5rem;
  text-align: center;
  margin-bottom: 3rem;
  font-weight: 700;
  color: #333;
}

/* Grid System */
.grid {
  display: grid;
  gap: 2rem;
}

.grid-2 { grid-template-columns: repeat(auto-fit, minmax(300px, 1fr)); }
.grid-3 { grid-template-columns: repeat(auto-fit, minmax(250px, 1fr)); }
.grid-4 { grid-template-columns: repeat(auto-fit, minmax(200px, 1fr)); }

/* ==========================================================================
   LAYOUT STYLES - Background, Navigation, Footer
   ========================================================================== */

/* Background and Animations */
.matrix-bg {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  z-index: -1;
  background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
  opacity: 0.03;
}

.matrix-bg::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: 
    radial-gradient(circle at 20% 50%, rgba(102, 126, 234, 0.1) 0%, transparent 50%),
    radial-gradient(circle at 80% 20%, rgba(118, 75, 162, 0.1) 0%, transparent 50%),
    radial-gradient(circle at 40% 80%, rgba(255, 107, 107, 0.1) 0%, transparent 50%);
  animation: floatAnimation 20s ease-in-out infinite;
}

.matrix-bg::after {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-image: 
    linear-gradient(45deg, transparent 40%, rgba(102, 126, 234, 0.02) 50%, transparent 60%),
    linear-gradient(-45deg, transparent 40%, rgba(118, 75, 162, 0.02) 50%, transparent 60%);
  background-size: 100px 100px;
  animation: slideAnimation 25s linear infinite;
}

@keyframes floatAnimation {
  0%, 100% { opacity: 0.1; transform: translateY(0px) scale(1); }
  50% { opacity: 0.2; transform: translateY(-15px) scale(1.01); }
}

@keyframes slideAnimation {
  0% { transform: translateX(0) translateY(0); }
  100% { transform: translateX(100px) translateY(100px); }
}

/* Navigation */
.nav-container {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  z-index: 1000;
  background: rgba(255, 255, 255, 0.95);
  backdrop-filter: blur(10px);
  border-bottom: 1px solid rgba(102, 126, 234, 0.1);
  box-shadow: 0 2px 20px rgba(0, 0, 0, 0.1);
}

.nav-content {
  max-width: 1200px;
  margin: 0 auto;
  padding: 1rem 2rem;
  display: flex;
  justify-content: space-between;
  align-items: center;
}

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

.logo-text {
  font-size: 1.5rem;
  font-weight: bold;
  background: linear-gradient(45deg, #667eea, #764ba2);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.logo-tagline {
  font-size: 0.8rem;
  color: #666;
  margin-top: -5px;
}

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

.nav-link {
  color: #333;
  text-decoration: none;
  font-weight: 500;
  padding: 0.5rem 1rem;
  border-radius: 8px;
  transition: all 0.3s ease;
  position: relative;
}

.nav-link:hover {
  color: #667eea;
  background: rgba(102, 126, 234, 0.1);
}

.nav-link::before {
  content: '';
  position: absolute;
  bottom: 0;
  left: 50%;
  width: 0;
  height: 2px;
  background: #667eea;
  transition: all 0.3s ease;
  transform: translateX(-50%);
}

.nav-link:hover::before {
  width: 100%;
}

/* Footer */
.footer {
  background: #f8f9ff;
  border-top: 1px solid rgba(102, 126, 234, 0.1);
  padding: 3rem 0 1rem;
}

.footer-content {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 2rem;
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: 2rem;
}

.footer-brand h3 {
  color: #333;
  margin-bottom: 1rem;
  font-size: 1.3rem;
  font-weight: 600;
}

.footer-brand p,
.footer-contact p {
  color: #666;
  line-height: 1.6;
}

.footer-links h4,
.footer-contact h4 {
  color: #333;
  margin-bottom: 1rem;
  font-weight: 600;
}

.footer-links a {
  display: block;
  color: #666;
  text-decoration: none;
  margin-bottom: 0.5rem;
  transition: color 0.3s ease;
  font-weight: 400;
}

.footer-links a:hover {
  color: #667eea;
}

.footer-bottom {
  text-align: center;
  padding: 2rem;
  border-top: 1px solid rgba(102, 126, 234, 0.1);
  color: #666;
  margin-top: 2rem;
}

/* Section Backgrounds */
.bg-light {
  background: #f8f9ff;
}

.bg-white {
  background: white;
}

.bg-gradient {
  background: linear-gradient(135deg, rgba(102, 126, 234, 0.1) 0%, rgba(118, 75, 162, 0.1) 100%);
}

/* ==========================================================================
   COMPONENT STYLES - Buttons, Cards, Forms, Modals
   ========================================================================== */

/* Buttons */
.btn {
  display: inline-block;
  padding: 1rem 2rem;
  font-size: 1rem;
  font-weight: 600;
  text-align: center;
  text-decoration: none;
  border: none;
  border-radius: 8px;
  cursor: pointer;
  transition: all 0.3s ease;
  line-height: 1.5;
  min-width: 140px;
}

.btn-primary {
  background: linear-gradient(45deg, #667eea, #764ba2);
  color: white;
  box-shadow: 0 4px 15px rgba(102, 126, 234, 0.4);
}

.btn-primary:hover {
  transform: translateY(-3px);
  box-shadow: 0 6px 20px rgba(102, 126, 234, 0.6);
}

.btn-secondary {
  background: white;
  color: #667eea;
  border: 2px solid #667eea;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
}

.btn-secondary:hover {
  background: #667eea;
  color: white;
  transform: translateY(-3px);
}

.btn-large {
  padding: 1.2rem 2.5rem;
  font-size: 1.1rem;
  border-radius: 50px;
  min-width: 200px;
}

.btn-block {
  width: 100%;
  display: block;
}

/* Cards */
.card {
  background: white;
  border: 1px solid rgba(102, 126, 234, 0.1);
  border-radius: 15px;
  padding: 2rem;
  transition: all 0.3s ease;
  box-shadow: 0 5px 25px rgba(0, 0, 0, 0.08);
  position: relative;
  overflow: hidden;
}

.card::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: linear-gradient(45deg, transparent, rgba(102, 126, 234, 0.05), transparent);
  opacity: 0;
  transition: opacity 0.3s ease;
}

.card:hover::before {
  opacity: 1;
}

.card:hover {
  transform: translateY(-10px);
  border-color: #667eea;
  box-shadow: 0 15px 40px rgba(102, 126, 234, 0.15);
}

/* Feature Cards */
.feature-card {
  text-align: center;
  background: white;
  border: 1px solid rgba(102, 126, 234, 0.1);
  border-radius: 20px;
  padding: 2.5rem;
  transition: all 0.3s ease;
  position: relative;
  overflow: hidden;
  box-shadow: 0 5px 25px rgba(0, 0, 0, 0.08);
}

.feature-card .feature-icon {
  font-size: 3rem;
  margin-bottom: 1.5rem;
  display: block;
}

.feature-card h3 {
  font-size: 1.5rem;
  margin-bottom: 1rem;
  color: #333;
  font-weight: 600;
}

.feature-card p {
  color: #666;
  margin-bottom: 1.5rem;
  line-height: 1.6;
}

.feature-benefit {
  background: linear-gradient(45deg, #667eea, #764ba2);
  color: white;
  padding: 0.6rem 1.2rem;
  border-radius: 25px;
  font-weight: 600;
  display: inline-block;
  font-size: 0.9rem;
}

/* Pricing Cards */
.pricing-card {
  background: white;
  border: 2px solid rgba(102, 126, 234, 0.15);
  border-radius: 25px;
  padding: 2.5rem;
  text-align: center;
  position: relative;
  transition: all 0.3s ease;
  box-shadow: 0 5px 25px rgba(0, 0, 0, 0.08);
}

.pricing-card.featured {
  border-color: #667eea;
  transform: scale(1.05);
  background: linear-gradient(135deg, rgba(102, 126, 234, 0.05) 0%, rgba(118, 75, 162, 0.05) 100%);
  box-shadow: 0 15px 40px rgba(102, 126, 234, 0.2);
}

.featured-badge {
  position: absolute;
  top: -15px;
  left: 50%;
  transform: translateX(-50%);
  background: linear-gradient(45deg, #667eea, #764ba2);
  color: white;
  padding: 0.6rem 2rem;
  border-radius: 25px;
  font-weight: 600;
  font-size: 0.9rem;
  box-shadow: 0 4px 15px rgba(102, 126, 234, 0.3);
}

.pricing-header h3 {
  font-size: 1.5rem;
  margin-bottom: 1rem;
  color: #333;
  font-weight: 600;
}

.price {
  display: flex;
  align-items: baseline;
  justify-content: center;
  gap: 0.5rem;
  margin-bottom: 0.5rem;
}

.price-currency {
  font-size: 1.5rem;
  color: #667eea;
}

.price-amount {
  font-size: 3rem;
  font-weight: bold;
  color: #333;
}

.price-strike {
  font-size: 1.2rem;
  color: #999;
  text-decoration: line-through;
}

.price-note {
  color: #667eea;
  font-size: 0.9rem;
  margin-bottom: 2rem;
  font-weight: 500;
}

.pricing-features {
  text-align: left;
  margin: 2rem 0;
}

.pricing-features .feature {
  padding: 0.7rem 0;
  color: #666;
  border-bottom: 1px solid rgba(0, 0, 0, 0.08);
  font-weight: 400;
}

/* Stats Cards */
.stat-item {
  text-align: center;
  background: white;
  padding: 2rem 1.5rem;
  border-radius: 15px;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
  transition: transform 0.3s ease;
}

.stat-item:hover {
  transform: translateY(-5px);
}

.stat-number {
  font-size: 2.5rem;
  font-weight: bold;
  color: #667eea;
  margin-bottom: 0.5rem;
  display: block;
}

.stat-label {
  font-size: 1rem;
  color: #666;
  font-weight: 500;
}

/* Result Cards */
.result-item {
  text-align: center;
  padding: 2rem 1.5rem;
  background: linear-gradient(135deg, rgba(102, 126, 234, 0.1) 0%, rgba(118, 75, 162, 0.1) 100%);
  border-radius: 20px;
  border: 1px solid rgba(102, 126, 234, 0.2);
  transition: transform 0.3s ease;
}

.result-item:hover {
  transform: translateY(-5px);
}

.result-period {
  font-size: 1rem;
  color: #666;
  margin-bottom: 0.8rem;
  font-weight: 500;
}

.result-amount {
  font-size: 2.2rem;
  font-weight: bold;
  color: #667eea;
  margin-bottom: 0.5rem;
  display: block;
}

/* Forms */
.form-group {
  margin-bottom: 1.5rem;
}

.form-group label {
  display: block;
  margin-bottom: 0.5rem;
  font-weight: 600;
  color: #333;
  font-size: 1rem;
}

.form-control {
  width: 100%;
  padding: 1rem;
  background: #f8f9ff;
  border: 2px solid rgba(102, 126, 234, 0.2);
  border-radius: 10px;
  color: #333;
  font-size: 1rem;
  font-family: inherit;
  transition: border-color 0.3s ease;
}

.form-control:focus {
  outline: none;
  border-color: #667eea;
  background: white;
}

.form-control::placeholder {
  color: #999;
}

textarea.form-control {
  resize: vertical;
  min-height: 120px;
}

.checkbox-label {
  display: flex;
  align-items: center;
  gap: 1rem;
  color: #666;
  cursor: pointer;
  font-weight: 400;
}

.checkbox-label input[type="checkbox"] {
  width: auto;
  margin: 0;
  accent-color: #667eea;
}

/* Range Inputs */
.range-input {
  -webkit-appearance: none;
  height: 8px;
  background: rgba(102, 126, 234, 0.2);
  outline: none;
  border-radius: 4px;
  width: 100%;
  margin: 1rem 0;
}

.range-input::-webkit-slider-thumb {
  -webkit-appearance: none;
  width: 20px;
  height: 20px;
  border-radius: 50%;
  background: #667eea;
  cursor: pointer;
  border: 2px solid white;
  box-shadow: 0 2px 6px rgba(102, 126, 234, 0.4);
}

.range-input::-moz-range-thumb {
  width: 20px;
  height: 20px;
  border-radius: 50%;
  background: #667eea;
  cursor: pointer;
  border: 2px solid white;
  box-shadow: 0 2px 6px rgba(102, 126, 234, 0.4);
}

/* Modals */
.modal {
  display: none;
  position: fixed;
  z-index: 2000;
  left: 0;
  top: 0;
  width: 100%;
  height: 100%;
  background-color: rgba(0, 0, 0, 0.6);
  backdrop-filter: blur(5px);
}

.modal-content {
  background: white;
  margin: 5% auto;
  padding: 3rem;
  border: 1px solid rgba(102, 126, 234, 0.2);
  border-radius: 25px;
  width: 90%;
  max-width: 800px;
  max-height: 80vh;
  overflow-y: auto;
  position: relative;
  box-shadow: 0 20px 40px rgba(0, 0, 0, 0.15);
}

.close {
  position: absolute;
  top: 1.5rem;
  right: 2rem;
  color: #999;
  font-size: 2rem;
  font-weight: bold;
  cursor: pointer;
  transition: color 0.3s ease;
}

.close:hover {
  color: #667eea;
}

/* ==========================================================================
   PAGE-SPECIFIC STYLES - Hero, Features, Pricing, Calculator, Assessment
   ========================================================================== */

/* Hero Section */
.hero-section {
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 0 2rem;
  text-align: center;
  background: linear-gradient(135deg, rgba(102, 126, 234, 0.1) 0%, rgba(118, 75, 162, 0.1) 100%);
  position: relative;
}

.hero-content {
  max-width: 800px;
  z-index: 10;
}

.hero-title {
  font-size: 3.5rem;
  font-weight: 800;
  margin-bottom: 1.5rem;
  line-height: 1.2;
  color: #333;
}

.hero-subtitle {
  font-size: 1.3rem;
  color: #666;
  margin-bottom: 3rem;
  line-height: 1.6;
  font-weight: 400;
}

.hero-stats {
  display: flex;
  justify-content: center;
  gap: 3rem;
  margin-bottom: 3rem;
}

.hero-cta {
  display: flex;
  justify-content: center;
  gap: 1.5rem;
  flex-wrap: wrap;
}

/* Features Section */
.features-section {
  padding: 5rem 0;
}

.features-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(350px, 1fr));
  gap: 2rem;
}

/* Pricing Section */
.pricing-section {
  background: white;
  padding: 5rem 0;
}

.pricing-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(400px, 1fr));
  gap: 2rem;
  max-width: 900px;
  margin: 0 auto;
}

/* Calculator Section */
.calculator-section {
  background: #f8f9ff;
  padding: 5rem 0;
}

.calculator-container {
  background: white;
  border: 1px solid rgba(102, 126, 234, 0.15);
  border-radius: 25px;
  padding: 3rem;
  max-width: 800px;
  margin: 0 auto;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
}

.calculator-inputs {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 2rem;
  margin-bottom: 3rem;
}

.input-group {
  display: flex;
  flex-direction: column;
  gap: 1rem;
}

.input-group label {
  font-weight: 600;
  color: #333;
  font-size: 1.1rem;
}

.calculator-results {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 2rem;
  margin-bottom: 2rem;
}

.payback-info {
  text-align: center;
  color: #667eea;
  font-size: 1.2rem;
  font-weight: 600;
  background: white;
  padding: 1rem 2rem;
  border-radius: 15px;
  border: 2px solid rgba(102, 126, 234, 0.2);
}

/* Assessment Section */
.assessment-section {
  background: white;
  padding: 5rem 0;
}

.assessment-form {
  background: white;
  border: 1px solid rgba(102, 126, 234, 0.15);
  border-radius: 25px;
  padding: 3rem;
  max-width: 800px;
  margin: 0 auto;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
}

.form-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 2rem;
  margin-bottom: 3rem;
}

.form-group.full-width {
  grid-column: 1 / -1;
}

.form-actions {
  display: flex;
  gap: 1rem;
  justify-content: center;
  flex-wrap: wrap;
}

/* Demo Report Styles */
.demo-report {
  margin: 2rem 0;
}

.report-section {
  margin-bottom: 2rem;
  padding: 1.5rem;
  background: #f8f9ff;
  border-radius: 15px;
  border-left: 4px solid #667eea;
}

.report-section h3 {
  color: #333;
  margin-bottom: 1rem;
  font-weight: 600;
}

.report-section p {
  color: #666;
  line-height: 1.6;
}

.tool-recommendation {
  background: white;
  padding: 1.5rem;
  margin: 1rem 0;
  border-radius: 12px;
  border: 1px solid rgba(102, 126, 234, 0.2);
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.08);
}

.tool-recommendation h4 {
  color: #667eea;
  margin-bottom: 0.8rem;
  font-weight: 600;
}

.tool-recommendation p {
  color: #666;
  margin-bottom: 0.5rem;
}

/* Success/Error Messages */
.success-message,
.error-message {
  text-align: center;
  padding: 2rem;
}

.success-icon,
.error-icon {
  font-size: 3rem;
  margin-bottom: 1rem;
  display: block;
}

.success-message h3 {
  color: #28a745;
  margin-bottom: 1rem;
}

.error-message h3 {
  color: #dc3545;
  margin-bottom: 1rem;
}

.success-message p,
.error-message p {
  color: #666;
  margin-bottom: 1rem;
  line-height: 1.6;
}

/* ==========================================================================
   RESPONSIVE DESIGN
   ========================================================================== */

@media (max-width: 768px) {
  .grid-2,
  .grid-3,
  .grid-4 {
    grid-template-columns: 1fr;
  }

  .nav-menu {
    display: none;
  }

  .hero-title {
    font-size: 2.5rem;
  }
  
  .hero-stats {
    flex-direction: column;
    gap: 1.5rem;
  }
  
  .features-grid,
  .pricing-grid {
    grid-template-columns: 1fr;
  }
  
  .calculator-results {
    grid-template-columns: 1fr;
  }
  
  .form-grid {
    grid-template-columns: 1fr;
  }
  
  .hero-cta,
  .form-actions {
    flex-direction: column;
    align-items: center;
  }
  
  .section-content {
    padding: 3rem 1rem;
  }

  .hero-content {
    padding: 0 1rem;
  }

  .calculator-container,
  .assessment-form {
    padding: 2rem;
    margin: 0 1rem;
  }

  .modal-content {
    margin: 10% auto;
    padding: 2rem;
    width: 95%;
  }
}

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

  .section-title {
    font-size: 2rem;
  }

  .stat-number {
    font-size: 2rem;
  }

  .result-amount {
    font-size: 1.8rem;
  }

  .price-amount {
    font-size: 2.5rem;
  }

  .btn-large {
    padding: 1rem 2rem;
    font-size: 1rem;
    min-width: 180px;
  }
}

/* ==========================================================================
   ACCESSIBILITY & PERFORMANCE
   ========================================================================== */

/* Focus Styles for Accessibility */
*:focus {
  outline: 2px solid #667eea;
  outline-offset: 2px;
}

.btn:focus,
.form-control:focus {
  outline: 3px solid #667eea;
  outline-offset: 2px;
}

/* Reduced Motion */
@media (prefers-reduced-motion: reduce) {
  * {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
  }
}

/* High Contrast Mode */
@media (prefers-contrast: high) {
  .btn-primary {
    background: #000 !important;
    border: 2px solid #000 !important;
  }
  
  .btn-secondary {
    background: #fff !important;
    color: #000 !important;
    border: 2px solid #000 !important;
  }
}

/* Print Styles */
@media print {
  .nav-container,
  .footer,
  .btn,
  .matrix-bg {
    display: none !important;
  }
  
  body {
    background: white !important;
    color: black !important;
  }
}