/* Modern CSS Reset & Variables */
@import url('https://fonts.googleapis.com/css2?family=Inter:wght@400;500;600;700;800&display=swap');

:root {
    --primary-gradient: linear-gradient(135deg, #10b981, #06b6d4);
    --secondary-gradient: linear-gradient(135deg, #06b6d4, #10b981);
    --bg-color: #ffffff;
    --bg-secondary: #f9fafb;
    --text-main: #111827;
    --text-muted: #4b5563;
    --card-bg: rgba(255, 255, 255, 0.7);
    --border-color: rgba(255, 255, 255, 0.3);
    --shadow: 0 8px 32px 0 rgba(31, 38, 135, 0.15);
    --glass-border: 1px solid rgba(255, 255, 255, 0.18);
    --navbar-bg: rgba(255, 255, 255, 0.85);

    --emerald-400: #34d399;
    --emerald-500: #10b981;
    --emerald-600: #059669;
    --cyan-500: #06b6d4;
    --cyan-600: #0891b2;
}

[data-theme="dark"] {
    --bg-color: #111827;
    --bg-secondary: #0f172a;
    --text-main: #f9fafb;
    --text-muted: #9ca3af;
    --card-bg: rgba(31, 41, 55, 0.7);
    --border-color: rgba(255, 255, 255, 0.1);
    --glass-border: 1px solid rgba(255, 255, 255, 0.05);
    --navbar-bg: rgba(17, 24, 39, 0.85);
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: 'Inter', system-ui, -apple-system, sans-serif;
}

body {
    background-color: var(--bg-color);
    color: var(--text-main);
    transition: background-color 0.3s, color 0.3s;
    line-height: 1.5;
    -webkit-font-smoothing: antialiased;
}

/* Typography Fluidity */
h1, h2, h3, h4, h5, h6 {
    line-height: 1.2;
    color: var(--text-main);
}

.text-emerald { color: var(--emerald-500); }
.text-cyan { color: var(--cyan-500); }
.text-red { color: #ef4444; }

.highlight-emerald { color: var(--emerald-600); }
.highlight-cyan { color: var(--cyan-600); }
[data-theme="dark"] .highlight-emerald { color: var(--emerald-400); }
[data-theme="dark"] .highlight-cyan { color: var(--cyan-500); }

/* Layout Utilities */
.container {
    width: 100%;
    max-width: 1280px;
    margin: 0 auto;
    padding: 0 clamp(1rem, 5vw, 3rem);
}

.relative { position: relative; }
.overflow-hidden { overflow: hidden; }
.text-center { text-align: center; }
.w-full { width: 100%; }
.flex { display: flex; }
.items-center { align-items: center; }
.justify-center { justify-content: center; }
.justify-between { justify-content: space-between; }
.flex-col { flex-direction: column; }
.gap-1 { gap: 0.25rem; }
.gap-2 { gap: 0.5rem; }
.gap-4 { gap: 1rem; }
.mb-4 { margin-bottom: 1rem; }
.mb-8 { margin-bottom: 2rem; }

.sr-only {
    position: absolute;
    width: 1px;
    height: 1px;
    padding: 0;
    margin: -1px;
    overflow: hidden;
    clip: rect(0, 0, 0, 0);
    white-space: nowrap;
    border-width: 0;
}

/* Navigation Bar */
.navbar {
    position: sticky;
    top: 0;
    z-index: 1000;
    background: var(--navbar-bg);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    border-bottom: var(--glass-border);
    transition: all 0.3s ease;
}

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

.nav-brand {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    font-size: 1.5rem;
    font-weight: 700;
    text-decoration: none;
    color: var(--text-main);
}

.nav-brand:hover {
    color: var(--emerald-500);
}

.nav-links {
    display: flex;
    align-items: center;
    gap: 2rem;
}

.nav-link {
    color: var(--text-muted);
    text-decoration: none;
    font-weight: 500;
    font-size: 0.95rem;
    transition: color 0.3s;
}

.nav-link:hover, .nav-link.active {
    color: var(--emerald-500);
}

/* Mobile Menu Toggle */
.mobile-menu-btn {
    display: none;
    background: none;
    border: none;
    color: var(--text-main);
    cursor: pointer;
    padding: 0.5rem;
}

.theme-toggle-btn {
    background: none;
    border: none;
    color: var(--text-main);
    cursor: pointer;
    padding: 0.5rem;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    transition: background-color 0.3s;
}
.theme-toggle-btn:hover {
    background: var(--bg-secondary);
}

/* Buttons */
.btn {
    position: relative;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.75rem;
    padding: 0.875rem 1.75rem;
    border-radius: 1rem;
    font-weight: 600;
    font-size: 1rem;
    cursor: pointer;
    border: none;
    transition: transform 0.3s, box-shadow 0.3s, opacity 0.3s;
    text-decoration: none;
    overflow: hidden;
    text-align: center;
}

.btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 10px 25px -5px rgba(0, 0, 0, 0.1);
}

.btn:active {
    transform: translateY(0);
}

.btn-primary {
    background: var(--primary-gradient);
    color: white;
}

.btn-secondary {
    background: var(--secondary-gradient);
    color: white;
}

.btn-outline {
    background: transparent;
    color: var(--text-main);
    border: 2px solid var(--border-color);
    backdrop-filter: blur(8px);
}
.btn-outline:hover {
    border-color: var(--emerald-500);
    color: var(--emerald-500);
}

.btn-white {
    background: white;
    color: var(--emerald-600);
}

.btn-dark-outline {
    background: #1f2937;
    color: white;
    border: 2px solid rgba(255, 255, 255, 0.2);
}

.btn-glow {
    position: absolute;
    inset: 0;
    background: linear-gradient(to right, rgba(255, 255, 255, 0), rgba(255, 255, 255, 0.2), rgba(255, 255, 255, 0));
    transform: skewX(-20deg) translateX(-150%);
    transition: transform 0.5s;
}

.btn:hover .btn-glow {
    transform: skewX(-20deg) translateX(150%);
}

/* Sections */
.section-padding {
    padding: clamp(4rem, 8vw, 8rem) 0;
}

.section-header {
    text-align: center;
    margin-bottom: clamp(2rem, 5vw, 4rem);
}

.section-title {
    font-size: clamp(2rem, 4vw, 2.5rem);
    font-weight: 800;
    margin-bottom: 1rem;
}

.section-subtitle {
    font-size: clamp(1rem, 2vw, 1.25rem);
    color: var(--text-muted);
}

/* Hero Section */
.hero {
    padding: clamp(3rem, 6vw, 6rem) 0 clamp(4rem, 8vw, 8rem);
    background: linear-gradient(135deg, #ecfdf5, #ffffff, #ecfeff);
    position: relative;
    overflow: hidden;
}

[data-theme="dark"] .hero {
    background: linear-gradient(135deg, #111827, #111827, #1f2937);
}

.hero-content {
    max-width: 800px;
    margin: 0 auto;
    animation: slide-up 0.5s ease-out;
    position: relative;
    z-index: 10;
}

@keyframes slide-up {
    from { opacity: 0; transform: translateY(20px); }
    to { opacity: 1; transform: translateY(0); }
}

.logo-wrapper {
    width: clamp(5rem, 10vw, 6rem);
    height: clamp(5rem, 10vw, 6rem);
    background: var(--primary-gradient);
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border-radius: 1.5rem;
    margin-bottom: 2rem;
    box-shadow: var(--shadow);
    transition: transform 0.3s;
}

.logo-wrapper:hover {
    transform: scale(1.1);
}

.logo-icon-img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    border-radius: 1.2rem;
}

.hero-title {
    font-size: clamp(2.5rem, 6vw, 4rem);
    font-weight: 800;
    margin-bottom: 1rem;
    background: var(--primary-gradient);
    -webkit-background-clip: text;
    background-clip: text;
    color: transparent;
    line-height: 1.1;
}

.hero-subtitle {
    font-size: clamp(1.125rem, 2.5vw, 1.5rem);
    color: var(--text-main);
    margin-bottom: 1rem;
    font-weight: 600;
    min-height: 2em; /* Prevents layout shift with typewriter */
}

.hero-desc {
    font-size: clamp(1rem, 2vw, 1.125rem);
    color: var(--text-muted);
    margin-bottom: 2.5rem;
    max-width: 40rem;
    margin-left: auto;
    margin-right: auto;
}

.hero-buttons {
    display: flex;
    gap: 1rem;
    justify-content: center;
    margin-bottom: 3rem;
    flex-wrap: wrap;
}

.hero-badges {
    display: flex;
    justify-content: center;
    gap: clamp(1rem, 3vw, 2rem);
    flex-wrap: wrap;
    font-size: 0.875rem;
    color: var(--text-muted);
}

.badge {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    font-weight: 500;
    background: var(--card-bg);
    padding: 0.5rem 1rem;
    border-radius: 2rem;
    border: var(--glass-border);
    backdrop-filter: blur(4px);
}

/* Background Elements */
.bg-grid-pattern {
    background-image: radial-gradient(var(--text-muted) 1px, transparent 1px);
    background-size: 30px 30px;
}

.dark-opacity-10 { opacity: 0.05; }
[data-theme="dark"] .dark-opacity-10 { opacity: 0.1; }

.blob {
    position: absolute;
    border-radius: 50%;
    filter: blur(80px);
    opacity: 0.4;
    z-index: 0;
    animation: blob-bounce 10s infinite ease-in-out;
    will-change: transform;
}

.blob-1 {
    top: -10%;
    left: -10%;
    width: 50vw;
    max-width: 500px;
    height: 50vw;
    max-height: 500px;
    background: var(--emerald-500);
}

.blob-2 {
    bottom: -10%;
    right: -10%;
    width: 40vw;
    max-width: 400px;
    height: 40vw;
    max-height: 400px;
    background: var(--cyan-500);
    animation-delay: -5s;
}

@keyframes blob-bounce {
    0%, 100% { transform: translate(0, 0) scale(1); }
    33% { transform: translate(30px, -50px) scale(1.1); }
    66% { transform: translate(-20px, 20px) scale(0.9); }
}

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

.feature-card {
    background: var(--card-bg);
    backdrop-filter: blur(8px);
    -webkit-backdrop-filter: blur(8px);
    padding: 2rem;
    border-radius: 1rem;
    border: var(--glass-border);
    transition: transform 0.3s, box-shadow 0.3s, border-color 0.3s;
}

.feature-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 12px 40px 0 rgba(31, 38, 135, 0.2);
    border-color: var(--emerald-500);
}

.feature-icon-wrapper {
    width: 3.5rem;
    height: 3.5rem;
    border-radius: 1rem;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 1.5rem;
    color: white;
}

.feature-card h3 {
    font-size: 1.25rem;
    margin-bottom: 1rem;
}

.feature-card p {
    color: var(--text-muted);
}

/* Gradients */
.bg-gradient-emerald { background: linear-gradient(135deg, #10b981, #059669); }
.bg-gradient-cyan { background: linear-gradient(135deg, #06b6d4, #0891b2); }
.bg-gradient-purple { background: linear-gradient(135deg, #8b5cf6, #7c3aed); }
.bg-gradient-orange { background: linear-gradient(135deg, #f97316, #fb923c); }

/* Tech Stack */
.tech-grid {
    display: flex;
    justify-content: center;
    flex-wrap: wrap;
    gap: 1.5rem;
}

.tech-item {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    padding: 1rem 1.5rem;
    background: var(--card-bg);
    border: var(--glass-border);
    border-radius: 1rem;
    font-weight: 600;
    box-shadow: var(--shadow);
    transition: transform 0.3s, border-color 0.3s;
    backdrop-filter: blur(8px);
}

.tech-item:hover {
    transform: translateY(-5px);
    border-color: var(--emerald-500);
}

/* Comparison Table */
.bg-gray-50 { background-color: transparent; }
.dark-bg-gray-800 { background-color: transparent; }

.comparison-table-wrapper {
    width: 100%;
    overflow-x: auto;
    border-radius: 1rem;
    box-shadow: var(--shadow);
    background: var(--card-bg);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    border: var(--glass-border);
    -webkit-overflow-scrolling: touch;
}

.comparison-table {
    width: 100%;
    min-width: 600px;
    border-collapse: collapse;
}

.comparison-table th,
.comparison-table td {
    padding: 1.25rem;
    text-align: left;
    border-bottom: 1px solid var(--border-color);
}

.comparison-table th:first-child,
.comparison-table td:first-child {
    font-weight: 600;
}

.comparison-table th {
    background: rgba(255, 255, 255, 0.05);
    font-weight: 700;
    text-transform: uppercase;
    font-size: 0.875rem;
    letter-spacing: 0.05em;
}

[data-theme="dark"] .comparison-table th { background: rgba(0, 0, 0, 0.2); }

.comparison-table .highlight-col {
    background: rgba(16, 185, 129, 0.05);
    border-left: 2px solid var(--emerald-500);
    border-right: 2px solid var(--emerald-500);
}

.comparison-table th.highlight-col {
    border-top: 2px solid var(--emerald-500);
    color: var(--emerald-600);
}

[data-theme="dark"] .comparison-table th.highlight-col { color: var(--emerald-400); }
[data-theme="dark"] .comparison-table .highlight-col { background: rgba(16, 185, 129, 0.1); }

/* CTA Section */
.cta {
    padding: clamp(4rem, 8vw, 6rem) 0;
    background: linear-gradient(135deg, #059669, #0891b2, #0d9488);
    color: white;
}

.cta-title {
    font-size: clamp(2rem, 4vw, 2.5rem);
    font-weight: 800;
    margin-bottom: 1.5rem;
    color: white;
}

.cta-subtitle {
    font-size: clamp(1rem, 2vw, 1.25rem);
    margin-bottom: 3rem;
    opacity: 0.9;
    color: white;
}

.cta-buttons {
    display: flex;
    justify-content: center;
    gap: 1.5rem;
    margin-bottom: 3rem;
    flex-wrap: wrap;
}

.cta-badges {
    display: flex;
    justify-content: center;
    gap: 1.5rem;
    flex-wrap: wrap;
    opacity: 0.9;
}

.badge-sm {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    font-size: 0.875rem;
}

.badge-sm::before {
    content: '';
    width: 0.5rem;
    height: 0.5rem;
    background: white;
    border-radius: 50%;
}

/* Footer */
.footer {
    background: #111827;
    color: #f3f4f6;
    padding: 4rem 0 2rem;
}

.footer-body {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 1.5rem;
}

.footer-brand {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    font-size: 1.5rem;
    font-weight: 700;
}

.footer-links {
    display: flex;
    gap: clamp(1rem, 3vw, 2rem);
    flex-wrap: wrap;
    justify-content: center;
}

.footer-links a {
    color: #9ca3af;
    text-decoration: none;
    font-size: 0.95rem;
    transition: color 0.3s;
}

.footer-links a:hover {
    color: var(--emerald-400);
}

.footer-copy {
    color: #6b7280;
    font-size: 0.875rem;
    margin-top: 1rem;
    text-align: center;
}

/* Modal */
.modal {
    display: none;
    position: fixed;
    z-index: 2000;
    inset: 0;
    background-color: rgba(0, 0, 0, 0.6);
    backdrop-filter: blur(5px);
    -webkit-backdrop-filter: blur(5px);
    align-items: center;
    justify-content: center;
    opacity: 0;
    transition: opacity 0.3s ease;
}

.modal.active {
    display: flex;
    opacity: 1;
}

.modal-content {
    background: var(--card-bg);
    border: var(--glass-border);
    backdrop-filter: blur(16px);
    -webkit-backdrop-filter: blur(16px);
    border-radius: 1.5rem;
    padding: clamp(1.5rem, 4vw, 2.5rem);
    max-width: 450px;
    width: 90%;
    text-align: center;
    box-shadow: 0 25px 50px -12px rgba(0, 0, 0, 0.25);
    position: relative;
    transform: translateY(20px);
    transition: transform 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

.modal.active .modal-content {
    transform: translateY(0);
}

.modal-close {
    position: absolute;
    top: 1rem;
    right: 1rem;
    background: transparent;
    border: none;
    color: var(--text-muted);
    cursor: pointer;
    padding: 0.5rem;
    border-radius: 50%;
    transition: all 0.2s ease;
    display: flex;
    align-items: center;
    justify-content: center;
}

.modal-close:hover {
    background: var(--bg-secondary);
    color: var(--text-main);
}

.modal-title {
    font-size: 1.5rem;
    font-weight: 700;
    margin-bottom: 0.75rem;
}

.modal-desc {
    color: var(--text-muted);
    margin-bottom: 2rem;
}

.modal-buttons {
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

/* Animations */
.reveal {
    opacity: 0;
    transform: translateY(30px);
    transition: all 0.8s ease-out;
}

.reveal.visible {
    opacity: 1;
    transform: translateY(0);
}

.typing-cursor {
    display: inline-block;
    width: 2px;
    height: 1em;
    background-color: var(--text-main);
    margin-left: 2px;
    vertical-align: text-bottom;
    animation: blink 1s infinite;
}

@keyframes blink {
    0%, 100% { opacity: 1; }
    50% { opacity: 0; }
}

@keyframes bounce {
    0%, 100% { transform: translateY(0); }
    50% { transform: translateY(-20%); }
}

/* Responsive Design */
@media (max-width: 768px) {
    .nav-links {
        display: none;
        position: absolute;
        top: 100%;
        left: 0;
        right: 0;
        background: var(--navbar-bg);
        flex-direction: column;
        padding: 1rem;
        border-bottom: var(--glass-border);
        box-shadow: var(--shadow);
        backdrop-filter: blur(12px);
    }
    
    .nav-links.active {
        display: flex;
    }

    .nav-link {
        width: 100%;
        padding: 0.75rem;
        text-align: center;
        border-radius: 0.5rem;
    }

    .nav-link:hover {
        background: var(--bg-secondary);
    }

    .mobile-menu-btn {
        display: block;
    }

    .hero-buttons .btn {
        width: 100%;
    }
    
    .cta-buttons .btn {
        width: 100%;
    }

    .blob {
        filter: blur(40px);
    }
    
    .comparison-table th, 
    .comparison-table td {
        padding: 1rem;
    }
}

/* Page Specific Overrides & Shared Classes */
.page-container {
    max-width: 1000px;
    margin: 0 auto;
    padding: clamp(3rem, 6vw, 5rem) 1rem;
}

/* Back Link */
.back-link {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    color: var(--text-muted);
    text-decoration: none;
    font-weight: 600;
    font-size: 0.95rem;
    padding: 0.5rem 1rem;
    border-radius: 2rem;
    background: var(--card-bg);
    border: var(--glass-border);
    backdrop-filter: blur(8px);
    transition: all 0.3s ease;
}

.back-link:hover {
    color: var(--emerald-500);
    border-color: var(--emerald-500);
    transform: translateX(-4px);
    box-shadow: 0 4px 12px rgba(16, 185, 129, 0.1);
}

.page-hero {
    text-align: center;
    margin-bottom: 3rem;
    animation: slide-up 0.8s ease-out;
}

.page-title {
    font-size: clamp(2rem, 5vw, 3rem);
    font-weight: 800;
    margin-bottom: 1rem;
    background: var(--primary-gradient);
    -webkit-background-clip: text;
    background-clip: text;
    color: transparent;
    line-height: 1.2;
}

.page-desc {
    font-size: clamp(1rem, 2vw, 1.125rem);
    color: var(--text-muted);
    max-width: 600px;
    margin: 0 auto 2rem;
    line-height: 1.6;
}

/* Content Box (Privacy, Self-Hosting) */
.content-box {
    background: var(--card-bg);
    border: var(--glass-border);
    border-radius: 1rem;
    padding: clamp(1.5rem, 4vw, 3rem);
    box-shadow: var(--shadow);
    backdrop-filter: blur(8px);
}

.content-box h2 {
    font-size: 1.5rem;
    margin: 2.5rem 0 1rem;
    font-weight: 700;
}

.content-box h2:first-child {
    margin-top: 0;
}

.content-box p {
    color: var(--text-muted);
    margin-bottom: 1.25rem;
    line-height: 1.7;
}

.content-box ul, .content-box ol {
    margin-left: 1.5rem;
    color: var(--text-muted);
    margin-bottom: 1.5rem;
}

.content-box li {
    margin-bottom: 0.75rem;
    line-height: 1.6;
}

.content-box a {
    color: var(--emerald-500);
    text-decoration: underline;
    text-decoration-thickness: 1px;
    text-underline-offset: 2px;
}

.content-box hr {
    border: 0;
    height: 1px;
    background: var(--border-color);
    margin: 2rem 0;
}

/* Code formatting */
pre {
    background: #1f2937;
    color: #f3f4f6;
    padding: 1rem 1.25rem;
    border-radius: 0.75rem;
    overflow-x: auto;
    margin-bottom: 1.5rem;
    border: 1px solid rgba(255, 255, 255, 0.1);
}

code {
    font-family: ui-monospace, SFMono-Regular, Consolas, monospace;
    font-size: 0.9em;
}

p code, li code {
    background: rgba(128, 128, 128, 0.15);
    padding: 0.125rem 0.375rem;
    border-radius: 0.25rem;
    color: var(--emerald-600);
}

[data-theme="dark"] p code, [data-theme="dark"] li code {
    color: var(--emerald-400);
}

/* Alerts */
.alert {
    padding: 1rem 1.25rem;
    border-radius: 0 0.5rem 0.5rem 0;
    margin: 1.5rem 0;
    line-height: 1.6;
}

.alert-success {
    background: rgba(16, 185, 129, 0.1);
    border-left: 4px solid var(--emerald-500);
    color: var(--text-main);
}

.alert-info {
    background: rgba(6, 182, 212, 0.1);
    border-left: 4px solid var(--cyan-500);
    color: var(--text-main);
}

/* FAQ specifics */
.search-box {
    display: flex;
    max-width: 500px;
    margin: 0 auto 2rem;
}

.search-box input {
    flex: 1;
    padding: 0.875rem 1.25rem;
    border: 2px solid var(--border-color);
    border-radius: 0.75rem;
    background: var(--card-bg);
    color: var(--text-main);
    font-size: 1rem;
    transition: border-color 0.3s;
}

.search-box input:focus {
    outline: none;
    border-color: var(--emerald-500);
}

.faq-categories {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 0.75rem;
    margin-bottom: 3rem;
}

.category-btn {
    padding: 0.5rem 1.25rem;
    background: var(--card-bg);
    border: 2px solid var(--border-color);
    border-radius: 2rem;
    color: var(--text-main);
    cursor: pointer;
    font-weight: 600;
    transition: all 0.3s;
}

.category-btn:hover,
.category-btn.active {
    border-color: var(--emerald-500);
    background: rgba(16, 185, 129, 0.1);
    color: var(--emerald-500);
}

.faq-list {
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.faq-item {
    background: var(--card-bg);
    border: var(--glass-border);
    border-radius: 1rem;
    overflow: hidden;
    transition: all 0.3s;
}

.faq-item:hover {
    border-color: var(--emerald-500);
}

.faq-question {
    padding: 1.25rem 1.5rem;
    cursor: pointer;
    font-weight: 600;
    font-size: 1.05rem;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.faq-icon {
    transition: transform 0.3s;
    color: var(--emerald-500);
}

.faq-item.active .faq-icon {
    transform: rotate(180deg);
}

.faq-answer {
    max-height: 0;
    overflow: hidden;
    transition: all 0.3s ease;
    padding: 0 1.5rem;
}

.faq-item.active .faq-answer {
    max-height: 1000px;
    padding: 0 1.5rem 1.5rem;
}

.faq-answer p, .faq-answer li {
    color: var(--text-muted);
}

/* Community specifics */
.discussion-categories {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 2rem;
    margin-bottom: 3rem;
}

.category-card {
    display: block;
    background: var(--card-bg);
    border: var(--glass-border);
    border-radius: 12px;
    padding: 2rem;
    backdrop-filter: blur(10px);
    transition: all 0.3s ease;
    text-decoration: none;
    color: inherit;
}

.category-card:hover {
    transform: translateY(-4px);
    border-color: var(--emerald-500);
    box-shadow: 0 12px 24px rgba(16, 185, 129, 0.15);
}

.category-card h3 {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    margin-bottom: 0.75rem;
    font-size: 1.25rem;
}

.category-card p {
    color: var(--text-muted);
    font-size: 0.95rem;
    line-height: 1.5;
    margin-bottom: 1rem;
}

.category-icon {
    width: 24px;
    height: 24px;
    color: var(--emerald-500);
}

.cta-section {
    background: var(--primary-gradient);
    border-radius: 12px;
    padding: 3rem 2rem;
    text-align: center;
    color: white;
    margin-bottom: 3rem;
}

.cta-section h2 {
    font-size: 1.75rem;
    margin-bottom: 1rem;
}

.cta-section p {
    font-size: 1.05rem;
    margin-bottom: 2rem;
    opacity: 0.95;
}

.btn-github {
    display: inline-flex;
    align-items: center;
    gap: 0.75rem;
    background: rgba(255, 255, 255, 0.2);
    color: white;
    padding: 0.75rem 1.5rem;
    border-radius: 8px;
    border: 2px solid rgba(255, 255, 255, 0.3);
    font-size: 1rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    text-decoration: none;
    backdrop-filter: blur(8px);
}

.btn-github:hover {
    background: rgba(255, 255, 255, 0.3);
    border-color: rgba(255, 255, 255, 0.5);
    transform: translateY(-2px);
}

.guidelines-section {
    background: var(--card-bg);
    border: var(--glass-border);
    border-radius: 12px;
    padding: 2rem;
    backdrop-filter: blur(10px);
}

.guidelines-section h2 {
    margin-bottom: 1.5rem;
    font-size: 1.5rem;
}

.guidelines-list {
    list-style: none;
    padding: 0;
}

.guidelines-list li {
    padding: 0.75rem 0;
    padding-left: 1.75rem;
    position: relative;
    color: var(--text-muted);
    line-height: 1.6;
}

.guidelines-list li:before {
    content: "✓";
    position: absolute;
    left: 0;
    color: var(--emerald-500);
    font-weight: bold;
    font-size: 1.1rem;
}

/* Roadmap specifics */
.roadmap-hero {
    padding: 7rem 0 4rem;
    text-align: center;
    position: relative;
    overflow: hidden;
}

.roadmap-hero .blob {
    opacity: 0.35;
}

.roadmap-hero-title {
    font-size: clamp(2rem, 5vw, 3.25rem);
    font-weight: 800;
    background: var(--primary-gradient);
    -webkit-background-clip: text;
    background-clip: text;
    color: transparent;
    margin-bottom: 0.75rem;
    line-height: 1.2;
}

.roadmap-hero-sub {
    color: var(--text-muted);
    font-size: 1.1rem;
    max-width: 540px;
    margin: 0 auto 2rem;
}

.live-badge {
    display: inline-flex;
    align-items: center;
    gap: 0.4rem;
    background: rgba(16, 185, 129, 0.12);
    border: 1px solid rgba(16, 185, 129, 0.35);
    color: var(--emerald-500);
    font-size: 0.8rem;
    font-weight: 600;
    padding: 0.3rem 0.85rem;
    border-radius: 999px;
    margin-bottom: 1.5rem;
}

.live-dot {
    width: 7px;
    height: 7px;
    border-radius: 50%;
    background: var(--emerald-500);
    animation: pulse-dot 1.8s ease-in-out infinite;
}

@keyframes pulse-dot {
    0%, 100% { opacity: 1; transform: scale(1); }
    50% { opacity: 0.4; transform: scale(0.7); }
}

.timeline-section {
    padding: 0 0 6rem;
}

.timeline {
    position: relative;
    max-width: 820px;
    margin: 0 auto;
    padding: 0 1.5rem;
}

.timeline::before {
    content: '';
    position: absolute;
    left: calc(1.5rem + 24px);
    top: 0;
    bottom: 0;
    width: 2px;
    background: linear-gradient(to bottom, transparent 0%, rgba(16, 185, 129, 0.5) 5%, rgba(16, 185, 129, 0.25) 90%, transparent 100%);
}

.release-item {
    display: flex;
    gap: 1.5rem;
    margin-bottom: 2.5rem;
    position: relative;
    opacity: 0;
    transform: translateY(24px);
    transition: opacity 0.5s ease, transform 0.5s ease;
}

.release-item.visible {
    opacity: 1;
    transform: translateY(0);
}

.release-node {
    flex-shrink: 0;
    width: 48px;
    height: 48px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
    z-index: 1;
    font-size: 1.1rem;
    font-weight: 800;
    box-shadow: 0 0 0 4px var(--bg-main);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.release-item:hover .release-node {
    transform: scale(1.12);
    box-shadow: 0 0 0 4px var(--bg-main), 0 0 20px rgba(16, 185, 129, 0.4);
}

.release-node.latest { background: var(--primary-gradient); color: #fff; }
.release-node.stable { background: linear-gradient(135deg, #06b6d4, #0891b2); color: #fff; }
.release-node.patch { background: linear-gradient(135deg, #8b5cf6, #6d28d9); color: #fff; }
.release-node.old { background: linear-gradient(135deg, #f59e0b, #d97706); color: #fff; }

.release-card {
    flex: 1;
    background: var(--card-bg);
    border: var(--glass-border);
    border-radius: 1rem;
    padding: 1.5rem 1.75rem;
    box-shadow: var(--shadow);
    backdrop-filter: blur(8px);
    -webkit-backdrop-filter: blur(8px);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.release-card:hover {
    transform: translateY(-3px);
    box-shadow: 0 12px 40px rgba(0, 0, 0, 0.18);
}

.release-header {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    flex-wrap: wrap;
    gap: 0.75rem;
    margin-bottom: 1rem;
}

.release-tag-group {
    display: flex;
    align-items: center;
    gap: 0.6rem;
    flex-wrap: wrap;
}

.release-tag {
    font-size: 0.75rem;
    font-weight: 700;
    padding: 0.2rem 0.65rem;
    border-radius: 999px;
    text-transform: uppercase;
    letter-spacing: 0.04em;
}

.tag-latest { background: rgba(16, 185, 129, 0.15); color: var(--emerald-500); border: 1px solid rgba(16, 185, 129, 0.3); }
.tag-stable { background: rgba(6, 182, 212, 0.12); color: var(--cyan-500); border: 1px solid rgba(6, 182, 212, 0.25); }
.tag-patch { background: rgba(139, 92, 246, 0.12); color: #a78bfa; border: 1px solid rgba(139, 92, 246, 0.3); }
.tag-prerel { background: rgba(245, 158, 11, 0.12); color: #f59e0b; border: 1px solid rgba(245, 158, 11, 0.3); }

.release-name {
    font-size: 1.15rem;
    font-weight: 700;
    color: var(--text-main);
    margin: 0;
    line-height: 1.35;
}

.release-meta {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    color: var(--text-muted);
    font-size: 0.82rem;
    white-space: nowrap;
}

.release-divider {
    height: 1px;
    background: var(--border-color);
    margin: 1rem 0;
}

.release-body {
    color: var(--text-muted);
    font-size: 0.92rem;
    line-height: 1.7;
}

.release-body h1, .release-body h2, .release-body h3 {
    color: var(--text-main);
    font-weight: 700;
    margin: 1.1rem 0 0.5rem;
}
.release-body h1 { font-size: 1.25rem; }
.release-body h2 { font-size: 1.05rem; }
.release-body h3 { font-size: 0.97rem; color: var(--text-muted); }
.release-body p { margin-bottom: 0.75rem; }
.release-body ul, .release-body ol { margin-left: 1.4rem; margin-bottom: 0.75rem; }
.release-body li { margin-bottom: 0.35rem; }
.release-body strong { color: var(--text-main); font-weight: 600; }
.release-body code {
    background: rgba(128, 128, 128, 0.13);
    padding: 0.1rem 0.35rem;
    border-radius: 0.25rem;
    font-family: ui-monospace, monospace;
    font-size: 0.85em;
    color: var(--emerald-500);
}
.release-body pre {
    background: #1f2937;
    color: #f3f4f6;
    padding: 0.85rem 1rem;
    border-radius: 0.6rem;
    overflow-x: auto;
    margin-bottom: 0.75rem;
}
.release-body pre code { background: none; color: inherit; }
.release-body hr { border: 0; height: 1px; background: var(--border-color); margin: 1rem 0; }
.release-body a {
    color: var(--emerald-500);
    text-decoration: underline;
    text-decoration-thickness: 1px;
    text-underline-offset: 2px;
}

.body-wrapper { position: relative; }
.body-wrapper.collapsed .release-body { max-height: 180px; overflow: hidden; }
.body-wrapper.collapsed::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    height: 60px;
    background: linear-gradient(transparent, var(--card-bg));
    pointer-events: none;
}

.toggle-body-btn {
    background: none;
    border: none;
    color: var(--emerald-500);
    font-size: 0.85rem;
    font-weight: 600;
    cursor: pointer;
    padding: 0.4rem 0;
    display: flex;
    align-items: center;
    gap: 0.35rem;
    margin-top: 0.4rem;
    transition: opacity 0.2s;
}
.toggle-body-btn:hover { opacity: 0.75; }

.release-footer {
    margin-top: 1.25rem;
    display: flex;
    align-items: center;
    gap: 0.75rem;
    flex-wrap: wrap;
}

.release-dl-btn {
    display: inline-flex;
    align-items: center;
    gap: 0.4rem;
    font-size: 0.83rem;
    font-weight: 600;
    padding: 0.45rem 1rem;
    border-radius: 0.5rem;
    background: var(--primary-gradient);
    color: #fff;
    text-decoration: none;
    transition: opacity 0.2s, transform 0.2s;
}
.release-dl-btn:hover { opacity: 0.88; transform: translateY(-1px); }
.release-dl-btn.secondary {
    background: rgba(128, 128, 128, 0.12);
    border: 1px solid var(--border-color);
    color: var(--text-muted);
}
.release-dl-btn.secondary:hover { color: var(--text-main); }

.loader-wrapper { text-align: center; padding: 5rem 1rem; color: var(--text-muted); }
.spinner {
    width: 48px;
    height: 48px;
    border: 3px solid rgba(16, 185, 129, 0.2);
    border-top-color: var(--emerald-500);
    border-radius: 50%;
    animation: spin 0.8s linear infinite;
    margin: 0 auto 1.25rem;
}
@keyframes spin { to { transform: rotate(360deg); } }

.error-box {
    max-width: 460px;
    margin: 4rem auto;
    text-align: center;
    padding: 2.5rem;
    background: var(--card-bg);
    border: var(--glass-border);
    border-radius: 1rem;
}
.error-box svg { color: #f87171; margin-bottom: 1rem; width: 40px; height: 40px; }
.error-box p { color: var(--text-muted); font-size: 0.9rem; }
.retry-btn {
    margin-top: 1.25rem;
    display: inline-flex;
    align-items: center;
    gap: 0.4rem;
    background: var(--primary-gradient);
    color: #fff;
    padding: 0.55rem 1.25rem;
    border-radius: 0.5rem;
    border: none;
    cursor: pointer;
    font-weight: 600;
    font-size: 0.875rem;
    transition: opacity 0.2s;
}
.retry-btn:hover { opacity: 0.85; }

.stats-bar {
    display: flex;
    justify-content: center;
    gap: 2.5rem;
    flex-wrap: wrap;
    margin: 0 auto 3rem;
    max-width: 480px;
}
.stat-item { text-align: center; }
.stat-value {
    font-size: 1.75rem;
    font-weight: 800;
    background: var(--primary-gradient);
    -webkit-background-clip: text;
    background-clip: text;
    color: transparent;
}
.stat-label {
    font-size: 0.78rem;
    color: var(--text-muted);
    text-transform: uppercase;
    letter-spacing: 0.05em;
    font-weight: 500;
}