/* DACIAN QUANTUM - presentation site (static, no trackers, no external requests) */
:root {
  --bg: #0b0f17;
  --panel: #121826;
  --panel2: #182033;
  --border: #243049;
  --text: #e6ebf5;
  --muted: #8b97b0;
  --gold: #d4a63a;
  --gold2: #f0c75e;
  --blue: #6ea2ff;
  --green: #2fbf71;
  --red: #e5534b;
  --orange: #e8913a;
  --mono: ui-monospace, "Cascadia Code", Consolas, monospace;
  color-scheme: dark;
}
* { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: 72px; }
body { margin: 0; background: var(--bg); color: var(--text);
  font: 16px/1.65 "Segoe UI", system-ui, -apple-system, Roboto, sans-serif; }
a { color: var(--blue); }
code, .mono { font-family: var(--mono); font-size: .9em; }
h1, h2, h3 { line-height: 1.25; margin: 0 0 .5em; }
h2 { font-size: 1.7rem; }
h3 { font-size: 1.15rem; }
p { margin: 0 0 1em; }

/* top bar */
.top { position: sticky; top: 0; z-index: 10; display: flex; align-items: center; gap: 18px;
  padding: 10px 24px; background: rgba(11, 15, 23, .92); backdrop-filter: blur(8px);
  border-bottom: 1px solid var(--border); flex-wrap: wrap; }
.brand { display: flex; align-items: center; gap: 10px; font-weight: 800; letter-spacing: .5px;
  color: var(--text); text-decoration: none; }
