/* لندینگ پیج جدول — RTL، بدون وابستگی به build */

/* فونت وزیرمتن: اگر فایلش در public/landing/fonts باشد، layout.blade.php خودکار @font-face را اضافه می‌کند. */

:root {
    --bg-outer: #e4e8ef;
    --bg-sheet: #f4f9fc;
    --card: #fdfdff;
    --navy: #283754;
    --navy-btn: #2b3f58;
    --text: #3d4a63;
    --accent: #d7704d;
    --line: #dde4ec;
    --blue: #3a9bd8;
    --font: 'Vazirmatn', Tahoma, 'Segoe UI', 'Noto Sans Arabic', system-ui, -apple-system, sans-serif;
}

*,
*::before,
*::after {
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
    -webkit-text-size-adjust: 100%;
}

body {
    margin: 0;
    position: relative;
    min-height: 100vh;
    overflow-x: hidden;
    font-family: var(--font);
    font-size: 16px;
    line-height: 1.8;
    color: var(--text);
    background-color: var(--bg-outer);
    background-image:
        linear-gradient(var(--bg-sheet) 1px, transparent 1px),
        linear-gradient(90deg, var(--bg-sheet) 1px, transparent 1px);
    background-size: 56px 56px;
    background-position: center top;
}

img {
    max-width: 100%;
    height: auto;
    display: block;
}

a {
    color: inherit;
    text-decoration: none;
}

h1,
h2,
h3,
p,
figure,
blockquote {
    margin: 0;
}

:focus-visible {
    outline: 3px solid var(--blue);
    outline-offset: 3px;
    border-radius: 6px;
}

.container {
    width: min(100% - 48px, 1080px);
    margin-inline: auto;
}

.container.narrow {
    width: min(100% - 48px, 680px);
}

/* ---------- تزئین پس‌زمینه (خانه‌های جدول) ---------- */
.decor {
    position: absolute;
    inset: 0;
    pointer-events: none;
    z-index: 0;
}

.cell {
    position: absolute;
    display: grid;
    place-items: center;
    width: 56px;
    height: 56px;
    background: #dde2ea;
    border: 1px solid #d0d6e0;
    color: #bcc3d1;
    font-size: 26px;
    font-weight: 700;
    line-height: 1;
}

.c1 { top: 0; right: calc(50% - 40px); }
.c2 { top: 0; right: calc(50% - 96px); }
.c3 { top: 0; right: calc(50% - 152px); }
.c4 { top: 0; left: calc(50% - 40px); }
.c5 { top: 0; left: calc(50% - 96px); }
.c6 { top: 160px; left: 0; }
.c7 { top: 330px; left: 0; }
.c8 { top: 520px; right: 0; }
.c9 { bottom: 0; right: calc(50% - 40px); }
.c10 { bottom: 0; right: calc(50% - 96px); }
.c11 { bottom: 0; left: calc(50% - 40px); }
.c12 { top: 760px; left: 0; }

/* ---------- ورقه‌ی اصلی ---------- */
.sheet {
    position: relative;
    z-index: 1;
    width: min(100% - 48px, 1240px);
    margin: 56px auto;
    background: var(--bg-sheet);
    border-radius: 40px;
    box-shadow: 0 18px 60px rgba(40, 55, 84, 0.12);
    overflow: hidden;
}

/* ---------- هدر ---------- */
.site-header {
    padding-top: 28px;
}

.header-inner {
    position: relative;
    display: flex;
    align-items: center;
    gap: 40px;
    padding-bottom: 14px;
    border-bottom: 1px solid var(--line);
}

.brand {
    font-size: 1.7rem;
    font-weight: 800;
    color: var(--navy);
    line-height: 1.4;
}

.site-nav {
    display: flex;
    align-items: center;
    gap: 34px;
}

.site-nav a {
    position: relative;
    padding: 4px 0;
    font-size: 1.05rem;
    color: var(--navy);
    transition: color 0.15s;
}

.site-nav a:hover,
.site-nav a.active {
    color: var(--accent);
}

.site-nav a.active::after {
    content: '';
    position: absolute;
    inset-inline: 0;
    bottom: -15px;
    height: 2px;
    background: var(--accent);
    border-radius: 2px;
}

.nav-toggle {
    display: none;
    margin-inline-start: auto;
    width: 44px;
    height: 44px;
    padding: 0;
    border: 0;
    border-radius: 12px;
    background: transparent;
    cursor: pointer;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 5px;
}

.nav-toggle span {
    display: block;
    width: 22px;
    height: 2.5px;
    border-radius: 2px;
    background: var(--navy);
    transition: transform 0.2s, opacity 0.2s;
}

