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

:root {
    /* Brand Colors from App */
    --primary: #166EF7;
    --primary-hover: #1059C9;
    --success: #43A546;
    --warning: #FF9800;
    --error: #F44336;
    --accent: #8b5CF6; /* New accent for gradient mix */

    /* Light Theme */
    --bg-color: #FAFAFA;
    --text-main: #111827;
    --text-muted: #4B5563;
    --card-bg: rgba(255, 255, 255, 0.6);
    --nav-bg: rgba(250, 250, 250, 0.85);
    --border-color: rgba(17, 24, 39, 0.08);
    --glow-color: rgba(22, 110, 247, 0.1);
    --surface: #ffffff;
}

[data-theme="dark"] {
    /* Dark Theme */
    --bg-color: #050505;
    --text-main: #F9FAFB;
    --text-muted: #9CA3AF;
    --card-bg: rgba(17, 24, 39, 0.4);
    --nav-bg: rgba(5, 5, 5, 0.85);
    --border-color: rgba(255, 255, 255, 0.08);
    --glow-color: rgba(22, 110, 247, 0.2);
    --surface: #111827;
    color-scheme: dark;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: 'Outfit', sans-serif;
    transition: background-color 0.3s ease, color 0.3s ease, border-color 0.3s ease;
}

body {
    background-color: var(--bg-color);
    color: var(--text-main);
    line-height: 1.6;
    overflow-x: hidden;
    position: relative;
}

/* Background Gradients */
.bg-mesh {
    position: fixed;
    top: 0;
    left: 0;
    width: 100vw;
    height: 100vh;
    z-index: -1;
    overflow: hidden;
    pointer-events: none;
}
.bg-mesh::before, .bg-mesh::after {
    content: '';
    position: absolute;
    border-radius: 50%;
    filter: blur(150px);
    opacity: 0.5;
    animation: float 25s infinite ease-in-out alternate;
}
.bg-mesh::before {
    top: -10%;
    left: -20%;
    width: 60vw;
    height: 60vw;
    background: var(--glow-color);
}
.bg-mesh::after {
    bottom: -20%;
    right: -10%;
    width: 50vw;
    height: 50vw;
    background: rgba(139, 92, 246, 0.1); /* Subtle accent purple */
    animation-delay: -12s;
}

@keyframes float {
    0% { transform: translate(0, 0) scale(1); }
    100% { transform: translate(15%, 15%) scale(1.2); }
}

/* Typography utilities */
h1, h2, h3, h4 {
    font-weight: 700;
    line-height: 1.1;
    margin-bottom: 1rem;
    color: var(--text-main);
}
p {
    color: var(--text-muted);
    margin-bottom: 1.5rem;
    font-size: 1.1rem;
}
a {
    color: var(--primary);
    text-decoration: none;
    transition: color 0.2s ease;
}
a:hover {
    color: var(--primary-hover);
}
.gradient-text {
    background: linear-gradient(135deg, var(--primary), var(--accent));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    display: inline-block;
}

/* Layout Utilities */
.container {
    max-width: 1280px;
    margin: 0 auto;
    padding: 0 2rem;
}
.section {
    padding: 8rem 0;
}

/* Navbar */
.navbar {
    position: fixed;
    top: 0;
    width: 100%;
    padding: 1rem 0;
    background: var(--nav-bg);
    backdrop-filter: blur(16px);
    -webkit-backdrop-filter: blur(16px);
    border-bottom: 1px solid var(--border-color);
    z-index: 1000;
}
.navbar .container {
    display: flex;
    justify-content: space-between;
    align-items: center;
}
.logo {
    font-size: 1.5rem;
    font-weight: 800;
    display: flex;
    align-items: center;
    gap: 0.5rem;
    color: var(--text-main);
}
.logo svg {
    width: 28px;
    height: 28px;
}
.nav-links {
    display: flex;
    gap: 2.5rem;
    align-items: center;
}
.nav-links a {
    color: var(--text-muted);
    font-weight: 500;
    font-size: 1.05rem;
}
.nav-links a:hover {
    color: var(--primary);
}

