:root {
    --bg-color: #0a0a0a;
    --surface-color: #121212;
    --surface-hover: #1a1a1a;
    --text-main: #f3f4f6;
    --text-muted: #9ca3af;
    --border-color: #262626;
    --accent: #6366f1;
    --accent-glow: rgba(99, 102, 241, 0.15);
    --font-sans: 'Inter', -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
    --font-mono: 'JetBrains Mono', 'Fira Code', monospace;
}

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

html { scroll-behavior: smooth; }

body {
    font-family: var(--font-sans);
    background-color: var(--bg-color);
    color: var(--text-main);
    line-height: 1.6;
    -webkit-font-smoothing: antialiased;
    overflow-x: hidden;
}

a { color: var(--accent); text-decoration: none; transition: color 0.3s ease; }
a:hover { color: #818cf8; text-decoration: none; }

.container { max-width: 1080px; margin: 0 auto; padding: 0 2rem; }

header {
    border-bottom: 1px solid var(--border-color);
    padding: 1.5rem 0;
    background: rgba(10, 10, 10, 0.8);
    backdrop-filter: blur(12px);
    position: sticky;
    top: 0;
    z-index: 100;
    transition: border-color 0.3s ease;
}
.header-inner {
    display: flex;
    justify-content: space-between;
    align-items: center;
}
.logo {
    font-weight: 800;
    font-size: 1.4rem;
    letter-spacing: -0.04em;
    color: var(--text-main);
    text-decoration: none;
}
.logo:hover { color: var(--text-main); }
nav { display: flex; gap: 2rem; }
nav a {
    color: var(--text-muted);
    font-size: 0.9rem;
    font-weight: 500;
    text-decoration: none;
    transition: color 0.3s ease;
    position: relative;
}
nav a::after {
    content: '';
    position: absolute;
    width: 0;
    height: 1px;
    bottom: -4px;
    left: 0;
    background-color: var(--accent);
    transition: width 0.3s ease;
}
nav a:hover { color: var(--text-main); }
nav a:hover::after { width: 100%; }

.hero { padding: 8rem 0 6rem; max-width: 800px; }
.hero h1 {
    font-size: 3.5rem;
    font-weight: 800;
    line-height: 1.1;
    letter-spacing: -0.05em;
    margin-bottom: 1.5rem;
    background: linear-gradient(to right, #ffffff, #a5b4fc);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    animation: fadeUp 0.8s ease-out forwards;
}
.hero p {
    font-size: 1.25rem;
    color: var(--text-muted);
    max-width: 600px;
    margin-bottom: 2.5rem;
    animation: fadeUp 0.8s ease-out 0.2s forwards;
    opacity: 0;
}
.btn {
    display: inline-block;
    background: var(--surface-color);
    color: var(--text-main);
    padding: 0.85rem 1.75rem;
    border-radius: 6px;
    font-weight: 600;
    font-size: 0.95rem;
    text-decoration: none;
    border: 1px solid var(--border-color);
    transition: all 0.3s ease;
    animation: fadeUp 0.8s ease-out 0.4s forwards;
    opacity: 0;
    box-shadow: 0 0 0 rgba(99, 102, 241, 0);
}
.btn:hover {
    background: var(--surface-hover);
    border-color: var(--accent);
    box-shadow: 0 0 20px var(--accent-glow);
    transform: translateY(-2px);
    color: var(--text-main);
}

.section-title {
    font-size: 1.5rem;
    font-weight: 700;
    letter-spacing: -0.02em;
    margin-bottom: 3rem;
    padding-top: 4rem;
    border-top: 1px solid var(--border-color);
    animation: fadeUp 0.8s ease-out forwards;
}
.grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(300px, 1fr)); gap: 2rem; padding-bottom: 6rem; }
.card {
    background: var(--surface-color);
    border: 1px solid var(--border-color);
    padding: 2.5rem;
    border-radius: 8px;
    transition: all 0.4s cubic-bezier(0.16, 1, 0.3, 1);
    position: relative;
    overflow: hidden;
    opacity: 0;
    transform: translateY(20px);
}
.card.reveal {
    animation: fadeUp 0.8s ease-out forwards;
}
.card::before {
    content: '';
    position: absolute;
    top: 0; left: 0; right: 0;
    height: 100%;
    background: radial-gradient(800px circle at var(--mouse-x) var(--mouse-y), rgba(255,255,255,0.06), transparent 40%);
    opacity: 0;
    transition: opacity 0.4s ease;
    pointer-events: none;
    z-index: 1;
}
.card:hover {
    border-color: #3f3f46;
    transform: translateY(-4px);
    box-shadow: 0 10px 30px -10px rgba(0,0,0,0.5);
}
.card:hover::before { opacity: 1; }
.card > * { position: relative; z-index: 2; }
.card h3 { font-size: 1.15rem; margin-bottom: 1rem; font-weight: 700; color: #fff; }
.card p { color: var(--text-muted); font-size: 0.95rem; line-height: 1.6; }
.card .tag { font-family: var(--font-mono); font-size: 0.75rem; color: var(--accent); text-transform: uppercase; letter-spacing: 0.05em; margin-bottom: 1.25rem; display: block; font-weight: 600; }

footer {
    border-top: 1px solid var(--border-color);
    padding: 5rem 0;
    background: #050505;
    font-size: 0.9rem;
}
.footer-grid { display: grid; grid-template-columns: 2fr 1fr 1fr; gap: 4rem; }
.footer-col h4 { font-size: 0.85rem; text-transform: uppercase; letter-spacing: 0.05em; color: #fff; margin-bottom: 1.5rem; font-weight: 600; }
.footer-col p { color: var(--text-muted); max-width: 300px; }
.footer-col ul { list-style: none; }
.footer-col ul li { margin-bottom: 0.85rem; }
.footer-col ul a { color: var(--text-muted); text-decoration: none; transition: color 0.3s; }
.footer-col ul a:hover { color: var(--accent); }

.page-content { padding: 6rem 0; max-width: 700px; animation: fadeUp 0.8s ease-out forwards; }
.page-content h1 { font-size: 2.75rem; font-weight: 800; letter-spacing: -0.04em; margin-bottom: 1rem; color: #fff; }
.page-content h2 { font-size: 1.3rem; font-weight: 700; margin-top: 3rem; margin-bottom: 1rem; color: #fff; }
.page-content p { margin-bottom: 1.5rem; color: #d1d5db; font-size: 1.05rem; line-height: 1.7; }
.page-content .date { color: var(--text-muted); font-family: var(--font-mono); font-size: 0.85rem; margin-bottom: 3rem; display: block; }

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

@media (max-width: 768px) {
    .hero h1 { font-size: 2.5rem; }
    .hero { padding: 5rem 0 3rem; }
    .footer-grid { grid-template-columns: 1fr; gap: 2rem; }
    .header-inner { flex-direction: column; gap: 1rem; }
}
