/* relykeeper.com — shared stylesheet
   color: #b8860b (deep champagne gold) / #ffd700 (gold)
   font: system stack + Inter fallback
   layout: 6 page shared, no framework
*/

:root {
  --gold-deep: #b8860b;
  --gold: #ffd700;
  --ink: #1a1a1a;
  --ink-soft: #4a4a4a;
  --muted: #888;
  --bg: #fafaf7;
  --bg-card: #ffffff;
  --border: #e5e0d5;
  --code-bg: #f4f1ea;
  --max-width: 1080px;
}

* { box-sizing: border-box; margin: 0; padding: 0; }

html { scroll-behavior: smooth; }

body {
  font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Inter, 'Helvetica Neue', Arial, sans-serif;
  font-size: 16px;
  line-height: 1.6;
  color: var(--ink);
  background: var(--bg);
  -webkit-font-smoothing: antialiased;
}

a { color: var(--gold-deep); text-decoration: none; }
a:hover { text-decoration: underline; }

/* Layout */
.container { max-width: var(--max-width); margin: 0 auto; padding: 0 1.5rem; }

/* Header */
.site-header {
  border-bottom: 1px solid var(--border);
  background: var(--bg-card);
  padding: 1rem 0;
  position: sticky; top: 0; z-index: 10;
}
.site-header .container { display: flex; align-items: center; justify-content: space-between; gap: 1rem; flex-wrap: wrap; }
.site-header .site-nav,
.site-header .lang-switch { display: flex; }
.site-logo { font-size: 1rem; font-weight: 700; color: var(--gold-deep); display: inline-flex; align-items: center; gap: 0.65rem; }
.site-logo .logo-img { height: 36px; width: 36px; display: block; }
.site-logo .text { display: flex; flex-direction: column; align-items: center; gap: 0.2rem; line-height: 1; }
.site-logo .text .zh { font-size: 1.1rem; font-weight: 700; color: var(--gold-deep); letter-spacing: 0.22em; text-align: center; }
.site-logo .text .en { font-size: 0.7rem; font-weight: 600; color: var(--gold-deep); letter-spacing: -0.02em; text-align: center; }
.site-logo .text .sep { display: none; }
.site-logo > span:not(.text) { display: none; }
.site-nav { display: flex; gap: 1.5rem; }
.site-nav a { color: var(--ink-soft); font-size: 0.95rem; }
.site-nav a:hover, .site-nav a.active { color: var(--gold-deep); text-decoration: none; }

/* lang switch (EN | 中) */
.lang-switch {
  display: inline-flex; align-items: center; gap: 0.4rem;
  margin-left: 1rem; padding-left: 1rem; border-left: 1px solid var(--border);
  font-size: 0.85rem; color: var(--muted);
}
.lang-switch a {
  color: var(--ink-soft); font-weight: 600; padding: 0.1rem 0.25rem;
  border-radius: 3px; transition: color 0.2s, background 0.2s;
  text-decoration: none;
}
.lang-switch a:hover { color: var(--gold-deep); }
.lang-switch a.active { color: var(--gold-deep); background: rgba(184,134,11,0.08); }
.lang-switch .sep { color: var(--border); }

/* Hero */
.hero { padding: 5rem 0 4rem; text-align: center; }
.hero h1 {
  font-size: 2.75rem; line-height: 1.15; font-weight: 700; margin-bottom: 1.25rem;
  color: var(--ink);
}
.hero h1 em { color: var(--gold-deep); font-style: normal; }
.hero .tagline { font-size: 1.35rem; color: var(--ink-soft); margin-bottom: 2rem; }
.hero .cta { display: inline-block; padding: 0.85rem 1.75rem; background: var(--gold-deep); color: #fff; border-radius: 6px; font-weight: 600; }
.hero .cta:hover { background: #9a7009; text-decoration: none; }

/* Sections */
section { padding: 4rem 0; border-top: 1px solid var(--border); }
section h2 {
  font-size: 2rem; font-weight: 700; margin-bottom: 1rem;
  color: var(--ink);
}
section h2 .accent { color: var(--gold-deep); }
section h3 { font-size: 1.35rem; font-weight: 600; margin: 1.75rem 0 0.75rem; color: var(--ink); }
section p { color: var(--ink-soft); margin-bottom: 1rem; }
section ul, section ol { color: var(--ink-soft); margin-left: 1.5rem; margin-bottom: 1rem; }
section li { margin-bottom: 0.4rem; }

/* Cards */
.card-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(280px, 1fr)); gap: 1.5rem; margin-top: 2rem; }
.card {
  background: var(--bg-card); border: 1px solid var(--border); border-radius: 8px;
  padding: 1.75rem; transition: transform 0.15s, box-shadow 0.15s;
}
.card:hover { transform: translateY(-2px); box-shadow: 0 4px 12px rgba(184,134,11,0.10); }
.card .card-tag { display: inline-block; font-size: 0.75rem; text-transform: uppercase; letter-spacing: 0.05em; color: var(--gold-deep); font-weight: 600; margin-bottom: 0.5rem; }
.card h3 { margin-top: 0; color: var(--ink); }
.card p { margin: 0; font-size: 0.95rem; }