/* Buttons */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    padding: 0.875rem 1.75rem;
    border-radius: 12px;
    font-weight: 600;
    cursor: pointer;
    border: none;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    font-size: 1.05rem;
}
.btn-primary {
    background: linear-gradient(135deg, var(--primary), #3B82F6);
    color: #fff !important;
    box-shadow: 0 4px 14px var(--glow-color);
}
.btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 25px var(--glow-color);
}
.btn-outline {
    background: transparent;
    color: var(--text-main) !important;
    border: 1.5px solid var(--border-color);
}
.btn-outline:hover {
    border-color: var(--primary);
    background: var(--glow-color);
}

/* Hero Section: Side-by-Side */
.hero {
    min-height: 100vh;
    display: flex;
    align-items: center;
    padding-top: 80px;
}
.hero-container {
    display: flex;
    align-items: center;
    gap: 4rem;
}
.hero-content {
    flex: 1;
}
.hero-visual {
    flex: 1;
    position: relative;
}
.hero h1 {
    font-size: clamp(3.5rem, 6vw, 5.5rem);
    letter-spacing: -0.04em;
    margin-bottom: 1.5rem;
}
.hero p {
    font-size: 1.25rem;
    max-width: 540px;
    margin-bottom: 2.5rem;
}
.hero-btns {
    display: flex;
    gap: 1rem;
    flex-wrap: wrap;
}

/* Floating App Preview Cards */
.floating-cards {
    position: relative;
    width: 100%;
    height: 500px;
}
.card-mockup {
    position: absolute;
    background: var(--surface);
    border: 1px solid var(--border-color);
    border-radius: 20px;
    padding: 1.5rem;
    box-shadow: 0 25px 50px -12px rgba(0,0,0,0.25);
    backdrop-filter: blur(10px);
}
.card-1 {
    top: 50px;
    right: 0;
    width: 300px;
    z-index: 2;
    animation: float-y 6s infinite ease-in-out;
}
.card-2 {
    bottom: 50px;
    left: 20px;
    width: 260px;
    z-index: 1;
    animation: float-y 8s infinite ease-in-out reverse;
}
.mockup-row {
    display: flex;
    align-items: center;
    gap: 1rem;
    margin-bottom: 1rem;
}
.mockup-icon {
    width: 40px; height: 40px; border-radius: 12px;
}
.mockup-line {
    height: 8px; border-radius: 4px; background: var(--border-color);
}

@keyframes float-y {
    0% { transform: translateY(0); }
    50% { transform: translateY(-20px); }
    100% { transform: translateY(0); }
}

/* Features Grid */
.features-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
    gap: 2rem;
    margin-top: 3rem;
}
.feature-card {
    background: var(--card-bg);
    border: 1px solid var(--border-color);
    border-radius: 24px;
    padding: 2.5rem;
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    position: relative;
    overflow: hidden;
}
/* Gradient Border Effect */
.feature-card::before {
    content: "";
    position: absolute;
    top: 0; left: 0; right: 0; height: 3px;
    background: linear-gradient(90deg, var(--primary), var(--accent));
    opacity: 0;
    transition: opacity 0.3s ease;
}
.feature-card:hover {
    transform: translateY(-8px);
    box-shadow: 0 20px 40px rgba(0,0,0,0.08);
}
.feature-card:hover::before {
    opacity: 1;
}
.feature-icon-wrapper {
    width: 56px;
    height: 56px;
    border-radius: 16px;
    background: var(--glow-color);
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 1.5rem;
}
.feature-icon-wrapper svg {
    width: 32px;
    height: 32px;
}

/* Legal Pages Typography */
.legal-content {
    max-width: 800px;
    margin: 140px auto 5rem;
    background: var(--card-bg);
    padding: 4rem;
    border-radius: 24px;
    border: 1px solid var(--border-color);
    backdrop-filter: blur(12px);
    box-shadow: 0 10px 30px rgba(0,0,0,0.02);
}
.legal-content h1 {
    font-size: 3rem;
    margin-bottom: 0.5rem;
    letter-spacing: -0.02em;
}
.legal-content h2 {
    font-size: 1.75rem;
    margin-top: 3rem;
    margin-bottom: 1rem;
    color: var(--primary);
}
.legal-content p {
    font-size: 1.1rem;
}
.legal-content ul {
    margin-left: 1.5rem;
    margin-bottom: 1.5rem;
    color: var(--text-muted);
}
.legal-content li {
    margin-bottom: 0.75rem;
    font-size: 1.1rem;
}

/* Footer */
.footer {
    background: var(--surface);
    border-top: 1px solid var(--border-color);
    padding: 5rem 0 2rem;
}

