/* ENTAGORA home page. No framework, no web fonts, no third-party anything. */
:root {
  --bg: #0f1a24;
  --panel: #16242f;
  --line: #24384a;
  --text: #e8edf1;
  --muted: #9fb0bd;
  --gold: #dfa10d;
  --gold-hi: #f0b72a;
  --navy: #14273a;
  --wrap: 1120px;
}
* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0; background: var(--bg); color: var(--text);
  font: 17px/1.6 system-ui, -apple-system, "Segoe UI", Roboto, "Helvetica Neue", Arial, "PingFang SC", "Microsoft YaHei", "Noto Sans CJK SC", sans-serif;
  -webkit-font-smoothing: antialiased;
}
img { max-width: 100%; height: auto; display: block; }
a { color: var(--gold-hi); }
.wrap { width: min(var(--wrap), 100% - 32px); margin-inline: auto; }

/* one language at a time */
html[data-lang="en"] .zh, html[data-lang="zh"] .en { display: none !important; }

/* top bar */
.bar {
  position: fixed; inset: 0 0 auto 0; z-index: 10; height: 56px; padding: 0 16px;
  display: flex; align-items: center; justify-content: space-between;
  background: linear-gradient(rgba(10, 18, 26, .85), rgba(10, 18, 26, 0));
}
.brand { display: flex; align-items: center; gap: 10px; color: #fff; text-decoration: none; font-weight: 700; letter-spacing: .14em; font-size: 15px; }
.lang {
  font: inherit; font-size: 14px; color: #fff; cursor: pointer;
  background: rgba(15, 26, 36, .6); border: 1px solid rgba(255, 255, 255, .35); border-radius: 999px; padding: 5px 14px;
}
.lang:hover { border-color: #fff; }

/* hero: the key art with the logo over a darkened sky */
.hero { position: relative; min-height: min(100svh, 980px); display: flex; align-items: flex-start; overflow: hidden; }
.hero picture, .hero-art { position: absolute; inset: 0; width: 100%; height: 100%; }
.hero-art { object-fit: cover; object-position: 50% 70%; }
.hero-shade {
  position: absolute; inset: 0;
  background:
    linear-gradient(180deg, rgba(12, 22, 32, .82) 0%, rgba(12, 22, 32, .55) 30%, rgba(12, 22, 32, 0) 52%),
    linear-gradient(0deg, var(--bg) 0%, rgba(15, 26, 36, 0) 22%);
}
.hero-body { position: relative; width: min(var(--wrap), 100% - 32px); margin: 0 auto; padding: clamp(84px, 13vh, 140px) 0 48px; text-align: center; }
.logo { margin: 0 auto 14px; width: min(620px, 88%); }
.logo img { width: 100%; filter: drop-shadow(0 2px 10px rgba(0, 0, 0, .45)); }
.logo .sub { display: block; margin-top: 10px; font-size: clamp(22px, 3.2vw, 34px); font-weight: 700; letter-spacing: .4em; padding-left: .4em; text-shadow: 0 2px 10px rgba(0, 0, 0, .5); }
.lead { margin: 0 auto 26px; max-width: 34em; font-size: clamp(18px, 2.2vw, 23px); line-height: 1.45; text-shadow: 0 1px 8px rgba(0, 0, 0, .6); }
.actions, .cta { display: flex; gap: 14px; justify-content: center; flex-wrap: wrap; }
.btn {
  display: inline-block; padding: 13px 24px; border-radius: 10px; font-weight: 700; text-decoration: none;
  color: #fff; background: rgba(15, 26, 36, .7); border: 1px solid rgba(255, 255, 255, .45); backdrop-filter: blur(4px);
}
.btn:hover { border-color: #fff; }
.btn.primary { color: #1b1404; background: var(--gold); border-color: var(--gold); }
.btn.primary:hover { background: var(--gold-hi); }
.btn.soon { cursor: default; }
.btn.primary.soon:hover { background: var(--gold); }
.note { display: inline-block; margin: 16px 0 0; padding: 4px 12px; border-radius: 999px; font-size: 14px; color: #e8edf1; background: rgba(12, 22, 32, .72); }

/* intro */
.intro { padding: 40px 0 8px; }
.intro p { margin: 0 auto; max-width: 46em; font-size: 19px; color: #d4dde4; text-align: center; }

/* screenshots */
.shots { display: grid; grid-template-columns: 1fr 1fr; gap: 22px; padding: 40px 0; }
.shots figure { margin: 0; }
.shots .wide { grid-column: 1 / -1; }
.shots a { display: block; border-radius: 10px; overflow: hidden; border: 1px solid var(--line); background: var(--panel); }
.shots img { width: 100%; aspect-ratio: 16 / 9; object-fit: cover; transition: transform .25s; }
.shots a:hover img { transform: scale(1.02); }
.shots figcaption { margin-top: 8px; font-size: 15px; color: var(--muted); }

/* features */
.features { padding: 24px 0 40px; }
.features h2 { margin: 0 0 18px; font-size: 28px; text-align: center; }
.features ul { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(3, 1fr); gap: 18px; }
.features li { background: var(--panel); border: 1px solid var(--line); border-top: 3px solid var(--gold); border-radius: 10px; padding: 18px 18px 20px; }
.features b { display: block; margin-bottom: 6px; font-size: 18px; color: #fff; }
.features li > span { color: var(--muted); font-size: 15.5px; }

.cta { padding: 8px 0 56px; }

/* footer */
.foot { border-top: 1px solid var(--line); padding: 22px 0 34px; display: flex; justify-content: space-between; gap: 12px; flex-wrap: wrap; color: var(--muted); font-size: 14px; }
.foot p { margin: 0; }
.foot a { color: var(--text); }

@media (max-width: 900px) {
  .features ul { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 640px) {
  body { font-size: 16px; }
  .hero { min-height: 92svh; }
  .hero-art { object-position: 50% 60%; }
  .hero-shade {
    background:
      linear-gradient(180deg, rgba(12, 22, 32, .85) 0%, rgba(12, 22, 32, .6) 34%, rgba(12, 22, 32, .1) 60%),
      linear-gradient(0deg, var(--bg) 0%, rgba(15, 26, 36, 0) 25%);
  }
  .hero-body { padding-top: 92px; }
  .btn { width: 100%; text-align: center; }
  .actions, .cta { flex-direction: column; gap: 10px; }
  .intro p { font-size: 17px; text-align: left; }
  .shots { grid-template-columns: 1fr; gap: 18px; padding: 28px 0; }
  .features ul { grid-template-columns: 1fr; }
  .foot { flex-direction: column; }
}
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } .shots img { transition: none; } }

/* ---------- 2026-10-21: navigation, detailed sections, follow, lightbox ---------- */
.links { display: flex; gap: 18px; margin-left: auto; margin-right: 14px; }
.links a { color: #fff; text-decoration: none; font-size: 14px; opacity: .85; }
.links a:hover { opacity: 1; }
h2 { font-size: 28px; line-height: 1.25; margin: 0 0 10px; text-align: center; }
h3 { margin: 0 0 6px; font-size: 19px; line-height: 1.3; color: #fff; }
.sec-lead { margin: 0 auto 22px; max-width: 40em; text-align: center; color: var(--muted); }
.card { background: var(--panel); border: 1px solid var(--line); border-radius: 10px; padding: 18px 18px 20px; }
.card p { margin: 0; color: var(--muted); font-size: 15.5px; }

/* how to play: three stages, picture beside text */
.play { padding: 36px 0 20px; }
.stages { list-style: none; margin: 0; padding: 0; display: grid; gap: 22px; }
.stages li { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 24px; align-items: center;
  background: var(--panel); border: 1px solid var(--line); border-radius: 12px; padding: 18px; }
.stages li:nth-child(even) > a { order: 2; }
.stages .shot { display: block; border-radius: 8px; overflow: hidden; border: 1px solid var(--line); }
.stages .shot img { width: 100%; aspect-ratio: 16 / 9; object-fit: cover; }
.stages p { margin: 0 0 8px; color: #cfd8df; }
.stage-n { color: var(--gold) !important; font-weight: 700; font-size: 14px; letter-spacing: .08em; text-transform: uppercase; margin-bottom: 4px !important; }
.caption-hide { display: none; }

/* how the world works */
.world { padding: 28px 0 20px; }
.grid5 { display: grid; grid-template-columns: repeat(5, minmax(0, 1fr)); gap: 14px; margin-top: 18px; }

/* early access and roadmap */
.ea { padding: 28px 0 10px; }
.two { display: grid; grid-template-columns: 1fr 1fr; gap: 18px; margin-top: 18px; }
.ticks { margin: 6px 0 0; padding: 0; list-style: none; }
.ticks li { position: relative; padding-left: 22px; margin: 6px 0; color: #cfd8df; font-size: 15.5px; }
.ticks li::before { content: ""; position: absolute; left: 2px; top: .62em; width: 8px; height: 8px; border-radius: 50%; background: var(--gold); }
.fine { margin: 14px 0 0; text-align: center; color: var(--muted); font-size: 14px; }

/* faq */
.faq { padding: 30px 0 10px; max-width: 820px; }
.faq details { background: var(--panel); border: 1px solid var(--line); border-radius: 10px; margin: 10px 0; }
.faq summary { cursor: pointer; padding: 14px 44px 14px 18px; font-weight: 700; list-style: none; position: relative; }
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: "+"; position: absolute; right: 18px; top: 10px; font-size: 22px; color: var(--gold); }
.faq details[open] summary::after { content: "–"; }
.faq details p { margin: 0; padding: 0 18px 16px; color: #cfd8df; }

/* follow */
.follow { padding: 10px 0 40px; }
.social { list-style: none; margin: 18px 0 0; padding: 0; display: grid; grid-template-columns: repeat(5, minmax(0, 1fr)); gap: 12px; }
.soc { display: flex; flex-direction: column; align-items: center; gap: 6px; padding: 16px 8px 14px; border-radius: 12px;
  background: var(--panel); border: 1px solid var(--line); color: #fff; text-decoration: none; text-align: center; }
.soc svg { width: 30px; height: 30px; fill: currentColor; }
.soc b { font-size: 15px; }
.soc i { font-style: normal; font-size: 12.5px; color: var(--muted); }
a.soc i { display: none; }
a.soc:hover { border-color: var(--gold); }
.soc.soon { color: #7f909c; cursor: default; }

/* lightbox */
html.lb-open, html.lb-open body { overflow: hidden; }
.lb { position: fixed; inset: 0; z-index: 50; background: rgba(5, 10, 15, .97); display: flex; flex-direction: column; }
.lb[hidden] { display: none; }
.lb-stage { flex: 1; min-height: 0; display: flex; align-items: center; justify-content: center; padding: 56px 64px 8px; overflow: hidden; }
.lb-img { max-width: 100%; max-height: 100%; object-fit: contain; border-radius: 6px; cursor: zoom-in; box-shadow: 0 10px 40px rgba(0, 0, 0, .6); }
.lb.zoom .lb-stage { display: block; overflow: auto; padding: 56px 0 8px; -webkit-overflow-scrolling: touch; }
.lb.zoom .lb-img { max-width: none; max-height: none; width: 1600px; border-radius: 0; cursor: zoom-out; }
.lb-bottom { padding: 8px 16px calc(14px + env(safe-area-inset-bottom)); text-align: center; }
.lb-cap { margin: 0; color: #fff; font-size: 16px; }
.lb-hint { margin: 4px 0 0; color: var(--muted); font-size: 13px; }
.lb-x, .lb-prev, .lb-next { position: absolute; z-index: 2; border: 0; cursor: pointer; color: #fff; background: rgba(255, 255, 255, .12);
  width: 44px; height: 44px; border-radius: 50%; font-size: 30px; line-height: 44px; padding: 0; }
.lb-x { top: 10px; right: 12px; font-size: 28px; }
.lb-prev { left: 12px; top: 50%; transform: translateY(-50%); }
.lb-next { right: 12px; top: 50%; transform: translateY(-50%); }
.lb-x:hover, .lb-prev:hover, .lb-next:hover { background: rgba(255, 255, 255, .25); }
.lb.zoom .lb-prev, .lb.zoom .lb-next { display: none; }

@media (max-width: 1000px) {
  .grid5 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .grid5 .card:last-child { grid-column: 1 / -1; }
}
@media (max-width: 760px) {
  .stages li { grid-template-columns: 1fr; gap: 14px; padding: 14px; }
  .stages li:nth-child(even) > a { order: 0; }
  .two { grid-template-columns: 1fr; }
  .social { grid-template-columns: repeat(3, minmax(0, 1fr)); }
}
@media (max-width: 640px) {
  h2 { font-size: 24px; }
  .links { display: none; }
  .grid5 { grid-template-columns: 1fr; }
  .shots figcaption { font-size: 14.5px; }
  .lb-stage { padding: 56px 8px 8px; }
  .lb-prev, .lb-next { top: auto; bottom: calc(14px + env(safe-area-inset-bottom)); transform: none; }
  .lb-bottom { padding: 8px 64px calc(14px + env(safe-area-inset-bottom)); }
}
.foot a { display: inline-block; padding: 8px 0; }
.brand { min-height: 40px; }
.lang { min-height: 34px; }
