/* ---------- Base ---------- */
:root {
  --ink: #0a0b0c;
  --ink-2: #111214;
  --paper: #f3f0e9;
  --paper-ink: #17150f;
  --text: #ece9e2;
  --text-soft: rgba(236, 233, 226, 0.58);
  --paper-soft: rgba(23, 21, 15, 0.58);
  --accent: #e2a55d;
  --accent-strong: #efb877;
  --accent-deep: #a2671f;
  --line-dark: rgba(236, 233, 226, 0.14);
  --line-light: rgba(23, 21, 15, 0.14);
  --font-sans: -apple-system, BlinkMacSystemFont, "Segoe UI", "PingFang SC",
    "Hiragino Sans GB", "Microsoft YaHei", "Noto Sans SC", sans-serif;
  --font-serif: "Noto Serif SC", "Songti SC", "STSong", "SimSun", Georgia, serif;
  --font-mono: ui-monospace, SFMono-Regular, "SF Mono", Consolas, "Liberation Mono",
    monospace;
  --gutter: clamp(20px, 4.5vw, 64px);
  --max: 1240px;
}

* { box-sizing: border-box; }

html {
  scroll-behavior: smooth;
  scroll-padding-top: 90px;
  background: var(--ink);
}

body {
  margin: 0;
  background: var(--ink);
  color: var(--text);
  font-family: var(--font-sans);
  font-size: 16px;
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
  overflow-x: hidden;
}

img { display: block; max-width: 100%; }
a { color: inherit; text-decoration: none; }
h1, h2, h3, p, ul, ol, blockquote, dl, dd { margin: 0; }
ul, ol { padding: 0; list-style: none; }
button { font: inherit; color: inherit; }

