* {
    box-sizing: border-box;
}

html {
    font-family:
        Inter,
        -apple-system,
        BlinkMacSystemFont,
        "Segoe UI",
        sans-serif;
    color: #202124;
    background: #ffffff;
}

body {
    margin: 0;
    background: #fff;
}

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

.container {
    width: min(1200px, calc(100% - 40px));
    margin: 0 auto;
}

.site-header {
    border-bottom: 1px solid #e5e7eb;
    background: #fff;
}

.header-inner {
    min-height: 74px;
    display: flex;
    align-items: center;
    gap: 40px;
}

.logo {
    font-size: 28px;
    font-weight: 800;
    letter-spacing: -1px;
}

.search {
    display: flex;
    width: 100%;
    max-width: 640px;
}

.search input {
    width: 100%;
    height: 46px;
    padding: 0 16px;
    border: 1px solid #cfd4dc;
    border-radius: 8px 0 0 8px;
    font-size: 16px;
    outline: none;
}

.search button {
    height: 46px;
    padding: 0 24px;
    border: 0;
    border-radius: 0 8px 8px 0;
    background: #111827;
    color: white;
    font-weight: 700;
    cursor: pointer;
}

.main-nav {
    border-bottom: 1px solid #e5e7eb;
    background: #fff;
}

.nav-inner {
    display: flex;
    gap: 28px;
    min-height: 48px;
    align-items: center;
    font-weight: 600;
}

.hero {
    background: #f5f6f8;
}

.hero-compact {
    padding: 42px 0;
}

.hero h1 {
    margin: 0 0 10px;
    font-size: 42px;
    letter-spacing: -1.5px;
}

.hero p {
    margin: 0;
    color: #5f6368;
    font-size: 18px;
    max-width: 720px;
    line-height: 1.6;
}

.section {
    padding-top: 34px;
    padding-bottom: 6px;
}

.section h2 {
    margin: 0 0 20px;
    font-size: 30px;
    letter-spacing: -0.5px;
}

.platform-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 16px;
}

.platform-card {
    border: 1px solid #e2e5e9;
    border-radius: 12px;
    padding: 20px 22px;
    transition: 0.15s;
    background: #fff;
}

.platform-card:hover {
    border-color: #9ca3af;
    transform: translateY(-1px);
}

.platform-card-title {
    font-size: 19px;
    font-weight: 800;
    margin-bottom: 6px;
}

.platform-card-subtitle {
    color: #6b7280;
    font-size: 14px;
}

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

.program-card {
    display: flex;
    gap: 16px;
    padding: 18px;
    border: 1px solid #e2e5e9;
    border-radius: 12px;
    background: #fff;
    transition: 0.15s;
}

.program-card:hover {
    border-color: #9ca3af;
    transform: translateY(-1px);
}

.program-icon {
    display: flex;
    width: 56px;
    height: 56px;
    min-width: 56px;
    align-items: center;
    justify-content: center;
    background: #f0f1f3;
    border-radius: 12px;
    font-size: 24px;
    font-weight: 800;
}

.program-info {
    min-width: 0;
    width: 100%;
}

.program-info h3 {
    margin: 0 0 8px;
    font-size: 18px;
    line-height: 1.3;
}

.program-info p {
    margin: 0 0 10px;
    color: #5f6368;
    font-size: 14px;
    line-height: 1.5;
}

.program-meta {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin-bottom: 10px;
}

.program-meta span {
    padding: 5px 8px;
    border-radius: 999px;
    background: #f3f4f6;
    color: #374151;
    font-size: 12px;
    font-weight: 600;
}

.program-info small {
    color: #6b7280;
    font-size: 13px;
}

.empty {
    color: #777;
    padding: 20px 0;
}

.site-footer {
    margin-top: 70px;
    padding: 35px 0;
    border-top: 1px solid #e5e7eb;
    color: #6b7280;
    font-size: 14px;
}

.program-page {
    padding-top: 28px;
}

.breadcrumbs {
    display: flex;
    gap: 8px;
    align-items: center;
    flex-wrap: wrap;
    margin-bottom: 28px;
    color: #6b7280;
    font-size: 14px;
}

.breadcrumbs a:hover {
    text-decoration: underline;
}

.program-hero {
    display: grid;
    grid-template-columns: 110px 1fr 260px;
    gap: 28px;
    align-items: start;
    padding-bottom: 32px;
}

.program-big-icon {
    width: 110px;
    height: 110px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 22px;
    background: #f0f1f3;
    font-size: 46px;
    font-weight: 800;
}

.program-main-info h1 {
    margin: 0 0 8px;
    font-size: 34px;
    letter-spacing: -1px;
}

.program-version,
.program-developer {
    margin-bottom: 6px;
    color: #6b7280;
}

.program-lead {
    max-width: 680px;
    margin-top: 17px;
    line-height: 1.6;
    font-size: 16px;
}

.download-box {
    padding: 20px;
    border: 1px solid #e2e5e9;
    border-radius: 14px;
}

