:root {
    --bg-primary: #0f0f0f;
    --bg-secondary: #1a1a1a;
    --green-accent: #2d8134;
    --green-hover: #38a743;
    --blue-accent: #0E639C;
    --text-primary: #ffffff;
    --text-sec: #cccccc;
    --border-color: #333333;
}

body {
    margin: 0;
    font-family: "Segoe UI", system-ui, sans-serif;
    background-color: var(--bg-primary);
    color: var(--text-primary);
    line-height: 1.6;
}

/* Navbar */
nav {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 1rem 5%;
    background-color: var(--bg-secondary);
    border-bottom: 1px solid var(--border-color);
    position: sticky;
    top: 0;
    z-index: 100;
}
.logo {
    display: flex;
    align-items: center;
    font-size: 1.5rem;
    font-weight: bold;
    color: var(--text-primary);
    text-decoration: none;
}
.logo img {
    height: 32px;
    margin-right: 12px;
}
.nav-links a {
    color: var(--text-sec);
    text-decoration: none;
    margin-left: 2rem;
    transition: color 0.2s;
}
.nav-links a:hover {
    color: var(--green-accent);
}

/* Hero Section */
.hero {
    padding: 8rem 5%;
    text-align: center;
    background: linear-gradient(to bottom, rgba(15,15,15,0.7), rgba(15,15,15,1)), 
                url('data:image/svg+xml;utf8,<svg width="40" height="40" xmlns="http://www.w3.org/2000/svg"><rect width="40" height="40" fill="%23141414"/><rect width="18" height="18" x="1" y="1" fill="%231a1a1a"/><rect width="18" height="18" x="21" y="21" fill="%231a1a1a"/></svg>');
}
.hero h1 {
    font-size: 4rem;
    margin-bottom: 1rem;
}
.hero p {
    font-size: 1.2rem;
    color: var(--text-sec);
    max-width: 600px;
    margin: 0 auto 2rem auto;
}
.badge {
    display: inline-block;
    padding: 0.3rem 0.8rem;
    background: var(--blue-accent);
    border-radius: 20px;
    font-size: 0.9rem;
    margin-bottom: 1.5rem;
}

/* Buttons */
.btn {
    display: inline-block;
    padding: 0.8rem 2rem;
    border-radius: 5px;
    text-decoration: none;
    font-weight: bold;
    transition: transform 0.2s, background 0.2s;
    margin: 0.5rem;
}
.btn-primary {
    background-color: var(--green-accent);
    color: white;
}
.btn-primary:hover {
    background-color: var(--green-hover);
    transform: scale(1.05);
}
.btn-outline {
    border: 2px solid var(--border-color);
    color: var(--text-primary);
}
.btn-outline:hover {
    border-color: var(--text-sec);
}
.btn-windows {
    background-color: #0078d4;
    color: white;
}
.btn-windows:hover {
    background-color: #106ebe;
    transform: scale(1.05);
}

/* Features Grid */
.features {
    padding: 5rem 5%;
    max-width: 1200px;
    margin: 0 auto;
}
.features h2 {
    text-align: center;
    margin-bottom: 3rem;
}
.grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 2rem;
}
.card {
    background: var(--bg-secondary);
    padding: 2rem;
    border-radius: 10px;
    border: 1px solid var(--border-color);
    transition: transform 0.3s;
}
.card:hover {
    transform: translateY(-5px);
}
.card h3 {
    color: var(--green-accent);
}

/* Download Section */
.download-sec {
    background: var(--bg-secondary);
    padding: 5rem 5%;
    text-align: center;
}

.terminal {
    background: #000;
    color: #0f0;
    padding: 1.5rem;
    border-radius: 8px;
    text-align: left;
    max-width: 700px;
    margin: 2rem auto;
    font-family: 'Fira Code', 'Courier New', monospace;
    overflow-x: auto;
    border: 1px solid #333;
    box-shadow: 0 10px 30px rgba(0,0,0,0.5);
}

