:root {
    --logo-dark: #141B25;
    --logo-blue: #4FA9E3;
    --logo-purple: #7B79F1;
    --logo-gradient: linear-gradient(135deg, #7B79F1 0%, #4FA9E3 100%);
    --bg-light: #F4F7FA;
    --white: #ffffff;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: 'Heebo', sans-serif;
}

body {
    direction: rtl;
    color: var(--logo-dark);
    line-height: 1.6;
    overflow-x: hidden;
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

.section { padding: 100px 0; }
.bg-light { background-color: var(--bg-light); }
.bg-dark { background-color: var(--logo-dark); color: white; }
.text-white { color: white; }
.text-center { text-align: center; }

/* Navbar */
.navbar {
    position: fixed;
    top: 0; width: 100%;
    background: rgba(255, 255, 255, 0.98);
    padding: 15px 0;
    z-index: 2000;
    box-shadow: 0 2px 15px rgba(0,0,0,0.05);
}
.nav-container {
    display: flex;
    justify-content: space-between;
    align-items: center;
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
    flex-direction: row-reverse;
}
.logo { height: 35px; }
.nav-links { list-style: none; display: flex; gap: 25px; align-items: center; }
.nav-links a { text-decoration: none; color: var(--logo-dark); font-weight: 700; transition: 0.3s; }
.nav-links a:hover { color: var(--logo-blue); }

.btn-nav {
    background: var(--logo-gradient);
    color: white !important;
    padding: 8px 20px;
    border-radius: 50px;
}

/* Hero */
.hero-section {
    padding: 180px 0 100px;
    background: radial-gradient(circle at 10% 20%, rgba(123, 121, 241, 0.05) 0%, rgba(255, 255, 255, 1) 90%);
}
.hero-content { display: flex; align-items: center; gap: 50px; }
h1 { font-size: 4rem; line-height: 1.1; font-weight: 900; }
.highlight { background: var(--logo-gradient); -webkit-background-clip: text; -webkit-text-fill-color: transparent; }
.hero-p { font-size: 1.3rem; color: #4b5563; margin: 25px 0; max-width: 600px; }
.badge { background: #EBEBFF; color: var(--logo-purple); padding: 5px 15px; border-radius: 50px; font-weight: 700; font-size: 0.9rem; }

/* Buttons */
.btn-primary {
    background: var(--logo-gradient);
    color: white;
    padding: 15px 35px;
    border-radius: 12px;
    text-decoration: none;
    font-weight: 700;
    display: inline-block;
    transition: 0.3s;
    border: none;
}
.btn-primary:hover { transform: translateY(-3px); box-shadow: 0 10px 20px rgba(123, 121, 241, 0.3); }
.btn-outline {
    border: 2px solid var(--logo-purple);
    color: var(--logo-purple);
    padding: 13px 35px;
    border-radius: 12px;
    text-decoration: none;
    font-weight: 700;
    margin-right: 15px;
    display: inline-block;
    transition: 0.3s;
}

/* Section Titles */
.section-title { text-align: center; margin-bottom: 60px; }
.section-title h2 { font-size: 2.5rem; margin-bottom: 10px; }
.underline { width: 60px; height: 5px; background: var(--logo-gradient); margin: 0 auto 20px; border-radius: 10px; }

/* Cards */
.grid-3 { display: grid; grid-template-columns: repeat(3, 1fr); gap: 30px; }
.card {
    background: white;
    padding: 40px;
    border-radius: 25px;
    transition: 0.4s;
    border: 1px solid #f0f0f0;
}
.card:hover { transform: translateY(-10px); border-color: var(--logo-blue); box-shadow: 0 20px 40px rgba(0,0,0,0.05); }
.card i { font-size: 3rem; color: var(--logo-blue); margin-bottom: 20px; display: block; }

/* Feature Tag */
.feature-tag {
    display: inline-block;
    background: #EBEBFF;
    color: var(--logo-purple);
    padding: 4px 14px;
    border-radius: 50px;
    font-size: 0.85rem;
    font-weight: 700;
    margin-bottom: 12px;
}

/* Detail Rows */
.detail-row {
    display: flex;
    align-items: center;
    gap: 80px;
    margin-bottom: 100px;
}
.detail-row.reverse { flex-direction: row-reverse; }
.detail-text { flex: 1; }
.detail-image { flex: 1; display: flex; justify-content: center; }
.feature-item { display: flex; align-items: center; gap: 15px; margin-top: 20px; }
.feature-item i { color: var(--logo-purple); font-size: 1.2rem; min-width: 20px; }

/* Real Screenshots */
.screen-img {
    width: 100%;
    max-width: 300px;
    display: block;
    margin: 0 auto;
    border-radius: 0;
    filter: drop-shadow(0 20px 40px rgba(0,0,0,0.22));
    transition: filter 0.4s ease, transform 0.4s ease;
}
.screen-img:hover {
    transform: translateY(-8px) scale(1.02);
    filter: drop-shadow(0 30px 50px rgba(123,121,241,0.35));
}
.hero-img {
    width: 100%;
    max-width: 520px;
    display: block;
    filter: drop-shadow(0 30px 60px rgba(123,121,241,0.25));
}

/* OTP Boxes */
.otp-boxes {
    display: flex;
    gap: 8px;
    justify-content: center;
    margin-top: 8px;
}
.otp-boxes span {
    width: 42px; height: 48px;
    border: 2px solid var(--logo-purple);
    border-radius: 10px;
    display: flex; align-items: center; justify-content: center;
    font-size: 1.3rem;
    font-weight: 900;
    color: var(--logo-purple);
}

/* Calendar Mock */
.calendar-mock {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 6px;
    width: 100%;
}
.cal-slot {
    padding: 7px 10px;
    border-radius: 8px;
    font-size: 0.8rem;
    font-weight: 700;
    text-align: center;
}
.cal-slot.available { background: #dcfce7; color: #166534; }
.cal-slot.taken { background: #fee2e2; color: #991b1b; }
.cal-slot.closed { background: #f3f4f6; color: #9ca3af; }

/* Waiting Tag */
.wait-tag {
    background: #EFF6FF;
    color: var(--logo-blue);
    border: 1.5px solid var(--logo-blue);
    border-radius: 50px;
    padding: 6px 16px;
    font-size: 0.82rem;
    font-weight: 700;
    margin-top: 5px;
}

/* Next Appointment Card */
.next-appt-card {
    background: #EBEBFF;
    border-radius: 12px;
    padding: 12px 16px;
    width: 100%;
    text-align: center;
    margin: 10px 0;
}

/* Quick Links */
.quick-links {
    display: flex;
    gap: 8px;
    justify-content: center;
    margin-top: 8px;
}
.ql-btn {
    background: var(--logo-gradient);
    color: white;
    border-radius: 50px;
    padding: 6px 14px;
    font-size: 0.8rem;
    font-weight: 700;
    cursor: pointer;
    display: flex;
    align-items: center;
    gap: 5px;
}

/* Stat Row */
.stat-row {
    display: flex;
    justify-content: space-between;
    width: 100%;
    padding: 7px 0;
    border-bottom: 1px solid #eee;
    font-size: 0.85rem;
}

/* Mini Bar */
.mini-bar {
    width: 100%;
    height: 8px;
    background: #eee;
    border-radius: 50px;
    margin-top: 10px;
    overflow: hidden;
}
.bar-fill {
    height: 100%;
    background: var(--logo-gradient);
    border-radius: 50px;
}

/* Service Items */
.service-item {
    display: flex;
    justify-content: space-between;
    width: 100%;
    padding: 8px 10px;
    background: white;
    border-radius: 8px;
    margin-bottom: 6px;
    font-size: 0.78rem;
}
.add-service-btn {
    margin-top: 8px;
    background: #EBEBFF;
    color: var(--logo-purple);
    border-radius: 8px;
    padding: 7px 16px;
    font-size: 0.8rem;
    font-weight: 700;
    cursor: pointer;
    display: flex;
    align-items: center;
    gap: 6px;
}

/* Broadcast */
.broadcast-box {
    background: white;
    border-radius: 12px;
    padding: 12px;
    width: 100%;
    text-align: right;
    margin-bottom: 10px;
    border: 1px solid #eee;
}
.broadcast-stats {
    display: flex;
    justify-content: space-between;
    align-items: center;
    width: 100%;
    font-size: 0.82rem;
    font-weight: 700;
}

/* Steps */
.step-card { padding: 20px; }
.step-num {
    width: 60px; height: 60px;
    background: var(--logo-gradient);
    color: white;
    border-radius: 50%;
    display: flex; align-items: center; justify-content: center;
    font-size: 1.5rem; font-weight: 900;
    margin: 0 auto 20px;
}

/* ROI Grid */
.grid-4 { display: grid; grid-template-columns: repeat(4, 1fr); gap: 25px; }
.roi-card {
    background: white;
    padding: 40px 30px;
    border-radius: 20px;
    text-align: center;
    direction: rtl;
    border: 2px solid #f0f0f0;
    transition: all 0.35s ease;
    position: relative;
    overflow: hidden;
    cursor: default;
    display: flex;
    flex-direction: column;
    align-items: center;
}
.roi-card::before {
    content: '';
    position: absolute;
    inset: 0;
    background: var(--logo-gradient);
    opacity: 0;
    transition: opacity 0.35s ease;
    z-index: 0;
}
.roi-card:hover {
    transform: translateY(-8px);
    border-color: transparent;
    box-shadow: 0 20px 45px rgba(123, 121, 241, 0.3);
}
.roi-card:hover::before { opacity: 1; }
.roi-card:hover .roi-icon { background: rgba(255,255,255,0.2); }
.roi-card:hover .roi-icon i { color: white; }
.roi-card:hover .roi-title { color: white; }
.roi-card:hover .roi-subtitle { color: rgba(255,255,255,0.75); }
.roi-card:hover .roi-desc { color: rgba(255,255,255,0.85); }

.roi-card > * { position: relative; z-index: 1; }

.roi-icon {
    width: 68px; height: 68px;
    background: #EBEBFF;
    border-radius: 50%;
    display: flex; align-items: center; justify-content: center;
    margin: 0 auto 18px;
    transition: background 0.35s ease;
    flex-shrink: 0;
}
.roi-icon i { font-size: 1.7rem; color: var(--logo-purple); transition: color 0.35s ease; }
.roi-title {
    font-size: 1.5rem;
    font-weight: 900;
    line-height: 1;
    margin-bottom: 4px;
    color: var(--logo-dark);
    transition: color 0.35s ease;
    text-align: center;
}
.roi-subtitle {
    font-size: 0.95rem;
    font-weight: 400;
    color: #888;
    margin-bottom: 14px;
    text-align: center;
    transition: color 0.35s ease;
}
.roi-desc {
    font-size: 0.88rem;
    color: #555;
    transition: color 0.35s ease;
    text-align: center;
    line-height: 1.6;
}

/* FAQ */
.faq-list { max-width: 800px; margin: 0 auto; }
.faq-box {
    background: white;
    padding: 25px;
    border-radius: 15px;
    margin-bottom: 20px;
    border-right: 5px solid var(--logo-blue);
}
.faq-box h4 { margin-bottom: 10px; display: flex; align-items: center; gap: 10px; color: var(--logo-blue); }

/* Contact Form */
.contact-wrapper { display: flex; gap: 50px; align-items: center; }
.contact-info { flex: 1; }
.contact-list { list-style: none; margin-top: 30px; }
.contact-list li { margin-bottom: 15px; display: flex; align-items: center; gap: 10px; font-weight: 700; }
.contact-list i { color: green; }

.contact-form-container {
    flex: 1;
    background: #ffffff !important;
    padding: 45px;
    border-radius: 30px;
    box-shadow: 0 25px 50px rgba(0,0,0,0.1);
    width: 100%;
}
.input-group { margin-bottom: 20px; text-align: right; }
.input-group label { display: block; margin-bottom: 8px; font-weight: 700; color: #141B25 !important; }
.input-group input,
.input-group select {
    width: 100%;
    padding: 14px 16px;
    border: 2px solid #eee;
    border-radius: 10px;
    font-size: 1rem;
    transition: 0.3s;
    direction: rtl;
    text-align: right;
    font-family: 'Heebo', sans-serif;
    color: #141B25 !important;
    background-color: #ffffff !important;
    /* iOS dark mode fix */
    -webkit-appearance: none;
    -webkit-text-fill-color: #141B25 !important;
}
.input-group input::placeholder { color: #aab; -webkit-text-fill-color: #aab !important; }
.input-group input:focus,
.input-group select:focus {
    border-color: var(--logo-purple);
    outline: none;
    box-shadow: 0 0 0 3px rgba(123,121,241,0.1);
}
.input-group select { appearance: none; cursor: pointer; }
.w-100 { width: 100%; cursor: pointer; }

footer { padding: 50px 0; border-top: 1px solid #eee; }

/* Field Errors */
.field-error {
    display: flex;
    align-items: center;
    gap: 6px;
    color: #dc2626;
    font-size: 0.82rem;
    font-weight: 700;
    margin-top: 6px;
    opacity: 0;
    max-height: 0;
    overflow: hidden;
    transition: opacity 0.25s ease, max-height 0.25s ease;
    direction: rtl;
}
.field-error.visible {
    opacity: 1;
    max-height: 40px;
}
.input-group input.invalid,
.input-group select.invalid {
    border-color: #dc2626;
    background: #fff5f5;
    box-shadow: 0 0 0 3px rgba(220, 38, 38, 0.1);
}
.input-group input.invalid:focus,
.input-group select.invalid:focus {
    border-color: #dc2626;
    box-shadow: 0 0 0 3px rgba(220, 38, 38, 0.15);
}

/* Form Toast */
.form-toast {
    display: flex;
    align-items: flex-start;
    gap: 14px;
    padding: 18px 22px;
    border-radius: 14px;
    margin-bottom: 20px;
    direction: rtl;
}
.form-toast.success {
    background: #f0fdf4;
    border: 1.5px solid #86efac;
    color: #166534;
}
.form-toast.error {
    background: #fff5f5;
    border: 1.5px solid #fca5a5;
    color: #dc2626;
}
.form-toast i { font-size: 1.4rem; margin-top: 2px; flex-shrink: 0; }
.form-toast strong { display: block; font-size: 1rem; margin-bottom: 3px; }
.form-toast p { font-size: 0.85rem; opacity: 0.85; margin: 0; }

/* ============================================================
   🚫 Dark Mode Prevention — צבעים קבועים תמיד
   ============================================================ */
:root {
    color-scheme: light only;
    supported-color-schemes: light;
}
html {
    background-color: #ffffff !important;
}
body {
    background-color: #ffffff !important;
    color: #141B25 !important;
}

@media (prefers-color-scheme: dark) {
    /* iOS Safari — כפיית צבעים בהירים */
    html, body {
        background-color: #ffffff !important;
        color: #141B25 !important;
    }
    .navbar {
        background: rgba(255,255,255,0.98) !important;
        -webkit-backdrop-filter: blur(10px);
    }
    .nav-links a { color: #141B25 !important; }
    section, .section { background-color: #ffffff !important; }
    .bg-light { background-color: #F4F7FA !important; }
    .bg-dark { background-color: #141B25 !important; }
    .card {
        background: #ffffff !important;
        border-color: #f0f0f0 !important;
        color: #141B25 !important;
    }
    .card h3, .card p, .card i { color: inherit !important; }
    .faq-box { background: #ffffff !important; color: #141B25 !important; }
    .faq-box p { color: #141B25 !important; }
    .roi-card { background: #ffffff !important; color: #141B25 !important; }
    .roi-desc { color: #555 !important; }
    .roi-subtitle { color: #888 !important; }
    .contact-form-container { background: #ffffff !important; }
    .contact-info h2, .contact-info p { color: #141B25 !important; }
    .contact-list li { color: #141B25 !important; }
    .input-group label { color: #141B25 !important; }
    .input-group input,
    .input-group select {
        background-color: #ffffff !important;
        color: #141B25 !important;
        border-color: #eee !important;
        -webkit-text-fill-color: #141B25 !important;
    }
    .hero-section { background: #ffffff !important; }
    .hero-p { color: #4b5563 !important; }
    h1, h2, h3, h4 { color: #141B25 !important; }
    p { color: #141B25 !important; }
    .highlight { -webkit-text-fill-color: transparent !important; }
    .step-card h4 { color: #ffffff !important; }
    .step-card p { color: rgba(255,255,255,0.85) !important; }
    .section-title p { color: #141B25 !important; }
    footer { background: #ffffff !important; color: #141B25 !important; }
    footer p { color: #141B25 !important; }
    .form-toast.success { background: #f0fdf4 !important; color: #166534 !important; }
    .form-toast.error { background: #fff5f5 !important; color: #dc2626 !important; }
    .mobile-menu { background: rgba(255,255,255,0.99) !important; }
    .mobile-menu a { color: #141B25 !important; }
}

/* ============================================================
   📱 Hamburger Menu
   ============================================================ */
.hamburger {
    display: none;
    flex-direction: column;
    gap: 5px;
    cursor: pointer;
    padding: 5px;
    background: none;
    border: none;
    z-index: 3000;
}
.hamburger span {
    display: block;
    width: 25px;
    height: 2.5px;
    background: var(--logo-dark);
    border-radius: 3px;
    transition: all 0.3s ease;
}
.hamburger.open span:nth-child(1) { transform: translateY(7.5px) rotate(45deg); }
.hamburger.open span:nth-child(2) { opacity: 0; }
.hamburger.open span:nth-child(3) { transform: translateY(-7.5px) rotate(-45deg); }

.mobile-menu {
    display: none;
    position: fixed;
    top: 65px;
    right: 0; left: 0;
    background: rgba(255,255,255,0.99);
    backdrop-filter: blur(10px);
    z-index: 1999;
    padding: 20px;
    box-shadow: 0 10px 30px rgba(0,0,0,0.1);
    flex-direction: column;
    gap: 5px;
    border-bottom: 1px solid #eee;
}
.mobile-menu.open { display: flex; }
.mobile-menu a {
    text-decoration: none;
    color: var(--logo-dark);
    font-weight: 700;
    font-size: 1.1rem;
    padding: 14px 10px;
    border-bottom: 1px solid #f0f0f0;
    display: block;
    text-align: right;
    transition: color 0.2s;
}
.mobile-menu a:last-child { border-bottom: none; }
.mobile-menu a.btn-nav {
    background: var(--logo-gradient);
    color: white !important;
    border-radius: 12px;
    text-align: center;
    margin-top: 10px;
    padding: 14px;
    border-bottom: none;
}

/* ============================================================
   📱 Mobile — 768px ומטה
   ============================================================ */
@media (max-width: 768px) {

    /* כללי */
    .section { padding: 60px 0; }
    .container { padding: 0 16px; }

    /* ניווט */
    .nav-links { display: none; }
    .hamburger { display: flex; }
    .nav-container { flex-direction: row; justify-content: space-between; }

    /* Hero */
    .hero-section { padding: 110px 0 60px; }
    .hero-content {
        flex-direction: column-reverse;
        text-align: center;
        gap: 30px;
    }
    .text-area { order: 2; }
    .image-area { order: 1; width: 100%; }
    h1 { font-size: 2.2rem; line-height: 1.2; }
    .hero-p { font-size: 1.05rem; margin: 18px auto; }
    .hero-btns {
        display: flex;
        flex-direction: column;
        align-items: center;
        gap: 12px;
    }
    .btn-outline { margin-right: 0; }
    .hero-img { max-width: 90%; margin: 0 auto; }

    /* Section Titles */
    .section-title h2 { font-size: 1.8rem; }
    .section-title p { font-size: 0.95rem; }

    /* Cards */
    .grid-3 { grid-template-columns: 1fr; gap: 16px; }
    .card { padding: 28px 22px; }

    /* Feature Rows */
    .detail-row,
    .detail-row.reverse {
        flex-direction: column;
        text-align: center;
        gap: 30px;
        margin-bottom: 60px;
    }
    .detail-text { order: 1; }
    .detail-image { order: 2; width: 100%; }
    .feature-item { justify-content: center; text-align: right; }
    .screen-img { max-width: 75%; margin: 0 auto; }
    .feature-tag { font-size: 0.8rem; }
    .detail-text h2 { font-size: 1.6rem; }

    /* Steps */
    .step-card { padding: 15px 10px; }

    /* ROI */
    .grid-4 { grid-template-columns: 1fr 1fr; gap: 14px; }
    .roi-card { padding: 24px 16px; }
    .roi-title { font-size: 1.2rem; }

    /* FAQ */
    .faq-list { max-width: 100%; }
    .faq-box { padding: 18px; }
    .faq-box h4 { font-size: 0.95rem; }

    /* Contact */
    .contact-wrapper {
        flex-direction: column;
        gap: 30px;
    }
    .contact-form-container {
        padding: 28px 20px;
        border-radius: 20px;
        width: 100%;
        max-width: 100%;
        box-sizing: border-box;
    }
    .contact-info h2 { font-size: 1.6rem; text-align: center; }
    .contact-info p { text-align: center; }
    .contact-list { display: inline-block; text-align: right; }
    .input-group input,
    .input-group select {
        font-size: 16px; /* מונע zoom אוטומטי ב-iOS */
    }

    /* Footer */
    footer { padding: 35px 0; }
    footer p { font-size: 0.85rem; }
}

/* ============================================================
   📱 Tablet — 769px עד 900px
   ============================================================ */
@media (min-width: 769px) and (max-width: 900px) {
    .hero-content { flex-direction: column-reverse; text-align: center; gap: 30px; }
    .grid-3 { grid-template-columns: 1fr 1fr; }
    .grid-4 { grid-template-columns: 1fr 1fr; }
    .detail-row, .detail-row.reverse { flex-direction: column; text-align: center; gap: 30px; }
    .contact-wrapper { flex-direction: column; }
    h1 { font-size: 3rem; }
    .nav-links { display: none; }
    .hamburger { display: flex; }
    .nav-container { flex-direction: row; justify-content: space-between; }
}