*, *::before, *::after {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

html {
    scroll-behavior: smooth;
    -webkit-text-size-adjust: 100%;
}

body {
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Oxygen, Ubuntu, Cantarell, 'Helvetica Neue', sans-serif;
    font-size: 16px;
    line-height: 1.6;
    min-height: 100vh;
    text-rendering: optimizeLegibility;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

h1, h2, h3, h4, h5, h6 {
    font-weight: 600;
    line-height: 1.2;
    margin-bottom: 1rem;
}

h1 { font-size: 2.5rem; }
h2 { font-size: 2rem; }
h3 { font-size: 1.75rem; }
h4 { font-size: 1.5rem; }
h5 { font-size: 1.25rem; }
h6 { font-size: 1rem; }

p {
    margin-bottom: 0;
}

a {
    color: #0066cc;
    text-decoration: none;
    transition: color 0.3s ease;
}

a:hover {
    color: var(--primary-blue);
    text-decoration: underline;
}

ul, ol {
    list-style: none;
}

button, input, select, textarea {
    font-family: inherit;
    font-size: 100%;
    line-height: 1.15;
    margin: 0;
}

button {
    cursor: pointer;
    border: none;
    background: none;
}

img, picture, video, canvas, svg {
    display: block;
    max-width: 100%;
    height: auto;
}

table {
    border-collapse: collapse;
    border-spacing: 0;
}

:root {
    --bg-active: #000000;
    --bg: #11131f;
    --bg-contrast: #1d1f31;
    --bg-light: #2d3348;
    --bg-nav: #11131f;
    --bg-hover: #12131e;
    --bg-stat: #0b1018;
    --fg: #ffffff;
    --title-fg: #2055e3;
    --primary-blue: #007cfa;
    --secondary: #272f4e;
    --tertiary-purple: #6225b2;
    --info-cyan: #00ddff;
    --success-green: #0aab2f;
    --danger-red: #b71c1c;
    --orange: #ff9f00;
    --grey: #7e7e7e;
}

html, body {
    background: var(--bg-active);
    color: #fff;
    font-family: -apple-system,BlinkMacSystemFont,Segoe UI,Roboto,Helvetica Neue,Arial,Noto Sans,Liberation Sans,sans-serif,"Apple Color Emoji","Segoe UI Emoji",Segoe UI Symbol,"Noto Color Emoji";
}

body {
    display: flex;
    min-height: 100vh;
    flex-direction: column;
}

main {
    flex-grow: 1;
}

header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 1rem;
    background: var(--bg-contrast);
    box-shadow: 0 0 15px #000;
    position: sticky;
    top: 0;
    z-index: 1000;
}

footer {
    background: var(--bg-contrast);
}

.logo {
    font-size: 2rem;
    letter-spacing: 0.1em;
    height: 50px;

    img {
        height: 100%;
    }
}

.group {
    display: grid;
    grid-template-columns: repeat(2, max-content);
    gap: 1rem;
    margin: 2em;
    justify-content: center;

    h2 {
        grid-column: 1 / -1;
    }

    .link {
        width: 360px;
        height: 100px;
        border-radius: 4px;
        background: var(--bg-contrast);
        padding: 20px;
        justify-self: center;
        font-weight: 600;
        color: white;
        font-size: 28px;

        &:hover {
            background: var(--bg-light);
            text-decoration: none;
        }

        img {
            height: 100%;
        }

        &.sm {
            font-size: 22px;
        }
    }

    .square-logo {
        display: flex;
        flex-direction: row;
        align-items: center;
        justify-content: flex-start;

        img {
            margin-right: 20px;
        }
    }

    @media (max-width: 400px) {
        .link {
            width: 90vw;
            height: 25vw;
            padding: 5vw;
            font-size: 7vw;

            &.sm {
                font-size: 5.5vw;
            }
        }

        .square-logo {
            img {
                margin-right: 5vw;
            }
        }
    }
}

@media (max-width: 800px) {
    .group {
        grid-template-columns: 1fr;
    }
}

.infra-grid {
    display: grid;
    grid-template-columns: repeat(2, max-content);
    gap: 1rem;
    justify-content: center;
    margin-top: 1rem;

    .link {
        width: 360px;
        height: 100px;
        border-radius: 4px;
        background: var(--bg);
        border: 1px solid rgba(0, 0, 0, 0.125);
        box-shadow: 0.125rem 0.125rem 0.25rem rgba(0, 0, 0, 0.075);
        padding: 20px;
        justify-self: center;
        font-weight: 600;
        color: white;
        font-size: 28px;

        &:hover {
            background: var(--bg-light);
            text-decoration: none;
        }

        img {
            height: 100%;
        }
    }

    .square-logo {
        display: flex;
        flex-direction: row;
        align-items: center;
        justify-content: flex-start;

        img {
            margin-right: 20px;
        }
    }

    @media (max-width: 400px) {
        .link {
            width: 90vw;
            height: 25vw;
            padding: 5vw;
            font-size: 7vw;
        }

        .square-logo {
            img {
                margin-right: 5vw;
            }
        }
    }
}

@media (max-width: 800px) {
    .infra-grid {
        grid-template-columns: 1fr;
    }
}

footer {
    padding: 2em 5px;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
}

.social-links {
    text-align: center;
    justify-content: center;
    display: flex;
    flex-wrap: no-wrap;
    width: fit-content;
    margin: 0 auto;
    max-width: 90vw;

    @media (max-width: 450px) {
        flex-wrap: wrap;
    }
}

.social-links a {
    margin: 0 14px;
}

.social-links svg {
    width: 20px;
    margin: 10px 0 10px 0;
}

footer hr {
    border: none;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    margin: 1.5rem auto;
    max-width: 400px;
}

footer .copyright {
    text-align: center;
    color: rgba(255, 255, 255, 0.5);
    font-size: 0.9rem;
    margin: 0;
}

.marketing-section {
    padding: 4rem 2rem;
    border-top: 1px solid rgba(255, 255, 255, 0.1);

    &:last-last-child(1) {
        background: var(--bg);
    }
}

.section-content {
    max-width: 1000px;
    margin: 0 auto;
}

.marketing-section h2 {
    font-size: 2.5rem;
    margin-bottom: 2rem;
    text-align: center;
}

.intro-section {
    border-top: none;
    padding: 2rem 2rem 0rem;
}

.intro-section .section-content {
    text-align: center;
}

.intro-blocks-wrapper {
    position: relative;
    display: inline-block;
    margin: 1rem auto;
    max-width: 600px;
}

.intro-blocks {
    max-height: 200px;
    display: block;
}

.intro-reg {
    position: absolute;
    top: 0;
    right: -1.5rem;
    font-size: 1.5rem;
    color: rgba(255, 255, 255, 0.7);
}

img.inline-logo {
    display: inline !important;
    height: 1em;
    width: auto;
    vertical-align: middle;
    margin-bottom: 0.25rem;
}

#mission {
    position: relative;
    min-height: 70vh;
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
}

