:root {
    --bg-color: #0B0C10;
    --surface-color: #1A1C23;
    --surface-hover: #232732;
    --text-primary: #F8FAFC;
    --text-secondary: #94A3B8;
    --accent-color: #4ADE80;
    --accent-secondary: #059669;
    --border-color: rgba(255, 255, 255, 0.1);
    --glow-spread: 120px;
}

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

body {
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, sans-serif;
    background-color: var(--bg-color);
    color: var(--text-primary);
    line-height: 1.6;
    overflow-x: hidden;
}

html {
    scroll-behavior: smooth;
}

.glow-background {
    position: absolute;
    top: -100px;
    left: 50%;
    transform: translateX(-50%);
    width: 100vw;
    height: 800px;
    background: radial-gradient(ellipse at top center, rgba(74, 222, 128, 0.15) 0%, rgba(5, 150, 105, 0.08) 40%, transparent 70%);
    filter: blur(60px);
    z-index: -1;
    pointer-events: none;
}

.navbar {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    background: rgba(11, 12, 16, 0.7);
    backdrop-filter: blur(12px);
    border-bottom: 1px solid var(--border-color);
    z-index: 100;
}

.nav-content {
    max-width: 1200px;
    margin: 0 auto;
    padding: 1rem 2rem;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.logo-container {
    display: flex;
    align-items: center;
    gap: 0.75rem;
}

.logo {
    width: 32px;
    height: 32px;
    border-radius: 8px;
}

.brand-name {
    font-weight: 700;
    font-size: 1.25rem;
    letter-spacing: -0.5px;
}

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

.nav-links a {
    color: var(--text-secondary);
    text-decoration: none;
    font-weight: 500;
    font-size: 0.95rem;
    transition: color 0.2s;
}

.nav-links a:hover {
    color: var(--text-primary);
}

.github-btn {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    background: var(--surface-color);
    padding: 0.5rem 1rem;
    border-radius: 8px;
    border: 1px solid var(--border-color);
    color: var(--text-primary) !important;
    transition: all 0.2s !important;
}

.github-btn:hover {
    background: var(--surface-hover);
    border-color: rgba(255, 255, 255, 0.2);
}

.hero {
    max-width: 1200px;
    margin: 0 auto;
    padding: 160px 2rem 80px;
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
}

.hero-content {
    max-width: 800px;
    margin-bottom: 4rem;
}

.hero-title {
    font-size: 4rem;
    font-weight: 800;
    line-height: 1.1;
    letter-spacing: -1.5px;
    margin-bottom: 1.5rem;
}

.gradient-text {
    background: linear-gradient(135deg, var(--accent-color), var(--accent-secondary));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.hero-subtitle {
    font-size: 1.25rem;
    color: var(--text-secondary);
    margin-bottom: 2.5rem;
    max-width: 600px;
    margin-left: auto;
    margin-right: auto;
}

.hero-actions {
    display: flex;
    justify-content: center;
    gap: 1rem;
}

.btn {
    padding: 0.875rem 1.5rem;
    border-radius: 8px;
    font-weight: 600;
    font-size: 1rem;
    text-decoration: none;
    transition: all 0.3s ease;
    cursor: pointer;
}

.btn-primary {
    background: var(--text-primary);
    color: var(--bg-color);
    box-shadow: 0 4px 14px rgba(255, 255, 255, 0.25);
}

.btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(255, 255, 255, 0.3);
}

.btn-secondary {
    background: rgba(255, 255, 255, 0.05);
    color: var(--text-primary);
    border: 1px solid var(--border-color);
    backdrop-filter: blur(8px);
}

.btn-secondary:hover {
    background: rgba(255, 255, 255, 0.1);
    transform: translateY(-2px);
}

.video-container {
    width: 100%;
    max-width: 1000px;
    position: relative;
}

.video-wrapper {
    position: relative;
    border-radius: 12px;
    background: var(--surface-color);
    padding: 8px;
    border: 1px solid var(--border-color);
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.5);
    z-index: 1;
}

.video-glow {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 100%;
    height: 100%;
    background: linear-gradient(135deg, var(--accent-color), var(--accent-secondary));
    filter: blur(100px);
    opacity: 0.15;
    z-index: -1;
    border-radius: inherit;
    transition: opacity 0.3s ease;
}

.video-wrapper:hover .video-glow {
    opacity: 0.25;
}

video {
    width: 100%;
    height: auto;
    border-radius: 6px;
    display: block;
}

.faq-section {
    max-width: 900px;
    margin: 0 auto 100px;
    padding: 0 2rem;
}

.faq-container {
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
}

.faq-item {
    background: var(--surface-color);
    border: 1px solid var(--border-color);
    border-radius: 12px;
    padding: 2rem;
    transition: border-color 0.3s ease;
}

.faq-item:hover {
    border-color: rgba(255, 255, 255, 0.2);
}

.faq-question {
    font-size: 1.25rem;
    font-weight: 600;
    margin-bottom: 1rem;
    color: var(--text-primary);
    display: flex;
    align-items: center;
    gap: 0.75rem;
}

.faq-icon {
    width: 24px;
    height: 24px;
    color: var(--text-secondary);
    flex-shrink: 0;
}

