/* MikuOS project site. Same palette as the web installer so the two read as one thing. */
:root {
  --teal: #39c5bb;
  --teal-dim: #1f7f79;
  --pink: #ff4fa3;
  --bg: #0b0f14;
  --bg-2: #111821;
  --bg-3: #172231;
  --line: #22303f;
  --text: #e6eef4;
  --muted: #8aa0b3;
  --ok: #4ade80;
  --warn: #f5c542;
  --bad: #ff5c7a;
  --mono: ui-monospace, SFMono-Regular, Menlo, Consolas, "Liberation Mono", monospace;
  --sans: system-ui, -apple-system, "Segoe UI", Roboto, Ubuntu, sans-serif;
}
* { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: 4.5rem; }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }
body {
  margin: 0; background: var(--bg); color: var(--text); font: 16px/1.6 var(--sans);
  background-image:
    radial-gradient(1200px 520px at 8% -8%, rgba(57,197,187,.16), transparent 60%),
    radial-gradient(900px 420px at 100% 0%, rgba(255,79,163,.12), transparent 60%);
  background-repeat: no-repeat;
}
a { color: var(--teal); text-underline-offset: 2px; }
a:hover { color: #6fe0d8; }
code { font-family: var(--mono); background: var(--bg-3); padding: .05em .35em; border-radius: 4px; font-size: .9em; overflow-wrap: anywhere; }
h1, h2, h3 { line-height: 1.2; margin: 0 0 .6rem; }
h2 { font-size: clamp(1.35rem, 2.6vw, 1.75rem); color: var(--teal); }
h3 { font-size: .85rem; color: var(--pink); text-transform: uppercase; letter-spacing: .09em; }
p { margin: 0 0 .9rem; }
.muted { color: var(--muted); }
.small { font-size: .88rem; }
.wrap { max-width: 1120px; margin: 0 auto; padding: 3.5rem 1.25rem; }
.band { background: linear-gradient(180deg, rgba(17,24,33,.65), rgba(17,24,33,.35)); border-block: 1px solid var(--line); }
.two { display: grid; grid-template-columns: 1fr 1fr; gap: 2.5rem; }
.three { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1rem; margin-top: 1.25rem; }
@media (max-width: 820px) { .two, .three { grid-template-columns: 1fr; gap: 1.5rem; } }

/* header */
.top {
  position: sticky; top: 0; z-index: 10; display: flex; align-items: center; justify-content: space-between;
  gap: 1rem; padding: .7rem 1.25rem; background: rgba(11,15,20,.82); backdrop-filter: blur(10px);
  border-bottom: 1px solid var(--line);
}
.brand { display: inline-flex; align-items: center; gap: .55rem; color: var(--text); font-weight: 700; text-decoration: none; letter-spacing: .02em; }
.mark { width: 22px; height: 22px; border-radius: 50%; background: radial-gradient(circle, var(--pink) 0 18%, var(--bg) 19% 37%, var(--teal) 38%); flex: none; }
.top nav { display: flex; flex-wrap: wrap; gap: .25rem .9rem; font-size: .92rem; }
.top nav a { color: var(--muted); text-decoration: none; }
.top nav a:hover { color: var(--text); }
.top nav a.gh { color: var(--teal); font-weight: 600; }
@media (max-width: 720px) { .top nav a:not(.gh):not([href="#install"]) { display: none; } }

/* hero */
.hero { display: grid; grid-template-columns: 1.25fr .75fr; gap: 3rem; align-items: center; padding-top: 3rem; }
@media (max-width: 860px) { .hero { grid-template-columns: 1fr; } .hero-shot { max-width: 320px; margin: 0 auto; } }
.kicker { color: var(--pink); font-size: .85rem; text-transform: uppercase; letter-spacing: .12em; margin-bottom: .4rem; }
.hero h1 { font-size: clamp(2.8rem, 7vw, 4.5rem); color: var(--teal); letter-spacing: .01em; margin-bottom: .8rem; }
.lede { font-size: clamp(1.05rem, 1.8vw, 1.22rem); color: #cfdbe4; max-width: 38rem; }
.wip { border: 1px solid rgba(245,197,66,.45); background: rgba(245,197,66,.08); border-radius: 10px; padding: .8rem 1rem; margin: 1.2rem 0; max-width: 38rem; }
.wip b { color: var(--warn); }
.cta { display: flex; flex-wrap: wrap; gap: .6rem; margin: 1.2rem 0 .8rem; }
.fine { color: var(--muted); font-size: .85rem; }
.hero-shot { margin: 0; }
.hero-shot img, .gallery img {
  display: block; width: 100%; height: auto; border-radius: 22px; border: 1px solid var(--line);
  box-shadow: 0 20px 60px rgba(0,0,0,.55), 0 0 0 6px rgba(57,197,187,.07);
}
.hero-shot figcaption, .gallery figcaption { color: var(--muted); font-size: .86rem; margin-top: .7rem; }

/* buttons: same glass-and-bevel family as the main site's controls */
.btn {
  display: inline-block; padding: .62rem 1.1rem; border-radius: 999px; font-weight: 600; text-decoration: none;
  color: var(--text); background: var(--bg-3); border: 1px solid rgba(255,255,255,.14);
  box-shadow: inset 0 1px 0 rgba(255,255,255,.18), inset 0 -2px 0 rgba(0,0,0,.4), 0 6px 14px -6px rgba(0,0,0,.6);
  transition: transform .15s ease, box-shadow .15s ease, filter .15s ease;
}
.btn:hover { transform: translateY(-1px); filter: brightness(1.1); color: var(--text); }
.btn:active { transform: translateY(1px); box-shadow: inset 0 2px 4px rgba(0,0,0,.45); }
.btn.primary { background: linear-gradient(135deg, var(--teal), #2aa198); color: #04110f; border-color: rgba(255,255,255,.3); }
.btn.primary:hover { color: #04110f; }
.btn.ghost { background: transparent; border-color: rgba(255,79,163,.5); color: var(--pink); }
.btn:focus-visible, a:focus-visible, summary:focus-visible { outline: 2px solid var(--pink); outline-offset: 3px; }
@media (prefers-reduced-motion: reduce) { .btn { transition: none; } .btn:hover { transform: none; } }

/* proof */
.term { background: #05080c; border: 1px solid var(--line); border-radius: 12px; padding: 1rem 1.1rem; overflow-x: auto; font: .88rem/1.55 var(--mono); color: #b9c8d4; }
.term code { background: none; padding: 0; font-size: inherit; overflow-wrap: normal; }
.term mark { background: rgba(57,197,187,.16); color: var(--teal); border-radius: 3px; padding: 0 .15em; }
.note { background: var(--bg-2); border: 1px solid var(--line); border-radius: 12px; padding: 1rem 1.1rem; }
.note p { margin: 0; color: #c3d0da; }
.story { margin-top: 1.5rem; background: var(--bg-2); border: 1px solid var(--line); border-radius: 12px; padding: .9rem 1.1rem; }
.story summary { cursor: pointer; font-weight: 600; color: var(--pink); }
.story p { margin-top: .8rem; color: #c3d0da; }

/* gallery */
.gallery { display: grid; grid-template-columns: repeat(4, 1fr); gap: 1.4rem; margin-top: 1.2rem; }
@media (max-width: 980px) { .gallery { grid-template-columns: repeat(3, 1fr); } }
@media (max-width: 680px) { .gallery { grid-template-columns: repeat(2, 1fr); gap: 1rem; } }
.gallery figure { margin: 0; }
.gallery a { display: block; }
.gallery img { border-radius: 16px; transition: transform .2s ease; }
.gallery a:hover img { transform: translateY(-3px); }
.gallery figcaption b { color: var(--text); }

/* verified table */
.table-scroll { overflow-x: auto; border: 1px solid var(--line); border-radius: 12px; }
table { width: 100%; border-collapse: collapse; min-width: 640px; font-size: .94rem; }
th, td { text-align: left; padding: .6rem .85rem; border-bottom: 1px solid var(--line); vertical-align: top; }
th { background: var(--bg-2); color: var(--muted); font-weight: 600; font-size: .82rem; text-transform: uppercase; letter-spacing: .06em; }
tbody tr:last-child td { border-bottom: 0; }
tbody tr:hover { background: rgba(57,197,187,.04); }
.st { display: inline-block; white-space: nowrap; font-size: .8rem; font-weight: 700; padding: .12rem .55rem; border-radius: 999px; border: 1px solid; }
.st.ok { color: var(--ok); border-color: rgba(74,222,128,.45); background: rgba(74,222,128,.08); }
.st.warn { color: var(--warn); border-color: rgba(245,197,66,.45); background: rgba(245,197,66,.08); }
.st.bad { color: var(--bad); border-color: rgba(255,92,122,.45); background: rgba(255,92,122,.08); }

/* lists */
.ticks { list-style: none; padding: 0; margin: 0 0 1rem; }
.ticks li { position: relative; padding-left: 1.3rem; margin: .45rem 0; color: #c9d6df; }
.ticks li::before { content: ""; position: absolute; left: 0; top: .62em; width: .5rem; height: .5rem; border-radius: 50%; background: var(--teal); box-shadow: 0 0 8px rgba(57,197,187,.7); }
.ticks.cols { columns: 2; column-gap: 2.5rem; }
.ticks.cols li { break-inside: avoid; }
@media (max-width: 820px) { .ticks.cols { columns: 1; } }
.steps { padding-left: 1.2rem; color: #c9d6df; }
.steps li { margin: .45rem 0; }

/* install */
.warn-box { border: 1px solid rgba(255,92,122,.5); background: rgba(255,92,122,.08); border-radius: 10px; padding: .8rem 1rem; margin-bottom: 1.6rem; }
.warn-box b { color: var(--bad); }
#install h3 { margin-top: .4rem; }
#install > h3 { margin-top: 2rem; }

/* contribute */
.rule { font-size: 1.35rem; font-weight: 700; color: var(--pink); border-left: 3px solid var(--pink); padding-left: .9rem; }

/* credits */
.credits { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1.4rem; }
@media (max-width: 820px) { .credits { grid-template-columns: 1fr; } }
.credits > div { background: var(--bg-2); border: 1px solid var(--line); border-radius: 12px; padding: 1.1rem 1.2rem; }
.credits p { margin: 0; color: #c3d0da; font-size: .94rem; }

/* footer */
.foot { border-top: 1px solid var(--line); background: #080b0f; }
.foot .wrap { padding: 2rem 1.25rem 2.5rem; }
.foot p { color: var(--muted); font-size: .9rem; }
.foot .legal { font-size: .8rem; }

/* art call */
.art-call { border: 1px solid rgba(255,79,163,.45); background: linear-gradient(135deg, rgba(255,79,163,.09), rgba(57,197,187,.06)); border-radius: 16px; padding: 1.6rem 1.6rem .8rem; }
.art-call h2 { color: var(--pink); }
