:root {
    --market-ink: #080e16;
    --market-blue: #0d2c4a;
    --market-blue-soft: #16466f;
    --market-gold: #d6ad4d;
    --market-gold-light: #f1dc9b;
    --market-gold-deep: #9f7222;
    --market-cream: #fbf5e7;
    --market-light: #f1eee7;
    --market-muted: #5a6068;
}

body.market-body {
    background:
        radial-gradient(circle at 8% 9%, rgba(214, 173, 77, 0.15), transparent 23rem),
        radial-gradient(circle at 92% 35%, rgba(13, 44, 74, 0.1), transparent 30rem),
        linear-gradient(135deg, #f8f3e8 0%, #ece8de 52%, #f8f4ea 100%);
    color: var(--market-ink);
}

.market-page {
    padding: 34px 0 110px;
}

.market-hero {
    position: relative;
    overflow: hidden;
    min-height: 650px;
    display: flex;
    align-items: flex-end;
    border: 1px solid rgba(241, 220, 155, 0.84);
    border-radius: 32px;
    padding: clamp(3rem, 7vw, 6.25rem);
    color: #fff;
    background:
        linear-gradient(100deg, rgba(3, 10, 18, 0.98) 0%, rgba(8, 27, 47, 0.92) 56%, rgba(8, 31, 55, 0.55) 100%),
        var(--market-image) center / cover;
    box-shadow:
        0 0 0 7px #071321,
        0 0 0 8px rgba(214, 173, 77, 0.55),
        0 38px 86px rgba(7, 21, 38, 0.38);
}

.market-hero::before {
    content: "";
    position: absolute;
    z-index: 1;
    inset: 20px;
    border: 1px solid rgba(241, 220, 155, 0.46);
    border-radius: 20px;
    pointer-events: none;
}

.market-hero::after {
    content: "";
    position: absolute;
    inset: 0;
    background:
        radial-gradient(circle at 82% 18%, rgba(241, 220, 155, 0.3), transparent 30%),
        linear-gradient(180deg, transparent 55%, rgba(0, 0, 0, 0.38));
    pointer-events: none;
}

.market-hero-content {
    position: relative;
    z-index: 1;
    max-width: 850px;
}

.market-eyebrow {
    display: inline-flex;
    align-items: center;
    gap: 0.55rem;
    margin-bottom: 1.15rem;
    color: var(--market-gold-light);
    font-size: 0.82rem;
    font-weight: 700;
    letter-spacing: 0.16em;
    text-transform: uppercase;
}

.market-eyebrow::before,
.market-eyebrow::after {
    content: "◆";
    color: var(--market-gold);
    font-size: 0.55rem;
}

.market-eyebrow.is-dark {
    color: #77530f;
}

body.page-rebrand .market-hero h1 {
    max-width: 820px;
    margin: 0 0 1.3rem;
    color: #fff;
    font-size: clamp(2.65rem, 5.4vw, 5.3rem);
    font-weight: 700;
    line-height: 1.01;
    letter-spacing: -0.025em;
    text-shadow: 0 4px 28px rgba(0, 0, 0, 0.52);
}

body.page-rebrand .market-hero-copy {
    max-width: 720px;
    margin: 0;
    color: rgba(255, 255, 255, 0.9) !important;
    font-size: clamp(1.05rem, 1.6vw, 1.3rem);
    line-height: 1.65;
}

.market-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 0.85rem;
    margin-top: 2rem;
}

.market-button {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.55rem;
    min-height: 50px;
    padding: 0.82rem 1.28rem;
    border: 1px solid transparent;
    border-radius: 5px;
    letter-spacing: 0.025em;
    font-weight: 700;
    text-decoration: none;
    transition: transform 160ms ease, background-color 160ms ease, border-color 160ms ease;
}

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