.footer-grid {
    display: grid;
    grid-template-columns: 2fr 1fr 1fr 1fr;
    gap: 3rem;
    margin-bottom: 4rem;
}

.footer-brand p {
    font-size: 0.95rem;
    line-height: 1.6;
}

.footer-col h4 {
    margin-bottom: 1.25rem;
    font-size: 1.05rem;
    color: var(--text-main);
    font-weight: 700;
}

.footer-col ul {
    list-style: none;
}

.footer-col ul li {
    margin-bottom: 0.85rem;
}

.footer-col a {
    color: var(--text-muted);
    transition: color 0.2s ease;
    font-size: 0.95rem;
}

.footer-col a:hover {
    color: var(--primary);
}

.footer-bottom {
    text-align: center;
    padding-top: 2rem;
    border-top: 1px solid var(--border-color);
    color: var(--text-muted);
    font-size: 0.95rem;
}

/* Theme Toggle */
.theme-toggle {
    background: var(--surface);
    border: 1px solid var(--border-color);
    color: var(--text-main);
    cursor: pointer;
    padding: 0.5rem;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 12px;
    transition: all 0.2s ease;
    width: 40px;
    height: 40px;
}
.theme-toggle:hover {
    border-color: var(--primary);
    color: var(--primary);
}
.theme-toggle svg {
    width: 20px;
    height: 20px;
    fill: currentColor;
}

/* Mobile Menu Button */
.mobile-menu-btn {
    display: none;
    background: none;
    border: none;
    color: var(--text-main);
    cursor: pointer;
    padding: 0.5rem;
    z-index: 1001;
}
.mobile-menu-btn svg {
    width: 28px;
    height: 28px;
    stroke: currentColor;
    stroke-width: 2;
    transition: transform 0.3s ease;
}

/* Responsive */
@media (max-width: 992px) {
    .hero-container {
        flex-direction: column;
        text-align: center;
        padding-top: 40px;
    }
    .hero p {
        margin: 0 auto 2.5rem;
    }
    .hero-btns {
        justify-content: center;
    }
    .floating-cards {
        height: 400px;
    }
    .card-1 { right: 50%; transform: translateX(50%); top: 0; }
    .card-2 { display: none; }
}

@media (max-width: 768px) {
    .nav-links {
        position: absolute;
        top: 100%;
        left: 0;
        width: 100%;
        background: var(--nav-bg);
        backdrop-filter: blur(16px);
        -webkit-backdrop-filter: blur(16px);
        flex-direction: column;
        padding: 2rem;
        gap: 1.5rem;
        border-bottom: 1px solid var(--border-color);
        clip-path: polygon(0 0, 100% 0, 100% 0, 0 0);
        transition: clip-path 0.4s cubic-bezier(0.4, 0, 0.2, 1);
        pointer-events: none;
    }
    .nav-links.active {
        clip-path: polygon(0 0, 100% 0, 100% 100%, 0 100%);
        pointer-events: auto;
    }
    .nav-links a {
        display: block;
        width: 100%;
        text-align: center;
        font-size: 1.1rem;
        padding: 0.5rem 0;
    }
    .mobile-menu-btn {
        display: block;
    }
    .hero h1 {
        font-size: 2.5rem;
    }
    .section {
        padding: 4rem 1rem;
    }
    .legal-content {
        padding: 1.5rem !important;
        margin: 80px 1rem 2rem !important;
    }
    .theme-toggle {
        margin: 0 auto;
        width: 100%;
        max-width: 200px;
    }
}

/* Micro-animations */
.reveal {
    opacity: 0;
    transform: translateY(40px);
    transition: all 1s cubic-bezier(0.16, 1, 0.3, 1);
}
.reveal.active {
    opacity: 1;
    transform: translateY(0);
}

