/* ============================================================
   Choco GUI Website - Stylesheet
   Color Palette:
   - Background:    #222831 (dark navy)
   - Surface:       #393E46 (dark gray)
   - Accent:        #948979 (warm taupe)
   - Text Light:    #DFD0B8 (warm beige)
   ============================================================ */

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

:root {
    --bg:        #222831;
    --surface:   #393E46;
    --accent:    #948979;
    --accent-hover: #a89b87;
    --text:      #DFD0B8;
    --text-muted:#948979;
    --white:     #FFFFFF;
    --radius:    8px;
    --radius-lg: 16px;
    --shadow:    0 4px 24px rgba(0,0,0,0.3);
    --transition: 0.2s ease;
    --font-sans: 'Inter', 'Noto Sans SC', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
}

html {
    scroll-behavior: smooth;
    scroll-padding-top: 80px;
}

body {
    font-family: var(--font-sans);
    background: var(--bg);
    color: var(--text);
    line-height: 1.6;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

a {
    color: var(--accent);
    text-decoration: none;
    transition: color var(--transition);
}

a:hover {
    color: var(--accent-hover);
}

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

/* ==================== Container ==================== */
.container {
    width: 100%;
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 24px;
}

/* ==================== Header ==================== */
.header {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 1000;
    background: rgba(34, 40, 49, 0.95);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    border-bottom: 1px solid rgba(148, 137, 121, 0.15);
}

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

.logo {
    display: flex;
    align-items: center;
    gap: 10px;
    color: var(--text);
    font-weight: 700;
    font-size: 1.2rem;
}

.logo:hover {
    color: var(--text);
}

.logo-icon {
    display: block;
    border-radius: 8px;
}

.nav {
    display: flex;
    align-items: center;
    gap: 8px;
}

.nav-link {
    padding: 8px 16px;
    color: var(--text);
    font-size: 0.9rem;
    font-weight: 500;
    border-radius: var(--radius);
    transition: background var(--transition), color var(--transition);
}

.nav-link:hover {
    background: rgba(148, 137, 121, 0.15);
    color: var(--accent);
}

.nav-link--github {
    display: flex;
    align-items: center;
    gap: 6px;
    background: var(--accent);
    color: var(--bg);
    padding: 8px 16px;
    border-radius: var(--radius);
    font-weight: 600;
}

.nav-link--github:hover {
    background: var(--accent-hover);
    color: var(--bg);
}

.mobile-menu-btn {
    display: none;
    flex-direction: column;
    gap: 5px;
    background: none;
    border: none;
    cursor: pointer;
    padding: 8px;
}

.mobile-menu-btn span {
    display: block;
    width: 24px;
    height: 2px;
    background: var(--text);
    border-radius: 2px;
    transition: var(--transition);
}

/* ==================== Hero ==================== */
.hero {
    padding: 120px 0 80px;
    background: linear-gradient(180deg, var(--bg) 0%, #1a2028 100%);
    min-height: 100vh;
    display: flex;
    align-items: center;
}

.hero-inner {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 64px;
    align-items: center;
}

.hero-title {
    font-size: 3.5rem;
    font-weight: 700;
    line-height: 1.1;
    margin-bottom: 24px;
    color: var(--text);
}

.highlight {
    color: var(--accent);
}

.hero-desc {
    font-size: 1.2rem;
    color: var(--text-muted);
    margin-bottom: 32px;
    line-height: 1.8;
}

.hero-actions {
    display: flex;
    gap: 16px;
    margin-bottom: 24px;
    flex-wrap: wrap;
}

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

.badge {
    display: inline-block;
    padding: 4px 12px;
    background: rgba(148, 137, 121, 0.15);
    border: 1px solid rgba(148, 137, 121, 0.3);
    border-radius: 20px;
    font-size: 0.8rem;
    color: var(--accent);
    font-weight: 500;
}

.hero-image {
    display: flex;
    justify-content: center;
    align-items: center;
}

.hero-img {
    width: 100%;
    max-width: 480px;
    height: auto;
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow);
    border: 1px solid rgba(148, 137, 121, 0.2);
}

/* ==================== Buttons ==================== */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    padding: 12px 28px;
    font-size: 1rem;
    font-weight: 600;
    border-radius: var(--radius);
    cursor: pointer;
    transition: all var(--transition);
    text-align: center;
    border: 2px solid transparent;
    font-family: var(--font-sans);
}

