/* 平安護身佛 · My Buddha — landing site
   Aesthetic: temple lacquer & gold-leaf editorial. Deep red lacquer grounds,
   gold filigree frames borrowed from the app's own 福條 tablets, warm
   candlelight glow, cream paper for reading surfaces. System serif type
   only — no webfonts, no build step, works instantly like the app itself. */

:root{
  --lacquer-950:#1c0503;
  --lacquer-900:#2a0a06;
  --lacquer-800:#3d0d09;
  --lacquer-700:#5a130d;
  --lacquer-600:#7a1a13;
  --lacquer-500:#9c2418;
  --gold-100:#f6e3b8;
  --gold-200:#eccf90;
  --gold-300:#e0b96b;
  --gold-400:#cf9c3f;
  --gold-500:#b17f2c;
  --cream-50:#fdf8ee;
  --cream-100:#f8efdc;
  --cream-200:#f0e3c4;
  --ink:#241008;
  --ink-soft:#4a2c1e;
  --shadow-deep: 0 30px 70px -25px rgba(10,2,1,.65);
  --shadow-soft: 0 14px 34px -18px rgba(20,4,2,.5);
  --radius-lg: 28px;
  --radius-md: 18px;
  --serif-cjk: "Noto Serif TC","Songti TC","Songti SC","STSong","PingFang TC","PingFang SC","Microsoft JhengHei",serif;
  --sans-cjk: "PingFang TC","PingFang SC","Heiti TC","Microsoft JhengHei","Microsoft YaHei",sans-serif;
  --serif-en: Georgia, "Times New Roman", serif;
  --ease-silk: cubic-bezier(.22,.61,.36,1);
}

*,*::before,*::after{ box-sizing:border-box; }
html{ scroll-behavior:smooth; }
body{
  margin:0;
  background: var(--lacquer-900);
  color: var(--cream-100);
  font-family: var(--sans-cjk), var(--serif-en);
  font-size:18px;
  line-height:1.75;
  -webkit-font-smoothing:antialiased;
  overflow-x:hidden;
}
html,body{ overflow-x:clip; }
img{ max-width:100%; display:block; }
a{ color:inherit; }
h1,h2,h3,h4{ font-family: var(--serif-cjk); font-weight:700; letter-spacing:.02em; margin:0 0 .5em; color: var(--gold-100); }
p{ margin:0 0 1em; }
.container{ width:100%; max-width:1120px; margin:0 auto; padding:0 24px; }
.container--narrow{ max-width:760px; }
.visually-hidden{ position:absolute; width:1px;height:1px; overflow:hidden; clip:rect(0 0 0 0); white-space:nowrap; }
::selection{ background: var(--gold-300); color: var(--lacquer-950); }

/* ---------- background atmosphere ---------- */
body{
  background-image:
    radial-gradient(ellipse 900px 560px at 18% -8%, rgba(230,170,90,.20), transparent 60%),
    radial-gradient(ellipse 700px 500px at 100% 10%, rgba(190,50,30,.28), transparent 55%),
    linear-gradient(180deg, var(--lacquer-950) 0%, var(--lacquer-900) 30%, var(--lacquer-800) 100%);
  background-attachment: fixed;
}
.grain{
  position:fixed; inset:0; pointer-events:none; z-index:0; opacity:.05; mix-blend-mode:overlay;
  background-image:url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' width='120' height='120'><filter id='n'><feTurbulence type='fractalNoise' baseFrequency='0.9' numOctaves='2' stitchTiles='stitch'/></filter><rect width='100%25' height='100%25' filter='url(%23n)'/></svg>");
}

