/* AsIVision split site */
*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; height: 100%; overflow-x: hidden; }
body {
    margin: 0;
    padding: 0;
    height: 100%;
    direction: rtl;
    font-family: "Assistant", sans-serif;
    color: #f5f7fb;
    background: linear-gradient(135deg, #0466c8, #0353a4, #023e7d, #002855, #001233, #33415c);
    background-size: 400% 400%;
    animation: bgShift 30s ease-in-out infinite;
    overflow: hidden;
}
@keyframes bgShift {
    0% { background-position: 0% 50%; }
    50% { background-position: 100% 50%; }
    100% { background-position: 0% 50%; }
}

main {
    height: 100vh;
    overflow-y: scroll;
    scroll-snap-type: y mandatory;
    -webkit-overflow-scrolling: touch;
}
main::-webkit-scrollbar { display: none; }

section {
    min-height: 100vh;
    width: 100%;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    scroll-snap-align: start;
    position: relative;
    padding: 80px 20px;
}

/* ניווט צף */
.floating-nav {
    position: fixed;
    top: 20px;
    left: 50%;
    transform: translateX(-50%);
    display: flex;
    gap: 10px;
    padding: 10px 20px;
    border-radius: 999px;
    background: rgba(0,0,0,0.5);
    backdrop-filter: blur(15px);
    border: 1px solid rgba(255,255,255,0.1);
    z-index: 3000;
}
.nav-link {
    color: #fff;
    text-decoration: none;
    font-size: 0.9rem;
    padding: 8px 15px;
    border-radius: 999px;
    transition: 0.3s;
    white-space: nowrap;
}
.nav-link:hover { background: rgba(255,255,255,0.1); }
.nav-cta { background: #ff9800; color: #001233; font-weight: 800; }

/* Hero Section - WIX Style */
.hero-content {
    max-width: 1200px;
    width: 100%;
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 40px;
    align-items: center;
    text-align: right;
}


.hero-text h1 {
    font-size: 3.5rem;
    font-weight: 800;
    line-height: 1.1;
    margin-bottom: 20px;
    color: #fff;
}
.hero-text p {
    font-size: 1.25rem;
    line-height: 1.6;
    color: #dbe5ff;
    margin-bottom: 30px;
}
.hero-actions {
    display: flex;
    gap: 15px;
    flex-wrap: wrap;
}
.hero-video-container {
    position: relative;
    width: 100%;
    max-width: 600px;
    filter: drop-shadow(0 20px 50px rgba(0,0,0,0.5));
}
.screen-mockup {
    background: linear-gradient(180deg, #1a1a1a, #101010);
    border-radius: 26px;
    padding: 16px 16px 18px;
    border: 1px solid rgba(255,255,255,0.14);
    position: relative;
    aspect-ratio: 16/9;
    overflow: hidden;
    box-shadow:
        inset 0 0 20px rgba(0,0,0,0.6),
        0 20px 50px rgba(0,0,0,0.45);
}
.screen-mockup::before {
    content: "";
    position: absolute;
    top: 8px;
    left: 50%;
    transform: translateX(-50%);
    width: 90px;
    height: 6px;
    border-radius: 999px;
    background: rgba(255,255,255,0.18);
    z-index: 2;
}
.screen-mockup iframe {
    width: 100%;
    height: 100%;
    border: none;
    border-radius: 16px;
}

/* Floating Code Background */
.floating-code {
    position: fixed;
    top: 0;
    width: 300px;
    height: 100vh;
    z-index: 0;
    opacity: 0.12;
    pointer-events: none;
    font-family: monospace;
    font-size: 0.8rem;
    color: #00f2ff;
    overflow: hidden;
}
.floating-code::before {
    content: "";
    position: absolute;
    inset: 0;
    background: linear-gradient(to bottom, rgba(0,18,51,0.05), rgba(0,18,51,0.25), rgba(0,18,51,0.05));
}
.floating-code pre {
    margin: 0;
    min-height: 100%;
    white-space: pre;
    line-height: 1.85;
}
.side-left { left: 20px; }
.side-right { right: 20px; direction: ltr; }

/* Content Sections */
.content-section {
    max-width: 1000px;
    width: 100%;
    position: relative;
    z-index: 2;
}
.section-title {
    font-size: 2.5rem;
    font-weight: 800;
    margin-bottom: 30px;
    text-align: center;
}

/* Solutions / Examples Cards */
.solutions-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 20px;
    margin-top: 40px;
}
.solution-card {
    background: rgba(255,255,255,0.05);
    border: 1px solid rgba(255,255,255,0.1);
    padding: 30px;
    border-radius: 24px;
    transition: 0.3s;
    text-align: center;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    position: relative;
    z-index: 2;
}
.solution-card:hover {
    transform: translateY(-10px);
    background: rgba(255,255,255,0.1);
    border-color: #00f2ff;
}
.solution-card i { font-size: 3rem; color: #00f2ff; margin-bottom: 20px; }
.solution-card h3 { font-size: 1.5rem; margin-bottom: 15px; }
.solution-card p { font-size: 1rem; color: #cbd5e1; margin-bottom: 20px; }

.key-btn {
    display: inline-block;
    padding: 12px 25px;
    border-radius: 999px;
    background: #00f2ff;
    color: #001233;
    text-decoration: none;
    font-weight: 700;
    transition: 0.3s;
}
.key-btn:hover { background: #fff; transform: scale(1.05); }

/* Forms */
.contact-form {
    width: 100%;
    max-width: 600px;
    background: rgba(0,0,0,0.2);
    padding: 40px;
    border-radius: 30px;
    border: 1px solid rgba(255,255,255,0.1);
    position: relative;
    z-index: 2;
}
.contact-form input, .contact-form textarea {
    width: 100%;
    padding: 15px;
    margin-bottom: 15px;
    border-radius: 12px;
    border: 1px solid rgba(255,255,255,0.2);
    background: rgba(255,255,255,0.05);
    color: #fff;
}
.contact-form input::placeholder,
.contact-form textarea::placeholder { color: rgba(255,255,255,0.72); }

.cta-main {
    width: 100%;
    padding: 15px;
    border-radius: 999px;
    border: none;
    background: #ff9800;
    color: #001233;
    font-weight: 800;
    cursor: pointer;
}

/* Facebook Embed */
.facebook-embed-wrapper {
    width: 100%;
    max-width: 500px;
    margin: 0 auto;
    border-radius: 20px;
    overflow: hidden;
    border: 1px solid rgba(255,255,255,0.12);
    background: rgba(255,255,255,0.04);
    position: relative;
    z-index: 2;
    box-shadow: 0 20px 40px rgba(0,0,0,0.25);
}
.facebook-embed-wrapper iframe {
    display: block;
    width: 100%;
    height: 560px;
    border: none;
    background: #fff;
}
.facebook-fallback-link {
    display: inline-block;
    margin-top: 16px;
    color: #fff;
    text-decoration: none;
    border: 1px solid rgba(255,255,255,0.2);
    padding: 10px 18px;
    border-radius: 999px;
    background: rgba(255,255,255,0.05);
}

.site-footer {
    position: fixed;
    bottom: 10px;
    left: 10px;
    font-size: 0.8rem;
    opacity: 0.6;
    z-index: 3;
}

@media (max-width: 900px) {
    .hero-content { grid-template-columns: 1fr; text-align: center; }
    .hero-text h1 { font-size: 2.2rem; }
    .floating-nav { width: 95%; font-size: 0.8rem; overflow-x: auto; justify-content: center; }
    section { padding: 100px 15px; }
    .floating-code { width: 140px; opacity: 0.08; }
}

/* לוגו מרכזי למעלה בדף הראשון */
.hero-logo {
    position: absolute;
    top: 120px;
    left: 50%;
    transform: translateX(-50%);
    z-index: 20;
}

/* ===== Responsive additions only ===== */

/* שיפור פריסת הדף הראשון בלי לשנות HTML */
#home {
    overflow: hidden;
}

#home .hero-content {
    padding-top: 160px;
    position: relative;
    z-index: 2;
}

#home .hero-text,
#home .hero-video-container {
    width: 100%;
}

#home .hero-actions {
    justify-content: center;
}

#home .hero-video-container a {
    display: block;
}