.nav-toggle[aria-expanded='true'] span:nth-child(1) { transform: translateY(7.5px) rotate(45deg); }
.nav-toggle[aria-expanded='true'] span:nth-child(2) { opacity: 0; }
.nav-toggle[aria-expanded='true'] span:nth-child(3) { transform: translateY(-7.5px) rotate(-45deg); }

/* ---------- هیرو ---------- */
.hero {
    padding: 56px 0 24px;
}

.hero-inner {
    display: grid;
    grid-template-columns: 1fr 1fr;
    align-items: center;
    gap: 24px;
}

.hero h1 {
    font-size: clamp(2.3rem, 4.6vw, 3.6rem);
    line-height: 1.4;
    font-weight: 800;
    color: var(--navy);
}

.accent {
    color: var(--accent);
}

.lead {
    margin-top: 18px;
    font-size: 1.1rem;
    color: var(--navy);
}

.store-buttons {
    display: flex;
    flex-wrap: wrap;
    gap: 14px;
    margin-top: 26px;
}

.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 12px;
    min-height: 54px;
    padding: 10px 24px;
    border-radius: 16px;
    font-family: inherit;
    font-size: 1.15rem;
    font-weight: 700;
    line-height: 1.4;
    cursor: pointer;
    transition: transform 0.15s, box-shadow 0.15s, background 0.15s;
}

.btn-store {
    background: var(--navy-btn);
    color: #fff;
    box-shadow: 0 6px 16px rgba(43, 63, 88, 0.25);
}

.btn-store .store-icon {
    width: 30px;
    height: 30px;
    object-fit: contain;
    border-radius: 7px;
    flex: none;
}

.btn-store:hover {
    transform: translateY(-2px);
    background: #223449;
}

.hero-art img {
    width: 100%;
    max-width: 560px;
    margin-inline: auto;
}

/* ---------- عنوان بخش‌ها ---------- */
.section-title {
    text-align: center;
    font-size: clamp(1.5rem, 2.6vw, 1.9rem);
    font-weight: 800;
    color: var(--navy);
    line-height: 1.5;
}

/* ---------- ویژگی‌ها ---------- */
.features {
    padding: 44px 0 56px;
}

.feature-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 28px;
    margin-top: 110px;
}

.feature-card {
    padding: 0 26px 34px;
    background: var(--card);
    border-radius: 30px;
    box-shadow: 0 10px 30px rgba(40, 55, 84, 0.08);
    text-align: center;
}

.feature-icon {
    width: 170px;
    height: 170px;
    margin: -85px auto 18px;
    filter: drop-shadow(0 8px 12px rgba(40, 55, 84, 0.22));
}

.feature-card h3 {
    font-size: 1.4rem;
    font-weight: 800;
    color: var(--navy);
    line-height: 1.6;
}

.feature-card p {
    margin-top: 8px;
    font-size: 1rem;
    line-height: 2;
}

/* ---------- تصاویر برنامه (اسلایدر؛ گوشی وسط بزرگ‌تر) ---------- */
.screens {
    padding: 8px 0 24px;
}

.screen-slider {
    position: relative;
    margin-top: 4px;
}

.screen-track {
    display: flex;
    align-items: center;
    gap: 36px;
    padding: 84px calc(50% - 115px);
    overflow-x: auto;
    overscroll-behavior-x: contain;
    scrollbar-width: none;
    -webkit-overflow-scrolling: touch;
    cursor: grab;
}

.screen-track::-webkit-scrollbar {
    display: none;
}

.screen-track.snap {
    scroll-snap-type: x mandatory;
}

.screen-track.dragging {
    cursor: grabbing;
    scroll-snap-type: none;
    user-select: none;
}

.screen-item {
    flex: none;
    width: 230px;
    scroll-snap-align: center;
    transform: scale(0.86);
    opacity: 0.78;
    transition: transform 0.35s ease, opacity 0.35s ease;
}

.screen-item.is-active {
    transform: scale(1.2);
    opacity: 1;
    z-index: 1;
}

.screen-item img {
    display: block;
    width: 100%;
    height: auto;
    object-fit: contain;
    filter: drop-shadow(0 14px 20px rgba(40, 55, 84, 0.24));
    user-select: none;
    -webkit-user-drag: none;
}

.screen-arrow {
    position: absolute;
    top: 50%;
    z-index: 2;
    display: grid;
    place-items: center;
    width: 46px;
    height: 46px;
    margin-top: -23px;
    padding: 0;
    border: 0;
    border-radius: 50%;
    background: var(--card);
    color: var(--navy);
    box-shadow: 0 8px 20px rgba(40, 55, 84, 0.18);
    cursor: pointer;
    transition: transform 0.15s, color 0.15s;
}

