@import url('https://fonts.googleapis.com/css2?family=Sora:wght@300;400;500;600;700;800&family=Inter:wght@300;400;500;600;700;800&family=Material+Symbols+Outlined:wght,FILL@100..700,0..1&display=swap');

:root {
  --font-heading: 'Sora', -apple-system, sans-serif;
  --font-body: 'Inter', -apple-system, sans-serif;

  /* Core Colors */
  --color-bg:            #F8FAF7;
  --color-white:         #FFFFFF;
  --color-emerald:       #087F5B;
  --color-emerald-dark:  #064E3B;
  --color-emerald-hover: #065F46;
  --color-mint:          #B7F7D8;
  --color-mint-light:    #E7F8EE;
  --color-lime:          #C7F36B;
  --color-text:          #17211B;
  --color-text-secondary:#4F5D55;
  --color-text-muted:    #68756D;
  --color-border:        #DDE7E0;

  /* Surfaces */
  --color-surface:       #FFFFFF;
  --color-surface-muted: #F0F4F1;

  /* Shadows — use sparingly */
  --shadow-xs: 0 1px 2px rgba(8,127,91,0.06);
  --shadow-sm: 0 2px 8px rgba(8,127,91,0.08);
  --shadow-md: 0 8px 24px rgba(8,127,91,0.10);
  --shadow-lg: 0 20px 48px rgba(8,127,91,0.12);
  --shadow-xl: 0 32px 64px rgba(8,127,91,0.14);

  /* Radius */
  --radius-sm:  6px;
  --radius-md:  12px;
  --radius-lg:  16px;
  --radius-xl:  24px;
  --radius-2xl: 32px;
  --radius-full: 9999px;

  /* Transitions */
  --ease-out-expo: cubic-bezier(0.16, 1, 0.3, 1);
  --ease-in-out:   cubic-bezier(0.4, 0, 0.2, 1);
  --ease-spring:   cubic-bezier(0.34, 1.56, 0.64, 1);
  --transition-fast:   150ms var(--ease-out-expo);
  --transition-base:   300ms var(--ease-out-expo);
  --transition-slow:   500ms var(--ease-out-expo);
  --transition-hero:   700ms cubic-bezier(0.22, 1, 0.36, 1);
}

/* ==========================================================================
   Base styles & Reset
   ========================================================================== */
* { box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
  font-family: var(--font-body);
  background: var(--color-bg);
  color: var(--color-text);
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  overflow-x: hidden;
}

h1, h2, h3, h4, h5, h6, .font-heading {
  font-family: var(--font-heading);
  letter-spacing: -0.03em;
  color: var(--color-text);
}

.font-body { font-family: var(--font-body); }

/* ==========================================================================
   Keyframe Animations
   ========================================================================== */
