/* נגישות: מסתיר ויזואלית אבל משאיר לקורא מסך - למשל קישור "דלג לתוכן" שצריך
   להיות נסתר עד שמקבלים עליו פוקוס במקלדת (ר' .skip-link למטה). */
.visually-hidden {
    position: absolute;
    width: 1px;
    height: 1px;
    padding: 0;
    margin: -1px;
    overflow: hidden;
    clip: rect(0, 0, 0, 0);
    white-space: nowrap;
    border: 0;
}

.skip-link {
    position: fixed;
    top: -100%;
    inset-inline-start: 1rem;
    z-index: 1000;
    background: var(--primary);
    color: #fff;
    padding: 14px 22px;
    border-radius: 0 0 10px 10px;
    font-weight: 700;
    text-decoration: none;
    transition: top 0.2s ease;
}

.skip-link:focus {
    top: 0;
}

/* WCAG 2.4.7 - טבעת פוקוס אחידה וברורה על כל כפתור/קישור מרכזי בדף, בלי
   להסתמך על ברירת המחדל (שמשתנה בין דפדפנים/מערכות הפעלה ולפעמים קשה
   להבחין בה על רקע כהה). */
.btn:focus-visible,
.hero-badge:focus-visible {
    outline: 3px solid var(--accent);
    outline-offset: 3px;
}

/* מכבד prefers-reduced-motion (WCAG 2.3.3) - למי שביקש פחות תנועה במערכת
   ההפעלה, כל האנימציות/מעברים בעמוד הזה מתקצרים כמעט לאפס במקום להיעלם
   לגמרי (כדי לא לשבור מצבים סופיים שתלויים בטרנזישן, כמו אקורדיון ה-FAQ). */
@media (prefers-reduced-motion: reduce) {

    *,
    *::before,
    *::after {
        animation-duration: 0.01ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: 0.01ms !important;
        scroll-behavior: auto !important;
    }
}

.hero {
    padding: clamp(10px, 15vh, 5px) 20px 80px;
    text-align: center;
    display: flex;
    flex-direction: column;
    align-items: center;
    animation: dropFade 1.8s ease forwards;
}

.main-logo {
    width: clamp(200px, 15vw, 180px);
    border-radius: 45px;
    margin-bottom: 35px;
    box-shadow: 0 25px 60px rgba(0, 0, 0, 0.5), 0 0 40px rgba(88, 101, 242, 0.2);
}

.hero-badge {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    margin-bottom: 22px;
    padding: 8px 18px 8px 8px;
    border-radius: 30px;
    background: var(--glass);
    border: 1px solid var(--border-highlight);
    color: var(--text-main);
    text-decoration: none;
    font-size: 0.9rem;
    font-weight: 600;
    transition: 0.3s;
}

.hero-badge:hover {
    background: var(--glass-hover);
    border-color: var(--primary);
    transform: translateY(-2px);
}

.hero-badge-tag {
    background: linear-gradient(135deg, var(--primary), var(--accent));
    color: #fff;
    font-size: 0.72rem;
    font-weight: 800;
    text-transform: uppercase;
    letter-spacing: 0.04em;
    padding: 4px 10px;
    border-radius: 20px;
}

.hero-badge i {
    color: var(--text-dim);
    font-size: 0.8rem;
}

.hero-trust-row {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 10px 26px;
    margin-top: 26px;
    color: var(--text-dim);
    font-size: 0.92rem;
}

.hero-trust-row span {
    display: inline-flex;
    align-items: center;
    gap: 8px;
}

.hero-trust-row i {
    color: #10b981;
}