.mission-bg {
    position: absolute;
    inset: 0;
    z-index: 0;
    overflow: hidden;
}

.mission-bg video {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

#mission .section-content {
    position: absolute;
    top: 75%;
    left: 50%;
    transform: translate(-50%, -50%);
    z-index: 1;
    width: auto;
    max-width: 90%;
    text-align: center;
}

#mission .section-content::before {
    content: '';
    position: absolute;
    inset: -1rem -2rem;
    border-radius: 1.5rem;
    background: #11131f;
    filter: blur(1.5rem);
    z-index: -1;
}

#mission .section-content h2 {
    margin-bottom: 0.5rem;
}

#mission .tagline {
    font-size: 1.5rem;
    text-align: center;
    color: rgba(255, 255, 255, 0.9);
    max-width: 600px;
    margin: 0 auto;
    line-height: 1.6;
}

#goals {
    background: var(--bg);
    overflow: hidden;
}

#goals .section-content {
    position: relative;
    display: flex;
    gap: 3rem;
    align-items: center;
    width: 100%;
    max-width: 900px;
    padding-bottom: 3rem;
}

.goals-text-wrapper {
    flex: 1;
}

.goals-graphic {
    position: absolute;
    right: 0;
    bottom: 0;
    top: 0;
}

.goals-graphic img {
    height: 100%;
}

