:root {
    --apps-bg: #15130f;
    --apps-panel: #1d1a15;
    --apps-panel-raised: #242019;
    --apps-line: rgba(232, 226, 217, 0.12);
    --apps-line-strong: rgba(232, 226, 217, 0.24);
    --apps-text: #e8e2d9;
    --apps-muted: #b7ac9a;
    --apps-accent: #d49a4b;
    --apps-accent-light: #e0a95f;
    --apps-font-body: "IBM Plex Sans", Arial, sans-serif;
    --apps-font-display: "Archivo", Arial, sans-serif;
    --apps-radius: 12px;
}

.apps-page {
    --header-font-body: var(--apps-font-body);
    min-height: 100vh;
    background: var(--apps-bg);
    color: var(--apps-text);
    font-family: var(--apps-font-body);
}

.apps-page * {
    font-family: inherit;
}

.apps-page h1,
.apps-page h2,
.apps-page h3,
.apps-page h4 {
    font-family: var(--apps-font-display);
}

.apps-page::before {
    content: none;
}

.apps-page .noise-overlay {
    z-index: 9998;
    opacity: 0.055;
}

.apps-page a {
    color: inherit;
}

.apps-page a:focus-visible,
.apps-page [tabindex]:focus-visible {
    outline: 3px solid var(--apps-accent-light);
    outline-offset: 4px;
}

.apps-main {
    padding-top: var(--header-height);
}

.apps-shell {
    width: min(1180px, calc(100% - 48px));
    margin-inline: auto;
}

.apps-index-header {
    display: grid;
    grid-template-columns: minmax(0, 0.75fr) minmax(320px, 1.25fr);
    gap: 56px;
    align-items: end;
    padding-block: 72px 34px;
}

.apps-index-header .apps-eyebrow {
    margin-bottom: 10px;
}

.apps-index-header h1 {
    margin: 0;
    color: var(--apps-text);
    font-size: clamp(2.35rem, 4.5vw, 4rem);
    font-weight: 900;
    letter-spacing: -0.045em;
    line-height: 1;
}

.apps-index-header .apps-lead {
    max-width: 620px;
    margin: 0;
    font-size: 1.08rem;
}

.apps-index-nav {
    display: flex;
    flex-wrap: wrap;
    gap: 8px 26px;
    padding-block: 18px;
    border-block: 1px solid var(--apps-line);
}

.apps-index-nav a {
    display: inline-flex;
    gap: 8px;
    align-items: center;
    min-height: 44px;
    color: var(--apps-muted);
    font-weight: 700;
    text-decoration: none;
}

.apps-index-nav a:hover {
    color: var(--apps-accent-light);
}

.apps-section.apps-catalog {
    padding-top: 42px;
}

.apps-hero {
    display: grid;
    grid-template-columns: minmax(0, 1.55fr) minmax(260px, 0.45fr);
    gap: 72px;
    align-items: end;
    min-height: 580px;
    padding-block: 128px 96px;
}

.apps-hero-copy {
    max-width: 830px;
}

.apps-eyebrow,
.apps-kicker {
    margin: 0 0 18px;
    color: var(--apps-accent-light);
    font-size: 0.78rem;
    font-weight: 900;
    letter-spacing: 0.18em;
    text-transform: uppercase;
}

.apps-hero h1,
.product-hero h1 {
    max-width: 920px;
    margin: 0;
    color: var(--apps-text);
    font-size: clamp(3.3rem, 7vw, 7rem);
    font-weight: 900;
    letter-spacing: -0.065em;
    line-height: 0.93;
    text-wrap: balance;
}

.apps-lead {
    max-width: 740px;
    margin: 34px 0 0;
    color: var(--apps-muted);
    font-size: clamp(1.1rem, 2vw, 1.35rem);
    line-height: 1.65;
}

.apps-availability {
    display: grid;
    border-block: 1px solid var(--apps-line);
}

