:root {
    --primary-color: #06B025;
    --primary-hover: #059920;
    --text-color: #222;
    --bg-color: #fff;
    --gray-bg: #f5f5f5;
    --light-gray: #999;
}

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

body {
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
    color: var(--text-color);
    line-height: 1.6;
    background-color: var(--bg-color);
}

a {
    text-decoration: none;
    color: inherit;
}

ul {
    list-style: none;
}

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

/* Navbar */
.navbar {
    background-color: var(--bg-color);
    padding: 12px 0;
    position: sticky;
    top: 0;
    z-index: 1000;
    box-shadow: 0 1px 4px rgba(0,0,0,0.06);
}

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

.logo {
    display: flex;
    align-items: center;
    gap: 10px;
}

.logo-img {
    width: 32px;
    height: 32px;
}

.logo-text {
    font-weight: bold;
    font-size: 1.2rem;
    color: var(--primary-color);
}

.nav-links {
    display: flex;
    gap: 20px;
}

.nav-links a {
    color: var(--primary-color);
    font-weight: 500;
    font-size: 0.9rem;
}

.nav-links a:hover {
    text-decoration: underline;
}

/* Hero Section */
.hero {
    padding: 40px 0;
    text-align: center;
    background-color: var(--bg-color);
}

.hero-content {
    display: flex;
    justify-content: center;
    align-items: center;
    position: relative;
    text-align: center;
}

.hero-text {
    margin: 0 auto;
}

.hero-logo {
    width: 100px;
    height: 100px;
    margin-bottom: 15px;
}

.hero h1 {
    font-size: 2.5rem;
    margin-bottom: 8px;
    font-weight: bold;
    color: #333;
}

.hero p {
    font-size: 1.2rem;
    color: #888;
    margin-bottom: 20px;
    font-weight: 300;
}

.hero-download {
    margin-top: 20px;
}

/* Changelog Section */
.hero-changelog {
    position: absolute;
    right: -100px;
    top: 50%;
    transform: translateY(-50%);
    width: 250px;
    text-align: left;
    padding-left: 20px;
    border-left: 4px solid var(--primary-color);
    height: 300px;
    overflow: hidden;
}

.changelog-title {
    color: var(--primary-color);
    font-size: 1.5rem;
    margin-bottom: 15px;
    font-weight: bold;
}

.changelog-container {
    height: 260px;
    overflow: hidden;
    position: relative;
}

.changelog-scroll {
    animation: scrollUp 25s linear infinite;
}

.changelog-item {
    margin-bottom: 20px;
    display: block;
    text-decoration: none;
    cursor: pointer;
    transition: opacity 0.3s;
}

.changelog-item:hover {
    opacity: 0.8;
}

.changelog-date {
    font-weight: bold;
    color: #333;
    display: block;
    margin-bottom: 4px;
}

.changelog-item p {
    font-size: 0.95rem;
    color: var(--primary-color);
    margin: 0;
    line-height: 1.4;
}

@keyframes scrollUp {
    0% {
        transform: translateY(0);
    }
    100% {
        transform: translateY(-50%);
    }
}

/* Responsive adjustments for Hero */
@media (max-width: 768px) {
    .hero-content {
        flex-direction: column;
        text-align: center;
    }
    
    .hero-changelog {
        width: 100%;
        max-width: 300px;
        position: relative;
        right: auto;
        top: auto;
        transform: none;
        border-left: 4px solid var(--primary-color);
        margin-top: 20px;
    }
}

.btn {
    display: inline-block;
    padding: 12px 30px;
    border-radius: 25px;
    font-weight: bold;
    transition: background 0.3s;
    font-size: 0.9rem;
}

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

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

/* Unified Download Button Style */
.btn-capsule {
    text-transform: none;
    font-size: 1.1rem;
    padding: 14px 45px;
    border-radius: 50px;
    background-color: var(--primary-color);
    font-weight: 500;
    display: inline-block;
    color: #fff;
}

.btn-capsule:hover {
    background-color: var(--primary-hover);
    text-decoration: none;
}

.btn-capsule strong {
    font-weight: 900;
}

/* Product Showcase */
.product-showcase {
    padding: 20px 0 0;
    background-color: #fff;
}

.showcase-wrapper {
    max-width: 480px;
    margin: 0 auto;
    text-align: center;
}

.showcase-img {
    width: 100%;
    height: auto;
    border-radius: 16px;
    box-shadow: 0 8px 30px rgba(0,0,0,0.08);
}

/* Download Section */
.download-section {
    padding: 60px 0;
    background-color: #fff;
    border-top: 1px solid #eef2f5;
}

.download-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 24px;
    max-width: 800px;
    margin: 0 auto;
}

@media (max-width: 600px) {
    .download-grid {
        grid-template-columns: 1fr;
    }
}

.dl-item {
    display: flex;
    align-items: center;
    gap: 16px;
    background: var(--gray-bg);
    border-radius: 16px;
    padding: 24px;
    transition: box-shadow 0.3s, transform 0.2s;
    scroll-margin-top: 80px;
}

.dl-item:hover {
    box-shadow: 0 6px 20px rgba(0,0,0,0.08);
    transform: translateY(-2px);
}

.dl-item-icon {
    font-size: 2.2rem;
    color: var(--primary-color);
    width: 50px;
    text-align: center;
    flex-shrink: 0;
}

.dl-item-info {
    flex: 1;
    min-width: 0;
}

.dl-item-name {
    font-size: 1.05rem;
    font-weight: 700;
    color: #222;
    margin-bottom: 2px;
}

