html,
body {
    margin: 0;
    padding: 0;
    width: 100%;
    min-height: 100%;
    background-color: #000;
    color: #fff;
    overflow-x: hidden;
    font-family: "Montserrat", sans-serif;
    -webkit-font-smoothing: antialiased;
}

canvas#c {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    touch-action: none;
    image-rendering: pixelated;
    z-index: 1;
}

.content {
    position: relative;
    z-index: 10;
    width: 100%;
    box-sizing: border-box;
}

.site-header {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    padding: 0.8rem 10%;
    box-sizing: border-box;
    display: flex;
    align-items: center;
    justify-content: space-between;
    background: rgba(0, 0, 0, 0.6);
    backdrop-filter: blur(14px);
    -webkit-backdrop-filter: blur(14px);
    border-bottom: 1px solid rgba(255, 255, 255, 0.08);
    z-index: 100;
}

.header-brand {
    font-family: "Montserrat Alternates", sans-serif;
    font-size: 1.5rem;
    font-weight: 700;
    letter-spacing: -1px;
    color: #fff;
    text-decoration: none;
    text-transform: lowercase;
    line-height: 1;
    transition: opacity 0.2s ease;
}

.header-brand:hover {
    opacity: 0.7;
}

.header-links {
    display: flex;
    align-items: center;
    gap: 30px;
    margin-right: 20px;
}

.header-links a,
.hero-links a {
    font-family: "Montserrat", sans-serif;
    font-size: 0.6rem;
    color: rgba(255, 255, 255, 0.65);
    text-decoration: none;
    text-transform: uppercase;
    letter-spacing: 1px;
    transition: all 0.3s ease;
    border-bottom: 1px solid transparent;
    padding-bottom: 2px;
}

.header-links a:hover,
.hero-links a:hover {
    color: #fff;
    border-bottom-color: rgba(255, 255, 255, 0.3);
}

.footer,
.card-footer {
    display: flex;
    justify-content: space-between;
    align-items: center;
    font-family: "Montserrat", sans-serif;
    font-size: 0.65rem;
    color: rgba(255, 255, 255, 0.4);
    text-transform: uppercase;
    letter-spacing: 1px;
}

.footer a,
.card-footer a {
    color: rgba(255, 255, 255, 0.65);
    text-decoration: none;
    transition: color 0.3s ease;
    border-bottom: 1px solid transparent;
    padding-bottom: 2px;
}

.footer a:hover,
.card-footer a:hover {
    color: #fff;
    border-bottom-color: rgba(255, 255, 255, 0.3);
}

@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(calc(-50% + 15px));
        filter: blur(10px);
    }
    to {
        opacity: 1;
        transform: translateY(-50%);
        filter: blur(0);
    }
}

