/* Variables */
:root {
    --er-primary: #7e22ce;
    --er-primary-dark: #6b21a8;
    --er-primary-light: #a855f7;
    --er-primary-lighter: #e9d8fd;
    --er-primary-lightest: #f5f0ff;
    --er-neutral-50: #f9fafb;
    --er-neutral-100: #f3f4f6;
    --er-neutral-200: #e5e7eb;
    --er-neutral-300: #d1d5db;
    --er-neutral-400: #9ca3af;
    --er-neutral-500: #6b7280;
    --er-neutral-600: #4b5563;
    --er-neutral-700: #374151;
    --er-neutral-800: #1f2937;
    --er-neutral-900: #111827;
    --success: #10b981;
    --warning: #f59e0b;
    --danger: #ef4444;
    --shadow-sm: 0 1px 2px 0 rgba(0, 0, 0, 0.05);
    --shadow: 0 1px 3px 0 rgba(0, 0, 0, 0.1), 0 1px 2px 0 rgba(0, 0, 0, 0.06);
    --shadow-md: 0 4px 6px -1px rgba(0, 0, 0, 0.1), 0 2px 4px -1px rgba(0, 0, 0, 0.06);
    --shadow-lg: 0 10px 15px -3px rgba(0, 0, 0, 0.1), 0 4px 6px -2px rgba(0, 0, 0, 0.05);
    --shadow-xl: 0 20px 25px -5px rgba(0, 0, 0, 0.1), 0 10px 10px -5px rgba(0, 0, 0, 0.04);
    --radius-sm: 0.125rem;
    --radius: 0.25rem;
    --radius-md: 0.375rem;
    --radius-lg: 0.5rem;
    --radius-xl: 0.75rem;
    --radius-2xl: 1rem;
    --radius-full: 9999px;
    --ease-in-out: cubic-bezier(0.4, 0, 0.2, 1);
    --ease-in: cubic-bezier(0.4, 0, 1, 1);
    --ease-out: cubic-bezier(0, 0, 0.2, 1);
}

/* All remaining CSS from your original file stays exactly the same */
.documentation-page {
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Oxygen, Ubuntu, Cantarell, 'Open Sans', 'Helvetica Neue', sans-serif;
    color: var(--er-neutral-800);
    line-height: 1.6;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
    background-color: var(--er-neutral-50);
}

.documentation-page h1,
.documentation-page h2,
.documentation-page h3,
.documentation-page h4,
.documentation-page h5,
.documentation-page h6 {
    font-weight: 700;
    line-height: 1.3;
    color: var(--er-neutral-900);
    margin-top: 0;
}

.documentation-page p {
    margin-top: 0;
    margin-bottom: 1rem;
}

.documentation-page a {
    color: var(--er-primary);
    text-decoration: none;
    transition: color 0.2s ease-in-out;
}

.documentation-page a:hover {
    color: var(--er-primary-dark);
    text-decoration: none;
}

.container {
    width: 100%;
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 1.5rem;
}

.responsive-img {
    max-width: 100%;
    height: auto;
    display: block;
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow-md);
}

/* Button Styles */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 0.75rem 1.5rem;
    font-weight: 600;
    text-align: center;
    border-radius: var(--radius-md);
    transition: all 0.2s ease-in-out;
    cursor: pointer;
    border: 2px solid transparent;
    font-size: 0.875rem;
    line-height: 1.25rem;
    position: relative;
    overflow: hidden;
    z-index: 1;
}

.btn::after {
    content: '';
    position: absolute;
    width: 0;
    height: 0;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    border-radius: 50%;
    background-color: rgba(255, 255, 255, 0.1);
    z-index: -1;
    transition: width 0.6s ease, height 0.6s ease;
}

.btn:hover::after {
    width: 300%;
    height: 300%;
}

.btn:hover {
    transform: translateY(-2px);
    box-shadow: var(--shadow-md);
}

.btn:active {
    transform: translateY(0);
}

.btn-primary {
    background-color: var(--er-primary);
    color: white;
    border-color: var(--er-primary);
}

.btn-primary:hover {
    background-color: var(--er-primary-dark);
    border-color: var(--er-primary-dark);
}

.btn-outline {
    background-color: transparent;
    color: var(--er-primary);
    border-color: var(--er-primary);
}

.btn-outline:hover {
    background-color: var(--er-primary-lightest);
    color: var(--er-primary-dark);
    border-color: var(--er-primary-dark);
}

.cta .btn-outline {
    color: white;
    border-color: white;
}

.cta .btn-outline:hover {
    background-color: rgba(255, 255, 255, 0.1);
    color: white;
    border-color: white;
}