/* ---------- header ---------- */
.site-header{
  position:sticky; top:0; z-index:40;
  background: linear-gradient(180deg, rgba(26,6,4,.92), rgba(26,6,4,.78));
  backdrop-filter: blur(10px);
  border-bottom:1px solid rgba(224,185,107,.18);
}
.site-header .container{ display:flex; align-items:center; justify-content:space-between; height:76px; gap:16px; }
.brand{ display:flex; align-items:center; gap:12px; text-decoration:none; }
.brand img{ width:40px; height:40px; border-radius:11px; box-shadow:0 4px 14px rgba(0,0,0,.4); }
.brand-name{ font-family:var(--serif-cjk); font-size:20px; color:var(--gold-100); font-weight:700; }
.brand-name small{ display:block; font-family:var(--serif-en); font-size:11px; letter-spacing:.14em; color:var(--gold-400); font-weight:400; text-transform:uppercase; }
.lang-switch{ display:flex; gap:2px; background:rgba(0,0,0,.22); border:1px solid rgba(224,185,107,.25); border-radius:999px; padding:3px; }
.lang-switch a{ text-decoration:none; font-size:14px; padding:7px 14px; border-radius:999px; color:var(--gold-200); transition:.25s var(--ease-silk); }
.lang-switch a:hover{ background:rgba(224,185,107,.14); }
.lang-switch a[aria-current="true"]{ background:linear-gradient(180deg,var(--gold-300),var(--gold-400)); color:var(--lacquer-950); font-weight:700; }

/* ---------- gold frame (福條 motif) ---------- */
.gold-frame{
  position:relative;
  border:1px solid rgba(224,185,107,.55);
  border-radius: var(--radius-md);
  background: linear-gradient(160deg, rgba(122,26,19,.55), rgba(42,10,6,.65));
  box-shadow: inset 0 0 0 1px rgba(0,0,0,.25), var(--shadow-soft);
  padding:28px 26px;
}
.gold-frame::before,.gold-frame::after,
.gold-frame .corner-tl,.gold-frame .corner-br{
  content:""; position:absolute; width:22px; height:22px; pointer-events:none;
}
.gold-frame::before{ top:-1px; left:-1px; border-top:3px solid var(--gold-300); border-left:3px solid var(--gold-300); border-top-left-radius:6px; }
.gold-frame::after{ bottom:-1px; right:-1px; border-bottom:3px solid var(--gold-300); border-right:3px solid var(--gold-300); border-bottom-right-radius:6px; }

/* ---------- buttons ---------- */
.btn{
  display:inline-flex; align-items:center; justify-content:center; gap:10px;
  padding:16px 30px; border-radius:999px; text-decoration:none;
  font-size:17px; font-weight:700; letter-spacing:.02em;
  transition: transform .25s var(--ease-silk), box-shadow .25s var(--ease-silk), background .25s;
  border:1px solid transparent; cursor:pointer;
}
.btn-primary{
  background: linear-gradient(180deg, var(--gold-200), var(--gold-400));
  color: var(--lacquer-950);
  box-shadow: 0 16px 34px -14px rgba(207,156,63,.55), inset 0 1px 0 rgba(255,255,255,.5);
}
.btn-primary:hover{ transform: translateY(-3px); box-shadow: 0 22px 40px -14px rgba(207,156,63,.7), inset 0 1px 0 rgba(255,255,255,.6); }
.btn-ghost{
  background:rgba(0,0,0,.2); color:var(--gold-100); border-color:rgba(224,185,107,.45);
}
.btn-ghost:hover{ background:rgba(224,185,107,.1); transform:translateY(-2px); }
.btn[aria-disabled="true"]{ opacity:.55; cursor:default; pointer-events:none; }
.btn small{ display:block; font-weight:400; font-size:11px; opacity:.8; text-align:left; line-height:1.2; }

