/* Reset and Base Styles */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

:root {
    --purple-start: #667eea;
    --purple-end: #764ba2;
    --purple: #667eea;
    --text-dark: #1a202c;
    --text-gray: #4a5568;
    --text-light: #718096;
    --bg-white: #ffffff;
    --bg-gray: #f7fafc;
    --shadow-sm: 0 2px 8px rgba(0, 0, 0, 0.04);
    --shadow-md: 0 4px 20px rgba(0, 0, 0, 0.08);
    --shadow-lg: 0 10px 40px rgba(0, 0, 0, 0.12);
}

body {
    font-family: 'Heebo', sans-serif;
    color: var(--text-dark);
    line-height: 1.6;
    direction: rtl;
    overflow-x: hidden;
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 24px;
}

/* Header */
.header {
    background: var(--bg-white);
    box-shadow: var(--shadow-sm);
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 100;
    padding: 16px 0;
}

body {
    padding-top: 73px;
}

.header-content {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 12px;
    min-width: 0;
}

.logo {
    height: 40px;
    width: auto;
    flex-shrink: 0;
}

.logo-group {
    display: flex;
    align-items: center;
    gap: 16px;
    min-width: 0;
    flex-shrink: 1;
}

.logo-tagline {
    font-size: 16px;
    font-weight: 500;
    color: var(--text-gray);
    line-height: 1.4;
    white-space: nowrap;
}

.nav {
    display: flex;
    gap: 32px;
    align-items: center;
    flex-shrink: 0;
}

.btn-nav {
    background: linear-gradient(135deg, var(--purple-start), var(--purple-end));
    color: white !important;
    padding: 10px 24px;
    border-radius: 24px;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    border: none;
    font-family: 'Heebo', sans-serif;
    font-size: 16px;
    font-weight: 500;
    cursor: pointer;
}

.btn-nav:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 20px rgba(102, 126, 234, 0.3);
}

/* Hero Section */
.hero {
    position: relative;
    background: linear-gradient(135deg, var(--purple-start) 0%, var(--purple-end) 100%);
    color: white;
    padding: 120px 0 180px;
    overflow: hidden;
}

.blob {
    position: absolute;
    border-radius: 40% 60% 70% 30% / 40% 50% 60% 50%;
    opacity: 0.1;
    background: white;
    animation: blob-animation 20s ease-in-out infinite;
}

.blob-1 {
    width: 600px;
    height: 600px;
    top: -200px;
    right: -100px;
}

.blob-2 {
    width: 500px;
    height: 500px;
    bottom: -150px;
    left: -150px;
    animation-delay: -5s;
}

.blob-3 {
    width: 700px;
    height: 700px;
    top: -250px;
    left: -200px;
}

@keyframes blob-animation {

    0%,
    100% {
        border-radius: 40% 60% 70% 30% / 40% 50% 60% 50%;
        transform: rotate(0deg);
    }

    25% {
        border-radius: 60% 40% 30% 70% / 50% 60% 40% 50%;
        transform: rotate(90deg);
    }

    50% {
        border-radius: 30% 60% 70% 40% / 50% 40% 60% 50%;
        transform: rotate(180deg);
    }

    75% {
        border-radius: 60% 40% 50% 60% / 40% 50% 60% 40%;
        transform: rotate(270deg);
    }
}

.hero-grid {
    display: grid;
    grid-template-columns: 1fr 1.4fr;
    gap: 60px;
    align-items: center;
    position: relative;
    z-index: 1;
}

.hero-title {
    font-size: 56px;
    font-weight: 800;
    line-height: 1.2;
    margin-bottom: 24px;
}

.highlight {
    background: rgba(255, 255, 255, 0.2);
    padding: 4px 16px;
    border-radius: 8px;
    display: inline-block;
}

.hero-value-prop {
    font-size: 26px;
    font-weight: 700;
    background: rgba(255, 255, 255, 0.18);
    border: 1.5px solid rgba(255, 255, 255, 0.35);
    border-radius: 12px;
    display: inline-block;
    padding: 10px 22px;
    margin-bottom: 20px;
    letter-spacing: -0.01em;
}

.hero-subtitle {
    font-size: 20px;
    line-height: 1.6;
    opacity: 0.95;
    margin-bottom: 32px;
    font-weight: 400;
}

.hero-features {
    display: grid;
    grid-template-columns: repeat(2, auto);
    justify-content: start;
    gap: 12px 24px;
    margin-bottom: 40px;
}

