:root {
  --navy: #1a1a5e;
  --navy-deep: #101042;
  --navy-soft: #34347a;
  --pink: #ff6b9d;
  --pink-dark: #e94f87;
  --pink-pale: #fff5f8;
  --cream: #fffaf3;
  --ink: #191936;
  --muted: #666681;
  --line: #ddddea;
  --success: #1a9a70;
  --white: #fffdfd;
  --font-sans: "Noto Sans TC", sans-serif;
  --font-display: "Noto Serif TC", serif;
  --ease: cubic-bezier(.22, 1, .36, 1);
  --space-sm: 12px;
  --space-md: 16px;
  --space-lg: 24px;
  --space-xl: 32px;
  --space-section: clamp(48px, 4.2vw, 60px);
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  color: var(--ink);
  background: var(--white);
  font-family: var(--font-sans);
  -webkit-font-smoothing: antialiased;
}
img, video { display: block; max-width: 100%; }
a { color: inherit; }
button, a { -webkit-tap-highlight-color: transparent; }

.skip-link {
  position: fixed;
  z-index: 1000;
  top: 10px;
  left: 10px;
  padding: 10px 16px;
  color: var(--white);
  background: var(--navy);
  border-radius: 8px;
  transform: translateY(-150%);
}
.skip-link:focus { transform: translateY(0); }

