:root {
  --ink: #111323;
  --ink-soft: #1a1e3b;
  --paper: #f7f8fc;
  --white: #ffffff;
  --mist: #e4e7f2;
  --muted: #73778d;
  --rose: #8269ed;
  --rose-pale: #e7e2ff;
  --rose-deep: #5d49bd;
  --cyan: #42d5e7;
  --line: rgba(17, 19, 35, 0.1);
  --shell: min(1180px, calc(100vw - 48px));
  --serif: "Noto Serif TC", "Songti TC", "PMingLiU", serif;
  --sans: "Noto Sans TC", "PingFang TC", "Microsoft JhengHei", system-ui, sans-serif;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: 84px; }
body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font-family: var(--sans);
  font-size: 16px;
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
}
body::selection { background: var(--rose); color: var(--ink); }
a { color: inherit; text-decoration: none; }
img { max-width: 100%; display: block; }
h1, h2, h3, p { margin-top: 0; }
button, a { -webkit-tap-highlight-color: transparent; }

.skip-link {
  position: fixed;
  left: 16px;
  top: -60px;
  z-index: 100;
  background: var(--white);
  color: var(--ink);
  padding: 10px 16px;
  border-radius: 999px;
  transition: top .2s ease;
}
.skip-link:focus { top: 16px; }
:focus-visible { outline: 3px solid var(--cyan); outline-offset: 4px; }

