/* COLORS: edit these to change the whole site. */
:root {
    --background: #0d0d14;
    --surface: #161620;
    --text: #f2eff7;
    --muted: #aaa6b7;
    --pink: #f47fff;
    --cyan: #30d5ff;
    --border: #383443;
    --sidebar: 270px;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
    margin: 0;
    background: var(--background);
    color: var(--text);
    font-family: "Segoe UI", Arial, sans-serif;
    line-height: 1.6;
}
::selection { background: var(--pink); color: var(--background); }

/* NAVIGATION: same header, now a sidebar on large screens. */
.topbar {
    position: fixed;
    inset: 0 auto 0 0;
    width: var(--sidebar);
    padding: 40px 24px;
    background: var(--surface);
    border-right: 1px solid var(--border);
    display: flex;
    flex-direction: column;
    gap: 40px;
    z-index: 1000;
}
.topbar-name {
    font-size: 24px;
    font-weight: 750;
    line-height: 1.2;
    letter-spacing: -1px;
}
.topbar-name span { display: block; color: var(--pink); }
.topbar-links { display: flex; flex-direction: column; gap: 14px; }
.topbar-links a {
    display: flex;
    align-items: center;
    gap: 18px;
    padding: 12px 16px;
    background: var(--background);
    border: 1px solid var(--border);
    border-radius: 3px;
    box-shadow: 4px 4px 0 #07070c;
    color: var(--text);
    font: 15px/1.5 Consolas, monospace;
    text-decoration: none;
    transition: color .2s, border-color .2s, transform .2s;
}
.topbar-links a span { color: var(--muted); font-size: 12px; }
.topbar-links a:hover {
    color: var(--cyan);
    border-color: var(--cyan);
    transform: translateX(3px);
}
a:focus-visible { outline: 2px solid var(--cyan); outline-offset: 5px; }

/* MAIN WEBSITE */
.main-page { margin-left: var(--sidebar); }
.hero, .features, .download-section {
    position: relative;
    min-height: 100vh;
    padding: 80px clamp(28px, 6vw, 100px);
    border-bottom: 1px solid var(--border);
    scroll-margin-top: 0;
}
.hero, .download-section {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    justify-content: center;
}
.section-label {
    margin-bottom: 24px;
    color: var(--cyan);
    font: 13px/1.5 Consolas, monospace;
    letter-spacing: 2px;
    text-transform: uppercase;
}