@keyframes fadeInUp {
  from { opacity: 0; transform: translateY(30px); }
  to   { opacity: 1; transform: translateY(0); }
}
@keyframes fadeInDown {
  from { opacity: 0; transform: translateY(-20px); }
  to   { opacity: 1; transform: translateY(0); }
}
@keyframes fadeInLeft {
  from { opacity: 0; transform: translateX(-30px); }
  to   { opacity: 1; transform: translateX(0); }
}
@keyframes fadeInRight {
  from { opacity: 0; transform: translateX(30px); }
  to   { opacity: 1; transform: translateX(0); }
}
@keyframes scaleIn {
  from { opacity: 0; transform: scale(0.94); }
  to   { opacity: 1; transform: scale(1); }
}
@keyframes float {
  0%, 100% { transform: translateY(0px) rotate(0deg); }
  50%       { transform: translateY(-8px) rotate(0.5deg); }
}
@keyframes floatAlt {
  0%, 100% { transform: translateY(0px) rotate(0deg); }
  50%       { transform: translateY(-6px) rotate(-0.5deg); }
}
@keyframes skeleton-loading {
  0%   { background-color: #E8EEE9; }
  50%  { background-color: #F0F5F1; }
  100% { background-color: #E8EEE9; }
}
@keyframes pulse-dot {
  0%, 100% { opacity: 1; transform: scale(1); }
  50%       { opacity: 0.5; transform: scale(0.85); }
}
@keyframes spin-slow {
  from { transform: rotate(0deg); }
  to   { transform: rotate(360deg); }
}
@keyframes shimmer {
  0%   { background-position: -200% 0; }
  100% { background-position: 200% 0; }
}
@keyframes count-up {
  from { opacity: 0; transform: translateY(8px); }
  to   { opacity: 1; transform: translateY(0); }
}
@keyframes heroEnter {
  from { opacity: 0; transform: translateY(24px); }
  to   { opacity: 1; transform: translateY(0); }
}
@keyframes lineGrow {
  from { transform: scaleX(0); }
  to   { transform: scaleX(1); }
}
@keyframes ripple {
  to { transform: scale(4); opacity: 0; }
}
@keyframes arrowSlide {
  0%   { transform: translateX(0); }
  50%  { transform: translateX(5px); }
  100% { transform: translateX(0); }
}

/* ==========================================================================
   Animation Utility Classes
   ========================================================================== */
.anim-float        { animation: float    5s ease-in-out infinite; }
.anim-float-alt    { animation: floatAlt 6.5s ease-in-out infinite; }
.anim-float-slow   { animation: float    8s ease-in-out infinite; }
.anim-float-2      { animation: floatAlt 5.5s ease-in-out 1.2s infinite; }
.anim-float-3      { animation: float    7s ease-in-out 2.5s infinite; }
.anim-pulse-dot    { animation: pulse-dot 2s ease-in-out infinite; }
.anim-spin-slow    { animation: spin-slow 10s linear infinite; }
.anim-fade-in      { animation: fadeInUp 0.5s var(--ease-out-expo) forwards; }
.skeleton          { animation: skeleton-loading 1.5s ease-in-out infinite; border-radius: 6px; }

/* ==========================================================================
   Hero Entrance Stagger
   ========================================================================== */
.hero-enter {
  opacity: 0;
  transform: translateY(28px);
  animation: heroEnter var(--transition-hero) var(--ease-out-expo) forwards;
}
.hero-enter-right {
  opacity: 0;
  transform: translateX(40px) scale(0.97);
  animation: fadeInRight var(--transition-hero) var(--ease-out-expo) forwards;
}
.hero-delay-1  { animation-delay: 0ms;   }
.hero-delay-2  { animation-delay: 80ms;  }
.hero-delay-3  { animation-delay: 160ms; }
.hero-delay-4  { animation-delay: 240ms; }
.hero-delay-5  { animation-delay: 320ms; }
.hero-delay-6  { animation-delay: 420ms; }
.hero-delay-7  { animation-delay: 550ms; }
.hero-delay-8  { animation-delay: 680ms; }

/* ==========================================================================
   Scroll Reveal System
   ========================================================================== */
.reveal {
  opacity: 0;
  transform: translateY(28px) scale(0.98);
  transition:
    opacity    0.6s var(--ease-out-expo),
    transform  0.6s var(--ease-out-expo);
}
.reveal.is-visible {
  opacity: 1;
  transform: translateY(0) scale(1);
}

/* Fallback: if JS is disabled or slow, show content after 2s */
@media (prefers-reduced-motion: reduce) {
  .reveal, .reveal-left, .reveal-right, .reveal-scale, .reveal-stagger > * {
    opacity: 1 !important;
    transform: none !important;
    transition: none !important;
  }
}
.reveal-left {
  opacity: 0;
  transform: translateX(-35px);
  transition: opacity 0.65s var(--ease-out-expo), transform 0.65s var(--ease-out-expo);
}
.reveal-left.is-visible { opacity: 1; transform: translateX(0); }

.reveal-right {
  opacity: 0;
  transform: translateX(35px);
  transition: opacity 0.65s var(--ease-out-expo), transform 0.65s var(--ease-out-expo);
}
.reveal-right.is-visible { opacity: 1; transform: translateX(0); }

.reveal-scale {
  opacity: 0;
  transform: scale(0.92);
  transition: opacity 0.55s var(--ease-out-expo), transform 0.55s var(--ease-spring);
}
.reveal-scale.is-visible { opacity: 1; transform: scale(1); }

.reveal-stagger > *:nth-child(1) { transition-delay: 0ms; }
.reveal-stagger > *:nth-child(2) { transition-delay: 80ms; }
.reveal-stagger > *:nth-child(3) { transition-delay: 160ms; }
.reveal-stagger > *:nth-child(4) { transition-delay: 240ms; }
.reveal-stagger > *:nth-child(5) { transition-delay: 320ms; }
.reveal-stagger > *:nth-child(6) { transition-delay: 400ms; }
.reveal-stagger > *:nth-child(7) { transition-delay: 480ms; }
.reveal-stagger > *:nth-child(8) { transition-delay: 560ms; }

.delay-100 { transition-delay: 100ms !important; }
.delay-200 { transition-delay: 200ms !important; }
.delay-300 { transition-delay: 300ms !important; }
.delay-400 { transition-delay: 400ms !important; }
.delay-500 { transition-delay: 500ms !important; }

/* ==========================================================================
   Navbar & Search
   ========================================================================== */
.nx-navbar {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 100;
  transition:
    background var(--transition-base),
    box-shadow  var(--transition-base),
    border-color var(--transition-base);
  background: transparent;
  border-bottom: 1px solid transparent;
}
.nx-navbar.scrolled {
  background: rgba(255,255,255,0.88);
  backdrop-filter: blur(18px);
  -webkit-backdrop-filter: blur(18px);
  border-bottom: 1px solid var(--color-border);
  box-shadow: 0 1px 20px rgba(8,127,91,0.06);
}
.nx-navbar-inner {
  max-width: 1280px;
  margin: 0 auto;
  padding: 0 24px;
  height: 72px;
  display: flex;
  align-items: center;
  gap: 32px;
}

.nx-search {
  position: relative;
  transition: width var(--transition-base);
}
.nx-search-input {
  width: 100%;
  padding: 10px 16px 10px 44px;
  background: var(--color-surface-muted);
  border: 1.5px solid var(--color-border);
  border-radius: var(--radius-full);
  font-size: 14px;
  font-family: var(--font-body);
  color: var(--color-text);
  transition:
    border-color var(--transition-fast),
    box-shadow   var(--transition-fast),
    background   var(--transition-fast);
  outline: none;
}
.nx-search-input::placeholder { color: var(--color-text-muted); }
.nx-search-input:focus {
  background: var(--color-white);
  border-color: var(--color-emerald);
  box-shadow: 0 0 0 3px rgba(8,127,91,0.12);
}
.nx-search-icon {
  position: absolute;
  left: 14px;
  top: 50%;
  transform: translateY(-50%);
  color: var(--color-text-muted);
  pointer-events: none;
}

/* ==========================================================================
   Buttons
   ========================================================================== */
.nx-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  font-family: var(--font-body);
  font-weight: 600;
  font-size: 14px;
  line-height: 1;
  border-radius: var(--radius-md);
  cursor: pointer;
  border: none;
  outline: none;
  transition:
    background    var(--transition-fast),
    transform     var(--transition-fast),
    box-shadow    var(--transition-fast),
    border-color  var(--transition-fast);
  position: relative;
  overflow: hidden;
  text-decoration: none;
  white-space: nowrap;
}
.nx-btn:active { transform: translateY(1px) !important; }

.nx-btn-primary {
  background: var(--color-emerald);
  color: #FFFFFF;
  padding: 12px 24px;
  box-shadow: 0 4px 14px rgba(8,127,91,0.28);
}
.nx-btn-primary:hover {
  background: var(--color-emerald-hover);
  transform: translateY(-2px);
  box-shadow: 0 8px 24px rgba(8,127,91,0.36);
}

.nx-btn-outline {
  background: transparent;
  color: var(--color-emerald);
  border: 1.5px solid var(--color-emerald);
  padding: 11px 22px;
}
.nx-btn-outline:hover {
  background: var(--color-mint-light);
  transform: translateY(-2px);
}

.nx-btn-ghost {
  background: transparent;
  color: var(--color-text-secondary);
  padding: 10px 18px;
}
.nx-btn-ghost:hover {
  background: var(--color-surface-muted);
  color: var(--color-text);
}

.nx-btn-dark {
  background: var(--color-emerald-dark);
  color: #FFFFFF;
  padding: 12px 28px;
  box-shadow: 0 4px 14px rgba(6,78,59,0.30);
}
.nx-btn-dark:hover {
  background: var(--color-emerald-hover);
  transform: translateY(-2px);
  box-shadow: 0 8px 24px rgba(6,78,59,0.40);
}

.nx-btn-lime {
  background: var(--color-lime);
  color: var(--color-emerald-dark);
  padding: 12px 24px;
  font-weight: 700;
  box-shadow: 0 4px 14px rgba(199,243,107,0.4);
}
.nx-btn-lime:hover {
  filter: brightness(1.05);
  transform: translateY(-2px);
  box-shadow: 0 8px 24px rgba(199,243,107,0.5);
}

.nx-btn .nx-ripple {
  position: absolute;
  border-radius: 50%;
  background: rgba(255,255,255,0.3);
  transform: scale(0);
  animation: ripple 600ms linear;
  pointer-events: none;
}

/* Legacy aliases */
.btn-nexora-primary  { background: var(--color-emerald); color: #FFFFFF; font-weight: 600; padding: 12px 24px; border-radius: var(--radius-md); cursor: pointer; display: inline-flex; align-items: center; gap: 8px; transition: all var(--transition-fast); box-shadow: 0 4px 14px rgba(8,127,91,0.28); text-decoration:none; }
.btn-nexora-primary:hover { background: var(--color-emerald-hover); transform: translateY(-2px); box-shadow: 0 8px 24px rgba(8,127,91,0.36); }
.btn-nexora-gradient { background: linear-gradient(135deg, var(--color-emerald-dark), var(--color-emerald)); color: #FFFFFF; font-weight: 600; padding: 12px 24px; border-radius: var(--radius-md); display: inline-flex; align-items: center; gap: 8px; transition: all var(--transition-fast); box-shadow: 0 4px 14px rgba(8,127,91,0.30); text-decoration:none; }
.btn-nexora-gradient:hover { filter: brightness(1.08); transform: translateY(-2px); box-shadow: 0 8px 24px rgba(8,127,91,0.4); }
.btn-nexora-outline { background: transparent; color: var(--color-emerald); border: 1.5px solid var(--color-emerald); font-weight: 600; padding: 11px 22px; border-radius: var(--radius-md); display: inline-flex; align-items: center; gap: 8px; transition: all var(--transition-fast); text-decoration:none; cursor:pointer; }
.btn-nexora-outline:hover { background: var(--color-mint-light); transform: translateY(-2px); }

/* ==========================================================================
   Cards
   ========================================================================== */
.nx-card {
  background: var(--color-white);
  border-radius: var(--radius-xl);
  border: 1px solid var(--color-border);
  overflow: hidden;
  transition:
    transform    var(--transition-base),
    box-shadow   var(--transition-base),
    border-color var(--transition-base);
}
.nx-card:hover {
  transform: translateY(-6px);
  box-shadow: var(--shadow-lg);
  border-color: rgba(8,127,91,0.2);
}

.nx-course-card {
  background: var(--color-white);
  border-radius: var(--radius-xl);
  border: 1px solid var(--color-border);
  overflow: hidden;
  transition:
    transform  350ms cubic-bezier(0.22,1,0.36,1),
    box-shadow 350ms cubic-bezier(0.22,1,0.36,1),
    border-color 350ms ease;
}
.nx-course-card:hover {
  transform: translateY(-6px);
  box-shadow: 0 20px 48px rgba(8,127,91,0.12);
  border-color: rgba(8,127,91,0.2);
}
.nx-course-card .nx-card-img { overflow: hidden; }
.nx-course-card .nx-card-img img {
  width: 100%;
  aspect-ratio: 16/9;
  object-fit: cover;
  display: block;
  transition: transform 500ms cubic-bezier(0.22,1,0.36,1);
}
.nx-course-card:hover .nx-card-img img { transform: scale(1.06); }

.nx-category-card {
  background: var(--color-white);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-xl);
  padding: 24px;
  cursor: pointer;
  transition:
    transform    300ms cubic-bezier(0.22,1,0.36,1),
    box-shadow   300ms ease,
    background   300ms ease,
    border-color 300ms ease;
  position: relative;
  overflow: hidden;
}
.nx-category-card:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-md);
  background: var(--color-mint-light);
  border-color: rgba(8,127,91,0.25);
}
.nx-category-card .nx-cat-icon {
  transition: transform 300ms cubic-bezier(0.22,1,0.36,1);
}
.nx-category-card:hover .nx-cat-icon {
  transform: scale(1.1) translateY(-2px);
}

.nx-instructor-card {
  background: var(--color-white);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-xl);
  overflow: hidden;
  transition: transform 300ms cubic-bezier(0.22,1,0.36,1), box-shadow 300ms ease;
}
.nx-instructor-card:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-md);
}
.nx-instructor-card img {
  transition: transform 400ms cubic-bezier(0.22,1,0.36,1);
}
.nx-instructor-card:hover img { transform: scale(1.06); }