.install-guide {
    max-width: 800px;
    margin: 3rem auto;
    text-align: left;
}
.install-step {
    margin-bottom: 2rem;
    padding-left: 1.5rem;
    border-left: 2px solid var(--green-accent);
}
.install-step h4 {
    margin-bottom: 0.5rem;
    color: var(--green-accent);
}

/* Timeline Changelog */
.timeline {
    max-width: 800px;
    margin: 4rem auto;
    padding: 0 5%;
}
.log-item {
    border-left: 2px solid var(--green-accent);
    padding-left: 2rem;
    margin-bottom: 3rem;
    position: relative;
}
.log-item::before {
    content: '';
    position: absolute;
    left: -8px;
    top: 0;
    width: 14px;
    height: 14px;
    border-radius: 50%;
    background: var(--green-accent);
}

/* Hamburger button */
.hamburger {
    display: none;
    flex-direction: column;
    cursor: pointer;
    gap: 5px;
    background: none;
    border: none;
    padding: 0.3rem;
}
.hamburger span {
    display: block;
    width: 26px;
    height: 3px;
    background: var(--text-primary);
    border-radius: 3px;
    transition: transform 0.3s, opacity 0.3s;
}
.hamburger.open span:nth-child(1) { transform: translateY(8px) rotate(45deg); }
.hamburger.open span:nth-child(2) { opacity: 0; }
.hamburger.open span:nth-child(3) { transform: translateY(-8px) rotate(-45deg); }

/* ── Responsive ─────────────────────────────────────────────── */
@media (max-width: 768px) {
    /* Nav */
    .hamburger {
        display: flex;
    }
    .nav-links {
        display: none;
        position: fixed;
        top: 61px;
        left: 0;
        right: 0;
        background: var(--bg-secondary);
        flex-direction: column;
        padding: 1rem 5%;
        border-bottom: 1px solid var(--border-color);
        z-index: 99;
        box-shadow: 0 8px 20px rgba(0,0,0,0.5);
    }
    .nav-links.open {
        display: flex;
    }
    .nav-links a {
        margin-left: 0;
        padding: 0.85rem 0;
        border-bottom: 1px solid var(--border-color);
        font-size: 1rem;
    }
    .nav-links a:last-child {
        border-bottom: none;
    }

    /* Hero */
    .hero {
        padding: 4rem 5% 3rem;
    }
    .hero h1 {
        font-size: 2.4rem;
    }
    .hero p {
        font-size: 1rem;
    }
    .hero > div {
        display: flex;
        flex-direction: column;
        align-items: center;
    }
    .btn {
        width: 100%;
        max-width: 320px;
        text-align: center;
        box-sizing: border-box;
        margin: 0.4rem auto;
    }

    /* Features grid */
    .grid {
        grid-template-columns: 1fr;
    }
    .features {
        padding: 3rem 5%;
    }

    /* Download section */
    .download-sec {
        padding: 3rem 5%;
    }
    .terminal {
        font-size: 0.82rem;
        padding: 1rem;
        word-break: break-all;
    }

    /* Timeline / changelog */
    .timeline {
        padding: 0 5%;
    }
    .log-item {
        padding-left: 1.2rem;
    }
    .version-header {
        flex-direction: column !important;
        align-items: flex-start !important;
        gap: 0.3rem;
    }
    .version-header h3 {
        font-size: 1rem;
    }

    /* Footer */
    footer a {
        margin: 0 0.5rem;
    }
}

@media (max-width: 400px) {
    .hero h1 {
        font-size: 1.9rem;
    }
    nav {
        padding: 0.9rem 4%;
    }
}

