html {
    scroll-behavior: smooth;
    overflow-x: hidden;
    height: 100%;
}

body {
    margin: 0;
    overflow-x: hidden;
    font-family:
        -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial,
        sans-serif;
    color: var(--text);
    background-color: var(--background);
    -webkit-font-smoothing: antialiased;
}

.container {
    max-width: 1400px;
    margin: 0 auto;
    padding: 0 5%;
    width: 100%;
    box-sizing: border-box;
}

.btn {
    padding: 12px 28px;
    border-radius: 12px;
    font-weight: 600;
    text-decoration: none;
    transition: all 0.3s cubic-bezier(0.25, 0.8, 0.25, 1);
    border: 2px solid transparent;
    display: inline-block;
    cursor: pointer;
    text-align: center;
    font-size: 1rem;
    white-space: nowrap;
}

.btn--primary {
    background: var(--accent);
    color: var(--text);
    box-shadow: 0 4px 15px rgba(224, 143, 174, 0.4);
}

.btn--primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(224, 143, 174, 0.6);
}

.btn--outline {
    border-color: var(--accent);
    color: var(--accent);
    background: transparent;
}

.btn--outline:hover {
    background: var(--accent);
    color: var(--text);
}

.full-width {
    width: 100%;
}

.section {
    min-height: 100vh;
    min-height: 100lvh;
    height: auto;
    display: flex;
    flex-direction: column;
    justify-content: center;
    padding: 80px 0;
    box-sizing: border-box;
    position: relative;
    padding-top: 0;
}

.section--alt {
    background-color: var(--accent2);
    border-top: 1px solid rgba(0, 0, 0, 0.03);
    border-bottom: 1px solid rgba(0, 0, 0, 0.03);
}

.section__title {
    font-size: clamp(2rem, 3.5vw, 2.5rem);
    font-weight: 800;
    margin: 0 0 15px 0;
}

.section__title.center {
    text-align: center;
}

.section__subtitle {
    font-size: clamp(1rem, 1.5vw, 1.15rem);
    color: var(--text2);
    line-height: 1.6;
    margin: 0 0 40px 0;
    max-width: 600px;
}

.split-layout {
    display: flex;
    align-items: center;
    gap: clamp(20px, 5vw, 60px);
    justify-content: space-between;
    height: 100%;
}

.split-layout__info {
    flex: 1;
    max-width: 600px;
    z-index: 5;
    min-width: 300px;
}

.split-layout__visual {
    flex: 1;
    display: flex;
    justify-content: flex-end;
    position: relative;
    width: 100%;
    min-width: 0;
}

#cloud-section .split-layout__visual {
    justify-content: flex-start;
    flex: 1.2;
}

.hero__title {
    font-size: clamp(2.5rem, 5vw, 4.8rem);
    font-weight: 800;
    color: var(--accent);
    line-height: 1.1;
    margin: 0 0 15px 0;
}

.hero__subtitle {
    font-size: clamp(1.5rem, 2.5vw, 2.5rem);
    font-weight: 700;
    margin: 0 0 20px 0;
}

.hero__description {
    font-size: 1.1rem;
    color: var(--text2);
    line-height: 1.6;
    margin: 0 0 35px 0;
    max-width: 480px;
}

.hero__image-wrapper {
    width: 100%;
    max-width: 420px;
    display: flex;
    justify-content: center;
}

.hero__logo {
    width: 100%;
    height: auto;
    max-height: clamp(300px, 40vw, 420px);
    object-fit: contain;
    border-radius: 24px;
    will-change: transform;
    transition:
        transform 0.3s ease,
        filter 1.8s ease;
}

.feature-list {
    list-style: none;
    padding: 0;
    margin: 0;
}

.feature-item {
    display: flex;
    gap: 15px;
    margin-bottom: 25px;
    align-items: flex-start;
}

.feature-item__icon {
    width: 48px;
    height: 48px;
    background: rgba(224, 143, 174, 0.15);
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}

.feature-item__icon svg {
    width: 24px;
    height: 24px;
    stroke: var(--accent);
}

.feature-item__text h3 {
    font-size: 1.1rem;
    font-weight: 700;
    margin: 0 0 5px 0;
}

.feature-item__text p {
    font-size: 0.95rem;
    color: var(--text2);
    margin: 0;
    line-height: 1.4;
}

.devices-scale-wrapper {
    width: 100%;
    height: 450px;
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: visible;
}

.devices-stage {
    position: relative;
    width: 650px;
    height: 400px;
    perspective: 1000px;
    transform-origin: center center;
    transform: scale(1);
    transition: transform 0.3s ease;
}

