:root {
  --accent: #8B5CF6;
  --accent-hover: #7C3AED;
  --accent-pink: #F40DE7;
  --accent-deep: #2E1065;
  --gold: #FFCC00;
  --bg: #060607;
  --bg-soft: #010117;
  --card: #11101A;
  --card-warm: #181225;
  --text: #FFFFFF;
  --muted: #B7BEC9;
  --line: rgba(255, 255, 255, 0.13);
  --accent-soft: rgba(139, 92, 246, 0.18);
  --accent-shadow: 0 16px 34px rgba(139, 92, 246, 0.34);
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  min-height: 100svh;
  margin: 0;
  background: #000000;
  color: var(--text);
  font-family:
    -apple-system, BlinkMacSystemFont, "Segoe UI", "Noto Sans TC",
    "PingFang TC", "Microsoft JhengHei", sans-serif;
  letter-spacing: 0;
}

button,
a {
  -webkit-tap-highlight-color: transparent;
}

.app-shell {
  position: relative;
  width: 100%;
  max-width: 430px;
  min-height: 100svh;
  margin: 0 auto;
  overflow-x: hidden;
  background:
    radial-gradient(circle at 50% 0%, rgba(139, 92, 246, 0.26) 0%, rgba(6, 6, 7, 0) 34%),
    linear-gradient(180deg, #000000 0%, var(--bg) 44%, var(--bg-soft) 100%);
  border-left: 1px solid rgba(255, 255, 255, 0.08);
  border-right: 1px solid rgba(255, 255, 255, 0.08);
}

.app-shell::before {
  display: none;
}

.topbar {
  position: sticky;
  top: 0;
  z-index: 10;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 14px 16px;
  background: rgba(6, 7, 11, 0.92);
  border-bottom: 1px solid var(--line);
  backdrop-filter: blur(18px);
}

.brand {
  display: flex;
  align-items: center;
  gap: 8px;
  color: var(--text);
  font-size: 14px;
  font-weight: 800;
}

.brand-mark {
  width: 12px;
  height: 12px;
  border-radius: 999px;
  background: var(--accent);
  box-shadow: 0 8px 18px rgba(139, 92, 246, 0.36);
}

.menu-toggle {
  display: inline-flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 5px;
  width: 42px;
  height: 42px;
  border: 1px solid rgba(255, 255, 255, 0.14);
  border-radius: 999px;
  background: #12101A;
  color: var(--text);
  box-shadow: 0 10px 24px rgba(0, 0, 0, 0.2);
  cursor: pointer;
  transition:
    background 180ms ease,
    transform 180ms ease,
    border-color 180ms ease;
}

.menu-toggle span {
  width: 18px;
  height: 2px;
  border-radius: 999px;
  background: currentColor;
  transition:
    transform 180ms ease,
    opacity 180ms ease;
}

.menu-toggle:active {
  transform: scale(0.94);
}

.topbar.menu-open .menu-toggle {
  border-color: rgba(139, 92, 246, 0.46);
  background: var(--accent);
}

.topbar.menu-open .menu-toggle span:nth-child(1) {
  transform: translateY(7px) rotate(45deg);
}

.topbar.menu-open .menu-toggle span:nth-child(2) {
  opacity: 0;
}

.topbar.menu-open .menu-toggle span:nth-child(3) {
  transform: translateY(-7px) rotate(-45deg);
}

.tabs {
  position: absolute;
  top: calc(100% + 8px);
  right: 16px;
  left: 16px;
  display: grid;
  grid-template-columns: 1fr;
  gap: 8px;
  padding: 10px;
  border: 1px solid var(--line);
  border-radius: 18px;
  background: rgba(12, 10, 18, 0.98);
  box-shadow: 0 22px 48px rgba(0, 0, 0, 0.34);
  opacity: 0;
  pointer-events: none;
  transform: translateY(-8px);
  visibility: hidden;
  transition:
    opacity 180ms ease,
    transform 180ms ease,
    visibility 180ms ease;
}

.topbar.menu-open .tabs {
  opacity: 1;
  pointer-events: auto;
  transform: translateY(0);
  visibility: visible;
}

.tab-button {
  display: flex;
  align-items: center;
  min-height: 44px;
  padding: 0 16px;
  border: 0;
  border-radius: 999px;
  background: transparent;
  color: var(--muted);
  font-size: 14px;
  font-weight: 800;
  line-height: 1.1;
  text-align: left;
  text-decoration: none;
  cursor: pointer;
  transition:
    color 180ms ease,
    background 180ms ease,
    box-shadow 180ms ease,
    transform 180ms ease;
}

.tab-button.active {
  background: var(--accent);
  color: #ffffff;
  box-shadow: 0 10px 24px rgba(139, 92, 246, 0.34);
}

.tab-button:active {
  transform: scale(0.96);
}

.page-section {
  display: none;
  position: relative;
  z-index: 1;
  padding: 24px 18px 108px;
  animation: sectionIn 260ms ease both;
}

.page-section.active {
  display: block;
}

@keyframes sectionIn {
  from {
    opacity: 0;
    transform: translateY(10px);
  }

  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.hero,
.page-hero {
  padding-top: 8px;
}

.courses-hero {
  padding-top: 8px;
  margin-bottom: 18px;
}

.courses-hero h1 {
  margin-bottom: 0;
}

.course-list {
  display: grid;
  gap: 16px;
}

.section-next {
  margin-top: 22px;
}

.course-card {
  padding: 12px;
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: 18px;
  background: var(--card);
  box-shadow: 0 18px 46px rgba(0, 0, 0, 0.28);
  overflow: hidden;
}

.course-title {
  margin: 2px 4px 12px;
  color: var(--text);
  font-size: 17px;
  line-height: 1.3;
}

.course-description {
  margin: 12px 4px 2px;
  color: var(--muted);
  font-size: 14px;
  line-height: 1.6;
}

.course-description + .course-description {
  margin-top: 6px;
}

.course-includes {
  margin: 12px 4px 2px;
  padding: 14px;
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 14px;
  background: var(--card-warm);
}

.course-includes p {
  margin-bottom: 8px;
  color: var(--text);
  font-size: 14px;
  font-weight: 800;
  line-height: 1.4;
}

.course-includes ul {
  display: grid;
  gap: 6px;
  margin: 0;
  padding-left: 18px;
  color: var(--muted);
  font-size: 14px;
  line-height: 1.45;
}

.course-includes li::marker {
  color: var(--accent);
}

.course-includes strong {
  color: var(--text);
}

.course-image {
  display: block;
  width: 100%;
  aspect-ratio: 16 / 9;
  border-radius: 14px;
  object-fit: cover;
  background: var(--card-warm);
}

.eyebrow {
  margin: 0 0 12px;
  color: var(--accent);
  font-size: 12px;
  font-weight: 900;
  letter-spacing: 0;
  text-transform: uppercase;
}

h1,
h2,
h3,
p {
  margin-top: 0;
}

h1 {
  margin-bottom: 14px;
  font-size: clamp(36px, 11vw, 48px);
  line-height: 1.04;
  letter-spacing: 0;
}

h2 {
  margin-bottom: 10px;
  font-size: 25px;
  line-height: 1.16;
  letter-spacing: 0;
}

h3 {
  margin-bottom: 8px;
  font-size: 17px;
  line-height: 1.28;
  letter-spacing: 0;
}

p {
  color: var(--muted);
  font-size: 15px;
  line-height: 1.75;
}

.hero-copy {
  margin-bottom: 22px;
  font-size: 16px;
}

.home-story {
  display: grid;
  gap: 0;
  margin: -8px -4px 0;
}

.story-block {
  position: relative;
  padding: 34px 4px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
  text-align: center;
}

.story-block:first-child {
  padding-top: 12px;
}

.story-block:last-child {
  border-bottom: 0;
}

.story-block h1 {
  margin-bottom: 16px;
  color: #ffffff;
  font-size: 33px;
  line-height: 1.08;
  text-wrap: balance;
}

.story-block h1 span,
.story-block h2 strong {
  display: inline;
  color: var(--gold);
}

.story-block h2 {
  margin-bottom: 16px;
  color: var(--text);
  font-size: 26px;
  line-height: 1.18;
  text-wrap: balance;
}

.story-block p {
  margin-bottom: 16px;
  color: rgba(255, 255, 255, 0.82);
  font-size: 16px;
  line-height: 1.75;
}

.story-block p:last-child {
  margin-bottom: 0;
}

.landing-hero {
  overflow: hidden;
}

.landing-hero::before,
.landing-hero::after {
  position: absolute;
  border-radius: 999px;
  pointer-events: none;
  content: "";
}

.landing-hero::before {
  inset: -92px -80px auto auto;
  width: 210px;
  height: 210px;
  background: rgba(139, 92, 246, 0.28);
  filter: blur(42px);
}

.landing-hero::after {
  left: -90px;
  top: 190px;
  width: 180px;
  height: 180px;
  background: rgba(244, 13, 231, 0.16);
  filter: blur(42px);
}

.hero-badge,
.mini-kicker,
.sound-pill {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  max-width: 100%;
  margin: 0 auto 14px;
  padding: 8px 14px;
  border: 1px solid rgba(167, 139, 250, 0.3);
  border-radius: 999px;
  background: rgba(139, 92, 246, 0.14);
  color: #F3E8FF;
  font-size: 12px;
  font-weight: 900;
}

.hero-lead {
  color: #ffffff;
  font-size: 18px;
  font-weight: 800;
}

.story-highlight h2,
.story-mission h2,
.final-register-card h2 {
  color: #ffffff;
}

.story-media,
.story-video {
  display: block;
  width: 100%;
  height: auto;
  margin: 18px 0 0;
  border-radius: 22px;
  background: var(--card-warm);
  box-shadow:
    0 18px 44px rgba(0, 0, 0, 0.38),
    0 0 0 1px rgba(255, 255, 255, 0.08);
}

.story-video {
  aspect-ratio: 16 / 9;
  border: 2px solid rgba(139, 92, 246, 0.52);
  object-fit: cover;
  box-shadow:
    0 20px 50px rgba(0, 0, 0, 0.44),
    0 0 34px rgba(139, 92, 246, 0.28);
}

.story-media-cutout {
  background: transparent;
  box-shadow: none;
}

.story-media-framed {
  border: 5px solid var(--accent);
  box-shadow:
    0 18px 44px rgba(0, 0, 0, 0.34),
    0 0 28px rgba(139, 92, 246, 0.2);
}

.glow-card,
.event-card,
.results-card,
.final-register-card {
  border: 1px solid rgba(167, 139, 250, 0.22);
  border-radius: 24px;
  background:
    linear-gradient(180deg, rgba(30, 20, 55, 0.92) 0%, rgba(12, 9, 20, 0.92) 100%);
  box-shadow:
    0 22px 60px rgba(0, 0, 0, 0.34),
    inset 0 1px 0 rgba(255, 255, 255, 0.08);
}

.glow-card {
  padding: 24px 18px;
}

.video-block {
  padding-top: 28px;
}

.event-card {
  margin-top: 18px;
  padding: 20px;
}

.event-card p,
.final-register-card p {
  margin-bottom: 8px;
  color: var(--gold);
  font-size: 14px;
  font-weight: 900;
}

.event-card h3 {
  margin-bottom: 16px;
  font-size: 22px;
}

.event-grid {
  display: grid;
  grid-template-columns: 58px 1fr;
  gap: 8px 10px;
  margin-bottom: 18px;
  text-align: left;
}

.event-grid span {
  color: var(--muted);
  font-size: 13px;
  font-weight: 800;
}

.event-grid strong {
  color: #ffffff;
  font-size: 14px;
}

.benefit-strip,
.stats-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 10px;
  margin: 20px 0 4px;
}

.benefit-strip span,
.stats-grid div {
  min-height: 48px;
  display: flex;
  align-items: center;
  justify-content: center;
  border: 1px solid rgba(167, 139, 250, 0.22);
  border-radius: 999px;
  background: rgba(139, 92, 246, 0.12);
  color: #ffffff;
  font-size: 13px;
  font-weight: 900;
}

.stats-grid div {
  min-height: 86px;
  flex-direction: column;
  border-radius: 18px;
}

.stats-grid strong {
  color: var(--gold);
  font-size: 24px;
  line-height: 1;
}

.stats-grid span {
  margin-top: 8px;
  color: var(--muted);
  font-size: 12px;
  font-weight: 800;
}

.mid-cta {
  margin-top: 20px;
}

.final-register-card {
  margin-top: 24px;
  padding: 24px 18px;
}

.final-register-card span {
  display: block;
  margin-top: 12px;
  color: var(--muted);
  font-size: 12px;
  font-weight: 800;
}

.hero-cta-stack {
  margin-top: 20px;
}

.cta-note {
  margin: 10px 0 0;
  color: var(--muted);
  font-size: 12px;
  font-weight: 800;
}

.compact-actions {
  grid-template-columns: 1fr;
  margin-top: 14px;
}

.cta-button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 100%;
  min-height: 54px;
  padding: 0 22px;
  border: 0;
  border-radius: 999px;
  background: linear-gradient(86deg, #7F37FD 0%, #F40DE7 100%);
  color: #ffffff;
  font-size: 16px;
  font-weight: 900;
  text-decoration: none;
  box-shadow:
    0 16px 36px rgba(244, 13, 231, 0.28),
    inset 0 -2px 0 rgba(0, 0, 0, 0.12);
  cursor: pointer;
  transition:
    transform 180ms ease,
    box-shadow 180ms ease,
    background 180ms ease;
}

.cta-button:hover {
  background: linear-gradient(86deg, #8B5CF6 0%, #F43FEA 100%);
  box-shadow:
    0 18px 42px rgba(244, 13, 231, 0.34),
    inset 0 -2px 0 rgba(0, 0, 0, 0.12);
}

.cta-button:active {
  transform: translateY(1px) scale(0.98);
}

.pulse-cta {
  animation: ctaPulse 1.7s infinite;
}

@keyframes ctaPulse {
  0% {
    box-shadow:
      0 0 0 0 rgba(255, 255, 255, 0.52),
      0 16px 36px rgba(244, 13, 231, 0.28),
      inset 0 -2px 0 rgba(0, 0, 0, 0.12);
  }

  100% {
    box-shadow:
      0 0 0 18px rgba(255, 255, 255, 0),
      0 16px 36px rgba(244, 13, 231, 0.28),
      inset 0 -2px 0 rgba(0, 0, 0, 0.12);
  }
}

.home-actions {
  display: grid;
  gap: 10px;
  margin-top: 22px;
}

.secondary-button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 100%;
  min-height: 50px;
  padding: 0 18px;
  border: 1px solid rgba(255, 255, 255, 0.14);
  border-radius: 999px;
  background: var(--card);
  color: var(--text);
  font-size: 14px;
  font-weight: 850;
  text-decoration: none;
  box-shadow: 0 12px 28px rgba(0, 0, 0, 0.22);
  transition:
    transform 180ms ease,
    border-color 180ms ease,
    background 180ms ease;
}

.secondary-button:hover {
  border-color: rgba(139, 92, 246, 0.44);
  background: var(--card-warm);
}

.secondary-button:active {
  transform: translateY(1px) scale(0.98);
}

.hero-preview {
  position: relative;
  min-height: 210px;
  margin: 26px 0 0;
  border: 1px solid rgba(139, 92, 246, 0.2);
  border-radius: 24px;
  background:
    linear-gradient(135deg, #2B3037 0%, #20242A 100%);
  box-shadow: 0 18px 44px rgba(0, 0, 0, 0.3);
  overflow: hidden;
}

.hero-preview::before,
.hero-preview::after {
  position: absolute;
  content: "";
}

.hero-preview::before {
  left: 22px;
  top: 24px;
  width: 138px;
  height: 162px;
  border-radius: 20px;
  background:
    linear-gradient(180deg, rgba(139, 92, 246, 0.92) 0%, #6D5DF6 100%);
  box-shadow:
    0 18px 36px rgba(139, 92, 246, 0.22),
    inset 0 0 0 1px rgba(255, 255, 255, 0.28);
}

.hero-preview::after {
  left: 42px;
  top: 52px;
  width: 96px;
  height: 96px;
  border-radius: 18px;
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.92), rgba(255, 255, 255, 0.7));
  box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.45);
}

