/* =====================================================
   VISION EDUCATION — MASTERSTUDY-STYLE HOMEPAGE v4
   ===================================================== */

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

/* ══════════════════════════════════════════
   TOP INFO BAR
══════════════════════════════════════════ */
.hp-topbar {
  background: #1a1a2e;
  color: #94a3b8;
  font-size: 0.75rem;
  padding: 8px 2rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 6px;
  border-bottom: 1px solid rgba(255,255,255,0.05);
  z-index: 1000;
  position: relative;
}
.hp-topbar a { color: #94a3b8; text-decoration: none; transition: color 0.2s; }
.hp-topbar a:hover { color: #fbbf24; }
.hp-topbar-left, .hp-topbar-right {
  display: flex; align-items: center; gap: 1.25rem; flex-wrap: wrap;
}
.hp-topbar-item {
  display: flex; align-items: center; gap: 6px;
}
.hp-topbar-item svg { color: #fbbf24; flex-shrink: 0; }

/* ══════════════════════════════════════════
   TOP NAV BAR
══════════════════════════════════════════ */
.hp-nav {
  position: sticky; top: 0; left: 0; right: 0;
  z-index: 900; display: flex; align-items: center;
  justify-content: space-between; padding: 0 2.5rem;
  height: 70px; background: #fff;
  box-shadow: 0 2px 20px rgba(0,0,0,0.08);
  transition: box-shadow 0.3s;
}
.hp-nav.scrolled { box-shadow: 0 4px 30px rgba(0,0,0,0.14); }
.hp-nav-brand { display: flex; align-items: center; gap: 10px; text-decoration: none; }
.hp-nav-brand img { width: 36px; height: 36px; object-fit: contain; }
.hp-nav-brand-text { font-size: 1.1rem; font-weight: 800; color: #1a1a2e; letter-spacing: -0.02em; }
.hp-nav-brand-text span { color: #fbbf24; }

.hp-nav-links { display: flex; align-items: center; gap: 0; }
.hp-nav-link {
  padding: 8px 16px; font-size: 0.875rem;
  font-weight: 600; color: #374151; text-decoration: none;
  transition: color 0.2s; position: relative; white-space: nowrap;
}
.hp-nav-link:hover { color: #fbbf24; }
.hp-nav-link.active { color: #fbbf24; }
.hp-nav-link.active::after {
  content: ''; position: absolute; bottom: -2px; left: 16px; right: 16px;
  height: 2px; background: #fbbf24; border-radius: 2px;
}

.hp-nav-cta { display: flex; align-items: center; gap: 10px; }
.hp-btn-outline {
  padding: 9px 22px; border-radius: 6px; border: 2px solid #e5e7eb;
  font-size: 0.85rem; font-weight: 700; color: #374151; text-decoration: none;
  transition: all 0.2s; background: transparent; white-space: nowrap;
}
.hp-btn-outline:hover { border-color: #fbbf24; color: #fbbf24; }
.hp-btn-primary {
  padding: 10px 24px; border-radius: 6px; background: #fbbf24;
  border: none; font-size: 0.85rem; font-weight: 800; color: #1a1a2e;
  text-decoration: none; transition: all 0.2s; cursor: pointer;
  display: flex; align-items: center; gap: 6px; white-space: nowrap;
}
.hp-btn-primary:hover { background: #f59e0b; transform: translateY(-1px); box-shadow: 0 4px 16px rgba(251,191,36,0.4); }

.hp-nav-search {
  width: 36px; height: 36px; border-radius: 6px; background: #fbbf24;
  border: none; cursor: pointer; display: flex; align-items: center;
  justify-content: center; color: #1a1a2e; transition: all 0.2s; flex-shrink: 0;
}
.hp-nav-search:hover { background: #f59e0b; }

.hp-nav-hamburger {
  display: none; background: none; border: 2px solid #e5e7eb;
  border-radius: 6px; color: #374151; cursor: pointer; padding: 7px;
  align-items: center; justify-content: center; transition: all 0.2s;
}
.hp-nav-hamburger:hover { border-color: #fbbf24; color: #fbbf24; }
@media (max-width: 1024px) {
  .hp-nav-links { display: none; }
  .hp-nav-hamburger { display: flex; }
}
@media (max-width: 768px) {
  .hp-nav-cta .hp-btn-outline { display: none; }
  .hp-nav-cta .hp-nav-search { display: none; }
  .hp-nav { padding: 0 1rem; height: 60px; }
  .hp-topbar { display: none; }
}
@media (max-width: 480px) {
  .hp-nav-cta .hp-btn-primary { font-size: 0.78rem; padding: 8px 16px; }
  .hp-nav-brand-text { font-size: 0.95rem; }
}

/* ─── MOBILE DRAWER ─── */
.hp-mobile-overlay {
  display: none; position: fixed; inset: 0; z-index: 1100;
  background: rgba(0,0,0,0.45); backdrop-filter: blur(2px);
  opacity: 0; transition: opacity 0.3s;
}
.hp-mobile-overlay.open { display: block; opacity: 1; }

.hp-mobile-drawer {
  position: fixed; top: 0; right: 0; bottom: 0; z-index: 1200;
  width: min(320px, 88vw);
  background: #fff; box-shadow: -8px 0 40px rgba(0,0,0,0.18);
  display: flex; flex-direction: column;
  transform: translateX(100%); transition: transform 0.32s cubic-bezier(0.4,0,0.2,1);
  padding: 0;
}
.hp-mobile-drawer.open { transform: translateX(0); }

.drawer-header {
  display: flex; align-items: center; justify-content: space-between;
  padding: 1.25rem 1.5rem;
  border-bottom: 1px solid #f1f5f9;
}
.drawer-brand { display: flex; align-items: center; gap: 8px; text-decoration: none; }
.drawer-brand span { font-size: 1rem; font-weight: 800; color: #1a1a2e; }
.drawer-brand span em { color: #fbbf24; font-style: normal; }
.drawer-close {
  width: 34px; height: 34px; border-radius: 8px;
  border: 1.5px solid #e2e8f0; background: none; cursor: pointer;
  display: flex; align-items: center; justify-content: center;
  color: #64748b; transition: all 0.2s;
}
.drawer-close:hover { background: #1a1a2e; color: #fbbf24; border-color: #1a1a2e; }

.drawer-links {
  flex: 1; overflow-y: auto; padding: 1rem 1rem;
  display: flex; flex-direction: column; gap: 2px;
}
.drawer-link {
  display: flex; align-items: center; gap: 10px;
  padding: 12px 14px; border-radius: 10px;
  font-size: 0.9rem; font-weight: 600; color: #374151;
  text-decoration: none; transition: all 0.18s;
}
.drawer-link:hover { background: rgba(251,191,36,0.1); color: #1a1a2e; }
.drawer-link.active { background: #1a1a2e; color: #fbbf24; }
.drawer-link svg { flex-shrink: 0; }

.drawer-footer {
  padding: 1.25rem 1.5rem;
  border-top: 1px solid #f1f5f9;
  display: flex; flex-direction: column; gap: 10px;
}
.drawer-btn-login {
  display: block; text-align: center; padding: 11px;
  border-radius: 8px; border: 1.5px solid #e2e8f0;
  font-size: 0.88rem; font-weight: 700; color: #1a1a2e;
  text-decoration: none; transition: all 0.2s;
}
.drawer-btn-login:hover { border-color: #fbbf24; color: #fbbf24; }
.drawer-btn-start {
  display: block; text-align: center; padding: 12px;
  border-radius: 8px; background: #fbbf24; border: none;
  font-size: 0.88rem; font-weight: 800; color: #1a1a2e;
  text-decoration: none; transition: all 0.2s; cursor: pointer;
}
.drawer-btn-start:hover { background: #f59e0b; box-shadow: 0 4px 14px rgba(251,191,36,0.4); }

/* ══════════════════════════════════════════
   HERO SECTION
══════════════════════════════════════════ */
.hp-hero {
  position: relative; width: 100%;
  min-height: 88vh;
  display: flex; align-items: center;
  overflow: hidden; background: #1a1a2e;
}
.hp-hero-bg {
  position: absolute; inset: 0;
  background-image: url('assets/hero-students.png');
  background-size: cover; background-position: center top;
  background-repeat: no-repeat;
}
.hp-hero-overlay {
  position: absolute; inset: 0;
  background: linear-gradient(
    to right,
    rgba(15, 15, 35, 0.78) 0%,
    rgba(15, 15, 35, 0.55) 50%,
    rgba(15, 15, 35, 0.25) 100%
  );
}
.hp-hero-content {
  position: relative; z-index: 2;
  padding: 6rem 3rem 5rem;
  max-width: 680px;
  margin-left: 8%;
}
.hp-hero-eyebrow {
  display: inline-block;
  background: #fbbf24; color: #1a1a2e;
  font-size: 0.7rem; font-weight: 800;
  letter-spacing: 0.14em; text-transform: uppercase;
  padding: 5px 14px; border-radius: 4px;
  margin-bottom: 1.5rem;
}
.hp-hero-h1 {
  font-size: clamp(2.4rem, 5.5vw, 4.2rem);
  font-weight: 900; line-height: 1.1;
  letter-spacing: -0.03em;
  color: #fff;
  margin-bottom: 1.5rem;
}
.hp-hero-h1 .accent { color: #fbbf24; }
.hp-hero-sub {
  font-size: 1.1rem; color: rgba(255,255,255,0.78);
  max-width: 520px; line-height: 1.7; margin-bottom: 2.5rem;
}
.hp-hero-actions { display: flex; align-items: center; gap: 14px; flex-wrap: wrap; }
.hp-hero-cta-primary {
  display: inline-flex; align-items: center; gap: 10px;
  background: #fbbf24; color: #1a1a2e;
  font-weight: 800; font-size: 0.92rem;
  padding: 14px 32px; border-radius: 6px;
  text-decoration: none; border: none; cursor: pointer;
  transition: all 0.25s;
  box-shadow: 0 4px 20px rgba(251,191,36,0.4);
}
.hp-hero-cta-primary:hover {
  background: #f59e0b; transform: translateY(-2px);
  box-shadow: 0 8px 28px rgba(251,191,36,0.5);
}
.hp-hero-cta-secondary {
  display: inline-flex; align-items: center; gap: 10px;
  background: rgba(255,255,255,0.1);
  backdrop-filter: blur(8px);
  color: #fff; font-weight: 700; font-size: 0.9rem;
  padding: 13px 28px; border-radius: 6px;
  border: 1px solid rgba(255,255,255,0.3);
  text-decoration: none; transition: all 0.25s;
}
.hp-hero-cta-secondary:hover {
  background: rgba(255,255,255,0.18);
  border-color: rgba(255,255,255,0.5);
}

/* Enterprise Portal Link */
.hp-enterprise-link {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-top: 2rem;
  padding: 16px 24px;
  background: rgba(16, 185, 129, 0.08);
  border: 1px solid rgba(16, 185, 129, 0.2);
  border-radius: 12px;
  backdrop-filter: blur(10px);
  max-width: fit-content;
}

.hp-enterprise-link svg {
  color: #10b981;
  flex-shrink: 0;
}

.hp-enterprise-link span {
  color: rgba(255, 255, 255, 0.85);
  font-size: 0.9rem;
  font-weight: 500;
}

.hp-enterprise-btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: linear-gradient(135deg, #10b981, #059669);
  color: white;
  font-weight: 700;
  font-size: 0.85rem;
  padding: 8px 18px;
  border-radius: 6px;
  text-decoration: none;
  transition: all 0.25s;
  box-shadow: 0 2px 12px rgba(16, 185, 129, 0.3);
  margin-left: auto;
}

.hp-enterprise-btn:hover {
  transform: translateY(-2px);
  box-shadow: 0 4px 20px rgba(16, 185, 129, 0.5);
  background: linear-gradient(135deg, #059669, #047857);
}

.hp-enterprise-btn svg {
  color: white;
}

@media (max-width: 768px) {
  .hp-enterprise-link {
    flex-direction: column;
    align-items: flex-start;
    gap: 12px;
  }
  
  .hp-enterprise-btn {
    margin-left: 0;
    width: 100%;
    justify-content: center;
  }
}

/* Slider dots */
.hp-slider-arrows {
  position: absolute; bottom: 50%; transform: translateY(50%);
  width: 100%; display: flex; justify-content: space-between;
  padding: 0 1rem; z-index: 5; pointer-events: none;
}
.hp-arrow-btn {
  width: 42px; height: 42px; border-radius: 50%;
  background: rgba(255,255,255,0.12); border: 1px solid rgba(255,255,255,0.2);
  color: #fff; cursor: pointer; display: flex; align-items: center;
  justify-content: center; transition: all 0.2s; pointer-events: all;
  backdrop-filter: blur(8px);
}
.hp-arrow-btn:hover { background: #fbbf24; color: #1a1a2e; border-color: #fbbf24; }

/* ══════════════════════════════════════════
   FEATURE STRIP — 4 COLORFUL COLUMNS
══════════════════════════════════════════ */
.hp-feature-strip {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  min-height: 240px;
}
.hp-feat-card {
  padding: 2.5rem 2rem;
  display: flex; flex-direction: column;
  gap: 1rem; text-decoration: none;
  position: relative; overflow: hidden;
  transition: filter 0.25s, transform 0.25s;
}
.hp-feat-card:hover { filter: brightness(1.07); transform: translateY(-3px); }
.hp-feat-card:nth-child(1) { background: #22c55e; }
.hp-feat-card:nth-child(2) { background: #fbbf24; }
.hp-feat-card:nth-child(3) { background: #3b82f6; }
.hp-feat-card:nth-child(4) { background: #ec4899; }

.hp-feat-icon {
  width: 52px; height: 52px;
  background: rgba(255,255,255,0.2);
  border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
  color: #fff; flex-shrink: 0;
}
.hp-feat-title {
  font-size: 1rem; font-weight: 800;
  color: #fff; text-transform: uppercase;
  letter-spacing: 0.04em; line-height: 1.2;
}
.hp-feat-desc {
  font-size: 0.83rem; color: rgba(255,255,255,0.85); line-height: 1.6;
}

@media (max-width: 900px) {
  .hp-feature-strip { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 540px) {
  .hp-feature-strip { grid-template-columns: 1fr; }
  .hp-hero-content { padding: 5rem 1.5rem 3rem; margin-left: 0; }
}

/* ══════════════════════════════════════════
   STATS BAND
══════════════════════════════════════════ */
.hp-stats-band {
  background: #f8fafc;
  border-top: 1px solid #e5e7eb;
  border-bottom: 1px solid #e5e7eb;
  padding: 2.5rem 2rem;
  display: flex; justify-content: center;
  gap: 3rem; flex-wrap: wrap;
}
.hp-stat-item { text-align: center; }
.hp-stat-num {
  font-size: 2.2rem; font-weight: 900;
  color: #1a1a2e; letter-spacing: -0.04em;
  display: block; line-height: 1;
}
.hp-stat-num span { color: #fbbf24; }
.hp-stat-lbl {
  font-size: 0.78rem; font-weight: 600;
  color: #64748b; text-transform: uppercase;
  letter-spacing: 0.06em; margin-top: 4px; display: block;
}

/* ══════════════════════════════════════════
   SUBJECTS SECTION
══════════════════════════════════════════ */
.hp-section {
  padding: 5rem 2rem;
  max-width: 1200px; margin: 0 auto;
}
.hp-section-header {
  text-align: center; margin-bottom: 3rem;
}
.hp-section-eyebrow {
  display: inline-block; font-size: 0.7rem; font-weight: 800;
  letter-spacing: 0.14em; text-transform: uppercase;
  color: #fbbf24; margin-bottom: 0.75rem;
}
.hp-section-title {
  font-size: clamp(1.8rem, 3.5vw, 2.6rem);
  font-weight: 900; color: #1a1a2e;
  letter-spacing: -0.03em; line-height: 1.2;
}
.hp-section-title span { color: #fbbf24; }
.hp-section-sub {
  font-size: 1rem; color: #64748b;
  max-width: 520px; margin: 0.75rem auto 0; line-height: 1.6;
}

.hp-subjects-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 1.5rem;
}
.hp-subject-card {
  background: #fff; border: 2px solid #f1f5f9;
  border-radius: 14px; padding: 2rem;
  transition: all 0.25s; text-decoration: none;
  display: flex; flex-direction: column; gap: 0.8rem;
  box-shadow: 0 2px 12px rgba(0,0,0,0.05);
}
.hp-subject-card:hover {
  border-color: var(--card-accent, #fbbf24);
  transform: translateY(-4px);
  box-shadow: 0 16px 40px rgba(0,0,0,0.1);
}
.hp-card-icon {
  width: 52px; height: 52px; border-radius: 12px;
  display: flex; align-items: center; justify-content: center;
  background: var(--card-icon-bg); border: 1px solid var(--card-icon-border);
  color: var(--card-accent);
}
.hp-card-title { font-size: 1.15rem; font-weight: 800; color: #1a1a2e; }
.hp-card-desc { font-size: 0.85rem; color: #64748b; line-height: 1.6; flex: 1; }
.hp-card-footer { display: flex; justify-content: space-between; align-items: center; margin-top: 0.5rem; }
.hp-card-tag {
  font-size: 0.65rem; font-weight: 700; text-transform: uppercase;
  padding: 5px 12px; border-radius: 100px;
  background: var(--card-icon-bg); color: var(--card-accent); letter-spacing: 0.05em;
}
.hp-card-arrow { font-size: 1rem; color: var(--card-accent); font-weight: 700; }

/* ══════════════════════════════════════════
   HOW IT WORKS
══════════════════════════════════════════ */
.hp-steps-section {
  background: #f8fafc;
  padding: 5rem 2rem;
}
.hp-steps-inner { max-width: 1100px; margin: 0 auto; }
.hp-steps-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 2rem; margin-top: 3rem;
}
.hp-step-card {
  background: #fff; border-radius: 14px;
  padding: 2.5rem 2rem;
  border: 2px solid #f1f5f9;
  box-shadow: 0 2px 12px rgba(0,0,0,0.04);
  transition: all 0.25s; position: relative;
}
.hp-step-card:hover { border-color: #fbbf24; transform: translateY(-3px); }
.hp-step-num {
  font-size: 4rem; font-weight: 900; line-height: 1;
  letter-spacing: -0.06em;
  background: linear-gradient(135deg, #fbbf24, rgba(251,191,36,0.2));
  -webkit-background-clip: text; -webkit-text-fill-color: transparent;
  background-clip: text; margin-bottom: 1rem;
}
.hp-step-title { font-size: 1.1rem; font-weight: 800; color: #1a1a2e; margin-bottom: 0.5rem; }
.hp-step-desc { font-size: 0.85rem; color: #64748b; line-height: 1.65; }

/* ══════════════════════════════════════════
   NOTE BAND & FOOTER
══════════════════════════════════════════ */
.hp-note-band {
  background: #f1f5f9;
  padding: 22px 2rem;
  text-align: center;
  font-size: 0.78rem;
  color: #64748b;
  border-top: 1px solid #e2e8f0;
  border-bottom: 1px solid #e2e8f0;
  line-height: 1.6;
}
.hp-note-band a { color: #fbbf24; text-decoration: none; font-weight: 700; }
.hp-note-band a:hover { text-decoration: underline; }

.hp-footer {
  background: #1a1a2e;
  border-top: 4px solid #fbbf24;
  padding: 4rem 2rem 2.5rem;
  text-align: center;
}
.hp-footer-inner {
  max-width: 1000px; margin: 0 auto;
  display: flex; flex-direction: column; align-items: center; gap: 1.5rem;
}
.hp-footer-brand { display: inline-flex; align-items: center; gap: 10px; text-decoration: none; }
.hp-footer-brand img { border-radius: 8px; }
.hp-footer-brand-name { font-size: 1.15rem; font-weight: 800; color: #f1f5f9; }
.hp-footer-brand-name span { color: #fbbf24; }
.hp-footer-meta { font-size: 0.78rem; color: #94a3b8; max-width: 620px; line-height: 1.7; }
.hp-footer-meta strong { color: #fbbf24; }
.hp-footer-links {
  display: flex; gap: 8px; flex-wrap: wrap; justify-content: center;
}
.hp-footer-link, .hp-footer-yt {
  display: inline-flex; align-items: center; gap: 6px;
  font-size: 0.75rem; font-weight: 600; color: #9ca3af;
  text-decoration: none; transition: all 0.2s; background: none; border: none; cursor: pointer;
}
.hp-footer-link:hover, .hp-footer-yt:hover { color: #fbbf24; }
.hp-footer-divider { width: 100%; height: 1px; background: rgba(255,255,255,0.06); margin: 1rem 0; }
.hp-footer-bottom { font-size: 0.75rem; color: #4b5563; }

/* Legacy classes from quiz engine (keep) */
.hp-btn-outline { padding: 9px 20px; border-radius: 6px; border: 2px solid #e5e7eb; font-size: 0.85rem; font-weight: 700; color: #374151; text-decoration: none; transition: all 0.2s; background: transparent; }

/* ═══════════════════════════════════════════════
   DARK MODE OVERRIDES
═══════════════════════════════════════════════ */
[data-theme="dark"] .hp-nav {
  background: var(--bg-header);
  box-shadow: 0 2px 20px rgba(0,0,0,0.3);
}
[data-theme="dark"] .hp-nav.scrolled { box-shadow: 0 4px 30px rgba(0,0,0,0.5); }
[data-theme="dark"] .hp-nav-brand-text { color: var(--text-primary); }
[data-theme="dark"] .hp-nav-link { color: var(--text-secondary); }
[data-theme="dark"] .hp-nav-link:hover,
[data-theme="dark"] .hp-nav-link.active { color: #fbbf24; }
[data-theme="dark"] .hp-btn-outline { border-color: var(--border); color: var(--text-secondary); }
[data-theme="dark"] .hp-btn-outline:hover { border-color: #fbbf24; color: #fbbf24; }
[data-theme="dark"] .hp-nav-hamburger { border-color: var(--border); color: var(--text-secondary); }
[data-theme="dark"] .hp-nav-hamburger:hover { border-color: #fbbf24; color: #fbbf24; }

[data-theme="dark"] .hp-topbar { background: var(--bg-card); border-color: var(--border); }
[data-theme="dark"] .hp-topbar-item { color: var(--text-muted); }

/* Mobile drawer */
[data-theme="dark"] .hp-drawer { background: var(--bg-card); }
[data-theme="dark"] .hp-drawer-header { border-color: var(--border); }
[data-theme="dark"] .hp-drawer-brand-name { color: var(--text-primary); }
[data-theme="dark"] .hp-drawer-close { color: var(--text-muted); border-color: var(--border); }
[data-theme="dark"] .hp-drawer-close:hover { background: var(--primary); color: #fbbf24; }
[data-theme="dark"] .hp-drawer-link { color: var(--text-secondary); }
[data-theme="dark"] .hp-drawer-link:hover { background: var(--primary-dim); color: var(--text-primary); }
[data-theme="dark"] .hp-drawer-footer { border-color: var(--border); }

/* Sections */
[data-theme="dark"] .hp-trust-strip { background: var(--bg-card); border-color: var(--border); }
[data-theme="dark"] .hp-trust-item { color: var(--text-muted); }
[data-theme="dark"] .hp-proof-section { border-color: var(--border); }
[data-theme="dark"] .hp-note-band { background: var(--bg-card); border-color: var(--border); color: var(--text-secondary); }
