.bitbuddy-shell {
    --bitbuddy: #21a28d;
    --bitbuddy-copy: #85858a;
}

.bitbuddy-label,
.bitbuddy-specs small {
    margin: 0;
    color: #36b8a2;
    font-family: "DM Mono", ui-monospace, monospace;
    font-size: clamp(0.67rem, 0.74vw, 0.76rem);
    letter-spacing: 0.055em;
    text-transform: uppercase;
}

.bitbuddy-hero,
.bitbuddy-intro,
.bb-feature-story,
.bitbuddy-details,
.bitbuddy-pro,
.bitbuddy-specs,
.bitbuddy-cta {
    width: min(calc(100% - (var(--side) * 2)), 82rem);
    margin-inline: auto;
}

.bitbuddy-hero {
    position: relative;
    isolation: isolate;
    display: grid;
    grid-template-columns: auto minmax(0, 36rem) minmax(14rem, 1fr);
    grid-template-rows: auto auto;
    gap: clamp(1.5rem, 3vw, 2.5rem);
    align-items: center;
    width: 100%;
    min-height: clamp(21rem, 34vw, 27rem);
    margin: 0;
    padding: clamp(3rem, 5vw, 4.5rem) var(--side);
    overflow: hidden;
    border-bottom: 1px solid var(--line);
    background: #090c0c;
}

.bitbuddy-hero::before {
    position: absolute;
    z-index: -2;
    top: -8%;
    right: -1%;
    width: 60%;
    height: 116%;
    background: url("https://ik.imagekit.io/onethirteen/One13-Main/Bit%20Buddy/bb3%20trio.png?updatedAt=1778425746284") center / contain no-repeat;
    content: "";
    filter: saturate(0.86);
    opacity: 0.72;
    transform: scale(1.04);
}