.apps-availability > div {
    display: grid;
    gap: 7px;
    padding: 22px 0;
}

.apps-availability > div + div {
    border-top: 1px solid var(--apps-line);
}

.apps-availability dt {
    color: var(--apps-accent-light);
    font-size: 0.74rem;
    font-weight: 700;
    letter-spacing: 0.1em;
    text-transform: uppercase;
}

.apps-availability dd {
    margin: 0;
    color: var(--apps-text);
    font-family: var(--apps-font-display);
    font-size: 1.08rem;
    font-weight: 700;
    line-height: 1.4;
}

.apps-section {
    padding-block: 96px;
}

.apps-section-heading {
    display: flex;
    gap: 40px;
    align-items: end;
    justify-content: space-between;
    margin-bottom: 46px;
}

.apps-section-heading h2,
.product-intro h2,
.code-section h2,
.download-section h2,
.project-context h2,
.apps-closing h2 {
    margin: 0;
    color: var(--apps-text);
    font-size: clamp(2.2rem, 4.2vw, 4.25rem);
    font-weight: 900;
    letter-spacing: -0.045em;
    line-height: 1.02;
    text-wrap: balance;
}

.apps-section-heading > p {
    max-width: 350px;
    margin: 0 0 5px;
    color: var(--apps-muted);
    line-height: 1.6;
    text-align: right;
}

.project-featured {
    display: grid;
    grid-template-columns: minmax(0, 1.35fr) minmax(340px, 0.65fr);
    overflow: hidden;
    border: 1px solid var(--apps-line);
    border-radius: var(--apps-radius);
    background: var(--apps-panel);
}

.project-preview {
    position: relative;
    display: block;
    overflow: hidden;
    border: 1px solid var(--apps-line-strong);
    border-radius: 8px;
    background: var(--apps-panel-raised);
    text-decoration: none;
}

.project-featured > .project-preview {
    align-self: stretch;
    margin: 28px 0 28px 28px;
    border-radius: 8px;
}

.project-preview img {
    display: block;
    width: 100%;
    height: auto;
    aspect-ratio: 16 / 9;
    object-fit: cover;
    transition: filter 0.2s ease;
}

.project-preview:hover img {
    filter: brightness(1.08);
}

.browser-bar {
    display: grid;
    grid-template-columns: repeat(3, 8px) minmax(0, 1fr);
    gap: 6px;
    align-items: center;
    min-height: 34px;
    padding: 0 13px;
    border-bottom: 1px solid var(--apps-line);
    background: var(--apps-panel-raised);
}

.browser-bar > span {
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background: var(--apps-muted);
}

.browser-bar > span:first-child {
    background: var(--apps-accent);
}

.browser-bar > div {
    overflow: hidden;
    margin-left: 8px;
    color: var(--apps-muted);
    font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
    font-size: 0.66rem;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.project-featured-copy {
    display: flex;
    flex-direction: column;
    justify-content: center;
    padding: 52px;
}

.status-row {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    align-items: center;
}

.status-badge,
.version-badge {
    display: inline-flex;
    gap: 8px;
    align-items: center;
    min-height: 31px;
    padding: 7px 12px;
    border: 1px solid var(--apps-line);
    border-radius: 4px;
    font-size: 0.75rem;
    font-weight: 800;
    letter-spacing: 0.04em;
    line-height: 1;
    text-transform: uppercase;
}

.status-live {
    border-color: var(--apps-accent);
    background: transparent;
    color: var(--apps-accent-light);
}

.status-live > span {
    width: 7px;
    height: 7px;
    border-radius: 50%;
    background: currentColor;
}

.version-badge {
    color: var(--apps-muted);
}

.project-featured-copy h2,
.project-featured-copy h3,
.development-card h3 {
    margin: 0;
    color: var(--apps-text);
    font-size: clamp(2rem, 3.3vw, 3.45rem);
    font-weight: 900;
    letter-spacing: -0.045em;
    line-height: 1.02;
}

.project-featured-copy h2 {
    margin-top: 22px;
    font-size: clamp(2rem, 3vw, 3rem);
}

.project-source-link {
    width: fit-content;
    margin-top: 22px;
    color: var(--apps-muted) !important;
    font-size: 0.9rem;
    font-weight: 700;
    text-decoration: underline;
    text-underline-offset: 4px;
}

.project-source-link:hover {
    color: var(--apps-accent-light) !important;
}

.project-featured-copy > p,
.development-card > p {
    margin: 22px 0 0;
    color: var(--apps-muted);
    font-size: 1.02rem;
    line-height: 1.7;
}

.project-tags {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin: 28px 0 0;
    padding: 0;
    list-style: none;
}

.project-tags li {
    padding: 8px 11px;
    border: 1px solid var(--apps-line);
    border-radius: 8px;
    color: var(--apps-muted);
    font-size: 0.78rem;
    font-weight: 700;
}

.project-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
    margin-top: 34px;
}

