:root {
    --bg-primary: #0A0A0A;
    --bg-panel: #16171A;
    --text-primary: #FAF8F2;
    --text-secondary: #A1A1AA;
    --text-tertiary: #6B6B74;
    --accent: #3B82F6;
    --accent-dim: rgba(59, 130, 246, 0.12);
    --border: rgba(255, 255, 255, 0.08);
    --font-sans: 'General Sans', 'Inter', -apple-system, BlinkMacSystemFont, sans-serif;
    --font-serif: 'Newsreader', Georgia, serif;
    --ease-out: cubic-bezier(0.16, 1, 0.3, 1);
}
* { margin: 0; padding: 0; box-sizing: border-box; }
html { font-size: 16px; -webkit-font-smoothing: antialiased; scroll-behavior: smooth; }
body { font-family: var(--font-sans); background: var(--bg-primary); color: var(--text-primary); line-height: 1.6; }
a { color: inherit; text-decoration: none; }

header { position: fixed; top: 20px; left: 0; right: 0; z-index: 100; display: flex; justify-content: center; }
.header-inner {
    display: flex; align-items: center; gap: 28px;
    background: rgba(0, 0, 0, 0.34);
    backdrop-filter: blur(20px) saturate(140%); -webkit-backdrop-filter: blur(20px) saturate(140%);
    border: 1px solid rgba(255, 255, 255, 0.06);
    box-shadow: 0 10px 40px -15px rgba(0, 0, 0, 0.6); border-radius: 999px; padding: 10px 14px 10px 10px;
}
.logo {
    width: 44px; height: 44px; border-radius: 50%;
    background: rgba(255, 255, 255, 0.1); color: var(--text-primary);
    display: flex; align-items: center; justify-content: center;
    font-weight: 600; font-size: 15px;
    transition: transform .15s cubic-bezier(0.4, 0, 0.2, 1);
}
.logo:hover { transform: scale(1.08); }
nav { display: flex; gap: 22px; align-items: center; }
nav a { font-size: 12px; font-weight: 500; text-transform: uppercase; letter-spacing: 0.14em; color: var(--text-secondary); transition: color .15s ease, transform .15s ease; white-space: nowrap; display: inline-block; }
nav a:hover { color: var(--text-primary); transform: translateY(-1px); }
nav a.active { color: var(--text-primary); }
nav .nav-contact { background: var(--text-primary); color: var(--bg-primary); padding: 8px 16px; border-radius: 999px; font: inherit; font-weight: 600; border: none; cursor: pointer; transition: transform .15s ease; }
nav .nav-contact:hover { transform: scale(1.05); }
.nav-contact-group { position: relative; }
.nav-contact-panel {
    position: absolute; top: 100%; right: 0; margin-top: 10px; min-width: 150px;
    display: flex; flex-direction: column; gap: 2px; padding: 8px;
    background: rgba(22, 23, 26, 0.95); border: 1px solid var(--border); border-radius: 16px;
    opacity: 0; visibility: hidden; pointer-events: none; transform: translateY(-4px);
    transition: opacity .15s ease, transform .15s ease, visibility .15s;
}
.nav-contact-group:hover .nav-contact-panel,
.nav-contact-group:focus-within .nav-contact-panel { opacity: 1; visibility: visible; pointer-events: auto; transform: translateY(0); }
.nav-contact-panel a { padding: 8px 10px; border-radius: 10px; }
.nav-contact-panel a:hover { background: rgba(255,255,255,0.06); transform: none; }

.rs-wrap { max-width: 1040px; margin: 0 auto; padding: 128px 24px 0; }
.rs-back { display: inline-flex; align-items: center; gap: 8px; font-size: 13px; font-weight: 500; color: var(--text-secondary); margin-bottom: 28px; transition: color .2s; }
.rs-back:hover { color: var(--text-primary); }
.rs-back svg { width: 16px; height: 16px; }

.rs-hero { text-align: center; margin-bottom: 36px; }
.rs-eyebrow { font-size: 12px; font-weight: 700; text-transform: uppercase; letter-spacing: 0.14em; color: var(--accent); margin-bottom: 14px; display: inline-block; }
.rs-hero h1 { font-weight: 500; letter-spacing: -0.03em; font-size: clamp(2rem, 5vw, 2.8rem); margin-bottom: 16px; }
.rs-lede { font-size: 16px; line-height: 1.7; color: var(--text-secondary); max-width: 540px; margin: 0 auto; }

.rs-tabs { display: flex; justify-content: center; gap: 8px; margin-bottom: 32px; flex-wrap: wrap; }
.rs-tab {
    font-family: inherit; font-size: 12px; font-weight: 600; text-transform: uppercase; letter-spacing: 0.08em;
    color: var(--text-secondary); background: rgba(255, 255, 255, 0.04); border: 1px solid var(--border);
    padding: 10px 18px; border-radius: 999px; cursor: pointer; transition: all .2s ease;
}
.rs-tab:hover { color: var(--text-primary); border-color: rgba(255,255,255,0.2); }
.rs-tab.is-active { background: var(--text-primary); color: var(--bg-primary); border-color: var(--text-primary); }

