/* cheerquake.live: the same colours as the app (src/renderer/styles.css). Logical properties only, so the Arabic
   pages (dir="rtl") mirror by themselves. */
:root {
  color-scheme: dark;
  --bg: #0e0e13;
  --bg-2: #121219;
  --panel: #17171f;
  --panel-2: #1d1d27;
  --border: #272733;
  --border-2: #343443;
  --text: #f2f2f7;
  --text-2: #b9b9c8;
  --muted: #80809a;
  --accent: #fe2c55;
  --accent-hover: #ff4b70;
  --accent-soft: rgba(254, 44, 85, 0.14);
  --cyan: #25f4ee;
  --radius: 16px;
  --wrap: 1080px;
  --font: "Segoe UI", system-ui, -apple-system, Roboto, "Helvetica Neue", Arial, sans-serif;
}
:lang(ar) { --font: "Segoe UI", Tahoma, "Noto Sans Arabic", "Geeza Pro", Arial, sans-serif; }

* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font: 16px/1.65 var(--font);
  overflow-x: hidden;
}
:lang(ar) body { line-height: 1.85; }
img { max-width: 100%; display: block; }
a { color: var(--accent-hover); text-decoration: none; }
a:hover { text-decoration: underline; }
.ltr { direction: ltr; unicode-bidi: isolate; display: inline-block; }
.wrap { max-width: var(--wrap); margin: 0 auto; padding-inline: 20px; }

/* Header */
.top { position: sticky; top: 0; z-index: 5; background: rgba(14, 14, 19, 0.86); backdrop-filter: blur(10px); border-block-end: 1px solid var(--border); }
.top .wrap { display: flex; align-items: center; gap: 18px; min-height: 64px; }
.brand { display: flex; align-items: center; gap: 10px; color: var(--text); font-weight: 700; font-size: 19px; }
.brand:hover { text-decoration: none; }
.brand img { width: 34px; height: 34px; border-radius: 9px; }
.nav { display: flex; gap: 6px; margin-inline-start: auto; flex-wrap: wrap; justify-content: flex-end; }
.nav a { color: var(--text-2); padding: 6px 10px; border-radius: 9px; font-size: 15px; }
.nav a:hover { color: var(--text); background: var(--panel-2); text-decoration: none; }
.nav a.lang { border: 1px solid var(--border-2); color: var(--text); }

