:root {
    --primary-color: #5361b8;
    --secondary-color: #8b5cf6;
    --gold: #f9d276;
    --grad: linear-gradient(135deg, #5361b8, #8b5cf6);
    --grad-deep: linear-gradient(135deg, #1e2846, #5361b8 55%, #8b5cf6);
    --success-color: #34c77b;
    --text-primary: #1c2033;
    --text-secondary: #64708c;
    --bg-primary: #ffffff;
    --bg-secondary: #f5f7fa;
    --card: #ffffff;
    --border-color: #e6e9f2;
    --shadow: 0 2px 15px rgba(30, 40, 70, 0.06);
    --shadow-lg: 0 18px 50px rgba(30, 40, 70, 0.16);
    --nav-bg: rgba(255, 255, 255, 0.74);
    --chip-bg: rgba(83, 97, 184, 0.09);
    --radius: 22px;
}

:root[data-theme="dark"] {
    --primary-color: #9aa5f0;
    --secondary-color: #b79cff;
    --grad: linear-gradient(135deg, #8b96e8, #b79cff);
    --text-primary: #eef0fa;
    --text-secondary: #9aa2bd;
    --bg-primary: #0e1020;
    --bg-secondary: #14162b;
    --card: #191c33;
    --border-color: #2a2e4a;
    --shadow: 0 2px 15px rgba(0, 0, 0, 0.4);
    --shadow-lg: 0 18px 50px rgba(0, 0, 0, 0.55);
    --nav-bg: rgba(14, 16, 32, 0.74);
    --chip-bg: rgba(139, 92, 246, 0.18);
}

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

body {
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', 'PingFang SC', 'Microsoft YaHei', Roboto, sans-serif;
    color: var(--text-primary);
    background-color: var(--bg-primary);
    line-height: 1.6;
    overflow-x: clip;
    -webkit-font-smoothing: antialiased;
    text-rendering: optimizeLegibility;
    transition: background-color .4s ease, color .4s ease;
}

html { scroll-behavior: smooth; scroll-padding-top: 90px; overflow-x: clip; }
img { display: block; max-width: 100%; }

a:focus-visible, button:focus-visible, summary:focus-visible {
    outline: 3px solid rgba(83, 97, 184, 0.5);
    outline-offset: 3px;
    border-radius: 6px;
}

.container { max-width: 1180px; margin: 0 auto; padding: 0 22px; }

.skip-link {
    position: absolute; left: -999px; top: 0; z-index: 2000;
    background: var(--primary-color); color: #fff; padding: 10px 16px; border-radius: 0 0 10px 0;
}
.skip-link:focus { left: 0; }

.section-title { font-size: clamp(28px, 4vw, 38px); font-weight: 800; text-align: center; letter-spacing: -0.02em; }
.section-sub { text-align: center; color: var(--text-secondary); font-size: 17px; margin-top: 12px; margin-bottom: 52px; }

/* ---------- Navbar ---------- */
.navbar {
    position: fixed; top: 0; left: 0; right: 0; z-index: 1000;
    background: var(--nav-bg);
    backdrop-filter: saturate(180%) blur(18px);
    -webkit-backdrop-filter: saturate(180%) blur(18px);
    border-bottom: 1px solid transparent;
    padding: 12px 0;
    transition: border-color .3s, box-shadow .3s, background .4s;
}
.navbar.scrolled { border-bottom-color: var(--border-color); box-shadow: 0 6px 24px rgba(30,40,70,.06); }
.navbar .container { display: flex; justify-content: space-between; align-items: center; }
.nav-brand { display: flex; align-items: center; gap: 10px; font-size: 20px; font-weight: 700; text-decoration: none; color: var(--text-primary); }
.brand-icon { display: inline-flex; filter: drop-shadow(0 4px 12px rgba(83,97,184,.4)); }
.brand-icon svg { display: block; border-radius: 9px; }
.nav-menu { display: flex; align-items: center; gap: 22px; }
.nav-link { text-decoration: none; color: var(--text-secondary); font-weight: 500; font-size: 15px; transition: color .25s; }
.nav-link:hover { color: var(--primary-color); }
.icon-btn, .lang-switch {
    background: var(--bg-secondary); color: var(--text-primary); border: 1px solid var(--border-color);
    border-radius: 999px; cursor: pointer; font-weight: 600; transition: all .25s; display: inline-flex; align-items: center; justify-content: center;
}
.icon-btn { width: 38px; height: 38px; }
.lang-switch { padding: 8px 15px; font-size: 14px; }
.icon-btn:hover, .lang-switch:hover { border-color: var(--primary-color); color: var(--primary-color); }
.icon-btn .i-moon { display: none; }
:root[data-theme="dark"] .icon-btn .i-sun { display: none; }
:root[data-theme="dark"] .icon-btn .i-moon { display: block; }

/* ---------- Buttons ---------- */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 8px; padding: 14px 26px; border-radius: 999px; text-decoration: none; font-weight: 600; font-size: 16px; transition: transform .2s, box-shadow .2s, background .25s; white-space: nowrap; }
.btn-sm { padding: 9px 18px; font-size: 14px; }
.btn-primary { background: var(--grad); color: #fff; box-shadow: 0 8px 22px rgba(83,97,184,.34); }
.btn-primary:hover { transform: translateY(-2px); box-shadow: 0 14px 30px rgba(83,97,184,.44); }
.btn-secondary { background: var(--bg-secondary); color: var(--text-primary); border: 1px solid var(--border-color); }
.btn-secondary:hover { transform: translateY(-2px); border-color: var(--primary-color); color: var(--primary-color); }
.nav-cta { box-shadow: 0 6px 16px rgba(83,97,184,.3); }

/* ---------- Hero ---------- */
.hero { position: relative; padding: 140px 0 90px; overflow: hidden; }
.hero-bg { position: absolute; inset: 0; z-index: 0; background:
    radial-gradient(60% 55% at 82% 6%, rgba(139,92,246,.20), transparent 60%),
    radial-gradient(55% 50% at 6% 34%, rgba(83,97,184,.16), transparent 60%),
    radial-gradient(40% 40% at 78% 82%, rgba(249,210,118,.14), transparent 60%); }
:root[data-theme="dark"] .hero-bg { background:
    radial-gradient(60% 55% at 82% 6%, rgba(139,92,246,.24), transparent 60%),
    radial-gradient(55% 50% at 6% 34%, rgba(83,97,184,.20), transparent 60%),
    radial-gradient(40% 40% at 78% 82%, rgba(249,210,118,.10), transparent 60%); }
.hero .container { position: relative; z-index: 1; display: grid; grid-template-columns: 1.05fr 1fr; gap: 56px; align-items: center; }
.eyebrow { display: inline-block; font-size: 13px; font-weight: 700; letter-spacing: .04em; color: var(--primary-color); background: var(--chip-bg); padding: 7px 14px; border-radius: 999px; margin-bottom: 20px; }
.hero-title { font-size: clamp(36px, 5.2vw, 58px); font-weight: 800; line-height: 1.1; letter-spacing: -0.03em; margin-bottom: 18px; background: var(--grad); -webkit-background-clip: text; background-clip: text; -webkit-text-fill-color: transparent; text-wrap: balance; }
.hero-subtitle { font-size: 19px; color: var(--text-secondary); margin-bottom: 34px; max-width: 40ch; }
.hero-buttons { display: flex; gap: 14px; flex-wrap: wrap; }
.apple-icon { margin-right: 2px; }
.hero-trust { list-style: none; display: flex; flex-wrap: wrap; gap: 10px 20px; margin-top: 30px; }
.hero-trust li { display: inline-flex; align-items: center; gap: 7px; font-size: 14px; color: var(--text-secondary); font-weight: 500; }
.hero-trust svg { color: var(--success-color); flex: 0 0 auto; }

/* Hero breathe signature */
.hero-visual { position: relative; display: flex; justify-content: center; align-items: center; min-height: 500px; }
.breathe-orb { position: absolute; z-index: 1; top: 50%; left: 50%; width: min(370px, 82vw); aspect-ratio: 1; transform: translate(-50%, -50%); border-radius: 50%;
    background: radial-gradient(circle at 50% 42%, rgba(249,210,118,.62), rgba(139,92,246,.5) 40%, rgba(83,97,184,.34) 66%, transparent 72%);
    filter: blur(6px); animation: breathe 10s ease-in-out infinite; }
.breathe-ring { position: absolute; z-index: 0; top: 50%; left: 50%; width: min(440px, 92vw); aspect-ratio: 1; border-radius: 50%; border: 1.5px solid rgba(139,92,246,.32); transform: translate(-50%, -50%) scale(.55); opacity: 0; animation: ripple 10s ease-out infinite; }
.breathe-ring.r2 { animation-delay: 5s; }
.device { position: relative; z-index: 2; width: 268px; max-width: 72vw; border-radius: 44px; padding: 12px; background: linear-gradient(160deg, #2a2e4a, #10111f); box-shadow: var(--shadow-lg); }
.device::before { content: ""; position: absolute; top: 16px; left: 50%; transform: translateX(-50%); width: 84px; height: 20px; background: #10111f; border-radius: 999px; z-index: 3; }
.device img { width: 100%; height: auto; border-radius: 33px; display: block; }
.breathe-cue { position: absolute; z-index: 4; left: 50%; bottom: 4%; transform: translateX(-50%); width: 128px; height: 36px; }
.breathe-cue span { position: absolute; inset: 0; display: grid; place-items: center; font-weight: 700; font-size: 14px; letter-spacing: .08em; color: #fff; background: rgba(24,28,52,.62); backdrop-filter: blur(8px); -webkit-backdrop-filter: blur(8px); border: 1px solid rgba(255,255,255,.22); border-radius: 999px; }
.breathe-cue .b-in { opacity: 1; animation: cueIn 10s ease-in-out infinite; }
.breathe-cue .b-out { opacity: 0; animation: cueOut 10s ease-in-out infinite; }
.hero-chip { position: absolute; z-index: 5; display: inline-flex; align-items: center; gap: 7px; background: var(--card); border: 1px solid var(--border-color); box-shadow: var(--shadow-lg); border-radius: 14px; padding: 10px 14px; font-size: 13px; font-weight: 700; }
.hero-chip svg { color: var(--secondary-color); flex: 0 0 auto; }
.chip-a { top: 12%; left: -2%; animation: float 5s ease-in-out infinite; }
.chip-b { bottom: 13%; right: -3%; animation: float 5s ease-in-out infinite .8s; }

@keyframes breathe { 0% { transform: translate(-50%, -50%) scale(.82); } 45% { transform: translate(-50%, -50%) scale(1.1); } 55% { transform: translate(-50%, -50%) scale(1.1); } 100% { transform: translate(-50%, -50%) scale(.82); } }
@keyframes ripple { 0% { transform: translate(-50%, -50%) scale(.5); opacity: .55; } 70% { opacity: 0; } 100% { transform: translate(-50%, -50%) scale(1); opacity: 0; } }
@keyframes cueIn { 0% { opacity: 0; } 8% { opacity: 1; } 40% { opacity: 1; } 48% { opacity: 0; } 100% { opacity: 0; } }
@keyframes cueOut { 0% { opacity: 0; } 50% { opacity: 0; } 58% { opacity: 1; } 90% { opacity: 1; } 98% { opacity: 0; } 100% { opacity: 0; } }
@keyframes float { 0%,100% { transform: translateY(0); } 50% { transform: translateY(-9px); } }
@keyframes pulse { 0% { box-shadow: 0 0 0 0 rgba(52,199,123,.5);} 70%{ box-shadow: 0 0 0 8px rgba(52,199,123,0);} 100%{ box-shadow:0 0 0 0 rgba(52,199,123,0);} }

/* ---------- Proof band ---------- */
.proof { padding: 22px 0; border-top: 1px solid var(--border-color); border-bottom: 1px solid var(--border-color); background: var(--bg-secondary); }
.proof-row { display: flex; align-items: center; justify-content: space-between; gap: 26px; flex-wrap: wrap; }
.proof-rating { display: flex; align-items: center; gap: 12px; }
.apple-mark { display: flex; align-items: center; color: var(--text-primary); }
.apple-mark svg { display: block; }
.proof-sub { display: flex; flex-direction: column; line-height: 1.25; font-size: 13px; color: var(--text-secondary); }
.proof-sub strong { color: var(--text-primary); font-size: 15px; }
.proof-stats { display: flex; gap: 34px; flex-wrap: wrap; }
.stat { display: flex; flex-direction: column; }
.stat strong { font-size: 20px; font-weight: 800; background: var(--grad); -webkit-background-clip: text; background-clip: text; -webkit-text-fill-color: transparent; }
.stat span { font-size: 12.5px; color: var(--text-secondary); }

/* ---------- Sections base ---------- */
.how, .features, .screenshots, .privacy, .faq { padding: 88px 0; }
.features { background: var(--bg-secondary); }
.faq { background: var(--bg-secondary); }

/* How it works */
.steps { display: grid; grid-template-columns: repeat(3, 1fr); gap: 26px; }
.step { position: relative; background: var(--card); border: 1px solid var(--border-color); border-radius: var(--radius); padding: 34px 26px; text-align: left; box-shadow: var(--shadow); }
.step-badge { position: absolute; top: -16px; left: 26px; width: 34px; height: 34px; border-radius: 50%; background: var(--grad); color: #fff; font-weight: 800; display: grid; place-items: center; box-shadow: 0 6px 16px rgba(83,97,184,.38); }
.step-ic { width: 52px; height: 52px; border-radius: 15px; background: var(--chip-bg); color: var(--primary-color); display: grid; place-items: center; margin: 8px 0 16px; }
.step h3 { font-size: 20px; margin-bottom: 8px; }
.step p { color: var(--text-secondary); font-size: 15px; }
.steps .step:not(:last-child)::after { content: ""; position: absolute; top: 50%; right: -18px; width: 20px; height: 2px; background: var(--border-color); }

/* Features */
.features-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(320px, 1fr)); gap: 24px; }
.feature-card { background: var(--card); border: 1px solid var(--border-color); padding: 32px; border-radius: var(--radius); transition: transform .3s, box-shadow .3s, border-color .3s; }
.feature-card:hover { transform: translateY(-6px); box-shadow: var(--shadow-lg); border-color: transparent; }
.feature-icon { width: 54px; height: 54px; border-radius: 15px; background: var(--chip-bg); color: var(--primary-color); display: grid; place-items: center; margin-bottom: 20px; transition: background .3s, color .3s; }
.feature-card:hover .feature-icon { background: var(--grad); color: #fff; }
.feature-card h3 { font-size: 20px; margin-bottom: 10px; }
.feature-card p { color: var(--text-secondary); font-size: 15px; }

/* ---------- Screenshots gallery ---------- */
.gallery { position: relative; }
.gal-track { display: flex; gap: 30px; overflow-x: auto; padding: 10px 4px 24px; scroll-snap-type: x mandatory; scrollbar-width: none; }
.gal-track::-webkit-scrollbar { display: none; }
.shot { flex: 0 0 auto; scroll-snap-align: center; text-align: center; }
.phone { width: 260px; max-width: 70vw; border-radius: 34px; padding: 10px; background: linear-gradient(160deg, #2a2e4a, #10111f); box-shadow: var(--shadow-lg); cursor: zoom-in; }
.phone img { width: 100%; height: auto; border-radius: 26px; display: block; }
.shot figcaption { margin-top: 16px; font-weight: 600; color: var(--text-secondary); font-size: 15px; }
.gal-arrow { position: absolute; top: 42%; transform: translateY(-50%); width: 46px; height: 46px; border-radius: 50%; border: 1px solid var(--border-color); background: var(--card); color: var(--text-primary); font-size: 24px; line-height: 1; cursor: pointer; box-shadow: var(--shadow); z-index: 2; transition: all .2s; }
.gal-arrow:hover { background: var(--primary-color); color: #fff; border-color: var(--primary-color); }
.gal-arrow.prev { left: -8px; } .gal-arrow.next { right: -8px; }
.gal-dots { display: flex; justify-content: center; gap: 8px; margin-top: 6px; }
.gal-dots button { width: 8px; height: 8px; border-radius: 999px; border: none; background: var(--border-color); cursor: pointer; padding: 0; transition: all .25s; }
.gal-dots button.active { width: 24px; background: var(--primary-color); }

/* Lightbox */
.lightbox { position: fixed; inset: 0; z-index: 3000; background: rgba(0,0,0,.86); display: flex; align-items: center; justify-content: center; opacity: 0; pointer-events: none; transition: opacity .25s; padding: 24px; }
.lightbox.open { opacity: 1; pointer-events: auto; }
.lightbox img { max-width: 92vw; max-height: 88vh; border-radius: 22px; box-shadow: 0 30px 80px rgba(0,0,0,.6); }
.lightbox-close { position: absolute; top: 20px; right: 24px; width: 44px; height: 44px; border-radius: 50%; border: none; background: rgba(255,255,255,.14); color: #fff; font-size: 24px; cursor: pointer; }

/* ---------- Privacy ---------- */
.privacy-card { background: var(--grad-deep); color: #fff; border-radius: 28px; padding: 48px; display: grid; grid-template-columns: 1.1fr 1fr; gap: 30px; align-items: center; box-shadow: 0 24px 60px rgba(30,40,70,.32); }
.privacy-lead h2 { font-size: clamp(24px, 3.4vw, 32px); font-weight: 800; margin-bottom: 12px; }
.privacy-lead p { opacity: .92; font-size: 16px; }
.privacy-points { list-style: none; display: grid; grid-template-columns: 1fr 1fr; gap: 14px; }
.privacy-points li { display: flex; align-items: center; gap: 10px; font-weight: 600; background: rgba(255,255,255,.14); padding: 12px 14px; border-radius: 14px; font-size: 15px; }
.privacy-points svg { flex: 0 0 auto; color: var(--gold); }

/* ---------- FAQ ---------- */
.faq-list { max-width: 780px; margin: 0 auto; display: flex; flex-direction: column; gap: 12px; }
.faq-item { background: var(--card); border: 1px solid var(--border-color); border-radius: 16px; padding: 4px 20px; }
.faq-item summary { list-style: none; cursor: pointer; font-weight: 600; font-size: 17px; padding: 16px 0; display: flex; justify-content: space-between; align-items: center; gap: 16px; }
.faq-item summary::-webkit-details-marker { display: none; }
.faq-item summary::after { content: "+"; font-size: 24px; font-weight: 400; color: var(--primary-color); transition: transform .25s; }
.faq-item[open] summary::after { transform: rotate(45deg); }
.faq-item p { color: var(--text-secondary); padding: 0 0 18px; font-size: 15px; }

/* ---------- Download ---------- */
.download { padding: 96px 0; background: var(--grad-deep); color: #fff; text-align: center; }
.download-content h2 { font-size: clamp(28px, 4vw, 40px); font-weight: 800; margin-bottom: 14px; }
.download-content p { font-size: 19px; margin-bottom: 32px; opacity: .92; }
.app-store-badge { display: inline-block; transition: transform .2s; }
.app-store-badge:hover { transform: scale(1.04); }
.app-store-badge svg { height: 58px; width: auto; display: block; }
.download-note { font-size: 14px; opacity: .8; margin-top: 18px; }

/* ---------- Footer ---------- */
.footer { padding: 56px 0 40px; background: var(--bg-secondary); border-top: 1px solid var(--border-color); color: var(--text-secondary); }
.footer-grid { display: grid; grid-template-columns: 1.3fr 0.9fr 1.2fr auto; gap: 30px; }
.footer-brand { display: flex; align-items: center; gap: 10px; font-weight: 700; font-size: 19px; color: var(--text-primary); }
.footer-col h4 { color: var(--text-primary); font-size: 15px; margin-bottom: 12px; }
.footer-col p { font-size: 14px; margin: 6px 0; }
.footer-col ul { list-style: none; }
.footer-col li { margin: 8px 0; }
.footer a { color: var(--text-secondary); text-decoration: none; font-size: 14px; transition: color .2s; }
.footer a:hover { color: var(--primary-color); }
.footer-tagline { margin-top: 12px; font-size: 14px; max-width: 34ch; }
.footer-bottom { margin-top: 34px; padding-top: 22px; border-top: 1px solid var(--border-color); font-size: 13px; display: flex; align-items: center; justify-content: space-between; gap: 14px; flex-wrap: wrap; }

/* ---------- Sticky mobile CTA ---------- */
.sticky-cta { position: fixed; left: 12px; right: 12px; bottom: 12px; z-index: 900; display: none; align-items: center; justify-content: space-between; gap: 12px; background: var(--nav-bg); backdrop-filter: blur(18px); -webkit-backdrop-filter: blur(18px); border: 1px solid var(--border-color); border-radius: 18px; padding: 10px 12px; box-shadow: var(--shadow-lg); transform: translateY(140%); transition: transform .35s; }
.sticky-cta.show { transform: translateY(0); }
.sticky-app { display: flex; align-items: center; gap: 10px; }
.sticky-txt { display: flex; flex-direction: column; line-height: 1.2; }
.sticky-txt strong { font-size: 15px; color: var(--text-primary); }
.sticky-txt span { font-size: 12px; color: var(--text-secondary); }

/* ---------- Scroll progress ---------- */
.scroll-progress { position: fixed; top: 0; left: 0; height: 3px; width: 0; background: var(--grad); z-index: 1001; pointer-events: none; border-radius: 0 2px 2px 0; }

/* ---------- Section eyebrows ---------- */
.section-eyebrow { display: block; width: max-content; max-width: 100%; margin: 0 auto 16px; font-size: 12px; letter-spacing: .12em; text-transform: uppercase; }
.privacy-eyebrow { margin: 0 0 14px; background: rgba(255, 255, 255, 0.14); color: var(--gold); }

/* ---------- Try breathing widget ---------- */
.trybreath { padding: 88px 0; background: var(--bg-secondary); }
button.btn { border: none; cursor: pointer; font-family: inherit; }
.try-card { max-width: 620px; margin: 0 auto; background: var(--card); border: 1px solid var(--border-color); border-radius: var(--radius); box-shadow: var(--shadow); padding: 38px 28px; display: flex; flex-direction: column; align-items: center; gap: 26px; }
.try-patterns { display: flex; gap: 10px; flex-wrap: wrap; justify-content: center; }
.try-chip { background: var(--bg-secondary); border: 1px solid var(--border-color); color: var(--text-secondary); border-radius: 999px; padding: 9px 16px; font-size: 14px; font-weight: 600; cursor: pointer; font-family: inherit; transition: all .25s; }
.try-chip:hover { border-color: var(--primary-color); color: var(--primary-color); }
.try-chip.active { background: var(--grad); border-color: transparent; color: #fff; box-shadow: 0 6px 16px rgba(83, 97, 184, 0.3); }
.try-ring-wrap { position: relative; width: 240px; height: 240px; display: grid; place-items: center; }
.try-ring { position: absolute; inset: 0; width: 100%; height: 100%; transform: rotate(-90deg); }
.try-ring circle { fill: none; stroke-width: 6; }
.try-track { stroke: var(--border-color); }
.try-progress { stroke: var(--primary-color); stroke-linecap: round; }
.try-orb { position: absolute; top: 50%; left: 50%; width: 150px; height: 150px; border-radius: 50%; transform: translate(-50%, -50%) scale(.72);
    background: radial-gradient(circle at 50% 42%, rgba(249, 210, 118, 0.55), rgba(139, 92, 246, 0.45) 45%, rgba(83, 97, 184, 0.3) 68%, transparent 74%);
    filter: blur(2px); will-change: transform; }
.try-readout { position: relative; z-index: 2; display: flex; flex-direction: column; align-items: center; gap: 3px; text-align: center; padding: 0 34px; }
.try-phase { font-weight: 700; font-size: 17px; letter-spacing: .02em; }
.try-count { font-size: 13px; font-weight: 600; color: var(--text-secondary); min-height: 20px; font-variant-numeric: tabular-nums; }
.try-done { width: 100%; border-top: 1px solid var(--border-color); padding-top: 22px; display: flex; flex-direction: column; align-items: center; gap: 14px; text-align: center; }
.try-done[hidden] { display: none; }
.try-done p { color: var(--text-secondary); font-size: 15px; }
.try-done strong { color: var(--text-primary); }

/* ---------- Moments ---------- */
.moments { padding: 88px 0; }
.moments-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 22px; }
.moment-card { display: flex; flex-direction: column; align-items: flex-start; background: var(--card); border: 1px solid var(--border-color); border-radius: var(--radius); padding: 28px 24px; box-shadow: var(--shadow); transition: transform .3s, box-shadow .3s; }
.moment-card:hover { transform: translateY(-4px); box-shadow: var(--shadow-lg); }
.moment-time { display: inline-flex; align-items: center; font-size: 12.5px; font-weight: 700; letter-spacing: .06em; color: var(--primary-color); background: var(--chip-bg); border-radius: 999px; padding: 5px 12px; margin-bottom: 18px; font-variant-numeric: tabular-nums; }
.moment-icon { width: 46px; height: 46px; border-radius: 13px; background: var(--chip-bg); color: var(--primary-color); display: grid; place-items: center; margin-bottom: 14px; }
.moment-card h3 { font-size: 17px; margin-bottom: 8px; }
.moment-card p { color: var(--text-secondary); font-size: 14px; flex: 1; }
.moment-tag { display: inline-flex; align-items: center; gap: 6px; margin-top: 16px; font-size: 12.5px; font-weight: 700; color: var(--primary-color); }
.moment-tag svg { color: var(--success-color); flex: 0 0 auto; }

/* ---------- Library ---------- */
.library { padding: 88px 0; }
.library-grid { display: grid; grid-template-columns: 1fr 1.15fr; gap: 26px; align-items: stretch; }
.lib-plan { background: var(--card); border: 1px solid var(--border-color); border-radius: var(--radius); box-shadow: var(--shadow); padding: 32px 28px; }
.lib-plan h3 { font-size: 20px; margin-bottom: 6px; }
.lib-plan > p { color: var(--text-secondary); font-size: 14.5px; margin-bottom: 24px; }
.day-rail { list-style: none; position: relative; display: flex; flex-direction: column; gap: 18px; padding-left: 6px; }
.day-rail::before { content: ""; position: absolute; left: 20px; top: 14px; bottom: 14px; width: 2px; background: var(--grad); border-radius: 2px; transform-origin: top; }
.lib-plan.reveal.in .day-rail::before { animation: railGrow 1.4s ease-out both; }
@keyframes railGrow { from { transform: scaleY(0); } to { transform: scaleY(1); } }
.day-rail li { display: flex; align-items: center; gap: 14px; }
.day-dot { position: relative; z-index: 1; width: 30px; height: 30px; flex: 0 0 auto; border-radius: 50%; background: var(--card); border: 2px solid var(--primary-color); color: var(--primary-color); font-size: 12.5px; font-weight: 800; display: grid; place-items: center; }
.day-rail li:last-child .day-dot { background: var(--grad); border-color: transparent; color: #fff; }
.day-txt { display: flex; align-items: baseline; gap: 10px; flex-wrap: wrap; }
.day-txt strong { font-size: 14.5px; }
.day-txt span { color: var(--text-secondary); font-size: 14px; }
.lib-collections { display: grid; grid-template-columns: 1fr 1fr; gap: 18px; align-content: space-between; }
.lib-card { background: var(--card); border: 1px solid var(--border-color); border-radius: 18px; padding: 22px 20px; box-shadow: var(--shadow); transition: transform .3s, box-shadow .3s; }
.lib-card:hover { transform: translateY(-4px); box-shadow: var(--shadow-lg); }
.lib-icon { width: 42px; height: 42px; border-radius: 12px; background: var(--chip-bg); color: var(--primary-color); display: grid; place-items: center; margin-bottom: 12px; }
.lib-card h4 { font-size: 15.5px; margin-bottom: 5px; }
.lib-card p { color: var(--text-secondary); font-size: 13.5px; }
.lib-chip { grid-column: 1 / -1; display: flex; align-items: center; justify-content: center; gap: 8px; background: var(--chip-bg); color: var(--primary-color); border-radius: 14px; padding: 12px; font-weight: 700; font-size: 14px; }
.lib-chip svg { flex: 0 0 auto; }

/* ---------- Compare ---------- */
.compare { padding: 88px 0; }
.table-scroll { overflow-x: auto; max-width: 920px; margin: 0 auto; background: var(--card); border: 1px solid var(--border-color); border-radius: var(--radius); box-shadow: var(--shadow); }
.compare-table { width: 100%; min-width: 640px; border-collapse: collapse; font-size: 14.5px; }
.compare-table th, .compare-table td { padding: 16px 18px; text-align: left; border-bottom: 1px solid var(--border-color); vertical-align: top; }
.compare-table tbody tr:last-child th, .compare-table tbody tr:last-child td { border-bottom: none; }
.compare-table thead th { font-size: 13.5px; color: var(--text-secondary); font-weight: 700; white-space: nowrap; }
.compare-table tbody th { font-weight: 700; color: var(--text-primary); width: 17%; white-space: nowrap; }
.compare-table td { color: var(--text-secondary); }
.compare-table .c-hl { background: var(--chip-bg); }
.compare-table thead th.c-hl { border-top-right-radius: 20px; }
.compare-table tbody tr:last-child .c-hl { border-bottom-right-radius: 20px; }
.compare-table td.c-hl { color: var(--text-primary); font-weight: 600; }
.c-brand { display: inline-block; background: var(--grad); color: #fff; padding: 5px 14px; border-radius: 999px; font-size: 13px; }
.c-cell { display: flex; align-items: flex-start; gap: 8px; }
.c-check { color: var(--success-color); flex: 0 0 auto; margin-top: 3px; }
.c-dash { opacity: .55; }

/* ---------- Footer extras ---------- */
.qr-card { background: #fff; border: 1px solid var(--border-color); border-radius: 14px; padding: 8px; width: max-content; }
.qr-card img { width: 108px; height: 108px; border-radius: 8px; }
.qr-hint { font-size: 13px; }
.footer-controls { display: flex; gap: 10px; flex-wrap: wrap; justify-content: center; }
.foot-ctl { display: inline-flex; align-items: center; gap: 7px; background: var(--card); border: 1px solid var(--border-color); border-radius: 999px; padding: 8px 14px; font-size: 13px; font-weight: 600; color: var(--text-primary); cursor: pointer; font-family: inherit; transition: all .25s; }
.foot-ctl:hover { border-color: var(--primary-color); color: var(--primary-color); }
.foot-ctl .i-moon { display: none; }
:root[data-theme="dark"] .foot-ctl .i-sun { display: none; }
:root[data-theme="dark"] .foot-ctl .i-moon { display: block; }

/* ---------- Reveal ---------- */
.reveal { opacity: 0; transform: translateY(28px); transition: opacity .6s ease-out, transform .6s ease-out; }
.reveal.in { opacity: 1; transform: none; }

/* ---------- Responsive ---------- */
@media (max-width: 900px) {
    .steps { grid-template-columns: 1fr; gap: 30px; }
    .steps .step:not(:last-child)::after { display: none; }
    .privacy-card { grid-template-columns: 1fr; padding: 36px; }
    .footer-grid { grid-template-columns: 1fr 1fr; gap: 26px; }
    .moments-grid { grid-template-columns: 1fr 1fr; }
    .library-grid { grid-template-columns: 1fr; }
}
@media (max-width: 820px) {
    .nav-menu .nav-link { display: none; }
    .hero .container { grid-template-columns: 1fr; gap: 30px; text-align: center; }
    .hero-content { display: flex; flex-direction: column; align-items: center; }
    .hero-subtitle { max-width: 44ch; }
    .hero-buttons, .hero-trust { justify-content: center; }
    .hero-visual { order: -1; min-height: 420px; }
    .chip-a { left: 2%; } .chip-b { right: 2%; }
    .proof-row { justify-content: center; text-align: center; }
    .sticky-cta { display: flex; }
}
@media (max-width: 560px) {
    .hero-chip { display: none; }
    .footer-grid { grid-template-columns: 1fr; }
    .moments-grid { grid-template-columns: 1fr; }
    .lib-collections { grid-template-columns: 1fr; }
    .footer-bottom { justify-content: center; text-align: center; }
}
@media (max-width: 480px) {
    .container { padding: 0 16px; }
    .hero { padding: 120px 0 60px; }
    .hero-buttons { flex-direction: column; width: 100%; }
    .hero-buttons .btn { width: 100%; }
    .proof-stats { gap: 18px 24px; }
    .feature-card { padding: 26px; }
    .privacy-points { grid-template-columns: 1fr; }
    .gal-arrow { display: none; }
}

@media (prefers-reduced-motion: reduce) {
    *, *::before, *::after { scroll-behavior: auto !important; transition: none !important; animation: none !important; }
    .reveal { opacity: 1; transform: none; }
    .breathe-orb { transform: translate(-50%, -50%) scale(1); }
}

/* AI-AVATAR: floating "AI分身" assistant widget */
#aiToggle {
    position: fixed; right: 18px; bottom: 18px; z-index: 1200;
    width: 56px; height: 56px; border-radius: 50%; border: none; cursor: pointer;
    background: var(--grad); color: #fff; display: grid; place-items: center;
    box-shadow: 0 10px 26px rgba(83, 97, 184, .42), 0 3px 8px rgba(20, 22, 40, .18);
    transition: transform .2s, box-shadow .2s;
}
#aiToggle:hover { transform: translateY(-3px); box-shadow: 0 16px 34px rgba(83, 97, 184, .5), 0 5px 12px rgba(20, 22, 40, .2); }
#aiToggle svg { display: block; }

#aiPanel {
    position: fixed; right: 18px; bottom: 86px; z-index: 1200;
    width: min(370px, calc(100vw - 24px));
    max-height: min(540px, 75vh);
    display: flex; flex-direction: column;
    background: var(--card); border: 1px solid var(--border-color); border-radius: 16px;
    box-shadow: var(--shadow-lg), var(--shadow);
    overflow: hidden;
}
#aiPanel[hidden] { display: none; }

.ai-head { display: flex; align-items: center; gap: 10px; padding: 12px 14px; border-bottom: 1px solid var(--border-color); flex-shrink: 0; }
.ai-avatar { position: relative; width: 34px; height: 34px; border-radius: 50%; background: var(--grad); color: #fff; display: grid; place-items: center; flex-shrink: 0; }
.ai-presence { position: absolute; right: -1px; bottom: -1px; width: 10px; height: 10px; border-radius: 50%; background: var(--success-color); border: 2px solid var(--card); }
.ai-title { font-size: 14px; font-weight: 700; flex: 1; min-width: 0; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
#aiClose { width: 30px; height: 30px; border-radius: 50%; border: none; background: transparent; color: var(--text-secondary); font-size: 20px; line-height: 1; cursor: pointer; flex-shrink: 0; transition: background .2s, color .2s; }
#aiClose:hover { background: var(--bg-secondary); color: var(--text-primary); }

.ai-msgs { flex: 1; min-height: 140px; overflow-y: auto; padding: 14px; display: flex; flex-direction: column; gap: 9px; overscroll-behavior: contain; }
.ai-msg { max-width: 86%; padding: 9px 13px; border-radius: 14px; font-size: 14px; line-height: 1.5; overflow-wrap: break-word; white-space: pre-wrap; }
.ai-msg.bot { align-self: flex-start; background: var(--bg-secondary); color: var(--text-primary); border-bottom-left-radius: 5px; }
.ai-msg.user { align-self: flex-end; background: var(--grad); color: #fff; border-bottom-right-radius: 5px; }
.ai-typing { display: inline-flex; align-items: center; gap: 5px; padding: 13px; }
.ai-typing span { width: 7px; height: 7px; border-radius: 50%; background: var(--text-secondary); animation: aiBlink 1.2s infinite; }
.ai-typing span:nth-child(2) { animation-delay: .2s; }
.ai-typing span:nth-child(3) { animation-delay: .4s; }
@keyframes aiBlink { 0%, 60%, 100% { opacity: .35; transform: none; } 30% { opacity: 1; transform: translateY(-3px); } }

.ai-chips { display: flex; flex-wrap: wrap; gap: 7px; padding: 0 14px 10px; flex-shrink: 0; }
.ai-chips[hidden] { display: none; }
.ai-chip { background: var(--chip-bg); color: var(--primary-color); border: none; border-radius: 999px; padding: 7px 12px; font-size: 12.5px; font-weight: 600; font-family: inherit; cursor: pointer; transition: background .2s, color .2s; }
.ai-chip:hover { background: var(--primary-color); color: #fff; }

.ai-form { display: flex; gap: 8px; padding: 10px 12px; border-top: 1px solid var(--border-color); flex-shrink: 0; }
#aiInput { flex: 1; min-width: 0; background: var(--bg-secondary); border: 1px solid var(--border-color); border-radius: 999px; padding: 9px 15px; font: inherit; font-size: 14px; color: var(--text-primary); outline: none; transition: border-color .2s; }
#aiInput:focus { border-color: var(--primary-color); }
#aiInput::placeholder { color: var(--text-secondary); }
.ai-send { display: inline-flex; align-items: center; gap: 6px; background: var(--grad); color: #fff; border: none; border-radius: 999px; padding: 9px 16px; font-family: inherit; font-size: 13.5px; font-weight: 600; cursor: pointer; box-shadow: 0 5px 14px rgba(83, 97, 184, .35); transition: transform .2s, box-shadow .2s; }
.ai-send:hover { transform: translateY(-1px); box-shadow: 0 8px 18px rgba(83, 97, 184, .45); }
.ai-send:disabled { opacity: .55; cursor: default; transform: none; box-shadow: none; }
.ai-note { flex-shrink: 0; text-align: center; font-size: 11px; color: var(--text-secondary); padding: 0 12px 9px; margin: 0; }

@media (max-width: 820px) {
    /* keep clear of the sticky download bar */
    #aiToggle { bottom: 84px; }
    #aiPanel { bottom: 152px; max-height: min(480px, 62vh); }
}
@media (max-width: 560px) {
    #aiPanel { right: 10px; width: calc(100vw - 20px); }
}
@media (prefers-reduced-motion: reduce) {
    #aiToggle, .ai-send { transition: none; }
    .ai-typing span { animation: none; }
}
/* /AI-AVATAR */
