:root {
    --bg: #020403;
    --panel: rgba(0, 255, 153, 0.055);
    --panel-strong: rgba(0, 255, 153, 0.11);
    --text: #d8ffed;
    --muted: #87c9ad;
    --green: #00ff99;
    --green-soft: rgba(0, 255, 153, 0.28);
    --line: rgba(0, 255, 153, 0.34);
    --shadow: rgba(0, 255, 153, 0.18);
    --max: 1120px;
    font-family: "Share Tech Mono", Consolas, monospace;
}

* {
    box-sizing: border-box;
}

html {
    background: #000;
    scroll-behavior: smooth;
}

body {
    min-height: 100vh;
    margin: 0;
    background:
        radial-gradient(circle at 18% 9rem, rgba(0, 255, 153, 0.13), transparent 28rem),
        radial-gradient(circle at 84% 42rem, rgba(0, 255, 153, 0.085), transparent 24rem),
        radial-gradient(circle at 12% 88rem, rgba(0, 255, 153, 0.065), transparent 22rem),
        linear-gradient(180deg, #030805 0%, var(--bg) 52%, #000 100%);
    background-repeat: no-repeat;
    color: var(--text);
    overflow-x: hidden;
}

body::before {
    content: "";
    position: fixed;
    inset: 0;
    pointer-events: none;
    background-image: linear-gradient(rgba(0, 255, 153, 0.055) 1px, transparent 1px);
    background-size: 100% 4px;
    opacity: 0.38;
    mix-blend-mode: screen;
}

a {
    color: inherit;
    text-decoration: none;
}

code {
    border: 1px solid var(--line);
    border-radius: 6px;
    padding: 2px 6px;
    background: var(--panel);
    color: var(--green);
}

.topbar {
    position: sticky;
    top: 0;
    z-index: 50;
    border-bottom: 1px solid var(--line);
    background: rgba(0, 0, 0, 0.78);
    backdrop-filter: blur(14px);
}

.topbar-inner {
    width: min(var(--max), calc(100% - 32px));
    margin: 0 auto;
    padding: 14px 0;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 18px;
}

.subnav {
    padding-top: 0;
    color: var(--muted);
}

.brand,
.project-brand {
    color: var(--green);
    text-transform: uppercase;
    font-size: 14px;
    white-space: nowrap;
}

.project-brand {
    color: var(--text);
}

.nav {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    justify-content: flex-end;
}

.nav a {
    border: 1px solid var(--line);
    border-radius: 8px;
    padding: 9px 11px;
    background: var(--panel);
    color: var(--muted);
}

.nav a:hover,
.nav a:focus-visible {
    border-color: var(--green);
    color: var(--green);
    outline: 0;
}

.hero,
main {
    position: relative;
    z-index: 1;
    width: min(var(--max), calc(100% - 32px));
    margin: 0 auto;
}

.hero {
    padding-top: 34px;
}

.hero-card {
    min-height: 560px;
    overflow: hidden;
    position: relative;
    border: 1px solid var(--line);
    border-radius: 8px;
    background: #030805;
    box-shadow: 0 0 50px rgba(0, 255, 153, 0.1);
}

.hero-media {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    opacity: 0.48;
    filter: saturate(1.05) contrast(1.05);
}

.hero-fallback {
    position: absolute;
    inset: 0;
    background:
        radial-gradient(circle at 70% 25%, rgba(0, 255, 153, 0.18), transparent 24rem),
        #030805;
}

.hero-overlay {
    position: absolute;
    inset: 0;
    background:
        linear-gradient(90deg, rgba(2, 4, 3, 0.96), rgba(2, 4, 3, 0.6), rgba(2, 4, 3, 0.22)),
        linear-gradient(0deg, rgba(2, 4, 3, 0.92), transparent 55%);
}

.hero-content {
    position: relative;
    z-index: 2;
    max-width: 760px;
    padding: 70px;
}

.eyebrow {
    margin: 0 0 14px;
    color: var(--green);
    letter-spacing: 0;
    text-transform: uppercase;
    font-size: 14px;
}

h1 {
    margin: 0 0 22px;
    font-size: clamp(42px, 8vw, 92px);
    line-height: 0.92;
    font-weight: 700;
    text-shadow: 0 0 24px var(--shadow);
}

h2 {
    margin: 0 0 16px;
    color: var(--green);
    font-size: clamp(28px, 4vw, 48px);
    line-height: 1.05;
}

h3 {
    margin: 0 0 10px;
    color: var(--green);
    font-size: 22px;
}

p {
    color: var(--muted);
    line-height: 1.65;
}

.lead {
    max-width: 680px;
    margin: 0 0 30px;
    color: var(--muted);
    font-size: clamp(17px, 2.4vw, 22px);
    line-height: 1.55;
}

.hero-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
}

