/* WorldStream public pages (landing and legal). Same tokens as the app, no JavaScript, no external assets. */
:root {
  color-scheme: dark light;
  --bg: #0b0d12; --surface: #12151d; --container: #181c26; --container-high: #1f2430; --text: #f2f3f7; --muted: #a7adbb; --faint: #6e7585;
  --outline: #2a3040; --accent: #ff7a59; --accent2: #ffb347; --on-accent: #1a0c08;
  --font: system-ui, -apple-system, 'Segoe UI', Roboto, 'Noto Sans', 'Noto Sans Thai', 'Leelawadee UI', Tahoma, Arial, sans-serif;
}
@media (prefers-color-scheme: light) {
  :root { --bg: #f7f7fa; --surface: #ffffff; --container: #eff0f4; --container-high: #e6e8ee; --text: #14171f; --muted: #5b6170; --faint: #757b8a; --outline: #d4d8e2; --accent: #e8603f; --accent2: #d9901e; --on-accent: #ffffff; }
}
* { box-sizing: border-box; }
html, body { margin: 0; }
body { font-family: var(--font); background: var(--bg); color: var(--text); font-size: 16px; line-height: 1.6; -webkit-font-smoothing: antialiased; }
a { color: var(--accent); }
a:focus-visible, .btn:focus-visible { outline: 2px solid var(--accent); outline-offset: 3px; border-radius: 8px; }
.wrap { max-width: 1120px; margin: 0 auto; padding: 0 20px; }
header.site { position: sticky; top: 0; z-index: 10; background: color-mix(in srgb, var(--bg) 90%, transparent); backdrop-filter: blur(12px); border-bottom: 1px solid var(--outline); }
header.site .wrap { display: flex; align-items: center; gap: 16px; height: 64px; }
.brand { display: inline-flex; align-items: center; gap: 10px; color: var(--text); text-decoration: none; font-weight: 700; font-size: 18px; letter-spacing: -0.3px; }
.brand img { width: 34px; height: 34px; }
header.site nav { margin-left: auto; display: flex; gap: 18px; flex-wrap: wrap; }
header.site nav a { color: var(--muted); text-decoration: none; font-weight: 600; font-size: 14px; }
header.site nav a:hover { color: var(--text); }
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 8px; min-height: 48px; padding: 0 24px; border-radius: 999px; font-weight: 700; text-decoration: none; font-size: 15px; }
.btn-primary { background: linear-gradient(90deg, var(--accent), var(--accent2)); color: var(--on-accent); }
.btn-secondary { border: 1px solid var(--outline); color: var(--text); }
section.hero { padding-top: 72px; padding-bottom: 40px; } .hero { display: grid; grid-template-columns: 1.05fr 1fr; gap: 48px; align-items: center; }
.hero h1 { font-size: 52px; line-height: 1.08; letter-spacing: -1.2px; margin: 0 0 16px; }
.hero p.lead { font-size: 19px; color: var(--muted); margin: 0 0 28px; max-width: 34em; }
.hero .actions { display: flex; gap: 12px; flex-wrap: wrap; }
.hero .note { color: var(--faint); font-size: 14px; margin-top: 14px; }
.shot { border-radius: 24px; border: 1px solid var(--outline); overflow: hidden; background: var(--surface); box-shadow: 0 30px 80px rgba(0,0,0,.35); }
.shot img { display: block; width: 100%; height: auto; }
.phone { max-width: 300px; border-radius: 30px; justify-self: center; }
.hero .shots { position: relative; display: flex; justify-content: center; }
.hero .shots .desk { width: 100%; }
.hero .shots .phone { position: absolute; right: -10px; bottom: -40px; width: 34%; }
section, section.wrap { padding-top: 56px; padding-bottom: 56px; }
h2 { font-size: 32px; line-height: 1.2; letter-spacing: -0.5px; margin: 0 0 12px; }
.grid3 { display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; margin-top: 24px; }
.card { background: var(--container); border: 1px solid var(--outline); border-radius: 20px; padding: 22px; }
.grid2 { display: grid; grid-template-columns: repeat(2, 1fr); gap: 16px; margin-top: 24px; }
.downloads .card p + p { margin-top: 12px; }
.downloads .steps { margin: 16px 0 0; padding-left: 20px; color: var(--muted); }
.downloads .steps li + li { margin-top: 6px; }
.downloads .sha { margin-top: 14px; font-size: 12px; color: var(--faint); overflow-wrap: anywhere; }
.downloads .sha code { font-size: 12px; }
.downloads .card { scroll-margin-top: 80px; }
.downloads .buttons { display: flex; flex-wrap: wrap; gap: 10px; }
.downloads .btn { text-align: center; }
.downloads .hint { margin-top: 14px; font-size: 14px; }
.downloads .steps code { font-size: 13px; overflow-wrap: anywhere; background: var(--container-high); border-radius: 6px; padding: 1px 6px; color: var(--text); }
.dl-jump { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 16px; }
.dl-jump a { color: var(--text); text-decoration: none; font-weight: 600; font-size: 14px; padding: 6px 14px; border: 1px solid var(--outline); border-radius: 999px; }
.dl-jump a:hover { border-color: var(--accent); }
.card h3 { margin: 0 0 6px; font-size: 18px; }
.card p { margin: 0; color: var(--muted); }
.platforms .card { display: flex; flex-direction: column; gap: 8px; }
.downloads .tag { display: inline-block; margin-bottom: 8px; font-size: 12px; font-weight: 700; letter-spacing: .5px; padding: 3px 10px; border-radius: 999px; background: var(--container-high); color: var(--muted); }
.platforms .tag { align-self: flex-start; font-size: 12px; font-weight: 700; letter-spacing: .5px; padding: 3px 10px; border-radius: 999px; background: var(--container-high); color: var(--muted); }
.gallery { display: grid; grid-template-columns: repeat(4, 1fr); gap: 14px; margin-top: 24px; align-items: start; }
.gallery figure { margin: 0; }
.gallery figcaption { color: var(--faint); font-size: 13px; margin-top: 6px; }
.muted { color: var(--muted); }
footer.site { border-top: 1px solid var(--outline); padding: 32px 0 48px; color: var(--muted); font-size: 14px; }
footer.site .wrap { display: flex; flex-wrap: wrap; gap: 12px 28px; align-items: center; }
footer.site nav { display: flex; flex-wrap: wrap; gap: 8px 20px; }
footer.site a { color: var(--muted); }
.legal { max-width: 780px; padding: 40px 20px 72px; margin: 0 auto; }
.legal h1 { font-size: 36px; line-height: 1.15; letter-spacing: -0.6px; margin: 8px 0 8px; }
.legal h2 { font-size: 22px; margin: 32px 0 8px; }
.legal p, .legal li { color: var(--text); }
.legal .meta { color: var(--faint); font-size: 14px; }
.legal ul { padding-left: 22px; }
.langswitch { font-size: 14px; }
@media (max-width: 900px) {
  .hero { grid-template-columns: 1fr; gap: 32px; } section.hero { padding-top: 40px; }
  .hero h1 { font-size: 38px; letter-spacing: -0.8px; }
  .grid3, .grid2 { grid-template-columns: 1fr; }
  .gallery { grid-template-columns: repeat(2, 1fr); }
  .hero .shots .phone { right: 0; bottom: -24px; width: 30%; }
}
@media (max-width: 520px) { header.site nav { display: none; } .gallery { grid-template-columns: 1fr 1fr; } .downloads .buttons .btn { width: 100%; padding: 10px 18px; } }