/* Form Controls */
.form-group {
    margin-bottom: 2rem;
    position: relative;
}
.form-label {
    display: block;
    margin-bottom: 0.5rem;
    font-weight: 600;
    color: var(--text-main);
}
.form-control {
    box-sizing: border-box;
    display: block;
    width: 100%;
    padding: 1rem 1.25rem;
    border-radius: 12px;
    border: 2px solid transparent;
    background-color: var(--surface);
    color: var(--text-main);
    font-size: 1rem;
    font-family: 'Outfit', sans-serif;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    outline: none;
    box-shadow: 0 2px 4px rgba(0,0,0,0.02) inset;
}
[data-theme="dark"] .form-control {
    background-color: rgba(255, 255, 255, 0.03);
    border: 1px solid rgba(255, 255, 255, 0.1);
}
.form-control:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(0,0,0,0.05);
}
[data-theme="dark"] .form-control:hover {
    border-color: rgba(255, 255, 255, 0.2);
    box-shadow: 0 4px 12px rgba(0,0,0,0.2);
}
.form-control:focus {
    border-color: var(--primary);
    transform: translateY(-2px);
    box-shadow: 0 0 0 4px rgba(22, 110, 247, 0.15);
}
textarea.form-control {
    resize: vertical;
    min-height: 120px;
}
.char-counter {
    position: absolute;
    bottom: -1.25rem;
    right: 0.5rem;
    font-size: 0.8rem;
    color: var(--text-muted);
    font-weight: 500;
    transition: color 0.3s ease;
}
.char-counter.limit-reached {
    color: var(--error);
}
select.form-control {
    appearance: none;
    background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 24 24' fill='none' xmlns='http://www.w3.org/2000/svg'%3E%3Cpath d='M6 9l6 6 6-6' stroke='%234B5563' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E") !important;
    background-repeat: no-repeat !important;
    background-position: right 1.25rem center !important;
    background-size: 1.5em !important;
    padding-right: 3rem;
}
select.form-control option {
    background-color: #111827 !important;
    color: #F9FAFB !important;
}
[data-theme="dark"] select.form-control {
    background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 24 24' fill='none' xmlns='http://www.w3.org/2000/svg'%3E%3Cpath d='M6 9l6 6 6-6' stroke='%239CA3AF' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E") !important;
    background-repeat: no-repeat !important;
    background-position: right 1.25rem center !important;
    background-size: 1.5em !important;
    color-scheme: dark !important;
}

/* Global Code Formatting */
code {
    font-family: monospace, SFMono-Regular, Consolas;
    word-break: break-word;
    overflow-wrap: anywhere;
    background: rgba(0, 0, 0, 0.05);
    padding: 0.15rem 0.4rem;
    border-radius: 6px;
    font-size: 0.88em;
    max-width: 100%;
}
[data-theme="dark"] code {
    background: rgba(255, 255, 255, 0.08);
}

/* ==========================================================================
   Downloads Page Custom Styles
   ========================================================================== */
.downloads-container {
    padding-top: 140px;
    padding-bottom: 5rem;
    max-width: 1000px;
    margin: 0 auto;
}

.downloads-header {
    text-align: center;
    margin-bottom: 3.5rem;
}

.downloads-header h1 {
    font-size: 3rem;
    margin-bottom: 0.75rem;
    word-break: break-word;
}

.hero-badge {
    display: inline-block;
    padding: 0.5rem 1.25rem;
    border-radius: 50px;
    background: var(--glow-color);
    color: var(--primary);
    font-weight: 600;
    margin-bottom: 1.5rem;
    font-size: 0.9rem;
    letter-spacing: 0.5px;
    max-width: 100%;
    word-break: break-word;
    line-height: 1.4;
}

/* Featured Download Card */
.download-featured-card {
    background: var(--card-bg);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border: 1px solid rgba(22, 110, 247, 0.3);
    box-shadow: 0 20px 50px rgba(0, 0, 0, 0.15), 0 0 30px var(--glow-color);
    border-radius: 24px;
    padding: 3rem;
    position: relative;
    overflow: hidden;
    margin-bottom: 4rem;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.download-featured-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 25px 60px rgba(0, 0, 0, 0.2), 0 0 40px rgba(22, 110, 247, 0.25);
}

.download-featured-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 4px;
    background: linear-gradient(90deg, var(--primary), var(--accent), var(--success));
}

.badge-latest {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 0.4rem 1rem;
    border-radius: 50px;
    background: rgba(67, 165, 70, 0.15);
    color: var(--success);
    font-weight: 700;
    font-size: 0.85rem;
    letter-spacing: 0.5px;
    text-transform: uppercase;
    border: 1px solid rgba(67, 165, 70, 0.3);
    margin-bottom: 1.25rem;
}

.badge-version {
    display: inline-flex;
    align-items: center;
    gap: 4px;
    padding: 0.25rem 0.75rem;
    border-radius: 8px;
    background: var(--glow-color);
    color: var(--primary);
    font-weight: 600;
    font-size: 0.85rem;
    word-break: break-all;
    max-width: 100%;
}

