@import url('https://fonts.googleapis.com/css2?family=JetBrains+Mono:wght@300;400;500;700&family=Inter:wght@300;400;500;600;700&display=swap');

:root {
    --bg-primary: #0a0a0f;
    --bg-secondary: #111118;
    --bg-tertiary: #1a1a24;
    --accent-primary: #00d4ff;
    --accent-secondary: #7c3aed;
    --text-primary: #ffffff;
    --text-secondary: #a1a1aa;
    --text-muted: #71717a;
    --border-color: rgba(255, 255, 255, 0.1);
    --glow-color: rgba(0, 212, 255, 0.5);
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, sans-serif;
    background: var(--bg-primary);
    min-height: 100vh;
    color: var(--text-primary);
    overflow-x: hidden;
    position: relative;
    line-height: 1.6;
}

.topbar {
    position: sticky;
    top: 0;
    z-index: 4;
    backdrop-filter: blur(12px);
    background: rgba(10, 10, 15, 0.7);
    border-bottom: 1px solid var(--border-color);
}

.topbar-inner {
    max-width: 1100px;
    margin: 0 auto;
    padding: 0.75rem 2rem;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 1rem;
}

.topbar-brand {
    font-weight: 600;
    letter-spacing: 0.02em;
    color: var(--text-primary);
}

.topbar-links {
    display: flex;
    flex-wrap: wrap;
    gap: 0.9rem;
}

.topbar-links a {
    color: var(--text-secondary);
    text-decoration: none;
    font-size: 0.9rem;
    transition: color 0.2s ease;
}

.topbar-links a:hover,
.topbar-links a:focus-visible {
    color: var(--text-primary);
}

.stars {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    pointer-events: none;
    z-index: 1;
}

.star {
    position: absolute;
    background: white;
    border-radius: 50%;
    animation: twinkle 3s infinite;
}

@keyframes twinkle {
    0%, 100% { opacity: 0.5; }
    50% { opacity: 1; }
}

.container {
    position: relative;
    z-index: 2;
    max-width: 1100px;
    margin: 0 auto;
    padding: 2rem;
    display: flex;
    flex-direction: column;
    align-items: center;
}

header {
    text-align: left;
    margin-bottom: 2rem;
    animation: fadeInUp 0.6s ease-out;
    position: relative;
    margin-top: 60px;
}

.center-title header {
    text-align: center;
}

.center-content .content {
    align-items: center;
    text-align: center;
}

.center-content .section {
    width: 100%;
    margin-left: auto;
    margin-right: auto;
}

.center-content .specs {
    margin-left: auto;
    margin-right: auto;
}

.center-content .spec-list {
    text-align: center;
    margin: 0 auto;
}

.center-content .spec-list li {
    justify-content: center;
    gap: 0.5rem;
}

.center-content .subnote {
    text-align: center;
}

.side-menu {
    position: fixed;
    right: 2rem;
    top: 50%;
    transform: translateY(-50%);
    z-index: 3;
    display: flex;
    flex-direction: column;
    gap: 0.9rem;
}

.menu-item {
    display: inline-flex;
    align-items: center;
    gap: 0.75rem;
    flex-direction: row-reverse;
    text-decoration: none;
    color: var(--text-secondary);
    font-size: 0.9rem;
    letter-spacing: 0.01em;
    transition: color 0.2s ease;
    padding: 0.7rem 1rem;
    border-radius: 999px;
    min-width: 210px;
}

.menu-line {
    width: 26px;
    height: 2px;
    background: var(--text-secondary);
    border-radius: 999px;
    transition: width 0.2s ease, background 0.2s ease;
}

.menu-text {
    opacity: 0;
    transform: translateX(-6px);
    transition: opacity 0.2s ease, transform 0.2s ease;
    white-space: nowrap;
}

.menu-item:hover,
.menu-item:focus-visible {
    color: var(--text-primary);
}

.menu-item:hover .menu-line,
.menu-item:focus-visible .menu-line {
    width: 70px;
    background: var(--text-primary);
}

.menu-item:hover .menu-text,
.menu-item:focus-visible .menu-text {
    opacity: 1;
    transform: translateX(0);
}

h1 {
    font-size: 2.6rem;
    font-weight: 700;
    margin-bottom: 0.25rem;
}

.subtitle {
    color: var(--text-secondary);
    font-size: 1rem;
}

.content {
    width: 100%;
    max-width: 760px;
    display: flex;
    flex-direction: column;
    gap: 3rem;
}

.specs {
    width: 100%;
    max-width: 700px;
    animation: fadeInUp 0.7s ease-out;
}

.section-title {
    font-size: 1.6rem;
    font-weight: 700;
    margin-bottom: 1.25rem;
    color: var(--text-primary);
}


.section {
    padding: 1rem 1.25rem 1.25rem;
    border: 1px solid rgba(255, 255, 255, 0.08);
    border-radius: 0.9rem;
    background: rgba(255, 255, 255, 0.04);
    backdrop-filter: blur(14px) saturate(120%);
    -webkit-backdrop-filter: blur(14px) saturate(120%);
}

.section:first-of-type {
    margin-top: 0;
}

.spec-list {
    list-style: none;
    padding: 0;
    margin: 0;
    border-top: 1px solid var(--border-color);
}

.spec-list li {
    color: var(--text-secondary);
    padding: 0.75rem 0;
    display: flex;
    justify-content: center;
    gap: 0.5rem;
    text-align: center;
    border-bottom: 1px solid var(--border-color);
}

.spec-list strong {
    color: var(--text-primary);
    font-weight: 600;
}

.subnote {
    margin: 0.6rem 0 1.25rem;
    padding: 0.45rem 0.85rem;
    border: 1px solid rgba(255, 255, 255, 0.08);
    border-radius: 0.7rem;
    background: rgba(255, 255, 255, 0.035);
    backdrop-filter: blur(10px) saturate(120%);
    -webkit-backdrop-filter: blur(10px) saturate(120%);
    color: var(--text-secondary);
    font-size: 0.9rem;
}


footer {
    text-align: left;
    margin-top: 0;
    padding: 0;
    opacity: 0.7;
    animation: fadeInUp 0.8s ease-out 0.2s both;
}

.footer-text {
    color: var(--text-secondary);
}

body.light-theme {
    --bg-primary: #f5f5f7;
    --bg-secondary: #ffffff;
    --bg-tertiary: #e5e5e7;
    --text-primary: #1d1d1f;
    --text-secondary: #6e6e73;
    --text-muted: #86868b;
    --border-color: rgba(0, 0, 0, 0.1);
}

@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@media (max-width: 768px) {
    header {
        margin-top: 40px;
    }

    h1 {
        font-size: 2.2rem;
    }

    .side-menu {
        display: none;
    }

    .content {
        max-width: 100%;
    }
}

.outline-list,
.wiki-links {
    list-style: disc;
    margin: 0;
    padding-left: 1.25rem;
    color: var(--text-secondary);
    display: grid;
    gap: 0.5rem;
}

.wiki-links {
    list-style: none;
    padding-left: 0;
}

.wiki-links a {
    color: var(--text-secondary);
    text-decoration: none;
    border-bottom: 1px solid transparent;
    transition: color 0.2s ease, border-color 0.2s ease;
}

.wiki-links a:hover,
.wiki-links a:focus-visible {
    color: var(--text-primary);
    border-color: var(--text-primary);
}
