@import url('https://fonts.googleapis.com/css2?family=Playfair+Display:ital,wght@0,400;0,500;0,600;0,700;0,900;1,400&display=swap');
@import url('https://api.fontshare.com/v2/css?f[]=satoshi@300,400,500,700&display=swap');

* {
    box-sizing: border-box;
}

html {
    background: #050505;
}

body {
    margin: 0;
    font-family: 'Satoshi', system-ui, -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
    color: #fff;
    background:
        radial-gradient(ellipse 90% 70% at 50% -8%, rgba(255, 255, 255, 0.16) 0%, rgba(200, 200, 200, 0.05) 42%, transparent 68%),
        radial-gradient(ellipse 72% 58% at 12% 22%, rgba(160, 160, 160, 0.09) 0%, transparent 56%),
        radial-gradient(ellipse 72% 58% at 88% 24%, rgba(160, 160, 160, 0.09) 0%, transparent 56%),
        #050505;
    min-height: 100vh;
    overflow-x: hidden;
}

body::after {
    content: "";
    position: fixed;
    inset: 0;
    pointer-events: none;
    opacity: 0.045;
    mix-blend-mode: overlay;
    background-image: url("/assets/noise.svg");
    z-index: 20;
}

a {
    color: inherit;
}

.font-serif {
    font-family: 'Playfair Display', Georgia, serif;
}

.page {
    width: min(100%, 1100px);
    margin: 0 auto;
    padding: 48px 24px 72px;
    position: relative;
    z-index: 1;
}

.back-link {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    color: rgba(255, 255, 255, 0.36);
    text-decoration: none;
    font-size: 11px;
    letter-spacing: 0.22em;
    text-transform: uppercase;
    font-weight: 700;
    transition: color 0.2s ease;
}

.back-link:hover {
    color: rgba(255, 255, 255, 0.76);
}

.hero {
    padding: 74px 0 44px;
    max-width: 860px;
}

.logo {
    width: 48px;
    height: 48px;
    object-fit: contain;
    filter: invert(1);
    opacity: 0.9;
    margin-bottom: 24px;
}

.eyebrow {
    color: rgba(255, 255, 255, 0.34);
    font-size: 11px;
    font-weight: 700;
    letter-spacing: 0.28em;
    text-transform: uppercase;
    margin: 0 0 18px;
}

h1,
h2,
h3 {
    margin: 0;
}

h1 {
    font-family: 'Playfair Display', Georgia, serif;
    font-size: clamp(42px, 8vw, 86px);
    line-height: 0.98;
    letter-spacing: -0.02em;
    max-width: 930px;
}

.lead {
    color: rgba(255, 255, 255, 0.58);
    font-size: clamp(18px, 2.2vw, 22px);
    line-height: 1.65;
    max-width: 760px;
    margin: 28px 0 0;
}

.meta-row {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    margin-top: 28px;
}

.pill {
    border: 1px solid rgba(255, 255, 255, 0.11);
    border-radius: 999px;
    color: rgba(255, 255, 255, 0.54);
    background: rgba(255, 255, 255, 0.035);
    padding: 8px 12px;
    font-size: 12px;
    line-height: 1;
}

.layout {
    display: grid;
    grid-template-columns: minmax(0, 1fr) 290px;
    gap: 28px;
    align-items: start;
}

.content {
    min-width: 0;
}

.toc {
    position: sticky;
    top: 24px;
    border: 1px solid rgba(255, 255, 255, 0.08);
    border-radius: 18px;
    background: rgba(255, 255, 255, 0.035);
    padding: 20px;
}

.toc a {
    display: block;
    color: rgba(255, 255, 255, 0.5);
    text-decoration: none;
    font-size: 13px;
    line-height: 1.5;
    padding: 8px 0;
    border-bottom: 1px solid rgba(255, 255, 255, 0.06);
}

.toc a:last-child {
    border-bottom: 0;
}

.toc a:hover {
    color: #fff;
}

.section-card,
.plan-card,
.callout,
.related-card {
    border: 1px solid rgba(255, 255, 255, 0.08);
    border-radius: 22px;
    background: rgba(255, 255, 255, 0.035);
}

.section-card {
    padding: 34px 38px;
    margin-bottom: 22px;
}

.section-card h2 {
    font-family: 'Playfair Display', Georgia, serif;
    font-size: clamp(30px, 4vw, 44px);
    line-height: 1.1;
    letter-spacing: -0.015em;
    margin-bottom: 18px;
}

.section-card h3 {
    color: rgba(255, 255, 255, 0.86);
    font-size: 17px;
    line-height: 1.4;
    margin: 24px 0 8px;
}

.section-card p,
.section-card li,
.section-card td {
    color: rgba(255, 255, 255, 0.58);
    font-size: 15px;
    line-height: 1.82;
}

.section-card p {
    margin: 0 0 14px;
}

.section-card p:last-child {
    margin-bottom: 0;
}

.section-card ul,
.section-card ol {
    padding-left: 20px;
    margin: 14px 0 0;
}

.section-card li {
    margin-bottom: 10px;
}

.section-card strong {
    color: rgba(255, 255, 255, 0.86);
}

