:root {
  --fs-bg-base: #f7f8fc;
  --fs-accent-ai: #304ffe;
  --fs-neutral-mountain: #d1d9e6;
  --fs-text-primary: #1a1d23;
  --fs-text-secondary: #6b778c;
  --fs-text-gold: #d4af37;
  --fs-text-on-accent: #ffffff;
  --fs-element-gold: #f2e9d8;
  --fs-element-wood: #d0e3d8;
  --fs-element-water: #d6e1e8;
  --fs-element-fire: #efdcd8;
  --fs-element-earth: #e5e0d8;
  --fs-glass-bg: rgba(255, 255, 255, 0.45);
  --fs-glass-border: rgba(255, 255, 255, 0.8);
  --fs-shadow-soft: 0 12px 32px rgba(48, 79, 254, 0.04);
  --fs-shadow-float: 0 20px 48px rgba(48, 79, 254, 0.08);
  --fs-transition-zen: all 0.7s cubic-bezier(0.2, 0.8, 0.2, 1);
  --fs-font-serif: "Cormorant Garamond", "Noto Serif SC", "Noto Serif JP", "Noto Serif KR", serif;
  --fs-font-sans: "Inter", "system-ui", sans-serif;
}

* {
  box-sizing: border-box;
}

html,
body {
  margin: 0;
  padding: 0;
  background: var(--fs-bg-base);
  color: var(--fs-text-primary);
}

body {
  font-family: var(--fs-font-sans);
}

.app {
  min-height: 100vh;
  opacity: 1;
  transition: opacity 0.45s ease;
}

.app.fade-enter {
  opacity: 0;
}

.app.fade-enter-active {
  opacity: 1;
}

.header {
  position: sticky;
  top: 0;
  z-index: 20;
  padding: 20px clamp(20px, 6vw, 100px);
  display: flex;
  justify-content: space-between;
  align-items: center;
  /* backdrop-filter and background moved to ::before to prevent fixed context trapping */
}

.header::before {
  content: "";
  position: absolute;
  inset: 0;
  backdrop-filter: blur(8px);
  background: rgba(247, 248, 252, 0.75);
  z-index: -1;
}

.logo {
  font-family: var(--fs-font-serif);
  font-size: 22px;
}

.nav {
  display: flex;
  align-items: center;
  gap: clamp(12px, 2.5vw, 28px);
}

.nav a {
  color: var(--fs-text-secondary);
  text-decoration: none;
  font-size: 14px;
}

.lang-switch select {
  border: 1px solid var(--fs-neutral-mountain);
  background: rgba(255, 255, 255, 0.85) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='12' viewBox='0 0 12 12' fill='none'%3E%3Cpath d='M3 5L6 8L9 5' stroke='%23667085' stroke-width='1.5' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E") no-repeat right 10px center;
  color: var(--fs-text-primary);
  border-radius: 12px;
  padding: 8px 28px 8px 12px;
  font-size: 13px;
  font-weight: 500;
  outline: none;
  appearance: none;
  -webkit-appearance: none;
  cursor: pointer;
}

.lang-switch select:focus-visible {
  border-color: var(--fs-accent-ai);
  box-shadow: 0 0 0 3px rgba(48, 79, 254, 0.2);
}

.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

.text-gold {
  color: var(--fs-text-gold);
}

.hero {
  position: relative;
  overflow: hidden;
  min-height: 78vh;
  padding: 80px 20px 64px;
}

.hero-mesh {
  position: absolute;
  inset: 0;
  background: radial-gradient(circle at 35% 30%, rgba(48, 79, 254, 0.12), transparent 40%),
    radial-gradient(circle at 65% 58%, rgba(224, 231, 255, 0.7), transparent 42%),
    radial-gradient(circle at 40% 70%, rgba(208, 227, 216, 0.45), transparent 36%);
  filter: blur(8px);
  transform: translateZ(0);
}

.hero-content {
  position: relative;
  max-width: 960px;
  margin: 0 auto;
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  gap: 18px;
}

.hero-tag {
  color: var(--fs-text-secondary);
  letter-spacing: 0.25em;
  font-size: 12px;
}

