:root {
    --article-ink: #07101f;
    --article-text: #253754;
    --article-muted: #627087;
    --article-border: #dfe5ee;
    --article-surface: #f6f8fc;
    --article-white: #ffffff;
    --article-brand: #5b4ddb;
    --article-brand-dark: #4c3fc6;
    --article-green: #0c9660;
}

html {
    scroll-behavior: smooth;
}

body {
    min-width: 320px;
    background: var(--article-surface);
    color: var(--article-text);
    font-family: var(--font-body, "IBM Plex Sans", "Segoe UI", Arial, sans-serif);
    -webkit-font-smoothing: antialiased;
    text-rendering: optimizeLegibility;
}

body::before {
    position: fixed;
    z-index: -2;
    inset: 0;
    background:
        radial-gradient(circle at 8% 5%, rgba(91, 77, 219, 0.1), transparent 24rem),
        radial-gradient(circle at 94% 38%, rgba(22, 173, 112, 0.08), transparent 24rem);
    content: "";
    pointer-events: none;
}

.bg-grid {
    opacity: 0.45;
    background-image:
        linear-gradient(rgba(66, 82, 106, 0.045) 1px, transparent 1px),
        linear-gradient(90deg, rgba(66, 82, 106, 0.045) 1px, transparent 1px);
    background-size: 52px 52px;
}

.container {
    width: min(calc(100% - 40px), 1180px);
    max-width: none;
}

.navbar {
    padding: 0;
    border-bottom: 1px solid rgba(203, 212, 225, 0.78);
    background: rgba(246, 248, 252, 0.9);
    backdrop-filter: blur(18px);
}

.nav-container {
    min-height: 76px;
}

.logo {
    gap: 11px;
    color: var(--article-ink);
    font-size: 1.16rem;
    font-weight: 800;
    letter-spacing: -0.025em;
}

.logo-icon {
    width: 40px;
    height: 40px;
    border-radius: 12px;
    filter: none;
    box-shadow: 0 7px 20px rgba(31, 65, 121, 0.2);
}

.nav-menu {
    gap: 28px;
}

.nav-link {
    color: #42526a;
    font-size: 0.94rem;
    font-weight: 700;
}

.nav-link:hover {
    color: var(--article-brand-dark);
    text-shadow: none;
}

.play-badge {
    display: inline-flex;
    align-items: center;
}

.blog-container {
    width: min(calc(100% - 40px), 900px);
    max-width: none !important;
    padding: 132px 0 84px !important;
}