.nx-stat-card {
  background: var(--color-white);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-lg);
  padding: 20px 24px;
  transition: transform 250ms ease, box-shadow 250ms ease;
}
.nx-stat-card:hover {
  transform: translateY(-3px);
  box-shadow: var(--shadow-sm);
}

/* ==========================================================================
   Interactions
   ========================================================================== */
.nx-arrow-circle {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 32px;
  height: 32px;
  border-radius: 50%;
  border: 1.5px solid var(--color-border);
  color: var(--color-text-muted);
  transition:
    width       300ms cubic-bezier(0.22,1,0.36,1),
    height      300ms cubic-bezier(0.22,1,0.36,1),
    background  300ms ease,
    border-color 300ms ease,
    color       300ms ease;
  flex-shrink: 0;
  position: relative;
  overflow: hidden;
}
.nx-arrow-circle .nx-arrow-icon {
  font-size: 16px;
  transition: transform 300ms cubic-bezier(0.22,1,0.36,1);
}
*:hover > .nx-arrow-circle,
.nx-arrow-trigger:hover .nx-arrow-circle {
  background: var(--color-emerald);
  border-color: var(--color-emerald);
  color: white;
}
*:hover > .nx-arrow-circle .nx-arrow-icon,
.nx-arrow-trigger:hover .nx-arrow-circle .nx-arrow-icon {
  transform: translateX(4px);
}

