:root {
    --bg: #eef2f6;
    --surface: #ffffff;
    --surface-alt: #f8fafc;
    --border: #d8e0ea;
    --text: #0f172a;
    --muted: #516074;
    --primary: #2563eb;
    --primary-dark: #1d4ed8;
    --dark: #0f172a;
    --dark-soft: #111827;
    --green: #15803d;
    --amber: #a16207;
    --shadow: 0 18px 42px rgba(15, 23, 42, 0.08);
}

* {
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    margin: 0;
    font-family: "Segoe UI", Arial, sans-serif;
    background: var(--bg);
    color: var(--text);
}

img {
    display: block;
    max-width: 100%;
}

a {
    color: inherit;
}

code {
    font-family: Consolas, "Courier New", monospace;
    font-size: 0.92rem;
}

.shell {
    width: min(1180px, calc(100% - 32px));
    margin: 0 auto;
}

.eyebrow {
    margin: 0 0 10px;
    color: #7dd3fc;
    font-size: 0.78rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 1px;
}

.eyebrow-dark {
    color: var(--primary);
}

.hero {
    position: relative;
    background:
        linear-gradient(120deg, rgba(15, 23, 42, 0.96), rgba(17, 24, 39, 0.88)),
        url("../images/media-converter/cover.png") center/cover no-repeat;
    color: #f8fafc;
    overflow: hidden;
}

.hero-overlay {
    position: absolute;
    inset: 0;
    background:
        linear-gradient(90deg, rgba(15, 23, 42, 0.9) 0%, rgba(15, 23, 42, 0.72) 44%, rgba(15, 23, 42, 0.56) 100%);
}

.hero-shell {
    position: relative;
    z-index: 1;
    padding: 24px 0 68px;
}

.hero-nav {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 18px;
    margin-bottom: 60px;
}

.brand {
    display: inline-flex;
    align-items: center;
    gap: 14px;
    text-decoration: none;
}

.brand img {
    width: 54px;
    height: 54px;
    object-fit: cover;
    border-radius: 8px;
    box-shadow: 0 12px 24px rgba(0, 0, 0, 0.22);
}

.brand span {
    display: flex;
    flex-direction: column;
    gap: 4px;
}

.brand strong {
    font-size: 1.08rem;
}

.brand small {
    color: #bfdbfe;
    text-transform: uppercase;
    letter-spacing: 1px;
    font-size: 0.72rem;
}

.hero-links {
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    gap: 14px;
}

.hero-links a {
    text-decoration: none;
    color: #dbeafe;
    font-weight: 600;
}

.hero-copy {
    max-width: 720px;
}

.hero-copy h1 {
    margin: 0;
    font-size: 3rem;
    line-height: 1.08;
}

.hero-text {
    max-width: 620px;
    margin: 18px 0 0;
    font-size: 1.05rem;
    line-height: 1.72;
    color: #dbe5f1;
}

.hero-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
    margin-top: 28px;
}

.hero-stats {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 14px;
    margin-top: 40px;
    max-width: 760px;
}

.stat {
    padding: 18px 18px 16px;
    border: 1px solid rgba(191, 219, 254, 0.18);
    border-radius: 8px;
    background: rgba(255, 255, 255, 0.06);
    backdrop-filter: blur(8px);
}

.stat-value {
    display: block;
    font-size: 1.7rem;
    font-weight: 800;
}

.stat-label {
    display: block;
    margin-top: 8px;
    color: #dbeafe;
}

.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 46px;
    padding: 0 18px;
    border-radius: 8px;
    border: 1px solid transparent;
    text-decoration: none;
    font-weight: 700;
    transition: background-color 0.18s ease, border-color 0.18s ease, color 0.18s ease, transform 0.18s ease;
}

.btn:hover {
    transform: translateY(-1px);
}

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

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

.btn-secondary {
    background: rgba(255, 255, 255, 0.06);
    color: #f8fafc;
    border-color: rgba(219, 234, 254, 0.22);
}

.btn-secondary:hover {
    background: rgba(255, 255, 255, 0.12);
}

.toolbar-shell {
    display: flex;
    align-items: end;
    justify-content: space-between;
    gap: 20px;
    padding: 34px 0 12px;
}

.toolbar-shell h2 {
    margin: 0;
    font-size: 2rem;
}

.filter-group {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
}

.filter-chip {
    min-height: 42px;
    padding: 0 15px;
    border-radius: 999px;
    border: 1px solid var(--border);
    background: #ffffff;
    color: var(--muted);
    font-weight: 700;
    cursor: pointer;
}

.filter-chip.is-active {
    border-color: #bfd4ff;
    background: #dbeafe;
    color: var(--primary-dark);
}

.summary-band {
    padding-bottom: 16px;
}

.summary-shell {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 14px;
}

.summary-pill {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    padding: 14px 16px;
    border: 1px solid var(--border);
    border-radius: 8px;
    background: var(--surface);
    box-shadow: var(--shadow);
}

.summary-pill span,
.summary-pill a {
    color: var(--muted);
    text-decoration: none;
}

.summary-pill strong {
    font-size: 1.1rem;
}

.program-list {
    display: grid;
    gap: 22px;
    padding-bottom: 34px;
}

.program-card {
    display: grid;
    grid-template-columns: minmax(320px, 460px) minmax(0, 1fr);
    gap: 22px;
    padding: 22px;
    border: 1px solid var(--border);
    border-radius: 8px;
    background: var(--surface);
    box-shadow: var(--shadow);
}

.program-card.is-hidden {
    display: none;
}

.program-media {
    display: grid;
    gap: 12px;
}