.product-button {
    display: inline-flex;
    gap: 12px;
    align-items: center;
    justify-content: center;
    min-height: 50px;
    padding: 13px 20px;
    border: 1px solid transparent;
    border-radius: 6px;
    font-weight: 800;
    line-height: 1.15;
    text-align: center;
    text-decoration: none;
    transition: background-color 0.15s ease, border-color 0.15s ease;
}

.product-button-primary {
    background: var(--apps-accent);
    color: #19140d !important;
}

.product-button-primary:hover {
    background: var(--apps-accent-light);
}

.product-button-secondary {
    border-color: var(--apps-line-strong);
    background: transparent;
    color: var(--apps-text) !important;
}

.product-button-secondary:hover {
    border-color: var(--apps-accent);
}

.development-section {
    border-top: 1px solid var(--apps-line);
}

.development-grid {
    display: block;
}

.development-card {
    position: relative;
    display: grid;
    grid-template-columns: minmax(150px, 0.35fr) minmax(0, 1fr);
    column-gap: clamp(32px, 7vw, 96px);
    padding: 42px 0;
    border-block: 1px solid var(--apps-line);
}

.development-mark {
    grid-row: 1 / span 5;
    color: var(--apps-accent);
    font-family: var(--apps-font-display);
    font-size: clamp(4rem, 9vw, 7.5rem);
    font-weight: 900;
    letter-spacing: -0.08em;
    line-height: 1;
    opacity: 0.55;
}

.status-building {
    width: fit-content;
    margin-bottom: 25px;
    border-color: var(--apps-line-strong);
    background: transparent;
    color: var(--apps-muted);
}

.unavailable-link {
    width: fit-content;
    margin-top: 30px;
    color: var(--apps-muted);
    font-size: 0.86rem;
    font-weight: 800;
    letter-spacing: 0.04em;
    text-transform: uppercase;
}

.apps-closing {
    margin-block: 96px 120px;
    padding: 82px;
    border: 1px solid var(--apps-line-strong);
    border-radius: var(--apps-radius);
    background: var(--apps-panel);
}

.apps-closing p:not(.apps-kicker) {
    max-width: 650px;
    margin: 22px 0 32px;
    color: var(--apps-muted);
    font-size: 1.08rem;
    line-height: 1.7;
}

.apps-footer {
    padding: 34px 0;
    border-top: 1px solid var(--apps-line);
    background: rgba(10, 9, 7, 0.62);
}

.apps-footer-inner {
    display: flex;
    gap: 24px;
    align-items: center;
    justify-content: space-between;
}

.apps-footer p {
    margin: 0;
    color: var(--apps-muted);
    font-size: 0.9rem;
}

.apps-footer-inner > div {
    display: flex;
    gap: 24px;
}

.apps-footer a {
    color: var(--apps-muted);
    font-size: 0.9rem;
    font-weight: 700;
    text-decoration: none;
}