.faq-icon-img {
    width: 24px;
    height: auto;
    flex-shrink: 0;
}

.faq-answer {
    color: var(--text-secondary);
    font-size: 1rem;
    line-height: 1.6;
}

.faq-answer code {
    background: rgba(0, 0, 0, 0.3);
    padding: 0.2rem 0.4rem;
    border-radius: 4px;
    font-size: 0.9em;
    font-family: 'Fira Code', monospace;
    color: var(--accent-color);
}

.documentation-section {
    max-width: 900px;
    margin: 0 auto 100px;
    padding: 0 2rem;
}

.section-header {
    text-align: center;
    margin-bottom: 3rem;
}

.section-header h2 {
    font-size: 2.5rem;
    font-weight: 700;
    margin-bottom: 0.5rem;
}

.section-header p {
    color: var(--text-secondary);
}

.docs-container {
    background: var(--surface-color);
    border: 1px solid var(--border-color);
    border-radius: 16px;
    padding: 3rem;
    position: relative;
    overflow: hidden;
}

.docs-container::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 4px;
    background: linear-gradient(90deg, var(--accent-color), var(--accent-secondary));
}

.docs-container h1 {
    font-size: 2rem;
    margin-bottom: 1.5rem;
    padding-bottom: 0.5rem;
    border-bottom: 1px solid var(--border-color);
}

.docs-container h2 {
    font-size: 1.5rem;
    margin-top: 2.5rem;
    margin-bottom: 1rem;
}

.docs-container h3 {
    font-size: 1.25rem;
    margin-top: 2rem;
    margin-bottom: 1rem;
}

.docs-container p {
    margin-bottom: 1.25rem;
    color: #CBD5E1;
}

.docs-container ul, .docs-container ol {
    margin-bottom: 1.5rem;
    padding-left: 1.5rem;
    color: #CBD5E1;
}

.docs-container li {
    margin-bottom: 0.5rem;
}

.docs-container a {
    color: var(--accent-color);
    text-decoration: none;
}

.docs-container a:hover {
    text-decoration: underline;
}

.docs-container code {
    font-family: 'Fira Code', monospace;
    background: rgba(0, 0, 0, 0.3);
    padding: 0.2rem 0.4rem;
    border-radius: 4px;
    font-size: 0.85em;
    color: var(--accent-color);
}

.docs-container pre {
    background: #0D1117;
    border: 1px solid var(--border-color);
    border-radius: 8px;
    padding: 1.25rem;
    overflow-x: auto;
    margin-bottom: 1.5rem;
}

.docs-container pre code {
    background: transparent;
    padding: 0;
    color: inherit;
    font-size: 0.9em;
}

.loading-spinner {
    width: 40px;
    height: 40px;
    border: 3px solid rgba(255, 255, 255, 0.1);
    border-radius: 50%;
    border-top-color: var(--accent-color);
    animation: spin 1s ease-in-out infinite;
    margin: 0 auto 1rem;
}

.loading-text {
    text-align: center;
    color: var(--text-secondary);
}

@keyframes spin {
    to { transform: rotate(360deg); }
}

.community-section {
    position: relative;
    max-width: 1100px;
    margin: 0 auto 100px;
    padding: 80px 2rem;
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
    border-radius: 24px;
    background: radial-gradient(ellipse at center, rgba(88, 101, 242, 0.08) 0%, transparent 65%);
}

.community-bubbles {
    position: absolute;
    inset: 0;
    pointer-events: none;
}

.bubble {
    position: absolute;
    border-radius: 50%;
    overflow: hidden;
    border: 2px solid rgba(255, 255, 255, 0.15);
    background: var(--surface-color);
    animation: bubble-float linear infinite;
    will-change: transform;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.2);
}

.bubble img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

.bubble-placeholder {
    width: 100%;
    height: 100%;
    border-radius: 50%;
}

@keyframes bubble-float {
    0%   { transform: translateY(0px) rotate(0deg); }
    33%  { transform: translateY(-12px) rotate(2deg); }
    66%  { transform: translateY(6px) rotate(-2deg); }
    100% { transform: translateY(0px) rotate(0deg); }
}

.community-center {
    position: relative;
    z-index: 1;
    text-align: center;
    max-width: 480px;
}

.community-server-icon {
    display: flex;
    align-items: center;
    justify-content: center;
    width: fit-content;
    margin: 0 auto 1.5rem;
    color: #fff;
    filter: drop-shadow(0 0 16px rgba(88, 101, 242, 0.6));
    transition: transform 0.2s, filter 0.2s;
}

.community-server-icon svg {
    width: 96px;
    height: 96px;
    display: block;
}

.community-server-icon:hover {
    transform: translateY(-2px) scale(1.04);
    filter: drop-shadow(0 0 24px rgba(88, 101, 242, 0.85));
}

.install-section {
    max-width: 760px;
    margin: 0 auto 120px;
    padding: 0 2rem;
}

.install-header {
    text-align: center;
    margin-bottom: 2.5rem;
}

