/* Reset and Base Styles */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

:root {
    --primary-color: #ffffff;
    --text-dark: #f5f5f5;
    --text-light: #b0b0b0;
    --bg-light: #242424;
    --bg-white: #242424;
    --border-color: #3a3a3a;
    --shadow: 0 2px 4px rgba(0, 0, 0, 0.3);
}

body {
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, 'Helvetica Neue', Arial, sans-serif;
    line-height: 1.8;
    color: var(--text-dark);
    background: var(--bg-white);
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 40px;
}

/* Navigation */
.navbar {
    background: var(--bg-white);
    border-bottom: 1px solid var(--border-color);
    position: sticky;
    top: 0;
    z-index: 1000;
    padding: 1.5rem 0;
}

.navbar .container {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.nav-brand a {
    text-decoration: none;
    display: flex;
    align-items: center;
}

.brand-logo {
    height: 40px;
    width: auto;
    display: block;
}

.nav-brand h1 {
    font-size: 1.5rem;
    color: var(--text-dark);
    font-weight: 600;
}

.nav-menu {
    display: flex;
    list-style: none;
    gap: 2rem;
}

.nav-menu a {
    text-decoration: none;
    color: var(--text-dark);
    font-weight: 400;
    transition: color 0.2s;
}

.nav-menu a:hover {
    color: var(--text-light);
}

.mobile-menu-toggle {
    display: none;
    flex-direction: column;
    background: none;
    border: none;
    cursor: pointer;
    gap: 4px;
}

.mobile-menu-toggle span {
    width: 25px;
    height: 2px;
    background: var(--text-dark);
    transition: all 0.3s;
}

/* Hero Section */
.hero {
    padding: 100px 0;
    background: var(--bg-white);
}

.hero-title {
    font-size: 3.5rem;
    font-weight: 600;
    margin-bottom: 1.5rem;
    color: var(--text-dark);
    letter-spacing: -0.02em;
}

.hero-subtitle {
    font-size: 1.25rem;
    color: var(--text-light);
    line-height: 1.8;
}

/* Software Grid */
.software-grid-section {
    padding: 100px 0;
    background: var(--bg-light);
}

/* App Banner (single software showcase) */
.app-banner {
    display: flex;
    gap: 2rem;
    align-items: center;
}

.banner-image {
    flex: 0 0 280px;
    height: 200px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.banner-image img {
    width: 100%;
    height: 100%;
    object-fit: contain;
    object-position: center;
    border-radius: 8px;
    padding: 12px;
    box-sizing: border-box;
}

.banner-content {
    flex: 1 1 auto;
}

.banner-content h1 {
    font-size: 2.5rem;
    font-weight: 600;
    margin: 0 0 0.5rem 0;
    color: var(--text-dark);
}

.banner-description {
    font-size: 1.1rem;
    color: var(--text-light);
    margin: 0 0 1.5rem 0;
    line-height: 1.6;
}

.banner-actions {
    display: flex;
    gap: 0.75rem;
}

.banner-actions .btn {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    padding: 12px 20px;
    position: relative;
}

/* Disabled button state */
.btn[data-disabled="true"] {
    opacity: 0.5;
    cursor: not-allowed;
    pointer-events: none;
}

.btn[data-disabled="true"]::after {
    content: attr(data-disabled-tooltip);
    position: absolute;
    bottom: 100%;
    left: 50%;
    transform: translateX(-50%);
    background: rgba(0, 0, 0, 0.8);
    color: var(--primary-color);
    padding: 6px 10px;
    border-radius: 4px;
    font-size: 0.8rem;
    white-space: nowrap;
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.2s;
    margin-bottom: 8px;
}

.btn[data-disabled="true"]:hover::after {
    opacity: 1;
}

.btn-icon-img {
    width: 20px;
    height: 20px;
    object-fit: contain;
}

@media (max-width: 900px) {
    .app-banner {
        flex-direction: column;
        text-align: center;
    }

    .banner-image { flex: none; width: 100%; max-width: 240px; margin: 0 auto; }

    .banner-actions {
        justify-content: center;
    }

    .banner-content h1 {
        font-size: 1.8rem;
    }
}

.software-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(320px, 1fr));
    gap: 3rem;
}


