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

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

:root {
    --bg: #0a0a0f;
    --bg2: #111118;
    --surface: #1f1f2e;
    --border: rgba(255, 255, 255, 0.08);
    --accent: #6c5ce7;
    --accent2: #a29bfe;
    --green: #00b894;
    --gold: #fdcb6e;
    --text: #e8e8f0;
    --muted: #888899;
    --font-display: "Syne", sans-serif;
    --font-body: "Inter", sans-serif;
}

html {
    scroll-behavior: smooth;
}

body {
    background: var(--bg);
    color: var(--text);
    font: 16px/1.65 var(--font-body);
}

body > nav {
    position: sticky;
    top: 0;
    z-index: 100;
    height: 64px;
    padding: 0 clamp(1.5rem, 5vw, 4rem);
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 1rem;
    background: rgba(10, 10, 15, 0.9);
    border-bottom: 1px solid var(--border);
    backdrop-filter: blur(12px);
}

.logo {
    display: inline-flex;
    align-items: center;
    text-decoration: none;
}

.logo img {
    display: block;
    width: auto;
    height: 34px;
}

.back {
    margin-left: auto;
    color: var(--muted);
    font-size: 0.875rem;
    text-decoration: none;
}

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

.nav-cta {
    padding: 0.42rem 1rem;
    border-radius: 6px;
    background: var(--accent);
    color: #fff;
    font-size: 0.875rem;
    font-weight: 600;
    text-decoration: none;
    white-space: nowrap;
}

.nav-cta:hover {
    background: #5b4bd4;
}

.page-wrap {
    max-width: 850px;
    margin: 0 auto;
    padding: 3rem clamp(1.5rem, 5vw, 3rem) 5rem;
}

.breadcrumb {
    margin-bottom: 2rem;
    color: var(--muted);
    font-size: 0.8rem;
}

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

.breadcrumb span + span,
.breadcrumb a + span {
    margin-left: 0.4rem;
}

.article-tag {
    display: inline-block;
    margin-bottom: 1rem;
    padding: 0.3rem 0.8rem;
    border: 1px solid rgba(108, 92, 231, 0.3);
    border-radius: 999px;
    background: rgba(108, 92, 231, 0.15);
    color: var(--accent2);
    font-size: 0.7rem;
    font-weight: 600;
    letter-spacing: 0.12em;
    text-transform: uppercase;
}

h1,
h2 {
    font-family: var(--font-display);
    color: #fff;
}

h1 {
    margin-bottom: 1rem;
    font-size: clamp(2rem, 5vw, 3rem);
    line-height: 1.1;
    letter-spacing: -0.025em;
}

h2 {
    margin: 2.75rem 0 1rem;
    font-size: 1.5rem;
    line-height: 1.25;
}

h3 {
    margin: 1.75rem 0 0.6rem;
    color: #fff;
    font-size: 1.05rem;
}

.article-meta {
    margin-bottom: 2rem;
    color: var(--muted);
    font-size: 0.8rem;
}

.article-intro {
    margin-bottom: 3rem;
    padding-bottom: 2rem;
    border-bottom: 1px solid var(--border);
    color: #aaaabb;
    font-size: 1.08rem;
    line-height: 1.8;
}

.article-content p,
.article-content li {
    color: var(--muted);
    line-height: 1.8;
}

.article-content p {
    margin-bottom: 1rem;
}

.article-content ul,
.article-content ol {
    margin: 1rem 0 1.5rem 1.25rem;
}

.article-content li {
    margin-bottom: 0.55rem;
    padding-left: 0.35rem;
}

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

.article-content a {
    color: var(--accent2);
    text-underline-offset: 0.18em;
}

.info-box,
.warning-box {
    margin: 1.5rem 0 2rem;
    padding: 1.3rem 1.5rem;
    border: 1px solid rgba(108, 92, 231, 0.28);
    border-radius: 12px;
    background: rgba(108, 92, 231, 0.09);
}

.warning-box {
    border-color: rgba(253, 203, 110, 0.28);
    background: rgba(253, 203, 110, 0.08);
}

.info-box p,
.warning-box p {
    margin: 0;
}

.steps {
    display: grid;
    gap: 1rem;
    margin: 1.5rem 0 2rem;
    counter-reset: step;
}

.step {
    position: relative;
    padding: 1.25rem 1.4rem 1.25rem 4.2rem;
    border: 1px solid var(--border);
    border-radius: 12px;
    background: var(--bg2);
    counter-increment: step;
}

.step::before {
    content: counter(step, decimal-leading-zero);
    position: absolute;
    top: 1.2rem;
    left: 1.35rem;
    color: var(--accent2);
    font-family: var(--font-display);
    font-size: 1.15rem;
    font-weight: 800;
}

.step h3 {
    margin: 0 0 0.35rem;
    font-size: 0.98rem;
}

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

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

.link-card {
    display: block;
    padding: 1.2rem;
    border: 1px solid var(--border);
    border-radius: 12px;
    background: var(--bg2);
    color: var(--text) !important;
    text-decoration: none;
    transition:
        border-color 0.2s,
        transform 0.2s;
}

.link-card:hover {
    border-color: rgba(108, 92, 231, 0.45);
    transform: translateY(-2px);
}

.link-card strong,
.link-card span {
    display: block;
}

.link-card span {
    margin-top: 0.35rem;
    color: var(--muted);
    font-size: 0.82rem;
}

.article-cta {
    margin: 3rem 0;
    padding: 2rem;
    border-radius: 14px;
    background: linear-gradient(135deg, var(--accent), #8b7cf6);
    text-align: center;
}

.article-cta h2 {
    margin: 0 0 0.5rem;
    font-size: 1.3rem;
}

.article-cta p {
    margin: 0 0 1.25rem;
    color: rgba(255, 255, 255, 0.78);
}

.button-light {
    display: inline-flex;
    padding: 0.72rem 1.45rem;
    border-radius: 8px;
    background: #fff;
    color: var(--accent) !important;
    font-weight: 700;
    text-decoration: none;
}

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

@media (max-width: 600px) {
    .link-cards {
        grid-template-columns: 1fr;
    }
}

@media (prefers-reduced-motion: reduce) {
    *,
    *::before,
    *::after {
        scroll-behavior: auto !important;
        transition: none !important;
    }
}
