
/* ============================================================
   Base
   ============================================================ */
html {
  scroll-behavior: smooth;
}

section {
  scroll-margin-top: 72px;
}

*, *::before, *::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

body {
  font-family: 'Noto Sans TC', sans-serif;
  background-color: var(--gold-100);
  color: var(--gray-800);
}

/* ============================================================
   Utilities
   ============================================================ */
.section-inner {
  max-width: 1440px;
  margin-inline: auto;
  padding: 0 10%;
}

.section-label {
  font-family: 'Noto Sans TC', sans-serif;
  font-size: 0.9rem;
  font-weight: 500;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--gray-400);
}

.section-title {
  font-family: 'Noto Serif TC', serif;
  font-weight: 700;
  font-size: clamp(2rem, 3.5vw, 3rem);
  line-height: 1.35;
  color: var(--gray-900);
}

.section-header {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.grid-3col {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
}

.body-text {
  font-family: 'Noto Sans TC', sans-serif;
  font-size: 1rem;
  line-height: 1.9;
  color: var(--gray-500);
}

/* ============================================================
   Header
   ============================================================ */
.header {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 100;
  background-color: var(--gold-50);
  border-bottom: 1px solid var(--gray-400);
}

.header__inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 72px;
}

.header__logo {
  font-family: 'Instrument Serif', serif;
  font-weight: 700;
  font-size: 1.5rem;
  color: var(--gray-900);
  letter-spacing: 0.01em;
}

.header__right {
  display: flex;
  align-items: center;
  gap: 32px;
}

.header__nav {
  display: flex;
  align-items: center;
  gap: 32px;
}

.header__nav-link {
  font-family: 'Noto Sans TC', sans-serif;
  font-weight: 700;
  font-size: 0.9rem;
  color: var(--gray-600);
  text-decoration: none;
  transition: color 0.2s;
}

.header__nav-link:hover {
  color: var(--gold-500);
}

.header__cta {
  display: inline-block;
  padding: 10px 22px;
  background-color: var(--gold-900);
  color: var(--gold-50);
  font-family: 'Noto Sans TC', sans-serif;
  font-size: 0.9rem;
  text-decoration: none;
  transition: background-color 0.2s;
}

.header__cta:hover {
  background-color: var(--gold-500);
}

/* Hamburger button — hidden on desktop/tablet */
.header__hamburger {
  display: none;
  flex-direction: column;
  justify-content: center;
  gap: 5px;
  width: 24px;
  height: 24px;
  background: none;
  border: none;
  cursor: pointer;
  padding: 0;
}

.header__hamburger-line {
  display: block;
  width: 100%;
  height: 1.5px;
  background-color: var(--gray-800);
  transform-origin: center;
  transition:
    transform 0.1s cubic-bezier(0.25, 0.46, 0.45, 0.94),
    opacity 0.3s;
}

.header__hamburger.is-open .header__hamburger-line:nth-child(1) {
  transform: translateY(6.5px) rotate(45deg);
}

.header__hamburger.is-open .header__hamburger-line:nth-child(2) {
  opacity: 0;
}

.header__hamburger.is-open .header__hamburger-line:nth-child(3) {
  transform: translateY(-6.5px) rotate(-45deg);
}

/* Mobile nav overlay (backdrop) */
.mobile-nav {
  position: fixed;
  inset: 0;
  z-index: 99;
  background-color: rgba(0, 0, 0, 0);
  visibility: hidden;
  transition:
    background-color 0.35s cubic-bezier(0.25, 0.46, 0.45, 0.94),
    visibility 0.35s;
}

.mobile-nav.is-open {
  background-color: rgba(0, 0, 0, 0.5);
  visibility: visible;
}

/* Panel — slides down from top, covers top 50% */
.mobile-nav__panel {
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  background-color: var(--gold-50);
  display: flex;
  flex-direction: column;
  padding: 80px 8% 40px;
  transform: translateY(-100%);
  transition: transform 0.35s cubic-bezier(0.25, 0.46, 0.45, 0.94);
}

.mobile-nav.is-open .mobile-nav__panel {
  transform: translateY(0);
}

.mobile-nav__list {
  display: flex;
  flex-direction: column;
  gap: 20px;
}

.mobile-nav__link {
  font-family: 'Noto Sans TC', sans-serif;
  font-weight: 700;
  font-size: 1rem;
  color: var(--gray-900);
  text-decoration: none;
  transition: color 0.2s;
}

