:root {
    --primary-color: #b8945f;
    --primary-dark: #9a7a4a;
    --primary-light: #d4b880;
    --text-dark: #1a1a1a;
    --text-mid: #3a3a3a;
    --text-light: #888;
    --bg-dark: #111;
    --bg-mid: #1a1a1a;
    --bg-card: #222;
    --bg-light: #181818;
    --border-color: #333;
    --shadow: 0 2px 8px rgba(0, 0, 0, 0.4);
    --shadow-lg: 0 10px 30px rgba(0, 0, 0, 0.5);
}

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

body {
    font-family: 'Georgia', 'Times New Roman', serif;
    line-height: 1.7;
    color: #ddd;
    background: var(--bg-dark);
}

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

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

/* Header & Navigation */
header {
    background: var(--bg-mid);
    border-bottom: 1px solid var(--border-color);
    padding: 1rem 0;
    position: sticky;
    top: 0;
    z-index: 100;
}

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

.nav-brand {
    display: flex;
    align-items: center;
    gap: 1rem;
}

.nav-brand img {
    width: 40px;
    height: 40px;
    border-radius: 8px;
}

.nav-brand h1, .nav-brand .brand-name {
    font-size: 1.5rem;
    color: var(--primary-color);
    font-weight: normal;
    letter-spacing: 0.05em;
}

.tagline {
    font-size: 0.8rem;
    color: var(--text-light);
    font-style: italic;
}

.nav-links {
    display: flex;
    list-style: none;
    gap: 2rem;
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
    font-size: 0.9rem;
}

.nav-links a {
    color: #ccc;
    text-decoration: none;
    transition: color 0.2s;
}

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

/* Hero Section */
.hero {
    background: linear-gradient(180deg, var(--bg-mid) 0%, #0a0a0a 100%);
    padding: 5rem 0;
    text-align: center;
}

.hero-logo {
    width: 160px;
    height: 160px;
    border-radius: 24px;
    box-shadow: var(--shadow-lg);
    margin-bottom: 2rem;
}

.hero h1 {
    font-size: 2.5rem;
    color: var(--primary-light);
    font-weight: normal;
    letter-spacing: 0.02em;
    margin-bottom: 1rem;
}

.hero .lead {
    font-size: 1.2rem;
    color: #aaa;
    margin-bottom: 2.5rem;
    max-width: 700px;
    margin-left: auto;
    margin-right: auto;
    font-style: italic;
}

.cta-buttons {
    display: flex;
    gap: 1rem;
    justify-content: center;
    align-items: center;
    flex-wrap: wrap;
}

/* Buttons */
.btn {
    display: inline-block;
    padding: 0.75rem 1.75rem;
    border-radius: 4px;
    text-decoration: none;
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
    font-weight: 600;
    font-size: 0.95rem;
    transition: all 0.2s;
    border: none;
    cursor: pointer;
}

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

.btn-primary:hover {
    background: var(--primary-light);
    transform: translateY(-2px);
    box-shadow: var(--shadow-lg);
}

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

.btn-secondary:hover {
    background: rgba(184, 148, 95, 0.1);
}

.btn-large {
    padding: 1rem 2.5rem;
    font-size: 1.1rem;
}

/* Sections */
.section {
    padding: 4rem 0;
}

.section-alt {
    background: var(--bg-light);
}

.section h2 {
    font-size: 1.8rem;
    margin-bottom: 2rem;
    color: var(--primary-light);
    text-align: center;
    font-weight: normal;
    letter-spacing: 0.02em;
}

.section h3 {
    color: var(--primary-color);
    font-weight: normal;
    margin-bottom: 0.75rem;
}

/* About Section */
.about-content {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 3rem;
    align-items: start;
}

.about-text {
    font-size: 1.05rem;
    line-height: 1.9;
}

.about-text p {
    margin-bottom: 1.25rem;
}

.about-screenshot {
    text-align: center;
    margin-top: -1.5rem;
}

.about-screenshot .screenshot {
    max-width: 100%;
}

.caption-screenshot {
    color: var(--text-light);
    font-style: italic;
    font-size: 0.9rem;
    margin-top: -2.25rem;
}

.caption {
    color: var(--text-light);
    font-style: italic;
    font-size: 0.9rem;
    margin-top: 0.25rem;
}

/* Features Grid */
.features-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 1.5rem;
}