.btn-block {
    display: block;
    width: 100%;
}

.btn-lg {
    padding: 0.875rem 1.75rem;
    font-size: 1rem;
    border-radius: var(--radius-lg);
}

/* Hero Section */
.hero-section {
    background: linear-gradient(135deg, var(--er-primary-dark) 0%, var(--er-primary) 100%);
    color: white;
    padding: 5rem 0;
    position: relative;
    overflow: hidden;
    box-shadow: var(--shadow-lg);
}

.hero-section::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background-image: url("data:image/svg+xml,%3Csvg width='60' height='60' viewBox='0 0 60 60' xmlns='http://www.w3.org/2000/svg'%3E%3Cg fill='none' fill-rule='evenodd'%3E%3Cg fill='%23ffffff' fill-opacity='0.1'%3E%3Cpath d='M36 34v-4h-2v4h-4v2h4v4h2v-4h4v-2h-4zm0-30V0h-2v4h-4v2h4v4h2V6h4V4h-4zM6 34v-4H4v4H0v2h4v4h2v-4h4v-2H6zM6 4V0H4v4H0v2h4v4h2V6h4V4H6z'/%3E%3C/g%3E%3C/g%3E%3C/svg%3E");
}

.hero-section__content {
    position: relative;
    z-index: 1;
    max-width: 750px;
}

.hero-section__title {
    font-size: 2.5rem;
    margin-bottom: 1.25rem;
    color: white;
    position: relative;
    padding-bottom: 1.25rem;
}

.hero-section__title::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100px;
    height: 4px;
    background: var(--er-primary-light);
    border-radius: var(--radius-full);
}

.hero-section__title--white {
    color: white !important;
}

.hero-section__subtitle {
    font-size: 1.25rem;
    margin-bottom: 2rem;
    color: rgba(255, 255, 255, 0.9);
    font-weight: 500;
}

.hero-section__badge {
    display: inline-flex;
    align-items: center;
    background: rgba(255, 255, 255, 0.15);
    backdrop-filter: blur(8px);
    padding: 1.25rem 1.75rem;
    border-radius: var(--radius-lg);
    border: 1px solid rgba(255, 255, 255, 0.2);
    box-shadow: var(--shadow-lg);
}

.hero-section__badge-icon {
    font-size: 2rem;
    margin-right: 1.25rem;
    color: var(--er-primary-light);
}

.hero-section__badge-text {
    margin: 0;
    font-weight: 500;
    font-size: 1.125rem;
    line-height: 1.5;
}

/* Content Layout */
.content-wrapper {
    padding: 4rem 0;
}

.content-grid {
    display: grid;
    grid-template-columns: 300px 1fr;
    gap: 2.5rem;
    position: relative;
}

/* Mobile Navigation Toggle */
.mobile-nav-toggle {
    display: none;
    margin-bottom: 1.5rem;
}

.mobile-nav-toggle__button {
    width: 100%;
    background-color: var(--er-primary);
    color: white;
    border: none;
    padding: 0.875rem 1.25rem;
    border-radius: var(--radius-md);
    font-weight: 600;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.75rem;
    box-shadow: var(--shadow-md);
    transition: all 0.2s ease-in-out;
}

.mobile-nav-toggle__button:hover {
    background-color: var(--er-primary-dark);
    transform: translateY(-2px);
    box-shadow: var(--shadow-lg);
}

.mobile-nav-toggle__button i {
    font-size: 1.25rem;
}

/* Sidebar Navigation */
.sidebar {
    position: relative;
}

.sidebar__nav {
    background: white;
    border-radius: var(--radius-lg);
    overflow: hidden;
    box-shadow: var(--shadow-lg);
    position: sticky;
    top: 2rem;
    border: 1px solid var(--er-neutral-200);
    display: flex;
    flex-direction: column;
    max-height: calc(100vh - 4rem);
}

.sidebar__nav-header {
    background: var(--er-primary);
    color: white;
    padding: 1.25rem;
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-shrink: 0;
}

.sidebar__nav-title {
    font-weight: 600;
    font-size: 1.1rem;
    letter-spacing: 0.5px;
}

.sidebar__nav-close {
    display: none;
    background: rgba(255, 255, 255, 0.2);
    border: none;
    color: white;
    width: 32px;
    height: 32px;
    border-radius: 50%;
    cursor: pointer;
    transition: all 0.2s ease;
}

.sidebar__nav-close:hover {
    background: rgba(255, 255, 255, 0.3);
    transform: rotate(90deg);
}