.site-header {
  position: sticky;
  z-index: 100;
  top: 0;
  border-bottom: 1px solid color-mix(in srgb, var(--navy) 10%, transparent);
  background: color-mix(in srgb, var(--pink-pale) 91%, transparent);
  backdrop-filter: blur(18px);
}
.header-inner {
  width: min(1180px, calc(100% - 48px));
  min-height: 68px;
  margin: 0 auto;
  display: flex;
  align-items: center;
  gap: 30px;
}
.brand { display: inline-flex; align-items: center; gap: 14px; text-decoration: none; }
.brand img { width: 114px; height: auto; }
.brand-divider { width: 1px; height: 25px; background: #c9c9db; }
.product-name { color: var(--navy); font-weight: 800; letter-spacing: .08em; }
.desktop-nav { margin-left: auto; display: flex; align-items: center; gap: 30px; }
.desktop-nav a { color: #4d4d6c; font-size: 14px; font-weight: 600; text-decoration: none; }
.desktop-nav a:hover { color: var(--pink-dark); }
.header-actions { display: flex; align-items: center; gap: 14px; }
.login-link { color: var(--navy); font-size: 14px; font-weight: 800; text-underline-offset: 4px; }
.login-link:hover { color: var(--pink-dark); }

.button {
  min-height: 50px;
  padding: 0 24px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 12px;
  border: 1px solid transparent;
  border-radius: 999px;
  font-size: 15px;
  font-weight: 800;
  text-decoration: none;
  transition: transform .25s var(--ease), box-shadow .25s var(--ease), background-color .25s ease;
}
.button:hover { transform: translateY(-2px); }
.button:focus-visible, .text-link:focus-visible, .desktop-nav a:focus-visible, .login-link:focus-visible, summary:focus-visible {
  outline: 3px solid color-mix(in srgb, var(--pink) 60%, transparent);
  outline-offset: 4px;
}
.button-small { min-height: 42px; padding: 0 19px; color: var(--white); background: var(--navy); font-size: 13px; }
.button-primary { color: var(--white); background: var(--navy); box-shadow: 0 12px 26px rgba(26, 26, 94, .22); }
.button-primary:hover, .button-small:hover { background: var(--navy-soft); }
.button svg { width: 20px; height: 20px; fill: none; stroke: currentColor; stroke-width: 1.8; }
.button-light { color: var(--navy); background: var(--white); box-shadow: 0 12px 28px rgba(8, 8, 40, .18); }
.text-link { font-weight: 800; text-underline-offset: 5px; text-decoration-thickness: 2px; }
.text-link:hover { color: var(--pink-dark); }

.hero {
  position: relative;
  overflow: hidden;
  background: var(--pink-pale);
}
.hero::before {
  content: "";
  position: absolute;
  inset: 0;
  opacity: .42;
  background-image: radial-gradient(circle at center, rgba(26, 26, 94, .18) 1.2px, transparent 1.2px);
  background-size: 28px 28px;
  mask-image: linear-gradient(to right, #000, transparent 38%, transparent 68%, #000);
}
.hero-inner {
  position: relative;
  z-index: 2;
  width: min(1180px, calc(100% - 48px));
  min-height: 600px;
  margin: 0 auto;
  padding: 40px 0 48px;
  display: grid;
  grid-template-columns: minmax(0, 1.02fr) minmax(390px, .98fr);
  grid-template-areas:
    "copy visual"
    "after visual";
  align-content: center;
  column-gap: clamp(40px, 5.5vw, 72px);
  row-gap: 0;
}
.hero-copy { grid-area: copy; max-width: 640px; align-self: end; }
.hero-after { grid-area: after; max-width: 640px; align-self: start; }
.eyebrow {
  margin: 0 0 15px;
  color: var(--pink-dark);
  font-size: 13px;
  font-weight: 800;
  letter-spacing: .13em;
}
.eyebrow span { font-size: 9px; vertical-align: 2px; }
.hero h1 {
  margin: 0;
  color: var(--navy);
  font-family: var(--font-display);
  font-size: clamp(40px, 4vw, 48px);
  line-height: 1.3;
  letter-spacing: -.035em;
  white-space: nowrap;
}
.hero h1 span { display: inline; }
.hero h1 span:last-child { color: var(--pink-dark); }
.hero-lead {
  max-width: 590px;
  margin: 20px 0 0;
  color: #51516e;
  font-size: 18px;
  line-height: 1.85;
}
.hero-actions { margin-top: 24px; display: flex; align-items: center; gap: var(--space-lg); }
.trust-list {
  margin: 22px 0 0;
  padding: 16px 0 0;
  border-top: 1px solid rgba(26, 26, 94, .14);
  display: flex;
  flex-wrap: wrap;
  gap: 11px 22px;
  list-style: none;
  color: #555570;
  font-size: 13px;
  font-weight: 600;
}
.trust-list span { margin-right: 5px; color: var(--success); font-weight: 900; }

.hero-visual { grid-area: visual; position: relative; width: min(100%, 510px); margin: 0 auto; min-height: 510px; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 16px; }
.phone-frame {
  position: relative;
  z-index: 2;
  width: 252px;
  padding: 10px;
  border: 3px solid var(--navy);
  border-radius: 38px;
  background: var(--navy-deep);
  box-shadow: 0 34px 65px rgba(26, 26, 94, .26), 0 0 0 9px rgba(255,255,255,.7);
  transform: rotate(2.5deg);
}
.phone-frame::after {
  content: "";
  position: absolute;
  inset: 9px;
  border: 1px solid rgba(255,255,255,.24);
  border-radius: 27px;
  pointer-events: none;
}
.phone-speaker { position: absolute; z-index: 3; top: 16px; left: 50%; width: 52px; height: 5px; border-radius: 9px; background: var(--navy-deep); transform: translateX(-50%); }
.phone-frame video { width: 100%; aspect-ratio: 9 / 16; border-radius: 27px; object-fit: cover; background: #f0eee8; }
.video-toggle {
  position: absolute;
  z-index: 4;
  right: 19px;
  bottom: 19px;
  width: 38px;
  height: 38px;
  border: 1px solid rgba(255,255,255,.6);
  border-radius: 50%;
  color: var(--white);
  background: rgba(16, 16, 66, .74);
  cursor: pointer;
  backdrop-filter: blur(8px);
}
.play-icon { display: none; }
.video-toggle[aria-pressed="true"] .play-icon { display: inline; }
.video-toggle[aria-pressed="true"] .pause-icon { display: none; }
.result-float {
  position: absolute;
  z-index: 3;
  border: 1px solid rgba(26,26,94,.12);
  background: rgba(255,253,253,.92);
  box-shadow: 0 18px 38px rgba(26, 26, 94, .15);
  backdrop-filter: blur(12px);
}
.result-score { top: 88px; right: 0; min-width: 140px; padding: 15px 20px; border-radius: 18px; transform: rotate(-3deg); }
.result-score span { display: block; color: var(--success); font-size: 12px; font-weight: 800; }
.result-score strong { color: var(--navy); font-family: var(--font-display); font-size: 29px; }
.result-count { left: 0; bottom: 74px; padding: 15px 18px; border-radius: 18px; transform: rotate(2deg); }
.result-count strong { color: var(--pink-dark); font-family: var(--font-display); font-size: 28px; }
.result-count span { margin-left: 7px; color: var(--navy); font-size: 12px; font-weight: 700; }
.hero-video-caption {
  position: relative;
  z-index: 3;
  margin: 0;
  color: var(--navy);
  font-family: var(--font-display);
  font-size: 18px;
  font-weight: 900;
  letter-spacing: .01em;
  text-align: center;
}
.hero-orbit { position: absolute; border: 1px solid rgba(255,107,157,.22); border-radius: 50%; }
.orbit-one { width: 580px; height: 580px; right: -290px; top: -240px; }
.orbit-two { width: 330px; height: 330px; left: -190px; bottom: -180px; }

.pain-strip { color: var(--white); background: var(--pink); }
.pain-inner { width: min(1180px, calc(100% - 48px)); min-height: 64px; margin: 0 auto; display: flex; align-items: center; justify-content: center; gap: 24px; }
.pain-inner p { margin: 0; font-size: 15px; }
.pain-inner p:first-child { opacity: .78; text-decoration: line-through; text-decoration-thickness: 1px; }
.pain-inner span { font-size: 22px; }

.section-heading { width: min(1180px, calc(100% - 48px)); margin: 0 auto 42px; }
.section-heading h2, .workflow-intro h2, .faq-heading h2 {
  margin: 0;
  color: var(--navy);
  font-family: var(--font-display);
  font-size: clamp(28px, 3.1vw, 34px);
  line-height: 1.42;
  letter-spacing: -.025em;
}
.section-heading > p:last-child { max-width: 650px; margin: 16px 0 0; color: #6d6d86; font-size: 16px; line-height: 1.8; }
.workflow-section { width: min(1180px, calc(100% - 48px)); margin: 0 auto; padding: var(--space-section) 0; display: grid; grid-template-columns: .85fr 1.15fr; gap: clamp(40px, 7vw, 88px); }
.workflow-intro { position: sticky; top: 120px; align-self: start; }
.workflow-intro > p:not(.eyebrow) { margin: 19px 0 25px; color: var(--muted); line-height: 1.85; }
.text-link-dark { color: var(--navy); }
.workflow-list { margin: 0; padding: 0; list-style: none; counter-reset: steps; }
.workflow-list li { min-height: 112px; padding: 20px 0; display: grid; grid-template-columns: 64px 1fr; gap: 16px; border-bottom: 1px solid var(--line); }
.workflow-list li:first-child { border-top: 1px solid var(--line); }
.step-number { color: var(--pink); font-family: var(--font-display); font-size: 20px; }
.workflow-list h3 { margin: 0 0 8px; color: var(--navy); font-size: 20px; }
.workflow-list p { margin: 0; color: var(--muted); line-height: 1.7; }

.proof-section { padding: var(--space-section) 0; background: var(--cream); }
.proof-layout { width: min(1180px, calc(100% - 48px)); margin: 0 auto; display: grid; grid-template-columns: 1.1fr .9fr; gap: 24px 70px; }
.proof-main { position: relative; overflow: hidden; min-height: 340px; padding: clamp(28px, 4vw, 48px); color: var(--white); border-radius: 28px; background: var(--navy); }
.proof-main::after { content: ""; position: absolute; width: 270px; height: 270px; right: -80px; bottom: -120px; border: 48px solid rgba(255,107,157,.28); border-radius: 50%; }
.proof-mark { width: 48px; height: 48px; display: grid; place-items: center; color: var(--navy); border-radius: 50%; background: var(--pink); font-size: 24px; font-weight: 900; }
.proof-kicker { margin: 44px 0 10px; color: #ffb2ca; font-size: 13px; font-weight: 800; letter-spacing: .12em; }
.proof-main h3 { max-width: 420px; margin: 0; font-family: var(--font-display); font-size: clamp(28px, 3vw, 36px); }
.proof-main > p:last-child { max-width: 500px; margin: 17px 0 0; color: #d7d7e6; line-height: 1.85; }
.proof-list { display: grid; }
.proof-list article { padding: 18px 0; display: grid; grid-template-columns: 64px 1fr; align-items: start; gap: 16px; border-bottom: 1px solid #ded8d3; }
.proof-list article:first-child { border-top: 1px solid #ded8d3; }
.proof-list > article > span { color: var(--pink-dark); font-family: var(--font-display); font-size: 28px; }
.proof-list h3 { margin: 0 0 7px; color: var(--navy); font-size: 18px; }
.proof-list p { margin: 0; color: var(--muted); font-size: 14px; line-height: 1.7; }

.faq-section { width: min(980px, calc(100% - 48px)); margin: 0 auto; padding: var(--space-section) 0; display: grid; grid-template-columns: 290px 1fr; gap: 56px; }
.faq-heading h2 { font-size: 30px; }
.faq-list { border-top: 1px solid var(--line); }
.faq-list details { border-bottom: 1px solid var(--line); }
.faq-list summary { padding: 20px 4px; display: flex; align-items: center; justify-content: space-between; gap: 18px; color: var(--navy); font-size: 17px; font-weight: 800; list-style: none; cursor: pointer; }
.faq-list summary::-webkit-details-marker { display: none; }
.faq-list summary span { color: var(--pink-dark); font-size: 23px; font-weight: 400; transition: transform .25s var(--ease); }
.faq-list details[open] summary span { transform: rotate(45deg); }
.faq-list details p { margin: -6px 45px 22px 4px; color: var(--muted); line-height: 1.8; }

.final-cta { position: relative; overflow: hidden; min-height: 420px; padding: 52px max(24px, calc((100vw - 1080px) / 2)); display: grid; grid-template-columns: 1fr 330px; align-items: center; gap: 56px; color: var(--white); background: var(--pink-dark); }
.final-cta::before { content: ""; position: absolute; inset: 0; background: linear-gradient(125deg, transparent 40%, rgba(26,26,94,.14)); }
.final-cta-copy { position: relative; z-index: 2; }
.final-cta h2 { margin: 0; font-family: var(--font-display); font-size: clamp(28px, 3.2vw, 36px); line-height: 1.42; }
.final-cta-copy > p:not(.eyebrow) { margin: 17px 0 27px; font-size: 17px; }
.final-answer-sheet { position: relative; width: 220px; height: 308px; margin: 0 auto; padding: 22px; border-radius: 8px; background: var(--white); box-shadow: 0 28px 65px rgba(76,8,37,.3); transform: rotate(6deg); }
.sheet-top { display: grid; grid-template-columns: repeat(4, 1fr); gap: 8px; }
.sheet-top span { height: 7px; background: var(--navy); }
.sheet-lines { height: 45px; margin-top: 18px; border-top: 2px solid var(--navy); border-bottom: 1px solid #ccc; }
.sheet-bubbles { height: 158px; margin-top: 15px; background-image: radial-gradient(circle, transparent 3px, var(--navy) 3.5px, var(--navy) 4.5px, transparent 5px); background-size: 25px 22px; }
.grading-stamp { position: absolute; right: -38px; bottom: 50px; padding: 8px 15px; color: var(--pink-dark); border: 4px double var(--pink-dark); border-radius: 6px; font-size: 16px; font-weight: 900; transform: rotate(-19deg); }

.site-footer { min-height: 112px; padding: 28px max(24px, calc((100vw - 1180px) / 2)); display: flex; align-items: center; gap: 24px; color: #686880; background: var(--white); font-size: 13px; }
.site-footer > div { display: flex; align-items: center; gap: 13px; color: var(--navy); font-weight: 800; }
.site-footer > div span { padding-left: 13px; border-left: 1px solid #d4d4df; }
.site-footer p { margin: 0 auto 0 0; }
.site-footer a { color: var(--navy); font-weight: 700; text-underline-offset: 4px; }
.mobile-cta { display: none; }

.reveal { opacity: 0; transform: translateY(20px); transition: opacity .7s var(--ease), transform .7s var(--ease); }
.reveal-delay { transition-delay: .12s; }
.reveal.is-visible { opacity: 1; transform: translateY(0); }

@media (max-width: 900px) {
  .desktop-nav { display: none; }
  .hero-inner {
    min-height: auto;
    grid-template-columns: 1fr;
    grid-template-areas:
      "copy"
      "visual"
      "after";
    padding-top: 36px;
    gap: 24px;
  }
  .hero-copy { max-width: 700px; }
  .hero-visual { min-height: 470px; }
  .pain-inner { min-height: 80px; flex-wrap: wrap; gap: 6px 16px; padding: 14px 0; text-align: center; }
  .workflow-section { grid-template-columns: 1fr; gap: 28px; }
  .workflow-intro { position: static; max-width: 680px; }
  .proof-layout { grid-template-columns: 1fr; }
  .faq-section { grid-template-columns: 1fr; gap: 24px; }
  .final-cta { grid-template-columns: 1fr 300px; gap: 30px; }
}

@media (max-width: 620px) {
  body { padding-bottom: calc(70px + env(safe-area-inset-bottom)); }
  .header-inner { width: calc(100% - 30px); min-height: 60px; gap: 10px; }
  .brand { gap: 9px; }
  .brand { min-height: 44px; }
  .brand img { width: 87px; }
  .brand-divider { height: 21px; }
  .product-name { font-size: 13px; }
  .header-actions { margin-left: auto; }
  .header-actions .button { display: none; }
  .login-link { min-width: 44px; padding: 12px 4px; text-align: center; }
  .hero-inner, .section-heading, .workflow-section, .proof-layout, .faq-section { width: calc(100% - 36px); }
  .hero-inner { padding: 18px 0 26px; gap: 8px; }
  .hero h1 { font-size: clamp(24px, 7.2vw, 30px); line-height: 1.25; }
  .hero-lead {
    margin-top: 10px;
    font-size: clamp(14px, 4.1vw, 16px);
    line-height: 1.55;
    letter-spacing: -.02em;
    white-space: nowrap;
  }
  .hero-actions { margin-top: 20px; align-items: stretch; flex-direction: column; gap: 12px; }
  .hero-actions .button { width: 100%; }
  .hero-actions .text-link { position: relative; align-self: center; }
  .hero-actions .text-link::after, .workflow-intro .text-link::after, .site-footer a::after { content: ""; position: absolute; inset: -10px -12px; }
  .trust-list { margin-top: 18px; padding-top: 16px; gap: 8px 16px; }
  .hero-visual {
    min-height: 0;
    margin: 5px auto 0;
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 8px 10px;
  }
  .phone-frame { grid-column: 1 / -1; width: clamp(230px, 66vw, 270px); justify-self: center; }
  .result-float {
    position: static;
    width: 100%;
    min-width: 0;
    transform: none;
  }
  .result-score { padding: 11px 13px; border-radius: 14px; }
  .result-score strong { font-size: 24px; }
  .result-count { padding: 11px 13px; border-radius: 14px; display: flex; align-items: center; }
  .result-count strong { flex: 0 0 auto; font-size: 24px; }
  .result-count span { margin-left: 6px; line-height: 1.35; }
  .hero-video-caption { grid-column: 1 / -1; }
  .pain-inner { width: calc(100% - 36px); }
  .pain-inner span { transform: rotate(90deg); }
  .workflow-section, .proof-section, .faq-section { padding-top: 28px; padding-bottom: 28px; }
  .section-heading h2, .workflow-intro h2, .faq-heading h2 { font-size: 27px; }
  .workflow-intro h2,
  .proof-section .section-heading h2 {
    font-size: clamp(18px, 5.9vw, 25px);
    letter-spacing: -.04em;
    white-space: nowrap;
  }
  .section-heading { margin-bottom: 28px; }
  .hero-video-caption { font-size: 17px; }
  .workflow-list li { grid-template-columns: 44px 1fr; min-height: 104px; padding: 18px 0; gap: 12px; }
  .proof-main { min-height: 300px; }
  .proof-kicker { margin-top: 36px; }
  .proof-list article { grid-template-columns: 58px 1fr; }
  .proof-list article { padding: 18px 0; }
  .faq-list summary { padding: 18px 4px; font-size: 16px; }
  .final-cta { min-height: 480px; padding: 30px 22px 0; grid-template-columns: 1fr; gap: 24px; text-align: left; }
  .final-cta h2 { font-size: 30px; }
  .final-answer-sheet { width: 170px; height: 225px; transform: translateY(12px) rotate(5deg); }
  .sheet-bubbles { height: 92px; }
  .site-footer { min-height: 140px; padding: 28px 24px; align-items: flex-start; flex-direction: column; gap: 12px; }
  .site-footer p { margin: 0; }
  .workflow-intro .text-link, .site-footer a { position: relative; }
  .mobile-cta { position: fixed; z-index: 90; right: 12px; bottom: max(11px, env(safe-area-inset-bottom)); left: 12px; min-height: 52px; display: flex; align-items: center; justify-content: center; gap: 10px; color: var(--white); border-radius: 999px; background: var(--navy); box-shadow: 0 10px 28px rgba(16,16,66,.28); font-size: 15px; font-weight: 800; text-decoration: none; opacity: 0; pointer-events: none; transform: translateY(12px); transition: opacity .25s var(--ease), transform .25s var(--ease); }
  .mobile-cta.is-visible { opacity: 1; pointer-events: auto; transform: translateY(0); }
}

@media (max-width: 900px) and (min-width: 621px) and (max-height: 500px) {
  .hero-inner {
    grid-template-columns: minmax(0, 1fr) 320px;
    grid-template-areas:
      "copy visual"
      "after visual";
    padding: 28px 0 32px;
    gap: 0 28px;
  }
  .hero h1 { font-size: 36px; }
  .hero-lead { margin-top: 16px; font-size: 16px; line-height: 1.7; }
  .hero-actions { margin-top: 18px; }
  .trust-list { margin-top: 16px; padding-top: 14px; }
  .hero-visual { min-height: 420px; }
  .phone-frame { width: 210px; }
  .result-score { right: -6px; }
  .result-count { left: -10px; }
  .hero-video-caption { font-size: 16px; }
}

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