/* ============================================
   HERO SECTION
   ============================================ */

.hero {
  background: linear-gradient(135deg, var(--obsidian-black) 0%, var(--deep-navy) 100%);
  padding: var(--spacing-3xl) 0;
  position: relative;
  overflow: hidden;
  min-height: 600px;
  display: flex;
  align-items: center;
}

.hero::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: 
    radial-gradient(circle at 20% 50%, rgba(219, 185, 115, 0.05) 0%, transparent 50%),
    radial-gradient(circle at 80% 80%, rgba(255, 46, 84, 0.05) 0%, transparent 50%);
  pointer-events: none;
}

.hero-content {
  position: relative;
  z-index: 2;
  max-width: 1400px;
  margin: 0 auto;
  padding: 0 var(--spacing-xl);
  width: 100%;
}

.hero-title {
  font-size: 3.5rem;
  font-weight: 800;
  line-height: 1.2;
  margin-bottom: var(--spacing-lg);
  color: var(--acoustic-white);
}

.hero-subtitle {
  font-size: 1.25rem;
  color: var(--neutral-text);
  margin-bottom: var(--spacing-xl);
  max-width: 600px;
}

.hero-tagline {
  font-size: 1rem;
  color: var(--premium-gold);
  font-weight: 600;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  margin-bottom: var(--spacing-lg);
}

.hero-cta {
  display: flex;
  gap: var(--spacing-lg);
  flex-wrap: wrap;
  margin-top: var(--spacing-2xl);
}

/* ============================================
   SECTION STYLES
   ============================================ */

.section {
  padding: var(--spacing-3xl) 0;
  position: relative;
}

.section-header {
  text-align: center;
  margin-bottom: var(--spacing-3xl);
}

.section-title {
  font-size: 2.5rem;
  margin-bottom: var(--spacing-md);
  color: var(--acoustic-white);
}

.section-subtitle {
  font-size: 1.125rem;
  color: var(--neutral-text);
  max-width: 600px;
  margin: 0 auto;
}

.section-divider {
  width: 60px;
  height: 4px;
  background: linear-gradient(90deg, var(--premium-gold), var(--semantic-red));
  margin: var(--spacing-lg) auto;
  border-radius: 2px;
}

/* ============================================
   GRID LAYOUTS
   ============================================ */

.grid-2 {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: var(--spacing-2xl);
}

.grid-3 {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: var(--spacing-2xl);
}

.grid-4 {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: var(--spacing-2xl);
}

/* ============================================
   FEATURE CARDS
   ============================================ */

.feature-card {
  background: linear-gradient(135deg, var(--dark-slate) 0%, var(--subtle-gray) 100%);
  border: 1px solid var(--subtle-gray);
  border-radius: 8px;
  padding: var(--spacing-xl);
  transition: all var(--transition-base);
  position: relative;
  overflow: hidden;
}

.feature-card::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 4px;
  background: linear-gradient(90deg, var(--premium-gold), var(--semantic-red));
  transform: scaleX(0);
  transform-origin: left;
  transition: transform var(--transition-base);
}

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

.feature-card:hover {
  border-color: var(--premium-gold);
  box-shadow: var(--shadow-lg);
  transform: translateY(-8px);
}

.feature-icon {
  font-size: 2.5rem;
  margin-bottom: var(--spacing-lg);
  color: var(--premium-gold);
}

.feature-title {
  font-size: 1.25rem;
  margin-bottom: var(--spacing-md);
  color: var(--acoustic-white);
}

.feature-description {
  color: var(--neutral-text);
  line-height: 1.8;
}

/* ============================================
   STATS SECTION
   ============================================ */

.stats-container {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: var(--spacing-2xl);
  margin: var(--spacing-2xl) 0;
}

.stat-box {
  text-align: center;
  padding: var(--spacing-xl);
  border: 1px solid var(--subtle-gray);
  border-radius: 8px;
  background-color: var(--dark-slate);
  transition: all var(--transition-base);
}