.mobile-nav__link:hover {
  color: var(--gold-500);
}

body.nav-open {
  overflow: hidden;
}

/* ============================================================
   Hero Section
   ============================================================ */
.hero {
  background-color: var(--gold-50);
}

.hero__inner {
  position: relative;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 0;
  padding: 160px 10% 220px;
  max-width: 1440px;
  margin-inline: auto;
}

.hero__badge,
.hero__title,
.hero__subtitle,
.hero__btn {
  max-width: 100%;
}

/* wrapper 負責定位 + 漂浮 */
.hero__image-wrapper {
  position: absolute;
  right: 10%;
  top: 372px;
  width: 40%;
  animation: float 5s ease-in-out 1s infinite;
}

.hero__element {
  position: absolute;
  pointer-events: none;
}

/* wrapper 負責定位 + 進場 */
.hero__element--1 {
  width: 60px;
  left: 60px;
  top: 20%;
  transform: translateY(-50%);
  animation: fadeInUp 0.6s cubic-bezier(0.25, 0.46, 0.45, 0.94) 0.5s both;
}

.hero__element--2 {
  width: 80px;
  right: 40px;
  top: -60px;
  animation: fadeInUp 0.6s cubic-bezier(0.25, 0.46, 0.45, 0.94) 0.65s both;
}

/* img 負責旋轉 */
.hero__element img {
  width: 100%;
  display: block;
  animation: spin 12s linear infinite;
}

@keyframes spin {
  from { transform: rotate(0deg); }
  to   { transform: rotate(360deg); }
}

/* image 只負責進場 */
.hero__image {
  width: 100%;
  height: auto;
  object-fit: cover;
  display: block;
  animation: fadeInUp 0.7s cubic-bezier(0.25, 0.46, 0.45, 0.94) 0.3s both;
}

@keyframes float {
  0%, 100% { transform: translateY(0); }
  50%       { transform: translateY(16px); }
}

.hero__badge {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 6px 14px;
  border: 1px solid var(--gold-300);
  border-radius: 999px;
  font-size: 0.8rem;
  font-weight: 700;
  color: var(--gold-700);
  letter-spacing: 0.04em;
  background-color: var(--gold-50);
  animation: fadeInUp 0.6s cubic-bezier(0.25, 0.46, 0.45, 0.94) 0s both;
}

.hero__title {
  font-family: 'Noto Serif TC', serif;
  font-weight: 700;
  font-size: clamp(2.8rem, 5.5vw, 5rem);
  line-height: 1.25;
  color: var(--gray-900);
  display: flex;
  flex-direction: column;
  gap: 4px;
  margin-top: 12px;
  animation: fadeInUp 0.6s cubic-bezier(0.25, 0.46, 0.45, 0.94) 0.12s both;
}

.hero__title-line { display: block; }

.hero__title-line--em {
  color: var(--gold-500);
  font-style: italic;
}

.hero__subtitle {
  font-family: 'Noto Sans TC', sans-serif;
  font-size: 1rem;
  line-height: 1.75;
  color: var(--gray-500);
  margin-top: 20px;
  animation: fadeInUp 0.6s cubic-bezier(0.25, 0.46, 0.45, 0.94) 0.24s both;
}

.hero__btn {
  display: inline-block;
  padding: 14px 32px;
  background-color: var(--gold-500);
  color: #fff;
  font-family: 'Noto Sans TC', sans-serif;
  font-size: 1rem;
  text-decoration: none;
  transition: background-color 0.2s;
  margin-top: 52px;
  animation: fadeInUp 0.6s cubic-bezier(0.25, 0.46, 0.45, 0.94) 0.36s both;
}

.hero__btn:hover {
  background-color: var(--gold-900);
}

@keyframes fadeInUp {
  from { opacity: 0; transform: translateY(24px); }
  to   { opacity: 1; transform: translateY(0); }
}

/* ============================================================
   Services Section
   ============================================================ */
.services {
  background-color: var(--gold-100);
  padding: 100px 0;
}

.services__header {
  align-items: flex-start;
  padding-bottom: 48px;
}

.services__title-kat {
  font-family: 'Instrument Serif', serif;
}

.services__title-accent {
  color: var(--gold-500);
  font-style: italic;
}


