:root {
  --paper: #e9e4d8; --paper-2: #ddd6c6; --ink: #121214; --ink-2: #2a2a2e; --muted: #5d5a52;
  --gold: #b8923a; --gold-2: #dcc17a; --seal: #c2281f; --night: #0b0c10; --night-2: #14161c;
  --radius: 14px; --max: 1120px;
  --serif: "Hiragino Mincho ProN", "Songti SC", "Noto Serif CJK JP", "Yu Mincho", Georgia, serif;
  --sans: system-ui, -apple-system, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
}
* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body { margin: 0; font-family: var(--sans); background: var(--paper); color: var(--ink); line-height: 1.6; -webkit-font-smoothing: antialiased; }
img { max-width: 100%; display: block; }
a { color: inherit; }
.wrap { max-width: var(--max); margin: 0 auto; padding: 0 24px; }
h1, h2, h3 { font-family: var(--serif); font-weight: 600; line-height: 1.15; margin: 0 0 .4em; }
h2 { font-size: clamp(1.8rem, 3.4vw, 2.6rem); }
h3 { font-size: 1.25rem; }
p { margin: 0 0 1em; }
.muted { color: var(--muted); }
.eyebrow { text-transform: uppercase; letter-spacing: .18em; font-size: .75rem; color: var(--gold); margin-bottom: .6rem; }