.hero-title {
  font-family: var(--fs-font-serif);
  white-space: pre-line;
  line-height: 1.25;
  font-size: clamp(36px, 6vw, 58px);
  margin: 0;
}

.hero-sub {
  font-family: var(--fs-font-serif);
  font-style: italic;
  color: var(--fs-text-secondary);
  font-size: 22px;
  margin: 0;
}

.hero-copy {
  color: var(--fs-text-secondary);
  max-width: 680px;
  margin: 0;
  line-height: 1.7;
}

.hero-input-row {
  width: min(800px, 100%);
  display: flex;
  gap: 12px;
  padding: 12px;
  background: var(--fs-glass-bg);
  border: 1px solid var(--fs-glass-border);
  border-radius: 12px;
  box-shadow: var(--fs-shadow-float);
  backdrop-filter: blur(16px);
}

.hero-input-row input {
  flex: 1;
  min-width: 0;
  border: 0;
  border-radius: 12px;
  padding: 14px 16px;
  font-size: 15px;
  background: rgba(255, 255, 255, 0.75);
  color: var(--fs-text-primary);
}

.typing-field {
  flex: 1;
  min-width: 0;
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 14px 16px;
  border-radius: 12px;
  background: rgba(255, 255, 255, 0.75);
  overflow: hidden;
  cursor: pointer;
}

.typing-icon {
  flex-shrink: 0;
  color: var(--fs-accent-ai);
  opacity: 0.7;
}

.typing-text {
  white-space: nowrap;
  overflow: hidden;
  font-size: 15px;
  color: #4a5568;
  line-height: 1;
}

.typing-cursor {
  display: inline-block;
  width: 2px;
  height: 18px;
  background: var(--fs-accent-ai);
  border-radius: 1px;
  flex-shrink: 0;
  animation: fs-cursor-blink 1s step-end infinite;
}

@keyframes fs-cursor-blink {

  0%,
  100% {
    opacity: 1;
  }

  50% {
    opacity: 0;
  }
}

.typing-hints {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 4px;
}

.typing-hint {
  font-size: 13px;
  color: var(--fs-text-secondary);
  transition: opacity 0.6s ease;
}

.typing-hint:nth-child(1) {
  opacity: 0.5;
}

.typing-hint:nth-child(2) {
  opacity: 0.3;
}

/* Case Study Section */
.case-study-section {
  gap: 18px;
}

.case-legend {
  display: flex;
  gap: 28px;
  align-items: center;
  padding: 14px 24px;
  border-radius: 16px;
  background: var(--fs-glass-bg);
  border: 1px solid var(--fs-glass-border);
}

.legend-item {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 13px;
  font-weight: 500;
  color: var(--fs-text-secondary);
}

.legend-dot {
  display: inline-block;
  width: 10px;
  height: 10px;
  border-radius: 2px;
}

.dot-situation {
  background: #E8CDC6;
}

.dot-milestone {
  background: var(--fs-accent-ai);
}

.dot-strategy {
  background: #B2D1C1;
}

.protagonist-card {
  width: min(1000px, 100%);
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 20px;
  padding: 48px 56px;
  border-radius: 28px;
  background: var(--fs-glass-bg);
  border: 1px solid var(--fs-glass-border);
  box-shadow: 0 20px 48px rgba(48, 79, 254, 0.06);
  margin-top: 24px;
}

.proto-badge {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 8px 20px;
  border-radius: 999px;
  background: #fff;
  border: 1px solid var(--fs-neutral-mountain);
}

.proto-badge span {
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 2px;
  color: var(--fs-accent-ai);
}

.proto-you-are {
  color: var(--fs-accent-ai);
  font-size: 15px;
  margin: 0;
}

.proto-name {
  font-family: var(--fs-font-serif);
  font-size: clamp(28px, 4vw, 42px);
  font-weight: normal;
  margin: 0;
  text-align: center;
}

.proto-sub {
  color: var(--fs-text-secondary);
  font-size: 14px;
  margin: 0;
}

.proto-tags {
  display: flex;
  gap: 12px;
  flex-wrap: wrap;
  justify-content: center;
}