.services__card {
  background-color: var(--gold-50);
  border: 1px solid var(--gray-800);
}

.services__card-content {
  padding: 20px 36px 80px 36px;
  display: flex;
  flex-direction: column;
  gap: 0;
  height: 100%;
}

.services__card-icon {
  width: 120px;
  height: 120px;
  object-fit: contain;
  margin-bottom: 0px;
}

.services__card-title-em {
  color: var(--gold-500);
  font-style: normal;
}

.services__card-title {
  font-family: 'Noto Serif TC', serif;
  font-weight: 700;
  font-size: clamp(1.4rem, 2vw, 1.8rem);
  line-height: 1.35;
  color: var(--gray-900);
  margin-bottom: 8px;
}


.services__card-tag {
  font-family: 'Noto Sans TC', sans-serif;
  font-size: 0.9rem;
  font-weight: 600;
  color: var(--gray-400);
  margin-top: auto;
  padding-top: 40px;
}

/* ============================================================
   About Section
   ============================================================ */
.about {
  background-color: var(--gold-900);
  padding: 100px 0;
}

.about__inner {
  display: flex;
  flex-direction: column;
  gap: 48px;
}

.about__label {
  color: var(--gold-500);
}

.about__title {
  color: var(--gold-100);
}

.about__title-en {
  font-family: 'Instrument Serif', serif;
}

.about__body {
  display: grid;
  grid-template-columns: 1.2fr 1fr;
  gap: 80px;
  align-items: stretch;
}

.about__text {
  display: flex;
  flex-direction: column;
  gap: 20px;
}

.about__text p {
  font-family: 'Noto Sans TC', sans-serif;
  font-size: 1rem;
  line-height: 1.9;
  color: var(--gold-100);
}

.about__highlight {
  background-color: var(--gold-700);
  color: inherit;
  padding: 0 2px;
}

.about__callout {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-top: 4px;
  padding: 16px 20px;
  background-color: var(--gold-800);
  border-left: 3px solid var(--gold-500);
}

.about__callout-icon {
  flex-shrink: 0;
  font-family: 'Instrument Serif', serif;
  font-size: 1.1rem;
  line-height: 1;
  color: var(--gold-500);
}

.about__callout-text {
  font-family: 'Noto Sans TC', sans-serif;
  font-size: 0.95rem;
  line-height: 1.7;
  color: var(--gold-100);
  margin: 0;
}

.about__callout-link {
  color: var(--gold-300);
  text-decoration: none;
  transition: color 0.2s ease;
}

.about__callout-link:hover {
  color: var(--gold-500);
}

.reviews__highlight {
  background-color: var(--gold-100);
  color: inherit;
  padding: 0 2px;
}

.about__links {
  display: grid;
  grid-template-columns: 18px max-content auto;
  column-gap: 12px;
  row-gap: 20px;
  align-items: center;
  align-content: end;
}

.about__link {
  display: contents;
  font-family: 'Instrument Serif', serif;
  font-size: 1.1rem;
  color: var(--gold-200);
  text-decoration: none;
  transition: color 0.2s;
}

.about__link:hover {
  color: var(--gold-600);
}

.about__link-logo {
  opacity: 0.85;
}

.about__link-text {
  font-family: 'Instrument Serif', serif;
  font-size: 1.1rem;
  color: var(--gold-200);
  transition: color 0.2s;
}

.about__link:hover .about__link-text {
  color: var(--gold-600);
}

.about__link-arrow {
  position: relative;
  height: 28px;
  width: 120px;
  align-self: center;
  transition: width 0.5s cubic-bezier(0.25, 0.46, 0.45, 0.94);
}

.about__link:hover .about__link-arrow {
  width: 180px;
}

.about__link-arrow::before {
  content: '';
  position: absolute;
  left: 0;
  right: 0;
  top: 50%;
  height: 1px;
  background: var(--gold-200);
  opacity: 0.7;
}

.about__link-arrow::after {
  content: '';
  position: absolute;
  right: 0;
  top: 50%;
  width: 22px;
  height: 1px;
  background: var(--gold-200);
  transform-origin: right center;
  transform: rotate(30deg);
  opacity: 0.7;
}

.about__image-col {
  display: flex;
  justify-content: center;
}

.about__image {
  width: 100%;
  max-width: 480px;
  height: auto;
  object-fit: cover;
  display: block;
}