/* ---------- hero ---------- */
.hero{ position:relative; padding:64px 0 40px; z-index:1; overflow-x:clip; }
.hero-grid{ display:grid; grid-template-columns: 1.05fr .95fr; gap:56px; align-items:center; }
.eyebrow{
  display:inline-flex; align-items:center; gap:10px; font-size:13px; letter-spacing:.16em; text-transform:uppercase;
  color:var(--gold-300); margin-bottom:18px; font-family:var(--serif-en);
}
.eyebrow::before{ content:""; width:26px; height:1px; background:var(--gold-400); }
.hero h1{ font-size:clamp(34px,4.6vw,58px); line-height:1.22; margin-bottom:20px; animation: rise .9s var(--ease-silk) both; }
.hero h1 em{ font-style:normal; color:var(--gold-300); }
.hero-sub{ font-size:19px; color:var(--cream-200); max-width:46ch; animation: rise .9s .1s var(--ease-silk) both; }
.hero-en{ font-family:var(--serif-en); font-style:italic; color:var(--gold-200); opacity:.85; font-size:16px; margin-top:-6px; }
.hero-actions{ display:flex; flex-wrap:wrap; gap:14px; margin-top:30px; animation: rise .9s .2s var(--ease-silk) both; }
.hero-rating{ display:flex; align-items:center; gap:10px; margin-top:26px; font-size:14px; color:var(--gold-200); animation: rise .9s .3s var(--ease-silk) both; }
.stars{ color:var(--gold-300); letter-spacing:2px; }
@keyframes rise{ from{ opacity:0; transform:translateY(18px);} to{ opacity:1; transform:none;} }

.hero-phones{ position:relative; display:flex; justify-content:center; animation: float-in 1.1s var(--ease-silk) both; }
@keyframes float-in{ from{ opacity:0; transform:translateY(30px) scale(.96);} to{ opacity:1; transform:none;} }