@keyframes fadeInUpSimple {
    from {
        opacity: 0;
        transform: translateY(20px);
        filter: blur(10px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
        filter: blur(0);
    }
}

@keyframes fadeInUpMobile {
    from {
        opacity: 0;
        transform: translate(-50%, calc(-50% + 15px));
        filter: blur(10px);
    }
    to {
        opacity: 1;
        transform: translate(-50%, -50%);
        filter: blur(0);
    }
}

.hero {
    height: 100vh;
    display: flex;
    flex-direction: column;
    justify-content: center;
    padding: 0 10%;
    box-sizing: border-box;
    position: relative;
}

.hero-inner {
    display: inline-flex;
    flex-direction: column;
    position: fixed;
    top: 50%;
    left: 10%;
    transform: translateY(-50%);
    padding: 1.5rem 2.2rem;
    width: fit-content;
    box-sizing: border-box;
    backdrop-filter: blur(14px);
    -webkit-backdrop-filter: blur(14px);
    border: 1px solid rgba(255, 255, 255, 0.08);
    border-radius: 4px;
    background: rgba(255, 255, 255, 0.01);
    animation: fadeInUp 1.2s cubic-bezier(0.22, 1, 0.36, 1) 0.1s forwards;
    opacity: 0;
    z-index: 100;
    transition: all 0.7s cubic-bezier(0.22, 1, 0.36, 1);
}

.hero-inner.sticky {
    top: 0;
    left: 0;
    transform: translateY(0) !important;
    width: 100%;
    max-width: none;
    border-radius: 0;
    border-color: transparent;
    border-bottom-color: rgba(255, 255, 255, 0.08);
    padding: 0.8rem 10%;
    flex-direction: row;
    align-items: center;
    justify-content: space-between;
    background: rgba(0, 0, 0, 0.6);
}

.hero h1 {
    font-family: "Montserrat Alternates", sans-serif;
    font-size: clamp(3rem, 12vw, 6.5rem);
    font-weight: 700;
    margin: 0;
    letter-spacing: -3px;
    text-transform: lowercase;
    line-height: 0.9;
    transition: all 0.6s cubic-bezier(0.22, 1, 0.36, 1);
}

.hero-inner.sticky h1 {
    font-size: 1.5rem;
    letter-spacing: -1px;
}

.hero-status {
    margin: 1.8rem 0 1.2rem 0;
    display: flex;
    justify-content: space-between;
    width: 100%;
    font-family: "Montserrat", sans-serif;
    font-size: 0.6rem;
    font-weight: 400;
    letter-spacing: 2px;
    color: rgba(255, 255, 255, 0.65);
    text-transform: uppercase;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
    padding: 10px 0;
    transition: all 0.6s ease;
}

.hero-inner.sticky .hero-status {
    display: none;
}

.hero-links {
    display: flex;
    justify-content: space-between;
    align-items: center;
    width: 100%;
    gap: 20px;
    margin: 0;
    padding: 0;
    transition: all 0.6s ease;
}

.hero-inner.sticky .hero-links {
    width: auto;
    justify-content: flex-end;
    gap: 30px;
    margin-right: 20px;
}

.info-wrapper {
    width: 100%;
    background: linear-gradient(
        to bottom,
        rgba(0, 0, 0, 0.1),
        rgba(0, 0, 0, 0.3)
    );
    backdrop-filter: blur(8px) saturate(110%);
    -webkit-backdrop-filter: blur(8px) saturate(110%);
    border-top: 1px solid rgba(255, 255, 255, 0.05);
    margin-top: -5vh;
    padding: 80px 0;
    position: relative;
    transform: translateZ(0);
}

.info-wrapper::before {
    content: "";
    position: absolute;
    top: -100px;
    left: 0;
    width: 100%;
    height: 100px;
    background: linear-gradient(to bottom, transparent, rgba(0, 0, 0, 0.3));
    pointer-events: none;
}

.info-panel {
    max-width: 1000px;
    margin: 0 auto;
    padding: 0 10%;
}

.project-list {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 1.5rem;
    background: transparent;
    border: none;
}

.project-row {
    display: flex;
    flex-direction: column;
    padding: 2.5rem;
    background: rgba(20, 20, 20, 0.4);
    backdrop-filter: blur(20px) saturate(150%);
    -webkit-backdrop-filter: blur(20px) saturate(150%);
    border: 1px solid rgba(255, 255, 255, 0.08);
    border-radius: 12px;
    transition: all 0.3s ease;
    position: relative;
    cursor: pointer;
    overflow: hidden;
    text-decoration: none;
}

.project-row::before {
    content: "";
    position: absolute;
    inset: 0;
    background: radial-gradient(
        circle at var(--mouse-x) var(--mouse-y),
        rgba(255, 255, 255, 0.12) 0%,
        transparent 150px
    );
    z-index: 0;
    opacity: 0;
    transition: opacity 0.3s ease;
    pointer-events: none;
}

.project-row:hover::before {
    opacity: 1;
}

.project-row:hover {
    background: rgba(255, 255, 255, 0.04);
    border-color: rgba(255, 255, 255, 0.15);
}

.project-row > * {
    position: relative;
    z-index: 1;
}

.project-row h3 {
    font-family: "Montserrat Alternates", sans-serif;
    font-size: 1.2rem;
    margin: 0 0 0.8rem 0;
    color: #fff;
    font-weight: 700;
}

.star-count {
    position: absolute;
    top: 1.5rem;
    right: 1.5rem;
    font-family: "Montserrat", sans-serif;
    font-size: 0.7rem;
    color: rgba(255, 255, 255, 0.4);
    display: flex;
    align-items: center;
    gap: 4px;
}

.star-count svg {
    width: 12px;
    height: 12px;
    fill: currentColor;
}

.project-row p {
    font-family: "Montserrat", sans-serif;
    font-size: 0.85rem;
    line-height: 1.5;
    color: rgba(255, 255, 255, 0.4);
    margin: 0;
}

.stack {
    margin-bottom: 2rem;
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(90px, 1fr));
    gap: 0.5rem;
    width: 100%;
}