.article-header {
    position: relative;
    overflow: hidden;
    margin-bottom: 24px !important;
    padding: clamp(32px, 6vw, 58px) !important;
    border: 1px solid rgba(255, 255, 255, 0.12) !important;
    border-radius: 28px;
    background:
        radial-gradient(circle at 88% 8%, rgba(108, 99, 255, 0.4), transparent 34%),
        radial-gradient(circle at 10% 94%, rgba(22, 173, 112, 0.18), transparent 32%),
        linear-gradient(145deg, #07101f, #11213a);
    box-shadow: 0 24px 64px rgba(7, 16, 31, 0.2);
    text-align: left !important;
}

.article-header::after {
    position: absolute;
    inset: 0;
    opacity: 0.22;
    background-image:
        linear-gradient(rgba(255, 255, 255, 0.05) 1px, transparent 1px),
        linear-gradient(90deg, rgba(255, 255, 255, 0.05) 1px, transparent 1px);
    background-size: 44px 44px;
    content: "";
    pointer-events: none;
}

.article-header > * {
    position: relative;
    z-index: 1;
}

.article-header h1,
.article-header h2 {
    max-width: 760px;
    margin: 0 0 18px;
    background: none !important;
    color: #ffffff !important;
    font-family: var(--font-display, "Oxanium", "IBM Plex Sans", sans-serif);
    font-size: clamp(2.15rem, 5vw, 3.65rem) !important;
    font-weight: 700;
    letter-spacing: -0.025em;
    line-height: 1.08;
    -webkit-text-fill-color: currentColor !important;
}

.article-header p,
.article-excerpt {
    max-width: 700px;
    margin: 0 !important;
    color: #cad3e0 !important;
    font-size: clamp(1.05rem, 2vw, 1.22rem) !important;
    line-height: 1.6;
}

.article-meta {
    justify-content: flex-start !important;
    margin: 0 0 20px !important;
    color: #a8a3ff !important;
    font-size: 0.83rem !important;
    font-family: var(--font-display, "Oxanium", "IBM Plex Sans", sans-serif);
    font-weight: 700;
    letter-spacing: 0.07em;
    text-transform: uppercase;
}

.article-meta .author {
    text-transform: none;
}

.article-meta .author-avatar {
    border-color: rgba(166, 160, 255, 0.35);
    background: rgba(166, 160, 255, 0.16);
    color: #d4d1ff;
}

.article-content {
    padding: clamp(28px, 6vw, 58px) !important;
    border: 1px solid var(--article-border);
    border-radius: 28px;
    background: var(--article-white);
    box-shadow: 0 1px 2px rgba(7, 16, 31, 0.05), 0 18px 50px rgba(7, 16, 31, 0.07);
    color: var(--article-text) !important;
    font-size: clamp(1rem, 1.6vw, 1.1rem) !important;
    line-height: 1.82 !important;
}

.article-content > :first-child {
    margin-top: 0 !important;
}

.article-content p,
.article-content li {
    color: var(--article-text);
}

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

.article-content h2,
.article-content h3 {
    color: var(--article-ink) !important;
    font-family: var(--font-display, "Oxanium", "IBM Plex Sans", sans-serif);
    letter-spacing: -0.015em;
    line-height: 1.2;
}

.article-content h2 {
    margin: 2.8rem 0 1.1rem !important;
    font-size: clamp(1.65rem, 3vw, 2.1rem) !important;
}

.article-content h3 {
    margin: 2.1rem 0 0.9rem !important;
    font-size: 1.3rem !important;
}

.article-content a:not(.play-badge) {
    color: var(--article-brand-dark);
    font-weight: 750;
    text-underline-offset: 3px;
}

.article-content ul,
.article-content ol {
    margin: 0 0 1.5rem;
    padding-left: 1.35rem;
}

.article-content li + li {
    margin-top: 0.65rem;
}

.highlight-box {
    margin: 2rem 0 !important;
    padding: 20px 22px !important;
    border: 1px solid #d8d4ff !important;
    border-left: 4px solid var(--article-brand) !important;
    border-radius: 14px !important;
    background: #f1efff !important;
    color: #30285e !important;
}

.highlight-box strong,
.highlight-box em {
    color: inherit;
}

.article-content pre {
    margin: 1.6rem 0 2rem;
    border: 1px solid #243752;
    background: #0b1629 !important;
    color: #e9eef6;
}

.pricing-row {
    gap: 16px;
}

.pricing-cell {
    border-color: var(--article-border) !important;
    background: #f8f9fc !important;
}

.pricing-cell strong {
    color: var(--article-ink) !important;
}

.cta-section {
    z-index: 0;
    border-color: #d8d4ff !important;
    background: #f1efff !important;
}

.cta-section h2,
.cta-section p {
    color: var(--article-ink) !important;
}

.footer {
    border-top: 1px solid var(--article-border);
    background: #ffffff;
    color: var(--article-text);
}

.footer .logo,
.footer-links h4 {
    color: var(--article-ink) !important;
}

.footer p,
.footer-links a {
    color: var(--article-muted) !important;
}

.footer a:hover {
    color: var(--article-brand-dark) !important;
}

@media (max-width: 900px) {
    .mobile-menu-btn {
        color: var(--article-ink);
    }

    .nav-menu {
        background: rgba(246, 248, 252, 0.98);
    }

    .nav-link {
        color: var(--article-ink);
    }

    .article-meta .author {
        display: none !important;
    }
}

@media (max-width: 620px) {
    .container,
    .blog-container {
        width: min(calc(100% - 28px), 900px);
    }

    .nav-container {
        min-height: 68px;
    }

    .logo-icon {
        width: 36px;
        height: 36px;
    }

    .blog-container {
        padding-top: 96px !important;
        padding-bottom: 52px !important;
    }

    .article-header,
    .article-content {
        border-radius: 20px;
    }

    .article-header {
        padding: 28px 24px !important;
    }

    .article-content {
        padding: 28px 23px !important;
    }

    .article-meta {
        font-size: 0.74rem !important;
        line-height: 1.5;
    }

    .pricing-row {
        grid-template-columns: 1fr;
    }
}

@media (prefers-reduced-motion: reduce) {
    *,
    *::before,
    *::after {
        scroll-behavior: auto !important;
        transition-duration: 0.01ms !important;
        animation-duration: 0.01ms !important;
        animation-iteration-count: 1 !important;
    }
}
