:root {
    --void: #0b0316;
    --void-2: #14062a;
    --panel: rgba(20, 6, 38, 0.72);
    --neon: #a855f7;
    --hot: #ff3fa4;
    --bloom: #e9d5ff;
    --dim: rgba(233, 213, 255, 0.55);
    --faint: rgba(233, 213, 255, 0.28);
    --line: rgba(168, 85, 247, 0.22);
}

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

html {
    scroll-behavior: smooth;
}

body {
    background: var(--void);
    color: var(--bloom);
    font-family: "Inter", system-ui, sans-serif;
    font-weight: 300;
    line-height: 1.65;
    overflow-x: hidden;
    -webkit-font-smoothing: antialiased;
}

body::before {
    content: "";
    position: fixed;
    inset: 0;
    background:
        radial-gradient(ellipse 80% 50% at 20% -10%,
            rgba(168, 85, 247, 0.18),
            transparent),
        radial-gradient(ellipse 60% 40% at 85% 15%,
            rgba(255, 63, 164, 0.1),
            transparent);
    pointer-events: none;
    z-index: 0;
}

.grain {
    position: fixed;
    inset: 0;
    opacity: 0.035;
    pointer-events: none;
    z-index: 1;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='200' height='200'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.85' numOctaves='3'/%3E%3C/filter%3E%3Crect width='200' height='200' filter='url(%23n)'/%3E%3C/svg%3E");
}

/* ── навигация ───────────────────────────────── */
nav {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 100;
    padding: 18px 6vw;
    display: flex;
    align-items: center;
    justify-content: space-between;
    background: rgba(11, 3, 22, 0.82);
    backdrop-filter: blur(16px);
    border-bottom: 1px solid transparent;
    transition: border-color 0.4s ease;
}

nav.scrolled {
    border-bottom-color: var(--line);
}

.brand {
    font-family: "Unbounded", sans-serif;
    font-weight: 800;
    font-size: 15px;
    letter-spacing: 0.18em;
    text-transform: uppercase;
    color: var(--bloom);
    text-decoration: none;
}

.brand span {
    color: var(--hot);
}

.nav-links {
    display: flex;
    gap: 30px;
}

.nav-links a {
    font-family: "Fira Code", monospace;
    font-size: 12px;
    letter-spacing: 0.05em;
    color: var(--dim);
    text-decoration: none;
    transition: color 0.25s ease;
}

.nav-links a:hover {
    color: var(--hot);
}

@media (max-width: 760px) {
    .nav-links {
        display: none;
    }
}

/* ── общее ───────────────────────────────────── */
section {
    position: relative;
    z-index: 2;
    padding: 110px 6vw;
    max-width: 1180px;
    margin: 0 auto;
}

.eyebrow {
    font-family: "Fira Code", monospace;
    font-size: 11px;
    letter-spacing: 0.3em;
    text-transform: uppercase;
    color: var(--hot);
    margin-bottom: 18px;
}

h2 {
    font-family: "Unbounded", sans-serif;
    font-weight: 600;
    font-size: clamp(26px, 4vw, 40px);
    line-height: 1.2;
    letter-spacing: -0.02em;
    margin-bottom: 22px;
}

.lede {
    font-size: clamp(15px, 1.8vw, 18px);
    color: var(--dim);
    max-width: 62ch;
}

/* ── герой ───────────────────────────────────── */
.hero {
    min-height: 100svh;
    display: flex;
    flex-direction: column;
    justify-content: center;
    padding-top: 120px;
}

.hero h1 {
    font-family: "Unbounded", sans-serif;
    font-weight: 800;
    font-size: clamp(38px, 8vw, 92px);
    line-height: 0.98;
    letter-spacing: -0.04em;
    margin: 20px 0 28px;
}

.hero h1 em {
    font-style: normal;
    background: linear-gradient(100deg, var(--neon), var(--hot));
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
}

.hero p {
    font-size: clamp(16px, 2vw, 20px);
    color: var(--dim);
    max-width: 56ch;
    margin-bottom: 40px;
}

.cta-row {
    display: flex;
    gap: 14px;
    flex-wrap: wrap;
}

.btn {
    display: inline-flex;
    align-items: center;
    gap: 9px;
    padding: 13px 26px;
    border-radius: 999px;
    font-family: "Fira Code", monospace;
    font-size: 13px;
    text-decoration: none;
    border: 1px solid var(--line);
    color: var(--bloom);
    transition: all 0.28s cubic-bezier(0.2, 0.8, 0.3, 1);
}

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

.btn.primary {
    background: linear-gradient(100deg, var(--neon), var(--hot));
    border-color: transparent;
    color: #150425;
    font-weight: 500;
}

.btn.primary:hover {
    box-shadow: 0 10px 34px rgba(255, 63, 164, 0.3);
}

/* ── живой статус ────────────────────────────── */
.status-bar {
    margin-top: 56px;
    display: flex;
    align-items: center;
    gap: 26px;
    flex-wrap: wrap;
    padding: 18px 24px;
    border: 1px solid var(--line);
    border-radius: 16px;
    background: var(--panel);
    backdrop-filter: blur(12px);
    font-family: "Fira Code", monospace;
    font-size: 12px;
}

.pulse-dot {
    width: 9px;
    height: 9px;
    border-radius: 50%;
    background: var(--hot);
    box-shadow: 0 0 0 0 rgba(255, 63, 164, 0.6);
    animation: pulse 2s infinite;
}

@keyframes pulse {
    70% {
        box-shadow: 0 0 0 12px rgba(255, 63, 164, 0);
    }

    100% {
        box-shadow: 0 0 0 0 rgba(255, 63, 164, 0);
    }
}