.stack div {
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 0.6rem 0.3rem;
    background: rgba(20, 20, 20, 0.4);
    backdrop-filter: blur(15px) saturate(150%);
    -webkit-backdrop-filter: blur(15px) saturate(150%);
    border: 1px solid rgba(255, 255, 255, 0.08);
    border-radius: 8px;
    font-family: "Montserrat", sans-serif;
    font-size: 0.65rem;
    font-weight: 400;
    color: rgba(255, 255, 255, 0.65);
    text-transform: uppercase;
    letter-spacing: 0.5px;
    transition: all 0.3s ease;
    position: relative;
    overflow: hidden;
    cursor: default;
    white-space: nowrap;
}

.stack div::before {
    content: "";
    position: absolute;
    inset: 0;
    background: radial-gradient(
        circle at var(--mouse-x) var(--mouse-y),
        rgba(255, 255, 255, 0.1) 0%,
        transparent 80px
    );
    z-index: 0;
    opacity: 0;
    transition: opacity 0.3s ease;
    pointer-events: none;
}

.stack div:hover::before {
    opacity: 1;
}

.stack div:hover {
    background: rgba(255, 255, 255, 0.04);
    border-color: rgba(255, 255, 255, 0.15);
    color: #fff;
}

.stack span {
    display: none;
}

.footer {
    margin-top: 3rem;
    padding-top: 2rem;
}

.not-found-content {
    min-height: 100vh;
    display: flex;
    justify-content: center;
    align-items: center;
    padding: 20px;
}

.not-found-inner {
    display: flex;
    flex-direction: column;
    align-items: center;
    padding: 2.5rem 3.5rem;
    width: fit-content;
    box-sizing: border-box;
    backdrop-filter: blur(14px);
    -webkit-backdrop-filter: blur(14px);
    border: 1px solid rgba(255, 255, 255, 0.08);
    border-radius: 4px;
    background: rgba(255, 255, 255, 0.01);
    animation: fadeInUpSimple 1.2s cubic-bezier(0.22, 1, 0.36, 1) 0.1s forwards;
}

.not-found-inner h1 {
    font-family: "Montserrat Alternates", sans-serif;
    font-size: clamp(4rem, 15vw, 8rem);
    font-weight: 700;
    margin: 0 0 1.5rem 0;
    letter-spacing: -4px;
    text-transform: lowercase;
    line-height: 0.8;
}

.not-found-inner a {
    font-family: "Montserrat", sans-serif;
    font-size: 0.65rem;
    color: rgba(255, 255, 255, 0.65);
    text-decoration: none;
    text-transform: uppercase;
    letter-spacing: 1.5px;
    transition: all 0.3s ease;
    border-bottom: 1px solid transparent;
    padding-bottom: 2px;
}

.not-found-inner a:hover {
    color: #fff;
    border-bottom-color: rgba(255, 255, 255, 0.3);
}

.donate-page-content {
    min-height: 100vh;
    display: flex;
    justify-content: center;
    align-items: center;
    padding: 90px 20px 50px 20px;
}

