/* Hong Kong News App — landing */
:root {
  --ink: #0f172a;
  --ink-soft: #334155;
  --muted: #64748b;
  --paper: #f7f9fc;
  --card: #ffffff;
  --line: #e2e8f0;
  --navy: #01487f;
  --blue: #01569e;
  --blue-mid: #1763ad;
  --accent: #599afb;
  --accent-soft: #9ac2ff;
  --bg-hero: linear-gradient(165deg, #01294a 0%, #01487f 42%, #1763ad 100%);
  --shadow: 0 18px 50px rgba(1, 72, 127, 0.12);
  --radius: 18px;
}

* { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; }
body {
  font-family: "Inter", "Noto Sans TC", "PingFang TC", "Microsoft JhengHei", sans-serif;
  color: var(--ink);
  background: var(--paper);
  line-height: 1.6;
  min-height: 100vh;
}
img { max-width: 100%; display: block; }
a { color: var(--blue-mid); text-decoration-thickness: 1px; text-underline-offset: 3px; }
a:hover { color: var(--navy); }

.skip {
  position: absolute; left: -999px; top: 0;
  background: #000; color: #fff; padding: 8px 12px; z-index: 20;
}
.skip:focus { left: 12px; top: 12px; }

.wrap { width: min(1120px, calc(100% - 40px)); margin: 0 auto; }

header {
  position: sticky; top: 0; z-index: 10;
  background: rgba(247, 249, 252, 0.88);
  backdrop-filter: blur(14px);
  border-bottom: 1px solid var(--line);
}
.nav {
  display: flex; align-items: center; justify-content: space-between;
  gap: 16px; padding: 12px 0;
}
.brand { display: flex; align-items: center; gap: 10px; color: inherit; text-decoration: none; }
.brand img { width: 40px; height: 40px; object-fit: contain; }
.brand-name { font-weight: 700; letter-spacing: -0.02em; color: var(--navy); }
.brand-name small { display: block; font-weight: 500; color: var(--muted); font-size: 0.75rem; letter-spacing: 0; }
.nav-actions { display: flex; align-items: center; gap: 10px; }
.lang {
  border: 1px solid var(--line); background: #fff; color: var(--ink);
  border-radius: 999px; padding: 6px 8px; display: flex; gap: 4px;
}
.lang button {
  border: 0; background: transparent; color: var(--muted);
  font: inherit; font-weight: 600; font-size: 0.85rem;
  padding: 4px 10px; border-radius: 999px; cursor: pointer;
}
.lang button[aria-pressed="true"] { background: var(--navy); color: #fff; }
.lang button:focus-visible, .btn:focus-visible { outline: 3px solid var(--accent); outline-offset: 2px; }

.hero {
  background: var(--bg-hero);
  color: #fff;
  padding: 72px 0 80px;
  position: relative;
  overflow: hidden;
}
.hero::after {
  content: "";
  position: absolute; right: -80px; bottom: -80px;
  width: 340px; height: 340px; border-radius: 50%;
  background: radial-gradient(circle, rgba(154,194,255,0.28), transparent 70%);
}
.hero-grid {
  display: grid; grid-template-columns: 1.2fr 0.8fr; gap: 48px; align-items: center;
  position: relative; z-index: 1;
}
.eyebrow {
  display: inline-flex; align-items: center; gap: 8px;
  background: rgba(255,255,255,0.12);
  border: 1px solid rgba(255,255,255,0.2);
  border-radius: 999px; padding: 4px 12px;
  font-size: 0.82rem; font-weight: 600; letter-spacing: 0.04em;
  text-transform: uppercase; color: var(--accent-soft);
}
h1 {
  font-size: clamp(2.1rem, 4vw, 3.4rem);
  line-height: 1.15; letter-spacing: -0.03em;
  margin: 16px 0 14px; font-weight: 750;
}
.lede { font-size: 1.12rem; color: rgba(255,255,255,0.88); max-width: 40rem; }
.cta-row { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 28px; }
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  border-radius: 999px; padding: 12px 20px; font-weight: 650; font-size: 0.98rem;
  text-decoration: none; border: 1px solid transparent; cursor: pointer;
}
.btn-primary { background: #fff; color: var(--navy); }
.btn-primary:hover { background: #eef5ff; color: var(--navy); }
.btn-ghost { background: transparent; color: #fff; border-color: rgba(255,255,255,0.35); }
.btn-ghost:hover { background: rgba(255,255,255,0.1); color: #fff; }
.fine { margin-top: 14px; color: rgba(255,255,255,0.72); font-size: 0.9rem; }

.hero-card {
  background: rgba(255,255,255,0.1);
  border: 1px solid rgba(255,255,255,0.18);
  border-radius: 24px;
  padding: 28px;
  backdrop-filter: blur(10px);
  box-shadow: 0 20px 50px rgba(0,0,0,0.15);
}
.hero-card img.logo { width: 96px; height: 96px; margin: 0 auto 16px; object-fit: contain; }
.hero-card h2 { text-align: center; font-size: 1.35rem; margin-bottom: 6px; }
.hero-card p { text-align: center; color: rgba(255,255,255,0.8); }
.version {
  margin-top: 18px; text-align: center; font-size: 0.85rem; color: var(--accent-soft);
}

section { padding: 72px 0; }
.section-title { font-size: 1.8rem; letter-spacing: -0.03em; margin-bottom: 8px; color: var(--navy); }
.section-lead { color: var(--ink-soft); max-width: 40rem; margin-bottom: 32px; }

.grid-3, .grid-2 {
  display: grid; gap: 18px;
}
.grid-3 { grid-template-columns: repeat(3, 1fr); }
.grid-2 { grid-template-columns: repeat(2, 1fr); }
.card {
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 24px;
  box-shadow: var(--shadow);
}
.card h3 { font-size: 1.15rem; margin-bottom: 8px; color: var(--navy); }
.card p, .card li { color: var(--ink-soft); }
.card ol, .card ul { padding-left: 1.15rem; display: grid; gap: 8px; }
.kicker { font-size: 0.78rem; font-weight: 700; letter-spacing: 0.06em; text-transform: uppercase; color: var(--blue-mid); margin-bottom: 8px; }

.get { background: #fff; border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); }
.contact-box { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 16px; }
.mail { font-weight: 650; font-size: 1.05rem; }

footer {
  padding: 28px 0 40px; color: var(--muted); font-size: 0.9rem;
}
.foot { display: flex; flex-wrap: wrap; gap: 10px 20px; justify-content: space-between; align-items: center; }
footer a { color: var(--ink-soft); }

[data-lang="en"] .zh, [data-lang="zh"] .en { display: none; }

@media (max-width: 840px) {
  .hero-grid, .grid-3, .grid-2 { grid-template-columns: 1fr; }
  .hero { padding: 48px 0 56px; }
  section { padding: 52px 0; }
}
