/*
 * Captal 官网 — Raycast 式排版 + 静奢浅色纸感
 * 陶土强调 #B85C4C
 */

:root {
  --bg-page: #f8f7f4;
  --bg-elevated: #faf9f6;
  --bg-card: #ffffff;
  --bg-card-hover: #fffcf9;
  --border-subtle: #e8e4dd;
  --border-strong: #c4beb4;
  --text-primary: #1c1917;
  --text-secondary: #57534e;
  --text-muted: #78716c;
  --terra: #b85c4c;
  --terra-hover: #a04d3d;
  --terra-bright: #c46a5a;
  --terra-glow: rgba(184, 92, 76, 0.22);
  --terra-soft: #f5ebe9;
  --font-sans: Inter, system-ui, -apple-system, "Segoe UI", sans-serif;
  --font-logo: "Fraunces", Georgia, "Times New Roman", serif;
  --radius-lg: 20px;
  --radius-md: 12px;
  --radius-pill: 9999px;
  --ease-out: cubic-bezier(0.16, 1, 0.3, 1);
  --header-h: 4rem;
  --shadow-card: 0 4px 24px rgba(28, 25, 23, 0.06);
  --shadow-pro: 0 20px 48px -12px rgba(184, 92, 76, 0.2);
}

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

html {
  scroll-behavior: smooth;
}

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

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

body {
  margin: 0;
  font-family: var(--font-sans);
  font-size: 1rem;
  line-height: 1.6;
  color: var(--text-primary);
  background-color: var(--bg-page);
  -webkit-font-smoothing: antialiased;
}

/* 极轻纸纹 */
body::before {
  content: "";
  position: fixed;
  inset: 0;
  pointer-events: none;
  z-index: 0;
  opacity: 0.032;
  background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 256 256' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.9' numOctaves='4' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
}

body::after {
  content: "";
  position: fixed;
  inset: 0;
  pointer-events: none;
  z-index: 0;
  background:
    radial-gradient(ellipse 70% 45% at 50% -5%, rgba(184, 92, 76, 0.06), transparent 55%),
    radial-gradient(ellipse 50% 35% at 100% 100%, rgba(184, 92, 76, 0.04), transparent 50%);
}

.site-wrap {
  position: relative;
  z-index: 1;
}

a {
  color: var(--terra);
}

a:hover {
  color: var(--terra-hover);
}

.skip-link {
  position: absolute;
  left: -9999px;
  top: 0;
  z-index: 200;
  padding: 0.75rem 1.25rem;
  background: var(--terra);
  color: #fff;
  font-weight: 600;
  text-decoration: none;
  border-radius: var(--radius-md);
}

.skip-link:focus {
  left: 1rem;
  top: 1rem;
}

/* —— 顶栏 —— */
.site-header {
  position: sticky;
  top: 0;
  z-index: 100;
  height: var(--header-h);
  border-bottom: 1px solid var(--border-subtle);
  background: color-mix(in srgb, var(--bg-page) 85%, transparent);
  backdrop-filter: blur(16px) saturate(1.2);
  -webkit-backdrop-filter: blur(16px) saturate(1.2);
}

.header-inner {
  max-width: 1120px;
  margin: 0 auto;
  padding: 0 1.5rem;
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: flex-start;
}

.logo {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  text-decoration: none;
  color: inherit;
}

.logo__mark {
  display: block;
  width: 32px;
  height: 32px;
  flex-shrink: 0;
}

.logo__word {
  font-family: var(--font-logo);
  font-size: 1.4375rem;
  font-weight: 600;
  font-optical-sizing: auto;
  line-height: 1;
  letter-spacing: -0.03em;
  color: var(--terra);
}

.logo:hover .logo__word {
  color: var(--terra-hover);
}

/* —— 首屏：居中 Slogan + 说明 + 下载（Raycast 式） —— */
.hero {
  position: relative;
  min-height: min(88vh, 820px);
  display: flex;
  align-items: center;
  justify-content: center;
  padding: clamp(3rem, 10vw, 5rem) 1.5rem clamp(4rem, 12vw, 6rem);
  overflow: hidden;
}