.nx-arrow-circle.lg { width: 40px; height: 40px; }
.nx-arrow-circle.lg .nx-arrow-icon { font-size: 20px; }

/* ==========================================================================
   Hero Styles
   ========================================================================== */
.nx-hero {
  background: var(--color-bg);
  min-height: 100vh;
  display: flex;
  align-items: center;
  position: relative;
  overflow: hidden;
  padding-top: 72px; /* account for fixed navbar */
}
.nx-hero-bg-text {
  position: absolute;
  font-family: var(--font-heading);
  font-weight: 800;
  font-size: clamp(80px, 14vw, 200px);
  letter-spacing: -0.05em;
  color: var(--color-emerald-dark);
  opacity: 0.025;
  user-select: none;
  pointer-events: none;
  white-space: nowrap;
  line-height: 1;
}
.nx-hero-glow {
  position: absolute;
  border-radius: 50%;
  filter: blur(80px);
  pointer-events: none;
}
.nx-hero-glow-1 {
  width: 500px;
  height: 500px;
  background: radial-gradient(circle, rgba(183,247,216,0.25) 0%, transparent 70%);
  top: -100px;
  right: -100px;
}
.nx-hero-glow-2 {
  width: 300px;
  height: 300px;
  background: radial-gradient(circle, rgba(199,243,107,0.12) 0%, transparent 70%);
  bottom: -50px;
  left: 5%;
}
.nx-float-card {
  background: var(--color-white);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-xl);
  box-shadow: var(--shadow-lg);
  position: absolute;
  padding: 14px 18px;
  transition: box-shadow 300ms ease;
}
.nx-float-card:hover { box-shadow: var(--shadow-xl); }