.stat-box:hover {
  border-color: var(--premium-gold);
  background-color: var(--subtle-gray);
}

.stat-number {
  font-size: 2.5rem;
  font-weight: 800;
  color: var(--premium-gold);
  margin-bottom: var(--spacing-sm);
  font-family: var(--font-mono);
}

.stat-label {
  font-size: 0.875rem;
  color: var(--neutral-text);
  text-transform: uppercase;
  letter-spacing: 0.05em;
}

/* ============================================
   MATRIX/TABLE SECTION
   ============================================ */

.matrix-container {
  background-color: var(--dark-slate);
  border: 1px solid var(--subtle-gray);
  border-radius: 8px;
  padding: var(--spacing-xl);
  overflow-x: auto;
}

.matrix-table {
  width: 100%;
  border-collapse: collapse;
}

.matrix-table thead {
  background: linear-gradient(90deg, var(--deep-navy), var(--subtle-gray));
}

.matrix-table th {
  padding: var(--spacing-lg);
  text-align: left;
  color: var(--acoustic-white);
  font-weight: 600;
  border-bottom: 2px solid var(--premium-gold);
}

.matrix-table td {
  padding: var(--spacing-lg);
  border-bottom: 1px solid var(--subtle-gray);
  color: var(--neutral-text);
}

.matrix-table tbody tr:hover {
  background-color: var(--subtle-gray);
}

.matrix-table .highlight {
  color: var(--premium-gold);
  font-weight: 600;
}

.matrix-table .danger {
  color: var(--semantic-red);
}

.matrix-table .success {
  color: var(--success);
}

/* ============================================
   FLYWHEEL SECTION
   ============================================ */

.flywheel-container {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: var(--spacing-2xl);
  align-items: center;
}

.flywheel-visual {
  position: relative;
  aspect-ratio: 1;
  display: flex;
  align-items: center;
  justify-content: center;
}

.flywheel-circle {
  position: relative;
  width: 300px;
  height: 300px;
  border: 2px solid var(--premium-gold);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
}

.flywheel-item {
  position: absolute;
  width: 80px;
  height: 80px;
  background: linear-gradient(135deg, var(--dark-slate), var(--subtle-gray));
  border: 1px solid var(--premium-gold);
  border-radius: 8px;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-direction: column;
  text-align: center;
  font-size: 0.75rem;
  color: var(--acoustic-white);
  font-weight: 600;
}

.flywheel-item:nth-child(1) {
  top: -40px;
  left: 50%;
  transform: translateX(-50%);
}

.flywheel-item:nth-child(2) {
  right: -40px;
  top: 50%;
  transform: translateY(-50%);
}

.flywheel-item:nth-child(3) {
  bottom: -40px;
  left: 50%;
  transform: translateX(-50%);
}

.flywheel-item:nth-child(4) {
  left: -40px;
  top: 50%;
  transform: translateY(-50%);
}

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

.flywheel-center-title {
  font-size: 1rem;
  color: var(--premium-gold);
  font-weight: 700;
}

.flywheel-content h3 {
  margin-bottom: var(--spacing-lg);
}

.flywheel-content p {
  margin-bottom: var(--spacing-md);
}

/* ============================================
   DASHBOARD/MONITORING
   ============================================ */

.dashboard-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: var(--spacing-lg);
  margin-bottom: var(--spacing-2xl);
}

.dashboard-widget {
  background: linear-gradient(135deg, var(--dark-slate) 0%, var(--subtle-gray) 100%);
  border: 1px solid var(--subtle-gray);
  border-radius: 8px;
  padding: var(--spacing-lg);
  display: flex;
  flex-direction: column;
}

.dashboard-widget-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: var(--spacing-md);
}

.dashboard-widget-title {
  font-size: 0.875rem;
  color: var(--neutral-text);
  text-transform: uppercase;
  letter-spacing: 0.05em;
  font-weight: 600;
}