.sidebar__nav-list {
    list-style: none;
    margin: 0;
    padding: 0.75rem 0;
    overflow-y: auto;
    flex-grow: 1;
}

.sidebar__nav-link {
    display: flex;
    align-items: center;
    padding: 0.875rem 1.25rem;
    color: var(--er-neutral-700);
    border-left: 3px solid transparent;
    transition: all 0.2s ease-in-out;
    font-size: 0.95rem;
}

.sidebar__nav-link i {
    margin-right: 0.75rem;
    font-size: 1.1rem;
    color: var(--er-neutral-500);
    transition: color 0.2s ease-in-out;
    width: 1.5rem;
    text-align: center;
    flex-shrink: 0;
}

.sidebar__nav-link span {
    line-height: 1.4;
}

.sidebar__nav-link:hover {
    background-color: var(--er-primary-lightest);
    color: var(--er-primary);
    text-decoration: none;
}

.sidebar__nav-link:hover i {
    color: var(--er-primary);
}

.sidebar__nav-link.active {
    border-left-color: var(--er-primary);
    background-color: var(--er-primary-lightest);
    color: var(--er-primary);
    font-weight: 600;
}

.sidebar__nav-link.active i {
    color: var(--er-primary);
}

.sidebar__cta {
    padding: 1.75rem 1.5rem;
    background: linear-gradient(135deg, var(--er-primary-light) 0%, var(--er-primary) 100%);
    color: white;
    text-align: center;
    border-bottom-left-radius: var(--radius-lg);
    border-bottom-right-radius: var(--radius-lg);
    flex-shrink: 0;
}

.sidebar__cta p {
    margin-bottom: 1rem;
    font-weight: 500;
    font-size: 1.1rem;
}

.sidebar__cta .btn {
    background-color: white;
    color: var(--er-primary-dark);
    border-color: white;
    font-weight: 600;
}

.sidebar__cta .btn:hover {
    background-color: var(--er-primary-lightest);
    color: var(--er-primary-dark);
    border-color: var(--er-primary-lightest);
}

/* Article Sections */
.article-section {
    background: white;
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow-md);
    padding: 2.5rem;
    margin-bottom: 2.5rem;
    border: 1px solid var(--er-neutral-200);
    transition: box-shadow 0.3s ease-in-out, transform 0.3s ease-in-out;
    position: relative;
    scroll-margin-top: 100px;
}

.article-section:hover {
    box-shadow: var(--shadow-lg);
}

.article-section__header {
    margin-bottom: 2rem;
    position: relative;
    padding-bottom: 1rem;
    border-bottom: 1px solid var(--er-neutral-200);
}

.article-section__header::after {
    content: '';
    position: absolute;
    bottom: -1px;
    left: 0;
    width: 70px;
    height: 3px;
    background: var(--er-primary);
    border-radius: var(--radius-full);
}

.article-section__title {
    font-size: 1.8rem;
    color: var(--er-primary-dark);
    margin-bottom: 0.5rem;
}

.article-section__lead {
    font-size: 1.15rem;
    color: var(--er-neutral-600);
    margin-bottom: 0;
    font-weight: 500;
}

.article-section__content {
    color: var(--er-neutral-700);
    font-size: 1rem;
    line-height: 1.7;
}

.article-section__content p {
    margin-bottom: 1.25rem;
}

.article-section__content ul,
.article-section__content ol {
    padding-left: 1.5rem;
    margin-bottom: 1.25rem;
}

.article-section__content li {
    margin-bottom: 0.5rem;
}

/* Info Card */
.info-card {
    display: flex;
    gap: 1.25rem;
    background: var(--er-primary-lightest);
    border-radius: var(--radius-lg);
    padding: 1.5rem;
    margin: 2rem 0;
    border-left: 4px solid var(--er-primary);
    box-shadow: var(--shadow-sm);
}

.info-card__icon {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 48px;
    height: 48px;
    background: var(--er-primary);
    color: white;
    border-radius: var(--radius-full);
    flex-shrink: 0;
    font-size: 1.3rem;
    box-shadow: var(--shadow-md);
}

.info-card__content {
    flex: 1;
}

.info-card__title {
    color: var(--er-primary-dark);
    margin-bottom: 0.5rem;
    font-size: 1.25rem;
}

.info-card__text {
    margin-bottom: 0;
    font-size: 1rem;
}

/* Feature Cards */
.feature-cards {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(260px, 1fr));
    gap: 1.5rem;
    margin: 2rem 0;
}

