@import url("https://fonts.googleapis.com/css2?family=Ma+Shan+Zheng&family=Noto+Serif+SC:wght@400;600;700;900&family=ZCOOL+XiaoWei&display=swap");

:root {
    color-scheme: dark;
    --paper: rgba(252, 246, 222, 0.94);
    --muted: rgba(252, 246, 222, 0.68);
    --dim: rgba(252, 246, 222, 0.48);
    --ink: #050507;
    --line: rgba(252, 246, 222, 0.2);
    --red: #c94428;
    --cyan: #80c7cc;
    --gold: #d8bc69;
    --green: #315f4b;
}

html {
    scroll-behavior: smooth;
}

body {
    min-height: 100vh;
    overflow-x: hidden;
    overflow-y: auto;
    background: var(--ink);
    color: var(--paper);
    font-family: "Noto Serif SC", "Songti SC", "SimSun", serif;
}

body::before {
    position: fixed;
    inset: 0;
    z-index: 0;
    content: "";
    pointer-events: none;
    background:
        linear-gradient(90deg, rgba(255,255,255,0.05) 1px, transparent 1px) 0 0 / 56px 100%,
        linear-gradient(0deg, rgba(255,255,255,0.04) 1px, transparent 1px) 0 0 / 100% 56px;
    mix-blend-mode: overlay;
    opacity: 0.4;
}

#film-bg {
    z-index: -2;
}

body::after {
    z-index: -1;
}

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

.revela-page {
    position: relative;
    z-index: 1;
    width: min(1220px, calc(100vw - 48px));
    min-height: 100vh;
    margin: 0 auto;
}

.site-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 32px;
    width: 100%;
    padding: 28px 0 18px;
}

.brand {
    display: inline-flex;
    align-items: center;
    gap: 13px;
    font-family: "ZCOOL XiaoWei", "Noto Serif SC", serif;
    font-size: clamp(20px, 2.4vw, 32px);
    font-weight: 400;
    letter-spacing: 0;
    text-transform: none;
}

.brand-icon {
    width: 38px;
    height: 38px;
    display: block;
    border-radius: 10px;
    object-fit: cover;
    box-shadow: 0 12px 34px rgba(0, 0, 0, 0.34);
}

.nav-actions {
    display: flex;
    align-items: center;
    gap: 10px;
}

.nav-actions a,
.btn {
    position: relative;
    overflow: hidden;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 42px;
    padding: 0 18px;
    border: 1px solid var(--line);
    background: rgba(5, 5, 7, 0.22);
    color: var(--paper);
    font-size: 13px;
    line-height: 1;
    white-space: nowrap;
    backdrop-filter: blur(16px);
    transition: transform 180ms ease, border-color 180ms ease, background 180ms ease;
}

.nav-actions a:hover,
.btn:hover {
    transform: translateY(-1px);
    border-color: rgba(252, 246, 222, 0.52);
    background: rgba(252, 246, 222, 0.1);
}

.hero {
    display: grid;
    grid-template-columns: minmax(0, 0.92fr) minmax(280px, 360px);
    gap: clamp(28px, 5vw, 70px);
    align-items: end;
    width: 100%;
    min-height: calc(100vh - 92px);
    padding: 10vh 0 13vh;
}

.hero-copy {
    max-width: 850px;
}

.kicker,
.section-index,
.meter-label,
.feature-grid span {
    font-family: "Source Code Pro", "IBM Plex Mono", Consolas, monospace;
    letter-spacing: 0;
    text-transform: uppercase;
}

.kicker {
    margin-bottom: 20px;
    color: var(--cyan);
    font-size: 12px;
}

h1,
h2,
h3,
p {
    margin-top: 0;
}

h1 {
    max-width: 760px;
    font-family: "ZCOOL XiaoWei", "Noto Serif SC", serif;
    font-size: clamp(58px, 8vw, 124px);
    font-weight: 400;
    line-height: 0.96;
    color: var(--paper);
    text-wrap: balance;
    text-shadow:
        0 1px 0 rgba(255, 255, 255, 0.14),
        0 24px 90px rgba(0, 0, 0, 0.42);
}

.lead {
    max-width: 650px;
    margin: 28px 0 0;
    color: rgba(252, 246, 222, 0.78);
    font-size: clamp(17px, 1.45vw, 22px);
    line-height: 1.9;
}

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

.btn-primary {
    min-height: 48px;
    padding: 0 34px;
    border-color: rgba(252, 246, 222, 0.46);
    background:
        linear-gradient(180deg, rgba(196, 196, 184, 0.78), rgba(88, 88, 82, 0.86)),
        repeating-linear-gradient(90deg, transparent 0 15px, rgba(0, 0, 0, 0.14) 15px 16px);
    color: #12120f;
    font-weight: 700;
    box-shadow:
        inset 0 1px 0 rgba(255, 255, 255, 0.32),
        inset 0 -8px 18px rgba(0, 0, 0, 0.18),
        0 16px 38px rgba(0, 0, 0, 0.26);
}

.btn-primary::before,
.btn-primary::after {
    position: absolute;
    top: 8px;
    bottom: 8px;
    width: 8px;
    content: "";
    background:
        radial-gradient(circle, rgba(5, 5, 7, 0.72) 0 2.4px, transparent 2.8px) center top / 8px 10px repeat-y;
    opacity: 0.88;
}

.btn-primary::before {
    left: 8px;
}

.btn-primary::after {
    right: 8px;
}

.btn-primary:hover {
    background:
        linear-gradient(180deg, rgba(216, 216, 202, 0.84), rgba(106, 106, 98, 0.9)),
        repeating-linear-gradient(90deg, transparent 0 15px, rgba(0, 0, 0, 0.12) 15px 16px);
}

