:root {
    --bg: #070b10;
    --bg-soft: #0b1118;
    --panel: #101822;
    --panel-2: #151f2b;
    --line: #253242;
    --line-soft: rgba(148, 163, 184, .16);
    --text: #f7f9fc;
    --muted: #9aa9bc;
    --muted-2: #718299;
    --red: #ef2b2d;
    --red-deep: #be1f22;
    --amber: #f59e0b;
    --max: 1320px;
    --shadow: 0 24px 80px rgba(0, 0, 0, .36);
}

* {
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    margin: 0;
    background:
        radial-gradient(circle at 78% 8%, rgba(239, 43, 45, .10), transparent 28rem),
        linear-gradient(180deg, #070b10 0%, #091019 52%, #070b10 100%);
    color: var(--text);
    font-family:
        Inter,
        ui-sans-serif,
        system-ui,
        -apple-system,
        BlinkMacSystemFont,
        "Segoe UI",
        sans-serif;
    line-height: 1.6;
}

a {
    color: inherit;
}

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

.studio-shell {
    width: min(calc(100% - 48px), var(--max));
    margin: 0 auto;
}

.studio-topbar {
    position: relative;
    z-index: 10;
    border-bottom: 1px solid var(--line);
    background: rgba(7, 11, 16, .92);
    backdrop-filter: blur(16px);
}

.studio-brand-row {
    display: flex;
    min-height: 104px;
    align-items: center;
    justify-content: space-between;
    gap: 24px;
}

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

.studio-brand-logo {
    width: 74px;
    height: 74px;
    object-fit: contain;
}

.studio-brand-name {
    display: block;
    color: #fff;
    font-size: 22px;
    font-weight: 800;
    letter-spacing: -.025em;
}

.studio-brand-name strong {
    color: var(--red);
}

.studio-brand-powered {
    display: block;
    margin-top: 2px;
    color: var(--muted-2);
    font-size: 12px;
    font-weight: 600;
    letter-spacing: .03em;
}

.studio-version-pill {
    padding: 8px 12px;
    border: 1px solid var(--line);
    border-radius: 999px;
    background: rgba(255, 255, 255, .025);
    color: var(--muted);
    font-size: 12px;
    font-weight: 700;
}

.studio-hero {
    position: relative;
    overflow: hidden;
    border-bottom: 1px solid var(--line);
}

.studio-hero::before {
    position: absolute;
    inset: 0;
    background:
        linear-gradient(110deg, rgba(239, 43, 45, .04), transparent 42%),
        radial-gradient(circle at 76% 44%, rgba(239, 43, 45, .16), transparent 24rem);
    content: "";
    pointer-events: none;
}

.studio-hero-grid {
    position: relative;
    display: grid;
    min-height: 690px;
    grid-template-columns: minmax(0, 1.22fr) minmax(360px, .78fr);
    gap: 76px;
    align-items: center;
    padding-top: 84px;
    padding-bottom: 84px;
}

.studio-eyebrow {
    color: #9cb0c9;
    font-size: 12px;
    font-weight: 900;
    letter-spacing: .17em;
    text-transform: uppercase;
}

.studio-hero h1 {
    max-width: 820px;
    margin: 20px 0 22px;
    color: #fff;
    font-size: clamp(46px, 6vw, 88px);
    line-height: .98;
    letter-spacing: -.055em;
}

.studio-hero h1 span {
    display: block;
    color: var(--red);
}

.studio-lead {
    max-width: 800px;
    margin: 0;
    color: #c6d0dc;
    font-size: clamp(18px, 2vw, 23px);
    line-height: 1.65;
}

.studio-tagline {
    margin: 24px 0 0;
    color: #fff;
    font-size: 15px;
    font-weight: 800;
    letter-spacing: .13em;
    text-transform: uppercase;
}

.studio-hero-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 18px;
    align-items: center;
    margin-top: 34px;
}

.studio-button {
    display: inline-flex;
    min-height: 52px;
    align-items: center;
    justify-content: center;
    padding: 0 22px;
    border: 1px solid transparent;
    border-radius: 8px;
    font-weight: 850;
    text-decoration: none;
    transition:
        transform .16s ease,
        box-shadow .16s ease,
        background .16s ease;
}

.studio-button:hover {
    transform: translateY(-2px);
}

