/* ============================================================
   menyoo.live — stylesheet
   Theme: "Los Santos at night" — committed dark, Menyoo violet
   ============================================================ */

:root {
  --bg: #0B0B12;
  --bg-raised: #12121D;
  --surface: #181826;
  --line: rgba(237, 235, 244, 0.09);
  --ink: #EDEBF4;
  --ink-dim: #A5A1B8;
  --violet: #A44BF3;
  --pink: #FF4D9D;
  --accent-text: #D68CFF;
  --cyan: #5FD9FF;
  --amber: #FFB454;
  --amber-dim: rgba(255, 180, 84, 0.12);
  --ok: #6EE7A0;
  --grad: linear-gradient(135deg, #A44BF3 0%, #FF4D9D 100%);
  /* darker stops so white button text passes WCAG AA (>= 4.5:1 at both ends) */
  --grad-strong: linear-gradient(135deg, #8B31D9 0%, #D91E6E 100%);
  --font-display: "Haettenschweiler", "Impact", "Arial Narrow", "Franklin Gothic Medium", sans-serif;
  --font-body: "Segoe UI", system-ui, -apple-system, sans-serif;
  --font-mono: "Consolas", "Cascadia Mono", ui-monospace, monospace;
  --radius: 8px;
  --maxw: 1120px;
}

* { margin: 0; padding: 0; box-sizing: border-box; }

html { scroll-behavior: smooth; scroll-padding-top: 5rem; }
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation: none !important; transition: none !important; }
}

body {
  background: var(--bg);
  color: var(--ink);
  font-family: var(--font-body);
  font-size: 1.0625rem;
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
}

::selection { background: rgba(164, 75, 243, 0.45); }

a { color: var(--accent-text); text-decoration: none; }
a:hover { text-decoration: underline; }
/* links inside running text must not rely on color alone (WCAG 1.4.1) */
.step a, .notice a, .honesty a, details .answer a,
.section-head p a, .installer a, .about a {
  text-decoration: underline;
  text-underline-offset: 3px;
  text-decoration-color: rgba(214, 140, 255, 0.55);
}

/* one treatment for every inline code token (file names, keys, paths) */
code {
  font-family: var(--font-mono); font-size: 0.85em; color: var(--cyan);
  background: rgba(95, 217, 255, 0.08); padding: 0.1em 0.4em; border-radius: 4px;
}

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

.skip {
  position: absolute; left: -9999px; top: 0; z-index: 100;
  background: var(--surface); color: var(--ink); padding: 0.6rem 1rem;
}
.skip:focus { left: 0.5rem; top: 0.5rem; }

.wrap { max-width: var(--maxw); margin: 0 auto; padding: 0 1.5rem; }

h1, h2, h3 { text-wrap: balance; }

h2 {
  font-family: var(--font-display);
  font-weight: 400;
  font-size: clamp(2rem, 4.5vw, 3rem);
  letter-spacing: 0.02em;
  text-transform: uppercase;
  line-height: 1.05;
}

.eyebrow {
  font-family: var(--font-mono);
  font-size: 0.78rem;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--accent-text);
  margin-bottom: 0.9rem;
}

.section { padding: 5.5rem 0; }
.section-head { max-width: 46rem; margin-bottom: 3rem; }
.section-head p { color: var(--ink-dim); margin-top: 1rem; }

/* ---------- Navigation ---------- */
.nav {
  position: sticky; top: 0; z-index: 50;
  background: rgba(11, 11, 18, 0.82);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--line);
}
.nav-inner {
  max-width: var(--maxw); margin: 0 auto; padding: 0.8rem 1.5rem;
  display: flex; align-items: center; gap: 1.5rem;
}
.brand {
  font-family: var(--font-display);
  font-size: 1.55rem;
  letter-spacing: 0.04em;
  background: var(--grad);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
  -webkit-text-fill-color: transparent;
  text-decoration: none !important;
  line-height: 1;
}
.brand small {
  font-size: 0.9rem;
  color: var(--ink-dim);
  -webkit-text-fill-color: var(--ink-dim);
  letter-spacing: 0.06em;
}
.nav-links { display: flex; gap: 1.4rem; margin-left: auto; }
.nav-links a {
  color: var(--ink-dim); font-size: 0.92rem; text-decoration: none;
}
.nav-links a:hover { color: var(--ink); }

