@font-face { font-family: "Lora"; src: url(fonts/lora.woff) format("woff"); font-weight: 400 700; font-display: swap; }
@font-face { font-family: "Inter"; src: url(fonts/inter-400.woff) format("woff"); font-weight: 400; font-display: swap; }
@font-face { font-family: "Inter"; src: url(fonts/inter-600.woff) format("woff"); font-weight: 600; font-display: swap; }
@font-face { font-family: "Noto Sans TC"; src: url(fonts/notosanstc-400.woff) format("woff"); font-weight: 400; font-display: swap; }
@font-face { font-family: "Noto Sans TC"; src: url(fonts/notosanstc-700.woff) format("woff"); font-weight: 600 700; font-display: swap; }
@font-face { font-family: "Noto Serif TC"; src: url(fonts/notoseriftc-700.woff) format("woff"); font-weight: 600 700; font-display: swap; }

:root {
  --night: #1A1230;      /* dark bands */
  --plum: #241A40;
  --line: #3A2E5C;
  --mist: #F6F2FD;       /* light bands */
  --paper: #FFFFFF;
  --ink: #1E1638;        /* text on light */
  --ink-dim: #5E547A;
  --violet: #6B45D9;     /* accent on light */
  --lilac: #E3D5FF;      /* the logo's facets */
  --lavender: #C4A6FF;
  --text: #F1ECFA;       /* text on dark */
  --dim: #B3A9CB;
  --safe: #4CAF50;
  --help: #E53935;
  --serif: "Lora", "Noto Serif TC", Georgia, serif;
  --sans: "Inter", "Noto Sans TC", system-ui, sans-serif;
  --wrap: 1140px;
  --head: 64px;
}
:root[data-lang="zh"] { --serif: "Noto Serif TC", "Lora", serif; --sans: "Noto Sans TC", "Inter", system-ui, sans-serif; }
html[data-lang="en"] [data-l="zh"], html[data-lang="zh"] [data-l="en"] { display: none !important; }

* { box-sizing: border-box; }
html { background: var(--night); color: var(--text); -webkit-text-size-adjust: 100%; scroll-behavior: smooth; scroll-padding-top: var(--head); }
body { margin: 0; font: 17px/1.6 var(--sans); }
:root[data-lang="zh"] body { line-height: 1.8; letter-spacing: .02em; }
a { color: var(--lavender); text-underline-offset: 3px; }
a:hover { color: var(--lilac); }
:focus-visible { outline: 2px solid var(--lavender); outline-offset: 3px; border-radius: 4px; }
h1, h2, h3 { font-family: var(--serif); font-weight: 600; margin: 0; }
h2 { font-size: clamp(30px, 4.2vw, 44px); line-height: 1.15; }
p { margin: 0 0 1em; }
.small { font-size: 14px; color: var(--dim); }

/* header: sticky, like a messenger's home page */
.top { position: sticky; top: 0; z-index: 10; height: var(--head); background: rgba(26, 18, 48, .88);
  -webkit-backdrop-filter: blur(12px); backdrop-filter: blur(12px); border-bottom: 1px solid rgba(196, 166, 255, .12); }
