:root {
  color-scheme: light;
  --site-bg: #f3f6fa;
  --site-panel: #fff;
  --site-text: #182435;
  --site-muted: #657285;
  --site-line: #d7e0ea;
  --site-accent: #0877df;
  --site-accent-2: #0aa69c;
  --site-nav: rgba(249,251,253,.94);
  --site-hero: #0c1b2d;
  --site-radius: 12px;
  --site-shadow: 0 14px 36px rgba(20,42,68,.10);
  --text:var(--site-text);
  --muted:var(--site-muted);
  --line:var(--site-line);
  --panel:var(--site-panel);
  --accent:var(--site-accent);
  --accent-2:var(--site-accent-2);
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", "PingFang SC", sans-serif;
}

html[data-site-theme="tech"] { --site-bg:#eaf0f7; --site-panel:#f8fbff; --site-text:#102138; --site-muted:#526781; --site-line:#c6d6e8; --site-accent:#0877df; --site-accent-2:#00a697; --site-nav:rgba(234,241,248,.94); --site-hero:#071527; --site-radius:12px; --site-shadow:0 16px 42px rgba(5,32,66,.13); }
html[data-site-theme="minimal"] { --site-bg:#f2f4f6; --site-panel:#fff; --site-text:#20252c; --site-muted:#68717c; --site-line:#cdd3da; --site-accent:#315f91; --site-accent-2:#547c97; --site-nav:rgba(249,250,251,.96); --site-hero:#112033; --site-radius:0; --site-shadow:none; }
html[data-site-theme="apple"] { --site-bg:#f5f5f7; --site-panel:#fff; --site-text:#1d1d1f; --site-muted:#6e6e73; --site-line:#e3e3e8; --site-accent:#0071e3; --site-accent-2:#36a3dc; --site-nav:rgba(251,251,253,.92); --site-hero:#07172c; --site-radius:22px; --site-shadow:0 12px 36px rgba(29,29,31,.07); }
html[data-site-theme="ink"] { --site-bg:#e9e9e3; --site-panel:#f4f4ee; --site-text:#292d2a; --site-muted:#676c68; --site-line:#bfc2bc; --site-accent:#40564d; --site-accent-2:#718577; --site-nav:rgba(240,240,234,.96); --site-hero:#18221e; --site-radius:3px; --site-shadow:none; font-family:"Songti SC","Noto Serif CJK SC","STSong",serif; }

body:not(.home-page) { margin:0; color:var(--site-text); background:var(--site-bg); font-family:inherit; }
body:not(.home-page) .nav:not([data-global-nav]), body:not(.home-page) .page-arrows, body:not(.home-page) > .footer { display:none !important; }
.site-header { position:sticky; top:0; z-index:100; min-height:68px; display:flex; align-items:center; justify-content:space-between; gap:24px; padding:0 clamp(20px,5vw,76px); border-bottom:1px solid var(--site-line); background:var(--site-nav); backdrop-filter:blur(18px); }
.site-brand { display:flex; align-items:center; gap:12px; color:var(--site-text); text-decoration:none; font-weight:800; white-space:nowrap; }
.site-brand img { width:38px; height:38px; object-fit:cover; border-radius:10px; }
.site-nav { display:flex; align-items:center; justify-content:flex-end; gap:clamp(12px,2vw,32px); color:var(--site-text); }
.site-nav > a, .site-menu summary > a { color:inherit; text-decoration:none; font-weight:650; white-space:nowrap; }
.site-nav > a:hover, .site-menu summary > a:hover, .site-menu-panel a:hover { color:var(--site-accent); }
.site-menu { position:relative; }
.site-menu summary { display:flex; align-items:center; gap:7px; list-style:none; cursor:pointer; }
.site-menu summary::-webkit-details-marker { display:none; }
.site-menu-panel { position:absolute; top:calc(100% + 14px); left:50%; z-index:110; display:grid; width:270px; padding:8px; border:1px solid var(--site-line); border-radius:var(--site-radius); background:var(--site-panel); box-shadow:var(--site-shadow); transform:translateX(-50%); }
.site-menu-panel a { display:flex; justify-content:space-between; gap:14px; padding:12px; color:var(--site-text); text-decoration:none; border-radius:calc(var(--site-radius) * .6); }
.site-menu-panel a:hover { background:var(--site-bg); }
.site-footer { display:flex; justify-content:space-between; gap:18px; padding:24px clamp(20px,5vw,76px); border-top:1px solid var(--site-line); color:var(--site-muted); font-size:14px; }
.site-footer a { color:var(--site-accent); text-decoration:none; }

.rebuilt-page { min-height:70vh; color:var(--site-text); }
.rebuilt-hero { position:relative; isolation:isolate; display:grid; align-items:center; min-height:440px; padding:clamp(54px,9vw,116px) clamp(24px,8vw,128px); overflow:hidden; color:#fff; background:var(--site-hero); }
.rebuilt-hero:before { position:absolute; inset:0; z-index:-2; content:""; background:linear-gradient(90deg,rgba(5,15,28,.88),rgba(5,15,28,.48) 58%,rgba(5,15,28,.26)),var(--hero-image) center/cover no-repeat; }
.rebuilt-hero:after { position:absolute; inset:0; z-index:-1; content:""; background:linear-gradient(0deg,rgba(5,15,28,.35),transparent 55%); pointer-events:none; }
.rebuilt-hero-copy { max-width:780px; }
.rebuilt-eyebrow { margin:0 0 18px; color:#8ed4ff; font-size:13px; font-weight:800; letter-spacing:2px; text-transform:uppercase; }
.rebuilt-hero h1 { max-width:900px; margin:0; font-size:clamp(40px,7vw,78px); line-height:1.08; }
.rebuilt-hero .lead { max-width:720px; margin:24px 0 0; color:rgba(255,255,255,.84); font-size:18px; line-height:1.8; }
.rebuilt-actions { display:flex; flex-wrap:wrap; gap:12px; margin-top:30px; }
.rebuilt-button { display:inline-flex; align-items:center; justify-content:center; min-height:46px; padding:0 20px; border:1px solid transparent; border-radius:var(--site-radius); background:var(--site-accent); color:#fff; font:inherit; font-weight:700; text-decoration:none; cursor:pointer; }
.rebuilt-button.secondary { border-color:rgba(255,255,255,.52); background:rgba(255,255,255,.08); color:#fff; }
.rebuilt-section { width:min(1200px,calc(100% - 40px)); margin:0 auto; padding:76px 0; }
.rebuilt-section-head { max-width:780px; margin-bottom:30px; }
.rebuilt-section h2 { margin:0; font-size:clamp(28px,4vw,42px); line-height:1.22; }
.rebuilt-section-head p { margin:14px 0 0; color:var(--site-muted); line-height:1.8; }
.rebuilt-grid { display:grid; grid-template-columns:repeat(3,minmax(0,1fr)); gap:16px; }
.rebuilt-item { min-width:0; padding:24px; border:1px solid var(--site-line); border-radius:var(--site-radius); background:var(--site-panel); box-shadow:var(--site-shadow); }
.rebuilt-item h3 { margin:0 0 10px; font-size:20px; }
.rebuilt-item p { margin:0; color:var(--site-muted); line-height:1.7; }
.rebuilt-index { display:inline-grid; place-items:center; width:38px; height:38px; margin-bottom:16px; border-radius:9px; background:linear-gradient(135deg,var(--site-accent),var(--site-accent-2)); color:white; font-weight:800; }
.rebuilt-pricing { display:grid; grid-template-columns:repeat(4,minmax(0,1fr)); gap:14px; }
.rebuilt-price { padding:22px; border:1px solid var(--site-line); border-radius:var(--site-radius); background:var(--site-panel); }
.rebuilt-price strong { display:block; color:var(--site-accent); font-size:32px; }
.rebuilt-price span { color:var(--site-muted); }
.rebuilt-form { display:grid; grid-template-columns:repeat(2,minmax(0,1fr)); gap:14px; max-width:840px; }
.rebuilt-form label { display:grid; gap:8px; color:var(--site-muted); font-size:14px; font-weight:650; }
.rebuilt-form input, .rebuilt-form textarea { width:100%; min-height:46px; box-sizing:border-box; padding:12px 14px; border:1px solid var(--site-line); border-radius:var(--site-radius); background:var(--site-panel); color:var(--site-text); font:inherit; }
.rebuilt-form textarea { min-height:128px; resize:vertical; }
.rebuilt-form .wide { grid-column:1/-1; }
.rebuilt-form .rebuilt-button { justify-self:start; }
.rebuilt-status { min-height:1.5em; color:var(--site-muted); }
.hub-grid { display:grid; grid-template-columns:repeat(2,minmax(0,1fr)); gap:18px; }
.hub-card { display:grid; grid-template-columns:minmax(180px,.8fr) 1.2fr; min-height:230px; overflow:hidden; border:1px solid var(--site-line); border-radius:var(--site-radius); background:var(--site-panel); color:var(--site-text); text-decoration:none; box-shadow:var(--site-shadow); }
.hub-card img { width:100%; height:100%; min-height:230px; object-fit:cover; background:#101b2b; }
.hub-card-copy { display:flex; flex-direction:column; justify-content:center; padding:24px; }
.hub-card-copy small { color:var(--site-accent); font-weight:800; letter-spacing:1px; }
.hub-card-copy h3 { margin:10px 0; font-size:23px; }
.hub-card-copy p { margin:0; color:var(--site-muted); line-height:1.6; }
.pdf-viewer { display:block; width:min(1200px,calc(100% - 32px)); height:min(82vh,1000px); margin:32px auto 72px; border:1px solid var(--site-line); background:white; }
.game-frame { display:block; width:min(1080px,calc(100% - 32px)); height:min(780px,calc(100vh - 120px)); min-height:580px; margin:30px auto 60px; border:1px solid var(--site-line); border-radius:var(--site-radius); background:#111; }
.ro-art { display:block; width:min(100%,950px); max-height:620px; margin:28px 0 0; object-fit:contain; object-position:left center; border-radius:var(--site-radius); }
.restoration-note { padding:16px 18px; border-left:3px solid var(--site-accent-2); background:var(--site-panel); color:var(--site-muted); line-height:1.7; }

body:not(.home-page) main { color:var(--site-text); }
body:not(.home-page) .intro h2, body:not(.home-page) .features h3, body:not(.home-page) .itsm-band h2, body:not(.home-page) .apply-panel h2, body:not(.home-page) .message-board h2 { color:var(--site-text); }
body:not(.home-page) .intro p:not(.section-kicker), body:not(.home-page) .features p, body:not(.home-page) .apply-panel p:not(.section-kicker), body:not(.home-page) .message-board p:not(.section-kicker) { color:var(--site-muted); }
body:not(.home-page) .features article, body:not(.home-page) .itsm-band, body:not(.home-page) .apply-panel, body:not(.home-page) .message-board, body:not(.home-page) .pricing-card, body:not(.home-page) .feature-card, body:not(.home-page) .module-card, body:not(.home-page) .capability-map-card, body:not(.home-page) .governance-loop-grid article, body:not(.home-page) .function-summary article, body:not(.home-page) .whitepaper-facts, body:not(.home-page) .whitepaper-reader, body:not(.home-page) .module-group, body:not(.home-page) .about-capability-grid article, body:not(.home-page) .about-stat, body:not(.home-page) .whitepaper-intro, body:not(.home-page) .whitepaper-note { color:var(--site-text); border-color:var(--site-line); border-radius:var(--site-radius); background:var(--site-panel); box-shadow:var(--site-shadow); }
body:not(.home-page) .itsm-band li, body:not(.home-page) .apply-form input, body:not(.home-page) .apply-form textarea, body:not(.home-page) .message-form input, body:not(.home-page) .message-form textarea { color:var(--site-text); border-color:var(--site-line); border-radius:var(--site-radius); background:var(--site-bg); }
body:not(.home-page) .button.primary { background:linear-gradient(135deg,var(--site-accent),var(--site-accent-2)); }
body:not(.home-page) .section-kicker { color:var(--site-accent); }
body:not(.home-page) .itsm-hero .section-kicker, body:not(.home-page) .feature-detail-hero .section-kicker, body:not(.home-page) .hero .section-kicker { color:#9ad9ff; }
body:not(.home-page) .itsm-hero-copy, body:not(.home-page) .hero-content, body:not(.home-page) .feature-detail-copy { border-radius:var(--site-radius); }
body:not(.home-page) .footer { color:var(--site-muted); border-color:var(--site-line); }
body:not(.home-page) .footer a { color:var(--site-accent); }

html[data-site-theme="minimal"] body:not(.home-page) .hero-media img { filter:saturate(.8) contrast(1.08); }
html[data-site-theme="minimal"] body:not(.home-page) .hero-overlay { background:linear-gradient(90deg,rgba(4,13,24,.66),rgba(4,13,24,.28) 72%),linear-gradient(180deg,rgba(0,0,0,.04),transparent 24%,rgba(0,0,0,.24)); }
html[data-site-theme="apple"] body:not(.home-page) .hero-media img { filter:saturate(.92) contrast(1.04) brightness(.84); }
html[data-site-theme="ink"] body:not(.home-page) .hero-media img { filter:grayscale(.4) saturate(.72) contrast(1.08) brightness(.72); }
html[data-site-theme="ink"] body:not(.home-page) .hero-overlay { background:linear-gradient(90deg,rgba(12,20,17,.76),rgba(13,22,19,.38) 72%),linear-gradient(180deg,rgba(0,0,0,.04),transparent 24%,rgba(0,0,0,.3)); }

html[data-site-theme="minimal"] .rebuilt-hero:before { background-image:linear-gradient(90deg,rgba(4,13,24,.74),rgba(4,13,24,.28)),var(--hero-image); }
html[data-site-theme="apple"] .rebuilt-hero { min-height:520px; }
html[data-site-theme="ink"] .rebuilt-section, html[data-site-theme="ink"] .rebuilt-item { font-family:"Songti SC","Noto Serif CJK SC","STSong",serif; }

@media (max-width:900px) {
  .site-header { align-items:flex-start; flex-direction:column; gap:10px; padding:12px 18px; }
  .site-nav { width:100%; justify-content:flex-start; gap:18px; overflow:visible; flex-wrap:wrap; padding-bottom:5px; }
  .site-menu-panel { left:0; transform:none; }
  .rebuilt-grid { grid-template-columns:repeat(2,minmax(0,1fr)); }
  .rebuilt-pricing { grid-template-columns:repeat(2,minmax(0,1fr)); }
}
@media (max-width:620px) {
  .site-nav { gap:12px 16px; font-size:14px; }
  .site-menu-panel { position:fixed; top:112px; left:10px; width:min(280px,calc(100vw - 20px)); }
  .site-footer { flex-direction:column; }
  .rebuilt-hero { min-height:390px; padding:52px 24px; }
  .rebuilt-hero .lead { font-size:16px; }
  .rebuilt-grid, .rebuilt-pricing, .hub-grid { grid-template-columns:1fr; }
  .hub-card { grid-template-columns:1fr; }
  .hub-card img { height:180px; min-height:180px; }
  .rebuilt-form { grid-template-columns:1fr; }
  .rebuilt-form .wide { grid-column:auto; }
  .rebuilt-section { padding:54px 0; }
  .game-frame { min-height:640px; width:calc(100% - 20px); }
}
