:root {
  color-scheme: light;
  --paper: #f8f4ee;
  --paper-strong: #fffaf2;
  --ink: #202326;
  --muted: #686d72;
  --line: rgba(32, 35, 38, 0.12);
  --teal: #0f766e;
  --coral: #e6634f;
  --sun: #f2bd4b;
  --blue: #2b5f9c;
  --shadow: 0 22px 60px rgba(29, 35, 42, 0.16);
  font-family: "Noto Sans TC", "PingFang TC", "Microsoft JhengHei", Arial, sans-serif;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  background: #16191d;
  color: var(--ink);
}

a {
  color: inherit;
  text-decoration: none;
}

.page-shell {
  width: min(100%, 430px);
  min-height: 100vh;
  margin: 0 auto;
  overflow: hidden;
  background: var(--paper);
  box-shadow: 0 0 80px rgba(0, 0, 0, 0.34);
}

.hero {
  position: relative;
  min-height: 76svh;
  padding: max(18px, env(safe-area-inset-top)) 20px 28px;
  isolation: isolate;
}

.hero__image,
.hero__shade {
  position: absolute;
  inset: 0;
}

.hero__image {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center top;
  z-index: -2;
}

.hero__shade {
  z-index: -1;
  background:
    linear-gradient(
      180deg,
      rgba(12, 16, 18, 0.08) 0%,
      rgba(12, 16, 18, 0.18) 30%,
      rgba(12, 16, 18, 0.72) 64%,
      rgba(0, 0, 0, 0.94) 100%
    ),
    linear-gradient(90deg, rgba(15, 118, 110, 0.28), rgba(230, 99, 79, 0.18));
}

.topbar {
  position: absolute;
  top: max(16px, env(safe-area-inset-top));
  left: 18px;
  right: 18px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  color: #fff;
  transition: transform 180ms ease;
}

.topbar.is-scrolled {
  transform: translateY(-4px);
}

.brand,
.nav-link {
  min-height: 42px;
  display: inline-flex;
  align-items: center;
  border: 1px solid rgba(255, 255, 255, 0.36);
  backdrop-filter: blur(14px);
  background: rgba(255, 255, 255, 0.14);
}

.brand {
  width: 42px;
  justify-content: center;
  border-radius: 50%;
  font-weight: 900;
  font-size: 0.74rem;
  letter-spacing: 0;
}

.nav-link {
  padding: 0 16px;
  border-radius: 999px;
  font-size: 0.88rem;
  font-weight: 700;
}

.hero__content {
  position: absolute;
  left: 20px;
  right: 20px;
  bottom: 26px;
  color: #fff;
  text-wrap: balance;
}

.eyebrow,
.section-kicker {
  margin: 0 0 12px;
  font-size: 0.74rem;
  font-weight: 800;
  letter-spacing: 0;
  text-transform: uppercase;
}

.eyebrow {
  color: #f8d788;
}

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

h1 {
  max-width: 100%;
  margin-bottom: 12px;
  font-size: clamp(2.25rem, 10.8vw, 3.2rem);
  line-height: 0.94;
  letter-spacing: 0;
  white-space: nowrap;
}

.lead {
  margin-bottom: 24px;
  color: rgba(255, 255, 255, 0.86);
  font-size: 1rem;
  line-height: 1.75;
}

.hero__actions {
  width: 100%;
  display: flex;
  justify-content: flex-start;
  gap: 12px;
}

.hero-button-wrapper {
  width: auto;
  margin: 0;
  perspective: 500px;
  transform: rotatex(10deg);
  animation: rotateAngle 6s linear infinite;
}

.hero-button {
  display: block;
  position: relative;
  width: auto;
  min-height: auto;
  margin: 0.5em 0;
  padding: 0.8em 2.2em;
  cursor: pointer;
  background: #fff;
  border: none;
  border-radius: 0.4em;
  color: #111;
  text-transform: uppercase;
  font-size: 19px;
  font-family: "Work Sans", "Noto Sans TC", "Microsoft JhengHei", sans-serif;
  font-weight: 500;
  letter-spacing: 0.04em;
  mix-blend-mode: color-dodge;
  perspective: 500px;
  transform-style: preserve-3d;
  box-shadow: none;
}

.hero-button:before,
.hero-button:after {
  --z: 0px;
  position: absolute;
  top: 0;
  left: 0;
  display: block;
  content: "";
  width: 100%;
  height: 100%;
  opacity: 0;
  mix-blend-mode: inherit;
  border-radius: inherit;
  transform-style: preserve-3d;
  transform: translate3d(calc(var(--z) * 0px), calc(var(--z) * 0px), calc(var(--z) * 0px));
}

