:root {
    --bg: #07130f;
    --bg-strong: #03100c;
    --panel: rgba(7, 20, 16, 0.88);
    --panel-soft: rgba(255, 255, 255, 0.055);
    --line: rgba(130, 230, 186, 0.2);
    --line-strong: rgba(130, 230, 186, 0.42);
    --text: #f3fff8;
    --muted: #b9d7c8;
    --green: #82e6ba;
    --teal: #38c7c7;
    --amber: #f1c75b;
    --coral: #ff8e72;
    --shadow: 0 24px 70px rgba(0, 0, 0, 0.38);
}

* {
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    margin: 0;
    font-family: Inter, "Microsoft YaHei", "PingFang SC", Arial, sans-serif;
    color: var(--text);
    background: var(--bg);
    line-height: 1.65;
    overflow-x: hidden;
}

a {
    color: inherit;
}

img {
    max-width: 100%;
    height: auto;
}

.page-wrap {
    width: min(1120px, calc(100% - 40px));
    margin: 0 auto;
}

.site-nav {
    position: fixed;
    inset: 0 0 auto;
    z-index: 30;
    background: rgba(3, 14, 11, 0.86);
    border-bottom: 1px solid rgba(255, 255, 255, 0.08);
    backdrop-filter: blur(18px);
}

.nav-container {
    width: min(1180px, calc(100% - 32px));
    min-height: 72px;
    margin: 0 auto;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 24px;
}

.nav-brand {
    display: inline-flex;
    align-items: center;
    gap: 12px;
    text-decoration: none;
    min-width: 150px;
}

.nav-brand img {
    width: 44px;
    height: 44px;
    border-radius: 8px;
    box-shadow: 0 0 24px rgba(130, 230, 186, 0.2);
}

.nav-brand span {
    display: grid;
    gap: 0;
}

.nav-brand strong {
    font-size: 1.12rem;
    line-height: 1.1;
}

.nav-brand small {
    color: var(--muted);
    font-size: 0.82rem;
}

.nav-menu {
    margin: 0;
    padding: 0;
    display: flex;
    align-items: center;
    justify-content: flex-end;
    gap: 6px;
    list-style: none;
}

.nav-menu a {
    display: inline-flex;
    align-items: center;
    min-height: 40px;
    padding: 0 12px;
    border-radius: 8px;
    color: var(--muted);
    text-decoration: none;
    font-size: 0.95rem;
    font-weight: 600;
}

.nav-menu a:hover,
.nav-menu a:focus-visible {
    color: var(--text);
    background: rgba(255, 255, 255, 0.075);
    outline: none;
}

.nav-toggle {
    display: none;
    width: 44px;
    height: 44px;
    padding: 0;
    border: 1px solid rgba(255, 255, 255, 0.18);
    border-radius: 8px;
    background: rgba(255, 255, 255, 0.06);
    cursor: pointer;
}

.nav-toggle span {
    display: block;
    width: 20px;
    height: 2px;
    margin: 5px auto;
    background: var(--text);
}

.project-hero {
    position: relative;
    min-height: 84svh;
    padding: 148px 0 88px;
    display: flex;
    align-items: center;
    overflow: hidden;
    isolation: isolate;
    background-image:
        linear-gradient(90deg, rgba(3, 16, 12, 0.96), rgba(3, 16, 12, 0.78) 48%, rgba(3, 16, 12, 0.58)),
        url("/images/wallet-recovery-og.jpg");
    background-size: cover;
    background-position: center;
}

.project-hero::after {
    content: "";
    position: absolute;
    inset: auto 0 0;
    height: 1px;
    background: linear-gradient(90deg, transparent, var(--green), transparent);
    opacity: 0.5;
}

.hero-mark {
    position: absolute;
    right: 5%;
    bottom: 1.5rem;
    width: 340px;
    opacity: 0.18;
    filter: drop-shadow(0 0 48px rgba(130, 230, 186, 0.32));
    z-index: -1;
}

.hero-inner {
    width: min(960px, calc(100% - 40px));
    margin: 0 auto;
}

