:root {
    --bg: #0c0c10;
    --text: #e8e8ec;
    --blue: #4a7cff;
}

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

html,
body {
    height: 100%;
    overflow: hidden;
}

body {
    background-color: var(--bg);
    color: var(--text);
    font-family: 'Syne', sans-serif;
}

/* ── Layout ── */

main {
    display: flex;
    flex-direction: column;
    height: 100vh;
    width: 100%;
    align-items: center;
    justify-content: center;
    gap: 1.5rem;
}

/* ── Neuron graphic ── */

.neuron-container {
    position: relative;
    width: 120px;
    height: 160px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.neuron-container::before {
    content: '';
    position: absolute;
    width: 200px;
    height: 200px;
    background: radial-gradient(circle, rgba(74, 124, 255, 0.03) 0%, transparent 70%);
    left: 50%;
    top: 50%;
    transform: translate(-50%, -50%);
    pointer-events: none;
}

#neuronSvg {
    width: 100%;
    height: 100%;
    overflow: visible;
}

.neuron-layer {
    transition: transform 0.35s cubic-bezier(0.25, 0.46, 0.45, 0.94);
    will-change: transform;
}

/* ── Text ── */

.text-container {
    display: flex;
    align-items: center;
    justify-content: center;
}

h1 {
    font-size: 0.85rem;
    font-weight: 700;
    letter-spacing: 0.35em;
    line-height: 1;
    margin-right: -0.35em;
    white-space: nowrap;
}

/* ── Breathing animation ── */

.breathe {
    animation: breathe 6s ease-in-out infinite;
}

.breathe-2 {
    animation-delay: 2s;
}

.breathe-3 {
    animation-delay: 4s;
}

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

/* ── Film grain overlay ── */

body::after {
    content: '';
    position: fixed;
    inset: 0;
    opacity: 0.022;
    pointer-events: none;
    background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 256 256' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.85' numOctaves='4' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
    background-repeat: repeat;
    background-size: 256px 256px;
}

/* ── Responsive ── */

@media (max-width: 768px) {
    h1 {
        font-size: 0.75rem;
    }
}
