:root {
    --bg: #f7f8fb;
    --ink: #15171c;
    --muted: #606b7d;
    --card: rgba(255,255,255,.92);
    --line: rgba(19, 24, 35, .12);
    --brand: #111827;
    --accent: #14b86a;
    --accent2: #ffb11b;
    --shadow: 0 20px 60px rgba(17, 24, 39, .18);
}
.template-custody { --accent: #13a87d; --accent2: #25a7f0; }
.template-defi { --accent: #d98c18; --accent2: #12a66a; }
.template-onchain { --accent: #2563eb; --accent2: #ef5d7a; }
.template-research { --accent: #e85d43; --accent2: #1c8a7a; }
* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
    margin: 0;
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Arial, "PingFang SC", "Microsoft YaHei", sans-serif;
    color: var(--ink);
    background: var(--bg);
    line-height: 1.65;
}
a { color: inherit; text-decoration: none; }
img { display: block; max-width: 100%; height: auto; }
.topbar {
    position: sticky;
    top: 0;
    z-index: 20;
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 12px clamp(16px, 4vw, 54px);
    background: rgba(255,255,255,.88);
    border-bottom: 1px solid var(--line);
    backdrop-filter: blur(16px);
}
.mini-brand { font-size: 20px; font-weight: 900; letter-spacing: 0; }
nav { display: flex; gap: 18px; color: var(--muted); font-size: 14px; font-weight: 800; }
.entry-hero {
    position: relative;
    display: grid;
    place-items: center;
    min-height: calc(100svh - 57px);
    padding: 44px 16px;
    overflow: hidden;
    isolation: isolate;
}
.hero-bg { position: absolute; inset: 0; z-index: -2; background: #111827; }
.hero-bg::after {
    content: "";
    position: absolute;
    inset: 0;
    background: linear-gradient(180deg, rgba(0,0,0,.34), rgba(0,0,0,.56));
}
.hero-bg img { width: 100%; height: 100%; object-fit: cover; }
.entry-card {
    width: min(760px, 100%);
    padding: clamp(26px, 5vw, 54px);
    text-align: center;
    background: var(--card);
    border: 1px solid rgba(255,255,255,.66);
    border-radius: 8px;
    box-shadow: var(--shadow);
}
.big-logo {
    display: inline-flex;
    align-items: baseline;
    justify-content: center;
    gap: 10px;
    margin-bottom: 16px;
    font-size: clamp(58px, 11vw, 118px);
    line-height: .9;
    font-weight: 950;
    letter-spacing: 0;
    color: var(--brand);
}
.big-logo span {
    padding: 7px 10px;
    border-radius: 6px;
    background: var(--accent);
    color: #fff;
    font-size: clamp(20px, 3vw, 34px);
    line-height: 1;
}
h1, h2 { margin: 0; line-height: 1.12; letter-spacing: 0; }
h1 { font-size: clamp(30px, 5vw, 56px); }
h2 { font-size: clamp(26px, 3.4vw, 42px); }
p { color: var(--muted); }
.entry-card p { max-width: 560px; margin: 16px auto 0; font-size: 17px; }
.actions { display: flex; justify-content: center; flex-wrap: wrap; gap: 14px; margin-top: 26px; }
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 158px;
    min-height: 52px;
    padding: 0 24px;
    border-radius: 8px;
    border: 1px solid var(--line);
    font-size: 17px;
    font-weight: 900;
}
.btn.primary { background: var(--accent); color: #fff; border-color: var(--accent); }
.btn.secondary { background: #111827; color: #fff; border-color: #111827; }
.quick-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 14px;
    padding: clamp(34px, 6vw, 76px) clamp(16px, 4vw, 54px);
}
.quick-grid article {
    min-height: 168px;
    padding: 24px;
    background: #fff;
    border: 1px solid var(--line);
    border-radius: 8px;
    box-shadow: 0 10px 28px rgba(17, 24, 39, .06);
}
.quick-grid b { color: var(--accent); }
.quick-grid strong { display: block; margin-top: 10px; font-size: 24px; }
.quick-grid span { display: block; margin-top: 8px; color: var(--muted); }
.content-split, .bottom-cta {
    display: grid;
    grid-template-columns: minmax(0, .92fr) minmax(360px, 1.08fr);
    gap: clamp(24px, 5vw, 64px);
    align-items: center;
    padding: clamp(46px, 7vw, 96px) clamp(16px, 4vw, 54px);
}
.eyebrow {
    margin: 0 0 12px;
    color: var(--accent);
    font-size: 13px;
    font-weight: 900;
    text-transform: uppercase;
}
.image-pair {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 14px;
}
.image-pair img, .bottom-cta img {
    width: 100%;
    aspect-ratio: 16 / 10;
    object-fit: cover;
    border-radius: 8px;
    box-shadow: var(--shadow);
}
.image-pair img:nth-child(2) { margin-top: 36px; }
.bottom-cta {
    grid-template-columns: minmax(360px, 1fr) minmax(0, .86fr);
    background: #fff;
    border-top: 1px solid var(--line);
}
.bottom-cta > div {
    padding: clamp(24px, 4vw, 42px);
    border-radius: 8px;
    background: #f4f6fb;
}
.bottom-cta .actions { justify-content: flex-start; }
@media (max-width: 880px) {
    nav { display: none; }
    .quick-grid, .content-split, .bottom-cta { grid-template-columns: 1fr; }
    .entry-hero { min-height: auto; }
    .bottom-cta .actions { justify-content: center; }
}
@media (max-width: 560px) {
    .entry-card { padding: 24px 18px; }
    .big-logo { flex-direction: column; gap: 8px; }
    .actions .btn { width: 100%; }
    .image-pair { grid-template-columns: 1fr; }
    .image-pair img:nth-child(2) { margin-top: 0; }
}