/* Tables */
table { width: 100%; border-collapse: collapse; margin: 1.5rem 0; }
th, td { padding: 0.75rem 1rem; text-align: left; border-bottom: 1px solid var(--border); }
th { background: var(--code-bg); font-weight: 600; color: var(--ink); }
td { color: var(--ink-soft); }

/* Manifesto / soul block */
.soul {
  background: linear-gradient(135deg, rgba(184,134,11,0.08), rgba(255,215,0,0.06));
  border-left: 4px solid var(--gold-deep);
  padding: 2.5rem 3rem;
  margin: 2.5rem 0;
  border-radius: 0 6px 6px 0;
}
.soul .soul-title { font-size: 1.5rem; font-weight: 700; color: var(--ink); margin-bottom: 1.25rem; }
.soul .soul-line { font-size: 1.15rem; line-height: 1.9; color: var(--ink); margin: 0.7rem 0; font-weight: 500; }
.soul .soul-finale { margin-top: 1.5rem; font-size: 1.4rem; font-weight: 700; color: var(--gold-deep); }
.soul .soul-signature { text-align: right; margin-top: 1.5rem; color: var(--muted); font-style: italic; font-size: 0.95rem; }

/* Callout */
.callout { background: var(--code-bg); border-left: 4px solid var(--gold-deep); padding: 1.25rem 1.5rem; margin: 1.5rem 0; border-radius: 0 6px 6px 0; }
.callout-title { font-weight: 600; color: var(--ink); margin-bottom: 0.5rem; }
.callout p:last-child { margin-bottom: 0; }

/* Code */
code, pre { font-family: 'SF Mono', Monaco, Menlo, Consolas, monospace; font-size: 0.9em; }
code { background: var(--code-bg); padding: 0.15rem 0.4rem; border-radius: 3px; color: var(--ink); }
pre { background: var(--code-bg); padding: 1rem; border-radius: 6px; overflow-x: auto; margin: 1rem 0; }
pre code { background: none; padding: 0; }

/* Pricing */
.price-card { background: var(--bg-card); border: 1px solid var(--border); border-radius: 8px; padding: 2rem; text-align: center; }
.price-card.featured { border-color: var(--gold-deep); border-width: 2px; }
.price-card .tier { font-size: 0.85rem; text-transform: uppercase; letter-spacing: 0.1em; color: var(--gold-deep); font-weight: 700; }
.price-card .price { font-size: 2.25rem; font-weight: 700; color: var(--ink); margin: 0.75rem 0; }
.price-card .target { color: var(--muted); font-size: 0.9rem; margin-bottom: 1.25rem; }
.price-card ul { text-align: left; list-style: none; padding: 0; }
.price-card li { padding: 0.4rem 0; border-bottom: 1px dashed var(--border); color: var(--ink-soft); }

