/* ============================================
   EDUNAVO — Complete Design System
   ============================================ */

@import url('https://fonts.googleapis.com/css2?family=Plus+Jakarta+Sans:wght@400;500;600;700;800&family=Inter:wght@300;400;500;600;700&display=swap');

:root {
  --primary: #1e40af;
  --primary-dark: #1e3a8a;
  --primary-light: #2563EB;
  --accent: #10B981;
  --highlight: #F59E0B;
  --bg: #F8FAFC;
  --dark: #0F172A;
  --text: #0f172a;
  --text-muted: #64748B;
  --border: #E2E8F0;
  --white: #FFFFFF;
  --shadow-sm: 0 2px 8px rgba(15, 23, 42, 0.04);
  --shadow-md: 0 8px 24px rgba(15, 23, 42, 0.08);
  --shadow-lg: 0 20px 50px rgba(15, 23, 42, 0.12);
  --radius-sm: 8px;
  --radius-md: 14px;
  --radius-lg: 22px;
  --radius-xl: 32px;
  --utility-bar-height: 40px;
  --main-nav-height: 72px;
  --announcement-height: 44px;
  --total-header-height: 156px;
}

*, *::before, *::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html {
  scroll-behavior: smooth;
}

body {
  font-family: 'Inter', sans-serif;
  background: var(--bg);
  color: var(--text);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
  max-width: 100vw;
  /*padding-top: var(--total-header-height);*/
}

h1, h2, h3, h4, h5, h6 {
  font-family: 'Plus Jakarta Sans', sans-serif;
  font-weight: 700;
  letter-spacing: -0.02em;
  color: var(--text);
  line-height: 1.2;
}

a {
  text-decoration: none;
  color: inherit;
}

img {
  max-width: 100%;
  display: block;
}

button {
  font-family: inherit;
  cursor: pointer;
  border: none;
  background: none;
}

ul {
  list-style: none;
}

.container-custom {
  max-width: 1400px;
  margin: 0 auto;
  padding: 0 1.5rem;
  width: 100%;
}

.display-1 {
  font-size: clamp(2.5rem, 5vw, 4rem);
  line-height: 1.1;
  font-weight: 800;
}

.display-2 {
  font-size: clamp(2rem, 4vw, 3.5rem);
  line-height: 1.1;
  font-weight: 800;
}

.display-3 {
  font-size: clamp(1.5rem, 3vw, 2.25rem);
  line-height: 1.2;
  font-weight: 700;
}

.lead {
  font-size: 1.125rem;
  color: #475569;
  line-height: 1.6;
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  padding: 0.875rem 1.75rem;
  border-radius: 999px;
  font-weight: 600;
  font-size: 0.95rem;
  transition: all 0.3s;
  cursor: pointer;
  border: none;
  white-space: nowrap;
  text-decoration: none;
  font-family: inherit;
}

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

.btn-primary:hover {
  background: var(--primary-dark);
  transform: translateY(-2px);
  box-shadow: var(--shadow-md);
}

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

.btn-outline:hover {
  background: var(--primary);
  color: #fff;
}

.btn-lg {
  padding: 1.125rem 2.25rem;
  font-size: 1rem;
}

.btn-sm {
  padding: 0.625rem 1.25rem;
  font-size: 0.875rem;
}

.btn-enroll {
  background: var(--primary);
  color: #ffffff;
  padding: 0.75rem 1.5rem;
  border-radius: 999px;
  font-weight: 600;
  font-size: 0.9375rem;
  border: none;
  cursor: pointer;
  transition: all 0.3s;
  text-decoration: none;
  white-space: nowrap;
  flex-shrink: 0;
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  font-family: inherit;
}

.btn-enroll:hover {
  background: var(--primary-dark);
  transform: translateY(-1px);
  box-shadow: 0 6px 20px rgba(30, 64, 175, 0.25);
}

/* Utility Bar */
.utility-bar {
  background: #0a1628;
  color: #cbd5e1;
  font-size: 0.8125rem;
  border-bottom: 1px solid rgba(255, 255, 255, 0.06);
  height: var(--utility-bar-height);
  display: flex;
  align-items: center;
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 1001;
}

.utility-bar .container-custom {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 100%;
}

.utility-links {
  display: flex;
  align-items: center;
  gap: 1.5rem;
  overflow-x: auto;
  scrollbar-width: none;
}

.utility-links::-webkit-scrollbar {
  display: none;
}

.utility-links a {
  color: #94a3b8;
  transition: color 0.2s;
  font-weight: 500;
  white-space: nowrap;
  padding-bottom: 2px;
}

