:root {
  --ink: #17171b;
  --muted: #68686f;
  --line: #dedde3;
  --soft: #f6f5f7;
  --paper: #ffffff;
  --brand: #51459a;
  --brand-dark: #352b76;
  --brand-soft: #efedf9;
  --green: #1f6d4f;
  --green-soft: #e7f3ed;
  --gold: #825b13;
  --gold-soft: #f8efd9;
  --blue: #2c4a7c;
  --blue-soft: #eaf0f8;
  --rose: #9d3f5b;
  --rose-soft: #f8e9ee;
  --radius-sm: 14px;
  --radius: 24px;
  --radius-lg: 38px;
  --shadow: 0 24px 70px rgba(25, 22, 43, .11);
  --wrap: min(1180px, calc(100% - 48px));
  font-family: "Noto Sans TC", "PingFang TC", "Microsoft JhengHei", system-ui, sans-serif;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body { margin: 0; color: var(--ink); background: var(--paper); line-height: 1.7; -webkit-font-smoothing: antialiased; }
body.menu-open { overflow: hidden; }
a { color: inherit; text-decoration: none; }
img { display: block; max-width: 100%; }
button { font: inherit; }
.wrap { width: var(--wrap); margin-inline: auto; }
.skip-link { position: fixed; z-index: 1000; top: 12px; left: 12px; padding: 10px 14px; color: white; background: var(--ink); transform: translateY(-150%); }
.skip-link:focus { transform: none; }
.sr-only { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0, 0, 0, 0); white-space: nowrap; }

