

/* --- Global Refinements & High-End Tokens --- */
:root {
    --primary: #4f46e5;
    --primary-light: #6366f1;
    --secondary: #0ea5e9;
    --accent: #f43f5e;
    --text-main: #1e293b;
    --text-muted: #64748b;
    --bg-main: #fcfdfe;
    --bg-alt: #f1f5f9;
    --border: rgba(226, 232, 240, 0.6);
    --shadow-subtle: 0 4px 6px -1px rgba(0,0,0,0.02), 0 2px 4px -1px rgba(0,0,0,0.01);
    --shadow-premium: 0 20px 25px -5px rgba(0,0,0,0.04), 0 8px 10px -6px rgba(0,0,0,0.02);
    --glass: rgba(255, 255, 255, 0.85);
}

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

html {
    overflow-x: hidden;
    max-width: 100%;
    width: 100%;
}

img, svg, video, picture, iframe {
    max-width: 100%;
    height: auto;
}

body {
    font-family: 'Noto Sans Arabic', sans-serif;
    background-color: var(--bg-main);
    color: var(--text-main);
    line-height: 1.55;
    overflow-x: hidden;
    max-width: 100%;
    width: 100%;
    overflow-wrap: break-word;
    word-wrap: break-word;
    scroll-behavior: smooth;
    font-size: 14.5px; /* Smaller, density-optimized font */
}

/* --- Multilingual Refinements --- */
html[lang="en"] body {
    font-family: 'Inter', system-ui, -apple-system, sans-serif;
}

.lang-switch-btn {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.5rem 1rem;
    background: rgba(79, 70, 229, 0.08);
    color: var(--primary);
    border-radius: 12px;
    font-size: 0.85rem;
    font-weight: 700;
    text-decoration: none;
    transition: all 0.3s ease;
    border: 1px solid transparent;
}

.lang-switch-btn:hover {
    background: var(--primary);
    color: white;
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(79, 70, 229, 0.2);
}

.lang-switch-btn i {
    font-size: 1rem;
}

/* --- High-Engagement Background (Mesh Gradient) --- */
.mesh-bg {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: -1;
    background: 
        radial-gradient(at 0% 0%, rgba(79, 70, 229, 0.04) 0px, transparent 50%),
        radial-gradient(at 100% 0%, rgba(14, 165, 233, 0.04) 0px, transparent 50%),
        radial-gradient(at 100% 100%, rgba(79, 70, 229, 0.04) 0px, transparent 50%),
        radial-gradient(at 0% 100%, rgba(14, 165, 233, 0.04) 0px, transparent 50%);
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 1.5rem;
}

/* --- Header & Navigation (Refined) --- */
header {
    position: fixed;
    top: 0;
    width: 100%;
    z-index: 1000;
    background: var(--glass);
    backdrop-filter: blur(15px);
    border-bottom: 1px solid var(--border);
    transition: transform 0.3s ease;
}

