:root {
    --bg: #0a0a0a;
    --text: #ffffff;
    --subtle: #888888;
    --accent: #00ff9d;
    --accent-dark: #00cc7d;
    --surface: #111111;
    --surface-light: #1a1a1a;
    --border: #222222;
    --gradient: linear-gradient(135deg, var(--accent), #00ffff);
    --card-shadow: 0 8px 32px -8px rgba(0, 255, 157, 0.15);
}

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

body {
    font-family: 'Space Mono', monospace;
    background: var(--bg);
    color: var(--text);
    line-height: 1.6;
    -webkit-font-smoothing: antialiased;
}

.wrap {
    max-width: 800px;
    margin: 0 auto;
    padding: 40px 20px;
}

header {
    margin-bottom: 60px;
    animation: fadeInDown 0.8s ease;
    text-align: center;
}

header h1 {
    font-size: clamp(2rem, 5vw, 3.5rem);
    margin-bottom: 20px;
    background: var(--gradient);
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
    letter-spacing: -0.02em;
    font-weight: 700;
}

header p {
    color: var(--subtle);
    font-size: 1.1rem;
}

.content-section {
    background: var(--surface);
    border: 1px solid var(--border);
    border-radius: 24px;
    padding: 30px;
    margin-bottom: 30px;
    animation: fadeInUp 0.5s ease;
}

.content-section h2 {
    color: var(--accent);
    margin-bottom: 20px;
    font-size: 1.5rem;
}

.content-section p {
    margin-bottom: 20px;
}

.content-section ul {
    list-style: none;
    margin-bottom: 20px;
}

.content-section ul li {
    position: relative;
    padding-left: 25px;
    margin-bottom: 10px;
}

.content-section ul li::before {
    content: '';
    position: absolute;
    left: 0;
    top: 10px;
    width: 8px;
    height: 8px;
    background: var(--accent);
    border-radius: 50%;
}

.content-section a {
    color: var(--accent);
    text-decoration: none;
    transition: opacity 0.3s ease;
}

.content-section a:hover {
    opacity: 0.8;
}

footer {
    margin-top: 60px;
    padding-top: 60px;
    border-top: 1px solid var(--border);
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.logo {
    display: flex;
    align-items: center;
    gap: 15px;
}

.logo span {
    font-size: 0.9rem;
}

.logo span:first-child {
    color: var(--subtle);
}

.logo .brand {
    color: var(--text);
    position: relative;
    padding-left: 15px;
}

.logo .brand::before {
    content: '';
    position: absolute;
    left: 0;
    top: 50%;
    transform: translateY(-50%);
    width: 1px;
    height: 15px;
    background: var(--border);
}

.links {
    display: flex;
    gap: 20px;
}

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

.links a:hover {
    color: var(--text);
}

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

@keyframes fadeInDown {
    from {
        opacity: 0;
        transform: translateY(-20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@media (max-width: 768px) {
    .wrap {
        padding: 20px;
    }
    
    .content-section {
        padding: 20px;
    }
    
    footer {
        flex-direction: column;
        gap: 20px;
        text-align: center;
    }
    
    .logo {
        flex-direction: column;
        gap: 10px;
    }
    
    .logo .brand::before {
        display: none;
    }
    
    .links {
        justify-content: center;
    }
}

@media (max-width: 480px) {
    header h1 {
        font-size: 1.8rem;
    }
    
    header p {
        font-size: 1rem;
    }
    
    .content-section h2 {
        font-size: 1.3rem;
    }
}

.code-proof {
    background: var(--surface-light);
    border-radius: 12px;
    padding: 20px;
    margin: 20px 0;
}

.code-proof h3 {
    color: var(--accent);
    font-size: 1.1rem;
    margin-bottom: 15px;
}

.code-proof pre {
    background: var(--bg);
    border-radius: 8px;
    padding: 15px;
    overflow-x: auto;
    margin-bottom: 20px;
}

.code-proof code {
    font-family: 'Space Mono', monospace;
    font-size: 0.9rem;
    color: var(--text);
}

.code-explanation {
    color: var(--subtle);
    font-size: 0.9rem;
    margin-bottom: 10px;
}

.code-proof .comment { color: var(--subtle); }
.code-proof .keyword { color: var(--accent); }
.code-proof .string { color: #ff9d00; }
.code-proof .function { color: #00ffff; }