#home .screen-mockup {
    transition: transform 0.25s ease, box-shadow 0.25s ease;
}

#home .screen-mockup:hover {
    transform: translateY(-4px);
    box-shadow:
        inset 0 0 20px rgba(0,0,0,0.6),
        0 26px 60px rgba(0,0,0,0.5);
}

/* שדרוג ויזואלי עדין בסגנון SaaS לדף הראשון בלבד */
#home::before {
    content: "";
    position: absolute;
    inset: 0;
    pointer-events: none;
    background:
        radial-gradient(circle at 50% 18%, rgba(0,242,255,0.16), transparent 28%),
        radial-gradient(circle at 25% 45%, rgba(255,255,255,0.05), transparent 20%),
        radial-gradient(circle at 75% 40%, rgba(255,255,255,0.04), transparent 18%);
    z-index: 1;
}

#home .hero-logo img {
    filter: drop-shadow(0 10px 24px rgba(0, 0, 0, 0.35));
}

#home .hero-text h1 {
    text-wrap: balance;
}

#home .hero-text p {
    max-width: 700px;
    margin-right: auto;
    margin-left: auto;
}

#home .key-btn {
    box-shadow: 0 10px 24px rgba(0,0,0,0.18);
}

/* ===== Tablet ===== */
@media (max-width: 1100px) {
    .floating-code {
        display: none;
    }

    #home .hero-content {
        grid-template-columns: 1fr;
        gap: 28px;
        text-align: center;
        padding-top: 150px;
        max-width: 760px;
    }

    #home .hero-video-container {
        max-width: 720px;
        margin: 0 auto;
    }

    .solutions-grid {
        grid-template-columns: 1fr;
    }

    .content-section {
        max-width: 820px;
    }
}