.goals-list {
    display: flex;
    flex-direction: column;
}

.goal-item {
    display: flex;
    align-items: center;
    padding: 1rem 0.5rem;
    font-size: 1.1rem;
    color: rgba(255, 255, 255, 0.85);
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
    width: fit-content;
}

.goal-item:last-child {
    border-bottom: none;
}

@media (max-width: 900px) {
    .goals-graphic {
        display: none;
    }

    .goal-item:nth-child(1),
    .goal-item:nth-child(2),
    .goal-item:nth-child(3),
    .goal-item:nth-child(4) {
        transform: none;
    }

    #goals .section-content {
        flex-direction: column;
        align-items: center;
    }

    .goals-text-wrapper h2 {
        text-align: center;
    }
}

.goal-item .check {
    color: var(--success-green);
    font-weight: bold;
    margin-right: 1rem;
}

.offerings-section {
    background: var(--bg-active);
    padding-bottom: 4rem;
}

.offerings-section h2 {
    text-align: center;
    font-size: 2.5rem;
    margin: 2rem 0;
    padding: 0 2rem;
}

.panels-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 1.5rem;
    padding: 1.5rem;
    max-width: 1200px;
    margin: 0 auto;
}

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

.panel-node {
    text-decoration: none;
    color: inherit;
    text-align: center;
    transition: 200ms all ease-in-out;
}

.panel-node:hover {
    text-decoration: none;
    background: var(--secondary);
}

.panel-node h3 {
    margin-bottom: 0.5rem;
}

.panel-node .panel-graphic {
    min-height: 80px;
}

.panel-node .panel-graphic img {
    max-height: 80px;
    max-width: 80px;
}

.panel {
    background: var(--bg);
    border: 1px solid rgba(0, 0, 0, 0.125);
    box-shadow: 0.125rem 0.125rem 0.25rem rgba(0, 0, 0, 0.075);
    border-radius: 4px;
    padding: 1.25rem;
    display: flex;
    flex-direction: column;
    overflow: hidden;
}

.panel h3 {
    font-size: 1.15rem;
    margin-bottom: 1rem;
    color: var(--title-fg);
}

.panel p {
    color: rgba(255, 255, 255, 0.8);
    line-height: 1.6;
    margin-bottom: 0.75rem;
    font-size: 0.95rem;
    max-width: 600px;
}

.panel .secondary {
    font-size: 0.85rem;
    color: var(--grey);
}

.panel a {
    color: var(--info-cyan);
    text-decoration: none;
    transition: 200ms all ease-in-out;
}

.panel a:hover {
    color: #00b8d4;
    text-decoration: underline;
}

.panel-logo {
    display: flex;
    align-items: center;
    gap: 1rem;
    margin-bottom: 1rem;
}

.panel-logo img {
    height: 60px;
    width: auto;
}

.panel-logo span {
    font-size: 1.15rem;
    font-weight: 600;
    color: #fff;
}

.panel-wide {
    grid-column: span 2;
}

.panel-cta {
    display: flex;
    justify-content: center;
    gap: 0.75rem;
    flex-wrap: wrap;
    margin-top: auto;
    padding-top: 1.5rem;
    order: 2;
}

.panel-cta-wrapper {
    text-align: center;
    .panel-cta {
        margin-top: 0;
        padding-top: 0;
    }
}

a.btn {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    background: var(--secondary);
    border: 1px solid var(--secondary);
    padding: 0.5rem 1rem;
    border-radius: 4px;
    color: var(--fg);
    text-decoration: none;
    font-size: 0.875rem;
    font-weight: 500;
    transition: 200ms all ease-in-out;
}

a.btn:hover {
    background: #323d66;
    text-decoration: none;
    color: var(--fg);
}