.nav-container {
    height: 70px;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.logo {
    display: flex;
    align-items: center;
    gap: 0.7rem;
    font-weight: 800;
    font-size: 1.25rem;
    color: var(--primary);
    letter-spacing: -0.5px;
    text-decoration: none; /* For link logo */
    transition: transform 0.2s ease;
}

.brand-name {
    background: linear-gradient(135deg, var(--primary) 0%, var(--secondary) 100%);
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
    font-weight: 800;
}

.logo:hover {
    transform: scale(1.02);
}

.logo img {
    height: 32px;
    width: auto;
}

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

.nav-links {
    display: flex;
    gap: 2rem;
    list-style: none;
}

.nav-links a {
    text-decoration: none;
    color: var(--text-muted);
    font-weight: 600;
    font-size: 0.9rem;
    transition: all 0.2s ease;
    padding: 0.5rem 0.8rem;
    border-radius: 8px;
}

.menu-toggle {
    display: none;
    background: none;
    border: none;
    color: var(--primary);
    font-size: 1.6rem;
    cursor: pointer;
    z-index: 1001;
    transition: transform 0.3s ease;
}

.nav-links a:hover, .nav-links a.active {
    color: var(--primary);
    background: rgba(79, 70, 229, 0.05);
}

/* --- Hero Section Overhaul (Maximum Impact) --- */
.hero {
    padding: 10rem 0 6rem;
    overflow-x: hidden;
    position: relative;
    width: 100%;
}

.hero-grid {
    display: block; /* Layout handled by hero-text internal grid */
}

.hero-text {
    display: grid;
    grid-template-columns: 1.1fr 0.9fr;
    grid-template-areas: 
        "badges mockup"
        "title mockup"
        "desc mockup"
        "cta mockup"
        "code mockup";
    align-items: center;
    gap: 0 4rem;
}

.hero-badges { grid-area: badges; display: flex; gap: 1rem; margin-bottom: 2rem; }
.hero-text h1 { 
    grid-area: title; 
    font-size: 3.5rem;
    font-weight: 900;
    line-height: 1.15;
    margin-bottom: 1.5rem;
    letter-spacing: -1.5px;
    background: linear-gradient(135deg, var(--text-main) 30%, var(--primary) 100%);
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
}
.hero-text p { 
    grid-area: desc; 
    font-size: 1.1rem;
    color: var(--text-muted);
    margin-bottom: 2.5rem;
    max-width: 540px;
    font-weight: 500;
}
.mockup-wrapper { grid-area: mockup; position: relative; z-index: 1; }
.cta-group { grid-area: cta; display: flex; gap: 1rem; margin-bottom: 2rem; }
.hero-code { grid-area: code; display: flex; align-items: center; gap: 0.8rem; padding: 0.8rem 1.2rem; background: rgba(234, 88, 12, 0.05); border: 1px dashed rgba(234, 88, 12, 0.3); border-radius: 12px; width: fit-content; }
.hero-code-text { font-size: 0.85rem; font-weight: 700; color: var(--text-muted); }
.hero-code-badge { color: #ea580c; font-weight: 900; font-size: 1.2rem; letter-spacing: 1px; }

.badge {
    background: white;
    padding: 0.5rem 1rem;
    border-radius: 100px;
    font-size: 0.8rem;
    font-weight: 700;
    border: 1px solid var(--border);
    display: flex;
    align-items: center;
    gap: 0.5rem;
    box-shadow: var(--shadow-subtle);
}

.mockup-wrapper {
    position: relative;
    z-index: 1;
}

.mockup-wrapper::before {
    content: '';
    position: absolute;
    width: 140%;
    height: 140%;
    background: radial-gradient(circle, rgba(79, 70, 229, 0.08) 0%, transparent 70%);
    top: -20%;
    left: -20%;
    z-index: -1;
}

.hero-mockup-img {
    width: 100%;
    height: auto;
    filter: drop-shadow(0 40px 60px rgba(0,0,0,0.12));
    animation: floating 6s ease-in-out infinite;
}

@keyframes floating {
    0%, 100% { transform: translateY(0); }
    50% { transform: translateY(-15px); }
}

/* --- Interactive Buttons --- */
.cta-group {
    display: flex;
    gap: 1rem;
}

.btn {
    padding: 0.85rem 1.8rem;
    border-radius: 14px;
    font-weight: 700;
    text-decoration: none;
    transition: all 0.3s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    display: inline-flex;
    align-items: center;
    gap: 0.7rem;
    font-size: 0.95rem;
}

.btn-primary {
    background: var(--primary);
    color: white;
    box-shadow: 0 12px 24px -6px rgba(79, 70, 229, 0.3);
}

.btn-primary:hover {
    transform: scale(1.03);
    background: var(--primary-light);
    box-shadow: 0 15px 30px -8px rgba(79, 70, 229, 0.4);
}

.btn-secondary {
    background: white;
    color: var(--text-main);
    border: 1px solid var(--border);
}

.btn-secondary:hover {
    background: #f8fafc;
    border-color: var(--primary);
    transform: scale(1.03);
}

/* --- Section Styling --- */
section {
    padding: 8rem 0;
}

/* --- About Section Refining --- */
.about-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 3rem;
    align-items: center;
}

@media (min-width: 992px) {
    .about-grid {
        grid-template-columns: 1.1fr 0.9fr;
        gap: 5rem;
    }
}

.about-text p {
    font-size: 1.1rem;
    line-height: 1.8;
    color: var(--text-muted);
    margin-bottom: 2rem;
}

.about-features {
    display: flex;
    flex-direction: column;
    gap: 1.2rem;
}

.about-text strong {
    color: var(--text-main);
    font-weight: 800;
}

.feature-pill {
    background: white;
    padding: 1.5rem;
    border-radius: 24px;
    border: 1px solid var(--border);
    display: flex;
    gap: 1.2rem;
    align-items: center;
    transition: all 0.3s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    box-shadow: var(--shadow-subtle);
}

.feature-pill:hover {
    transform: scale(1.02) translateX(-5px);
    border-color: var(--primary);
    box-shadow: var(--shadow-premium);
}

.feature-pill i {
    font-size: 1.6rem;
    width: 54px;
    height: 54px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: rgba(79, 70, 229, 0.05);
    border-radius: 16px;
}

.about-visual {
    display: flex;
    justify-content: center;
    align-items: center;
    position: relative;
    padding: 2rem;
}

.about-illustration {
    max-width: 100%;
    height: auto;
    filter: drop-shadow(0 30px 50px rgba(0,0,0,0.1));
    animation: floating 8s ease-in-out infinite;
}

@media (max-width: 768px) {
    .about-grid {
        text-align: center;
        gap: 2.5rem;
    }
    
    .feature-pill {
        text-align: right;
        padding: 1.2rem;
    }
}


.section-label {
    display: inline-block;
    color: var(--primary);
    font-weight: 800;
    font-size: 0.8rem;
    text-transform: uppercase;
    letter-spacing: 2px;
    margin-bottom: 1rem;
}

.section-title {
    margin-bottom: 4rem;
}

.section-title h2 {
    font-size: 2.8rem;
    font-weight: 800;
    letter-spacing: -1px;
}

/* --- Dynamic Features Grid --- */
.features-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
    gap: 2rem;
}

.f-card {
    background: white;
    padding: 3rem 2rem;
    border-radius: 28px;
    border: 1px solid var(--border);
    transition: all 0.4s ease;
    cursor: default;
}

.f-card:hover {
    transform: translateY(-8px);
    border-color: var(--primary);
    box-shadow: var(--shadow-premium);
}