.install-title {
    font-size: 2.4rem;
    font-weight: 800;
    letter-spacing: -0.5px;
    margin-bottom: 0.5rem;
    color: var(--text-primary);
}

.install-sub {
    color: var(--text-secondary);
    font-size: 1.05rem;
}

.install-card {
    background: var(--surface-color);
    border: 1px solid var(--border-color);
    border-radius: 20px;
    padding: 0.5rem 1.5rem;
    box-shadow: 0 20px 50px rgba(0, 0, 0, 0.35);
}

.install-row {
    display: flex;
    align-items: center;
    gap: 1.5rem;
    padding: 1.5rem 0;
}

.install-row + .install-row {
    border-top: 1px solid var(--border-color);
}

.install-method {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 0.5rem;
    flex-shrink: 0;
    width: 96px;
}

.install-icon {
    width: 40px;
    height: 40px;
    color: var(--text-primary);
    fill: url(#installIconGrad);
}

.install-label {
    font-size: 0.85rem;
    font-weight: 600;
    color: var(--text-secondary);
}

.install-cmd {
    flex: 1;
    min-width: 0;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 1rem;
    background: var(--bg-color);
    border: 1px solid var(--border-color);
    border-radius: 12px;
    padding: 0.85rem 1rem 0.85rem 1.1rem;
    font-family: 'Fira Code', monospace;
}

.install-cmd code {
    font-family: inherit;
    font-size: 0.95rem;
    color: var(--text-primary);
    white-space: nowrap;
    overflow-x: auto;
}

.install-prompt {
    color: var(--accent-color);
    margin-right: 0.5rem;
    user-select: none;
}

.copy-btn {
    flex-shrink: 0;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 34px;
    height: 34px;
    border: none;
    border-radius: 8px;
    background: transparent;
    color: var(--text-secondary);
    cursor: pointer;
    transition: background 0.2s, color 0.2s;
}
.copy-btn:hover {
    background: var(--surface-hover);
    color: var(--text-primary);
}
.copy-btn svg { width: 17px; height: 17px; }
.copy-btn .icon-check { display: none; }
.copy-btn.copied { color: var(--accent-color); }
.copy-btn.copied .icon-copy  { display: none; }
.copy-btn.copied .icon-check { display: inline; }

.install-cmd-link {
    text-decoration: none;
    transition: border-color 0.2s, background 0.2s;
}
.install-cmd-link:hover {
    border-color: var(--accent-color);
    background: var(--surface-hover);
}
.install-cmd-text {
    font-size: 0.92rem;
    color: var(--text-primary);
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}
.install-cmd-link .icon-download {
    width: 18px;
    height: 18px;
    flex-shrink: 0;
    color: var(--accent-color);
}

@media (max-width: 640px) {
    .install-title { font-size: 1.75rem; }
    .install-row { flex-direction: column; align-items: stretch; gap: 0.85rem; }
    .install-method { flex-direction: row; width: auto; justify-content: center; }
}

.community-title {
    font-size: 2.4rem;
    font-weight: 800;
    letter-spacing: -0.5px;
    margin-bottom: 0.65rem;
    color: var(--text-primary);
}

.community-sub {
    color: var(--text-secondary);
    font-size: 1.05rem;
    line-height: 1.6;
    margin-bottom: 1.25rem;
}

.community-stats {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    font-size: 0.9rem;
    color: var(--text-secondary);
    margin-bottom: 1.75rem;
}

.community-dot {
    width: 8px;
    height: 8px;
    border-radius: 50%;
    flex-shrink: 0;
}

.community-dot.online {
    background: #23A559;
    box-shadow: 0 0 6px rgba(35, 165, 89, 0.7);
    animation: dot-pulse 2s ease-in-out infinite;
}

@keyframes dot-pulse {
    0%, 100% { box-shadow: 0 0 4px rgba(35, 165, 89, 0.7); }
    50% { box-shadow: 0 0 10px rgba(35, 165, 89, 0.9); }
}

@media (max-width: 768px) {
    .community-title { font-size: 1.75rem; }
    .community-section { padding: 60px 1.5rem; }
}

footer {
    border-top: 1px solid var(--border-color);
    padding: 3rem 2rem;
    text-align: center;
    background: rgba(11, 12, 16, 0.5);
}

.footer-content {
    max-width: 1200px;
    margin: 0 auto;
}

.footer-brand {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.75rem;
    margin-bottom: 1rem;
    font-weight: 600;
    font-size: 1.25rem;
}

.footer-logo {
    width: 24px;
    height: 24px;
    border-radius: 6px;
    filter: grayscale(100%) opacity(0.7);
    transition: all 0.3s;
}

.footer-brand:hover .footer-logo {
    filter: grayscale(0%) opacity(1);
}

.footer-content p {
    color: var(--text-secondary);
    font-size: 0.95rem;
    margin-bottom: 0.5rem;
}

.copyright {
    font-size: 0.85rem !important;
    opacity: 0.6;
    margin-top: 1.5rem;
}

@media (max-width: 768px) {
    .hero-title {
        font-size: 2.5rem;
    }
    
    .nav-links a:not(.github-btn) {
        display: none;
    }
    
    .docs-container {
        padding: 1.5rem;
    }
}