.hero-feature {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 16px;
}

.hero-feature .material-symbols-rounded {
    font-size: 24px;
}

.hero-cta {
    display: flex;
    gap: 16px;
}

.btn {
    padding: 16px 32px;
    border-radius: 12px;
    font-size: 18px;
    font-weight: 600;
    text-decoration: none;
    display: inline-block;
    transition: all 0.3s ease;
    cursor: pointer;
    border: none;
    font-family: 'Heebo', sans-serif;
}

.btn-primary {
    background: white;
    color: var(--purple-end);
    box-shadow: var(--shadow-md);
}

.btn-primary:hover {
    transform: translateY(-3px);
    box-shadow: var(--shadow-lg);
}

.btn-light {
    background: white;
    color: var(--purple-end);
    padding: 16px 40px;
    font-size: 20px;
}

.btn-light:hover {
    transform: translateY(-3px);
    box-shadow: var(--shadow-lg);
}

.hero-image {
    position: relative;
    z-index: 1;
}

.mockup {
    width: 115%;
    height: auto;
    border-radius: 16px;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.3);
    transition: transform 0.3s ease;
}

.mockup:hover {
    transform: translateY(-8px);
}

.wave-bottom {
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    height: 120px;
    background: var(--bg-white);
    clip-path: polygon(0 40%, 100% 0%, 100% 100%, 0% 100%);
}

.wave-top {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 120px;
    background: var(--bg-white);
    clip-path: polygon(0 0%, 100% 0%, 100% 60%, 0% 100%);
}

.section-title {
    text-align: center;
    font-size: 48px;
    font-weight: 800;
    margin-bottom: 64px;
    color: var(--text-dark);
}

/* Benefits Section */
.benefits {
    padding: 100px 0;
    background: var(--bg-white);
}

.benefits-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 32px;
}

.benefit-card {
    background: white;
    padding: 40px 32px;
    border-radius: 16px;
    box-shadow: var(--shadow-sm);
    text-align: center;
    transition: all 0.3s ease;
}

.benefit-card:hover {
    transform: translateY(-8px);
    box-shadow: var(--shadow-lg);
}

.benefit-icon {
    width: 64px;
    height: 64px;
    margin: 0 auto 20px;
    background: linear-gradient(135deg, var(--purple-start), var(--purple-end));
    ;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
}

.benefit-icon .material-symbols-rounded {
    font-size: 32px;
    color: white;
}

.benefit-card h3 {
    font-size: 22px;
    font-weight: 700;
    margin-bottom: 12px;
    color: var(--text-dark);
}

.benefit-card p {
    font-size: 16px;
    color: var(--text-gray);
    line-height: 1.6;
}

/* Testimonials Section */
.testimonials {
    padding: 100px 0;
    background: var(--bg-gray);
}

.testimonials-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 32px;
}

.testimonial {
    background: white;
    padding: 40px;
    border-radius: 16px;
    display: flex;
    flex-direction: column;
    box-shadow: var(--shadow-sm);
    transition: all 0.3s ease;
}

.testimonial:hover {
    transform: translateY(-8px);
    box-shadow: var(--shadow-lg);
}

.testimonial-avatar {
    margin-bottom: 24px;
}

.avatar-placeholder {
    width: 64px;
    height: 64px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-size: 17px;
    font-weight: 700;
    letter-spacing: 0.5px;
    font-family: inherit;
}

