/*backend/domains/layout/static/layout/css/index.css*/

/* INDEX PAGE STYLES (landing)
   Будут заполнены после переноса inline-CSS из index.html */

/* ============================
   LANDING PAGE — INDEX
============================ */

/* Title & subtitle shadow */
.landing-title,
.landing-subtitle {
    color: #ffffff;
    text-shadow: 0 2px 4px rgba(0, 0, 0, 0.55);
}

/* Wrapper with background */
.landing-wrapper {
    height: 82vh;
    padding-top: 70px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: url("../images/landing_bg.jpg") center/cover no-repeat;
    overflow: hidden;
}

/* Main box */
.landing-box {
    background: rgba(18, 112, 125, 0.35);
    padding: 28px;
    border-radius: 12px;
    max-width: 480px;
    width: 100%;
    text-align: center;
    backdrop-filter: blur(4px);
    display: flex;
    flex-direction: column;
    color: #ffffff;
}

/* Steps container */
.steps {
    margin-bottom: 20px;
}

/* Step card */
.step-card {
    background: rgba(171, 210, 248, 0.55);
    border-radius: 8px;
    padding: 12px 16px;
    margin-bottom: 12px;
    text-align: left;
    opacity: 0;
    transform: translateY(15px);
    animation: fadeInUp 0.5s ease forwards;
    transition: background 0.25s ease, color 0.25s ease, transform 0.25s ease;
    color: #0a2a43;
    cursor: pointer;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.55);
}

/* Animation */
@keyframes fadeInUp {
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.step-card:nth-child(1) { animation-delay: 0.05s; }
.step-card:nth-child(2) { animation-delay: 0.10s; }
.step-card:nth-child(3) { animation-delay: 0.15s; }
.step-card:nth-child(4) { animation-delay: 0.20s; }
.step-card:nth-child(5) { animation-delay: 0.25s; }

/* Hover */
.step-card:hover {
    background: rgb(58, 141, 225);
    color: #ffffff;
    transform: translateY(-3px);
}

/* Step title */
.step-title {
    font-weight: 600;
    margin-bottom: 4px;
    font-size: 1rem;
    color: #3b3f42;
}

/* Step text */
.step-text {
    margin: 0;
    font-size: 0.9rem;
    color: inherit;
}

 /*Mobile */
@media (max-width: 480px) {
    .landing-box {
        padding: 20px;
    }
    .step-title { font-size: 0.95rem; }
    .step-text { font-size: 0.85rem; }
}

/* =====================================
   Mobile phones
   ===================================== */

@media (max-width: 767px) {

    .landing-box {
        width: calc(100% - 36px);
        max-width: 520px;
        margin: 0 auto;
    }

    .step-card {
        width: 100%;
    }
}

/* ============================
   LANDING PAGE — RESPONSIVE
============================ */

@media (max-width: 768px) {
    .landing-wrapper {
        min-height: calc(100vh - 64px);
        height: auto;
        padding: 32px 0;
        align-items: flex-start;
        overflow: visible;
    }

    .landing-box {
        max-width: 100%;
        padding: 22px;
        margin: 0 auto;
    }

    .landing-title {
        font-size: 2rem;
        line-height: 1.15;
    }

    .landing-subtitle {
        font-size: 1rem;
        line-height: 1.4;
    }

    .step-card {
        padding: 11px 14px;
        margin-bottom: 10px;
    }
}

@media (max-width: 430px) {
    .landing-wrapper {
        min-height: calc(100vh - 56px);
        padding: 24px 0;
        background-position: center;
    }

    .landing-box {
        padding: 18px;
        border-radius: 10px;
    }

    .landing-title {
        font-size: 1.65rem;
        line-height: 1.15;
        margin-bottom: 10px !important;
    }

    .landing-subtitle {
        font-size: 0.92rem;
        line-height: 1.35;
        margin-bottom: 12px !important;
    }

    .steps {
        margin-bottom: 14px;
    }

    .step-card {
        padding: 10px 12px;
        margin-bottom: 8px;
    }

    .step-title {
        font-size: 0.9rem;
        margin-bottom: 2px;
    }

    .step-text {
        font-size: 0.82rem;
        line-height: 1.25;
    }

    .landing-box .btn {
        min-height: 42px;
        font-size: 0.95rem;
    }
}

@media (max-width: 360px) {
    .landing-wrapper {
        padding: 18px 0;
    }

    .landing-box {
        padding: 16px;
    }

    .landing-title {
        font-size: 1.45rem;
    }

    .landing-subtitle {
        font-size: 0.86rem;
    }

    .step-card {
        padding: 9px 10px;
        margin-bottom: 7px;
    }

    .step-title {
        font-size: 0.85rem;
    }

    .step-text {
        font-size: 0.78rem;
    }
}

/* =====================================
   Nest Hub / Nest Hub Max
   ===================================== */

@media (max-height: 820px) and (min-width: 900px) {

    .landing-wrapper {
        height: auto;
        min-height: calc(100vh - 70px);
        overflow: visible;
        padding: 40px 0;
    }

    .landing-box {
        margin: 30px auto;
    }
}
/* =====================================
   LANDING PAGE — Landscape / Low Height
   Microsoft Lumia 550, small landscape screens
===================================== */

@media (max-height: 420px) and (min-width: 560px) {
    .landing-wrapper {
        height: auto;
        min-height: calc(100vh - 56px);
        padding: 24px 0;
        align-items: flex-start;
        overflow: visible;
    }

    .landing-box {
        width: calc(100% - 40px);
        max-width: 320px;
        padding: 18px;
        margin: 0 auto;
    }

    .landing-title {
        font-size: 1.75rem;
        line-height: 1.15;
        margin-bottom: 10px !important;
    }

    .landing-subtitle {
        font-size: 0.9rem;
        line-height: 1.3;
        margin-bottom: 12px !important;
    }

    .steps {
        margin-bottom: 12px;
    }

    .step-card {
        padding: 9px 12px;
        margin-bottom: 8px;
    }

    .step-title {
        font-size: 0.85rem;
        margin-bottom: 2px;
    }

    .step-text {
        font-size: 0.78rem;
        line-height: 1.2;
    }

    .landing-box .btn {
        min-height: 38px;
        font-size: 0.9rem;
        padding: 6px 12px;
    }
}

/* =====================================
   LANDING PAGE — iPad 768x1024
===================================== */

@media (min-width: 768px) and (max-width: 819px) {
    .landing-wrapper {
        height: auto;
        min-height: calc(100vh - 70px);
        padding: 32px 0;
        align-items: center;
        overflow: visible;
    }

    .landing-box {
        max-width: 420px;
        padding: 24px;
        margin: 0 auto;
    }
}
/* =====================================
   Surface Duo
   540x720
   ===================================== */

@media (min-width: 520px) and (max-width: 600px) {

    .landing-box {
        max-width: 460px;
        padding: 24px;
    }

    .step-card {
        width: 92%;
        margin-left: auto;
        margin-right: auto;
    }

    .landing-box .btn {
        width: 92% !important;
        margin-left: auto;
        margin-right: auto;
    }
}


