@import url('https://fonts.googleapis.com/css2?family=Inter:wght@400;500;600&family=Sora:wght@500;600;700&display=swap');

:root {
    --bg: #f7f7f5;
    --bg-pure: #ffffff;
    --text: #111111;
    --text-secondary: #5c5c5c;
    --text-tertiary: #8a8a8a;
    --border: rgba(17, 17, 17, 0.08);
    --blue: #1a8cff;
    --blue-deep: #0066e0;
    --green: #008f4c;
    --orange: #f7931a;
    --orange-deep: #e8780c;
    --nav-height: 100px;
    --content-width: 720px;
    --list-width: 1120px;
    --ease-out: cubic-bezier(0.22, 1, 0.36, 1);
}

*,
*::before,
*::after {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

html {
    scroll-behavior: smooth;
    -webkit-font-smoothing: antialiased;
}

body {
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
    font-size: 17px;
    line-height: 1.75;
    color: var(--text);
    background: var(--bg);
}

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

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

/* Nav (matches newhome) */
.nav {
    height: var(--nav-height);
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 0 1.5rem;
}

.nav-inner {
    width: 100%;
    max-width: 1120px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 2rem;
}

.nav-logo {
    display: flex;
    align-items: center;
    gap: 0.9375rem;
    font-family: 'Sora', 'Inter', sans-serif;
    font-weight: 600;
    font-size: 2rem;
    line-height: 1;
    letter-spacing: -0.035em;
}

.nav-logo img {
    width: 66px;
    height: 66px;
    flex-shrink: 0;
    object-fit: contain;
}

.nav-actions {
    display: flex;
    align-items: center;
    gap: 1.5rem;
}

.nav-link {
    font-size: 0.875rem;
    font-weight: 500;
    color: var(--text-secondary);
    transition: color 0.25s ease;
}

.nav-link:hover,
.nav-link.is-active {
    color: var(--text);
}

.nav-cta {
    font-size: 0.875rem;
    font-weight: 600;
    padding: 0.625rem 1.25rem;
    border-radius: 100px;
    background: var(--text);
    color: var(--bg-pure);
    transition: transform 0.3s var(--ease-out);
}

.nav-cta:hover {
    transform: translateY(-1px);
}

/* Blog listing */
.blog-list-wrap {
    width: 100%;
    max-width: var(--list-width);
    margin: 0 auto;
    padding: 0 1.5rem 4rem;
}

.blog-list-header {
    margin-bottom: 2.5rem;
}

.blog-list-title {
    font-family: 'Sora', 'Inter', sans-serif;
    font-size: clamp(2rem, 4vw, 2.75rem);
    font-weight: 700;
    letter-spacing: -0.03em;
    margin-bottom: 0.75rem;
}

.blog-list-desc {
    font-size: 1.0625rem;
    color: var(--text-secondary);
    max-width: 100%;
}

.blog-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 1.5rem;
    align-items: stretch;
}

.blog-card {
    display: flex;
    flex-direction: column;
    height: 100%;
    border-radius: 16px;
    border: 1px solid var(--border);
    background: var(--bg-pure);
    overflow: hidden;
    transition: transform 0.3s var(--ease-out), border-color 0.25s ease;
}

.blog-card:hover {
    transform: translateY(-3px);
    border-color: rgba(17, 17, 17, 0.14);
}

.blog-card-image {
    aspect-ratio: 16 / 9;
    overflow: hidden;
    background: var(--bg);
}

.blog-card-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.4s var(--ease-out);
}

.blog-card:hover .blog-card-image img {
    transform: scale(1.03);
}

.blog-card-body {
    padding: 1.125rem 1.375rem 1.375rem;
    display: flex;
    flex-direction: column;
    flex: 1;
    gap: 0.375rem;
}

.blog-card-meta {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 0.5rem 0.75rem;
    font-size: 0.8125rem;
    color: var(--text-tertiary);
    margin: 0;
}

.blog-card-title {
    font-family: 'Sora', 'Inter', sans-serif;
    font-size: 1.25rem;
    font-weight: 600;
    letter-spacing: -0.02em;
    line-height: 1.2;
    color: var(--text);
    margin: 0;
}

.blog-card-excerpt {
    font-size: 0.9375rem;
    line-height: 1.55;
    color: var(--text-secondary);
    margin: 0.25rem 0 0;
}