.studio-button-primary {
    border-color: #ff5354;
    background: linear-gradient(180deg, #f13234, #d62023);
    box-shadow: 0 10px 34px rgba(239, 43, 45, .24);
    color: #fff;
}

.studio-button-primary:hover {
    background: linear-gradient(180deg, #ff3b3d, #df1f22);
    box-shadow: 0 14px 42px rgba(239, 43, 45, .34);
}

.studio-button-secondary {
    border-color: var(--line-strong);
    background: #111923;
    color: #fff;
}

.studio-button-secondary:hover {
    border-color: #72849a;
    background: #172231;
    color: #fff;
}

.studio-button-disabled,
.studio-button-disabled:hover {
    border-color: #394452;
    background: #1a222c;
    box-shadow: none;
    color: #8f9aa8;
    cursor: not-allowed;
    transform: none;
}

.studio-download-meta {
    color: var(--muted);
    font-size: 14px;
    font-weight: 700;
}

.studio-hero-note {
    margin-top: 18px;
    color: var(--muted-2);
    font-size: 13px;
}

.studio-hero-visual {
    display: flex;
    justify-content: center;
}

.studio-logo-stage {
    position: relative;
    display: grid;
    width: min(100%, 470px);
    aspect-ratio: 1;
    place-items: center;
    border: 1px solid var(--line);
    border-radius: 36px;
    background:
        linear-gradient(145deg, rgba(255, 255, 255, .035), rgba(255, 255, 255, .008)),
        #0b1118;
    box-shadow: var(--shadow);
}

.studio-logo-stage::before,
.studio-logo-stage::after {
    position: absolute;
    border: 1px solid rgba(239, 43, 45, .18);
    border-radius: 50%;
    content: "";
}

.studio-logo-stage::before {
    width: 72%;
    height: 72%;
}

.studio-logo-stage::after {
    width: 52%;
    height: 52%;
}

.studio-logo-glow {
    position: absolute;
    width: 62%;
    height: 62%;
    border-radius: 50%;
    background: rgba(239, 43, 45, .18);
    filter: blur(70px);
}

.studio-main-logo {
    position: relative;
    z-index: 2;
    width: 76%;
    max-height: 76%;
    object-fit: contain;
    filter: drop-shadow(0 24px 38px rgba(0, 0, 0, .45));
}

.studio-metrics {
    border-bottom: 1px solid var(--line);
    background: rgba(10, 15, 22, .94);
}

.studio-metric-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
}

.studio-metric-grid > div {
    padding: 26px 28px;
    border-left: 1px solid var(--line);
}

.studio-metric-grid > div:last-child {
    border-right: 1px solid var(--line);
}

.studio-metric-grid strong,
.studio-metric-grid span {
    display: block;
}

.studio-metric-grid strong {
    color: #fff;
    font-size: 27px;
    line-height: 1.1;
}

.studio-metric-grid span {
    margin-top: 7px;
    color: var(--muted);
    font-size: 12px;
    font-weight: 700;
}

.studio-section {
    padding: 96px 0;
}

.studio-section-dark {
    border-top: 1px solid var(--line);
    border-bottom: 1px solid var(--line);
    background:
        linear-gradient(180deg, rgba(16, 24, 34, .76), rgba(9, 15, 23, .9));
}

.studio-section-heading {
    max-width: 860px;
    margin-bottom: 42px;
}

.studio-section-heading-centered {
    margin-right: auto;
    margin-left: auto;
    text-align: center;
}

.studio-section-heading h2,
.studio-release-box h2,
.studio-cta h2 {
    margin: 12px 0 14px;
    color: #fff;
    font-size: clamp(34px, 4.6vw, 58px);
    line-height: 1.06;
    letter-spacing: -.04em;
}

.studio-section-heading p {
    margin: 0;
    color: var(--muted);
    font-size: 18px;
}

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

.studio-card {
    position: relative;
    min-height: 270px;
    padding: 30px;
    overflow: hidden;
    border: 1px solid var(--line);
    border-radius: 18px;
    background:
        linear-gradient(145deg, rgba(255, 255, 255, .022), transparent 54%),
        var(--panel);
}

.studio-card::after {
    position: absolute;
    right: -55px;
    bottom: -70px;
    width: 150px;
    height: 150px;
    border-radius: 50%;
    background: rgba(239, 43, 45, .065);
    content: "";
}

.studio-card-number {
    display: inline-block;
    margin-bottom: 34px;
    color: var(--red);
    font-size: 12px;
    font-weight: 900;
    letter-spacing: .12em;
}

.studio-card h3,
.studio-detail-column h3,
.studio-notice h3 {
    margin: 0 0 12px;
    color: #fff;
    font-size: 21px;
    line-height: 1.25;
}

.studio-card p,
.studio-notice p {
    position: relative;
    z-index: 1;
    margin: 0;
    color: var(--muted);
}

.studio-screenshot-card {
    overflow: hidden;
    border: 1px solid var(--line);
    border-radius: 18px;
    background: #06090d;
    box-shadow: var(--shadow);
}

.studio-screenshot-card-second {
    margin-top: 28px;
}

.studio-screenshot-card img {
    width: 100%;
    background: #111;
}

.studio-screenshot-caption {
    display: flex;
    justify-content: space-between;
    gap: 28px;
    align-items: flex-start;
    padding: 20px 24px;
    border-top: 1px solid var(--line);
    background: var(--panel);
}

.studio-screenshot-caption strong {
    flex: 0 0 auto;
    color: #fff;
}

.studio-screenshot-caption span {
    max-width: 920px;
    color: var(--muted);
    text-align: right;
}

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

.studio-product-page .studio-detail-grid {
    grid-template-columns: repeat(3, minmax(0, 1fr));
}

.studio-detail-column {
    padding: 34px;
    border: 1px solid var(--line);
    border-radius: 18px;
    background: var(--panel);
}

.studio-detail-column ul {
    display: grid;
    gap: 12px;
    margin: 22px 0 0;
    padding: 0;
    list-style: none;
}

.studio-detail-column li {
    position: relative;
    padding-left: 24px;
    color: #c4ceda;
}

.studio-detail-column li::before {
    position: absolute;
    left: 0;
    top: .68em;
    width: 7px;
    height: 7px;
    border-radius: 50%;
    background: var(--red);
    content: "";
}

.studio-release-section {
    padding-top: 0;
}

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

.studio-platform-card {
    grid-template-columns: 1fr;
    align-content: space-between;
}

.studio-platform-card .studio-release-action {
    align-items: flex-start;
}

.studio-release-box {
    display: grid;
    grid-template-columns: minmax(0, 1fr) auto;
    gap: 38px;
    align-items: center;
    padding: 44px;
    border: 1px solid rgba(239, 43, 45, .42);
    border-radius: 22px;
    background:
        radial-gradient(circle at 88% 20%, rgba(239, 43, 45, .16), transparent 22rem),
        var(--panel);
}

.studio-release-box h2 {
    margin-bottom: 10px;
    font-size: clamp(32px, 4vw, 50px);
}

.studio-release-box p {
    max-width: 800px;
    margin: 0;
    color: var(--muted);
}

.studio-release-action {
    display: flex;
    flex-direction: column;
    gap: 8px;
    align-items: center;
}

.studio-release-action span {
    color: var(--muted-2);
    font-size: 12px;
}

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

.studio-notice {
    padding: 28px;
    border: 1px solid var(--line);
    border-radius: 16px;
    background: rgba(16, 24, 34, .72);
}

.studio-notice:nth-child(5) {
    border-color: rgba(245, 158, 11, .34);
}

.studio-cta {
    padding: 74px 0;
    border-top: 1px solid var(--line);
    border-bottom: 1px solid var(--line);
    background:
        linear-gradient(110deg, rgba(239, 43, 45, .12), transparent 58%),
        #0b1118;
}

.studio-cta-inner {
    display: flex;
    justify-content: space-between;
    gap: 42px;
    align-items: center;
}

.studio-cta h2 {
    margin-bottom: 8px;
    font-size: clamp(34px, 4vw, 52px);
}

.studio-cta p {
    margin: 0;
    color: var(--muted);
}

.studio-button-large {
    min-width: 230px;
    min-height: 58px;
}

.studio-footer {
    padding: 46px 0 30px;
    background: #06090d;
}

.studio-footer-grid {
    display: flex;
    justify-content: space-between;
    gap: 38px;
    align-items: flex-start;
}

.studio-footer strong {
    color: #fff;
    font-size: 17px;
}

.studio-footer p {
    margin: 6px 0 0;
    color: var(--muted-2);
    font-size: 13px;
}

.studio-footer-links {
    display: flex;
    flex-wrap: wrap;
    gap: 18px;
}

.studio-footer-links a {
    color: #bcc8d7;
    font-size: 13px;
    font-weight: 700;
    text-decoration: none;
}

.studio-footer-links a:hover {
    color: #fff;
}

.studio-footer-bottom {
    display: flex;
    justify-content: space-between;
    gap: 24px;
    margin-top: 30px;
    padding-top: 22px;
    border-top: 1px solid var(--line-soft);
    color: var(--muted-2);
    font-size: 11px;
}

@media (max-width: 1040px) {
    .studio-hero-grid {
        min-height: 0;
        grid-template-columns: 1fr;
        gap: 42px;
    }

    .studio-hero-visual {
        justify-content: flex-start;
    }

    .studio-logo-stage {
        width: min(100%, 420px);
    }

    .studio-feature-grid,
    .studio-notice-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

    .studio-product-page .studio-detail-grid {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 760px) {
    .studio-shell {
        width: min(calc(100% - 28px), var(--max));
    }

    .studio-brand-row {
        min-height: 84px;
    }

    .studio-brand-logo {
        width: 54px;
        height: 54px;
    }

    .studio-brand-name {
        font-size: 17px;
    }

    .studio-brand-powered {
        display: none;
    }

    .studio-version-pill {
        font-size: 10px;
    }

    .studio-hero-grid {
        padding-top: 58px;
        padding-bottom: 58px;
    }

    .studio-hero h1 {
        font-size: clamp(42px, 13vw, 66px);
    }

    .studio-lead {
        font-size: 17px;
    }

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

    .studio-metric-grid > div:nth-child(2) {
        border-right: 1px solid var(--line);
    }

    .studio-section {
        padding: 70px 0;
    }

    .studio-feature-grid,
    .studio-notice-grid,
    .studio-detail-grid {
        grid-template-columns: 1fr;
    }

    .studio-platform-grid {
        grid-template-columns: 1fr;
    }

    .studio-screenshot-caption {
        flex-direction: column;
        gap: 7px;
    }

    .studio-screenshot-caption span {
        text-align: left;
    }

    .studio-release-box {
        grid-template-columns: 1fr;
        padding: 30px;
    }

    .studio-release-action {
        align-items: flex-start;
    }

    .studio-cta-inner,
    .studio-footer-grid,
    .studio-footer-bottom {
        flex-direction: column;
        align-items: flex-start;
    }
}

@media (max-width: 460px) {
    .studio-version-pill {
        display: none;
    }

    .studio-hero-actions {
        align-items: stretch;
        flex-direction: column;
    }

    .studio-button {
        width: 100%;
    }

    .studio-metric-grid > div {
        padding: 21px 16px;
    }

    .studio-card,
    .studio-detail-column,
    .studio-notice {
        padding: 24px;
    }
}


/* =========================================================
   Integration into the normal PhotoMatchForensics website
   ========================================================= */

/* The standalone page's body background now belongs to the product area. */
.studio-product-page {
    background:
        radial-gradient(circle at 78% 8%, rgba(239, 43, 45, .10), transparent 28rem),
        linear-gradient(180deg, #070b10 0%, #091019 52%, #070b10 100%);
    color: var(--text);
    overflow: hidden;
}

/* The standalone page had its own topbar/footer; the normal PMF site provides those. */
.studio-product-page .studio-section:first-child {
    margin-top: 0;
}

/* Keep PMF's existing Before Download and FAQ readable inside the ad design. */
.studio-product-page .pmf-section {
    padding-top: 5rem;
    padding-bottom: 5rem;
    border-top: 1px solid var(--line);
    background: #070b10;
}

.studio-product-page .pmf-studio-notice {
    max-width: 1320px;
    margin: 0 auto;
}

.studio-product-page .pmf-about-faq {
    max-width: 1320px;
}

.studio-product-page .pmf-eyebrow {
    color: #9cb0c9;
}

.studio-product-page .pmf-section h2 {
    color: #fff;
}

@media (max-width: 760px) {
    .studio-product-page .pmf-section {
        padding-top: 3.5rem;
        padding-bottom: 3.5rem;
    }
}