.feature-card {
    background: var(--bg-card);
    padding: 1.75rem;
    border-radius: 8px;
    border: 1px solid var(--border-color);
    transition: transform 0.2s, border-color 0.2s;
}

.feature-card:hover {
    transform: translateY(-3px);
    border-color: var(--primary-color);
}

.feature-card h3 {
    font-size: 1.1rem;
    margin-bottom: 0.5rem;
}

.feature-card p {
    color: #aaa;
    font-size: 0.95rem;
}

/* Before/After */
.comparison-container {
    margin: 2rem auto;
    text-align: center;
    max-width: 400px;
}

.comparison-wrapper {
    position: relative;
    display: inline-block;
    max-width: 100%;
}

.comparison-wrapper img {
    max-width: 100%;
    height: auto;
    border-radius: 8px;
    box-shadow: var(--shadow-lg);
}

.comparison-before {
    display: block;
}

.comparison-after {
    position: absolute;
    top: 0;
    left: 0;
    animation: fadeToggle 4s infinite;
}

@keyframes fadeToggle {
    0%, 45% { opacity: 0; }
    50%, 95% { opacity: 1; }
    100% { opacity: 0; }
}

.comparison-label {
    margin-top: 1rem;
    color: var(--text-light);
    font-style: italic;
}

/* Screenshot Gallery */
.screenshot-gallery {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 1.5rem;
    margin-top: 1rem;
}

.screenshot-item {
    text-align: center;
}

.screenshot-item img {
    max-width: 100%;
}

/* Download Box */
.download-box {
    background: var(--bg-card);
    padding: 2rem;
    border-radius: 8px;
    border: 1px solid var(--border-color);
    text-align: center;
    display: flex;
    flex-direction: column;
    align-items: center;
}

.download-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 1.25rem; }
.download-box > p:not(.download-note) { color: #aaa; margin-bottom: 1.5rem; }
.download-box .btn { margin-top: auto; }
.download-box .download-note { min-height: 5.1em; }
.release-heading { text-align: center; }
.badge { display: inline-block; font: 0.7rem system-ui; padding: 0.2rem 0.4rem; border: 1px solid var(--border-color); border-radius: 4px; vertical-align: middle; }
a { color: var(--primary-light); }
a:focus-visible { outline: 2px solid var(--primary-light); outline-offset: 4px; }

.download-box h3 {
    font-size: 1.4rem;
    margin-bottom: 0.5rem;
    color: var(--primary-light);
}

.release-date {
    color: var(--text-light);
    margin-bottom: 2rem;
    font-size: 0.9rem;
}

.download-note {
    margin-top: 1rem;
    color: var(--text-light);
    font-size: 0.9rem;
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
}

/* FAQ */
.faq-list {
    max-width: 800px;
    margin: 0 auto;
}

.faq-item {
    background: var(--bg-card);
    padding: 1.75rem;
    border-radius: 8px;
    margin-bottom: 1rem;
    border: 1px solid var(--border-color);
}

.faq-item h3 {
    font-size: 1.1rem;
    margin-bottom: 0.5rem;
}

.faq-item p {
    color: #aaa;
}

/* Contact */
#contact {
    text-align: center;
}

#contact p {
    margin-bottom: 1rem;
    color: #aaa;
}

/* Footer */
footer {
    background: var(--bg-mid);
    border-top: 1px solid var(--border-color);
    color: var(--text-light);
    padding: 2rem 0;
    text-align: center;
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
    font-size: 0.85rem;
}

footer a {
    color: var(--primary-color);
    text-decoration: none;
    margin: 0 0.5rem;
}

footer a:hover {
    text-decoration: underline;
}

/* Responsive */
@media (max-width: 768px) {
    .nav-links {
        gap: 1rem;
        font-size: 0.85rem;
    }

    .hero h1 {
        font-size: 1.75rem;
    }

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

    .hero-logo {
        width: 120px;
        height: 120px;
    }

    .about-content {
        grid-template-columns: 1fr;
        gap: 2rem;
    }

    .features-grid,
    .screenshot-gallery,
    .download-grid {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 480px) {
    .nav-brand h1, .nav-brand .brand-name {
        font-size: 1.25rem;
    }

    .nav-links {
        flex-wrap: wrap;
        gap: 0.5rem;
    }

    .cta-buttons {
        flex-direction: column;
    }

    .btn {
        width: 100%;
    }
}