.screen-arrow:hover {
    color: var(--accent);
    transform: scale(1.08);
}

.screen-arrow-right {
    right: max(10px, calc(50% - 380px));
}

.screen-arrow-left {
    left: max(10px, calc(50% - 380px));
}

/* ---------- نظرات ---------- */
.reviews {
    padding: 8px 0 32px;
}

.review-slider {
    margin-top: 26px;
}

.review-track {
    display: flex;
    overflow-x: auto;
    scroll-snap-type: x mandatory;
    scrollbar-width: none;
    -webkit-overflow-scrolling: touch;
}

.review-track::-webkit-scrollbar {
    display: none;
}

.review-page {
    flex: 0 0 100%;
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 18px;
    padding: 4px;
    scroll-snap-align: start;
}

.review-card {
    display: flex;
    align-items: center;
    gap: 16px;
    padding: 18px 20px;
    background: var(--card);
    border-radius: 20px;
    box-shadow: 0 8px 22px rgba(40, 55, 84, 0.07);
}

.review-card img {
    flex: none;
    width: 64px;
    height: 64px;
    border-radius: 50%;
}

.review-card figcaption {
    font-weight: 800;
    color: var(--navy);
    line-height: 1.5;
}

.review-card blockquote {
    margin-top: 2px;
    font-size: 0.95rem;
    line-height: 1.9;
}

.dots {
    display: flex;
    justify-content: center;
    gap: 10px;
    margin-top: 18px;
}

.dots button {
    width: 10px;
    height: 10px;
    padding: 0;
    border: 0;
    border-radius: 50%;
    background: #c9d1dc;
    cursor: pointer;
    transition: background 0.2s, transform 0.2s;
}

.dots button.active {
    background: var(--blue);
    transform: scale(1.25);
}

/* ---------- دعوت به دانلود ---------- */
.cta {
    padding: 28px 0 44px;
}

.cta-button {
    display: block;
    max-width: 860px;
    margin-inline: auto;
    padding: 20px 32px;
    border-radius: 999px;
    background: var(--navy-btn);
    color: #fff;
    text-align: center;
    font-size: clamp(1.1rem, 2.2vw, 1.5rem);
    font-weight: 800;
    line-height: 1.6;
    box-shadow: 0 10px 26px rgba(43, 63, 88, 0.28);
    transition: transform 0.15s, background 0.15s;
}

.cta-button:hover {
    transform: translateY(-2px);
    background: #223449;
}

/* ---------- فوتر ---------- */
.site-footer {
    padding-bottom: 28px;
}

.footer-inner {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
    padding-top: 18px;
    border-top: 1px solid var(--line);
}

.copyright {
    font-size: 0.95rem;
    color: var(--navy);
}

.social {
    display: flex;
    gap: 18px;
}

.social a {
    display: grid;
    place-items: center;
    width: 40px;
    height: 40px;
    color: var(--navy);
    border-radius: 12px;
    transition: color 0.15s, background 0.15s;
}

.social a:hover {
    color: var(--accent);
    background: rgba(40, 55, 84, 0.06);
}

/* ---------- تماس با ما ---------- */
.contact {
    padding: 64px 0 72px;
}

.contact .lead {
    margin-top: 14px;
    text-align: center;
    color: var(--text);
}

.contact-list {
    display: grid;
    gap: 14px;
    margin: 32px 0;
    padding: 0;
    list-style: none;
}

.contact-list li {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
    padding: 18px 24px;
    background: var(--card);
    border-radius: 18px;
    box-shadow: 0 8px 22px rgba(40, 55, 84, 0.07);
}

.contact-list span {
    font-weight: 800;
    color: var(--navy);
}

.contact-list a {
    color: var(--blue);
    font-weight: 700;
}

.contact .back {
    display: flex;
    width: fit-content;
    margin: 28px auto 0;
}

/* ---------- فرم تماس ---------- */
.contact-section {
    padding: 8px 0 24px;
}

.contact-section .contact-form {
    margin-top: 0;
}

.contact-form {
    display: grid;
    gap: 18px;
    margin-top: 32px;
    padding: 28px;
    background: var(--card);
    border-radius: 24px;
    box-shadow: 0 10px 30px rgba(40, 55, 84, 0.08);
}

.contact-form h2,
.other-ways {
    font-size: 1.3rem;
    font-weight: 800;
    color: var(--navy);
    line-height: 1.6;
}

.other-ways {
    margin-top: 36px;
    text-align: center;
}

.field {
    display: grid;
    gap: 6px;
}

