/* MouseTrail — mousetrailthemes.com shared styles.
   Design system reverse-engineered from the approved "Sunset" preview direction. */

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

:root {
  --paper:      #faf3ea;
  --surface:    #fffaf3;
  --surface-2:  #f6ead9;
  --ink:        #2a2013;
  --ink-2:      #6b5d4a;
  --ink-3:      #9c8d78;
  --line:       #e8dcc8;
  --line-2:     #f0e5d2;
  --accent:     #e8834f;
  --accent-ink: #fff8f0;
  --accent-wash: rgba(232, 131, 79, .12);
  --free:       #5c8a63;
  --shadow: 0 1px 0 rgba(42,32,19,.04), 0 20px 46px -26px rgba(42,32,19,.28);
  --sans: ui-sans-serif, -apple-system, BlinkMacSystemFont, "Segoe UI",
          "PingFang SC", "Hiragino Sans GB", "Microsoft YaHei",
          "Helvetica Neue", Arial, sans-serif;
}

@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) {
    --paper: #1a140d; --surface: #221b12; --surface-2: #2a2116;
    --ink: #f3ead9; --ink-2: #c9b89f; --ink-3: #8f7d67;
    --line: #3a2f22; --line-2: #332a1f;
    --accent: #ffa26b; --accent-ink: #241505; --accent-wash: rgba(255,162,107,.16);
    --free: #8fd19e;
    --shadow: 0 1px 0 rgba(0,0,0,.4), 0 24px 50px -26px rgba(0,0,0,.8);
  }
}
:root[data-theme="dark"] {
  --paper: #1a140d; --surface: #221b12; --surface-2: #2a2116;
  --ink: #f3ead9; --ink-2: #c9b89f; --ink-3: #8f7d67;
  --line: #3a2f22; --line-2: #332a1f;
  --accent: #ffa26b; --accent-ink: #241505; --accent-wash: rgba(255,162,107,.16);
  --free: #8fd19e;
  --shadow: 0 1px 0 rgba(0,0,0,.4), 0 24px 50px -26px rgba(0,0,0,.8);
}

html { background: var(--paper); }
body {
  background: var(--paper);
  color: var(--ink);
  font-family: var(--sans);
  font-size: 16.5px;
  line-height: 1.72;
  margin: 0;
  -webkit-font-smoothing: antialiased;
}
h1, h2 { text-wrap: balance; margin: 0; }
p { margin: 0; }
a { color: var(--accent); text-underline-offset: 4px; }
.wrap { max-width: 1080px; margin: 0 auto; padding: 0 30px 100px; }

#trail { position: fixed; inset: 0; pointer-events: none; z-index: 5; }