.donate-card {
    width: 100%;
    max-width: 760px;
    background: rgba(255, 255, 255, 0.01);
    backdrop-filter: blur(14px);
    -webkit-backdrop-filter: blur(14px);
    border: 1px solid rgba(255, 255, 255, 0.08);
    border-radius: 4px;
    padding: 2.4rem 2.6rem;
    box-sizing: border-box;
    animation: fadeInUpSimple 0.9s cubic-bezier(0.22, 1, 0.36, 1) 0.1s forwards;
    position: relative;
}

.card-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 15px;
    margin: 0 0 0.8rem 0;
}

.card-header h1 {
    font-family: "Montserrat Alternates", sans-serif;
    font-size: clamp(2.2rem, 5.5vw, 3.2rem);
    font-weight: 700;
    margin: 0;
    letter-spacing: -2px;
    text-transform: lowercase;
    line-height: 0.95;
}

.heart-icon {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    color: rgba(255, 255, 255, 0.7);
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid rgba(255, 255, 255, 0.08);
    border-radius: 4px;
    padding: 8px;
    line-height: 0;
    flex-shrink: 0;
    transition: all 0.3s ease;
}

.heart-icon:hover {
    color: #fff;
    border-color: rgba(255, 255, 255, 0.2);
    background: rgba(255, 255, 255, 0.07);
}

.heart-icon svg {
    width: 18px;
    height: 18px;
    display: block;
}

.card-desc {
    font-size: 0.8rem;
    line-height: 1.6;
    color: rgba(255, 255, 255, 0.45);
    margin: 0 0 1.6rem 0;
}

.card-desc a {
    color: rgba(255, 255, 255, 0.75);
    text-decoration: none;
    border-bottom: 1px solid rgba(255, 255, 255, 0.2);
    transition: all 0.2s ease;
}

.card-desc a:hover {
    color: #fff;
    border-bottom-color: #fff;
}

.wallets-list {
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
}

.wallet-card {
    background: rgba(255, 255, 255, 0.015);
    border: 1px solid rgba(255, 255, 255, 0.07);
    border-radius: 12px;
    padding: 1.1rem 1.25rem;
    display: flex;
    flex-direction: column;
    gap: 0.7rem;
    position: relative;
    overflow: hidden;
    transition: all 0.25s ease;
}

.wallet-card::before {
    content: "";
    position: absolute;
    inset: 0;
    background: radial-gradient(
        circle at var(--mouse-x) var(--mouse-y),
        rgba(255, 255, 255, 0.08) 0%,
        transparent 120px
    );
    z-index: 0;
    opacity: 0;
    transition: opacity 0.3s ease;
    pointer-events: none;
}

.wallet-card:hover::before {
    opacity: 1;
}

.wallet-card:hover {
    background: rgba(255, 255, 255, 0.035);
    border-color: rgba(255, 255, 255, 0.16);
}

.wallet-card.priority {
    border-color: rgba(255, 255, 255, 0.13);
    background: rgba(255, 255, 255, 0.025);
}

.wallet-card.priority:hover {
    border-color: rgba(255, 255, 255, 0.25);
    background: rgba(255, 255, 255, 0.045);
}

.wallet-card > * {
    position: relative;
    z-index: 1;
}

.wallet-head {
    display: flex;
    align-items: baseline;
    justify-content: space-between;
    gap: 12px;
    flex-wrap: wrap;
}

.wallet-head h3 {
    font-family: "Montserrat Alternates", sans-serif;
    font-size: 1.05rem;
    font-weight: 700;
    margin: 0;
    color: #fff;
    letter-spacing: -0.5px;
    line-height: 1.2;
}

.wallet-tokens {
    font-size: 0.65rem;
    color: rgba(255, 255, 255, 0.4);
    letter-spacing: 0.3px;
    line-height: 1.2;
}

.wallet-address-bar {
    display: flex;
    align-items: center;
    justify-content: space-between;
    background: rgba(0, 0, 0, 0.4);
    border: 1px solid rgba(255, 255, 255, 0.06);
    border-radius: 8px;
    padding: 0.6rem 0.85rem;
    gap: 12px;
    cursor: pointer;
    transition: all 0.2s ease;
    box-sizing: border-box;
    min-width: 0;
}