.btn-primary {
    background: var(--accent);
    color: var(--bg);
    border-color: var(--accent);
}

.btn-primary:hover {
    background: var(--accent-hover);
    border-color: var(--accent-hover);
    color: var(--bg);
    transform: translateY(-2px);
    box-shadow: 0 4px 16px rgba(148, 137, 121, 0.3);
}

.btn-outline {
    background: transparent;
    color: var(--accent);
    border-color: var(--accent);
}

.btn-outline:hover {
    background: rgba(148, 137, 121, 0.1);
    color: var(--accent);
    transform: translateY(-2px);
}

.btn-lg {
    padding: 16px 36px;
    font-size: 1.1rem;
}

/* ==================== Section ==================== */
.section-title {
    font-size: 2.2rem;
    font-weight: 700;
    text-align: center;
    margin-bottom: 12px;
    color: var(--text);
}

.section-desc {
    text-align: center;
    color: var(--text-muted);
    font-size: 1.05rem;
    margin-bottom: 48px;
}

/* ==================== Features ==================== */
.features {
    padding: 80px 0;
    background: var(--bg);
}

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

.feature-card {
    background: var(--surface);
    border-radius: var(--radius-lg);
    padding: 32px;
    border: 1px solid rgba(148, 137, 121, 0.1);
    transition: transform var(--transition), border-color var(--transition);
}

.feature-card:hover {
    transform: translateY(-4px);
    border-color: rgba(148, 137, 121, 0.3);
}

.feature-icon {
    margin-bottom: 20px;
}

.feature-title {
    font-size: 1.2rem;
    font-weight: 600;
    margin-bottom: 12px;
    color: var(--text);
}

.feature-desc {
    color: var(--text-muted);
    font-size: 0.95rem;
    line-height: 1.7;
}

/* ==================== Screenshots ==================== */
.screenshots {
    padding: 80px 0;
    background: #1a2028;
}

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

.screenshot-card {
    background: var(--surface);
    border-radius: var(--radius-lg);
    overflow: hidden;
    border: 1px solid rgba(148, 137, 121, 0.1);
    transition: transform var(--transition), border-color var(--transition);
}

.screenshot-card:hover {
    transform: translateY(-4px);
    border-color: rgba(148, 137, 121, 0.3);
}

.screenshot-img {
    aspect-ratio: 16/9;
    overflow: hidden;
}

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

.screenshot-caption {
    padding: 16px;
    font-size: 0.95rem;
    font-weight: 500;
    color: var(--text);
    text-align: center;
}

/* ==================== Download ==================== */
.download {
    padding: 80px 0;
    background: var(--bg);
}

.download-cards {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 24px;
    margin-bottom: 48px;
}

.download-card {
    background: var(--surface);
    border-radius: var(--radius-lg);
    padding: 40px;
    border: 1px solid rgba(148, 137, 121, 0.15);
    text-align: center;
    transition: border-color var(--transition);
}

.download-card:hover {
    border-color: rgba(148, 137, 121, 0.4);
}

.download-card-title {
    font-size: 1.3rem;
    font-weight: 600;
    margin-bottom: 12px;
    color: var(--text);
}

.download-card-desc {
    color: var(--text-muted);
    margin-bottom: 24px;
}

.download-card-meta {
    margin-top: 16px;
    font-size: 0.85rem;
    color: var(--text-muted);
}

.download-note {
    background: rgba(148, 137, 121, 0.08);
    border: 1px solid rgba(148, 137, 121, 0.2);
    border-radius: var(--radius-lg);
    padding: 24px;
    max-width: 800px;
    margin: 0 auto;
}