.proto-tag {
  padding: 8px 18px;
  border-radius: 999px;
  background: #fff;
  border: 1px solid var(--fs-neutral-mountain);
  font-size: 13px;
  font-weight: 500;
  color: var(--fs-text-primary);
}

.proto-quote-card {
  width: 100%;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 20px;
  padding: 36px 40px;
  border-radius: 20px;
  background: rgba(255, 255, 255, 0.6);
  border: 1px solid var(--fs-glass-border);
}

.proto-quote {
  font-family: var(--fs-font-serif);
  font-size: clamp(16px, 2vw, 20px);
  line-height: 1.6;
  text-align: center;
  margin: 0;
}

.proto-divider {
  width: 40px;
  border: none;
  border-top: 1px solid var(--fs-neutral-mountain);
  margin: 0;
}

.proto-body {
  color: var(--fs-text-secondary);
  font-size: 14px;
  line-height: 1.8;
  text-align: center;
  margin: 0;
}

.dayun-timeline {
  width: min(1000px, 100%);
  margin-top: 32px;
}

.tl-header {
  display: flex;
  align-items: center;
  gap: 12px;
  padding-bottom: 24px;
}

.tl-header h3 {
  font-family: var(--fs-font-serif);
  font-size: 20px;
  font-weight: normal;
  margin: 0;
}

.dayun-card {
  display: flex;
  gap: 0;
}

.tl-left {
  width: 72px;
  display: flex;
  flex-direction: column;
  align-items: center;
  flex-shrink: 0;
}

.tl-dot {
  width: 14px;
  height: 14px;
  border-radius: 50%;
  background: var(--fs-accent-ai);
  border: 3px solid #fff;
  flex-shrink: 0;
}

.tl-line {
  width: 2px;
  flex: 1;
  background: #E0E7FF;
}

.tl-right {
  flex: 1;
  min-width: 0;
  display: flex;
  flex-direction: column;
  gap: 16px;
  padding-bottom: 40px;
}

.tl-age-row {
  display: flex;
  align-items: baseline;
  gap: 12px;
}

.tl-age {
  font-family: var(--fs-font-serif);
  font-size: 22px;
}

.tl-pillar {
  color: var(--fs-accent-ai);
  font-size: 13px;
  font-weight: 600;
  letter-spacing: 1px;
}

.analysis-block {
  padding: 16px 20px;
  border-radius: 16px;
}

.analysis-block p {
  margin: 4px 0 0;
  color: var(--fs-text-secondary);
  font-size: 13px;
  line-height: 1.7;
}

.block-label {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 1px;
}

.block-situation {
  background: rgba(232, 205, 198, 0.07);
  border: 1px solid rgba(232, 205, 198, 0.25);
}

.block-situation .block-label {
  color: #C4A090;
}

.block-milestone {
  background: rgba(48, 79, 254, 0.03);
  border: 1px solid rgba(48, 79, 254, 0.12);
}

.block-milestone .block-label {
  color: var(--fs-accent-ai);
}

.block-strategy {
  background: rgba(178, 209, 193, 0.07);
  border: 1px solid rgba(178, 209, 193, 0.25);
}

.block-strategy .block-label {
  color: #6B9E83;
}

@media (max-width: 800px) {
  .case-legend {
    flex-direction: column;
    gap: 12px;
    align-items: flex-start;
  }

  .protagonist-card {
    padding: 32px 24px;
  }

  .proto-quote-card {
    padding: 24px 20px;
  }

  .tl-left {
    width: 48px;
  }

  .proto-tags {
    gap: 8px;
  }

  .proto-tag {
    font-size: 12px;
    padding: 6px 14px;
  }
}

.cta-button {
  border: 0;
  border-radius: 12px;
  padding: 14px 28px;
  font-weight: 500;
  letter-spacing: 0.02em;
  background: var(--fs-accent-ai);
  color: var(--fs-text-on-accent);
  text-decoration: none;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 8px 20px rgba(48, 79, 254, 0.25);
  cursor: pointer;
  transition: var(--fs-transition-zen);
}

.nav a.cta-button {
  color: var(--fs-text-on-accent);
}

