.hero-container {
    position: relative;
    width: 100%;
    height: 100vh;
    background-color: #070A59;
    overflow: hidden;
    display: flex;
    flex-direction: column;
}

.grid-overlay {
    position: absolute;
    width: 600px; height: 600px;
    background-image: url('Visual_Assets/Visual_Assets_Graphics/GridForShapes.png');
    background-size: contain; background-repeat: no-repeat;
    z-index: 1;
    opacity: 1 !important;
}
.top-left-grid { top: -120px; left: -120px; }
.bottom-right-grid { bottom: -120px; right: -120px; transform: rotate(180deg); }

.asset {
    position: absolute; z-index: 5; object-fit: contain;
    pointer-events: none;
    mix-blend-mode: normal !important; /* אטימות מלאה */
    opacity: 1 !important;
}
.shape-cross { top: 10px; left: -30px; width: 180px; transform: rotate(-15deg); animation: desktop-breathe-cross 7s ease-in-out infinite; }
.shape-clover { bottom: -20px; left: -30px; width: 240px; animation: desktop-breathe-clover 8s ease-in-out infinite; }
.shape-split-circle { bottom: 40px; right: 40px; width: 220px; transform: scaleX(-1) rotate(-45deg); animation: desktop-drift-split 9s ease-in-out infinite; }

.teacher-kit-trigger {
    min-width: 174px;
    padding: 12px 22px;
    border: 3px solid #ffffff;
    border-radius: 999px;
    color: #ffffff;
    background: rgba(75, 42, 166, 0.78);
    font-family: inherit;
    font-size: 1rem;
    font-weight: 900;
    line-height: 1.2;
    cursor: pointer;
    box-shadow: 0 12px 28px rgba(0, 0, 0, 0.25);
    backdrop-filter: blur(10px);
    transition: transform 0.18s ease, color 0.18s ease, background-color 0.18s ease, border-color 0.18s ease;
}

.teacher-kit-trigger:hover,
.teacher-kit-trigger:focus-visible {
    color: #070a59;
    background: #c9ff35;
    border-color: #c9ff35;
    transform: translateY(-2px);
}

.teacher-kit-trigger:focus-visible {
    outline: 3px solid #ffffff;
    outline-offset: 4px;
}

.ethicode-page-footer-main {
    right: auto;
    bottom: 22px;
    left: -30px;
    width: 240px;
}

.ethicode-footer-actions {
    display: flex;
    width: 100%;
    flex-direction: column;
    align-items: center;
    gap: 7px;
    pointer-events: auto;
}

.teacher-kit-trigger-footer {
    min-width: 174px;
    padding: 9px 18px;
    border-width: 2px;
    font-size: 0.9rem;
}

.content-wrapper { position: relative; z-index: 10; flex: 1; display: flex; justify-content: center; padding-top: clamp(72px, 7vh, 104px); }
.hero-content { display: flex; flex-direction: column; align-items: center; width: 90%; max-width: 1400px; }
.hero-info-panel { text-align: center; color: white; margin-bottom: 12px; }
.hero-title { font-size: clamp(2.5rem, 4vw, 4.5rem); font-weight: 900; margin-bottom: 10px; line-height: 1.1; }
.hero-subtitle { font-size: clamp(1.2rem, 1.8vw, 1.8rem); font-weight: 600; color: white; }

.robot-container { width: 100%; max-width: 1100px; margin-top: auto; display: flex; justify-content: center; }
.robot-wrapper { position: relative; width: 100%; display: flex; justify-content: center; }
.hero-robot-img { width: 100%; height: auto; display: block; }

.robot-screen-overlay-positioner {
    position: absolute; top: calc(22% - 30px); left: 0; right: 0;
    display: flex; justify-content: center; z-index: 20;
}
.screen-content { width: 48%; display: flex; flex-direction: column; align-items: center; }

.progress-container { width: 126%; margin-bottom: 50px; }
.progress-track {
    position: relative; width: 100%; height: 42px;
    background-color: rgba(217, 217, 217, 0.58); border: 2px solid #ffffff;
    border-radius: 200px; overflow: hidden;
}
.progress-fill {
    position: relative;
    height: 100%;
    background-color: #c9ff35;
    border-radius: 200px;
    transition: width 0.5s ease-in-out;
    overflow: hidden;
}