.hero h1 {
    font-size: clamp(2.5rem, 7vw, 4rem);
    font-weight: 800;
    margin-bottom: 20px;
    letter-spacing: -2px;
    background: linear-gradient(to bottom, #ffffff 40%, #888888);
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
}

.hero p {
    color: var(--text-dim);
    font-size: clamp(1.1rem, 2vw, 1.4rem);
    max-width: 750px;
    margin: 0 auto 45px;
    line-height: 1.7;
}

section {
    padding: 100px 0;
    border-top: 1px solid var(--border);
    animation: dropFade 1.8s ease forwards;
}

/* --- Buttons --- */
.btn-group {
    display: flex;
    gap: 20px;
    justify-content: center;
}

.btn {
    padding: 16px 40px;
    border-radius: 14px;
    font-weight: 600;
    font-size: 1.05rem;
    text-decoration: none;
    transition: 0.3s;
    cursor: pointer;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
}

/* שני כפתורי ה-hero לא תמיד יוצאים באותו רוחב (התוכן שלהם אורך שונה) -
   רוחב מינימלי משותף שומר על זוג מאוזן במקום "אחד גדול אחד קטן". */
.btn-group .btn {
    min-width: 13rem;
}

.btn-primary {
    background: var(--primary);
    color: #fff;
    box-shadow: 0 8px 25px rgba(88, 101, 242, 0.3);
}

.btn-primary:hover {
    background: var(--primary-hover);
    transform: translateY(-3px);
    box-shadow: 0 12px 30px rgba(88, 101, 242, 0.5);
}

.btn-outline {
    border: 1px solid var(--border);
    color: #fff;
    background: var(--glass);
}

.btn-outline:hover {
    background: var(--glass-hover);
    border-color: var(--text-dim);
}

body.inverse-theme {
    background-color: var(--bg-inverse);
}

body.inverse-theme .feature-card {
    background-color: rgba(10, 15, 30, 0.5);
}

/* מספר עמודות קבוע לפי כמות הכרטיסים בפועל (3), לא auto-fit - כדי שלא ייווצר
   מצב-ביניים שבו כרטיס בודד בשורה האחרונה נמתח לרוחב מלא ונראה "גדול" לעומת
   האחרים. אותה גישה חוזרת ב-.features-grid/.steps-grid/.promo-grid למטה. */
.stats-container {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 25px;
    padding: 40px 0 80px;
}

.stat-card {
    background: var(--glass);
    padding: 35px 20px;
    border-radius: 24px;
    text-align: center;
    border: 1px solid var(--border);
    transition: 0.3s;
}

.stat-card:hover {
    border-color: var(--border-highlight);
    transform: translateY(-5px);
    background: var(--glass-hover);
}

.stat-value {
    font-size: 2.8rem;
    font-weight: 800;
    color: var(--primary);
    display: block;
    line-height: 1;
    margin-bottom: 10px;
}

.stat-label {
    color: var(--text-dim);
    font-size: 1.05rem;
    font-weight: 600;
}

.section-title {
    text-align: center;
    font-size: clamp(2rem, 4vw, 3rem);
    margin-bottom: 60px;
    font-weight: 800;
}

/* גריד אמיתי (לא רשימה חד-טורית) עם שתי עמודות קבועות - שורה שלמה תמיד
   נמתחת לאותו גובה (ברירת המחדל של grid), כך שכרטיסים עם טקסט קצר/ארוך
   בשורה אחת יוצאים תמיד באותו גודל בדיוק, ולא "אחד גדול אחד קטן". */
.features-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 30px;
    padding-bottom: 100px;
}

.feature-card {
    background: var(--bg-card);
    padding: 40px;
    border-radius: 24px;
    border: 1px solid var(--border);
    transition: 0.4s;
    position: relative;
    overflow: hidden;
    display: flex;
    align-items: center;
    height: 100%;
}

.feature-card img {
    width: 6rem;
    height: 6rem;
    margin: 15px;
    display: block;
}

.feature-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: radial-gradient(circle at top right, rgba(88, 101, 242, 0.1), transparent 70%);
    opacity: 0;
    transition: 0.4s;
}

.feature-card:hover {
    transform: translateY(-8px);
    border-color: var(--primary);
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.3);
}

.feature-card:hover::before {
    opacity: 1;
}

.feature-icon {
    font-size: 2.5rem;
    margin-bottom: 20px;
    display: block;
}