/* ============================================================
   Features Section
   ============================================================ */
.features {
  background: linear-gradient(to bottom, #F7F4EF 88%, #EDE5D6 88%);
  padding: 100px 0;
}

.features__inner {
  display: flex;
  flex-direction: column;
  gap: 48px;
}

.features__title-kat {
  font-family: 'Instrument Serif', serif;
}

.features__body {
  display: grid;
  grid-template-columns: 0.8fr 1.6fr;
  grid-template-rows: auto 1fr;
  column-gap: 64px;
  row-gap: 48px;
  align-items: start;
}

.features__side {
  grid-column: 1;
  grid-row: 1;
}

.features__list {
  grid-column: 2;
  grid-row: 1 / span 2;
  display: flex;
  flex-direction: column;
  gap: 0;
}

.features__img {
  grid-column: 1;
  grid-row: 2;
  width: 100%;
  height: auto;
  display: block;
  animation: float 5s ease-in-out infinite;
}

.features__item {
  display: flex;
  align-items: center;
  gap: 24px;
  padding: 32px 0;
  border-bottom: 1px solid var(--gray-800);
}

.features__item:first-child {
  border-top: 1px solid var(--gray-800);
}

.features__item-num {
  font-family: 'Instrument Serif', serif;
  font-size: 4rem;
  color: var(--gold-500);
  flex-shrink: 0;
  line-height: 1;
}

.features__item-title {
  font-family: 'Noto Serif TC', serif;
  font-weight: 700;
  font-size: 1.2rem;
  color: var(--gray-900);
  margin-bottom: 0px;
}


/* ============================================================
   Pricing Section
   ============================================================ */
.pricing {
  background-color: var(--gold-100);
  padding: 0 0 100px 0;
  scroll-margin-top: 160px;
}

.pricing__inner {
  display: flex;
  flex-direction: column;
  gap: 48px;
}

.pricing__grid {
  align-items: start;
}

.pricing__card {
  background-color: var(--gold-50);
  border: 1px solid var(--gray-800);
  padding: 40px 36px;
  display: flex;
  flex-direction: column;
  gap: 20px;
  position: relative;
}

.pricing__card-tag {
  font-family: 'Noto Sans TC', sans-serif;
  font-size: 0.78rem;
  font-weight: 500;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--gold-400);
  margin-bottom: -8px;
}

.pricing__card-label {
  font-family: 'Noto Serif TC', serif;
  font-weight: 700;
  font-size: 1.1rem;
  color: var(--gold-900);
}

.pricing__card-price {
  display: flex;
  align-items: baseline;
  gap: 8px;
  line-height: 1;
  flex-wrap: wrap;
}

.pricing__card-currency {
  font-family: 'Instrument Serif', serif;
  font-size: clamp(2.4rem, 3.5vw, 3.2rem);
  color: var(--gray-900);
  line-height: 1;
}

.pricing__card-amount {
  font-family: 'Instrument Serif', serif;
  font-size: clamp(2.4rem, 3.5vw, 3.2rem);
  color: var(--gray-900);
}

.pricing__card-original {
  font-family: 'Instrument Serif', serif;
  font-size: 1.2rem;
  color: var(--gray-400);
  text-decoration: line-through;
  align-self: flex-end;
  padding-bottom: 6px;
}

.pricing__card-list {
  list-style: none;
  padding: 0;
  margin: 0;
  display: flex;
  flex-direction: column;
  gap: 8px;
  border-top: 1px solid var(--gray-200);
  padding-top: 20px;
}

.pricing__card-list li {
  font-family: 'Noto Sans TC', sans-serif;
  font-size: 1rem;
  line-height: 1.6;
  color: var(--gray-500);
  padding-left: 24px;
  position: relative;
}

.pricing__card-list li::before {
  content: '✦';
  position: absolute;
  left: 0;
  color: var(--gold-400);
  font-size: 1rem;
  top: 0.05rem;
}

.pricing__card-btn {
  display: inline-block;
  margin-top: 8px;
  padding: 12px 24px;
  text-align: center;
  font-family: 'Noto Sans TC', sans-serif;
  font-size: 0.9rem;
  font-weight: 700;
  text-decoration: none;
  background-color: var(--gold-900);
  color: var(--gold-50);
  border: none;
  transition: background-color 0.25s;
}

