/* =============================================
   TrainUWise — Light Theme + Motion Design
   ============================================= */

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

:root {
  --bg:            #ffffff;
  --bg-subtle:     #f8fafc;
  --bg-card:       #ffffff;
  --border:        #e2e8f0;
  --border-strong: #cbd5e1;
  --text:          #0f172a;
  --text-muted:    #475569;
  --text-dim:      #94a3b8;
  --accent:        #2563eb;
  --accent-dark:   #1d4ed8;
  --accent-light:  #eff6ff;
  --accent-glow:   rgba(37, 99, 235, 0.08);
  --green:         #16a34a;
  --amber:         #d97706;
  --red:           #dc2626;
  --gradient:      linear-gradient(135deg, #2563eb 0%, #0ea5e9 100%);
  --radius:        12px;
  --radius-lg:     20px;
  --transition:    all 0.2s ease;
  --shadow-sm:     0 1px 3px rgba(0,0,0,0.07), 0 1px 2px rgba(0,0,0,0.04);
  --shadow-md:     0 4px 16px rgba(0,0,0,0.08), 0 2px 6px rgba(0,0,0,0.05);
  --shadow-lg:     0 20px 48px rgba(0,0,0,0.1), 0 8px 16px rgba(0,0,0,0.06);
  --ease-out-expo: cubic-bezier(0.16, 1, 0.3, 1);
  --ease-door:     cubic-bezier(0.76, 0, 0.24, 1);
}

html  { font-size: 16px; scroll-behavior: smooth; }
body  {
  background: var(--bg);
  color: var(--text);
  font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
  line-height: 1.6;
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
}
body.loading { overflow: hidden; }

/* ==========================================
   PAGE LOADER — DOOR OPEN
   ========================================== */
#loader {
  position: fixed;
  inset: 0;
  z-index: 9999;
  pointer-events: all;
}
#loader.done { display: none; }

/* The two door panels */
.lp {
  position: absolute;
  top: 0; bottom: 0;
  width: 50%;
  background: #0d1b3e;
  overflow: hidden;
  will-change: transform;
}
.lp-l { left: 0; }
.lp-r { right: 0; }

/* Ambient glow behind the logo text */
.l-glow {
  position: absolute;
  top: 50%;
  left: 50vw;
  transform: translate(-50%, -50%);
  width: 500px;
  height: 300px;
  background: radial-gradient(ellipse, rgba(59,130,246,0.25) 0%, transparent 65%);
  animation: glowPulse 2s ease-in-out infinite alternate;
  pointer-events: none;
}
.lp-r .l-glow { left: 0; }
@keyframes glowPulse {
  from { opacity: 0.6; }
  to   { opacity: 1; }
}

/* Logo text — each panel renders it at the same absolute center position,
   overflow:hidden clips it to each panel's half */
.ll {
  position: absolute;
  top: 50%;
  left: 50vw;
  transform: translate(-50%, -50%);
  white-space: nowrap;
  font-size: clamp(3rem, 8vw, 6.5rem);
  font-weight: 900;
  letter-spacing: -0.04em;
  color: #ffffff;
  line-height: 1;
  opacity: 0;
  animation: llIn 0.55s var(--ease-out-expo) 0.25s forwards;
  user-select: none;
}
.lp-r .ll { left: 0; }
.ll em { font-style: normal; color: #93c5fd; }

@keyframes llIn {
  from { opacity: 0; transform: translate(-50%, calc(-50% + 16px)); }
  to   { opacity: 1; transform: translate(-50%, -50%); }
}
.lp-r .ll {
  animation-name: llInR;
}
@keyframes llInR {
  from { opacity: 0; transform: translate(-50%, calc(-50% + 16px)); }
  to   { opacity: 1; transform: translate(-50%, -50%); }
}

/* Tagline below logo — sits on top of both panels */
.l-tagline {
  position: absolute;
  top: calc(50% + clamp(2.5rem, 6vw, 5rem));
  left: 0; right: 0;
  text-align: center;
  color: rgba(255,255,255,0.45);
  font-size: 0.75rem;
  font-weight: 500;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  opacity: 0;
  animation: fadeUp 0.5s ease 0.65s forwards;
  pointer-events: none;
  z-index: 2;
}

/* Thin progress bar at the bottom of the loader */
.l-bar {
  position: absolute;
  bottom: 0; left: 0; right: 0;
  height: 2px;
  background: rgba(255,255,255,0.08);
  z-index: 2;
}
.l-bar-fill {
  height: 100%;
  background: var(--gradient);
  width: 0%;
  animation: loaderBar 1.8s var(--ease-out-expo) 0.1s forwards;
}
@keyframes loaderBar {
  from { width: 0%; }
  to   { width: 100%; }
}

/* Opening state — doors slide apart */
#loader.opening .lp-l { transform: translateX(-100%); transition: transform 1s var(--ease-door) 0.05s; }
#loader.opening .lp-r { transform: translateX(100%);  transition: transform 1s var(--ease-door) 0.05s; }
#loader.opening .l-tagline,
#loader.opening .l-bar { opacity: 0; transition: opacity 0.15s ease; }

/* ==========================================
   SCROLL PROGRESS BAR
   ========================================== */
#scrollProgress {
  position: fixed;
  top: 0; left: 0;
  width: 100%;
  height: 2.5px;
  background: var(--gradient);
  transform-origin: left;
  transform: scaleX(0);
  z-index: 200;
  pointer-events: none;
}