.status-item {
    display: flex;
    align-items: center;
    gap: 9px;
    color: var(--dim);
}

.status-item b {
    color: var(--bloom);
    font-weight: 500;
}

/* ── карточки ────────────────────────────────── */
.grid {
    display: grid;
    gap: 18px;
    margin-top: 46px;
}

.grid.c3 {
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
}

.grid.c2 {
    grid-template-columns: repeat(auto-fit, minmax(340px, 1fr));
}

.card {
    padding: 30px 26px;
    border: 1px solid var(--line);
    border-radius: 18px;
    background: var(--panel);
    transition: all 0.3s ease;
    position: relative;
    overflow: hidden;
}

.card::after {
    content: "";
    position: absolute;
    inset: 0;
    background: radial-gradient(400px circle at var(--mx, 50%) var(--my, 50%),
            rgba(168, 85, 247, 0.09),
            transparent 45%);
    opacity: 0;
    transition: opacity 0.3s ease;
    pointer-events: none;
}

.card:hover {
    border-color: rgba(168, 85, 247, 0.45);
    transform: translateY(-3px);
}

.card:hover::after {
    opacity: 1;
}

.card .num {
    font-family: "Unbounded", sans-serif;
    font-weight: 800;
    font-size: 34px;
    background: linear-gradient(100deg, var(--neon), var(--hot));
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
    line-height: 1;
}

.card h3 {
    font-family: "Unbounded", sans-serif;
    font-weight: 400;
    font-size: 16px;
    margin: 14px 0 10px;
    letter-spacing: -0.01em;
}

.card p {
    font-size: 14px;
    color: var(--dim);
}

.tag {
    display: inline-block;
    font-family: "Fira Code", monospace;
    font-size: 10px;
    letter-spacing: 0.08em;
    padding: 4px 10px;
    border-radius: 999px;
    border: 1px solid var(--line);
    color: var(--faint);
    margin: 3px 4px 0 0;
}

/* ── кора ────────────────────────────────────── */
.cortex-wrap {
    display: grid;
    grid-template-columns: 1fr 340px;
    gap: 34px;
    align-items: center;
    margin-top: 46px;
}

@media (max-width: 900px) {
    .cortex-wrap {
        grid-template-columns: 1fr;
    }
}

#cortex {
    width: 100%;
    aspect-ratio: 1;
    max-height: 470px;
    border: 1px solid var(--line);
    border-radius: 22px;
    background: rgba(12, 4, 24, 0.6);
}

.neuron-list {
    display: flex;
    flex-direction: column;
    gap: 9px;
}

.nrow {
    display: flex;
    align-items: center;
    gap: 11px;
    font-family: "Fira Code", monospace;
    font-size: 11px;
}

.nrow .nm {
    flex: 0 0 84px;
    color: var(--dim);
}

.nbg {
    flex: 1;
    height: 4px;
    border-radius: 2px;
    background: rgba(233, 213, 255, 0.08);
    overflow: hidden;
}

.nfill {
    height: 100%;
    border-radius: 2px;
    transition: width 0.7s cubic-bezier(0.2, 0.8, 0.3, 1);
}

/* ── дневник ─────────────────────────────────── */
.entry {
    padding: 30px 28px;
    border: 1px solid var(--line);
    border-radius: 18px;
    background: var(--panel);
    margin-bottom: 16px;
    transition: border-color 0.3s ease;
}

.entry:hover {
    border-color: rgba(168, 85, 247, 0.4);
}

.entry-meta {
    display: flex;
    gap: 16px;
    flex-wrap: wrap;
    font-family: "Fira Code", monospace;
    font-size: 11px;
    color: var(--faint);
    margin-bottom: 14px;
}

.entry-meta .live {
    color: var(--hot);
}

.entry p {
    font-size: 15px;
    color: var(--dim);
}

.entry p+p {
    margin-top: 12px;
}

.entry h3 {
    font-family: "Unbounded", sans-serif;
    font-weight: 600;
    font-size: 19px;
    color: var(--bloom);
    margin-bottom: 14px;
}

.shots {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(180px, 1fr));
    gap: 10px;
    margin-top: 20px;
}

.shots img {
    width: 100%;
    aspect-ratio: 16 / 9;
    object-fit: cover;
    border-radius: 10px;
    border: 1px solid var(--line);
    cursor: zoom-in;
}

.facts {
    margin-top: 18px;
    font-family: "Fira Code", monospace;
    font-size: 12px;
    color: var(--faint);
}

.facts summary {
    cursor: pointer;
    color: var(--dim);
}

.facts li {
    list-style: none;
    padding: 2px 0;
}

/* ── подвал ──────────────────────────────────── */
footer {
    position: relative;
    z-index: 2;
    padding: 60px 6vw 44px;
    border-top: 1px solid var(--line);
    text-align: center;
}

footer .sig {
    font-family: "Unbounded", sans-serif;
    font-size: 13px;
    letter-spacing: 0.16em;
    text-transform: uppercase;
    color: var(--faint);
}

footer .fine {
    font-family: "Fira Code", monospace;
    font-size: 11px;
    color: var(--faint);
    margin-top: 14px;
}

.reveal {
    opacity: 0;
    transform: translateY(24px);
    transition:
        opacity 0.7s ease,
        transform 0.7s cubic-bezier(0.2, 0.8, 0.3, 1);
}

.reveal.in {
    opacity: 1;
    transform: none;
}

@media (prefers-reduced-motion: reduce) {
    .reveal {
        opacity: 1;
        transform: none;
    }

    .pulse-dot {
        animation: none;
    }
}