/* Ryza Chat — download page.
   Palette mirrors the app (web/css/app.css): dark plum + gold. */

:root{
  --bg:#120d14; --bg-2:#1a1216; --ink:#f6ecdf; --dim:#b9a89a;
  --gold:#e8b45c; --ember:#ff8a4c; --leaf:#7fb069;
  --panel:rgba(26,18,22,.88); --panel-2:rgba(40,28,32,.92);
  --line:rgba(232,180,92,.22); --radius:14px;
}

*{box-sizing:border-box}
html,body{margin:0;padding:0}
body{
  background:var(--bg);
  color:var(--ink);
  font:16px/1.6 -apple-system,BlinkMacSystemFont,"Segoe UI",Roboto,"Helvetica Neue",
       "Noto Sans JP","Noto Sans SC",Arial,sans-serif;
  min-height:100vh;
  display:flex; flex-direction:column;
  padding:0 16px calc(32px + env(safe-area-inset-bottom,0px));
  -webkit-text-size-adjust:100%;
}

.glow{
  position:fixed; inset:-30% -10% auto -10%; height:70vh; z-index:-1; pointer-events:none;
  background:
    radial-gradient(45% 55% at 50% 0%, rgba(232,180,92,.20), transparent 70%),
    radial-gradient(40% 45% at 85% 15%, rgba(255,138,76,.13), transparent 70%),
    radial-gradient(40% 45% at 12% 20%, rgba(127,176,105,.10), transparent 70%);
}

/* ------------------------------------------------------------------ topbar */
.topbar{
  max-width:820px; width:100%; margin:0 auto;
  display:flex; align-items:center; justify-content:space-between; gap:12px;
  padding:18px 0 8px;
}
.brand{display:flex; align-items:center; gap:9px; font-weight:600; letter-spacing:.02em}
.brand img{border-radius:8px}
.langs{display:flex; gap:4px; background:var(--panel); border:1px solid var(--line);
  border-radius:999px; padding:3px}
.langs button{
  appearance:none; border:0; background:transparent; color:var(--dim);
  font:inherit; font-size:13px; line-height:1; padding:7px 10px; border-radius:999px; cursor:pointer;
}
.langs button:hover{color:var(--ink)}
.langs button.on{background:linear-gradient(180deg,var(--gold),var(--ember)); color:#241505; font-weight:600}

/* -------------------------------------------------------------------- hero */
main{max-width:820px; width:100%; margin:0 auto; flex:1}
.hero{text-align:center; padding:26px 0 6px}
.app-icon{
  width:128px; height:128px; border-radius:28px;
  border:1px solid var(--line);
  box-shadow:0 18px 44px rgba(0,0,0,.55), 0 0 0 6px rgba(232,180,92,.05);
}
.hero h1{font-size:clamp(26px,6vw,38px); margin:18px 0 2px; letter-spacing:.01em}
.subtitle{margin:0; color:var(--gold); letter-spacing:.22em; text-transform:uppercase; font-size:12px}
.tagline{color:var(--dim); margin:14px auto 0; max-width:46ch}

.chips{list-style:none; display:flex; flex-wrap:wrap; gap:8px; justify-content:center;
  padding:0; margin:20px 0 22px}
.chip{
  font-size:13px; color:var(--dim);
  background:var(--panel); border:1px solid var(--line); border-radius:999px; padding:6px 12px;
}
.chip:first-child{color:var(--gold); border-color:rgba(232,180,92,.4)}

.btn{
  display:inline-flex; align-items:center; gap:10px;
  font:inherit; font-weight:700; text-decoration:none; cursor:pointer;
  color:#241505; background:linear-gradient(180deg,#f2c374,var(--gold) 45%,#cf8f37);
  border:1px solid rgba(255,255,255,.16); border-radius:999px;
  padding:15px 30px; box-shadow:0 12px 28px rgba(232,180,92,.24);
  transition:transform .12s ease, box-shadow .12s ease;
}
.btn:hover{transform:translateY(-1px); box-shadow:0 16px 34px rgba(232,180,92,.32)}
.btn:active{transform:translateY(0)}
.btn svg{width:22px; height:22px; fill:none; stroke:currentColor; stroke-width:1.9;
  stroke-linecap:round; stroke-linejoin:round}

.fileline{margin:14px 0 0; color:var(--dim); font-size:14px; word-break:break-all}
.mirror{margin:6px 0 0; font-size:13px}
.mirror a{color:var(--gold)}

/* -------------------------------------------------------------------- card */
.card{
  background:var(--panel); border:1px solid var(--line); border-radius:var(--radius);
  padding:20px 22px; margin:18px 0;
}
.card h2{margin:0 0 10px; font-size:15px; letter-spacing:.14em; text-transform:uppercase; color:var(--gold)}
.hint{color:var(--dim); font-size:14px; margin:0 0 12px}
.sumrow{display:flex; gap:10px; align-items:stretch; flex-wrap:wrap}
.sumrow code{
  flex:1 1 260px; min-width:0;
  background:var(--bg-2); border:1px solid var(--line); border-radius:10px;
  padding:12px 14px; font-size:13px; overflow-wrap:anywhere;
  font-family:ui-monospace,SFMono-Regular,Menlo,Consolas,monospace; color:var(--ink);
}
.btn.ghost{
  background:transparent; color:var(--gold); border:1px solid var(--line);
  box-shadow:none; padding:12px 18px; font-weight:600;
}
.btn.ghost:hover{background:rgba(232,180,92,.08)}
.status{min-height:20px; margin:8px 0 0; font-size:13px; color:var(--leaf)}

details{margin-top:14px; border-top:1px solid var(--line); padding-top:12px}
summary{cursor:pointer; color:var(--dim); font-size:14px}
summary:hover{color:var(--ink)}
pre{
  background:var(--bg-2); border:1px solid var(--line); border-radius:10px;
  padding:12px 14px; overflow-x:auto; margin:10px 0 0;
}
pre code{font-family:ui-monospace,SFMono-Regular,Menlo,Consolas,monospace; font-size:13px}

/* ------------------------------------------------------------ steps/notes */
.steps,.notes{margin:0; padding-left:22px}
.steps li,.notes li{margin:8px 0; color:var(--dim)}
.steps li::marker{color:var(--gold); font-weight:700}

footer{
  max-width:820px; width:100%; margin:14px auto 0; padding-top:18px;
  border-top:1px solid var(--line); color:var(--dim); font-size:13px; text-align:center;
}
footer a{color:var(--gold)}
.dot{opacity:.5; padding:0 6px}

:focus-visible{outline:2px solid var(--gold); outline-offset:3px; border-radius:6px}

@media (max-width:520px){
  .app-icon{width:104px; height:104px; border-radius:22px}
  .card{padding:18px 16px}
  .btn{padding:14px 24px; width:100%; justify-content:center}
  .btn.ghost{width:auto}
}

@media (prefers-reduced-motion:reduce){
  .btn{transition:none}
}