/* ===== Mobile ===== */
@media (max-width: 768px) {
    html, body {
        overflow-x: hidden;
    }

    section {
        min-height: 100svh;
        padding: 110px 16px 40px;
    }

    .floating-nav {
        width: calc(100% - 24px);
        max-width: 540px;
        padding: 10px 14px;
        gap: 6px;
        justify-content: center;
        flex-wrap: wrap;
    }

    .nav-link {
        font-size: 0.82rem;
        padding: 8px 12px;
    }

    #home .hero-logo {
        top: 92px;
    }

    #home .hero-logo img {
        max-width: min(78vw, 340px);
        height: auto;
    }

    #home .hero-content {
        padding-top: 120px;
        gap: 20px;
    }

    #home .hero-text h1 {
        font-size: 2.2rem;
        line-height: 1.15;
        margin-bottom: 16px;
    }

    #home .hero-text p {
        font-size: 1.05rem;
        line-height: 1.55;
        margin-bottom: 22px;
    }

    #home .hero-actions {
        gap: 10px;
    }

    #home .key-btn {
        width: 100%;
        max-width: 260px;
        text-align: center;
    }

    #home .hero-video-container {
        max-width: 100%;
    }

    #home .screen-mockup {
        border-radius: 20px;
        padding: 12px 12px 14px;
    }

    .section-title {
        font-size: 2rem;
        margin-bottom: 20px;
    }

    .content-section {
        max-width: 100%;
    }

    .contact-form {
        padding: 24px 18px;
        border-radius: 22px;
    }

    .facebook-embed-wrapper iframe {
        height: 420px;
    }

    .site-footer {
        font-size: 0.72rem;
        left: 8px;
        bottom: 8px;
    }
}

/* ===== Small phones ===== */
@media (max-width: 480px) {
    #home .hero-logo {
        top: 88px;
    }

    #home .hero-content {
        padding-top: 105px;
    }

    #home .hero-text h1 {
        font-size: 1.8rem;
    }

    #home .hero-text p {
        font-size: 0.98rem;
    }

    .nav-link {
        font-size: 0.76rem;
        padding: 7px 10px;
    }

    .facebook-embed-wrapper iframe {
        height: 360px;
    }
}
.hero-logo img {
    max-width: 420px;
}

