/* King Cinema — premiere-night theme */
:root {
  --ink: #0a0607;
  --ink-2: #130b0c;
  --ink-3: #1d1213;
  --line: rgba(244, 235, 225, 0.12);
  --cream: #f4ebe1;
  --muted: #b3a59c;
  --red: #d8141c;
  --red-hot: #ff3038;
  --red-deep: #7d0a0f;
  --gold: #e8b450;
  --display: "Lalezar", "IBM Plex Sans Arabic", system-ui, sans-serif;
  --body: "IBM Plex Sans Arabic", "Segoe UI", Tahoma, sans-serif;
  --gutter: clamp(16px, 4vw, 48px);
  --max: 1180px;
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  background:
    radial-gradient(1100px 620px at 78% -8%, rgba(216, 20, 28, 0.34), transparent 62%),
    radial-gradient(800px 500px at 0% 30%, rgba(125, 10, 15, 0.22), transparent 65%),
    var(--ink);
  color: var(--cream);
  font-family: var(--body);
  font-size: 17px;
  line-height: 1.85;
  overflow-x: hidden;
}
/* film grain */
body::before {
  content: "";
  position: fixed; inset: 0; z-index: 100; pointer-events: none;
  opacity: 0.09; mix-blend-mode: overlay;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='180' height='180'%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%; height: auto; display: block; }
a { color: inherit; }
h1, h2, h3 { font-family: var(--display); font-weight: 400; line-height: 1.15; margin: 0; }
p { margin: 0 0 1em; }
.wrap { width: min(100% - 2 * var(--gutter), var(--max)); margin-inline: auto; }
.skip { position: absolute; inset-inline-start: -999px; top: 8px; background: var(--cream); color: var(--ink); padding: 8px 14px; border-radius: 8px; z-index: 200; }
.skip:focus { inset-inline-start: 8px; }
:focus-visible { outline: 2px solid var(--gold); outline-offset: 3px; border-radius: 6px; }

/* ---------- header ---------- */
.site-header {
  position: sticky; top: 0; z-index: 50;
  background: rgba(10, 6, 7, 0.72);
  backdrop-filter: blur(14px) saturate(140%);
  -webkit-backdrop-filter: blur(14px) saturate(140%);
  border-bottom: 1px solid var(--line);
}
.site-header .wrap { display: flex; align-items: center; gap: 24px; min-height: 68px; }
.brand { display: inline-flex; align-items: center; gap: 12px; text-decoration: none; }
.brand img { width: 40px; height: 40px; border-radius: 10px; }
.brand span { font-family: var(--display); font-size: 1.5rem; letter-spacing: 0.04em; color: var(--red-hot); line-height: 1; padding-top: 4px; }
.nav { display: flex; gap: 26px; margin-inline-start: auto; }
.nav a { text-decoration: none; color: var(--muted); font-size: 0.95rem; font-weight: 500; transition: color 0.2s; }
.nav a:hover { color: var(--cream); }
.site-header .btn { margin-inline-start: 4px; }