.apps-footer a:hover {
    color: var(--apps-accent-light);
}

/* VisuAlg product page */

.visualg-page {
    background: var(--apps-bg);
}

.product-hero {
    padding-block: 60px 96px;
}

.breadcrumb {
    display: inline-flex;
    gap: 9px;
    align-items: center;
    margin-bottom: 70px;
    color: var(--apps-muted) !important;
    font-size: 0.9rem;
    font-weight: 700;
    text-decoration: none;
}

.breadcrumb:hover {
    color: var(--apps-accent-light) !important;
}

.product-hero-grid {
    display: grid;
    grid-template-columns: minmax(0, 1.5fr) minmax(280px, 0.5fr);
    gap: 72px;
    align-items: end;
}

.product-hero-copy .apps-eyebrow {
    margin: 38px 0 16px;
    color: var(--apps-accent-light);
}

.product-hero h1 {
    max-width: 860px;
    font-size: clamp(3.2rem, 6.4vw, 6.4rem);
}

.product-hero-actions {
    margin-top: 38px;
}

.release-note {
    max-width: 650px;
    margin: 17px 0 0;
    color: var(--apps-muted);
    font-size: 0.86rem;
    line-height: 1.55;
}

.product-facts {
    margin: 0;
    border-block: 1px solid var(--apps-line);
}

.product-facts > div {
    display: grid;
    gap: 7px;
    padding: 22px 0;
}

.product-facts > div + div {
    border-top: 1px solid var(--apps-line);
}

.product-facts dt {
    color: var(--apps-muted);
    font-size: 0.74rem;
    font-weight: 800;
    letter-spacing: 0.1em;
    text-transform: uppercase;
}

.product-facts dd {
    margin: 0;
    color: var(--apps-text);
    font-size: 1.12rem;
    font-weight: 700;
}

.product-showcase {
    position: relative;
    padding-bottom: 120px;
}

.product-preview {
    border-color: var(--apps-line-strong);
    border-radius: 8px;
}

.product-preview .browser-bar {
    min-height: 42px;
    padding-inline: 17px;
}

.preview-caption {
    display: flex;
    gap: 10px;
    align-items: center;
    justify-content: flex-end;
    width: fit-content;
    margin: 20px 0 0 auto;
    color: var(--apps-muted) !important;
    font-size: 0.9rem;
    font-weight: 800;
    text-decoration: none;
}

.preview-caption:hover {
    color: var(--apps-accent-light) !important;
}

.product-intro {
    display: grid;
    grid-template-columns: minmax(0, 0.85fr) minmax(0, 1.15fr);
    gap: 100px;
    padding-block: 120px;
    border-block: 1px solid var(--apps-line);
}

.product-intro-copy {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 34px;
}

.product-intro-copy p {
    margin: 0;
    color: var(--apps-muted);
    font-size: 1.04rem;
    line-height: 1.75;
}

.feature-section {
    padding-block: 120px;
}

.feature-grid {
    border-top: 1px solid var(--apps-line);
}

.feature-card {
    display: grid;
    grid-template-columns: minmax(220px, 0.7fr) minmax(0, 1.3fr);
    gap: clamp(28px, 6vw, 90px);
    align-items: start;
    padding: 30px 0;
    border-bottom: 1px solid var(--apps-line);
}

.feature-card h3 {
    margin: 0;
    color: var(--apps-text);
    font-size: 1.25rem;
    font-weight: 800;
    line-height: 1.25;
}

.feature-card p {
    margin: 0;
    color: var(--apps-muted);
    font-size: 0.94rem;
    line-height: 1.65;
}

.code-section {
    display: grid;
    grid-template-columns: minmax(280px, 0.7fr) minmax(0, 1.3fr);
    gap: 80px;
    align-items: center;
    padding-block: 120px;
    border-top: 1px solid var(--apps-line);
}