.progress-fill::after {
    content: "";
    position: absolute;
    top: 0;
    bottom: 0;
    width: 52px;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.54), transparent);
    animation: progress-shimmer 2.8s ease-in-out infinite;
}
.progress-text {
    position: absolute; top: 50%; left: 50%; transform: translate(-50%, -50%);
    color: #070a59; font-weight: 800; font-size: 1.15rem; white-space: nowrap;
}

.robot-screen-grid { width: 100%; display: grid; grid-template-columns: 1fr 1fr; gap: 24px; }
.pill-btn {
    position: relative;
    border-radius: 200px !important; border: 5px solid #ffffff !important;
    color: #ffffff !important; font-size: clamp(1rem, 1.25vw, 1.28rem) !important;
    font-weight: 800 !important; padding: 16px 12px !important; cursor: pointer;
    transition: all 0.2s ease; display: flex; justify-content: center;
    align-items: center; text-align: center; background-color: transparent !important;
    text-decoration: none !important;
}
.btn-text { white-space: nowrap; }
.complete-stamp {
    position: absolute;
    top: 50%;
    right: -24px;
    z-index: 3;
    display: grid;
    place-items: center;
    width: 56px;
    height: 56px;
    color: #070a59;
    background: #c9ff35;
    font-size: 0.72rem;
    font-weight: 900;
    line-height: 1;
    transform: translateY(-50%) rotate(6deg);
    clip-path: polygon(50% 0%, 61% 20%, 83% 12%, 82% 36%, 100% 50%, 82% 64%, 83% 88%, 61% 80%, 50% 100%, 39% 80%, 17% 88%, 18% 64%, 0% 50%, 18% 36%, 17% 12%, 39% 20%);
    box-shadow: 0 6px 14px rgba(0, 0, 0, 0.18);
}
.complete-stamp[data-ethicode-completion-stamp="personalResponsibility"] {
    top: 42%;
    right: -34px;
}
[hidden] {
    display: none !important;
}
.shift-right { transform: translateX(30px); }
.shift-left { transform: translateX(-30px); }
.shift-right.shift-down { transform: translate(30px, 15px); }
.shift-left.shift-down { transform: translate(-30px, 15px); }
.pill-btn:hover { background-color: rgba(255, 255, 255, 0.1) !important; }

.mobile-main-shell {
    display: none;
}

