/* Academic Operations Platform - Premium UX Design System */

/* ===== CSS VARIABLES ===== */
:root {
  /* Brand Colors - Professional Education Palette */
  --primary: #0B5CAF;
  --primary-dark: #032E60;
  --primary-light: #1976D2;
  --primary-lighter: #E3F2FD;
  
  --success: #00875A;
  --success-light: #36B37E;
  --success-lighter: #E3FCEF;
  
  --accent: #6554C0;
  --accent-light: #8777D9;
  --accent-lighter: #EAE6FF;
  
  --warning: #FF8B00;
  --warning-light: #FFAB00;
  --warning-lighter: #FFF4E5;
  
  /* Neutral Colors */
  --gray-900: #091E42;
  --gray-800: #172B4D;
  --gray-700: #253858;
  --gray-600: #344563;
  --gray-500: #42526E;
  --gray-400: #505F79;
  --gray-300: #5E6C84;
  --gray-200: #6B778C;
  --gray-100: #7A869A;
  --gray-50: #F4F5F7;
  --white: #FFFFFF;
  
  /* Semantic Colors */
  --text-primary: var(--gray-900);
  --text-secondary: var(--gray-600);
  --text-muted: var(--gray-400);
  --text-inverse: var(--white);
  
  --bg-primary: var(--white);
  --bg-secondary: #FAFBFC;
  --bg-tertiary: var(--gray-50);
  
  /* Typography */
  --font-primary: -apple-system, BlinkMacSystemFont, 'Segoe UI', 'Roboto', 'Helvetica', 'Arial', sans-serif;
  --font-display: 'Inter', var(--font-primary);
  
  /* Spacing Scale */
  --space-xs: 0.25rem;
  --space-sm: 0.5rem;
  --space-md: 1rem;
  --space-lg: 1.5rem;
  --space-xl: 2rem;
  --space-2xl: 3rem;
  --space-3xl: 4rem;
  --space-4xl: 6rem;
  
  /* Border Radius */
  --radius-sm: 4px;
  --radius-md: 8px;
  --radius-lg: 12px;
  --radius-xl: 16px;
  --radius-2xl: 24px;
  --radius-full: 9999px;
  
  /* Shadows */
  --shadow-xs: 0 1px 2px rgba(0, 0, 0, 0.05);
  --shadow-sm: 0 2px 4px rgba(0, 0, 0, 0.06);
  --shadow-md: 0 4px 8px rgba(0, 0, 0, 0.08);
  --shadow-lg: 0 8px 16px rgba(0, 0, 0, 0.1);
  --shadow-xl: 0 16px 32px rgba(0, 0, 0, 0.12);
  --shadow-2xl: 0 24px 48px rgba(0, 0, 0, 0.14);
  --shadow-glow: 0 0 40px rgba(11, 92, 175, 0.15);
  
  /* Transitions */
  --transition-fast: 150ms ease;
  --transition-base: 250ms ease;
  --transition-slow: 350ms ease;
  --transition-spring: 500ms cubic-bezier(0.68, -0.55, 0.265, 1.55);
  
  /* Z-index Scale */
  --z-dropdown: 1000;
  --z-sticky: 1020;
  --z-fixed: 1030;
  --z-modal-backdrop: 1040;
  --z-modal: 1050;
  --z-popover: 1060;
  --z-tooltip: 1070;
}

/* ===== GLOBAL STYLES ===== */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

body {
  font-family: var(--font-primary);
  font-size: 16px;
  line-height: 1.6;
  color: var(--text-primary);
  background-color: var(--bg-primary);
}

/* ===== TYPOGRAPHY ===== */
h1, h2, h3, h4, h5, h6 {
  font-family: var(--font-display);
  font-weight: 600;
  line-height: 1.2;
  color: var(--text-primary);
  margin-bottom: var(--space-md);
}

h1 { 
  font-size: clamp(2rem, 5vw, 3.5rem); 
  font-weight: 700;
  letter-spacing: -0.02em;
}