.f-icon {
    width: 64px;
    height: 64px;
    background: rgba(79, 70, 229, 0.05);
    border-radius: 20px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 2rem;
    color: var(--primary);
    font-size: 1.6rem;
    transition: transform 0.3s ease;
}

.f-card:hover .f-icon {
    transform: rotate(10deg) scale(1.1);
}

/* --- Repos Interactive Cards --- */
.repos-container {
    background: white;
    border-radius: 40px;
    padding: 4rem;
    border: 1px solid var(--border);
    box-shadow: var(--shadow-premium);
    position: relative;
    overflow: hidden;
}

@media (max-width: 768px) {
    .repos-container {
        padding: 1.5rem 1rem;
        border-radius: 20px;
    }
}

.how-to-grid {
    display: flex;
    flex-wrap: wrap;
    gap: 1.5rem;
    margin-bottom: 4rem;
    justify-content: center;
}

.h-step-card {
    background: var(--bg-alt);
    padding: 2.5rem 1.5rem 2rem;
    border-radius: 24px;
    border: 1px solid var(--border);
    text-align: center;
    position: relative;
    box-shadow: 0 4px 15px rgba(0,0,0,0.02);
    transition: all 0.3s ease;
    flex: 1;
    min-width: 260px;
    max-width: 350px;
}

@media (max-width: 600px) {
    .h-step-card {
        min-width: 100%;
        padding: 2rem 1rem 1.5rem;
    }
}

.h-step-card:hover {
    transform: translateY(-5px);
    border-color: var(--primary-light);
    background: white;
    box-shadow: 0 15px 30px rgba(0,0,0,0.05);
}

.h-step-number {
    position: absolute;
    top: 15px;
    right: 15px;
    width: 32px;
    height: 32px;
    background: var(--primary);
    color: white;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 800;
    font-size: 1rem;
    box-shadow: 0 4px 10px rgba(79, 70, 229, 0.3);
}

.h-step-icon {
    font-size: 2rem;
    color: var(--primary);
    margin-bottom: 1.5rem;
    background: rgba(79, 70, 229, 0.05);
    width: 60px;
    height: 60px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border-radius: 16px;
    margin-top: 0.5rem;
}

.h-step-card h4 {
    font-size: 1.1rem;
    margin-bottom: 0.5rem;
    color: var(--text-main);
    font-weight: 800;
}

.h-step-card p {
    font-size: 0.85rem;
    color: var(--text-muted);
    line-height: 1.6;
}

/* --- Installation Tips --- */
.h-tips {
    margin-top: 3rem;
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 1.5rem;
}

.h-tip-item {
    background: rgba(14, 165, 233, 0.03);
    border: 1px solid rgba(14, 165, 233, 0.1);
    padding: 1.5rem;
    border-radius: 20px;
    display: flex;
    gap: 1rem;
    align-items: flex-start;
}

.h-tip-item i {
    color: var(--secondary);
    font-size: 1.2rem;
    margin-top: 0.2rem;
}

.h-tip-item p {
    font-size: 0.85rem;
    color: var(--text-main);
    font-weight: 600;
    line-height: 1.5;
}

/* --- Elegant Pill-style Repository List --- */
.repo-pill-list {
    display: flex;
    flex-direction: column;
    gap: 1.2rem;
    max-width: 1000px;
    margin: 4rem auto;
}

.repo-pill-card {
    background: white;
    padding: 1.2rem 1.8rem;
    border-radius: 30px;
    border: 1px solid var(--border);
    box-shadow: var(--shadow-subtle);
    display: flex;
    align-items: center;
    justify-content: space-between;
    transition: all 0.3s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    position: relative;
    overflow: hidden;
}

.repo-pill-card:hover {
    transform: scale(1.01) translateY(-2px);
    border-color: var(--primary);
    box-shadow: var(--shadow-premium);
}

.rp-main {
    display: flex;
    align-items: center;
    gap: 1.8rem;
    flex: 1;
}

.rp-icon {
    width: 60px;
    height: 60px;
    background: rgba(79, 70, 229, 0.05);
    border-radius: 20px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.6rem;
    color: var(--primary);
    flex-shrink: 0;
}

.repo-pill-card.mega .rp-icon { background: rgba(59, 130, 246, 0.08); color: var(--secondary); }

.rp-info {
    display: flex;
    flex-direction: column;
    gap: 0.2rem;
}

.rp-title {
    font-size: 1.15rem;
    font-weight: 800;
    color: var(--text-main);
}

.rp-subtitle {
    font-size: 0.85rem;
    color: var(--text-muted);
    font-weight: 600;
}

.rp-action-zone {
    display: flex;
    align-items: center;
    gap: 1.5rem;
    margin-left: 1rem;
}

.rp-code-pill {
    background: #f8fafc;
    border: 1px solid #e2e8f0;
    padding: 0.6rem 1.4rem;
    border-radius: 99px;
    display: flex;
    align-items: center;
    gap: 1rem;
    transition: all 0.2s;
}

.repo-pill-card:hover .rp-code-pill {
    border-color: var(--primary-light);
    background: white;
}

.rp-code {
    font-family: 'JetBrains Mono', monospace;
    font-weight: 800;
    font-size: 1.1rem;
    color: var(--primary);
}