.field label {
    font-weight: 700;
    color: var(--navy);
}

.field input,
.field select,
.field textarea {
    width: 100%;
    padding: 12px 14px;
    border: 1.5px solid var(--line);
    border-radius: 14px;
    background: #fff;
    color: var(--navy);
    font-family: inherit;
    font-size: 1rem;
    line-height: 1.7;
    transition: border-color 0.15s, box-shadow 0.15s;
}

.field textarea {
    resize: vertical;
    min-height: 140px;
}

.field input:focus,
.field select:focus,
.field textarea:focus {
    outline: none;
    border-color: var(--blue);
    box-shadow: 0 0 0 4px rgba(58, 155, 216, 0.18);
}

.field [aria-invalid='true'] {
    border-color: #d9534f;
}

.field-error {
    font-size: 0.9rem;
    color: #c0392b;
}

.form-alerts {
    display: grid;
    gap: 12px;
}

/* وقتی هیچ پیامی نیست، فاصله‌ی گرید را هم نگیرد */
.form-alerts:not(:has(*)) {
    display: none;
}

.contact-form[aria-busy='true'] .submit {
    opacity: 0.7;
    cursor: progress;
}

.form-alert {
    padding: 12px 16px;
    border-radius: 14px;
    font-weight: 700;
    line-height: 1.8;
}

.form-success {
    background: #e6f6ec;
    color: #1f7a45;
}

.form-error {
    background: #fdecea;
    color: #b03a2e;
}

.contact-form .submit {
    width: 100%;
    border: 0;
}

/* honeypot: خارج از صفحه (نه display:none، تا ربات‌های ساده پرش کنند) */
.hp {
    position: absolute;
    inset-inline-start: -9999px;
    width: 1px;
    height: 1px;
    overflow: hidden;
}

/* ---------- تبلت ---------- */
@media (max-width: 980px) {
    .feature-grid {
        grid-template-columns: 1fr;
        gap: 120px;
        max-width: 460px;
        margin-inline: auto;
    }

    .feature-grid {
        margin-top: 120px;
    }

    .decor .cell:nth-child(n+6) {
        display: none;
    }
}

/* ---------- موبایل ---------- */
@media (max-width: 760px) {
    .container,
    .container.narrow {
        width: min(100% - 32px, 1080px);
    }

    .sheet {
        width: 100%;
        margin: 0;
        border-radius: 0;
        box-shadow: none;
    }

    .decor {
        display: none;
    }

    .site-header {
        padding-top: 14px;
    }

    .header-inner {
        padding-bottom: 12px;
    }

    .nav-toggle {
        display: flex;
    }

    .site-nav {
        position: absolute;
        top: 100%;
        inset-inline: 0;
        z-index: 5;
        display: none;
        flex-direction: column;
        align-items: stretch;
        gap: 0;
        padding: 8px;
        background: var(--card);
        border-radius: 18px;
        box-shadow: 0 14px 34px rgba(40, 55, 84, 0.18);
    }

    .site-nav.open {
        display: flex;
    }

    .site-nav a {
        padding: 12px 16px;
        border-radius: 12px;
    }

    .site-nav a.active::after {
        display: none;
    }

    .site-nav a.active {
        background: rgba(215, 112, 77, 0.1);
    }

    .hero {
        padding: 32px 0 8px;
    }

    .hero-inner {
        grid-template-columns: 1fr;
        text-align: center;
    }

    .hero-art {
        order: -1;
    }

    .hero-art img {
        max-width: 340px;
    }

    .store-buttons {
        justify-content: center;
    }

    .btn {
        font-size: 1.05rem;
        padding-inline: 18px;
    }

    .features {
        padding-top: 28px;
    }

    .review-page {
        grid-template-columns: 1fr;
    }

    .screen-track {
        gap: 28px;
        padding: 64px calc(50% - 90px);
    }

    .screen-item {
        width: 180px;
    }

    .screen-item.is-active {
        transform: scale(1.18);
    }

    .screen-arrow {
        width: 40px;
        height: 40px;
        margin-top: -20px;
    }

    .screen-arrow-right {
        right: 6px;
    }

    .screen-arrow-left {
        left: 6px;
    }

    .cta-button {
        padding: 18px 22px;
        border-radius: 28px;
    }

    .footer-inner {
        flex-direction: column-reverse;
        gap: 6px;
    }

    .contact {
        padding: 40px 0 56px;
    }

    .contact-form {
        padding: 20px 16px;
    }
}

@media (prefers-reduced-motion: reduce) {
    html {
        scroll-behavior: auto;
    }

    *,
    *::before,
    *::after {
        transition: none !important;
    }
}