/* ==========================================================================
   Sections
   ========================================================================== */
.nx-section { padding: 96px 0; }
.nx-section-sm { padding: 64px 0; }
.nx-container {
  max-width: 1280px;
  margin: 0 auto;
  padding: 0 24px;
}
@media (max-width: 768px) {
  .nx-section { padding: 64px 0; }
  .nx-container { padding: 0 16px; }
}

.nx-eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-family: var(--font-body);
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--color-emerald);
  margin-bottom: 16px;
}
.nx-eyebrow::before {
  content: '';
  width: 20px;
  height: 2px;
  background: var(--color-emerald);
  border-radius: 2px;
  display: inline-block;
}

.nx-section-heading {
  font-family: var(--font-heading);
  font-size: clamp(28px, 3.5vw, 44px);
  font-weight: 700;
  letter-spacing: -0.04em;
  color: var(--color-text);
  line-height: 1.15;
}
.nx-section-sub {
  font-size: 16px;
  color: var(--color-text-secondary);
  line-height: 1.7;
  max-width: 560px;
}

.nx-trust-bar {
  background: var(--color-white);
  border-top: 1px solid var(--color-border);
  border-bottom: 1px solid var(--color-border);
  padding: 28px 0;
}

/* ==========================================================================
   Dark CTA Sections
   ========================================================================== */