.wallet-address-bar:hover {
    border-color: rgba(255, 255, 255, 0.18);
    background: rgba(0, 0, 0, 0.65);
}

.addr-text {
    font-family: "JetBrains Mono", monospace, monospace;
    font-size: 0.72rem;
    color: rgba(255, 255, 255, 0.7);
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
    letter-spacing: 0.3px;
    min-width: 0;
    flex: 1;
}

.wallet-address-bar:hover .addr-text {
    color: #fff;
}

.wallet-controls {
    display: flex;
    align-items: center;
    gap: 6px;
    flex-shrink: 0;
}

.btn-ctrl {
    background: rgba(255, 255, 255, 0.04);
    border: 1px solid rgba(255, 255, 255, 0.09);
    color: rgba(255, 255, 255, 0.55);
    font-family: "Montserrat", sans-serif;
    font-size: 0.58rem;
    font-weight: 500;
    text-transform: uppercase;
    letter-spacing: 1px;
    cursor: pointer;
    padding: 4px 8px;
    border-radius: 4px;
    line-height: 1;
    transition: all 0.2s ease;
    display: inline-flex;
    align-items: center;
    justify-content: center;
}

.btn-ctrl:hover {
    color: #fff;
    background: rgba(255, 255, 255, 0.12);
    border-color: rgba(255, 255, 255, 0.22);
}

.btn-ctrl.copied {
    color: #fff;
    background: rgba(255, 255, 255, 0.18);
    border-color: rgba(255, 255, 255, 0.35);
}

.card-footer {
    margin-top: 2rem;
    padding-top: 0.5rem;
    border-top: none;
    display: grid;
    grid-template-columns: 1fr auto 1fr;
    align-items: baseline;
    gap: 12px;
}

.card-footer > span:first-child {
    justify-self: start;
    line-height: 1.4;
}

.footer-memo {
    justify-self: center;
    color: rgba(255, 255, 255, 0.28);
    letter-spacing: 0.8px;
    text-align: center;
    line-height: 1.4;
    white-space: nowrap;
}

.card-footer > a {
    justify-self: end;
    line-height: 1.4;
    display: inline-block;
}

.modal-overlay {
    position: fixed;
    inset: 0;
    background: rgba(0, 0, 0, 0.75);
    backdrop-filter: blur(16px);
    -webkit-backdrop-filter: blur(16px);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 1000;
    opacity: 0;
    pointer-events: none;
    transition: all 0.25s cubic-bezier(0.22, 1, 0.36, 1);
    padding: 20px;
    box-sizing: border-box;
}

.modal-overlay.active {
    opacity: 1;
    pointer-events: auto;
}

.modal-inner {
    background: rgba(255, 255, 255, 0.01);
    backdrop-filter: blur(14px);
    -webkit-backdrop-filter: blur(14px);
    border: 1px solid rgba(255, 255, 255, 0.08);
    border-radius: 4px;
    padding: 2.2rem 2.4rem;
    max-width: 440px;
    width: 100%;
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    box-sizing: border-box;
    position: relative;
    transform: scale(0.97);
    transition: transform 0.25s cubic-bezier(0.22, 1, 0.36, 1);
}

.modal-overlay.active .modal-inner {
    transform: scale(1);
}

.modal-title {
    font-family: "Montserrat Alternates", sans-serif;
    font-size: clamp(1.4rem, 4vw, 1.8rem);
    font-weight: 700;
    margin: 0;
    color: #fff;
    letter-spacing: -1px;
    text-transform: lowercase;
    line-height: 1;
}

.modal-tokens {
    font-size: 0.62rem;
    color: rgba(255, 255, 255, 0.4);
    letter-spacing: 1px;
    text-transform: uppercase;
    margin: 0.5rem 0 1.5rem 0;
}

#qr-canvas {
    display: block;
    width: 200px;
    height: 200px;
    image-rendering: pixelated;
    image-rendering: crisp-edges;
    background: #fff;
    border-radius: 4px;
    margin: 0 0 1.5rem 0;
}