.hero-button span {
  position: relative;
  z-index: 1;
  display: block;
  mix-blend-mode: none;
}

.hero-button:after {
  background-color: #5d00ff;
}

.hero-button:before {
  background-color: #ff1731;
}

.hero-button:hover {
  background-color: #fff65b;
  transition: background 0.3s 0.1s;
}

.hero-button:hover:before {
  --z: 0.04;
  animation: translateWobble 2.2s ease forwards;
}

.hero-button:hover:after {
  --z: -0.06;
  animation: translateWobble 2.2s ease forwards;
}

.button {
  width: 126px;
  min-height: 50px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  border-radius: 999px;
  font-weight: 900;
  letter-spacing: 0;
  border: 1px solid transparent;
  transition: transform 160ms ease, box-shadow 160ms ease, background 160ms ease;
}

.button:active {
  transform: scale(0.98);
}

.button--primary {
  background: var(--sun);
  color: #17191b;
  box-shadow: 0 14px 28px rgba(242, 189, 75, 0.24);
}

.button--ghost {
  color: #fff;
  border-color: rgba(255, 255, 255, 0.42);
  background: rgba(255, 255, 255, 0.12);
  backdrop-filter: blur(14px);
}

.button--wide {
  width: 100%;
  margin-top: 12px;
}

.button.hero-button {
  width: 238px;
  min-height: 54px;
  white-space: nowrap;
}

.button.hero-button span {
  white-space: nowrap;
}

.quick-strip {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1px;
  background: var(--line);
  border-bottom: 1px solid var(--line);
}

.quick-strip div {
  min-height: 92px;
  display: flex;
  flex-direction: column;
  justify-content: center;
  padding: 14px 12px;
  background: var(--paper-strong);
}

.quick-strip strong {
  font-size: 1.18rem;
  color: var(--teal);
}

.quick-strip span {
  margin-top: 6px;
  color: var(--muted);
  font-size: 0.78rem;
  line-height: 1.35;
}

.section {
  padding: 42px 20px;
}

.result-section {
  background: #050505;
  color: #fff;
}

.section-kicker {
  color: var(--coral);
}

.section h2 {
  margin-bottom: 20px;
  font-size: 2rem;
  line-height: 1.12;
  letter-spacing: 0;
}

.result-heading {
  margin: 0 auto 18px;
  text-align: center;
}

.result-heading p {
  margin-bottom: 8px;
  color: #f2bd4b;
  font-size: 0.96rem;
  font-weight: 900;
  line-height: 1.45;
}

.result-heading h2 {
  margin-bottom: 0;
  font-size: 1.72rem;
  line-height: 1.2;
}

.result-frame {
  width: min(100%, 350px);
  margin: 0 auto;
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #fff;
  box-shadow: var(--shadow);
}

.result-frame img {
  display: block;
  width: 100%;
  height: auto;
}

.feature-list {
  display: grid;
  gap: 12px;
}

.feature-card,
.plan-card,
.mini-grid > div {
  border: 1px solid var(--line);
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.62);
  box-shadow: var(--shadow);
}

.feature-card {
  position: relative;
  min-height: 154px;
  padding: 18px;
}

.feature-card__mark {
  width: 34px;
  height: 34px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 18px;
  border-radius: 50%;
  background: var(--teal);
  color: #fff;
  font-weight: 900;
}

.feature-card h3,
.plan-card h3 {
  margin-bottom: 8px;
  font-size: 1.18rem;
}

.feature-card p,
.plan-card p,
.contact p {
  margin-bottom: 0;
  color: var(--muted);
  line-height: 1.7;
}

.feedback-section {
  background: #050505;
  color: #fff;
}

.feedback-heading {
  margin: 0 auto 18px;
  text-align: center;
}

.feedback-heading p {
  margin-bottom: 8px;
  color: #f2bd4b;
  font-size: 0.96rem;
  font-weight: 900;
  line-height: 1.45;
}

.feedback-heading h2 {
  margin-bottom: 0;
  font-size: 1.7rem;
  line-height: 1.2;
}

.feedback-grid {
  width: min(100%, 350px);
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 4px;
  margin: 0 auto;
}

.feedback-item {
  display: block;
  width: 100%;
  aspect-ratio: 1;
  padding: 0;
  overflow: hidden;
  border: 0;
  border-radius: 4px;
  background: #141414;
  cursor: pointer;
}