/* HOME */
.hero {
    background: radial-gradient(ellipse at top right, #f47fff0a, transparent 65%);
}
.name {
    margin: 0;
    font-size: clamp(42px, 6.5vw, 100px);
    font-weight: 800;
    line-height: 1.05;
    letter-spacing: -2px;
    overflow-wrap: anywhere;
}
.name span { display: block; color: var(--pink); }
.subtitle {
    max-width: 540px;
    margin-top: 30px;
    padding-left: 18px;
    border-left: 3px solid var(--cyan);
    color: var(--muted);
    font-size: 18px;
}
.scroll-link {
    margin-top: 48px;
    color: var(--text);
    font: 14px/1.5 Consolas, monospace;
    text-decoration: none;
}
.scroll-link:hover { color: var(--cyan); }

/* FEATURES AND DOWNLOAD: ready for your own content. */
.features { background: var(--surface); }
.features h2, .download-section h2 {
    margin: 0 0 32px;
    font-size: clamp(32px, 5vw, 64px);
    line-height: 1.15;
    letter-spacing: -1.5px;
}
.features h2::after, .download-section h2::after {
    content: "";
    display: block;
    width: 48px;
    height: 4px;
    margin-top: 22px;
    background: var(--pink);
}
.download-section h2::after { background: var(--cyan); }
.download-section p { color: var(--muted); font-size: 18px; }

/* THIN COPYRIGHT STRIP */
.footer {
    margin-left: var(--sidebar);
    padding: 14px 24px;
    background: var(--surface);
    color: var(--muted);
    text-align: center;
    font-size: 13px;
}

/* The current page is highlighted in the navigation. */
.topbar-links a[aria-current="page"] {
    color: var(--pink);
    border-color: var(--pink);
    background: #f47fff08;
}
/* Keep longer menus usable on shorter screens. */
.topbar { overflow-y: auto; }
.page-content { width: 100%; max-width: 850px; margin-top: 40px; }
.page-content p { color: var(--muted); font-size: 18px; }
.page-content a { color: var(--cyan); }

/* SLIDING SIDEBAR: animation timing is controlled here. */
:root { --slide-time: 480ms; --slide-ease: cubic-bezier(.22, 1, .36, 1); }
.topbar {
    height: 100dvh;
    padding-top: 94px;
    gap: 30px;
    transition: transform var(--slide-time) var(--slide-ease), box-shadow var(--slide-time);
}
.nav-heading {
    margin: 0 0 14px;
    color: var(--muted);
    font: 12px/1.5 Consolas, monospace;
    text-transform: uppercase;
    letter-spacing: 2px;
}
.section-navigation { border-top: 1px solid var(--border); padding-top: 25px; }
.section-links { gap: 5px; }
.section-links a {
    border: 0;
    border-left: 2px solid var(--border);
    border-radius: 0;
    box-shadow: none;
    background: transparent;
    padding: 8px 14px;
    color: var(--muted);
    font-family: "Segoe UI", Arial, sans-serif;
}
.section-links a:hover { border-color: var(--cyan); }
.menu-toggle { display: none; }
.js .menu-toggle {
    display: flex;
    position: fixed;
    top: 18px;
    left: 20px;
    z-index: 1100;
    align-items: center;
    justify-content: center;
    gap: 12px;
    min-height: 44px;
    padding: 10px 14px;
    color: var(--text);
    background: var(--surface);
    border: 1px solid var(--border);
    border-radius: 8px;
    font: 14px/1.5 "Segoe UI", Arial, sans-serif;
    cursor: pointer;
    box-shadow: 0 4px 18px #0003;
}
.menu-toggle:hover { border-color: var(--pink); }
.menu-toggle:focus-visible { outline: 2px solid var(--cyan); outline-offset: 4px; }
.menu-icon { display: flex; flex-direction: column; justify-content: center; gap: 5px; width: 20px; height: 20px; }
.menu-icon i { display: block; width: 20px; height: 2px; background: var(--pink); transition: transform .3s, opacity .2s; }
.sidebar-open .menu-icon i:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.sidebar-open .menu-icon i:nth-child(2) { opacity: 0; }
.sidebar-open .menu-icon i:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }
.js .topbar { transform: translateX(-105%); }
.js .main-page, .js .footer { margin-left: 0; transition: margin-left var(--slide-time) var(--slide-ease); }
.js.sidebar-open .topbar { transform: translateX(0); box-shadow: 12px 0 36px #0002; }
.js.sidebar-open .main-page, .js.sidebar-open .footer { margin-left: var(--sidebar); }
.js.sidebar-open .topbar-links a { animation: link-arrive .45s var(--slide-ease) both; animation-delay: calc(var(--order, 0) * 35ms); }
@keyframes link-arrive { from { opacity: 0; translate: -18px 0; } to { opacity: 1; translate: 0 0; } }
.sidebar-backdrop { display: none; }

/* Mobile: overlay the page instead of squeezing its content. */
@media (max-width: 800px) {
    :root { --sidebar: min(300px, calc(100vw - 56px)); }
    .topbar { position: relative; width: 100%; height: auto; padding: 24px; }
    .main-page, .footer { margin-left: 0; }
    .js .topbar { position: fixed; width: var(--sidebar); height: 100dvh; padding: 94px 24px 30px; }
    .js.sidebar-open .main-page, .js.sidebar-open .footer { margin-left: 0; }
    .hero, .features, .download-section { min-height: 85vh; padding: 90px 24px 64px; scroll-margin-top: 75px; }
    .name { font-size: clamp(42px, 10vw, 76px); }
    .sidebar-backdrop {
        display: block;
        position: fixed;
        inset: 0;
        z-index: 900;
        background: #070710a6;
        backdrop-filter: blur(4px);
        opacity: 0;
        visibility: hidden;
        transition: opacity var(--slide-time), visibility var(--slide-time);
    }
    .sidebar-open .sidebar-backdrop { opacity: 1; visibility: visible; }
    .sidebar-open body { overflow: hidden; }
}
@media (prefers-reduced-motion: reduce) {
    html { scroll-behavior: auto; }
    *, *::before, *::after { animation: none !important; transition: none !important; }
}

.sidebar-initializing *, .sidebar-initializing *::before, .sidebar-initializing *::after {
    transition: none !important;
    animation: none !important;
}
.sidebar-initializing .topbar-links a { opacity: 1 !important; translate: 0 0 !important; }

.menu-icon {
    display: none !important;
}