/* ===== Reset & Base ===== */
*, *::before, *::after { margin: 0; padding: 0; box-sizing: border-box; }

:root {
    --bg: #080808;
    --bg-card: #0e0e0e;
    --bg-sidebar: #0a0a0a;
    --bg-code: #0c0c0c;
    --border: #1a1a1a;
    --border-accent: #7c6fef;
    --text: #e0e0e0;
    --text-dim: #666;
    --text-section: #999;
    --accent: #7c6fef;
    --accent-hover: #9b90f5;
    --btn: #131313;
    --btn-hover: #1a1a1a;
    --success: #4ade80;
    --sidebar-w: 260px;
    --font: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Helvetica, Arial, sans-serif;
    --mono: 'JetBrains Mono', 'Fira Code', 'Consolas', monospace;
}

html { scroll-behavior: smooth; }

body {
    font-family: var(--font);
    background: var(--bg);
    color: var(--text);
    line-height: 1.65;
    min-height: 100vh;
}

a { color: var(--accent); text-decoration: none; transition: color .15s; }
a:hover { color: var(--accent-hover); }

/* ===== Sidebar ===== */
.sidebar {
    position: fixed;
    top: 0; left: 0;
    width: var(--sidebar-w);
    height: 100vh;
    background: var(--bg-sidebar);
    border-right: 1px solid var(--border);
    padding: 32px 24px;
    display: flex;
    flex-direction: column;
    z-index: 100;
    overflow-y: auto;
}

.sidebar-logo-img {
    width: 140px;
    height: auto;
    margin-bottom: 4px;
    border-radius: 6px;
    object-fit: contain;
}

.sidebar-tagline {
    font-size: 11px;
    color: var(--text-dim);
    margin-bottom: 32px;
    letter-spacing: 0.3px;
}

.sidebar-section {
    font-size: 10px;
    font-weight: 700;
    color: var(--text-dim);
    text-transform: uppercase;
    letter-spacing: 1.2px;
    margin-top: 24px;
    margin-bottom: 10px;
}

.sidebar-section:first-of-type { margin-top: 0; }

.sidebar-nav { list-style: none; }

.sidebar-nav li { margin-bottom: 2px; }

.sidebar-nav a {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 9px 14px;
    border-radius: 8px;
    color: var(--text-dim);
    font-size: 14px;
    font-weight: 500;
    transition: all .15s;
}

.sidebar-nav a:hover {
    background: rgba(255, 255, 255, 0.04);
    color: var(--text);
}

.sidebar-nav a.active {
    background: rgba(255, 255, 255, 0.06);
    color: var(--accent);
}

.sidebar-nav .nav-icon {
    width: 18px;
    height: 18px;
    flex-shrink: 0;
    opacity: 0.7;
}

.sidebar-bottom {
    margin-top: auto;
    padding-top: 24px;
    border-top: 1px solid var(--border);
}

.sidebar-bottom a {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 10px 14px;
    border-radius: 8px;
    background: var(--accent);
    color: #080808;
    font-weight: 700;
    font-size: 13px;
    justify-content: center;
    transition: background .15s;
}

.sidebar-bottom a:hover { background: var(--accent-hover); color: #0b0f18; }

/* ===== Main Content ===== */
.main {
    margin-left: var(--sidebar-w);
    padding: 48px 56px 80px;
    max-width: 900px;
}

/* ===== Hero ===== */
.hero {
    margin-bottom: 48px;
    position: relative;
}

.hero::before { display: none; }

.hero h1 {
    font-size: 42px;
    font-weight: 800;
    line-height: 1.12;
    margin-bottom: 18px;
    letter-spacing: -0.5px;
}

.hero h1 span {
    color: var(--accent);
}

.hero p {
    font-size: 17px;
    color: var(--text-dim);
    max-width: 560px;
    margin-bottom: 28px;
    line-height: 1.75;
}

.hero-buttons { display: flex; gap: 12px; flex-wrap: wrap; }

.btn {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 12px 28px;
    border-radius: 10px;
    font-size: 14px;
    font-weight: 700;
    border: none;
    cursor: pointer;
    transition: all .2s;
}

.btn-primary {
    background: var(--accent);
    color: #080808;
}

.btn-primary:hover {
    background: var(--accent-hover);
    color: #080808;
    transform: translateY(-1px);
}

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

.btn-secondary:hover {
    background: var(--btn-hover);
    border-color: #2a2a38;
    transform: translateY(-1px);
}

/* ===== Badge ===== */
.badge {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 6px 14px;
    border-radius: 20px;
    background: transparent;
    border: 1px solid var(--border);
    font-size: 12px;
    font-weight: 600;
    color: var(--accent);
    margin-bottom: 20px;
    letter-spacing: 0.3px;
}

.badge-dot {
    width: 6px;
    height: 6px;
    border-radius: 50%;
    background: var(--accent);
    animation: pulse-dot 2s infinite;
}

@keyframes pulse-dot {
    0%, 100% { opacity: 1; }
    50% { opacity: 0.4; }
}

/* ===== Video Embed ===== */
.video-container {
    position: relative;
    width: 100%;
    padding-bottom: 56.25%;
    border-radius: 14px;
    overflow: hidden;
    border: 1px solid var(--border);
    margin-bottom: 48px;
    background: var(--bg-card);
}

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

.video-placeholder {
    position: absolute;
    top: 0; left: 0;
    width: 100%;
    height: 100%;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 12px;
    color: var(--text-dim);
    font-size: 14px;
    background: var(--bg-card);
}

.video-placeholder svg {
    opacity: 0.3;
}

/* ===== Section ===== */
.section { margin-bottom: 48px; }

.section-title {
    font-size: 24px;
    font-weight: 700;
    margin-bottom: 16px;
    letter-spacing: -0.3px;
}

.section-subtitle {
    font-size: 13px;
    color: var(--text-dim);
    margin-bottom: 20px;
}

/* ===== Divider ===== */
.section-divider {
    height: 1px;
    background: linear-gradient(90deg, transparent, var(--border) 20%, var(--border) 80%, transparent);
    margin: 56px 0;
}

/* ===== Feature Cards ===== */
.features {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 16px;
    margin-bottom: 48px;
}

.feature-card {
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: 14px;
    padding: 26px;
    transition: border-color .2s, transform .2s, box-shadow .2s;
}

.feature-card:hover {
    border-color: #2a2a38;
    transform: translateY(-2px);
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.2);
}