.code-copy > p:not(.apps-kicker) {
    margin: 24px 0 0;
    color: var(--apps-muted);
    font-size: 1.03rem;
    line-height: 1.7;
}

.text-link {
    display: inline-flex;
    gap: 10px;
    margin-top: 28px;
    color: var(--apps-accent-light) !important;
    font-weight: 800;
    text-decoration: none;
}

.text-link:hover {
    text-decoration: underline;
    text-underline-offset: 5px;
}

.code-window {
    overflow: hidden;
    border: 1px solid var(--apps-line-strong);
    border-radius: 8px;
    background: var(--apps-panel);
}

.code-window-bar {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 14px 20px;
    border-bottom: 1px solid var(--apps-line);
    background: var(--apps-panel-raised);
    color: var(--apps-muted);
    font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
    font-size: 0.72rem;
}

.code-window pre {
    overflow-x: auto;
    margin: 0;
    padding: clamp(24px, 4vw, 46px);
}

.code-window code {
    color: var(--apps-text);
    font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
    font-size: clamp(0.78rem, 1.4vw, 1rem);
    line-height: 1.7;
}

.code-keyword {
    color: var(--apps-accent-light);
}

.code-string {
    color: var(--apps-text);
}

.code-type {
    color: var(--apps-muted);
}

.download-section {
    display: grid;
    grid-template-columns: minmax(0, 0.85fr) minmax(360px, 1.15fr);
    gap: 72px;
    align-items: center;
    margin-block: 80px 120px;
    padding: 70px;
    border: 1px solid var(--apps-line);
    border-radius: var(--apps-radius);
    background: var(--apps-panel);
}

.download-copy > p:not(.apps-kicker) {
    margin: 24px 0 0;
    color: var(--apps-muted);
    line-height: 1.72;
}

.download-status {
    display: grid;
    grid-template-columns: auto 1fr;
    gap: 8px 18px;
    align-items: center;
    padding: 26px;
    border: 1px solid var(--apps-line);
    border-radius: 8px;
    background: transparent;
}

.download-icon {
    display: grid;
    grid-row: 1 / span 2;
    width: 54px;
    height: 54px;
    place-items: center;
    border: 1px solid var(--apps-line);
    border-radius: 6px;
    color: var(--apps-accent-light);
    font-size: 1.8rem;
}

.download-status strong,
.download-status > div > span {
    display: block;
}

.download-status strong {
    color: var(--apps-text);
    font-size: 1rem;
}

.download-status > div > span {
    margin-top: 5px;
    color: var(--apps-muted);
    font-size: 0.85rem;
}

.download-availability {
    grid-column: 1 / -1;
    margin-top: 16px;
    padding-top: 16px;
    border-top: 1px solid var(--apps-line);
    color: var(--apps-accent-light) !important;
    font-size: 0.78rem !important;
    letter-spacing: 0.08em;
    text-transform: uppercase;
}

.project-context {
    display: grid;
    grid-template-columns: minmax(0, 0.85fr) minmax(0, 1.15fr);
    gap: 100px;
    padding-block: 112px;
    border-block: 1px solid var(--apps-line);
}

.project-context > p {
    margin: 0;
    color: var(--apps-muted);
    font-size: 1.08rem;
    line-height: 1.78;
}

.visualg-closing {
    border-color: var(--apps-line-strong);
    background: var(--apps-panel);
}

.visualg-closing .apps-kicker {
    color: var(--apps-accent-light);
}