/* ---------- buttons ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 10px;
  padding: 14px 26px; border-radius: 14px;
  font-family: var(--body); font-weight: 700; font-size: 1rem; line-height: 1.2;
  text-decoration: none; cursor: pointer; border: 1px solid transparent;
  transition: transform 0.18s ease, box-shadow 0.18s ease, background 0.18s ease, border-color 0.18s;
}
.btn svg { width: 20px; height: 20px; flex: none; }
.btn-primary {
  background: linear-gradient(180deg, var(--red-hot), var(--red) 55%, #b50f16);
  color: #fff;
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.35), 0 14px 34px -12px rgba(216, 20, 28, 0.9);
}
.btn-primary:hover { transform: translateY(-2px); box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.4), 0 20px 44px -12px rgba(255, 48, 56, 0.95); }
.btn-ghost { border-color: rgba(244, 235, 225, 0.3); color: var(--cream); background: rgba(244, 235, 225, 0.04); }
.btn-ghost:hover { border-color: var(--cream); background: rgba(244, 235, 225, 0.1); transform: translateY(-2px); }
.btn-sm { padding: 10px 18px; font-size: 0.92rem; border-radius: 11px; }
.btn-lg { padding: 18px 34px; font-size: 1.12rem; border-radius: 16px; }

/* ---------- hero ---------- */
.hero { padding: clamp(40px, 7vw, 96px) 0 0; position: relative; overflow-x: clip; }
.eyebrow {
  display: inline-flex; align-items: center; gap: 10px;
  font-size: 0.86rem; font-weight: 700; color: var(--gold);
  border: 1px solid rgba(232, 180, 80, 0.4); border-radius: 999px; padding: 5px 16px;
  background: rgba(232, 180, 80, 0.07);
}
.eyebrow i { width: 8px; height: 8px; border-radius: 50%; background: var(--red-hot); box-shadow: 0 0 0 0 rgba(255, 48, 56, 0.7); animation: pulse 2s infinite; }
@keyframes pulse { 70% { box-shadow: 0 0 0 10px rgba(255, 48, 56, 0); } 100% { box-shadow: 0 0 0 0 rgba(255, 48, 56, 0); } }
.hero h1 { font-size: clamp(2.9rem, 9.4vw, 7.6rem); margin: 22px 0 10px; line-height: 1.02; }
.hero h1 b { font-weight: 400; color: var(--red-hot); text-shadow: 0 0 60px rgba(255, 48, 56, 0.55); letter-spacing: 0.02em; display: inline-block; }
.hero h1 small { display: block; font-size: 0.4em; line-height: 1.35; color: var(--cream); margin-top: 0.35em; }
.lede { max-width: 62ch; color: var(--muted); font-size: 1.12rem; margin-top: 18px; }
.cta-row { display: flex; flex-wrap: wrap; gap: 14px; margin-top: 28px; }
.specs {
  display: grid; grid-template-columns: repeat(4, auto); justify-content: start; gap: 0;
  margin: 38px 0 0; padding: 0; list-style: none;
  border-block: 1px solid var(--line);
}
.specs li { padding: 16px clamp(16px, 3vw, 38px); border-inline-start: 1px solid var(--line); }
.specs li:first-child { border-inline-start: 0; padding-inline-start: 0; }
.specs span { display: block; font-size: 0.8rem; color: var(--muted); }
.specs strong { font-family: var(--display); font-weight: 400; font-size: 1.5rem; line-height: 1.3; }

