:root {
  --bg: #FAFAF7; --surface: #FFFFFF; --line: #E5E8DF; --ink: #1E242A; --muted: #5F676D;
  --olive: #7A9A18; --olive-text: #56710C; --lime: #9FCC1E; --pale: #E3EFB8; --pale-2: #F1F6DC;
  --accent: var(--olive-text); --accent-soft: var(--pale-2);
  --r: 22px;
}
* { box-sizing: border-box; margin: 0; }
html { -webkit-text-size-adjust: 100%; }
body {
  background: var(--bg); color: var(--ink);
  font: 16px/1.7 Inter, 'Noto Sans TC', system-ui, -apple-system, 'PingFang TC', 'Microsoft JhengHei', sans-serif;
}
a { color: inherit; }
img { max-width: 100%; }
.wrap { max-width: 1040px; margin: 0 auto; padding: 0 20px; }

/* header */
header.top { display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 20px 0; }
.brand { display: flex; align-items: center; gap: 10px; text-decoration: none; font-weight: 800; font-size: 18px; letter-spacing: -.01em; white-space: nowrap; }
.brand img { width: 30px; height: 30px; }
.brand small { font-weight: 500; color: var(--muted); font-size: 15px; letter-spacing: .04em; }
.nav { display: flex; align-items: center; gap: 4px; }
.nav a { text-decoration: none; color: var(--muted); font-size: 15px; font-weight: 500; padding: 6px 10px; border-radius: 999px; }
.nav a:hover, .nav a[aria-current='page'] { color: var(--ink); background: var(--pale-2); }
.lang { margin-left: 6px; background: var(--surface); border: 1px solid var(--line); color: var(--ink); border-radius: 999px; padding: 5px 15px; font: inherit; font-size: 14px; font-weight: 500; cursor: pointer; }
.lang:hover { border-color: var(--ink); }

/* type */
.eyebrow { font-size: 13px; letter-spacing: .14em; text-transform: uppercase; color: var(--accent); font-weight: 600; margin-bottom: 8px; }
h1 { font-size: clamp(36px, 6vw, 62px); line-height: 1.08; font-weight: 800; letter-spacing: -.03em; }
h2 { font-size: clamp(26px, 4vw, 34px); line-height: 1.2; letter-spacing: -.02em; font-weight: 800; margin-bottom: 24px; }
h3 { font-size: 21px; line-height: 1.25; font-weight: 800; letter-spacing: -.01em; }
html[lang='zh-Hant-TW'] h1 { letter-spacing: 0; line-height: 1.2; font-weight: 700; }
html[lang='zh-Hant-TW'] h2, html[lang='zh-Hant-TW'] h3 { letter-spacing: 0; }
html[lang='zh-Hant-TW'] h2 { font-weight: 700; }
.lead { margin-top: 22px; color: var(--muted); font-size: 18px; max-width: 32em; }
section { padding: 40px 0 48px; }