.btn-ghost {
    color: var(--paper);
}

.film-meter {
    align-self: end;
    margin-bottom: 2vh;
    padding: 22px;
    border: 1px solid var(--line);
    background:
        linear-gradient(180deg, rgba(5, 5, 7, 0.18), rgba(5, 5, 7, 0.52)),
        rgba(252, 246, 222, 0.05);
    backdrop-filter: blur(18px);
}

.meter-label {
    margin: 0 0 8px;
    color: var(--muted);
    font-size: 11px;
}

.meter-track {
    height: 8px;
    margin-bottom: 22px;
    border: 1px solid rgba(252, 246, 222, 0.22);
    background: rgba(5, 5, 7, 0.54);
}

.meter-track:last-child {
    margin-bottom: 0;
}

.meter-track span {
    display: block;
    width: var(--value);
    height: 100%;
    background: linear-gradient(90deg, var(--cyan), var(--gold), var(--red));
    box-shadow: 0 0 26px rgba(216, 188, 105, 0.35);
}

.manifesto,
.process {
    display: grid;
    grid-template-columns: 120px minmax(0, 1fr);
    gap: clamp(22px, 5vw, 80px);
    padding: 88px 0;
    border-top: 1px solid var(--line);
}

.section-index {
    margin: 0;
    color: var(--gold);
    font-size: 13px;
}

.manifesto h2,
.process h2 {
    max-width: 850px;
    margin-bottom: 22px;
    font-family: "ZCOOL XiaoWei", "Noto Serif SC", serif;
    font-size: clamp(38px, 5vw, 72px);
    font-weight: 400;
    line-height: 1.05;
}

.manifesto p:not(.section-index),
.process li span {
    color: rgba(252, 246, 222, 0.76);
    font-size: 18px;
    line-height: 1.95;
}

.feature-grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 1px;
    border: 1px solid var(--line);
    background: var(--line);
}

.feature-grid article {
    min-height: 240px;
    padding: 28px;
    background:
        radial-gradient(circle at top right, rgba(128, 199, 204, 0.12), transparent 44%),
        rgba(5, 5, 7, 0.56);
    backdrop-filter: blur(12px);
}

.feature-grid span {
    color: var(--cyan);
    font-size: 12px;
}

.feature-grid h3 {
    margin: 42px 0 14px;
    font-family: "Ma Shan Zheng", "ZCOOL XiaoWei", cursive;
    font-size: clamp(28px, 3vw, 42px);
    font-weight: 400;
}

.feature-grid p {
    margin: 0;
    color: var(--muted);
    font-size: 16px;
    line-height: 1.8;
}

.process {
    grid-template-columns: 1fr;
    gap: 34px;
    padding-bottom: 120px;
}

.process-heading {
    display: grid;
    grid-template-columns: 120px minmax(0, 1fr);
    gap: clamp(22px, 5vw, 80px);
    align-items: start;
}

.process ol {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 1px;
    margin: 0;
    padding: 0;
    border: 1px solid rgba(252, 246, 222, 0.22);
    background: rgba(252, 246, 222, 0.18);
    list-style: none;
}

.process li {
    display: grid;
    grid-template-columns: 1fr;
    grid-template-rows: auto 1fr;
    gap: 34px;
    min-height: 260px;
    padding: 30px;
    border-top: none;
    background:
        linear-gradient(180deg, rgba(5, 5, 7, 0.3), rgba(5, 5, 7, 0.66)),
        rgba(252, 246, 222, 0.04);
    backdrop-filter: blur(12px);
}

.process strong {
    color: var(--gold);
    font-family: "Source Code Pro", "IBM Plex Mono", Consolas, monospace;
    font-size: 15px;
    font-weight: 700;
}

.process li span {
    max-width: 32em;
    text-wrap: pretty;
}

.site-footer {
    position: relative;
    z-index: 1;
    width: min(1220px, calc(100vw - 48px));
    margin: 0 auto;
    padding: 24px 0 30px;
    border-top: 1px solid var(--line);
    color: var(--dim);
    font-size: 13px;
    text-align: center;
}

.site-footer a:hover {
    color: var(--paper);
}

@media (max-width: 880px) {
    .revela-page,
    .site-footer {
        width: min(100% - 32px, 680px);
    }

    .site-header {
        align-items: flex-start;
    }

    .nav-actions {
        flex-wrap: wrap;
        justify-content: flex-end;
    }

    .hero,
    .manifesto,
    .process,
    .process-heading,
    .process li {
        grid-template-columns: 1fr;
    }

    .hero {
        min-height: auto;
        padding: 12vh 0 72px;
    }

    .film-meter {
        max-width: 420px;
    }

    .feature-grid {
        grid-template-columns: 1fr;
    }

    .process ol {
        grid-template-columns: 1fr;
    }

    .process li {
        min-height: 0;
        gap: 18px;
    }
}

@media (max-width: 560px) {
    .site-header {
        gap: 20px;
    }

    .nav-actions {
        width: 100%;
        justify-content: flex-start;
    }

    .nav-actions a,
    .btn {
        min-height: 40px;
        padding: 0 13px;
        font-size: 12px;
    }

    .btn-primary {
        min-height: 46px;
        padding: 0 30px;
    }

    h1 {
        font-size: clamp(46px, 16vw, 70px);
    }

    .lead,
    .manifesto p:not(.section-index),
    .process li span {
        font-size: 16px;
    }

    .manifesto,
    .process {
        padding: 64px 0;
    }
}