.btn.disabled {
    background: var(--secondary);
    border: 1px solid var(--secondary);
    padding: 0.5rem 1rem;
    border-radius: 4px;
    color: var(--grey);
    font-size: 0.875rem;
    font-weight: 500;
    cursor: not-allowed;
    opacity: 0.6;
}

a.btn img {
    height: 18px;
    width: 18px;
    object-fit: contain;
}

.panel-graphic {
    border-radius: 4px;
    min-height: 180px;
    flex: 1;
    display: flex;
    align-items: center;
    justify-content: center;
    order: 1;
}

.panel-graphic img {
    max-width: 100%;
    max-height: 200px;
    object-fit: contain;
}

.panel-tmosp .panel-graphic {
    order: 3;
    margin: auto -1.25rem -1.25rem -1.25rem;
    min-height: unset;
    flex: 0;
    border-radius: 0;
}

.panel-tmosp .panel-graphic img {
    width: 100%;
    height: auto;
    max-height: none;
    object-fit: cover;
    object-position: top;
}

.panel-tmosp .panel-cta {
    order: 2;
    margin-top: auto;
}

/* .only-wide: visible > 1000px OR 475px-800px */
.panel-cta.only-wide {
    display: flex;
}
@media (max-width: 474px) {
    .panel-cta.only-wide {
        display: none;
    }
}
@media (min-width: 801px) and (max-width: 1000px) {
    .panel-cta.only-wide {
        display: none;
    }
}

/* .btn.only-narrow: inverse - visible 0-474px and 801-1000px */
.panel-cta .btn.only-narrow {
    display: none;
}
@media (max-width: 474px) {
    .panel-cta .btn.only-narrow {
        display: inline-flex;
    }
}
@media (min-width: 801px) and (max-width: 1000px) {
    .panel-cta .btn.only-narrow {
        display: inline-flex;
    }
}

.panel-electrs .panel-graphic {
    margin-left: -1.25rem;
    margin-right: -1.25rem;
    border-radius: 0;
}

.panel-electrs .panel-graphic img {
    width: 100%;
    max-width: none;
    max-height: none;
}

.panel-mempool-space {
    position: relative;
}

.panel-mempool-space .panel-graphic {
    order: 3;
    margin: auto -1.25rem -1.25rem -1.25rem;
    flex: 0;
    border-radius: 0;
    overflow: hidden;
    justify-content: flex-start;
    height: 200px;
    min-height: 200px;
}

.panel-mempool-space .panel-graphic img {
    height: 200px;
    width: auto;
    max-width: none;
    max-height: none;
}

.panel-mempool-space .panel-cta {
    order: 2;
}

.panel-mempool-space .panel-cta .btn,
.panel-gob .panel-cta .btn {
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.5);
}

.panel-gob {
    position: relative;
}

.panel-gob .panel-graphic {
    order: 3;
    margin: auto -1.25rem -1.25rem -1.25rem;
    min-height: unset;
    flex: 0;
    border-radius: 0;
}

.panel-gob .panel-graphic img {
    width: 100%;
    height: 275px;
    max-height: none;
    object-fit: fill;
}

.panel-gob .panel-cta {
    order: 2;
}

.gob-flag {
    position: absolute;
    bottom: 0.4rem;
    right: 2.5rem;
    font-size: 5rem;
}

.panel-liquid,
.panel-accelerator,
.panel-enterprise,
.panel-research,
.panel-wallet,
.panel-electrs,
.panel-tmosp {
    position: relative;
}

.panel-liquid .panel-cta,
.panel-accelerator .panel-cta,
.panel-enterprise .panel-cta,
.panel-research .panel-cta,
.panel-wallet .panel-cta,
.panel-electrs .panel-cta,
.panel-mempool-space .panel-cta,
.panel-gob .panel-cta,
.panel-tmosp > .panel-cta {
    position: absolute;
    top: 1.25rem;
    right: 1.25rem;
    bottom: auto;
    left: auto;
    margin-top: 0;
    padding-top: 0;
}

.panel-liquid .panel-graphic {
    order: 3;
    margin: auto -1.25rem -1.25rem -1.25rem;
    flex: 0;
    border-radius: 0;
    min-height: unset;
}

