@font-face {
  font-family: "Taipei Sans TC";
  src: url("../assets/fonts/Taipei-Sans-TC-Beta-Light-2.ttf") format("truetype");
  font-weight: 300;
  font-style: normal;
  font-display: swap;
}

@font-face {
  font-family: "Taipei Sans TC";
  src: url("../assets/fonts/Taipei-Sans-TC-Beta-Bold-2.ttf") format("truetype");
  font-weight: 700;
  font-style: normal;
  font-display: swap;
}

:root {
  --accent: #706e52;
  --accent-hover: #5f5d46;
  --text: #1a1a1a;
  --text-muted: #5c5c5c;
  --bg: #ffffff;
  --grid-line: rgba(0, 0, 0, 0.04);
  --font-taipei: "Taipei Sans TC", "PingFang SC", sans-serif;
}

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

html,
body {
  margin: 0;
  min-height: 100%;
}

body {
  font-family: var(--font-taipei);
  font-weight: 300;
  color: var(--text);
  background: var(--bg);
  -webkit-font-smoothing: antialiased;
}

.page {
  position: relative;
  min-height: 100vh;
  overflow-x: hidden;
  background-color: var(--bg);
  background-image: repeating-linear-gradient(
      -12deg,
      transparent,
      transparent 78px,
      var(--grid-line) 78px,
      var(--grid-line) 79px
    ),
    repeating-linear-gradient(
      78deg,
      transparent,
      transparent 78px,
      var(--grid-line) 78px,
      var(--grid-line) 79px
    );
}

.topbar {
  position: relative;
  z-index: 2;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 28px clamp(24px, 5vw, 64px);
}

.brand-mark {
  display: inline-flex;
  align-items: center;
  text-decoration: none;
  line-height: 0;
}

.brand-mark img {
  width: 40px;
  height: 40px;
  border-radius: 10px;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.12);
  transition: transform 0.15s ease, box-shadow 0.15s ease;
}

a.brand-mark:hover img {
  transform: translateY(-1px);
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.16);
}

.lang-switch {
  display: flex;
  align-items: center;
  gap: 10px;
}

.lang-btn {
  border: none;
  background: none;
  padding: 4px 2px;
  font: inherit;
  font-family: var(--font-taipei);
  font-weight: 300;
  font-size: 14px;
  color: var(--text-muted);
  cursor: pointer;
  transition: color 0.15s ease;
}

.lang-btn:hover {
  color: var(--text);
}

.lang-btn.is-active {
  color: var(--accent);
  font-weight: 700;
}

.lang-divider {
  color: #d0d0d0;
  font-size: 13px;
  user-select: none;
}

.hero {
  position: relative;
  z-index: 1;
  display: flex;
  align-items: flex-start;
  justify-content: center;
  min-height: calc(100vh - 88px);
  padding: clamp(32px, 6vh, 88px) clamp(24px, 5vw, 64px) 80px;
}

.hero-copy {
  width: 100%;
  max-width: 960px;
  margin: 0 auto;
  text-align: center;
}

.hero-headline {
  display: inline-flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: center;
  gap: 14px 16px;
  margin: 0 0 28px;
  font-size: clamp(2rem, 4.5vw, 3.25rem);
  font-weight: 700;
  line-height: 1.2;
  letter-spacing: 0.02em;
}

.hero-tagline {
  display: inline-flex;
  flex-wrap: wrap;
  align-items: baseline;
  justify-content: center;
}

.hero-rotate {
  display: inline-block;
  text-align: left;
  transition: opacity 0.36s ease;
}

.hero-rotate.is-out {
  opacity: 0;
}

.hero-rotate-measure {
  position: absolute;
  visibility: hidden;
  pointer-events: none;
  white-space: nowrap;
  font-size: clamp(2rem, 4.5vw, 3.25rem);
  font-weight: 700;
  line-height: 1.2;
  letter-spacing: 0.02em;
}

.hero-accent {
  width: 14px;
  height: 14px;
  border-radius: 3px;
  background: var(--accent);
  flex-shrink: 0;
}

.hero-desc {
  margin: 0 auto 36px;
  max-width: 620px;
  font-weight: 300;
  font-size: clamp(1rem, 1.6vw, 1.125rem);
  line-height: 1.85;
  color: var(--text-muted);
}

.cta-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 168px;
  padding: 14px 32px;
  border-radius: 999px;
  background: var(--accent);
  color: #fff;
  font-family: var(--font-taipei);
  font-size: 16px;
  font-weight: 700;
  text-decoration: none;
  transition: background 0.15s ease, transform 0.15s ease;
}

.cta-btn:hover {
  background: var(--accent-hover);
  transform: translateY(-1px);
}

.cta-btn:active {
  transform: translateY(0);
}

