/* ==========================================================================
   TechForze Arcade, marketing pages (home, catalogue, course page).
   Loaded by the public layout only. Prefix: mk-
   ========================================================================== */

:root {
  --mk-night: #070b16;
  --mk-night-2: #0d1426;
  --mk-violet: #7c5cff;
  --mk-cyan: #22d3ee;
  --mk-gold: #fbbf24;
  --mk-green: #34d399;
}

.ico { flex: none; vertical-align: middle; }

/* ------------------------------------------------- header (dark glass)
   Every public page now opens on a dark hero, so the header joins it
   instead of sitting on top as a separate white strip. */
body.public .site-head {
  /* Near-opaque: behind the sticky header at the top is the light <body>,
     which would turn a see-through dark into grey. */
  background: rgba(7, 11, 22, .97);
  border-bottom: 1px solid rgba(255, 255, 255, .06);
  backdrop-filter: saturate(160%) blur(14px);
  -webkit-backdrop-filter: saturate(160%) blur(14px);
}
body.public .site-head .logo { color: #fff; }
body.public .site-head .logo img { border-radius: 9px; box-shadow: 0 0 0 1px rgba(255, 255, 255, .22); }
body.public .site-nav a { color: #b9c2d3; }
body.public .site-nav a:hover { color: #fff; border-color: rgba(255, 255, 255, .25); }
body.public .site-nav a[aria-current="page"] { color: #fff; border-color: var(--accent); }
body.public .site-actions .btn--ghost { color: #e6ebf5; border-color: rgba(255, 255, 255, .22); background: transparent; }
body.public .site-actions .btn--ghost:hover { border-color: rgba(255, 255, 255, .5); }
body.public .site-actions .btn:not(.btn--ghost) {
  color: #fff; border-color: transparent;
  background: linear-gradient(135deg, #ff4d1c, #ff7a3d);
  box-shadow: 0 8px 20px -10px rgba(255, 77, 28, .8);
}
body.public .nav-toggle { border-color: rgba(255, 255, 255, .22); }
body.public .nav-toggle__bars,
body.public .nav-toggle__bars::before,
body.public .nav-toggle__bars::after { background: #fff; }
body.public .mobile-nav { border-top-color: rgba(255, 255, 255, .08); }
body.public .mobile-nav a { color: #dfe5f1; }
body.public .mobile-nav .btn--ghost { color: #fff; border-color: rgba(255, 255, 255, .22); }
/* Flash messages sit between the header and the hero: give them the same ground. */
body.public > .wrap:has(> .flash) { max-width: none; background: var(--mk-night); padding-top: 1px; padding-bottom: 1px; }
body.public > .wrap > .flash { max-width: calc(var(--wrap) - 40px); margin: 14px auto; }

/* themes: one gradient + glow per topic */
.mk-theme--linux    { --t1: #0f9b8e; --t2: #22d3ee; --tg: rgba(34, 211, 238, .35); }
.mk-theme--security { --t1: #7c3aed; --t2: #f43f5e; --tg: rgba(244, 63, 94, .33); }
.mk-theme--ai       { --t1: #4f46e5; --t2: #c026d3; --tg: rgba(168, 85, 247, .35); }
.mk-theme--web      { --t1: #ff4d1c; --t2: #f59e0b; --tg: rgba(255, 120, 40, .35); }
.mk-theme--default  { --t1: #0b1220; --t2: #ff4d1c; --tg: rgba(255, 77, 28, .3); }

/* ------------------------------------------------------------- buttons */
.mk-btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 10px;
  padding: 14px 24px; border-radius: 999px; font-weight: 700; font-size: 15.5px;
  text-decoration: none; border: 1px solid transparent; cursor: pointer;
  transition: transform .15s ease, box-shadow .2s ease, background .2s ease;
}
.mk-btn:hover { transform: translateY(-2px); }
.mk-btn--primary {
  color: #fff; background: linear-gradient(135deg, #ff4d1c, #ff7a3d 55%, #ff9a4d);
  box-shadow: 0 10px 30px -10px rgba(255, 77, 28, .7), inset 0 1px 0 rgba(255, 255, 255, .25);
}
.mk-btn--primary:hover { box-shadow: 0 16px 40px -10px rgba(255, 77, 28, .85), inset 0 1px 0 rgba(255, 255, 255, .25); }
.mk-btn--glass { color: #fff; background: rgba(255, 255, 255, .07); border-color: rgba(255, 255, 255, .18); backdrop-filter: blur(8px); }
.mk-btn--glass:hover { background: rgba(255, 255, 255, .13); }
.mk-btn--outline { color: var(--ink); border-color: var(--line); background: #fff; }
.mk-btn--outline:hover { border-color: var(--ink); }
.mk-btn--light { background: #fff; color: var(--ink); box-shadow: 0 12px 30px -12px rgba(0, 0, 0, .5); }
.mk-link { display: inline-flex; align-items: center; gap: 6px; font-weight: 700; color: var(--accent); text-decoration: none; }
.mk-link:hover { gap: 10px; }
.mk-row { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 26px; }

/* ---------------------------------------------------------------- hero */
.mk-hero {
  position: relative; overflow: hidden; color: #e7ecf5; padding: 72px 0 40px;
  background:
    radial-gradient(1000px 500px at 85% -10%, rgba(124, 92, 255, .35), transparent 60%),
    radial-gradient(800px 500px at -10% 110%, rgba(255, 77, 28, .25), transparent 60%),
    var(--mk-night);
}
/* Aurora: soft coloured light drifting behind the hero (no grid pattern). */
.mk-hero::before {
  content: ""; position: absolute; inset: -20% -10%; pointer-events: none;
  background:
    radial-gradient(38% 46% at 18% 28%, rgba(124, 92, 255, .38), transparent 70%),
    radial-gradient(32% 40% at 82% 18%, rgba(34, 211, 238, .22), transparent 70%),
    radial-gradient(36% 44% at 62% 88%, rgba(255, 77, 28, .26), transparent 70%),
    radial-gradient(28% 34% at 38% 70%, rgba(236, 72, 153, .16), transparent 70%);
  filter: blur(40px);
  animation: mk-aurora 22s ease-in-out infinite alternate;
}
.mk-hero::after {
  /* gentle vignette so the edges stay deep and the copy stays readable */
  content: ""; position: absolute; inset: 0; pointer-events: none;
  background: radial-gradient(120% 90% at 50% 40%, transparent 55%, rgba(4, 7, 15, .65) 100%);
}
.mk-hero > .wrap { position: relative; z-index: 1; }
@keyframes mk-aurora {
  0%   { transform: translate3d(0, 0, 0) rotate(0deg) scale(1); }
  50%  { transform: translate3d(4%, -3%, 0) rotate(6deg) scale(1.08); }
  100% { transform: translate3d(-4%, 3%, 0) rotate(-5deg) scale(1.02); }
}
.mk-hero__glow {
  position: absolute; width: 520px; height: 520px; right: 6%; top: 8%; border-radius: 50%;
  background: radial-gradient(circle, rgba(34, 211, 238, .22), transparent 65%);
  filter: blur(10px); animation: mk-pulse 7s ease-in-out infinite;
}
.mk-hero__grid { position: relative; display: grid; gap: 48px; grid-template-columns: 1.05fr .95fr; align-items: center; }
.mk-pill {
  display: inline-flex; align-items: center; gap: 10px; padding: 7px 14px 7px 10px; border-radius: 999px;
  background: rgba(255, 255, 255, .06); border: 1px solid rgba(255, 255, 255, .14);
  color: #cfd6e4; font-size: 13.5px; font-weight: 600; text-decoration: none; margin-bottom: 22px;
}
.mk-pill:hover { border-color: rgba(255, 255, 255, .3); color: #fff; }
.mk-pill__dot { width: 8px; height: 8px; border-radius: 50%; background: var(--mk-green); box-shadow: 0 0 0 4px rgba(52, 211, 153, .2); animation: mk-blink 2s infinite; }
.mk-hero__title { color: #fff; font-size: clamp(36px, 6vw, 66px); line-height: 1.04; letter-spacing: -.035em; margin-bottom: 20px; }
.mk-grad {
  background: linear-gradient(100deg, #ff6a3d 0%, #ffb547 35%, #ff4fa3 70%, #8b7bff 100%);
  -webkit-background-clip: text; background-clip: text; color: transparent;
  background-size: 200% auto; animation: mk-shine 6s linear infinite;
}
.mk-hero__lede { font-size: clamp(16px, 1.6vw, 19px); color: #aeb7c9; max-width: 56ch; margin-bottom: 30px; }
.mk-hero__cta { display: flex; flex-wrap: wrap; gap: 12px; }
.mk-checks { list-style: none; padding: 0; margin: 26px 0 0; display: flex; flex-wrap: wrap; gap: 10px 22px; color: #c3cad8; font-size: 14.5px; }
.mk-checks li { display: inline-flex; align-items: center; gap: 7px; }
.mk-checks .ico { color: var(--mk-green); }

/* terminal */
.mk-hero__visual { position: relative; }
.mk-term {
  position: relative; border-radius: 16px; overflow: hidden;
  background: linear-gradient(180deg, rgba(20, 27, 48, .92), rgba(10, 14, 28, .96));
  border: 1px solid rgba(255, 255, 255, .12);
  box-shadow: 0 40px 80px -30px rgba(0, 0, 0, .8), 0 0 0 1px rgba(124, 92, 255, .15), 0 0 60px -10px rgba(124, 92, 255, .35);
  transform: perspective(1200px) rotateY(-6deg) rotateX(3deg);
}
.mk-term__bar { display: flex; align-items: center; gap: 7px; padding: 12px 14px; background: rgba(255, 255, 255, .04); border-bottom: 1px solid rgba(255, 255, 255, .07); }
.mk-term__bar i { width: 11px; height: 11px; border-radius: 50%; background: #ff5f57; }
.mk-term__bar i:nth-child(2) { background: #febc2e; }
.mk-term__bar i:nth-child(3) { background: #28c840; }
.mk-term__bar span { margin-left: 10px; font: 500 12px var(--mono); color: #7f8aa3; }
.mk-term__body { padding: 18px 20px 22px; font: 500 13.5px/1.9 var(--mono); color: #d8dfec; min-height: 290px; }
.mk-term__body p { margin: 0; white-space: nowrap; overflow: hidden; }
.mk-term__body b { color: var(--mk-green); font-weight: 600; }
.mk-ok { color: var(--mk-green); }
.mk-dim { color: #7f8aa3; }
.mk-gold { color: var(--mk-gold); }
.mk-l { opacity: 0; animation: mk-line .45s ease forwards; }
.mk-l1 { animation-delay: .3s; } .mk-l2 { animation-delay: 1s; } .mk-l3 { animation-delay: 1.7s; }
.mk-l4 { animation-delay: 2.3s; } .mk-l5 { animation-delay: 3s; } .mk-l6 { animation-delay: 3.7s; }
.mk-l7 { animation-delay: 4.4s; } .mk-l8 { animation-delay: 5.1s; } .mk-l9 { animation-delay: 5.8s; }
.mk-caret { display: inline-block; width: 8px; height: 16px; background: #d8dfec; vertical-align: -3px; animation: mk-blink 1s steps(1) infinite; }

.mk-float {
  position: absolute; display: flex; align-items: center; gap: 10px; padding: 11px 14px; border-radius: 14px;
  background: rgba(255, 255, 255, .96); color: var(--ink); box-shadow: 0 20px 40px -18px rgba(0, 0, 0, .6);
  font-size: 13px; line-height: 1.3; animation: mk-float 5s ease-in-out infinite;
}
.mk-float strong { display: block; font-size: 13.5px; }
.mk-float span { color: var(--muted); font-size: 12px; }
.mk-float .ico { width: 34px; height: 34px; padding: 7px; border-radius: 10px; color: #fff; background: linear-gradient(135deg, #10b981, #22d3ee); }
.mk-float--a { left: -26px; bottom: -30px; }
.mk-float--b { right: -18px; top: -22px; animation-delay: -2.5s; }
.mk-float--b .ico { background: linear-gradient(135deg, #f59e0b, #ff4d1c); }

/* stats */
.mk-stats {
  position: relative; margin: 56px 0 0; display: grid; grid-template-columns: repeat(4, 1fr);
  border: 1px solid rgba(255, 255, 255, .1); border-radius: 18px; overflow: hidden;
  background: rgba(255, 255, 255, .035); backdrop-filter: blur(6px);
}
.mk-stats > div { padding: 22px 24px; border-left: 1px solid rgba(255, 255, 255, .08); }
.mk-stats > div:first-child { border-left: 0; }
.mk-stats dt { font-size: 13px; color: #8f9ab0; order: 2; }
.mk-stats dd {
  margin: 0 0 4px; font: 800 clamp(26px, 3vw, 36px)/1.1 var(--display); letter-spacing: -.03em;
  background: linear-gradient(180deg, #fff, #b9c3d8); -webkit-background-clip: text; background-clip: text; color: transparent;
}
.mk-stats > div { display: flex; flex-direction: column-reverse; }

/* ------------------------------------------------------------ sections */
.mk-section { padding: 88px 0; }
.mk-section--tint { background: linear-gradient(180deg, #f3f6fb, #fbfcfe); }
.mk-section--dark { background: var(--mk-night); color: #c9d1e0; position: relative; overflow: hidden; }
.mk-section--dark::before {
  content: ""; position: absolute; inset: 0; pointer-events: none;
  background: radial-gradient(700px 400px at 90% 0%, rgba(124, 92, 255, .25), transparent 60%), radial-gradient(600px 400px at 0% 100%, rgba(34, 211, 238, .14), transparent 60%);
}
.mk-section--dark .wrap { position: relative; }
.mk-head { max-width: 680px; margin: 0 auto 44px; text-align: center; }
.mk-head h2 { font-size: clamp(28px, 4vw, 44px); letter-spacing: -.03em; margin-bottom: 12px; }
.mk-head p { color: var(--muted); font-size: 17px; margin: 0; }
.mk-head--light h2 { color: #fff; }
.mk-kicker {
  display: inline-block; margin-bottom: 14px; font: 700 12px/1 var(--mono); letter-spacing: .14em; text-transform: uppercase;
  color: var(--accent); background: rgba(255, 77, 28, .09); padding: 7px 12px; border-radius: 999px;
}
.mk-section--dark .mk-kicker { background: rgba(255, 255, 255, .08); color: #ffb08f; }

/* --------------------------------------------------------------- cards */
.mk-grid { display: grid; gap: 22px; grid-template-columns: repeat(3, 1fr); }
@media (max-width: 1000px) { .mk-grid { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 640px) { .mk-grid { grid-template-columns: 1fr; } }
.mk-card {
  position: relative; display: flex; flex-direction: column; border-radius: 20px; overflow: hidden;
  background: #fff; border: 1px solid var(--line); text-decoration: none; color: var(--ink);
  box-shadow: 0 1px 2px rgba(15, 23, 42, .04), 0 12px 30px -18px rgba(15, 23, 42, .25);
  transition: transform .2s ease, box-shadow .25s ease, border-color .2s ease;
}
.mk-card:hover { transform: translateY(-6px); border-color: transparent; box-shadow: 0 30px 60px -24px var(--tg), 0 0 0 1px var(--tg); }
.mk-card__banner {
  position: relative; height: 132px; padding: 18px; display: flex; align-items: flex-start; justify-content: space-between;
  background: linear-gradient(135deg, var(--t1), var(--t2)); color: #fff; overflow: hidden;
}
.mk-card__banner::before {
  content: ""; position: absolute; inset: 0; opacity: .25;
  background-image: radial-gradient(rgba(255, 255, 255, .7) 1px, transparent 1.2px); background-size: 16px 16px;
  -webkit-mask-image: linear-gradient(120deg, transparent 20%, #000); mask-image: linear-gradient(120deg, transparent 20%, #000);
}
.mk-card__banner::after {
  content: ""; position: absolute; width: 180px; height: 180px; right: -50px; bottom: -90px; border-radius: 50%;
  background: rgba(255, 255, 255, .16);
}
.mk-card__icon {
  position: relative; z-index: 1; display: grid; place-items: center; width: 56px; height: 56px; border-radius: 16px;
  background: rgba(255, 255, 255, .18); border: 1px solid rgba(255, 255, 255, .3); backdrop-filter: blur(4px);
  transition: transform .3s ease;
}
.mk-card:hover .mk-card__icon { transform: rotate(-6deg) scale(1.06); }
.mk-card__chips { position: relative; z-index: 1; display: flex; flex-direction: column; align-items: flex-end; gap: 6px; }
.mk-chip { display: inline-flex; align-items: center; gap: 5px; padding: 4px 10px; border-radius: 999px; font: 700 11.5px/1.4 var(--font); }
.mk-chip--glass { background: rgba(255, 255, 255, .2); border: 1px solid rgba(255, 255, 255, .3); color: #fff; }
.mk-chip--live { background: #fff; color: #0a7c48; }
.mk-card__body { display: flex; flex-direction: column; gap: 8px; padding: 20px 20px 18px; flex: 1; }
.mk-card__track { font: 700 11.5px/1 var(--mono); letter-spacing: .1em; text-transform: uppercase; color: var(--muted); }
.mk-card h3 { font-size: 20px; margin: 2px 0 0; }
.mk-card p { color: var(--muted); font-size: 14.5px; margin: 0; display: -webkit-box; -webkit-line-clamp: 3; -webkit-box-orient: vertical; overflow: hidden; }
.mk-card__facts { list-style: none; padding: 0; margin: 6px 0 0; display: flex; flex-wrap: wrap; gap: 6px; }
.mk-card__facts li {
  display: inline-flex; align-items: center; gap: 5px; padding: 5px 10px; border-radius: 9px;
  background: #f3f5f9; font-size: 12.5px; font-weight: 600; color: var(--ink-soft);
}
.mk-card__facts .ico { color: var(--t1); }
.mk-card__foot { margin-top: auto; padding-top: 14px; border-top: 1px dashed var(--line); display: flex; align-items: center; justify-content: space-between; gap: 10px; }
.mk-card__cert { display: inline-flex; align-items: center; gap: 6px; font-size: 12.5px; font-weight: 700; color: #a16207; }
.mk-card__go { display: inline-flex; align-items: center; gap: 6px; font-weight: 800; font-size: 14px; color: var(--ink); transition: gap .2s ease; }
.mk-card:hover .mk-card__go { gap: 10px; color: var(--t1); }

/* --------------------------------------------------------------- steps */
.mk-steps { list-style: none; padding: 0; margin: 0; display: grid; grid-template-columns: repeat(4, 1fr); gap: 20px; counter-reset: mks; position: relative; }
.mk-steps::before { content: ""; position: absolute; top: 34px; left: 12%; right: 12%; height: 2px; background: repeating-linear-gradient(90deg, #cfd6e2 0 8px, transparent 8px 16px); }
.mk-steps li { position: relative; text-align: center; padding: 0 8px; counter-increment: mks; }
.mk-steps__ico {
  position: relative; display: inline-grid; place-items: center; width: 68px; height: 68px; border-radius: 22px; margin-bottom: 16px;
  color: #fff; background: linear-gradient(135deg, #ff4d1c, #ff9a4d); box-shadow: 0 14px 30px -12px rgba(255, 77, 28, .7);
}
.mk-steps li:nth-child(2) .mk-steps__ico { background: linear-gradient(135deg, #7c5cff, #c084fc); box-shadow: 0 14px 30px -12px rgba(124, 92, 255, .7); }
.mk-steps li:nth-child(3) .mk-steps__ico { background: linear-gradient(135deg, #0f9b8e, #22d3ee); box-shadow: 0 14px 30px -12px rgba(34, 211, 238, .7); }
.mk-steps li:nth-child(4) .mk-steps__ico { background: linear-gradient(135deg, #f59e0b, #fbbf24); box-shadow: 0 14px 30px -12px rgba(245, 158, 11, .7); }
.mk-steps__ico::after {
  content: counter(mks); position: absolute; top: -8px; right: -8px; width: 24px; height: 24px; border-radius: 50%;
  display: grid; place-items: center; background: var(--ink); color: #fff; font: 700 12px var(--mono); border: 3px solid #f5f7fb;
}
.mk-steps strong { display: block; font: 800 17px/1.3 var(--display); margin-bottom: 6px; }
.mk-steps p { color: var(--muted); font-size: 14.5px; margin: 0; }
@media (max-width: 860px) {
  .mk-steps { grid-template-columns: 1fr 1fr; row-gap: 36px; }
  .mk-steps::before { display: none; }
}
@media (max-width: 480px) { .mk-steps { grid-template-columns: 1fr; } }

/* --------------------------------------------------------- certificate */
.mk-cert-split { display: grid; grid-template-columns: 1.05fr .95fr; gap: 64px; align-items: center; }
@media (max-width: 900px) { .mk-cert-split { grid-template-columns: 1fr; gap: 40px; } }
.mk-cert-wrap { position: relative; padding: 18px; }
.mk-cert-wrap::before {
  content: ""; position: absolute; inset: 10% 6%; border-radius: 30px; filter: blur(40px);
  background: linear-gradient(135deg, rgba(255, 77, 28, .45), rgba(124, 92, 255, .45));
}
.mk-cert {
  position: relative; display: flex; flex-direction: column; align-items: center; text-align: center; gap: 4px;
  padding: 34px 34px 26px; border-radius: 14px; color: #1d2433;
  background: linear-gradient(180deg, #fffdf7, #fff8ea);
  border: 1px solid #ecdcb4; box-shadow: 0 30px 60px -28px rgba(15, 23, 42, .45), inset 0 0 0 8px #fff, inset 0 0 0 9px #e8d3a1;
  transform: rotate(-2deg); transition: transform .4s ease;
}
.mk-cert:hover { transform: rotate(0) scale(1.02); }
.mk-cert__top { width: 100%; display: flex; justify-content: space-between; align-items: center; margin-bottom: 14px; }
.mk-cert__brand { font: 800 15px var(--display); }
.mk-cert__brand em { font-style: normal; color: var(--accent); }
.mk-cert__seal { display: grid; place-items: center; width: 48px; height: 48px; border-radius: 50%; color: #fff; background: radial-gradient(circle at 35% 30%, #fcd34d, #d97706); box-shadow: 0 0 0 4px #fde68a; }
.mk-cert__label { font: 700 12px var(--mono); letter-spacing: .2em; text-transform: uppercase; color: #a16207; margin-bottom: 8px; }
.mk-cert__small { font-size: 13px; color: #6b7280; }
.mk-cert__name { font: 800 clamp(24px, 3vw, 32px)/1.2 var(--display); letter-spacing: -.02em; margin: 2px 0 4px; border-bottom: 2px solid #e8d3a1; padding: 0 10px 6px; }
.mk-cert__course { font: 800 19px var(--display); color: var(--accent); margin-top: 2px; }
.mk-cert__foot { width: 100%; display: flex; align-items: flex-end; justify-content: space-between; gap: 12px; margin-top: 22px; text-align: left; }
.mk-cert__foot span { display: block; font-size: 10.5px; color: #8a8f98; text-transform: uppercase; letter-spacing: .08em; }
.mk-cert__foot b { font: 600 12px var(--mono); }
.mk-cert__qr { width: 58px; height: 58px; padding: 4px; background: #fff; border: 1px solid #e5e7eb; border-radius: 6px; flex: none; }
.mk-cert__qr svg { display: block; width: 100%; height: 100%; fill: #111827; }
.mk-list { list-style: none; padding: 0; margin: 24px 0 0; display: grid; gap: 18px; }
.mk-list li { display: flex; gap: 14px; align-items: flex-start; }
.mk-list li > .ico { width: 42px; height: 42px; padding: 10px; border-radius: 12px; background: var(--accent-soft); color: var(--accent); }
.mk-list strong { display: block; font-size: 16px; }
.mk-list span { color: var(--muted); font-size: 14.5px; }

/* ------------------------------------------------------------ features */
.mk-features { display: grid; grid-template-columns: repeat(3, 1fr); gap: 18px; }
@media (max-width: 900px) { .mk-features { grid-template-columns: 1fr 1fr; } }
@media (max-width: 560px) { .mk-features { grid-template-columns: 1fr; } }
.mk-features > div {
  padding: 24px; border-radius: 18px; background: rgba(255, 255, 255, .04); border: 1px solid rgba(255, 255, 255, .09);
  transition: border-color .2s ease, background .2s ease, transform .2s ease;
}
.mk-features > div:hover { border-color: rgba(255, 176, 143, .45); background: rgba(255, 255, 255, .07); transform: translateY(-3px); }
.mk-features .ico { width: 46px; height: 46px; padding: 11px; border-radius: 13px; color: #fff; background: linear-gradient(135deg, rgba(255, 77, 28, .9), rgba(124, 92, 255, .9)); margin-bottom: 14px; }
.mk-features strong { display: block; color: #fff; font: 700 17px var(--display); margin-bottom: 6px; }
.mk-features p { margin: 0; font-size: 14.5px; color: #9aa5ba; }

/* --------------------------------------------------------------- paths */
.mk-paths { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; }
@media (max-width: 900px) { .mk-paths { grid-template-columns: 1fr; } }
.mk-path { position: relative; padding: 24px; border-radius: 20px; border: 1px solid var(--line); background: #fff; overflow: hidden; }
.mk-path::before { content: ""; position: absolute; inset: 0 0 auto 0; height: 4px; background: linear-gradient(90deg, var(--t1), var(--t2)); }
.mk-path__ico { display: inline-grid; place-items: center; width: 46px; height: 46px; border-radius: 13px; color: #fff; background: linear-gradient(135deg, var(--t1), var(--t2)); margin-bottom: 12px; }
.mk-path__name { display: block; font: 800 19px var(--display); margin-bottom: 14px; }
.mk-path ol { list-style: none; padding: 0; margin: 0; display: grid; gap: 0; }
.mk-path li { position: relative; display: flex; justify-content: space-between; gap: 10px; align-items: center; padding: 10px 0 10px 26px; }
.mk-path li::before { content: ""; position: absolute; left: 5px; top: 50%; width: 11px; height: 11px; margin-top: -5.5px; border-radius: 50%; background: #fff; border: 3px solid var(--t1); }
.mk-path li + li::after { content: ""; position: absolute; left: 9.5px; top: -12px; height: 24px; width: 2px; background: var(--line); }
.mk-path a { font-weight: 700; text-decoration: none; }
.mk-path a:hover { color: var(--t1); }
.mk-path li span { font-size: 12px; color: var(--muted); white-space: nowrap; }

/* ----------------------------------------------------------------- FAQ */
.mk-faq-wrap { max-width: 820px; }
.mk-faq { display: grid; gap: 12px; }
.mk-faq details { background: #fff; border: 1px solid var(--line); border-radius: 16px; padding: 0 22px; transition: box-shadow .2s ease; }
.mk-faq details[open] { box-shadow: 0 14px 30px -20px rgba(15, 23, 42, .35); }
.mk-faq summary { cursor: pointer; list-style: none; padding: 18px 0; font-weight: 700; font-size: 16.5px; display: flex; justify-content: space-between; gap: 16px; }
.mk-faq summary::-webkit-details-marker { display: none; }
.mk-faq summary::after { content: "+"; font: 400 24px/1 var(--font); color: var(--accent); transition: transform .2s ease; }
.mk-faq details[open] summary::after { transform: rotate(45deg); }
.mk-faq p { color: var(--muted); margin: 0 0 18px; }

/* ----------------------------------------------------------------- CTA */
.mk-cta { padding: 64px 0; background: linear-gradient(120deg, #ff4d1c, #ff6a3d 35%, #c43dff 100%); color: #fff; position: relative; overflow: hidden; }
.mk-cta::before { content: ""; position: absolute; inset: 0; background-image: radial-gradient(rgba(255, 255, 255, .25) 1px, transparent 1.2px); background-size: 20px 20px; opacity: .4; pointer-events: none; }
.mk-cta__inner { position: relative; display: flex; align-items: center; justify-content: space-between; gap: 28px; flex-wrap: wrap; }
.mk-cta h2 { color: #fff; font-size: clamp(26px, 3.6vw, 40px); margin-bottom: 6px; }
.mk-cta p { margin: 0; color: rgba(255, 255, 255, .88); font-size: 17px; }
main > .mk-cta:last-child { margin-bottom: -64px; } /* sit flush on the footer */

/* ---------------------------------------------------- catalogue page */
.mk-page-hero {
  position: relative; overflow: hidden; color: #dfe5f1; padding: 56px 0 46px;
  background: radial-gradient(800px 360px at 90% 0%, rgba(124, 92, 255, .35), transparent 60%), radial-gradient(700px 360px at 0% 120%, rgba(255, 77, 28, .25), transparent 60%), var(--mk-night);
}
.mk-page-hero h1 { color: #fff; font-size: clamp(32px, 5vw, 52px); letter-spacing: -.03em; margin-bottom: 10px; }
.mk-page-hero p { color: #aeb7c9; font-size: 17px; max-width: 60ch; margin: 0; }
.mk-search {
  margin-top: 26px; display: flex; flex-wrap: wrap; gap: 8px; padding: 8px; border-radius: 18px;
  background: rgba(255, 255, 255, .07); border: 1px solid rgba(255, 255, 255, .14); max-width: 860px;
}
.mk-search input, .mk-search select {
  background: rgba(255, 255, 255, .95); border: 0; border-radius: 12px; padding: 12px 14px; width: auto; font-size: 15px;
}
.mk-search input { flex: 1 1 240px; }
.mk-search select { flex: 0 1 170px; }
.mk-search button { flex: 0 0 auto; }
.mk-search .mk-btn { padding: 12px 22px; }
.mk-topics { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 18px; }
.mk-topics a { padding: 6px 12px; border-radius: 999px; font-size: 13px; font-weight: 600; text-decoration: none; color: #cfd6e4; background: rgba(255, 255, 255, .06); border: 1px solid rgba(255, 255, 255, .12); }
.mk-topics a:hover { color: #fff; border-color: rgba(255, 255, 255, .35); }
.mk-count { color: var(--muted); font-size: 14px; margin: 0 0 18px; }

/* ------------------------------------------------------- course page */
.mk-course-hero {
  position: relative; overflow: hidden; color: #e6ebf5; padding: 46px 0 56px;
  background: radial-gradient(900px 420px at 85% -10%, var(--tg), transparent 60%), var(--mk-night);
}
.mk-course-hero::after {
  content: ""; position: absolute; inset: auto 0 0 0; height: 4px; background: linear-gradient(90deg, var(--t1), var(--t2));
}
.mk-crumbs { font-size: 13.5px; color: #8f9ab0; margin-bottom: 18px; }
.mk-crumbs a { color: #b8c1d3; text-decoration: none; }
.mk-crumbs a:hover { color: #fff; }
.mk-course-grid { display: grid; grid-template-columns: 1fr 380px; gap: 44px; align-items: start; }
@media (max-width: 960px) { .mk-course-grid { grid-template-columns: 1fr; } }
.mk-course-hero h1 { color: #fff; font-size: clamp(30px, 4.6vw, 50px); letter-spacing: -.03em; margin: 10px 0 14px; }
.mk-course-hero .mk-lede { color: #aeb7c9; font-size: 17.5px; max-width: 62ch; }
.mk-badges { display: flex; flex-wrap: wrap; gap: 8px; }
.mk-badges span { padding: 5px 12px; border-radius: 999px; font-size: 12.5px; font-weight: 700; background: rgba(255, 255, 255, .08); border: 1px solid rgba(255, 255, 255, .14); color: #dbe2ee; }
.mk-badges .mk-badge--hot { background: linear-gradient(135deg, var(--t1), var(--t2)); border-color: transparent; color: #fff; }
.mk-facts { display: grid; grid-template-columns: repeat(auto-fit, minmax(120px, 1fr)); gap: 10px; margin-top: 26px; }
.mk-facts div { padding: 14px 16px; border-radius: 14px; background: rgba(255, 255, 255, .05); border: 1px solid rgba(255, 255, 255, .1); }
.mk-facts .ico { color: var(--t2); margin-bottom: 6px; display: block; }
.mk-facts strong { display: block; color: #fff; font: 800 22px/1.1 var(--display); }
.mk-facts span { font-size: 12.5px; color: #8f9ab0; }

.mk-enroll {
  position: sticky; top: 88px; border-radius: 22px; background: #fff; color: var(--ink); overflow: hidden;
  box-shadow: 0 40px 80px -36px rgba(0, 0, 0, .55), 0 0 0 1px rgba(255, 255, 255, .1);
}
.mk-enroll__top { padding: 22px 24px; background: linear-gradient(135deg, var(--t1), var(--t2)); color: #fff; display: flex; gap: 14px; align-items: center; }
.mk-enroll__top .mk-card__icon { width: 50px; height: 50px; }
.mk-enroll__top strong { display: block; font: 800 18px var(--display); }
.mk-enroll__top span { font-size: 13px; opacity: .9; }
.mk-enroll__body { padding: 22px 24px 24px; }
.mk-enroll__body h3 { margin: 0 0 6px; }
.mk-enroll__body p { color: var(--muted); font-size: 14.5px; }
.mk-enroll .mk-btn { width: 100%; }
.mk-enroll form { margin: 0; }
.mk-enroll ul { list-style: none; padding: 16px 0 0; margin: 18px 0 0; border-top: 1px solid var(--line); display: grid; gap: 9px; font-size: 14px; }
.mk-enroll li { display: flex; gap: 9px; align-items: center; }
.mk-enroll li .ico { color: var(--ok); }
.mk-enroll .mk-progress { height: 8px; border-radius: 99px; background: #eef1f6; overflow: hidden; margin: 10px 0 16px; }
.mk-enroll .mk-progress span { display: block; height: 100%; background: linear-gradient(90deg, var(--t1), var(--t2)); }
.mk-signin { display: block; text-align: center; margin-top: 12px; font-size: 14px; color: var(--muted); }

.mk-course-body { display: grid; grid-template-columns: 1fr 380px; gap: 44px; align-items: start; }
@media (max-width: 960px) { .mk-course-body { grid-template-columns: 1fr; } }
.mk-course-body h2 { font-size: clamp(24px, 3vw, 32px); }
.mk-syllabus { display: grid; gap: 10px; counter-reset: mod; }
.mk-syllabus details { border: 1px solid var(--line); border-radius: 16px; background: #fff; overflow: hidden; }
.mk-syllabus details[open] { box-shadow: 0 16px 34px -24px rgba(15, 23, 42, .4); }
.mk-syllabus summary { list-style: none; cursor: pointer; display: flex; align-items: center; gap: 14px; padding: 16px 18px; counter-increment: mod; }
.mk-syllabus summary::-webkit-details-marker { display: none; }
.mk-syllabus summary::before {
  content: counter(mod, decimal-leading-zero); flex: none; display: grid; place-items: center; width: 40px; height: 40px; border-radius: 12px;
  font: 700 14px var(--mono); color: #fff; background: linear-gradient(135deg, var(--t1), var(--t2));
}
.mk-syllabus summary::after { content: "+"; margin-left: auto; font: 400 22px/1 var(--font); color: var(--muted); transition: transform .2s ease; }
.mk-syllabus details[open] summary::after { transform: rotate(45deg); }
.mk-syllabus summary strong { display: block; font-size: 16px; }
.mk-syllabus summary span { font-size: 13px; color: var(--muted); }
.mk-syllabus .mk-mod-sum { margin: 0; padding: 0 18px 10px 72px; color: var(--muted); font-size: 14px; }
.mk-syllabus ul { list-style: none; margin: 0; padding: 4px 18px 16px 72px; display: grid; gap: 4px; }
.mk-syllabus li { display: flex; align-items: center; gap: 10px; font-size: 14.5px; padding: 6px 0; border-bottom: 1px dashed #edf0f5; }
.mk-syllabus li:last-child { border-bottom: 0; }
.mk-syllabus li .ico { color: var(--t1); }
.mk-syllabus li em { margin-left: auto; font-style: normal; font-size: 12.5px; color: var(--muted); white-space: nowrap; }
.mk-syllabus li.is-quiz .ico { color: #a855f7; }
@media (max-width: 560px) {
  .mk-syllabus .mk-mod-sum, .mk-syllabus ul { padding-left: 18px; }
}
.mk-aside-card { border: 1px solid var(--line); border-radius: 20px; padding: 24px; background: #fff; }
.mk-aside-card + .mk-aside-card { margin-top: 18px; }
.mk-aside-card h3 { margin-bottom: 14px; }
.mk-mini-cert { display: flex; align-items: center; gap: 14px; padding: 16px; border-radius: 14px; background: linear-gradient(180deg, #fffdf7, #fff6e3); border: 1px solid #f0dfb5; }
.mk-mini-cert .ico { width: 46px; height: 46px; padding: 10px; border-radius: 50%; color: #fff; background: radial-gradient(circle at 35% 30%, #fcd34d, #d97706); }
.mk-mini-cert strong { display: block; }
.mk-mini-cert span { font-size: 13px; color: var(--muted); }

/* --------------------------------------------------------------- motion */
@keyframes mk-line { from { opacity: 0; transform: translateY(4px); } to { opacity: 1; transform: none; } }
@keyframes mk-blink { 50% { opacity: 0; } }
@keyframes mk-float { 0%, 100% { transform: translateY(0); } 50% { transform: translateY(-10px); } }
@keyframes mk-pulse { 0%, 100% { opacity: .7; transform: scale(1); } 50% { opacity: 1; transform: scale(1.08); } }
@keyframes mk-shine { to { background-position: 200% center; } }

@media (max-width: 900px) {
  /* Stacked hero: one centred column so nothing hugs the left with an empty
     right side, and a compact terminal instead of a full-width slab. */
  .mk-hero { padding-top: 44px; }
  .mk-hero__grid { grid-template-columns: 1fr; gap: 52px; justify-items: center; }
  .mk-hero__copy { text-align: center; max-width: 640px; }
  .mk-hero__title { font-size: clamp(36px, 7.4vw, 58px); }
  .mk-hero__lede { margin-left: auto; margin-right: auto; }
  .mk-hero__cta, .mk-checks { justify-content: center; }
  .mk-hero__visual { width: 100%; max-width: 520px; }
  .mk-hero__glow { right: 50%; transform: translateX(50%); top: 40%; width: 420px; height: 420px; }
  .mk-term { transform: none; }
  .mk-term__body { min-height: 0; font-size: 13px; padding: 16px 18px 18px; }
  .mk-float--a { left: -14px; bottom: -36px; }
  .mk-float--b { right: -14px; top: -24px; }
  .mk-stats { grid-template-columns: repeat(2, 1fr); }
  .mk-stats > div:nth-child(3) { border-left: 0; }
  .mk-stats > div:nth-child(n+3) { border-top: 1px solid rgba(255, 255, 255, .08); }
  .mk-section { padding: 64px 0; }
  .mk-enroll { position: static; }
}
@media (max-width: 520px) {
  .mk-float--a { left: -4px; }
  .mk-float--b { right: -4px; }
  .mk-term__body { font-size: 12px; padding: 14px; min-height: 0; }
  .mk-term__body p { white-space: normal; }
  .mk-hero__cta .mk-btn { width: 100%; }
  .mk-float { font-size: 12px; padding: 9px 11px; }
  .mk-cert { padding: 26px 18px 20px; }
  .mk-cert__foot { flex-wrap: wrap; }
}
@media (prefers-reduced-motion: reduce) {
  .mk-l, .mk-float, .mk-grad, .mk-hero__glow, .mk-pill__dot, .mk-caret, .mk-hero::before { animation: none !important; opacity: 1; }
  .mk-card, .mk-cert, .mk-btn { transition: none; }
}