.pricing__card-btn:hover {
  background-color: var(--gold-500);
}

.pricing__process {
  display: grid;
  grid-template-columns: 1fr 380px;
  grid-template-areas:
    "left img"
    "note note";
  column-gap: 32px;
  row-gap: 40px;
  align-items: start;
  border-top: 1px solid var(--gray-900);
  padding-top: 60px;
  margin-top: 32px;
}

.pricing__process-left {
  grid-area: left;
  display: flex;
  flex-direction: column;
  gap: 32px;
}

.pricing__img-wrapper {
  grid-area: img;
  align-self: start;
  position: relative;
  z-index: 2;
  margin-right: 40px;
  margin-top: -60px;
  animation: float 5s ease-in-out 0.8s infinite;
}

.pricing__img {
  width: 100%;
  height: auto;
  display: block;
}

.pricing__steps {
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.pricing__step {
  display: flex;
  gap: 12px;
  align-items: flex-start;
}

.pricing__step-num {
  font-family: 'Instrument Serif', serif;
  font-size: 1.5rem;
  color: var(--gold-400);
  flex-shrink: 0;
  line-height: 1.4;
  min-width: 20px;
}


.pricing__step-em {
  color: var(--gold-600);
  font-weight: 700;
}

.pricing__note {
  grid-area: note;
  background-color: var(--gold-200);
  padding: 32px 36px;
  display: flex;
  flex-direction: column;
  gap: 16px;
  position: relative;
  z-index: 1;
}

.pricing__note-title {
  font-family: 'Noto Serif TC', serif;
  font-weight: 700;
  font-size: 1rem;
  color: var(--gray-800);
}


/* ============================================================
   Reviews Section
   ============================================================ */
.reviews {
  background-color: var(--gold-50);
  padding: 100px 0;
}

.reviews__inner {
  display: flex;
  flex-direction: column;
  gap: 56px;
}

.reviews__header {
  gap: 16px;
}

.reviews__grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 32px;
  padding-top: 12px;
}

.reviews__card {
  background-color: #fff;
  border: 1px solid var(--gray-800);
  padding: 48px 32px;
  display: flex;
  flex-direction: column;
  position: relative;
  overflow: visible;
}

.reviews__card-pin {
  position: absolute;
  top: -12px;
  right: 20px;
  width: 36px;
  height: auto;
  z-index: 1;
}

.reviews__card-body {
  color: var(--gray-600);
}

.reviews__more {
  display: flex;
  justify-content: center;
}

.reviews__more-btn {
  display: inline-block;
  padding: 12px 36px;
  background-color: var(--gold-900);
  color: var(--gold-50);
  font-family: 'Noto Sans TC', sans-serif;
  font-size: 0.9rem;
  text-decoration: none;
  transition: background-color 0.2s;
}

.reviews__more-btn:hover {
  background-color: var(--gold-500);
}

/* ============================================================
   Further Reading Section
   ============================================================ */
.reading {
  background-color: var(--gold-900);
  padding: 100px 0;
}

.reading__inner {
  display: flex;
  flex-direction: column;
  gap: 56px;
}

.reading__label {
  color: var(--gold-500);
}

.reading__title {
  color: var(--gold-100);
}

.reading__grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
}

.reading__card {
  position: relative;
  background-color: var(--gold-50);
  border: 1px solid var(--gray-800);
  display: flex;
  flex-direction: column;
  overflow: hidden;
  transition: transform 0.25s cubic-bezier(0.25, 0.46, 0.45, 0.94),
              box-shadow 0.25s cubic-bezier(0.25, 0.46, 0.45, 0.94);
  cursor: pointer;
}

.reading__card:hover {
  transform: translateY(-4px);
  box-shadow: 0 12px 32px rgba(0, 0, 0, 0.08);
}

.reading__card-img {
  width: 100%;
  aspect-ratio: 16 / 9;
  background-color: var(--gold-200);
  border-bottom: 1px solid var(--gray-800);
  flex-shrink: 0;
  overflow: hidden;
}

.reading__card-img img {
  width: 100%;
  height: 100%;
  transform: scale(1.05);
  object-fit: cover;
  display: block;
  transition: transform 0.4s cubic-bezier(0.25, 0.46, 0.45, 0.94);
}

.reading__card:hover .reading__card-img img {
  transform: scale(1.1);
}

