/* Lumijayon - shared stylesheet. Flat colours only, no shadows. */
:root {
  --bg: #0a0c0f;
  --surface: #13171c;
  --card: #1b2027;
  --line: #29303a;
  --ember: #f5b83d;
  --echo: #4fe3c1;
  --rare: #b58cff;
  --danger: #ff5c5c;
  --text: #e9ecef;
  --muted: #8892a0;
  --radius: 16px;
  --wrap: 1120px;
  --font-head: "Space Grotesk", system-ui, -apple-system, "Segoe UI", sans-serif;
  --font-body: "Inter", system-ui, -apple-system, "Segoe UI", sans-serif;
  color-scheme: dark;
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font-family: var(--font-body);
  font-size: 1.0625rem;
  line-height: 1.65;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
}
main { flex: 1 0 auto; }
img, svg { max-width: 100%; }
h1, h2, h3, h4 { font-family: var(--font-head); line-height: 1.2; margin: 0 0 .6em; letter-spacing: -0.01em; }
h1 { font-size: clamp(2.2rem, 5vw + 1rem, 3.75rem); font-weight: 700; }
h2 { font-size: clamp(1.6rem, 2vw + 1rem, 2.25rem); font-weight: 600; }
h3 { font-size: 1.25rem; font-weight: 600; }
p, ul, ol { margin: 0 0 1em; }
ul, ol { padding-left: 1.3em; }
li { margin-bottom: .4em; }
a { color: var(--echo); text-underline-offset: 3px; }
a:hover { color: var(--text); }
strong { font-weight: 600; }
code { font-family: ui-monospace, SFMono-Regular, Menlo, monospace; font-size: .92em; background: var(--card); border: 1px solid var(--line); border-radius: 6px; padding: .1em .4em; }

:focus-visible { outline: 3px solid var(--ember); outline-offset: 3px; border-radius: 4px; }

.wrap { width: 100%; max-width: var(--wrap); margin: 0 auto; padding: 0 20px; }
.narrow { max-width: 760px; }
.skip { position: absolute; left: 12px; top: -80px; background: var(--ember); color: var(--bg); padding: 10px 16px; border-radius: 8px; font-weight: 600; z-index: 100; text-decoration: none; }
.skip:focus { top: 12px; }
.visually-hidden { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.icon { width: 24px; height: 24px; fill: none; stroke: currentColor; stroke-width: 1.75; stroke-linecap: round; stroke-linejoin: round; flex: none; }

/* Header */
.site-header { background: var(--bg); border-bottom: 1px solid var(--line); position: sticky; top: 0; z-index: 50; }
.header-row { display: flex; align-items: center; justify-content: space-between; gap: 16px; min-height: 68px; }
.brand { display: inline-flex; align-items: center; gap: 10px; color: var(--text); text-decoration: none; font-family: var(--font-head); font-weight: 700; font-size: 1.25rem; letter-spacing: .01em; }
.brand img { width: 36px; height: 36px; }
.nav-list { display: flex; gap: 4px; list-style: none; margin: 0; padding: 0; }
.nav-list li { margin: 0; }
.nav-list a { display: block; padding: 10px 14px; color: var(--muted); text-decoration: none; border-radius: 10px; font-weight: 500; font-size: .98rem; }
.nav-list a:hover { color: var(--text); background: var(--surface); }
.nav-list a[aria-current="page"] { color: var(--text); background: var(--card); }
.nav-toggle { display: none; background: var(--surface); border: 1px solid var(--line); color: var(--text); border-radius: 10px; padding: 10px; cursor: pointer; line-height: 0; }
.nav-toggle:hover { background: var(--card); }

@media (max-width: 820px) {
  .nav-toggle { display: inline-flex; }
  .js .nav { display: none; position: absolute; left: 0; right: 0; top: 100%; background: var(--surface); border-bottom: 1px solid var(--line); padding: 12px 20px 16px; }
  .js .nav.open { display: block; }
  .nav-list { flex-direction: column; }
  .nav-list a { padding: 14px 12px; }
  .header-row { position: relative; }
  .no-js .nav-list, .nav-list { flex-wrap: wrap; }
}

/* Buttons */
.btn { display: inline-flex; align-items: center; gap: 10px; padding: 14px 24px; border-radius: 12px; font-weight: 600; font-family: var(--font-head); text-decoration: none; border: 1px solid transparent; font-size: 1rem; cursor: pointer; min-height: 48px; }
.btn-primary { background: var(--ember); color: var(--bg); }
.btn-primary:hover { background: var(--text); color: var(--bg); }
.btn-ghost { background: transparent; color: var(--text); border-color: var(--line); }
.btn-ghost:hover { background: var(--card); color: var(--text); }
.badge-play { background: var(--card); color: var(--text); border: 1px solid var(--line); border-radius: 12px; padding: 10px 20px 10px 16px; display: inline-flex; align-items: center; gap: 12px; text-decoration: none; min-height: 56px; }
.badge-play:hover { border-color: var(--ember); color: var(--text); }
.badge-play small { display: block; color: var(--muted); font-size: .72rem; line-height: 1.1; text-transform: uppercase; letter-spacing: .08em; }
.badge-play strong { display: block; font-family: var(--font-head); font-size: 1.15rem; line-height: 1.2; }

/* Hero */
.hero { padding: 72px 0 56px; border-bottom: 1px solid var(--line); }
.hero-grid { display: grid; grid-template-columns: 1.15fr .85fr; gap: 48px; align-items: center; }
.eyebrow { color: var(--echo); font-family: var(--font-head); font-weight: 600; letter-spacing: .14em; text-transform: uppercase; font-size: .85rem; margin-bottom: 14px; }
.lede { font-size: 1.2rem; color: var(--muted); max-width: 40ch; }
.hero .cta { display: flex; flex-wrap: wrap; gap: 14px; margin-top: 28px; align-items: center; }
.hero-art { display: flex; justify-content: center; }
.hero-art svg { width: min(100%, 420px); height: auto; background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); }
.hero-note { color: var(--muted); font-size: .92rem; margin-top: 14px; }
@media (max-width: 820px) {
  .hero { padding: 44px 0 40px; }
  .hero-grid { grid-template-columns: 1fr; gap: 32px; }
  .hero-art { order: -1; }
  .hero-art svg { width: min(100%, 300px); }
}