/* ==========================================
   NAVIGATION
   ========================================== */
.nav {
  position: fixed;
  top: 0; left: 0; right: 0;
  z-index: 100;
  padding: 1.125rem 0;
  border-bottom: 1px solid transparent;
  transition: background 0.3s, border-color 0.3s, box-shadow 0.3s;
}
.nav.scrolled {
  background: rgba(255, 255, 255, 0.92);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  border-color: var(--border);
  box-shadow: var(--shadow-sm);
}
.nav-inner {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 2rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
}
.nav-logo {
  font-size: 1.25rem;
  font-weight: 800;
  color: var(--text);
  text-decoration: none;
  letter-spacing: -0.03em;
}
.nav-logo span { color: var(--accent); }
.nav-links {
  display: flex;
  align-items: center;
  gap: 2.25rem;
  list-style: none;
}
.nav-links a {
  color: var(--text-muted);
  text-decoration: none;
  font-size: 0.875rem;
  font-weight: 500;
  transition: color 0.15s;
}
.nav-links a:hover { color: var(--text); }
.nav-cta {
  background: var(--gradient) !important;
  color: #fff !important;
  padding: 0.5rem 1.375rem !important;
  border-radius: 8px !important;
  font-weight: 600 !important;
  transition: opacity 0.2s, box-shadow 0.2s !important;
  box-shadow: 0 2px 8px rgba(37,99,235,0.25) !important;
}
.nav-cta:hover { opacity: 0.9 !important; box-shadow: 0 4px 14px rgba(37,99,235,0.35) !important; }
.nav-mobile-cta { display: none; }

/* ==========================================
   HERO
   ========================================== */
.hero {
  min-height: 100vh;
  display: flex;
  align-items: center;
  padding: 8rem 2rem 5rem;
  position: relative;
  overflow: hidden;
}
.hero-glow {
  position: absolute;
  top: -10%;
  left: 50%;
  transform: translateX(-50%);
  width: 1000px;
  height: 650px;
  background: radial-gradient(ellipse at center, rgba(37,99,235,0.07) 0%, transparent 65%);
  pointer-events: none;
  transition: transform 0.1s linear;
  will-change: transform;
}
.hero-inner {
  max-width: 1200px;
  margin: 0 auto;
  width: 100%;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 4rem;
  align-items: center;
}
.hero-badge {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  background: var(--accent-light);
  border: 1px solid rgba(37,99,235,0.2);
  color: var(--accent);
  font-size: 0.7rem;
  font-weight: 600;
  padding: 0.375rem 0.875rem;
  border-radius: 100px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  margin-bottom: 1.75rem;
}
.badge-dot {
  width: 6px; height: 6px;
  background: var(--accent);
  border-radius: 50%;
  animation: blink 2.4s ease-in-out infinite;
}
@keyframes blink {
  0%, 100% { opacity: 1; }
  50%       { opacity: 0.3; }
}
.hero-title {
  font-size: clamp(2.5rem, 4.5vw, 4rem);
  font-weight: 900;
  line-height: 1.08;
  letter-spacing: -0.04em;
  margin-bottom: 1.5rem;
  color: var(--text);
}
.hero-title .highlight {
  background: var(--gradient);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}
.hero-desc {
  font-size: 1.0625rem;
  color: var(--text-muted);
  line-height: 1.75;
  margin-bottom: 2.5rem;
  max-width: 460px;
}
.hero-actions { display: flex; gap: 0.875rem; flex-wrap: wrap; }

/* ---- Floating notification cards ---- */
.hero-visual { position: relative; }
.fn {
  position: absolute;
  background: white;
  border: 1px solid var(--border);
  border-radius: 14px;
  padding: 0.75rem 1rem;
  box-shadow: var(--shadow-md);
  display: flex;
  align-items: center;
  gap: 0.625rem;
  white-space: nowrap;
  z-index: 2;
  opacity: 0;
  animation: fnIn 0.6s var(--ease-out-expo) forwards;
}
.fn-1 { top: -22px; left: -30px; animation-delay: 2.4s; animation-name: fnIn, floatA; animation-duration: 0.6s, 5s; animation-timing-function: var(--ease-out-expo), ease-in-out; animation-fill-mode: forwards, none; animation-delay: 2.4s, 3s; animation-iteration-count: 1, infinite; }
.fn-2 { bottom: 24px; right: -28px; animation-delay: 2.7s; animation-name: fnIn, floatB; animation-duration: 0.6s, 6s; animation-timing-function: var(--ease-out-expo), ease-in-out; animation-fill-mode: forwards, none; animation-delay: 2.7s, 3.3s; animation-iteration-count: 1, infinite; }