.hero-showcase {
  margin: 48px auto 0;
  width: 100%;
  max-width: 920px;
}

.hero-showcase-viewport {
  overflow: hidden;
  width: 100%;
}

.hero-showcase-track {
  display: flex;
  width: 100%;
  transition: transform 0.55s cubic-bezier(0.4, 0, 0.2, 1);
  will-change: transform;
}

.hero-showcase-slide {
  flex: 0 0 100%;
  width: 100%;
  min-width: 100%;
}

.hero-showcase-slide img {
  display: block;
  width: 100%;
  height: auto;
  border-radius: 14px;
  box-shadow: 0 24px 60px rgba(0, 0, 0, 0.1);
}

.hero-showcase-caption {
  margin: 20px auto 0;
  max-width: 720px;
  font-weight: 700;
  font-size: clamp(0.95rem, 1.5vw, 1.05rem);
  line-height: 1.7;
  color: var(--text);
}

@media (max-width: 640px) {
  .hero-headline {
    gap: 12px;
  }

  .hero-showcase {
    margin-top: 32px;
  }

  .hero-showcase-caption {
    margin-top: 16px;
  }
}

/* —— Insights —— */
.insights {
  position: relative;
  z-index: 1;
  padding: 72px clamp(24px, 5vw, 64px) 96px;
  border-top: 1px solid rgba(0, 0, 0, 0.06);
}

.insights-inner {
  max-width: 960px;
  margin: 0 auto;
}

.insights-title {
  margin: 0 0 8px;
  font-size: clamp(1.5rem, 3vw, 2rem);
  font-weight: 700;
  text-align: center;
}

.insights-subtitle {
  margin: 0 0 40px;
  font-weight: 300;
  font-size: 15px;
  color: var(--text-muted);
  text-align: center;
}

.insights-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
  gap: 28px;
}

.insight-card {
  display: flex;
  flex-direction: column;
  overflow: hidden;
  border-radius: 14px;
  background: #fff;
  box-shadow: 0 12px 36px rgba(0, 0, 0, 0.06);
  text-decoration: none;
  color: inherit;
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.insight-card:hover {
  transform: translateY(-3px);
  box-shadow: 0 18px 44px rgba(0, 0, 0, 0.1);
}

.insight-card-cover {
  aspect-ratio: 16 / 10;
  overflow: hidden;
  background: #eee;
}

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

.insight-card-body {
  display: flex;
  flex-direction: column;
  gap: 10px;
  padding: 20px 20px 22px;
  text-align: left;
}

.insight-card-tag {
  margin: 0;
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.04em;
  color: var(--accent);
}

.insight-card-title {
  margin: 0;
  font-size: 17px;
  font-weight: 700;
  line-height: 1.45;
}

.insight-card-excerpt {
  margin: 0;
  font-weight: 300;
  font-size: 14px;
  line-height: 1.7;
  color: var(--text-muted);
}

.insight-card-more {
  margin-top: 4px;
  font-size: 13px;
  font-weight: 700;
  color: var(--accent);
}

/* —— Pricing —— */
.pricing {
  position: relative;
  z-index: 1;
  padding: 72px clamp(24px, 5vw, 64px) 96px;
  border-top: 1px solid rgba(0, 0, 0, 0.06);
  background: rgba(112, 110, 82, 0.04);
}

.pricing-inner {
  max-width: 1040px;
  margin: 0 auto;
}

.pricing-title {
  margin: 0 0 8px;
  font-size: clamp(1.5rem, 3vw, 2rem);
  font-weight: 700;
  text-align: center;
}

.pricing-subtitle {
  margin: 0 0 40px;
  font-weight: 300;
  font-size: 15px;
  color: var(--text-muted);
  text-align: center;
}

.pricing-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
  align-items: stretch;
}

.price-card {
  position: relative;
  display: flex;
  flex-direction: column;
  padding: 28px 24px 26px;
  border-radius: 14px;
  background: #fff;
  border: 1px solid rgba(0, 0, 0, 0.08);
  box-shadow: 0 10px 28px rgba(0, 0, 0, 0.04);
  text-align: left;
}

.price-card-featured {
  border-color: var(--accent);
  box-shadow: 0 14px 36px rgba(112, 110, 82, 0.18);
}

.price-card-badge {
  position: absolute;
  top: 14px;
  right: 14px;
  margin: 0;
  padding: 4px 10px;
  border-radius: 999px;
  background: var(--accent);
  color: #fff;
  font-size: 12px;
  font-weight: 700;
}

.price-card-name {
  margin: 0 0 12px;
  font-size: 18px;
  font-weight: 700;
}

.price-card-price {
  margin: 0 0 8px;
  font-size: 32px;
  font-weight: 700;
  line-height: 1.1;
}