.device {
    position: absolute;
    bottom: 0;
    transition: all 1.2s cubic-bezier(0.22, 1, 0.36, 1);
}

.device__frame {
    background: #111;
    border: 2px solid #333;
    overflow: hidden;
    position: relative;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.3);
}

.device__screen {
    background: #000;
    width: 100%;
    height: 100%;
    position: relative;
}

.slide {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    opacity: 0;
    transition: opacity 0.8s ease-in-out;
    z-index: 1;
}

.slide.active {
    opacity: 1;
    z-index: 2;
}

.device--laptop {
    width: 600px;
    height: 350px;
    left: 0;
    z-index: 2;
    transform: translateY(40px);
    opacity: 0;
}

.device--laptop .device__frame {
    height: 100%;
    width: 100%;
    border-radius: 12px;
}

.device--phone {
    width: 110px;
    height: 220px;
    right: 40px;
    bottom: -20px;
    z-index: 4;
    transform: translateX(100px) rotateY(-10deg);
    opacity: 0;
}

.device--phone .device__frame {
    width: 100%;
    height: 100%;
    border-radius: 18px;
    border-width: 4px;
}

.devices-stage.visible .device--laptop {
    transform: translateY(0);
    opacity: 1;
}

.devices-stage.visible .device--phone {
    transform: translateX(0) rotateY(0);
    opacity: 1;
}

.pricing__title {
    font-size: clamp(2rem, 4vw, 2.5rem);
    font-weight: 800;
    text-align: center;
    margin: 15px 0 15px 0;
}

.pricing__subtitle {
    font-size: 1.15rem;
    color: var(--text2);
    text-align: center;
    margin: 0 auto 10px auto;
    max-width: 600px;
}

.pricing__toggle {
    display: flex;
    justify-content: center;
    margin-bottom: 30px;
}

.toggle-control {
    position: relative;
    display: flex;
    align-items: center;
    width: 320px;
    max-width: 100%;
    padding: 5px;
    border-radius: 50px;
    user-select: none;
    background: linear-gradient(
        145deg,
        rgba(30, 30, 35, 0.85) 0%,
        rgba(10, 10, 12, 0.95) 100%
    );
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border: 1px solid rgba(255, 255, 255, 0.08);
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.3);
}

.toggle-control input {
    display: none;
}

.toggle__label {
    flex: 1;
    text-align: center;
    z-index: 2;
    cursor: pointer;
    font-weight: 600;
    font-size: 0.95rem;
    padding: 10px 0;
    transition: all 0.3s;
    color: rgba(255, 255, 255, 0.4);
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 5px;
}

.toggle__glider {
    position: absolute;
    top: 5px;
    bottom: 5px;
    left: 5px;
    width: calc(50% - 5px);
    background: linear-gradient(180deg, #454549 0%, #323235 100%);
    border-radius: 40px;
    transition: transform 0.3s cubic-bezier(0.25, 0.8, 0.25, 1);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.5);
    z-index: 1;
}

#billing-monthly:checked ~ .toggle__glider {
    transform: translateX(0);
}

#billing-yearly:checked ~ .toggle__glider {
    transform: translateX(100%);
}

#billing-monthly:checked + label,
#billing-yearly:checked + label {
    color: var(--text);
    text-shadow: 0 0 15px rgba(255, 255, 255, 0.3);
}

.toggle__badge {
    background: var(--accent);
    color: var(--text);
    font-size: 0.7rem;
    padding: 2px 6px;
    border-radius: 8px;
    font-weight: 700;
}

.pricing__grid {
    display: flex;
    justify-content: center;
    flex-wrap: wrap;
    gap: 20px;
    width: 100%;
}

.price-card {
    background: var(--background);
    border: 1px solid rgba(0, 0, 0, 0.08);
    border-radius: 20px;
    padding: 30px 20px;
    flex: 1;
    min-width: 180px;
    max-width: 300px;
    text-align: center;
    position: relative;
    transition: 0.3s;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.03);
}

section:not(.section--alt) .price-card {
    background: var(--accent2);
}

.price-card:hover {
    transform: translateY(-10px);
}

.price-card--featured {
    border: 2px solid var(--accent);
    transform: scale(1.08);
    z-index: 2;
    box-shadow: 0 15px 40px rgba(0, 0, 0, 0.08);
}

.price-card--featured:hover {
    transform: scale(1.08) translateY(-10px);
}

.price-card__header h3 {
    font-size: 1.8rem;
    font-weight: 800;
    margin: 0;
}