/* buttons */
.btns { display: flex; flex-wrap: wrap; gap: 10px; }
.btn { display: inline-flex; align-items: center; gap: 8px; border-radius: 999px; padding: 9px 18px; font-weight: 600; font-size: 15px; text-decoration: none; background: var(--ink); color: #fff; border: 1px solid var(--ink); }
.btn:hover { background: #000; }
.btn.ghost { background: none; color: var(--ink); border-color: var(--line); font-weight: 500; }
.btn.ghost:hover { border-color: var(--ink); }
.btn.big { padding: 12px 22px; font-size: 16px; }
.btn[aria-disabled='true'] { background: var(--line); border-color: var(--line); color: var(--muted); pointer-events: none; }

/* home hero */
.hero { display: grid; grid-template-columns: 1.25fr 1fr; gap: 40px; align-items: center; padding: 64px 0 72px; }
.hero h1 .hl { background: linear-gradient(transparent 62%, var(--pale) 62%); padding: 0 .06em; }
/* hero collage: product screens stacked like cards */
.collage { position: relative; height: 520px; }
.collage img { display: block; width: 100%; height: auto; }
.collage .phone { position: absolute; width: 210px; border-radius: 30px; overflow: hidden; border: 6px solid var(--ink); background: var(--ink); box-shadow: 0 28px 50px -24px rgba(30,36,42,.45); }
.collage .back { left: 4%; top: 34px; transform: rotate(-7deg); z-index: 1; }
.collage .front { left: 36%; top: 0; transform: rotate(4deg); z-index: 2; }
.collage .win { position: absolute; width: 190px; right: 0; bottom: 18px; border-radius: 16px; overflow: hidden; border: 1px solid var(--line); background: #fff; box-shadow: 0 24px 44px -22px rgba(30,36,42,.4); transform: rotate(-3deg); z-index: 3; }
.collage .blob { position: absolute; border-radius: 22px; z-index: 0; }
.collage .b1 { width: 120px; height: 120px; background: var(--pale); left: 0; bottom: 0; }
.collage .b2 { width: 84px; height: 84px; background: var(--lime); opacity: .85; right: 6%; top: 6px; border-radius: 0 60% 0 60%; }
.collage .b3 { width: 60px; height: 60px; background: var(--ink); opacity: .9; left: 30%; bottom: -6px; }

/* product tiles */
.grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 18px; }
.tile { background: var(--surface); border: 1px solid var(--line); border-radius: var(--r); padding: 26px; display: flex; flex-direction: column; gap: 14px; }
.tile .head { display: flex; align-items: center; gap: 16px; }
.tile .icon { width: 64px; height: 64px; border-radius: 16px; flex: none; }
.tag { display: inline-block; margin-top: 4px; font-size: 13px; font-weight: 600; color: var(--olive-text); background: var(--pale-2); border-radius: 999px; padding: 1px 10px; }
.tag.ol { color: #1D6B4A; background: #E3F2EA; }
.tile p { color: var(--muted); }
.tile .btns { margin-top: auto; padding-top: 4px; }
.more { margin-top: 18px; color: var(--muted); font-size: 15px; }

/* about */
.about { display: grid; grid-template-columns: 1fr 1.4fr; gap: 40px; }
.about p { font-size: 18px; max-width: 34em; }
.about p + p { margin-top: 14px; color: var(--muted); font-size: 16px; }

/* contact */
.contact { background: var(--ink); color: #fff; border-radius: 28px; padding: 40px; display: grid; grid-template-columns: 1fr auto; gap: 24px; align-items: center; }
.contact .eyebrow { color: var(--lime); }
.contact h2 { margin-bottom: 8px; }
.contact p { color: #C3C9CD; }
.contact .links { display: grid; gap: 10px; }
.contact a { display: flex; align-items: center; gap: 10px; text-decoration: none; background: rgba(255,255,255,.07); border: 1px solid rgba(255,255,255,.12); border-radius: 14px; padding: 12px 18px; font-weight: 500; }
.contact a:hover { border-color: var(--lime); }
.contact a b { color: var(--lime); font-weight: 600; min-width: 5.5em; font-size: 14px; }

/* product page */
.product { --accent: #1D6B4A; --accent-soft: #E3F2EA; }
.phero { display: grid; grid-template-columns: 1fr 1.15fr; gap: 44px; align-items: center; padding: 48px 0 56px; }
.phero .app { display: flex; align-items: center; gap: 14px; margin-bottom: 22px; }
.phero .app img { width: 56px; height: 56px; border-radius: 14px; }
.phero .app b { font-size: 20px; font-weight: 800; }
.phero .app .sub { display: block; color: var(--muted); font-size: 14px; line-height: 1.3; }
.phero .btns { margin-top: 28px; }
.phero .note { margin-top: 12px; font-size: 13px; color: var(--muted); }
.shot { border-radius: 18px; border: 1px solid var(--line); box-shadow: 0 18px 40px -24px rgba(30,36,42,.35); display: block; width: 100%; height: auto; background: #F2F3F0; }
.shots { display: flex; gap: 16px; overflow-x: auto; scroll-snap-type: x mandatory; padding: 4px 2px 22px; scrollbar-width: thin; }
.shots img { flex: 0 0 min(760px, 86%); scroll-snap-align: start; }
.shots-hint { color: var(--muted); font-size: 14px; margin-top: -8px; }
.features { display: grid; grid-template-columns: repeat(2, 1fr); gap: 14px 28px; list-style: none; padding: 0; }
.features li { display: flex; gap: 12px; align-items: flex-start; }
.features li::before { content: ''; flex: none; width: 10px; height: 10px; border-radius: 3px; background: var(--accent); margin-top: 9px; }
.cards3 { display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; }
.card { background: var(--surface); border: 1px solid var(--line); border-radius: var(--r); padding: 24px; }
.card h3 { font-size: 18px; margin-bottom: 8px; }
.card p, .card li { color: var(--muted); }
.card ul { padding-left: 18px; }
.callout { background: var(--accent-soft); border-radius: var(--r); padding: 22px 24px; color: var(--ink); }

/* legal */
.legal { max-width: 720px; padding: 32px 0 56px; }
.legal h1 { font-size: clamp(30px, 5vw, 40px); margin-bottom: 6px; }
.legal .date { color: var(--muted); margin-bottom: 28px; }
.legal h2 { font-size: 20px; margin: 30px 0 8px; letter-spacing: -.01em; }
.legal p, .legal li { color: #333B42; }
.legal ul { padding-left: 20px; margin: 8px 0; }
.legal p + p { margin-top: 10px; }
.legal li + li { margin-top: 6px; }
.back { display: inline-block; margin-bottom: 20px; color: var(--muted); text-decoration: none; font-size: 15px; }
.back:hover { color: var(--ink); }

/* footer */
footer { padding: 32px 0 44px; color: var(--muted); font-size: 14px; display: flex; flex-wrap: wrap; gap: 8px 24px; justify-content: space-between; align-items: center; border-top: 1px solid var(--line); margin-top: 24px; }
footer .f { display: flex; align-items: center; gap: 8px; }
footer .f img { width: 20px; height: 20px; }
footer .fl { display: flex; flex-wrap: wrap; gap: 6px 18px; }
footer a { color: var(--muted); }
footer a:hover { color: var(--ink); }

/* language */
[data-l] { display: none; }
html[lang='en'] [data-l='en'], html[lang='zh-Hant-TW'] [data-l='zh'] { display: revert; }

@media (max-width: 860px) {
  .phero { grid-template-columns: 1fr; gap: 28px; padding: 24px 0 40px; }
  .cards3 { grid-template-columns: 1fr; }
}
@media (max-width: 760px) {
  .hero { grid-template-columns: 1fr; gap: 28px; padding: 32px 0 48px; }
  .collage { height: 430px; max-width: 420px; width: 100%; margin: 0 auto; }
  .collage .phone { width: 170px; border-width: 5px; border-radius: 24px; }
  .collage .win { width: 150px; }
  .grid, .about, .features { grid-template-columns: 1fr; }
  .about { gap: 0; }
  .contact { grid-template-columns: 1fr; padding: 28px 22px; }
  .nav a.hide-s { display: none; }
}