h2 { 
  font-size: clamp(1.75rem, 4vw, 2.5rem); 
  font-weight: 600;
  letter-spacing: -0.01em;
}

h3 { 
  font-size: clamp(1.5rem, 3vw, 2rem); 
  font-weight: 600;
}

h4 { 
  font-size: clamp(1.25rem, 2.5vw, 1.5rem); 
}

p {
  color: var(--text-secondary);
  margin-bottom: var(--space-md);
}

.lead {
  font-size: 1.125rem;
  line-height: 1.7;
  color: var(--text-secondary);
}

/* ===== BUTTONS ===== */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: var(--space-sm);
  padding: 12px 24px;
  font-size: 16px;
  font-weight: 500;
  line-height: 1;
  text-decoration: none;
  border: none;
  border-radius: var(--radius-md);
  cursor: pointer;
  transition: all var(--transition-base);
  position: relative;
  overflow: hidden;
}

.btn:focus {
  outline: none;
  box-shadow: 0 0 0 3px rgba(11, 92, 175, 0.2);
}

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

.btn-primary:hover {
  background: var(--success-light);
  transform: translateY(-2px);
  box-shadow: var(--shadow-lg);
}

.btn-primary:active {
  transform: translateY(0);
}

.btn-secondary {
  background: var(--white);
  color: var(--primary);
  border: 1px solid #DFE1E6;
}

.btn-secondary:hover {
  background: var(--bg-secondary);
  border-color: var(--primary);
  box-shadow: var(--shadow-md);
}

.btn-ghost {
  background: transparent;
  color: var(--primary);
  padding: 8px 16px;
}

.btn-ghost:hover {
  background: var(--primary-lighter);
}

.btn-lg {
  padding: 16px 32px;
  font-size: 18px;
}

.btn-sm {
  padding: 8px 16px;
  font-size: 14px;
}

/* ===== HERO SECTION ===== */
.hero-academic {
  position: relative;
  min-height: 100vh;
  display: flex;
  align-items: center;
  background: linear-gradient(135deg, #FAFBFC 0%, #FFFFFF 100%);
  overflow: hidden;
}

.hero-academic::before {
  content: '';
  position: absolute;
  top: -50%;
  right: -10%;
  width: 80%;
  height: 80%;
  background: radial-gradient(circle, rgba(11, 92, 175, 0.05) 0%, transparent 70%);
  border-radius: 50%;
  animation: float 20s ease-in-out infinite;
}

@keyframes float {
  0%, 100% { transform: translateY(0) rotate(0deg); }
  50% { transform: translateY(-20px) rotate(10deg); }
}

.hero-content {
  position: relative;
  z-index: 2;
  animation: fadeInUp 0.8s ease;
}

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

.hero-badge {
  display: inline-flex;
  align-items: center;
  gap: var(--space-sm);
  background: var(--primary-lighter);
  color: var(--primary);
  padding: 8px 16px;
  border-radius: var(--radius-full);
  font-size: 14px;
  font-weight: 500;
  margin-bottom: var(--space-lg);
  animation: pulse 2s ease infinite;
}

@keyframes pulse {
  0%, 100% { transform: scale(1); }
  50% { transform: scale(1.02); }
}

.hero-badge .badge-icon {
  width: 20px;
  height: 20px;
  background: var(--primary);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--white);
  font-size: 12px;
}

.hero-title {
  font-size: clamp(2.5rem, 6vw, 4rem);
  font-weight: 700;
  line-height: 1.1;
  color: var(--primary-dark);
  margin-bottom: var(--space-lg);
}