body.page-rebrand .market-button-primary {
    border-color: #f5e6b6;
    color: #15110a;
    background: linear-gradient(135deg, #f4dfa0, #c99531 58%, #efd68a);
    box-shadow:
        inset 0 1px rgba(255, 255, 255, 0.62),
        0 10px 28px rgba(214, 173, 77, 0.27);
}

body.page-rebrand .market-button-primary:hover {
    color: #111820;
    background: linear-gradient(135deg, #fff0bd, #ddb253 58%, #f3dd96);
}

body.page-rebrand .market-button-secondary {
    border-color: rgba(241, 220, 155, 0.56);
    color: #fff;
    background: rgba(255, 255, 255, 0.08);
}

body.page-rebrand .market-button-secondary:hover {
    color: #fff;
    background: rgba(255, 255, 255, 0.16);
}

.market-scope {
    position: relative;
    z-index: 2;
    max-width: 1120px;
    margin: -34px auto 0;
    padding: 1.2rem 1.5rem;
    border: 1px solid var(--market-gold);
    border-radius: 6px;
    color: #fff;
    background:
        linear-gradient(90deg, rgba(214, 173, 77, 0.12), transparent 17%, transparent 83%, rgba(214, 173, 77, 0.12)),
        #081a2c;
    box-shadow:
        inset 0 0 0 4px #081a2c,
        inset 0 0 0 5px rgba(214, 173, 77, 0.3),
        0 18px 42px rgba(7, 21, 38, 0.24);
    text-align: center;
}

.market-scope strong {
    color: var(--market-gold-light);
}

.market-breadcrumbs {
    display: flex;
    flex-wrap: wrap;
    gap: 0.55rem;
    margin: 1.4rem 0 0;
    color: var(--market-muted);
    font-size: 0.92rem;
}

.market-breadcrumbs a {
    color: var(--market-blue);
    font-weight: 700;
    text-decoration: none;
}

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

.market-section {
    position: relative;
    margin-top: 4.5rem;
}

.market-section:not(.market-panel):not(.market-cta)::before {
    content: "";
    display: block;
    width: 90px;
    height: 3px;
    margin: 0 0 2rem;
    background: linear-gradient(90deg, var(--market-gold-deep), var(--market-gold-light), transparent);
}

.market-intro {
    max-width: 820px;
    margin-bottom: 2rem;
}

.market-intro h2 {
    margin: 0 0 1rem;
    color: var(--market-ink);
    font-size: clamp(2rem, 3.7vw, 3.45rem);
    font-weight: 700;
    line-height: 1.08;
    letter-spacing: -0.02em;
}

.market-intro p,
.market-copy {
    margin: 0;
    color: var(--market-muted);
    font-size: 1.08rem;
    line-height: 1.72;
}

.market-card-grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 1.25rem;
}

.market-card {
    position: relative;
    overflow: hidden;
    height: 100%;
    padding: 1.7rem;
    border: 1px solid rgba(159, 114, 34, 0.38);
    border-radius: 8px;
    background:
        linear-gradient(145deg, rgba(255, 255, 255, 0.96), rgba(250, 243, 225, 0.96)),
        #fff;
    box-shadow:
        inset 0 0 0 5px rgba(255, 255, 255, 0.58),
        0 18px 38px rgba(7, 21, 38, 0.1);
}

.market-card::after {
    content: "◆";
    position: absolute;
    top: 0.65rem;
    right: 0.8rem;
    color: rgba(159, 114, 34, 0.38);
    font-size: 0.58rem;
}

.market-card-icon {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 48px;
    height: 48px;
    margin-bottom: 1rem;
    border: 1px solid var(--market-gold);
    border-radius: 50%;
    color: var(--market-gold-light);
    background: linear-gradient(145deg, #143b5e, #061524);
    box-shadow: 0 8px 20px rgba(7, 21, 38, 0.2);
}

.market-card h3 {
    margin: 0 0 0.75rem;
    color: var(--market-ink);
    font-size: 1.25rem;
    font-weight: 700;
}

.market-card p {
    margin: 0;
    color: var(--market-muted);
    line-height: 1.65;
}

.market-panel {
    position: relative;
    overflow: hidden;
    padding: clamp(2.2rem, 5vw, 4.2rem);
    border: 1px solid var(--market-gold);
    border-radius: 12px;
    color: #fff;
    background:
        linear-gradient(110deg, rgba(7, 21, 38, 0.97), rgba(16, 56, 95, 0.9)),
        var(--panel-image) right center / cover;
    box-shadow:
        0 0 0 7px #071321,
        0 0 0 8px rgba(214, 173, 77, 0.48),
        0 28px 60px rgba(7, 21, 38, 0.26);
}

.market-panel::after,
.market-cta::after {
    content: "";
    position: absolute;
    inset: 18px;
    border: 1px solid rgba(241, 220, 155, 0.32);
    pointer-events: none;
}

.market-panel-content {
    position: relative;
    z-index: 1;
    max-width: 760px;
}

body.page-rebrand .market-panel h2 {
    margin: 0 0 1rem;
    color: #fff;
    font-size: clamp(2rem, 3.7vw, 3.35rem);
    font-weight: 700;
    line-height: 1.08;
}

body.page-rebrand .market-panel p {
    margin: 0;
    color: rgba(255, 255, 255, 0.86) !important;
    font-size: 1.08rem;
    line-height: 1.72;
}

.market-panel-list {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 0.85rem;
    margin: 1.8rem 0 0;
    padding: 0;
    list-style: none;
}

body.page-rebrand .market-panel-list li {
    display: flex;
    gap: 0.7rem;
    padding: 0.95rem 1rem;
    border: 1px solid rgba(255, 255, 255, 0.14);
    border-radius: 4px;
    color: rgba(255, 255, 255, 0.92) !important;
    background: rgba(255, 255, 255, 0.06);
}

.market-panel-list i {
    margin-top: 0.2rem;
    color: #f0d993;
}

.market-fit-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 1.25rem;
}

.market-fit {
    padding: 1.8rem;
    border: 1px solid rgba(159, 114, 34, 0.35);
    border-radius: 8px;
    background: linear-gradient(145deg, #fff, var(--market-cream));
    box-shadow: 0 18px 38px rgba(7, 21, 38, 0.1);
}

.market-fit h3 {
    color: var(--market-ink);
    font-size: 1.3rem;
    font-weight: 700;
}

.market-fit p {
    color: var(--market-muted);
    line-height: 1.65;
}

.market-fit ul {
    margin: 1rem 0 0;
    padding: 0;
    list-style: none;
}

.market-fit li {
    display: flex;
    gap: 0.65rem;
    margin-top: 0.72rem;
    color: #354152;
}

.market-fit.is-fit i {
    color: #287a4b;
}

.market-fit.is-not-fit i {
    color: #a94442;
}

.market-process {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 1rem;
}

.market-step {
    padding: 1.55rem;
    border: 1px solid rgba(159, 114, 34, 0.34);
    border-radius: 7px;
    background: linear-gradient(160deg, #fff, #f8f0dd);
    box-shadow: 0 15px 34px rgba(7, 21, 38, 0.07);
}

.market-step-number {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 38px;
    height: 38px;
    margin-bottom: 1rem;
    border-radius: 50%;
    border: 1px solid var(--market-gold);
    color: var(--market-gold-light);
    background: linear-gradient(145deg, var(--market-blue), #061320);
    font-weight: 700;
}

.market-step h3 {
    color: var(--market-ink);
    font-size: 1.18rem;
    font-weight: 700;
}

.market-step p {
    margin: 0;
    color: var(--market-muted);
    line-height: 1.6;
}

.market-faq-list {
    display: grid;
    gap: 0.9rem;
}

.market-faq {
    padding: 1.5rem 1.7rem;
    border: 1px solid rgba(159, 114, 34, 0.3);
    border-radius: 6px;
    background: rgba(255, 253, 247, 0.88);
    box-shadow: 0 14px 32px rgba(7, 21, 38, 0.07);
}

.market-faq h3 {
    margin: 0;
    color: var(--market-ink);
    font-size: 1.15rem;
    font-weight: 700;
}

.market-faq p {
    margin: 0.65rem 0 0;
    color: var(--market-muted);
    line-height: 1.66;
}

.market-cta {
    position: relative;
    overflow: hidden;
    display: grid;
    grid-template-columns: minmax(0, 1fr) auto;
    align-items: center;
    gap: 2rem;
    padding: clamp(2.2rem, 5vw, 4.2rem);
    border: 1px solid var(--market-gold);
    border-radius: 12px;
    color: #fff;
    background:
        radial-gradient(circle at 92% 18%, rgba(214, 173, 77, 0.22), transparent 17rem),
        linear-gradient(125deg, #050d17, #123b61);
    box-shadow:
        0 0 0 7px #071321,
        0 0 0 8px rgba(214, 173, 77, 0.48),
        0 28px 60px rgba(7, 21, 38, 0.27);
}

.market-cta > * {
    position: relative;
    z-index: 1;
}

body.page-rebrand .market-cta h2 {
    margin: 0 0 1rem;
    color: #fff;
    font-size: clamp(2rem, 3.7vw, 3.25rem);
    font-weight: 700;
}

body.page-rebrand .market-cta p {
    margin: 0;
    color: rgba(255, 255, 255, 0.86) !important;
    font-size: 1.08rem;
    line-height: 1.7;
}

body.page-rebrand .market-phone {
    color: var(--market-gold-light);
    font-size: clamp(1.55rem, 3vw, 2.4rem);
    font-weight: 700;
    text-decoration: none;
    white-space: nowrap;
}

body.page-rebrand .market-phone:hover {
    color: #fff;
}

@media (max-width: 991.98px) {
    .market-card-grid,
    .market-process {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

    .market-cta {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 767.98px) {
    .market-page {
        padding-top: 20px;
    }

    .market-hero {
        min-height: 540px;
        border-radius: 14px;
        padding: 3.2rem 1.5rem 4.2rem;
    }

    .market-hero::before,
    .market-panel::after,
    .market-cta::after {
        inset: 10px;
    }

    .market-scope {
        margin: -24px 14px 0;
    }

    .market-section {
        margin-top: 3.4rem;
    }

    .market-card-grid,
    .market-fit-grid,
    .market-process,
    .market-panel-list {
        grid-template-columns: 1fr;
    }

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