.hero__glow {
  position: absolute;
  width: min(100vw, 820px);
  height: min(100vw, 820px);
  max-height: 70vh;
  top: 8%;
  left: 50%;
  transform: translateX(-50%);
  background: radial-gradient(
    ellipse 55% 45% at 50% 45%,
    var(--terra-glow) 0%,
    rgba(184, 92, 76, 0.08) 45%,
    transparent 70%
  );
  filter: blur(56px);
  pointer-events: none;
  z-index: 0;
}

.hero__inner {
  position: relative;
  z-index: 1;
  width: 100%;
  max-width: 52rem;
  margin: 0 auto;
  text-align: center;
}

.hero__title {
  margin: 0 0 1.25rem;
  font-size: clamp(2.125rem, 5.5vw, 3.5rem);
  font-weight: 700;
  line-height: 1.08;
  letter-spacing: -0.035em;
  color: var(--text-primary);
  text-wrap: balance;
}

.hero__lead {
  margin: 0 auto 2.5rem;
  max-width: 36rem;
  font-size: clamp(1rem, 2.2vw, 1.125rem);
  line-height: 1.65;
  color: var(--text-secondary);
  font-weight: 400;
}

.hero__actions {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: center;
  gap: 0.65rem 0.75rem;
  scroll-margin-top: calc(var(--header-h) + 1rem);
}

.hero__btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 48px;
  padding: 0.65rem 1.35rem;
  font-size: 0.9375rem;
  font-weight: 600;
  color: #fff;
  background: var(--terra);
  border: none;
  border-radius: var(--radius-md);
  text-decoration: none;
  box-shadow: 0 2px 12px rgba(184, 92, 76, 0.25);
  transition:
    transform 0.25s var(--ease-out),
    box-shadow 0.25s var(--ease-out),
    background 0.2s ease,
    color 0.2s ease;
}

.hero__btn:hover {
  color: #fff;
  background: var(--terra-hover);
  transform: translateY(-2px);
  box-shadow: 0 10px 28px rgba(184, 92, 76, 0.32);
}

.hero__btn--ghost {
  color: var(--text-primary);
  background: var(--bg-card);
  border: 1px solid var(--border-strong);
  box-shadow: 0 1px 3px rgba(28, 25, 23, 0.05);
}

.hero__btn--ghost:hover {
  background: var(--bg-elevated);
  color: var(--text-primary);
  border-color: var(--border-strong);
  box-shadow: 0 4px 16px rgba(28, 25, 23, 0.08);
}

.hero__meta {
  margin: 1.75rem 0 0;
  font-size: 0.8125rem;
  color: var(--text-muted);
  letter-spacing: 0.02em;
}

/* —— 定价区（Raycast pricing 式双卡） —— */
.section-pricing {
  position: relative;
  padding: clamp(3rem, 8vw, 5rem) 1.5rem clamp(4rem, 10vw, 6rem);
  border-top: 1px solid var(--border-subtle);
  scroll-margin-top: var(--header-h);
}

#pricing {
  scroll-margin-top: var(--header-h);
}

.pricing-page-title {
  margin: 0 0 clamp(2rem, 4vw, 3rem);
  font-size: clamp(1.5rem, 3vw, 2rem);
  font-weight: 600;
  letter-spacing: -0.02em;
  text-align: center;
  color: var(--text-primary);
}

.pricing-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 1.25rem;
  max-width: 920px;
  margin: 0 auto;
  align-items: stretch;
}

@media (min-width: 800px) {
  .pricing-grid {
    grid-template-columns: 1fr 1fr;
    gap: 1.5rem;
    align-items: start;
  }
}

.plan-card {
  position: relative;
  display: flex;
  flex-direction: column;
  padding: clamp(1.75rem, 3vw, 2.5rem);
  background: var(--bg-card);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-card);
  transition: border-color 0.3s ease, box-shadow 0.3s ease, background 0.3s ease;
}

.plan-card:hover {
  border-color: var(--border-strong);
  background: var(--bg-card-hover);
  box-shadow: 0 8px 32px rgba(28, 25, 23, 0.08);
}

