:root {
  --ink:        #0f0f14;
  --ink-soft:   #5a5a72;
  --ink-faint:  #a0a0b8;
  --paper:      #fafaf8;
  --surface:    #f2f2ed;
  --surface2:   #e8e8e0;
  --rule:       #ddddd4;
  --blue:       #1a56db;
  --blue-light: #e8f0ff;
  --green:      #0d7a55;
  --green-light:#e6f7f1;
  --amber:      #b45309;
  --amber-light:#fff8eb;
  --red:        #be1a1a;
  --red-light:  #fff0f0;

  --font-display: sans-serif;
  --font-body:    sans-serif;
  --radius:       12px;
  --radius-lg:    20px;
  --shadow-card:  0 2px 16px rgba(0,0,0,0.07);
  --shadow-hover: 0 8px 32px rgba(0,0,0,0.13);
}

/* ── BASE ─────────────────────────────────────────── */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; }
body {
  font-family: var(--font-body);
  background: var(--paper);
  color: var(--ink);
  font-size: 16px;
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
}
a { text-decoration: none; color: inherit; }
img { max-width: 100%; }

/* ── NAVBAR ───────────────────────────────────────── */
.site-nav {
  position: sticky; top: 0; z-index: 1000;
  background: rgba(250,250,248,0.92);
  backdrop-filter: blur(14px);
  border-bottom: 1px solid var(--rule);
  height: 66px;
}
.site-nav .container { height: 100%; }
.nav-brand {
  display: flex; align-items: center; gap: 10px;
  font-family: var(--font-display);
  font-size: 17px; font-weight: 800;
  color: var(--ink); letter-spacing: -0.01em;
}
.nav-brand .brand-mark {
  width: 34px; height: 34px; border-radius: 9px;
  background: var(--ink); color: var(--paper);
  display: grid; place-items: center;
  font-size: 13px; font-weight: 800; flex-shrink: 0;
}
.nav-link-item {
  font-size: 14px; font-weight: 500;
  color: var(--ink-soft);
  padding: 6px 14px; border-radius: 8px;
  transition: all .18s;
}
.nav-link-item:hover { color: var(--ink); background: var(--surface); }
.btn-login {
  font-size: 14px; font-weight: 600;
  border: 1.5px solid var(--ink);
  background: transparent; color: var(--ink);
  padding: 7px 20px; border-radius: 8px;
  transition: all .18s; cursor: pointer;
}
.btn-login:hover { background: var(--ink); color: var(--paper); }
.btn-cta-nav {
  font-size: 14px; font-weight: 600;
  background: var(--blue); color: #fff;
  padding: 8px 20px; border-radius: 8px;
  border: none; transition: all .18s; cursor: pointer;
}
.btn-cta-nav:hover { background: #1345b8; }

/* ── HERO ─────────────────────────────────────────── */
.hero {
  padding: 88px 0 72px;
  border-bottom: 1px solid var(--rule);
  position: relative;
  overflow: hidden;
}
.hero::before {
  content: '';
  position: absolute; 
  inset: 0;
  background:
    radial-gradient(ellipse 70% 50% at 80% 40%, rgb(26 86 219 / 0%) 0%, #00000000 70%), repeating-linear-gradient(41deg, #00000008, transparent 79px, var(--rule) 80px);
    /* background: #cf904c; */
  pointer-events: none;
  z-index: -1;
}
.hero-eyebrow {
  display: inline-flex; 
  align-items: center; 
  gap: 8px;
  background: var(--blue-light); 
  color: var(--blue);
  font-size: 12px; 
  font-weight: 600; 
  letter-spacing: .08em;
  text-transform: uppercase;
  padding: 5px 14px; 
  border-radius: 99px;
  margin-bottom: 24px;
}
.hero-eyebrow .dot-pulse {
  width: 6px; height: 6px; 
  border-radius: 50%;
  background: var(--blue); 
  flex-shrink: 0;
  /* animation: blink 1.8s ease-in-out infinite; */
}
/* @keyframes blink { 0%,100%{opacity:1} 50%{opacity:.3} } */

.hero h1 {
  font-family: var(--font-display);
  /* font-size: clamp(38px, 5.5vw, 72px); */
  font-size: clamp(38px, 5.5vw, 48px);
  font-weight: 800;
  line-height: 1.05;
  letter-spacing: -0.03em;
  color: var(--ink);
  margin-bottom: 20px;
}
.hero h1 .accent {
  position: relative; 
  display: inline-block;
}
.hero h1 .accent::after {
  content: '';
  position: absolute; 
  left: 0; 
  bottom: 4px;
  width: 100%; 
  height: 8px;
  background: rgba(26,86,219,0.15);
  border-radius: 3px;
  /* z-index: -1; */
}
.hero-lead {
  font-size: 18px; 
  color: var(--ink-soft);
  max-width: 540px; 
  line-height: 1.7; 
  margin-bottom: 36px;
}
.hero-actions { 
  display: flex; 
  gap: 12px; 
  flex-wrap: wrap; 
  margin-bottom: 56px; }
.btn-hero-primary {
  font-size: 15px; 
  font-weight: 600;
  background: var(--ink); 
  color: var(--paper);
  padding: 13px 28px; 
  border-radius: 10px; 
  border: none;
  transition: all .18s; 
  cursor: pointer;
  display: inline-flex; 
  align-items: center; 
  gap: 8px;
}
.btn-hero-primary:hover { 
  background: #1a56db; 
  transform: translateY(-2px); 
}
.btn-hero-secondary {
  font-size: 15px; 
  font-weight: 500;
  background: transparent; 
  color: var(--ink);
  padding: 12px 24px; 
  border-radius: 10px;
  border: 1.5px solid var(--rule);
  transition: all .18s; 
  cursor: pointer;
  display: inline-flex; 
  align-items: center; 
  gap: 8px;
}
.btn-hero-secondary:hover { 
  border-color: var(--ink); 
  background: var(--surface); 
  transform: translateY(-2px); 
}

/* Stats band */
.stats-band {
  display: flex; gap: 0;
  border: 1px solid var(--rule);
  border-radius: var(--radius);
  overflow: hidden;
  background: #fff;
  box-shadow: var(--shadow-card);
  max-width: 520px;
}
.stat-cell {
  flex: 1; 
  padding: 18px 12px; 
  text-align: center;
  border-right: 1px solid var(--rule);
  transition: background .18s;
}
.stat-cell:last-child { border-right: none; }
.stat-cell:hover { background: var(--surface); }
.stat-num {
  font-family: var(--font-display);
  font-size: 26px; 
  font-weight: 800;
  color: var(--ink); 
  line-height: 1;
}
.stat-lbl {
  font-size: 11px; 
  font-weight: 500;
  color: var(--ink-faint); 
  letter-spacing: .07em;
  text-transform: uppercase; 
  margin-top: 4px;
}

/* Hero right panel */
.hero-feature-panel {
  background: #fff; border: 1px solid var(--rule);
  border-radius: var(--radius-lg);
  padding: 28px; 
  box-shadow: var(--shadow-card);
}
.feat-row {
  display: flex; align-items: flex-start; gap: 16px;
  padding: 16px 0; border-bottom: 1px solid var(--rule);
}
.feat-row:last-child { border-bottom: none; padding-bottom: 0; }
.feat-row:first-child { padding-top: 0; }
.feat-icon-wrap {
  width: 44px; height: 44px; border-radius: 12px;
  display: grid; place-items: center; flex-shrink: 0;
  font-size: 20px;
}
.feat-icon-wrap.blue  { background: var(--blue-light); }
.feat-icon-wrap.green { background: var(--green-light); }
.feat-icon-wrap.amber { background: var(--amber-light); }
.feat-title { font-size: 14px; font-weight: 600; margin-bottom: 3px; }
.feat-body  { font-size: 13px; color: var(--ink-soft); line-height: 1.5; }

/* ── SECTION COMMON ───────────────────────────────── */
.section-eyebrow {
  font-size: 11px; font-weight: 700; letter-spacing: .12em;
  text-transform: uppercase; color: var(--blue);
  margin-bottom: 8px;
}
.section-title {
  font-family: var(--font-display);
  font-size: clamp(26px, 3.5vw, 40px);
  font-weight: 800; letter-spacing: -0.025em; line-height: 1.1;
  margin-bottom: 12px;
}
.section-lead { font-size: 16px; color: var(--ink-soft); max-width: 520px; }

/* ── COURSES SECTION ──────────────────────────────── */
#cursussen { padding: 80px 0; background: var(--surface); }
#cursussen .section-header {
  padding-bottom: 32px;
  border-bottom: 1px solid var(--rule);
  margin-bottom: 32px;
}

/* Category filter tabs */
.cat-tabs {
  display: flex; gap: 8px; flex-wrap: wrap; margin-top: 20px;
}
.cat-tab {
  display: inline-flex; align-items: center; gap: 7px;
  font-size: 13px; font-weight: 500;
  padding: 7px 16px; border-radius: 8px;
  border: 1.5px solid var(--rule);
  background: #fff; color: var(--ink-soft);
  cursor: pointer; transition: all .16s; white-space: nowrap;
}
.cat-tab .cat-icon { font-size: 15px; }
.cat-tab:hover { border-color: var(--blue); color: var(--blue); }
.cat-tab.active {
  background: var(--ink); color: #fff;
  border-color: var(--ink);
}

/* Course cards */
.courses-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(290px, 1fr));
  gap: 20px;
}
.course-card {
  background: #fff;
  border: 1px solid var(--rule);
  border-radius: var(--radius-lg);
  overflow: hidden;
  display: flex; flex-direction: column;
  box-shadow: var(--shadow-card);
  transition: box-shadow .22s, transform .22s, border-color .22s;
  cursor: pointer;
}
.course-card:hover {
  box-shadow: var(--shadow-hover);
  transform: translateY(-4px);
  border-color: rgba(26,86,219,.25);
}
.course-card-thumb {
  height: 130px;
  background: var(--surface);
  display: flex; align-items: center; justify-content: center;
  font-size: 48px;
  position: relative;
  border-bottom: 1px solid var(--rule);
}
.course-cat-badge {
  position: absolute; top: 12px; left: 12px;
  font-size: 10px; font-weight: 700; letter-spacing: .06em; text-transform: uppercase;
  padding: 4px 10px; border-radius: 99px;
  background: #fff; border: 1px solid var(--rule); color: var(--ink-soft);
}
.course-level-badge {
  position: absolute; top: 12px; right: 12px;
  font-size: 11px; font-weight: 600;
  padding: 3px 10px; border-radius: 99px;
  background: var(--blue-light); color: var(--blue);
}
.course-card-body { padding: 20px; flex: 1; }
.course-card-body h3 {
  font-family: var(--font-display);
  font-size: 15px; font-weight: 800;
  letter-spacing: -0.01em; line-height: 1.3;
  margin-bottom: 6px; color: var(--ink);
}
.course-card-body .course-sub {
  font-size: 12px; font-weight: 600;
  color: var(--blue); margin-bottom: 10px;
  text-transform: uppercase; letter-spacing: .05em;
}
.course-card-body p {
  font-size: 13px; color: var(--ink-soft); line-height: 1.55;
}
.course-card-meta {
  padding: 14px 20px;
  border-top: 1px solid var(--rule);
  display: flex; gap: 16px; align-items: center; flex-wrap: wrap;
}
.meta-chip {
  display: inline-flex; align-items: center; gap: 5px;
  font-size: 12px; color: var(--ink-soft);
}
.meta-chip i { font-size: 13px; color: var(--ink-faint); }
.course-card-footer {
  padding: 14px 20px 18px;
  display: flex; justify-content: space-between; align-items: center;
}
.ai-badge {
  display: inline-flex; align-items: center; gap: 6px;
  font-size: 11px; font-weight: 600;
  background: var(--green-light); color: var(--green);
  padding: 4px 10px; border-radius: 99px;
}
.btn-card-action {
  font-size: 13px; font-weight: 600;
  background: var(--ink); color: #fff;
  border: none; padding: 8px 18px; border-radius: 8px;
  cursor: pointer; transition: all .16s;
  display: inline-flex; align-items: center; gap: 6px;
}
.btn-card-action:hover { background: var(--blue); }