@media (max-width: 760px) {
    .desktop-main {
        display: none;
    }

    .mobile-main-shell {
        position: relative;
        display: flex;
        min-height: 100vh;
        background-color: #070A59;
        overflow: hidden;
        color: #ffffff;
        flex-direction: column;
    }

    .mobile-grid-overlay {
        position: absolute;
        z-index: 1;
        width: 360px;
        height: 360px;
        background-image: url('Visual_Assets/Visual_Assets_Graphics/GridForShapes.png');
        background-size: contain;
        background-repeat: no-repeat;
        opacity: 0.95;
    }

    .mobile-top-grid {
        top: -112px;
        left: -112px;
    }

    .mobile-bottom-grid {
        right: -112px;
        bottom: -172px;
        transform: rotate(180deg);
    }

    .mobile-asset {
        position: absolute;
        z-index: 2;
        object-fit: contain;
        pointer-events: none;
    }

    .mobile-shape-cross {
        top: 12px;
        left: -34px;
        width: 150px;
        transform: rotate(-16deg);
        animation: mobile-breathe-cross 7s ease-in-out infinite;
    }

    .mobile-shape-clover {
        bottom: 2px;
        left: -6px;
        width: 150px;
        transform: rotate(0deg);
        animation: mobile-breathe-clover 8s ease-in-out infinite;
    }

    .ethicode-page-footer-main {
        right: auto;
        bottom: 16px;
        left: -6px;
        width: 150px;
    }

    .mobile-shape-split {
        right: -42px;
        bottom: 4px;
        width: 116px;
        transform: scaleX(-1) rotate(-42deg);
        animation: mobile-drift-split 9s ease-in-out infinite;
    }

    .mobile-main-content {
        position: relative;
        z-index: 10;
        flex: 1;
        display: flex;
        align-items: center;
        justify-content: center;
        padding: 112px 10px 34px;
    }

    .mobile-main-inner {
        width: min(408px, 100%);
        display: grid;
        gap: 18px;
        text-align: center;
    }

    .mobile-hero-copy {
        display: grid;
        gap: 12px;
    }

    .teacher-kit-trigger-footer {
        min-width: 132px;
        max-width: 138px;
        padding: 7px 10px;
        border-width: 2px;
        font-size: 0.72rem;
    }

    .ethicode-footer-actions {
        gap: 5px;
    }

    .mobile-main-title {
        margin: 0;
        font-size: clamp(1.7rem, 7.6vw, 2.18rem);
        font-weight: 900;
        line-height: 1.1;
    }

    .mobile-main-subtitle {
        margin: 0;
        color: rgba(255, 255, 255, 0.86);
        font-size: clamp(0.96rem, 3.7vw, 1.08rem);
        font-weight: 700;
        line-height: 1.42;
    }

    .mobile-install-card {
        position: relative;
        display: grid;
        gap: 12px;
        width: 100%;
        justify-self: center;
        margin-top: 150px;
        padding: 24px 18px 22px;
        border: 3px solid #ffffff;
        border-radius: 28px;
        background:
            linear-gradient(145deg, rgba(105, 70, 255, 0.9), rgba(222, 119, 184, 0.76) 62%, rgba(255, 184, 86, 0.76)),
            rgba(255, 255, 255, 0.08);
        box-shadow: 0 24px 70px rgba(0, 0, 0, 0.34);
        overflow: visible;
    }

    .mobile-install-card::before {
        content: "";
        position: absolute;
        top: -132px;
        right: 50%;
        width: min(214px, 62vw);
        aspect-ratio: 1;
        border-radius: 50%;
        background: radial-gradient(circle, rgba(201, 255, 53, 0.22), rgba(255, 255, 255, 0.11) 45%, transparent 70%);
        transform: translateX(50%);
        pointer-events: none;
    }

    .mobile-pixel-orbit {
        position: absolute;
        top: -174px;
        right: 50%;
        z-index: 3;
        display: grid;
        place-items: center;
        width: min(190px, 54vw);
        aspect-ratio: 1;
        border-radius: 50%;
        transform: translateX(50%);
        animation: pixel-float 5.2s ease-in-out infinite;
    }

    .mobile-pixel-img {
        width: min(168px, 48vw);
        max-height: 190px;
        object-fit: contain;
        filter: drop-shadow(0 18px 24px rgba(0, 0, 0, 0.25));
    }

    .mobile-progress-card {
        position: relative;
        z-index: 1;
        display: grid;
        gap: 9px;
        padding: 0;
        border: 0;
        border-radius: 0;
        background: transparent;
    }

    .mobile-progress-track {
        position: relative;
        height: 30px;
        border: 2px solid #ffffff;
        border-radius: 999px;
        overflow: hidden;
        background: rgba(217, 217, 217, 0.5);
    }

    .mobile-progress-fill {
        position: relative;
        height: 100%;
        border-radius: 999px;
        background-color: #c9ff35;
        overflow: hidden;
    }

    .mobile-progress-fill::after {
        content: "";
        position: absolute;
        top: 0;
        bottom: 0;
        width: 42px;
        background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.54), transparent);
        animation: progress-shimmer 2.8s ease-in-out infinite;
    }

    .mobile-progress-text {
        position: absolute;
        top: 50%;
        left: 50%;
        color: #070a59;
        font-size: 0.86rem;
        font-weight: 400;
        transform: translate(-50%, -50%);
        white-space: nowrap;
    }

    .mobile-ethicode-grid {
        position: relative;
        z-index: 1;
        display: grid;
        grid-template-columns: 1fr 1fr;
        gap: 14px 12px;
        padding: 0 8px;
    }

    .mobile-ethicode-item {
        position: relative;
        min-width: 0;
    }

    .mobile-ethicode-link {
        display: flex;
        align-items: center;
        justify-content: center;
        min-height: 54px;
        padding: 8px 10px;
        border: 3px solid #ffffff;
        border-radius: 999px;
        color: #ffffff;
        background: rgba(255, 255, 255, 0.06);
        font-size: clamp(0.82rem, 3.35vw, 0.95rem);
        font-weight: 900;
        line-height: 1.15;
        text-decoration: none;
        transition: transform 0.18s ease, background-color 0.18s ease, color 0.18s ease, border-color 0.18s ease;
    }

    .mobile-complete-stamp {
        position: absolute;
        top: 50%;
        right: -10px;
        z-index: 3;
        display: grid;
        place-items: center;
        width: 44px;
        height: 44px;
        color: #070a59;
        background: #c9ff35;
        font-size: 0.62rem;
        font-weight: 900;
        line-height: 1;
        transform: translateY(-50%) rotate(6deg);
        clip-path: polygon(50% 0%, 61% 20%, 83% 12%, 82% 36%, 100% 50%, 82% 64%, 83% 88%, 61% 80%, 50% 100%, 39% 80%, 17% 88%, 18% 64%, 0% 50%, 18% 36%, 17% 12%, 39% 20%);
        box-shadow: 0 6px 14px rgba(0, 0, 0, 0.18);
    }

    .mobile-ethicode-link:hover,
    .mobile-ethicode-link:focus {
        color: #070a59;
        background: #c9ff35;
        border-color: #c9ff35;
        transform: translateY(-2px);
    }

}

