.root {
    width: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-direction: column;
    --ipad-content-max-width: 830px;
    background-color: var(--color-bg-base-dark);
}

.bubbles {
    margin-bottom: -250px;
    height: 640px;
    z-index: 0;

    &::before {
        content: '';
        position: absolute;
        width: 100%;
        height: 248px;
        bottom: 0;
        background: linear-gradient(180deg, rgba(0, 0, 0, 0) 70%, var(--color-bg-base-dark) 100%);
        z-index: 1;
    }
}

.container {
    width: 100%;
    max-width: var(--content-max-width);
    padding: var(--spacing-120) var(--spacing-180);
}

.header {
    max-width: var(--ipad-content-max-width);
    text-align: center;
    margin-left: auto;
    margin-right: auto;
    margin-bottom: var(--spacing-64);
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

.content {
    display: flex;
    width: 100%;
    flex-direction: column;
    gap: var(--spacing-28);
    max-width: var(--ipad-content-max-width);
    margin: 0 auto;
}

.tabsContainer {
    padding: var(--spacing-8);
    border-radius: var(--border-radius-md);
    border: var(--border-width-sm) solid var(--color-neutral-500);
    margin-inline: var(--spacing-20);
}

.tabs {
    background-image: linear-gradient(var(--color-neutral-900) 60%, var(--color-indigo-500));
    display: grid;
    border-radius: var(--border-radius-sm);
    grid-template-columns: repeat(5, 1fr);
    position: relative;
}

.tab {
    position: relative;
    z-index: 2;
    border: none;
    padding: var(--spacing-12) var(--spacing-16);
    display: flex;
    align-items: center;
    justify-content: center;
    gap: var(--spacing-8);
    color: var(--color-text-primary-inverted);
    background-color: transparent;
    cursor: pointer;
    transition: color 0.2s ease-in-out;

    &:hover {
        color: var(--color-text-secondary-hover);
    }

    button {
        appearance: none;
        border: none;
        background: none;
        color: inherit;
    }

    span {
        font-size: var(--font-size-sm);
        white-space: nowrap;
        -webkit-font-smoothing: antialiased;
        -moz-osx-font-smoothing: grayscale;
    }

    &.active {
        color: var(--color-text-primary);
    }
}

.marker {
    position: absolute;
    z-index: 1;
    background-image: none;
    background-color: var(--color-solar-200);
    border-radius: var(--border-radius-sm);
    box-shadow: inset 0 0 0 1px var(--color-neutral-900);
}

.imageWrap {
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
    width: 100%;
    max-width: var(--ipad-content-max-width);
    height: max-content;
    aspect-ratio: 4 / 3;

    img {
        width: 100%;
        height: 100%;
        object-fit: cover;
        object-position: center;
        border-radius: var(--border-radius-lg);
    }

    &::before {
        content: '';
        position: absolute;
        width: 100%;
        height: 100%;
        border-radius: var(--border-radius-full);
        opacity: 0.5;
        background: var(--color-black);
        filter: blur(200px);
        z-index: 0;
    }

    &::after {
        content: '';
        position: absolute;
        width: 100%;
        height: 100%;
        background-image: url('./assets/ipad.png');
        background-repeat: no-repeat;
        background-size: 100% 100%;
        z-index: 2;
    }
}

.description {
    text-align: center;
    margin-inline: var(--spacing-104);
    padding-inline: var(--spacing-40);
    font-weight: var(--font-weight-regular);
}

.descriptionText > * {
    text-wrap: pretty;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

.image {
    width: 100%;
    height: 100%;
    padding: var(--spacing-16);
    border-radius: var(--border-radius-lg);
    z-index: 1;
}

@media (width <= 1440px) {
    .container {
        padding: var(--spacing-120);
    }
}

@media (width <= 1360px) {
    .bubbles {
        margin-bottom: -250px;
    }
}

@media (width <= 1024px) {
    .container {
        padding: var(--spacing-120) var(--spacing-20);
    }

    .image {
        padding: var(--spacing-12);
    }
}

@media screen and (width <= 768px) {
    .bubbles {
        margin-bottom: -160px;
        height: 522px;
    }

    .container {
        padding: var(--spacing-64) var(--spacing-20);
    }

    .header {
        margin-bottom: var(--spacing-40);
    }

    .content {
        display: flex;
        gap: var(--spacing-40);
    }

    .hideMobile {
        display: none;
    }

    .tabsContainer {
        margin-left: 0;
        margin-right: 0;
    }

    .image {
        padding: var(--spacing-16);
    }

    .mobile {
        display: block;
    }

    .desktop {
        display: none;
    }

    .description {
        margin-inline: var(--spacing-20);
        padding-inline: 0;
    }
}