.hero-kicker,
.section-eyebrow {
    display: inline-flex;
    align-items: center;
    gap: 9px;
    margin: 0 0 16px;
    color: var(--amber);
    font-size: 0.88rem;
    font-weight: 800;
    text-transform: uppercase;
}

.project-hero h1 {
    max-width: 720px;
    margin: 0 0 12px;
    color: #ffffff;
    font-size: 4.1rem;
    line-height: 1.08;
}

.hero-lead {
    max-width: 760px;
    margin: 0 0 18px;
    color: var(--green);
    font-size: 1.65rem;
    font-weight: 700;
    line-height: 1.35;
}

.hero-copy {
    max-width: 770px;
    margin: 0;
    color: var(--muted);
    font-size: 1.08rem;
    line-height: 1.9;
}

.hero-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
    margin: 32px 0 24px;
}

.action-link,
.text-action {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    min-height: 46px;
    padding: 0 17px;
    border: 1px solid rgba(255, 255, 255, 0.18);
    border-radius: 8px;
    color: var(--text);
    background: rgba(255, 255, 255, 0.06);
    text-decoration: none;
    font-weight: 800;
}

.action-link.primary {
    color: #05100c;
    border-color: transparent;
    background: var(--green);
}

.action-link:hover,
.action-link:focus-visible,
.text-action:hover,
.text-action:focus-visible {
    border-color: var(--line-strong);
    transform: translateY(-1px);
    outline: none;
}

.hero-principles {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    color: var(--text);
}

.hero-principles span {
    display: inline-flex;
    align-items: center;
    min-height: 34px;
    padding: 0 12px;
    border: 1px solid rgba(130, 230, 186, 0.28);
    border-radius: 8px;
    color: #dffced;
    background: rgba(130, 230, 186, 0.08);
    font-size: 0.92rem;
    font-weight: 700;
}

.section {
    padding: 72px 0;
}

.intro-section,
.method-section {
    background: #081812;
}

.projects-section,
.contact-section {
    background: var(--bg-strong);
}

.resources-section {
    background: #0b1d16;
}

.section-copy h2 {
    max-width: 760px;
    margin: 0 0 16px;
    color: #ffffff;
    font-size: 2.2rem;
    line-height: 1.22;
}

.section-copy p:not(.section-eyebrow) {
    max-width: 740px;
    margin: 0;
    color: var(--muted);
    font-size: 1.02rem;
    line-height: 1.9;
}

.section-copy.compact {
    margin-bottom: 28px;
}

.intro-grid,
.method-layout,
.resources-layout,
.contact-layout {
    display: grid;
    grid-template-columns: minmax(0, 1.06fr) minmax(320px, 0.84fr);
    gap: 44px;
    align-items: start;
}

.intro-points,
.method-steps,
.resource-links,
.contact-list {
    margin: 0;
    display: grid;
    gap: 12px;
}

.intro-points div,
.method-steps li,
.project-card,
.resource-links a,
.contact-list a {
    border: 1px solid var(--line);
    border-radius: 8px;
    background: var(--panel);
    box-shadow: var(--shadow);
}

.intro-points div {
    display: grid;
    grid-template-columns: 42px 1fr;
    column-gap: 14px;
    row-gap: 4px;
    padding: 18px;
}

.intro-points i {
    grid-row: span 2;
    width: 42px;
    height: 42px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border-radius: 8px;
    color: #04100b;
    background: var(--amber);
}

.intro-points strong {
    color: var(--text);
    font-size: 1.05rem;
}

.intro-points span,
.project-card p,
.method-steps p {
    color: var(--muted);
}

.project-grid {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 16px;
}

.project-card {
    padding: 22px;
    min-height: 278px;
    display: flex;
    flex-direction: column;
}

.project-card i {
    width: 48px;
    height: 48px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 18px;
    border-radius: 8px;
    color: #04100b;
    background: var(--green);
}

.project-card:nth-child(2) i {
    background: var(--teal);
}

.project-card:nth-child(3) i {
    background: var(--amber);
}

.project-card:nth-child(4) i {
    background: var(--coral);
}

.project-card h3 {
    margin: 0 0 10px;
    color: var(--text);
    font-size: 1.16rem;
    line-height: 1.35;
}

.project-card p {
    margin: 0 0 20px;
    line-height: 1.75;
}

