/* Mu Veyra site v3: design system (dark fantasy, gold, glass) */
:root {
  --bg: #05060a; --bg2: #090b11; --bg3: #0e1119;
  --panel: rgba(17, 19, 28, .62); --panel2: rgba(23, 26, 38, .72);
  --line: rgba(255, 255, 255, .07); --line2: rgba(255, 255, 255, .13);
  --gold: #a3afbf; --gold-hi: #d3dae2; --gold-lo: #5f6b7a; --gold-line: rgba(163, 175, 191, .32);
  --text: #e2e4e6; --muted: #a09fa6; --dim: #6c6f7c;
  --arc: #8fb8ff; --ok: #5ee08a; --bad: #ff6b6b;
  --display: "Cinzel", "Trajan Pro", Georgia, serif;
  --body: "Inter", "Segoe UI", system-ui, -apple-system, sans-serif;
  --wrap: 1240px; --r: 18px; --ease: cubic-bezier(.2, .8, .2, 1);
  color-scheme: dark;
}
*, *::before, *::after { box-sizing: border-box; }
html { overflow-x: hidden; overscroll-behavior-x: none; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
body { margin: 0; background: var(--bg); color: var(--text); font: 400 15px/1.6 var(--body); -webkit-font-smoothing: antialiased; overflow-x: clip; }
body::after { /* film grain */
  content: ""; position: fixed; inset: 0; pointer-events: none; z-index: 100; opacity: .045; mix-blend-mode: overlay;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='160' height='160'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.9' numOctaves='2' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
}
img { max-width: 100%; }
a { color: inherit; text-decoration: none; }
::selection { background: rgba(163, 175, 191, .35); color: #fff; }
.wrap { width: min(var(--wrap), 100% - 40px); margin: 0 auto; }
.dim { color: var(--dim); } .muted { color: var(--muted); }
.gild { background: linear-gradient(180deg, var(--gold-hi) 0%, var(--gold) 45%, var(--gold-lo) 100%); -webkit-background-clip: text; background-clip: text; color: transparent; }
.silver { background: linear-gradient(180deg, #fff 0%, #dfe3ea 45%, #8d95a3 100%); -webkit-background-clip: text; background-clip: text; color: transparent; }

/* ---------------------------------------------------------------- progress + header */
.progress { position: fixed; left: 0; top: 0; height: 2px; width: 100%; transform-origin: 0 50%; transform: scaleX(0); z-index: 60;
  background: linear-gradient(90deg, transparent, var(--gold), var(--gold-hi)); box-shadow: 0 0 12px var(--gold); }
.hdr { position: fixed; inset: 0 0 auto 0; z-index: 50; transition: background .35s, border-color .35s, backdrop-filter .35s; border-bottom: 1px solid transparent; }
.hdr.solid, html.menu-open .hdr { background: rgba(6, 7, 11, .72); backdrop-filter: blur(18px) saturate(1.3); -webkit-backdrop-filter: blur(18px) saturate(1.3); border-color: var(--line); }
.hdr .wrap { height: 72px; display: flex; align-items: center; gap: 28px; }
.brand img { height: 48px; width: auto; display: block; filter: drop-shadow(0 0 18px rgba(163, 175, 191, .25)); }
.hdr nav { display: flex; gap: 4px; margin-right: auto; }
.hdr nav a { position: relative; padding: 9px 12px; font-size: 13px; font-weight: 500; letter-spacing: .02em; color: #c8c5bd; border-radius: 10px; transition: color .2s, background .2s; }
.hdr nav a:hover { color: #fff; background: rgba(255, 255, 255, .04); }
.hdr nav a.on { color: var(--gold-hi); }
.hdr nav a.on::after { content: ""; position: absolute; left: 12px; right: 12px; bottom: 3px; height: 1px; background: linear-gradient(90deg, transparent, var(--gold), transparent); }
.hdr .side { display: flex; align-items: center; gap: 10px; }
.pill { display: inline-flex; align-items: center; gap: 8px; padding: 7px 12px; border-radius: 99px; border: 1px solid var(--line2); background: rgba(255, 255, 255, .03); font-size: 12px; color: var(--muted); }
.pill b { color: var(--text); font-weight: 600; font-variant-numeric: tabular-nums; }
.dot { width: 7px; height: 7px; border-radius: 50%; background: var(--dim); display: inline-block; flex: none; }
.dot.on { background: var(--ok); box-shadow: 0 0 0 0 rgba(94, 224, 138, .6); animation: ping 2.2s infinite; }
.dot.off { background: var(--bad); }
@keyframes ping { 0% { box-shadow: 0 0 0 0 rgba(94, 224, 138, .55); } 70% { box-shadow: 0 0 0 8px rgba(94, 224, 138, 0); } 100% { box-shadow: 0 0 0 0 rgba(94, 224, 138, 0); } }
.burger { display: none; width: 42px; height: 42px; border-radius: 12px; border: 1px solid var(--line2); background: rgba(255, 255, 255, .03); cursor: pointer; padding: 0; }
.burger span { display: block; width: 18px; height: 1.5px; background: #ddd; margin: 4px auto; transition: transform .3s, opacity .3s; }
html.menu-open .burger span:nth-child(1) { transform: translateY(5.5px) rotate(45deg); }
html.menu-open .burger span:nth-child(2) { opacity: 0; }
html.menu-open .burger span:nth-child(3) { transform: translateY(-5.5px) rotate(-45deg); }
.drawer { position: fixed; inset: 72px 0 0 0; z-index: 49; background: rgba(6, 7, 11, .96); backdrop-filter: blur(20px); padding: 18px 20px 40px; display: flex; flex-direction: column; gap: 2px;
  transform: translateY(-8px); opacity: 0; pointer-events: none; transition: opacity .3s, transform .3s; overflow: auto; }
html.menu-open .drawer { opacity: 1; transform: none; pointer-events: auto; }
html.menu-open { overflow: hidden; }
.drawer a { display: flex; justify-content: space-between; padding: 15px 6px; border-bottom: 1px solid var(--line); font-family: var(--display); font-size: 19px; letter-spacing: .03em; }
.drawer a.on { color: var(--gold-hi); }
.drawer .acts { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; margin-top: 22px; }
@media (max-width: 1100px) { .hdr nav { display: none; } .burger { display: block; } .hdr .side .pill .lbl { display: none; } .hdr .wrap { justify-content: space-between; } }
@media (max-width: 560px) { .hdr .side .btn.ghost { display: none; } .brand img { height: 40px; } }

/* ---------------------------------------------------------------- buttons */
.btn { --h: 46px; position: relative; display: inline-flex; align-items: center; justify-content: center; gap: 10px; height: var(--h); padding: 0 24px; border-radius: 12px;
  font: 600 13px var(--body); letter-spacing: .14em; text-transform: uppercase; cursor: pointer; border: 1px solid var(--line2); color: var(--text);
  background: rgba(255, 255, 255, .04); transition: transform .25s var(--ease), box-shadow .3s, background .3s, border-color .3s, color .3s; overflow: hidden; white-space: nowrap; }
.btn:hover { border-color: rgba(255, 255, 255, .28); background: rgba(255, 255, 255, .07); }
.btn:active { transform: translateY(1px) scale(.99); }
.btn.small { --h: 38px; padding: 0 16px; font-size: 11.5px; border-radius: 10px; }
.btn.big { --h: 58px; padding: 0 38px; font-size: 13.5px; border-radius: 14px; }
.btn.gold { color: #0c1014; border: 0; background: linear-gradient(180deg, #d4dae3 0%, #a5b1c0 48%, #6c798b 100%);
  box-shadow: 0 0 0 1px rgba(212, 218, 227, .55) inset, 0 10px 40px rgba(163, 175, 191, .28), 0 0 80px rgba(163, 175, 191, .12); }
.btn.gold:hover { box-shadow: 0 0 0 1px rgba(228, 232, 237, .8) inset, 0 14px 50px rgba(163, 175, 191, .45), 0 0 100px rgba(163, 175, 191, .2); background: linear-gradient(180deg, #e4e8ed 0%, #afbac9 48%, #778496 100%); }
.btn.gold::after { content: ""; position: absolute; inset: 0; background: linear-gradient(110deg, transparent 30%, rgba(255, 255, 255, .55) 48%, transparent 66%); transform: translateX(-120%); animation: sheen 4.5s ease-in-out infinite; }
@keyframes sheen { 0%, 62% { transform: translateX(-120%); } 82%, 100% { transform: translateX(120%); } }
.btn.glass { background: rgba(255, 255, 255, .05); backdrop-filter: blur(12px); -webkit-backdrop-filter: blur(12px); border-color: rgba(255, 255, 255, .16); }
.btn.ghost { background: transparent; }
.btn svg { width: 16px; height: 16px; }
.link { color: var(--gold); font-weight: 500; transition: color .2s; } .link:hover { color: var(--gold-hi); }

/* ---------------------------------------------------------------- type */
.eyebrow { display: inline-flex; align-items: center; gap: 12px; font-size: 11.5px; font-weight: 600; letter-spacing: .32em; text-transform: uppercase; color: var(--gold); }
.eyebrow::before { content: ""; width: 26px; height: 1px; background: linear-gradient(90deg, transparent, var(--gold)); }
.center .eyebrow::after { content: ""; width: 26px; height: 1px; background: linear-gradient(270deg, transparent, var(--gold)); }
h1, h2, h3 { font-weight: 600; }
.h2 { font-family: var(--display); font-size: clamp(32px, 4.6vw, 58px); line-height: 1.05; letter-spacing: .01em; margin: 16px 0 18px; }
.lead { font-size: 16.5px; color: var(--muted); max-width: 620px; line-height: 1.75; margin: 0; }
.center { text-align: center; } .center .lead { margin: 0 auto; }
.kbd, code { font-family: ui-monospace, "SF Mono", Menlo, monospace; font-size: .9em; padding: 2px 7px; border-radius: 6px; background: rgba(255, 255, 255, .06); border: 1px solid var(--line); color: var(--gold-hi); }
.sec { position: relative; padding: 140px 0 0; }
.sec-head { display: flex; align-items: end; gap: 20px; flex-wrap: wrap; }
.sec-head .spacer { flex: 1; }
.row { display: flex; align-items: center; gap: 12px; flex-wrap: wrap; }

/* ---------------------------------------------------------------- cards (spotlight + gradient border) */
.card { position: relative; border-radius: var(--r); background: linear-gradient(180deg, rgba(255, 255, 255, .035), rgba(255, 255, 255, .012)); border: 1px solid var(--line); overflow: hidden; isolation: isolate;
  transition: transform .45s var(--ease), border-color .3s, box-shadow .45s; }
.card::before { content: ""; position: absolute; inset: 0; z-index: -1; opacity: 0; transition: opacity .4s;
  background: radial-gradient(420px circle at var(--mx, 50%) var(--my, 50%), rgba(163, 175, 191, .10), transparent 60%); }
.card::after { content: ""; position: absolute; inset: 0; border-radius: inherit; padding: 1px; pointer-events: none; opacity: 0; transition: opacity .4s;
  background: radial-gradient(260px circle at var(--mx, 50%) var(--my, 50%), rgba(163, 175, 191, .7), transparent 70%);
  -webkit-mask: linear-gradient(#000 0 0) content-box, linear-gradient(#000 0 0); -webkit-mask-composite: xor; mask-composite: exclude; }
.card:hover { transform: translateY(-4px); border-color: rgba(255, 255, 255, .12); box-shadow: 0 30px 80px rgba(0, 0, 0, .45); }
.card:hover::before, .card:hover::after { opacity: 1; }

/* ---------------------------------------------------------------- reveal */
.reveal { opacity: 0; transform: translateY(26px); filter: blur(6px); transition: opacity .9s var(--ease), transform .9s var(--ease), filter .9s var(--ease); transition-delay: var(--d, 0s); }
.reveal.in { opacity: 1; transform: none; filter: none; }
@media (prefers-reduced-motion: reduce) { .reveal { opacity: 1; transform: none; filter: none; transition: none; } .btn.gold::after { animation: none; } }

/* ---------------------------------------------------------------- tables, chips, badges */
.tbl-wrap { border-radius: var(--r); border: 1px solid var(--line); background: var(--panel); overflow: auto; }
table { width: 100%; border-collapse: collapse; font-size: 14px; }
th { text-align: left; font-size: 10.5px; letter-spacing: .2em; text-transform: uppercase; color: var(--dim); font-weight: 600; padding: 14px 18px; border-bottom: 1px solid var(--line); white-space: nowrap; }
td { padding: 13px 18px; border-bottom: 1px solid var(--line); white-space: nowrap; }
tr:last-child td { border-bottom: 0; }
tbody tr { transition: background .2s; }
tbody tr:hover { background: rgba(163, 175, 191, .045); }
td.num, th.num { text-align: right; font-variant-numeric: tabular-nums; }
td.r { width: 56px; font-family: var(--display); color: var(--dim); }
.nm { font-weight: 600; color: var(--text); transition: color .2s; } a.nm:hover { color: var(--gold-hi); }
.cls { display: inline-flex; align-items: center; gap: 9px; color: var(--muted); font-size: 13.5px; }
.cls i { font-style: normal; font: 700 10px var(--body); color: #0a0b0d; width: 28px; height: 20px; border-radius: 6px; display: grid; place-items: center; letter-spacing: .02em; }
.badge { display: inline-flex; align-items: center; gap: 6px; font-size: 10.5px; font-weight: 700; letter-spacing: .12em; text-transform: uppercase; padding: 3px 9px; border-radius: 99px; border: 1px solid var(--line2); color: var(--muted); }
.badge.live { color: var(--ok); border-color: rgba(94, 224, 138, .4); background: rgba(94, 224, 138, .08); }
.badge.live::before { content: ""; width: 6px; height: 6px; border-radius: 50%; background: var(--ok); animation: ping 2s infinite; }
.badge.gold { color: var(--gold-hi); border-color: var(--gold-line); background: rgba(163, 175, 191, .07); }
.skel { height: 16px; border-radius: 8px; background: linear-gradient(90deg, rgba(255, 255, 255, .04), rgba(255, 255, 255, .09), rgba(255, 255, 255, .04)); background-size: 200% 100%; animation: sk 1.4s infinite; }
@keyframes sk { to { background-position: -200% 0; } }
.glogo { width: 18px; height: 18px; image-rendering: pixelated; vertical-align: middle; border-radius: 3px; }
.toast { position: fixed; left: 50%; bottom: 28px; transform: translate(-50%, 20px); opacity: 0; z-index: 90; padding: 12px 18px; border-radius: 12px; background: rgba(20, 22, 30, .95); border: 1px solid var(--gold-line); transition: all .3s; }
.toast.show { opacity: 1; transform: translate(-50%, 0); }

/* ---------------------------------------------------------------- footer */
.ftr { position: relative; margin-top: 140px; border-top: 1px solid var(--line); background: linear-gradient(180deg, rgba(10, 12, 18, .4), #04050a); }
.ftr::before { content: ""; position: absolute; left: 0; right: 0; top: -1px; height: 1px; background: linear-gradient(90deg, transparent, var(--gold-line), transparent); }
.ftr .cols { display: grid; grid-template-columns: 1.6fr repeat(4, 1fr); gap: 34px; padding: 70px 0 44px; }
.ftr .about img { height: 34px; width: auto; }
.ftr .about p { color: var(--muted); font-size: 14px; max-width: 320px; line-height: 1.7; }
.ftr h4 { margin: 4px 0 14px; font-size: 11px; letter-spacing: .26em; text-transform: uppercase; color: var(--gold); font-weight: 600; }
.ftr .cols a { display: block; color: var(--muted); font-size: 14px; padding: 5px 0; transition: color .2s, transform .2s; }
.ftr .cols a:hover { color: var(--text); transform: translateX(3px); }
.ftr .base { display: flex; justify-content: space-between; gap: 20px; flex-wrap: wrap; padding: 22px 0 36px; border-top: 1px solid var(--line); color: var(--dim); font-size: 12.5px; }
@media (max-width: 900px) { .ftr .cols { grid-template-columns: 1fr 1fr; } .ftr .about { grid-column: span 2; } }

/* ---------------------------------------------------------------- page header (inner pages) */
.phead { position: relative; padding: 150px 0 60px; overflow: hidden; }
.phead::before { content: ""; position: absolute; inset: 0; background: radial-gradient(900px 420px at 50% 0%, rgba(163, 175, 191, .12), transparent 70%), radial-gradient(700px 400px at 85% 20%, rgba(143, 184, 255, .08), transparent 70%); }
.phead > .wrap { position: relative; }
.phead h1 { font-family: var(--display); font-size: clamp(38px, 6vw, 72px); margin: 14px 0 12px; line-height: 1.02; }
/* QA 2026-10-06 */
[hidden] { display: none !important; }
html { scroll-padding-top: 90px; }
@media (max-width: 760px) {
  input, select, textarea { font-size: 16px !important; }   /* iOS Safari zooms into smaller fields */
  .prose table { display: block !important; overflow-x: auto !important; -webkit-overflow-scrolling: touch; }
  .prose th, .prose td { min-width: 130px; }
}

/* ---- Mu Veyra platinum brand decor (ring + star elements from the logo kit) */
.h2::after { content: ""; display: block; width: min(300px, 70%); height: 34px; margin-top: 14px; opacity: .9;
  background: url(/brand/divider-1.webp?v=1) left center / contain no-repeat; }
.center .h2::after, .sec-head.center .h2::after { margin-left: auto; margin-right: auto; background-position: center; }
.phead > .wrap::after { content: ""; position: absolute; right: -60px; top: -110px; width: 500px; height: 520px; pointer-events: none; z-index: -1;
  background: url(/brand/ring.webp?v=1) center / contain no-repeat; opacity: .22; filter: blur(.3px); }
.ftr > .wrap::before { content: ""; display: block; width: min(420px, 80%); height: 40px; margin: 0 auto 30px;
  background: url(/brand/divider-2.webp?v=1) center / contain no-repeat; opacity: .85; }
@media (max-width: 760px) { .phead > .wrap::after { width: 280px; height: 290px; right: -120px; top: -60px; opacity: .1; } }