.top-in { max-width: var(--wrap); height: 100%; margin: 0 auto; padding: 0 24px; display: flex; align-items: center; gap: 28px; }
.brand { display: flex; align-items: center; gap: 10px; color: var(--text); text-decoration: none; font: 600 22px var(--serif); }
.logo { width: 34px; height: 34px; display: block; }
.links { display: flex; gap: 28px; margin-left: auto; font-size: 15px; }
.links a { color: var(--dim); text-decoration: none; }
.links a:hover, .links a[aria-current] { color: var(--text); }
.lang { font: 600 14px var(--sans); color: var(--night); background: var(--lilac); border: 0; border-radius: 999px; padding: 7px 16px; cursor: pointer; }
.lang:hover { background: #fff; }

/* hero: full screen, centred, phones fanned out at the bottom */
.hero { position: relative; min-height: calc(100vh - var(--head)); overflow: hidden; text-align: center;
  background: radial-gradient(120% 80% at 50% 0%, #3A2470 0%, #241A40 45%, var(--night) 80%);
  display: flex; flex-direction: column; align-items: center; padding: 56px 24px 0; }
.hero-in { max-width: 1000px; display: flex; flex-direction: column; align-items: center; }
.hero-mark { width: 64px; height: 64px; margin-bottom: 20px; }
.hero h1 { font-size: clamp(38px, 6vw, 72px); line-height: 1.06; letter-spacing: -.015em; }
:root[data-lang="zh"] .hero h1 { letter-spacing: .03em; line-height: 1.25; }
.hero-lead { font-size: 19px; color: #D6CDEA; max-width: 40em; margin: 22px auto 0; }
.status { display: inline-flex; align-items: center; gap: 10px; margin: 26px 0 0; font-weight: 600; }
.dot { width: 10px; height: 10px; border-radius: 50%; background: var(--safe); animation: beat 2.4s ease-out infinite; flex: none; }
@keyframes beat { 0% { box-shadow: 0 0 0 0 rgba(76,175,80,.55); } 70%, 100% { box-shadow: 0 0 0 10px rgba(76,175,80,0); } }
.plats { list-style: none; padding: 0; margin: 18px 0 0; display: flex; flex-wrap: wrap; justify-content: center; gap: 10px; }
.plats li { display: flex; flex-direction: column; align-items: flex-start; min-width: 116px; padding: 8px 16px; border-radius: 12px;
  background: rgba(255,255,255,.06); border: 1px solid rgba(196,166,255,.28); text-align: left; }
.plat-name { font-weight: 600; font-size: 16px; line-height: 1.3; }
.plat-soon { font-size: 12px; color: var(--dim); line-height: 1.3; }
.proud { display: inline-flex; align-items: center; gap: 10px; margin: 22px 0 0; font: 600 17px var(--serif); color: var(--lilac); }
.proud .tw { height: 30px; width: auto; }
.tw path { fill: var(--lavender); }
.hero-phones { position: relative; width: min(760px, 100%); height: 420px; margin-top: 48px; }
.hero-phones .phone { position: absolute; bottom: -120px; width: 240px; height: auto; border-radius: 30px; border: 1px solid var(--line);
  box-shadow: 0 30px 80px rgba(0,0,0,.45); animation: rise 1.2s cubic-bezier(.2,.7,.2,1) .2s both; }
.p-mid { left: 50%; margin-left: -120px; z-index: 2; bottom: -60px !important; }
.p-left { left: 50%; margin-left: -330px; transform: rotate(-8deg); animation-delay: .35s !important; }
.p-right { left: 50%; margin-left: 90px; transform: rotate(8deg); animation-delay: .35s !important; }
@keyframes rise { from { translate: 0 80px; opacity: 0; } to { translate: 0 0; opacity: 1; } }
.scroll { position: absolute; left: 50%; bottom: 18px; translate: -50% 0; z-index: 3; color: var(--text); font-size: 13px; text-decoration: none;
  background: rgba(26,18,48,.7); padding: 6px 14px; border-radius: 999px; }

/* light bands */
.band-light { background: var(--mist); color: var(--ink); }
.band-light a { color: var(--violet); }
main > section:not(.hero) { padding: 96px 24px; }
.about, .features { text-align: center; }
.about h2, .features h2 { margin-bottom: 18px; }
.about-lead { font: 600 clamp(20px, 2.4vw, 26px)/1.4 var(--serif); max-width: 32em; margin: 0 auto 28px; }
.about-text { max-width: 720px; margin: 0 auto; }
.about-text p { color: var(--ink-dim); font-size: 18px; }
.center-lead { color: var(--ink-dim); font-size: 18px; max-width: 36em; margin: 0 auto 48px; }

/* alternating picture and text rows */
.rows { padding-top: 24px !important; }
.row { max-width: var(--wrap); margin: 0 auto; display: grid; grid-template-columns: 1fr 1fr; gap: 64px; align-items: center; padding: 48px 0; }
.row + .row { border-top: 1px solid #E4DCF5; }
.row-pic { display: flex; justify-content: center; }
.row-pic .phone { width: 280px; max-width: 100%; height: auto; border-radius: 32px; box-shadow: 0 24px 60px rgba(30, 22, 56, .25); }
.row.flip .row-pic { order: 2; }
.row h3 { font-size: clamp(26px, 3vw, 36px); line-height: 1.2; margin-bottom: 16px; }
.row-text p { color: var(--ink-dim); font-size: 18px; max-width: 30em; }

/* trust: adults only, reports */
.trust-list { list-style: none; padding: 0; margin: 40px auto 0; max-width: var(--wrap); display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; }
.trust-list li { background: var(--paper); border: 1px solid #E4DCF5; border-radius: 20px; padding: 24px; text-align: left; }
.trust-list b { display: block; font-size: 18px; margin-bottom: 8px; color: var(--ink); }
.trust-list span { color: var(--ink-dim); }
.trust-list b span { color: inherit; }
.trust { text-align: center; border-bottom: 1px solid #E4DCF5; }
@media (max-width: 860px) { .trust-list { grid-template-columns: 1fr; } }
/* coming soon: the same cards with a small label */
.soon { text-align: center; border-bottom: 1px solid #E4DCF5; }
.soon .trust-list .tag { display: inline-block; font-size: 13px; font-weight: 600; color: var(--violet); background: #EFE8FC;
  border-radius: 999px; padding: 3px 10px; margin-bottom: 12px; }
.soon .trust-list .tag span { color: inherit; }
/* safety, on dark */
.band-dark { background: var(--night); color: var(--text); }
.safety-in { max-width: var(--wrap); margin: 0 auto; display: grid; grid-template-columns: 1fr 300px; gap: 72px; align-items: center; }
.safety .lead { font-size: 19px; color: #D6CDEA; margin-top: 18px; max-width: 36em; }
.safety dl { margin: 28px 0 0; }
.safety dt { font-weight: 600; margin-top: 18px; }
.safety dt::before { content: ""; display: inline-block; width: 10px; height: 10px; border-radius: 3px; background: var(--help); margin-right: 10px; vertical-align: 1px; }
.safety dt.safe::before { background: var(--safe); }
.safety dd { margin: 4px 0 0 20px; color: var(--dim); max-width: 58ch; }
.note { margin-top: 28px; padding-left: 16px; border-left: 3px solid var(--help); max-width: 58ch; }
.safety-pic .phone { width: 100%; height: auto; border-radius: 30px; border: 1px solid var(--line); }

/* the feature grid: one icon tile per thing Shard does */
.tiles { list-style: none; padding: 0; margin: 0 auto; max-width: var(--wrap); display: grid; grid-template-columns: repeat(7, 1fr); gap: 36px 16px; }
.tiles li { display: flex; flex-direction: column; align-items: center; gap: 12px; font-size: 15px; font-weight: 600; line-height: 1.35; }
.tiles .ic { width: 68px; height: 68px; padding: 18px; border-radius: 22px; background: var(--paper); box-shadow: 0 6px 18px rgba(30,22,56,.08);
  fill: none; stroke: var(--violet); stroke-width: 1.7; stroke-linecap: round; stroke-linejoin: round; }

/* beta */
.band-accent { background: linear-gradient(135deg, #3B2470, #5B36B0); color: #fff; text-align: center; }
.beta h2 { margin-bottom: 18px; }
.beta > p:first-of-type { font-size: 18px; color: #EDE6FA; max-width: 40em; margin: 0 auto; }
.beta .plats { margin: 28px 0; }
.beta .plats li { background: rgba(255,255,255,.12); border-color: rgba(255,255,255,.3); }
.beta .plat-soon { color: #DCD2F2; }
.beta .small { color: #DCD2F2; }
.adult { display: inline-block; font-weight: 600; padding: 8px 16px; border-radius: 12px; background: rgba(255,255,255,.14); margin: 0 0 14px; }
.beta a { color: #fff; }

/* footer */
.foot { background: #120C22; color: var(--dim); padding: 56px 24px 32px; }
.foot-in { max-width: var(--wrap); margin: 0 auto; display: grid; grid-template-columns: 1.6fr 1fr 1fr 1.4fr 1.2fr; gap: 32px; }
.foot-col a { overflow-wrap: anywhere; }
.foot-brand p { margin-top: 12px; max-width: 22em; font-size: 15px; }
.foot-brand .foot-age { margin-top: 4px; }
.foot-col { display: flex; flex-direction: column; gap: 8px; font-size: 15px; }
.foot-col h2 { font: 600 15px var(--sans); color: var(--text); margin-bottom: 6px; }
.foot-col a { color: var(--dim); text-decoration: none; }
.foot-col a:hover { color: var(--text); }
.foot-made { display: flex; align-items: center; gap: 12px; align-self: start; }
.foot-made .tw { height: 54px; width: auto; }
.foot-made p { margin: 0; font: 600 17px var(--serif); color: var(--lilac); }
.copy { max-width: var(--wrap); margin: 40px auto 0; padding-top: 20px; border-top: 1px solid #2A2142; font-size: 13px; }

/* terms */
.terms-main { max-width: 760px; margin: 0 auto; padding: 48px 24px 72px; }
.eula h1 { font-size: clamp(36px, 5vw, 52px); }
.eula .meta { color: var(--dim); margin-top: 10px; font-size: 15px; }
.prevails { color: var(--dim); font-size: 15px; }
.toc-wrap { margin: 28px 0 40px; padding: 18px 22px; background: var(--plum); border-radius: 16px; }
.toc { margin: 0; padding: 0; list-style: none; columns: 2; column-gap: 28px; font-size: 15px; }
.toc li { break-inside: avoid; margin: 3px 0; }
.toc a { color: var(--text); text-decoration: none; }
.toc a:hover { color: var(--lavender); }
.eula h2 { font-size: 24px; margin: 44px 0 14px; }
.eula h2 .n { color: var(--lavender); margin-right: 12px; }
.eula p { color: #DCD4EC; }
.eula p .n { color: var(--dim); font-variant-numeric: tabular-nums; margin-right: 10px; }
.letters { list-style: lower-alpha; color: #DCD4EC; padding-left: 28px; margin: 0 0 1em; }
.letters li { margin: 6px 0; }
.plain { margin-top: 40px; font-size: 15px; }

@media (max-width: 980px) {
  .tiles { grid-template-columns: repeat(4, 1fr); }
  .foot-in { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 860px) {
  .links { display: none; }
  .lang { margin-left: auto; }
  .row, .safety-in { grid-template-columns: 1fr; gap: 28px; text-align: center; }
  .row.flip .row-pic { order: 0; }
  .row-text p { margin: 0 auto; }
  .row-pic .phone { width: 240px; }
  .safety-in { text-align: left; }
  .safety-pic { max-width: 260px; }
  .hero h1 br { display: none; }
  .about-text p { text-align: left; }
  .hero-phones { height: 300px; }
  .hero-phones .phone { width: 170px; border-radius: 22px; bottom: -110px; }
  .p-mid { margin-left: -85px; bottom: -60px !important; }
  .p-left { margin-left: -230px; }
  .p-right { margin-left: 60px; }
  .toc { columns: 1; }
}
@media (max-width: 520px) {
  .top-in { padding: 0 16px; }
  .hero { padding: 40px 16px 0; }
  main > section:not(.hero) { padding: 72px 16px; }
  .terms-main { padding: 32px 16px 56px; }
  .tiles { grid-template-columns: repeat(3, 1fr); gap: 28px 8px; }
  .tiles .ic { width: 60px; height: 60px; padding: 16px; border-radius: 18px; }
  .tiles li { font-size: 13px; }
  .plats li { min-width: 100px; padding: 7px 12px; }
  .hero-phones { height: 260px; }
  .hero-phones .phone { width: 140px; }
  .p-mid { margin-left: -70px; }
  .p-left { margin-left: -178px; }
  .p-right { margin-left: 38px; }
  .foot-in { grid-template-columns: 1fr; }
}
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation: none !important; scroll-behavior: auto !important; }
}