.reading__card-body {
  padding: 28px 28px 32px;
  display: flex;
  flex-direction: column;
  gap: 12px;
  flex: 1;
}

.reading__card-title {
  font-family: 'Noto Serif TC', serif;
  font-weight: 700;
  font-size: 1.1rem;
  line-height: 1.55;
  color: var(--gray-900);
}

.reading__card-excerpt {
  font-family: 'Noto Sans TC', sans-serif;
  font-size: 0.95rem;
  line-height: 1.85;
  color: var(--gray-500);
  flex: 1;
}

.reading__card-link {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  margin-top: 8px;
  font-family: 'Noto Sans TC', sans-serif;
  font-size: 0.9rem;
  font-weight: 700;
  color: var(--gold-600);
  text-decoration: none;
  transition: color 0.2s;
}

.reading__card-link::after {
  content: '';
  position: absolute;
  inset: 0;
}

.reading__card:hover .reading__card-link {
  color: var(--gold-900);
}

.reading__card-arrow {
  position: relative;
  display: inline-block;
  width: 32px;
  height: 1px;
  background-color: currentColor;
  flex-shrink: 0;
  transition: width 0.25s cubic-bezier(0.25, 0.46, 0.45, 0.94);
}

.reading__card-arrow::after {
  content: '';
  position: absolute;
  right: 0;
  top: 0;
  width: 8px;
  height: 1px;
  background-color: currentColor;
  transform-origin: right center;
  transform: rotate(35deg);
}

.reading__card-link:hover .reading__card-arrow {
  width: 40px;
}


/* ============================================================
   FAQ Section
   ============================================================ */
.faq {
  background-color: var(--gold-50);
  padding: 100px 0;
}

.faq__inner {
  display: flex;
  flex-direction: column;
  gap: 56px;
}

.faq__title-kat {
  font-family: 'Instrument Serif', serif;
}

.faq__list {
  display: flex;
  flex-direction: column;
  border-top: 1px solid var(--gray-900);
}

.faq__item {
  border-bottom: 1px solid var(--gold-900);
}

.faq__question {
  list-style: none;
  font-family: 'Noto Sans TC', sans-serif;
  font-size: 1rem;
  font-weight: 700;
  color: var(--gray-800);
  padding: 24px 8px;
  cursor: pointer;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 16px;
  transition: color 0.2s;
}

.faq__question::-webkit-details-marker { display: none; }

.faq__question:hover {
  color: var(--gold-500);
}

.faq__item[open] .faq__question {
  color: var(--gray-800);
}

.faq__icon {
  position: relative;
  flex-shrink: 0;
  width: 16px;
  height: 16px;
  transition: transform 0.35s cubic-bezier(0.25, 0.46, 0.45, 0.94);
}

.faq__icon::before,
.faq__icon::after {
  content: '';
  position: absolute;
  background-color: var(--gray-900);
  border-radius: 1px;
}

/* horizontal line */
.faq__icon::before {
  width: 100%;
  height: 1px;
  top: 50%;
  left: 0;
  transform: translateY(-50%);
}

/* vertical line */
.faq__icon::after {
  width: 1px;
  height: 100%;
  left: 50%;
  top: 0;
  transform: translateX(-50%);
}

.faq__item[open] .faq__icon {
  transform: rotate(45deg);
}

.faq__answer-wrap {
  overflow: hidden;
  max-height: 0;
  transition: max-height 0.4s cubic-bezier(0.25, 0.46, 0.45, 0.94);
}

.faq__answer {
  font-family: 'Noto Sans TC', sans-serif;
  font-size: 0.95rem;
  line-height: 1.9;
  color: var(--gray-500);
  padding: 0 8px 28px 8px;
  max-width: 900px;
}

.faq__answer .faq__copy-box {
  margin-top: 12px;
}

.faq__inline-link {
  display: inline;
  color: var(--gold-600);
  text-decoration: underline;
  text-underline-offset: 2px;
  transition: color 0.15s;
}

.faq__inline-link:hover {
  color: var(--gold-900);
}

.faq__copy-box {
  position: relative;
  background-color: var(--gold-100);
  padding: 16px 52px 16px 18px;
}

.faq__copy-text {
  font-family: 'Noto Sans TC', sans-serif;
  font-size: 0.95rem;
  line-height: 1.9;
  color: var(--gray-500);
}