.featured-card-header {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 10px;
    margin-bottom: 0.75rem;
}

.featured-card-header h2 {
    font-size: 2rem;
    margin: 0;
    word-break: break-word;
    overflow-wrap: anywhere;
}

.download-meta-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
    gap: 1.25rem;
    margin: 2rem 0;
    padding: 1.5rem;
    background: rgba(0, 0, 0, 0.03);
    border-radius: 16px;
    border: 1px solid var(--border-color);
}

[data-theme="dark"] .download-meta-grid {
    background: rgba(255, 255, 255, 0.02);
}

.meta-item {
    display: flex;
    flex-direction: column;
    min-width: 0;
}

.meta-label {
    font-size: 0.85rem;
    color: var(--text-muted);
    text-transform: uppercase;
    letter-spacing: 0.5px;
    margin-bottom: 0.25rem;
}

.meta-value {
    font-size: 1.05rem;
    font-weight: 600;
    color: var(--text-main);
    word-break: break-word;
    overflow-wrap: anywhere;
}

.featured-actions {
    margin-top: 2rem;
    display: flex;
    flex-wrap: wrap;
    gap: 1rem;
    align-items: center;
}

.server-direct-tag {
    font-size: 0.9rem;
    color: var(--text-muted);
    display: flex;
    align-items: center;
    gap: 6px;
}

.btn-large {
    padding: 1.15rem 2.25rem;
    font-size: 1.15rem;
    border-radius: 16px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 12px;
    box-shadow: 0 10px 25px rgba(22, 110, 247, 0.3);
    text-align: center;
    max-width: 100%;
}

.btn-large:hover {
    box-shadow: 0 15px 35px rgba(22, 110, 247, 0.4);
}

/* Builds Archive Section */
.archive-title {
    font-size: 1.8rem;
    margin-bottom: 1.5rem;
    display: flex;
    align-items: center;
    gap: 12px;
    word-break: break-word;
}

.builds-list {
    display: flex;
    flex-direction: column;
    gap: 1rem;
    margin-bottom: 4rem;
}

.build-item {
    background: var(--card-bg);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    border: 1px solid var(--border-color);
    border-radius: 16px;
    padding: 1.5rem 2rem;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 1.5rem;
    transition: all 0.25s ease;
    overflow: hidden;
}

.build-item:hover {
    border-color: rgba(22, 110, 247, 0.3);
    transform: translateX(4px);
    background: var(--surface);
}

.build-info {
    flex: 1;
    min-width: 0;
}

.build-header {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 8px 12px;
    margin-bottom: 0.4rem;
}

.build-title {
    font-size: 1.2rem;
    font-weight: 700;
    color: var(--text-main);
    word-break: break-word;
}

.build-desc {
    font-size: 0.95rem;
    color: var(--text-muted);
    margin-bottom: 0;
    word-break: break-word;
}

.build-details {
    display: flex;
    flex-wrap: wrap;
    gap: 0.6rem 1.2rem;
    font-size: 0.85rem;
    color: var(--text-muted);
    margin-top: 0.6rem;
}

.build-details span {
    display: inline-flex;
    align-items: center;
    gap: 4px;
    max-width: 100%;
    word-break: break-word;
    overflow-wrap: anywhere;
}

.build-action {
    flex-shrink: 0;
}

.btn-icon-download {
    padding: 0.65rem 1.25rem;
    font-size: 0.95rem;
    border-radius: 12px;
    display: inline-flex;
    align-items: center;
    gap: 8px;
    white-space: nowrap;
}

/* Installation Guide Cards */
.install-steps-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
    gap: 1.5rem;
    margin-top: 2rem;
}

.install-step-card {
    background: var(--card-bg);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    border: 1px solid var(--border-color);
    border-radius: 16px;
    padding: 1.75rem;
    position: relative;
    min-width: 0;
}

.install-step-card p {
    word-break: break-word;
}

.step-number {
    width: 36px;
    height: 36px;
    border-radius: 50%;
    background: var(--glow-color);
    color: var(--primary);
    font-weight: 800;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 1rem;
}