.feature-card {
    background: white;
    border-radius: var(--radius-lg);
    padding: 1.5rem;
    box-shadow: var(--shadow-md);
    transition: all 0.25s ease-in-out;
    border: 1px solid var(--er-neutral-200);
    text-align: center;
    height: 100%;
    display: flex;
    flex-direction: column;
    align-items: center;
}

.feature-card:hover {
    transform: translateY(-6px);
    box-shadow: var(--shadow-lg);
    border-color: var(--er-primary-lighter);
}

.feature-card__icon {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 56px;
    height: 56px;
    background: var(--er-primary-lightest);
    color: var(--er-primary);
    border-radius: var(--radius-full);
    margin-bottom: 1rem;
    box-shadow: var(--shadow-sm);
}

.feature-card__icon i {
    font-size: 1.5rem;
}

.feature-card__title {
    font-size: 1.15rem;
    margin-bottom: 0.5rem;
    color: var(--er-primary-dark);
}

.feature-card__text {
    margin-bottom: 0;
    color: var(--er-neutral-600);
    font-size: 0.95rem;
    flex-grow: 1;
}

/* Stats Container */
.stats-container {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
    gap: 1.25rem;
    margin: 2rem 0;
}

.stat-card {
    background: white;
    border-radius: var(--radius-lg);
    padding: 1.25rem;
    box-shadow: var(--shadow-md);
    text-align: center;
    transition: all 0.25s ease;
    border: 1px solid var(--er-neutral-200);
}

.stat-card:hover {
    transform: translateY(-4px);
    box-shadow: var(--shadow-lg);
    border-color: var(--er-primary-lighter);
}

.stat-card__value {
    font-size: 2rem;
    font-weight: 700;
    color: var(--er-primary-dark);
    line-height: 1;
    margin-bottom: 0.5rem;
}

.stat-card__value span {
    font-size: 1.25rem;
    font-weight: 600;
    color: var(--er-primary);
    margin-left: 0.1em;
}

.stat-card__label {
    font-size: 0.9rem;
    color: var(--er-neutral-600);
    font-weight: 500;
}

/* Process Timeline */
.process-timeline {
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
    position: relative;
    padding: 1rem 0 1rem 2.5rem;
    margin: 2rem 0;
}

.process-timeline::before {
    content: '';
    position: absolute;
    top: 1.25rem;
    bottom: 1.25rem;
    left: 1.25rem;
    width: 2px;
    background: var(--er-primary-lighter);
    transform: translateX(-50%);
}

.process-timeline__step {
    position: relative;
}

.process-timeline__marker {
    position: absolute;
    left: -2.5rem;
    top: 0;
    width: 44px;
    height: 44px;
    background: var(--er-primary);
    color: white;
    border-radius: var(--radius-full);
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: var(--shadow-md);
    z-index: 1;
    font-size: 1rem;
    font-weight: 600;
    border: 3px solid white;
}

.process-timeline__content {
    background: white;
    border-radius: var(--radius-lg);
    padding: 1.25rem 1.5rem;
    margin-left: 0.5rem;
    box-shadow: var(--shadow-sm);
    border: 1px solid var(--er-neutral-200);
    transition: all 0.25s ease;
}

.process-timeline__content:hover {
    transform: translateX(5px);
    box-shadow: var(--shadow-md);
    border-color: var(--er-primary-lighter);
}

.process-timeline__title {
    color: var(--er-primary-dark);
    margin-bottom: 0.5rem;
    font-size: 1.2rem;
    position: relative;
    padding-bottom: 0.5rem;
}

.process-timeline__title::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 30px;
    height: 2px;
    background: var(--er-primary-lighter);
    border-radius: var(--radius-full);
}

.process-timeline__text {
    margin-bottom: 0;
    color: var(--er-neutral-700);
    font-size: 0.95rem;
}

/* FAQ Section */
.faq {
    margin-top: 2.5rem;
    border: 1px solid var(--er-neutral-200);
    border-radius: var(--radius-lg);
    overflow: hidden;
    box-shadow: var(--shadow-sm);
}

.faq__title {
    background: var(--er-primary-lightest);
    color: var(--er-primary-dark);
    padding: 1rem 1.25rem;
    margin: 0;
    font-size: 1.25rem;
    border-bottom: 1px solid var(--er-primary-lighter);
    font-weight: 600;
}

.faq__list {
    overflow: hidden;
}

.faq__item {
    border-bottom: 1px solid var(--er-neutral-200);
}

.faq__item:last-child {
    border-bottom: none;
}