.faq__copy-btn {
  position: absolute;
  top: 16px;
  right: 12px;
  width: 32px;
  height: 32px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: none;
  border: none;
  padding: 0;
  color: var(--gold-600);
  cursor: pointer;
  transition: color 0.15s;
}

.faq__copy-btn:hover {
  color: var(--gold-900);
}

.faq__copy-toast {
  position: absolute;
  bottom: calc(100% + 6px);
  left: 50%;
  transform: translateX(-50%) translateY(4px);
  background-color: var(--gold-900);
  color: var(--gold-50);
  font-family: 'Noto Sans TC', sans-serif;
  font-size: 0.75rem;
  white-space: nowrap;
  padding: 4px 8px;
  pointer-events: none;
  opacity: 0;
  transition: opacity 0.15s, transform 0.15s;
}

.faq__copy-btn--copied .faq__copy-toast {
  opacity: 1;
  transform: translateX(-50%) translateY(0);
}

/* ============================================================
   Footer
   ============================================================ */
.footer {
  background-color: var(--gold-900);
  padding: 56px 0;
}

.footer__inner {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 32px;
}

.footer__left {
  display: flex;
  flex-direction: column;
  gap: 20px;
}

.footer__logo {
  font-family: 'Instrument Serif', serif;
  font-size: 2rem;
  color: var(--gold-200);
  line-height: 1;
}

.footer__links {
  display: flex;
  align-items: center;
  gap: 24px;
}

.footer__link {
  display: flex;
  align-items: center;
  gap: 8px;
  font-family: 'Instrument Serif', serif;
  font-size: 1rem;
  color: var(--gold-400);
  text-decoration: none;
  transition: color 0.2s;
}

.footer__link:hover {
  color: var(--gold-600);
}

.footer__copy {
  font-family: 'Instrument Serif', serif;
  font-size: 0.85rem;
  color: var(--gold-600);
}

/* ============================================================
   Scroll Fade-in
   ============================================================ */
.scroll-fade {
  opacity: 0;
  transform: translateY(28px);
  transition:
    opacity 0.65s cubic-bezier(0.25, 0.46, 0.45, 0.94) var(--delay, 0s),
    transform 0.65s cubic-bezier(0.25, 0.46, 0.45, 0.94) var(--delay, 0s);
}

.scroll-fade.is-visible {
  opacity: 1;
  transform: translateY(0);
}

/* ============================================================
   RWD — Tablet (≤ 1024px)
   ============================================================ */
@media (max-width: 1024px) {
  .section-inner {
    padding: 0 6%;
  }

  /* 1. Hero: bg overlap effect */
  .hero__inner {
    padding: 112px 6% 0;
  }

  .hero__btn {
    font-size: 0.9rem;
    margin-top: 32px;
  }

  .hero__image-wrapper {
    position: relative;
    right: auto;
    top: auto;
    width: 65%;
    margin-top: 40px;
    align-self: center;
    z-index: 2;
    margin-bottom: -16%;
  }

  /* 2. Section vertical padding smaller */
  .services, .about, .features, .reviews, .reading, .faq {
    padding: 72px 0;
  }

  .pricing {
    padding: 0 0 72px 0;
  }

  /* 3. Section header-to-content gap smaller */
  .about__inner,
  .features__inner,
  .pricing__inner,
  .reviews__inner,
  .reading__inner,
  .faq__inner {
    gap: 36px;
  }

  .services__header {
    padding-bottom: 36px;
  }

  /* About */
  .about__body {
    grid-template-columns: 1fr;
    gap: 40px;
  }

  /* 4. Features: illustration smaller, item numbers smaller */
  .features__body {
    display: flex;
    flex-direction: column;
    gap: 40px;
  }

  .features__side {
    position: static;
  }

  .features__img {
    width: 50%;
    margin-inline: auto;
  }

  .features__item-num {
    font-size: 2.8rem;
  }

  /* Grid */
  .grid-3col {
    grid-template-columns: 1fr;
  }

  /* Reviews */
  .reviews__grid {
    grid-template-columns: repeat(2, 1fr);
  }

  /* 5. Pricing: hide illustration, reduce process spacing */
  .pricing__process {
    display: flex;
    flex-direction: column;
    gap: 40px;
    padding-top: 48px;
    margin-top: 12px;
  }

  .pricing__img-wrapper {
    display: none;
  }

  /* 6. Reading: horizontal card layout */
  .reading__grid {
    grid-template-columns: 1fr;
    gap: 16px;
  }

  .reading__card {
    flex-direction: row;
  }

  .reading__card-img {
    width: 260px;
    flex-shrink: 0;
    aspect-ratio: unset;
    border-bottom: none;
    border-right: 1px solid var(--gray-800);
  }

  /* 8. Services section: card titles and section title one line */
  .services__card-title br {
    display: none;
  }

  /* Reviews: fix stagger order for 2-col grid */
  .reviews__card:nth-child(odd)  { --delay: 0s !important; }
  .reviews__card:nth-child(even) { --delay: 0.15s !important; }
}