.topbar { display: flex; align-items: center; gap: 20px; padding: 28px 0 8px; }
.wordmark { font-weight: 700; letter-spacing: -0.02em; font-size: 1.08rem; margin-right: auto; display: flex; align-items: center; gap: 10px; text-decoration: none; color: var(--ink); }
.wordmark .dot { width: 11px; height: 11px; border-radius: 50%; background: linear-gradient(135deg, #FF6B6B, #FFA26B 45%, #FFD06B 75%, #FFF7A8); }

.nav-link { font-size: .92rem; font-weight: 600; color: var(--ink-2); text-decoration: none; }
.nav-link:hover { color: var(--ink); }

.theme { display: inline-flex; border: 1px solid var(--line); border-radius: 999px; overflow: hidden; background: var(--surface); }
.theme button { all: unset; cursor: pointer; padding: 7px 12px; display: inline-flex; color: var(--ink-2); }
.theme button[aria-pressed="true"] { background: var(--accent); color: var(--accent-ink); }
.theme svg { width: 13px; height: 13px; display: block; }

header.hero { display: flex; flex-direction: column; gap: 24px; padding: 70px 0 46px; }
.eyebrow { display: inline-flex; align-items: center; gap: 9px; font-size: .86rem; letter-spacing: .03em; color: var(--ink-3); font-weight: 600; }
.eyebrow .dot { width: 7px; height: 7px; border-radius: 50%; background: var(--accent); }
h1 { font-size: clamp(2.5rem, 6.4vw, 4.3rem); line-height: 1.08; letter-spacing: -0.022em; font-weight: 700; max-width: 17ch; }
h1 .grad { background: linear-gradient(90deg, #FF6B6B, #FFA26B 45%, #FFD06B 80%, #FFF7A8); -webkit-background-clip: text; background-clip: text; color: transparent; }
.lede { font-size: clamp(1.08rem, 1.7vw, 1.22rem); color: var(--ink-2); max-width: 58ch; line-height: 1.75; }
.cta-row { display: flex; flex-wrap: wrap; align-items: center; gap: 16px; margin-top: 6px; }
.btn { display: inline-flex; align-items: center; gap: 9px; padding: 14px 26px; border-radius: 999px; font-size: .98rem; font-weight: 650; text-decoration: none; border: 1px solid var(--accent); color: var(--accent-ink); background: var(--accent); transition: transform .16s ease, opacity .16s ease; }
.btn:hover { transform: translateY(-1px); opacity: .92; }
.btn .arw { opacity: .85; }
.note { font-size: .9rem; color: var(--ink-3); }

section { padding-top: 64px; }
.sec-head { display: flex; flex-direction: column; gap: 10px; padding-bottom: 26px; margin-bottom: 30px; }
.eyebrow-2 { display: inline-flex; align-items: center; gap: 9px; font-size: .82rem; letter-spacing: .03em; color: var(--ink-3); font-weight: 600; }
.eyebrow-2 .dot { width: 6px; height: 6px; border-radius: 50%; }
h2 { font-size: clamp(1.55rem, 2.8vw, 2.05rem); line-height: 1.2; letter-spacing: -0.018em; font-weight: 700; }

.demo { display: flex; align-items: center; gap: 18px; flex-wrap: wrap; padding: 26px 30px; border: 1px solid var(--line); border-radius: 18px; background: var(--surface); box-shadow: var(--shadow); }
.demo .pulse { width: 10px; height: 10px; border-radius: 50%; background: var(--accent); flex: none; box-shadow: 0 0 0 0 var(--accent-wash); animation: pulse 2.4s ease-out infinite; }
@keyframes pulse { 0% { box-shadow: 0 0 0 0 var(--accent-wash); } 70% { box-shadow: 0 0 0 12px transparent; } 100% { box-shadow: 0 0 0 0 transparent; } }
.demo p { color: var(--ink-2); font-size: 1rem; }
.demo strong { color: var(--ink); }

.facts { display: flex; flex-direction: column; }
.fact { display: flex; gap: 16px; padding: 22px 4px; border-top: 1px solid var(--line-2); }
.fact:first-child { border-top: none; }
.fact .dot { width: 11px; height: 11px; border-radius: 50%; flex: none; margin-top: 6px; }
.fact h3 { margin: 0 0 5px; font-size: 1.06rem; font-weight: 700; letter-spacing: -0.01em; }
.fact p { font-size: .98rem; color: var(--ink-2); max-width: 62ch; }

.about-body { display: flex; flex-direction: column; gap: 20px; max-width: 62ch; }
.about-body p { font-size: 1.05rem; color: var(--ink-2); line-height: 1.75; }

footer { margin-top: 76px; padding-top: 26px; border-top: 1px solid var(--line); display: flex; flex-wrap: wrap; gap: 12px 26px; justify-content: space-between; align-items: center; font-size: .86rem; color: var(--ink-3); }
footer nav { display: flex; gap: 20px; flex-wrap: wrap; }
footer a { color: var(--ink-2); }

.hero.compact { padding: 54px 0 8px; gap: 14px; }
.legal-meta { color: var(--ink-3); font-size: .92rem; max-width: 62ch; }
.legal-meta a { color: var(--accent); }

.legal-section { padding: 30px 0; border-top: 1px solid var(--line); display: flex; flex-direction: column; gap: 12px; }
.legal-section:first-of-type { border-top: none; padding-top: 6px; }
.legal-section h2 { font-size: 1.28rem; letter-spacing: -0.014em; }
.legal-section h3 { font-size: 1.02rem; font-weight: 700; letter-spacing: -0.01em; margin: 16px 0 0; }
.legal-section .zh-label { color: var(--ink-3); font-weight: 500; }
.legal-section p { font-size: 1rem; color: var(--ink); line-height: 1.75; max-width: 68ch; }
.legal-section p.zh { color: var(--ink-2); }
.legal-section ul { margin: 0; padding-left: 1.3em; max-width: 66ch; display: flex; flex-direction: column; gap: 6px; }
.legal-section ul.zh { color: var(--ink-2); }
.legal-section code { background: var(--surface-2); border-radius: 4px; padding: .1em .4em; font-size: .92em; }

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