.nav { position: sticky; z-index: 100; top: 0; border-bottom: 1px solid rgba(222, 221, 227, .78); background: rgba(255, 255, 255, .92); backdrop-filter: blur(18px); }
.nav-inner { min-height: 72px; display: flex; align-items: center; gap: 28px; }
.brand { display: inline-flex; align-items: center; gap: 10px; font-weight: 800; letter-spacing: -.02em; white-space: nowrap; }
.brand img { width: 34px; height: 34px; }
.nav-links { margin-left: auto; display: flex; align-items: center; gap: clamp(14px, 1.7vw, 24px); font-size: 14px; font-weight: 650; }
.nav-links a { color: #47474d; transition: color .2s ease; }
.nav-links a:hover, .nav-links a[aria-current="page"] { color: var(--theme, var(--brand)); }
.menu-toggle { display: none; width: 44px; height: 44px; margin-left: auto; border: 1px solid var(--line); border-radius: 50%; background: white; color: var(--ink); }
.menu-toggle svg { width: 22px; margin: auto; }

.hero { min-height: 720px; padding: clamp(72px, 9vw, 128px) 0 80px; display: grid; align-items: center; overflow: hidden; }
.hero-grid { display: grid; grid-template-columns: minmax(0, 1.1fr) minmax(440px, .9fr); align-items: center; gap: clamp(48px, 8vw, 108px); }
.hero-copy { position: relative; z-index: 2; }
.hero .display { font-size: clamp(44px, 4.4vw, 64px); }
.display { max-width: 820px; margin: 0; font-size: clamp(56px, 6.8vw, 96px); line-height: 1.03; letter-spacing: -.065em; text-wrap: balance; }
.display em, .h2 em { color: var(--theme, var(--brand)); font-style: normal; }
.hero-line { display: inline-block; white-space: nowrap; }
.lede { max-width: 660px; margin: 26px 0 0; color: var(--muted); font-size: clamp(17px, 1.7vw, 21px); line-height: 1.8; text-wrap: pretty; }
.actions { margin-top: 32px; display: flex; align-items: center; flex-wrap: wrap; gap: 12px; }
.btn { min-height: 50px; padding: 12px 20px; display: inline-flex; align-items: center; justify-content: center; gap: 9px; border: 1px solid var(--ink); border-radius: 999px; font-size: 15px; font-weight: 750; line-height: 1.2; transition: transform .2s ease, box-shadow .2s ease, background .2s ease; }
.btn:hover { transform: translateY(-2px); }
.btn-primary { color: white; border-color: var(--theme, var(--brand)); background: var(--theme, var(--brand)); box-shadow: 0 10px 30px color-mix(in srgb, var(--theme, var(--brand)) 22%, transparent); }
.btn-secondary { border-color: var(--line); background: white; }
.btn svg { width: 17px; height: 17px; }
.badges { margin-top: 22px; display: flex; flex-wrap: wrap; gap: 8px; }
.badge { padding: 6px 10px; display: inline-flex; align-items: center; border-radius: 999px; color: var(--muted); background: var(--soft); font-size: 13px; font-weight: 750; line-height: 1.3; }
.badge-status { color: var(--theme, var(--brand-dark)); background: var(--theme-soft, var(--brand-soft)); }

.phone-stage { position: relative; min-height: 610px; display: flex; align-items: center; justify-content: center; }
.phone { position: relative; width: min(290px, 42vw); padding: 8px; border: 1px solid #c9c8cf; border-radius: 42px; background: #161619; box-shadow: var(--shadow); overflow: hidden; }
.phone::before { content: ""; position: absolute; z-index: 2; top: 16px; left: 50%; width: 82px; height: 23px; border-radius: 999px; background: #08080a; transform: translateX(-50%); }
.phone img { display: block; width: 100%; height: auto; border-radius: 34px; }
.phone-stack .phone:first-child { transform: rotate(-5deg) translate(25px, 18px); }
.phone-stack .phone:last-child { margin-left: -60px; transform: rotate(5deg) translate(-10px, -16px); }
.phone-stack { display: flex; align-items: center; justify-content: center; }
.hero-halo { position: absolute; width: 520px; aspect-ratio: 1; border-radius: 50%; background: radial-gradient(circle, var(--theme-soft, var(--brand-soft)) 0 46%, transparent 72%); }

.fact-strip { padding: 0 0 54px; }
.facts { padding: 20px 26px; display: flex; justify-content: center; align-items: center; gap: 20px; border-block: 1px solid var(--line); font-size: clamp(15px, 1.7vw, 18px); font-weight: 760; letter-spacing: .01em; text-align: center; }
.facts span + span::before { content: "·"; margin-right: 20px; color: #aaa8b0; }

.section { padding: clamp(76px, 10vw, 132px) 0; }
.section-soft { background: var(--soft); }
.section-dark { color: white; background: #1d1c22; }
.section-head { max-width: 770px; margin-bottom: 46px; }
.kicker { margin: 0 0 14px; color: var(--theme, var(--brand)); font-size: 13px; font-weight: 850; letter-spacing: .14em; text-transform: uppercase; }
.section-dark .kicker { color: #c8c1ff; }
.h2 { margin: 0; font-size: clamp(37px, 5vw, 66px); line-height: 1.12; letter-spacing: -.045em; text-wrap: balance; }
.section-copy { max-width: 690px; margin: 18px 0 0; color: var(--muted); font-size: 18px; text-wrap: pretty; }
.section-dark .section-copy { color: #c9c8cf; }

.featured-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 22px; }
.featured-card { min-height: 590px; padding: clamp(28px, 4vw, 48px); position: relative; display: grid; grid-template-rows: auto 1fr; border: 1px solid var(--line); border-radius: var(--radius-lg); overflow: hidden; background: white; transition: transform .25s ease, box-shadow .25s ease; }
.featured-card:hover { transform: translateY(-4px); box-shadow: var(--shadow); }
.featured-top { position: relative; z-index: 2; display: grid; grid-template-columns: auto 1fr auto; align-items: start; gap: 16px; }
.product-mark { width: 58px; height: 58px; display: grid; place-items: center; border-radius: 17px; color: white; background: var(--accent); font-weight: 850; font-size: 22px; box-shadow: inset 0 0 0 1px rgba(255,255,255,.25); }
.product-name { margin: 2px 0 0; font-size: 27px; line-height: 1.2; letter-spacing: -.035em; }
.product-desc { margin: 7px 0 0; color: var(--muted); font-size: 15px; line-height: 1.55; }
.card-arrow { width: 40px; height: 40px; display: grid; place-items: center; border: 1px solid var(--line); border-radius: 50%; }
.card-arrow svg { width: 17px; }
.featured-media { min-height: 365px; margin-top: 30px; position: relative; display: flex; align-items: flex-end; justify-content: center; border-radius: 26px 26px 0 0; background: var(--accent-soft); overflow: hidden; }
.featured-media .phone { width: 220px; margin-bottom: -150px; }
.featured-media .phone + .phone { margin-left: -52px; transform: translateY(42px) rotate(5deg); }
.featured-media.short { align-items: center; }
.featured-media.short .phone { margin-bottom: 0; }
.featured-media.short .phone + .phone { transform: translateY(24px) rotate(5deg); }

.catalog-grid { margin-top: 24px; display: grid; grid-template-columns: repeat(5, 1fr); gap: 14px; }
.product-card { min-height: 224px; padding: 22px; display: flex; flex-direction: column; border: 1px solid var(--line); border-radius: var(--radius); background: white; transition: transform .2s ease, border-color .2s ease; }
.product-card:hover { transform: translateY(-3px); border-color: var(--accent); }
.product-card .product-mark { width: 48px; height: 48px; border-radius: 14px; font-size: 18px; }
.product-card h3 { margin: 20px 0 7px; font-size: 20px; letter-spacing: -.025em; }
.product-card p { margin: 0; color: var(--muted); font-size: 14px; line-height: 1.55; }
.product-meta { margin-top: auto; padding-top: 18px; display: flex; flex-wrap: wrap; gap: 6px; }
.product-meta .badge { padding: 5px 8px; font-size: 11px; }

.belief-grid, .feature-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 18px; }
.belief, .feature { padding: 30px 28px; border-top: 2px solid var(--theme, var(--brand)); }
.belief-no, .feature-no { color: var(--theme, var(--brand)); font-size: 12px; font-weight: 850; letter-spacing: .12em; }
.belief h3, .feature h3 { margin: 16px 0 8px; font-size: 22px; line-height: 1.3; letter-spacing: -.025em; }
.belief p, .feature p { margin: 0; color: var(--muted); font-size: 15px; }

.product-hero { min-height: 690px; padding: clamp(64px, 8vw, 110px) 0; overflow: hidden; }
.product-hero-grid { display: grid; grid-template-columns: minmax(0, .95fr) minmax(420px, 1.05fr); align-items: center; gap: clamp(48px, 8vw, 110px); }
.product-hero .display { font-size: clamp(44px, 4.4vw, 64px); }
.media-gallery { min-height: 570px; position: relative; display: flex; align-items: center; justify-content: center; }
.media-gallery::before { content: ""; position: absolute; width: 480px; aspect-ratio: 1; border-radius: 50%; background: var(--theme-soft, var(--brand-soft)); }
.media-gallery .phone { width: 250px; }
.media-gallery .phone:nth-child(2) { width: 215px; margin-left: -55px; transform: translateY(46px) rotate(5deg); }
.media-gallery.three .phone:first-child { width: 190px; transform: translate(40px, 36px) rotate(-6deg); }
.media-gallery.three .phone:nth-child(2) { z-index: 2; width: 240px; margin-left: 0; transform: none; }
.media-gallery.three .phone:nth-child(3) { width: 190px; margin-left: -40px; transform: translate(-5px, 42px) rotate(6deg); }

.product-sketch { position: relative; z-index: 1; width: min(390px, 100%); aspect-ratio: .72; padding: 14px; border: 2px solid var(--ink); border-radius: 42px; background: #141417; box-shadow: var(--shadow); }
.sketch-screen { height: 100%; padding: 42px 25px 25px; border-radius: 29px; background: linear-gradient(155deg, white, var(--theme-soft, var(--brand-soft))); overflow: hidden; }
.sketch-bar { height: 12px; margin-bottom: 14px; border-radius: 99px; background: color-mix(in srgb, var(--theme, var(--brand)) 28%, white); }
.sketch-bar.short { width: 56%; }
.sketch-block { height: 110px; margin: 25px 0; border: 1px solid color-mix(in srgb, var(--theme, var(--brand)) 30%, white); border-radius: 22px; background: rgba(255,255,255,.72); }
.sketch-row { height: 54px; margin-top: 11px; border-radius: 14px; background: rgba(255,255,255,.82); box-shadow: inset 0 0 0 1px rgba(0,0,0,.06); }
.sketch-label { position: absolute; right: 28px; bottom: 30px; left: 28px; color: var(--muted); font-size: 12px; font-weight: 700; text-align: center; }

.pain-grid { display: grid; grid-template-columns: .8fr 1.2fr; gap: clamp(40px, 8vw, 120px); align-items: start; }
.pain-list { margin: 0; padding: 0; list-style: none; border-top: 1px solid var(--line); }
.pain-list li { padding: 20px 0; display: grid; grid-template-columns: 32px 1fr; gap: 12px; border-bottom: 1px solid var(--line); color: var(--muted); }
.pain-list strong { color: var(--theme, var(--brand)); }

.privacy-grid, .price-grid { display: grid; grid-template-columns: 1fr 1fr; gap: clamp(36px, 8vw, 110px); align-items: center; }
.privacy-points { display: grid; gap: 1px; border: 1px solid #34333a; border-radius: var(--radius); overflow: hidden; background: #34333a; }
.privacy-point { padding: 22px; background: #242329; }
.privacy-point strong { display: block; margin-bottom: 3px; }
.privacy-point span { color: #b9b8c0; font-size: 14px; }
.price-panel { padding: clamp(28px, 5vw, 52px); border: 1px solid var(--line); border-radius: var(--radius-lg); background: white; }
.price { margin: 0; color: var(--theme, var(--brand)); font-size: clamp(38px, 5vw, 62px); font-weight: 850; line-height: 1; letter-spacing: -.045em; }
.price-note { margin: 14px 0 0; color: var(--muted); }

.faq { max-width: 850px; }
.faq details { border-bottom: 1px solid var(--line); }
.faq summary { padding: 23px 42px 23px 0; position: relative; cursor: pointer; list-style: none; font-size: 18px; font-weight: 750; }
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: "+"; position: absolute; right: 4px; top: 20px; color: var(--theme, var(--brand)); font-size: 25px; font-weight: 400; }
.faq details[open] summary::after { content: "−"; }
.faq details p { max-width: 720px; margin: -6px 0 22px; color: var(--muted); }

.final-cta { padding: clamp(80px, 12vw, 150px) 0; text-align: center; background: var(--theme-soft, var(--brand-soft)); }
.final-cta .h2 { max-width: 820px; margin-inline: auto; }
.final-cta .section-copy { margin-inline: auto; }
.final-cta .actions { justify-content: center; }

.footer { padding: 54px 0 34px; color: #cbc9d2; background: #1b1a20; }
.footer-grid { display: grid; grid-template-columns: 1.4fr repeat(2, 1fr); gap: 40px; }
.footer .brand { color: white; }
.footer p { max-width: 340px; margin: 14px 0 0; color: #a7a5ae; font-size: 14px; }
.footer h2 { margin: 3px 0 14px; color: white; font-size: 13px; letter-spacing: .08em; }
.footer-links { display: grid; gap: 8px; font-size: 14px; }
.footer-links a:hover { color: white; }
.copyright { margin-top: 40px; padding-top: 24px; border-top: 1px solid #36343c; color: #8e8c95; font-size: 12px; }

.reveal { opacity: 0; transform: translateY(16px); transition: opacity .6s ease, transform .6s ease; }
.reveal.is-visible { opacity: 1; transform: none; }

body.theme-atlas { --theme: #51459a; --theme-soft: #efedf9; }
body.theme-saves { --theme: #3e6755; --theme-soft: #e9f1ed; }
body.theme-scanbook { --theme: #985027; --theme-soft: #f8eee7; }
body.theme-sightsafe { --theme: #2c4a7c; --theme-soft: #eaf0f8; }
body.theme-almanac { --theme: #356557; --theme-soft: #e7f1ed; }
body.theme-dse { --theme: #a43e5c; --theme-soft: #f8e9ee; }

@media (max-width: 1050px) {
  .nav-links { gap: 13px; font-size: 13px; }
  .hero-grid, .product-hero-grid { grid-template-columns: 1fr 1fr; gap: 38px; }
  .catalog-grid { grid-template-columns: repeat(3, 1fr); }
}

@media (max-width: 820px) {
  :root { --wrap: min(100% - 34px, 680px); }
  .nav-inner { min-height: 64px; }
  .nav-links { position: fixed; inset: 64px 0 auto; max-height: calc(100vh - 64px); padding: 24px 17px 34px; display: grid; gap: 0; overflow: auto; border-bottom: 1px solid var(--line); background: white; transform: translateY(-120%); transition: transform .25s ease; }
  .nav-links.is-open { transform: none; }
  .nav-links a { padding: 13px 8px; border-bottom: 1px solid var(--line); font-size: 16px; }
  .menu-toggle { display: grid; place-items: center; }
  .hero { min-height: 0; padding-top: 72px; }
  .hero-grid, .product-hero-grid, .pain-grid, .privacy-grid, .price-grid { grid-template-columns: 1fr; }
  .hero-copy { text-align: center; }
  .hero-copy .lede { margin-inline: auto; }
  .hero-copy .actions, .hero-copy .badges { justify-content: center; }
  .phone-stage, .media-gallery { min-height: 530px; }
  .featured-grid { grid-template-columns: 1fr; }
  .catalog-grid { grid-template-columns: repeat(2, 1fr); }
  .belief-grid, .feature-grid { grid-template-columns: 1fr; }
  .belief, .feature { padding-inline: 0; }
  .product-hero { padding-top: 68px; }
  .product-hero-grid { text-align: center; }
  .product-hero .lede { margin-inline: auto; }
  .product-hero .actions, .product-hero .badges { justify-content: center; }
  .footer-grid { grid-template-columns: 1fr 1fr; }
  .footer-about { grid-column: 1 / -1; }
}

@media (max-width: 520px) {
  :root { --wrap: calc(100% - 28px); }
  .display { font-size: clamp(43px, 13vw, 58px); line-height: 1.08; letter-spacing: -.055em; }
  .hero .display { max-width: none; margin-inline: auto; font-size: clamp(32px, 10.1vw, 44px); }
  .product-hero .display { font-size: clamp(43px, 13vw, 58px); }
  .lede { margin-top: 20px; font-size: 16px; line-height: 1.75; }
  .hero { padding: 58px 0 52px; }
  .phone-stage { min-height: 430px; margin-top: 24px; }
  .phone-stack .phone { width: 184px; border-radius: 30px; padding: 6px; }
  .phone-stack .phone img { border-radius: 24px; }
  .phone-stack .phone::before { top: 11px; width: 58px; height: 16px; }
  .phone-stack .phone:first-child { transform: rotate(-5deg) translate(18px, 12px); }
  .phone-stack .phone:last-child { margin-left: -48px; transform: rotate(5deg) translate(-4px, -12px); }
  .hero-halo { width: 360px; }
  .fact-strip { padding-bottom: 20px; }
  .facts { padding: 16px 6px; gap: 8px; flex-wrap: wrap; font-size: 14px; }
  .facts span + span::before { margin-right: 8px; }
  .section { padding: 76px 0; }
  .h2 { font-size: clamp(34px, 10.6vw, 48px); line-height: 1.16; letter-spacing: -.04em; }
  .section-copy { font-size: 16px; }
  .featured-card { min-height: 510px; padding: 24px; border-radius: 28px; }
  .featured-top { grid-template-columns: auto 1fr; }
  .featured-top .card-arrow { display: none; }
  .product-mark { width: 50px; height: 50px; border-radius: 15px; }
  .product-name { font-size: 23px; }
  .featured-media { min-height: 310px; }
  .featured-media .phone { width: 176px; border-radius: 28px; }
  .catalog-grid { grid-template-columns: 1fr; }
  .product-card { min-height: 190px; }
  .media-gallery { min-height: 420px; margin-top: 18px; }
  .media-gallery::before { width: 340px; }
  .media-gallery.three .phone:first-child { width: 100px; transform: translate(38px, 26px) rotate(-6deg); }
  .media-gallery.three .phone:nth-child(2) { width: 168px; }
  .media-gallery.three .phone:nth-child(3) { width: 100px; margin-left: -38px; transform: translate(0, 26px) rotate(6deg); }
  .media-gallery:not(.three) .phone { width: 180px; }
  .media-gallery:not(.three) .phone:nth-child(2) { width: 155px; margin-left: -45px; }
  .product-sketch { width: 270px; border-radius: 32px; }
  .sketch-screen { padding: 35px 18px 18px; border-radius: 22px; }
  .faq summary { font-size: 16px; }
  .footer-grid { grid-template-columns: 1fr; }
  .footer-about { grid-column: auto; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation-duration: .01ms !important; transition-duration: .01ms !important; }
  .reveal { opacity: 1; transform: none; }
}
.hero-grid > *, .product-hero-grid > * { min-width: 0; }

/* 2026-09-28 fix：截圖已含靈動島，唔再額外畫；產品卡手機圖完整顯示；手機版 Atlas 首屏只留中間一部 */
.phone::before { display: none; }
.featured-media { align-items: center; padding: 28px 0; min-height: 0; border-radius: 26px; }
.featured-media .phone { margin-bottom: 0; width: 200px; }
.featured-media .phone + .phone { transform: translateY(24px) rotate(4deg); }
@media (max-width: 640px) {
  .featured-media .phone { width: 42%; }
  .featured-media .phone + .phone { margin-left: -8%; }
  .media-gallery.three .phone:first-child, .media-gallery.three .phone:nth-child(3) { display: none; }
  .media-gallery.three .phone:nth-child(2) { width: 62%; transform: none; }
}

/* 2026-09-28 全頁覆檢修正 */
@media (max-width: 640px) {
  .product-hero .display { font-size: clamp(34px, 10.5vw, 52px); }
  .featured-card .featured-media > img { width: min(240px, 72%) !important; }  /* 只管直接放喺卡內嘅單圖；手機外框內嘅圖（.phone img）要填滿外框 */
}
.product-sketch { width: min(280px, 100%); aspect-ratio: .49; }
@media (max-width: 640px) { .product-sketch { width: 210px; } }
/* 兩欄版面嘅標題收細，避免孤字斷行 */
.pain-grid { grid-template-columns: 1fr 1fr; }
.pain-grid .h2, .privacy-grid .h2, .price-grid .h2 { font-size: clamp(32px, 3.4vw, 48px); }
/* 示意圖只係佔位，唔好佔大位 */
.product-sketch { width: 200px; }
.product-hero .media-gallery:has(.product-sketch) { min-height: 0; }
@media (max-width: 640px) { .product-hero .media-gallery:has(.product-sketch) { display: none; } }
/* 冇真實截圖嘅頁：唔顯示空白示意圖，首屏改單欄 */
.product-hero .media-gallery:has(.product-sketch) { display: none; }
.product-hero-grid.single { grid-template-columns: 1fr; max-width: 820px; }
.product-hero-grid.single { grid-template-columns: 1fr !important; max-width: 820px; }
.product-hero:has(.single) { min-height: 0; padding-block: 96px 72px; }
@media (max-width: 640px) { .product-hero:has(.single) { padding-block: 48px 40px; } }
.product-hero-grid.single { max-width: var(--wrap, 1180px) !important; }
.product-hero-grid.single > div { max-width: 760px; }