.download-button {
    width: 100%;
    min-height: 50px;
    border: 0;
    border-radius: 9px;
    background: #111827;
    color: #fff;
    font-size: 16px;
    font-weight: 700;
    cursor: pointer;
}

.download-button.disabled {
    cursor: default;
    opacity: .5;
}

.download-meta {
    margin-top: 10px;
    color: #6b7280;
    font-size: 13px;
    text-align: center;
}

.program-tabs {
    display: flex;
    gap: 28px;
    border-top: 1px solid #e5e7eb;
    border-bottom: 1px solid #e5e7eb;
    min-height: 56px;
    align-items: center;
    font-weight: 600;
}

.program-layout {
    display: grid;
    grid-template-columns: minmax(0, 1fr) 330px;
    gap: 45px;
    margin-top: 38px;
}

.program-content section {
    margin-bottom: 48px;
}

.program-content h2,
.info-card h2 {
    margin-top: 0;
}

.program-content p {
    line-height: 1.75;
}

.info-card {
    margin-bottom: 18px;
    padding: 22px;
    border: 1px solid #e2e5e9;
    border-radius: 12px;
}

.info-card dl {
    margin: 0;
}

.info-card dl > div {
    padding: 12px 0;
    border-bottom: 1px solid #eceef1;
}

.info-card dl > div:last-child {
    border-bottom: 0;
}

.info-card dt {
    margin-bottom: 4px;
    color: #6b7280;
    font-size: 13px;
}

.info-card dd {
    margin: 0;
    font-weight: 600;
}

.verified {
    font-weight: 700;
}

.release-row {
    display: flex;
    justify-content: space-between;
    padding: 15px 0;
    border-bottom: 1px solid #e5e7eb;
}

@media (max-width: 1000px) {
    .program-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 900px) {
    .program-hero {
        grid-template-columns: 90px 1fr;
    }

    .program-big-icon {
        width: 90px;
        height: 90px;
    }

    .download-box {
        grid-column: 1 / -1;
    }

    .program-layout {
        grid-template-columns: 1fr;
    }

    .platform-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 800px) {
    .header-inner {
        flex-direction: column;
        align-items: stretch;
        gap: 15px;
        padding: 18px 0;
    }

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

    .nav-inner {
        overflow-x: auto;
    }

    .hero h1 {
        font-size: 34px;
    }
}


/* =========================================
   FreeSofts action colors / ratings / badges
   ========================================= */

:root {
    --action-green: #16a34a;
    --action-green-hover: #15803d;
    --action-green-dark: #166534;
    --action-green-light: #f0fdf4;
    --action-green-border: #bbf7d0;
}


/* SEARCH */

.search button {
    background: var(--action-green);
    color: #fff;

    transition:
        background .15s ease,
        transform .15s ease;
}

.search button:hover {
    background: var(--action-green-hover);
}

.search button:active {
    transform: translateY(1px);
}


/* PROGRAM CARD */

.program-card {
    align-items: flex-start;
    position: relative;
}

.program-card-left {
    width: 64px;
    min-width: 64px;
    text-align: center;
}

.program-icon {
    width: 60px;
    height: 60px;
    min-width: 60px;

    display: flex;
    align-items: center;
    justify-content: center;

    border-radius: 13px;

    background: #f0f1f3;

    font-size: 25px;
    font-weight: 800;
}


/* RATING */

.program-rating {
    margin-top: 8px;

    display: flex;
    justify-content: center;
    align-items: center;

    gap: 3px;

    font-size: 12px;
    white-space: nowrap;
}

.rating-star {
    color: #f59e0b;
    font-size: 16px;
    line-height: 1;
}

.program-rating strong {
    color: #202124;
}

.rating-count {
    color: #9ca3af;
    font-size: 11px;
}


/* BADGES */

.program-badges,
.program-title-badges {
    display: flex;
    flex-wrap: wrap;

    gap: 6px;
}

.program-badges {
    margin: 10px 0;
}

.program-title-badges {
    margin: 9px 0 13px;
}

.badge {
    display: inline-flex;
    align-items: center;

    min-height: 24px;

    padding: 3px 8px;

    border-radius: 6px;

    background: #f3f4f6;

    color: #4b5563;

    font-size: 11px;
    font-weight: 700;
}

.badge-license {
    background: var(--action-green-light);

    border: 1px solid #dcfce7;

    color: var(--action-green-hover);
}

.badge-verified {
    background: var(--action-green-light);

    border: 1px solid var(--action-green-border);

    color: var(--action-green-dark);
}


/* DEVELOPER */

.program-developer-small {
    margin: 5px 0 13px;

    color: #6b7280;

    font-size: 12px;
}


/* DOWNLOAD BUTTON IN CARDS */

.card-download-button {
    display: inline-flex;
    align-items: center;
    justify-content: center;

    min-height: 38px;

    padding: 0 19px;

    border-radius: 7px;

    background: var(--action-green);

    color: #fff;

    font-size: 14px;
    font-weight: 800;

    transition:
        background .15s ease,
        transform .15s ease,
        box-shadow .15s ease;
}