.nx-dark-section {
  background: var(--color-emerald-dark);
  position: relative;
  overflow: hidden;
}
.nx-dark-section::before {
  content: '';
  position: absolute;
  inset: 0;
  background:
    radial-gradient(circle at 20% 50%, rgba(183,247,216,0.06) 0%, transparent 60%),
    radial-gradient(circle at 80% 20%, rgba(199,243,107,0.04) 0%, transparent 50%);
  pointer-events: none;
}
.nx-feature-card {
  background: rgba(8,127,91,0.4);
  border: 1px solid rgba(183,247,216,0.12);
  border-radius: var(--radius-xl);
  padding: 32px;
  transition: background 300ms ease, transform 300ms ease, border-color 300ms ease;
}
.nx-feature-card:hover {
  background: rgba(8,127,91,0.6);
  border-color: rgba(183,247,216,0.24);
  transform: translateY(-4px);
}

/* ==========================================================================
   Typography Utilities
   ========================================================================== */
.nx-text-gradient {
  background: linear-gradient(135deg, var(--color-emerald-dark) 0%, var(--color-emerald) 60%, #0EB07B 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}
.nx-text-lime { color: var(--color-lime); }
.nx-accent-lime {
  background: var(--color-lime);
  color: var(--color-emerald-dark);
  font-weight: 700;
}

/* ==========================================================================
   Badges
   ========================================================================== */
.nx-badge {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  padding: 4px 12px;
  border-radius: var(--radius-full);
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.02em;
  text-transform: uppercase;
}
.nx-badge-emerald  { background: var(--color-mint-light); color: var(--color-emerald); }
.nx-badge-lime     { background: rgba(199,243,107,0.25); color: #4A6A00; }
.nx-badge-gold     { background: #FEF3C7; color: #92400E; }
.nx-badge-dark     { background: var(--color-emerald-dark); color: var(--color-mint); }
.nx-badge-muted    { background: var(--color-surface-muted); color: var(--color-text-secondary); }
.nx-bestseller     { background: #FEF3C7; color: #92400E; font-size: 11px; font-weight: 700; padding: 4px 12px; border-radius: 9999px; }

/* ==========================================================================
   Progress Bars
   ========================================================================== */
.nx-progress-track {
  width: 100%;
  height: 6px;
  background: var(--color-mint-light);
  border-radius: var(--radius-full);
  overflow: hidden;
}
.nx-progress-fill {
  height: 100%;
  background: linear-gradient(90deg, var(--color-emerald), #0EB07B);
  border-radius: var(--radius-full);
  transition: width 1s cubic-bezier(0.22,1,0.36,1);
}
.progress-bar-fill {
  background: linear-gradient(90deg, var(--color-emerald), #0EB07B);
  height: 100%;
  border-radius: 9999px;
  transition: width 1s cubic-bezier(0.22,1,0.36,1);
}

/* ==========================================================================
   Sidebar & Nav
   ========================================================================== */
.nx-sidebar-link {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 10px 14px;
  border-radius: var(--radius-md);
  font-size: 14px;
  font-weight: 500;
  color: var(--color-text-secondary);
  transition: all var(--transition-fast);
  text-decoration: none;
}
.nx-sidebar-link:hover {
  background: var(--color-mint-light);
  color: var(--color-emerald);
}
.nx-sidebar-link.active,
.sidebar-active {
  background: linear-gradient(135deg, var(--color-emerald-dark), var(--color-emerald));
  color: white;
  box-shadow: 0 4px 12px rgba(8,127,91,0.25);
}
.nx-sidebar-link .material-symbols-outlined {
  font-size: 20px;
  flex-shrink: 0;
}

/* ==========================================================================
   Scrollbar overrides
   ========================================================================== */
::-webkit-scrollbar { width: 6px; height: 6px; }
::-webkit-scrollbar-track { background: transparent; }
::-webkit-scrollbar-thumb { background: rgba(8,127,91,0.25); border-radius: 9999px; }
::-webkit-scrollbar-thumb:hover { background: rgba(8,127,91,0.5); }

/* ==========================================================================
   Announcements & Forms
   ========================================================================== */
.nx-announcement {
  background: var(--color-emerald-dark);
  color: rgba(255,255,255,0.9);
  font-size: 12px;
  padding: 8px 24px;
  text-align: center;
  font-family: var(--font-body);
}
.nx-announcement a { color: var(--color-mint); font-weight: 600; text-decoration: underline; }

input:not([type='checkbox']):not([type='radio']),
textarea,
select {
  font-family: var(--font-body);
  font-size: 14px;
  border-radius: var(--radius-md);
  border: 1.5px solid var(--color-border);
  background: var(--color-white);
  color: var(--color-text);
  transition: border-color var(--transition-fast), box-shadow var(--transition-fast);
  outline: none;
}
input:not([type='checkbox']):not([type='radio']):focus,
textarea:focus,
select:focus {
  border-color: var(--color-emerald);
  box-shadow: 0 0 0 3px rgba(8,127,91,0.12);
}

/* ==========================================================================
   Misc Helpers & Overrides
   ========================================================================== */
.line-clamp-1 { display:-webkit-box; -webkit-line-clamp:1; -webkit-box-orient:vertical; overflow:hidden; }
.line-clamp-2 { display:-webkit-box; -webkit-line-clamp:2; -webkit-box-orient:vertical; overflow:hidden; }
.line-clamp-3 { display:-webkit-box; -webkit-line-clamp:3; -webkit-box-orient:vertical; overflow:hidden; }

.nx-number-item {
  display: flex;
  align-items: flex-start;
  gap: 24px;
  position: relative;
}
.nx-number-item + .nx-number-item::before {
  content: '';
  position: absolute;
  top: -32px;
  left: 28px;
  width: 1px;
  height: 32px;
  background: var(--color-border);
  transform-origin: top;
  animation: lineGrow 0.5s ease forwards;
}
.nx-editorial-number {
  font-family: var(--font-heading);
  font-size: 56px;
  font-weight: 800;
  letter-spacing: -0.05em;
  line-height: 1;
  color: var(--color-border);
  flex-shrink: 0;
  width: 72px;
  text-align: right;
  transition: color 300ms ease;
}
.nx-number-item:hover .nx-editorial-number { color: var(--color-emerald); }

.nx-page-fade-in { animation: fadeInUp 0.55s cubic-bezier(0.22,1,0.36,1) both; }

.nx-glass {
  background: rgba(255,255,255,0.82);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  border: 1px solid rgba(221,231,224,0.7);
}

.material-symbols-outlined {
  font-variation-settings: 'FILL' 0, 'wght' 400, 'GRAD' 0, 'opsz' 24;
  vertical-align: middle;
  display: inline-block;
  line-height: 1;
}
.material-symbols-outlined.filled { font-variation-settings: 'FILL' 1; }
.fill-1 { font-variation-settings: 'FILL' 1, 'wght' 400, 'GRAD' 0, 'opsz' 24; }

.nx-hscroll {
  display: flex;
  overflow-x: auto;
  -webkit-overflow-scrolling: touch;
  scroll-snap-type: x mandatory;
  gap: 16px;
  padding-bottom: 8px;
  scrollbar-width: none;
}
.nx-hscroll::-webkit-scrollbar { display: none; }
.nx-hscroll > * { scroll-snap-align: start; flex-shrink: 0; }

.nx-sticky-card { position: sticky; top: 88px; }

.nx-dot-pattern {
  background-image: radial-gradient(circle, rgba(8,127,91,0.07) 1px, transparent 1px);
  background-size: 24px 24px;
}

.nx-divider {
  width: 100%;
  height: 1px;
  background: linear-gradient(90deg, transparent, var(--color-border), transparent);
  margin: 0;
}

.nx-hero-stat { display: flex; flex-direction: column; gap: 2px; }
.nx-hero-stat-num {
  font-family: var(--font-heading);
  font-size: 20px;
  font-weight: 700;
  letter-spacing: -0.03em;
  color: var(--color-text);
}
.nx-hero-stat-label { font-size: 12px; color: var(--color-text-muted); font-weight: 500; }

.bg-gradient-nexora { background: linear-gradient(135deg, var(--color-emerald-dark) 0%, var(--color-emerald) 100%); }
.bg-gradient-nexora-soft { background: linear-gradient(135deg, rgba(8,127,91,0.06) 0%, rgba(199,243,107,0.04) 100%); }
.bg-gradient-hero { background: var(--color-bg); }

.card-hover-lift { transition: transform 300ms cubic-bezier(0.22,1,0.36,1), box-shadow 300ms ease; }
.card-hover-lift:hover { transform: translateY(-5px); box-shadow: var(--shadow-md); }

.text-gradient-nexora { background: linear-gradient(135deg, var(--color-emerald-dark), var(--color-emerald)); -webkit-background-clip: text; -webkit-text-fill-color: transparent; background-clip: text; }

@media (max-width: 640px) {
  .nx-section { padding: 56px 0; }
  .nx-section-heading { font-size: 26px; }
  .nx-float-card { display: none; }
}