.panel-liquid .panel-graphic img {
    width: 100%;
    max-width: none;
    max-height: none;
    height: auto;
}

.panel-research .panel-graphic {
    order: 3;
    margin: auto -1.25rem -1.25rem -1.25rem;
    flex: 0;
    border-radius: 0;
    min-height: unset;
}

.panel-research .panel-graphic img {
    width: 100%;
    max-width: none;
    max-height: none;
    height: auto;
}

.panel-wallet {
    .panel-graphic {
        img {
            max-width: 90%;
            max-height: 300px;
        }
    }
}

.team-grid {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 1.5rem;
}

.team-member {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 0.5rem;
    text-decoration: none;
    color: #fff;
}

.team-member img {
    width: 80px;
    height: 80px;
    border-radius: 50%;
    object-fit: cover;
}

.team-member span {
    font-weight: 600;
    font-size: 0.9rem;
}

.team-member:hover {
    text-decoration: none;
}

.team-member:hover img {
    box-shadow: 0 0 0 3px var(--bg-light);
}

.stakeholders-grid {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 1.5rem;
}

.stakeholder {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 1rem;
    font-size: 1.1rem;
    font-weight: 600;
    color: #fff;
    padding: 1.25rem 1.75rem;
    background: var(--bg-contrast);
    border-radius: 4px;
}

.stakeholder img {
    height: 60px;
    object-fit: contain;
}

.stakeholder.wiz {

}

.stakeholder.fulgur {
    padding-left: 0.8rem;
}

.stakeholder.ten31 img {
    transform: scale(1.2);
    margin-bottom: -10%;
}

@media (max-width: 800px) {
    #goals .section-content {
        flex-direction: column;
    }


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

    .panels-grid-4 {
        grid-template-columns: 1fr 1fr;
    }

    .panel-wide {
        grid-column: span 1;
    }

    .panel-graphic {
        min-height: 140px;
    }

    .panel {
        padding: 0.75rem;
    }

    .panel-tmosp .panel-graphic {
        margin: auto -0.75rem -0.75rem -0.75rem;
    }

    .panel-electrs .panel-graphic {
        margin-left: -0.75rem;
        margin-right: -0.75rem;
    }

    .panel-mempool-space .panel-graphic {
        margin: 0 -0.75rem -0.75rem -0.75rem;
    }

    .panel-gob .panel-graphic {
        margin: 0 -0.75rem -0.75rem -0.75rem;
    }

    .panel-liquid .panel-cta,
    .panel-accelerator .panel-cta,
    .panel-enterprise .panel-cta,
    .panel-research .panel-cta,
    .panel-wallet .panel-cta,
    .panel-electrs .panel-cta,
    .panel-mempool-space .panel-cta,
    .panel-gob .panel-cta,
    .panel-tmosp > .panel-cta {
        top: 0.75rem;
        right: 0.75rem;
    }

    .panel-liquid .panel-graphic,
    .panel-research .panel-graphic {
        margin: 0 -0.75rem -0.75rem -0.75rem;
    }
}

@media (max-width: 780px) {
    .marketing-section h2,
    .offerings-section h2 {
        font-size: clamp(1.25rem, 5.13vw, 2.5rem);
        padding: 0 clamp(1rem, 4vw, 2rem);
    }

    .marketing-section {
        padding: 4rem clamp(1rem, 4vw, 2rem);
    }

    .panels-grid {
        padding: 1.5rem clamp(0.75rem, 3vw, 1.5rem);
    }
}

@media (max-width: 600px) {
    .marketing-section {
        padding: 3rem 1rem;
    }

    #mission .tagline {
        font-size: 1.2rem;
    }

    .goal-item {
        font-size: 1rem;
    }

    .panels-grid-4 {
        grid-template-columns: 1fr;
    }

    .team-member img {
        width: 60px;
        height: 60px;
    }

    .team-member span {
        font-size: 0.8rem;
    }

    .stakeholder {
        font-size: 1rem;
        padding: 0.75rem 1.25rem;
    }
}
