:root {
  --bg: #0f0e13;
  --panel: #18171e;
  --panel-2: #1f1e27;
  --line: #2c2a36;
  --text: #ecebf2;
  --soft: #bebcca;
  --muted: #8e8c9c;
  --accent: #c13fd6;
  --accent-2: #ffc23d;
  --purple: var(--accent);
  --purple-2: color-mix(in srgb, var(--accent) 80%, white);
  --link: color-mix(in srgb, var(--accent) 50%, white);
  --teal: var(--link);
  --cyan: var(--link);
  --serif: var(--sans);
  --display: "Segoe UI", system-ui, -apple-system, Arial, sans-serif;
  --wide: 1080px;
  --measure: 74ch;
}

body.program-site { background: var(--bg); font-size: 17px; }
.program-site a { color: var(--link); }
.program-site a:hover { color: #fff; }

.program-site .site-header { position: sticky; top: 0; z-index: 30; background: rgba(15, 14, 19, 0.92); border-bottom: 1px solid var(--line); backdrop-filter: blur(8px); }
.program-site .site-nav { background: none; border: 0; }
.program-site .site-nav .wrap { width: min(var(--wide), calc(100% - 32px)); }
.program-site .bar { display: flex; align-items: center; gap: 18px; min-height: 64px; }
.brand { display: inline-flex; align-items: center; gap: 10px; color: #fff; text-decoration: none; font-weight: 800; font-size: 1.15rem; letter-spacing: 0.01em; white-space: nowrap; }
.program-site .brand:hover { color: #fff; }
.brand img { width: 38px; height: 38px; object-fit: contain; display: block; }
.brand-words { display: flex; flex-direction: column; line-height: 1.1; }
.brand-slogan { font-size: 0.78rem; font-weight: 600; color: var(--accent-2); letter-spacing: 0.02em; margin-top: 2px; }
.slogan:empty { display: none; }
.slogan { margin: 10px 0 0; font-size: 1.35rem; font-weight: 800; color: var(--accent-2); letter-spacing: 0.01em; }
.axioms-head { margin: 0; text-align: center; color: var(--muted); font-size: 0.8rem; font-weight: 800; letter-spacing: 0.22em; line-height: 1.9; text-transform: uppercase; }
.axioms-head a { color: var(--muted); text-decoration: none; }
.axioms-head span::before, .axioms-head span::after { content: ""; display: inline-block; width: 30px; height: 1px; margin: 0 12px; background: currentColor; vertical-align: middle; opacity: 0.6; }
.axioms-head a:hover { color: #fff; }
.axioms-wrap { margin: 0 0 56px; border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); padding: 16px 0 0; }
.axioms-wrap .axioms { margin: 0; border: 0; }
.program-site .menu { flex: 1; justify-content: flex-end; margin: 0; }
.program-site .menu a, .program-site .menu .menu-label { color: var(--soft); padding: 10px 12px; font-weight: 600; font-size: 0.95rem; border-radius: 8px; }
.program-site .menu a:hover, .program-site .menu .menu-label:hover, .program-site .menu li:focus-within > a { color: #fff; background: var(--panel-2); }
.program-site .menu a[aria-current="page"] { color: #fff; }
.program-site .submenu { background: var(--panel); border-radius: 10px; }
.bar-download { flex: none; padding: 9px 18px; border-radius: 8px; background: var(--accent); color: #fff !important; text-decoration: none; font-weight: 700; font-size: 0.95rem; }
.bar-download:hover { filter: brightness(1.12); }
.program-site .banners { margin: 16px auto 0; }

.program-site main { padding: 48px 0 72px; width: min(var(--wide), calc(100% - 32px)); }
.program-site .section-title { font-family: var(--display); font-weight: 800; font-size: 1.7rem; letter-spacing: -0.01em; }
.program-site .section-title::after { background: linear-gradient(90deg, var(--accent), transparent); }
.program-site .prose { font-size: 1.08rem; line-height: 1.7; color: #dedce6; }
.program-site .prose h2, .program-site .prose h3, .program-site .post-head h1, .program-site .card-title, .program-site .page-title { font-family: var(--display); font-weight: 800; letter-spacing: -0.01em; }
.program-site .prose h2 { font-size: 1.6rem; }
.program-site .prose h3 { font-size: 1.25rem; color: #fff; }
.program-site .page-title { font-size: clamp(2rem, 4vw, 2.6rem); color: #fff; margin: 0 0 18px; line-height: 1.15; }
.program-site .excerpt { font-size: 1.02rem; }
.program-site .button { background: var(--accent); border-color: transparent; border-radius: 8px; }
.program-site .button:hover { background: var(--accent); filter: brightness(1.12); }
.program-site .button.ghost { background: transparent; border: 1px solid var(--line); color: var(--text); }
.program-site .button.ghost:hover { border-color: var(--accent); filter: none; }
.program-site .card:hover { border-color: var(--accent); box-shadow: none; }
.program-site .kind { background: var(--panel-2); color: var(--soft); border: 1px solid var(--line); }

.hero { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.15fr); gap: 48px; align-items: center; margin: 0 0 56px; }
.hero-icon { width: 96px; height: 96px; object-fit: contain; display: block; margin: 0 0 18px; }
.hero h1 { margin: 0; font-family: var(--display); font-weight: 900; font-size: clamp(2.6rem, 6vw, 3.9rem); line-height: 1.02; letter-spacing: -0.02em; color: #fff; }
.hero .lead { margin: 16px 0 0; font-size: 1.22rem; line-height: 1.55; color: var(--soft); max-width: 34em; }
.hero-actions { display: flex; flex-wrap: wrap; align-items: center; gap: 12px 16px; margin: 28px 0 0; }
.download-button { display: inline-flex; flex-direction: column; align-items: flex-start; padding: 13px 24px; border-radius: 10px; background: var(--accent); color: #fff !important; text-decoration: none; font-weight: 800; font-size: 1.12rem; line-height: 1.2; box-shadow: 0 10px 26px -14px var(--accent); }
.download-button small { font-weight: 600; font-size: 0.8rem; opacity: 0.85; margin-top: 3px; }
.download-button:hover { filter: brightness(1.1); }
.second-button { display: inline-block; padding: 12px 18px; border-radius: 10px; border: 1px solid var(--line); color: var(--text) !important; text-decoration: none; font-weight: 700; }
.second-button:hover { border-color: var(--accent); }
.hero-note { margin: 14px 0 0; font-size: 0.9rem; color: var(--muted); }

.axioms { list-style: none; margin: 0 0 56px; padding: 18px 20px; display: flex; flex-wrap: wrap; justify-content: center; gap: 10px 26px; border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); }
.axioms li { display: flex; align-items: center; gap: 9px; font-weight: 800; font-size: 1.05rem; color: #fff; white-space: nowrap; }
.axioms li::before { content: ""; width: 9px; height: 9px; border-radius: 2px; background: var(--accent-2); transform: rotate(45deg); }

.shot { position: relative; aspect-ratio: 16 / 10; border-radius: 12px; overflow: hidden; background: var(--panel); border: 1px solid var(--line); box-shadow: 0 30px 60px -30px rgba(0, 0, 0, 0.9); }
.shot img { display: block; width: 100%; height: 100%; object-fit: cover; }
.shot.placeholder { display: flex; align-items: center; justify-content: center; background: repeating-linear-gradient(135deg, var(--panel) 0 14px, var(--panel-2) 14px 28px); }
.shot.placeholder span { padding: 8px 14px; border-radius: 8px; background: var(--bg); border: 1px dashed var(--line); color: var(--muted); font-size: 0.9rem; font-weight: 600; }
.shot-caption { margin: 10px 0 0; text-align: center; font-size: 0.9rem; color: var(--muted); }

.block { margin: 0 0 64px; }
.block > h2 { margin: 0 0 8px; font-family: var(--display); font-weight: 900; font-size: clamp(1.7rem, 3.4vw, 2.2rem); letter-spacing: -0.015em; color: #fff; }
.intro { margin: 0 0 26px; max-width: 46em; color: var(--soft); font-size: 1.08rem; line-height: 1.6; }
.features { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 18px; }
.feature { padding: 20px 22px; border-radius: 12px; background: var(--panel); border: 1px solid var(--line); border-top: 3px solid var(--accent); }
.feature h3 { margin: 0 0 8px; font-size: 1.08rem; font-weight: 800; color: #fff; }
.feature p { margin: 0; color: var(--soft); line-height: 1.55; font-size: 0.98rem; }
.split { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 40px; align-items: center; }
.split.flip > :first-child { order: 2; }
.split h3 { margin: 0 0 10px; font-size: 1.45rem; font-weight: 900; color: #fff; letter-spacing: -0.01em; }
.split p { margin: 0 0 12px; color: var(--soft); line-height: 1.65; }
.ticks { list-style: none; margin: 12px 0 0; padding: 0; }
.ticks li { position: relative; padding: 0 0 8px 26px; color: var(--soft); line-height: 1.5; }
.ticks li::before { content: ""; position: absolute; left: 4px; top: 0.45em; width: 10px; height: 6px; border-left: 2px solid var(--accent-2); border-bottom: 2px solid var(--accent-2); transform: rotate(-45deg); }

.video-frame { position: relative; aspect-ratio: 16 / 9; border-radius: 12px; overflow: hidden; background: #000; border: 1px solid var(--line); }
.video-frame iframe { position: absolute; inset: 0; width: 100%; height: 100%; border: 0; }

.cta { margin: 0 0 64px; padding: 36px 32px; border-radius: 14px; background: var(--panel); border: 1px solid var(--line); text-align: center; }
.cta h2 { margin: 0 0 10px; font-weight: 900; font-size: 1.8rem; color: #fff; }
.cta p { margin: 0 auto 22px; max-width: 40em; color: var(--soft); }

.download-card { display: grid; grid-template-columns: auto minmax(0, 1fr); gap: 24px; align-items: center; padding: 28px; border-radius: 14px; background: var(--panel); border: 1px solid var(--line); margin: 0 0 22px; }
.download-card img { width: 88px; height: 88px; object-fit: contain; }
.download-card h2 { margin: 0 0 4px; font-size: 1.5rem; font-weight: 900; color: #fff; }
.download-card .facts { margin: 0 0 16px; color: var(--muted); font-size: 0.95rem; }
.hash { display: block; margin-top: 14px; font-family: Consolas, "Courier New", monospace; font-size: 0.82rem; color: var(--muted); word-break: break-all; }
.steps { counter-reset: step; list-style: none; margin: 0; padding: 0; display: grid; gap: 12px; }
.steps li { counter-increment: step; position: relative; padding: 14px 18px 14px 58px; border-radius: 10px; background: var(--panel); border: 1px solid var(--line); color: var(--soft); line-height: 1.55; }
.steps li::before { content: counter(step); position: absolute; left: 16px; top: 13px; width: 28px; height: 28px; border-radius: 50%; display: flex; align-items: center; justify-content: center; background: var(--accent); color: #fff; font-weight: 800; font-size: 0.9rem; }
.steps strong { color: #fff; }
.note { margin: 22px 0 0; padding: 16px 20px; border-radius: 10px; background: color-mix(in srgb, var(--accent-2) 10%, var(--panel)); border-left: 4px solid var(--accent-2); color: var(--soft); line-height: 1.6; }
.note strong { color: #fff; }
.link-list { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px; }
.link-list a { display: block; padding: 16px 18px; border-radius: 10px; background: var(--panel); border: 1px solid var(--line); text-decoration: none; color: #fff; font-weight: 700; }
.link-list a span { display: block; margin-top: 3px; font-weight: 400; font-size: 0.92rem; color: var(--muted); }
.link-list a:hover { border-color: var(--accent); color: #fff; }

.news { margin-top: 8px; }
.news-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 18px; }
.news-grid .card { margin: 0; }
.news-grid .card-body { padding: 18px 20px 20px; }
.news-grid .card-title { font-size: 1.2rem; }
.news-grid .excerpt { font-size: 0.95rem; }
.news-more { margin: 22px 0 0; text-align: center; }

.program-site .site-footer { border-top: 1px solid var(--line); background: var(--panel); }
.program-site .footer-links a { color: var(--soft); font-weight: 600; }
.program-site .footer-links a:hover { color: #fff; }

@media (max-width: 959px) {
  .program-site .bar { flex-wrap: wrap; padding: 8px 0; gap: 10px; }
  .program-site .menu-button { display: block; margin-left: auto; background: var(--panel-2); color: var(--text); border: 1px solid var(--line); border-radius: 8px; padding: 7px 12px; font: inherit; font-weight: 600; }
  .program-site .menu { display: none; flex-basis: 100%; flex-direction: column; }
  .program-site .site-nav.open .menu { display: flex; }
  .program-site .site-nav .wrap { flex-direction: row; }
  .bar-download { order: 2; }
  .hero, .split { grid-template-columns: 1fr; gap: 28px; }
  .split.flip > :first-child { order: 0; }
  .features, .news-grid { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 640px) {
  .features, .news-grid, .link-list { grid-template-columns: 1fr; }
  .download-card { grid-template-columns: 1fr; text-align: left; }
  .axioms { justify-content: flex-start; }
  .bar-download { display: none; }
}
