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

body {
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
    line-height: 1.6;
    color: #2c3e50;
    background: #fff;
    -webkit-font-smoothing: antialiased;
}

a {
    color: #1a5490;
    text-decoration: none;
    transition: color 0.2s;
}

a:hover {
    color: #0d3a66;
}

/* ============================================
   Header & Navigation
   ============================================ */
header {
    background: #fff;
    padding: 0 48px;
    height: 64px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    border-bottom: 1px solid rgba(0, 0, 0, 0.06);
    position: sticky;
    top: 0;
    z-index: 100;
    backdrop-filter: blur(12px);
    background: rgba(255, 255, 255, 0.92);
}

header .logo {
    display: flex;
    align-items: center;
    gap: 10px;
    font-size: 1.4em;
    color: #1a5490;
    font-weight: 700;
    text-decoration: none;
    letter-spacing: -0.02em;
}

header .logo img {
    width: 28px;
    height: 28px;
    border-radius: 6px;
}

nav {
    display: flex;
    gap: 32px;
}

nav a {
    color: #64748b;
    text-decoration: none;
    font-size: 0.9em;
    font-weight: 500;
    padding: 4px 0;
    border-bottom: 2px solid transparent;
    transition: color 0.2s, border-color 0.2s;
}

nav a:hover {
    color: #1a5490;
}

nav a.active {
    color: #1a5490;
    font-weight: 600;
    border-bottom-color: #1a5490;
}

.header-right {
    display: flex;
    align-items: center;
    gap: 24px;
}

/* ============================================
   Language Switcher
   ============================================ */
.lang-switcher {
    position: relative;
}

.lang-current {
    background: #f1f5f9;
    border: 1px solid rgba(0, 0, 0, 0.08);
    border-radius: 6px;
    padding: 5px 12px;
    font-size: 0.8em;
    font-weight: 600;
    color: #475569;
    cursor: pointer;
    font-family: inherit;
    transition: background 0.2s, border-color 0.2s;
    letter-spacing: 0.03em;
}

.lang-current:hover {
    background: #e2e8f0;
    border-color: rgba(0, 0, 0, 0.12);
}

.lang-dropdown {
    display: none;
    position: absolute;
    top: calc(100% + 8px);
    right: 0;
    background: #fff;
    border: 1px solid rgba(0, 0, 0, 0.08);
    border-radius: 10px;
    box-shadow: 0 8px 30px rgba(0, 0, 0, 0.1);
    min-width: 160px;
    padding: 6px;
    z-index: 200;
}

.lang-switcher:hover .lang-dropdown,
.lang-switcher:focus-within .lang-dropdown {
    display: block;
}

.lang-dropdown a {
    display: block;
    padding: 8px 14px;
    font-size: 0.88em;
    color: #475569;
    text-decoration: none;
    border-radius: 6px;
    transition: background 0.15s;
}

.lang-dropdown a:hover {
    background: #f1f5f9;
    color: #1e293b;
}

.lang-dropdown a.lang-active {
    color: #1a5490;
    font-weight: 600;
    background: #eff6ff;
}

/* ============================================
   Footer
   ============================================ */
footer {
    margin-top: 120px;
    padding: 48px;
    text-align: center;
    color: #94a3b8;
    font-size: 0.85em;
    border-top: 1px solid rgba(0, 0, 0, 0.06);
}

footer p {
    margin-bottom: 8px;
}

footer p:last-child {
    margin-bottom: 0;
}

footer a {
    color: #64748b;
}

footer a:hover {
    color: #1a5490;
}

/* ============================================
   Hero Section
   ============================================ */
.hero {
    text-align: center;
    padding: 100px 40px 80px;
    max-width: 720px;
    margin: 0 auto;
}

.hero-logo {
    width: 120px;
    height: 120px;
    border-radius: 24px;
    margin-bottom: 32px;
}

.hero h2,
.hero-title {
    font-size: 3.2em;
    color: #1e293b;
    margin-bottom: 24px;
    font-weight: 800;
    letter-spacing: -0.03em;
    line-height: 1.1;
}