/* Bug Report */
.report-sec {
    padding: 5rem 5%;
    background: var(--bg-primary);
    border-top: 1px solid var(--border-color);
}
.report-wrap {
    max-width: 720px;
    margin: 0 auto;
}
.report-wrap h2 {
    text-align: center;
    margin-bottom: 1rem;
}
.report-intro {
    text-align: center;
    color: var(--text-sec);
    margin-bottom: 2.5rem;
}
.bug-form {
    background: var(--bg-secondary);
    border: 1px solid var(--border-color);
    border-radius: 10px;
    padding: 2rem;
}
.form-row {
    margin-bottom: 1.25rem;
    display: flex;
    flex-direction: column;
}
.form-row label {
    margin-bottom: 0.4rem;
    font-weight: 600;
    color: var(--text-primary);
}
.form-row .muted {
    font-weight: normal;
    color: var(--text-sec);
    font-size: 0.85rem;
}
.form-row input[type="text"],
.form-row input[type="email"],
.form-row textarea {
    background: #111;
    color: var(--text-primary);
    border: 1px solid var(--border-color);
    border-radius: 6px;
    padding: 0.7rem 0.9rem;
    font-family: inherit;
    font-size: 0.95rem;
    transition: border-color 0.2s, box-shadow 0.2s;
}
.form-row input[type="text"]:focus,
.form-row input[type="email"]:focus,
.form-row textarea:focus {
    outline: none;
    border-color: var(--green-accent);
    box-shadow: 0 0 0 3px rgba(45, 129, 52, 0.25);
}
.form-row textarea {
    resize: vertical;
    min-height: 130px;
}
.form-row input[type="file"] {
    color: var(--text-sec);
    font-size: 0.9rem;
}
.form-row input[type="file"]::file-selector-button {
    background: var(--bg-primary);
    color: var(--text-primary);
    border: 1px solid var(--border-color);
    border-radius: 5px;
    padding: 0.45rem 0.9rem;
    margin-right: 0.8rem;
    cursor: pointer;
    transition: border-color 0.2s;
}
.form-row input[type="file"]::file-selector-button:hover {
    border-color: var(--green-accent);
}
.form-actions {
    align-items: flex-start;
    margin-top: 0.5rem;
}
.form-actions .btn {
    margin: 0;
}
.bug-form .hp {
    position: absolute;
    left: -10000px;
    top: -10000px;
    width: 1px;
    height: 1px;
    opacity: 0;
}
.bug-status {
    margin-top: 1rem;
    min-height: 1.5rem;
    font-size: 0.95rem;
}
.bug-status.success {
    color: var(--green-hover);
}
.bug-status.error {
    color: #ff6b6b;
}
.bug-status.info {
    color: var(--text-sec);
}
.bug-status a {
    color: var(--green-hover);
    text-decoration: underline;
}
button[disabled] {
    opacity: 0.6;
    cursor: not-allowed;
}

/* Footer */
footer {
    text-align: center;
    padding: 3rem 5%;
    border-top: 1px solid var(--border-color);
    color: var(--text-sec);
}
footer a {
    color: var(--text-sec);
    text-decoration: none;
    margin: 0 1rem;
}
footer a:hover {
    color: var(--text-primary);
}

/* Reviews Section */
.reviews-sec {
    padding: 5rem 5%;
    background: var(--bg-secondary);
    border-top: 1px solid var(--border-color);
}
.reviews-container {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 1.5rem;
    margin-bottom: 2.5rem;
}
.review-card {
    background: var(--bg-primary);
    padding: 1.5rem;
    border-radius: 10px;
    border: 1px solid var(--border-color);
    box-shadow: 0 4px 15px rgba(0,0,0,0.2);
}
.review-header {
    display: flex;
    justify-content: space-between;
    margin-bottom: 0.8rem;
}
.review-header strong {
    color: var(--green-accent);
}
.stars {
    font-size: 0.9rem;
}
.review-card p {
    font-size: 0.95rem;
    color: var(--text-sec);
    font-style: italic;
    margin: 0;
}
.review-form-toggle {
    text-align: center;
    margin-top: 2rem;
}
.loading-reviews {
    grid-column: 1 / -1;
    text-align: center;
    color: var(--text-sec);
    padding: 2rem;
}
.form-row select {
    background: #111;
    color: var(--text-primary);
    border: 1px solid var(--border-color);
    border-radius: 6px;
    padding: 0.7rem 0.9rem;
    font-family: inherit;
    font-size: 0.95rem;
}