.avatar-blue  { background: linear-gradient(135deg, #3b6fd4, #1e40af); }
.avatar-teal  { background: linear-gradient(135deg, #0d9488, #0f766e); }
.avatar-amber { background: linear-gradient(135deg, #f59e0b, #d97706); }

.testimonial-text {
    font-size: 16px;
    color: var(--text-gray);
    line-height: 1.8;
    flex: 1;
    margin-bottom: 24px;
    font-style: italic;
}

.testimonial-author {
    margin-top: auto;
    padding-top: 20px;
}

.testimonial-author strong {
    font-size: 16px;
    color: var(--text-dark);
}

.testimonial-author strong::after {
    content: " — ";
    color: var(--text-light);
    font-weight: normal;
}

.testimonial-author span {
    font-size: 16px;
    color: var(--text-light);
}

/* FAQ Section */
.faq {
    padding: 100px 0;
    background: var(--bg-white);
}

.faq-list {
    max-width: 800px;
    margin: 0 auto;
    display: flex;
    flex-direction: column;
    gap: 16px;
}

.faq-item {
    background: white;
    border-radius: 16px;
    box-shadow: var(--shadow-sm);
    overflow: hidden;
    transition: box-shadow 0.3s ease;
}

.faq-item:hover {
    box-shadow: var(--shadow-md);
}

.faq-question {
    width: 100%;
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 24px 28px;
    background: none;
    border: none;
    cursor: pointer;
    font-family: 'Heebo', sans-serif;
    font-size: 18px;
    font-weight: 700;
    color: var(--text-dark);
    text-align: right;
    direction: rtl;
    gap: 16px;
    transition: color 0.2s ease;
}

.faq-question:hover {
    color: var(--purple-start);
}

.faq-question[aria-expanded="true"] {
    color: var(--purple-start);
}

.faq-icon {
    flex-shrink: 0;
    font-size: 24px;
    color: var(--purple-start);
    transition: transform 0.3s ease;
}

.faq-question[aria-expanded="true"] .faq-icon {
    transform: rotate(180deg);
}

.faq-answer {
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.35s ease, padding 0.35s ease;
}

.faq-answer.open {
    max-height: 300px;
}

.faq-answer p {
    padding: 0 28px 24px;
    font-size: 16px;
    color: var(--text-gray);
    line-height: 1.8;
}

/* CTA Section */
.cta-section {
    position: relative;
    background: linear-gradient(135deg, var(--purple-start) 0%, var(--purple-end) 100%);
    padding: 180px 0 120px;
    text-align: center;
    color: white;
    overflow: hidden;
}

.cta-content {
    position: relative;
    z-index: 1;
}

.cta-content h2 {
    font-size: 48px;
    font-weight: 800;
    margin-bottom: 16px;
}

.cta-content p {
    font-size: 20px;
    margin-bottom: 40px;
    opacity: 0.95;
}

/* Footer */
.footer {
    background: #1a202c;
    color: white;
    padding: 60px 0 32px;
}

.footer-grid {
    display: grid;
    grid-template-columns: 2fr 1fr;
    gap: 60px;
    margin-bottom: 40px;
}

.footer-logo {
    height: 40px;
    width: auto;
    margin-bottom: 16px;
}

.footer-brand p {
    color: rgba(255, 255, 255, 0.7);
    font-size: 16px;
}

.footer-links h4 {
    font-size: 18px;
    font-weight: 600;
    margin-bottom: 12px;
}

.footer-links p {
    color: rgba(255, 255, 255, 0.7);
    font-size: 16px;
}

.footer-bottom {
    text-align: center;
    padding-top: 32px;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
}

.footer-bottom p {
    color: rgba(255, 255, 255, 0.6);
    font-size: 14px;
}

/* Video Demo Section */
.video-demo {
    padding: 80px 0;
    background: linear-gradient(to bottom, #f8f9fa, #ffffff);
}

.video-demo .section-subtitle {
    text-align: center;
    color: var(--text-gray);
    font-size: 18px;
    margin-top: -20px;
    margin-bottom: 48px;
}

.main-video {
    max-width: 900px;
    margin: 0 auto 32px;
}

.video-wrapper {
    position: relative;
    padding-bottom: 56.25%;
    /* 16:9 aspect ratio */
    height: 0;
    overflow: hidden;
    border-radius: 16px;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.15);
    background: #000;
}

.video-wrapper video {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
}


/* Responsive Design */

/* ── Tablet (≤1024px) ── */
@media (max-width: 1024px) {
    /* Hide tagline early — it overflows before 768px */
    .logo-tagline {
        display: none;
    }

    .hero-grid {
        grid-template-columns: 1fr;
        gap: 36px;
    }

    .mockup {
        width: 100%;
    }

    .hero-title {
        font-size: 40px;
    }

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

/* ── Mobile (≤768px) ── */
@media (max-width: 768px) {
    /* Header */
    .btn-nav {
        padding: 9px 18px;
        font-size: 14px;
        white-space: nowrap;
    }

    /* Hero — reduce wave height so button stays inside purple */
    .hero .wave-bottom {
        height: 64px;
    }

    .hero {
        padding: 48px 0 88px;
    }

    .hero-image {
        order: -1;
    }

    .mockup {
        border-radius: 12px;
    }

    .lightbox-trigger {
        cursor: default;
        pointer-events: none;
    }

    .lightbox-trigger:hover {
        transform: none;
        box-shadow: 0 20px 60px rgba(0, 0, 0, 0.3);
    }

    .hero-title {
        font-size: 28px;
        margin-bottom: 16px;
    }

    .hero-value-prop {
        font-size: 18px;
        display: block;
        padding: 8px 16px;
        margin-bottom: 14px;
    }

    .hero-subtitle {
        font-size: 16px;
        margin-bottom: 20px;
    }

    .hero-features {
        grid-template-columns: 1fr 1fr;
        gap: 10px 16px;
        margin-bottom: 24px;
    }

    .hero-feature {
        font-size: 14px;
    }

    .hero-cta {
        flex-direction: column;
    }

    .btn {
        text-align: center;
        width: 100%;
    }

    /* Sections */
    .section-title {
        font-size: 26px;
        margin-bottom: 32px;
    }

    .video-demo {
        padding: 52px 0;
    }

    .video-demo .section-subtitle {
        font-size: 15px;
        margin-top: -12px;
        margin-bottom: 28px;
    }

    .benefits {
        padding: 52px 0;
    }

    .benefit-card {
        padding: 24px 20px;
    }

    .benefit-card h3 {
        font-size: 18px;
    }

    .testimonials {
        padding: 52px 0;
    }

    .testimonial {
        padding: 24px 20px;
    }

    .benefits-grid,
    .testimonials-grid {
        grid-template-columns: 1fr;
        gap: 14px;
    }

    .faq {
        padding: 52px 0;
    }

    .faq-question {
        font-size: 16px;
        padding: 18px 20px;
    }

    .faq-answer p {
        padding: 0 20px 18px;
    }

    /* CTA — reduce wave height so button fits inside purple */
    .cta-section .wave-top {
        height: 72px;
    }

    .cta-section {
        padding: 100px 0 72px;
    }

    .cta-content h2 {
        font-size: 26px;
    }

    .cta-content p {
        font-size: 16px;
        margin-bottom: 28px;
    }

    .btn-light {
        font-size: 16px;
        padding: 13px 28px;
    }

    /* Footer */
    .footer {
        padding: 44px 0 20px;
    }

    .footer-grid {
        grid-template-columns: 1fr;
        gap: 20px;
        margin-bottom: 24px;
    }

    .footer-bottom p {
        font-size: 12px;
        line-height: 2;
    }
}

/* ── Small phones (≤480px) ── */
@media (max-width: 480px) {
    .hero-title {
        font-size: 24px;
    }

    .hero-value-prop {
        font-size: 16px;
    }

    .hero-features {
        grid-template-columns: 1fr;
        gap: 8px;
    }

    .section-title {
        font-size: 22px;
        margin-bottom: 28px;
    }

    .cta-content h2 {
        font-size: 22px;
    }
}

/* ── Contact Modal ── */
.contact-overlay {
    display: none;
    position: fixed;
    inset: 0;
    background: rgba(0, 0, 0, 0.65);
    backdrop-filter: blur(6px);
    z-index: 9998;
    align-items: center;
    justify-content: center;
    padding: 24px;
    animation: lbFadeIn 0.22s ease;
}
.contact-overlay.open { display: flex; }

.contact-modal {
    background: #fff;
    border-radius: 20px;
    padding: 48px 40px 40px;
    width: 100%;
    max-width: 480px;
    position: relative;
    box-shadow: 0 32px 80px rgba(0, 0, 0, 0.25);
    animation: lbScaleIn 0.24s cubic-bezier(0.34, 1.56, 0.64, 1);
    direction: rtl;
}

.contact-close {
    position: absolute;
    top: 16px;
    left: 16px;
    background: #f1f5f9;
    border: none;
    color: #64748b;
    font-size: 22px;
    width: 36px;
    height: 36px;
    border-radius: 50%;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: background 0.15s;
}
.contact-close:hover { background: #e2e8f0; }

.contact-modal-header {
    text-align: center;
    margin-bottom: 32px;
}
.contact-modal-icon {
    width: 60px;
    height: 60px;
    background: linear-gradient(135deg, var(--purple-start), var(--purple-end));
    border-radius: 16px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 16px;
}
.contact-modal-icon .material-symbols-rounded {
    font-size: 32px;
    color: white;
}
.contact-modal-header h2 {
    font-size: 26px;
    font-weight: 800;
    color: var(--text-dark);
    margin-bottom: 6px;
}
.contact-modal-header p {
    font-size: 15px;
    color: var(--text-light);
}

.form-group {
    margin-bottom: 20px;
}
.form-group label {
    display: block;
    font-size: 15px;
    font-weight: 600;
    color: var(--text-dark);
    margin-bottom: 8px;
}
.req { color: #e53e3e; }

.form-group input {
    width: 100%;
    padding: 14px 16px;
    border: 2px solid #e2e8f0;
    border-radius: 10px;
    font-family: 'Heebo', sans-serif;
    font-size: 16px;
    color: var(--text-dark);
    direction: rtl;
    transition: border-color 0.2s, box-shadow 0.2s;
    outline: none;
}
.form-group input:focus {
    border-color: var(--purple-start);
    box-shadow: 0 0 0 3px rgba(102, 126, 234, 0.15);
}
.field-error {
    display: none;
    font-size: 13px;
    color: #e53e3e;
    margin-top: 5px;
}
.form-group.has-error .field-error { display: block; }
.form-group.has-error input { border-color: #e53e3e; }

.contact-submit {
    width: 100%;
    padding: 16px;
    background: linear-gradient(135deg, var(--purple-start), var(--purple-end));
    color: white;
    border: none;
    border-radius: 12px;
    font-family: 'Heebo', sans-serif;
    font-size: 18px;
    font-weight: 700;
    cursor: pointer;
    margin-top: 8px;
    transition: transform 0.2s, box-shadow 0.2s;
}
.contact-submit:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 24px rgba(102, 126, 234, 0.35);
}
.contact-submit:disabled { opacity: 0.7; cursor: not-allowed; transform: none; }

.contact-success {
    text-align: center;
    padding: 16px 0;
}
.success-icon {
    width: 72px;
    height: 72px;
    background: linear-gradient(135deg, #43e97b, #38f9d7);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 24px;
}
.success-icon .material-symbols-rounded { font-size: 40px; color: white; }
.contact-success h2 { font-size: 26px; font-weight: 800; margin-bottom: 10px; color: var(--text-dark); }
.contact-success p { font-size: 16px; color: var(--text-gray); margin-bottom: 28px; }
.btn-close-success {
    background: linear-gradient(135deg, var(--purple-start), var(--purple-end));
    color: white;
    border: none;
    border-radius: 12px;
    padding: 14px 40px;
    font-family: 'Heebo', sans-serif;
    font-size: 16px;
    font-weight: 600;
    cursor: pointer;
}

@media (max-width: 520px) {
    .contact-overlay { padding: 12px; }
    .contact-modal { padding: 40px 20px 28px; }
    .contact-modal-header h2 { font-size: 22px; }
    .contact-modal-header { margin-bottom: 24px; }
    .form-group { margin-bottom: 16px; }
}

/* ── Lightbox ── */
.lightbox-trigger {
    cursor: zoom-in;
    transition: transform 0.2s ease, box-shadow 0.2s ease;
}
.lightbox-trigger:hover {
    transform: scale(1.02);
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.25);
}

.lightbox-overlay {
    display: none;
    position: fixed;
    inset: 0;
    background: rgba(0, 0, 0, 0.82);
    backdrop-filter: blur(6px);
    z-index: 9999;
    align-items: center;
    justify-content: center;
    padding: 24px;
    animation: lbFadeIn 0.22s ease;
}
.lightbox-overlay.open { display: flex; }

@keyframes lbFadeIn {
    from { opacity: 0; }
    to   { opacity: 1; }
}

.lightbox-frame {
    max-width: 90vw;
    max-height: 90vh;
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 32px 80px rgba(0, 0, 0, 0.6);
    animation: lbScaleIn 0.22s cubic-bezier(0.34, 1.56, 0.64, 1);
}

@keyframes lbScaleIn {
    from { transform: scale(0.88); opacity: 0; }
    to   { transform: scale(1);    opacity: 1; }
}

.lightbox-img {
    display: block;
    max-width: 90vw;
    max-height: 90vh;
    width: auto;
    height: auto;
    object-fit: contain;
}

.lightbox-close {
    position: fixed;
    top: 20px;
    right: 28px;
    background: rgba(255, 255, 255, 0.12);
    border: 1.5px solid rgba(255, 255, 255, 0.25);
    color: #fff;
    font-size: 28px;
    line-height: 1;
    width: 44px;
    height: 44px;
    border-radius: 50%;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: background 0.15s ease;
    z-index: 10000;
}
.lightbox-close:hover { background: rgba(255, 255, 255, 0.25); }