.software-card {
    background: var(--bg-white);
    border: 1px solid var(--border-color);
    border-radius: 12px;
    overflow: hidden;
    transition: box-shadow 0.2s, transform 0.2s;
}

.software-card:hover {
    box-shadow: var(--shadow);
    transform: translateY(-4px);
}

.software-image {
    width: 100%;
    height: 240px;
    background: var(--bg-light);
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
}

.software-thumbnail {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

.image-placeholder {
    width: 100%;
    height: 100%;
    background: var(--bg-light);
}

.software-info {
    padding: 2rem;
}

.software-info h2 {
    font-size: 1.75rem;
    font-weight: 600;
    margin-bottom: 0.75rem;
    color: var(--text-dark);
    letter-spacing: -0.01em;
    display: flex;
    align-items: baseline;
    gap: 0.5rem;
}

.software-version {
    font-size: 0.875rem;
    font-weight: 400;
    color: var(--text-light);
    letter-spacing: 0;
}

.software-description {
    color: var(--text-light);
    margin-bottom: 1.5rem;
    min-height: 40px;
    line-height: 1.7;
}

.software-downloads {
    display: flex;
    gap: 0.75rem;
    margin-top: 1rem;
}

.btn-download-small {
    flex: 1;
    padding: 12px;
    text-align: center;
    display: flex;
    align-items: center;
    justify-content: center;
    min-height: 48px;
}

.platform-logo {
    width: 28px;
    height: 28px;
    object-fit: contain;
    display: block;
    flex-shrink: 0;
    margin: 0 auto;
}

/* Product Page */
.product-header {
    padding: 100px 0;
    background: var(--bg-white);
    border-bottom: 1px solid var(--border-color);
}

.product-header-content {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 4rem;
    align-items: center;
}

.product-image-large {
    width: 100%;
    height: 450px;
    background: var(--bg-light);
    border-radius: 12px;
    overflow: hidden;
}

.product-image-large .image-placeholder {
    width: 100%;
    height: 100%;
    background: var(--bg-light);
}

.product-header-info h1 {
    font-size: 3rem;
    font-weight: 600;
    margin-bottom: 1.5rem;
    color: var(--text-dark);
    letter-spacing: -0.02em;
}

.product-tagline {
    font-size: 1.25rem;
    color: var(--text-light);
    margin-bottom: 2.5rem;
    min-height: 24px;
    line-height: 1.7;
}

.product-description {
    padding: 100px 0;
    background: var(--bg-white);
}

.description-content {
    max-width: 800px;
}

.description-content h2 {
    font-size: 2.5rem;
    font-weight: 600;
    margin-bottom: 2rem;
    color: var(--text-dark);
    letter-spacing: -0.02em;
}

.description-text p {
    font-size: 1.15rem;
    color: var(--text-light);
    line-height: 1.9;
    min-height: 24px;
    margin-bottom: 1.5rem;
}

.product-features {
    padding: 100px 0;
    background: var(--bg-light);
}

.product-features h2 {
    font-size: 2.5rem;
    font-weight: 600;
    margin-bottom: 3rem;
    color: var(--text-dark);
    letter-spacing: -0.02em;
}

.features-list {
    display: grid;
    gap: 2.5rem;
}

.feature-item {
    background: var(--bg-white);
    padding: 2.5rem;
    border: 1px solid var(--border-color);
    border-radius: 12px;
}

.feature-item h3 {
    font-size: 1.5rem;
    font-weight: 600;
    margin-bottom: 0.75rem;
    color: var(--text-dark);
    min-height: 28px;
    letter-spacing: -0.01em;
}

.feature-item p {
    color: var(--text-light);
    min-height: 24px;
    line-height: 1.7;
}

/* Download Section */
.download-section {
    padding: 100px 0;
    background: var(--bg-white);
}

.download-section h2 {
    font-size: 2.5rem;
    font-weight: 600;
    margin-bottom: 3rem;
    color: var(--text-dark);
    letter-spacing: -0.02em;
}

.download-options {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 2.5rem;
    margin-bottom: 4rem;
}

.download-option {
    background: var(--bg-light);
    padding: 2.5rem;
    border: 1px solid var(--border-color);
    border-radius: 12px;
    text-align: center;
}

.download-option h3 {
    font-size: 1.5rem;
    font-weight: 600;
    margin-bottom: 0.75rem;
    color: var(--text-dark);
    letter-spacing: -0.01em;
}

.version {
    color: var(--text-light);
    margin-bottom: 2rem;
    min-height: 20px;
}

.file-size {
    color: var(--text-light);
    font-size: 0.95rem;
    margin-top: 1rem;
    min-height: 20px;
}

.release-notes {
    background: var(--bg-light);
    padding: 2.5rem;
    border: 1px solid var(--border-color);
    border-radius: 12px;
}

.release-notes h3 {
    font-size: 1.3rem;
    font-weight: 600;
    margin-bottom: 1rem;
    color: var(--text-dark);
}

.release-notes ul {
    list-style: none;
    padding-left: 0;
}

.release-notes li {
    padding: 0.5rem 0;
    padding-left: 1.5rem;
    position: relative;
    color: var(--text-light);
}

.release-notes li::before {
    content: "—";
    position: absolute;
    left: 0;
    color: var(--text-light);
}

/* Page Content */
.page-content {
    padding: 100px 0;
    background: var(--bg-white);
}

.page-content h1 {
    font-size: 3rem;
    font-weight: 600;
    margin-bottom: 2.5rem;
    color: var(--text-dark);
    letter-spacing: -0.02em;
}

.content-text p {
    font-size: 1.15rem;
    color: var(--text-light);
    line-height: 1.9;
    margin-bottom: 2rem;
    min-height: 24px;
}

.content-text h2 {
    font-size: 1.5rem;
    font-weight: 600;
    margin-top: 2.5rem;
    margin-bottom: 1rem;
    color: var(--text-dark);
    letter-spacing: -0.01em;
}

.content-text strong {
    color: var(--text-dark);
    font-weight: 600;
}

.policy-list {
    list-style: none;
    padding-left: 0;
    margin: 1.5rem 0;
}

.policy-list li {
    padding: 0.5rem 0;
    padding-left: 1.5rem;
    position: relative;
    color: var(--text-light);
    font-size: 1.15rem;
    line-height: 1.7;
}

.policy-list li::before {
    content: "•";
    position: absolute;
    left: 0;
    color: var(--text-light);
}

.content-text a {
    color: var(--text-dark);
    text-decoration: underline;
    transition: color 0.2s;
}

.content-text a:hover {
    color: var(--text-light);
}

/* Boxed content area for pages (privacy, terms, about) */
.page-content .content-text {
    background: rgba(255,255,255,0.02);
    border: 1px solid var(--border-color);
    padding: 2.25rem;
    border-radius: 12px;
    box-shadow: 0 6px 18px rgba(0,0,0,0.25);
}

@media (max-width: 768px) {
    .page-content .content-text {
        padding: 1.25rem;
        margin: 0 0.5rem;
    }
}

/* Screenshots Section */
.screenshots-section {
    padding: 80px 0;
    background: var(--bg-white);
}

.screenshots-section h2 {
    font-size: 2rem;
    font-weight: 600;
    margin-bottom: 3rem;
    color: var(--text-dark);
    text-align: center;
    letter-spacing: -0.02em;
}

.screenshots-gallery {
    display: flex;
    flex-direction: column;
    gap: 2.5rem;
    max-width: 1000px;
    margin: 0 auto;
}

.screenshot-item {
    width: 100%;
    border: 1px solid var(--border-color);
    border-radius: 12px;
    overflow: hidden;
    background: var(--bg-white);
}

.screenshot-item img {
    width: 100%;
    height: auto;
    display: block;
    object-fit: cover;
}

@media (max-width: 768px) {
    .screenshots-section {
        padding: 60px 0;
    }

    .screenshots-gallery {
        gap: 1.5rem;
    }
}

/* Buttons */
.btn {
    display: inline-block;
    padding: 14px 32px;
    border-radius: 8px;
    text-decoration: none;
    font-weight: 500;
    transition: all 0.2s;
    border: none;
    cursor: pointer;
    font-size: 1rem;
    background: var(--primary-color);
    color: var(--bg-white);
}

.btn:hover {
    opacity: 0.8;
}

.btn-primary {
    background: var(--primary-color);
    color: var(--bg-white);
}

.btn-primary:hover {
    opacity: 0.9;
}

.btn-download {
    background: var(--primary-color);
    color: var(--bg-white);
    width: 100%;
    text-align: center;
    display: block;
}


/* Footer */
.footer {
    background: var(--bg-light);
    color: var(--text-dark);
    padding: 4rem 0 2rem;
    margin-top: 100px;
    border-top: 1px solid var(--border-color);
}

.footer-content {
    display: grid;
    grid-template-columns: 2fr 1fr 1fr;
    gap: 4rem;
}

.footer-brand {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
}

.footer-brand h3 {
    font-size: 1.1rem;
    font-weight: 600;
    color: var(--text-dark);
    margin: 0 0 0.25rem 0;
    letter-spacing: -0.01em;
}

.footer-socials {
    display: flex;
    gap: 0.5rem;
}

.social-icon {
    width: 32px;
    height: 32px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: var(--bg-white);
    border: 1px solid var(--border-color);
    border-radius: 4px;
    text-decoration: none;
    transition: all 0.2s;
    padding: 6px;
}

.social-icon img {
    width: 100%;
    height: 100%;
    object-fit: contain;
    filter: brightness(0) invert(1);
    opacity: 0.7;
}

.social-icon:hover {
    background: var(--border-color);
}

.social-icon:hover img {
    opacity: 1;
}

.footer-copyright {
    color: var(--text-light);
    font-size: 0.875rem;
    margin: 0;
}

.footer-section h4 {
    font-size: 1rem;
    font-weight: 600;
    margin-bottom: 1.25rem;
    color: var(--text-dark);
    letter-spacing: -0.01em;
}

.footer-section ul {
    list-style: none;
    padding: 0;
    margin: 0;
}

.footer-section ul li {
    margin-bottom: 0.4rem;
}

.footer-section a {
    color: var(--text-light);
    text-decoration: none;
    font-size: 0.875rem;
    transition: color 0.2s;
}

.footer-section a:hover {
    color: var(--text-dark);
}

/* Responsive Design */
@media (max-width: 768px) {
    .nav-menu {
        position: fixed;
        top: 70px;
        left: -100%;
        width: 100%;
        height: calc(100vh - 70px);
        background: var(--bg-white);
        flex-direction: column;
        padding: 2rem;
        border-top: 1px solid var(--border-color);
        transition: left 0.3s;
    }

    .nav-menu.active {
        left: 0;
    }

    .mobile-menu-toggle {
        display: flex;
    }

    .mobile-menu-toggle.active span:nth-child(1) {
        transform: rotate(45deg) translate(8px, 8px);
    }

    .mobile-menu-toggle.active span:nth-child(2) {
        opacity: 0;
    }

    .mobile-menu-toggle.active span:nth-child(3) {
        transform: rotate(-45deg) translate(7px, -7px);
    }

    .hero-title {
        font-size: 2rem;
    }

    .product-header-content {
        grid-template-columns: 1fr;
    }

    .product-image-large {
        height: 300px;
    }

    .software-grid {
        grid-template-columns: 1fr;
    }

    .download-options {
        grid-template-columns: 1fr;
    }

    .footer-content {
        grid-template-columns: 1fr;
        gap: 2.5rem;
    }

    .footer-brand {
        gap: 1.25rem;
    }
}
