:root {
  color-scheme: dark;
  --bg: #13112a;
  --surface: #1f1c3b;
  --surface-2: #2a2650;
  --text: #f1f0fa;
  --muted: #a9a6c6;
  --accent: #7f77dd;
  --accent-strong: #a99ff0;
  --teal: #8fd3c3;
  --warn: #f2b56b;
  --down: #f08080;
  --line: rgba(255, 255, 255, .08);
  --radius: 14px;
}
* { box-sizing: border-box; }
html { background: var(--bg); scroll-behavior: smooth; }
body { margin: 0; background: var(--bg); color: var(--text);
  font: 16px/1.5 system-ui, -apple-system, "Segoe UI", Roboto, sans-serif; }
a { color: inherit; text-decoration: none; }
p a { color: var(--accent-strong); }
.wrap { max-width: 1180px; margin: 0 auto; padding: 0 20px; }
.muted { color: var(--muted); }
.gap { margin-top: 24px; }

/* header */
header { position: sticky; top: 0; z-index: 10; backdrop-filter: blur(10px);
  background: rgba(19, 17, 42, .82); border-bottom: 1px solid var(--line); }
header .wrap { display: flex; align-items: center; gap: 16px; min-height: 64px; flex-wrap: wrap; }
.brand { display: flex; align-items: center; gap: 10px; font-weight: 700; font-size: 18px; white-space: nowrap; }
.brand img { width: 34px; height: 34px; }
.brand em { color: var(--teal); font-style: normal; }
nav { display: flex; gap: 4px; margin-left: auto; }
nav a { padding: 8px 12px; border-radius: 8px; color: var(--muted); font-size: 14px; }
nav a:hover { background: var(--surface-2); color: var(--text); }
.btn { display: inline-flex; align-items: center; gap: 8px; padding: 10px 18px; border-radius: 10px; border: 0;
  background: var(--accent); color: #fff; font: 600 14px/1.2 inherit; cursor: pointer; }
.btn:hover { background: #8f88e6; }
.btn.ghost { background: transparent; border: 1px solid var(--line); color: var(--text); }
.btn.ghost:hover { background: var(--surface-2); }
.menu, .menu-toggle { display: none; }

/* hero */
.hero { position: relative; overflow: hidden; padding: 96px 0 72px;
  background: linear-gradient(135deg, #2b4d6e, #1b2a3f 40%, #4a2c55); }
.hero .backdrop { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; opacity: .55; }
.hero::after { content: ""; position: absolute; inset: 0; pointer-events: none;
  background: linear-gradient(90deg, var(--bg) 25%, rgba(19, 17, 42, .55) 65%, rgba(19, 17, 42, .8)),
              linear-gradient(180deg, transparent 55%, var(--bg)); }
.hero .wrap { position: relative; z-index: 1; }
.hero .robot { position: absolute; right: 6%; top: 40px; width: 240px; z-index: 1; opacity: .9; }
.hero h1 { font-size: clamp(34px, 5vw, 56px); line-height: 1.1; margin: 0 0 14px; max-width: 640px; }
.hero h1 span { color: var(--accent-strong); }
.hero p { color: var(--muted); max-width: 520px; margin: 0 0 28px; font-size: 18px; }
.now { display: inline-flex; gap: 8px; align-items: center; font-size: 13px; color: var(--teal);
  background: rgba(143, 211, 195, .12); padding: 6px 12px; border-radius: 999px; margin-bottom: 18px; }
.now.warn { color: var(--warn); background: rgba(242, 181, 107, .12); }
.dot { width: 8px; height: 8px; border-radius: 50%; background: currentColor; }

/* tiles */
.tiles { display: grid; grid-template-columns: repeat(auto-fit, minmax(150px, 1fr)); gap: 12px; max-width: 820px; }
.tile { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); padding: 16px;
  display: flex; flex-direction: column; gap: 6px; transition: transform .15s, border-color .15s; }
a.tile:hover { transform: translateY(-2px); border-color: var(--accent); }
.tile b { font-size: 15px; }
.tile small { color: var(--muted); font-size: 12px; }
.ico { width: 34px; height: 34px; flex: none; border-radius: 9px; display: grid; place-items: center;
  background: var(--surface-2); color: var(--accent-strong); font-size: 17px; }
.stats { display: flex; gap: 32px; margin-top: 36px; flex-wrap: wrap; }
.stats b { display: block; font-size: 26px; }
.stats small { color: var(--muted); }

/* sections */
section { padding: 56px 0; }
.head { display: flex; align-items: end; justify-content: space-between; gap: 16px; margin-bottom: 20px; }
.head h1, .head h2 { margin: 0; font-size: 26px; }
.head p { margin: 4px 0 0; color: var(--muted); }
.head > a { color: var(--accent-strong); font-size: 14px; white-space: nowrap; }
.label { font-size: 11px; letter-spacing: .12em; text-transform: uppercase; color: var(--teal); margin: 0 0 8px; }

/* posters */
.row { display: grid; grid-auto-flow: column; grid-auto-columns: minmax(150px, 1fr); gap: 16px;
  overflow-x: auto; padding-bottom: 8px; scroll-snap-type: x mandatory; }
.row .card { scroll-snap-align: start; min-width: 150px; }
.grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(140px, 1fr)); gap: 18px; }
.poster { aspect-ratio: 2/3; border-radius: 10px; position: relative; overflow: hidden;
  background: linear-gradient(160deg, var(--surface-2), var(--surface)); box-shadow: 0 8px 24px rgba(0, 0, 0, .3); }
.poster img { width: 100%; height: 100%; object-fit: cover; display: block; }
.poster .tag { position: absolute; top: 8px; left: 8px; font-size: 11px; font-weight: 600; color: #fff;
  background: rgba(0, 0, 0, .6); padding: 3px 8px; border-radius: 6px; }
.poster .tag.new { left: auto; right: 8px; background: var(--teal); color: var(--bg); }
.card h3 { font-size: 14px; margin: 10px 0 2px; line-height: 1.3; }
.card small { color: var(--muted); font-size: 12px; display: block; }

/* services */
.svc { display: grid; grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); gap: 14px; }
.svc .tile { flex-direction: row; align-items: center; gap: 14px; padding: 18px; }
.svc .tile div { display: flex; flex-direction: column; }
.svc .soon { opacity: .55; border-style: dashed; }
.lock { font-size: 11px; color: var(--teal); margin-left: auto; white-space: nowrap; }