.feature-card h3 {
    font-size: 1.5rem;
    margin-bottom: 15px;
    font-weight: 700;
}

.feature-card p {
    color: var(--text-dim);
    line-height: 1.7;
    font-size: 1.05rem;
}

.faq-section {
    padding: 100px 0;
    border-top: 1px solid var(--border);
}

.faq-container {
    max-width: 800px;
    margin: 0 auto;
}

.faq-item {
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: 18px;
    margin-bottom: 15px;
    overflow: hidden;
    transition: 0.3s;
}

.faq-item:hover {
    border-color: rgba(255, 255, 255, 0.2);
}

.faq-question {
    padding: 22px 25px;
    cursor: pointer;
    display: flex;
    justify-content: space-between;
    align-items: center;
    font-weight: 600;
    font-size: 1.1rem;
    color: var(--text-main);
    background-color: transparent;
    border: 0px;
    width: 100%;
    transition: 0.3s;
}

.faq-question:focus-visible {
    outline: none;
    box-shadow: none;
    border-radius: 18px;
    background-color: transparent;
    border: 2px solid var(--primary);
}

.faq-icon {
    color: var(--primary);
    font-size: 1.4rem;
    font-weight: 300;
    transition: 0.3s transform;
}

.faq-item.active .faq-icon {
    transform: rotate(45deg);
    color: #ff453a;
}

.faq-answer {
    padding: 0 25px;
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.4s ease, padding 0.4s ease;
    color: var(--text-dim);
    border-top: 1px solid transparent;
    line-height: 1.7;
}

.faq-item.active .faq-answer {
    max-height: 300px;
    padding: 0 25px 25px;
    border-top-color: var(--border);
    margin-top: 10px;
    padding-top: 15px;
}

/* אייקוני Font Awesome בכרטיסי features (בנוסף לתמונות ה-svg הקיימות) -
   אותה מסגרת עגולה עם גרדיאנט כמו promo-icon, כדי שיתאימו ויזואלית */
.feature-icon-circle {
    width: 6rem;
    height: 6rem;
    margin: 15px;
    flex-shrink: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    background: linear-gradient(135deg, rgba(88, 101, 242, 0.18), rgba(139, 92, 246, 0.14));
    border: 1px solid var(--border-highlight);
    color: var(--accent);
    font-size: 2.2rem;
}

.cta-banner {
    padding: 60px 0;
}

.cta-banner-box {
    text-align: center;
    padding: 60px 40px;
    border-radius: 28px;
    background: linear-gradient(135deg, rgba(88, 101, 242, 0.16), rgba(139, 92, 246, 0.12));
    border: 1px solid var(--border-highlight);
}

.cta-banner-box h2 {
    font-size: clamp(1.6rem, 3.5vw, 2.4rem);
    font-weight: 800;
    margin-bottom: 14px;
}

.cta-banner-box p {
    color: var(--text-dim);
    font-size: 1.05rem;
    max-width: 600px;
    margin: 0 auto 30px;
    line-height: 1.7;
}

/* כניסה הדרגתית בגלילה לכרטיסים (סטטיסטיקה/פיצ'רים/שלבים/פרומו/שאלות) -
   .in-view מתווסף ב-JS (IntersectionObserver) ברגע שהכרטיס נכנס למסך.
   prefers-reduced-motion למעלה כבר מקצר את הטרנזישן כמעט לאפס, כך שמי
   שביקש פחות תנועה פשוט רואה את הכרטיס מופיע מיד, בלי החלקה. */
.reveal {
    opacity: 0;
    transform: translateY(18px);
    transition: opacity 0.6s ease, transform 0.6s ease;
}

.reveal.in-view {
    opacity: 1;
    transform: translateY(0);
}