.hero-title .gradient-text {
  background: linear-gradient(135deg, var(--primary) 0%, var(--accent) 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.hero-description {
  font-size: 1.25rem;
  line-height: 1.7;
  color: var(--text-secondary);
  margin-bottom: var(--space-2xl);
  max-width: 600px;
}

.hero-cta {
  display: flex;
  gap: var(--space-md);
  flex-wrap: wrap;
  margin-bottom: var(--space-2xl);
}

.hero-stats {
  display: flex;
  gap: var(--space-2xl);
  padding-top: var(--space-2xl);
  border-top: 1px solid #E4E7EB;
}

.stat-item {
  animation: countUp 1s ease forwards;
  animation-delay: 0.5s;
  opacity: 0;
}

.stat-item:nth-child(2) { animation-delay: 0.7s; }
.stat-item:nth-child(3) { animation-delay: 0.9s; }

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

.stat-number {
  font-size: 2rem;
  font-weight: 700;
  color: var(--primary);
  display: block;
  margin-bottom: var(--space-xs);
}

.stat-label {
  font-size: 14px;
  color: var(--text-muted);
  text-transform: uppercase;
  letter-spacing: 0.05em;
}

/* ===== DASHBOARD PREVIEW ===== */
.hero-visual {
  position: relative;
  animation: slideInRight 1s ease;
}

@keyframes slideInRight {
  from {
    opacity: 0;
    transform: translateX(50px);
  }
  to {
    opacity: 1;
    transform: translateX(0);
  }
}

.dashboard-mock {
  background: var(--white);
  border-radius: var(--radius-xl);
  box-shadow: var(--shadow-2xl);
  overflow: hidden;
  border: 1px solid #E4E7EB;
  transition: transform var(--transition-slow);
}

.dashboard-mock:hover {
  transform: scale(1.02) translateY(-5px);
  box-shadow: var(--shadow-glow);
}

.mock-header {
  background: linear-gradient(90deg, var(--primary-dark) 0%, var(--primary) 100%);
  padding: var(--space-md);
  display: flex;
  align-items: center;
  gap: var(--space-md);
}

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

.mock-dots span {
  width: 12px;
  height: 12px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.3);
}

.mock-dots span:first-child { background: #FF5F57; }
.mock-dots span:nth-child(2) { background: #FFBD2E; }
.mock-dots span:nth-child(3) { background: #28CA42; }

.mock-title {
  color: var(--white);
  font-size: 14px;
  font-weight: 500;
}

.mock-body {
  padding: var(--space-xl);
}

.mock-stats {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
  gap: var(--space-lg);
  margin-bottom: var(--space-xl);
}

.mock-stat-card {
  background: var(--bg-secondary);
  padding: var(--space-lg);
  border-radius: var(--radius-lg);
  transition: all var(--transition-base);
}

.mock-stat-card:hover {
  background: var(--white);
  box-shadow: var(--shadow-md);
  transform: translateY(-2px);
}

.mock-stat-value {
  font-size: 1.75rem;
  font-weight: 700;
  color: var(--primary);
  display: block;
  margin-bottom: var(--space-xs);
}

.mock-stat-label {
  font-size: 12px;
  color: var(--text-muted);
  text-transform: uppercase;
  letter-spacing: 0.05em;
}

.mock-chart {
  background: var(--bg-secondary);
  height: 200px;
  border-radius: var(--radius-lg);
  position: relative;
  overflow: hidden;
}

.mock-chart::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  height: 60%;
  background: linear-gradient(180deg, transparent 0%, var(--primary-lighter) 100%);
  opacity: 0.5;
}

/* ===== VALUE PROPOSITION CARDS ===== */
.value-section {
  padding: var(--space-4xl) 0;
  background: var(--bg-primary);
}

.value-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: var(--space-xl);
  margin-top: var(--space-3xl);
}

.value-card {
  background: var(--white);
  padding: var(--space-2xl);
  border-radius: var(--radius-xl);
  border: 1px solid #E4E7EB;
  transition: all var(--transition-base);
  position: relative;
  overflow: hidden;
}

.value-card::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 4px;
  background: linear-gradient(90deg, var(--primary) 0%, var(--accent) 100%);
  transform: scaleX(0);
  transition: transform var(--transition-base);
}

.value-card:hover {
  box-shadow: var(--shadow-xl);
  transform: translateY(-4px);
  border-color: transparent;
}

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

.value-icon {
  width: 56px;
  height: 56px;
  background: var(--primary-lighter);
  border-radius: var(--radius-lg);
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: var(--space-lg);
  transition: all var(--transition-base);
}

.value-card:hover .value-icon {
  background: var(--primary);
  color: var(--white);
  transform: scale(1.1) rotate(5deg);
}

.value-icon i {
  font-size: 24px;
  color: var(--primary);
}

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

.value-title {
  font-size: 1.25rem;
  font-weight: 600;
  color: var(--text-primary);
  margin-bottom: var(--space-md);
}

.value-description {
  color: var(--text-secondary);
  line-height: 1.6;
  margin-bottom: var(--space-lg);
}

.value-link {
  color: var(--primary);
  font-weight: 500;
  text-decoration: none;
  display: inline-flex;
  align-items: center;
  gap: var(--space-xs);
  transition: gap var(--transition-base);
}

.value-link:hover {
  gap: var(--space-md);
}

.feature-highlights {
  list-style: none;
  padding: 0;
  margin: var(--space-lg) 0 0 0;
}

.feature-highlights li {
  display: flex;
  align-items: center;
  gap: var(--space-sm);
  color: var(--text-secondary);
  font-size: 0.9rem;
  padding: var(--space-xs) 0;
}

.feature-highlights li i {
  color: var(--success);
  font-size: 0.875rem;
}

/* ===== FEATURE SHOWCASE ===== */
.feature-showcase {
  padding: var(--space-4xl) 0;
  background: var(--bg-secondary);
}

.feature-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: var(--space-4xl);
  align-items: center;
  margin-bottom: var(--space-4xl);
  opacity: 0;
  animation: fadeIn 0.8s ease forwards;
}