.modal-address-plain {
    font-family: "JetBrains Mono", monospace;
    font-size: 0.72rem;
    line-height: 1.6;
    color: rgba(255, 255, 255, 0.75);
    word-break: break-all;
    user-select: all;
    letter-spacing: 0.3px;
    padding: 0.8rem 1rem;
    background: rgba(255, 255, 255, 0.015);
    border-top: 1px solid rgba(255, 255, 255, 0.08);
    border-bottom: 1px solid rgba(255, 255, 255, 0.08);
    width: 100%;
    box-sizing: border-box;
    cursor: pointer;
    transition: all 0.2s ease;
    margin-bottom: 1.5rem;
}

.modal-address-plain:hover {
    color: #fff;
    background: rgba(255, 255, 255, 0.035);
}

.modal-actions {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 25px;
    width: 100%;
}

.modal-copy-link,
.modal-close-link {
    background: none;
    border: none;
    outline: none;
    cursor: pointer;
    padding: 0 0 2px 0;
    font-family: "Montserrat", sans-serif;
    font-size: 0.65rem;
    color: rgba(255, 255, 255, 0.65);
    text-transform: uppercase;
    letter-spacing: 1.5px;
    transition: all 0.3s ease;
    border-bottom: 1px solid transparent;
}

.modal-copy-link:hover,
.modal-close-link:hover {
    color: #fff;
    border-bottom-color: rgba(255, 255, 255, 0.3);
}

.modal-copy-link.copied {
    color: #fff;
    border-bottom-color: #fff;
}

@media (max-width: 768px) {
    .site-header {
        padding: 0.8rem 5%;
    }

    .header-links {
        gap: 15px;
        margin-right: 0;
    }

    .header-links a {
        font-size: 0.55rem;
    }

    .hero {
        padding: 0 5%;
    }

    .hero-inner {
        left: 50%;
        transform: translate(-50%, -50%);
        width: 90%;
        padding: 1.2rem 1.5rem;
        animation-name: fadeInUpMobile;
    }

    .hero-inner.sticky {
        left: 0;
        transform: translate(0, 0) !important;
        width: 100%;
        padding: 0.6rem 5%;
    }

    .hero h1 {
        font-size: clamp(2rem, 15vw, 4rem);
        text-align: center;
    }

    .hero-inner.sticky h1 {
        font-size: 1.2rem;
    }

    .hero-status {
        font-size: 0.5rem;
        margin: 1.2rem 0 0.8rem 0;
    }

    .hero-links {
        gap: 10px;
        justify-content: center;
        flex-wrap: wrap;
    }

    .hero-inner.sticky .hero-links {
        gap: 15px;
        margin-right: 0;
    }

    .info-panel {
        padding: 0 5%;
    }

    .project-list {
        grid-template-columns: 1fr;
    }

    .project-row {
        padding: 1.5rem;
    }

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

    .footer {
        flex-direction: column;
        gap: 1rem;
        text-align: center;
    }

    .donate-page-content {
        padding: 75px 14px 35px 14px;
    }

    .donate-card {
        padding: 1.8rem 1.4rem;
    }

    .wallet-card {
        padding: 1rem 1rem;
        gap: 0.65rem;
    }

    .wallet-head {
        flex-direction: column;
        align-items: flex-start;
        gap: 4px;
    }

    .wallet-address-bar {
        padding: 0.55rem 0.75rem;
        gap: 8px;
    }

    .addr-text {
        font-size: 0.66rem;
    }

    .card-footer {
        flex-direction: column;
        gap: 12px;
        text-align: center;
        margin-top: 1.6rem;
    }

    .modal-inner {
        padding: 1.8rem 1.2rem;
        max-width: 95%;
    }

    .modal-address-plain {
        padding: 0.7rem 0.8rem;
        font-size: 0.68rem;
    }
}

@media (max-width: 480px) {
    .hero-links a {
        font-size: 0.55rem;
    }

    .hero-inner.sticky .hero-links {
        gap: 10px;
    }

    .hero-inner.sticky h1 {
        display: none;
    }

    .hero-inner.sticky {
        justify-content: center;
    }
}