.cta-button:hover {
  transform: translateY(-2px);
  box-shadow: 0 12px 28px rgba(48, 79, 254, 0.4);
}

.section {
  padding: clamp(64px, 8vw, 120px) clamp(20px, 6vw, 120px);
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 18px;
}

.section h2 {
  font-family: var(--fs-font-serif);
  font-size: clamp(28px, 4vw, 44px);
  margin: 0;
}

.section-copy {
  color: var(--fs-text-secondary);
  max-width: 760px;
  text-align: center;
  line-height: 1.7;
  margin: 0;
}

.pricing-section {
  gap: 20px;
}

.billing-toggle {
  display: inline-flex;
  gap: 8px;
  padding: 6px;
  border: 1px solid var(--fs-neutral-mountain);
  border-radius: 12px;
  background: rgba(255, 255, 255, 0.75);
}

.bill-btn {
  border: 0;
  background: transparent;
  color: var(--fs-text-secondary);
  border-radius: 12px;
  padding: 10px 18px;
  cursor: pointer;
  font-weight: 500;
}

.bill-btn em {
  font-style: normal;
  margin-left: 6px;
  font-size: 12px;
  color: var(--fs-accent-ai);
}

.bill-btn.active {
  background: #fff;
  color: var(--fs-text-primary);
  box-shadow: 0 4px 12px rgba(26, 29, 35, 0.08);
}

.pricing-grid {
  width: min(1360px, 100%);
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 16px;
}

.price-card {
  background: rgba(255, 255, 255, 0.62);
  border: 1px solid var(--fs-neutral-mountain);
  border-radius: 12px;
  padding: 22px;
  box-shadow: var(--fs-shadow-soft);
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.price-card h3 {
  margin: 0;
  font-size: 34px;
  font-family: var(--fs-font-serif);
  line-height: 1.15;
}

.price-card h3 small {
  margin-left: 8px;
  display: inline-block;
  font-size: 12px;
  color: var(--fs-accent-ai);
  background: rgba(48, 79, 254, 0.12);
  padding: 4px 10px;
  border-radius: 12px;
  vertical-align: middle;
  font-family: var(--fs-font-sans);
}

.price-row {
  display: flex;
  align-items: baseline;
  gap: 6px;
  margin: 0;
  white-space: nowrap;
}

.price-row strong {
  font-size: 52px;
  line-height: 1;
}

.price-row span {
  color: var(--fs-text-secondary);
  font-size: 16px;
  margin-bottom: 8px;
}

.plan-original-price {
  color: #9CA3AF;
  font-size: 16px;
  text-decoration: line-through;
  margin-left: 6px;
  margin-bottom: 8px;
  display: inline-block;
}

.ghost-btn {
  border: 1px solid var(--fs-neutral-mountain);
  background: rgba(255, 255, 255, 0.7);
  border-radius: 12px;
  padding: 11px 16px;
  color: var(--fs-text-primary);
  font-weight: 500;
}

.price-card ul {
  margin: 0;
  padding-left: 18px;
  display: flex;
  flex-direction: column;
  gap: 8px;
  color: var(--fs-text-secondary);
  line-height: 1.5;
}

.featured {
  border-color: var(--fs-accent-ai);
  box-shadow: 0 16px 36px rgba(48, 79, 254, 0.14);
}

/* Feature Grid (Hook section - 6 cards) */
.feature-grid {
  width: min(1200px, 100%);
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 18px;
  margin-top: 8px;
}

.feature-card {
  padding: 36px;
  border-radius: 28px;
  background: rgba(255, 255, 255, 0.45);
  border: 1px solid var(--fs-glass-border);
  backdrop-filter: blur(16px);
  box-shadow: 0 12px 32px rgba(48, 79, 254, 0.04);
  display: flex;
  flex-direction: column;
  gap: 8px;
  transition: var(--fs-transition-zen);
}

.feature-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 20px 48px rgba(48, 79, 254, 0.08);
}

.feature-icon {
  margin-bottom: 4px;
}

.feature-num {
  font-family: var(--fs-font-serif);
  font-size: 14px;
  color: var(--fs-accent-ai);
  opacity: 0.6;
}