.dashboard-widget-value {
  font-size: 2rem;
  font-weight: 800;
  color: var(--premium-gold);
  font-family: var(--font-mono);
  margin-bottom: var(--spacing-sm);
}

.dashboard-widget-change {
  font-size: 0.875rem;
  color: var(--success);
}

.dashboard-widget-change.negative {
  color: var(--semantic-red);
}

.dashboard-chart {
  width: 100%;
  height: 200px;
  background: linear-gradient(180deg, rgba(219, 185, 115, 0.1) 0%, transparent 100%);
  border-radius: 4px;
  position: relative;
}

/* ============================================
   MODAL/OVERLAY
   ============================================ */

.modal {
  display: none;
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background-color: rgba(0, 0, 0, 0.8);
  z-index: 2000;
  align-items: center;
  justify-content: center;
}

.modal.show {
  display: flex;
  animation: fadeIn 0.3s ease-out;
}

.modal-content {
  background-color: var(--dark-slate);
  border: 1px solid var(--subtle-gray);
  border-radius: 8px;
  padding: var(--spacing-2xl);
  max-width: 600px;
  width: 90%;
  max-height: 90vh;
  overflow-y: auto;
  box-shadow: var(--shadow-xl);
  animation: slideUp 0.3s ease-out;
}

.modal-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: var(--spacing-lg);
  border-bottom: 1px solid var(--subtle-gray);
  padding-bottom: var(--spacing-lg);
}

.modal-title {
  font-size: 1.5rem;
  color: var(--acoustic-white);
}

.modal-close {
  background: none;
  border: none;
  color: var(--neutral-text);
  font-size: 1.5rem;
  cursor: pointer;
  transition: color var(--transition-fast);
}

.modal-close:hover {
  color: var(--semantic-red);
}

.modal-body {
  margin-bottom: var(--spacing-lg);
}

.modal-footer {
  display: flex;
  gap: var(--spacing-lg);
  justify-content: flex-end;
  border-top: 1px solid var(--subtle-gray);
  padding-top: var(--spacing-lg);
}

/* ============================================
   ANIMATIONS
   ============================================ */

@keyframes fadeIn {
  from {
    opacity: 0;
  }
  to {
    opacity: 1;
  }
}

@keyframes slideUp {
  from {
    transform: translateY(30px);
    opacity: 0;
  }
  to {
    transform: translateY(0);
    opacity: 1;
  }
}

@keyframes slideDown {
  from {
    transform: translateY(-30px);
    opacity: 0;
  }
  to {
    transform: translateY(0);
    opacity: 1;
  }
}

@keyframes pulse {
  0%, 100% {
    opacity: 1;
  }
  50% {
    opacity: 0.5;
  }
}

@keyframes glow {
  0%, 100% {
    box-shadow: 0 0 5px rgba(219, 185, 115, 0.5);
  }
  50% {
    box-shadow: 0 0 20px rgba(219, 185, 115, 0.8);
  }
}

.animate-pulse {
  animation: pulse 2s cubic-bezier(0.4, 0, 0.6, 1) infinite;
}

.animate-glow {
  animation: glow 2s ease-in-out infinite;
}

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

@media (max-width: 768px) {
  .hero {
    min-height: 400px;
    padding: var(--spacing-2xl) 0;
  }
  
  .hero-title {
    font-size: 2.5rem;
  }
  
  .hero-subtitle {
    font-size: 1rem;
  }
  
  .section {
    padding: var(--spacing-2xl) 0;
  }
  
  .section-title {
    font-size: 1.875rem;
  }
  
  .grid-2, .grid-3, .grid-4 {
    grid-template-columns: 1fr;
  }
  
  .flywheel-container {
    grid-template-columns: 1fr;
  }
  
  .flywheel-circle {
    width: 250px;
    height: 250px;
  }
  
  .flywheel-item {
    width: 70px;
    height: 70px;
    font-size: 0.65rem;
  }
  
  .hero-cta {
    flex-direction: column;
  }
  
  .btn {
    width: 100%;
  }
}