@media (max-width: 390px) {
    .mobile-main-content {
        padding-top: 104px;
        padding-right: 8px;
        padding-left: 8px;
    }

    .mobile-install-card {
        margin-top: 132px;
        padding: 20px 12px 18px;
        border-radius: 24px;
    }

    .mobile-pixel-orbit {
        top: -152px;
        width: min(176px, 54vw);
    }

    .mobile-pixel-img {
        width: min(154px, 48vw);
    }

    .mobile-ethicode-grid {
        gap: 10px 8px;
        padding: 0 4px;
    }

    .mobile-ethicode-link {
        min-height: 48px;
        padding: 8px;
    }

    .mobile-complete-stamp {
        right: -8px;
        width: 38px;
        height: 38px;
        font-size: 0.55rem;
    }

    .mobile-shape-cross {
        width: 128px;
    }

    .mobile-shape-clover {
        bottom: 2px;
        left: -8px;
        width: 140px;
    }

    .ethicode-page-footer-main {
        bottom: 14px;
        left: -8px;
        width: 140px;
    }

    .teacher-kit-trigger-footer {
        min-width: 124px;
        max-width: 128px;
        font-size: 0.68rem;
    }

    .mobile-shape-split {
        right: -34px;
        bottom: 2px;
        width: 104px;
    }
}

@keyframes mobile-breathe-cross {
    0%, 100% { transform: rotate(-16deg) scale(1); }
    50% { transform: rotate(-10deg) scale(1.035); }
}

@keyframes desktop-breathe-cross {
    0%, 100% { transform: rotate(-15deg) scale(1); }
    50% { transform: rotate(-10deg) scale(1.025); }
}

@keyframes desktop-breathe-clover {
    0%, 100% { transform: rotate(0deg) scale(1); }
    50% { transform: rotate(3deg) scale(1.025); }
}

@keyframes desktop-drift-split {
    0%, 100% { transform: scaleX(-1) rotate(-45deg) translate(0, 0); }
    50% { transform: scaleX(-1) rotate(-40deg) translate(-8px, -10px); }
}

@keyframes mobile-breathe-clover {
    0%, 100% { transform: rotate(0deg) scale(1); }
    50% { transform: rotate(4deg) scale(1.025); }
}

@keyframes mobile-drift-split {
    0%, 100% { transform: scaleX(-1) rotate(-42deg) translate(0, 0); }
    50% { transform: scaleX(-1) rotate(-38deg) translate(-4px, -6px); }
}

@keyframes pixel-float {
    0%, 100% { transform: translateX(50%) translateY(0); }
    50% { transform: translateX(50%) translateY(-9px); }
}

@keyframes progress-shimmer {
    0% { right: -52px; }
    55%, 100% { right: calc(100% + 52px); }
}

@media (prefers-reduced-motion: reduce) {
    .shape-cross,
    .shape-clover,
    .shape-split-circle,
    .progress-fill::after,
    .mobile-shape-cross,
    .mobile-shape-clover,
    .mobile-shape-split,
    .mobile-pixel-orbit,
    .mobile-progress-fill::after {
        animation: none !important;
    }
}