.shell { width: var(--shell); margin-inline: auto; }
.section { padding: 120px 0; }
.eyebrow {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-bottom: 28px;
  color: rgba(255,255,255,.67);
  font-size: .76rem;
  font-weight: 700;
  letter-spacing: .2em;
}
.eyebrow span { width: 32px; height: 1px; background: var(--rose); }
.eyebrow.dark { color: #5e6064; }

.site-header {
  position: fixed;
  inset: 0 0 auto;
  z-index: 50;
  border-bottom: 1px solid rgba(255,255,255,.11);
  color: var(--white);
  transition: background .3s ease, border-color .3s ease, box-shadow .3s ease;
}
.site-header.scrolled {
  background: rgba(14,17,35,.92);
  border-color: rgba(255,255,255,.08);
  box-shadow: 0 14px 40px rgba(0,0,0,.18);
  backdrop-filter: blur(18px);
}
.header-inner {
  width: min(1320px, calc(100vw - 48px));
  height: 78px;
  margin-inline: auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 32px;
}
.brand { display: inline-flex; align-items: center; gap: 12px; }
.brand-logo {
  width: 48px;
  height: auto;
  flex: 0 0 auto;
  filter: invert(1) brightness(1.3);
  object-fit: contain;
}
.brand-copy { display: grid; line-height: 1.2; }
.brand-copy strong { font-size: .92rem; letter-spacing: .05em; }
.brand-copy small { margin-top: 4px; color: rgba(255,255,255,.5); font-size: .59rem; letter-spacing: .15em; }
.desktop-nav { display: flex; align-items: center; gap: 34px; margin-left: auto; }
.desktop-nav a { color: rgba(255,255,255,.73); font-size: .9rem; transition: color .2s ease; }
.desktop-nav a:hover { color: var(--white); }
.header-cta {
  border-left: 1px solid rgba(255,255,255,.18);
  padding-left: 30px;
  font-size: .88rem;
  font-weight: 700;
}
.header-cta span { margin-left: 8px; color: var(--rose); }

.hero {
  position: relative;
  min-height: 790px;
  height: min(900px, 100svh);
  color: var(--white);
  background: var(--ink);
  overflow: hidden;
  isolation: isolate;
}
.hero-media { position: absolute; inset: 0; z-index: -3; }
.hero-media img { width: 100%; height: 100%; object-fit: cover; object-position: 58% center; }
.hero-shade {
  position: absolute;
  inset: 0;
  z-index: -2;
  background:
    linear-gradient(90deg, rgba(8,10,23,.98) 0%, rgba(8,10,23,.91) 32%, rgba(12,14,31,.48) 60%, rgba(8,10,23,.17) 100%),
    linear-gradient(0deg, rgba(8,10,23,.86) 0%, transparent 34%);
}
.hero-grid {
  position: absolute;
  inset: 78px 0 0;
  z-index: -1;
  opacity: .26;
  background-image: linear-gradient(rgba(255,255,255,.07) 1px, transparent 1px), linear-gradient(90deg, rgba(255,255,255,.07) 1px, transparent 1px);
  background-size: 92px 92px;
  mask-image: linear-gradient(90deg, #000, transparent 60%);
}
.hero-inner {
  position: relative;
  height: 100%;
  display: grid;
  grid-template-columns: minmax(0, 1.1fr) minmax(330px, .58fr);
  align-items: center;
  gap: 76px;
  padding-top: 86px;
  padding-bottom: 74px;
}
.hero-copy { max-width: 680px; }
.hero h1 {
  margin-bottom: 30px;
  font-family: var(--serif);
  font-size: clamp(3.8rem, 6.2vw, 6.65rem);
  font-weight: 600;
  line-height: 1.04;
  letter-spacing: -.055em;
}
.hero h1 em {
  color: var(--rose-pale);
  font-style: normal;
  background: linear-gradient(90deg, #ddd4ff, #95ebf3);
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
}
.hero-lead { max-width: 600px; margin-bottom: 34px; color: rgba(255,255,255,.7); font-size: 1.06rem; line-height: 1.9; }
.hero-actions { display: flex; flex-wrap: wrap; gap: 12px; }
.button {
  min-height: 52px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 34px;
  padding: 13px 24px;
  border: 1px solid transparent;
  border-radius: 999px;
  font-size: .93rem;
  font-weight: 700;
  transition: transform .2s ease, background .2s ease, color .2s ease, border-color .2s ease;
}
.button:hover { transform: translateY(-2px); }
.button-primary { background: linear-gradient(100deg, #9c83ff, #65dce8); color: var(--ink); box-shadow: 0 12px 34px rgba(89, 100, 225, .25); }
.button-primary:hover { background: linear-gradient(100deg, #ad98ff, #83e6ef); }
.button-ghost { border-color: rgba(255,255,255,.28); color: var(--white); }
.button-ghost:hover { border-color: var(--white); background: rgba(255,255,255,.08); }

.credential-card {
  position: relative;
  align-self: center;
  padding: 28px;
  border: 1px solid rgba(194,203,255,.3);
  border-radius: 26px;
  background: linear-gradient(145deg, rgba(126,105,237,.22), rgba(255,255,255,.05));
  box-shadow: 0 28px 80px rgba(0,0,0,.34);
  backdrop-filter: blur(18px);
  overflow: hidden;
}
.credential-card::before { content: ""; position: absolute; width: 210px; height: 210px; right: -100px; top: -115px; border-radius: 50%; background: rgba(66,213,231,.3); filter: blur(40px); }
.credential-top { display: flex; justify-content: space-between; align-items: center; color: rgba(255,255,255,.54); font-size: .65rem; letter-spacing: .16em; }
.pulse-dot { width: 7px; height: 7px; border-radius: 50%; background: var(--cyan); box-shadow: 0 0 18px var(--cyan); }
.credential-seal {
  width: 86px;
  height: 86px;
  margin: 42px 0 56px;
  display: grid;
  place-items: center;
  border: 1px solid rgba(200,196,255,.65);
  border-radius: 50%;
  font-family: var(--serif);
  color: var(--rose-pale);
  font-size: 2.1rem;
  box-shadow: inset 0 0 0 8px rgba(130,105,237,.08), 0 0 38px rgba(66,213,231,.12);
}
.credential-title { margin-bottom: 4px; font-family: var(--serif); font-size: 1.5rem; letter-spacing: .08em; }
.credential-sub { color: rgba(255,255,255,.45); font-size: .68rem; letter-spacing: .14em; text-transform: uppercase; }
.credential-rule { height: 1px; margin: 24px 0 20px; background: linear-gradient(90deg, rgba(182,171,255,.8), transparent); }
.credential-meta { display: grid; grid-template-columns: repeat(3, 1fr); margin: 0; gap: 12px; }
.credential-meta div { display: grid; gap: 2px; }
.credential-meta dt { color: rgba(255,255,255,.42); font-size: .57rem; letter-spacing: .1em; }
.credential-meta dd { margin: 0; font-size: .93rem; font-weight: 700; }
.hero-foot {
  position: absolute;
  inset: auto 0 24px;
  display: grid;
  grid-template-columns: repeat(3, auto) 1fr;
  gap: 34px;
  color: rgba(255,255,255,.43);
  font-size: .65rem;
  letter-spacing: .13em;
}
.hero-foot span:last-child { justify-self: end; }

.section-heading h2, .course-head h2, .closing h2 {
  margin-bottom: 0;
  font-family: var(--sans);
  font-size: clamp(2.7rem, 4.4vw, 4.75rem);
  font-weight: 800;
  line-height: 1.16;
  letter-spacing: -.04em;
}
.split-heading { display: grid; grid-template-columns: 1.25fr .75fr; gap: 100px; align-items: end; margin-bottom: 66px; }
.split-heading > p { max-width: 470px; margin-bottom: 6px; color: #5d6065; line-height: 1.9; }
.benefit-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 16px; background: transparent; border: 0; }
.benefit-card {
  position: relative;
  min-height: 330px;
  padding: 28px;
  border: 1px solid rgba(92, 88, 145, .12);
  border-radius: 22px;
  background: var(--white);
  box-shadow: 0 14px 45px rgba(39, 42, 86, .055);
  overflow: hidden;
  transition: background .25s ease, transform .25s ease;
}
.benefit-card:hover { background: #fff; z-index: 2; transform: translateY(-5px); box-shadow: 0 22px 54px rgba(65, 54, 133, .11); }
.benefit-no { display: block; margin-bottom: 58px; color: var(--rose-deep); font-size: .7rem; font-weight: 800; letter-spacing: .16em; }
.benefit-card h3 { margin-bottom: 18px; font-family: var(--sans); font-size: 1.45rem; font-weight: 750; line-height: 1.4; }
.benefit-card p { margin-bottom: 0; color: #686a6e; font-size: .91rem; line-height: 1.8; }
.card-line { position: absolute; left: 28px; bottom: 28px; width: 34px; height: 1px; background: var(--rose); transition: width .25s ease; }
.benefit-card:hover .card-line { width: calc(100% - 56px); }
.benefit-card.wide { grid-column: span 2; display: grid; grid-template-columns: 1fr 1fr; gap: 30px; background: linear-gradient(135deg, #f0edff, #e7faff); }
.benefit-card.wide .benefit-no { grid-column: 1 / -1; margin-bottom: 20px; }
.skill-tags { display: flex; flex-wrap: wrap; align-content: end; gap: 8px; }
.skill-tags span { border: 1px solid rgba(11,13,16,.18); padding: 8px 12px; border-radius: 999px; font-size: .78rem; }
.benefit-card.accent { background: linear-gradient(145deg, #e5dfff, #dff8fb); }
.benefit-card.accent p { color: #514d72; }
.benefit-card.dark-card { background: linear-gradient(145deg, #20264d, #12152d); color: var(--white); }
.benefit-card.dark-card:hover { background: linear-gradient(145deg, #292f5a, #171a36); }
.benefit-card.dark-card p { color: rgba(255,255,255,.55); }
.value-label { width: max-content; margin: -6px 0 22px auto; padding: 5px 9px; border: 1px solid rgba(88,215,231,.45); color: var(--cyan); font-size: .63rem; letter-spacing: .12em; }
.price-value { position: absolute; left: 28px; bottom: 26px; color: var(--rose-pale); font-size: .9rem; }

.process { background: #f0f2f8; border-top: 1px solid var(--line); }
.process-heading { display: grid; grid-template-columns: 1fr 330px; align-items: end; gap: 80px; margin-bottom: 72px; }
.fee-card { border-radius: 22px; background: linear-gradient(135deg, #4f3ca9, #7866e4 58%, #39bed0); padding: 24px 28px; color: var(--white); box-shadow: 0 18px 44px rgba(78, 62, 170, .22); }
.fee-card > span { display: block; color: rgba(255,255,255,.7); font-size: .72rem; letter-spacing: .12em; }
.fee-card strong { display: block; margin: 8px 0 3px; font-family: var(--serif); font-size: 2.7rem; line-height: 1; }
.fee-card strong small { margin-right: 6px; font-family: var(--sans); font-size: .72rem; }
.fee-card p { margin: 0; color: rgba(255,255,255,.68); font-size: .78rem; }
.timeline { list-style: none; display: grid; gap: 14px; margin: 0; padding: 0; border-top: 0; }
.timeline-item { display: grid; grid-template-columns: 130px 1fr auto; align-items: center; gap: 34px; min-height: 148px; padding: 0 26px; border: 1px solid rgba(92,88,145,.11); border-radius: 20px; background: rgba(255,255,255,.83); box-shadow: 0 10px 34px rgba(40,45,90,.045); }
.step-no { color: var(--rose-deep); font-family: var(--serif); font-size: 2rem; }
.step-copy { padding: 26px 0; }
.step-kicker { margin: 0 0 4px; color: #8b8e91; font-size: .62rem; letter-spacing: .16em; }
.step-copy h3 { margin-bottom: 8px; font-family: var(--sans); font-size: 1.48rem; font-weight: 750; }
.step-copy > p:last-child { margin: 0; color: #62656a; font-size: .91rem; }
.step-status { min-width: 100px; border: 1px solid rgba(93,73,189,.23); border-radius: 999px; padding: 7px 12px; text-align: center; color: var(--rose-deep); background: #f2efff; font-size: .72rem; letter-spacing: .06em; }
.step-status.active { border-color: transparent; background: linear-gradient(100deg, #7e66e9, #47cadb); color: var(--white); }

.course { position: relative; overflow: hidden; background: radial-gradient(circle at 82% 8%, rgba(77,83,184,.35), transparent 34%), linear-gradient(145deg, #111428, #181c3a 70%, #101326); color: var(--white); }
.course-orb { position: absolute; width: 700px; height: 700px; right: -350px; top: -360px; border-radius: 50%; background: rgba(88,215,231,.12); filter: blur(70px); }
.course-head { position: relative; display: grid; grid-template-columns: 1fr auto; align-items: end; gap: 60px; margin-bottom: 70px; }
.course-head h2 { max-width: 820px; }
.course-total { display: flex; align-items: end; gap: 14px; }
.course-total strong { color: var(--rose-pale); font-family: var(--serif); font-size: 5.8rem; font-weight: 500; line-height: .85; }
.course-total span { color: rgba(255,255,255,.4); font-size: .64rem; line-height: 1.45; letter-spacing: .12em; }
.course-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; border: 0; }
.module-card { min-height: 310px; padding: 28px; border: 1px solid rgba(196,202,255,.16); border-radius: 22px; background: rgba(255,255,255,.035); transition: background .25s ease, transform .25s ease; }
.module-card:nth-child(3n) { border-right: 1px solid rgba(196,202,255,.16); }
.module-card:nth-child(n+4) { border-bottom: 1px solid rgba(196,202,255,.16); }
.module-card:hover { background: rgba(255,255,255,.065); }
.module-top { display: flex; justify-content: space-between; color: rgba(255,255,255,.4); font-size: .63rem; letter-spacing: .14em; }
.module-top strong { color: var(--rose); }
.module-card h3 { margin: 70px 0 20px; font-family: var(--sans); font-size: 1.7rem; font-weight: 750; line-height: 1.38; }
.module-card p { margin: 0; color: rgba(255,255,255,.48); font-size: .86rem; }
.module-card.exam-card { background: linear-gradient(145deg, rgba(130,105,237,.3), rgba(66,213,231,.1)); }
.module-card.exam-card .module-top strong { color: var(--cyan); }
.standards { display: grid; grid-template-columns: repeat(3, 1fr); margin-top: 48px; padding: 0 28px; border: 1px solid rgba(196,202,255,.14); border-radius: 22px; background: rgba(255,255,255,.025); }
.standards > div { display: grid; grid-template-columns: auto 1fr; align-items: center; gap: 22px; padding: 34px 24px 8px 0; }
.standards > div + div { border-left: 1px solid rgba(255,255,255,.16); padding-left: 34px; }
.standard-no { min-width: 92px; color: var(--rose-pale); font-family: var(--serif); font-size: 3rem; line-height: 1; }
.standard-no small { margin-left: 3px; font-family: var(--sans); font-size: .7rem; }
.standards p { margin: 0; color: rgba(255,255,255,.45); font-size: .8rem; line-height: 1.8; }
.standards p strong { color: var(--white); font-size: .92rem; }

.closing { position: relative; text-align: center; background: linear-gradient(145deg, #eeeaff, #e1f8fb); overflow: hidden; }
.closing::before { content: "CERTIFIED"; position: absolute; left: 50%; top: 46%; transform: translate(-50%, -50%); color: rgba(255,255,255,.31); font-family: var(--serif); font-size: clamp(7rem, 18vw, 17rem); line-height: 1; pointer-events: none; }
.closing-inner { position: relative; z-index: 1; max-width: 950px; }
.closing .eyebrow { justify-content: center; }
.closing h2 { margin-bottom: 26px; }
.closing-inner > p:not(.eyebrow) { color: #555a77; }
.closing-actions { display: flex; justify-content: center; align-items: center; gap: 26px; margin-top: 38px; }
.button-dark { background: linear-gradient(100deg, #292451, #5140a4); color: var(--white); box-shadow: 0 14px 34px rgba(53,44,112,.2); }
.button-dark:hover { background: linear-gradient(100deg, #332d63, #604ec0); }
.text-link { font-size: .88rem; font-weight: 700; border-bottom: 1px solid rgba(11,13,16,.3); padding-bottom: 4px; }

.site-footer { background: var(--ink); color: var(--white); }
.footer-inner { min-height: 150px; display: grid; grid-template-columns: 1fr 1.45fr auto; align-items: center; gap: 60px; }
.footer-brand { display: flex; align-items: center; gap: 14px; }
.footer-logo { width: 42px; }
.footer-brand div { display: grid; }
.footer-brand strong { font-size: .84rem; }
.footer-brand small { color: rgba(255,255,255,.4); font-size: .65rem; letter-spacing: .1em; }
.footer-inner > p { margin: 0; color: rgba(255,255,255,.38); font-size: .74rem; line-height: 1.7; }
.footer-inner > a { color: rgba(255,255,255,.68); font-size: .77rem; white-space: nowrap; }

.reveal { opacity: 0; transform: translateY(24px); transition: opacity .7s ease, transform .7s cubic-bezier(.2,.8,.2,1); }
.reveal.is-visible { opacity: 1; transform: none; }

@media (max-width: 980px) {
  :root { --shell: min(100% - 36px, 760px); }
  .desktop-nav { display: none; }
  .hero { min-height: 900px; height: auto; }
  .hero-media { left: 10%; }
  .hero-shade { background: linear-gradient(90deg, rgba(6,8,10,.96) 0%, rgba(6,8,10,.74) 70%, rgba(6,8,10,.5) 100%), linear-gradient(0deg, rgba(6,8,10,.95) 0%, transparent 55%); }
  .hero-inner { min-height: 900px; grid-template-columns: 1fr; align-content: center; gap: 32px; padding-top: 128px; padding-bottom: 100px; }
  .hero-copy { max-width: 620px; }
  .credential-card { width: min(100%, 420px); justify-self: end; padding: 22px; }
  .credential-seal { margin: 24px 0 34px; width: 64px; height: 64px; font-size: 1.6rem; }
  .hero-foot { display: none; }
  .split-heading, .process-heading { grid-template-columns: 1fr; gap: 34px; }
  .benefit-grid { grid-template-columns: repeat(2, 1fr); }
  .course-grid { grid-template-columns: repeat(2, 1fr); }
  .module-card:nth-child(3n) { border-right: 1px solid rgba(255,255,255,.14); }
  .module-card:nth-child(2n) { border-right: 0; }
  .module-card:nth-child(n+4) { border-bottom: 1px solid rgba(255,255,255,.14); }
  .module-card:nth-child(n+5) { border-bottom: 0; }
  .course-head { grid-template-columns: 1fr; }
  .course-total { justify-self: end; }
  .standards { grid-template-columns: 1fr; }
  .standards > div + div { border-left: 0; border-top: 1px solid rgba(255,255,255,.16); padding-left: 0; }
  .footer-inner { grid-template-columns: 1fr auto; padding: 36px 0; }
  .footer-inner > p { grid-column: 1 / -1; grid-row: 2; }
}

@media (max-width: 640px) {
  :root { --shell: calc(100vw - 32px); }
  .section { padding: 84px 0; }
  .header-inner { width: calc(100vw - 32px); height: 68px; gap: 12px; }
  .brand-copy strong { font-size: .78rem; }
  .brand-copy small { display: none; }
  .brand-logo { width: 42px; }
  .header-cta { padding-left: 14px; font-size: .76rem; }
  .header-cta span { display: none; }
  .hero { min-height: 860px; }
  .hero-media { left: 0; opacity: .63; }
  .hero-media img { object-position: 67% center; }
  .hero-shade { background: linear-gradient(90deg, rgba(6,8,10,.94), rgba(6,8,10,.53)), linear-gradient(0deg, rgba(6,8,10,.98) 0%, rgba(6,8,10,.38) 66%); }
  .hero-inner { min-height: 860px; padding-top: 110px; padding-bottom: 58px; align-content: start; }
  .hero h1 { font-size: clamp(3.35rem, 16vw, 4.7rem); }
  .hero-lead { font-size: .96rem; line-height: 1.8; }
  .hero-actions { display: grid; }
  .button { width: 100%; }
  .credential-card { margin-top: 8px; }
  .credential-seal { margin-bottom: 22px; }
  .section-heading h2, .course-head h2, .closing h2 { font-size: clamp(2.45rem, 12vw, 3.35rem); }
  .split-heading { margin-bottom: 46px; }
  .benefit-grid { grid-template-columns: 1fr; }
  .benefit-card, .benefit-card.wide { min-height: 290px; grid-column: auto; }
  .benefit-card.wide { display: block; }
  .benefit-card.wide .skill-tags { margin-top: 26px; }
  .benefit-no { margin-bottom: 44px; }
  .timeline-item { grid-template-columns: 62px 1fr; gap: 12px; min-height: 0; padding: 24px 0; }
  .step-copy { padding: 0; }
  .step-status { grid-column: 2; justify-self: start; }
  .course-grid { grid-template-columns: 1fr; }
  .module-card, .module-card:nth-child(2n), .module-card:nth-child(3n), .module-card:nth-child(n+5) { min-height: 280px; border-right: 1px solid rgba(196,202,255,.16); border-bottom: 1px solid rgba(196,202,255,.16); }
  .module-card:last-child { border-bottom: 0; }
  .module-card h3 { margin-top: 56px; }
  .course-total { justify-self: start; }
  .course-total strong { font-size: 4.7rem; }
  .standards > div { grid-template-columns: 78px 1fr; padding: 26px 0; }
  .standard-no { min-width: 0; font-size: 2.4rem; }
  .closing-actions { flex-direction: column; }
  .footer-inner { grid-template-columns: 1fr; gap: 24px; }
  .footer-inner > p { grid-column: auto; grid-row: auto; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { scroll-behavior: auto !important; transition-duration: .01ms !important; animation-duration: .01ms !important; animation-iteration-count: 1 !important; }
  .reveal { opacity: 1; transform: none; }
}
