/* ==========================================================================
   LEXMUK LANDING PAGE STYLES (WELCOME.CSS)
   Vibrant Purple Modern Design System
   ========================================================================== */

/* Page Background & Reset */
body.auth-body {
  background-color: #F8F6FE !important;
  font-family: var(--font-primary, 'Plus Jakarta Sans', 'Kantumruy Pro', -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif);
  color: #1E202B;
}

.landing-page-wrapper {
  width: 100%;
  min-height: 100vh;
  background: #F8F6FE;
  overflow-x: hidden;
  position: relative;
}

/* Container Utility */
.landing-container {
  max-width: 1240px;
  margin: 0 auto;
  padding: 0 1.5rem;
}

/* ==========================================
   1. LANDING NAVBAR
   ========================================== */
.landing-navbar {
  position: sticky;
  top: 0;
  z-index: 1000;
  background: rgba(248, 246, 254, 0.92);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  border-bottom: 1px solid rgba(232, 227, 250, 0.8);
  padding: 0.9rem 0;
  transition: all 0.3s ease;
}

.landing-navbar-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1.5rem;
}

/* Brand Logo */
.landing-brand {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  text-decoration: none;
}

.landing-brand-icon {
  width: 42px;
  height: 42px;
  border-radius: 12px;
  background: linear-gradient(135deg, #7C5CFC 0%, #6C5CE7 100%);
  color: #FFFFFF;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 6px 18px rgba(108, 92, 231, 0.32);
}

.landing-brand-text {
  display: flex;
  flex-direction: column;
}

.landing-brand-title {
  font-size: 1.35rem;
  font-weight: 800;
  color: #1E202B;
  letter-spacing: -0.02em;
  line-height: 1.1;
}

.landing-brand-subtitle {
  font-size: 0.75rem;
  font-weight: 600;
  color: #7E84A3;
  letter-spacing: 0.01em;
}

/* Navigation Links */
.landing-nav-links {
  display: flex;
  align-items: center;
  gap: 2rem;
  list-style: none;
  margin: 0;
  padding: 0;
}

.landing-nav-link {
  font-size: 0.95rem;
  font-weight: 600;
  color: #5A5E7A;
  text-decoration: none;
  position: relative;
  padding: 0.35rem 0;
  transition: color 0.2s ease;
}

.landing-nav-link:hover {
  color: #6C5CE7;
}

.landing-nav-link.active {
  color: #6C5CE7;
  font-weight: 700;
}

.landing-nav-link.active::after {
  content: '';
  position: absolute;
  bottom: -2px;
  left: 0;
  right: 0;
  height: 3px;
  background: #6C5CE7;
  border-radius: 9999px;
}

/* Navbar Action Buttons */
.landing-nav-actions {
  display: flex;
  align-items: center;
  gap: 0.85rem;
}

.btn-landing-ghost {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0.6rem 1.4rem;
  border-radius: 9999px;
  border: 1.5px solid #E0DBFD;
  background: transparent;
  color: #6C5CE7;
  font-size: 0.92rem;
  font-weight: 700;
  text-decoration: none;
  transition: all 0.25s ease;
}

.btn-landing-ghost:hover {
  background: #F0EDFF;
  border-color: #6C5CE7;
  color: #5647C9;
}

.btn-landing-solid {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  padding: 0.65rem 1.5rem;
  border-radius: 9999px;
  background: linear-gradient(135deg, #7C5CFC 0%, #6C5CE7 100%);
  color: #FFFFFF;
  font-size: 0.92rem;
  font-weight: 700;
  text-decoration: none;
  box-shadow: 0 6px 20px rgba(108, 92, 231, 0.3);
  transition: all 0.25s ease;
}

.btn-landing-solid:hover {
  transform: translateY(-2px);
  box-shadow: 0 10px 28px rgba(108, 92, 231, 0.42);
  color: #FFFFFF;
}

/* Mobile Hamburger Toggle */
.landing-mobile-toggle {
  display: none;
  background: #F0EDFF;
  border: none;
  color: #6C5CE7;
  width: 40px;
  height: 40px;
  border-radius: 12px;
  align-items: center;
  justify-content: center;
  cursor: pointer;
}

/* ==========================================
   2. HERO SECTION
   ========================================== */
.hero-section {
  padding: 4rem 0 5rem;
  position: relative;
}

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

/* Hero Content (Left) */
.hero-content {
  max-width: 540px;
}

.hero-badge {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.45rem 1.15rem;
  background: #F0EDFF;
  border: 1px solid #E2DAFD;
  border-radius: 9999px;
  color: #6C5CE7;
  font-size: 0.85rem;
  font-weight: 700;
  margin-bottom: 1.5rem;
}

.hero-title {
  font-size: 3.25rem;
  font-weight: 800;
  color: #1E202B;
  line-height: 1.15;
  letter-spacing: -0.03em;
  margin: 0 0 1.25rem;
}

.text-gradient {
  background: linear-gradient(135deg, #7C5CFC 0%, #6C5CE7 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
}

.hero-description {
  font-size: 1.05rem;
  color: #5A5E7A;
  line-height: 1.65;
  margin: 0 0 2.25rem;
}

.hero-cta-buttons {
  display: flex;
  align-items: center;
  gap: 1rem;
  margin-bottom: 2.75rem;
  flex-wrap: wrap;
}

.btn-hero-primary {
  display: inline-flex;
  align-items: center;
  gap: 0.6rem;
  padding: 0.9rem 1.85rem;
  background: linear-gradient(135deg, #7C5CFC 0%, #6C5CE7 100%);
  color: #FFFFFF;
  border-radius: 9999px;
  font-size: 1rem;
  font-weight: 700;
  text-decoration: none;
  box-shadow: 0 10px 28px rgba(108, 92, 231, 0.35);
  transition: all 0.25s ease;
}

.btn-hero-primary:hover {
  transform: translateY(-3px);
  box-shadow: 0 14px 34px rgba(108, 92, 231, 0.45);
  color: #FFFFFF;
}

.btn-hero-secondary {
  display: inline-flex;
  align-items: center;
  gap: 0.6rem;
  padding: 0.9rem 1.65rem;
  background: #FFFFFF;
  border: 1.5px solid #E2DAFD;
  color: #6C5CE7;
  border-radius: 9999px;
  font-size: 1rem;
  font-weight: 700;
  text-decoration: none;
  box-shadow: 0 4px 14px rgba(108, 92, 231, 0.06);
  transition: all 0.25s ease;
}

.btn-hero-secondary:hover {
  background: #F0EDFF;
  border-color: #6C5CE7;
  color: #5647C9;
  transform: translateY(-2px);
}

/* Feature Highlight Badges */
.hero-features-row {
  display: flex;
  align-items: center;
  gap: 0.85rem;
  flex-wrap: wrap;
}

.feature-tag-badge {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.6rem 1.05rem;
  background: #FFFFFF;
  border: 1px solid #EAE5FD;
  border-radius: 14px;
  font-size: 0.88rem;
  font-weight: 700;
  color: #2D3142;
  box-shadow: 0 4px 12px rgba(108, 92, 231, 0.05);
}

.feature-tag-badge svg {
  color: #6C5CE7;
}

/* Hero Graphic Container (Right) */
.hero-graphic-wrap {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
}

/* Background Glow Aura */
.hero-glow-circle {
  position: absolute;
  width: 580px;
  height: 580px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(124, 92, 252, 0.22) 0%, rgba(240, 237, 255, 0.6) 50%, rgba(248, 246, 254, 0) 70%);
  z-index: 1;
}

/* 3D Mascot Image */
.hero-mascot-image {
  position: relative;
  z-index: 2;
  width: 100%;
  max-width: 620px;
  height: auto;
  object-fit: contain;
  filter: drop-shadow(0 20px 35px rgba(108, 92, 231, 0.22));
  animation: floatMascot 4s ease-in-out infinite;
}

@keyframes floatMascot {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(-10px); }
}

/* Decorative Sparks */
.sparkle-icon {
  position: absolute;
  color: #7C5CFC;
  opacity: 0.75;
  z-index: 2;
  pointer-events: none;
}

/* ==========================================
   3. "WHY CHOOSE LEXMUK?" SECTION
   ========================================== */
.section-features {
  padding: 5rem 0;
  background: #FFFFFF;
  border-radius: 36px;
  box-shadow: 0 10px 40px rgba(108, 92, 231, 0.04);
}

.section-header {
  text-align: center;
  max-width: 600px;
  margin: 0 auto 3.5rem;
}

.section-title {
  font-size: 2.25rem;
  font-weight: 800;
  color: #1E202B;
  letter-spacing: -0.02em;
  margin: 0 0 0.6rem;
}

.section-subtitle {
  font-size: 1rem;
  color: #7E84A3;
  margin: 0;
  line-height: 1.55;
}

.features-grid-4 {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 1.75rem;
}

.feature-card {
  background: #FDFDFF;
  border: 1px solid #EAE6FE;
  border-radius: 20px;
  padding: 1.85rem 1.5rem;
  transition: all 0.3s ease;
}

.feature-card:hover {
  transform: translateY(-6px);
  box-shadow: 0 16px 36px rgba(108, 92, 231, 0.12);
  border-color: #C6B7FD;
  background: #FFFFFF;
}

.feature-icon-box {
  width: 52px;
  height: 52px;
  border-radius: 16px;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 1.25rem;
  font-size: 1.35rem;
}

.icon-purple {
  background: #F0EDFF;
  color: #6C5CE7;
}

.icon-blue {
  background: #EFF6FF;
  color: #3B82F6;
}

.feature-card-title {
  font-size: 1.1rem;
  font-weight: 800;
  color: #1E202B;
  margin: 0 0 0.5rem;
}

.feature-card-desc {
  font-size: 0.92rem;
  color: #7E84A3;
  line-height: 1.55;
  margin: 0;
}

/* ==========================================
   4. "BUILT FOR EVERYONE" ROLES SECTION
   ========================================== */
.section-roles {
  padding: 5.5rem 0 6rem;
}

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

.role-card {
  border-radius: 24px;
  padding: 2.25rem 2rem;
  transition: all 0.3s ease;
  position: relative;
  display: flex;
  flex-direction: column;
}

.role-card:hover {
  transform: translateY(-6px);
  box-shadow: 0 18px 40px rgba(30, 32, 43, 0.08);
}

.role-admin {
  background: #F9F7FE;
  border: 1.5px solid #EBE5FE;
}

.role-teacher {
  background: #F4F8FF;
  border: 1.5px solid #E1EDFF;
}

.role-student {
  background: #F2FDF7;
  border: 1.5px solid #D6F7E5;
}

.role-avatar-box {
  width: 56px;
  height: 56px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 1.35rem;
  font-size: 1.4rem;
}

.avatar-admin {
  background: #E8E2FF;
  color: #6C5CE7;
}

.avatar-teacher {
  background: #DCEBFF;
  color: #3B82F6;
}

.avatar-student {
  background: #D1F8E3;
  color: #10B981;
}

.role-card-title {
  font-size: 1.25rem;
  font-weight: 800;
  color: #1E202B;
  margin: 0 0 0.5rem;
}

.role-card-desc {
  font-size: 0.95rem;
  color: #646A86;
  line-height: 1.6;
  margin: 0 0 1.75rem;
  flex: 1;
}

.role-link {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  font-size: 0.92rem;
  font-weight: 700;
  text-decoration: none;
  transition: gap 0.2s ease;
}

.role-link:hover {
  gap: 0.65rem;
}

.link-admin { color: #6C5CE7; }
.link-teacher { color: #3B82F6; }
.link-student { color: #10B981; }

/* ==========================================
   5. CTA FOOTER BANNER
   ========================================== */
.section-cta {
  margin-bottom: 5rem;
}

.cta-banner {
  background: linear-gradient(135deg, #7C5CFC 0%, #6C5CE7 100%);
  border-radius: 32px;
  padding: 3rem 4rem;
  color: #FFFFFF;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 2rem;
  box-shadow: 0 20px 50px rgba(108, 92, 231, 0.35);
  position: relative;
  overflow: hidden;
}

.cta-left-content {
  display: flex;
  align-items: center;
  gap: 2rem;
  max-width: 650px;
}

.cta-mascot-peek {
  width: 90px;
  height: 90px;
  object-fit: contain;
  flex-shrink: 0;
  filter: drop-shadow(0 6px 14px rgba(0,0,0,0.2));
}

.cta-text-wrap h3 {
  font-size: 2rem;
  font-weight: 800;
  color: #FFFFFF;
  margin: 0 0 0.5rem;
  letter-spacing: -0.02em;
}

.cta-text-wrap p {
  font-size: 1.02rem;
  color: rgba(255, 255, 255, 0.9);
  margin: 0;
  line-height: 1.5;
}

.btn-cta-white {
  display: inline-flex;
  align-items: center;
  gap: 0.6rem;
  padding: 1rem 2.2rem;
  background: #FFFFFF;
  color: #6C5CE7;
  font-size: 1.05rem;
  font-weight: 800;
  border-radius: 9999px;
  text-decoration: none;
  box-shadow: 0 10px 24px rgba(0, 0, 0, 0.15);
  transition: all 0.25s ease;
  white-space: nowrap;
  flex-shrink: 0;
}

.btn-cta-white:hover {
  transform: translateY(-3px);
  box-shadow: 0 14px 30px rgba(0, 0, 0, 0.22);
  color: #5647C9;
}

/* ==========================================
   6. LANDING FOOTER
   ========================================== */
.landing-footer {
  padding: 2.5rem 0 3.5rem;
  border-top: 1px solid #EAE5FD;
}

.footer-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 1.5rem;
}

.footer-brand-text {
  font-size: 0.9rem;
  color: #7E84A3;
  margin: 0;
}

.footer-links {
  display: flex;
  align-items: center;
  gap: 1.75rem;
}

.footer-link {
  color: #646A86;
  font-size: 0.9rem;
  font-weight: 600;
  text-decoration: none;
  transition: color 0.2s ease;
}

.footer-link:hover {
  color: #6C5CE7;
}

/* ==========================================
   RESPONSIVE BREAKPOINTS
   ========================================== */
@media (max-width: 1100px) {
  .hero-title {
    font-size: 2.75rem;
  }
  
  .features-grid-4 {
    grid-template-columns: repeat(2, 1fr);
  }

  .hero-qr-floating-card {
    display: none;
  }
}

@media (max-width: 900px) {
  .hero-grid {
    grid-template-columns: 1fr;
    text-align: center;
  }

  .hero-content {
    max-width: 100%;
    margin: 0 auto;
    display: flex;
    flex-direction: column;
    align-items: center;
  }

  .hero-cta-buttons,
  .hero-features-row {
    justify-content: center;
  }

  .roles-grid-3 {
    grid-template-columns: 1fr;
  }

  .cta-banner {
    flex-direction: column;
    text-align: center;
    padding: 2.5rem 2rem;
  }

  .cta-left-content {
    flex-direction: column;
    text-align: center;
  }

  .landing-nav-links {
    display: none;
  }

  .landing-mobile-toggle {
    display: flex;
  }
}

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

  .features-grid-4 {
    grid-template-columns: 1fr;
  }

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

  .cta-text-wrap h3 {
    font-size: 1.5rem;
  }
}