.utility-links a:hover,
.utility-links a.active {
  color: #ffffff;
}

.utility-links a.active {
  border-bottom: 2px solid var(--primary-light);
}

.utility-auth {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  flex-shrink: 0;
}

.utility-auth a {
  color: #ffffff;
  text-decoration: none;
  font-weight: 500;
  white-space: nowrap;
  transition: color 0.2s;
}

.utility-auth a:hover {
  color: #e2e8f0;
}

.utility-divider {
  width: 1px;
  height: 14px;
  background: rgba(255, 255, 255, 0.2);
}

/* Main Nav */
.main-nav {
  background: #ffffff;
  border-bottom: 1px solid #e2e8f0;
  height: var(--main-nav-height);
  display: flex;
  align-items: center;
  position: fixed;
  top: var(--utility-bar-height);
  left: 0;
  right: 0;
  z-index: 1000;
}

.main-nav .container-custom {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 100%;
  gap: 1rem;
}

.nav-logo {
  display: flex;
  align-items: center;
  gap: 0.625rem;
  text-decoration: none;
  flex-shrink: 0;
}

.nav-logo-icon {
  width: 36px;
  height: 36px;
  background: var(--primary);
  border-radius: 8px;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

.nav-logo-text {
  font-family: 'Plus Jakarta Sans', sans-serif;
  font-size: 1.25rem;
  font-weight: 800;
  color: var(--primary-dark);
  letter-spacing: -0.02em;
  white-space: nowrap;
}

.nav-menu {
  display: flex;
  align-items: center;
  gap: 0.25rem;
  flex: 1;
  overflow-x: auto;
  scrollbar-width: none;
  padding: 0 0.5rem;
}

.nav-menu::-webkit-scrollbar {
  display: none;
}

.nav-link {
  color: #334155;
  font-weight: 500;
  font-size: 0.9375rem;
  padding: 0.5rem 0.75rem;
  border-radius: 8px;
  transition: all 0.2s;
  text-decoration: none;
  white-space: nowrap;
  flex-shrink: 0;
}

.nav-link:hover {
  color: var(--primary);
  background: rgba(30, 64, 175, 0.05);
}

.nav-link.active {
  color: var(--primary);
  font-weight: 600;
}

.nav-actions {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  flex-shrink: 0;
}

.nav-search {
  position: relative;
  width: 220px;
  flex-shrink: 0;
}

.nav-search input {
  width: 100%;
  padding: 0.625rem 1rem 0.625rem 2.5rem;
  border: 1.5px solid #e2e8f0;
  border-radius: 999px;
  font-size: 0.875rem;
  background: #f8fafc;
  transition: all 0.2s;
  font-family: inherit;
}

.nav-search input:focus {
  outline: none;
  border-color: var(--primary-light);
  background: #ffffff;
  box-shadow: 0 0 0 3px rgba(37, 99, 235, 0.1);
}

.nav-search i {
  position: absolute;
  left: 0.875rem;
  top: 50%;
  transform: translateY(-50%);
  color: #94a3b8;
  pointer-events: none;
}

/* Announcement Bar */
.announcement-bar {
  background: linear-gradient(90deg, var(--primary) 0%, var(--primary-light) 100%);
  color: #ffffff;
  font-size: 0.875rem;
  height: var(--announcement-height);
  display: flex;
  align-items: center;
  transition: all 0.3s;
  overflow: hidden;
  position: fixed;
  top: calc(var(--utility-bar-height) + var(--main-nav-height));
  left: 0;
  right: 0;
  z-index: 999;
}

.announcement-bar .container-custom {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 100%;
  gap: 1rem;
}

.announcement-slider {
  flex: 1;
  position: relative;
  height: 100%;
  overflow: hidden;
  display: flex;
  align-items: center;
}

.announcement-slide {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  opacity: 0;
  transform: translateY(20px);
  transition: all 0.5s ease;
  pointer-events: none;
  white-space: nowrap;
}

.announcement-slide.active {
  opacity: 1;
  transform: translateY(0);
  pointer-events: auto;
}

.announcement-slide strong {
  font-weight: 600;
}

.announcement-slide a {
  color: #ffffff;
  font-weight: 600;
  text-decoration: underline;
  text-underline-offset: 2px;
  white-space: nowrap;
  transition: opacity 0.2s;
  display: inline-flex;
  align-items: center;
  gap: 0.25rem;
}

.announcement-slide a:hover {
  opacity: 0.8;
}

.announcement-controls {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  flex-shrink: 0;
}

.announcement-dots {
  display: flex;
  gap: 4px;
  align-items: center;
}

.announcement-dots button {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.4);
  border: none;
  cursor: pointer;
  transition: all 0.3s;
  padding: 0;
}

