:root {
    --bg-main: #121212;
    --bg-card: #1e1e24;
    --text-main: #f5f5f5;
    --text-muted: #a0a0a0;
    --brand-color: #ffd700;
    --brand-gradient: linear-gradient(135deg, #ffd700, #ff8c00);
    --accent-color: #ff4757;
    --section-padding: 60px 20px;
    --radius-lg: 20px;
    --radius-md: 12px;
    --radius-sm: 8px;
    --border-color: rgba(255, 255, 255, 0.1);
}

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

body {
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
    background-color: var(--bg-main);
    color: var(--text-main);
    line-height: 1.6;
    overflow-x: hidden;
    padding-bottom: 80px; /* space for floating download */
}

a {
    text-decoration: none;
    color: inherit;
}

img {
    max-width: 100%;
    display: block;
}

h1, h2, h3 {
    line-height: 1.3;
    font-weight: 700;
}

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

/* Header & Nav */
.site-header {
    background: rgba(18, 18, 18, 0.9);
    backdrop-filter: blur(10px);
    position: sticky;
    top: 0;
    z-index: 100;
    border-bottom: 1px solid var(--border-color);
}

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

.brand {
    display: flex;
    align-items: center;
    gap: 12px;
    font-size: 1.2rem;
    font-weight: bold;
    color: var(--brand-color);
}

.brand img {
    height: 32px;
    width: 32px;
    border-radius: 50%;
    object-fit: cover;
}

.nav-links {
    display: flex;
    gap: 24px;
    font-size: 0.95rem;
}

.nav-links a {
    transition: color 0.3s;
    position: relative;
}

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

.nav-links a::after {
    content: '';
    position: absolute;
    bottom: -4px;
    left: 0;
    width: 0;
    height: 2px;
    background: var(--brand-color);
    transition: width 0.3s;
}

.nav-links a:hover::after {
    width: 100%;
}

.mobile-menu-btn {
    display: none;
    background: none;
    border: none;
    color: var(--text-main);
    font-size: 1.5rem;
    cursor: pointer;
}

/* Hero Section */
.hero {
    padding: 40px 0;
    background: linear-gradient(180deg, rgba(255,215,0,0.1) 0%, var(--bg-main) 100%);
    text-align: center;
    position: relative;
}

.hero-title {
    font-size: 2.2rem;
    margin-bottom: 12px;
    background: var(--brand-gradient);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}

.hero-desc {
    color: var(--text-muted);
    max-width: 600px;
    margin: 0 auto 24px;
    font-size: 1rem;
}

.download-btns {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 12px;
    margin-bottom: 32px;
}

.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 10px 24px;
    border-radius: var(--radius-md);
    font-weight: bold;
    font-size: 0.95rem;
    transition: transform 0.2s, opacity 0.2s;
    cursor: pointer;
    border: none;
}

.btn:hover {
    transform: translateY(-2px);
    opacity: 0.9;
}

.btn-primary {
    background: var(--brand-gradient);
    color: #000;
}

.btn-outline {
    background: transparent;
    border: 1px solid var(--brand-color);
    color: var(--brand-color);
}

.hero-images {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 12px;
    max-width: 800px;
    margin: 0 auto;
    padding: 0 20px;
}

.hero-img-wrap {
    border-radius: var(--radius-md);
    overflow: hidden;
    aspect-ratio: 3/4;
    background: var(--bg-card);
    position: relative;
}

.hero-img-wrap img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.5s;
}

.hero-img-wrap:hover img {
    transform: scale(1.05);
}

/* Marquee */
.marquee {
    background: var(--bg-card);
    padding: 12px 0;
    overflow: hidden;
    white-space: nowrap;
    border-top: 1px solid var(--border-color);
    border-bottom: 1px solid var(--border-color);
    margin-top: 40px;
}

.marquee-content {
    display: inline-block;
    animation: scroll 20s linear infinite;
}

.marquee-content span {
    font-size: 1.1rem;
    font-weight: bold;
    background: var(--brand-gradient);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    margin: 0 30px;
}

@keyframes scroll {
    0% { transform: translateX(0); }
    100% { transform: translateX(-50%); }
}

/* Section Common */
section {
    padding: var(--section-padding);
}

.section-header {
    text-align: center;
    margin-bottom: 40px;
}

.section-header h2 {
    font-size: 1.8rem;
    margin-bottom: 12px;
    color: var(--brand-color);
}

.section-header p {
    color: var(--text-muted);
    max-width: 600px;
    margin: 0 auto;
}

/* Section Bg Colors */
.bg-alt {
    background: #18181b;
}

.bg-blue {
    background: #0f172a;
}

.bg-purple {
    background: #1a1025;
}

.bg-green {
    background: #102510;
}

/* Grid Layouts */
.grid-4 {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 20px;
}

.grid-3 {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 20px;
}

/* Card Styles */
.card {
    background: var(--bg-card);
    border-radius: var(--radius-md);
    overflow: hidden;
    border: 1px solid var(--border-color);
    transition: transform 0.3s, box-shadow 0.3s;
}