.faq__question {
    width: 100%;
    text-align: left;
    padding: 1.25rem;
    background: white;
    border: none;
    cursor: pointer;
    font-weight: 600;
    font-size: 1.05rem;
    color: var(--er-neutral-800);
    display: flex;
    align-items: center;
    justify-content: space-between;
    transition: background-color 0.2s ease-in-out, color 0.2s ease-in-out;
}

.faq__question:hover {
    color: var(--er-primary);
    background: var(--er-primary-lightest);
}

.faq__question i {
    color: var(--er-primary);
    transition: transform 0.3s ease;
    font-size: 0.9rem;
    flex-shrink: 0;
    margin-left: 1rem;
}

.faq__question[aria-expanded="true"] {
    color: var(--er-primary);
    background: var(--er-primary-lightest);
}

.faq__question[aria-expanded="true"] i {
    transform: rotate(180deg);
}

.faq__answer {
    padding: 0 1.25rem;
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.35s ease-out, padding-bottom 0.35s ease-out;
    background: white;
    font-size: 0.95rem;
    line-height: 1.6;
}

.faq__question[aria-expanded="true"]+.faq__answer {
    max-height: 2000px;
    padding-bottom: 1.25rem;
}

.faq__answer p {
    margin-bottom: 1rem;
}

.faq__answer p:last-child {
    margin-bottom: 0;
}

.faq__answer ul {
    list-style: disc;
    padding-left: 1.25rem;
    margin: 1rem 0;
}

.faq__answer li {
    margin-bottom: 0.5rem;
}

/* CTA Section */
.cta {
    background: linear-gradient(135deg, var(--er-primary) 0%, var(--er-primary-dark) 100%);
    color: white;
    border-radius: var(--radius-lg);
    padding: 3.5rem;
    text-align: center;
    position: relative;
    overflow: hidden;
    box-shadow: var(--shadow-xl);
    margin-top: 3rem;
}

.cta::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background-image: url("data:image/svg+xml,%3Csvg width='100' height='100' viewBox='0 0 100 100' xmlns='http://www.w3.org/2000/svg'%3E%3Cpath d='M11 18c3.866 0 7-3.134 7-7s-3.134-7-7-7-7 3.134-7 7 3.134 7 7 7zm48 25c3.866 0 7-3.134 7-7s-3.134-7-7-7-7 3.134-7 7 3.134 7 7 7zm-43-7c1.657 0 3-1.343 3-3s-1.343-3-3-3-3 1.343-3 3 1.343 3 3 3zm63 31c1.657 0 3-1.343 3-3s-1.343-3-3-3-3 1.343-3 3 1.343 3 3 3zM34 90c1.657 0 3-1.343 3-3s-1.343-3-3-3-3 1.343-3 3 1.343 3 3 3zm56-76c1.657 0 3-1.343 3-3s-1.343-3-3-3-3 1.343-3 3 1.343 3 3 3zM12 86c2.21 0 4-1.79 4-4s-1.79-4-4-4-4 1.79-4 4 1.79 4 4 4zm28-65c2.21 0 4-1.79 4-4s-1.79-4-4-4-4 1.79-4 4 1.79 4 4 4zm23-11c2.76 0 5-2.24 5-5s-2.24-5-5-5-5 2.24-5 5 2.24 5 5 5zm-6 60c2.21 0 4-1.79 4-4s-1.79-4-4-4-4 1.79-4 4 1.79 4 4 4zm29 22c2.76 0 5-2.24 5-5s-2.24-5-5-5-5 2.24-5 5 2.24 5 5 2.24 5 5 5zM32 63c2.76 0 5-2.24 5-5s-2.24-5-5-5-5 2.24-5 5 2.24 5 5 5zm57-13c2.76 0 5-2.24 5-5s-2.24-5-5-5-5 2.24-5 5 2.24 5 5 5zm-9-21c1.105 0 2-.895 2-2s-.895-2-2-2-2 .895-2 2 .895 2 2 2zM60 91c1.105 0 2-.895 2-2s-.895-2-2-2-2 .895-2 2 .895 2 2 2zM35 41c1.105 0 2-.895 2-2s-.895-2-2-2-2 .895-2 2 .895 2 2 2zM12 60c1.105 0 2-.895 2-2s-.895-2-2-2-2 .895-2 2 .895 2 2 2z' fill='%23ffffff' fill-opacity='0.1' fill-rule='evenodd'/%3E%3C/svg%3E");
    opacity: 0.7;
}

.cta__content {
    position: relative;
    z-index: 1;
}

.cta__title {
    font-size: 2rem;
    margin-bottom: 1rem;
    color: white;
}

.cta__title--white {
    color: white !important;
}