.dl-item-meta {
    font-size: 0.82rem;
    color: #999;
}

.dl-btn {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 10px 22px;
    border-radius: 50px;
    background-color: var(--primary-color);
    color: #fff;
    font-weight: 600;
    font-size: 0.9rem;
    white-space: nowrap;
    transition: background-color 0.3s;
    text-decoration: none;
    flex-shrink: 0;
}

.dl-btn:hover {
    background-color: var(--primary-hover);
    text-decoration: none;
    color: #fff;
}

.dl-btn i {
    font-size: 0.85rem;
}

/* Recent News Section */
.recent-news {
    padding: 60px 0;
    background-color: #fff;
    border-top: 1px solid #eef2f5;
}

.news-grid {
    display: flex;
    justify-content: center;
    gap: 40px;
    flex-wrap: wrap;
}

.news-card {
    flex: 0 1 450px;
    display: flex;
    flex-direction: column;
    text-align: left;
}

.news-image {
    width: 100%;
    height: auto;
    border-radius: 10px;
    margin-bottom: 15px;
    box-shadow: 0 4px 10px rgba(0,0,0,0.05);
}

.news-content h3 {
    font-size: 1.2rem;
    color: var(--primary-color);
    margin-bottom: 8px;
    font-weight: bold;
}

.news-content p {
    font-size: 0.95rem;
    color: #555;
    margin-bottom: 10px;
    line-height: 1.5;
}

.news-date {
    font-size: 0.85rem;
    color: #999;
    font-weight: 500;
}

/* Features Section */
.features {
    padding: 60px 0;
    background-color: #fff;
    border-top: 1px solid #eef2f5;
}

.section-title {
    text-align: center;
    margin-bottom: 50px;
    font-size: 2rem;
    color: var(--primary-color);
}

.features-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 40px;
}

.feature-card {
    text-align: center;
    padding: 20px;
    text-decoration: none;
    display: block;
    transition: transform 0.3s, box-shadow 0.3s;
    border-radius: 12px;
}

.feature-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 5px 15px rgba(0,0,0,0.05);
    background-color: #fcfcfc;
}

.feature-icon {
    width: auto;
    height: 100px;
    margin-bottom: 20px;
    object-fit: contain;
}

.feature-icon-fa {
    width: 80px;
    height: 80px;
    border-radius: 50%;
    background: linear-gradient(135deg, #06B025, #7ae88d);
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 20px;
}

.feature-icon-fa i {
    font-size: 2rem;
    color: #fff;
}

.feature-card h3 {
    margin-bottom: 10px;
    font-size: 1.3rem;
    color: #222;
}

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

/* Footer */
.footer {
    background-color: var(--gray-bg);
    padding: 40px 0 20px;
    font-size: 0.9rem;
    margin-top: 40px;
}

.footer-links {
    display: flex;
    justify-content: space-around;
    flex-wrap: wrap;
    margin-bottom: 40px;
}

.footer-col {
    display: flex;
    flex-direction: column;
    gap: 10px;
    min-width: 150px;
    margin-bottom: 20px;
}

.footer-col h4 {
    margin-bottom: 10px;
    color: var(--text-color);
}

.footer-col a {
    color: var(--primary-color);
}

.footer-description {
    text-align: center;
    color: var(--light-gray);
    font-size: 0.85rem;
    margin-bottom: 15px;
    padding: 0 20px;
}

.copyright {
    text-align: center;
    color: var(--light-gray);
    font-size: 0.8rem;
    border-top: 1px solid #e0e0e0;
    padding-top: 20px;
}

/* Blog Page Styles */
.blog-container {
    max-width: 720px;
    margin: 40px auto;
    padding: 0 20px;
}

.blog-post {
    margin-bottom: 60px;
    scroll-margin-top: 80px;
}

.blog-title {
    font-size: 2.2rem;
    font-weight: bold;
    color: #333;
    margin-bottom: 10px;
    line-height: 1.3;
}

.blog-meta {
    margin-bottom: 25px;
}

.blog-date {
    color: #888;
    font-size: 0.95rem;
}

.blog-header-image {
    width: 100%;
    height: auto;
    border-radius: 12px;
    margin-bottom: 30px;
    box-shadow: 0 4px 15px rgba(0,0,0,0.1);
}

.blog-icon-header {
    max-width: 280px;
    margin: 0 auto 30px;
    display: block;
    border-radius: 24px;
    box-shadow: 0 4px 15px rgba(0,0,0,0.1);
}

.blog-content {
    font-size: 1.1rem;
    line-height: 1.8;
    color: #333;
}

.blog-content p {
    margin-bottom: 25px;
}

.blog-content h2 {
    font-size: 1.5rem;
    color: var(--primary-color);
    margin-top: 40px;
    margin-bottom: 20px;
    font-weight: bold;
}

.blog-inline-image {
    width: 100%;
    max-width: 600px;
    display: block;
    margin: 30px auto;
    border-radius: 8px;
    box-shadow: 0 2px 10px rgba(0,0,0,0.05);
}

.blog-divider {
    border: 0;
    height: 1px;
    background-image: linear-gradient(to right, rgba(0, 0, 0, 0), rgba(0, 0, 0, 0.1), rgba(0, 0, 0, 0));
    margin: 60px 0;
}

/* Responsive */
@media (max-width: 768px) {
    .nav-links {
        display: none;
    }
    
    .hero h1 {
        font-size: 2rem;
    }

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

    .dl-item {
        flex-wrap: wrap;
        justify-content: center;
        text-align: center;
    }

    .dl-item-info {
        text-align: center;
        width: 100%;
    }
}