.feature-row:nth-child(even) {
  direction: rtl;
}

.feature-row:nth-child(even) > * {
  direction: ltr;
}

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

.feature-content {
  padding: var(--space-2xl);
}

.feature-label {
  display: inline-block;
  background: var(--success-lighter);
  color: var(--success);
  padding: 6px 12px;
  border-radius: var(--radius-full);
  font-size: 12px;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  margin-bottom: var(--space-md);
}

.feature-title {
  font-size: 2rem;
  font-weight: 600;
  color: var(--text-primary);
  margin-bottom: var(--space-lg);
}

.feature-description {
  color: var(--text-secondary);
  line-height: 1.7;
  margin-bottom: var(--space-xl);
}

.feature-list {
  list-style: none;
  padding: 0;
  margin-bottom: var(--space-xl);
}

.feature-list li {
  display: flex;
  align-items: start;
  gap: var(--space-md);
  margin-bottom: var(--space-md);
  color: var(--text-secondary);
}

.feature-list .check-icon {
  width: 24px;
  height: 24px;
  background: var(--success-lighter);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  margin-top: 2px;
}

.feature-list .check-icon i {
  color: var(--success);
  font-size: 12px;
}

.feature-visual {
  position: relative;
  background: var(--white);
  border-radius: var(--radius-xl);
  box-shadow: var(--shadow-xl);
  overflow: hidden;
  transition: transform var(--transition-slow);
}

.feature-visual:hover {
  transform: scale(1.03);
  box-shadow: var(--shadow-2xl);
}

.feature-visual img {
  width: 100%;
  height: auto;
  display: block;
}

/* ===== INTERACTIVE STATS ===== */
.stats-section {
  padding: var(--space-4xl) 0;
  background: linear-gradient(135deg, var(--primary-dark) 0%, var(--primary) 100%);
  position: relative;
  overflow: hidden;
}

.stats-section::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: 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='%23ffffff' fill-opacity='0.05'%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");
}

.stats-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: var(--space-2xl);
  position: relative;
  z-index: 1;
}

.stat-card {
  background: rgba(255, 255, 255, 0.1);
  backdrop-filter: blur(10px);
  padding: var(--space-2xl);
  border-radius: var(--radius-xl);
  border: 1px solid rgba(255, 255, 255, 0.2);
  text-align: center;
  transition: all var(--transition-base);
}