.announcement-dots button.active {
  background: #ffffff;
  width: 18px;
  border-radius: 3px;
}

#close-announcement {
  background: rgba(255, 255, 255, 0.1);
  border: none;
  color: white;
  width: 24px;
  height: 24px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: background 0.2s;
  flex-shrink: 0;
}

#close-announcement:hover {
  background: rgba(255, 255, 255, 0.2);
}

/* Hero Section */
.hero-section {
  padding: 3rem 0 4rem;
  background: #ffffff;
  overflow: hidden;
}

.hero-content {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 3rem;
  align-items: center;
}

.hero-text h1 {
  font-size: clamp(2.5rem, 5vw, 4rem);
  line-height: 1.1;
  font-weight: 800;
  color: #0f172a;
  margin-bottom: 1.5rem;
  letter-spacing: -0.02em;
}

.hero-text h1 span {
  color: var(--primary);
}

.hero-text p {
  font-size: 1.125rem;
  color: #475569;
  line-height: 1.6;
  margin-bottom: 2rem;
  max-width: 540px;
}

.hero-cta {
  display: flex;
  gap: 1rem;
  flex-wrap: wrap;
  margin-bottom: 2rem;
}

.hero-trust {
  display: flex;
  flex-wrap: wrap;
  gap: 1.5rem;
  font-size: 0.9375rem;
  color: #475569;
}

.hero-trust-item {
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

.hero-trust-item i {
  color: var(--accent);
}

.hero-badge {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.5rem 1rem;
  background: #ffffff;
  border: 1.5px solid #e2e8f0;
  border-radius: 999px;
  font-size: 0.875rem;
  font-weight: 600;
  color: var(--primary-dark);
  box-shadow: var(--shadow-sm);
  margin-bottom: 1.5rem;
}

.hero-badge .dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--primary-light);
  animation: pulse 2s infinite;
}

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

.hero-image-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1rem;
  max-width: 520px;
}

.hero-image-grid img {
  border-radius: 16px;
  width: 100%;
  height: 200px;
  object-fit: cover;
  box-shadow: var(--shadow-md);
  transition: transform 0.4s;
}

.hero-image-grid img:hover {
  transform: scale(1.03);
}

/* Stats Bar */
.stats-bar {
  padding: 2rem 0;
  background: #f8fafc;
  border-top: 1px solid #e2e8f0;
  border-bottom: 1px solid #e2e8f0;
}

.stats-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 2rem;
  text-align: center;
}

.stat-item {
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
}

.stat-value {
  font-size: 2.5rem;
  font-weight: 800;
  background: linear-gradient(135deg, var(--primary) 0%, var(--primary-light) 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  font-family: 'Plus Jakarta Sans', sans-serif;
}

.stat-label {
  font-size: 0.9375rem;
  color: #64748b;
  font-weight: 500;
}

/* Sections */
.section {
  padding: 6rem 0;
}

/* Cards */
.card {
  background: #fff;
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-sm);
  transition: all 0.4s;
  overflow: hidden;
  border: 1px solid var(--border);
}

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

/* Badges */
.badge {
  display: inline-flex;
  align-items: center;
  gap: 0.375rem;
  padding: 0.375rem 0.875rem;
  border-radius: 999px;
  font-size: 0.75rem;
  font-weight: 600;
  letter-spacing: 0.02em;
}

.badge-primary {
  background: rgba(30, 64, 175, 0.1);
  color: var(--primary);
}

.badge-accent {
  background: rgba(16, 185, 129, 0.1);
  color: var(--accent);
}

/* Auth Layout */
.auth-layout {
  display: grid;
  grid-template-columns: 1fr 1fr;
  min-height: 100vh;
}