.feature-card h3 {
  margin: 0;
  font-family: var(--fs-font-serif);
  font-size: 22px;
  line-height: 1.3;
}

.feature-en {
  font-size: 13px;
  color: var(--fs-text-secondary);
  opacity: 0.7;
}

.feature-card p {
  margin: 4px 0 0;
  color: var(--fs-text-secondary);
  font-size: 14px;
  line-height: 1.7;
}

@media (max-width: 800px) {
  .feature-grid {
    grid-template-columns: 1fr 1fr;
    gap: 12px;
  }

  .feature-card {
    padding: 24px;
    border-radius: 20px;
  }
}

@media (max-width: 480px) {
  .feature-grid {
    grid-template-columns: 1fr;
  }
}

.cards,
.testimonials {
  width: min(1200px, 100%);
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 18px;
}

.glass-card,
.echo-card {
  padding: 24px;
  border-radius: 12px;
  background: var(--fs-glass-bg);
  border: 1px solid var(--fs-glass-border);
  backdrop-filter: blur(16px);
  box-shadow: var(--fs-shadow-soft);
  transition: var(--fs-transition-zen);
}

.glass-card h3 {
  margin-top: 0;
  font-family: var(--fs-font-serif);
}

.glass-card p,
.echo-card {
  color: var(--fs-text-secondary);
  line-height: 1.7;
}

.wuxing-relation-title {
  color: var(--fs-text-secondary);
  margin: 0;
  font-size: 14px;
  letter-spacing: 0.04em;
}

.wuxing-wrap {
  position: relative;
  width: min(980px, 100%);
  aspect-ratio: 10 / 7;
}

.wuxing-lines {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  z-index: 1;
  pointer-events: none;
}

.wuxing-grid {
  position: relative;
  width: 100%;
  height: 100%;
  z-index: 2;
}

.wuxing-node {
  position: absolute;
  width: clamp(104px, 12vw, 132px);
  height: clamp(104px, 12vw, 132px);
  border: 2px solid rgba(26, 29, 35, 0.16);
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.78);
  box-shadow: 0 14px 28px rgba(19, 24, 38, 0.1);
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 3px;
  cursor: pointer;
  color: var(--fs-text-primary);
  opacity: 0;
  transform: translate(-50%, -50%) scale(0.9);
  transition: transform 0.35s ease, box-shadow 0.35s ease, opacity 0.4s ease, border-color 0.3s ease;
}

.wuxing-node[data-element="fire"] {
  left: 50%;
  top: 14%;
  border-color: #c85f3f;
}

.wuxing-node[data-element="earth"] {
  left: 80%;
  top: 36%;
  border-color: #ac8c45;
}

.wuxing-node[data-element="metal"] {
  left: 68%;
  top: 74%;
  border-color: #888c9a;
}

.wuxing-node[data-element="water"] {
  left: 32%;
  top: 74%;
  border-color: #3f6fa3;
}

.wuxing-node[data-element="wood"] {
  left: 20%;
  top: 36%;
  border-color: #3f8f5d;
}

.wuxing-node.is-visible {
  opacity: 1;
  transform: translate(-50%, -50%) scale(1);
}

.wuxing-icon {
  font-size: 22px;
  line-height: 1;
}

.wuxing-label-cn {
  font-family: var(--fs-font-serif);
  font-size: 20px;
  line-height: 1;
}

.wuxing-label-en {
  font-family: var(--fs-font-serif);
  font-size: 12px;
  font-style: italic;
  opacity: 0.74;
}

.wuxing-node.active {
  transform: translate(-50%, -50%) scale(1.08);
  box-shadow: 0 18px 32px rgba(48, 79, 254, 0.22);
  z-index: 10;
}

.wuxing-node[data-element="fire"].active {
  box-shadow: 0 0 0 6px rgba(200, 95, 63, 0.15), 0 18px 32px rgba(200, 95, 63, 0.25);
}

.wuxing-node[data-element="earth"].active {
  box-shadow: 0 0 0 6px rgba(172, 140, 69, 0.15), 0 18px 32px rgba(172, 140, 69, 0.25);
}