::selection { background: var(--accent); color: #17120a; }

:focus-visible {
  outline: 2px solid var(--accent);
  outline-offset: 3px;
}

/* ---------- Header ---------- */
.site-header {
  position: fixed;
  inset: 0 0 auto;
  z-index: 50;
  height: 78px;
  padding: 0 var(--gutter);
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  align-items: center;
  transition: height 0.4s ease, background 0.4s ease, border-color 0.4s ease;
  border-bottom: 1px solid transparent;
}

.site-header.is-scrolled {
  height: 64px;
  background: rgba(10, 11, 12, 0.78);
  -webkit-backdrop-filter: blur(16px) saturate(1.2);
  backdrop-filter: blur(16px) saturate(1.2);
  border-bottom-color: var(--line-dark);
}

.header-brand {
  display: inline-flex;
  align-items: baseline;
  gap: 10px;
  justify-self: start;
}

.brand-en {
  font-family: var(--font-sans);
  font-weight: 700;
  font-size: 0.95rem;
  letter-spacing: 0.22em;
}

.brand-cn {
  font-family: var(--font-serif);
  font-size: 0.8rem;
  letter-spacing: 0.3em;
  color: var(--text-soft);
}

.header-nav {
  display: flex;
  gap: clamp(18px, 3vw, 44px);
  font-size: 0.84rem;
  letter-spacing: 0.12em;
  color: var(--text-soft);
}

.header-nav a {
  position: relative;
  padding: 4px 0;
  transition: color 0.3s ease;
}

.header-nav a::after {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  height: 1px;
  background: var(--accent);
  transform: scaleX(0);
  transform-origin: left;
  transition: transform 0.35s ease;
}

.header-nav a:hover { color: var(--text); }
.header-nav a:hover::after { transform: scaleX(1); }

.header-cta {
  justify-self: end;
  font-family: var(--font-mono);
  font-size: 0.72rem;
  letter-spacing: 0.14em;
  padding: 10px 18px;
  border: 1px solid rgba(236, 233, 226, 0.3);
  border-radius: 2px;
  transition: border-color 0.3s ease, color 0.3s ease, background 0.3s ease;
}

.header-cta:hover {
  border-color: var(--accent);
  color: var(--accent);
}

/* ---------- Hero ---------- */
.hero {
  position: relative;
  min-height: 100svh;
  display: flex;
  align-items: center;
  overflow: hidden;
  isolation: isolate;
}

.hero-media-wrap {
  position: absolute;
  inset: -12% 0;
  z-index: -2;
}

.hero-media {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: 70% 55%;
  will-change: transform;
}

.hero-scrim {
  position: absolute;
  inset: 0;
  z-index: -1;
  background:
    linear-gradient(90deg, rgba(6, 7, 8, 0.94) 0%, rgba(6, 7, 8, 0.82) 32%,
      rgba(6, 7, 8, 0.32) 58%, rgba(6, 7, 8, 0.1) 78%, rgba(6, 7, 8, 0.4) 100%),
    linear-gradient(0deg, rgba(6, 7, 8, 0.92) 0%, rgba(6, 7, 8, 0) 34%),
    linear-gradient(180deg, rgba(6, 7, 8, 0.55) 0%, rgba(6, 7, 8, 0) 26%);
}

.hero-inner {
  width: 100%;
  max-width: var(--max);
  margin: 0 auto;
  padding: 130px var(--gutter) 120px;
}

.hero-eyebrow {
  font-family: var(--font-mono);
  font-size: 0.7rem;
  letter-spacing: 0.28em;
  color: var(--accent);
  text-transform: uppercase;
}

.hero-brand {
  margin-top: 22px;
  font-family: var(--font-sans);
  font-weight: 800;
  font-size: clamp(2.7rem, 6.6vw, 6rem);
  line-height: 0.98;
  letter-spacing: 0.1em;
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.hero-brand-cn {
  font-family: var(--font-serif);
  font-weight: 400;
  font-size: clamp(0.78rem, 1.4vw, 1rem);
  letter-spacing: 0.72em;
  color: var(--text-soft);
}

.hero-headline {
  margin-top: 30px;
  font-family: var(--font-serif);
  font-weight: 500;
  font-size: clamp(1.55rem, 3.1vw, 2.5rem);
  line-height: 1.35;
  letter-spacing: 0.02em;
}

.hero-sub {
  margin-top: 20px;
  max-width: 26em;
  color: var(--text-soft);
  font-size: clamp(0.94rem, 1.2vw, 1.04rem);
  line-height: 1.8;
}

.hero-actions {
  margin-top: 38px;
  display: flex;
  flex-wrap: wrap;
  gap: 14px;
}

.hero-foot {
  position: absolute;
  left: var(--gutter);
  right: var(--gutter);
  bottom: 26px;
  display: flex;
  justify-content: space-between;
  font-family: var(--font-mono);
  font-size: 0.66rem;
  letter-spacing: 0.16em;
  color: rgba(236, 233, 226, 0.4);
}

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 14px 28px;
  font-size: 0.9rem;
  letter-spacing: 0.06em;
  border-radius: 2px;
  border: 1px solid transparent;
  cursor: pointer;
  transition: background 0.3s ease, color 0.3s ease, border-color 0.3s ease,
    transform 0.3s ease;
}

.btn-primary {
  background: var(--accent);
  color: #17120a;
  font-weight: 600;
}

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

.btn-ghost {
  background: transparent;
  border-color: rgba(236, 233, 226, 0.28);
  color: var(--text);
}

.btn-ghost:hover {
  border-color: var(--accent);
  color: var(--accent);
}

.btn-line {
  background: transparent;
  border-color: var(--line-light);
  color: var(--paper-ink);
  width: fit-content;
}

.btn-line:hover {
  border-color: var(--paper-ink);
  background: var(--paper-ink);
  color: var(--paper);
}

/* ---------- Sections ---------- */
.section {
  padding: clamp(78px, 9.5vw, 132px) var(--gutter);
}

.section-light {
  background: var(--paper);
  color: var(--paper-ink);
}

.section-dark {
  background: var(--ink);
  color: var(--text);
}

.section > .section-head,
.section > .tool-list,
.section > .belief-grid,
.section > .plans,
.section > .pricing-note,
.section > .about-inner {
  max-width: var(--max);
  margin-left: auto;
  margin-right: auto;
}

.section-head {
  max-width: 760px;
}

.kicker {
  font-family: var(--font-mono);
  font-size: 0.68rem;
  letter-spacing: 0.28em;
  text-transform: uppercase;
  color: var(--accent-deep);
}

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

.section-title {
  margin-top: 18px;
  font-family: var(--font-serif);
  font-weight: 500;
  font-size: clamp(1.85rem, 4vw, 3.1rem);
  line-height: 1.25;
  letter-spacing: 0.005em;
}

.lede {
  margin-top: 16px;
  color: var(--paper-soft);
  font-size: 0.98rem;
  max-width: 36em;
}

.section-dark .lede { color: var(--text-soft); }

/* ---------- Tool list ---------- */
.tool-list {
  margin-top: clamp(44px, 6vw, 76px);
  border-top: 1px solid var(--line-light);
}

.tool-row {
  position: relative;
  display: grid;
  grid-template-columns: 46px minmax(0, 1fr) auto 100px;
  align-items: center;
  gap: clamp(16px, 3vw, 42px);
  padding: clamp(26px, 3.4vw, 38px) 6px;
  border-bottom: 1px solid var(--line-light);
  transition: padding-left 0.45s cubic-bezier(0.16, 0.84, 0.28, 1);
}

.tool-row::after {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  bottom: -1px;
  height: 1px;
  background: var(--accent-deep);
  transform: scaleX(0);
  transform-origin: left;
  transition: transform 0.55s cubic-bezier(0.16, 0.84, 0.28, 1);
}

.tool-row:hover { padding-left: 18px; }
.tool-row:hover::after { transform: scaleX(1); }
.tool-row:hover .tool-index { color: var(--accent-deep); }
.tool-row:hover .tool-action .arrow { transform: translateX(5px); }

.tool-index {
  font-family: var(--font-mono);
  font-size: 0.72rem;
  letter-spacing: 0.1em;
  color: rgba(23, 21, 15, 0.38);
  transition: color 0.35s ease;
}

.tool-main h3 {
  font-family: var(--font-serif);
  font-weight: 500;
  font-size: clamp(1.15rem, 1.8vw, 1.42rem);
  letter-spacing: 0.01em;
}

.tool-main p {
  margin-top: 6px;
  color: var(--paper-soft);
  font-size: 0.9rem;
  line-height: 1.7;
}

.tool-meta {
  display: flex;
  align-items: center;
  font-family: var(--font-mono);
  font-size: 0.68rem;
  letter-spacing: 0.08em;
  color: rgba(23, 21, 15, 0.45);
  white-space: nowrap;
}

.tool-meta span:not(:last-child)::after {
  content: "·";
  margin: 0 8px;
  opacity: 0.6;
}

.tool-meta .is-free { color: var(--accent-deep); }
.tool-meta .is-paid {
  color: var(--accent-deep);
  font-weight: 700;
}

.tool-action {
  justify-self: end;
  display: inline-flex;
  align-items: center;
  gap: 7px;
  padding: 0;
  background: none;
  border: none;
  font-family: var(--font-mono);
  font-size: 0.7rem;
  letter-spacing: 0.12em;
  color: var(--paper-ink);
  cursor: pointer;
  border-bottom: 1px solid transparent;
  transition: border-color 0.3s ease, color 0.3s ease;
}

.tool-action:hover { border-bottom-color: var(--accent-deep); }

.arrow {
  display: inline-block;
  transition: transform 0.35s ease;
  font-size: 0.85rem;
}

.tool-buy { color: var(--accent-deep); }

/* ---------- Belief ---------- */
.belief-quote {
  margin-top: 26px;
  font-family: var(--font-serif);
  font-weight: 400;
  font-size: clamp(1.75rem, 3.8vw, 3rem);
  line-height: 1.45;
  letter-spacing: 0.01em;
}

.belief-grid {
  margin-top: clamp(52px, 7vw, 88px);
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: clamp(28px, 4vw, 56px);
}

.belief-item {
  border-top: 1px solid var(--line-dark);
  padding-top: 24px;
}

.belief-item h3 {
  font-family: var(--font-serif);
  font-weight: 500;
  font-size: 1.08rem;
  letter-spacing: 0.04em;
}

.belief-item p {
  margin-top: 10px;
  color: var(--text-soft);
  font-size: 0.9rem;
  line-height: 1.8;
  max-width: 24em;
}

/* ---------- Pricing ---------- */
.plans {
  margin-top: clamp(44px, 6vw, 72px);
  display: grid;
  grid-template-columns: 1fr 1fr;
  border-top: 1px solid var(--line-light);
}

.plan {
  padding: clamp(34px, 4vw, 52px) clamp(24px, 3.4vw, 48px) clamp(38px, 4vw, 56px);
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 0;
}

.plan + .plan {
  border-left: 1px solid var(--line-light);
}

.plan-featured {
  background: var(--ink);
  color: var(--text);
  border-left: 1px solid var(--ink);
}

.plan-tag {
  font-family: var(--font-mono);
  font-size: 0.62rem;
  letter-spacing: 0.2em;
  color: var(--accent);
  border: 1px solid rgba(226, 165, 93, 0.4);
  border-radius: 999px;
  padding: 4px 12px;
}

.plan-name {
  margin-top: 18px;
  font-family: var(--font-serif);
  font-weight: 500;
  font-size: 1.2rem;
  letter-spacing: 0.16em;
}

.plan-price {
  margin-top: 14px;
  font-family: var(--font-serif);
  font-size: clamp(2.6rem, 5vw, 3.9rem);
  line-height: 1;
  letter-spacing: -0.01em;
}

.plan-unit {
  font-family: var(--font-sans);
  font-size: 0.85rem;
  letter-spacing: 0.08em;
  color: var(--text-soft);
}

.plan-list {
  margin-top: 32px;
  width: 100%;
  border-top: 1px solid var(--line-light);
}

.plan-featured .plan-list { border-top-color: var(--line-dark); }

.plan-list li {
  padding: 12px 0;
  border-bottom: 1px solid var(--line-light);
  font-size: 0.9rem;
  color: var(--paper-soft);
  display: flex;
  gap: 10px;
}

.plan-featured .plan-list li {
  border-bottom-color: var(--line-dark);
  color: var(--text-soft);
}

.plan-list li::before {
  content: "—";
  color: var(--accent-deep);
  flex: none;
}

.plan-featured .plan-list li::before { color: var(--accent); }

.plan .btn { margin-top: 30px; }

.pricing-note {
  margin-top: 26px;
  font-family: var(--font-mono);
  font-size: 0.7rem;
  letter-spacing: 0.06em;
  color: var(--paper-soft);
}

/* ---------- About ---------- */
.about-inner { max-width: 820px; }

.about-title { margin-top: 20px; }

.about-text {
  margin-top: 26px;
  max-width: 34em;
  color: var(--text-soft);
  font-size: 0.98rem;
  line-height: 1.9;
}

.about-contact {
  margin-top: 30px;
  font-family: var(--font-mono);
  font-size: 0.76rem;
  letter-spacing: 0.1em;
  color: var(--text-soft);
}

.about-contact a {
  color: var(--accent);
  border-bottom: 1px solid rgba(226, 165, 93, 0.45);
  padding-bottom: 2px;
  transition: color 0.3s ease, border-color 0.3s ease;
}

.about-contact a:hover {
  color: var(--accent-strong);
  border-color: var(--accent-strong);
}

/* ---------- Footer ---------- */
.site-footer {
  background: var(--ink);
  border-top: 1px solid var(--line-dark);
  padding: 26px var(--gutter);
  display: flex;
  justify-content: space-between;
  gap: 16px;
  font-family: var(--font-mono);
  font-size: 0.66rem;
  letter-spacing: 0.1em;
  color: rgba(236, 233, 226, 0.42);
}

/* ---------- Dialog ---------- */
.buy-dialog {
  width: min(520px, calc(100vw - 32px));
  padding: 0;
  border: 1px solid rgba(236, 233, 226, 0.16);
  border-radius: 3px;
  background: var(--ink-2);
  color: var(--text);
  box-shadow: 0 30px 80px rgba(0, 0, 0, 0.6);
}

.buy-dialog::backdrop {
  background: rgba(4, 5, 6, 0.72);
  -webkit-backdrop-filter: blur(6px);
  backdrop-filter: blur(6px);
}

.dialog-body {
  position: relative;
  padding: clamp(28px, 5vw, 44px);
}

.dialog-close {
  position: absolute;
  top: 12px;
  right: 12px;
  width: 36px;
  height: 36px;
  display: grid;
  place-items: center;
  background: none;
  border: none;
  font-size: 1.4rem;
  line-height: 1;
  color: var(--text-soft);
  cursor: pointer;
  transition: color 0.3s ease;
}

.dialog-close:hover { color: var(--accent); }

.buy-dialog h2 {
  margin-top: 14px;
  font-family: var(--font-serif);
  font-weight: 500;
  font-size: clamp(1.4rem, 2.6vw, 1.75rem);
  letter-spacing: 0.02em;
}

.dialog-text {
  margin-top: 14px;
  color: var(--text-soft);
  font-size: 0.92rem;
  line-height: 1.8;
}

.dialog-facts {
  margin-top: 26px;
  border-top: 1px solid var(--line-dark);
}

.dialog-facts > div {
  display: flex;
  justify-content: space-between;
  gap: 16px;
  padding: 12px 0;
  border-bottom: 1px solid var(--line-dark);
  font-size: 0.82rem;
}

.dialog-facts dt {
  font-family: var(--font-mono);
  font-size: 0.66rem;
  letter-spacing: 0.14em;
  color: var(--text-soft);
}

.dialog-facts dd { color: var(--text); }

.dialog-actions {
  margin-top: 30px;
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
}

.dialog-hint {
  margin-top: 14px;
  min-height: 1.2em;
  font-family: var(--font-mono);
  font-size: 0.68rem;
  letter-spacing: 0.08em;
  color: var(--accent);
}

/* ---------- Reveal motion ---------- */
.reveal {
  opacity: 0;
  transform: translateY(22px);
  transition: opacity 0.9s cubic-bezier(0.16, 0.84, 0.28, 1),
    transform 0.9s cubic-bezier(0.16, 0.84, 0.28, 1);
}

.reveal.is-visible {
  opacity: 1;
  transform: none;
}

.hero-inner .reveal:nth-child(1) { transition-delay: 0.12s; }
.hero-inner .reveal:nth-child(2) { transition-delay: 0.22s; }
.hero-inner .reveal:nth-child(3) { transition-delay: 0.32s; }
.hero-inner .reveal:nth-child(4) { transition-delay: 0.42s; }
.hero-inner .reveal:nth-child(5) { transition-delay: 0.52s; }

/* ---------- Responsive ---------- */
@media (max-width: 860px) {
  .site-header {
    grid-template-columns: 1fr auto;
    height: 68px;
  }

  .header-nav { display: none; }

  .hero-scrim {
    background:
      linear-gradient(90deg, rgba(6, 7, 8, 0.9) 0%, rgba(6, 7, 8, 0.62) 55%,
        rgba(6, 7, 8, 0.34) 100%),
      linear-gradient(0deg, rgba(6, 7, 8, 0.94) 0%, rgba(6, 7, 8, 0.1) 52%),
      linear-gradient(180deg, rgba(6, 7, 8, 0.6) 0%, rgba(6, 7, 8, 0) 28%);
  }

  .hero-inner {
    padding-top: 120px;
    padding-bottom: 130px;
  }

  .hero-media { object-position: 66% 50%; }

  .tool-row {
    grid-template-columns: 34px minmax(0, 1fr);
    row-gap: 12px;
    align-items: start;
  }

  .tool-index { padding-top: 5px; }

  .tool-main { grid-column: 2; }

  .tool-meta {
    grid-column: 2;
    grid-row: auto;
  }

  .tool-action { grid-column: 2; justify-self: start; margin-top: 4px; }

  .belief-grid { grid-template-columns: 1fr; gap: 30px; }

  .plans { grid-template-columns: 1fr; }

  .plan + .plan {
    border-left: 0;
    border-top: 1px solid var(--line-light);
  }

  .plan-featured {
    border-left: 0;
    border-top: 1px solid var(--ink);
  }
}

@media (max-width: 560px) {
  .site-header { padding: 0 20px; }
  .header-cta { display: none; }

  .hero-brand { letter-spacing: 0.06em; }
  .hero-headline { margin-top: 24px; }
  .hero-foot { bottom: 20px; }
  .hero-foot span:last-child { display: none; }

  .section { padding-left: 20px; padding-right: 20px; }

  .site-footer {
    flex-direction: column;
    gap: 6px;
    padding-left: 20px;
    padding-right: 20px;
  }

  .dialog-actions .btn { flex: 1; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }

  *,
  *::before,
  *::after {
    animation-duration: 0.001ms !important;
    transition-duration: 0.001ms !important;
  }

  .reveal { opacity: 1; transform: none; }
  .hero-media { transform: none !important; }
}