.repo-pill-card.mega .rp-code { color: var(--secondary); }

.rp-copy {
    color: var(--text-muted);
    cursor: pointer;
    font-size: 1.1rem;
    transition: color 0.2s;
}

.rp-copy:hover {
    color: var(--primary);
}

.rp-links {
    display: flex;
    gap: 0.8rem;
}

.rp-link {
    font-size: 0.85rem;
    font-weight: 800;
    color: var(--text-muted);
    text-decoration: none;
    transition: color 0.2s;
    white-space: nowrap;
}

.rp-link:hover {
    color: var(--primary);
}

@media (max-width: 992px) {
    .repo-pill-card {
        flex-direction: column;
        align-items: stretch;
        gap: 1rem;
        border-radius: 16px;
        padding: 1rem;
    }
    
    .rp-main { gap: 1.2rem; }
    
    .rp-action-zone {
        margin-left: 0;
        justify-content: space-between;
        padding-top: 1.2rem;
        border-top: 1px solid #f1f5f9;
    }
}

.repo-pill {
    background: #f1f5f9;
    padding: 0.6rem 1.2rem;
    border-radius: 10px;
    font-family: 'JetBrains Mono', monospace;
    font-weight: 800;
    color: var(--text-muted);
    cursor: pointer;
    font-size: 1.1rem;
    transition: all 0.2s;
    padding: 0.5rem;
    border-radius: 8px;
}

.r-copy:hover {
    color: var(--primary);
    background: rgba(79, 70, 229, 0.05);
}

.repo-categories {
    display: flex;
    gap: 0.8rem;
    margin-bottom: 2.5rem;
    flex-wrap: wrap;
    justify-content: center;
}

.repo-note {
    margin-top: 3rem;
    background: rgba(244, 63, 94, 0.05);
    padding: 2rem;
    border-radius: 24px;
    border: 1px solid rgba(244, 63, 94, 0.2);
    display: flex;
    gap: 1.5rem;
    align-items: flex-start;
}

.repo-note-icon {
    color: var(--accent);
    font-size: 1.5rem;
    margin-top: 0.3rem;
}

.repo-note-title {
    color: var(--accent);
    font-weight: 900;
    margin-bottom: 0.5rem;
    font-size: 1.1rem;
}

.repo-note-text {
    color: var(--text-main);
    font-weight: 600;
    font-size: 0.95rem;
    line-height: 1.6;
}

.repo-category {
    padding: 0.75rem 1.5rem;
    background: white;
    border-radius: 14px;
    font-size: 0.9rem;
    font-weight: 700;
    cursor: pointer;
    transition: all 0.3s ease;
    border: 1px solid var(--border);
    color: var(--text-muted);
}

.repo-category.active {
    background: var(--primary);
    color: white;
    border-color: var(--primary);
    box-shadow: 0 10px 20px rgba(79, 70, 229, 0.2);
}

.repo-category:hover:not(.active) {
    border-color: var(--primary);
    color: var(--primary);
}

.direct-link {
    display: inline-flex;
    align-items: center;
    gap: 0.4rem;
    margin-top: 1.25rem;
    font-size: 0.8rem;
    color: var(--text-muted);
    text-decoration: none;
    font-weight: 700;
    transition: all 0.2s;
}

.direct-link:hover {
    color: var(--primary);
    transform: translateX(-3px);
}

.v-guide-link {
    text-decoration: none;
    color: var(--accent);
    font-weight: 800;
    font-size: 0.85rem;
    display: flex;
    align-items: center;
    gap: 0.5rem;
    transition: transform 0.2s;
}

.featured-repo {
    border: 2px solid var(--primary-light) !important;
    background: linear-gradient(135deg, #ffffff, #f5f3ff) !important;
    box-shadow: 0 10px 30px rgba(79, 70, 229, 0.08);
}

@media (min-width: 992px) {
    .featured-repo {
        grid-column: span 2;
    }
}

/* --- Blog Engagement Grid --- */
.blog-list {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(320px, 1fr));
    gap: 2.5rem;
}

.b-card {
    background: white;
    border-radius: 30px;
    overflow: hidden;
    border: 1px solid var(--border);
    transition: all 0.3s ease;
}

.b-card:hover {
    transform: scale(1.02);
    box-shadow: var(--shadow-premium);
}

.b-img-box {
    height: 200px;
    overflow: hidden;
}

.b-img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.6s ease;
}

.b-card:hover .b-img {
    transform: scale(1.1);
}

.b-content {
    padding: 2rem;
}

.b-tag {
    background: rgba(79, 70, 229, 0.08);
    color: var(--primary);
    padding: 0.3rem 0.8rem;
    border-radius: 100px;
    font-size: 0.75rem;
    font-weight: 800;
    margin-bottom: 1rem;
    display: inline-block;
}

/* --- Interactive Footer --- */
footer {
    padding: 6rem 0;
    background: #0f172a;
    margin-bottom: 1.5rem;
}

footer p {
    opacity: 0.8;
}

.f-links {
    display: flex;
    justify-content: center;
    gap: 2rem;
    flex-wrap: wrap;
    margin-bottom: 2rem;
}

