:root {
    --bg: #0a0a0b;
    --bg-elevated: #131316;
    --border: #26262b;
    --text: #e5e5e7;
    --text-dim: #8b8b92;
    --text-muted: #5c5c63;
    --accent: #a78bfa;
    --accent-dim: #7c6bc9;
}

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

html {
    scroll-behavior: smooth;
}

body {
    background: var(--bg);
    color: var(--text);
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
    font-size: 16px;
    line-height: 1.65;
    -webkit-font-smoothing: antialiased;
    min-height: 100vh;
}

.mono {
    font-family: 'JetBrains Mono', ui-monospace, 'SF Mono', Menlo, monospace;
    color: var(--accent);
}

.container {
    max-width: 720px;
    margin: 0 auto;
    padding: 80px 24px 60px;
}

/* Hero */
.hero {
    margin-bottom: 100px;
}

.status {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 6px 12px;
    background: var(--bg-elevated);
    border: 1px solid var(--border);
    border-radius: 999px;
    font-size: 13px;
    color: var(--text-dim);
    margin-bottom: 32px;
}

.dot {
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background: #22c55e;
    box-shadow: 0 0 0 4px rgba(34, 197, 94, 0.15);
    animation: pulse 2s ease-in-out infinite;
}

@keyframes pulse {
    0%, 100% { opacity: 1; }
    50% { opacity: 0.6; }
}

.hero h1 {
    font-size: clamp(36px, 6vw, 56px);
    font-weight: 700;
    letter-spacing: -0.02em;
    margin-bottom: 16px;
    line-height: 1.1;
}

.tagline {
    font-size: 18px;
    color: var(--text-dim);
    margin-bottom: 12px;
}

.tagline-sub {
    font-size: 14px;
    color: var(--text-muted);
    margin-bottom: 40px;
}

.nav {
    display: flex;
    flex-wrap: wrap;
    gap: 24px;
    font-size: 14px;
}

.nav a {
    color: var(--text-dim);
    text-decoration: none;
    transition: color 0.15s ease;
    border-bottom: 1px solid transparent;
    padding-bottom: 2px;
}

.nav a:hover {
    color: var(--text);
    border-bottom-color: var(--accent);
}

/* Sections */
.section {
    margin-bottom: 80px;
}

.section h2 {
    font-size: 22px;
    font-weight: 600;
    margin-bottom: 24px;
    display: flex;
    align-items: baseline;
    gap: 12px;
    letter-spacing: -0.01em;
}

.section h2 .mono {
    font-size: 14px;
    color: var(--text-muted);
    font-weight: 400;
}

.section p {
    color: var(--text-dim);
    margin-bottom: 16px;
}

.section p strong {
    color: var(--text);
    font-weight: 500;
}

/* Stack */
.stack {
    display: flex;
    flex-direction: column;
    gap: 20px;
    margin-top: 8px;
}

.stack-row {
    display: grid;
    grid-template-columns: 90px 1fr;
    gap: 16px;
    align-items: start;
}

.stack-label {
    font-size: 12px;
    color: var(--text-muted);
    text-transform: uppercase;
    letter-spacing: 0.08em;
    padding-top: 8px;
}

.chips {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
}

.chip {
    display: inline-flex;
    align-items: center;
    padding: 6px 12px;
    background: var(--bg-elevated);
    border: 1px solid var(--border);
    border-radius: 999px;
    font-size: 13px;
    color: var(--text);
    transition: border-color 0.15s ease, color 0.15s ease;
}

.chip:hover {
    border-color: var(--accent-dim);
    color: var(--accent);
}

@media (max-width: 600px) {
    .stack-row {
        grid-template-columns: 1fr;
        gap: 8px;
    }

    .stack-label {
        padding-top: 0;
    }
}

/* Projects */
.projects {
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.project {
    padding: 24px;
    background: var(--bg-elevated);
    border: 1px solid var(--border);
    border-radius: 12px;
    transition: border-color 0.2s ease, transform 0.2s ease;
}

.project:hover {
    border-color: var(--accent-dim);
    transform: translateY(-2px);
}

.project h3 {
    font-size: 17px;
    font-weight: 600;
    margin-bottom: 6px;
}

.project-meta {
    font-size: 13px;
    color: var(--text-muted) !important;
    margin-bottom: 12px;
}

.project p {
    font-size: 14px;
    margin-bottom: 12px;
}

.project-link {
    font-family: 'JetBrains Mono', monospace;
    font-size: 13px;
    color: var(--accent);
    text-decoration: none;
    transition: color 0.15s ease;
}

.project-link:hover {
    color: var(--text);
}

/* Contacts */
.contacts {
    list-style: none;
    margin-top: 24px;
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.contacts li {
    display: flex;
    align-items: baseline;
    gap: 16px;
    padding: 12px 0;
    border-bottom: 1px solid var(--border);
}

.contact-label {
    font-size: 12px;
    color: var(--text-muted);
    min-width: 80px;
    text-transform: uppercase;
    letter-spacing: 0.08em;
}

.contacts a {
    color: var(--text);
    text-decoration: none;
    border-bottom: 1px solid var(--border);
    transition: border-color 0.15s ease;
}

.contacts a:hover {
    border-bottom-color: var(--accent);
}

/* Footer */
.footer {
    margin-top: 100px;
    padding-top: 24px;
    border-top: 1px solid var(--border);
    font-size: 13px;
    color: var(--text-muted);
}

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

/* Mobile */
@media (max-width: 600px) {
    .container {
        padding: 48px 20px 40px;
    }

    .hero {
        margin-bottom: 64px;
    }

    .section {
        margin-bottom: 56px;
    }

    .contacts li {
        flex-direction: column;
        gap: 4px;
    }

    .contact-label {
        min-width: 0;
    }
}

/* Selection */
::selection {
    background: var(--accent);
    color: var(--bg);
}