.gallery-view,
.brand-stage {
    overflow: hidden;
    border-radius: 8px;
    border: 1px solid var(--border);
    background: #dbe7f3;
    aspect-ratio: 16 / 10;
}

.gallery-view img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

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

.gallery-thumb {
    padding: 0;
    overflow: hidden;
    border-radius: 8px;
    border: 2px solid transparent;
    background: #dce7f2;
    cursor: pointer;
    aspect-ratio: 16 / 10;
}

.gallery-thumb.is-active {
    border-color: var(--primary);
}

.gallery-thumb img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.brand-stage {
    display: flex;
    flex-direction: column;
    justify-content: end;
    gap: 10px;
    padding: 22px;
    color: #ffffff;
    background:
        linear-gradient(145deg, rgba(15, 23, 42, 0.96), rgba(31, 111, 235, 0.72));
}

.brand-stage img {
    width: 56px;
    height: 56px;
    border-radius: 8px;
}

.brand-stage span {
    color: rgba(255, 255, 255, 0.84);
    font-size: 0.86rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.8px;
}

.brand-stage strong {
    font-size: 1.6rem;
    line-height: 1.15;
}

.brand-stage small {
    color: rgba(255, 255, 255, 0.88);
}

.program-copy {
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    gap: 18px;
}

.program-head h3 {
    margin: 10px 0 10px;
    font-size: 2rem;
}

.program-head p {
    margin: 0;
    line-height: 1.72;
    color: var(--muted);
}

.platform-badge {
    display: inline-flex;
    align-items: center;
    min-height: 30px;
    padding: 0 12px;
    border-radius: 999px;
    font-size: 0.86rem;
    font-weight: 800;
}

.platform-badge.windows {
    background: #dbeafe;
    color: #1d4ed8;
}

.platform-badge.android {
    background: #dcfce7;
    color: var(--green);
}

.platform-badge.web {
    background: #fef3c7;
    color: var(--amber);
}

.feature-list {
    margin: 0;
    padding-left: 18px;
    color: #1f2937;
    line-height: 1.72;
}

.download-block {
    padding-top: 4px;
}

.download-row {
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    gap: 12px;
}

.count-pill {
    display: inline-flex;
    align-items: center;
    min-height: 38px;
    padding: 0 14px;
    border: 1px solid var(--border);
    border-radius: 999px;
    background: #f8fbff;
    color: #334155;
    font-size: 0.92rem;
    font-weight: 700;
}

.count-pill strong {
    margin-right: 6px;
}

.download-note {
    margin: 12px 0 0;
    color: #64748b;
    line-height: 1.6;
}

.contact-band {
    padding: 6px 0 48px;
}

.contact-shell {
    display: grid;
    grid-template-columns: minmax(0, 1fr) minmax(340px, 480px);
    gap: 22px;
    align-items: start;
}

.contact-copy h2 {
    margin: 0 0 14px;
    font-size: 2rem;
}

.contact-copy p {
    margin: 0;
    color: var(--muted);
    line-height: 1.72;
}

.contact-list {
    margin: 18px 0 0;
    padding-left: 18px;
    color: var(--muted);
    line-height: 1.8;
}

.contact-list a {
    color: var(--primary-dark);
}

.contact-form {
    display: grid;
    gap: 14px;
    padding: 22px;
    border: 1px solid var(--border);
    border-radius: 8px;
    background: var(--surface);
    box-shadow: var(--shadow);
}

.field-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 14px;
}

.field {
    display: grid;
    gap: 8px;
}

.field span {
    font-weight: 700;
    color: #334155;
}

.field input,
.field select,
.field textarea {
    width: 100%;
    border: 1px solid #c9d3df;
    border-radius: 8px;
    padding: 12px 14px;
    background: #fbfdff;
    color: var(--text);
}

.field textarea {
    resize: vertical;
}

.field input:focus,
.field select:focus,
.field textarea:focus {
    outline: 2px solid rgba(37, 99, 235, 0.14);
    border-color: var(--primary);
}

.form-actions {
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    gap: 14px;
}

.form-status {
    margin: 0;
    min-height: 24px;
    font-weight: 600;
}

.form-status.is-success {
    color: #0f766e;
}

.form-status.is-error {
    color: #b91c1c;
}

@media (max-width: 1024px) {
    .hero-copy h1 {
        font-size: 2.4rem;
    }

    .program-card,
    .contact-shell {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 720px) {
    .shell {
        width: min(100% - 20px, 1180px);
    }

    .hero-shell {
        padding-top: 16px;
        padding-bottom: 48px;
    }

    .hero-nav,
    .toolbar-shell {
        flex-direction: column;
        align-items: start;
    }

    .hero-copy h1 {
        font-size: 2rem;
    }

    .hero-text {
        font-size: 1rem;
    }

    .hero-stats,
    .summary-shell,
    .field-grid {
        grid-template-columns: 1fr;
    }

    .program-card,
    .contact-form {
        padding: 16px;
    }

    .program-head h3,
    .toolbar-shell h2,
    .contact-copy h2 {
        font-size: 1.55rem;
    }

    .download-row .btn,
    .hero-actions .btn {
        width: 100%;
    }
}

@media (max-width: 540px) {
    .hero-copy h1 {
        font-size: 1.8rem;
    }

    .hero-nav {
        margin-bottom: 42px;
    }

    .brand img {
        width: 48px;
        height: 48px;
    }

    .hero-actions,
    .filter-group {
        width: 100%;
    }

    .hero-actions .btn,
    .filter-chip,
    .download-row .btn {
        width: 100%;
    }

    .gallery-view,
    .brand-stage {
        aspect-ratio: 4 / 3;
    }

    .program-head h3 {
        font-size: 1.4rem;
    }
}