.price-card__body {
    position: relative;
    margin-top: 20px;
    display: flex;
    flex-direction: column;
    gap: 15px;
    padding-top: 15px;
}

.price-card__badge {
    position: absolute;
    top: -12px;
    left: 50%;
    transform: translateX(-50%);
    background: var(--accent);
    color: white;
    padding: 4px 12px;
    border-radius: 10px;
    font-size: 0.8rem;
    font-weight: 700;
}

.price-value {
    font-size: 2rem;
    font-weight: 800;
    display: block;
}

.price-value small {
    font-size: 0.9rem;
    font-weight: 500;
    color: var(--text2);
    margin-left: 2px;
}

.price-savings {
    position: absolute;
    top: -5px;
    left: 50%;
    transform: translateX(-50%) scale(0.8);
    font-size: 0.7rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    background: #ecfdf5;
    color: #059669;
    border: 1px solid rgba(5, 150, 105, 0.2);
    border-radius: 12px;
    padding: 2px 8px;
    white-space: nowrap;
    opacity: 0;
    pointer-events: none;
    transition: all 0.3s cubic-bezier(0.25, 0.8, 0.25, 1);
    z-index: 10;
}

.price-savings.visible {
    opacity: 1;
    top: -8px;
    transform: translateX(-50%) scale(1);
}

.about__container {
    max-width: 900px;
    text-align: center;
}

.about__content p {
    font-size: clamp(1rem, 2vw, 1.2rem);
    line-height: 1.8;
    color: var(--text2);
    margin-bottom: 25px;
}

.fade-up {
    opacity: 0;
    transform: translateY(30px);
    transition:
        opacity 0.8s ease,
        transform 0.8s ease;
}

.fade-up.visible {
    opacity: 1;
    transform: translateY(0);
}

.visual-delay,
.pricing__grid,
.about__content {
    transition-delay: 0.2s;
}

@media (max-width: 900px) {
    html {
        scroll-snap-type: none;
    }

    .section {
        padding: 60px 0;
        justify-content: center;
    }

    .container {
        padding: 0 15px;
    }

    .split-layout {
        flex-direction: column;
        text-align: center;
        gap: 30px;
    }

    .split-layout__info {
        max-width: 100%;
        margin: 0 auto;
    }

    .split-layout__visual {
        justify-content: center !important;
        width: 100%;
    }

    .hero__description,
    .section__subtitle {
        margin-left: auto;
        margin-right: auto;
    }

    #cloud-section .split-layout {
        gap: 0;
    }

    #cloud-section .split-layout__info {
        display: contents;
    }

    #cloud-section .info-header {
        order: 1;
        width: 100%;
        max-width: 600px;
        margin: 0 auto;
        margin-bottom: 10px;
    }

    #cloud-section .split-layout__visual {
        order: 2;
        margin-top: -50px;
        margin-bottom: 50px;
        z-index: 1;
    }

    #cloud-section .info-body {
        order: 3;
        width: 100%;
        max-width: 600px;
        margin: 0 auto;
        padding-top: 10px;
    }

    .devices-scale-wrapper {
        width: 100%;
        height: 280px;
        position: relative;
        overflow: visible;
    }

    .devices-stage {
        position: absolute;
        top: 0;
        left: 50%;
        transform: translateX(-48%) scale(0.7);
        transform-origin: top center;
        margin: 0;
    }

    .feature-item {
        text-align: left;
        max-width: 500px;
        margin-left: auto;
        margin-right: auto;
    }

    .pricing__grid {
        display: grid;
        grid-template-columns: 1fr 1fr;
        gap: 10px;
        width: 100%;
    }

    .price-card {
        min-width: 0;
        width: 100%;
        max-width: none;
        padding: 20px 10px;
        margin: 0;
    }

    .price-card__header h3 {
        font-size: 1.4rem;
    }

    .price-value {
        font-size: 1.6rem;
    }

    .price-card--featured {
        grid-column: 1 / -1;
        transform: none;
        border-width: 2px;
        width: 100%;
        max-width: none;
    }

    .price-card:hover,
    .price-card--featured:hover {
        transform: none;
    }

    .pricing__toggle,
    .toggle-control {
        width: 100%;
    }

    .pricing-section {
        padding-top: 10px;
    }

    .pricing__subtitle {
        display: none;
    }

    .price-card {
        padding: 15px 8px;
    }

    .price-card__header h3 {
        font-size: 1.25rem;
    }

    .price-value {
        font-size: 1.4rem;
    }

    .pricing__grid {
        gap: 8px;
    }
}