.preview-orbit {
  display: none;
}

.preview-panel {
  position: absolute;
  right: 20px;
  bottom: 20px;
  width: min(68%, 232px);
  padding: 16px;
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: 18px;
  background: rgba(43, 48, 55, 0.9);
  color: var(--text);
  box-shadow: 0 16px 34px rgba(0, 0, 0, 0.28);
  backdrop-filter: blur(12px);
}

.preview-panel span,
.preview-panel small {
  color: var(--muted);
  font-size: 11px;
  font-weight: 800;
}

.preview-panel strong {
  display: block;
  margin: 6px 0 14px;
  font-size: 20px;
  line-height: 1.05;
}

.metric-row {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 6px;
}

.metric-row small {
  display: flex;
  justify-content: center;
  padding: 7px 4px;
  border-radius: 999px;
  background: var(--card-warm);
  color: var(--accent);
}

.trust-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 10px;
  margin: 28px 0 34px;
}

.trust-item {
  min-height: 52px;
  display: flex;
  align-items: center;
  justify-content: center;
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: 18px;
  background: var(--card);
  color: var(--text);
  font-size: 14px;
  font-weight: 850;
  box-shadow: 0 10px 26px rgba(0, 0, 0, 0.22);
}

.section-heading {
  margin-bottom: 16px;
}