/* Empty state */
.empty-state {
  grid-column: 1/-1; text-align: center;
  padding: 60px 20px; color: var(--ink-soft);
}
.empty-state i { font-size: 40px; display: block; margin-bottom: 14px; color: var(--ink-faint); }

/* ── COURSE DETAIL MODAL ──────────────────────────── */
#courseModal .modal-content {
  border: 1px solid var(--rule); border-radius: var(--radius-lg);
  box-shadow: 0 24px 80px rgba(0,0,0,0.18);
}
#courseModal .modal-header {
  border-bottom: 1px solid var(--rule);
  padding: 22px 28px;
  background: var(--surface);
  border-radius: var(--radius-lg) var(--radius-lg) 0 0;
}
#courseModal .modal-title {
  font-family: var(--font-display);
  font-size: 20px; font-weight: 800; letter-spacing: -0.02em;
}
#courseModal .modal-body { padding: 28px; }
#courseModal .modal-footer {
  border-top: 1px solid var(--rule); padding: 18px 28px;
}
.detail-grid {
  display: grid; grid-template-columns: 1fr 1fr 1fr; gap: 12px;
  margin-bottom: 24px;
}
.detail-cell {
  background: var(--surface); border-radius: 10px;
  padding: 14px; text-align: center;
}
.detail-cell .d-label { font-size: 11px; color: var(--ink-faint); text-transform: uppercase; letter-spacing: .07em; margin-bottom: 4px; }
.detail-cell .d-value { font-size: 14px; font-weight: 600; color: var(--ink); }
.info-section { margin-bottom: 20px; }
.info-section h6 {
  font-size: 11px; font-weight: 700; text-transform: uppercase;
  letter-spacing: .1em; color: var(--ink-faint); margin-bottom: 10px;
}
.ld-list { list-style: none; padding: 0; }
.ld-list li {
  font-size: 14px; padding: 6px 0;
  border-bottom: 1px solid var(--rule);
  display: flex; align-items: center; gap: 10px;
}
.ld-list li:last-child { border-bottom: none; }
.ld-list li::before { content: ''; width: 6px; height: 6px; border-radius: 50%; background: var(--blue); flex-shrink: 0; }
.pill-row { display: flex; gap: 8px; flex-wrap: wrap; }
.info-pill {
  font-size: 12px; font-weight: 500;
  padding: 5px 13px; border-radius: 99px;
  border: 1px solid var(--rule); background: #fff; color: var(--ink-soft);
  display: inline-flex; align-items: center; gap: 6px;
}
.info-pill i { font-size: 13px; }
.vimeo-wrap { border-radius: 12px; overflow: hidden; background: #000; }
.vimeo-wrap iframe { display: block; width: 100%; border: none; }

/* ── CTA STRIP ────────────────────────────────────── */
.cta-strip {
  padding: 80px 0;
  background: var(--ink); color: var(--paper);
  text-align: center;
  position: relative; overflow: hidden;
}
.cta-strip::before {
  content: '';
  position: absolute; inset: 0;
  background: repeating-linear-gradient(
    -45deg, transparent, transparent 19px,
    rgba(255,255,255,0.02) 20px
  );
  pointer-events: none;
}
.cta-strip h2 {
  font-family: var(--font-display);
  font-size: clamp(26px, 4vw, 44px);
  font-weight: 800; letter-spacing: -0.025em;
  margin-bottom: 12px;
}
.cta-strip p { font-size: 17px; color: rgba(255,255,255,0.6); margin-bottom: 36px; }
.btn-cta-white {
  font-size: 15px; font-weight: 600;
  background: #fff; color: var(--ink);
  padding: 13px 32px; border-radius: 10px; border: none;
  cursor: pointer; transition: all .18s;
  display: inline-flex; align-items: center; gap: 8px;
}
.btn-cta-white:hover { background: rgba(255,255,255,0.88); transform: translateY(-2px); }
.btn-cta-outline {
  font-size: 15px; font-weight: 600;
  background: transparent; color: #fff;
  padding: 12px 28px; border-radius: 10px;
  border: 1.5px solid rgba(255,255,255,0.3);
  cursor: pointer; transition: all .18s;
  display: inline-flex; align-items: center; gap: 8px;
}
.btn-cta-outline:hover { border-color: rgba(255,255,255,0.7); background: rgba(255,255,255,0.07); }

/* ── DEVICES SECTION ──────────────────────────────── */
.devices-section { padding: 80px 0; background: #fff; }
.device-card {
  background: var(--surface); border: 1px solid var(--rule);
  border-radius: var(--radius); padding: 22px 18px;
  text-align: center; transition: all .2s;
}
.device-card:hover { background: #fff; box-shadow: var(--shadow-card); transform: translateY(-3px); }
.device-card .dev-icon { font-size: 28px; margin-bottom: 10px; }
.device-card .dev-name { font-size: 14px; font-weight: 700; margin-bottom: 3px; }
.device-card .dev-sub { font-size: 12px; color: var(--ink-faint); }
.qr-panel {
  background: var(--surface); border: 1px solid var(--rule);
  border-radius: var(--radius-lg); padding: 32px; text-align: center;
}
.qr-panel img { width: 130px; height: 130px; border-radius: 12px; margin: 0 auto 18px; display: block; }
.qr-panel h4 { font-family: var(--font-display); font-size: 17px; font-weight: 800; margin-bottom: 8px; }
.qr-panel p { font-size: 13px; color: var(--ink-soft); margin-bottom: 20px; }
.app-store-btns { display: flex; gap: 10px; justify-content: center; }
.btn-app-store {
  font-size: 13px; font-weight: 600;
  background: var(--ink); color: #fff;
  padding: 9px 22px; border-radius: 8px; border: none;
  cursor: pointer; transition: all .16s;
  display: inline-flex; align-items: center; gap: 7px;
}
.btn-app-store:hover { background: var(--blue); }

/* ── LOGIN MODAL ──────────────────────────────────── */
#loginModal .modal-content {
  border: 1px solid var(--rule); border-radius: var(--radius-lg);
  box-shadow: 0 24px 80px rgba(0,0,0,0.18);
  max-width: 420px; margin: 0 auto;
}
#loginModal .modal-header {
  border-bottom: none; padding: 28px 28px 8px;
}
#loginModal .modal-body { padding: 8px 28px 28px; }
.login-brand {
  width: 48px; height: 48px; border-radius: 13px;
  background: var(--ink); color: #fff;
  display: grid; place-items: center;
  font-family: var(--font-display); font-size: 16px; font-weight: 800;
  margin-bottom: 16px;
}
.login-title { font-family: var(--font-display); font-size: 22px; font-weight: 800; margin-bottom: 4px; }
.login-sub { font-size: 14px; color: var(--ink-soft); margin-bottom: 24px; }
.form-label-custom { font-size: 13px; font-weight: 600; color: var(--ink); margin-bottom: 6px; display: block; }
.form-control-custom {
  width: 100%; padding: 11px 14px; border-radius: 9px;
  border: 1.5px solid var(--rule); background: var(--surface);
  font-family: var(--font-body); font-size: 14px; color: var(--ink);
  outline: none; transition: border-color .18s; margin-bottom: 16px;
}
.form-control-custom:focus { border-color: var(--blue); background: #fff; }
.btn-login-submit {
  width: 100%; font-size: 15px; font-weight: 600;
  background: var(--ink); color: #fff;
  padding: 13px; border-radius: 10px; border: none; cursor: pointer; transition: all .18s;
}
.btn-login-submit:hover { background: var(--blue); }

/* ── FOOTER ───────────────────────────────────────── */
.site-footer {
  background: var(--ink); color: rgba(255,255,255,0.5);
  padding: 40px 0;
  border-top: 1px solid rgba(255,255,255,0.07);
}
.foot-brand {
  display: flex; align-items: center; gap: 10px;
  font-family: var(--font-display); font-size: 15px; font-weight: 800;
  color: #fff;
}
.foot-brand .brand-mark { background: rgba(255,255,255,0.12); color: #fff; width:30px; height:30px; border-radius:8px; display:grid; place-items:center; font-size:12px; }
.foot-link { color: rgba(255,255,255,0.5); font-size: 13px; transition: color .16s; }
.foot-link:hover { color: #fff; }
.foot-copy { font-size: 13px; color: rgba(255,255,255,0.3); }

/* ── ANIMATIONS ───────────────────────────────────── */
.fade-up {
  opacity: 0; transform: translateY(24px);
  transition: opacity .5s ease, transform .5s ease;
}
.fade-up.visible { opacity: 1; transform: translateY(0); }



.th-c0 {
  background: linear-gradient(135deg, #667eea, #764ba2);
}
.th-c1 {
  background: linear-gradient(135deg, #4facfe, #00f2fe);
}
.th-c2 {
  background: linear-gradient(135deg, #6a11cb, #2575fc);
}
.th-c3 {
  background: linear-gradient(135deg, #11998e, #38ef7d);
}
.th-c4 {
  background: linear-gradient(135deg, #0ba360, #3cba92);
}
.th-c5 {
  background: linear-gradient(135deg, #f7971e, #ffd200);
}
.th-c6 {
  background: linear-gradient(135deg, #8e2de2, #4a00e0);
}
.th-c7 {
  background: linear-gradient(135deg, #eb3349, #f45c43);
}
.th-c8 {
  background: linear-gradient(135deg, #f2994a, #f2c94c);
}
.th-c9 {
  background: linear-gradient(135deg, #ee9ca7, #ffdde1);
}
.th-c10 {
  background: linear-gradient(135deg, #a18cd1, #fbc2eb);
}
.th-c11 {
  background: linear-gradient(135deg, #0c3483, #a2b6df);
}
.th-c12 {
  background: linear-gradient(135deg, #005bea, #ffd600);
}
.th-c13 {
  background: linear-gradient(135deg, #00ea5a, #b9277c);
}
.th-c14 {
  background: linear-gradient(135deg, #f0b820, #cf164e);
}
.th-c15 {
  background: linear-gradient(135deg, #ea2300, #003cff);
}
.th-c16 {
  background: linear-gradient(135deg, #15cac1, #f06a11);
}
.th-c17 {
  background: linear-gradient(135deg, #2a8f11, #00aeff);
}
.th-c18 {
  background: linear-gradient(135deg, #f19393, #7fdb72);
}
.th-c19 {
  background: linear-gradient(135deg, #a716c4, #ffe044);
}
.th-c20 {
  background: linear-gradient(135deg, #005bea, #ffd600);
}


/* ── RESPONSIVE ───────────────────────────────────── */
@media (max-width: 768px) {
  .hero { padding: 64px 0 48px; }
  .hero-feature-panel { margin-top: 48px; }
  .detail-grid { grid-template-columns: 1fr 1fr; }
  .stats-band { max-width: 100%; }
  .courses-grid { grid-template-columns: 1fr; }
}
@media (max-width: 480px) {
  .cat-tabs { gap: 6px; }
  .cat-tab { font-size: 12px; padding: 6px 12px; }
  .detail-grid { grid-template-columns: 1fr; }
}