.hero p {
    font-size: 1.25em;
    color: #64748b;
    margin-bottom: 48px;
    line-height: 1.7;
}

.cta-button {
    display: inline-block;
    background: #1a5490;
    color: #fff;
    padding: 14px 36px;
    border-radius: 8px;
    text-decoration: none;
    font-size: 1em;
    font-weight: 600;
    transition: background 0.2s, transform 0.2s, box-shadow 0.2s;
    box-shadow: 0 2px 8px rgba(26, 84, 144, 0.25);
}

.cta-button:hover {
    background: #0d3a66;
    color: #fff;
    transform: translateY(-1px);
    box-shadow: 0 4px 16px rgba(26, 84, 144, 0.35);
}

/* ============================================
   Features Grid
   ============================================ */
.features {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 32px;
    max-width: 900px;
    margin: 0 auto 100px;
    padding: 0 40px;
}

.feature {
    text-align: center;
    padding: 40px 24px;
    border-radius: 12px;
    border: 1px solid rgba(0, 0, 0, 0.06);
    transition: box-shadow 0.2s, transform 0.2s;
}

.feature:hover {
    box-shadow: 0 8px 30px rgba(0, 0, 0, 0.06);
    transform: translateY(-2px);
}

.feature .icon {
    font-size: 2em;
    margin-bottom: 16px;
    display: block;
}

.feature h3 {
    color: #1e293b;
    margin-bottom: 12px;
    font-size: 1.1em;
    font-weight: 700;
}

.feature p {
    color: #64748b;
    font-size: 0.92em;
    line-height: 1.6;
}

/* ============================================
   Screenshots Gallery
   ============================================ */
.screenshots {
    max-width: 1000px;
    margin: 0 auto 40px;
    padding: 0 40px;
}

.screenshots h3 {
    text-align: center;
    color: #1e293b;
    font-size: 2em;
    font-weight: 800;
    margin-bottom: 16px;
    letter-spacing: -0.02em;
}

.screenshots > p {
    text-align: center;
    color: #64748b;
    font-size: 1.1em;
    margin-bottom: 48px;
}

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

.gallery img {
    width: 100%;
    border-radius: 12px;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.08);
    transition: transform 0.2s, box-shadow 0.2s;
    cursor: pointer;
}

.gallery img:hover {
    transform: translateY(-4px);
    box-shadow: 0 12px 40px rgba(0, 0, 0, 0.12);
}

/* ============================================
   Languages
   ============================================ */
.languages {
    text-align: center;
    max-width: 720px;
    margin: 0 auto;
    padding: 0 40px;
}

.languages h3 {
    color: #1e293b;
    font-size: 1.4em;
    font-weight: 700;
    margin-bottom: 24px;
    letter-spacing: -0.01em;
}

.language-list {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 10px;
}

.language-list span {
    font-size: 0.88em;
    color: #475569;
    background: #f8fafc;
    border: 1px solid rgba(0, 0, 0, 0.06);
    padding: 6px 16px;
    border-radius: 20px;
}

/* ============================================
   Lightbox
   ============================================ */
.lightbox {
    display: none;
    position: fixed;
    inset: 0;
    background: rgba(0, 0, 0, 0.85);
    z-index: 1000;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    backdrop-filter: blur(4px);
}

.lightbox.active {
    display: flex;
}

.lightbox img {
    max-width: 90vw;
    max-height: 90vh;
    border-radius: 12px;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.4);
    animation: lightbox-in 0.2s ease;
}

@keyframes lightbox-in {
    from {
        opacity: 0;
        transform: scale(0.95);
    }
    to {
        opacity: 1;
        transform: scale(1);
    }
}

/* ============================================
   Page Header (About, Privacy)
   ============================================ */
.page-header {
    padding: 80px 40px 48px;
    text-align: center;
    max-width: 720px;
    margin: 0 auto;
}

.page-header h2 {
    font-size: 2.8em;
    color: #1e293b;
    font-weight: 800;
    letter-spacing: -0.03em;
    margin-bottom: 16px;
}