.card-download-button:hover {
    background: var(--action-green-hover);

    box-shadow:
        0 3px 8px rgba(22, 163, 74, .20);
}

.card-download-button:active {
    transform: translateY(1px);
}


/* PROGRAM NAME */

.program-name-link h3,
.program-info h3 {
    transition: color .15s ease;
}

.program-name-link:hover h3 {
    color: var(--action-green-hover);
}


/* BIG PROGRAM ICON + RATING */

.program-icon-column {
    width: 110px;
}

.program-page-rating {
    margin-top: 10px;

    display: flex;
    justify-content: center;
    align-items: center;

    flex-wrap: wrap;

    gap: 5px;

    color: #6b7280;

    font-size: 12px;

    text-align: center;
}

.program-page-rating strong {
    color: #202124;
}


/* MAIN DOWNLOAD BUTTON */

.download-button {
    display: flex;
    align-items: center;
    justify-content: center;

    width: 100%;

    min-height: 54px;

    border: 0;
    border-radius: 9px;

    background: var(--action-green);

    color: #fff;

    font-size: 16px;
    font-weight: 800;

    cursor: pointer;

    box-shadow:
        0 2px 5px rgba(22, 163, 74, .18);

    transition:
        background .15s ease,
        transform .15s ease,
        box-shadow .15s ease;
}

.download-button:hover {
    background: var(--action-green-hover);

    box-shadow:
        0 4px 10px rgba(22, 163, 74, .24);
}

.download-button:active {
    transform: translateY(1px);
}

.download-button.disabled {
    background: #9ca3af;
    box-shadow: none;
    cursor: default;
}


@media (max-width: 900px) {

    .program-icon-column {
        width: 90px;
    }

}


/* =========================================
   Compact program cards
   ========================================= */

.program-grid {
    gap: 12px;
}

.program-card {
    gap: 12px;
    padding: 13px 14px;

    border-radius: 10px;

    min-height: 0;

    align-items: flex-start;
}


/* LEFT COLUMN */

.program-card-left {
    width: 52px;
    min-width: 52px;
}

.program-icon {
    width: 48px;
    height: 48px;
    min-width: 48px;

    border-radius: 10px;

    font-size: 21px;
}


/* RATING */

.program-rating {
    margin-top: 6px;

    gap: 2px;

    font-size: 11px;
}

.rating-star {
    font-size: 13px;
}

.rating-count {
    color: #9ca3af;
    font-size: 10px;
}


/* TITLE */

.program-info h3 {
    margin: 0 0 5px;

    font-size: 16px;
    line-height: 1.25;
}


/* DESCRIPTION */

.program-description {
    margin: 0 0 7px !important;

    color: #5f6368;

    font-size: 12.5px !important;
    line-height: 1.4 !important;

    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;

    overflow: hidden;
}


/* BADGES */

.program-badges {
    margin: 6px 0 7px;

    gap: 4px;
}

.badge {
    min-height: 20px;

    padding: 2px 6px;

    border-radius: 5px;

    font-size: 10px;
}


/* FOOTER */

.program-card-footer {
    display: flex;

    align-items: center;
    justify-content: space-between;

    gap: 10px;

    margin-top: 4px;
}

.program-developer-small {
    margin: 0;

    overflow: hidden;

    color: #6b7280;

    font-size: 11px;

    white-space: nowrap;
    text-overflow: ellipsis;
}


/* DOWNLOAD */

.card-download-button {
    min-height: 31px;

    padding: 0 13px;

    border-radius: 6px;

    font-size: 12px;

    flex-shrink: 0;
}


/* PLATFORM CARDS */

.platform-card {
    padding: 14px 18px;
}

.platform-card-title {
    font-size: 17px;
}

.platform-card-subtitle {
    margin-top: 3px;

    font-size: 12px;
}


/* SECTIONS */

.section {
    padding-top: 27px;
}

.section h2 {
    margin-bottom: 16px;

    font-size: 27px;
}


/* HERO */

.hero-compact {
    padding: 30px 0;
}

.hero h1 {
    font-size: 36px;
}

.hero p {
    font-size: 16px;
}


/* =========================================
   404
   ========================================= */

.error-page {
    padding: 90px 0 130px;
}

.error-code {
    margin-bottom: 5px;

    color: #16a34a;

    font-size: 72px;
    font-weight: 900;
    line-height: 1;
    letter-spacing: -4px;
}

.error-page h1 {
    margin: 0 0 14px;

    font-size: 34px;
    letter-spacing: -1px;
}

.error-page p {
    margin: 0 0 28px;

    color: #6b7280;

    font-size: 16px;
}

.error-home-button {
    display: inline-flex;
    align-items: center;
    justify-content: center;

    min-height: 42px;
    padding: 0 18px;

    border-radius: 7px;

    background: #16a34a;
    color: #ffffff;

    font-size: 14px;
    font-weight: 800;
}

.error-home-button:hover {
    background: #15803d;
}