@keyframes dropFade {
    from {
        opacity: 0;
        transform: translateY(-10px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@media (max-width: 1024px) {
    .hero {
        padding-top: 65px;
    }
}

/* ==========================================
   "איך זה עובד" - שלבי שימוש, ו"עוד NexusBot בשבילכם" - קידום חנות הפקודות
   ופרימיום. אותה שפה עיצובית בדיוק כמו features-grid/stat-card, רק תוכן חדש.
   ========================================== */
.steps-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 25px;
}

.step-card {
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: 24px;
    padding: 35px 25px;
    position: relative;
    overflow: hidden;
    transition: 0.4s;
    height: 100%;
}

.step-card:hover {
    transform: translateY(-6px);
    border-color: var(--primary);
    box-shadow: 0 15px 35px rgba(0, 0, 0, 0.25);
}

.step-number {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 3rem;
    height: 3rem;
    border-radius: 50%;
    background: linear-gradient(135deg, var(--primary), var(--accent));
    color: #fff;
    font-size: 1.4rem;
    font-weight: 800;
    margin-bottom: 20px;
}

.step-card h3 {
    font-size: 1.25rem;
    font-weight: 700;
    margin-bottom: 10px;
}

.step-card p {
    color: var(--text-dim);
    line-height: 1.6;
    font-size: 0.95rem;
}

.promo-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 30px;
    align-items: stretch;
}

/* עמודה גמישה (flex) בתוך כל כרטיס + margin-top:auto על הכפתור, כך שהכפתור
   תמיד "יושב" באותו קו תחתון בכל הכרטיסים בשורה, גם כשתיאור אחד ארוך
   מהאחר - זה מה שגרם קודם לכפתורים להיראות ממוקמים באופן לא אחיד. */
.promo-card {
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: 24px;
    padding: 45px 35px;
    text-align: center;
    transition: 0.4s;
    height: 100%;
    display: flex;
    flex-direction: column;
    align-items: center;
}

.promo-card .btn {
    margin-top: auto;
}

.promo-card:hover {
    transform: translateY(-6px);
    border-color: var(--border-highlight);
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.3);
}

.promo-card-premium {
    border-color: rgba(88, 101, 242, 0.4);
    background: linear-gradient(180deg, rgba(18, 18, 23, 1), rgba(13, 19, 38, 0.6));
}

.promo-icon {
    width: 4.5rem;
    height: 4.5rem;
    margin: 0 auto 20px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    background: linear-gradient(135deg, rgba(88, 101, 242, 0.18), rgba(139, 92, 246, 0.14));
    border: 1px solid var(--border-highlight);
    color: var(--accent);
    font-size: 1.8rem;
}

.promo-card h3 {
    font-size: 1.4rem;
    font-weight: 800;
    margin-bottom: 12px;
}

.promo-card p {
    color: var(--text-dim);
    line-height: 1.6;
    margin-bottom: 25px;
}

/* נקודות שבירה למובייל - בכוונה בסוף הקובץ, אחרי כל כללי ה-grid הבסיסיים
   (features/steps/promo) שהן אמורות לדרוס. חוק ה-cascade של CSS: כששתי
   כללים על אותו סלקטור עם אותה ספציפיות מתנגשים, זה שמאוחר יותר במקור מנצח -
   בלי קשר לזה שהוא בתוך media query. כשהכללים האלה היו *לפני* ההגדרות
   הבסיסיות למטה, ההגדרות הבסיסיות דרסו אותן במובייל, מה שגרם ל-promo-grid
   (3 עמודות קבועות) לא להתכווץ בכלל בטלפון ולדחוף את העמוד לגלילה אופקית. */
@media (max-width: 900px) {
    .features-grid {
        grid-template-columns: 1fr;
    }

    .steps-grid {
        grid-template-columns: repeat(2, 1fr);
    }

    .stats-container,
    .promo-grid {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 768px) {
    .btn-group {
        flex-direction: column;
        width: 100%;
    }

    .btn-group .btn {
        min-width: 0;
    }

    .btn {
        width: 100%;
        justify-content: center;
    }

    .feature-card {
        flex-direction: column;
        /* align-items: flex-start; */
        gap: 15px;
    }
}

@media (max-width: 560px) {
    .steps-grid {
        grid-template-columns: 1fr;
    }
}