/* Article */
.article-wrap {
    width: 100%;
    max-width: var(--content-width);
    margin: 0 auto;
    padding: 0 1.5rem 4rem;
}

.article-back {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    margin-bottom: 1.5rem;
    font-size: 0.875rem;
    font-weight: 500;
    color: var(--text-secondary);
    transition: color 0.2s ease;
}

.article-back-icon {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    color: var(--text);
}

.article-back-icon i {
    font-size: 0.95rem;
    pointer-events: none;
}

.article-back:hover {
    color: var(--text);
}

.article-meta {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 0.75rem;
    margin-bottom: 1.25rem;
    font-size: 0.875rem;
    color: var(--text-tertiary);
}

.article-tag {
    display: inline-block;
    padding: 0.25rem 0.625rem;
    border-radius: 100px;
    background: rgba(26, 140, 255, 0.1);
    color: var(--blue-deep);
    font-size: 0.75rem;
    font-weight: 600;
}

.article-tag.spend {
    background: rgba(247, 147, 26, 0.12);
    color: var(--orange-deep);
}

.article-tag.learn {
    background: rgba(0, 143, 76, 0.1);
    color: var(--green);
}

.article-title {
    font-family: 'Sora', 'Inter', sans-serif;
    font-size: clamp(2rem, 5vw, 2.75rem);
    font-weight: 700;
    line-height: 1.15;
    letter-spacing: -0.03em;
    margin-bottom: 1.5rem;
}

.article-lead {
    font-size: 1.125rem;
    color: var(--text-secondary);
    margin-bottom: 2rem;
}

.article-hero {
    width: 100%;
    border-radius: 16px;
    border: 1px solid var(--border);
    margin-bottom: 2.5rem;
    overflow: hidden;
    background: var(--bg-pure);
}

.article-hero img {
    width: 100%;
    aspect-ratio: 16 / 9;
    object-fit: cover;
}

.article-body h2 {
    font-family: 'Sora', 'Inter', sans-serif;
    font-size: 1.375rem;
    font-weight: 600;
    letter-spacing: -0.02em;
    margin: 2.5rem 0 1rem;
}

.article-body p {
    margin-bottom: 1.25rem;
    color: var(--text-secondary);
}

.article-body p strong {
    color: var(--text);
    font-weight: 600;
}

.article-body ul {
    margin: 0 0 1.25rem 1.25rem;
    color: var(--text-secondary);
}

.article-example {
    margin: 1.25rem 0 1.5rem;
    padding: 1rem 1.25rem;
    border-radius: 12px;
    border: 1px solid var(--border);
    background: var(--bg-pure);
    font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
    font-size: 1rem;
    font-weight: 600;
    color: var(--text);
    letter-spacing: 0.01em;
}

.article-body li {
    margin-bottom: 0.5rem;
}

.article-steps {
    list-style: none;
    margin: 0;
    padding: 0;
    display: flex;
    flex-direction: column;
    gap: 1.25rem;
}

.article-step {
    display: grid;
    grid-template-columns: 2.5rem 1fr;
    gap: 1rem;
    padding: 1.25rem;
    border-radius: 14px;
    border: 1px solid var(--border);
    background: var(--bg-pure);
}

.article-step-num {
    width: 2.5rem;
    height: 2.5rem;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-family: 'Sora', 'Inter', sans-serif;
    font-size: 0.9375rem;
    font-weight: 700;
    background: rgba(26, 140, 255, 0.12);
    color: var(--blue-deep);
}

.article-step-num.spend {
    background: rgba(247, 147, 26, 0.12);
    color: var(--orange-deep);
}

.article-step h3 {
    font-family: 'Sora', 'Inter', sans-serif;
    font-size: 1.0625rem;
    font-weight: 600;
    margin-bottom: 0.375rem;
    color: var(--text);
}

.article-step p {
    margin: 0;
    font-size: 0.9375rem;
}

.article-figure {
    margin: 2rem 0;
    border-radius: 16px;
    border: 1px solid var(--border);
    overflow: hidden;
    background: var(--bg-pure);
}

.article-figure img {
    width: 100%;
}

.article-figure figcaption {
    padding: 0.875rem 1rem;
    font-size: 0.8125rem;
    color: var(--text-tertiary);
    border-top: 1px solid var(--border);
}