.stat-card:hover {
  background: rgba(255, 255, 255, 0.15);
  transform: translateY(-4px);
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.2);
}

.stat-card .stat-number {
  font-size: 3rem;
  font-weight: 700;
  color: var(--white);
  display: block;
  margin-bottom: var(--space-sm);
}

.stat-card .stat-label {
  color: rgba(255, 255, 255, 0.9);
  font-size: 14px;
  text-transform: uppercase;
  letter-spacing: 0.1em;
}

/* ===== FAQ SECTION ===== */
.faq-section {
  padding: var(--space-4xl) 0;
  background: var(--bg-primary);
}

.faq-container {
  max-width: 800px;
  margin: 0 auto;
}

.faq-item {
  background: var(--white);
  border: 1px solid #E4E7EB;
  border-radius: var(--radius-lg);
  margin-bottom: var(--space-md);
  overflow: hidden;
  transition: all var(--transition-base);
}

.faq-item:hover {
  box-shadow: var(--shadow-md);
}

.faq-question {
  padding: var(--space-lg);
  cursor: pointer;
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-weight: 500;
  color: var(--text-primary);
  transition: all var(--transition-base);
}

.faq-question:hover {
  background: var(--bg-secondary);
}

.faq-question.active {
  background: var(--primary-lighter);
  color: var(--primary);
}

.faq-icon {
  width: 24px;
  height: 24px;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: transform var(--transition-base);
}

.faq-question.active .faq-icon {
  transform: rotate(180deg);
}

.faq-answer {
  padding: 0 var(--space-lg) var(--space-lg) var(--space-lg);
  color: var(--text-secondary);
  line-height: 1.7;
  display: none;
}

.faq-answer.active {
  display: block;
  animation: slideDown 0.3s ease;
}

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

/* ===== RESPONSIVE DESIGN ===== */
@media (max-width: 1024px) {
  .feature-row {
    grid-template-columns: 1fr;
  }
  
  .feature-row:nth-child(even) {
    direction: ltr;
  }
  
  .hero-academic {
    min-height: auto;
    padding: var(--space-4xl) 0;
  }
}

@media (max-width: 768px) {
  .hero-stats {
    flex-direction: column;
    gap: var(--space-lg);
  }
  
  .hero-cta {
    flex-direction: column;
  }
  
  .btn {
    width: 100%;
    justify-content: center;
  }
  
  .value-grid {
    grid-template-columns: 1fr;
  }
  
  .stats-grid {
    grid-template-columns: 1fr;
  }
  
  .mock-stats {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 480px) {
  :root {
    --space-4xl: 3rem;
    --space-3xl: 2rem;
  }
  
  .hero-title {
    font-size: 2rem;
  }
  
  .feature-title {
    font-size: 1.5rem;
  }
  
  .stat-card .stat-number {
    font-size: 2rem;
  }
}

/* ===== ACCESSIBILITY ===== */
.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

:focus-visible {
  outline: 2px solid var(--primary);
  outline-offset: 2px;
}

/* ===== ANIMATIONS ===== */
.animate-on-scroll {
  opacity: 0;
  transform: translateY(30px);
  transition: all 0.6s ease;
}

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

/* ===== LOADING STATES ===== */
.skeleton {
  background: linear-gradient(90deg, #f0f0f0 25%, #e0e0e0 50%, #f0f0f0 75%);
  background-size: 200% 100%;
  animation: loading 1.5s infinite;
}

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

/* ===== MICRO-INTERACTIONS ===== */
.hover-lift {
  transition: transform var(--transition-base);
}

.hover-lift:hover {
  transform: translateY(-4px);
}

.hover-scale {
  transition: transform var(--transition-base);
}

.hover-scale:hover {
  transform: scale(1.05);
}

.hover-glow {
  transition: box-shadow var(--transition-base);
}

.hover-glow:hover {
  box-shadow: var(--shadow-glow);
}