/* Forms */
form { max-width: 480px; margin: 2rem 0; }
input, textarea, select {
  width: 100%; padding: 0.75rem 1rem; border: 1px solid var(--border); border-radius: 6px;
  font-size: 1rem; font-family: inherit; background: var(--bg-card); color: var(--ink);
  margin-bottom: 1rem;
}
textarea { min-height: 140px; resize: vertical; }
label { display: block; font-weight: 600; margin-bottom: 0.4rem; color: var(--ink); font-size: 0.95rem; }
button, .btn {
  display: inline-block; padding: 0.85rem 1.75rem; background: var(--gold-deep); color: #fff;
  border: none; border-radius: 6px; font-weight: 600; font-size: 1rem; cursor: pointer;
}
button:hover, .btn:hover { background: #9a7009; }

/* Footer */
.site-footer {
  border-top: 1px solid var(--border); padding: 2.5rem 0 2rem;
  background: var(--bg-card); margin-top: 4rem;
  color: var(--muted); font-size: 0.9rem;
}
.site-footer .container { display: flex; flex-wrap: wrap; gap: 1.5rem; justify-content: space-between; }
.site-footer a { color: var(--muted); }
.site-footer a:hover { color: var(--gold-deep); }

/* ===== animations ===== */
@keyframes fadeUp {
  from { opacity: 0; transform: translateY(24px); }
  to   { opacity: 1; transform: translateY(0); }
}
@keyframes fadeIn {
  from { opacity: 0; }
  to   { opacity: 1; }
}
@keyframes shimmer {
  0%   { background-position: -200% 0; }
  100% { background-position: 200% 0; }
}
@keyframes float {
  0%, 100% { transform: translate(0, 0) scale(1); }
  50%      { transform: translate(0, -20px) scale(1.05); }
}
@keyframes glow {
  0%, 100% { box-shadow: 0 0 24px rgba(184,134,11,0.18); }
  50%      { box-shadow: 0 0 48px rgba(184,134,11,0.36); }
}

/* reveal on scroll */
.reveal {
  opacity: 0;
  transform: translateY(24px);
  transition: opacity 0.7s cubic-bezier(0.16, 1, 0.3, 1), transform 0.7s cubic-bezier(0.16, 1, 0.3, 1);
  will-change: opacity, transform;
}
.reveal.in { opacity: 1; transform: translateY(0); }
.reveal[data-delay="1"] { transition-delay: 0.08s; }
.reveal[data-delay="2"] { transition-delay: 0.16s; }
.reveal[data-delay="3"] { transition-delay: 0.24s; }
.reveal[data-delay="4"] { transition-delay: 0.32s; }
.reveal[data-delay="5"] { transition-delay: 0.40s; }

/* header scrolled */
.site-header { transition: box-shadow 0.3s, background 0.3s; }
.site-header.scrolled {
  box-shadow: 0 1px 12px rgba(0,0,0,0.06);
  background: rgba(255,255,255,0.96);
  backdrop-filter: saturate(180%) blur(8px);
}

/* hero animated bg */
.hero { position: relative; overflow: hidden; }
.hero .blob {
  position: absolute;
  border-radius: 50%;
  filter: blur(60px);
  opacity: 0.35;
  pointer-events: none;
  will-change: transform;
  transition: transform 0.6s cubic-bezier(0.16, 1, 0.3, 1);
  animation: float 8s ease-in-out infinite;
}
.hero .blob.b1 {
  top: -80px; left: -60px;
  width: 320px; height: 320px;
  background: radial-gradient(circle, var(--gold), transparent 70%);
  animation-delay: 0s;
}
.hero .blob.b2 {
  top: 60px; right: -100px;
  width: 380px; height: 380px;
  background: radial-gradient(circle, #d4a52e, transparent 70%);
  animation-delay: -3s;
}
.hero .blob.b3 {
  bottom: -120px; left: 30%;
  width: 360px; height: 360px;
  background: radial-gradient(circle, var(--gold-deep), transparent 70%);
  animation-delay: -5s;
  opacity: 0.25;
}
.hero > .container { position: relative; z-index: 1; }
.hero h1 { animation: fadeUp 0.8s 0.05s cubic-bezier(0.16, 1, 0.3, 1) backwards; }
.hero .tagline { animation: fadeUp 0.8s 0.20s cubic-bezier(0.16, 1, 0.3, 1) backwards; }
.hero .cta { animation: fadeUp 0.8s 0.35s cubic-bezier(0.16, 1, 0.3, 1) backwards; }

/* gold gradient text */
.gold-grad {
  background: linear-gradient(135deg, var(--gold-deep), var(--gold), #d4a52e);
  background-size: 200% 200%;
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
  animation: shimmer 6s linear infinite;
}

/* 3D tilt cards */
.card.tilt { transform-style: preserve-3d; transition: transform 0.25s cubic-bezier(0.16, 1, 0.3, 1), box-shadow 0.25s; }
.card.tilt:hover { box-shadow: 0 12px 32px rgba(184,134,11,0.18); }

/* featured pricing card glow */
.price-card.featured { animation: glow 3s ease-in-out infinite; }

/* nav hover underline */
.site-nav a { position: relative; }
.site-nav a::after {
  content: '';
  position: absolute;
  left: 0; bottom: -4px;
  width: 0; height: 2px;
  background: var(--gold-deep);
  transition: width 0.25s cubic-bezier(0.16, 1, 0.3, 1);
}
.site-nav a:hover::after, .site-nav a.active::after { width: 100%; }

/* logo image float */
.site-logo .logo-img { transition: filter 0.4s; animation: float 4s ease-in-out infinite; }

/* btn hover lift */
button, .btn, .cta, .hero .cta { transition: transform 0.2s, box-shadow 0.2s, background 0.2s; }
button:hover, .btn:hover, .cta:hover, .hero .cta:hover {
  transform: translateY(-2px);
  box-shadow: 0 6px 16px rgba(184,134,11,0.30);
}

/* manifest soul line stagger */
.soul .soul-line { opacity: 0; transform: translateX(-12px); animation: fadeUp 0.6s forwards; }
.soul.in .soul-line:nth-child(2) { animation-delay: 0.05s; }
.soul.in .soul-line:nth-child(3) { animation-delay: 0.15s; }
.soul.in .soul-line:nth-child(4) { animation-delay: 0.25s; }
.soul.in .soul-line:nth-child(5) { animation-delay: 0.35s; }
.soul.in .soul-line:nth-child(6) { animation-delay: 0.45s; }
.soul.in .soul-line:nth-child(7) { animation-delay: 0.55s; }
.soul.in .soul-finale { animation-delay: 0.7s; }

/* responsive reduced motion */
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    animation-duration: 0.01ms !important;
    transition-duration: 0.01ms !important;
  }
  .hero .blob { display: none; }
}

/* Responsive */
@media (max-width: 720px) {
  .hero { padding: 3rem 0 2.5rem; }
  .hero h1 { font-size: 2rem; }
  .hero .tagline { font-size: 1.1rem; }
  section { padding: 2.5rem 0; }
  section h2 { font-size: 1.6rem; }
  .site-header .container { flex-direction: column; gap: 0.75rem; }
  .site-nav { gap: 1rem; flex-wrap: wrap; justify-content: center; }
  .soul { padding: 1.75rem 1.5rem; }
}