/* Mobile Responsiveness Breakpoints */
@media (max-width: 768px) {
    .downloads-container {
        padding-top: 100px;
        padding-left: 1.25rem;
        padding-right: 1.25rem;
    }
    .downloads-header h1 {
        font-size: 2.2rem;
    }
    .download-featured-card {
        padding: 1.5rem;
        border-radius: 20px;
    }
    .featured-card-header h2 {
        font-size: 1.5rem;
    }
    .btn-large {
        width: 100%;
        justify-content: center;
        padding: 1rem 1.25rem;
        font-size: 1.05rem;
    }
    .build-item {
        flex-direction: column;
        align-items: stretch;
        padding: 1.25rem;
    }
    .build-action {
        width: 100%;
        margin-top: 0.5rem;
    }
    .btn-icon-download {
        width: 100%;
        justify-content: center;
    }
}

@media (max-width: 480px) {
    .downloads-container {
        padding-left: 1rem;
        padding-right: 1rem;
    }
    .downloads-header h1 {
        font-size: 1.8rem;
    }
    .downloads-header p {
        font-size: 0.95rem;
    }
    .hero-badge {
        font-size: 0.78rem;
        padding: 0.4rem 0.85rem;
        border-radius: 25px;
    }
    .download-featured-card {
        padding: 1.2rem;
    }
    .download-meta-grid {
        grid-template-columns: 1fr 1fr;
        gap: 0.75rem;
        padding: 1rem;
    }
    .meta-label {
        font-size: 0.75rem;
    }
    .meta-value {
        font-size: 0.95rem;
    }
    .archive-title {
        font-size: 1.4rem;
    }
    .install-step-card {
        padding: 1.25rem;
    }
}

/* ==========================================================================
   Features & Roadmap Page Custom Styles
   ========================================================================== */
.features-container {
    padding-top: 140px;
    padding-bottom: 5rem;
}

.features-hero {
    text-align: center;
    margin-bottom: 4rem;
}

.features-hero h1 {
    font-size: clamp(2.5rem, 5vw, 4rem);
    margin-bottom: 1rem;
}

.category-header {
    margin-top: 4rem;
    margin-bottom: 2rem;
    padding-bottom: 1rem;
    border-bottom: 1px solid var(--border-color);
    display: block;
    width: 100%;
}

.category-tag {
    display: table;
    font-size: 0.8rem;
    padding: 0.35rem 0.85rem;
    border-radius: 20px;
    background: var(--glow-color);
    color: var(--primary);
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    margin-bottom: 0.75rem;
    max-width: 100%;
}

.category-header h2 {
    display: block;
    width: 100%;
    font-size: clamp(1.5rem, 4vw, 2.2rem);
    margin: 0;
    line-height: 1.25;
    word-break: break-word;
}

/* Roadmap Grid & Cards */
.roadmap-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 2rem;
    margin-top: 2rem;
}

.roadmap-card {
    background: var(--card-bg);
    backdrop-filter: blur(16px);
    -webkit-backdrop-filter: blur(16px);
    border: 1px solid var(--border-color);
    border-radius: 20px;
    padding: 2rem;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    position: relative;
    min-width: 0;
}

.roadmap-card:hover {
    transform: translateY(-5px);
    border-color: rgba(22, 110, 247, 0.3);
    box-shadow: 0 15px 35px rgba(0, 0, 0, 0.08);
}

.roadmap-header {
    display: block;
    width: 100%;
    margin-bottom: 1rem;
}

.roadmap-header h3 {
    display: block;
    width: 100%;
    font-size: 1.3rem;
    margin: 0;
    word-break: break-word;
}

.status-badge {
    display: table;
    padding: 0.35rem 0.85rem;
    border-radius: 50px;
    font-size: 0.78rem;
    font-weight: 700;
    letter-spacing: 0.5px;
    text-transform: uppercase;
    white-space: normal;
    word-break: break-word;
    max-width: 100%;
    line-height: 1.3;
    margin-bottom: 0.75rem;
}

.status-in-progress {
    background: rgba(67, 165, 70, 0.15);
    color: var(--success);
    border: 1px solid rgba(67, 165, 70, 0.3);
}

.status-planned {
    background: rgba(22, 110, 247, 0.15);
    color: var(--primary);
    border: 1px solid rgba(22, 110, 247, 0.3);
}

.status-consideration {
    background: rgba(139, 92, 246, 0.15);
    color: var(--accent);
    border: 1px solid rgba(139, 92, 246, 0.3);
}