/* Logo animation: rings pulse outward, ember breathes */
.logo-anim .ring, .logo-anim .ember { transform-box: view-box; transform-origin: 548px 352px; }
.logo-anim .ring1 { animation: echo-pulse 3.6s ease-out infinite; }
.logo-anim .ring2 { animation: echo-pulse 3.6s ease-out infinite; animation-delay: .9s; }
.logo-anim .ember { animation: ember-breathe 4.2s ease-in-out infinite; }
@keyframes echo-pulse {
  0% { transform: scale(.9); opacity: 0; }
  20% { opacity: 1; }
  100% { transform: scale(1.18); opacity: 0; }
}
@keyframes ember-breathe {
  0%, 100% { transform: scale(1); opacity: .92; }
  50% { transform: scale(1.1); opacity: 1; }
}

/* Sections */
section.block { padding: 72px 0; border-bottom: 1px solid var(--line); }
section.block.alt { background: var(--surface); }
.section-head { max-width: 640px; margin-bottom: 40px; }
.section-head p { color: var(--muted); }
@media (max-width: 640px) { section.block { padding: 48px 0; } }

.grid { display: grid; gap: 20px; }
.grid-3 { grid-template-columns: repeat(3, 1fr); }
.grid-2 { grid-template-columns: repeat(2, 1fr); }
@media (max-width: 900px) { .grid-3 { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 600px) { .grid-3, .grid-2 { grid-template-columns: 1fr; } }

.card { background: var(--card); border: 1px solid var(--line); border-radius: var(--radius); padding: 24px; }
.card h3 { margin-bottom: .4em; }
.card p:last-child { margin-bottom: 0; }
.card p { color: var(--muted); }
.card .icon { width: 32px; height: 32px; margin-bottom: 14px; color: var(--echo); }
.card.rare .icon { color: var(--rare); }
.card.ember .icon { color: var(--ember); }
.step-num { font-family: var(--font-head); font-weight: 700; font-size: .95rem; color: var(--ember); letter-spacing: .1em; margin-bottom: 10px; display: block; }

.mission { display: grid; grid-template-columns: 1fr 1fr; gap: 40px; align-items: center; }
@media (max-width: 820px) { .mission { grid-template-columns: 1fr; } }
.stat { font-family: var(--font-head); font-size: clamp(2rem, 4vw, 3rem); font-weight: 700; color: var(--ember); line-height: 1.1; }
.pool { background: var(--bg); border: 1px solid var(--line); border-radius: var(--radius); padding: 28px; }
.pool dl { margin: 0; }
.pool dt { color: var(--muted); font-size: .9rem; margin-top: 16px; }
.pool dt:first-child { margin-top: 0; }
.pool dd { margin: 4px 0 0; font-family: var(--font-head); font-size: 1.35rem; font-weight: 600; }

/* FAQ */
.faq details { background: var(--card); border: 1px solid var(--line); border-radius: 12px; margin-bottom: 12px; }
.faq summary { cursor: pointer; padding: 18px 20px; font-weight: 600; font-family: var(--font-head); list-style: none; display: flex; justify-content: space-between; gap: 16px; align-items: center; min-height: 48px; }
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: "+"; color: var(--ember); font-size: 1.5rem; line-height: 1; }
.faq details[open] summary::after { content: "\2212"; }
.faq .answer { padding: 0 20px 18px; color: var(--muted); }
.faq .answer p:last-child { margin-bottom: 0; }