@media (max-width: 980px) {
    .apps-index-header,
    .apps-hero,
    .product-hero-grid {
        grid-template-columns: 1fr;
        gap: 22px;
    }

    .apps-index-header {
        padding-top: 58px;
    }

    .apps-hero {
        min-height: auto;
        padding-block: 110px 70px;
    }

    .apps-availability {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

    .apps-availability > div {
        padding: 18px 0;
    }

    .apps-availability > div + div {
        padding-left: 24px;
        border-top: 0;
        border-left: 1px solid var(--apps-line);
    }

    .project-featured {
        grid-template-columns: 1fr;
    }

    .project-featured > .project-preview {
        margin: 22px 22px 0;
    }

    .product-intro,
    .code-section,
    .download-section,
    .project-context {
        grid-template-columns: 1fr;
    }

    .product-intro,
    .project-context {
        gap: 50px;
    }

    .download-section {
        gap: 44px;
    }
}

@media (max-width: 680px) {
    .apps-shell {
        width: min(100% - 32px, 1180px);
    }

    .apps-hero {
        padding-block: 82px 44px;
    }

    .apps-index-header {
        padding-block: 42px 24px;
    }

    .apps-index-header h1 {
        font-size: clamp(2.2rem, 12vw, 3.2rem);
    }

    .apps-index-header .apps-lead {
        margin-top: 0;
        font-size: 1rem;
    }

    .apps-index-nav {
        justify-content: space-between;
        gap: 4px 18px;
    }

    .apps-section.apps-catalog {
        padding-top: 26px;
    }

    .apps-hero h1,
    .product-hero h1 {
        font-size: clamp(2.8rem, 14vw, 4.4rem);
        letter-spacing: -0.055em;
    }

    .apps-lead {
        margin-top: 26px;
        font-size: 1.03rem;
    }

    .apps-availability {
        grid-template-columns: 1fr;
    }

    .apps-availability > div + div {
        padding-left: 0;
        border-top: 1px solid var(--apps-line);
        border-left: 0;
    }

    .apps-section,
    .feature-section {
        padding-block: 72px;
    }

    .apps-section-heading {
        display: block;
        margin-bottom: 34px;
    }

    .apps-section-heading > p {
        margin-top: 18px;
        text-align: left;
    }

    .project-featured > .project-preview {
        margin: 12px 12px 0;
        border-radius: 13px;
    }

    .browser-bar {
        min-height: 28px;
    }

    .project-featured-copy,
    .development-card {
        padding: 30px;
    }

    .project-featured-copy h2,
    .project-featured-copy h3,
    .development-card h3 {
        font-size: 2rem;
    }

    .development-card {
        grid-template-columns: 1fr;
        gap: 22px;
        padding: 32px 0;
    }

    .development-mark {
        grid-row: auto;
    }

    .project-actions,
    .product-hero-actions {
        flex-direction: column;
    }

    .product-button {
        width: 100%;
    }

    .apps-closing {
        margin-block: 72px 84px;
        padding: 54px 26px;
    }

    .apps-footer-inner {
        flex-direction: column;
        align-items: flex-start;
    }

    .product-hero {
        min-height: auto;
        padding-block: 34px 64px;
    }

    .breadcrumb {
        margin-bottom: 54px;
    }

    .product-hero-grid {
        gap: 48px;
    }

    .product-showcase {
        width: 100%;
        padding-bottom: 86px;
    }

    .product-preview {
        border-inline: 0;
        border-radius: 0;
    }

    .preview-caption {
        margin-right: 16px;
    }

    .product-intro,
    .code-section,
    .project-context {
        gap: 38px;
        padding-block: 78px;
    }

    .product-intro-copy {
        grid-template-columns: 1fr;
        gap: 20px;
    }

    .feature-card {
        grid-template-columns: 1fr;
        gap: 10px;
        padding: 24px 0;
    }

    .code-window {
        margin-inline: -16px;
        border-radius: 0;
    }

    .download-section {
        width: 100%;
        margin-block: 48px 72px;
        padding: 56px 24px;
        border-inline: 0;
        border-radius: 0;
    }

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

    .download-icon {
        grid-row: auto;
    }

    .apps-footer-inner > div {
        flex-wrap: wrap;
        gap: 16px 22px;
    }
}

@media (prefers-reduced-motion: reduce) {
    .project-preview img,
    .product-button {
        transition: none;
    }
}