/* Feature Request CTA Banner */
.request-feature-cta {
    background: linear-gradient(135deg, rgba(22, 110, 247, 0.1), rgba(139, 92, 246, 0.12));
    border: 1.5px solid rgba(22, 110, 247, 0.3);
    border-radius: 24px;
    padding: 3.5rem 3rem;
    margin-top: 5rem;
    text-align: center;
    backdrop-filter: blur(20px);
    box-shadow: 0 20px 50px rgba(0, 0, 0, 0.1);
    position: relative;
    overflow: hidden;
}

.request-feature-cta::before {
    content: '';
    position: absolute;
    top: 0; left: 0; right: 0; height: 3px;
    background: linear-gradient(90deg, var(--primary), var(--accent), var(--warning));
}

.request-feature-cta h2 {
    font-size: 2.5rem;
    margin-bottom: 0.75rem;
}

.request-feature-cta p {
    max-width: 650px;
    margin: 0 auto 2rem;
    font-size: 1.15rem;
}

/* Headline Feature Card Extensions */
.headline-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
    gap: 2rem;
    margin-top: 3rem;
}

.headline-card {
    background: var(--card-bg);
    border: 1px solid var(--border-color);
    border-radius: 24px;
    padding: 2.25rem;
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    display: flex;
    flex-direction: column;
}

.headline-card:hover {
    transform: translateY(-6px);
    border-color: rgba(22, 110, 247, 0.4);
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.1);
}

.explore-more-banner {
    margin-top: 4rem;
    text-align: center;
    background: var(--card-bg);
    border: 1px solid var(--border-color);
    border-radius: 24px;
    padding: 2.5rem 2rem;
    backdrop-filter: blur(16px);
}

/* Open Source Code Window */
.open-source-container {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 4rem;
    flex-wrap: wrap;
}

.code-window {
    flex: 1;
    min-width: 280px;
    width: 100%;
    max-width: 100%;
    background: #0B1121;
    padding: 2rem;
    border-radius: 24px;
    border: 1px solid rgba(255, 255, 255, 0.08);
    color: #F8FAFC;
    box-shadow: 0 30px 60px rgba(0, 0, 0, 0.3);
    font-family: monospace;
    font-size: 0.95rem;
    overflow-x: auto;
    box-sizing: border-box;
}

.code-window-dots {
    display: flex;
    gap: 8px;
    margin-bottom: 0.85rem;
}

.code-comment {
    color: #64748B;
    font-size: 0.88rem;
    margin-bottom: 0.5rem;
}

.code-snippet-body {
    color: #E2E8F0;
    line-height: 1.4;
    font-family: monospace, SFMono-Regular, Consolas;
    word-break: break-word;
    overflow-wrap: anywhere;
}

.code-snippet-body div {
    line-height: 1.4;
}

@media (max-width: 992px) {
    .open-source-container {
        flex-direction: column;
        gap: 2.5rem;
    }
    .open-source-container > div {
        width: 100%;
    }
}

@media (max-width: 768px) {
    .features-container {
        padding-top: 100px;
    }
    .request-feature-cta {
        padding: 2.5rem 1.5rem;
        margin-top: 3.5rem;
    }
    .request-feature-cta h2 {
        font-size: 1.8rem;
    }
    .headline-grid {
        grid-template-columns: 1fr;
    }
    .footer {
        padding: 3.5rem 0 2rem;
    }
    .code-window {
        padding: 1.5rem;
        border-radius: 18px;
        font-size: 0.88rem;
    }
}

@media (max-width: 576px) {
    .features-container {
        padding-top: 90px;
        padding-left: 1rem;
        padding-right: 1rem;
    }
    .roadmap-grid {
        grid-template-columns: 1fr;
        gap: 1.25rem;
    }
    .roadmap-card {
        padding: 1.25rem;
        border-radius: 16px;
    }
    .status-badge {
        font-size: 0.72rem;
        padding: 0.25rem 0.65rem;
    }
    .footer-grid {
        grid-template-columns: 1fr !important;
        gap: 2rem;
        margin-bottom: 2.5rem;
    }
    .footer-brand {
        grid-column: span 1 !important;
    }
    .footer-brand p {
        max-width: 100% !important;
    }
    .footer-col h4 {
        margin-bottom: 0.75rem;
    }
    .code-window {
        padding: 1.25rem 1rem;
        border-radius: 16px;
        font-size: 0.8rem;
        min-width: 0;
    }
}




