:root {
    --bg: #0c0c0c;
    --surface: #141414;
    --border: #222;
    --text: #e8e8e8;
    --muted: #777;
    --accent: #6366f1;
    --accent-hover: #4f52e0;
    --accent-rgb: 99,102,241;
    --font: 'Inter', -apple-system, BlinkMacSystemFont, sans-serif;
}

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

html { scroll-behavior: smooth; }

body {
    background: var(--bg);
    color: var(--text);
    font-family: var(--font);
    min-height: 100vh;
    -webkit-font-smoothing: antialiased;
}

/* ── Cursor glow ── */
.cursor-glow {
    position: fixed;
    pointer-events: none;
    z-index: 999;
    width: 560px;
    height: 560px;
    border-radius: 50%;
    transform: translate(-50%, -50%);
    background: radial-gradient(circle, rgba(var(--accent-rgb), 0.15) 0%, transparent 65%);
    will-change: left, top;
}

@media (hover: none) {
    .cursor-glow { display: none; }
}

/* ── Background glow ── */
body::before {
    content: '';
    position: fixed;
    top: -20%;
    left: 50%;
    transform: translateX(-50%);
    width: 600px;
    height: 600px;
    background: radial-gradient(circle, rgba(var(--accent-rgb), 0.12) 0%, transparent 70%);
    pointer-events: none;
    z-index: 0;
}

/* ── Hero ── */
.hero {
    position: relative;
    z-index: 1;
    min-height: 100vh;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: 4rem 2rem;
    text-align: center;
}

.hero-label {
    font-size: 0.78rem;
    font-weight: 600;
    letter-spacing: 0.14em;
    text-transform: uppercase;
    color: var(--accent);
    margin-bottom: 1.5rem;
}

.hero h1 {
    font-size: clamp(3rem, 9vw, 6rem);
    font-weight: 800;
    letter-spacing: -0.03em;
    line-height: 1.0;
    margin-bottom: 1.25rem;
}

.hero h1 .accent { color: var(--accent); }

/* ── Typed role ── */
.hero-role {
    font-size: clamp(1rem, 2.8vw, 1.3rem);
    font-weight: 600;
    color: var(--accent);
    min-height: 2rem;
    margin-bottom: 1.5rem;
}

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

.type-cursor {
    font-weight: 300;
    animation: blink 1s step-end infinite;
}

.hero-tagline {
    font-size: clamp(1rem, 2.5vw, 1.15rem);
    color: var(--muted);
    line-height: 1.7;
    max-width: 480px;
    margin-bottom: 3rem;
}

.cta {
    display: flex;
    gap: 0.875rem;
    flex-wrap: wrap;
    justify-content: center;
}

.btn {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.75rem 1.75rem;
    border-radius: 8px;
    font-family: var(--font);
    font-size: 0.9rem;
    font-weight: 600;
    text-decoration: none;
    transition: all 0.2s ease;
    cursor: pointer;
    border: none;
}

.btn-primary {
    background: var(--accent);
    color: #fff;
}

.btn-primary:hover {
    background: var(--accent-hover);
    transform: translateY(-2px);
    box-shadow: 0 8px 24px rgba(var(--accent-rgb), 0.35);
}

.btn-secondary {
    background: transparent;
    color: var(--text);
    border: 1px solid var(--border);
}

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

/* ── Stack ── */
.stack {
    position: relative;
    z-index: 1;
    padding: 5rem 2rem;
    text-align: center;
    border-top: 1px solid var(--border);
}

.section-label {
    font-size: 0.75rem;
    font-weight: 600;
    letter-spacing: 0.14em;
    text-transform: uppercase;
    color: var(--muted);
    margin-bottom: 2.5rem;
}

.stack-grid {
    display: flex;
    flex-wrap: wrap;
    gap: 0.75rem;
    justify-content: center;
    max-width: 560px;
    margin: 0 auto;
}

.stack-item {
    background: var(--surface);
    border: 1px solid var(--border);
    border-radius: 8px;
    padding: 0.55rem 1.1rem;
    font-size: 0.88rem;
    font-weight: 500;
    color: var(--text);
    transition: all 0.2s ease;
}

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

/* ── Footer ── */
footer {
    position: relative;
    z-index: 1;
    padding: 2.5rem 2rem;
    text-align: center;
    border-top: 1px solid var(--border);
    color: var(--muted);
    font-size: 0.82rem;
}

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

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

/* ── Responsive ── */
@media (max-width: 480px) {
    .cta { flex-direction: column; align-items: stretch; }
    .btn { justify-content: center; }
}