.auth-visual {
  background: linear-gradient(135deg, #1e40af 0%, #2563EB 50%, #10B981 100%);
  position: relative;
  overflow: hidden;
  padding: 2.5rem;
}

.auth-visual::before {
  content: '';
  position: absolute;
  inset: 0;
  background: 
    radial-gradient(circle at 20% 30%, rgba(255, 255, 255, 0.15) 0%, transparent 40%),
    radial-gradient(circle at 80% 70%, rgba(245, 158, 11, 0.15) 0%, transparent 40%);
  pointer-events: none;
}

.auth-visual-content {
  position: relative;
  z-index: 1;
  height: 100%;
  display: flex;
  flex-direction: column;
  justify-content: center;
  max-width: 560px;
  margin: 0 auto;
}

.auth-visual-text {
  flex: 1;
  display: flex;
  flex-direction: column;
  justify-content: center;
  padding: 2rem 0;
}

.auth-form-side {
  background: #ffffff;
  overflow-y: auto;
  padding: 2.5rem;
  display: flex;
  align-items: center;
  justify-content: center;
}

.auth-form-container {
  width: 100%;
  max-width: 480px;
}

.auth-mobile-logo {
  display: none;
  margin-bottom: 2rem;
}

.auth-social-btn {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  padding: 0.875rem;
  border: 1.5px solid #e2e8f0;
  border-radius: 12px;
  background: #ffffff;
  font-weight: 500;
  font-size: 0.9375rem;
  color: #334155;
  transition: all 0.2s;
  cursor: pointer;
  font-family: inherit;
}

.auth-social-btn:hover {
  border-color: #1e40af;
  background: #f8fafc;
  transform: translateY(-1px);
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.06);
}

.auth-divider {
  display: flex;
  align-items: center;
  gap: 1rem;
  margin: 1.5rem 0;
  color: #94a3b8;
  font-size: 0.875rem;
}

.auth-divider::before,
.auth-divider::after {
  content: '';
  flex: 1;
  height: 1px;
  background: #e2e8f0;
}

.auth-form {
  display: flex;
  flex-direction: column;
  gap: 1rem;
}

.form-group {
  display: flex;
  flex-direction: column;
  gap: 0.375rem;
}

.form-label {
  font-size: 0.875rem;
  font-weight: 600;
  color: #0f172a;
}

.form-input {
  width: 100%;
  padding: 0.875rem 1rem;
  border: 1.5px solid #e2e8f0;
  border-radius: 12px;
  font-size: 0.9375rem;
  background: #ffffff;
  transition: all 0.2s;
  font-family: inherit;
  color: #0f172a;
}

.form-input:focus {
  outline: none;
  border-color: #1e40af;
  box-shadow: 0 0 0 4px rgba(30, 64, 175, 0.08);
}

.form-input.error {
  border-color: #ef4444;
  background: #fef2f2;
}

.form-error {
  font-size: 0.75rem;
  color: #ef4444;
  min-height: 1rem;
}

.password-wrapper {
  position: relative;
}

.password-toggle {
  position: absolute;
  right: 0.75rem;
  top: 50%;
  transform: translateY(-50%);
  background: none;
  border: none;
  color: #94a3b8;
  cursor: pointer;
  padding: 0.25rem;
  display: flex;
  align-items: center;
  transition: color 0.2s;
}

.password-toggle:hover {
  color: #1e40af;
}

.password-strength {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  margin-top: 0.5rem;
}

.strength-bars {
  display: flex;
  gap: 4px;
  flex: 1;
}

.strength-bar {
  height: 4px;
  flex: 1;
  background: #e2e8f0;
  border-radius: 2px;
  transition: all 0.3s;
}