.plan-card--pro {
  border-color: color-mix(in srgb, var(--terra) 28%, var(--border-subtle));
  box-shadow:
    0 0 0 1px color-mix(in srgb, var(--terra) 12%, transparent),
    var(--shadow-pro);
}

@media (min-width: 800px) {
  .plan-card--pro {
    margin-top: -0.5rem;
    padding-bottom: clamp(2rem, 3vw, 2.75rem);
  }
}

.plan-card__badge {
  position: absolute;
  top: 1.25rem;
  right: 1.25rem;
  padding: 0.2rem 0.55rem;
  font-size: 0.6875rem;
  font-weight: 600;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--terra-bright);
  background: var(--terra-soft);
  border: 1px solid color-mix(in srgb, var(--terra) 30%, transparent);
  border-radius: var(--radius-pill);
}

.plan-card__head {
  margin-bottom: 1.25rem;
}

.plan-card__name {
  margin: 0 0 0.35rem;
  font-size: 1.5rem;
  font-weight: 600;
  letter-spacing: -0.02em;
  color: var(--text-primary);
}

.plan-card__tagline {
  margin: 0;
  font-size: 0.875rem;
  color: var(--text-muted);
  line-height: 1.45;
}

.plan-card__price {
  display: flex;
  align-items: baseline;
  gap: 0.25rem;
  margin-bottom: 1.75rem;
}

.plan-card__amount {
  font-size: clamp(2.25rem, 4vw, 2.75rem);
  font-weight: 700;
  letter-spacing: -0.03em;
  color: var(--text-primary);
}

.plan-card__period {
  font-size: 1rem;
  font-weight: 500;
  color: var(--text-muted);
}

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

.plan-features__item {
  display: flex;
  gap: 0.75rem;
  align-items: flex-start;
  padding: 0.65rem 0;
  font-size: 0.9375rem;
  color: var(--text-secondary);
  border-bottom: 1px solid var(--border-subtle);
}

.plan-features__item:last-of-type {
  border-bottom: none;
}

.plan-features__text {
  flex: 1;
  min-width: 0;
}

.plan-features__item strong {
  display: block;
  font-size: 0.6875rem;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--text-muted);
  margin-bottom: 0.15rem;
}

.plan-features__value {
  display: block;
  font-size: 1.0625rem;
  font-weight: 600;
  color: var(--text-primary);
  letter-spacing: normal;
  text-transform: none;
  margin-top: 0.05rem;
}

.plan-features__item--muted {
  opacity: 0.85;
}

.plan-features__check {
  flex-shrink: 0;
  width: 20px;
  height: 20px;
  margin-top: 0.1rem;
  border-radius: 50%;
  background: var(--terra);
  display: flex;
  align-items: center;
  justify-content: center;
}

.plan-features__check::after {
  content: "";
  display: block;
  width: 4px;
  height: 8px;
  margin: 0;
  border: solid #fff;
  border-width: 0 2px 2px 0;
  transform: translate(0.5px, -1px) rotate(45deg);
  transform-origin: center center;
  box-sizing: border-box;
}

.plan-features__dash {
  flex-shrink: 0;
  width: 20px;
  height: 20px;
  margin-top: 0.1rem;
  border-radius: 50%;
  border: 1px solid var(--border-strong);
  background: var(--bg-elevated);
  position: relative;
}

.plan-features__dash::after {
  content: "";
  position: absolute;
  left: 4px;
  right: 4px;
  top: 50%;
  height: 1px;
  background: var(--text-muted);
  transform: translateY(-50%);
}

.plan-card__note {
  margin: 0;
  margin-top: auto;
  padding-top: 1.25rem;
  border-top: 1px solid var(--border-subtle);
  font-size: 0.8125rem;
  line-height: 1.55;
  color: var(--text-muted);
}

.plan-card--pro .plan-card__note {
  border-top-color: color-mix(in srgb, var(--terra) 18%, var(--border-subtle));
  color: var(--text-muted);
}

/* —— 页脚 —— */
.site-footer {
  padding: 2rem 1.5rem 3rem;
  text-align: center;
  font-size: 0.75rem;
  font-weight: 500;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--text-muted);
  border-top: 1px solid var(--border-subtle);
}

.site-footer p {
  margin: 0;
}