.feature-card h3 {
    font-size: 15px;
    font-weight: 700;
    margin-bottom: 10px;
    display: flex;
    align-items: center;
    gap: 10px;
}

.feature-card p {
    font-size: 13px;
    color: var(--text-dim);
    line-height: 1.7;
}

.feature-icon-svg {
    width: 20px;
    height: 20px;
    flex-shrink: 0;
    color: var(--accent);
}

/* ===== Comparison / Stats ===== */
.stats-row {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 16px;
    margin-bottom: 48px;
}

.stat-card {
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: 14px;
    padding: 28px 24px;
    text-align: center;
    transition: border-color .2s, transform .2s;
}

.stat-card:hover {
    border-color: #2a2a38;
    transform: translateY(-2px);
}

.stat-value {
    font-size: 32px;
    font-weight: 800;
    color: var(--accent);
    letter-spacing: -1px;
    margin-bottom: 6px;
}

.stat-label {
    font-size: 12px;
    color: var(--text-dim);
    font-weight: 500;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

/* ===== Download Cards ===== */
.download-card {
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: 14px;
    padding: 28px 32px;
    margin-bottom: 20px;
    transition: border-color .2s, transform .2s;
}

.download-card:hover {
    transform: translateY(-1px);
}

.download-card.latest {
    border-color: var(--accent);
}

.download-card-header {
    display: flex;
    justify-content: space-between;
    align-items: baseline;
    margin-bottom: 18px;
}

.download-card-header h3 {
    font-size: 20px;
    font-weight: 700;
}

.download-card-header .version {
    font-size: 28px;
    font-weight: 800;
    color: var(--text-dim);
}

.download-card.latest .download-card-header .version { color: var(--accent); }

.download-platform {
    margin-bottom: 12px;
}

.download-platform-label {
    font-size: 12px;
    color: var(--text-dim);
    margin-bottom: 8px;
    font-weight: 600;
}

.download-links {
    display: flex;
    gap: 10px;
    flex-wrap: wrap;
}

.download-link {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 8px 18px;
    background: var(--btn);
    border: 1px solid var(--border);
    border-radius: 8px;
    color: var(--text);
    font-size: 13px;
    font-weight: 600;
    transition: all .2s;
}

.download-link:hover {
    background: var(--btn-hover);
    border-color: var(--accent);
    color: var(--text);
    transform: translateY(-1px);
}

.download-note {
    margin-top: 14px;
    font-size: 12px;
    color: var(--accent);
    line-height: 1.5;
}

/* ===== Help / FAQ ===== */
.faq-item {
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: 12px;
    margin-bottom: 14px;
    overflow: hidden;
    transition: border-color .2s;
}

.faq-item:hover {
    border-color: #2a2a38;
}

.faq-question {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 18px 24px;
    cursor: pointer;
    font-size: 15px;
    font-weight: 600;
    transition: background .15s;
    user-select: none;
}

.faq-question:hover { background: rgba(255, 255, 255, 0.02); }

.faq-chevron {
    transition: transform .25s ease;
    color: var(--text-dim);
    font-size: 12px;
}

.faq-item.open .faq-chevron { transform: rotate(180deg); }

.faq-answer {
    padding: 0 24px 20px;
    font-size: 14px;
    color: var(--text-dim);
    line-height: 1.7;
    display: none;
}

.faq-item.open .faq-answer { display: block; }

/* ===== Guide Steps ===== */
.guide-step {
    display: flex;
    gap: 20px;
    margin-bottom: 32px;
}

.step-number {
    flex-shrink: 0;
    width: 36px;
    height: 36px;
    border-radius: 50%;
    background: var(--accent);
    color: #080808;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 800;
    font-size: 15px;
    margin-top: 2px;
}

.step-content { flex: 1; }

.step-content h3 {
    font-size: 16px;
    font-weight: 700;
    margin-bottom: 8px;
}

.step-content p {
    font-size: 14px;
    color: var(--text-dim);
    margin-bottom: 12px;
}

/* ===== Code Blocks ===== */
.code-block {
    background: var(--bg-code);
    border: 1px solid var(--border);
    border-radius: 10px;
    padding: 16px 20px;
    font-family: var(--mono);
    font-size: 13px;
    color: var(--text);
    position: relative;
    overflow-x: auto;
    margin-bottom: 12px;
}

.code-block .copy-btn {
    position: absolute;
    top: 10px;
    right: 10px;
    background: var(--btn);
    border: 1px solid var(--border);
    border-radius: 6px;
    color: var(--text-dim);
    padding: 4px 10px;
    font-size: 11px;
    cursor: pointer;
    font-family: var(--font);
    transition: all .15s;
}

.code-block .copy-btn:hover {
    background: var(--btn-hover);
    color: var(--text);
}

/* ===== Compatibility Note ===== */
.compat-note {
    background: var(--bg-card);
    border: 1px solid var(--accent);
    border-radius: 10px;
    padding: 16px 20px;
    font-size: 13px;
    color: var(--accent);
    margin-bottom: 24px;
    line-height: 1.6;
}

/* ===== Contact ===== */
.contact-card {
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: 14px;
    padding: 40px;
    max-width: 480px;
    transition: border-color .2s;
}

.contact-card:hover {
    border-color: #2a2a38;
}

.contact-icon {
    color: var(--accent);
    margin-bottom: 16px;
}

.contact-card h2 {
    font-size: 22px;
    font-weight: 700;
    margin-bottom: 8px;
}

.contact-email {
    font-size: 16px;
    color: var(--accent);
    font-weight: 600;
    word-break: break-all;
}

/* ===== Footer ===== */
.site-footer {
    margin-top: 72px;
    padding-top: 24px;
    border-top: 1px solid var(--border);
    display: flex;
    justify-content: space-between;
    align-items: center;
    font-size: 12px;
    color: var(--text-dim);
    gap: 16px;
    flex-wrap: wrap;
}

.site-footer a {
    color: var(--text-dim);
    transition: color .15s;
}

.site-footer a:hover {
    color: var(--text);
}

/* ===== Mobile ===== */
.mobile-header {
    display: none;
    position: fixed;
    top: 0; left: 0; right: 0;
    height: 56px;
    background: var(--bg-sidebar);
    border-bottom: 1px solid var(--border);
    padding: 0 20px;
    align-items: center;
    justify-content: space-between;
    z-index: 200;
}

.mobile-logo-img {
    height: 28px;
    width: auto;
    border-radius: 4px;
    object-fit: contain;
}

.hamburger {
    background: none;
    border: none;
    color: var(--text);
    font-size: 24px;
    cursor: pointer;
    padding: 4px;
}

.sidebar-overlay {
    display: none;
    position: fixed;
    top: 0; left: 0;
    width: 100vw;
    height: 100vh;
    background: rgba(0, 0, 0, 0.6);
    z-index: 99;
}

@media (max-width: 768px) {
    .sidebar {
        transform: translateX(-100%);
        transition: transform .25s ease;
    }

    .sidebar.open { transform: translateX(0); }
    .sidebar-overlay.open { display: block; }
    .mobile-header { display: flex; }

    .main {
        margin-left: 0;
        padding: 80px 24px 60px;
    }

    .hero h1 { font-size: 28px; }
    .features { grid-template-columns: 1fr; }
    .stats-row { grid-template-columns: 1fr; }
    .site-footer { flex-direction: column; align-items: flex-start; }
}

/* ===== Utilities ===== */
.mt-8 { margin-top: 8px; }
.mt-16 { margin-top: 16px; }
.mt-24 { margin-top: 24px; }
.mb-8 { margin-bottom: 8px; }
.mb-16 { margin-bottom: 16px; }
.mb-24 { margin-bottom: 24px; }
.text-dim { color: var(--text-dim); }
.text-accent { color: var(--accent); }
.text-sm { font-size: 13px; }