.download-note h3 {
    font-size: 1.1rem;
    font-weight: 600;
    margin-bottom: 8px;
    color: var(--accent);
}

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

/* ==================== FAQ ==================== */
.faq {
    padding: 80px 0;
    background: #1a2028;
}

.faq-list {
    max-width: 800px;
    margin: 0 auto;
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.faq-item {
    background: var(--surface);
    border-radius: var(--radius);
    border: 1px solid rgba(148, 137, 121, 0.1);
    overflow: hidden;
}

.faq-question {
    padding: 20px 24px;
    font-size: 1.05rem;
    font-weight: 600;
    color: var(--text);
    cursor: pointer;
    list-style: none;
    display: flex;
    align-items: center;
    justify-content: space-between;
    transition: background var(--transition);
}

.faq-question::-webkit-details-marker {
    display: none;
}

.faq-question::after {
    content: '+';
    font-size: 1.4rem;
    font-weight: 300;
    color: var(--accent);
    transition: transform var(--transition);
}

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

.faq-question:hover {
    background: rgba(148, 137, 121, 0.08);
}

.faq-answer {
    padding: 0 24px 20px;
    color: var(--text-muted);
    font-size: 0.95rem;
    line-height: 1.7;
}

.faq-answer p {
    margin-bottom: 12px;
}

.faq-answer a {
    color: var(--accent);
    text-decoration: underline;
    text-underline-offset: 3px;
}

/* ==================== Footer ==================== */
.footer {
    background: #161b22;
    border-top: 1px solid rgba(148, 137, 121, 0.15);
    padding: 48px 0 0;
}

.footer-inner {
    display: grid;
    grid-template-columns: 2fr 1fr 1fr;
    gap: 48px;
    padding-bottom: 48px;
}

.footer-brand .logo-text {
    font-size: 1.3rem;
    font-weight: 700;
    color: var(--text);
}

.footer-desc {
    margin-top: 12px;
    color: var(--text-muted);
    font-size: 0.9rem;
}

.footer-heading {
    font-size: 0.9rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    color: var(--accent);
    margin-bottom: 16px;
}

.footer-links {
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.footer-links a {
    color: var(--text-muted);
    font-size: 0.9rem;
    transition: color var(--transition);
}

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

.footer-bottom {
    border-top: 1px solid rgba(148, 137, 121, 0.1);
    padding: 20px 24px;
    text-align: center;
    font-size: 0.85rem;
    color: var(--text-muted);
}

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

/* ==================== Responsive ==================== */
@media (max-width: 1024px) {
    .features-grid {
        grid-template-columns: repeat(2, 1fr);
    }
    .screenshots-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 768px) {
    .mobile-menu-btn {
        display: flex;
    }

    .nav {
        display: none;
        position: absolute;
        top: 64px;
        left: 0;
        right: 0;
        background: rgba(34, 40, 49, 0.98);
        backdrop-filter: blur(12px);
        flex-direction: column;
        padding: 16px;
        gap: 4px;
        border-bottom: 1px solid rgba(148, 137, 121, 0.15);
    }

    .nav.active {
        display: flex;
    }

    .hero-inner {
        grid-template-columns: 1fr;
        gap: 40px;
        text-align: center;
    }

    .hero-title {
        font-size: 2.2rem;
    }

    .hero-actions {
        justify-content: center;
    }

    .hero-badges {
        justify-content: center;
    }

    .features-grid {
        grid-template-columns: 1fr;
    }

    .screenshots-grid {
        grid-template-columns: 1fr;
    }

    .download-cards {
        grid-template-columns: 1fr;
    }

    .footer-inner {
        grid-template-columns: 1fr;
        gap: 32px;
    }

    .section-title {
        font-size: 1.7rem;
    }
}

@media (max-width: 480px) {
    .hero-title {
        font-size: 1.8rem;
    }

    .hero-desc {
        font-size: 1rem;
    }

    .btn-lg {
        padding: 14px 24px;
        font-size: 1rem;
    }
}