/* ---------- Hero ---------- */
.hero {
  position: relative;
  overflow: hidden;
  border-bottom: 1px solid var(--line);
  background:
    radial-gradient(ellipse 55% 45% at 18% 12%, rgba(164, 75, 243, 0.22), transparent 70%),
    radial-gradient(ellipse 45% 40% at 85% 65%, rgba(255, 77, 157, 0.14), transparent 70%),
    var(--bg);
}
.hero-inner {
  max-width: var(--maxw); margin: 0 auto; padding: 5.5rem 1.5rem 8.5rem;
  display: grid; grid-template-columns: 1.15fr 0.85fr; gap: 3.5rem;
  align-items: center; position: relative; z-index: 2;
}
.hero-inner > *, .split > * { min-width: 0; }
.hero h1 {
  font-family: var(--font-display);
  font-weight: 400;
  font-size: clamp(2.6rem, 6.5vw, 4.6rem);
  line-height: 0.98;
  letter-spacing: 0.015em;
  text-transform: uppercase;
}
.hero h1 .grad {
  background: var(--grad);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}
.lede {
  color: var(--ink-dim); font-size: 1.14rem; max-width: 34rem;
  margin-top: 1.4rem;
}
.lede strong { color: var(--ink); font-weight: 600; }
.cta-row { display: flex; flex-wrap: wrap; gap: 0.9rem; margin-top: 2.1rem; }
.btn {
  display: inline-block; padding: 0.85rem 1.7rem; border-radius: 6px;
  font-weight: 600; font-size: 1rem; text-decoration: none !important;
  letter-spacing: 0.01em;
}
.btn-primary {
  background: var(--grad-strong); color: #fff;
  box-shadow: 0 4px 24px rgba(196, 74, 200, 0.35);
}
.btn-primary:hover { filter: brightness(1.1); }
.btn-ghost {
  border: 1px solid rgba(214, 140, 255, 0.4); color: var(--ink);
}
.btn-ghost:hover { border-color: var(--accent-text); background: rgba(164, 75, 243, 0.08); }
.hero-meta {
  margin-top: 1.6rem; font-family: var(--font-mono); font-size: 0.82rem;
  color: var(--ink-dim); letter-spacing: 0.04em;
}
.hero-meta .dot { color: var(--violet); margin: 0 0.45rem; }