.f-links a {
    color: #64748b;
    text-decoration: none;
    font-size: 0.9rem;
    font-weight: 600;
    transition: color 0.2s;
}

.f-links a:hover {
    color: white;
}

/* Responsive */
@media (max-width: 768px) {
    .hero {
        padding: 6rem 0 4rem;
        text-align: center;
    }

    .hero-text {
        display: flex;
        flex-direction: column;
        align-items: center;
        gap: 0;
    }

    .hero h1 {
        font-size: 2rem;
        letter-spacing: -1px;
    }

    .repo-note {
        flex-direction: column;
        padding: 1.5rem;
        gap: 1rem;
    }

    .hero-text p {
        margin: 0 auto 2.5rem;
    }

    .hero-badges {
        justify-content: center;
        flex-wrap: wrap;
        gap: 0.8rem;
    }

    .mockup-wrapper {
        margin-bottom: 2.5rem;
    }

    .cta-group {
        flex-direction: column;
        width: 100%;
        max-width: 320px;
        margin: 0 auto 2.5rem;
        gap: 1.2rem;
    }

    .cta-group .btn {
        width: 100%;
        justify-content: center;
    }

    .hero-mockup-img {
        max-width: 90%;
        margin: 0 auto;
    }

    .hero-code {
        margin: 0 auto;
    }
    
    .menu-toggle {
        display: block;
    }

    .nav-links {
        position: fixed;
        top: 0;
        right: 0;
        transform: translateX(100%);
        width: 280px;
        height: 100vh;
        background: var(--glass);
        backdrop-filter: blur(25px);
        flex-direction: column;
        justify-content: center;
        align-items: center;
        gap: 1.5rem;
        transition: transform 0.4s cubic-bezier(0.77, 0, 0.175, 1);
        box-shadow: -10px 0 30px rgba(0,0,0,0.1);
        z-index: 1000;
        border-right: 1px solid var(--border);
        padding: 2rem;
    }

    .nav-links.nav-active {
        transform: translateX(0);
    }
    
    .section-title h2 {
        font-size: 1.8rem;
    }
}
/* --- Article Specific Styles (Centralized) --- */
.article-container { 
    max-width: 900px; 
    margin: 0 auto; 
    padding: 10rem 1.5rem 6rem; 
}

.back-link {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    text-decoration: none;
    color: var(--text-muted);
    font-weight: 700;
    font-size: 0.9rem;
    margin-bottom: 2rem;
    transition: all 0.3s ease;
    padding: 0.5rem 1rem;
    background: rgba(79, 70, 229, 0.03);
    border-radius: 12px;
}

.back-link:hover {
    color: var(--primary);
    background: rgba(79, 70, 229, 0.08);
    transform: translateX(-5px);
}

.article-content { 
    background: white; 
    padding: 4rem; 
    border-radius: 40px; 
    box-shadow: var(--shadow-premium); 
    border: 1px solid var(--border); 
}

.article-header h1 { 
    font-size: 2.2rem; /* Reduced from 2.8rem */
    margin-bottom: 2rem; 
    line-height: 1.25; 
    color: var(--text-main); 
    font-weight: 900; 
    letter-spacing: -1.5px; 
}

.featured-img-box { 
    width: 100%; 
    border-radius: 28px; 
    overflow: hidden; 
    margin-bottom: 3rem; 
    box-shadow: 0 30px 60px -15px rgba(0,0,0,0.1); 
}

.featured-img { 
    width: 100%; 
    display: block; 
}

.article-body h2 { 
    font-size: 1.6rem; /* Reduced from 2.0rem */
    margin: 3rem 0 1.5rem; 
    color: var(--primary); 
    font-weight: 800; 
}

.article-body p { 
    margin-bottom: 1.5rem; 
    color: var(--text-muted); 
    font-weight: 500; 
}

.article-body ul { 
    margin: 2rem 0; 
    padding-right: 1rem; 
}

.article-body li { 
    margin-bottom: 1.2rem; 
    padding-right: 2rem; 
    position: relative; 
    color: var(--text-main); 
    font-weight: 600; 
}

.article-body li::before { 
    content: "\f058"; 
    font-family: "Font Awesome 6 Free"; 
    font-weight: 900; 
    position: absolute; 
    right: 0; 
    color: var(--primary); 
    font-size: 1.2rem; 
}

/* --- Responsive Article Styling --- */
@media (max-width: 768px) {
    .article-container {
        padding: 5rem 1rem 3rem;
    }

    .article-content {
        padding: 2.5rem 1.5rem;
        border-radius: 30px;
    }

    .article-header h1 {
        font-size: 1.8rem;
        letter-spacing: -1px;
        margin-bottom: 1.5rem;
    }

    .featured-img-box {
        border-radius: 20px;
        margin-bottom: 2rem;
    }

    .article-body h2 {
        font-size: 1.4rem;
        margin: 2.5rem 0 1rem;
    }

    .article-body p {
        font-size: 0.95rem;
        line-height: 1.7;
    }

    .article-body li {
        font-size: 0.9rem;
        padding-right: 1.8rem;
    }

    .article-body li::before {
        font-size: 1rem;
    }

    .copy-card {
        padding: 2rem 1.5rem;
        border-radius: 24px;
    }

    .copy-card .code-text {
        font-size: 2.5rem;
        letter-spacing: 2px;
    }
}