.feedback-item.is-spinning img {
  animation: tile-spin 360ms ease both;
}

.feedback-item img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.image-lightbox {
  position: fixed;
  inset: 0;
  z-index: 20;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 20px;
  background: rgba(0, 0, 0, 0.92);
  opacity: 0;
  pointer-events: none;
  transition: opacity 220ms ease;
}

.image-lightbox.is-open {
  opacity: 1;
  pointer-events: auto;
}

.image-lightbox img {
  max-width: min(100%, 390px);
  max-height: 86svh;
  border-radius: 8px;
  object-fit: contain;
  box-shadow: 0 24px 70px rgba(0, 0, 0, 0.5);
}

.image-lightbox.is-open img {
  animation: lightbox-spin-in 420ms cubic-bezier(0.2, 0.9, 0.2, 1) both;
}

.image-lightbox.is-closing img {
  animation: lightbox-spin-out 320ms ease both;
}

.knowledge-section {
  background: #050505;
  color: #fff;
  overflow: hidden;
}

.knowledge-heading {
  margin: 0 auto 20px;
  text-align: center;
}

.knowledge-heading h2 {
  margin-bottom: 0;
  color: #fff;
  font-size: 1.62rem;
  line-height: 1.25;
}

.knowledge-carousel {
  position: relative;
  width: min(100%, 390px);
  height: 312px;
  margin: 0 auto;
  touch-action: pan-y;
}

.knowledge-card {
  position: absolute;
  top: 50%;
  display: block;
  aspect-ratio: 1;
  padding: 0;
  overflow: hidden;
  border: 1px solid rgba(255, 255, 255, 0.22);
  border-radius: 8px;
  background: #111;
  box-shadow: 0 18px 46px rgba(0, 0, 0, 0.42);
  cursor: pointer;
  transition:
    left 420ms cubic-bezier(0.2, 0.9, 0.2, 1),
    transform 420ms cubic-bezier(0.2, 0.9, 0.2, 1),
    width 420ms cubic-bezier(0.2, 0.9, 0.2, 1),
    opacity 420ms ease,
    filter 420ms ease;
}

.knowledge-card img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.knowledge-card.is-spinning img {
  animation: tile-spin 360ms ease both;
}

.knowledge-card--center {
  left: 50%;
  z-index: 3;
  width: 286px;
  height: auto;
  transform: translate(-50%, -50%) rotate(0deg);
  opacity: 1;
  filter: brightness(1);
}

.knowledge-card--left,
.knowledge-card--right {
  z-index: 2;
  width: 158px;
  height: auto;
  opacity: 0.78;
  filter: brightness(0.74);
}

.knowledge-card--left {
  left: 0;
  transform: translate(0, -50%) rotate(-7deg) scale(0.96);
}

.knowledge-card--right {
  left: calc(100% - 158px);
  transform: translate(0, -50%) rotate(7deg) scale(0.96);
}

.video-section {
  position: relative;
  min-height: 72svh;
  overflow: hidden;
  background: #050505;
}

.video-section__media,
.video-section__overlay {
  position: absolute;
  inset: 0;
}