.inline-link,
.source-list a {
    color: rgba(255, 255, 255, 0.82);
    text-decoration: underline;
    text-decoration-color: rgba(255, 255, 255, 0.24);
    text-underline-offset: 4px;
}

.inline-link:hover,
.source-list a:hover {
    color: #fff;
}

.stat-grid,
.related-grid,
.cluster-grid,
.plan-grid {
    display: grid;
    gap: 16px;
}

.stat-grid {
    grid-template-columns: repeat(3, minmax(0, 1fr));
    margin-top: 22px;
}

.stat-card {
    border: 1px solid rgba(255, 255, 255, 0.08);
    border-radius: 18px;
    background: rgba(255, 255, 255, 0.03);
    padding: 20px;
}

.stat-card strong {
    display: block;
    font-family: 'Playfair Display', Georgia, serif;
    color: rgba(255, 255, 255, 0.94);
    font-size: 34px;
    line-height: 1;
    margin-bottom: 10px;
}

.stat-card p {
    font-size: 13px;
    line-height: 1.65;
    margin: 0;
}

.table-wrap {
    width: 100%;
    overflow-x: auto;
    border-radius: 16px;
    margin-top: 18px;
}

table {
    width: 100%;
    border-collapse: collapse;
    min-width: 680px;
}

th,
td {
    border: 1px solid rgba(255, 255, 255, 0.08);
    padding: 16px;
    vertical-align: top;
    text-align: left;
}

th {
    color: rgba(255, 255, 255, 0.88);
    background: rgba(255, 255, 255, 0.045);
    font-size: 11px;
    letter-spacing: 0.18em;
    text-transform: uppercase;
}

blockquote {
    margin: 24px 0;
    border-left: 2px solid rgba(255, 255, 255, 0.24);
    padding-left: 22px;
}

blockquote p {
    color: rgba(255, 255, 255, 0.88) !important;
    font-family: 'Playfair Display', Georgia, serif;
    font-size: 24px !important;
    line-height: 1.45 !important;
}

blockquote cite {
    display: block;
    margin-top: 12px;
    color: rgba(255, 255, 255, 0.38);
    font-style: normal;
    font-size: 11px;
    font-weight: 700;
    letter-spacing: 0.22em;
    text-transform: uppercase;
}

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

.related-card {
    display: block;
    padding: 22px;
    text-decoration: none;
    transition: transform 0.2s ease, background 0.2s ease, border-color 0.2s ease;
}

.related-card:hover {
    transform: translateY(-2px);
    background: rgba(255, 255, 255, 0.06);
    border-color: rgba(255, 255, 255, 0.16);
}

.related-card h3 {
    color: rgba(255, 255, 255, 0.92);
    font-size: 17px;
    margin: 0 0 8px;
}

.related-card p {
    color: rgba(255, 255, 255, 0.46);
    font-size: 13px;
    line-height: 1.62;
    margin: 0;
}

.callout {
    padding: 32px;
    margin: 30px 0;
    text-align: center;
}

.button-row {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 12px;
    margin-top: 24px;
}

.button {
    display: inline-flex;
    justify-content: center;
    align-items: center;
    min-height: 46px;
    border-radius: 999px;
    padding: 13px 22px;
    text-decoration: none;
    font-size: 12px;
    font-weight: 800;
    letter-spacing: 0.12em;
    text-transform: uppercase;
    transition: transform 0.2s ease, background 0.2s ease, border-color 0.2s ease;
}

.button.primary {
    background: #fff;
    color: #050505;
}

.button.secondary {
    border: 1px solid rgba(255, 255, 255, 0.14);
    color: rgba(255, 255, 255, 0.72);
}

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

.plan-grid {
    grid-template-columns: repeat(3, minmax(0, 1fr));
    margin-top: 26px;
}

.plan-card {
    padding: 26px;
}

.plan-card h2 {
    font-family: 'Playfair Display', Georgia, serif;
    font-size: 31px;
    margin-bottom: 10px;
}

.price {
    color: rgba(255, 255, 255, 0.92);
    font-size: 28px;
    font-weight: 800;
    margin: 12px 0;
}

.price span {
    color: rgba(255, 255, 255, 0.42);
    font-size: 13px;
    font-weight: 500;
}

.plan-card p,
.plan-card li {
    color: rgba(255, 255, 255, 0.56);
    font-size: 14px;
    line-height: 1.7;
}

.plan-card ul {
    padding-left: 18px;
}

.footer {
    color: rgba(255, 255, 255, 0.2);
    text-align: center;
    font-size: 10px;
    letter-spacing: 0.26em;
    text-transform: uppercase;
    margin-top: 50px;
}

@media (max-width: 920px) {
    .layout {
        grid-template-columns: 1fr;
    }

    .toc {
        position: static;
    }

    .stat-grid,
    .plan-grid {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 680px) {
    .page {
        padding: 36px 18px 56px;
    }

    .hero {
        padding: 56px 0 34px;
    }

    .section-card,
    .callout {
        padding: 26px 22px;
    }

    .cluster-grid,
    .related-grid {
        grid-template-columns: 1fr;
    }
}
