/* ── Design tokens ────────────────────────────────────── */
:root {
    --bg-base:      #050505;
    --bg-card:      #0D0D0F;
    --text-main:    #FFFFFF;
    --text-muted:   #6B6B75;
    --text-subtle:  #3A3A42;
    --accent:       #4F46E5;
    --accent-hover: #6366F1;
    --border:       rgba(255, 255, 255, 0.06);
    --grid-color:   rgba(255, 255, 255, 0.025);
    --glow-color:   rgba(79, 70, 229, 0.22);
}

/* ── Reset ────────────────────────────────────────────── */
* { margin: 0; padding: 0; box-sizing: border-box; }
html { scroll-behavior: smooth; }

/* ── Body + grid background ───────────────────────────── */
body {
    font-family: 'Inter', system-ui, -apple-system, sans-serif;
    background-color: var(--bg-base);
    color: var(--text-main);
    min-height: 100vh;
    display: flex;
    flex-direction: column;
    overflow-x: hidden;
    background-image:
        linear-gradient(var(--grid-color) 1px, transparent 1px),
        linear-gradient(90deg, var(--grid-color) 1px, transparent 1px);
    background-size: 60px 60px;
}

/* ── Glow background ──────────────────────────────────── */
.glow-bg {
    position: fixed;
    top: -25%;
    left: 50%;
    transform: translateX(-50%);
    width: 100vw;
    height: 70vh;
    background: radial-gradient(ellipse at 50% 0%, var(--glow-color) 0%, transparent 65%);
    pointer-events: none;
    z-index: 0;
}

/* ── Header ───────────────────────────────────────────── */
header {
    width: 100%;
    padding: 2rem 6vw;
    display: flex;
    justify-content: space-between;
    align-items: center;
    position: fixed;
    top: 0; left: 0;
    z-index: 100;
    backdrop-filter: blur(24px);
    -webkit-backdrop-filter: blur(24px);
    background: linear-gradient(
        to bottom,
        rgba(79, 70, 229, 0.08) 0%,
        rgba(5, 5, 5, 0.55) 100%
    );
    border-bottom: 1px solid rgba(79, 70, 229, 0.15);
}

.brand {
    font-size: 1.4rem;
    font-weight: 800;
    letter-spacing: -0.5px;
    color: var(--text-main);
    text-decoration: none;
    z-index: 1000;
}
.brand-dot { color: var(--accent); }

/* ── Hamburger ────────────────────────────────────────── */
.hamburger {
    display: none;
    cursor: pointer;
    z-index: 1000;
    background: none;
    border: none;
    width: 28px;
    height: 18px;
    position: relative;
}
.hamburger span {
    display: block;
    width: 100%;
    height: 1.5px;
    background: var(--text-main);
    position: absolute;
    left: 0;
    transition: transform 0.3s, opacity 0.3s, top 0.3s;
}
.hamburger span:nth-child(1) { top: 0; }
.hamburger span:nth-child(2) { top: 8px; }
.hamburger span:nth-child(3) { top: 16px; }
.hamburger.active span:nth-child(1) { transform: rotate(45deg); top: 8px; }
.hamburger.active span:nth-child(2) { opacity: 0; }
.hamburger.active span:nth-child(3) { transform: rotate(-45deg); top: 8px; }

/* ── Nav ──────────────────────────────────────────────── */
nav ul { display: flex; list-style: none; gap: 2rem; align-items: center; }
nav a {
    color: var(--text-muted);
    text-decoration: none;
    font-size: 0.875rem;
    font-weight: 500;
    transition: color 0.2s;
}
nav a:hover { color: var(--text-main); }

/* ── Footer ───────────────────────────────────────────── */
footer {
    position: relative;
    z-index: 1;
    padding: 1.75rem 6vw;
    border-top: 1px solid var(--border);
    display: flex;
    justify-content: space-between;
    align-items: center;
}
.footer-copy { font-size: 0.8rem; color: var(--text-subtle); }
.footer-links { display: flex; gap: 2rem; list-style: none; }
.footer-links a {
    font-size: 0.8rem;
    color: var(--text-subtle);
    text-decoration: none;
    transition: color 0.2s;
}
.footer-links a:hover { color: var(--text-muted); }

/* ── Animations ───────────────────────────────────────── */
@keyframes slideUp {
    to { opacity: 1; transform: translateY(0); }
}

/* ── Mobile ───────────────────────────────────────────── */
@media (max-width: 768px) {
    header { padding: 1.5rem 5vw; }
    .hamburger { display: block; }
    nav {
        position: fixed;
        top: 0; right: -100%;
        width: 100vw; height: 100vh;
        background: rgba(5, 5, 5, 0.98);
        display: flex;
        align-items: center;
        justify-content: center;
        transition: right 0.4s cubic-bezier(0.16, 1, 0.3, 1);
        z-index: 999;
    }
    nav.active { right: 0; }
    nav ul { flex-direction: column; align-items: center; gap: 2.5rem; }
    nav a  { font-size: 1.8rem; font-weight: 600; color: var(--text-main); }
    footer { flex-direction: column; gap: 1.25rem; text-align: center; }
    .footer-links { justify-content: center; flex-wrap: wrap; gap: 1.5rem; }
}
