/* ── Reset & base ─────────────────────────────────────────── */
*, *::before, *::after {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

:root {
    --bg:        #0d1117;
    --bg-card:   #161b22;
    --border:    #30363d;
    --text:      #c9d1d9;
    --text-muted:#8b949e;
    --accent:    #58a6ff;
    --accent-dim:#1f6feb;
    --green:     #3fb950;
    --font-mono: "SFMono-Regular", Consolas, "Liberation Mono", Menlo, monospace;
    --font-sans: -apple-system, BlinkMacSystemFont, "Segoe UI", Helvetica, Arial, sans-serif;
}

html {
    scroll-behavior: smooth;
}

body {
    background-color: var(--bg);
    color: var(--text);
    font-family: var(--font-sans);
    font-size: 16px;
    line-height: 1.6;
}

a {
    color: var(--accent);
    text-decoration: none;
}

a:hover {
    text-decoration: underline;
}

.container {
    max-width: 860px;
    margin: 0 auto;
    padding: 0 24px;
}

/* ── Header ───────────────────────────────────────────────── */
header {
    border-bottom: 1px solid var(--border);
    padding: 72px 0 56px;
    text-align: center;
}

.prompt {
    font-family: var(--font-mono);
    font-size: 0.85rem;
    color: var(--green);
    margin-bottom: 24px;
    letter-spacing: 0.04em;
}

.cursor {
    animation: blink 1.1s step-end infinite;
}

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

header h1 {
    font-size: 2.8rem;
    font-weight: 700;
    letter-spacing: -0.02em;
    color: #f0f6fc;
    margin-bottom: 8px;
}

.tagline {
    font-family: var(--font-mono);
    font-size: 0.95rem;
    color: var(--text-muted);
    margin-bottom: 36px;
}

nav {
    display: flex;
    justify-content: center;
    gap: 32px;
}

nav a {
    font-family: var(--font-mono);
    font-size: 0.9rem;
    color: var(--text-muted);
    transition: color 0.15s;
}

nav a:hover {
    color: var(--accent);
    text-decoration: none;
}

/* ── Sections ─────────────────────────────────────────────── */
section {
    padding: 72px 0;
    border-bottom: 1px solid var(--border);
}

section h2 {
    font-size: 1.5rem;
    font-weight: 600;
    color: #f0f6fc;
    margin-bottom: 8px;
}

.hash {
    color: var(--accent);
    font-family: var(--font-mono);
    margin-right: 4px;
}

.section-desc {
    color: var(--text-muted);
    font-size: 0.95rem;
    margin-bottom: 40px;
}

/* ── Projects ─────────────────────────────────────────────── */
.projects-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(260px, 1fr));
    gap: 16px;
}

.project-card {
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: 6px;
    padding: 24px;
    transition: border-color 0.15s;
}

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

.project-card.placeholder {
    min-height: 120px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.coming-soon {
    font-family: var(--font-mono);
    font-size: 0.85rem;
    color: var(--text-muted);
}

a.project-card {
    display: block;
    color: inherit;
    text-decoration: none;
}

a.project-card:hover {
    border-color: var(--accent-dim);
    text-decoration: none;
}

.project-card h3 {
    font-size: 1rem;
    font-weight: 600;
    color: #f0f6fc;
    margin-bottom: 8px;
}

.project-desc {
    font-size: 0.9rem;
    color: var(--text-muted);
    margin-bottom: 12px;
}

.project-tag {
    font-family: var(--font-mono);
    font-size: 0.75rem;
    color: var(--accent);
}

/* ── Bots page ────────────────────────────────────────────── */
.bots-grid {
    display: flex;
    flex-direction: column;
    gap: 24px;
    padding-top: 16px;
}

.bot-card {
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: 6px;
    padding: 28px;
}

.bot-card-header {
    display: flex;
    align-items: baseline;
    gap: 16px;
    margin-bottom: 12px;
    flex-wrap: wrap;
}

.bot-card-header h2 {
    font-size: 1.1rem;
    font-weight: 600;
    color: #f0f6fc;
    margin: 0;
}

.bot-link {
    font-family: var(--font-mono);
    font-size: 0.8rem;
    color: var(--accent);
}

.bot-desc {
    color: var(--text);
    font-size: 0.95rem;
    margin-bottom: 16px;
    max-width: 640px;
}

.bot-features {
    list-style: none;
    padding: 0;
    display: flex;
    flex-direction: column;
    gap: 6px;
}

.bot-features li {
    font-size: 0.88rem;
    color: var(--text-muted);
    padding-left: 16px;
    position: relative;
}

.bot-features li::before {
    content: "–";
    position: absolute;
    left: 0;
    color: var(--accent);
}

.site-title {
    text-decoration: none;
    display: inline-block;
}

.site-title:hover h1 {
    color: var(--accent);
}

.site-title h1 {
    transition: color 0.15s;
}

.prompt a {
    color: var(--green);
    text-decoration: none;
}

.prompt a:hover {
    text-decoration: underline;
}

code {
    font-family: var(--font-mono);
    font-size: 0.85em;
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: 3px;
    padding: 1px 5px;
}

/* ── About ────────────────────────────────────────────────── */
.about-content {
    max-width: 600px;
}

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

/* ── Contact ──────────────────────────────────────────────── */
.contact-links {
    display: flex;
    flex-direction: column;
    gap: 12px;
    margin-top: 32px;
}

.contact-links a {
    font-family: var(--font-mono);
    font-size: 0.95rem;
    display: inline-flex;
    align-items: center;
    gap: 10px;
    color: var(--text);
    transition: color 0.15s;
}

.contact-links a:hover {
    color: var(--accent);
    text-decoration: none;
}

.link-prefix {
    color: var(--accent);
}

/* ── Footer ───────────────────────────────────────────────── */
footer {
    padding: 32px 0;
    text-align: center;
}

footer p {
    font-family: var(--font-mono);
    font-size: 0.8rem;
    color: var(--text-muted);
}

footer a {
    color: var(--text-muted);
    text-decoration: none;
}

footer a:hover {
    color: var(--accent);
}

/* ── 404 ──────────────────────────────────────────────────── */
.error-page {
    padding: 48px 0;
}

.error-code {
    font-family: var(--font-mono);
    font-size: 5rem;
    font-weight: 700;
    color: var(--accent);
    line-height: 1;
    margin-bottom: 16px;
}

.error-message {
    font-size: 1.2rem;
    color: var(--text-muted);
    margin-bottom: 32px;
}

/* ── Responsive ───────────────────────────────────────────── */
@media (max-width: 600px) {
    header h1    { font-size: 2rem; }
    section      { padding: 48px 0; }
    nav          { gap: 20px; }
}