/* --- Article Icon Grid (Premium Categories) --- */
.article-icon-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 1.5rem;
    margin: 3.5rem 0;
}

.icon-card {
    background: white;
    padding: 2.5rem 2rem;
    border-radius: 28px;
    border: 1px solid var(--border);
    text-align: center;
    transition: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    box-shadow: var(--shadow-subtle);
}

.icon-card:hover {
    transform: translateY(-12px);
    border-color: var(--primary);
    box-shadow: var(--shadow-premium);
}

.icon-card-img, .icon-card i {
    width: auto;
    height: auto;
    font-size: 3rem;
    margin-bottom: 1.5rem;
    display: inline-block;
}

.icon-card i {
    background: linear-gradient(135deg, var(--primary) 0%, var(--secondary) 100%);
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
    filter: drop-shadow(0 8px 15px rgba(79, 70, 229, 0.2));
}

.icon-card-img {
    width: 90px;
    height: 90px;
    object-fit: contain;
    filter: drop-shadow(0 15px 25px rgba(0,0,0,0.1));
}

.icon-card h4 {
    font-size: 1.1rem;
    font-weight: 800;
    color: var(--text-main);
    margin-bottom: 0.5rem;
}

.icon-card p {
    font-size: 0.85rem;
    color: var(--text-muted);
    line-height: 1.5;
}

@media (max-width: 768px) {
    .article-icon-grid {
        grid-template-columns: 1fr 1fr;
        gap: 1rem;
    }
    
    .icon-card {
        padding: 1.5rem 1rem;
        border-radius: 20px;
    }
    
    .icon-card-img {
        width: 60px;
        height: 60px;
    }
    
    .icon-card h4 {
        font-size: 0.95rem;
    }
}

/* --- Responsive Video Guides --- */
.video-section {
    margin: 4rem 0;
}

.video-header {
    display: flex;
    align-items: center;
    gap: 1rem;
    margin-bottom: 2rem;
    padding: 1rem 1.5rem;
    background: rgba(244, 63, 94, 0.05);
    border-radius: 16px;
    border: 1px solid rgba(244, 63, 94, 0.1);
    color: var(--accent);
}

.video-container {
    position: relative;
    padding-bottom: 56.25%; /* 16:9 Aspect Ratio */
    height: 0;
    overflow: hidden;
    border-radius: 32px;
    box-shadow: 0 40px 80px -20px rgba(0,0,0,0.15);
    background: #000;
    border: 1px solid var(--border);
}

.video-container iframe {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    border: 0;
}

/* --- Standardized Shortcode Cards --- */
.copy-card {
    background: #ffffff;
    padding: 3rem 2rem;
    border-radius: 40px;
    text-align: center;
    border: 3px solid var(--primary);
    margin: 3rem 0;
    position: relative;
    cursor: pointer;
    transition: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    background-image: radial-gradient(circle at top right, rgba(79, 70, 229, 0.05), transparent);
}

.copy-card:hover {
    transform: translateY(-8px);
    box-shadow: 0 40px 80px -20px rgba(79, 70, 229, 0.25);
    border-color: var(--secondary);
}

.copy-card .code-text {
    font-family: 'JetBrains Mono', monospace;
    font-size: 3.5rem;
    font-weight: 900;
    color: var(--primary);
    letter-spacing: 4px;
    display: block;
    margin-bottom: 1rem;
    text-shadow: 0 10px 20px rgba(79, 70, 229, 0.1);
}

.copy-card .copy-hint {
    display: inline-flex;
    align-items: center;
    gap: 0.8rem;
    padding: 0.8rem 1.5rem;
    background: var(--bg-alt);
    border-radius: 99px;
    font-size: 1rem;
    color: var(--text-muted);
    font-weight: 800;
    transition: all 0.3s ease;
}

.copy-card:hover .copy-hint {
    background: var(--primary);
    color: white;
}

/* --- Simple Article Code Display --- */
.code-display {
    padding: 1.5rem;
    border-radius: 20px;
    text-align: center;
    border: 2px dashed var(--primary);
    margin: 2rem 0;
    background: #f8fafc;
    cursor: pointer;
    transition: all 0.3s ease;
}

.code-display:hover {
    background: white;
    box-shadow: var(--shadow-premium);
    transform: scale(1.01);
}

.code-display .code-text {
    font-family: 'JetBrains Mono', monospace;
    font-size: 2.2rem;
    font-weight: 800;
    color: var(--primary);
    letter-spacing: 2px;
    display: block;
}

.code-display .copy-hint {
    display: block;
    margin-top: 0.5rem;
    font-size: 0.85rem;
    color: var(--text-muted);
    font-weight: 700;
}

/* --- Premium Download Page --- */
.dl-page {
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 2rem;
}

.dl-card {
    background: white;
    max-width: 500px;
    width: 100%;
    padding: 4rem 3rem;
    border-radius: 48px;
    box-shadow: 0 50px 100px -20px rgba(0,0,0,0.15);
    text-align: center;
    border: 1px solid var(--border);
    position: relative;
    overflow: hidden;
}

@media (max-width: 768px) {
    .dl-card {
        padding: 2.5rem 1.5rem;
        border-radius: 32px;
    }
}