/* ============================================================
   RWD — Mobile (≤ 640px)
   ============================================================ */
@media (max-width: 640px) {
  .section-inner {
    padding: 0 6%;
  }

  /* 1. Header smaller */
  .header__inner {
    height: 56px;
  }

  .header__right {
    gap: 16px;
  }
  section {
    scroll-margin-top: 32px;
  }

  .pricing {
    scroll-margin-top: 88px;
  }

  .header__nav {
    display: none;
  }

  .header__hamburger {
    display: flex;
  }

  /* 2. Hero adjustments */
  .hero__inner {
    padding: 92px 6% 0;
  }

  .hero__title {
    font-size: clamp(2rem, 8vw, 2.8rem);
  }

  .hero__btn {
    padding: 10px 22px;
    font-size: 0.9rem;
    margin-top: 32px;
  }

  .hero__image-wrapper {
    width: 100%;
    align-self: stretch;
    position: relative;
    z-index: 2;
    margin-bottom: -28%;
  }

  .hero__element--1 {
    width: 36px;
  }

  .hero__element--2 {
    width: 52px;
  }

  /* 3. Section vertical padding smaller */
  .services {
    padding: 60px 0;
  }

  .about {
    padding: 60px 0;
  }

  .features {
    padding: 60px 0;
  }

  .pricing {
    padding: 0 0 60px 0;
  }

  .reviews {
    padding: 60px 0;
  }

  .reading {
    padding: 60px 0;
  }

  .faq {
    padding: 60px 0;
  }

  /* 4. Card padding smaller */
  .services__card-content {
    padding: 16px 20px 48px;
  }

  .pricing__card {
    padding: 24px 20px;
  }

  .reviews__card {
    padding: 32px 20px;
  }

  .reading__card-body {
    padding: 20px 20px 24px;
  }

  .pricing__note {
    padding: 20px 20px;
  }

  /* 5. Section header-to-content gap smaller */
  .about__inner,
  .features__inner,
  .pricing__inner,
  .reviews__inner,
  .reading__inner,
  .faq__inner {
    gap: 28px;
  }

  .services__header {
    padding-bottom: 24px;
  }

  /* 6. Features: item number smaller */
  .features__item-num {
    font-size: 2.5rem;
  }

  /* 7. Pricing process spacing */
  .pricing__process {
    gap: 20px;
    padding-top: 40px;
    margin-top: 12px;
  }

  .pricing__img-wrapper {
    width: 65%;
    align-self: center;
    margin-top: -18%;
    margin-right: 0;
    animation: none;
  }

  /* 8. Footer padding smaller */
  .footer {
    padding: 36px 0;
  }

  /* Footer layout */
  .footer__inner {
    flex-direction: column;
    align-items: flex-start;
    gap: 24px;
  }

  /* Reviews */
  .reviews__grid {
    grid-template-columns: 1fr;
  }

  .reviews__card-pin {
    width: 28px;
  }

  /* Features illustration smaller */
  .features__img {
    width: 70%;
    margin-inline: auto;
  }

  /* Pricing illustration hidden */
  .pricing__img-wrapper {
    display: none;
  }

  /* Revert reading cards to vertical layout */
  .reading__card {
    flex-direction: column;
  }

  .reading__card-img {
    width: 100%;
    aspect-ratio: 16 / 9;
    border-bottom: 1px solid var(--gray-800);
    border-right: none;
  }

  /* Services title: allow wrapping on mobile */
  .services__title {
    white-space: normal;
  }

  /* Reviews: all cards same delay on 1-col */
  .reviews__card:nth-child(n) { --delay: 0s !important; }
}