/* Document pages */
.page-head { padding: 56px 0 32px; border-bottom: 1px solid var(--line); }
.page-head h1 { font-size: clamp(2rem, 4vw + .5rem, 3rem); margin-bottom: .3em; }
.page-head p { color: var(--muted); margin: 0; max-width: 60ch; }
.doc { padding: 40px 0 72px; }
.doc h2 { font-size: 1.5rem; margin-top: 2em; padding-top: .2em; }
.doc h3 { margin-top: 1.5em; }
.doc ul li, .doc ol li { color: var(--text); }
.legal-note { background: var(--surface); border: 1px solid var(--line); border-radius: 12px; padding: 12px 16px; color: var(--muted); font-size: .9rem; margin-bottom: 28px; }
.meta { color: var(--muted); font-size: .95rem; }
.placeholder { background: var(--card); border: 1px dashed var(--ember); border-radius: 6px; padding: .05em .4em; color: var(--ember); white-space: nowrap; }
.toc { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); padding: 20px 24px; margin-bottom: 32px; }
.toc h2 { font-size: 1rem; margin: 0 0 .6em; padding: 0; text-transform: uppercase; letter-spacing: .08em; color: var(--muted); }
.toc ol { margin: 0; columns: 2; column-gap: 32px; }
@media (max-width: 600px) { .toc ol { columns: 1; } }
.callout { background: var(--card); border: 1px solid var(--line); border-left: 4px solid var(--echo); border-radius: 12px; padding: 18px 20px; margin: 1.5em 0; }
.callout.warn { border-left-color: var(--ember); }
.callout p:last-child { margin-bottom: 0; }
.table-wrap { overflow-x: auto; margin: 1em 0 1.5em; border: 1px solid var(--line); border-radius: 12px; }
table { border-collapse: collapse; width: 100%; min-width: 560px; font-size: .96rem; }
th, td { text-align: left; padding: 12px 14px; border-bottom: 1px solid var(--line); vertical-align: top; }
th { background: var(--surface); font-family: var(--font-head); font-weight: 600; }
tr:last-child td { border-bottom: 0; }
td { color: var(--text); }

/* Footer */
.site-footer { background: var(--surface); border-top: 1px solid var(--line); padding: 48px 0 32px; margin-top: auto; color: var(--muted); font-size: .96rem; }
.footer-grid { display: grid; grid-template-columns: 1.4fr 1fr 1fr 1fr; gap: 32px; }
@media (max-width: 820px) { .footer-grid { grid-template-columns: 1fr 1fr; } }
@media (max-width: 480px) { .footer-grid { grid-template-columns: 1fr; } }
.site-footer h2 { font-size: .85rem; text-transform: uppercase; letter-spacing: .1em; color: var(--text); margin-bottom: 14px; }
.site-footer ul { list-style: none; padding: 0; margin: 0; }
.site-footer li { margin-bottom: 8px; }
.site-footer a { color: var(--muted); text-decoration: none; }
.site-footer a:hover { color: var(--text); text-decoration: underline; }
.footer-bottom { border-top: 1px solid var(--line); margin-top: 32px; padding-top: 20px; display: flex; flex-wrap: wrap; justify-content: space-between; gap: 12px; font-size: .9rem; }
.trust-line { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 16px; }
.trust-line span { border: 1px solid var(--line); border-radius: 999px; padding: 4px 12px; font-size: .85rem; color: var(--muted); }

/* 404 */
.notfound { padding: 96px 0; text-align: center; }
.notfound .code { font-family: var(--font-head); font-size: clamp(4rem, 12vw, 8rem); font-weight: 700; color: var(--ember); line-height: 1; }

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation: none !important; transition: none !important; }
}
.sprite { position: absolute; width: 0; height: 0; overflow: hidden; }
