/* Mu Veyra - site v2 */
:root {
  --bg: #07080a; --bg2: #0c0e12; --card: rgba(255,255,255,.028); --card2: rgba(255,255,255,.045);
  --fg: #eceef2; --muted: #9399a4; --dim: #626874; --line: rgba(255,255,255,.075); --line2: rgba(255,255,255,.12);
  --accent: #cfd4dc; --ok: #7fd18b; --off: #e0705a; --warn: #e6c36a; --exc: #6fd36f; --anc: #3fb4ff; --gold: #e9c46a;
  --plat: linear-gradient(180deg, #fbfcfd 0%, #d9dde4 45%, #a8afbb 100%);
  --radius: 14px; --wrap: 1180px;
  --display: "Cinzel", Georgia, serif; --body: Montserrat, system-ui, -apple-system, "Segoe UI", sans-serif;
}
* { box-sizing: border-box; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
html, body { margin: 0; background: var(--bg); color: var(--fg); font-family: var(--body); -webkit-font-smoothing: antialiased; }
body { min-height: 100vh; display: flex; flex-direction: column; overflow-x: hidden; }
main { flex: 1; }
a { color: inherit; }
img { max-width: 100%; }
.wrap { width: min(var(--wrap), 100% - 40px); margin: 0 auto; }
::selection { background: rgba(207,212,220,.25); }

/* ---------- header ---------- */
.hdr { position: sticky; top: 0; z-index: 50; background: rgba(7,8,10,.78); backdrop-filter: blur(16px) saturate(1.2); -webkit-backdrop-filter: blur(16px) saturate(1.2); border-bottom: 1px solid var(--line); }
.hdr.over { position: fixed; inset: 0 0 auto 0; background: transparent; border-color: transparent; backdrop-filter: none; -webkit-backdrop-filter: none; transition: background .3s, border-color .3s; }
.hdr.over.solid { background: rgba(7,8,10,.82); border-color: var(--line); backdrop-filter: blur(16px); -webkit-backdrop-filter: blur(16px); }
.hdr .wrap { display: flex; align-items: center; gap: 22px; height: 66px; }
.hdr .brand { display: flex; align-items: center; flex: none; }
.hdr .brand img { height: 34px; width: auto; display: block; }
.hdr nav { display: flex; gap: 4px; margin-left: 10px; }
.hdr nav a { position: relative; padding: 8px 12px; border-radius: 8px; text-decoration: none; color: var(--muted); font-size: 12px; font-weight: 600; letter-spacing: .08em; text-transform: uppercase; transition: color .2s, background .2s; white-space: nowrap; }
.hdr nav a:hover { color: var(--fg); background: rgba(255,255,255,.04); }
.hdr nav a.on { color: var(--fg); }
.hdr nav a.on::after { content: ""; position: absolute; left: 12px; right: 12px; bottom: 2px; height: 1px; background: var(--plat); }
.hdr .side { margin-left: auto; display: flex; align-items: center; gap: 10px; }
.status-pill { display: inline-flex; align-items: center; gap: 8px; padding: 7px 12px; border: 1px solid var(--line); border-radius: 99px; font-size: 12px; color: var(--muted); white-space: nowrap; text-decoration: none; }
.status-pill b { color: var(--fg); font-variant-numeric: tabular-nums; }
.dot { display: inline-block; width: 8px; height: 8px; border-radius: 50%; background: var(--dim); flex: none; }
.dot.on { background: var(--ok); box-shadow: 0 0 10px var(--ok); animation: pulse 2.4s ease-in-out infinite; }
.dot.off { background: var(--off); }
@keyframes pulse { 50% { box-shadow: 0 0 2px var(--ok); } }
.burger { display: none; width: 42px; height: 42px; border: 1px solid var(--line); border-radius: 10px; background: transparent; color: var(--fg); cursor: pointer; }
.burger span { display: block; width: 18px; height: 1.5px; background: currentColor; margin: 4px auto; transition: transform .25s, opacity .25s; }
.menu-open .burger span:nth-child(1) { transform: translateY(5.5px) rotate(45deg); }
.menu-open .burger span:nth-child(2) { opacity: 0; }
.menu-open .burger span:nth-child(3) { transform: translateY(-5.5px) rotate(-45deg); }
.drawer { display: none; }
@media (max-width: 1080px) {
  .hdr nav { display: none; }
  .burger { display: block; }
  .hdr .status-pill .lbl { display: none; }
  .drawer { display: block; position: fixed; inset: 66px 0 0 0; z-index: 49; background: rgba(7,8,10,.97); backdrop-filter: blur(10px); padding: 18px 20px 40px; transform: translateY(-8px); opacity: 0; pointer-events: none; transition: opacity .2s, transform .2s; overflow-y: auto; }
  .menu-open .drawer { opacity: 1; transform: none; pointer-events: auto; }
  .drawer a { display: flex; justify-content: space-between; padding: 16px 4px; border-bottom: 1px solid var(--line); text-decoration: none; font-weight: 600; font-size: 15px; }
  .drawer a.on { color: var(--fg); } .drawer a:not(.on) { color: #c3c8d1; }
  .drawer .acts { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; margin-top: 22px; }
  .drawer .acts .btn { text-align: center; }
}
@media (max-width: 520px) { .hdr .side .btn.ghost { display: none; } .hdr .wrap { gap: 12px; } }

/* ---------- buttons ---------- */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 8px; padding: 13px 26px; border-radius: 10px; border: 1px solid rgba(207,212,220,.4); background: transparent; color: var(--fg); text-decoration: none; cursor: pointer;
       font: 600 12px/1 var(--body); letter-spacing: .14em; text-transform: uppercase; transition: filter .2s, transform .2s, border-color .2s, background .2s; white-space: nowrap; }
.btn:hover { transform: translateY(-1px); border-color: var(--accent); background: rgba(255,255,255,.03); }
.btn.primary { background: var(--plat); color: #0a0b0d; border-color: transparent; box-shadow: 0 10px 36px rgba(210,216,226,.14); }
.btn.primary:hover { filter: brightness(1.06); }
.btn.small { padding: 10px 16px; font-size: 11px; }
.btn.ghost { border-color: var(--line2); }
.btn[disabled] { opacity: .5; pointer-events: none; }
.link { color: var(--fg); text-decoration: none; border-bottom: 1px solid var(--line2); transition: border-color .2s; }
.link:hover { border-color: var(--accent); }

/* ---------- page header ---------- */
.phead { position: relative; padding: 64px 0 34px; overflow: hidden; border-bottom: 1px solid var(--line); }
.phead::before { content: ""; position: absolute; inset: 0; background: url(/brand/hero2.webp?v=1) center 30% / cover; opacity: .14; }
.phead::after { content: ""; position: absolute; inset: 0; background: linear-gradient(180deg, rgba(7,8,10,.3), var(--bg)); }
.phead .wrap { position: relative; z-index: 1; }
.eyebrow { font-size: 11px; font-weight: 600; letter-spacing: .3em; text-transform: uppercase; color: var(--dim); }
h1, h2, h3 { font-weight: 600; }
.phead h1 { font-family: var(--display); font-size: clamp(32px, 5vw, 52px); margin: 10px 0 10px; letter-spacing: .01em; line-height: 1.08; }
.phead p { color: var(--muted); max-width: 640px; margin: 0; line-height: 1.7; font-size: 15px; }
h2.t { font-family: var(--display); font-size: clamp(26px, 3.4vw, 36px); margin: 10px 0 14px; letter-spacing: .01em; line-height: 1.15; }
.lead { color: var(--muted); font-size: 15px; line-height: 1.75; max-width: 600px; margin: 0; }
section.s { padding: 72px 0 0; }
.muted { color: var(--muted); } .dim { color: var(--dim); }

/* ---------- cards / grid ---------- */
.card { background: var(--card); border: 1px solid var(--line); border-radius: var(--radius); padding: 24px; }
.card.hover { transition: border-color .2s, transform .2s, background .2s; }
.card.hover:hover { border-color: var(--line2); background: var(--card2); transform: translateY(-2px); }
.card h3 { margin: 0 0 8px; font-size: 16px; }
.card p { margin: 0; color: var(--muted); font-size: 14px; line-height: 1.7; }
.grid { display: grid; gap: 16px; }
.g2 { grid-template-columns: repeat(2, 1fr); } .g3 { grid-template-columns: repeat(3, 1fr); } .g4 { grid-template-columns: repeat(4, 1fr); }
@media (max-width: 900px) { .g3, .g4 { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 620px) { .g2, .g3, .g4 { grid-template-columns: 1fr; } }
.ic { width: 40px; height: 40px; border-radius: 10px; display: grid; place-items: center; border: 1px solid var(--line2); background: rgba(255,255,255,.03); margin-bottom: 16px; }
.ic svg { width: 20px; height: 20px; stroke: var(--accent); fill: none; stroke-width: 1.6; stroke-linecap: round; stroke-linejoin: round; }

/* ---------- stats strip ---------- */
.stats { display: grid; grid-template-columns: repeat(4, 1fr); border: 1px solid var(--line); border-radius: var(--radius); background: var(--card); overflow: hidden; }
.stats > div { padding: 20px 22px; }
.stats > div + div { border-left: 1px solid var(--line); }
.stats .k { font-size: 11px; letter-spacing: .16em; text-transform: uppercase; color: var(--dim); font-weight: 600; }
.stats .v { font-size: 26px; font-weight: 600; margin-top: 6px; font-variant-numeric: tabular-nums; }
@media (max-width: 720px) { .stats { grid-template-columns: 1fr 1fr; } .stats > div:nth-child(3) { border-left: 0; } .stats > div:nth-child(n+3) { border-top: 1px solid var(--line); } }

/* ---------- tables ---------- */
.tbl-wrap { overflow-x: auto; border: 1px solid var(--line); border-radius: var(--radius); background: var(--card); -webkit-overflow-scrolling: touch; }
table { width: 100%; border-collapse: collapse; font-size: 14px; }
th { text-align: left; font-size: 11px; letter-spacing: .14em; text-transform: uppercase; color: var(--dim); font-weight: 600; padding: 14px 14px; border-bottom: 1px solid var(--line); white-space: nowrap; }
td { padding: 13px 14px; border-bottom: 1px solid var(--line); white-space: nowrap; }
tbody tr:last-child td { border-bottom: 0; }
tbody tr { transition: background .15s; }
tbody tr:hover { background: rgba(255,255,255,.025); }
td.r { width: 56px; color: var(--dim); font-weight: 600; font-variant-numeric: tabular-nums; }
tbody tr:nth-child(1) td.r { color: var(--gold); } tbody tr:nth-child(2) td.r { color: #d7dce4; } tbody tr:nth-child(3) td.r { color: #d69a6a; }
.num { text-align: right; font-variant-numeric: tabular-nums; }
td a.nm { text-decoration: none; font-weight: 600; }
td a.nm:hover { text-decoration: underline; text-underline-offset: 3px; }
.empty { padding: 34px; text-align: center; color: var(--muted); }

/* ---------- tabs / chips ---------- */
.tabs { display: flex; gap: 6px; flex-wrap: wrap; margin: 26px 0 16px; }
.tab { padding: 9px 15px; border-radius: 99px; border: 1px solid var(--line); background: transparent; color: var(--muted); font: 600 12px var(--body); letter-spacing: .06em; cursor: pointer; transition: all .2s; text-decoration: none; }
.tab:hover { color: var(--fg); border-color: var(--line2); }
.tab.on { background: var(--plat); color: #0a0b0d; border-color: transparent; }
.chips { display: flex; gap: 6px; flex-wrap: wrap; }
.chip { padding: 6px 11px; border-radius: 99px; border: 1px solid var(--line); background: transparent; color: var(--muted); font: 600 11px var(--body); cursor: pointer; }
.chip.on { color: var(--fg); border-color: var(--accent); background: rgba(255,255,255,.04); }
.badge { display: inline-flex; align-items: center; gap: 6px; font-size: 10px; font-weight: 700; letter-spacing: .12em; text-transform: uppercase; padding: 4px 8px; border-radius: 99px; border: 1px solid var(--line2); color: var(--muted); vertical-align: middle; }
.badge.live { color: var(--ok); border-color: rgba(127,209,139,.35); }
.badge.ai { color: #9fb3ff; border-color: rgba(159,179,255,.3); }
.badge.soon { color: var(--warn); border-color: rgba(230,195,106,.35); }

/* class tag */
.cls { display: inline-flex; align-items: center; gap: 8px; color: var(--muted); }
.cls i { width: 22px; height: 22px; border-radius: 6px; display: grid; place-items: center; font-style: normal; font-size: 9px; font-weight: 700; color: #0a0b0d; letter-spacing: .02em; }

/* ---------- forms ---------- */
.field { display: grid; gap: 7px; margin-bottom: 16px; }
.field label { font-size: 11px; letter-spacing: .14em; text-transform: uppercase; color: var(--dim); font-weight: 600; }
input, select, textarea { width: 100%; padding: 13px 14px; border-radius: 10px; border: 1px solid var(--line2); background: rgba(255,255,255,.03); color: var(--fg); font: 15px var(--body); outline: none; transition: border-color .2s, background .2s; }
input:focus, select:focus, textarea:focus { border-color: var(--accent); background: rgba(255,255,255,.05); }
textarea { min-height: 140px; resize: vertical; }
select option { background: #111318; }
.hint { font-size: 12px; color: var(--dim); }
.msg { padding: 12px 14px; border-radius: 10px; font-size: 14px; margin-bottom: 16px; display: none; }
.msg.err { display: block; background: rgba(224,112,90,.08); border: 1px solid rgba(224,112,90,.3); color: #f0a291; }
.msg.ok { display: block; background: rgba(127,209,139,.08); border: 1px solid rgba(127,209,139,.3); color: #a6e3b0; }
.hp { position: absolute; left: -9999px; }

/* ---------- prose ---------- */
.prose { max-width: 820px; color: #c9cdd5; font-size: 15px; line-height: 1.8; }
.prose h2 { font-family: var(--display); font-size: 26px; color: var(--fg); margin: 46px 0 12px; }
.prose h3 { color: var(--fg); font-size: 17px; margin: 30px 0 8px; }
.prose ul, .prose ol { padding-left: 20px; } .prose li { margin: 4px 0; }
.prose code, code.k { background: rgba(255,255,255,.06); border: 1px solid var(--line); padding: 2px 7px; border-radius: 6px; font-size: 13px; color: var(--fg); }
.prose table { margin: 14px 0; border: 1px solid var(--line); border-radius: 10px; overflow: hidden; }
.toc { position: sticky; top: 90px; display: grid; gap: 2px; }
.toc a { padding: 8px 12px; border-radius: 8px; text-decoration: none; color: var(--muted); font-size: 13px; font-weight: 500; border-left: 2px solid transparent; }
.toc a:hover { color: var(--fg); background: rgba(255,255,255,.03); }
.toc a.on { color: var(--fg); border-left-color: var(--accent); background: rgba(255,255,255,.03); }
.doc { display: grid; grid-template-columns: 230px 1fr; gap: 50px; padding-top: 40px; }
@media (max-width: 860px) { .doc { grid-template-columns: 1fr; gap: 10px; } .toc { position: static; display: flex; flex-wrap: wrap; gap: 6px; } .toc a { border: 1px solid var(--line); border-radius: 99px; padding: 7px 12px; } }

/* ---------- details / faq ---------- */
details.q { border-bottom: 1px solid var(--line); }
details.q summary { cursor: pointer; padding: 18px 0; font-weight: 600; font-size: 15px; list-style: none; display: flex; justify-content: space-between; gap: 16px; }
details.q summary::-webkit-details-marker { display: none; }
details.q summary::after { content: "+"; color: var(--dim); font-weight: 400; font-size: 20px; line-height: 1; transition: transform .2s; }
details.q[open] summary::after { transform: rotate(45deg); }
details.q p { margin: 0 0 18px; color: var(--muted); font-size: 14px; line-height: 1.75; }

/* ---------- footer ---------- */
.ftr { margin-top: 100px; border-top: 1px solid var(--line); background: linear-gradient(180deg, rgba(255,255,255,.012), transparent); }
.ftr .cols { display: grid; grid-template-columns: 1.4fr repeat(4, 1fr); gap: 30px; padding: 50px 0 30px; }
.ftr h4 { margin: 0 0 14px; font-size: 11px; letter-spacing: .2em; text-transform: uppercase; color: var(--dim); }
.ftr a { display: block; color: var(--muted); text-decoration: none; font-size: 14px; padding: 5px 0; }
.ftr a:hover { color: var(--fg); }
.ftr .about img { height: 30px; margin-bottom: 14px; }
.ftr .about p { color: var(--dim); font-size: 13px; line-height: 1.7; margin: 0; max-width: 300px; }
.ftr .base { border-top: 1px solid var(--line); padding: 18px 0 30px; display: flex; flex-wrap: wrap; gap: 10px 24px; justify-content: space-between; color: var(--dim); font-size: 12px; }
@media (max-width: 860px) { .ftr .cols { grid-template-columns: 1fr 1fr; } .ftr .about { grid-column: 1 / -1; } }

/* ---------- misc ---------- */
.reveal { opacity: 0; transform: translateY(16px); transition: opacity .7s ease, transform .7s ease; }
.reveal.in { opacity: 1; transform: none; }
@media (prefers-reduced-motion: reduce) { .reveal { opacity: 1; transform: none; transition: none; } html { scroll-behavior: auto; } }
.row { display: flex; align-items: center; gap: 12px; flex-wrap: wrap; }
.spacer { flex: 1; }
.skel { background: linear-gradient(90deg, rgba(255,255,255,.03), rgba(255,255,255,.07), rgba(255,255,255,.03)); background-size: 200% 100%; animation: sk 1.2s linear infinite; border-radius: 8px; height: 14px; }
@keyframes sk { to { background-position: -200% 0; } }
.glogo { width: 24px; height: 24px; image-rendering: pixelated; border-radius: 4px; vertical-align: middle; background: #000; }
.search { position: relative; max-width: 320px; flex: 1; }
.search input { padding-left: 38px; }
.search svg { position: absolute; left: 13px; top: 50%; transform: translateY(-50%); width: 16px; height: 16px; stroke: var(--dim); fill: none; stroke-width: 2; }
.kbd { font-family: ui-monospace, SFMono-Regular, Menlo, monospace; }
.toast { position: fixed; left: 50%; bottom: 24px; transform: translate(-50%, 20px); opacity: 0; background: #15181d; border: 1px solid var(--line2); padding: 12px 18px; border-radius: 10px; font-size: 14px; transition: all .25s; z-index: 100; }
.toast.show { opacity: 1; transform: translate(-50%, 0); }
/* elementele din grile nu se mai latesc dupa tabele (overflow pe telefon) */
.grid > *, .two > *, .news > *, .prof > *, .panel > *, .sup > *, .big > *, .doc > *, .auth > * { min-width: 0; }
html { overflow-x: clip; }
/* accent platinum pe tot site-ul */
:root { --ember: #dfe3ea; }
.eyebrow { color: #9aa3b2; }
.phead h1, h2.t { background: linear-gradient(180deg, #ffffff 0%, #e4e8ee 50%, #a9b0bc 100%); -webkit-background-clip: text; background-clip: text; color: transparent; }
.phead::before { opacity: .2; }
.toc a.on { border-left-color: var(--accent); }