.logo { width: 34px; height: 34px; border-radius: 9px; display: grid; place-items: center;
  background: radial-gradient(circle at 30% 30%, var(--gold2), #8a6417); color: #1a1205; font-weight: 900; }
.brand small { display: block; font-weight: 400; color: var(--muted); font-size: 11px; letter-spacing: 0; }
.top nav { display: flex; gap: 16px; flex-wrap: wrap; flex: 1; }
.top nav a { color: var(--muted); text-decoration: none; font-size: 14px; }
.top nav a:hover { color: var(--gold2); }
.lang { display: flex; gap: 6px; }
.lang a { padding: 3px 10px; border: 1px solid var(--border); border-radius: 99px; font-size: 13px;
  color: var(--muted); text-decoration: none; }
.lang a.on { border-color: var(--gold); color: var(--gold2); }

/* status banner */
.status { background: #2a1f0b; border-bottom: 1px solid #5c4314; color: #f5d68c; text-align: center;
  padding: 8px 16px; font-size: 14px; }
.status b { color: var(--gold2); }

/* layout */
.wrap { max-width: 1080px; margin: 0 auto; padding: 0 24px; }
section { padding: 64px 0; border-bottom: 1px solid var(--border); }
.lead { font-size: 1.15rem; color: #c9d2e6; max-width: 760px; }
.muted { color: var(--muted); }
.grid { display: grid; gap: 18px; }
.g2 { grid-template-columns: repeat(auto-fit, minmax(300px, 1fr)); }
.g3 { grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); }
.card { background: var(--panel); border: 1px solid var(--border); border-radius: 14px; padding: 20px; }
.card h3 { color: var(--gold2); }
.card p:last-child, .card ul:last-child { margin-bottom: 0; }

/* hero */
.hero { padding: 88px 0 72px; background: radial-gradient(ellipse at 70% 0%, #1d2740 0%, transparent 60%); }
.hero h1 { font-size: clamp(2.2rem, 5vw, 3.4rem); letter-spacing: .5px; }
.hero h1 span { color: var(--gold2); }
.tagline { color: var(--gold); font-style: italic; margin-bottom: 1.2em; }
.badges { display: flex; gap: 10px; flex-wrap: wrap; margin-top: 24px; }
.badge { padding: 5px 12px; border-radius: 99px; border: 1px solid var(--border); background: var(--panel2);
  font-size: 13px; }
.badge.test { border-color: var(--orange); color: var(--orange); font-weight: 700; }

/* numbers */
.stat { text-align: center; }
.stat .v { font-size: 1.8rem; font-weight: 800; color: var(--gold2); }
.stat .l { color: var(--muted); font-size: 14px; }

/* tables */
table { width: 100%; border-collapse: collapse; font-size: 15px; }
th, td { text-align: left; padding: 9px 10px; border-bottom: 1px solid var(--border); vertical-align: top; }
th { color: var(--muted); font-weight: 600; }
.tablewrap { overflow-x: auto; }

/* lists */
ul, ol { padding-left: 1.3em; margin: 0 0 1em; }
li { margin-bottom: .35em; }
.do li::marker { content: "✓  "; color: var(--green); }
.dont li::marker { content: "✗  "; color: var(--red); }

/* callouts */
.callout { border-left: 4px solid var(--gold); background: var(--panel2); padding: 14px 18px; border-radius: 8px;
  margin: 18px 0; }
.callout.warn { border-color: var(--orange); }
.callout.bad { border-color: var(--red); }
.callout.good { border-color: var(--green); }
.big-rule { font-size: 1.25rem; font-weight: 700; color: #ffd9a8; }

/* steps */
.steps { counter-reset: s; list-style: none; padding: 0; }
.steps li { counter-increment: s; position: relative; padding-left: 46px; margin-bottom: 16px; }
.steps li::before { content: counter(s); position: absolute; left: 0; top: 0; width: 32px; height: 32px;
  border-radius: 50%; background: var(--panel2); border: 1px solid var(--gold); color: var(--gold2);
  display: grid; place-items: center; font-weight: 700; font-size: 14px; }

/* faq */
details { background: var(--panel); border: 1px solid var(--border); border-radius: 10px; padding: 14px 18px;
  margin-bottom: 10px; }
summary { cursor: pointer; font-weight: 600; }
details[open] summary { color: var(--gold2); margin-bottom: 8px; }

footer { padding: 36px 0 48px; color: var(--muted); font-size: 14px; }
footer .disclaimer { border: 1px solid var(--border); border-radius: 10px; padding: 14px 18px; margin-bottom: 18px; }

@media (max-width: 720px) {
  body { font-size: 15px; }
  .top { padding: 10px 14px; gap: 10px; }
  .top nav { order: 3; flex: 0 0 100%; gap: 12px; overflow-x: auto; flex-wrap: nowrap; padding-bottom: 4px; }
  .top nav a { white-space: nowrap; }
  .wrap { padding: 0 16px; }
  section { padding: 44px 0; }
  .hero { padding: 56px 0 44px; }
}

/* logo */
.logo-img { width: 40px; height: 40px; border-radius: 50%; display: block; }
.hero-grid { display: grid; grid-template-columns: 1.2fr 1fr; gap: 40px; align-items: center; }
.hero-coin { width: 100%; max-width: 440px; height: auto; justify-self: center; border-radius: 50%;
  filter: drop-shadow(0 0 40px rgba(240, 199, 94, .25)); }
@media (max-width: 820px) {
  .hero-grid { grid-template-columns: 1fr; gap: 28px; }
  .hero-coin { max-width: 300px; order: -1; }
}
pre { background: #070a10; border: 1px solid var(--border); border-radius: 8px; padding: 10px 14px; overflow-x: auto; margin: 0 0 1em; }
pre code { font-size: 14px; color: #f0d79a; }

/* live mining counter (hero) */
.live { margin-top: 22px; padding: 14px 18px; border: 1px solid var(--border); border-radius: 12px;
  background: var(--panel2); max-width: 560px; }
.live[hidden] { display: none; }
.live .row { display: flex; justify-content: space-between; align-items: baseline; gap: 12px; flex-wrap: wrap; }
.live .lbl { font-size: .85rem; color: var(--muted, #9aa4b2); }
.live .dot { display: inline-block; width: 8px; height: 8px; border-radius: 50%; background: #2ecc71;
  margin-right: 6px; box-shadow: 0 0 6px #2ecc71; }
.live .big { font-size: 1.5rem; font-weight: 800; color: var(--gold2); }
.live .big small { font-size: .9rem; font-weight: 500; color: var(--muted, #9aa4b2); }
.live .track { height: 8px; border-radius: 99px; background: rgba(255,255,255,.08); margin: 10px 0 6px; overflow: hidden; }
.live .fill { height: 100%; width: 0; background: linear-gradient(90deg, var(--gold), var(--gold2)); border-radius: 99px;
  transition: width .6s ease; }

/* language menu (details/summary, works without JavaScript) */
details.lang { position: relative; background: none; border: 0; padding: 0; border-radius: 0; }
details.lang summary { list-style: none; cursor: pointer; padding: 4px 12px; border: 1px solid var(--gold);
  border-radius: 99px; font-size: 13px; color: var(--gold2); user-select: none; white-space: nowrap; }
details.lang summary::-webkit-details-marker { display: none; }
details.lang summary::after { content: " ▾"; }
details.lang .langs { position: absolute; right: 0; top: calc(100% + 8px); z-index: 20; display: grid;
  grid-template-columns: repeat(2, minmax(150px, 1fr)); gap: 2px 18px; padding: 12px 16px;
  background: var(--panel2); border: 1px solid var(--border); border-radius: 12px;
  box-shadow: 0 12px 30px rgba(0,0,0,.45); max-height: 75vh; overflow-y: auto; }
details.lang .langs a { color: var(--muted); text-decoration: none; font-size: 14px; padding: 6px 6px;
  border: 0; border-radius: 6px; white-space: nowrap; }
details.lang .langs a:hover { color: var(--gold2); background: rgba(255,255,255,.04); }
details.lang .langs a.on { color: var(--gold2); font-weight: 700; border: 0; }
[dir="rtl"] details.lang .langs { right: auto; left: 0; }
[dir="rtl"] .callout { border-left: 0; border-right: 4px solid var(--gold); }
@media (max-width: 600px) { details.lang .langs { grid-template-columns: 1fr 1fr; right: -12px; } }
/* Latin-script slogan inside right-to-left pages keeps its own direction (period at the end) */
[dir="rtl"] .tagline, [dir="rtl"] .brand small { direction: ltr; unicode-bidi: isolate; text-align: right; }

/* link to the project's X account (header icon + footer) */
.xlink { display: inline-grid; place-items: center; width: 32px; height: 32px; border: 1px solid var(--border);
  border-radius: 50%; color: var(--muted); margin-inline-end: 8px; }
.xlink:hover { color: var(--gold2); border-color: var(--gold); }
.top > nav + .xlink { margin-inline-start: auto; }
footer .social { display: flex; flex-wrap: wrap; gap: 10px 24px; }
footer .social a { display: inline-flex; align-items: center; gap: 8px; color: var(--gold2); text-decoration: none; }
footer .social a:hover { text-decoration: underline; }

/* white paper */
.paper h1 { font-size: 2.3rem; line-height: 1.15; margin: 44px 0 10px; }
.paper h1 span { color: var(--gold2); }
.paper section { padding: 34px 0; }
.paper ul { padding-left: 1.3em; margin-bottom: 1em; }
.paper li { margin-bottom: .45em; }
.paper h3 { margin: 1.2em 0 .5em; color: var(--gold2); }
.paper .tablewrap { margin-bottom: 1em; }
.top nav a.wp { color: var(--gold2); font-weight: 600; }

/* main menu with drop-down groups: opens on hover / keyboard on a computer, on tap on a phone */
.top nav.mainnav { align-items: center; gap: 2px; }
.mainnav > a, .ddb { color: var(--muted); font: inherit; font-size: 14px; background: none; border: 0;
  padding: 6px 10px; border-radius: 8px; cursor: pointer; text-decoration: none; white-space: nowrap; }
.top .mainnav > a:hover, .ddb:hover, .dd.open > .ddb { color: var(--gold2); }
.ddb::after { content: ""; display: inline-block; width: 6px; height: 6px; margin-inline-start: 8px;
  border-right: 1.5px solid currentColor; border-bottom: 1.5px solid currentColor;
  transform: translateY(-3px) rotate(45deg); transition: transform .15s; }
.dd { position: relative; }
.ddm { position: absolute; top: 100%; inset-inline-start: 0; z-index: 30; min-width: 220px; padding: 6px;
  background: var(--panel2); border: 1px solid var(--border); border-radius: 12px;
  box-shadow: 0 12px 30px rgba(0,0,0,.45); opacity: 0; visibility: hidden; transform: translateY(4px);
  transition: opacity .12s .15s, transform .12s .15s, visibility 0s .27s; }
.top .ddm a { display: block; padding: 8px 12px; border-radius: 8px; color: var(--text); font-size: 14px;
  text-decoration: none; white-space: nowrap; }
.top .ddm a:hover, .top .ddm a:focus-visible { background: rgba(255,255,255,.06); color: var(--gold2); }
.dd.open > .ddm { opacity: 1; visibility: visible; transform: none; transition-delay: 0s; }
.dd.open > .ddb::after { transform: translateY(1px) rotate(225deg); }
@media (hover: hover) and (min-width: 721px) {
  .dd:hover > .ddm, .dd:has(:focus-visible) > .ddm { opacity: 1; visibility: visible; transform: none; transition-delay: 0s; }
  .dd:hover > .ddb { color: var(--gold2); }
  .dd:hover > .ddb::after, .dd:has(:focus-visible) > .ddb::after { transform: translateY(1px) rotate(225deg); }
}
.burger { display: none; }
@media (max-width: 720px) {
  .js .burger { display: inline-grid; place-items: center; width: 38px; height: 38px; padding: 0;
    border: 1px solid var(--border); border-radius: 10px; background: none; color: var(--text); cursor: pointer; }
  .burger span, .burger span::before, .burger span::after { display: block; width: 18px; height: 2px;
    background: currentColor; border-radius: 2px; position: relative; content: ""; }
  .burger span::before { position: absolute; top: -6px; } .burger span::after { position: absolute; top: 6px; }
  .top.nav-open .burger { border-color: var(--gold); color: var(--gold2); }
  .top nav.mainnav { flex-direction: column; align-items: stretch; flex-wrap: nowrap; overflow: visible;
    gap: 0; padding: 4px 0 8px; }
  .js .top nav.mainnav { display: none; }
  .js .top.nav-open nav.mainnav { display: flex; }
  .top .mainnav > a, .ddb { display: block; width: 100%; text-align: start; padding: 12px 6px; font-size: 16px;
    border-radius: 0; border-bottom: 1px solid var(--border); color: var(--text); }
  .ddb::after { float: inline-end; margin-top: 10px; }
  .ddm { position: static; display: none; opacity: 1; visibility: visible; transform: none; transition: none;
    min-width: 0; background: none; border: 0; box-shadow: none; padding: 4px 0 8px 14px; }
  html:not(.js) .ddm, .dd.open > .ddm { display: block; }
  .top .ddm a { font-size: 15px; color: var(--muted); }
}
@media (max-width: 720px) {
  .js .top > .xlink { display: none; }   /* X and TikTok are in the "Participă" menu and the footer */
  .js details.lang { margin-inline-start: auto; }
}
@media (max-width: 440px) {
  .js .top { gap: 8px; }
  .js .top .brand small { display: none; }   /* keeps logo, language and menu button on one row */
  .js .top .brand { font-size: 14px; letter-spacing: .2px; flex: 1 1 0; min-width: 0; }
  .js .top .brand > span { min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
  .js details.lang summary { position: relative; max-width: 94px; overflow: hidden; text-overflow: ellipsis;
    padding-inline-end: 22px; }
  .js details.lang summary::after { position: absolute; inset-inline-end: 9px; }
}