.card:hover {
    transform: translateY(-4px);
    box-shadow: 0 8px 24px rgba(0,0,0,0.4);
}

.card-img {
    aspect-ratio: 3/4;
    overflow: hidden;
}

.card-img img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.card-info {
    padding: 16px;
}

.card-info h3 {
    font-size: 1.1rem;
    margin-bottom: 8px;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.card-tags {
    display: flex;
    flex-wrap: wrap;
    gap: 6px;
    margin-bottom: 8px;
}

.tag {
    font-size: 0.75rem;
    padding: 2px 8px;
    background: rgba(255,215,0,0.15);
    color: var(--brand-color);
    border-radius: 4px;
}

.card-meta {
    font-size: 0.8rem;
    color: var(--text-muted);
    display: flex;
    justify-content: space-between;
}

/* Special Layouts */
/* Timeline */
.timeline-section {
    display: flex;
    gap: 40px;
    align-items: center;
}

.timeline-visual {
    flex: 1;
    max-width: 400px;
}

.timeline-visual img {
    border-radius: var(--radius-md);
    width: 100%;
    object-fit: cover;
    box-shadow: 0 10px 30px rgba(0,0,0,0.5);
}

.timeline-content {
    flex: 1;
}

.timeline-list {
    position: relative;
    padding-left: 30px;
    border-left: 2px solid rgba(255,215,0,0.3);
}

.timeline-item {
    position: relative;
    margin-bottom: 24px;
}

.timeline-item:last-child {
    margin-bottom: 0;
}

.timeline-item::before {
    content: '';
    position: absolute;
    left: -36px;
    top: 6px;
    width: 10px;
    height: 10px;
    border-radius: 50%;
    background: var(--brand-color);
    box-shadow: 0 0 10px var(--brand-color);
}

.timeline-time {
    font-weight: bold;
    color: var(--brand-color);
    font-size: 1.1rem;
    margin-bottom: 4px;
}

.timeline-text {
    color: var(--text-muted);
    font-size: 0.95rem;
}

/* Split Layout */
.split-layout {
    display: flex;
    gap: 40px;
    align-items: flex-start;
}

.split-visual {
    flex: 1;
    max-width: 400px;
}

.split-visual img {
    border-radius: var(--radius-md);
    width: 100%;
    object-fit: cover;
}

.split-content {
    flex: 1;
}

.split-content h3 {
    font-size: 1.5rem;
    margin-bottom: 16px;
    color: var(--brand-color);
}

.split-list {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.split-list-item {
    background: rgba(255,255,255,0.03);
    padding: 16px;
    border-radius: var(--radius-sm);
    border-left: 4px solid var(--brand-color);
    transition: background 0.3s;
}

.split-list-item:hover {
    background: rgba(255,255,255,0.08);
}

.split-list-item h4 {
    font-size: 1rem;
    margin-bottom: 4px;
    color: var(--text-main);
}

.split-list-item p {
    font-size: 0.9rem;
    color: var(--text-muted);
}

/* FAQ / Accordion */
.faq-list {
    max-width: 800px;
    margin: 0 auto;
    display: flex;
    flex-direction: column;
    gap: 16px;
}

.faq-item {
    background: var(--bg-card);
    border-radius: var(--radius-md);
    border: 1px solid var(--border-color);
    overflow: hidden;
}

.faq-question {
    padding: 16px 20px;
    font-weight: bold;
    display: flex;
    justify-content: space-between;
    align-items: center;
    cursor: pointer;
    background: rgba(255,255,255,0.02);
}

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

.faq-question::after {
    content: '+';
    font-size: 1.2rem;
    color: var(--brand-color);
    transition: transform 0.3s;
}

.faq-item.active .faq-question::after {
    transform: rotate(45deg);
}

.faq-answer {
    padding: 0 20px;
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.3s ease-out, padding 0.3s ease;
}

.faq-item.active .faq-answer {
    padding: 0 20px 20px;
    max-height: 200px;
}

.faq-answer p {
    color: var(--text-muted);
    font-size: 0.95rem;
}

/* Comments */
.comment-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 20px;
}

.comment-card {
    background: var(--bg-card);
    border-radius: var(--radius-md);
    padding: 20px;
    border: 1px solid var(--border-color);
}

.comment-header {
    display: flex;
    align-items: center;
    gap: 12px;
    margin-bottom: 12px;
}

.comment-avatar {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    object-fit: cover;
}

.comment-user {
    font-weight: bold;
    font-size: 0.95rem;
    color: var(--brand-color);
}

.comment-text {
    color: var(--text-main);
    font-size: 0.95rem;
}

/* Install Steps */
.install-steps {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 20px;
    margin-bottom: 40px;
}

.step-card {
    background: rgba(255,255,255,0.03);
    padding: 24px;
    border-radius: var(--radius-md);
    text-align: center;
    border: 1px solid var(--border-color);
}

.step-num {
    display: inline-block;
    width: 40px;
    height: 40px;
    line-height: 40px;
    border-radius: 50%;
    background: var(--brand-gradient);
    color: #000;
    font-weight: bold;
    font-size: 1.2rem;
    margin-bottom: 16px;
}

.step-card h4 {
    margin-bottom: 8px;
    font-size: 1.1rem;
}

.step-card p {
    font-size: 0.9rem;
    color: var(--text-muted);
}

/* Floating Download */
.floating-download {
    position: fixed;
    bottom: 20px;
    left: 50%;
    transform: translateX(-50%);
    background: rgba(30, 30, 36, 0.95);
    backdrop-filter: blur(10px);
    padding: 10px 24px;
    border-radius: 50px;
    display: flex;
    align-items: center;
    gap: 12px;
    box-shadow: 0 4px 20px rgba(0,0,0,0.5);
    border: 1px solid rgba(255,215,0,0.3);
    z-index: 1000;
    cursor: pointer;
    transition: transform 0.3s;
}

.floating-download:hover {
    transform: translateX(-50%) translateY(-3px);
}

.floating-download img {
    width: 32px;
    height: 32px;
    border-radius: 50%;
}

.floating-download span {
    font-weight: bold;
    color: var(--brand-color);
    font-size: 0.95rem;
}

/* Footer */
.site-footer {
    background: #09090b;
    padding: 40px 20px 20px;
    border-top: 1px solid var(--border-color);
    color: var(--text-muted);
    font-size: 0.85rem;
}

.footer-content {
    max-width: 1200px;
    margin: 0 auto;
    display: flex;
    flex-wrap: wrap;
    justify-content: space-between;
    gap: 24px;
    margin-bottom: 24px;
}

.footer-brand {
    max-width: 300px;
}

.footer-brand h3 {
    color: var(--brand-color);
    margin-bottom: 12px;
    font-size: 1.1rem;
}

.footer-links h4 {
    color: var(--text-main);
    margin-bottom: 12px;
    font-size: 0.95rem;
}

.footer-links ul {
    list-style: none;
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.footer-links ul li a:hover {
    color: var(--brand-color);
}

.footer-bottom {
    text-align: center;
    padding-top: 20px;
    border-top: 1px solid var(--border-color);
    font-size: 0.8rem;
    color: #666;
}

.footer-bottom p {
    margin-bottom: 8px;
}

.footer-bottom a {
    color: #888;
    transition: color 0.3s;
}

.footer-bottom a:hover {
    color: var(--brand-color);
}

/* Modal */
.modal-overlay {
    display: none;
    position: fixed;
    top: 0; left: 0; right: 0; bottom: 0;
    background: rgba(0,0,0,0.8);
    z-index: 2000;
    justify-content: center;
    align-items: center;
    padding: 20px;
}

.modal-overlay.show {
    display: flex;
}

.modal-content {
    background: var(--bg-card);
    padding: 30px 20px;
    border-radius: var(--radius-lg);
    max-width: 400px;
    width: 100%;
    text-align: center;
    border: 1px solid var(--border-color);
}

.modal-content p {
    margin-bottom: 20px;
    font-size: 1rem;
    color: var(--text-main);
}

.modal-input {
    width: 100%;
    padding: 12px;
    background: rgba(255,255,255,0.1);
    border: 1px solid var(--border-color);
    border-radius: var(--radius-sm);
    color: var(--text-main);
    font-size: 0.9rem;
    margin-bottom: 20px;
    text-align: center;
}

.modal-btn {
    width: 100%;
    padding: 12px;
    background: var(--brand-gradient);
    color: #000;
    border: none;
    border-radius: var(--radius-sm);
    font-weight: bold;
    cursor: pointer;
}

/* Responsive */
@media (max-width: 1024px) {
    .hero-images {
        max-width: 600px;
    }
    .grid-4 {
        grid-template-columns: repeat(3, 1fr);
    }
    .grid-3 {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 768px) {
    .nav-links {
        display: none;
        position: absolute;
        top: 64px;
        left: 0;
        right: 0;
        background: var(--bg-card);
        flex-direction: column;
        padding: 20px;
        gap: 16px;
        border-bottom: 1px solid var(--border-color);
    }
    .nav-links.active {
        display: flex;
    }
    .mobile-menu-btn {
        display: block;
    }
    .hero-title {
        font-size: 1.6rem;
    }
    .hero-images {
        grid-template-columns: repeat(2, 1fr);
    }
    .download-btns {
        flex-direction: column;
        align-items: stretch;
        padding: 0 20px;
    }
    .btn {
        width: 100%;
    }
    .grid-4, .grid-3 {
        grid-template-columns: repeat(2, 1fr);
    }
    .timeline-section, .split-layout {
        flex-direction: column;
    }
    .timeline-visual, .split-visual {
        max-width: 100%;
        width: 100%;
    }
    .comment-grid {
        grid-template-columns: 1fr;
    }
    .install-steps {
        grid-template-columns: 1fr;
    }
    .footer-content {
        flex-direction: column;
        text-align: center;
    }
    .footer-brand {
        max-width: 100%;
    }
    .floating-download {
        width: 90%;
        justify-content: center;
    }
}

@media (max-width: 480px) {
    .grid-4, .grid-3 {
        grid-template-columns: 1fr;
    }
    .hero-images {
        grid-template-columns: repeat(2, 1fr);
    }
}