.strength-bar.weak { background: #ef4444; }
.strength-bar.fair { background: #F59E0B; }
.strength-bar.good { background: #3b82f6; }
.strength-bar.strong { background: #10B981; }

.strength-text {
  font-size: 0.75rem;
  color: #94a3b8;
  font-weight: 500;
  min-width: 110px;
}

.role-selector {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 0.5rem;
}

.role-option {
  cursor: pointer;
}

.role-option input {
  display: none;
}

.role-card {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.375rem;
  padding: 0.875rem 0.5rem;
  border: 1.5px solid #e2e8f0;
  border-radius: 12px;
  font-size: 0.8125rem;
  font-weight: 500;
  color: #64748b;
  transition: all 0.2s;
  text-align: center;
}

.role-card:hover {
  border-color: #1e40af;
  background: rgba(30, 64, 175, 0.02);
}

.role-option input:checked + .role-card {
  border-color: #1e40af;
  background: rgba(30, 64, 175, 0.05);
  color: #1e40af;
  font-weight: 600;
}

.auth-checkbox {
  display: flex;
  align-items: flex-start;
  gap: 0.625rem;
  cursor: pointer;
  font-size: 0.875rem;
  color: #475569;
  margin-top: 0.5rem;
}

.auth-checkbox input {
  display: none;
}

.checkbox-custom {
  width: 18px;
  height: 18px;
  border: 1.5px solid #cbd5e1;
  border-radius: 4px;
  flex-shrink: 0;
  margin-top: 2px;
  position: relative;
  transition: all 0.2s;
}

.auth-checkbox input:checked + .checkbox-custom {
  background: #1e40af;
  border-color: #1e40af;
}

.auth-checkbox input:checked + .checkbox-custom::after {
  content: '';
  position: absolute;
  left: 5px;
  top: 2px;
  width: 5px;
  height: 9px;
  border: 2px solid white;
  border-top: none;
  border-left: none;
  transform: rotate(45deg);
}

.checkbox-text {
  line-height: 1.5;
}

.auth-success {
  display: none;
  align-items: center;
  gap: 0.5rem;
  padding: 0.875rem 1rem;
  background: rgba(16, 185, 129, 0.1);
  color: #059669;
  border-radius: 12px;
  font-size: 0.875rem;
  font-weight: 500;
}

.auth-success.show {
  display: flex;
}

/* Dashboard */
.sidebar-link {
  transition: all 0.2s;
}

.sidebar-link.active {
  background: rgba(30, 64, 175, 0.1);
  color: #1e40af;
}

.sidebar-link:hover {
  background: rgba(30, 64, 175, 0.05);
}

/* Pricing */
.pricing-card {
  transition: all 0.3s ease;
}

.pricing-card:hover {
  transform: translateY(-5px);
}

.best-value {
  position: relative;
  border: 2px solid #2563EB;
  box-shadow: 0 10px 40px rgba(37, 99, 235, 0.2);
}

.badge-best-value {
  position: absolute;
  top: -12px;
  left: 50%;
  transform: translateX(-50%);
  background: #2563EB;
  color: white;
  padding: 0.25rem 1rem;
  border-radius: 999px;
  font-size: 0.75rem;
  font-weight: 600;
}

/* Responsive */
@media (max-width: 1024px) {
  .nav-menu {
    display: none;
  }
  
  .nav-search {
    display: none;
  }
  
  .hero-content {
    grid-template-columns: 1fr;
    gap: 2rem;
  }
  
  .auth-layout {
    grid-template-columns: 1fr;
  }
  
  .auth-visual {
    display: none;
  }
  
  .auth-mobile-logo {
    display: block;
  }
}

@media (max-width: 768px) {
  body {
    padding-top: 112px;
  }
  
  .utility-links {
    display: none;
  }
  
  .container-custom {
    padding: 0 1rem;
  }
  
  .hero-text h1 {
    font-size: 2rem;
  }
  
  .stats-grid {
    grid-template-columns: 1fr 1fr;
    gap: 1rem;
  }
  
  .role-selector {
    grid-template-columns: 1fr;
  }
}
/* Main content spacing */
main {
  padding-top: 156px; /* Total height of: utility bar (40px) + nav (72px) + announcement (44px) */
}

@media (max-width: 768px) {
  main {
    padding-top: 112px; /* Smaller spacing on mobile */
  }
}
/* Typing Animation Styles */
.typing-cursor {
  display: inline-block;
  width: 8px;
  height: 18px;
  background: #10B981;
  margin-left: 2px;
  animation: blink 1s infinite;
  vertical-align: middle;
}

@keyframes blink {
  0%, 50% { opacity: 1; }
  51%, 100% { opacity: 0; }
}

.terminal-line {
  opacity: 0;
  animation: fadeIn 0.3s forwards;
}

.terminal-output {
  opacity: 0;
  animation: fadeIn 0.3s forwards;
  margin-left: 0;
}

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

.command-text {
  color: #2563EB;
}

.output-text {
  color: #10B981;
}

.success-text {
  color: #10B981;
}

.error-text {
  color: #F59E0B;
}

.info-text {
  color: #94A3B8;
}

.white-text {
  color: #FFFFFF;
}
  /* --- FLOATING KEYWORDS BACKGROUND --- */
  .floating-words-container {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    overflow: hidden;
    pointer-events: none; /* Crucial: Allows clicking through to buttons/links */
    z-index: 0;
  }

  .floating-word {
    position: absolute;
    color: rgba(15, 76, 129, 0.07); /* Very subtle brand blue */
    font-weight: 800;
    white-space: nowrap;
    user-select: none;
    animation: floatRandom linear infinite;
  }

  @keyframes floatRandom {
    0% {
      transform: translate(0, 0) rotate(0deg);
      opacity: 0;
    }
    15% {
      opacity: 0.15;
    }
    85% {
      opacity: 0.15;
    }
    100% {
      transform: translate(var(--tx), var(--ty)) rotate(var(--rot));
      opacity: 0;
    }
  }