/* nav */
.nav { position: fixed; inset: 0 0 auto 0; z-index: 20; display: flex; align-items: center; justify-content: space-between; padding: 14px 24px; color: #f2ecdc; transition: background .25s; }
.nav.solid { background: rgba(11, 12, 16, .92); backdrop-filter: blur(8px); }
.nav .brand { display: flex; align-items: center; gap: 10px; text-decoration: none; font-family: var(--serif); font-size: 1.15rem; }
.nav .brand img { width: 30px; height: 30px; border-radius: 6px; }
.nav ul { display: flex; gap: 22px; list-style: none; margin: 0; padding: 0; }
.nav a.link { text-decoration: none; font-size: .95rem; opacity: .85; }
.nav a.link:hover { opacity: 1; }
.btn { display: inline-flex; align-items: center; gap: .6em; padding: .85em 1.5em; border-radius: 999px; border: 1px solid var(--gold); text-decoration: none; font-weight: 600; cursor: pointer; font: inherit; font-weight: 600; transition: transform .15s, background .15s; }
.btn:hover { transform: translateY(-1px); }
.btn.primary { background: linear-gradient(180deg, #e3c985, #c29b45); color: #1a1405; border-color: #e8d092; box-shadow: 0 10px 30px rgba(184, 146, 58, .35); }
.btn.ghost { color: #f2ecdc; background: rgba(255, 255, 255, .06); }
.btn.dark { background: var(--ink); color: #f2ecdc; border-color: var(--ink); }
.btn.small { padding: .55em 1.1em; font-size: .9rem; }

/* hero */
.hero { position: relative; min-height: 100vh; color: #f2ecdc; background: var(--night) url(img/title.jpg) center / cover no-repeat; display: flex; align-items: center; overflow: hidden; }
.hero::before { content: ""; position: absolute; inset: 0; background: linear-gradient(90deg, rgba(5, 6, 10, .92) 0%, rgba(5, 6, 10, .6) 42%, rgba(5, 6, 10, 0) 72%), radial-gradient(ellipse at center, transparent 55%, rgba(0, 0, 0, .55) 100%); }
.hero .wrap { position: relative; padding-top: 110px; padding-bottom: 80px; }
.hero .logo { display: flex; align-items: flex-end; gap: 14px; }
.hero h1 { font-size: clamp(3.6rem, 10vw, 7.5rem); color: var(--gold-2); letter-spacing: .04em; margin: 0; text-shadow: 0 6px 40px rgba(0, 0, 0, .6); }
.seal { width: 62px; height: 62px; background: var(--seal); color: #f7e9d8; font-family: var(--serif); font-size: 2.1rem; display: grid; place-items: center; border-radius: 6px; transform: rotate(-6deg); margin-bottom: 14px; box-shadow: 0 4px 14px rgba(0, 0, 0, .5); }
.hero .sub { font-family: var(--serif); letter-spacing: .5em; font-size: 1.3rem; color: var(--gold-2); border-bottom: 1px solid rgba(220, 193, 122, .7); display: inline-block; padding-bottom: 8px; margin: 6px 0 18px; }
.hero .tag { font-size: 1.15rem; max-width: 34ch; color: #e6dfcc; }
.cta { display: flex; flex-wrap: wrap; gap: 14px; margin-top: 28px; }
.hero .fine { margin-top: 14px; font-size: .85rem; opacity: .75; }
.scroll { position: absolute; bottom: 22px; left: 50%; transform: translateX(-50%); opacity: .6; font-size: .8rem; letter-spacing: .2em; }

/* sections */
section { padding: 96px 0; }
.dark { background: var(--night); color: #e9e2d0; }
.dark .muted { color: #a8a291; }
.stats { display: grid; grid-template-columns: repeat(4, 1fr); gap: 20px; margin-top: 38px; }
.stat { text-align: center; padding: 22px 10px; border-top: 2px solid var(--gold); background: rgba(255, 255, 255, .03); }
.stat b { display: block; font-family: var(--serif); font-size: clamp(2rem, 4vw, 3rem); color: var(--gold-2); line-height: 1; }
.stat span { font-size: .9rem; color: #b9b2a0; }
.grid3 { display: grid; grid-template-columns: repeat(3, 1fr); gap: 22px; margin-top: 34px; }
.card { background: #f4f0e5; border: 1px solid #cfc7b4; border-radius: var(--radius); padding: 24px; box-shadow: 0 2px 0 rgba(0, 0, 0, .04); }
.card h3 { margin-bottom: .3em; }
.card .k { font-family: var(--serif); font-size: 2rem; color: var(--gold); line-height: 1; margin-bottom: 10px; }
.shot { border-radius: var(--radius); overflow: hidden; border: 1px solid rgba(0, 0, 0, .25); box-shadow: 0 24px 60px rgba(0, 0, 0, .35); background: #000; }
.shot img { width: 100%; }
.shot figcaption { padding: 10px 14px; font-size: .85rem; background: #101114; color: #b7b09d; }
.gallery { display: grid; grid-template-columns: 2fr 1fr; gap: 22px; margin-top: 34px; }
.gallery .stack { display: grid; gap: 22px; }
.split { display: grid; grid-template-columns: 1fr 1fr; gap: 56px; align-items: center; }
.opps { display: grid; grid-template-columns: repeat(5, 1fr); gap: 14px; margin-top: 30px; }
.opp { position: relative; border-radius: var(--radius); overflow: hidden; aspect-ratio: 3 / 4; background: #000; }
.opp img { width: 100%; height: 100%; object-fit: cover; object-position: 78% 50%; }
.opp::after { content: ""; position: absolute; inset: 0; background: linear-gradient(0deg, rgba(0, 0, 0, .85), transparent 55%); }
.opp div { position: absolute; left: 12px; right: 12px; bottom: 10px; z-index: 1; }
.opp b { font-family: var(--serif); font-size: 1.3rem; display: block; color: var(--gold-2); }
.opp span { font-size: .8rem; color: #d8d1bd; }
ul.ticks { list-style: none; padding: 0; margin: 0 0 1em; }
ul.ticks li { padding-left: 1.6em; position: relative; margin-bottom: .55em; }
ul.ticks li::before { content: "\2714"; position: absolute; left: 0; color: var(--gold); }

/* downloads */
.dl { display: grid; grid-template-columns: repeat(3, 1fr); gap: 22px; margin-top: 34px; }
.dl .card { display: flex; flex-direction: column; background: #14161c; border-color: #2b2e38; color: #e9e2d0; }
.dl .card.rec { border-color: var(--gold); box-shadow: 0 0 0 1px var(--gold), 0 18px 50px rgba(184, 146, 58, .25); }
.dl h3 { display: flex; align-items: center; gap: 10px; color: var(--gold-2); }
.dl .os { font-size: 2rem; }
.dl .meta { font-size: .85rem; color: #a8a291; margin: 4px 0 14px; }
.dl code { display: block; word-break: break-all; font-size: .72rem; background: #0b0c10; border: 1px solid #2b2e38; border-radius: 8px; padding: 8px 10px; color: #c9c2ae; margin: 6px 0 14px; }
.dl details { margin-top: auto; font-size: .88rem; color: #bfb8a4; }
.dl summary { cursor: pointer; margin: 10px 0 4px; color: var(--gold-2); }
.dl .btn { justify-content: center; }
.soon { opacity: .6; pointer-events: none; }
.req { margin-top: 28px; font-size: .92rem; }

details.faq { border-bottom: 1px solid #c8c0ac; padding: 14px 0; }
details.faq summary { font-family: var(--serif); font-size: 1.15rem; cursor: pointer; }
details.faq p { margin: 10px 0 0; color: var(--ink-2); }

footer { background: var(--night); color: #a8a291; padding: 46px 0; font-size: .9rem; }
footer a { color: var(--gold-2); }
.fgrid { display: flex; justify-content: space-between; gap: 30px; flex-wrap: wrap; }

@media (max-width: 900px) {
  .stats { grid-template-columns: repeat(2, 1fr); }
  .grid3, .dl, .split, .gallery { grid-template-columns: 1fr; }
  .opps { grid-template-columns: repeat(2, 1fr); }
  .nav ul { display: none; }
  .hero::before { background: linear-gradient(0deg, rgba(5, 6, 10, .92), rgba(5, 6, 10, .45)); }
}
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } .btn { transition: none; } }

/* limited beta */
.betabar { position: fixed; top: 0; left: 0; right: 0; z-index: 30; background: linear-gradient(90deg, #7a1d17, #c2281f 50%, #7a1d17); color: #fbeee0; text-align: center; font-size: .82rem; padding: 7px 14px; letter-spacing: .02em; }
.betabar a { color: #ffe9b0; }
.nav { top: 31px; }
.hero .wrap { padding-top: 150px; }
.badge { font-family: var(--sans); font-size: .62rem; letter-spacing: .14em; padding: 2px 7px; border: 1px solid var(--gold-2); color: var(--gold-2); border-radius: 999px; vertical-align: middle; margin-left: 4px; }
.pill { display: inline-block; margin: 0 0 16px; padding: 5px 14px; border-radius: 999px; background: var(--seal); color: #fbeee0; font-size: .78rem; letter-spacing: .22em; font-weight: 700; }
.betasec { background: #f4eadc; border-top: 4px solid var(--seal); border-bottom: 1px solid #d8c8ae; }
.betasec .card { background: #fffaf0; border-color: #e2cfae; }

.joinsec { background: var(--paper-2); border-top: 1px solid #cfc7b4; }
.joinform { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 18px; position: relative; }
.joinform input[type=text], .joinform input[type=email] { flex: 1 1 200px; min-width: 0; padding: 13px 16px; border-radius: 999px; border: 1px solid #b9b09a; background: #fbf8f0; font: inherit; color: var(--ink); }
.joinform input:focus { outline: 2px solid var(--gold); outline-offset: 1px; }
#join-msg { min-height: 1.6em; margin-top: 10px; }
#join-msg.ok { color: #2c6b3c; } #join-msg.err { color: #a02a21; }

.soonrow { display: grid; grid-template-columns: repeat(4, 1fr); gap: 14px; margin-top: 16px; }
.soon-card { position: relative; background: #101218; border: 1px dashed #3a3e4b; border-radius: var(--radius); padding: 18px 16px 16px; color: #bfb8a4; display: flex; flex-direction: column; gap: 2px; }
.soon-card b { font-family: var(--serif); font-size: 1.2rem; color: #e9e2d0; }
.soon-card em { font-style: normal; font-size: .82rem; color: #8f897a; }
.soon-card i { font-style: normal; margin-top: 10px; align-self: flex-start; font-size: .68rem; letter-spacing: .16em; text-transform: uppercase; color: var(--gold-2); border: 1px solid #5a4b25; border-radius: 999px; padding: 3px 10px; }
.soon-ic { font-size: 1.5rem; color: #5d5a52; margin-bottom: 6px; }
@media (max-width: 900px) { .soonrow { grid-template-columns: repeat(2, 1fr); } }

/* Japanese page: Japanese system fonts first, a bit more line height */
:lang(ja) { --sans: system-ui, -apple-system, "Hiragino Sans", "Yu Gothic UI", "Meiryo", "Noto Sans CJK JP", "Noto Sans JP", sans-serif; --serif: "Hiragino Mincho ProN", "Yu Mincho", "Noto Serif CJK JP", "Noto Serif JP", serif; }
html[lang="ja"] body { line-height: 1.8; }
html[lang="ja"] h1, html[lang="ja"] h2, html[lang="ja"] h3 { line-height: 1.35; }
.nav .link.lang { border: 1px solid rgba(220, 193, 122, .5); border-radius: 999px; padding: 4px 12px; }
.hero .paid { margin: 14px 0 0; color: #dcc17a; font-weight: 600; }