/* Hero */
/* The hero spans the whole width and clips its glow, so the glow fades out on its own and never widens the page. */
.hero { position: relative; overflow: hidden; isolation: isolate; padding: 72px 0 40px; text-align: center; }
.hero::before {
  content: ""; position: absolute; inset: 0; z-index: -1; pointer-events: none;
  background: radial-gradient(620px 320px at 40% 18%, rgba(254, 44, 85, 0.22), transparent 70%),
              radial-gradient(560px 300px at 60% 30%, rgba(37, 244, 238, 0.12), transparent 70%);
}
.badge { display: inline-block; padding: 5px 14px; border-radius: 999px; background: var(--accent-soft); color: var(--accent-hover); font-weight: 600; font-size: 14px; }
h1 { font-size: clamp(34px, 6vw, 58px); line-height: 1.12; margin: 18px auto 16px; max-width: 820px; letter-spacing: -0.02em; }
:lang(ar) h1 { letter-spacing: 0; line-height: 1.3; }
h1 em { font-style: normal; color: var(--accent); }
.lead { font-size: clamp(17px, 2.2vw, 20px); color: var(--text-2); max-width: 720px; margin: 0 auto; }
.cta { display: flex; gap: 12px; justify-content: center; flex-wrap: wrap; margin-top: 28px; }
.btn { display: inline-flex; align-items: center; gap: 8px; padding: 12px 22px; border-radius: 12px; font-weight: 600; font-size: 16px; border: 1px solid transparent; }
.btn:hover { text-decoration: none; }
.btn.primary { background: var(--accent); color: #fff; }
.btn.primary:hover { background: var(--accent-hover); }
.btn.ghost { border-color: var(--border-2); color: var(--text); }
.btn.ghost:hover { background: var(--panel-2); }
.note { color: var(--muted); font-size: 14px; margin-top: 12px; }
.cast { display: flex; justify-content: center; align-items: flex-end; gap: 0; margin: 40px auto 0; max-width: 760px; }
.cast img { width: 23%; max-width: 190px; filter: drop-shadow(0 14px 22px rgba(0, 0, 0, 0.55)); }
.cast img:nth-child(2), .cast img:nth-child(3) { width: 27%; max-width: 205px; }

/* Sections */
section { padding: 56px 0; }
h2 { font-size: clamp(26px, 3.6vw, 36px); line-height: 1.2; margin: 0 0 10px; text-align: center; }
.sub { color: var(--text-2); text-align: center; max-width: 680px; margin: 0 auto 32px; }
.grid { display: grid; gap: 16px; grid-template-columns: repeat(auto-fit, minmax(min(100%, 300px), 1fr)); }
.card { background: var(--panel); border: 1px solid var(--border); border-radius: var(--radius); padding: 22px; }
.card h3 { margin: 12px 0 6px; font-size: 18px; }
.card p { margin: 0; color: var(--text-2); font-size: 15px; }
.icon { width: 44px; height: 44px; border-radius: 12px; display: grid; place-items: center; background: var(--accent-soft); color: var(--accent-hover); }
.icon svg { width: 24px; height: 24px; }
.steps { counter-reset: step; }
.steps .card { position: relative; padding-block-start: 26px; }
.steps .card::before {
  counter-increment: step; content: counter(step);
  display: grid; place-items: center; width: 36px; height: 36px; border-radius: 50%;
  background: var(--accent); color: #fff; font-weight: 700;
}
.chips { display: flex; flex-wrap: wrap; gap: 10px; justify-content: center; max-width: 860px; margin: 0 auto; padding: 0; list-style: none; }
.chips li { padding: 8px 16px; border-radius: 999px; background: var(--panel); border: 1px solid var(--border); color: var(--text); font-size: 15px; }
.chips li span { color: var(--muted); font-size: 13px; }
.alt { background: var(--bg-2); border-block: 1px solid var(--border); }
.fine { color: var(--muted); font-size: 14px; text-align: center; max-width: 760px; margin: 22px auto 0; }

/* Legal pages */
.doc { max-width: 800px; margin: 0 auto; padding: 48px 20px 64px; }
.doc h1 { font-size: clamp(30px, 5vw, 42px); text-align: start; margin: 0 0 6px; }
.doc .updated { color: var(--muted); margin: 0 0 28px; }
.doc h2 { text-align: start; font-size: 22px; margin: 34px 0 10px; }
.doc p, .doc li { color: var(--text-2); }
.doc strong { color: var(--text); }
.doc ul { padding-inline-start: 22px; }
.doc li { margin: 6px 0; }
.doc .box { background: var(--panel); border: 1px solid var(--border); border-radius: var(--radius); padding: 18px 20px; margin: 18px 0; }
.doc .box p { margin: 0; }

.doc.lost, .doc.lost h1 { text-align: center; }
.doc.lost img { margin: 0 auto 18px; border-radius: 18px; }

/* Footer */
footer { border-block-start: 1px solid var(--border); padding: 30px 0 40px; color: var(--muted); font-size: 14px; }
footer .wrap { display: flex; flex-wrap: wrap; gap: 12px 24px; align-items: center; }
footer nav { display: flex; gap: 18px; flex-wrap: wrap; margin-inline-start: auto; }
footer a { color: var(--text-2); }
footer .disclaimer { flex-basis: 100%; margin: 0; }

@media (max-width: 640px) {
  .top .wrap { flex-wrap: wrap; padding-block: 10px; gap: 8px; }
  .nav { margin-inline-start: 0; justify-content: flex-start; }
  .nav a { padding: 4px 8px; font-size: 14px; }
  .hero { padding-top: 44px; }
  section { padding: 44px 0; }
  footer nav { margin-inline-start: 0; }
}