/* phone mockup */
.phone{
  position:relative; width:250px; border-radius:38px; padding:10px;
  background: linear-gradient(160deg,#141414,#050505);
  box-shadow: var(--shadow-deep), 0 0 0 1px rgba(224,185,107,.18);
}
.phone::before{
  content:""; position:absolute; top:22px; left:50%; transform:translateX(-50%);
  width:70px; height:20px; background:#050505; border-radius:12px; z-index:2;
}
.phone .screen{ border-radius:29px; overflow:hidden; background:#1c0503; }
.phone .screen img{ width:100%; display:block; }
.phone--lead{ width:280px; z-index:2; }
.phone--back{
  position:absolute; width:230px; opacity:.72; filter:saturate(.85);
}
.phone--back.left{ left:-64px; top:34px; transform:rotate(-9deg); }
.phone--back.right{ right:-64px; top:56px; transform:rotate(8deg); }
.hero-glow{
  position:absolute; inset:-60px; z-index:0; pointer-events:none;
  background: radial-gradient(circle at 50% 45%, rgba(240,190,110,.35), transparent 62%);
  filter: blur(6px);
}

/* incense smoke decorative wisp */
.smoke-wisp{
  position:absolute; width:2px; height:220px; left:50%; top:-140px; z-index:1; pointer-events:none;
  background:linear-gradient(180deg, transparent, rgba(240,220,190,.35), transparent);
  filter: blur(3px);
  animation: drift 7s ease-in-out infinite;
}
@keyframes drift{ 0%,100%{ transform:translateX(-50%) rotate(0deg);} 50%{ transform:translateX(-50%) rotate(6deg);} }

/* ---------- sections ---------- */
section{ position:relative; padding:88px 0; z-index:1; }
.section-head{ text-align:center; max-width:640px; margin:0 auto 56px; }
.section-head h2{ font-size:clamp(28px,3.4vw,40px); }
.section-head p{ color:var(--cream-200); font-size:17px; }
.divider{ display:flex; align-items:center; justify-content:center; gap:14px; margin:0 auto 20px; color:var(--gold-400); }
.divider::before,.divider::after{ content:""; width:56px; height:1px; background:linear-gradient(90deg,transparent,var(--gold-400)); }
.divider::after{ background:linear-gradient(90deg,var(--gold-400),transparent); }

/* feature grid */
.feature-grid{ display:grid; grid-template-columns:repeat(3,1fr); gap:26px; }
.feature-card{
  padding:30px 26px; border-radius:var(--radius-md);
  background:linear-gradient(165deg, rgba(255,255,255,.04), rgba(0,0,0,.12));
  border:1px solid rgba(224,185,107,.16);
  transition: transform .35s var(--ease-silk), border-color .35s, box-shadow .35s;
}
.js .feature-card:not(.is-visible){ opacity:0; transform:translateY(22px); }
.feature-card.is-visible{ animation: rise .7s var(--ease-silk) forwards; }
.feature-card:hover{ transform:translateY(-6px); border-color:rgba(224,185,107,.4); box-shadow:var(--shadow-soft); }
.feature-icon{
  width:52px; height:52px; border-radius:14px; display:flex; align-items:center; justify-content:center;
  background:linear-gradient(160deg,var(--gold-200),var(--gold-500)); color:var(--lacquer-950); font-size:24px; margin-bottom:18px;
  box-shadow:0 10px 22px -10px rgba(207,156,63,.6);
}
.feature-card h3{ font-size:20px; margin-bottom:8px; }
.feature-card p{ color:var(--cream-200); font-size:16px; margin:0; }

/* screenshot showcase strip */
.showcase{ display:flex; gap:28px; overflow-x:auto; padding:20px 4px 30px; scroll-snap-type:x proximity; }
.showcase::-webkit-scrollbar{ height:8px; }
.showcase::-webkit-scrollbar-thumb{ background:rgba(224,185,107,.35); border-radius:8px; }
.showcase-item{ flex:0 0 auto; width:230px; scroll-snap-align:center; text-align:center; }
.showcase-item .phone{ width:230px; margin:0 auto; }
.showcase-item figcaption{ margin-top:16px; color:var(--gold-200); font-size:15px; }

/* guardian buddhas grid */
.guardian-grid{ display:grid; grid-template-columns:repeat(4,1fr); gap:18px; }
.guardian-card{
  text-align:center; padding:18px 10px 16px; border-radius:16px;
  background:rgba(0,0,0,.18); border:1px solid rgba(224,185,107,.14);
  transition:.3s var(--ease-silk);
}
.guardian-card:hover{ background:rgba(224,185,107,.08); transform:translateY(-4px); }
.guardian-card img{ width:72px; height:72px; margin:0 auto 12px; border-radius:50%; border:2px solid rgba(224,185,107,.4); object-fit:cover; background:radial-gradient(circle,#fce9c0,#e9c583); }
.guardian-card .zodiac{ font-size:13px; color:var(--gold-300); margin-bottom:2px; }
.guardian-card .buddha-name{ font-size:15px; color:var(--cream-100); }

/* quote / testimonial */
.quote-strip{ display:grid; grid-template-columns:repeat(3,1fr); gap:22px; }
.quote-card{ padding:26px; border-radius:var(--radius-md); background:rgba(0,0,0,.16); border:1px solid rgba(224,185,107,.14); }
.quote-card .stars{ display:block; margin-bottom:12px; }
.quote-card p{ color:var(--cream-100); font-size:16px; font-style:italic; }
.quote-card cite{ display:block; margin-top:14px; font-style:normal; font-size:13px; color:var(--gold-300); }

/* download CTA band */
.cta-band{
  border-radius:32px; padding:60px 40px; text-align:center;
  background: radial-gradient(ellipse at 50% -10%, rgba(240,190,110,.22), transparent 60%), linear-gradient(160deg, var(--lacquer-700), var(--lacquer-950));
  border:1px solid rgba(224,185,107,.3);
  box-shadow: var(--shadow-deep);
}
.cta-band h2{ font-size:clamp(26px,3.2vw,36px); }
.cta-band p{ color:var(--cream-200); max-width:52ch; margin:0 auto 30px; }
.store-badges{ display:flex; gap:16px; justify-content:center; flex-wrap:wrap; }

/* footer */
.site-footer{ border-top:1px solid rgba(224,185,107,.16); padding:48px 0 40px; font-size:14px; color:var(--gold-200); }
.footer-grid{ display:flex; justify-content:space-between; flex-wrap:wrap; gap:24px; align-items:center; }
.footer-links{ display:flex; gap:22px; flex-wrap:wrap; }
.footer-links a{ text-decoration:none; color:var(--gold-200); opacity:.85; }
.footer-links a:hover{ opacity:1; text-decoration:underline; }
.footer-note{ opacity:.65; font-size:13px; margin-top:18px; }

/* ---------- content / policy pages ---------- */
.page-hero{ padding:64px 0 20px; text-align:center; }
.page-hero h1{ font-size:clamp(30px,4vw,44px); }
.page-hero .meta{ color:var(--gold-300); font-size:14px; }
.prose{
  background: var(--cream-50); color: var(--ink);
  border-radius: 26px; padding: 48px clamp(24px,5vw,64px); margin: 20px auto 80px;
  box-shadow: var(--shadow-deep);
}
.prose h2{ color:var(--lacquer-700); font-size:24px; margin-top:2.2em; border-bottom:2px solid var(--gold-300); padding-bottom:.3em; }
.prose h2:first-of-type{ margin-top:0; }
.prose h3{ color:var(--lacquer-600); font-size:19px; margin-top:1.6em; }
.prose p,.prose li{ color:var(--ink-soft); font-size:17px; }
.prose ul,.prose ol{ padding-left:1.4em; }
.prose a{ color:var(--lacquer-600); text-decoration-color: var(--gold-400); }
.prose strong{ color:var(--ink); }
.lang-divider{ display:flex; align-items:center; gap:14px; margin:3em 0 2em; color:var(--gold-500); }
.lang-divider::before,.lang-divider::after{ content:""; flex:1; height:1px; background:var(--gold-400); }
.lang-divider span{ font-family:var(--serif-en); letter-spacing:.14em; text-transform:uppercase; font-size:12px; }
.faq-item{ margin-bottom:1.6em; }
.faq-item dt{ font-weight:700; color:var(--lacquer-700); margin-bottom:.3em; font-size:17.5px; }
.faq-item dd{ margin:0; color:var(--ink-soft); }
.contact-card{
  display:flex; align-items:center; gap:18px; padding:22px 26px; border-radius:16px;
  background: var(--cream-200); border:1px solid var(--gold-300); margin:1.6em 0;
}
.contact-card a{ font-weight:700; font-size:18px; }

/* ---------- 404 ---------- */
.error-page{ min-height:70vh; display:flex; align-items:center; justify-content:center; text-align:center; padding:60px 24px; }
.error-page .code{ font-family:var(--serif-cjk); font-size:96px; color:var(--gold-300); line-height:1; }

/* ---------- responsive ---------- */
@media (max-width: 980px){
  .hero-grid{ grid-template-columns:1fr; gap:60px; }
  .hero-phones{ padding-top:8px; }
  .feature-grid{ grid-template-columns:repeat(2,1fr); }
  .quote-strip{ grid-template-columns:1fr; }
  .guardian-grid{ grid-template-columns:repeat(4,1fr); }
}
@media (max-width: 640px){
  body{ font-size:17px; }
  .site-header .container{ height:66px; }
  .brand-name{ font-size:17px; }
  .lang-switch a{ padding:6px 10px; font-size:13px; }
  section{ padding:60px 0; }
  .feature-grid{ grid-template-columns:1fr; }
  .guardian-grid{ grid-template-columns:repeat(3,1fr); }
  .cta-band{ padding:44px 22px; }
  .prose{ padding:32px 20px; border-radius:18px; }
  .phone--back{ display:none; }
  .hero-phones{ min-height:420px; }
  .hero-phones .phone{ width:220px; }
  .footer-grid{ flex-direction:column; align-items:flex-start; }
}
@media (prefers-reduced-motion: reduce){
  *{ animation-duration:.01ms !important; animation-iteration-count:1 !important; transition-duration:.01ms !important; scroll-behavior:auto !important; }
}