.dl-icon-wrapper {
    position: relative;
    width: 140px;
    height: 140px;
    margin: 0 auto 2.5rem;
}

.dl-app-icon {
    width: 100%;
    height: 100%;
    border-radius: 32px;
    box-shadow: 0 20px 40px rgba(79, 70, 229, 0.2);
    position: relative;
    z-index: 2;
}

/* --- Horizontal Progress Bar --- */
.progress-container {
    width: 100%;
    height: 12px;
    background: var(--bg-alt);
    border-radius: 99px;
    margin: 2rem 0 1rem;
    overflow: hidden;
    position: relative;
    border: 1px solid var(--border);
}

.progress-fill {
    height: 100%;
    width: 0%;
    background: linear-gradient(90deg, var(--primary), var(--secondary));
    border-radius: 99px;
    transition: width 1s linear;
}

.countdown-timer {
    font-weight: 900;
    color: var(--primary);
    font-size: 1.1rem;
    margin-bottom: 0.5rem;
    display: block;
}

.dl-status {
    height: auto;
    color: var(--text-muted);
    font-weight: 700;
    margin-bottom: 1rem;
    font-size: 0.9rem;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
}

/* Animations */
@keyframes pulse-ring {
    0% { transform: scale(0.85); opacity: 0.5; }
    50% { transform: scale(1); opacity: 0.3; }
    100% { transform: scale(0.85); opacity: 0.5; }
}

.dl-icon-wrapper::after {
    content: '';
    position: absolute;
    top: 0; left: 0; right: 0; bottom: 0;
    background: var(--primary);
    border-radius: 32px;
    z-index: 0;
    filter: blur(20px);
    opacity: 0.2;
    animation: pulse-ring 3s infinite ease-in-out;
}

/* --- TV Guide & Backup Enhancements --- */
.backup-section {
    margin-top: 1.5rem;
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
}

.btn-link {
    background: none;
    border: none;
    color: var(--text-muted);
    font-size: 0.85rem;
    font-weight: 700;
    text-decoration: underline;
    cursor: pointer;
    transition: color 0.2s;
    pointer-events: none;
    opacity: 0.5;
}

.btn-link.ready {
    opacity: 1;
    pointer-events: all;
    color: var(--primary);
}

.btn-beta {
    background: transparent;
    border: 2px solid var(--primary);
    color: var(--primary);
    opacity: 0.5;
    pointer-events: none;
    transition: all 0.3s ease;
}

.btn-beta.ready {
    opacity: 1;
    pointer-events: all;
}

.btn-beta.ready:hover {
    background: var(--primary);
    color: white;
    transform: translateY(-2px);
    box-shadow: 0 10px 20px rgba(79, 70, 229, 0.15);
}

/* --- Simplified Quick Access Instructions --- */
.tv-guide-section {
    margin: 6rem auto 4rem;
    max-width: 1000px;
    width: 100%;
}

.tv-guide-layout {
    display: grid;
    grid-template-columns: 1fr 1.2fr;
    gap: 4rem;
    align-items: center;
}

.tv-guide-content {
    text-align: right;
}

.tv-guide-content h3 {
    font-size: 2rem;
    font-weight: 900;
    margin-bottom: 1.5rem;
    color: var(--text-main);
    letter-spacing: -0.5px;
}

.tv-guide-content p {
    color: var(--text-muted);
    font-weight: 600;
    line-height: 1.8;
    margin-bottom: 2.5rem;
    font-size: 1.05rem;
}

.downloader-code {
    display: inline-flex;
    align-items: center;
    gap: 1rem;
    background: var(--primary);
    color: white;
    padding: 1rem 2rem;
    border-radius: 16px;
    font-family: 'JetBrains Mono', monospace;
    font-weight: 900;
    font-size: 1.6rem;
    box-shadow: 0 15px 30px rgba(79, 70, 229, 0.25);
}

.tv-guide-img-wrapper {
    width: 100%;
    border-radius: 32px;
    overflow: hidden;
    box-shadow: var(--shadow-premium);
    border: 1px solid var(--border);
}

.tv-guide-img {
    width: 100%;
    height: auto;
    display: block;
    transition: transform 0.5s cubic-bezier(0.175, 0.885, 0.32, 1.275);
}

.tv-guide-img:hover {
    transform: scale(1.02);
}

@media (max-width: 992px) {
    .tv-guide-layout {
        grid-template-columns: 1fr;
        gap: 3rem;
        text-align: center;
    }
    
    .tv-guide-content {
        text-align: center;
        order: 1;
    }
    
    .tv-guide-img-wrapper {
        order: 2;
    }

    .tv-guide-content h3 {
        font-size: 1.6rem;
    }
}

/* --- UX Overhaul: Trust & Steps --- */
.trust-badges {
    display: flex;
    justify-content: center;
    gap: 2rem;
    margin-bottom: 2.5rem;
}

.t-badge {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 0.5rem;
}

.t-badge i {
    font-size: 1.2rem;
    color: #10b981;
}

.t-badge span {
    font-size: 0.75rem;
    font-weight: 800;
    color: var(--text-muted);
    text-transform: uppercase;
    letter-spacing: 1px;
}