/* the screen: showcase framed like a film strip */
.screen { margin-top: clamp(40px, 6vw, 72px); position: relative; }
.screen::before {
  content: ""; position: absolute; inset: 12% 6% -6%; z-index: -1;
  background: radial-gradient(closest-side, rgba(255, 48, 56, 0.55), transparent);
  filter: blur(50px);
}
.film {
  --hole: 14px;
  background: #050303; border-radius: 22px; padding: 34px 14px;
  border: 1px solid rgba(244, 235, 225, 0.14);
  box-shadow: 0 50px 120px -40px #000;
  position: relative; transform: perspective(1600px) rotateX(4deg); transform-origin: 50% 100%;
}
.film::before, .film::after {
  content: ""; position: absolute; inset-inline: 22px; height: var(--hole);
  background: repeating-linear-gradient(90deg, rgba(244, 235, 225, 0.2) 0 20px, transparent 20px 38px);
  border-radius: 3px;
  -webkit-mask: repeating-linear-gradient(90deg, #000 0 20px, transparent 20px 38px);
  mask: repeating-linear-gradient(90deg, #000 0 20px, transparent 20px 38px);
}
.film::before { top: 10px; }
.film::after { bottom: 10px; }
.film img { width: 100%; border-radius: 10px; }
.phones { max-width: 760px; margin-inline: auto; }
.phones img { width: 100%; filter: drop-shadow(0 36px 50px rgba(0, 0, 0, 0.65)); }

/* ---------- marquee ---------- */
.marquee { margin-top: clamp(48px, 7vw, 90px); border-block: 1px solid var(--line); background: var(--red); overflow: hidden; transform: rotate(-1.2deg) scale(1.03); }
.marquee-track { display: flex; width: max-content; animation: slide 36s linear infinite; }
.marquee ul { display: flex; margin: 0; padding: 10px 0; list-style: none; flex: none; }
.marquee li { font-family: var(--display); font-size: clamp(1.3rem, 2.6vw, 2rem); color: #fff; padding-inline: 22px; display: flex; align-items: center; gap: 44px; white-space: nowrap; line-height: 1.5; }
.marquee li::after { content: "✦"; font-size: 0.6em; color: rgba(0, 0, 0, 0.55); }
@keyframes slide { to { transform: translateX(50%); } }

/* ---------- sections ---------- */
section { padding: clamp(64px, 9vw, 128px) 0 0; }
.kicker { font-size: 0.85rem; font-weight: 700; color: var(--red-hot); letter-spacing: 0.02em; display: flex; align-items: center; gap: 12px; margin-bottom: 14px; }
.kicker::before { content: ""; width: 34px; height: 2px; background: var(--red-hot); }
h2 { font-size: clamp(2rem, 4.8vw, 3.6rem); max-width: 24ch; text-wrap: balance; }
.sub { color: var(--muted); max-width: 60ch; margin-top: 14px; }

.about { display: grid; grid-template-columns: minmax(0, 5fr) minmax(0, 7fr); gap: clamp(28px, 6vw, 90px); align-items: start; }
.about .prose p { color: #d9cdc4; font-size: 1.08rem; }
.about .prose p:first-child { font-size: 1.3rem; color: var(--cream); line-height: 1.75; }

.features { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1px; margin-top: 44px; background: var(--line); border: 1px solid var(--line); border-radius: 22px; overflow: hidden; }
.feature { background: var(--ink-2); padding: 30px 28px 26px; transition: background 0.25s; position: relative; }
.feature:hover { background: var(--ink-3); }
.feature svg { width: 30px; height: 30px; color: var(--red-hot); margin-bottom: 16px; }
.feature h3 { font-size: 1.45rem; margin-bottom: 6px; }
.feature p { color: var(--muted); font-size: 0.97rem; margin: 0; line-height: 1.75; }

.program { list-style: none; margin: 44px 0 0; padding: 0; border-top: 1px solid var(--line); counter-reset: prog; }
.program li {
  counter-increment: prog;
  display: grid; grid-template-columns: 88px minmax(0, 260px) 1fr; align-items: baseline; gap: 20px;
  padding: 20px 0; border-bottom: 1px solid var(--line);
  transition: padding 0.25s, background 0.25s;
}
.program li::before { content: counter(prog, decimal-leading-zero); font-family: var(--display); font-size: 1.3rem; color: var(--red-hot); }
.program li:hover { padding-inline: 18px; background: linear-gradient(90deg, transparent, rgba(216, 20, 28, 0.12)); }
.program h3 { font-size: clamp(1.7rem, 3.6vw, 2.6rem); }
.program p { margin: 0; color: var(--muted); }

.devices { display: grid; grid-template-columns: 1fr 1fr; gap: 20px; margin-top: 44px; }
.device { border: 1px solid var(--line); border-radius: 22px; padding: 32px; background: linear-gradient(160deg, var(--ink-3), var(--ink-2)); position: relative; overflow: hidden; }
.device.is-live { border-color: rgba(255, 48, 56, 0.55); background: linear-gradient(160deg, rgba(216, 20, 28, 0.26), var(--ink-2) 60%); }
.device .tag { display: inline-block; font-size: 0.78rem; font-weight: 700; padding: 3px 12px; border-radius: 999px; background: rgba(244, 235, 225, 0.1); color: var(--muted); margin-bottom: 16px; }
.device.is-live .tag { background: var(--red); color: #fff; }
.device h3 { font-size: 1.9rem; margin-bottom: 8px; }
.device p { color: var(--muted); }
.device .btn { margin-top: 8px; }

.steps { list-style: none; margin: 44px 0 0; padding: 0; display: grid; grid-template-columns: repeat(4, 1fr); gap: 18px; counter-reset: step; }
.steps li { counter-increment: step; border-top: 2px solid var(--red); padding-top: 18px; }
.steps li::before { content: counter(step); font-family: var(--display); font-size: 3.4rem; line-height: 1; color: transparent; -webkit-text-stroke: 1.5px var(--red-hot); display: block; margin-bottom: 10px; }
.steps h3 { font-size: 1.35rem; margin-bottom: 6px; }
.steps p { color: var(--muted); font-size: 0.96rem; margin: 0; }

.faq { margin-top: 40px; border-top: 1px solid var(--line); max-width: 860px; }
.faq details { border-bottom: 1px solid var(--line); }
.faq summary { cursor: pointer; list-style: none; padding: 20px 0; font-weight: 700; font-size: 1.1rem; display: flex; justify-content: space-between; gap: 18px; align-items: center; }
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: "+"; font-family: var(--display); font-size: 1.7rem; line-height: 1; color: var(--red-hot); transition: transform 0.25s; flex: none; }
.faq details[open] summary::after { transform: rotate(45deg); }
.faq details p { color: var(--muted); padding-bottom: 20px; margin: 0; max-width: 70ch; }

.finale { margin-top: clamp(64px, 9vw, 128px); padding: clamp(48px, 7vw, 88px) 0; background: radial-gradient(700px 300px at 50% 0%, rgba(255, 48, 56, 0.4), transparent 70%), var(--ink-2); border-block: 1px solid var(--line); text-align: center; }
.finale h2 { max-width: none; font-size: clamp(2.2rem, 6vw, 4.6rem); }
.finale p { color: var(--muted); max-width: 52ch; margin: 14px auto 0; }
.finale .cta-row { justify-content: center; }

.site-footer { padding: 34px 0 44px; color: var(--muted); font-size: 0.92rem; }
.site-footer .wrap { display: flex; flex-wrap: wrap; gap: 14px 28px; align-items: center; justify-content: space-between; }
.site-footer nav { display: flex; flex-wrap: wrap; gap: 8px 22px; }
.site-footer a { text-decoration: none; }
.site-footer a:hover { color: var(--cream); }

/* ---------- download page ---------- */
.crumbs { padding-top: 26px; font-size: 0.9rem; color: var(--muted); }
.crumbs ol { list-style: none; display: flex; gap: 10px; margin: 0; padding: 0; }
.crumbs li + li::before { content: "‹"; margin-inline-end: 10px; }
.crumbs a { text-decoration: none; }
.crumbs a:hover { color: var(--cream); }
.dl-hero { padding-top: clamp(26px, 4vw, 48px); }
.dl-hero h1 { font-size: clamp(1.6rem, 3.4vw, 2.4rem); line-height: 1.3; margin: 16px 0 6px; }
.dl-hero .lede { margin-top: 8px; }
.dl-hero h1 b { font-weight: 400; color: var(--red-hot); }
.dl-grid { display: grid; grid-template-columns: minmax(0, 7fr) minmax(0, 5fr); gap: clamp(24px, 4vw, 56px); align-items: start; margin-top: 30px; }
.dl-hero ~ section h2 { font-size: clamp(1.4rem, 2.8vw, 1.9rem); line-height: 1.35; }
.dl-main { display: flex; flex-direction: column; }
.links-title { font-size: 1.35rem; margin-top: 32px; }
.dl-main > .links-title:first-child { margin-top: 0; }

.ticket { display: grid; grid-template-columns: 1fr 190px; background: var(--cream); color: #1a0d0e; border-radius: 20px; position: relative; box-shadow: 0 40px 90px -40px rgba(255, 48, 56, 0.7); }
.ticket-main { padding: 28px 30px; }
.ticket-main header { display: flex; align-items: center; gap: 14px; margin-bottom: 20px; }
.ticket-main header img { width: 56px; height: 56px; border-radius: 14px; }
.ticket-main header strong { font-family: var(--display); font-weight: 400; font-size: 1.9rem; line-height: 1.1; display: block; }
.ticket-main header span { font-size: 0.85rem; color: #6d5a55; }
.ticket dl { display: grid; grid-template-columns: 1fr 1fr; gap: 14px 20px; margin: 0; }
.ticket dl .full { grid-column: 1 / -1; }
.ticket dt { font-size: 0.76rem; color: #7a6660; font-weight: 500; }
.ticket dd { margin: 0; font-weight: 700; font-size: 1.02rem; line-height: 1.5; overflow-wrap: anywhere; }
.ticket dd.mono { font-family: Consolas, "Courier New", monospace; font-size: 0.9rem; direction: ltr; text-align: end; unicode-bidi: plaintext; }
.ticket-stub { border-inline-start: 2px dashed rgba(26, 13, 14, 0.35); padding: 24px 18px; display: grid; place-content: center; text-align: center; position: relative; background: linear-gradient(180deg, var(--red-hot), var(--red)); color: #fff; border-start-end-radius: 20px; border-end-end-radius: 20px; }
.ticket-stub::before, .ticket-stub::after { content: ""; position: absolute; inset-inline-start: -15px; width: 28px; height: 28px; border-radius: 50%; background: var(--ink); }
.ticket-stub::before { top: -14px; }
.ticket-stub::after { bottom: -14px; }
.ticket-stub small { font-size: 0.78rem; font-weight: 700; opacity: 0.85; }
.ticket-stub b { font-family: var(--display); font-weight: 400; font-size: 3rem; line-height: 1.05; direction: ltr; display: block; }
.ticket-stub span { font-size: 0.8rem; opacity: 0.85; }

.links { display: grid; gap: 12px; margin-top: 26px; }
.dl-link {
  display: grid; grid-template-columns: auto 1fr auto; align-items: center; gap: 16px;
  padding: 18px 22px; border-radius: 16px; text-decoration: none;
  border: 1px solid var(--line); background: var(--ink-2);
  transition: transform 0.18s, border-color 0.18s, background 0.18s, box-shadow 0.18s;
}
.dl-link:hover { transform: translateY(-2px); border-color: rgba(244, 235, 225, 0.45); background: var(--ink-3); }
.dl-link .num { font-family: var(--display); font-size: 1.5rem; width: 44px; height: 44px; border-radius: 12px; display: grid; place-items: center; background: rgba(244, 235, 225, 0.08); color: var(--muted); line-height: 1; padding-top: 3px; }
.dl-link strong { display: block; font-size: 1.08rem; line-height: 1.5; }
.dl-link small { color: var(--muted); font-size: 0.86rem; }
.dl-link svg { width: 24px; height: 24px; color: var(--muted); }
.dl-link.is-main { background: linear-gradient(180deg, var(--red-hot), var(--red) 55%, #b50f16); border-color: transparent; color: #fff; box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.35), 0 22px 48px -18px rgba(216, 20, 28, 0.95); padding-block: 22px; }
.dl-link.is-main .num { background: rgba(0, 0, 0, 0.22); color: #fff; }
.dl-link.is-main small, .dl-link.is-main svg { color: rgba(255, 255, 255, 0.85); }
.dl-link.is-main strong { font-size: 1.22rem; }
.dl-link.is-tg { border-color: rgba(84, 169, 235, 0.45); }
.dl-link.is-tg .num, .dl-link.is-tg svg { color: #6cb8f0; }
.dl-status { min-height: 1.9em; margin-top: 14px; font-size: 0.95rem; color: var(--gold); }

.side-card { border: 1px solid var(--line); border-radius: 20px; padding: 26px 26px 10px; background: var(--ink-2); }
.side-card + .side-card { margin-top: 18px; }
.side-card h2 { font-size: 1.25rem; margin-bottom: 14px; max-width: none; }
.side-card ol, .side-card ul { margin: 0 0 16px; padding-inline-start: 1.2em; color: #d9cdc4; font-size: 0.98rem; }
.side-card li { margin-bottom: 8px; }
.side-card li::marker { color: var(--red-hot); font-weight: 700; }
.side-card p { color: var(--muted); font-size: 0.95rem; }
code { font-family: Consolas, "Courier New", monospace; font-size: 0.88em; background: rgba(244, 235, 225, 0.09); padding: 2px 7px; border-radius: 6px; direction: ltr; unicode-bidi: isolate; overflow-wrap: anywhere; -webkit-box-decoration-break: clone; box-decoration-break: clone; }

/* ---------- inner pages ---------- */
.nav a[aria-current="page"] { color: var(--cream); }
.more { margin: 26px 0 0; color: var(--muted); }
.more a, .prose-doc a, .side-card a:not(.btn) { color: var(--cream); text-decoration: underline; text-decoration-color: var(--red-hot); text-decoration-thickness: 2px; text-underline-offset: 5px; }
.more a:hover, .prose-doc a:hover, .side-card a:not(.btn):hover { color: var(--red-hot); }
.page-hero { padding-top: clamp(22px, 4vw, 44px); overflow-x: visible; }
.page-hero h1 { font-size: clamp(1.6rem, 3.4vw, 2.4rem); line-height: 1.3; margin: 6px 0; max-width: 26ch; text-wrap: balance; }
.page-hero .lede { margin-top: 10px; }
.doc { display: grid; grid-template-columns: minmax(0, 1fr) 320px; gap: clamp(28px, 5vw, 72px); align-items: start; margin-top: clamp(32px, 5vw, 56px); }
.doc aside { position: sticky; top: 92px; }
.prose-doc { max-width: 72ch; }
.prose-doc h2 { font-size: clamp(1.25rem, 2.2vw, 1.55rem); line-height: 1.4; margin: 1.7em 0 0.5em; max-width: none; scroll-margin-top: 96px; }
.prose-doc > h2:first-child { margin-top: 0; }
.prose-doc h3 { font-size: 1.1rem; margin: 1.4em 0 0.35em; color: var(--cream); }
.prose-doc p, .prose-doc li, .prose-doc td { color: #d9cdc4; }
.prose-doc ol, .prose-doc ul { padding-inline-start: 1.3em; margin: 0 0 1.2em; }
.prose-doc li { margin-bottom: 0.55em; }
.prose-doc li::marker { color: var(--red-hot); font-weight: 700; }
.prose-doc strong { color: var(--cream); }
.callout { border: 1px solid rgba(232, 180, 80, 0.4); background: rgba(232, 180, 80, 0.07); border-radius: 16px; padding: 18px 22px; margin: 1.4em 0; }
.callout p { margin: 0; }
.callout strong { color: var(--gold); }
.spec-table { width: 100%; border-collapse: collapse; margin: 0 0 1.4em; }
.spec-table th, .spec-table td { text-align: start; padding: 13px 0; border-bottom: 1px solid var(--line); }
.spec-table th { color: var(--muted); font-weight: 500; font-size: 0.88rem; }
.prose-doc .faq { max-width: none; margin-top: 8px; }
.release { border: 1px solid var(--line); border-radius: 20px; padding: 26px 28px 12px; background: var(--ink-2); margin-bottom: 18px; }
.release header { display: flex; align-items: center; flex-wrap: wrap; gap: 8px 16px; margin-bottom: 14px; }
.release .ver { font-size: 1.9rem; margin: 0; color: var(--red-hot); direction: ltr; line-height: 1; padding-top: 6px; }
.release time { color: var(--muted); font-size: 0.92rem; margin-inline-start: auto; }
.tag-live, .tag-muted { font-size: 0.78rem; font-weight: 700; padding: 3px 12px; border-radius: 999px; }
.tag-live { background: var(--red); color: #fff; }
.tag-muted { background: rgba(244, 235, 225, 0.1); color: var(--muted); }
.cta-card { padding-bottom: 26px; border-color: rgba(255, 48, 56, 0.5); background: linear-gradient(160deg, rgba(216, 20, 28, 0.24), var(--ink-2) 65%); }
.cta-card .btn { width: 100%; margin-top: 10px; }
.side-links { list-style: none; padding: 0 !important; }
.side-links li { padding: 6px 0; margin: 0; }
.notfound { padding: clamp(60px, 12vw, 140px) 0; text-align: center; }
.notfound .code { font-family: var(--display); font-size: clamp(6rem, 24vw, 15rem); line-height: 0.9; margin: 0; color: transparent; -webkit-text-stroke: 2px var(--red-hot); }
.notfound h1 { font-size: clamp(1.5rem, 3.2vw, 2.2rem); margin-top: 10px; }
.notfound .lede { margin-inline: auto; }
.notfound .cta-row { justify-content: center; }

/* ---------- motion ---------- */
.js .reveal { opacity: 0; transform: translateY(26px); transition: opacity 0.7s ease, transform 0.7s cubic-bezier(0.2, 0.7, 0.2, 1); transition-delay: var(--d, 0s); }
.js .reveal.in { opacity: 1; transform: none; }
.hero .rise { animation: rise 0.9s cubic-bezier(0.2, 0.7, 0.2, 1) both; animation-delay: var(--d, 0s); }
@keyframes rise { from { opacity: 0; transform: translateY(30px); } }
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation: none !important; transition: none !important; }
  .js .reveal { opacity: 1; transform: none; }
  html { scroll-behavior: auto; }
}

/* ---------- responsive ---------- */
@media (max-width: 960px) {
  .site-header .wrap { flex-wrap: wrap; row-gap: 0; }
  .nav { order: 3; flex-basis: 100%; margin: 0; gap: 22px; overflow-x: auto; white-space: nowrap; padding: 0 0 12px; scrollbar-width: none; }
  .nav::-webkit-scrollbar { display: none; }
  .site-header .btn { margin-inline-start: auto; }
  .doc { grid-template-columns: 1fr; }
  .doc aside { position: static; }
  .about, .dl-grid { grid-template-columns: 1fr; }
  .features { grid-template-columns: repeat(2, 1fr); }
  .steps { grid-template-columns: repeat(2, 1fr); gap: 28px 18px; }
  .program li { grid-template-columns: 56px 1fr; }
  .program p { grid-column: 2; }
}
@media (max-width: 620px) {
  body { font-size: 16px; }
  .specs { grid-template-columns: 1fr 1fr; }
  .specs li { padding: 14px 16px; }
  .specs li:nth-child(odd) { border-inline-start: 0; padding-inline-start: 0; }
  .specs li:nth-child(-n + 2) { border-bottom: 1px solid var(--line); }
  .cta-row .btn { flex: 1 1 100%; }
  .film { padding: 26px 8px; border-radius: 16px; transform: none; }
  .film::before, .film::after { inset-inline: 12px; height: 10px; }
  .film::before { top: 8px; }
  .film::after { bottom: 8px; }
  .features, .devices, .steps { grid-template-columns: 1fr; }
  .links-title { order: 1; margin-top: 0; }
  .links { order: 2; margin-top: 16px; }
  .dl-status { order: 3; }
  .ticket { grid-template-columns: 1fr; order: 4; margin-top: 12px; }
  .ticket-stub { border-inline-start: 0; border-top: 2px dashed rgba(26, 13, 14, 0.35); border-radius: 0 0 20px 20px; padding: 18px; }
  .ticket-stub::before, .ticket-stub::after { top: -15px; bottom: auto; }
  .ticket-stub::before { inset-inline-start: -14px; }
  .ticket-stub::after { inset-inline-start: auto; inset-inline-end: -14px; }
  .ticket-stub b { font-size: 2.4rem; }
  .dl-link { padding: 16px; gap: 12px; }
  .site-footer .wrap { flex-direction: column; align-items: flex-start; }
}

/* ---------- header menu ---------- */
.nav .only-menu { display: none; }
.menu-toggle {
  display: none; flex: none; width: 36px; height: 36px; padding: 0; cursor: pointer;
  border: 0; background: none; color: var(--cream); margin-inline-end: -9px;
  transition: color 0.18s;
}
.menu-toggle:hover { color: var(--red-hot); }
.menu-toggle span { display: block; width: 18px; height: 2px; margin: 0 auto; background: currentColor; border-radius: 2px; transition: transform 0.25s ease, opacity 0.2s ease; }
.menu-toggle span + span { margin-top: 4px; }
.nav-open .menu-toggle { color: var(--red-hot); }
.nav-open .menu-toggle span:nth-child(1) { transform: translateY(6px) rotate(45deg); }
.nav-open .menu-toggle span:nth-child(2) { opacity: 0; }
.nav-open .menu-toggle span:nth-child(3) { transform: translateY(-6px) rotate(-45deg); }
@media (max-width: 960px) {
  .site-header .wrap { column-gap: 12px; }
  .js .menu-toggle { display: block; }
  .menu-toggle { margin-inline-start: auto; }
  .site-header .btn + .menu-toggle { margin-inline-start: 0; }
  .js .nav {
    display: none; flex-direction: column; gap: 0; white-space: normal;
    overflow: hidden auto; max-height: calc(100vh - 76px); max-height: calc(100dvh - 76px);
    padding: 4px 0 12px; border-top: 1px solid var(--line);
  }
  .js .nav-open .nav { display: flex; animation: menu-in 0.25s ease both; }
  .js .nav a { display: block; padding: 14px 4px; font-size: 1.05rem; color: var(--cream); border-bottom: 1px solid var(--line); }
  .js .nav a:last-child { border-bottom: 0; }
  .js .nav a[aria-current="page"] { color: var(--red-hot); }
}
@keyframes menu-in { from { opacity: 0; transform: translateY(-8px); } }