.card-stack,
.gift-grid,
.bonus-list {
  display: grid;
  gap: 12px;
}

.card {
  position: relative;
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: 18px;
  background: var(--card);
  box-shadow: 0 18px 46px rgba(0, 0, 0, 0.28);
  overflow: hidden;
}

.benefit-card,
.gift-card,
.bonus-item {
  padding: 20px;
}

.card-index,
.gift-icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 42px;
  height: 42px;
  margin-bottom: 16px;
  border-radius: 999px;
  background: var(--card-warm);
  color: var(--accent);
  font-size: 12px;
  font-weight: 950;
  box-shadow: inset 0 0 0 1px rgba(139, 92, 246, 0.24);
}

.card p {
  margin-bottom: 0;
  font-size: 14px;
}

.compact h1 {
  font-size: clamp(34px, 10vw, 42px);
}

.page-hero {
  margin-bottom: 22px;
}

.cta-panel {
  margin-top: 20px;
  padding: 22px;
  border: 1px solid rgba(139, 92, 246, 0.2);
  border-radius: 24px;
  background: linear-gradient(135deg, #2B3037 0%, #20242A 100%);
  box-shadow: 0 18px 44px rgba(0, 0, 0, 0.26);
}

.cta-panel p {
  margin-bottom: 18px;
}

.scarcity-strip {
  display: grid;
  gap: 4px;
  margin: 0 0 16px;
  padding: 15px 16px;
  border: 1px solid rgba(139, 92, 246, 0.24);
  border-radius: 18px;
  background: var(--card-warm);
}

.scarcity-strip span {
  color: var(--accent);
  font-size: 12px;
  font-weight: 950;
}

.scarcity-strip strong {
  font-size: 16px;
  line-height: 1.35;
}

.bonus-item h3 {
  padding-left: 18px;
}

.bonus-item h3::before {
  position: absolute;
  left: 20px;
  top: 26px;
  width: 8px;
  height: 8px;
  border-radius: 999px;
  background: var(--accent);
  box-shadow: 0 6px 14px rgba(139, 92, 246, 0.34);
  content: "";
}

.final {
  margin-top: 22px;
}

.support-float {
  position: fixed;
  right: max(18px, calc((100vw - 430px) / 2 + 18px));
  bottom: 18px;
  z-index: 30;
  display: flex;
  align-items: center;
  justify-content: center;
  width: 62px;
  height: 62px;
  border: 1px solid rgba(255, 255, 255, 0.2);
  border-radius: 999px;
  background: #EF4444;
  color: #ffffff;
  box-shadow:
    0 16px 34px rgba(239, 68, 68, 0.4),
    0 0 0 8px rgba(239, 68, 68, 0.12);
  transition:
    transform 180ms ease,
    box-shadow 180ms ease,
    background 180ms ease;
}

.support-float svg {
  width: 29px;
  height: 29px;
  fill: none;
  stroke: currentColor;
  stroke-width: 2;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.support-float:hover {
  background: #DC2626;
  transform: translateY(-2px);
  box-shadow:
    0 18px 44px rgba(220, 38, 38, 0.48),
    0 0 0 10px rgba(239, 68, 68, 0.14);
}

.support-float:active {
  background: #DC2626;
  transform: translateY(1px) scale(0.95);
}

body.home-active .support-float,
body.back-to-top-active .support-float {
  display: none;
}

.back-to-top-float {
  position: fixed;
  right: max(18px, calc((100vw - 430px) / 2 + 18px));
  bottom: 18px;
  z-index: 30;
  display: flex;
  align-items: center;
  justify-content: center;
  width: 48px;
  height: 48px;
  border: 1px solid rgba(255, 255, 255, 0.18);
  border-radius: 999px;
  background: linear-gradient(135deg, #7F37FD 0%, #F40DE7 100%);
  color: #ffffff;
  box-shadow:
    0 16px 34px rgba(139, 92, 246, 0.38),
    0 0 0 7px rgba(139, 92, 246, 0.1);
  cursor: pointer;
  opacity: 0;
  pointer-events: none;
  transform: translateY(10px) scale(0.94);
  transition:
    opacity 180ms ease,
    transform 180ms ease,
    box-shadow 180ms ease;
}

.back-to-top-float.visible {
  opacity: 1;
  pointer-events: auto;
  transform: translateY(0) scale(1);
}

.back-to-top-float svg {
  width: 24px;
  height: 24px;
  fill: none;
  stroke: currentColor;
  stroke-width: 2.4;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.back-to-top-float:hover {
  box-shadow:
    0 18px 42px rgba(244, 13, 231, 0.42),
    0 0 0 9px rgba(139, 92, 246, 0.12);
}

.back-to-top-float:active {
  transform: translateY(1px) scale(0.94);
}

@media (max-width: 360px) {
  .page-section {
    padding-inline: 14px;
  }

  .topbar {
    padding-inline: 12px;
  }

  h1 {
    font-size: 34px;
  }

  .hero-preview {
    min-height: 192px;
  }

  .preview-panel {
    width: calc(100% - 40px);
  }
}