.rs-stage {
    border-radius: 0;
    padding: 48px 24px;
    display: flex; align-items: center; justify-content: center;
    min-height: 340px;
    transition: background .3s ease;
    overflow: hidden;
}
.rs-window { width: min(480px, 100%); overflow: hidden; }
.rs-titlebar { display: flex; align-items: center; gap: 8px; height: 30px; padding: 0 10px; }
.rs-traffic { display: flex; gap: 7px; }
.rs-dot { width: 12px; height: 12px; border-radius: 50%; display: inline-block; }
.rs-title { flex: 1; text-align: center; font-size: 12px; font-weight: 600; }
.rs-titlebar-spacer { width: 36px; }
.rs-toolbar { display: flex; align-items: center; gap: 8px; padding: 8px 10px; }
.rs-tbtn { font-family: inherit; font-size: 11px; cursor: pointer; }
.rs-address { flex: 1; font-size: 11px; padding: 4px 8px; }
.rs-content { padding: 18px; min-height: 160px; }
.rs-icon-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; }
.rs-file { display: flex; flex-direction: column; align-items: center; gap: 6px; text-align: center; }
.rs-file span { font-size: 11px; color: #222; }
.rs-file-glyph { width: 34px; height: 34px; }
.rs-statusbar { font-size: 11px; padding: 4px 10px; }

.rs-actions { text-align: center; margin: 32px 0 56px; }
.rs-download {
    display: inline-flex; align-items: center; gap: 10px;
    font-family: inherit; font-size: 14px; font-weight: 600;
    background: var(--text-primary); color: var(--bg-primary);
    border: none; border-radius: 999px; padding: 14px 26px; cursor: pointer;
    transition: transform .2s ease;
}
.rs-download:hover { transform: scale(1.04); }
.rs-download svg { width: 18px; height: 18px; }
.rs-note { font-size: 12px; color: var(--text-tertiary); margin-top: 12px; }

.rs-about { border-top: 1px solid var(--border); padding: 40px 0 80px; }
.rs-about h2 { font-weight: 500; letter-spacing: -0.02em; font-size: 22px; margin-bottom: 14px; }
.rs-about p { font-size: 16px; line-height: 1.8; color: var(--text-secondary); max-width: 760px; }

footer { border-top: 1px solid var(--border); margin-top: 24px; }
.footer-inner { max-width: 1040px; margin: 0 auto; padding: 40px 24px; display: flex; justify-content: space-between; align-items: center; flex-wrap: wrap; gap: 16px; }
.footer-name { font-weight: 700; font-size: 14px; }
.footer-status { font-size: 13px; color: var(--text-tertiary); }
.footer-links { display: flex; gap: 24px; }
.footer-links a { font-size: 13px; color: var(--text-secondary); }
.footer-links a:hover { color: var(--accent); }

/* ========================================================== */
/* AQUA — Mac OS X, 2001 */
/* ========================================================== */
.theme-aqua {
    background: radial-gradient(ellipse at 30% 15%, #bfe3fb 0%, #6fb4e8 35%, #2a6fb0 75%, #1c4a7a 100%);
    font-family: -apple-system, BlinkMacSystemFont, 'Helvetica Neue', Arial, sans-serif;
}
.theme-aqua .rs-window { border-radius: 10px; box-shadow: 0 30px 60px -15px rgba(0,0,0,0.5); border: 1px solid #8a8a8a; }
.theme-aqua .rs-titlebar { background: linear-gradient(180deg, #f3f3f3 0%, #d6d6d6 45%, #b9b9b9 46%, #e2e2e2 100%); border-bottom: 1px solid #9a9a9a; }
.theme-aqua .rs-title { color: #333; }
.theme-aqua .rs-dot-close { background: radial-gradient(circle at 35% 30%, #ff8a79, #e0443e); box-shadow: inset 0 0 0 1px rgba(0,0,0,0.15); }
.theme-aqua .rs-dot-min { background: radial-gradient(circle at 35% 30%, #ffd479, #e0a010); box-shadow: inset 0 0 0 1px rgba(0,0,0,0.15); }
.theme-aqua .rs-dot-zoom { background: radial-gradient(circle at 35% 30%, #7bdc6a, #27a81e); box-shadow: inset 0 0 0 1px rgba(0,0,0,0.15); }
.theme-aqua .rs-toolbar { background: linear-gradient(180deg, #eef4fb, #cddcea); border-bottom: 1px solid #a9bccb; }
.theme-aqua .rs-tbtn { background: linear-gradient(180deg, #fbfdff, #dbe7f3); border: 1px solid #a9bccb; border-radius: 999px; padding: 4px 14px; color: #1d4e7a; }
.theme-aqua .rs-address { background: #fff; border: 1px solid #a9bccb; border-radius: 999px; color: #555; }
.theme-aqua .rs-content { background: repeating-linear-gradient(180deg, #ffffff 0px, #ffffff 17px, #eef3f8 18px); }
.theme-aqua .rs-file-glyph { background: linear-gradient(160deg, #fdfdfd, #d8d8d8); border: 1px solid #b8b8b8; border-radius: 6px; }
.theme-aqua .rs-folder { background: linear-gradient(160deg, #6fc3ff, #2a7fd4); border-color: #1d5fa0; }
.theme-aqua .rs-trash { background: linear-gradient(160deg, #d8d8d8, #a8a8a8); border-radius: 50% 50% 10% 10%; }
.theme-aqua .rs-statusbar { background: #e7eef5; color: #556; border-top: 1px solid #c3d2e0; }

/* ========================================================== */
/* PLATINUM — Mac OS 9 */
/* ========================================================== */
.theme-platinum {
    background: linear-gradient(180deg, #cfd2dc 0%, #9a9eae 100%);
    font-family: Geneva, Verdana, Arial, sans-serif;
}
.theme-platinum .rs-window { border-radius: 5px; border: 1px solid #000; box-shadow: 4px 4px 0 rgba(0,0,0,0.25); }
.theme-platinum .rs-titlebar {
    background: repeating-linear-gradient(180deg, #e8e8ec 0px, #e8e8ec 2px, #c7c7cf 3px, #c7c7cf 4px);
    border-bottom: 1px solid #000;
}
.theme-platinum .rs-title { background: #cfd2dc; padding: 1px 10px; color: #111; border: 1px solid #777; }
.theme-platinum .rs-dot { border-radius: 2px; border: 1px solid #333; background: #d6d6de; }
.theme-platinum .rs-dot-close { background: #d6d6de; }
.theme-platinum .rs-dot-min { display: none; }
.theme-platinum .rs-dot-zoom { margin-left: auto; }
.theme-platinum .rs-toolbar { background: #d6d8e0; border-bottom: 1px solid #8f93a0; }
.theme-platinum .rs-tbtn { background: #e3e5ec; border: 1px solid #777; border-radius: 4px; padding: 3px 12px; color: #111; }
.theme-platinum .rs-address { background: #fff; border: 1px solid #777; border-radius: 3px; color: #333; }
.theme-platinum .rs-content { background: #ececf0; }
.theme-platinum .rs-file-glyph { background: #dcdce6; border: 1px solid #6b6f80; }
.theme-platinum .rs-folder { background: #a9c6ea; border-color: #4f6f99; }
.theme-platinum .rs-trash { background: #c6c6ce; border-radius: 3px 3px 10px 10px; }
.theme-platinum .rs-statusbar { background: #d6d8e0; color: #333; border-top: 1px solid #8f93a0; }

/* ========================================================== */
/* WINDOWS 95 */
/* ========================================================== */
.theme-win95 {
    background: #008080;
    font-family: Tahoma, Verdana, Arial, sans-serif;
}
.theme-win95 .rs-window { background: #c0c0c0; border-style: outset; border-width: 2px; border-color: #ffffff #000000 #000000 #ffffff; border-radius: 0; }
.theme-win95 .rs-titlebar { background: linear-gradient(90deg, #000080, #1084d0); border-radius: 0; height: 26px; }
.theme-win95 .rs-title { color: #fff; font-weight: 700; text-align: left; font-size: 12px; }
.theme-win95 .rs-dot { border-radius: 0; width: 16px; height: 14px; border-style: outset; border-width: 1px; border-color: #ffffff #000000 #000000 #ffffff; background: #c0c0c0; }
.theme-win95 .rs-dot-close { order: 3; }
.theme-win95 .rs-dot-min { order: 1; }
.theme-win95 .rs-dot-zoom { order: 2; }
.theme-win95 .rs-traffic { order: 3; margin-left: auto; }
.theme-win95 .rs-title { order: 1; flex: 1; text-align: left; padding-left: 4px; }
.theme-win95 .rs-titlebar-spacer { display: none; }
.theme-win95 .rs-toolbar { background: #c0c0c0; border-bottom: 1px solid #808080; }
.theme-win95 .rs-tbtn { background: #c0c0c0; border-style: outset; border-width: 1px; border-color: #ffffff #000000 #000000 #ffffff; padding: 3px 10px; color: #000; border-radius: 0; }
.theme-win95 .rs-address { background: #fff; border-style: inset; border-width: 1px; border-color: #000000 #ffffff #ffffff #000000; border-radius: 0; color: #000; }
.theme-win95 .rs-content { background: #fff; }
.theme-win95 .rs-file-glyph { background: #ffe680; border: 1px solid #000; border-radius: 0; }
.theme-win95 .rs-folder { background: #ffd34d; border-color: #7a5c00; }
.theme-win95 .rs-trash { background: #e0e0e0; border-radius: 0; }
.theme-win95 .rs-statusbar { background: #c0c0c0; color: #000; border-top: 1px solid #808080; border-style: inset; border-width: 1px; }

@media (max-width: 768px) {
    .header-inner { gap: 14px; padding: 8px 10px 8px 8px; }
    nav { gap: 12px; }
    .rs-wrap { padding: 108px 20px 0; }
    .rs-icon-grid { grid-template-columns: repeat(2, 1fr); }
    .footer-inner { flex-direction: column; text-align: center; }
}
