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

body {
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Oxygen, Ubuntu, Cantarell, sans-serif;
    line-height: 1.6;
    color: #333;
    background-color: #f5f5f5;
}

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

header {
    background: #257ed8;
    color: white;
    padding: 8px 12px;
    text-align: center;
    box-shadow: 0 2px 10px rgba(0,0,0,0.1);
}

.main-logo {
    width: 80px;
    height: 80px;
    margin: 0 auto 8px;
    display: block;
}

header h1 {
    font-size: 1.75em;
    margin-bottom: 4px;
}

header .tagline {
    font-size: 1rem;
    opacity: 0.9;
    margin-bottom: 4px;
}

header .version {
    display: inline-block;
    background: rgba(255,255,255,0.2);
    padding: 3px 10px;
    border-radius: 20px;
    font-size: 0.8em;
    margin-top: 4px;
}

.download-btn {
    display: inline-block;
    margin-top: 12px;
    padding: 10px 24px;
    background: white;
    color: #257ed8;
    text-decoration: none;
    font-weight: 600;
    border-radius: 6px;
    font-size: 1rem;
    transition: background 0.2s, color 0.2s;
}

.download-btn:hover {
    background: rgba(255,255,255,0.9);
    color: #1a5fa8;
}

.download-section {
    background: #f8f9fa;
    padding: 1.5rem;
    border-radius: 6px;
    border-left: 4px solid #257ed8;
}

.download-section h3 {
    margin-top: 0;
}

.download-section .download-btn {
    margin-top: 0.5rem;
    display: inline-block;
}

nav {
    background: white;
    padding: 8px 0;
    box-shadow: 0 2px 5px rgba(0,0,0,0.1);
    margin-bottom: 16px;
}

nav ul {
    list-style: none;
    display: flex;
    justify-content: center;
    gap: 16px;
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 12px;
}

nav a {
    color: #1976D2;
    text-decoration: none;
    font-weight: 500;
    transition: color 0.3s;
}

nav a:hover {
    color: #0D47A1;
}

main {
    background: white;
    padding: 16px 20px;
    border-radius: 6px;
    box-shadow: 0 2px 10px rgba(0,0,0,0.1);
    margin-bottom: 16px;
}

section {
    margin-bottom: 20px;
}

section h2 {
    color: #1976D2;
    font-size: 1.35em;
    margin-bottom: 10px;
    padding-bottom: 6px;
    border-bottom: 2px solid #e0e0e0;
}

section h3 {
    color: #333;
    font-size: 1.1em;
    margin: 12px 0 8px;
}

section p {
    margin-bottom: 10px;
    color: #444;
}

section ul {
    margin: 8px 0 12px 20px;
}

section li {
    margin-bottom: 6px;
}

.back-link {
    display: inline-block;
    color: #1976D2;
    text-decoration: none;
    margin-bottom: 16px;
    font-weight: 500;
}

.back-link:hover {
    text-decoration: underline;
}

footer {
    text-align: center;
    padding: 16px;
    color: #777;
    font-size: 0.9em;
}

footer a {
    color: #1976D2;
    text-decoration: none;
}

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

.feature-box {
    background: #f8f9fa;
    padding: 1rem 1.25rem;
    border-radius: 6px;
    border-left: 4px solid #1976D2;
}

.feature-box ul {
    margin: 0;
    padding-left: 1.25rem;
}

.feature-box li {
    margin-bottom: 0.5rem;
}

.disclaimer {
    font-size: 0.9em;
    color: #666;
    font-style: italic;
}

.screenshots-hint {
    font-size: 0.9em;
    color: #666;
    margin-bottom: 0.75rem;
}

.screenshots {
    display: flex;
    flex-wrap: wrap;
    gap: 1rem;
    margin-top: 0.5rem;
}

.screenshots figure {
    margin: 0;
    flex: 0 0 auto;
    width: 140px;
}

.screenshots .screenshot-link {
    display: block;
    cursor: pointer;
    text-decoration: none;
}

.screenshots .screenshot-link:focus {
    outline: 2px solid #1976D2;
    outline-offset: 2px;
}

.screenshots img {
    width: 140px;
    height: auto;
    display: block;
    border-radius: 6px;
    box-shadow: 0 2px 6px rgba(0,0,0,0.12);
    border: 1px solid #e0e0e0;
    transition: box-shadow 0.2s;
}

.screenshots .screenshot-link:hover img {
    box-shadow: 0 4px 12px rgba(0,0,0,0.2);
}

.screenshots figcaption {
    font-size: 0.75em;
    color: #555;
    margin-top: 0.4rem;
    line-height: 1.3;
}

/* Lightbox */
.lightbox {
    display: none;
    position: fixed;
    inset: 0;
    z-index: 9999;
    background: rgba(0,0,0,0.9);
    align-items: center;
    justify-content: center;
    padding: 2rem;
}

.lightbox.lightbox-open {
    display: flex;
}

.lightbox-img {
    max-width: 95vw;
    max-height: 95vh;
    width: auto;
    height: auto;
    border-radius: 4px;
    box-shadow: 0 4px 24px rgba(0,0,0,0.5);
}

.lightbox-close {
    position: absolute;
    top: 1rem;
    right: 1rem;
    width: 2.5rem;
    height: 2.5rem;
    padding: 0;
    font-size: 1.75rem;
    line-height: 1;
    color: #fff;
    background: rgba(255,255,255,0.15);
    border: none;
    border-radius: 50%;
    cursor: pointer;
    transition: background 0.2s;
}

.lightbox-close:hover {
    background: rgba(255,255,255,0.3);
}