.cta__text {
    font-size: 1.15rem;
    margin-bottom: 2rem;
    color: rgba(255, 255, 255, 0.9);
    max-width: 650px;
    margin-left: auto;
    margin-right: auto;
}

.cta__buttons {
    display: flex;
    gap: 1rem;
    justify-content: center;
    flex-wrap: wrap;
}

.cta__floating-icon {
    position: absolute;
    bottom: -25px;
    right: -25px;
    width: 100px;
    height: 100px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 3.5rem;
    color: rgba(255, 255, 255, 0.1);
    transform: rotate(-15deg);
    z-index: 0;
}

/* Reading Progress (Mobile Only) */
.reading-progress {
    display: none;
    position: fixed;
    bottom: 0;
    left: 0;
    width: 100%;
    height: 5px;
    background-color: rgba(0, 0, 0, 0.1);
    z-index: 1000;
}

.reading-progress__bar {
    height: 100%;
    background-color: var(--er-primary);
    width: 0;
    transition: width 0.1s linear;
    border-radius: 0 2px 2px 0;
}

/* Scroll to Top Button */
.scroll-top-btn {
    position: fixed;
    bottom: 1.5rem;
    right: 1.5rem;
    width: 44px;
    height: 44px;
    background-color: var(--er-primary);
    color: white;
    border: none;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.1rem;
    cursor: pointer;
    box-shadow: var(--shadow-lg);
    transition: opacity 0.3s ease, visibility 0.3s ease, transform 0.3s ease, background-color 0.2s ease;
    opacity: 0;
    visibility: hidden;
    transform: scale(0.8);
    z-index: 999;
}

.scroll-top-btn.visible {
    opacity: 1;
    visibility: visible;
    transform: scale(1);
}

.scroll-top-btn:hover {
    background-color: var(--er-primary-dark);
    transform: scale(1.1);
}

/* Animations */
.animate-in {
    opacity: 0;
    transform: translateY(15px);
    animation: fadeInEntry 0.5s ease-out forwards;
}