/* ---------- Menu mock ---------- */
.menu-mock {
  width: min(330px, 100%);
  justify-self: center;
  background: rgba(9, 9, 14, 0.92);
  border: 1px solid rgba(237, 235, 244, 0.14);
  box-shadow: 0 24px 70px rgba(0, 0, 0, 0.6), 0 0 60px rgba(164, 75, 243, 0.18);
  font-size: 0.95rem;
  user-select: none;
  cursor: default;
}
.mm-header {
  background: var(--grad);
  font-family: var(--font-display);
  font-size: 2rem;
  letter-spacing: 0.05em;
  text-align: center;
  padding: 0.85rem 0 0.7rem;
  color: #fff;
  line-height: 1;
}
.mm-sub {
  background: #16161f;
  font-family: var(--font-mono);
  font-size: 0.72rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--ink-dim);
  text-align: center;
  padding: 0.42rem 0;
  border-bottom: 1px solid var(--line);
}
.menu-mock ul { list-style: none; }
.menu-mock li {
  display: flex; justify-content: space-between; align-items: center;
  padding: 0.6rem 1rem;
  color: var(--ink-dim);
  border-bottom: 1px solid rgba(237, 235, 244, 0.05);
}
.menu-mock li::after { content: "›"; opacity: 0.5; }
.menu-mock li.sel {
  background: linear-gradient(90deg, #8B31D9, #D91E6E);
  color: #fff; font-weight: 600;
}
.menu-mock li.sel::after { opacity: 1; }
.mm-footer {
  display: flex; justify-content: space-between;
  font-family: var(--font-mono); font-size: 0.72rem;
  color: var(--ink-dim); padding: 0.5rem 1rem;
  background: #16161f;
}
.mm-hint {
  text-align: center; font-size: 0.78rem; color: var(--ink-dim);
  margin-top: 0.8rem;
}
kbd {
  font-family: var(--font-mono); font-size: 0.82em;
  background: var(--surface); border: 1px solid var(--line);
  border-bottom-width: 2px; border-radius: 5px;
  padding: 0.1em 0.5em; color: var(--ink);
  white-space: nowrap;
}

/* ---------- Skyline ---------- */
.skyline {
  position: absolute; bottom: -1px; left: 0; right: 0;
  width: 100%; height: auto; z-index: 1; display: block;
  pointer-events: none;
}

/* ---------- Stats strip ---------- */
.strip { border-bottom: 1px solid var(--line); background: var(--bg-raised); }
.strip-inner {
  max-width: var(--maxw); margin: 0 auto; padding: 2.2rem 1.5rem;
  display: grid; grid-template-columns: repeat(4, 1fr); gap: 1.5rem;
}
.stat b {
  display: block; font-family: var(--font-display); font-weight: 400;
  font-size: 2rem; letter-spacing: 0.02em; color: var(--ink);
  font-variant-numeric: tabular-nums; line-height: 1.1;
}
.stat > span { color: var(--ink-dim); font-size: 0.88rem; }

/* ---------- Features ---------- */
.grid {
  display: grid; grid-template-columns: repeat(4, 1fr); gap: 1.1rem;
}
.card {
  background: var(--surface); border: 1px solid var(--line);
  border-radius: var(--radius); padding: 1.5rem 1.4rem;
}
.card:hover { border-color: rgba(164, 75, 243, 0.45); }
.card .icon {
  width: 42px; height: 42px; display: grid; place-items: center;
  background: rgba(164, 75, 243, 0.12); border-radius: 8px;
  margin-bottom: 1rem; color: var(--accent-text);
}
.card h3 { font-size: 1.05rem; font-weight: 600; margin-bottom: 0.45rem; }
.card p { color: var(--ink-dim); font-size: 0.92rem; line-height: 1.55; }
.chips { display: flex; flex-wrap: wrap; gap: 0.5rem; margin-top: 1.8rem; align-items: center; }
.chips-label { font-size: 0.9rem; color: var(--ink-dim); margin-right: 0.4rem; }
.chip {
  font-family: var(--font-mono); font-size: 0.76rem; letter-spacing: 0.04em;
  border: 1px solid var(--line); border-radius: 99px; padding: 0.28rem 0.8rem;
  color: var(--ink-dim); white-space: nowrap;
}

/* ---------- Spooner spotlight ---------- */
.spotlight {
  background: var(--bg-raised); border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
}
.split {
  display: grid; grid-template-columns: 1fr 1fr; gap: 3.5rem; align-items: center;
}
.split .lead-in { color: var(--ink-dim); margin-top: 1rem; }
.checklist { list-style: none; margin-top: 1.5rem; display: grid; gap: 0.8rem; }
.checklist li { display: flex; gap: 0.7rem; color: var(--ink-dim); }
.checklist li::before {
  content: "✓"; color: var(--ok); font-weight: 700; flex: 0 0 auto;
}
.checklist li strong { color: var(--ink); font-weight: 600; }
.code-card {
  background: #0a0a10; border: 1px solid var(--line); border-radius: var(--radius);
  overflow: hidden; font-family: var(--font-mono); font-size: 0.82rem;
}
.code-head {
  display: flex; justify-content: space-between; padding: 0.6rem 1rem;
  background: var(--surface); color: var(--ink-dim); font-size: 0.75rem;
  letter-spacing: 0.05em; border-bottom: 1px solid var(--line);
}
.code-card pre {
  padding: 1.1rem 1.2rem; overflow-x: auto; line-height: 1.7; color: var(--ink-dim);
}
.code-card .tag { color: var(--accent-text); }
.code-card .val { color: var(--cyan); }

/* ---------- Install ---------- */
.installer {
  max-width: 46rem; margin-bottom: 2.6rem;
  background:
    radial-gradient(ellipse 80% 120% at 100% 0%, rgba(164, 75, 243, 0.16), transparent 60%),
    var(--surface);
  border: 1px solid rgba(164, 75, 243, 0.55);
  border-radius: var(--radius); padding: 1.9rem 1.8rem;
  display: flex; flex-direction: column; align-items: flex-start; gap: 0.7rem;
}
.installer h3 { font-size: 1.35rem; font-weight: 600; }
.installer > p { color: var(--ink-dim); font-size: 0.98rem; }
.installer .btn { margin-top: 0.5rem; }
.installer-note { font-size: 0.85rem; color: var(--ink-dim); }
.manual-head {
  max-width: 46rem; font-size: 1rem; font-weight: 600; color: var(--ink-dim);
  letter-spacing: 0.01em; margin-bottom: 1.1rem;
}
.steps { display: grid; gap: 1.1rem; counter-reset: step; max-width: 46rem; }
.step {
  display: grid; grid-template-columns: 3.4rem 1fr; gap: 1.2rem;
  background: var(--surface); border: 1px solid var(--line);
  border-radius: var(--radius); padding: 1.4rem 1.5rem;
}
.step::before {
  counter-increment: step; content: counter(step, decimal-leading-zero);
  font-family: var(--font-display); font-size: 2.1rem; line-height: 1;
  background: var(--grad); -webkit-background-clip: text; background-clip: text;
  color: transparent; padding-top: 0.15rem;
}
.step h3 { font-size: 1.08rem; font-weight: 600; margin-bottom: 0.4rem; }
.step p { color: var(--ink-dim); font-size: 0.95rem; }
.notice {
  max-width: 46rem; margin-top: 1.4rem; border-radius: var(--radius);
  padding: 1.2rem 1.4rem; font-size: 0.95rem;
  border: 1px solid rgba(95, 217, 255, 0.3); background: rgba(95, 217, 255, 0.06);
}
.notice h3 { font-size: 1rem; font-weight: 600; color: var(--cyan); margin-bottom: 0.4rem; }
.notice p, .notice li { color: var(--ink-dim); }
.notice ul { margin: 0.4rem 0 0 1.2rem; }

/* ---------- Download ---------- */
.dl-grid { display: grid; grid-template-columns: 1fr 1fr 1fr; gap: 1.1rem; }
.dl-card {
  background: var(--surface); border: 1px solid var(--line);
  border-radius: var(--radius); padding: 1.7rem 1.5rem;
  display: flex; flex-direction: column; gap: 0.7rem;
}
.dl-card.primary { border-color: rgba(164, 75, 243, 0.55); }
.badge {
  align-self: flex-start; font-family: var(--font-mono); font-size: 0.7rem;
  letter-spacing: 0.12em; text-transform: uppercase; padding: 0.25rem 0.6rem;
  border-radius: 99px; border: 1px solid var(--line); color: var(--ink-dim);
}
.badge.live { border-color: rgba(110, 231, 160, 0.5); color: var(--ok); }
.badge.archived { border-color: rgba(255, 180, 84, 0.4); color: var(--amber); }
.dl-card h3 { font-size: 1.15rem; font-weight: 600; }
.dl-card .ver { font-family: var(--font-mono); font-size: 0.8rem; color: var(--ink-dim); }
.dl-card p { color: var(--ink-dim); font-size: 0.92rem; flex-grow: 1; }
.dl-card .btn { text-align: center; }
.warn {
  border: 1px solid rgba(255, 180, 84, 0.45); background: var(--amber-dim);
  border-radius: var(--radius); padding: 1.3rem 1.5rem; margin-top: 2.2rem;
  display: grid; grid-template-columns: auto 1fr; gap: 1rem; align-items: start;
}
.warn .sign {
  font-family: var(--font-display); font-size: 1.6rem; color: var(--amber);
  border: 2px solid var(--amber); border-radius: 6px; width: 2.4rem; height: 2.4rem;
  display: grid; place-items: center; line-height: 1;
}
.warn h3 { color: var(--amber); font-size: 1.02rem; font-weight: 600; margin-bottom: 0.3rem; }
.warn p { color: var(--ink-dim); font-size: 0.94rem; }
.honesty {
  margin-top: 1.1rem; border: 1px dashed var(--line); border-radius: var(--radius);
  padding: 1.2rem 1.5rem; color: var(--ink-dim); font-size: 0.92rem;
}
.honesty strong { color: var(--ink); }

/* ---------- FAQ ---------- */
.faq-list { max-width: 46rem; display: grid; gap: 0.7rem; }
details {
  background: var(--surface); border: 1px solid var(--line);
  border-radius: var(--radius); overflow: hidden;
}
details[open] { border-color: rgba(164, 75, 243, 0.4); }
summary {
  padding: 1.05rem 1.3rem; cursor: pointer; font-weight: 600; font-size: 0.98rem;
  list-style: none; display: flex; justify-content: space-between; gap: 1rem;
}
summary::-webkit-details-marker { display: none; }
summary::after { content: "+"; color: var(--accent-text); font-weight: 400; font-size: 1.2rem; line-height: 1.3; }
details[open] summary::after { content: "–"; }
/* inset ring: details has overflow:hidden, an outside ring would be clipped */
summary:focus-visible { outline: 2px solid var(--cyan); outline-offset: -3px; }
details .answer { padding: 0 1.3rem 1.2rem; color: var(--ink-dim); font-size: 0.94rem; }

/* ---------- Footer ---------- */
footer {
  border-top: 1px solid var(--line); background: var(--bg-raised);
  padding: 3.5rem 0 2.5rem; margin-top: 2rem;
}
.foot-grid {
  display: grid; grid-template-columns: 1.4fr 1fr 1fr; gap: 2.5rem; margin-bottom: 2.5rem;
}
.foot-grid h3 {
  font-family: var(--font-mono); font-size: 0.75rem; letter-spacing: 0.15em;
  text-transform: uppercase; color: var(--ink-dim); margin-bottom: 0.9rem; font-weight: 400;
}
.foot-grid .about { color: var(--ink-dim); font-size: 0.92rem; margin-top: 0.9rem; max-width: 26rem; }
.foot-grid ul { list-style: none; display: grid; gap: 0.5rem; }
.foot-grid a:not(.brand) { color: var(--ink-dim); font-size: 0.92rem; }
.foot-grid a:not(.brand):hover { color: var(--accent-text); }
.foot-brand { font-size: 1.4rem; }
.disclaimer {
  color: var(--ink-dim); font-size: 0.82rem; line-height: 1.7;
  border-top: 1px solid var(--line); padding-top: 1.8rem; max-width: 62rem;
}

/* ---------- Scroll reveal (gated behind .js so content is visible without JS) ---------- */
.js .reveal { opacity: 0; transform: translateY(18px); transition: opacity 0.55s ease, transform 0.55s ease; }
.js .reveal.in { opacity: 1; transform: none; }
@media (prefers-reduced-motion: reduce) {
  .js .reveal { opacity: 1; transform: none; }
}

/* ---------- Responsive ---------- */
@media (max-width: 960px) {
  html { scroll-padding-top: 7rem; }
  .hero-inner { grid-template-columns: 1fr; padding-bottom: 7rem; }
  .menu-mock { justify-self: start; }
  .grid { grid-template-columns: 1fr 1fr; }
  .split { grid-template-columns: 1fr; gap: 2.2rem; }
  .dl-grid { grid-template-columns: 1fr; }
  .strip-inner { grid-template-columns: 1fr 1fr; gap: 1.8rem 1rem; }
  .foot-grid { grid-template-columns: 1fr; gap: 1.8rem; }
  .nav-inner { flex-wrap: wrap; row-gap: 0.5rem; }
  .nav-links { order: 3; flex-basis: 100%; margin-left: 0; flex-wrap: wrap; gap: 0.5rem 1.1rem; }
}
@media (max-width: 560px) {
  .grid { grid-template-columns: 1fr; }
  .step { grid-template-columns: 2.6rem 1fr; padding: 1.2rem 1.1rem; }
  .section { padding: 4rem 0; }
}
