:root {
    --primary-color: #19a974;
    --accent: #b7f36b;
    --blue: #2f68d8;
    --grad: linear-gradient(135deg, #19a974, #2f68d8);
    --cta-grad: linear-gradient(135deg, #b7f36b, #53dfa2);
    --cta-ink: #07130f;
    --success-color: #19a974;
    --text-primary: #111827;
    --text-secondary: #667085;
    --bg-primary: #ffffff;
    --bg-secondary: #f6f8fb;
    --card: #ffffff;
    --border-color: #e4e7ec;
    --shadow: 0 2px 15px rgba(17, 24, 39, 0.06);
    --shadow-lg: 0 24px 60px rgba(17, 24, 39, 0.16);
    --nav-bg: rgba(255, 255, 255, 0.78);
    --chip-bg: rgba(25, 169, 116, 0.10);
    --radius: 18px;
}

:root[data-theme="dark"] {
    --text-primary: #f2f6f4;
    --text-secondary: #9aa4a1;
    --bg-primary: #0b0f0e;
    --bg-secondary: #121614;
    --card: #161b19;
    --border-color: #262c29;
    --shadow: 0 2px 15px rgba(0, 0, 0, 0.4);
    --shadow-lg: 0 24px 60px rgba(0, 0, 0, 0.55);
    --nav-bg: rgba(12, 16, 15, 0.74);
    --chip-bg: rgba(25, 169, 116, 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: hidden;
    -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; }
body { overflow-x: clip; }
img { display: block; max-width: 100%; }

a:focus-visible, button:focus-visible, summary:focus-visible {
    outline: 3px solid rgba(25, 169, 116, 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; }
.eyebrow.section-eyebrow { display: table; margin: 0 auto 16px; font-size: 12px; padding: 6px 13px; }

/* ---------- Scroll progress ---------- */
#scrollProgress { position: fixed; top: 0; left: 0; height: 3px; width: 0; background: var(--grad); z-index: 1100; pointer-events: none; }

/* ---------- 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(17,24,39,.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: 800; text-decoration: none; color: var(--text-primary); }
.brand-icon { display: inline-flex; filter: drop-shadow(0 6px 14px rgba(25,169,116,.35)); }
.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: 700; 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(--cta-grad); color: var(--cta-ink); box-shadow: 0 12px 26px rgba(25,169,116,.32); }
.btn-primary:hover { transform: translateY(-2px); box-shadow: 0 16px 34px rgba(25,169,116,.42); }
.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(25,169,116,.3); }

/* App Store badge */
.appstore-link { display: inline-flex; border-radius: 9px; transition: transform .2s, box-shadow .2s; box-shadow: 0 10px 24px rgba(17,24,39,.22); }
.appstore-link:hover { transform: translateY(-2px); box-shadow: 0 16px 30px rgba(17,24,39,.3); }
.appstore-badge { display: block; border-radius: 9px; }
.appstore-link.light { box-shadow: 0 14px 30px rgba(0,0,0,.28); }

/* ---------- Hero ---------- */
.hero { position: relative; padding: 140px 0 90px; overflow: hidden; }
.hero-bg { position: absolute; inset: 0; z-index: 0; background:
    radial-gradient(58% 52% at 82% 6%, rgba(183,243,107,.30), transparent 60%),
    radial-gradient(55% 50% at 6% 30%, rgba(47,104,216,.14), transparent 60%),
    radial-gradient(50% 45% at 60% 90%, rgba(25,169,116,.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: 800; letter-spacing: .06em; text-transform: uppercase; 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.08; 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: 32px; max-width: 40ch; }
.hero-buttons { display: flex; gap: 14px; flex-wrap: wrap; align-items: center; }
.hero-trust { list-style: none; display: flex; flex-wrap: wrap; gap: 10px 20px; margin-top: 30px; }
.hero-trust li { font-size: 14px; color: var(--text-secondary); font-weight: 500; }

/* Hero calorie device */
.hero-visual { position: relative; display: flex; justify-content: center; }
.device { position: relative; width: 300px; max-width: 78vw; aspect-ratio: 9 / 19.5; display: flex; flex-direction: column; overflow: hidden; background: var(--card); border: 1px solid var(--border-color); border-radius: 42px; padding: 16px 16px 20px; box-shadow: var(--shadow-lg); }
.device-notch { position: absolute; top: 13px; left: 50%; transform: translateX(-50%); width: 92px; height: 22px; background: var(--text-primary); opacity: .9; border-radius: 999px; }
:root[data-theme="dark"] .device-notch { background: #000; opacity: 1; }
.cal { margin-top: 30px; flex: 1; min-height: 0; display: flex; flex-direction: column; justify-content: space-between; }
.cal-head { display: flex; align-items: center; justify-content: space-between; padding: 4px 6px 6px; }
.cal-title { font-weight: 800; font-size: 19px; }
.cal-ai { display: inline-flex; align-items: center; gap: 6px; font-size: 12px; font-weight: 700; color: var(--primary-color); }
.cal-ai .dot { width: 7px; height: 7px; border-radius: 50%; background: var(--primary-color); box-shadow: 0 0 0 0 rgba(25,169,116,.5); animation: pulse 2s infinite; }

.cal-ring-wrap { position: relative; width: 176px; height: 176px; margin: 8px auto 16px; display: grid; place-items: center; }
.cal-ring { width: 176px; height: 176px; transform: rotate(-90deg); }
.ring-track { fill: none; stroke: var(--bg-secondary); stroke-width: 13; }
:root[data-theme="dark"] .ring-track { stroke: #222a27; }
.ring-fill { fill: none; stroke: url(#ring); stroke-width: 13; stroke-linecap: round; stroke-dasharray: 326.7; stroke-dashoffset: 326.7; transition: stroke-dashoffset 1.5s cubic-bezier(.3,.9,.3,1); }
.device.animate .ring-fill { stroke-dashoffset: 124; }
.cal-center { position: absolute; display: flex; flex-direction: column; align-items: center; }
.cal-num { font-size: 36px; font-weight: 800; line-height: 1; background: var(--grad); -webkit-background-clip: text; background-clip: text; -webkit-text-fill-color: transparent; }
.cal-unit { font-size: 12px; color: var(--text-secondary); font-weight: 600; margin-top: 6px; }

.macros { display: flex; flex-direction: column; gap: 12px; padding: 0 4px; }
.macro-top { display: flex; justify-content: space-between; font-size: 12.5px; color: var(--text-secondary); font-weight: 600; }
.macro-top b { color: var(--text-primary); font-weight: 700; }
.macro-bar { height: 8px; background: var(--bg-secondary); border-radius: 999px; overflow: hidden; margin-top: 6px; }
:root[data-theme="dark"] .macro-bar { background: #222a27; }
.mb { display: block; height: 100%; width: 0; border-radius: 999px; transition: width 1.1s cubic-bezier(.3,.9,.3,1) .2s; }
.device.animate .mb { width: var(--w); }
.mb-p { background: linear-gradient(90deg, #2f68d8, #5b8def); }
.mb-c { background: linear-gradient(90deg, #f5a524, #ffca6a); }
.mb-f { background: linear-gradient(90deg, #a855f7, #c88bff); }
.cal-foot { margin-top: 16px; text-align: center; font-size: 11.5px; font-weight: 700; color: var(--primary-color); background: rgba(25,169,116,.12); padding: 9px; border-radius: 12px; }

.hero-chip { position: absolute; 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; }
.chip-a { top: 12%; left: -8%; animation: float 5s ease-in-out infinite; }
.chip-b { bottom: 12%; right: -6%; animation: float 5s ease-in-out infinite .8s; }

@keyframes float { 0%,100% { transform: translateY(0); } 50% { transform: translateY(-9px); } }
@keyframes pulse { 0% { box-shadow: 0 0 0 0 rgba(25,169,116,.5);} 70%{ box-shadow: 0 0 0 8px rgba(25,169,116,0);} 100%{ box-shadow:0 0 0 0 rgba(25,169,116,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-badge { display: flex; align-items: center; color: var(--text-primary); }
.apple-badge svg { display: block; width: 22px; height: 26px; }
.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, .demo, .personas, .method, .compare { padding: 88px 0; }
.demo { background: var(--bg-secondary); }
.personas { background: var(--bg-secondary); }
.method { 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(25,169,116,.35); }
.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); }

/* ---------- Try-it demo ---------- */
.demo-wrap { display: flex; flex-direction: column; align-items: center; gap: 28px; }
.demo-chips { display: flex; flex-wrap: wrap; justify-content: center; gap: 12px; }
.demo-chip { font-family: inherit; background: var(--card); color: var(--text-primary); border: 1px solid var(--border-color); border-radius: 999px; padding: 11px 20px; font-size: 15px; font-weight: 700; cursor: pointer; box-shadow: var(--shadow); transition: transform .2s, border-color .25s, color .25s, background .25s; }
.demo-chip:hover { transform: translateY(-2px); border-color: var(--primary-color); color: var(--primary-color); }
.demo-chip.active { background: var(--chip-bg); border-color: var(--primary-color); color: var(--primary-color); }
.demo-card { position: relative; overflow: hidden; width: 100%; max-width: 400px; background: var(--card); border: 1px solid var(--border-color); border-radius: 24px; padding: 26px 24px 22px; box-shadow: var(--shadow-lg); }
.demo-card::after { content: ""; position: absolute; inset: 0; background: linear-gradient(110deg, transparent 32%, rgba(25, 169, 116, .16) 50%, transparent 68%); transform: translateX(-100%); opacity: 0; pointer-events: none; }
.demo-card.scanning::after { opacity: 1; animation: demoScan .9s ease-in-out; }
@keyframes demoScan { from { transform: translateX(-100%); } to { transform: translateX(100%); } }
.demo-head { display: flex; justify-content: space-between; align-items: center; gap: 14px; margin-bottom: 12px; }
.demo-food { font-weight: 800; font-size: 17px; }
.demo-kcal { display: flex; align-items: baseline; gap: 7px; margin-bottom: 20px; }
.demo-kcal-num { font-size: 40px; font-weight: 800; line-height: 1; background: var(--grad); -webkit-background-clip: text; background-clip: text; -webkit-text-fill-color: transparent; }
.demo-kcal-unit { font-size: 13px; font-weight: 600; color: var(--text-secondary); }
.demo-card.done .mb { width: var(--w); }
.demo-disclaimer { margin-top: 20px; font-size: 12px; color: var(--text-secondary); text-align: center; }

/* 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; }

/* ---------- Personas ---------- */
.personas-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); gap: 20px; }
.persona-card { background: var(--card); border: 1px solid var(--border-color); border-radius: var(--radius); padding: 26px 22px; transition: transform .3s, box-shadow .3s; }
.persona-card:hover { transform: translateY(-5px); box-shadow: var(--shadow-lg); }
.persona-ic { width: 46px; height: 46px; border-radius: 13px; background: var(--chip-bg); color: var(--primary-color); display: grid; place-items: center; margin-bottom: 16px; }
.persona-card h3 { font-size: 17.5px; margin-bottom: 8px; }
.persona-pain { color: var(--text-secondary); font-size: 14px; margin-bottom: 12px; }
.persona-win { display: flex; align-items: flex-start; gap: 8px; font-size: 14px; font-weight: 600; color: var(--text-primary); }
.persona-win .win-ic { color: var(--primary-color); flex-shrink: 0; display: inline-flex; margin-top: 3px; }

/* ---------- 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: 250px; max-width: 70vw; border-radius: 34px; padding: 10px; background: linear-gradient(160deg, #2a2f2c, #0c0f0e); 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: 700; 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; }

/* ---------- Method pipeline ---------- */
.method-scroll { overflow-x: auto; padding-bottom: 10px; scrollbar-width: none; }
.method-scroll::-webkit-scrollbar { display: none; }
.method-flow { position: relative; display: flex; justify-content: space-between; gap: 14px; min-width: 700px; padding: 12px 4px 0; }
.method-track { position: absolute; top: 40px; left: 70px; right: 70px; height: 0; border-top: 2px dashed var(--border-color); }
.method-pulse { position: absolute; top: -6px; left: 0; width: 10px; height: 10px; border-radius: 50%; background: var(--primary-color); box-shadow: 0 0 0 4px var(--chip-bg); opacity: 0; }
.method-scroll.in .method-pulse { animation: methodTravel 3.8s ease-in-out infinite .4s; }
@keyframes methodTravel { 0% { left: 0; opacity: 0; } 10% { opacity: 1; } 90% { opacity: 1; } 100% { left: calc(100% - 10px); opacity: 0; } }
.method-node { position: relative; z-index: 1; flex: 1; display: flex; flex-direction: column; align-items: center; gap: 12px; text-align: center; }
.method-ic { width: 56px; height: 56px; border-radius: 50%; background: var(--card); border: 1px solid var(--border-color); color: var(--primary-color); display: grid; place-items: center; box-shadow: var(--shadow); }
.method-label { font-size: 13.5px; font-weight: 700; color: var(--text-secondary); max-width: 140px; line-height: 1.35; }
.method-notes { display: grid; grid-template-columns: repeat(auto-fit, minmax(230px, 1fr)); gap: 16px; margin-top: 40px; }
.method-note { display: flex; align-items: flex-start; gap: 12px; background: var(--card); border: 1px solid var(--border-color); border-radius: var(--radius); padding: 18px 20px; }
.method-note-ic { color: var(--primary-color); flex-shrink: 0; display: inline-flex; margin-top: 2px; }
.method-note p { color: var(--text-secondary); font-size: 14.5px; font-weight: 500; }

/* ---------- Comparison table ---------- */
.table-wrap { overflow-x: auto; background: var(--card); border: 1px solid var(--border-color); border-radius: var(--radius); box-shadow: var(--shadow); }
.cmp-table { width: 100%; min-width: 640px; border-collapse: collapse; font-size: 14.5px; }
.cmp-table th, .cmp-table td { padding: 15px 18px; text-align: left; border-bottom: 1px solid var(--border-color); }
.cmp-table tbody tr:last-child th, .cmp-table tbody tr:last-child td { border-bottom: none; }
.cmp-table thead th { font-size: 12.5px; font-weight: 700; text-transform: uppercase; letter-spacing: .05em; color: var(--text-secondary); white-space: nowrap; }
.cmp-table th:first-child, .cmp-table td:first-child { position: sticky; left: 0; z-index: 1; background: var(--card); font-weight: 600; color: var(--text-primary); min-width: 170px; }
.cmp-table th:nth-child(2), .cmp-table td:nth-child(2) { background: var(--chip-bg); }
.cmp-table thead th:nth-child(2) { color: var(--primary-color); border-top: 3px solid var(--primary-color); }
.cmp-table td:nth-child(2) { color: var(--text-primary); font-weight: 700; }
.cmp-table td { color: var(--text-secondary); }
.cmp-check { display: inline-flex; vertical-align: middle; color: var(--primary-color); }
.cmp-dash { color: var(--text-secondary); opacity: .7; }

/* ---------- Privacy ---------- */
.privacy-card { background: var(--grad); 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(25,169,116,.28); }
.privacy-lead .eyebrow { background: rgba(255,255,255,.18); color: #fff; margin-bottom: 14px; font-size: 12px; padding: 6px 13px; }
.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,.16); padding: 12px 14px; border-radius: 14px; font-size: 15px; }

/* ---------- 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); 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: .94; }
.download-buttons { display: flex; justify-content: center; }
.download-note { font-size: 14px; opacity: .85; margin-top: 18px; }

/* ---------- Footer ---------- */
.footer { padding: 56px 0 30px; background: var(--bg-secondary); border-top: 1px solid var(--border-color); color: var(--text-secondary); }
.footer a { color: var(--primary-color); text-decoration: none; }
.footer a:hover { text-decoration: underline; }
.footer-grid { display: grid; grid-template-columns: 1.3fr 1fr 1fr; gap: 40px; padding-bottom: 34px; border-bottom: 1px solid var(--border-color); margin-bottom: 24px; }
.footer .nav-brand { color: var(--text-primary); font-size: 18px; }
.footer .nav-brand:hover { text-decoration: none; }
.footer-tagline { font-size: 14px; margin: 12px 0 18px; max-width: 32ch; }
.footer-col h4 { font-size: 13px; font-weight: 700; color: var(--text-primary); text-transform: uppercase; letter-spacing: .06em; margin-bottom: 14px; }
.footer-links { list-style: none; display: flex; flex-direction: column; gap: 9px; }
.footer-links a { color: var(--text-secondary); font-size: 14px; transition: color .25s; }
.footer-links a:hover { color: var(--primary-color); text-decoration: none; }
.footer-prefs { display: flex; flex-wrap: wrap; gap: 10px; margin-bottom: 16px; }
.footer-contact { font-size: 14px; }
.footer-bottom { text-align: center; }
.footer-bottom p { margin: 5px 0; font-size: 13.5px; }

/* ---------- 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; }
.sticky-txt span { font-size: 12px; color: var(--text-secondary); }

/* ---------- 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; }
}
@media (max-width: 720px) {
    .footer-grid { grid-template-columns: 1fr; gap: 30px; }
}
@media (max-width: 820px) {
    .nav-menu .nav-link { display: none; }
    .hero .container { grid-template-columns: 1fr; gap: 44px; text-align: center; }
    .hero-content { display: flex; flex-direction: column; align-items: center; width: 100%; max-width: 100%; }
    .hero-title, .hero-buttons, .hero-trust { max-width: 100%; }
    .hero-subtitle { max-width: min(46ch, 100%); }
    .hero-buttons, .hero-trust { justify-content: center; }
    .hero-visual { order: -1; }
    .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; }
}
@media (max-width: 480px) {
    .container { padding: 0 16px; }
    .hero { padding: 120px 0 60px; }
    .hero-buttons { flex-direction: column; width: 100%; }
    .hero-buttons .btn, .hero-buttons .appstore-link { width: 100%; }
    .hero-buttons .appstore-link { justify-content: center; }
    .proof-stats { gap: 18px 24px; }
    .feature-card { padding: 26px; }
    .privacy-points { grid-template-columns: 1fr; }
    .gal-arrow { display: none; }
    .demo-chips { gap: 8px; }
    .demo-chip { padding: 9px 15px; font-size: 14px; }
    .demo-card { padding: 22px 18px 18px; }
    .cmp-table th, .cmp-table td { padding: 13px 14px; }
    .cmp-table th:first-child, .cmp-table td:first-child { min-width: 140px; }
}

@media (prefers-reduced-motion: reduce) {
    *, *::before, *::after { scroll-behavior: auto !important; transition: none !important; animation: none !important; }
    .reveal { opacity: 1; transform: none; }
    .device.animate .ring-fill { stroke-dashoffset: 124; }
    .device.animate .mb { width: var(--w); }
}

/* 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(25, 169, 116, .38), 0 3px 8px rgba(17, 24, 39, .18);
    transition: transform .2s, box-shadow .2s;
}
#aiToggle:hover { transform: translateY(-3px); box-shadow: 0 16px 34px rgba(25, 169, 116, .46), 0 5px 12px rgba(17, 24, 39, .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(25, 169, 116, .3); transition: transform .2s, box-shadow .2s; }
.ai-send:hover { transform: translateY(-1px); box-shadow: 0 8px 18px rgba(25, 169, 116, .38); }
.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 */