.bitbuddy-hero::after {
    position: absolute;
    z-index: -1;
    inset: 0;
    background:
        linear-gradient(90deg, #090c0c 0%, #090c0c 45%, rgb(9 12 12 / 88%) 55%, rgb(9 12 12 / 18%) 83%),
        linear-gradient(0deg, rgb(9 12 12 / 28%), transparent 50%);
    content: "";
}

.bitbuddy-hero > img {
    grid-row: 1;
    align-self: start;
    width: clamp(4rem, 5.5vw, 4.75rem);
    height: auto;
    margin-top: 1.55rem;
    border-radius: 23%;
    box-shadow: 0 1rem 2.5rem rgb(0 74 63 / 30%);
}

.bitbuddy-hero h1 {
    margin: 0.3rem 0 0;
    font-size: clamp(3.3rem, 5vw, 5rem);
    font-weight: 650;
    letter-spacing: -0.065em;
    line-height: 0.92;
}

.bitbuddy-hero__copy > p:last-child {
    max-width: 40rem;
    margin: 0.8rem 0 0;
    color: var(--bitbuddy-copy);
    font-size: clamp(1rem, 1.2vw, 1.15rem);
    line-height: 1.55;
}

.bitbuddy-actions {
    grid-column: 2;
    display: grid;
    justify-items: start;
    gap: 0.75rem;
}

.bitbuddy-button {
    display: inline-flex;
    min-height: 2.75rem;
    align-items: center;
    padding: 0.65rem 1rem;
    border-radius: 0.45rem;
    color: #111;
    background: #eeede9;
    font-size: 0.84rem;
    font-weight: 650;
    text-decoration: none;
}

.bitbuddy-button:hover {
    background: #fff;
}

.bitbuddy-text-link {
    color: #77777c;
    font-size: 0.85rem;
    text-decoration: none;
}

.bitbuddy-text-link:hover {
    color: var(--ink);
}

.bitbuddy-intro {
    padding-block: clamp(3rem, 5vw, 4.5rem);
}

.bitbuddy-intro h2 {
    max-width: 21ch;
    margin: 0;
    font-size: clamp(2.1rem, 3.2vw, 3.25rem);
    font-weight: 600;
    letter-spacing: -0.045em;
    line-height: 1.05;
}

.bitbuddy-intro > p {
    max-width: 42rem;
    margin: 1rem 0 0;
    color: var(--bitbuddy-copy);
    font-size: clamp(1rem, 1.25vw, 1.16rem);
    line-height: 1.6;
}

.bb-feature-story {
    display: grid;
    grid-template-columns: minmax(16rem, 0.75fr) minmax(18rem, 1fr);
    gap: clamp(2.5rem, 6vw, 6rem);
    align-items: center;
    padding-block: clamp(3rem, 5vw, 4.75rem);
    border-top: 1px solid var(--line);
}

.bb-feature-copy h2 {
    margin: 0.55rem 0 0;
    font-size: clamp(1.9rem, 2.7vw, 2.8rem);
    font-weight: 600;
    letter-spacing: -0.045em;
    line-height: 1;
}

.bb-feature-copy > p:not(.bitbuddy-label) {
    max-width: 35rem;
    margin: 1rem 0 0;
    color: var(--bitbuddy-copy);
    font-size: clamp(0.96rem, 1.08vw, 1.05rem);
    line-height: 1.62;
}

.bb-feature-copy ul {
    display: flex;
    flex-wrap: wrap;
    gap: 0.4rem 1.1rem;
    margin: 1.25rem 0 0;
    padding: 0;
    color: #69696e;
    font-size: 0.85rem;
    list-style: none;
}

.bb-feature-copy li::before {
    margin-right: 0.45rem;
    color: var(--bitbuddy);
    content: "·";
}

.bb-feature-visual {
    display: grid;
    margin: 0;
    place-items: center;
}

.bb-feature-visual__frame {
    width: 100%;
    aspect-ratio: 16 / 9;
    overflow: hidden;
    border-radius: clamp(1.25rem, 2.2vw, 1.75rem);
    background: #101414;
    box-shadow: 0 1.25rem 2rem rgb(0 0 0 / 25%);
    isolation: isolate;
}

.bb-feature-visual__frame--wide {
    aspect-ratio: 3 / 1;
}

.bb-feature-visual__frame--maintenance {
    aspect-ratio: 2000 / 1064;
}

.bb-feature-visual__frame img {
    display: block;
    width: 100%;
    height: 100%;
    border-radius: inherit;
    object-fit: cover;
}

.bitbuddy-details {
    display: grid;
    grid-template-columns: minmax(12rem, 0.35fr) minmax(0, 1fr);
    gap: clamp(2.5rem, 6vw, 6rem);
    padding-block: clamp(4rem, 6vw, 6rem);
    border-top: 1px solid var(--line);
}

.bb-details-heading h2 {
    margin: 0.65rem 0 0;
    font-size: clamp(2rem, 3vw, 3rem);
    font-weight: 600;
    letter-spacing: -0.045em;
    line-height: 1.05;
}

.bb-details-list {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 2.5rem clamp(2rem, 5vw, 5rem);
}

.bb-details-list h3 {
    margin: 0;
    font-size: 1.15rem;
    font-weight: 600;
}

.bb-details-list p {
    margin: 0.55rem 0 0;
    color: #737378;
    font-size: 0.94rem;
    line-height: 1.55;
}

.bitbuddy-pro {
    display: grid;
    grid-template-columns: minmax(16rem, 0.8fr) minmax(0, 1fr);
    gap: clamp(2.5rem, 7vw, 7rem);
    padding-block: clamp(3.5rem, 6vw, 5rem);
    border-top: 1px solid var(--line);
}

.bitbuddy-pro h2 {
    max-width: 15ch;
    margin: 0.65rem 0 0;
    font-size: clamp(2rem, 3.2vw, 3.2rem);
    font-weight: 600;
    letter-spacing: -0.05em;
    line-height: 1;
}

.bitbuddy-pro > div:last-child {
    align-self: end;
}

.bitbuddy-pro > div:last-child p {
    max-width: 38rem;
    margin: 0;
    color: var(--bitbuddy-copy);
    font-size: 1.04rem;
    line-height: 1.6;
}

.bitbuddy-pro a {
    display: inline-block;
    margin-top: 1rem;
    color: #aaa9ad;
    font-size: 0.92rem;
    text-decoration: none;
}

.bitbuddy-specs {
    display: flex;
    flex-wrap: wrap;
    gap: 1.5rem clamp(2rem, 5vw, 5rem);
    padding-block: 1.5rem;
    border-top: 1px solid var(--line);
    border-bottom: 1px solid var(--line);
    color: #85858a;
    font-family: "DM Mono", ui-monospace, monospace;
    font-size: 0.74rem;
}

.bitbuddy-specs span {
    display: flex;
    gap: 0.7rem;
}

.bitbuddy-specs small {
    color: #4d4d52;
}

.bitbuddy-cta {
    display: flex;
    gap: 2rem;
    align-items: center;
    justify-content: space-between;
    margin-block: clamp(3.5rem, 6vw, 5rem);
    padding: clamp(1.75rem, 3vw, 2.5rem);
    border-radius: 0.8rem;
    background: #137f6d;
}

.bitbuddy-cta h2 {
    margin: 0;
    font-size: clamp(1.6rem, 2.4vw, 2.4rem);
    font-weight: 600;
    letter-spacing: -0.04em;
}

.bitbuddy-cta p {
    margin: 0.4rem 0 0;
    color: rgb(255 255 255 / 68%);
    font-size: 0.92rem;
}

.bitbuddy-cta > a {
    flex: 0 0 auto;
    padding: 0.75rem 1rem;
    border-radius: 0.45rem;
    color: #0a1715;
    background: #f4f3ef;
    font-size: 0.84rem;
    font-weight: 700;
    text-decoration: none;
}

@media (max-width: 800px) {
    .bitbuddy-hero {
        grid-template-columns: auto minmax(0, 1fr);
        min-height: 22rem;
    }

    .bitbuddy-actions {
        grid-column: 2;
        display: flex;
        align-items: center;
    }

    .bitbuddy-hero::before {
        right: -20%;
        width: 82%;
        opacity: 0.4;
    }

    .bitbuddy-hero::after {
        background: linear-gradient(90deg, #090c0c 0%, #090c0c 56%, rgb(9 12 12 / 42%) 100%);
    }

    .bb-feature-story {
        grid-template-columns: 1fr;
        gap: 1.5rem;
    }

    .bitbuddy-details,
    .bitbuddy-pro {
        grid-template-columns: 1fr;
        gap: 1.5rem;
    }
}

@media (max-width: 560px) {
    .bitbuddy-hero {
        grid-template-columns: 1fr;
        gap: 1rem;
        padding-block: 2.75rem;
    }

    .bitbuddy-hero > img {
        grid-row: auto;
        width: 3.75rem;
        margin-top: 0;
    }

    .bitbuddy-actions {
        grid-column: 1;
    }

    .bitbuddy-hero::before {
        opacity: 0.22;
    }

    .bitbuddy-hero::after {
        background: linear-gradient(90deg, #090c0c 0%, rgb(9 12 12 / 88%) 68%, rgb(9 12 12 / 62%) 100%);
    }

    .bb-details-list {
        grid-template-columns: 1fr;
        gap: 1.75rem;
    }

    .bitbuddy-specs {
        display: grid;
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

    .bitbuddy-specs span {
        display: grid;
        gap: 0.3rem;
    }

    .bitbuddy-cta {
        align-items: flex-start;
        flex-direction: column;
    }
}