.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border: 1px solid var(--line);
    border-radius: 8px;
    padding: 11px 13px;
    background: var(--panel);
    color: var(--muted);
    transition: transform 180ms ease, border-color 180ms ease, background 180ms ease;
}

.btn.primary,
.btn:hover,
.btn:focus-visible {
    border-color: var(--green);
    background: var(--panel-strong);
    color: var(--green);
    outline: 0;
}

.btn:hover {
    transform: translateX(4px);
}

main {
    padding-bottom: 80px;
}

.section {
    margin-top: 70px;
}

.intro-grid {
    display: grid;
    grid-template-columns: minmax(0, 1.2fr) minmax(280px, 0.8fr);
    gap: 16px;
    align-items: stretch;
}

.story,
.quote-box,
.chapter-card,
.tech-pill,
.media-item,
.placeholder,
.footer-cta {
    border: 1px solid var(--line);
    border-radius: 8px;
    background: var(--panel);
}

.story,
.quote-box,
.footer-cta {
    padding: 28px;
}

.story p {
    margin: 0 0 18px;
}

.story p:last-child {
    margin-bottom: 0;
}

.quote-box {
    background:
        linear-gradient(135deg, rgba(0, 255, 153, 0.1), rgba(0, 0, 0, 0.12)),
        var(--panel);
}

.quote-box strong {
    display: block;
    margin-bottom: 12px;
    color: var(--green);
    font-size: 21px;
    line-height: 1.25;
}

.muted {
    color: var(--muted);
}

.chapter-grid,
.media-grid,
.tech-box {
    display: grid;
    gap: 12px;
}

.chapter-grid {
    grid-template-columns: repeat(3, minmax(0, 1fr));
}

.chapter-card {
    min-height: 205px;
    display: flex;
    flex-direction: column;
    padding: 20px;
    transition: transform 180ms ease, border-color 180ms ease, background 180ms ease;
}

.chapter-card:hover,
.chapter-card:focus-visible {
    transform: translateX(6px);
    border-color: var(--green);
    background: var(--panel-strong);
    outline: 0;
}

.chapter-num {
    margin-bottom: 22px;
    color: var(--green);
    font-weight: 700;
    font-size: 14px;
}

.chapter-card p {
    margin: 0;
}

.tech-box {
    grid-template-columns: repeat(4, minmax(0, 1fr));
}

.tech-pill {
    padding: 14px 16px;
    color: var(--text);
}

.media-grid {
    grid-template-columns: repeat(3, minmax(0, 1fr));
}

.media-item {
    overflow: hidden;
    min-height: 220px;
    background: #000;
}

.media-item img,
.media-item video {
    width: 100%;
    height: 100%;
    min-height: 220px;
    object-fit: cover;
    display: block;
}

.placeholder {
    padding: 30px;
    color: var(--muted);
    text-align: center;
    border-style: dashed;
}

.footer-cta {
    margin-top: 75px;
}

.chapter-page {
    width: min(900px, calc(100% - 32px));
    padding-top: 42px;
}

.chapter-page .backlink {
    display: inline-flex;
    margin-bottom: 24px;
    color: var(--green);
}

.chapter-page .box {
    border: 1px solid var(--line);
    border-radius: 8px;
    padding: 28px;
    background: var(--panel);
}

@media (max-width: 900px) {
    .hero-content {
        padding: 42px 28px;
    }

    .hero-card {
        min-height: 520px;
    }

    .intro-grid,
    .chapter-grid,
    .media-grid {
        grid-template-columns: 1fr;
    }

    .tech-box {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }
}

@media (max-width: 640px) {
    .topbar {
        position: static;
    }

    .topbar-inner {
        align-items: flex-start;
        flex-direction: column;
    }

    .hero,
    main,
    .chapter-page {
        width: min(100% - 24px, var(--max));
    }

    .hero {
        padding-top: 22px;
    }

    .hero-content {
        padding: 34px 22px;
    }

    .tech-box {
        grid-template-columns: 1fr;
    }
}