@keyframes fadeInEntry {
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Responsive Styles */
@media (max-width: 1199px) {
    .hero-section__title {
        font-size: 2.25rem;
    }

    .article-section {
        padding: 2rem;
    }
}

@media (max-width: 991px) {
    .content-grid {
        grid-template-columns: 1fr;
    }

    .mobile-nav-toggle {
        display: block;
    }

    .sidebar {
        position: fixed;
        top: 0;
        left: 0;
        width: 100%;
        height: 100%;
        background-color: rgba(0, 0, 0, 0.6);
        z-index: 1000;
        display: flex;
        align-items: center;
        justify-content: center;
        opacity: 0;
        visibility: hidden;
        transition: opacity 0.3s ease, visibility 0.3s ease;
    }

    .sidebar.active {
        opacity: 1;
        visibility: visible;
    }

    .sidebar__nav {
        position: relative;
        width: 90%;
        max-width: 380px;
        max-height: 85vh;
        transform: translateY(20px) scale(0.95);
        opacity: 0;
        transition: transform 0.3s ease, opacity 0.3s ease;
    }

    .sidebar.active .sidebar__nav {
        transform: translateY(0) scale(1);
        opacity: 1;
    }

    .sidebar__nav-close {
        display: flex;
        align-items: center;
        justify-content: center;
    }

    .hero-section__title {
        font-size: 2rem;
    }

    .reading-progress {
        display: block;
    }
}

@media (max-width: 767px) {
    .hero-section {
        padding: 3rem 0;
    }

    .hero-section__title {
        font-size: 1.75rem;
    }

    .hero-section__subtitle {
        font-size: 1.1rem;
    }

    .hero-section__badge {
        flex-direction: column;
        align-items: flex-start;
        padding: 1rem 1.25rem;
    }

    .hero-section__badge-icon {
        margin-bottom: 0.75rem;
        margin-right: 0;
        font-size: 1.75rem;
    }

    .hero-section__badge-text {
        font-size: 1rem;
    }

    .article-section {
        padding: 1.5rem;
    }

    .article-section__title {
        font-size: 1.6rem;
    }

    .article-section__lead {
        font-size: 1.1rem;
    }

    .feature-cards,
    .stats-container {
        grid-template-columns: 1fr;
    }

    .process-timeline {
        padding-left: 2rem;
    }

    .process-timeline::before {
        left: 1rem;
        top: 1rem;
        bottom: 1rem;
    }

    .process-timeline__marker {
        left: -2.25rem;
        width: 40px;
        height: 40px;
        font-size: 0.9rem;
    }

    .process-timeline__content {
        padding: 1rem 1.25rem;
    }

    .process-timeline__title {
        font-size: 1.1rem;
    }

    .process-timeline__text {
        font-size: 0.9rem;
    }

    .cta {
        padding: 2.5rem 1.5rem;
    }

    .cta__title {
        font-size: 1.75rem;
    }

    .cta__text {
        font-size: 1.1rem;
    }

    .info-card {
        flex-direction: column;
        padding: 1.25rem;
    }

    .info-card__icon {
        margin-bottom: 0.75rem;
        width: 44px;
        height: 44px;
        font-size: 1.2rem;
    }

    .info-card__title {
        font-size: 1.15rem;
    }

    .info-card__text {
        font-size: 0.95rem;
    }

    .scroll-top-btn {
        right: 1rem;
        bottom: 1rem;
        width: 40px;
        height: 40px;
        font-size: 1rem;
    }
}

@media (max-width: 575px) {
    .container {
        padding: 0 1rem;
    }

    .hero-section__title {
        font-size: 1.5rem;
    }

    .article-section__title {
        font-size: 1.5rem;
    }

    .article-section__lead {
        font-size: 1rem;
    }

    .cta__buttons {
        flex-direction: column;
        gap: 0.75rem;
    }

    .cta__buttons .btn {
        width: 100%;
    }

    .faq__question {
        padding: 1rem;
        font-size: 0.95rem;
    }

    .faq__answer {
        padding: 0 1rem;
        font-size: 0.9rem;
    }

    .faq__question[aria-expanded="true"]+.faq__answer {
        padding-bottom: 1rem;
    }

    .stat-card__value {
        font-size: 1.8rem;
    }

    .stat-card__value span {
        font-size: 1.1rem;
    }

    .stat-card__label {
        font-size: 0.85rem;
    }
}

/* Dark mode support */
@media (prefers-color-scheme: dark) {
    :root {
        --er-neutral-50: #1a202c;
        --er-neutral-100: #2d3748;
        --er-neutral-200: #4a5568;
        --er-neutral-300: #718096;
        --er-neutral-400: #a0aec0;
        --er-neutral-500: #cbd5e0;
        --er-neutral-600: #e2e8f0;
        --er-neutral-700: #edf2f7;
        --er-neutral-800: #f7fafc;
        --er-neutral-900: #fff;
    }

    .documentation-page {
        background-color: var(--er-neutral-50);
        color: var(--er-neutral-800);
    }

    .article-section,
    .feature-card,
    .stat-card,
    .process-timeline__content,
    .faq__question,
    .faq__answer,
    .sidebar__nav {
        background-color: #2d3748;
        border-color: #4a5568;
    }

    .documentation-page h1,
    .documentation-page h2,
    .documentation-page h3,
    .documentation-page h4,
    .documentation-page h5,
    .documentation-page h6,
    .sidebar__nav-link,
    .faq__question,
    .feature-card__title,
    .stat-card__label,
    .info-card__text,
    .process-timeline__text {
        color: var(--er-neutral-800);
    }

    .sidebar__nav-link i,
    .sidebar__nav-link {
        color: var(--er-neutral-500);
    }

    .sidebar__nav-link:hover,
    .sidebar__nav-link.active {
        background-color: rgba(168, 85, 247, 0.1);
        color: var(--er-primary-light);
    }

    .sidebar__nav-link:hover i,
    .sidebar__nav-link.active i {
        color: var(--er-primary-light);
    }

    .sidebar__nav-link span {
        color: white;
    }

    .sidebar__nav-header,
    .mobile-nav-toggle__button {
        background-color: var(--er-primary-dark);
    }

    .info-card {
        background: rgba(168, 85, 247, 0.15);
        border-left-color: var(--er-primary-light);
    }

    .info-card__icon {
        background: var(--er-primary-light);
    }

    .info-card__title,
    .feature-card__title,
    .stat-card__value,
    .process-timeline__title,
    .faq__title,
    .faq__question[aria-expanded="true"],
    .faq__question i {
        color: var(--er-primary-light);
    }

    .feature-card__icon {
        background: rgba(168, 85, 247, 0.2);
        color: var(--er-primary-light);
    }

    .faq__title {
        background: rgba(168, 85, 247, 0.1);
        border-bottom-color: rgba(168, 85, 247, 0.3);
    }

    .faq__question:hover,
    .faq__question[aria-expanded="true"] {
        background: rgba(168, 85, 247, 0.1);
    }

    .scroll-top-btn {
        background-color: var(--er-primary-dark);
    }

    .scroll-top-btn:hover {
        background-color: var(--er-primary);
    }

    .reading-progress__bar {
        background-color: var(--er-primary-light);
    }
}

/* Focus Styles for Accessibility */
.btn:focus,
.sidebar__nav-link:focus,
.faq__question:focus,
.mobile-nav-toggle__button:focus,
.sidebar__nav-close:focus,
.scroll-top-btn:focus {
    outline: 3px solid var(--er-primary-light);
    outline-offset: 2px;
    box-shadow: 0 0 0 3px rgba(168, 85, 247, 0.4);
}

.sidebar__nav-close:focus {
    background: rgba(255, 255, 255, 0.4);
    outline-color: white;
}

/* Print Styles */
@media print {

    .sidebar,
    .mobile-nav-toggle,
    .scroll-top-btn,
    .reading-progress,
    .cta {
        display: none !important;
    }

    .content-grid {
        display: block;
    }

    .article-section {
        break-inside: avoid;
        page-break-inside: avoid;
        margin-bottom: 1.5rem;
        border: 1px solid #ccc !important;
        box-shadow: none !important;
        transform: none !important;
    }

    .hero-section {
        background: none !important;
        color: #000 !important;
        padding: 1rem 0 !important;
        box-shadow: none !important;
    }

    .hero-section::before {
        display: none;
    }

    .hero-section__title,
    .hero-section__subtitle,
    .hero-section__badge-text {
        color: #000 !important;
    }

    .hero-section__badge {
        border: 1px solid #ccc !important;
        background: none !important;
        box-shadow: none !important;
    }

    .hero-section__badge-icon {
        color: var(--er-primary) !important;
    }

    .sidebar__nav {
        position: static;
        box-shadow: none;
        border: none;
    }

    a {
        color: var(--er-primary) !important;
        text-decoration: underline !important;
    }
}

/* Reduced Motion Preferences */
@media (prefers-reduced-motion: reduce) {

    *,
    *::before,
    *::after {
        animation-duration: 0.01ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: 0.01ms !important;
        scroll-behavior: auto !important;
    }

    .btn:hover,
    .scroll-top-btn:hover,
    .feature-card:hover,
    .stat-card:hover,
    .process-timeline__content:hover {
        transform: none;
    }
}

/* Additional specific styles */
.benefit-highlight {
    display: flex;
    align-items: flex-start;
    gap: 1.5rem;
    background-color: var(--er-neutral-50, #f9fafb);
    padding: 1.5rem;
    border-radius: var(--radius-md, 0.375rem);
    margin-bottom: 1.5rem;
    border-left: 4px solid var(--er-primary, #7e22ce);
}

@media (prefers-color-scheme: dark) {
    .benefit-highlight {
        background-color: rgba(168, 85, 247, 0.1);
        border-left-color: var(--er-primary-light, #a855f7);
    }

    .benefit-highlight__icon {
        background-color: var(--er-primary-dark, #6b21a8);
        color: var(--er-primary-lighter, #e9d8fd);
    }

    .benefit-highlight__title {
        color: var(--er-neutral-800, #f7fafc);
    }

    .benefit-highlight__content p {
        color: var(--er-neutral-500, #cbd5e0);
    }
}

.benefit-highlight__icon {
    flex-shrink: 0;
    width: 48px;
    height: 48px;
    background-color: var(--er-primary-lighter, #e9d8fd);
    color: var(--er-primary, #7e22ce);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.25rem;
}

.benefit-highlight__content {
    flex: 1;
}

.benefit-highlight__title {
    font-size: 1.25rem;
    margin-top: 0;
    margin-bottom: 0.5rem;
    color: var(--er-neutral-900, #111827);
}

.benefit-highlight__content p {
    margin-bottom: 0;
    color: var(--er-neutral-700, #374151);
    font-size: 0.95rem;
}

.faq__answer a {
    color: var(--er-primary, #7e22ce);
    text-decoration: underline;
    font-weight: 500;
}

.faq__answer a:hover {
    color: var(--er-primary-dark, #6b21a8);
    text-decoration: none;
}

.process-timeline__marker {
    font-size: 1.1rem;
    font-weight: bold;
}

.article-section__content ul {
    list-style: disc;
    padding-left: 1.5rem;
    margin-bottom: 1.5rem;
}

.article-section__content ul li {
    margin-bottom: 0.5rem;
}

.article-section__content ol {
    list-style: decimal;
    padding-left: 1.5rem;
    margin-bottom: 1.5rem;
}

.article-section__content ol li {
    margin-bottom: 0.5rem;
}

.stat-card__value {
    color: var(--er-primary-dark);
}

.stat-card__value span {
    color: var(--er-primary);
}