.article-callout {
    margin: 2rem 0;
    padding: 1.25rem 1.5rem;
    border-radius: 14px;
    border: 1px solid rgba(0, 143, 76, 0.2);
    background: rgba(0, 143, 76, 0.06);
}

.article-callout p {
    margin: 0;
    color: var(--text);
    font-size: 0.9375rem;
}

.article-callout strong {
    color: var(--green);
}

.article-callout a {
    color: var(--blue-deep);
    font-weight: 600;
}

.wallet-type-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 1rem;
    margin: 1.5rem 0 2rem;
}

.wallet-type-card {
    padding: 1.25rem;
    border-radius: 14px;
    border: 1px solid var(--border);
    background: var(--bg-pure);
}

.wallet-type-card h3 {
    font-family: 'Sora', 'Inter', sans-serif;
    font-size: 1.0625rem;
    font-weight: 600;
    margin: 0.75rem 0 0.5rem;
    color: var(--text);
}

.wallet-type-card p {
    margin-bottom: 0.75rem;
    font-size: 0.9375rem;
}

.wallet-type-label {
    display: inline-block;
    padding: 0.2rem 0.55rem;
    border-radius: 100px;
    font-size: 0.6875rem;
    font-weight: 700;
    letter-spacing: 0.02em;
    text-transform: uppercase;
}

.wallet-type-label.custodial {
    background: rgba(247, 147, 26, 0.12);
    color: var(--orange-deep);
}

.wallet-type-label.self-custody {
    background: rgba(0, 143, 76, 0.1);
    color: var(--green);
}

.wallet-rec-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 0.875rem;
    margin: 1.25rem 0 2rem;
}

.wallet-rec-card {
    display: block;
    padding: 1.125rem 1.25rem;
    border-radius: 14px;
    border: 1px solid var(--border);
    background: var(--bg-pure);
    transition: border-color 0.25s ease, transform 0.3s var(--ease-out);
}

.wallet-rec-card:hover {
    border-color: rgba(17, 17, 17, 0.14);
    transform: translateY(-2px);
}

.wallet-rec-head {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 0.625rem;
    margin-bottom: 0.5rem;
}

.wallet-rec-head h3 {
    font-family: 'Sora', 'Inter', sans-serif;
    font-size: 1.0625rem;
    font-weight: 600;
    color: var(--text);
}

.wallet-rec-card p {
    margin: 0;
    font-size: 0.9375rem;
}

.article-callout.spend {
    border-color: rgba(232, 120, 12, 0.2);
    background: rgba(247, 147, 26, 0.06);
}

.article-callout.spend strong {
    color: var(--orange-deep);
}

.article-related {
    margin-top: 2rem;
    padding-top: 1.5rem;
    border-top: 1px solid var(--border);
}

.article-related p {
    margin: 0;
    font-size: 0.9375rem;
    color: var(--text-secondary);
}

.article-related a {
    color: var(--blue-deep);
    font-weight: 600;
}

.article-related a:hover {
    color: var(--text);
}

.article-cta {
    margin-top: 2.5rem;
    padding: 1.5rem;
    border-radius: 16px;
    border: 1px solid var(--border);
    background: var(--bg-pure);
    text-align: center;
}

.article-cta p {
    margin-bottom: 1rem;
    color: var(--text-secondary);
}

.article-cta a {
    display: inline-block;
    font-size: 0.875rem;
    font-weight: 600;
    padding: 0.75rem 1.5rem;
    border-radius: 100px;
    background: var(--text);
    color: var(--bg-pure);
}

.footer {
    padding: 2rem 0 1.5rem;
    border-top: 1px solid rgba(17, 17, 17, 0.05);
}

.footer-inner {
    width: 100%;
    max-width: 1120px;
    margin: 0 auto;
    padding: 0 1.5rem;
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: space-between;
    gap: 1rem;
}

.footer-brand {
    font-family: 'Sora', 'Inter', sans-serif;
    font-weight: 600;
    font-size: 0.9375rem;
}

.footer-links {
    display: flex;
    flex-wrap: wrap;
    gap: 1.5rem;
    list-style: none;
}

.footer-links a {
    font-size: 0.8125rem;
    color: var(--text-tertiary);
}

.footer-links a:hover {
    color: var(--text);
}

@media (max-width: 900px) {
    .nav-actions .nav-cta {
        display: none;
    }

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

    .wallet-type-grid {
        grid-template-columns: 1fr;
    }
}