@keyframes fnIn {
  from { opacity: 0; transform: translateY(10px) scale(0.95); }
  to   { opacity: 1; transform: translateY(0)   scale(1); }
}
@keyframes floatA {
  0%, 100% { transform: translateY(0); }
  50%       { transform: translateY(-10px); }
}
@keyframes floatB {
  0%, 100% { transform: translateY(0); }
  50%       { transform: translateY(-8px); }
}
.fn-icon { font-size: 1.25rem; line-height: 1; }
.fn-title { font-size: 0.8125rem; font-weight: 700; color: var(--text); }
.fn-sub   { font-size: 0.7rem; color: var(--text-dim); margin-top: 0.1rem; }

/* ==========================================
   BUTTONS
   ========================================== */
.btn-primary {
  background: var(--gradient);
  color: #fff;
  padding: 0.8125rem 1.875rem;
  border-radius: 10px;
  font-size: 0.9375rem;
  font-weight: 600;
  text-decoration: none;
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  transition: opacity 0.2s, transform 0.2s, box-shadow 0.2s;
  border: none;
  cursor: pointer;
  box-shadow: 0 4px 14px rgba(37,99,235,0.3);
}
.btn-primary:hover { opacity: 0.92; transform: translateY(-2px); color: #fff; box-shadow: 0 8px 24px rgba(37,99,235,0.38); }

.btn-secondary {
  background: transparent;
  color: var(--text);
  padding: 0.8125rem 1.875rem;
  border-radius: 10px;
  font-size: 0.9375rem;
  font-weight: 500;
  text-decoration: none;
  border: 1px solid var(--border-strong);
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  transition: var(--transition);
}
.btn-secondary:hover {
  border-color: var(--accent);
  color: var(--accent);
  background: var(--accent-light);
}

/* ==========================================
   DASHBOARD MOCKUP
   ========================================== */
.dashboard-mockup {
  background: #fff;
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 1.5rem;
  box-shadow: var(--shadow-lg), 0 0 0 1px var(--border);
  position: relative;
  will-change: transform;
}
.dashboard-mockup::before {
  content: '';
  position: absolute;
  inset: -1px;
  border-radius: var(--radius-lg);
  background: linear-gradient(135deg, rgba(37,99,235,0.12) 0%, transparent 50%);
  z-index: -1;
}
.mock-titlebar {
  display: flex;
  align-items: center;
  gap: 0.4rem;
  margin-bottom: 1.25rem;
  padding-bottom: 1rem;
  border-bottom: 1px solid var(--border);
}
.mock-dot { width: 8px; height: 8px; border-radius: 50%; }
.mock-dot.r { background: #ef4444; }
.mock-dot.y { background: #f59e0b; }
.mock-dot.g { background: #22c55e; }
.mock-titlebar-bar { flex: 1; height: 8px; background: var(--bg-subtle); border-radius: 4px; margin-left: 0.75rem; }
.mock-stats { display: grid; grid-template-columns: repeat(3, 1fr); gap: 0.625rem; margin-bottom: 0.875rem; }
.mock-stat { background: var(--bg-subtle); border: 1px solid var(--border); border-radius: var(--radius); padding: 0.75rem; }
.mock-stat-label { font-size: 0.6rem; color: var(--text-dim); text-transform: uppercase; letter-spacing: 0.07em; margin-bottom: 0.3rem; }
.mock-stat-value { font-size: 1.375rem; font-weight: 700; color: var(--text); }
.mock-stat-value.a { color: var(--accent); }
.mock-stat-change { font-size: 0.6rem; color: var(--green); margin-top: 0.2rem; }
.mock-chart { background: var(--bg-subtle); border: 1px solid var(--border); border-radius: var(--radius); padding: 0.875rem; margin-bottom: 0.75rem; }
.mock-chart-label { font-size: 0.6rem; color: var(--text-dim); text-transform: uppercase; letter-spacing: 0.07em; margin-bottom: 0.75rem; }
.mock-bars { display: flex; align-items: flex-end; gap: 0.3rem; height: 44px; }
.mock-bar { flex: 1; background: rgba(37,99,235,0.15); border-radius: 3px 3px 0 0; }
.mock-bar.hi { background: var(--accent); }
.mock-leads { display: grid; grid-template-columns: 1fr 1fr; gap: 0.625rem; }
.mock-lead { background: var(--bg-subtle); border: 1px solid var(--border); border-radius: 10px; padding: 0.625rem 0.75rem; display: flex; align-items: center; gap: 0.5rem; }
.mock-avatar { width: 26px; height: 26px; border-radius: 50%; background: var(--gradient); flex-shrink: 0; display: flex; align-items: center; justify-content: center; font-size: 0.55rem; font-weight: 800; color: #fff; }
.mock-lead-info { min-width: 0; flex: 1; }
.mock-lead-name { font-size: 0.6875rem; font-weight: 600; color: var(--text); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.mock-lead-sub  { font-size: 0.6rem; color: var(--text-dim); }
.mock-badge { font-size: 0.55rem; padding: 0.15rem 0.45rem; border-radius: 100px; font-weight: 600; flex-shrink: 0; margin-left: auto; }
.mock-badge.enrolled { background: #dcfce7; color: var(--green); border: 1px solid #bbf7d0; }
.mock-badge.new      { background: var(--accent-light); color: var(--accent); border: 1px solid #bfdbfe; }

/* ==========================================
   SECTION COMMONS
   ========================================== */
section { padding: 6rem 2rem; }
.section-inner { max-width: 1200px; margin: 0 auto; }
.section-label {
  display: inline-block;
  font-size: 0.7rem;
  font-weight: 700;
  color: var(--accent);
  letter-spacing: 0.12em;
  text-transform: uppercase;
  margin-bottom: 1rem;
}
.section-title {
  font-size: clamp(1.875rem, 3vw, 2.875rem);
  font-weight: 800;
  letter-spacing: -0.035em;
  line-height: 1.12;
  margin-bottom: 1.125rem;
  color: var(--text);
}
.section-desc { font-size: 1.0625rem; color: var(--text-muted); max-width: 560px; line-height: 1.75; }
.text-center { text-align: center; }
.text-center .section-desc { margin-left: auto; margin-right: auto; }

/* ==========================================
   FEATURES GRID
   ========================================== */
.features-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.25rem;
  margin-top: 4rem;
}
.feature-card {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 2rem;
  position: relative;
  overflow: hidden;
  transition: border-color 0.25s, box-shadow 0.4s;
  will-change: transform;
}
.feature-card:hover {
  border-color: rgba(37,99,235,0.3);
  box-shadow: var(--shadow-md), 0 0 0 1px rgba(37,99,235,0.1);
}
/* Gradient shimmer on card hover */
.feature-card::after {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(135deg, var(--accent-light), transparent 60%);
  opacity: 0;
  transition: opacity 0.35s ease;
  pointer-events: none;
  border-radius: var(--radius-lg);
}
.feature-card:hover::after { opacity: 1; }
.feature-icon {
  width: 46px; height: 46px;
  background: var(--accent-light);
  border: 1px solid rgba(37,99,235,0.18);
  border-radius: 11px;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--accent);
  margin-bottom: 1.375rem;
  position: relative;
  z-index: 1;
  transition: transform 0.3s var(--ease-out-expo);
}
.feature-card:hover .feature-icon { transform: scale(1.1) rotate(-4deg); }
.feature-name { font-size: 1rem; font-weight: 700; margin-bottom: 0.5rem; color: var(--text); position: relative; z-index: 1; }
.feature-desc { font-size: 0.9rem; color: var(--text-muted); line-height: 1.65; position: relative; z-index: 1; }
/* Integrations standalone section */
.integrations-section {
  background: rgba(255,255,255,0.03);
  border-top: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
  padding: 2rem 2rem;
  position: relative;
  overflow: hidden;
}
.integrations-section::before {
  display: none;
}
.integrations-strip {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 1.5rem;
  flex-wrap: wrap;
  position: relative;
}
.integrations-label {
  font-size: 0.75rem;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--text-muted);
  padding-right: 1rem;
  border-right: 1px solid var(--border);
}
.integrations-list {
  display: flex;
  align-items: center;
  gap: 0.625rem;
  flex-wrap: wrap;
}
.integration-item {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  font-size: 0.875rem;
  font-weight: 600;
  color: var(--text);
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: 10px;
  padding: 0.45rem 0.875rem;
  transition: background 0.2s, border-color 0.2s;
}
.integration-item:hover {
  border-color: rgba(37,99,235,0.35);
  background: var(--accent-light);
}
.integration-sep { display: none; }
.int-icon { flex-shrink: 0; border-radius: 5px; }

/* ==========================================
   HOW IT WORKS
   ========================================== */
.how-section { background: var(--bg-subtle); }
.steps {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 2rem;
  margin-top: 4rem;
  position: relative;
}
/* Connector line that animates in */
.steps::before {
  content: '';
  position: absolute;
  top: 1.875rem;
  left: calc(50% / 3 + 1rem);
  right: calc(50% / 3 + 1rem);
  height: 1px;
  background: linear-gradient(90deg, var(--accent), rgba(14,165,233,0.3));
  transform-origin: left;
  transform: scaleX(0);
  transition: transform 1.2s var(--ease-out-expo);
}
.steps.visible::before { transform: scaleX(1); }
.step { text-align: center; position: relative; z-index: 1; }
.step-num {
  width: 3.75rem; height: 3.75rem;
  background: var(--bg);
  border: 2px solid var(--border);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1rem;
  font-weight: 800;
  color: var(--accent);
  margin: 0 auto 1.5rem;
  box-shadow: var(--shadow-sm);
  transition: border-color 0.3s, box-shadow 0.3s, transform 0.4s var(--ease-out-expo);
}
.step:hover .step-num {
  border-color: var(--accent);
  box-shadow: 0 0 0 4px var(--accent-light);
  transform: scale(1.08);
}
.step-title { font-size: 1.0625rem; font-weight: 700; margin-bottom: 0.625rem; color: var(--text); }
.step-desc  { font-size: 0.9rem; color: var(--text-muted); line-height: 1.65; }

/* ==========================================
   FEATURE SPOTLIGHTS
   ========================================== */
.spotlight { padding: 6rem 2rem; }
.spotlight-inner {
  max-width: 1200px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 5rem;
  align-items: center;
}
.spotlight-list {
  list-style: none;
  margin: 1.5rem 0 2.25rem;
  display: flex;
  flex-direction: column;
  gap: 0.875rem;
}
.spotlight-list li {
  display: flex;
  align-items: flex-start;
  gap: 0.75rem;
  font-size: 0.9375rem;
  color: var(--text-muted);
  line-height: 1.55;
}
.check {
  width: 20px; height: 20px;
  background: #dcfce7;
  border: 1px solid #bbf7d0;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  margin-top: 0.1rem;
  color: var(--green);
}

/* Leads visual */
.leads-visual {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 1.5rem;
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
  box-shadow: var(--shadow-lg);
}
.lead-row {
  background: var(--bg-subtle);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 0.875rem 1rem;
  display: flex;
  align-items: center;
  gap: 0.875rem;
  transition: border-color 0.2s, box-shadow 0.2s, transform 0.2s;
}
.lead-row:hover { border-color: rgba(37,99,235,0.25); box-shadow: var(--shadow-sm); transform: translateX(4px); }
.lead-av { width: 36px; height: 36px; border-radius: 50%; flex-shrink: 0; display: flex; align-items: center; justify-content: center; font-size: 0.75rem; font-weight: 800; color: #fff; }
.lead-info { flex: 1; min-width: 0; }
.lead-name   { font-size: 0.875rem; font-weight: 600; color: var(--text); }
.lead-course { font-size: 0.75rem; color: var(--text-dim); margin-top: 0.1rem; }
.lead-tag { font-size: 0.6875rem; padding: 0.25rem 0.625rem; border-radius: 100px; font-weight: 600; flex-shrink: 0; }
.tag-hot      { background: #fee2e2; color: var(--red);   border: 1px solid #fecaca; }
.tag-warm     { background: #fef3c7; color: var(--amber); border: 1px solid #fde68a; }
.tag-enrolled { background: #dcfce7; color: var(--green); border: 1px solid #bbf7d0; }
.tag-new      { background: var(--accent-light); color: var(--accent); border: 1px solid #bfdbfe; }

/* Portal visual */
.portal-visual { background: var(--bg-card); border: 1px solid var(--border); border-radius: var(--radius-lg); overflow: hidden; box-shadow: var(--shadow-lg); }
.portal-header { background: var(--gradient); padding: 1.5rem 1.75rem; color: #fff; }
.portal-hello { font-size: 0.75rem; opacity: 0.85; margin-bottom: 0.25rem; }
.portal-name  { font-size: 1.125rem; font-weight: 700; }
.portal-body  { padding: 1.375rem 1.5rem; display: flex; flex-direction: column; gap: 0.75rem; }
.portal-course { background: var(--bg-subtle); border: 1px solid var(--border); border-radius: var(--radius); padding: 1rem; }
.portal-course-name { font-size: 0.875rem; font-weight: 600; color: var(--text); margin-bottom: 0.5rem; }
.progress-bar { height: 4px; background: var(--border); border-radius: 2px; overflow: hidden; }
.progress-fill { height: 100%; background: var(--gradient); border-radius: 2px; width: 0; transition: width 1.2s var(--ease-out-expo); }
.progress-fill.visible { width: var(--target-width, 68%); }
.portal-meta { display: flex; justify-content: space-between; margin-top: 0.5rem; font-size: 0.7rem; color: var(--text-dim); }
.portal-actions { display: grid; grid-template-columns: repeat(4, 1fr); gap: 0.625rem; }
.portal-action {
  background: var(--bg-subtle);
  border: 1px solid var(--border);
  border-radius: 10px;
  padding: 0.75rem 0.5rem;
  text-align: center;
  font-size: 0.7rem;
  font-weight: 500;
  color: var(--text-muted);
  transition: border-color 0.2s, background 0.2s, transform 0.2s;
  cursor: default;
}
.portal-action:hover { border-color: rgba(37,99,235,0.25); background: var(--accent-light); transform: translateY(-2px); }
.action-icon { font-size: 1.25rem; margin-bottom: 0.3rem; }

/* ==========================================
   TRUSTED BY
   ========================================== */
.trusted-section {
  background: #060f2a;
  position: relative;
  overflow: hidden;
  border-top: 1px solid rgba(255,255,255,0.06);
  border-bottom: 1px solid rgba(255,255,255,0.06);
}

/* Title row */
.trusted-title-row {
  display: flex;
  align-items: center;
  gap: 1.25rem;
  padding: 1.5rem 3rem;
  border-bottom: 1px solid rgba(255,255,255,0.06);
}
.trusted-eyebrow {
  font-size: 0.65rem; font-weight: 800;
  letter-spacing: 0.12em; text-transform: uppercase;
  color: #60a5fa; flex-shrink: 0;
}
.trusted-heading {
  font-size: 1rem; font-weight: 700;
  color: rgba(255,255,255,0.75);
  letter-spacing: -0.01em; margin: 0;
}

/* Stats top row */
.trusted-top {
  display: grid;
  grid-template-columns: auto 1px 1fr;
  align-items: center;
  padding: 2rem 3rem;
  gap: 0;
  border-bottom: 1px solid rgba(255,255,255,0.06);
}
.trusted-company {
  padding-right: 2.5rem;
  min-width: 300px;
  opacity: 0;
  transform: translateX(-20px);
  transition: opacity 0.6s ease, transform 0.6s var(--ease-out-expo);
}
.trusted-section.in-view .trusted-company {
  opacity: 1; transform: translateX(0);
}
.trusted-badge {
  display: inline-block;
  font-size: 0.6rem; font-weight: 800;
  letter-spacing: 0.12em; text-transform: uppercase;
  padding: 0.25rem 0.75rem; border-radius: 100px;
  background: rgba(37,99,235,0.2); color: #93c5fd;
  border: 1px solid rgba(37,99,235,0.3);
  margin-bottom: 0.75rem;
}
.trusted-client-identity {
  display: flex;
  align-items: center;
  gap: 1rem;
}
.trusted-logo {
  height: 60px; width: 60px;
  border-radius: 12px;
  flex-shrink: 0;
  box-shadow: 0 0 0 1px rgba(255,255,255,0.1), 0 4px 16px rgba(0,0,0,0.4);
}
.trusted-client-info { display: flex; flex-direction: column; gap: 0.2rem; }
.trusted-name {
  font-size: 1rem; font-weight: 800;
  letter-spacing: -0.02em; line-height: 1.3;
  color: #fff;
}
.trusted-since {
  font-size: 0.725rem; color: rgba(255,255,255,0.3); font-weight: 500;
}
.trusted-divider {
  width: 1px; height: 56px;
  background: rgba(255,255,255,0.1);
  margin: 0 2.5rem 0 0;
}
.trusted-stats-wrap { padding-left: 2rem; display: flex; flex-direction: column; gap: 0.625rem; }
.trusted-stats-heading {
  font-size: 0.8rem; font-weight: 600;
  color: rgba(255,255,255,0.55);
  line-height: 1.4;
}
.trusted-stats-heading-client {
  font-weight: 800;
  color: #93c5fd;
}
.trusted-stats-row { padding-left: 0; }
.trusted-stats-row {
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  gap: 0;
}
.trusted-stat {
  text-align: center;
  padding: 0.75rem 1rem;
  border-left: 1px solid rgba(255,255,255,0.07);
  opacity: 0;
  transform: translateY(12px);
  transition: opacity 0.5s ease calc(var(--i, 0) * 0.08s),
              transform 0.5s var(--ease-out-expo) calc(var(--i, 0) * 0.08s);
}
.trusted-stat:first-child { border-left: none; }
.trusted-section.in-view .trusted-stat {
  opacity: 1; transform: translateY(0);
}
.trusted-stat-value {
  font-size: clamp(1.5rem, 2vw, 2rem);
  font-weight: 900; letter-spacing: -0.03em; line-height: 1;
  background: linear-gradient(135deg, #60a5fa, #2563eb);
  -webkit-background-clip: text; -webkit-text-fill-color: transparent;
  background-clip: text;
  margin-bottom: 0.375rem;
}
.trusted-stat-label {
  font-size: 0.825rem; color: rgba(255,255,255,0.7);
  font-weight: 500; line-height: 1.4; text-transform: lowercase; letter-spacing: 0;
}

/* Results bar */
.trusted-results-bar {
  display: flex;
  align-items: center;
  gap: 2rem;
  padding: 1.25rem 3rem;
  border-top: 1px solid rgba(52,211,153,0.15);
  border-bottom: 1px solid rgba(52,211,153,0.15);
  background: linear-gradient(90deg, rgba(52,211,153,0.07) 0%, rgba(52,211,153,0.03) 100%);
  flex-wrap: wrap;
  opacity: 0;
  transform: translateY(8px);
  transition: opacity 0.55s ease 0.3s, transform 0.55s var(--ease-out-expo) 0.3s;
  position: relative;
}
.trusted-results-bar::before {
  content: '';
  position: absolute; left: 0; top: 0; bottom: 0; width: 3px;
  background: linear-gradient(180deg, #34d399, #059669);
}
.trusted-section.in-view .trusted-results-bar {
  opacity: 1; transform: translateY(0);
}
.trusted-results-label {
  font-size: 0.7rem; font-weight: 800;
  letter-spacing: 0.1em; text-transform: uppercase;
  color: #34d399;
  white-space: nowrap; flex-shrink: 0;
  padding-right: 1.25rem;
  border-right: 1px solid rgba(52,211,153,0.2);
}
.trusted-results-list {
  display: flex; align-items: center;
  gap: 0.625rem; flex-wrap: wrap;
}
.trusted-result-item {
  display: inline-flex; align-items: center; gap: 0.4rem;
  font-size: 0.825rem; font-weight: 600;
  color: rgba(255,255,255,0.8);
  background: rgba(52,211,153,0.1);
  border: 1px solid rgba(52,211,153,0.25);
  border-radius: 100px;
  padding: 0.35rem 0.875rem 0.35rem 0.625rem;
  white-space: nowrap;
  transition: background 0.2s, border-color 0.2s;
}
.trusted-result-item:hover {
  background: rgba(52,211,153,0.18);
  border-color: rgba(52,211,153,0.45);
}
.trusted-result-item svg { flex-shrink: 0; }

/* Trusted CTA bar */
.trusted-cta-bar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1.5rem;
  padding: 1.25rem 3rem;
  background: linear-gradient(90deg, rgba(37,99,235,0.12) 0%, rgba(37,99,235,0.05) 100%);
  border-top: 1px solid rgba(37,99,235,0.2);
  opacity: 0;
  transform: translateY(8px);
  transition: opacity 0.55s ease 0.55s, transform 0.55s var(--ease-out-expo) 0.55s;
}
.trusted-section.in-view .trusted-cta-bar {
  opacity: 1; transform: translateY(0);
}
.trusted-cta-text {
  font-size: 0.9375rem; font-weight: 600;
  color: rgba(255,255,255,0.75);
}
.trusted-cta-btn {
  display: inline-flex; align-items: center; gap: 0.5rem;
  background: var(--gradient);
  color: #fff; font-size: 0.875rem; font-weight: 700;
  padding: 0.625rem 1.375rem;
  border-radius: 8px;
  text-decoration: none;
  white-space: nowrap;
  box-shadow: 0 4px 16px rgba(37,99,235,0.35);
  transition: opacity 0.2s, box-shadow 0.2s;
  flex-shrink: 0;
}
.trusted-cta-btn:hover {
  opacity: 0.9;
  box-shadow: 0 6px 20px rgba(37,99,235,0.5);
}

/* Quote bar */
.trusted-quote-bar {
  display: flex;
  align-items: center;
  gap: 1.25rem;
  padding: 1.25rem 3rem;
  background: rgba(255,255,255,0.03);
  border-top: 1px solid rgba(255,255,255,0.07);
  opacity: 0;
  transform: translateY(8px);
  transition: opacity 0.55s ease 0.45s, transform 0.55s var(--ease-out-expo) 0.45s;
}
.trusted-section.in-view .trusted-quote-bar {
  opacity: 1; transform: translateY(0);
}
.trusted-quote-text {
  font-size: 0.9375rem; font-style: italic;
  color: rgba(255,255,255,0.75); line-height: 1.65;
  flex: 1;
}
.trusted-quote-attr {
  font-size: 0.8rem; font-weight: 600;
  color: rgba(255,255,255,0.4);
  white-space: nowrap;
  flex-shrink: 0;
}

/* ==========================================
   CTA
   ========================================== */
.cta-section {
  padding: 8rem 2rem;
  text-align: center;
  position: relative;
  overflow: hidden;
  background: var(--bg-subtle);
}
.cta-glow {
  position: absolute;
  top: 50%; left: 50%;
  transform: translate(-50%, -50%);
  width: 700px; height: 500px;
  background: radial-gradient(ellipse, rgba(37,99,235,0.08) 0%, transparent 65%);
  pointer-events: none;
}
.cta-title {
  font-size: clamp(2.25rem, 4vw, 3.5rem);
  font-weight: 900;
  letter-spacing: -0.04em;
  line-height: 1.1;
  margin-bottom: 1.25rem;
  position: relative;
  z-index: 1;
  color: var(--text);
}
.cta-desc {
  font-size: 1.0625rem;
  color: var(--text-muted);
  max-width: 480px;
  margin: 0 auto 2.75rem;
  line-height: 1.75;
  position: relative;
  z-index: 1;
}
.cta-actions { display: flex; justify-content: center; gap: 0.875rem; flex-wrap: wrap; position: relative; z-index: 1; }

/* ==========================================
   FOOTER
   ========================================== */
footer { background: var(--text); padding: 3rem 2rem; }
.footer-inner { max-width: 1200px; margin: 0 auto; display: flex; flex-direction: column; align-items: center; gap: 1.75rem; text-align: center; }
.footer-logo { font-size: 1.25rem; font-weight: 800; letter-spacing: -0.03em; color: #fff; }
.footer-logo span { color: #93c5fd; }
.footer-tagline { font-size: 0.875rem; color: #64748b; margin-top: 0.25rem; }
.footer-links { display: flex; gap: 2rem; flex-wrap: wrap; justify-content: center; }
.footer-links a { color: #475569; font-size: 0.875rem; text-decoration: none; transition: color 0.15s; }
.footer-links a:hover { color: #94a3b8; }
.footer-copy { font-size: 0.8125rem; color: #334155; }
.footer-copy a { color: #334155; text-decoration: none; }
.footer-copy a:hover { color: #94a3b8; }

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

/* Standard fade-up */
.fade-up {
  opacity: 0;
  transform: translateY(28px);
  transition: opacity 0.7s var(--ease-out-expo), transform 0.7s var(--ease-out-expo);
}
.fade-up.visible { opacity: 1; transform: translateY(0); }

/* Slide in from left */
.slide-left {
  opacity: 0;
  transform: translateX(-40px);
  transition: opacity 0.75s var(--ease-out-expo), transform 0.75s var(--ease-out-expo);
}
.slide-left.visible { opacity: 1; transform: translateX(0); }

/* Slide in from right */
.slide-right {
  opacity: 0;
  transform: translateX(40px);
  transition: opacity 0.75s var(--ease-out-expo), transform 0.75s var(--ease-out-expo);
}
.slide-right.visible { opacity: 1; transform: translateX(0); }

/* Scale in */
.scale-in {
  opacity: 0;
  transform: scale(0.94);
  transition: opacity 0.65s var(--ease-out-expo), transform 0.65s var(--ease-out-expo);
}
.scale-in.visible { opacity: 1; transform: scale(1); }

.delay-1 { transition-delay: 0.1s; }
.delay-2 { transition-delay: 0.2s; }
.delay-3 { transition-delay: 0.3s; }
.delay-4 { transition-delay: 0.4s; }
.delay-5 { transition-delay: 0.5s; }

/* Text reveal — masks lines */
.reveal-wrap { overflow: hidden; }
.reveal-line {
  display: block;
  opacity: 0;
  transform: translateY(100%);
  transition: opacity 0.01s, transform 0.75s var(--ease-out-expo);
}
.reveal-line.visible { opacity: 1; transform: translateY(0); }

/* ==========================================
   UTILITY
   ========================================== */
@keyframes fadeUp {
  from { opacity: 0; transform: translateY(10px); }
  to   { opacity: 1; transform: translateY(0); }
}

/* ==========================================
   RESPONSIVE
   ========================================== */
@media (max-width: 1024px) {
  .features-grid { grid-template-columns: repeat(2, 1fr); }
  .spotlight-inner { gap: 3rem; }
  .trusted-highlights { grid-template-columns: 1fr 1fr; }
}

@media (max-width: 768px) {
  .nav-links { display: none; }
  .nav-mobile-cta {
    display: inline-flex;
    align-items: center;
    background: var(--gradient);
    color: #fff;
    padding: 0.5rem 1.125rem;
    border-radius: 8px;
    font-size: 0.8125rem;
    font-weight: 600;
    text-decoration: none;
    box-shadow: 0 2px 8px rgba(37,99,235,0.25);
  }
  .hero-inner { grid-template-columns: 1fr; }
  .hero-visual { display: none; }
  .features-grid { grid-template-columns: 1fr; }
  .steps { grid-template-columns: 1fr; }
  .steps::before { display: none; }
  .spotlight-inner { grid-template-columns: 1fr; gap: 2.5rem; }
  section { padding: 4rem 1.5rem; }
  .hero { padding: 7rem 1.5rem 4rem; min-height: auto; }
  .cta-section { padding: 5rem 1.5rem; }
  .ll { font-size: clamp(2rem, 10vw, 4rem); }

  /* Trusted section — collapse all 3rem paddings */
  .trusted-title-row  { padding: 1rem 1.5rem; flex-direction: column; align-items: flex-start; gap: 0.25rem; }
  .trusted-top        { grid-template-columns: 1fr; padding: 1.5rem; gap: 1.25rem; }
  .trusted-divider    { display: none; }
  .trusted-company    { min-width: 0; }
  .trusted-stats-wrap { padding-left: 0; }
  .trusted-stats-row  { grid-template-columns: repeat(3, 1fr); }
  .trusted-stat       { border-left: none; border-top: 1px solid rgba(255,255,255,0.07); padding: 0.75rem 0.5rem; }
  .trusted-stat:nth-child(-n+3) { border-top: none; }
  .trusted-results-bar  { padding: 1rem 1.5rem; gap: 1rem; }
  .trusted-quote-bar    { flex-direction: column; align-items: flex-start; padding: 1rem 1.5rem; gap: 0.5rem; }
  .trusted-cta-bar      { flex-direction: column; align-items: flex-start; padding: 1.25rem 1.5rem; gap: 1rem; }
  .trusted-cta-btn      { width: 100%; justify-content: center; }

  /* Integrations */
  .integrations-strip   { flex-direction: column; gap: 0.875rem; padding: 1.5rem; }
  .integrations-label   { border-right: none; padding-right: 0; border-bottom: 1px solid var(--border); padding-bottom: 0.75rem; width: 100%; text-align: center; }
  .integrations-list    { justify-content: center; }
}

@media (max-width: 480px) {
  .trusted-stats-row  { grid-template-columns: repeat(2, 1fr); }
  .trusted-stat:nth-child(-n+3) { border-top: 1px solid rgba(255,255,255,0.07); }
  .trusted-stat:nth-child(-n+2) { border-top: none; }
  .trusted-results-list { gap: 0.375rem; }
  .trusted-result-item  { font-size: 0.75rem; padding: 0.25rem 0.625rem 0.25rem 0.5rem; }
  .trusted-cta-text     { font-size: 0.875rem; }
  .hero-actions         { flex-direction: column; }
  .hero-actions .btn-primary,
  .hero-actions .btn-secondary { width: 100%; justify-content: center; }
}