.page-header p {
    font-size: 1.15em;
    color: #64748b;
    line-height: 1.7;
}

/* ============================================
   Content Pages (About, Privacy)
   ============================================ */
.container {
    max-width: 720px;
    margin: 0 auto;
    padding: 0 40px 40px;
}

.container p {
    font-size: 1.05em;
    color: #475569;
    margin-bottom: 20px;
    line-height: 1.8;
}

.section {
    margin-bottom: 56px;
}

.section h3 {
    color: #1e293b;
    font-size: 1.4em;
    font-weight: 700;
    margin-bottom: 20px;
    letter-spacing: -0.01em;
}

/* ============================================
   About Page - Author
   ============================================ */
.author-card {
    display: flex;
    align-items: center;
    gap: 24px;
    background: linear-gradient(135deg, #f0f5fa 0%, #f8fafc 100%);
    border: 1px solid rgba(26, 84, 144, 0.1);
    border-radius: 16px;
    padding: 32px;
    margin-bottom: 56px;
}

img.author-avatar {
    width: 72px;
    height: 72px;
    border-radius: 16px;
    flex-shrink: 0;
    object-fit: cover;
}

.author-info h3 {
    color: #1e293b;
    font-size: 1.2em;
    font-weight: 700;
    margin-bottom: 4px;
}

.author-info p {
    color: #64748b;
    font-size: 0.95em;
    margin-bottom: 0;
}

.author-info a {
    font-size: 0.9em;
    font-weight: 500;
}

/* ============================================
   About Page - Values Grid
   ============================================ */
.values {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 20px;
    margin: 32px 0;
}

.value-item {
    background: #f8fafc;
    padding: 28px;
    border-radius: 12px;
    border: 1px solid rgba(0, 0, 0, 0.06);
    transition: box-shadow 0.2s;
}

.value-item:hover {
    box-shadow: 0 4px 16px rgba(0, 0, 0, 0.05);
}

.value-item h4 {
    color: #1a5490;
    margin-bottom: 8px;
    font-size: 1em;
    font-weight: 700;
}

.value-item p {
    margin-bottom: 0;
    font-size: 0.95em;
    color: #64748b;
}

/* ============================================
   About Page - CTA
   ============================================ */
.about-cta {
    text-align: center;
    padding: 48px;
    background: linear-gradient(135deg, #f0f5fa 0%, #f8fafc 100%);
    border-radius: 16px;
    border: 1px solid rgba(26, 84, 144, 0.1);
}

.about-cta p {
    color: #475569;
    margin-bottom: 24px;
    font-size: 1.1em;
}

.about-cta p:last-child {
    margin-bottom: 0;
}

/* ============================================
   Privacy Policy
   ============================================ */
.privacy-content section {
    margin-bottom: 40px;
}

.privacy-content h3 {
    font-size: 1.15em;
    color: #1e293b;
    font-weight: 700;
    margin-bottom: 16px;
}

.privacy-content ul {
    margin-left: 20px;
    margin-bottom: 16px;
}

.privacy-content li {
    margin-bottom: 10px;
    color: #475569;
    font-size: 1.05em;
    line-height: 1.7;
}

.privacy-content strong {
    color: #1e293b;
}

.callout {
    background: linear-gradient(135deg, #f0f5fa 0%, #f8fafc 100%);
    padding: 24px;
    border-left: 3px solid #1a5490;
    border-radius: 0 12px 12px 0;
    margin: 32px 0;
}

.callout p {
    margin-bottom: 0;
}

.contact-info {
    background: #f8fafc;
    padding: 20px 24px;
    border-radius: 10px;
    margin-top: 16px;
    border: 1px solid rgba(0, 0, 0, 0.06);
}

.contact-info p {
    margin: 4px 0;
    font-size: 0.95em;
}

.last-updated {
    color: #94a3b8;
    font-size: 0.9em;
    margin-bottom: 48px;
}

/* ============================================
   Changelog
   ============================================ */
.timeline {
    margin-bottom: 64px;
}

.release {
    padding: 40px 0;
    border-bottom: 1px solid rgba(0, 0, 0, 0.06);
}

.release:first-child {
    padding-top: 0;
}

.release:last-child {
    border-bottom: none;
}

.release-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 16px;
    gap: 16px;
}

.release-header > div {
    display: flex;
    align-items: center;
    gap: 12px;
}

.release-version {
    font-size: 1.5em;
    font-weight: 800;
    color: #1a5490;
    letter-spacing: -0.02em;
}

.release-tag {
    font-size: 0.7em;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    background: #1a5490;
    color: #fff;
    padding: 3px 10px;
    border-radius: 20px;
}

.release-date {
    font-size: 0.9em;
    color: #94a3b8;
    white-space: nowrap;
}

.release h3 {
    font-size: 1.3em;
    color: #1e293b;
    font-weight: 700;
    margin-bottom: 12px;
    letter-spacing: -0.01em;
}

.release > p {
    color: #475569;
    font-size: 1.05em;
    line-height: 1.8;
    margin-bottom: 24px;
}

.release-changes {
    list-style: none;
    margin: 0;
    padding: 0;
}

.release-changes li {
    padding: 10px 0;
    color: #475569;
    font-size: 0.95em;
    line-height: 1.6;
    border-top: 1px solid rgba(0, 0, 0, 0.04);
    display: flex;
    align-items: baseline;
    gap: 12px;
}

.release-changes li:first-child {
    border-top: none;
}

.change-tag {
    font-size: 0.7em;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.04em;
    padding: 2px 8px;
    border-radius: 4px;
    white-space: nowrap;
    flex-shrink: 0;
}

.tag-new {
    background: #ecfdf5;
    color: #059669;
}

.tag-improved {
    background: #eff6ff;
    color: #2563eb;
}

.tag-fixed {
    background: #fefce8;
    color: #ca8a04;
}

.release-latest {
    background: linear-gradient(135deg, #f0f5fa 0%, #f8fafc 100%);
    border: 1px solid rgba(26, 84, 144, 0.1);
    border-radius: 16px;
    padding: 40px;
    border-bottom: none;
    margin-bottom: 8px;
}

/* ============================================
   Responsive
   ============================================ */
@media (max-width: 768px) {
    header {
        padding: 0 16px;
        height: auto;
        min-height: 56px;
        flex-wrap: wrap;
        gap: 8px;
        padding-top: 12px;
        padding-bottom: 12px;
    }

    header .logo {
        font-size: 1.2em;
    }

    .header-right {
        gap: 16px;
        width: 100%;
        justify-content: space-between;
    }

    nav {
        gap: 16px;
    }

    nav a {
        font-size: 0.82em;
    }

    .lang-dropdown {
        right: 0;
        left: auto;
    }

    .hero {
        padding: 60px 24px 48px;
    }

    .hero h2,
    .hero-title {
        font-size: 2.2em;
    }

    .hero p {
        font-size: 1.05em;
    }

    .features {
        grid-template-columns: 1fr;
        gap: 16px;
        padding: 0 24px;
        margin-bottom: 64px;
    }

    .feature {
        padding: 28px 20px;
    }

    .screenshots {
        padding: 0 24px;
    }

    .screenshots h3 {
        font-size: 1.6em;
    }

    .gallery {
        grid-template-columns: 1fr;
        gap: 16px;
    }

    .page-header {
        padding: 48px 24px 32px;
    }

    .page-header h2 {
        font-size: 2em;
    }

    .container {
        padding: 0 24px 24px;
    }

    .author-card {
        flex-direction: column;
        text-align: center;
        padding: 28px 24px;
    }

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

    .about-cta {
        padding: 32px 24px;
    }

    .release-header {
        flex-direction: column;
        align-items: flex-start;
        gap: 8px;
    }

    .release-latest {
        padding: 28px 24px;
    }

    .release-changes li {
        flex-direction: column;
        gap: 6px;
    }

    .change-tag {
        align-self: flex-start;
    }

    footer {
        margin-top: 80px;
        padding: 32px 24px;
    }
}