.video-section__media {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.video-section__overlay {
  background:
    linear-gradient(180deg, #050505 0%, rgba(5, 5, 5, 0.42) 16%, rgba(5, 5, 5, 0.28) 48%, rgba(5, 5, 5, 0.78) 82%, #050505 100%),
    rgba(0, 0, 0, 0.22);
}

.video-section__content {
  position: relative;
  z-index: 1;
  display: flex;
  justify-content: center;
  padding: 16px 20px 0;
  text-align: center;
}

.video-section__content h2 {
  margin: 0;
  color: #fff;
  font-size: 2rem;
  line-height: 1.18;
  text-shadow: 0 4px 18px rgba(0, 0, 0, 0.72);
}

.threads-section {
  background:
    linear-gradient(180deg, #050505 0%, #101010 42%, #050505 100%);
  color: #fff;
  overflow: hidden;
  padding-top: 58px;
  padding-bottom: 24px;
}

.threads-heading {
  margin: -78px auto 22px;
  text-align: center;
}

.threads-heading p {
  margin-bottom: 8px;
  color: #f2bd4b;
  font-size: 0.96rem;
  font-weight: 900;
  line-height: 1.45;
}

.threads-heading h2 {
  margin-bottom: 0;
  font-size: 1.74rem;
  line-height: 1.2;
}

.threads-carousel {
  position: relative;
  width: min(100%, 360px);
  height: 366px;
  margin: 0 auto;
  touch-action: pan-x;
}

.threads-card {
  position: absolute;
  left: 50%;
  display: block;
  aspect-ratio: 1;
  padding: 0;
  overflow: hidden;
  border: 1px solid rgba(255, 255, 255, 0.22);
  border-radius: 8px;
  background: #111;
  box-shadow: 0 18px 46px rgba(0, 0, 0, 0.42);
  cursor: pointer;
  transition:
    top 420ms cubic-bezier(0.2, 0.9, 0.2, 1),
    transform 420ms cubic-bezier(0.2, 0.9, 0.2, 1),
    width 420ms cubic-bezier(0.2, 0.9, 0.2, 1),
    opacity 420ms ease,
    filter 420ms ease;
}

.threads-card img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.threads-card.is-spinning img {
  animation: tile-spin 360ms ease both;
}

.threads-card--center {
  top: 55%;
  z-index: 3;
  width: 320px;
  transform: translate(-50%, -50%) rotate(0deg);
  opacity: 1;
  filter: brightness(1);
}

.threads-card--top,
.threads-card--bottom {
  z-index: 2;
  width: 210px;
  opacity: 0.76;
  filter: brightness(0.72);
}

.threads-card--top {
  top: 0;
  transform: translate(-50%, 0) rotate(-5deg) scale(0.96);
}

.threads-card--bottom {
  top: calc(100% - 210px);
  transform: translate(-50%, 0) rotate(5deg) scale(0.96);
}

.join-section {
  background:
    linear-gradient(180deg, #050505 0%, #101010 42%, #050505 100%);
  color: #fff;
  padding-bottom: 12px;
}

.join-heading {
  margin: 0 auto 20px;
  text-align: center;
}

.join-heading h2 {
  margin-bottom: 0;
  font-size: 1.68rem;
  line-height: 1.2;
}

.join-image {
  width: min(100%, 350px);
  display: block;
  aspect-ratio: auto;
  margin: 0 auto;
  padding: 0;
  overflow: hidden;
  border: 1px solid rgba(255, 255, 255, 0.22);
  border-radius: 8px;
  background: #111;
  box-shadow: 0 18px 46px rgba(0, 0, 0, 0.42);
  cursor: pointer;
}

.join-image img {
  display: block;
  width: 100%;
  aspect-ratio: auto;
  height: auto;
  object-fit: contain;
}

@keyframes tile-spin {
  0% {
    transform: rotate(0deg) scale(1);
  }

  55% {
    transform: rotate(9deg) scale(0.94);
  }

  100% {
    transform: rotate(0deg) scale(1);
  }
}

@keyframes rotateAngle {
  0% {
    transform: rotateY(0deg) rotateX(10deg);
    animation-timing-function: cubic-bezier(0.61, 1, 0.88, 1);
  }

  25% {
    transform: rotateY(20deg) rotateX(10deg);
  }

  50% {
    transform: rotateY(0deg) rotateX(10deg);
    animation-timing-function: cubic-bezier(0.61, 1, 0.88, 1);
  }

  75% {
    transform: rotateY(-20deg) rotateX(10deg);
  }

  100% {
    transform: rotateY(0deg) rotateX(10deg);
  }
}

@keyframes rotBGimg {
  from {
    transform: rotate(0deg);
  }

  to {
    transform: rotate(360deg);
  }
}

@keyframes translateWobble {
  0% {
    opacity: 0;
    transform: translate3d(calc(var(--z) * 0px), calc(var(--z) * 0px), calc(var(--z) * 0px));
  }

  16% {
    transform: translate3d(calc(var(--z) * 160px), calc(var(--z) * 160px), calc(var(--z) * 160px));
  }

  28% {
    opacity: 1;
    transform: translate3d(calc(var(--z) * 70px), calc(var(--z) * 70px), calc(var(--z) * 70px));
  }

  44% {
    transform: translate3d(calc(var(--z) * 130px), calc(var(--z) * 130px), calc(var(--z) * 130px));
  }

  59% {
    transform: translate3d(calc(var(--z) * 85px), calc(var(--z) * 85px), calc(var(--z) * 85px));
  }

  73% {
    transform: translate3d(calc(var(--z) * 110px), calc(var(--z) * 110px), calc(var(--z) * 110px));
  }

  88% {
    opacity: 1;
    transform: translate3d(calc(var(--z) * 90px), calc(var(--z) * 90px), calc(var(--z) * 90px));
  }

  100% {
    opacity: 1;
    transform: translate3d(calc(var(--z) * 100px), calc(var(--z) * 100px), calc(var(--z) * 100px));
  }
}

@keyframes lightbox-spin-in {
  0% {
    opacity: 0;
    transform: rotate(-14deg) scale(0.34);
  }

  70% {
    opacity: 1;
    transform: rotate(3deg) scale(1.04);
  }

  100% {
    opacity: 1;
    transform: rotate(0deg) scale(1);
  }
}

@keyframes lightbox-spin-out {
  0% {
    opacity: 1;
    transform: rotate(0deg) scale(1);
  }

  100% {
    opacity: 0;
    transform: rotate(14deg) scale(0.36);
  }
}

.plan-card {
  display: grid;
  gap: 18px;
  padding: 20px;
  background: #fff;
}

.tag {
  width: max-content;
  display: inline-flex;
  align-items: center;
  min-height: 28px;
  margin-bottom: 14px;
  padding: 0 10px;
  border-radius: 999px;
  background: rgba(230, 99, 79, 0.14);
  color: #b64032;
  font-size: 0.78rem;
  font-weight: 900;
}

.plan-card > strong {
  color: var(--blue);
  font-size: 2rem;
}

.mini-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 10px;
  margin-top: 10px;
}

.mini-grid > div {
  min-height: 112px;
  padding: 16px;
  box-shadow: none;
}

.mini-grid span {
  display: block;
  margin-bottom: 16px;
  color: var(--muted);
  font-size: 0.82rem;
  font-weight: 800;
}

.mini-grid strong {
  color: var(--teal);
  font-size: 1.1rem;
}

.floating-cta {
  position: fixed;
  left: 50%;
  bottom: max(14px, env(safe-area-inset-bottom));
  z-index: 30;
  width: min(360px, calc(100% - 32px));
  min-height: 56px;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
  border-radius: 999px;
  background: #07182e;
  color: #fff;
  font-size: 1.08rem;
  font-weight: 900;
  box-shadow: 0 16px 36px rgba(0, 183, 255, 0.24), 0 10px 28px rgba(0, 0, 0, 0.34);
  transform: translateX(-50%);
  opacity: 1;
  pointer-events: auto;
}

.floating-cta span {
  position: relative;
  z-index: 2;
}

.floating-cta::before {
  content: "";
  position: absolute;
  inset: -150px;
  background-image: conic-gradient(
    from 0deg,
    transparent 0deg,
    transparent 95deg,
    rgb(0, 183, 255) 145deg,
    rgb(255, 48, 255) 210deg,
    transparent 270deg,
    transparent 360deg
  );
  animation: rotBGimg 3s linear infinite;
  transition: all 0.2s linear;
}

.floating-cta::after {
  content: "";
  position: absolute;
  inset: 5px;
  border-radius: 999px;
  background: #07182e;
}

.reveal-target {
  opacity: 0;
  transition:
    opacity 720ms ease,
    transform 720ms cubic-bezier(0.2, 0.9, 0.2, 1),
    filter 720ms ease;
  transition-delay: var(--reveal-delay, 0ms);
  will-change: opacity, transform, filter;
}

.reveal-target.is-visible {
  opacity: 1;
  filter: blur(0);
  transform: none;
}

.reveal-up {
  transform: translateY(34px);
  filter: blur(6px);
}

.reveal-down {
  transform: translateY(-30px);
  filter: blur(5px);
}

.reveal-left {
  transform: translateX(-34px) rotate(-2deg);
  filter: blur(5px);
}

.reveal-right {
  transform: translateX(34px) rotate(2deg);
  filter: blur(5px);
}

.reveal-zoom {
  transform: scale(0.88);
  filter: blur(6px);
}

.reveal-pop {
  transform: translateY(18px) scale(0.82) rotate(-2deg);
  filter: blur(4px);
}

.reveal-flip {
  transform: perspective(700px) rotateX(14deg) translateY(24px) scale(0.92);
  transform-origin: center bottom;
  filter: blur(4px);
}

.reveal-glow {
  transform: translateY(26px) scale(0.96);
  filter: blur(7px) brightness(0.72);
}

@media (prefers-reduced-motion: reduce) {
  .reveal-target,
  .floating-cta.reveal-target {
    opacity: 1;
    transition: none;
    transform: none;
    filter: none;
  }

  .floating-cta.reveal-target {
    transform: translateX(-50%);
  }
}

@media (min-width: 520px) {
  body {
    padding: 24px 0;
  }

  .page-shell {
    border-radius: 22px;
  }
}
