:root {
  --navy: #102946;
  --navy-2: #173b63;
  --gold: #c6922f;
  --gold-soft: #f4ead4;
  --ink: #17202b;
  --muted: #6b7583;
  --line: #e6e9ed;
  --bg: #f7f8fa;
  --white: #fff;
  --green: #2f7d5d;
  --shadow: 0 18px 50px rgba(16, 41, 70, .09);
  --radius: 22px;
}
* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  color: var(--ink);
  background: var(--bg);
  font-family: 'DM Sans', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
  -webkit-font-smoothing: antialiased;
}
a { color: inherit; text-decoration: none; }
button, input, select { font: inherit; }
button { cursor: pointer; }
.app-shell { min-height: 100vh; }
.site-header {
  position: sticky; top: 0; z-index: 30;
  background: rgba(255,255,255,.94);
  backdrop-filter: blur(16px);
  border-bottom: 1px solid rgba(230,233,237,.9);
}
.header-inner {
  max-width: 1180px; margin: 0 auto; height: 74px; padding: 0 24px;
  display: flex; align-items: center; gap: 28px;
}
.brand { display: flex; align-items: center; gap: 12px; min-width: 190px; }
.brand-mark {
  font-family: 'Playfair Display', Georgia, serif;
  font-size: 23px; font-weight: 700; letter-spacing: -.03em; color: var(--navy);
}
.brand-divider { width: 1px; height: 25px; background: #d7dce2; }
.brand-product { color: var(--navy); font-size: 15px; font-weight: 700; }
.main-nav { display: flex; gap: 6px; margin-left: auto; }
.nav-link {
  border: 0; background: transparent; color: #5f6977; font-weight: 600; font-size: 14px;
  padding: 10px 12px; border-radius: 11px;
}
.nav-link:hover, .nav-link.active { color: var(--navy); background: #f1f4f7; }
.header-actions { display: flex; align-items: center; gap: 10px; }
.avatar {
  width: 36px; height: 36px; border-radius: 50%; background: var(--navy); color: white;
  display: grid; place-items: center; font-size: 13px; font-weight: 700;
}
.mobile-menu { display: none; border: 0; background: #f1f4f7; border-radius: 10px; padding: 9px 11px; color: var(--navy); }
.mobile-nav { display: none; padding: 8px 20px 16px; border-top: 1px solid var(--line); background: white; }
.mobile-nav.open { display: grid; gap: 4px; }
.mobile-nav .nav-link { text-align: left; }
.page { max-width: 1180px; margin: 0 auto; padding: 38px 24px 72px; }
.hero {
  min-height: 410px; border-radius: 30px; overflow: hidden; position: relative;
  background: linear-gradient(125deg, #0e2948 0%, #173d66 58%, #1c4d77 100%);
  color: white; display: grid; grid-template-columns: 1.18fr .82fr;
  box-shadow: var(--shadow);
}
.hero::before {
  content: ''; position: absolute; inset: 0;
  background: radial-gradient(circle at 80% 18%, rgba(255,255,255,.13), transparent 30%), radial-gradient(circle at 70% 75%, rgba(198,146,47,.25), transparent 27%);
}
.hero-copy { padding: 64px 58px; position: relative; z-index: 1; align-self: center; }
.eyebrow { text-transform: uppercase; letter-spacing: .13em; font-weight: 700; font-size: 12px; color: #d7b56e; }
h1, h2, h3 { font-family: 'Playfair Display', Georgia, serif; color: var(--navy); letter-spacing: -.025em; }
.hero h1 { color: white; font-size: clamp(42px, 5vw, 64px); line-height: 1.03; margin: 12px 0 20px; max-width: 720px; }
.hero p { color: rgba(255,255,255,.82); line-height: 1.7; font-size: 17px; max-width: 620px; margin: 0 0 28px; }
.hero-actions { display: flex; gap: 12px; flex-wrap: wrap; }
.btn { border: 0; border-radius: 13px; padding: 13px 18px; font-weight: 700; transition: .18s ease; display: inline-flex; align-items: center; justify-content: center; gap: 8px; }
.btn:hover { transform: translateY(-1px); }
.btn-primary { background: var(--gold); color: #fff; }
.btn-primary:hover { background: #b88629; }
.btn-secondary { background: white; color: var(--navy); }
.btn-outline { background: transparent; color: var(--navy); border: 1px solid #d9dfe6; }
.btn-dark { background: var(--navy); color: white; }
.hero-visual { position: relative; z-index: 1; display: flex; align-items: center; justify-content: center; padding: 36px 48px 36px 10px; }
.lesson-stack { width: 100%; max-width: 385px; position: relative; }
.stack-card {
  background: rgba(255,255,255,.96); color: var(--ink); border-radius: 21px; padding: 20px; box-shadow: 0 26px 70px rgba(0,0,0,.2); position: relative;
}
.stack-card::before, .stack-card::after {
  content: ''; position: absolute; inset: 13px -17px -13px 17px; border-radius: 21px; background: rgba(255,255,255,.17); z-index: -1;
}
.stack-card::after { inset: 27px -31px -27px 31px; background: rgba(255,255,255,.09); z-index: -2; }
.stack-video { height: 150px; border-radius: 15px; background: linear-gradient(135deg, #dfeaf4, #b5cadf); display: grid; place-items: center; margin-bottom: 17px; overflow: hidden; position: relative; }
.stack-video::before { content: ''; position: absolute; width: 170px; height: 170px; background: rgba(255,255,255,.5); border-radius: 50%; right: -60px; top: -65px; }
.play { width: 54px; height: 54px; border-radius: 50%; background: white; color: var(--navy); display: grid; place-items: center; font-size: 19px; box-shadow: 0 10px 30px rgba(16,41,70,.16); z-index: 1; padding-left: 3px; }
.meta-row { display: flex; gap: 8px; align-items: center; flex-wrap: wrap; }
.pill { background: #eef2f6; color: #566170; border-radius: 999px; padding: 6px 9px; font-size: 11px; font-weight: 700; }
.pill.gold { background: var(--gold-soft); color: #89621e; }
.pill.green { background: #e4f2ec; color: var(--green); }
.stack-card h3 { margin: 13px 0 8px; font-size: 22px; }
.stack-card p { color: var(--muted); margin: 0; line-height: 1.55; font-size: 14px; }
.section { margin-top: 54px; }
.section-head { display: flex; align-items: end; justify-content: space-between; gap: 20px; margin-bottom: 22px; }
.section-head h2 { font-size: 32px; margin: 0 0 5px; }
.section-head p { color: var(--muted); margin: 0; line-height: 1.55; }
.text-link { border: 0; background: transparent; color: var(--navy); font-weight: 700; }
.category-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 13px; }
.category-card { border: 1px solid var(--line); background: white; border-radius: 17px; padding: 18px; display: flex; align-items: center; gap: 13px; transition: .18s ease; text-align: left; }
.category-card:hover { border-color: #c6d1dc; transform: translateY(-2px); box-shadow: 0 9px 30px rgba(16,41,70,.07); }
.category-icon { width: 40px; height: 40px; border-radius: 12px; background: #edf2f7; color: var(--navy); display: grid; place-items: center; font-weight: 800; font-size: 11px; }
.category-card strong { color: var(--navy); font-size: 14px; }
.card-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 18px; }
.lesson-card, .track-card, .package-card, .panel { background: white; border: 1px solid var(--line); border-radius: var(--radius); box-shadow: 0 8px 30px rgba(16,41,70,.045); }
.lesson-card { overflow: hidden; transition: .18s ease; display: flex; flex-direction: column; }
.lesson-card:hover { transform: translateY(-3px); box-shadow: var(--shadow); }
.lesson-cover { height: 150px; padding: 20px; background: linear-gradient(140deg, #e8eff6, #d2e1ee); display: flex; align-items: end; justify-content: space-between; position: relative; overflow: hidden; }
.lesson-cover::after { content: ''; width: 120px; height: 120px; border-radius: 50%; background: rgba(255,255,255,.55); position: absolute; top: -35px; right: -20px; }
.lesson-cover.workplace { background: linear-gradient(140deg, #e7edf5, #cedbea); }
.lesson-cover.listening { background: linear-gradient(140deg, #e9f2ef, #cee3dc); }
.lesson-cover.writing { background: linear-gradient(140deg, #f2ede2, #e5d8bd); }
.lesson-cover.healthcare { background: linear-gradient(140deg, #e7f0ef, #d1e3e0); }
.cover-label { position: relative; z-index: 1; color: var(--navy); font-size: 12px; font-weight: 800; letter-spacing: .06em; text-transform: uppercase; }
.cover-play { width: 40px; height: 40px; border-radius: 50%; background: rgba(255,255,255,.92); display: grid; place-items: center; color: var(--navy); z-index: 1; font-size: 13px; }
.lesson-body { padding: 19px; display: flex; flex-direction: column; flex: 1; }
.lesson-card h3 { margin: 10px 0 8px; font-size: 21px; line-height: 1.22; }
.lesson-card p { color: var(--muted); line-height: 1.55; font-size: 14px; margin: 0 0 17px; }
.lesson-footer { margin-top: auto; padding-top: 14px; border-top: 1px solid #f0f2f4; display: flex; justify-content: space-between; color: #77808d; font-size: 12px; font-weight: 600; }
.progress-wrap { margin-top: 12px; }
.progress-row { display: flex; justify-content: space-between; font-size: 12px; font-weight: 700; color: #6d7785; margin-bottom: 7px; }
.progress-bar { height: 7px; border-radius: 999px; background: #edf0f3; overflow: hidden; }
.progress-fill { height: 100%; background: var(--gold); border-radius: inherit; }
.continue-panel { display: grid; grid-template-columns: 1.4fr .8fr; overflow: hidden; }
.continue-copy { padding: 29px; }
.continue-copy h3 { margin: 8px 0 9px; font-size: 26px; }
.continue-copy p { margin: 0 0 18px; color: var(--muted); line-height: 1.55; }
.continue-art { background: linear-gradient(135deg, #183e67, #0e2948); display: grid; place-items: center; min-height: 210px; }
.continue-art .play { width: 62px; height: 62px; }
.track-card { padding: 23px; }
.track-top { display: flex; justify-content: space-between; align-items: start; gap: 15px; }
.track-card h3 { margin: 12px 0 8px; font-size: 24px; }
.track-card p { color: var(--muted); line-height: 1.55; margin: 0 0 21px; font-size: 14px; }
.track-stats { display: flex; gap: 15px; color: #717b88; font-size: 12px; font-weight: 700; }
.page-heading { margin-bottom: 28px; display: flex; justify-content: space-between; gap: 30px; align-items: end; }
.page-heading h1 { font-size: 44px; margin: 5px 0 8px; }
.page-heading p { color: var(--muted); max-width: 670px; line-height: 1.6; margin: 0; }
.search-filter { display: flex; gap: 11px; margin-bottom: 22px; flex-wrap: wrap; }
.search { flex: 1 1 320px; position: relative; }
.search input { width: 100%; border: 1px solid var(--line); background: white; border-radius: 14px; padding: 13px 15px; outline: none; color: var(--ink); }
.search input:focus, .filter-select:focus { border-color: #99afc5; box-shadow: 0 0 0 3px rgba(16,41,70,.06); }
.filter-select { border: 1px solid var(--line); background: white; border-radius: 14px; padding: 12px 36px 12px 13px; color: #4f5a68; outline: none; }
.empty-state { padding: 50px; text-align: center; background: white; border: 1px dashed #d8dde3; border-radius: 20px; color: var(--muted); }
.dashboard-grid { display: grid; grid-template-columns: 1.2fr .8fr; gap: 20px; }
.panel { padding: 24px; }
.panel h2 { margin: 0 0 18px; font-size: 26px; }
.stat-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 13px; }
.stat { padding: 19px; background: #f7f9fb; border-radius: 16px; }
.stat strong { display: block; color: var(--navy); font-size: 28px; font-family: 'Playfair Display', Georgia, serif; }
.stat span { color: var(--muted); font-size: 12px; font-weight: 600; }
.activity-chart { height: 210px; display: flex; align-items: end; gap: 9px; padding-top: 20px; }
.bar-wrap { flex: 1; display: grid; align-items: end; gap: 7px; height: 100%; }
.bar { border-radius: 8px 8px 3px 3px; background: #d9e3ed; min-height: 10px; }
.bar.current { background: var(--gold); }
.bar-label { text-align: center; font-size: 11px; color: #818a95; }
.learning-list { display: grid; gap: 12px; }
.learning-item { border: 1px solid var(--line); border-radius: 15px; padding: 15px; display: grid; grid-template-columns: 50px 1fr auto; gap: 13px; align-items: center; }
.learning-thumb { width: 50px; height: 50px; border-radius: 13px; background: #e8eff6; display: grid; place-items: center; color: var(--navy); font-weight: 800; font-size: 11px; }
.learning-item strong { color: var(--navy); display: block; font-size: 14px; margin-bottom: 4px; }
.learning-item small { color: var(--muted); }
.package-card { padding: 26px; display: flex; flex-direction: column; }
.package-card.featured { border: 2px solid var(--navy); transform: translateY(-5px); }
.package-card h3 { font-size: 25px; margin: 8px 0; }
.package-card p { color: var(--muted); line-height: 1.55; font-size: 14px; }
.price { font-size: 38px; color: var(--navy); font-family: 'Playfair Display', Georgia, serif; font-weight: 700; margin: 11px 0 20px; }
.price small { font-family: 'DM Sans', sans-serif; font-size: 12px; color: var(--muted); font-weight: 600; }
.feature-list { list-style: none; padding: 0; margin: 0 0 24px; display: grid; gap: 10px; }
.feature-list li { color: #505b68; font-size: 14px; display: flex; gap: 9px; }
.feature-list li::before { content: '✓'; color: var(--green); font-weight: 800; }
.package-card .btn { margin-top: auto; }
.lesson-page { max-width: 960px; }
.lesson-hero { background: white; border: 1px solid var(--line); border-radius: 28px; overflow: hidden; }
.lesson-hero-top { min-height: 320px; background: linear-gradient(135deg, #123456, #24527e); padding: 42px; color: white; display: flex; flex-direction: column; justify-content: end; position: relative; }
.lesson-hero-top::after { content: ''; position: absolute; width: 250px; height: 250px; border-radius: 50%; background: rgba(255,255,255,.08); right: -50px; top: -80px; }
.lesson-hero-top h1 { color: white; font-size: 48px; line-height: 1.08; margin: 10px 0 12px; max-width: 700px; z-index: 1; }
.lesson-hero-top p { color: rgba(255,255,255,.78); max-width: 700px; line-height: 1.65; margin: 0; z-index: 1; }
.lesson-meta { padding: 18px 26px; display: flex; gap: 22px; flex-wrap: wrap; font-size: 13px; font-weight: 700; color: #667180; }
.lesson-content { display: grid; gap: 18px; margin-top: 20px; }
.lesson-section { background: white; border: 1px solid var(--line); border-radius: 20px; padding: 26px; }
.lesson-section h2 { font-size: 27px; margin: 0 0 12px; }
.lesson-section p { color: #596472; line-height: 1.65; }
.video-stage { height: 360px; border-radius: 17px; background: linear-gradient(135deg, #e4edf5, #c7d9e7); display: grid; place-items: center; margin-top: 17px; }
.outcome-list { display: grid; gap: 9px; padding: 0; list-style: none; }
.outcome-list li { padding: 11px 13px; border-radius: 12px; background: #f7f9fb; color: #4f5b68; }
.outcome-list li::before { content: '✓'; color: var(--green); font-weight: 800; margin-right: 9px; }
.vocab-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }
.vocab-item { border: 1px solid var(--line); border-radius: 13px; padding: 14px; }
.vocab-item strong { display: block; color: var(--navy); margin-bottom: 5px; }
.vocab-item span { color: var(--muted); font-size: 13px; line-height: 1.45; }
.choice-list { display: grid; gap: 9px; margin-top: 15px; }
.choice { border: 1px solid #dfe4e9; background: white; border-radius: 13px; padding: 13px 14px; text-align: left; color: #45515f; }
.choice:hover { border-color: #9fb2c5; }
.choice.correct { border-color: #7eb59e; background: #edf7f2; color: #286a4f; }
.choice.wrong { border-color: #dba4a4; background: #fbf0f0; color: #9a4b4b; }
.feedback { margin-top: 12px; font-size: 13px; font-weight: 700; }
.production { background: #fcf8ef; border-color: #ead8af; }
.complete-row { display: flex; justify-content: space-between; gap: 16px; align-items: center; flex-wrap: wrap; }
.locked-banner { background: #f1f4f7; border-radius: 13px; padding: 15px; display: flex; justify-content: space-between; align-items: center; gap: 15px; margin-top: 14px; }
.site-footer { border-top: 1px solid var(--line); background: white; }
.footer-inner { max-width: 1180px; margin: 0 auto; padding: 28px 24px; display: flex; justify-content: space-between; color: #7b8591; font-size: 12px; gap: 20px; flex-wrap: wrap; }
@media (max-width: 960px) {
  .main-nav { display: none; }
  .mobile-menu { display: block; margin-left: auto; }
  .header-actions .avatar { display: none; }
  .hero { grid-template-columns: 1fr; }
  .hero-copy { padding: 50px 38px 20px; }
  .hero-visual { padding: 20px 38px 48px; }
  .category-grid { grid-template-columns: repeat(2, 1fr); }
  .card-grid { grid-template-columns: repeat(2, 1fr); }
  .continue-panel, .dashboard-grid { grid-template-columns: 1fr; }
  .package-card.featured { transform: none; }
}
@media (max-width: 640px) {
  .header-inner { padding: 0 16px; height: 68px; }
  .brand { min-width: 0; }
  .brand-product { display: none; }
  .page { padding: 24px 16px 54px; }
  .hero { border-radius: 22px; }
  .hero-copy { padding: 38px 25px 10px; }
  .hero h1 { font-size: 42px; }
  .hero-visual { padding: 22px 25px 38px; }
  .section { margin-top: 42px; }
  .section-head { align-items: start; flex-direction: column; }
  .section-head h2 { font-size: 29px; }
  .category-grid, .card-grid, .stat-grid, .vocab-grid { grid-template-columns: 1fr; }
  .page-heading { align-items: start; flex-direction: column; }
  .page-heading h1 { font-size: 38px; }
  .lesson-hero-top { min-height: 280px; padding: 27px 22px; }
  .lesson-hero-top h1 { font-size: 38px; }
  .video-stage { height: 230px; }
  .lesson-section { padding: 20px; }
}
@media (prefers-reduced-motion: reduce) {
  * { scroll-behavior: auto !important; transition: none !important; }
}