.project-card a {
    margin-top: auto;
    color: var(--green);
    text-decoration: none;
    font-weight: 800;
}

.method-steps {
    padding: 0;
    list-style: none;
}

.method-steps li {
    position: relative;
    padding: 18px 18px 18px 76px;
}

.method-steps span {
    position: absolute;
    top: 18px;
    left: 18px;
    width: 40px;
    height: 40px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border-radius: 8px;
    color: #04100b;
    background: var(--amber);
    font-weight: 900;
}

.method-steps strong {
    display: block;
    color: var(--text);
    font-size: 1.06rem;
    margin-bottom: 4px;
}

.method-steps p {
    margin: 0;
}

.text-action {
    margin-top: 24px;
    color: var(--green);
}

.resource-links,
.contact-list {
    grid-template-columns: repeat(2, minmax(0, 1fr));
}

.resource-links a,
.contact-list a {
    display: flex;
    align-items: center;
    gap: 12px;
    min-height: 72px;
    padding: 16px;
    color: var(--text);
    text-decoration: none;
    font-weight: 800;
}

.resource-links i,
.contact-list i {
    color: var(--amber);
    font-size: 1.14rem;
}

.resource-links a:hover,
.contact-list a:hover,
.project-card:hover,
.intro-points div:hover,
.method-steps li:hover {
    border-color: var(--line-strong);
    background: rgba(255, 255, 255, 0.075);
}

.site-footer {
    padding: 30px 0;
    background: #030e0b;
    border-top: 1px solid rgba(255, 255, 255, 0.08);
}

.footer-layout {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 24px;
}

.site-footer strong {
    display: block;
    margin-bottom: 4px;
    color: var(--text);
}

.site-footer p {
    margin: 0;
    color: var(--muted);
}

.site-footer nav {
    display: flex;
    flex-wrap: wrap;
    justify-content: flex-end;
    gap: 14px;
}

.site-footer a {
    color: var(--muted);
    text-decoration: none;
}

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

@media (max-width: 980px) {
    .nav-menu {
        position: absolute;
        top: 72px;
        left: 16px;
        right: 16px;
        display: none;
        flex-direction: column;
        align-items: stretch;
        padding: 12px;
        background: rgba(3, 14, 11, 0.96);
        border: 1px solid rgba(255, 255, 255, 0.12);
        border-radius: 8px;
        box-shadow: var(--shadow);
    }

    .nav-menu.active {
        display: flex;
    }

    .nav-menu a {
        justify-content: center;
    }

    .nav-toggle {
        display: block;
    }

    .project-hero h1 {
        font-size: 3.15rem;
    }

    .hero-lead {
        font-size: 1.38rem;
    }

    .intro-grid,
    .method-layout,
    .resources-layout,
    .contact-layout {
        grid-template-columns: 1fr;
        gap: 28px;
    }

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

@media (max-width: 640px) {
    .page-wrap,
    .hero-inner {
        width: min(100% - 28px, 1120px);
    }

    .nav-container {
        width: min(100% - 24px, 1180px);
    }

    .nav-brand {
        min-width: auto;
    }

    .project-hero {
        min-height: 82svh;
        padding: 124px 0 58px;
    }

    .hero-mark {
        width: 220px;
        right: -44px;
        opacity: 0.12;
    }

    .project-hero h1 {
        font-size: 2.35rem;
    }

    .hero-lead {
        font-size: 1.16rem;
    }

    .hero-copy,
    .section-copy p:not(.section-eyebrow) {
        font-size: 0.98rem;
    }

    .hero-actions,
    .hero-principles,
    .footer-layout {
        align-items: stretch;
        flex-direction: column;
    }

    .action-link,
    .text-action,
    .hero-principles span {
        width: 100%;
        justify-content: center;
    }

    .section {
        padding: 52px 0;
    }

    .section-copy h2 {
        font-size: 1.72rem;
    }

    .project-grid,
    .resource-links,
    .contact-list {
        grid-template-columns: 1fr;
    }

    .project-card {
        min-height: auto;
    }

    .method-steps li {
        padding-left: 18px;
        padding-top: 72px;
    }

    .site-footer nav {
        justify-content: flex-start;
    }
}