.wuxing-node[data-element="metal"].active {
  box-shadow: 0 0 0 6px rgba(136, 140, 154, 0.15), 0 18px 32px rgba(136, 140, 154, 0.25);
}

.wuxing-node[data-element="water"].active {
  box-shadow: 0 0 0 6px rgba(63, 111, 163, 0.15), 0 18px 32px rgba(63, 111, 163, 0.25);
}

.wuxing-node[data-element="wood"].active {
  box-shadow: 0 0 0 6px rgba(63, 143, 93, 0.15), 0 18px 32px rgba(63, 143, 93, 0.25);
}

.wuxing-node.related {
  box-shadow: 0 12px 20px rgba(60, 76, 106, 0.16);
}

.wuxing-node.dimmed {
  opacity: 0.45;
}

.wuxing-line {
  fill: none;
  stroke-width: 2.4;
  stroke-linecap: round;
  opacity: 0.2;
  transition: opacity 0.25s ease, stroke-width 0.25s ease, filter 0.25s ease;
}

.wuxing-line.generating {
  stroke: #3f8f5d;
  marker-end: url(#arrowGenerating);
}

.wuxing-line.controlling {
  stroke: #c74444;
  marker-end: url(#arrowControlling);
}

.wuxing-line.insulting {
  stroke: #3970b7;
  marker-end: url(#arrowInsulting);
}

.wuxing-line.weakening {
  stroke: #b19a35;
  marker-end: url(#arrowWeakening);
}

.wuxing-line.active {
  opacity: 0.95;
  stroke-width: 3;
  filter: drop-shadow(0 0 7px rgba(16, 16, 16, 0.18));
  stroke-dasharray: 100;
}

.wuxing-line.generating.active {
  animation: fs-line-ray 1.8s cubic-bezier(0.4, 0, 0.2, 1) infinite;
}

.wuxing-line.controlling.active {
  animation: fs-line-ray 1.8s cubic-bezier(0.4, 0, 0.2, 1) infinite;
  animation-delay: 0.2s;
}

.wuxing-line.insulting.active {
  animation: fs-line-ray 1.8s cubic-bezier(0.4, 0, 0.2, 1) infinite;
  animation-delay: 0.4s;
}

.wuxing-line.weakening.active {
  animation: fs-line-ray 1.8s cubic-bezier(0.4, 0, 0.2, 1) infinite;
  animation-delay: 0.1s;
}

@keyframes fs-line-ray {
  0% {
    stroke-dashoffset: 100;
    opacity: 0;
  }

  10% {
    opacity: 1;
  }

  45% {
    stroke-dashoffset: 0;
  }

  55% {
    stroke-dashoffset: 0;
    opacity: 1;
  }

  90% {
    stroke-dashoffset: -100;
    opacity: 1;
  }

  95% {
    opacity: 0;
  }

  100% {
    stroke-dashoffset: -100;
    opacity: 0;
  }
}

.wuxing-legend {
  width: min(980px, 100%);
  display: grid;
  grid-template-columns: repeat(2, minmax(200px, 1fr));
  gap: 12px 20px;
}

.wuxing-legend-item {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  color: var(--fs-text-secondary);
  font-size: 13px;
}

.wuxing-legend-line {
  width: 42px;
  height: 0;
  border-top: 3px solid transparent;
  display: inline-block;
}

.wuxing-legend-line.generating {
  border-color: #3f8f5d;
}

.wuxing-legend-line.controlling {
  border-color: #c74444;
}

.wuxing-legend-line.insulting {
  border-color: #3970b7;
  border-top-style: dashed;
}

.wuxing-legend-line.weakening {
  border-color: #b19a35;
}

.final-cta-card {
  width: min(1100px, 100%);
  padding: clamp(44px, 6vw, 80px) clamp(24px, 8vw, 140px);
  border-radius: 30px;
  background: linear-gradient(180deg, #f7f8fc 0%, #eef2ff 100%);
  box-shadow: 0 16px 42px rgba(48, 79, 254, 0.1);
  border: 1px solid var(--fs-glass-border);
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 18px;
  text-align: center;
}

.final-cta-eyebrow {
  margin: 0;
  font-family: var(--fs-font-serif);
  font-style: italic;
  letter-spacing: 0.12em;
  color: var(--fs-text-secondary);
  font-size: 15px;
}

.site-footer {
  background: #f1f4fa;
  padding: 48px clamp(20px, 6vw, 120px) 40px;
  display: flex;
  flex-direction: column;
  gap: 28px;
}

.site-footer-top,
.site-footer-divider,
.site-footer-bottom {
  width: min(1200px, 100%);
  margin: 0 auto;
}

.site-footer-top {
  display: flex;
  justify-content: space-between;
  gap: 24px;
  align-items: flex-start;
}

.site-footer-brand {
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.site-footer-brand .section-copy {
  text-align: left;
  margin: 0;
}

.site-footer-links {
  display: flex;
  gap: clamp(18px, 4vw, 64px);
  flex-wrap: wrap;
}

.site-footer-links a {
  color: var(--fs-text-secondary);
  text-decoration: none;
  font-size: 14px;
}

.site-footer-divider {
  height: 1px;
  background: #dde3f0;
}

.site-footer-bottom {
  display: flex;
  justify-content: space-between;
  gap: 16px;
  color: var(--fs-text-secondary);
  font-size: 12px;
}

.site-footer-bottom p {
  margin: 0;
}

@keyframes fs-line-flow {
  from {
    stroke-dashoffset: 0;
  }

  to {
    stroke-dashoffset: -32;
  }
}

@keyframes fs-line-pulse {

  0%,
  100% {
    stroke-opacity: 0.45;
    stroke-width: 2;
  }

  50% {
    stroke-opacity: 1;
    stroke-width: 3;
  }
}

@keyframes fs-line-flash {
  0% {
    stroke-opacity: 0.2;
  }

  35% {
    stroke-opacity: 1;
  }

  100% {
    stroke-opacity: 0.22;
  }
}

.menu-toggle,
.menu-close,
.nav-overlay {
  display: none;
}

@media (max-width: 800px) {
  .header {
    padding: 16px 20px;
  }

  .menu-toggle {
    display: block;
    background: none;
    border: none;
    color: var(--fs-text-primary);
    cursor: pointer;
    padding: 8px;
    margin-right: -8px;
  }

  .menu-close {
    display: block;
    background: none;
    border: none;
    color: var(--fs-text-primary);
    cursor: pointer;
    padding: 8px;
    position: absolute;
    top: 16px;
    right: 16px;
    z-index: 101;
  }

  .nav-overlay.active {
    display: block;
    position: fixed;
    inset: 0;
    background: rgba(0, 0, 0, 0.4);
    z-index: 99;
    backdrop-filter: blur(4px);
  }

  .nav {
    position: fixed;
    top: 0;
    right: -100%;
    bottom: 0;
    width: 280px;
    max-width: 85vw;
    background: var(--fs-bg-base);
    flex-direction: column;
    justify-content: flex-start;
    align-items: flex-start;
    padding: 80px 32px 40px;
    box-shadow: -8px 0 32px rgba(0, 0, 0, 0.15);
    transition: right 0.4s cubic-bezier(0.2, 0.8, 0.2, 1);
    z-index: 100;
    gap: 24px;
    overflow-y: auto;
  }

  .nav.active {
    right: 0;
  }

  .nav a {
    display: block;
    font-size: 16px;
    width: 100%;
    padding: 12px 0;
    color: var(--fs-text-primary);
  }

  .lang-switch {
    width: 100%;
    margin-top: 8px;
  }

  .lang-switch select {
    width: 100%;
    padding: 10px 28px 10px 12px;
  }

  .hero-input-row {
    flex-direction: column;
  }

  .typing-field {
    padding: 12px 14px;
  }

  .cta-button {
    width: 100%;
  }

  .wuxing-wrap {
    width: min(94vw, 720px);
  }

  .wuxing-node {
    width: 92px;
    height: 92px;
  }

  .wuxing-icon {
    font-size: 18px;
  }

  .wuxing-label-cn {
    font-size: 18px;
  }

  .wuxing-label-en {
    font-size: 11px;
  }

  .wuxing-legend {
    grid-template-columns: 1fr;
    width: min(94vw, 720px);
  }

  .site-footer-top,
  .site-footer-bottom {
    flex-direction: column;
    align-items: flex-start;
  }
}

@media (prefers-reduced-motion: reduce) {
  * {
    animation: none !important;
    transition: none !important;
  }

  .wuxing-node {
    opacity: 1;
    transform: translate(-50%, -50%) scale(1);
  }
}

/* FAQ Section */
.faq-section {
  max-width: var(--fs-max-width);
  margin: 0 auto;
  padding: 4rem 1.5rem;
}

.faq-section h2 {
  font-family: var(--fs-font-serif);
  font-size: 2.5rem;
  font-weight: 500;
  color: var(--fs-text-h);
  text-align: center;
  margin-bottom: 3rem;
  letter-spacing: 0.05em;
}

.faq-list {
  display: flex;
  flex-direction: column;
  gap: 1.25rem;
  max-width: 800px;
  margin: 0 auto;
}

.faq-item {
  background: rgba(255, 255, 255, 0.03);
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 12px;
  overflow: hidden;
  transition: background 0.3s ease, border-color 0.3s ease;
}

.faq-item:hover,
.faq-item[open] {
  background: rgba(255, 255, 255, 0.05);
  border-color: rgba(255, 255, 255, 0.15);
}

.faq-question {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 1.5rem;
  font-size: 1.125rem;
  font-weight: 500;
  color: var(--fs-text-p);
  cursor: pointer;
  list-style: none;
  /* Hide default arrow */
  user-select: none;
}

.faq-question::-webkit-details-marker {
  display: none;
  /* Hide default arrow in webkit */
}

.faq-question svg {
  color: var(--fs-text-muted);
  transition: transform 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  flex-shrink: 0;
  margin-left: 1rem;
}

.faq-item[open] .faq-question svg {
  transform: rotate(180deg);
  color: var(--fs-accent-ai);
}

.faq-item[open] .faq-question {
  color: var(--fs-text-h);
}

.faq-answer {
  padding: 0 1.5rem 1.5rem 1.5rem;
  color: var(--fs-text-muted);
  font-size: 1rem;
  line-height: 1.7;
  animation: faqFadeIn 0.3s ease-out;
}

@keyframes faqFadeIn {
  from {
    opacity: 0;
    transform: translateY(-8px);
  }

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

@media (max-width: 768px) {
  .faq-section {
    padding: 3rem 1.25rem;
  }

  .faq-section h2 {
    font-size: 2rem;
    margin-bottom: 2rem;
  }

  .faq-question {
    font-size: 1.05rem;
    padding: 1.25rem;
  }

  .faq-answer {
    padding: 0 1.25rem 1.25rem 1.25rem;
    font-size: 0.95rem;
  }
}

/* Update header spacing to accommodate extra link */
@media (max-width: 768px) {
  .nav {
    gap: 0.8rem;
  }
}

/* Logo Image Styling */
.logo {
  display: flex;
  align-items: center;
  gap: 8px;
}

.header .logo .logo-img,
.site-footer-brand .logo .logo-img {
  height: 24px;
  width: auto;
  display: block;
}

.header .logo .logo-wordmark,
.site-footer-brand .logo .logo-wordmark {
  height: 18px;
  width: auto;
  display: block;
}

@media (min-width: 768px) {

  .header .logo .logo-img,
  .site-footer-brand .logo .logo-img {
    height: 32px;
  }

  .header .logo .logo-wordmark,
  .site-footer-brand .logo .logo-wordmark {
    height: 22px;
  }
}

/* Refined logo spacing and sizing */
.logo {
  gap: 12px !important;
}

.header .logo .logo-wordmark,
.site-footer-brand .logo .logo-wordmark {
  height: 22px !important;
}

@media (min-width: 768px) {
  .logo {
    gap: 16px !important;
  }

  .header .logo .logo-wordmark,
  .site-footer-brand .logo .logo-wordmark {
    height: 28px !important;
  }
}