.price-card-unit {
  font-size: 15px;
  font-weight: 300;
  color: var(--text-muted);
}

.price-card-save {
  margin: 0 0 8px;
  font-size: 13px;
  font-weight: 700;
  color: var(--accent);
}

.price-card-desc {
  margin: 0 0 20px;
  min-height: 3em;
  font-weight: 300;
  font-size: 14px;
  line-height: 1.6;
  color: var(--text-muted);
}

.price-card-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 100%;
  margin-bottom: 22px;
  padding: 12px 16px;
  border-radius: 10px;
  background: var(--accent);
  color: #fff;
  font-family: var(--font-taipei);
  font-size: 15px;
  font-weight: 700;
  text-decoration: none;
  transition: background 0.15s ease;
}

.price-card-btn:hover {
  background: var(--accent-hover);
}

.price-card-features {
  margin: 0;
  padding: 0;
  list-style: none;
}

.price-card-features li {
  position: relative;
  margin: 0 0 10px;
  padding-left: 22px;
  font-weight: 300;
  font-size: 13px;
  line-height: 1.5;
  color: var(--text);
}

.price-card-features li::before {
  content: "✓";
  position: absolute;
  left: 0;
  top: 0;
  font-weight: 700;
  color: var(--accent);
}

.pricing-credits-note {
  margin: 28px 0 0;
  font-weight: 300;
  font-size: 13px;
  color: var(--text-muted);
  text-align: center;
}

@media (max-width: 900px) {
  .pricing-grid {
    grid-template-columns: 1fr;
    max-width: 420px;
    margin: 0 auto;
  }
}

/* —— Article page —— */
.page-article .topbar {
  max-width: 860px;
  margin: 0 auto;
  width: 100%;
}

.article {
  max-width: 760px;
  margin: 0 auto;
  padding: 24px clamp(24px, 5vw, 40px) 96px;
}

.article-back {
  display: inline-block;
  margin-bottom: 28px;
  font-size: 14px;
  font-weight: 300;
  color: var(--text-muted);
  text-decoration: none;
}

.article-back:hover {
  color: var(--accent);
}

.article-tag {
  margin: 0 0 12px;
  font-size: 13px;
  font-weight: 700;
  letter-spacing: 0.04em;
  color: var(--accent);
}

.article-title {
  margin: 0 0 28px;
  font-size: clamp(1.6rem, 3.5vw, 2.25rem);
  font-weight: 700;
  line-height: 1.35;
}

.article-dek {
  margin: -12px 0 28px;
  font-weight: 300;
  font-size: clamp(1rem, 2vw, 1.15rem);
  line-height: 1.6;
  color: var(--text-muted);
}

.article-cover {
  display: block;
  width: 100%;
  height: auto;
  margin: 0 0 36px;
  border-radius: 14px;
  box-shadow: 0 16px 40px rgba(0, 0, 0, 0.08);
}

.article-body {
  font-size: 16px;
  font-weight: 300;
  line-height: 1.9;
  color: var(--text);
}

.article-body h2 {
  margin: 2.2em 0 0.8em;
  font-size: 1.35rem;
  font-weight: 700;
  line-height: 1.4;
}

.article-body h3 {
  margin: 1.6em 0 0.6em;
  font-size: 1.1rem;
  font-weight: 700;
  line-height: 1.45;
}

.article-body p {
  margin: 0 0 1.1em;
}

.article-body ul,
.article-body ol {
  margin: 0 0 1.2em;
  padding-left: 1.35em;
}

.article-body li {
  margin: 0 0 0.45em;
  line-height: 1.75;
}

.article-callout {
  margin: 1.4em 0;
  padding: 16px 18px;
  border-left: 3px solid var(--accent);
  background: rgba(112, 110, 82, 0.08);
  border-radius: 0 10px 10px 0;
}

.article-callout p {
  margin: 0 0 0.6em;
}

.article-callout p:last-child {
  margin-bottom: 0;
}

.article-callout-meta {
  background: rgba(0, 0, 0, 0.04);
  border-left-color: #999;
}

.article-qa {
  margin: 0 0 1.15em;
}

.article-speaker {
  font-weight: 700;
  color: var(--accent);
}

.article-figure {
  margin: 1.6em 0;
}

.article-figure img {
  display: block;
  width: 100%;
  height: auto;
  border-radius: 12px;
  box-shadow: 0 12px 32px rgba(0, 0, 0, 0.08);
}

.article-footer {
  margin-top: 56px;
  padding-top: 36px;
  border-top: 1px solid rgba(0, 0, 0, 0.08);
  text-align: center;
}

.article-cta-note {
  margin: 0 0 20px;
  font-weight: 700;
  font-size: 15px;
  color: var(--text);
}
