:root {
  --navy-950: #020b1d;
  --navy-900: #03152f;
  --navy-850: #061d3e;
  --navy-800: #082650;
  --blue-700: #0d41a9;
  --blue-600: #1265d8;
  --blue-500: #2a8cff;
  --cyan: #4bc4ff;
  --yellow: #ffd233;
  --yellow-2: #ffb914;
  --white: #ffffff;
  --muted: #a9b9d5;
  --line: rgba(93, 162, 255, .28);
  --panel: rgba(5, 27, 61, .78);
  --shadow-blue: 0 0 42px rgba(23, 108, 255, .26);
  --shadow-yellow: 0 0 30px rgba(255, 201, 36, .20);
  --container: 1440px;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  color: var(--white);
  background: var(--navy-950);
  font-family: Inter, "Noto Sans TC", "Microsoft JhengHei", "PingFang TC", Arial, sans-serif;
  line-height: 1.55;
  -webkit-font-smoothing: antialiased;
}
body.menu-open { overflow: hidden; }
a { color: inherit; text-decoration: none; }
img { display: block; max-width: 100%; }
button, input { font: inherit; }
.container { width: min(calc(100% - 40px), var(--container)); margin: 0 auto; }
.sr-only { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0,0,0,0); white-space: nowrap; border: 0; }
.skip-link { position: fixed; left: 20px; top: -80px; z-index: 9999; padding: 10px 16px; background: var(--yellow); color: #07122a; border-radius: 8px; font-weight: 800; }
.skip-link:focus { top: 16px; }

.site-header {
  position: fixed;
  inset: 0 0 auto 0;
  z-index: 1000;
  background: linear-gradient(180deg, rgba(2, 11, 29, .96), rgba(2, 11, 29, .76), transparent);
  transition: background .25s ease, box-shadow .25s ease;
}
.site-header.scrolled,
.site-header.compact { background: rgba(2, 11, 29, .96); box-shadow: 0 12px 35px rgba(0,0,0,.28); backdrop-filter: blur(16px); }
.header-inner { min-height: 82px; display: flex; align-items: center; gap: 28px; }
.brand-logo { flex: 0 0 auto; }
.brand-logo img { width: 220px; height: auto; }
.main-nav { display: flex; align-items: center; justify-content: center; gap: 30px; flex: 1; }
.main-nav a { color: #edf4ff; font-size: 15px; font-weight: 700; white-space: nowrap; position: relative; }
.main-nav a::after { content: ""; position: absolute; left: 0; right: 100%; bottom: -8px; height: 2px; background: var(--yellow); transition: right .2s ease; }
.main-nav a:hover::after, .main-nav a:focus-visible::after { right: 0; }
.header-actions { display: flex; align-items: center; gap: 10px; flex: 0 0 auto; }
.btn { min-height: 46px; padding: 0 24px; border-radius: 11px; display: inline-flex; align-items: center; justify-content: center; gap: 9px; font-weight: 800; border: 1px solid transparent; transition: transform .2s ease, box-shadow .2s ease, background .2s ease; }
.btn:hover { transform: translateY(-2px); }
.btn-small { min-height: 40px; padding: 0 17px; font-size: 14px; }
.btn-yellow { color: #06122c; background: linear-gradient(135deg, #ffe56a, var(--yellow-2)); box-shadow: var(--shadow-yellow); }
.btn-blue { color: #fff; background: linear-gradient(135deg, #143f9f, #1f6ddc); border-color: rgba(128, 183, 255, .62); box-shadow: var(--shadow-blue); }
.btn-outline { color: #fff; border-color: rgba(187, 215, 255, .65); background: rgba(4, 20, 47, .30); }
.language-switcher { display: flex; align-items: center; gap: 2px; margin-left: 4px; }
.language-button { border: 0; background: transparent; color: #9db0cf; padding: 6px 7px; cursor: pointer; font-weight: 700; }
.language-button + .language-button { border-left: 1px solid rgba(255,255,255,.22); }
.language-button.active, .language-button:hover { color: #fff; }
.mobile-menu-toggle { display: none; width: 42px; height: 42px; border: 1px solid var(--line); background: rgba(8, 38, 80, .7); border-radius: 10px; padding: 10px; cursor: pointer; }
.mobile-menu-toggle span:not(.sr-only) { display: block; height: 2px; background: #fff; margin: 5px 0; }

.hero { position: relative; min-height: 720px; overflow: hidden; padding: 138px 0 86px; background:
  radial-gradient(circle at 77% 46%, rgba(18, 101, 216, .34), transparent 27%),
  radial-gradient(circle at 28% 8%, rgba(18, 101, 216, .14), transparent 24%),
  linear-gradient(120deg, #020a1b 0%, #041936 47%, #061f48 100%); }
.hero::before { content: ""; position: absolute; inset: 0; background-image: linear-gradient(rgba(62, 128, 220, .08) 1px, transparent 1px), linear-gradient(90deg, rgba(62, 128, 220, .08) 1px, transparent 1px); background-size: 56px 56px; mask-image: linear-gradient(to top, #000, transparent 78%); transform: perspective(500px) rotateX(62deg) translateY(42%); transform-origin: bottom; }
.hero-grid-overlay { position: absolute; inset: 0; opacity: .35; background: radial-gradient(circle at 84% 45%, transparent 0 26%, rgba(36, 128, 255, .10) 27% 27.4%, transparent 28% 33%, rgba(36,128,255,.08) 34% 34.4%, transparent 35%); }
.hero-glow { position: absolute; border-radius: 50%; filter: blur(80px); opacity: .34; pointer-events: none; }
.hero-glow-a { width: 360px; height: 360px; right: 12%; top: 170px; background: #1068ff; }
.hero-glow-b { width: 180px; height: 180px; right: 30%; top: 250px; background: #ffd12a; opacity: .12; }
.hero-inner { position: relative; z-index: 2; display: grid; grid-template-columns: .9fr 1.1fr; align-items: center; gap: 56px; }
.hero-copy { max-width: 650px; }
.eyebrow, .section-kicker { display: inline-flex; letter-spacing: .16em; font-size: 12px; font-weight: 900; color: var(--yellow); text-transform: uppercase; }
.hero h1 { margin: 18px 0 22px; font-size: clamp(48px, 5.4vw, 82px); line-height: 1.08; letter-spacing: -.04em; }
.hero h1 span { display: block; color: var(--yellow); text-shadow: 0 0 26px rgba(255, 209, 42, .20); }
.hero-description { margin: 0; max-width: 650px; font-size: clamp(17px, 1.5vw, 22px); color: #edf4ff; }
.hero-supporting { margin: 15px 0 0; color: #95aace; font-size: 14px; font-style: italic; }
.hero-buttons { display: flex; flex-wrap: wrap; gap: 14px; margin-top: 35px; }
.hero-visual { position: relative; min-height: 500px; display: grid; place-items: center; }
.hero-mark { width: min(58vw, 530px); position: relative; z-index: 4; filter: drop-shadow(0 0 22px rgba(24, 114, 255, .65)) drop-shadow(0 0 40px rgba(255, 203, 31, .12)); animation: floatMark 5s ease-in-out infinite; }
.emblem-halo { position: absolute; width: 440px; height: 440px; border-radius: 50%; background: radial-gradient(circle, rgba(255,214,51,.2), rgba(24,104,255,.19) 38%, transparent 70%); filter: blur(18px); }
.orbit { position: absolute; border: 1px solid rgba(65, 151, 255, .24); border-radius: 50%; }
.orbit-one { width: 540px; height: 320px; transform: rotate(-12deg); }
.orbit-two { width: 580px; height: 360px; transform: rotate(24deg); }
.gem { position: absolute; width: 34px; aspect-ratio: 1; transform: rotate(45deg); border: 1px solid rgba(109, 181, 255, .85); background: linear-gradient(135deg, #258cff, #06388a 70%); box-shadow: 0 0 20px rgba(24, 127, 255, .55); }
.gem-1 { top: 54px; left: 50%; }
.gem-2 { top: 140px; right: 14%; }
.gem-3 { bottom: 110px; right: 17%; }
.gem-4 { bottom: 44px; left: 49%; }
.gem-5 { bottom: 125px; left: 15%; }
.gem-6 { top: 135px; left: 12%; }
@keyframes floatMark { 0%,100% { transform: translateY(0); } 50% { transform: translateY(-10px); } }

.core-section { position: relative; padding: 82px 0 92px; background: linear-gradient(180deg, #041a3a 0%, #03142f 100%); border-top: 1px solid rgba(80,145,255,.22); }
.section-heading { max-width: 730px; }
.section-heading.centered { text-align: center; margin: 0 auto 42px; }
.section-heading h2 { margin: 8px 0 12px; font-size: clamp(32px, 4vw, 54px); line-height: 1.15; }
.section-heading p { margin: 0; color: var(--muted); }
.role-grid { display: grid; grid-template-columns: repeat(6, minmax(0, 1fr)); gap: 14px; }
.role-card { position: relative; min-height: 380px; padding: 52px 18px 20px; display: flex; flex-direction: column; align-items: center; text-align: center; background: linear-gradient(180deg, rgba(10,48,101,.86), rgba(4,22,52,.9)); border: 1px solid rgba(76, 156, 255, .48); border-radius: 10px; box-shadow: inset 0 0 36px rgba(7,72,163,.18), 0 12px 28px rgba(0,0,0,.18); transition: transform .25s ease, border-color .25s ease, box-shadow .25s ease; }
.role-card::before { content: ""; position: absolute; inset: 0; border-radius: inherit; background: linear-gradient(135deg, rgba(43,147,255,.12), transparent 45%, rgba(255,209,42,.06)); pointer-events: none; }
.role-card:hover { transform: translateY(-7px); border-color: var(--yellow); box-shadow: 0 16px 40px rgba(0,0,0,.28), 0 0 26px rgba(28,113,255,.24); }
.role-number { position: absolute; top: 16px; left: 50%; transform: translateX(-50%); min-width: 42px; padding: 4px 9px; border-radius: 6px; color: #071431; background: var(--yellow); font-weight: 900; font-size: 13px; }
.role-icon { width: 76px; height: 76px; display: grid; place-items: center; margin: 8px 0 16px; color: var(--yellow); filter: drop-shadow(0 0 15px rgba(255,202,32,.25)); }
.role-icon svg { width: 64px; height: 64px; fill: none; stroke: currentColor; stroke-width: 3; stroke-linecap: round; stroke-linejoin: round; }
.role-card h3 { margin: 0 0 5px; font-size: 21px; line-height: 1.25; color: #fff; }
.role-english { min-height: 36px; color: #b7c9e8; font-size: 12px; font-weight: 800; text-transform: uppercase; letter-spacing: .04em; }
.role-card p { color: #aebfda; font-size: 14px; flex: 1; }
.role-button { width: 100%; min-height: 40px; padding: 8px 12px; display: inline-flex; align-items: center; justify-content: center; gap: 8px; border: 1px solid rgba(176,205,255,.55); border-radius: 8px; font-weight: 800; transition: background .2s ease, color .2s ease; }
.role-button:hover { color: #06132d; background: var(--yellow); border-color: var(--yellow); }

.scout-section { padding: 80px 0; color: #08225a; background: linear-gradient(180deg, #fff 0%, #eef5ff 100%); overflow: hidden; }
.scout-grid { display: grid; grid-template-columns: .95fr 1.05fr; gap: 60px; align-items: center; }
.scout-section .section-heading p { color: #496080; }
.journey-line { position: relative; display: flex; align-items: center; gap: 28px; margin-top: 35px; padding: 28px 0; }
.journey-line::before { content: ""; position: absolute; left: -12%; right: -20%; bottom: 0; height: 110px; background: linear-gradient(180deg, transparent, rgba(65,139,235,.10)); clip-path: polygon(0 80%, 12% 35%, 22% 70%, 35% 20%, 50% 78%, 65% 38%, 78% 68%, 90% 18%, 100% 74%, 100% 100%, 0 100%); }
.journey-badge { position: relative; z-index: 2; width: 150px; height: 150px; border-radius: 50%; display: grid; place-items: center; text-align: center; color: #fff; background: radial-gradient(circle at 35% 25%, #1e74ee, #06266b 62%, #03143c); border: 4px solid #fff; outline: 4px solid var(--yellow); box-shadow: 0 12px 34px rgba(18,75,165,.25), 0 0 0 9px rgba(255,210,51,.10); }
.journey-badge.mayor { background: radial-gradient(circle at 35% 25%, #194cae, #06194f 68%); }
.journey-symbol { font-size: 38px; color: var(--yellow); line-height: 1; }
.journey-badge strong { font-size: 15px; letter-spacing: .05em; }
.journey-arrows { position: relative; z-index: 2; color: #1d67cd; font-size: 48px; font-weight: 900; letter-spacing: -10px; }
.scout-rules { display: grid; gap: 18px; }
.rule-card { display: grid; grid-template-columns: 44px 1fr; gap: 18px; padding: 22px 0; border-bottom: 1px solid #cad8eb; }
.rule-card:last-child { border-bottom: 0; }
.rule-icon { width: 38px; height: 38px; display: grid; place-items: center; border-radius: 10px; color: #fff; background: var(--yellow-2); font-size: 21px; }
.rule-icon.blue { background: var(--blue-600); }
.rule-card h3 { margin: 0 0 8px; font-size: 23px; }
.rule-card p { margin: 0; color: #344d70; font-size: 16px; }

.engine-section { padding: 76px 0; background: radial-gradient(circle at 50% 45%, rgba(20,94,216,.25), transparent 25%), linear-gradient(135deg, #041633, #03102a 70%); }
.engine-grid { display: grid; grid-template-columns: .8fr 1.2fr .72fr; align-items: center; gap: 40px; }
.engine-intro h2 { margin: 10px 0 16px; font-size: clamp(34px, 4vw, 58px); line-height: 1.08; }
.engine-intro p { color: var(--muted); max-width: 420px; }
.engine-intro .btn { margin-top: 18px; }
.engine-wheel { position: relative; min-height: 420px; display: grid; place-items: center; }
.engine-wheel::before, .engine-wheel::after { content: ""; position: absolute; width: 78%; height: 78%; border-radius: 50%; border: 1px solid rgba(55,145,255,.28); }
.engine-wheel::after { width: 62%; height: 62%; border-color: rgba(255,209,51,.2); }
.engine-ring { position: absolute; width: 310px; height: 310px; border-radius: 50%; border: 2px solid #3d9cff; box-shadow: 0 0 24px rgba(47,146,255,.65), inset 0 0 24px rgba(47,146,255,.25); }
.engine-wheel img { width: 190px; z-index: 3; filter: drop-shadow(0 0 18px rgba(30,120,255,.65)); }
.engine-label { position: absolute; width: 52px; height: 52px; display: grid; place-items: center; border-radius: 12px; color: var(--yellow); background: #062457; border: 1px solid #3f98ff; font-weight: 900; transform: rotate(45deg); }
.engine-label::first-line { transform: rotate(-45deg); }
.engine-label-1 { top: 20px; left: 50%; }
.engine-label-2 { top: 95px; right: 10%; }
.engine-label-3 { bottom: 88px; right: 10%; }
.engine-label-4 { bottom: 12px; left: 50%; }
.engine-label-5 { bottom: 88px; left: 10%; }
.engine-label-6 { top: 95px; left: 10%; }
.growth-panel { text-align: center; }
.growth-arrow { font-size: 105px; line-height: .8; color: #4c9eff; text-shadow: 0 0 25px rgba(64,155,255,.45); }
.growth-panel h3 { margin: 14px 0; color: #fff; font-size: 28px; }
.growth-panel ul { list-style: none; margin: 0; padding: 0; color: #b9cae6; font-size: 18px; }

.process-section { padding: 26px 0 46px; background: #03132e; }
.process-strip { display: grid; grid-template-columns: 1.3fr repeat(11, auto); align-items: center; gap: 18px; padding: 26px 30px; border: 1px solid rgba(74,149,255,.35); border-radius: 18px; background: rgba(6,30,66,.72); }
.process-title { font-size: 21px; font-weight: 900; color: var(--yellow); }
.process-step { display: grid; justify-items: center; gap: 5px; white-space: nowrap; }
.process-step b { width: 36px; height: 36px; display: grid; place-items: center; border-radius: 50%; color: #07142d; background: var(--yellow); }
.process-step span { color: #dbe8fa; font-size: 13px; }
.process-arrow { color: #7193c4; font-size: 24px; }

.site-footer { padding: 60px 0 24px; background: linear-gradient(180deg, #03132e, #020b1c); border-top: 1px solid rgba(80,150,255,.22); }
.footer-grid { display: grid; grid-template-columns: 1.15fr .8fr 1.25fr 1.05fr 1fr; gap: 42px; }
.footer-brand img { width: 190px; margin-bottom: 22px; }
.footer-brand p { color: var(--muted); }
.site-footer h3 { margin: 0 0 14px; color: #fff; font-size: 17px; }
.site-footer a { display: block; margin: 8px 0; color: #a9bddb; font-size: 14px; }
.site-footer a:hover { color: var(--yellow); }
.footer-login { padding: 9px 13px; border-radius: 8px; text-align: center; font-weight: 900; color: #fff !important; }
.footer-login.brand { color: #07142e !important; background: var(--yellow); }
.footer-login.branch { background: #145dcc; }
.footer-bottom { margin-top: 40px; padding-top: 20px; border-top: 1px solid rgba(119,161,220,.2); display: flex; justify-content: space-between; color: #8094b4; font-size: 13px; }
.footer-bottom a { width: 36px; height: 36px; display: grid; place-items: center; margin: 0; border: 1px solid var(--line); border-radius: 50%; }

.registration-page { min-height: 100vh; background: radial-gradient(circle at 50% 30%, rgba(20,96,220,.27), transparent 25%), #020b1d; }
.registration-main { min-height: 100vh; padding: 145px 20px 70px; display: grid; place-items: center; position: relative; overflow: hidden; }
.registration-glow { position: absolute; width: 600px; height: 600px; border-radius: 50%; background: radial-gradient(circle, rgba(28,116,255,.26), transparent 68%); }
.registration-card { position: relative; width: min(720px, 100%); padding: 58px; text-align: center; border: 1px solid rgba(81,158,255,.48); border-radius: 20px; background: rgba(4,25,57,.9); box-shadow: 0 20px 70px rgba(0,0,0,.32), var(--shadow-blue); }
.registration-card h1 { margin: 12px 0 4px; font-size: clamp(38px, 6vw, 64px); }
.registration-english { color: #99b1d3; font-size: 16px; text-transform: uppercase; letter-spacing: .08em; }
.status-pill { display: inline-block; margin: 30px 0 14px; padding: 7px 13px; border-radius: 999px; color: #08142a; background: var(--yellow); font-size: 12px; font-weight: 900; letter-spacing: .08em; }
.registration-card h2 { margin: 0 0 12px; }
.registration-card p { max-width: 580px; margin: 0 auto 28px; color: var(--muted); }

@media (max-width: 1240px) {
  .header-inner { gap: 16px; }
  .brand-logo img { width: 185px; }
  .main-nav { gap: 18px; }
  .main-nav a { font-size: 13px; }
  .role-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .role-card { min-height: 350px; }
  .footer-grid { grid-template-columns: 1.2fr 1fr 1fr; }
  .footer-grid > :nth-child(4), .footer-grid > :nth-child(5) { margin-top: 10px; }
  .process-strip { grid-template-columns: repeat(6, 1fr); }
  .process-title { grid-column: 1 / -1; text-align: center; }
  .process-arrow { display: none; }
}

@media (max-width: 980px) {
  .site-header { background: rgba(2,11,29,.96); }
  .header-inner { min-height: 74px; }
  .mobile-menu-toggle { display: block; margin-left: auto; }
  .main-nav { position: fixed; inset: 74px 0 auto 0; display: none; flex-direction: column; align-items: stretch; padding: 22px 24px 26px; background: rgba(2,11,29,.98); border-top: 1px solid var(--line); box-shadow: 0 20px 30px rgba(0,0,0,.3); }
  .main-nav.open { display: flex; }
  .main-nav a { padding: 10px; font-size: 16px; }
  .main-nav a::after { display: none; }
  .header-actions .btn { display: none; }
  .hero { padding-top: 116px; }
  .hero-inner { grid-template-columns: 1fr; text-align: center; }
  .hero-copy { max-width: 780px; margin: 0 auto; }
  .hero-buttons { justify-content: center; }
  .hero-visual { min-height: 410px; }
  .hero-mark { width: min(76vw, 390px); }
  .scout-grid, .engine-grid { grid-template-columns: 1fr; }
  .engine-intro, .growth-panel { text-align: center; }
  .engine-intro p { margin-left: auto; margin-right: auto; }
  .footer-grid { grid-template-columns: repeat(2, 1fr); }
}

@media (max-width: 680px) {
  .container { width: min(calc(100% - 24px), var(--container)); }
  .brand-logo img { width: 160px; }
  .language-switcher { gap: 0; }
  .language-button { font-size: 12px; padding: 5px; }
  .hero { min-height: auto; padding: 110px 0 54px; }
  .hero h1 { font-size: 44px; }
  .hero-description { font-size: 17px; }
  .hero-visual { min-height: 320px; }
  .hero-mark { width: 285px; }
  .orbit-one { width: 340px; height: 210px; }
  .orbit-two { width: 360px; height: 230px; }
  .emblem-halo { width: 300px; height: 300px; }
  .gem { width: 23px; }
  .core-section, .scout-section, .engine-section { padding: 58px 0; }
  .role-grid { grid-template-columns: 1fr; }
  .role-card { min-height: auto; padding: 48px 22px 22px; }
  .role-card p { min-height: auto; }
  .journey-line { gap: 14px; justify-content: center; }
  .journey-badge { width: 112px; height: 112px; outline-width: 3px; }
  .journey-symbol { font-size: 29px; }
  .journey-arrows { font-size: 34px; }
  .rule-card { grid-template-columns: 38px 1fr; gap: 12px; }
  .engine-wheel { min-height: 330px; }
  .engine-ring { width: 235px; height: 235px; }
  .engine-wheel img { width: 145px; }
  .engine-label { width: 42px; height: 42px; font-size: 12px; }
  .process-strip { grid-template-columns: repeat(2, 1fr); padding: 22px 16px; }
  .footer-grid { grid-template-columns: 1fr; gap: 28px; }
  .registration-card { padding: 38px 22px; }
  .registration-page .header-actions .btn { display: none; }
}

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

.hero-approved-emblem {
  border-radius: 50%;
  mix-blend-mode: screen;
  -webkit-mask-image: radial-gradient(ellipse at center, #000 58%, rgba(0,0,0,.92) 70%, transparent 100%);
  mask-image: radial-gradient(ellipse at center, #000 58%, rgba(0,0,0,.92) 70%, transparent 100%);
}

/* V40 language switch: standalone links, independent of OpenCart language-code casing. */
.language-button { text-decoration: none; display: inline-flex; align-items: center; justify-content: center; }
.language-button[aria-current="true"] { color: #fff; }