.step-guide {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 1.5rem;
    margin-top: 3rem;
    padding-top: 3rem;
    border-top: 1px solid var(--border);
}

.step-item {
    text-align: center;
}

.step-num {
    width: 32px;
    height: 32px;
    background: var(--bg-alt);
    color: var(--primary);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 1rem;
    font-weight: 900;
    font-size: 0.9rem;
    border: 1px solid var(--border);
}

.step-item h4 {
    font-size: 0.85rem;
    font-weight: 800;
    color: var(--text-main);
    margin-bottom: 0.3rem;
}

.step-item p {
    font-size: 0.7rem;
    color: var(--text-muted);
    line-height: 1.4;
}

/* Floating Animation for Header Icons */
@keyframes icon-float {
    0%, 100% { transform: translateY(0); }
    50% { transform: translateY(-5px); }
}

.dl-card .badge i {
    animation: icon-float 2s infinite ease-in-out;
}

.dl-page {
    background: radial-gradient(circle at 50% 50%, #fcfdfe 0%, #f1f5f9 100%);
    flex-direction: column;
    overflow-y: auto;
    padding: 6rem 2rem;
}

.dl-card {
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(30px);
    border: 1px solid rgba(255, 255, 255, 0.6);
    z-index: 10;
    box-shadow: 0 40px 100px -30px rgba(0,0,0,0.1);
}

/* Immersive Mesh Background Animation */
.mesh-bg {
    position: fixed;
    top: 0; left: 0; right: 0; bottom: 0;
    z-index: -1;
    background-color: #f1f5f9;
    background-image: 
        radial-gradient(at 0% 0%, rgba(79, 70, 229, 0.15) 0, transparent 50%), 
        radial-gradient(at 50% 0%, rgba(139, 92, 246, 0.1) 0, transparent 50%), 
        radial-gradient(at 100% 0%, rgba(20, 184, 166, 0.1) 0, transparent 50%),
        radial-gradient(at 0% 100%, rgba(20, 184, 166, 0.1) 0, transparent 50%),
        radial-gradient(at 100% 100%, rgba(79, 70, 229, 0.15) 0, transparent 50%);
    background-size: 200% 200%;
    animation: mesh-flow 15s infinite alternate ease-in-out;
}

@keyframes mesh-flow {
    0% { background-position: 0% 0%; }
    50% { background-position: 100% 100%; }
    100% { background-position: 0% 100%; }
}

/* Quick Specs Styling */
.quick-specs {
    background: var(--bg-alt);
    padding: 1.5rem;
    border-radius: 24px;
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 1rem;
    margin: 2.5rem 0;
    border: 1px solid var(--border);
}

.spec-item {
    display: flex;
    flex-direction: column;
    gap: 0.3rem;
}

.spec-label {
    font-size: 0.65rem;
    color: var(--text-muted);
    font-weight: 800;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.spec-value {
    font-size: 0.85rem;
    font-weight: 900;
    color: var(--text-main);
}

/* Safety Mastery Icons */
.safety-verify {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 1.5rem;
    margin-top: 1.5rem;
    opacity: 0.8;
}

.s-tool {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    font-size: 0.8rem;
    font-weight: 700;
    color: #10b981;
}

.s-tool i {
    font-size: 1rem;
}

/* Celebratory Ready State */
@keyframes button-emerge {
    0% { transform: scale(0.9) translateY(10px); opacity: 0; }
    50% { transform: scale(1.05); }
    100% { transform: scale(1); opacity: 1; }
}

.dl-btn.ready {
    animation: button-emerge 0.6s cubic-bezier(0.175, 0.885, 0.32, 1.275) forwards;
    filter: drop-shadow(0 0 15px rgba(79, 70, 229, 0.4));
}

/* Discord CTA Button */
.discord-cta {
    display: inline-flex;
    align-items: center;
    gap: 0.8rem;
    background: #5865F2;
    color: white;
    padding: 1rem 2rem;
    border-radius: 50px;
    text-decoration: none;
    font-weight: 800;
    transition: all 0.3s ease;
    box-shadow: 0 10px 25px rgba(88, 101, 242, 0.3);
    margin-top: 1.5rem;
}

.discord-cta:hover {
    transform: translateY(-3px);
    box-shadow: 0 15px 35px rgba(88, 101, 242, 0.4);
    background: #4752c4;
}

/* Legal Page Layouts */
.legal-container {
    max-width: 900px;
    margin: 8rem auto;
    padding: 4rem;
    background: rgba(255, 255, 255, 0.8);
    backdrop-filter: blur(20px);
    border-radius: 32px;
    border: 1px solid var(--border);
    line-height: 1.8;
}

.legal-container h1 { font-size: 2.2rem; margin-bottom: 2rem; color: var(--text-main); }
.legal-container h2 { font-size: 1.4rem; margin: 2rem 0 1rem; color: var(--primary); }
.legal-container p { margin-bottom: 1.2rem; color: var(--text-muted); }


.dl-btn.ready::after {
    content: '';
    position: absolute;
    top: -50%; left: -50%; width: 200%; height: 200%;
    background: radial-gradient(circle, rgba(255,255,255,0.2) 0%, transparent 70%);
    opacity: 0;
    transition: opacity 0.3s;
}

.dl-btn.ready:hover::after {
    opacity: 1;
}
