/* ==========================================================================
   SELL MACHINES PAGE — AVANT-GARDE REDESIGN
   ========================================================================== */

.sm-page { background: #f5f7f9; overflow-x: hidden; }

/* --- SHARED --- */
.sm-pill {
    display: inline-block; padding: 8px 20px; border-radius: 100px;
    font-size: 0.75rem; font-weight: 800; text-transform: uppercase;
    letter-spacing: 0.1em; background: rgba(57,89,138,0.06);
    color: var(--primary-blue); border: 1px solid rgba(57,89,138,0.1);
}
.sm-pill--gold { background: rgba(243,176,98,0.15); color: #c4842a; border-color: rgba(243,176,98,0.3); }
.sm-pill--dark { background: rgba(255,255,255,0.08); color: rgba(255,255,255,0.8); border-color: rgba(255,255,255,0.1); }

.sm-accent { color: var(--highlight); }
.sm-section-header { text-align: center; margin-bottom: 70px; }
.sm-section-title {
    font-family: 'Outfit', sans-serif; font-size: clamp(2.8rem, 5vw, 4rem);
    color: var(--primary-blue); letter-spacing: -0.04em; font-weight: 800;
    line-height: 1; margin-top: 20px;
}

.sm-btn {
    display: inline-block; padding: 20px 42px; border-radius: 16px;
    font-weight: 800; font-size: 1rem; text-decoration: none;
    transition: all 0.4s cubic-bezier(0.16,1,0.3,1); border: none; cursor: pointer;
}
.sm-btn--primary { background: var(--primary-blue); color: white; box-shadow: 0 15px 40px rgba(57,89,138,0.25); }
.sm-btn--primary:hover { transform: translateY(-4px); box-shadow: 0 20px 50px rgba(57,89,138,0.35); }
.sm-btn--outline { background: transparent; color: var(--primary-blue); border: 1px solid rgba(57,89,138,0.15); }
.sm-btn--outline:hover { background: rgba(57,89,138,0.05); transform: translateY(-3px); }
.sm-btn--gold { background: var(--highlight); color: var(--primary-blue); padding: 22px 60px; font-size: 1.1rem; }
.sm-btn--gold:hover { transform: translateY(-4px); box-shadow: 0 20px 50px rgba(243,176,98,0.35); }

/* ═══ SECTION 01: HERO ═══ */
.sm-hero {
    position: relative; min-height: 100vh; display: flex; align-items: center;
    padding: 140px 0 100px; overflow: hidden;
    background: linear-gradient(165deg, #fbfbfd 0%, #f5f7f9 50%, #eef3f8 100%);
}
.sm-hero__pattern {
    position: absolute; inset: 0; opacity: 0.4; pointer-events: none;
    background-image: radial-gradient(rgba(57,89,138,0.05) 1px, transparent 1px);
    background-size: 28px 28px;
}

.sm-hero__inner {
    position: relative; z-index: 2; display: grid;
    grid-template-columns: 1fr 1fr; gap: 40px; align-items: center;
}
.sm-hero__title {
    font-family: 'Outfit', sans-serif; font-size: clamp(3.5rem, 7vw, 5.5rem);
    color: var(--primary-blue); font-weight: 800; letter-spacing: -0.05em;
    line-height: 0.92; margin: 25px 0;
}
.sm-hero__title--accent { color: var(--highlight); }
.sm-hero__subtitle { font-size: 1.15rem; color: var(--text-muted); line-height: 1.6; max-width: 520px; margin-bottom: 40px; }
.sm-hero__actions { display: flex; gap: 15px; flex-wrap: wrap; }

.sm-hero__visual { position: relative; }
.sm-hero__machine {
    width: 130%; max-width: none; height: auto;
    filter: drop-shadow(0 50px 90px rgba(0,0,0,0.12));
    animation: sm-float 7s ease-in-out infinite;
}
.sm-hero__machine-shadow {
    position: absolute; bottom: -20px; left: 15%; right: 15%; height: 40px;
    background: radial-gradient(ellipse, rgba(57,89,138,0.12) 0%, transparent 70%);
    filter: blur(15px);
}
@keyframes sm-float { 0%, 100% { transform: translateY(0); } 50% { transform: translateY(-14px); } }
@keyframes sm-scan {
    0% { top: 0%; opacity: 0; }
    10% { opacity: 1; }
    90% { opacity: 1; }
    100% { top: 100%; opacity: 0; }
}

/* ═══ SECTION 02: BENTO ═══ */
.sm-bento-section { padding: 120px 0; }
.sm-bento {
    display: grid; grid-template-columns: repeat(3, 1fr);
    grid-template-rows: 420px 420px; gap: 25px;
}

.sm-bento__card {
    border-radius: 40px; position: relative; overflow: hidden;
    transition: all 0.5s cubic-bezier(0.16,1,0.3,1);
}
.sm-bento__card:hover { transform: translateY(-8px); }
.sm-bento__card--wide { grid-column: span 2; }

/* Image background card */
.sm-bento__card--img > img {
    position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover;
    transition: transform 0.8s ease;
}
.sm-bento__card--img:hover > img { transform: scale(1.05); }

.sm-bento__glass-info {
    position: absolute; bottom: 30px; left: 30px; padding: 35px 40px;
    max-width: 480px; border-radius: 30px;
    background: rgba(255,255,255,0.12); backdrop-filter: blur(40px) saturate(140%);
    -webkit-backdrop-filter: blur(40px) saturate(140%);
    border: 1px solid rgba(255,255,255,0.2);
    box-shadow: 0 20px 50px rgba(0,0,0,0.15);
}
.sm-bento__glass-info--right { left: auto; right: 30px; }
.sm-bento__glass-info h3 {
    font-family: 'Outfit', sans-serif; font-size: 1.8rem; color: white;
    font-weight: 800; line-height: 1.1; margin-bottom: 12px;
    text-shadow: 0 2px 10px rgba(0,0,0,0.15);
}
.sm-bento__glass-info p { font-size: 0.95rem; color: rgba(255,255,255,0.85); line-height: 1.55; }
.sm-bento__tag {
    display: block; font-size: 0.7rem; font-weight: 800; text-transform: uppercase;
    letter-spacing: 0.12em; color: var(--highlight); margin-bottom: 12px;
}

/* Light card */
.sm-bento__card--light {
    background: #f8f9fa; border: 1px solid rgba(0,0,0,0.04); padding: 35px;
    display: flex; flex-direction: column; justify-content: space-between;
}
.sm-bento__card--light:hover { box-shadow: 0 30px 70px rgba(57,89,138,0.1); }
.sm-bento__float-machine {
    position: absolute; right: -25px; bottom: -15px; height: 70%; width: auto;
    object-fit: contain; filter: drop-shadow(0 12px 25px rgba(0,0,0,0.1));
}
.sm-bento__text-top { position: relative; z-index: 2; }
.sm-bento__text-top h4 { font-family: 'Outfit', sans-serif; font-size: 1.4rem; color: var(--primary-blue); font-weight: 800; margin-bottom: 8px; }
.sm-bento__text-top p { font-size: 0.9rem; color: var(--text-muted); line-height: 1.5; max-width: 180px; }

/* Dark card */
.sm-bento__card--dark {
    background: var(--primary-blue); padding: 40px;
    display: flex; flex-direction: column; justify-content: space-between;
}
.sm-bento__card--dark:hover { box-shadow: 0 30px 70px rgba(57,89,138,0.3); }
.sm-bento__card--dark h4 { color: white; font-family: 'Outfit', sans-serif; font-size: 1.4rem; font-weight: 800; margin-bottom: 10px; }
.sm-bento__card--dark p { color: rgba(255,255,255,0.75); font-size: 0.9rem; line-height: 1.5; }
.sm-bento__watermark {
    position: absolute; top: -15px; right: -15px; font-size: 10rem; font-weight: 900;
    color: rgba(255,255,255,0.04); pointer-events: none; font-family: 'Outfit', sans-serif;
}
.sm-bento__link { color: var(--highlight); font-weight: 800; text-decoration: none; font-size: 0.9rem; transition: color 0.3s; position: relative; z-index: 2; }
.sm-bento__link:hover { color: white; }

/* ═══ SECTION 03: PROCESS ═══ */
.sm-process {
    padding: 140px 0; background: #0a1628; color: white;
    border-radius: 60px; margin: 0 20px;
}
.sm-process__header { margin-bottom: 80px; }
.sm-process__title {
    font-family: 'Outfit', sans-serif; font-size: clamp(2.5rem, 5vw, 3.5rem);
    color: white; font-weight: 800; letter-spacing: -0.04em; line-height: 1.1; margin-top: 20px;
}
.sm-process__steps { display: grid; grid-template-columns: repeat(3, 1fr); gap: 30px; }

.sm-process__step {
    padding: 50px; border-radius: 35px;
    background: rgba(255,255,255,0.04); border: 1px solid rgba(255,255,255,0.06);
    backdrop-filter: blur(10px); -webkit-backdrop-filter: blur(10px);
    transition: all 0.4s ease; position: relative;
}
.sm-process__step:hover { background: rgba(255,255,255,0.08); transform: translateY(-6px); border-color: rgba(243,176,98,0.2); }
.sm-process__step-num {
    font-family: 'Outfit', sans-serif; font-size: 3.5rem; font-weight: 900;
    color: var(--highlight); opacity: 0.15; line-height: 1; margin-bottom: 25px;
}
.sm-process__step h4 { font-family: 'Outfit', sans-serif; font-size: 1.5rem; font-weight: 800; margin-bottom: 15px; color: white; }
.sm-process__step p { font-size: 0.95rem; color: rgba(255,255,255,0.55); line-height: 1.6; }
.sm-process__step-line {
    position: absolute; bottom: 0; left: 50px; right: 50px; height: 3px; border-radius: 2px;
    background: linear-gradient(90deg, var(--highlight), transparent); opacity: 0;
    transition: opacity 0.4s ease;
}
.sm-process__step:hover .sm-process__step-line { opacity: 1; }

/* ═══ SECTION 04: TRUST ═══ */
.sm-trust { padding: 120px 0; }
.sm-trust__grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 25px; }

.sm-trust__item {
    padding: 40px; border-radius: 30px;
    background: rgba(255,255,255,0.6); backdrop-filter: blur(20px); -webkit-backdrop-filter: blur(20px);
    border: 1px solid rgba(255,255,255,0.8); box-shadow: 0 10px 30px rgba(0,0,0,0.03);
    transition: all 0.5s cubic-bezier(0.16,1,0.3,1);
}
.sm-trust__item:hover { transform: translateY(-8px); box-shadow: 0 25px 60px rgba(57,89,138,0.1); background: rgba(255,255,255,0.85); }

.sm-trust__icon {
    width: 55px; height: 55px; border-radius: 18px; display: flex; align-items: center;
    justify-content: center; background: rgba(57,89,138,0.08); color: var(--primary-blue);
    margin-bottom: 22px; transition: transform 0.4s ease;
}
.sm-trust__item:hover .sm-trust__icon { transform: scale(1.1) rotate(-5deg); }
.sm-trust__icon--gold { background: rgba(243,176,98,0.12); color: var(--highlight); }
.sm-trust__icon--green { background: rgba(46,204,113,0.1); color: #2ecc71; }

.sm-trust__item h4 { font-family: 'Outfit', sans-serif; font-size: 1.3rem; color: var(--primary-blue); font-weight: 800; margin-bottom: 8px; }
.sm-trust__item p { font-size: 0.88rem; color: var(--text-muted); line-height: 1.55; }

/* ═══ SECTION 05: CTA ═══ */
.sm-cta { padding: 0 0 120px; }
.sm-cta__card {
    background: var(--primary-blue); border-radius: 60px; padding: 120px 80px;
    text-align: center; position: relative; overflow: hidden;
}
.sm-cta__bg-machine {
    position: absolute; left: 50%; top: 50%; transform: translate(-50%, -50%);
    width: 90%; opacity: 0.06; pointer-events: none;
}
.sm-cta__glow {
    position: absolute; top: 50%; left: 50%; transform: translate(-50%, -50%);
    width: 600px; height: 600px; border-radius: 50%;
    background: radial-gradient(circle, rgba(243,176,98,0.2) 0%, transparent 65%);
    pointer-events: none;
}
.sm-cta__content { position: relative; z-index: 2; }
.sm-cta__title {
    font-family: 'Outfit', sans-serif; font-size: clamp(2.8rem, 6vw, 4.5rem);
    color: white; font-weight: 800; letter-spacing: -0.04em; line-height: 1; margin-bottom: 25px;
}
.sm-cta__desc { color: rgba(255,255,255,0.75); font-size: 1.2rem; margin-bottom: 45px; max-width: 700px; margin-left: auto; margin-right: auto; line-height: 1.5; }

/* ═══ RESPONSIVE ═══ */
/* ═══ ADVANCED MOBILE ARCHITECTURE (1024px & below) ═══ */
@media (max-width: 1024px) {
    .container { width: 100% !important; padding: 0 25px !important; }

    /* Hero Overhaul - Transforming to a massive block */
    .sm-hero-overhaul {
        min-height: auto !important;
        padding: 20px 0 40px !important;
        background: white !important;
    }
    
    /* Overriding the inline-style container grid - Reversed for Image-on-top */
    .sm-hero-overhaul .container {
        display: flex !important;
        flex-direction: column-reverse !important;
        gap: 40px !important;
        width: 92% !important;
        margin: 0 auto !important;
        background: #f8f9fa !important;
        padding: 60px 25px !important;
        border-radius: 40px !important;
        text-align: center !important;
    }

    .sm-hero-overhaul h1 {
        font-size: 3.2rem !important;
        line-height: 1 !important;
        margin: 30px 0 20px !important; /* Spacing after image */
    }

    .sm-hero-overhaul p {
        font-size: 1.1rem !important;
        margin: 0 auto 35px !important;
    }

    .sm-hero-overhaul div[style*="display: flex"][style*="gap: 20px"] {
        flex-direction: column !important;
        align-items: stretch !important;
        gap: 15px !important;
    }

    .sm-hero-overhaul .sm-btn, 
    .sm-hero-overhaul a[style*="padding: 20px 40px"] {
        width: 100% !important;
        text-align: center !important;
        padding: 18px !important;
    }

    /* Machine visual adjustment - REVERSED to put image on very top */
    .sm-hero-overhaul div[style*="min-height: 500px"] {
        min-height: auto !important;
        width: 100% !important;
        display: flex !important;
        flex-direction: column-reverse !important;
        align-items: center !important;
    }

    /* Valuation Card - Overlapping higher and to the right */
    .sm-hero-overhaul div[style*="top: 280px"] {
        position: relative !important;
        top: 0 !important;
        left: 0 !important;
        margin: -110px 10% 30px auto !important; /* Higher and shifted right */
        width: 170px !important;
        padding: 10px 15px !important;
        background: rgba(255,255,255,0.92) !important;
        backdrop-filter: blur(20px) !important;
        z-index: 20 !important;
        box-shadow: 0 15px 35px rgba(0,0,0,0.1) !important;
    }

    .sm-hero-overhaul div[style*="top: 280px"] div[style*="font-size: 0.7rem"] {
        font-size: 0.6rem !important;
    }
    .sm-hero-overhaul div[style*="top: 280px"] div[style*="font-size: 1.8rem"] {
        font-size: 1.4rem !important;
    }

    .sm-hero-overhaul img[src*="maschine-transparent2"] {
        width: 110% !important;
        max-width: none !important;
        transform: none !important;
        margin-top: 0 !important;
    }

    /* Bento Grid - STRICT 1-column stack */
    .sm-bento {
        display: flex !important;
        flex-direction: column !important;
        gap: 30px !important;
        padding: 0 5px !important;
    }

    .sm-bento__card {
        width: 100% !important;
        min-height: 500px !important;
        border-radius: 35px !important;
    }

    /* Shrinking the background machines for clarity */
    .sm-bento__card img[src*="maschine-transparent5"],
    .sm-bento__card img[src*="maschine-transparent6"] {
        height: 55% !important;
        bottom: -10px !important;
        opacity: 0.4 !important;
    }
    .sm-bento__card img[src*="maschine-transparent5"] { right: -30px !important; }
    .sm-bento__card img[src*="maschine-transparent6"] { left: -30px !important; }

    .sm-bento__glass-info {
        position: absolute !important;
        bottom: 20px !important;
        left: 20px !important;
        right: 20px !important;
        width: auto !important;
        max-width: none !important;
        padding: 25px !important;
        border-radius: 25px !important;
        background: rgba(255,255,255,0.15) !important;
        backdrop-filter: blur(25px) !important;
    }

    .sm-section-header { margin-bottom: 50px !important; }
    .sm-section-title { font-size: 3rem !important; }

    /* Process Section - Dark Block consistency */
    .sm-process {
        margin: 0 15px !important;
        padding: 80px 25px !important;
        border-radius: 40px !important;
    }

    .sm-process__steps {
        grid-template-columns: 1fr !important;
        gap: 25px !important;
    }

    .sm-process__step {
        padding: 35px !important;
    }

    /* Trust Grid - Compact 2-column for icons */
    .sm-trust__grid {
        grid-template-columns: 1fr 1fr !important;
        gap: 15px !important;
    }

    .sm-trust__item {
        padding: 25px 15px !important;
        text-align: center !important;
    }
    
    .sm-trust__icon {
        margin: 0 auto 15px !important;
    }

    /* CTA Section - Full width card */
    .sm-cta__card {
        padding: 80px 25px !important;
        border-radius: 40px !important;
        margin: 0 15px !important;
    }

    .sm-cta__title { font-size: 2.8rem !important; }
}

@media (max-width: 640px) {
    .sm-hero-overhaul h1 { font-size: 2.8rem !important; }
    .sm-section-title { font-size: 2.4rem !important; }
    .sm-trust__grid { grid-template-columns: 1fr !important; }
}