/* community / donate */
.split { display: grid; grid-template-columns: repeat(auto-fit, minmax(320px, 1fr)); gap: 20px; }
.panel { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); padding: 28px; }
.panel h3 { margin: 0 0 6px; font-size: 20px; }
.panel p { color: var(--muted); margin: 0 0 18px; }
.chips { display: flex; flex-wrap: wrap; gap: 8px; margin-bottom: 20px; }
.chip { font-size: 13px; padding: 5px 10px; border-radius: 8px; background: var(--surface-2); color: var(--muted); }
.status { display: grid; gap: 8px; margin: 12px 0 20px; }
.status div { display: flex; justify-content: space-between; font-size: 14px; padding: 9px 12px;
  border-radius: 10px; background: var(--surface-2); }
.status em { font-style: normal; color: var(--teal); display: flex; gap: 6px; align-items: center; }
.status em.down { color: var(--down); }
.why { display: grid; grid-template-columns: repeat(3, 1fr); gap: 10px; margin: 18px 0; }
.why div { background: var(--surface-2); border-radius: 10px; padding: 12px; font-size: 13px; color: var(--muted); }
.why b { display: block; color: var(--text); font-size: 14px; margin-bottom: 2px; }
progress.bar { display: block; width: 100%; height: 10px; margin: 8px 0 6px; border: 0; border-radius: 99px;
  background: var(--surface-2); appearance: none; overflow: hidden; }
progress.bar::-webkit-progress-bar { background: var(--surface-2); }
progress.bar::-webkit-progress-value { background: linear-gradient(90deg, var(--accent), var(--teal)); }
progress.bar::-moz-progress-bar { background: linear-gradient(90deg, var(--accent), var(--teal)); }

/* newsletter */
.news { text-align: center; border: 1px solid var(--line); border-radius: 20px; padding: 48px 24px;
  background: radial-gradient(600px 200px at 50% 0, rgba(127, 119, 221, .25), transparent), var(--surface); }
.news h2 { margin: 0 0 8px; }
.news p { color: var(--muted); margin: 0 auto 22px; max-width: 520px; }
.news form { display: flex; gap: 10px; justify-content: center; flex-wrap: wrap; }
.news small { display: block; margin-top: 12px; color: var(--muted); }
input, select { padding: 11px 13px; border-radius: 10px; border: 1px solid var(--line);
  background: var(--bg); color: var(--text); font: 15px inherit; }
.news input { width: min(340px, 100%); }

/* browse */
.browse { padding-top: 40px; }
.toolbar { display: flex; gap: 10px; flex-wrap: wrap; margin-bottom: 14px; }
.toolbar input { flex: 1; min-width: 200px; background: var(--surface); }
.toolbar select { background: var(--surface); }
.az { display: flex; flex-wrap: wrap; gap: 4px; margin-bottom: 22px; }
.az a { min-width: 30px; height: 30px; padding: 0 6px; display: grid; place-items: center; border-radius: 7px;
  font-size: 13px; color: var(--muted); background: var(--surface); }
.az a:hover { color: var(--text); }
.az a.on { background: var(--accent); color: #fff; }
.pager { display: flex; gap: 16px; align-items: center; justify-content: center; margin-top: 32px; color: var(--muted); }
.empty { color: var(--muted); padding: 40px 0; text-align: center; }

footer { border-top: 1px solid var(--line); padding: 36px 0; color: var(--muted); font-size: 14px; margin-top: 40px; }
footer .wrap { display: flex; justify-content: space-between; gap: 24px; flex-wrap: wrap; }
footer b { color: var(--text); }
footer .links { display: flex; flex-wrap: wrap; gap: 6px 16px; max-width: 640px; }
footer a:hover { color: var(--text); }

@media (max-width: 860px) {
  .menu { display: inline-flex; margin-left: auto; padding: 8px 14px; }
  nav { display: none; order: 9; width: 100%; flex-direction: column; margin: 0 0 12px; }
  .menu-toggle:checked ~ nav { display: flex; }
  .donate { order: 2; }
  .hero { padding: 48px 0; }
  .hero .robot { display: none; }
  .why { grid-template-columns: 1fr; }
  .head { flex-direction: column; align-items: start; }
}
