/* ============================================
   چکچی — Minimal SaaS Landing Page
   ============================================ */

:root {
    --color-primary: #0078ff;
    --color-primary-dark: #0056b3;
    --color-primary-light: #64b5f6;
    --color-accent: #0095ff;
    --color-navy: #003366;
    --color-bg: #ffffff;
    --color-bg-alt: #e3f2fd;
    --color-bg-muted: #bbdefb;
    --color-text: #003366;
    --color-text-muted: #4a6fa5;
    --color-text-light: #7ba3cc;
    --color-border: #c5dff5;
    --color-success: #10b981;
    --color-warning: #f59e0b;
    --color-danger: #ef4444;

    --font-family: 'Vazirmatn', system-ui, -apple-system, sans-serif;
    --radius-sm: 8px;
    --radius-md: 12px;
    --radius-lg: 18px;
    --radius-xl: 24px;
    --shadow-sm: 0 1px 2px rgba(0, 51, 102, 0.06);
    --shadow-md: 0 4px 16px rgba(0, 51, 102, 0.1);
    --shadow-lg: 0 12px 40px rgba(0, 51, 102, 0.14);
    --shadow-glow: 0 0 80px rgba(0, 120, 255, 0.18);

    --header-height: 72px;
    --container-max: 1140px;
    --transition: 0.2s ease;
}

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

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

body {
    font-family: var(--font-family);
    font-size: 16px;
    line-height: 1.7;
    color: var(--color-text);
    background: var(--color-bg);
    -webkit-font-smoothing: antialiased;
    overflow-x: hidden;
}

img, svg {
    display: block;
    max-width: 100%;
}

a {
    color: var(--color-primary);
    text-decoration: none;
    transition: color var(--transition);
}

a:hover {
    color: var(--color-primary-dark);
}

ul, ol {
    list-style: none;
}

.container {
    width: 100%;
    max-width: var(--container-max);
    margin: 0 auto;
    padding: 0 24px;
}

.sr-only {
    position: absolute;
    width: 1px;
    height: 1px;
    padding: 0;
    margin: -1px;
    overflow: hidden;
    clip: rect(0, 0, 0, 0);
    white-space: nowrap;
    border: 0;
}

/* ---- Buttons ---- */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    padding: 10px 20px;
    font-family: inherit;
    font-size: 14px;
    font-weight: 600;
    line-height: 1.4;
    border-radius: var(--radius-md);
    border: 1.5px solid transparent;
    cursor: pointer;
    transition: all var(--transition);
    white-space: nowrap;
}

.btn-primary {
    background: linear-gradient(180deg, var(--color-accent) 0%, var(--color-primary) 100%);
    color: #fff;
    border-color: var(--color-primary);
}

.btn-primary:hover {
    background: linear-gradient(180deg, var(--color-primary) 0%, var(--color-primary-dark) 100%);
    border-color: var(--color-primary-dark);
    color: #fff;
    transform: translateY(-1px);
    box-shadow: var(--shadow-md);
}

.btn-outline {
    background: transparent;
    color: var(--color-text);
    border-color: var(--color-border);
}

.btn-outline:hover {
    border-color: var(--color-primary);
    color: var(--color-primary);
    background: rgba(0, 120, 255, 0.06);
}

.btn-ghost {
    background: transparent;
    color: var(--color-text-muted);
    border-color: transparent;
    padding: 10px 16px;
}

.btn-ghost:hover {
    color: var(--color-text);
    background: var(--color-bg-muted);
}

.btn-lg {
    padding: 14px 28px;
    font-size: 15px;
}

.btn-block {
    width: 100%;
}

/* ---- Header ---- */
.site-header {
    position: fixed;
    top: 0;
    right: 0;
    left: 0;
    z-index: 100;
    height: var(--header-height);
    background: rgba(255, 255, 255, 0.85);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    border-bottom: 1px solid transparent;
    transition: border-color var(--transition), box-shadow var(--transition);
}

.site-header.scrolled {
    border-bottom-color: var(--color-border);
    box-shadow: var(--shadow-sm);
}

.header-inner {
    display: flex;
    align-items: center;
    justify-content: space-between;
    height: 100%;
    gap: 24px;
}

.logo {
    display: flex;
    align-items: center;
    gap: 10px;
    color: var(--color-navy);
    font-weight: 800;
    font-size: 20px;
    flex-shrink: 0;
}

.logo:hover {
    color: var(--color-text);
}

.logo-icon {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 40px;
    height: 40px;
 
    border-radius: var(--radius-md);
    overflow: hidden;
    flex-shrink: 0;
}

.logo-icon--sm {
    width: 36px;
    height: 36px;
}

.logo-img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.main-nav ul {
    display: flex;
    gap: 32px;
}

.main-nav a {
    color: var(--color-text-muted);
    font-size: 14px;
    font-weight: 500;
}

.main-nav a:hover {
    color: var(--color-text);
}

.header-actions {
    display: flex;
    align-items: center;
    gap: 8px;
    flex-shrink: 0;
}

.nav-toggle {
    display: none;
    flex-direction: column;
    gap: 5px;
    background: none;
    border: none;
    cursor: pointer;
    padding: 8px;
}

.nav-toggle span {
    display: block;
    width: 22px;
    height: 2px;
    background: var(--color-text);
    border-radius: 2px;
    transition: var(--transition);
}

/* ---- Hero ---- */
.hero {
    padding: calc(var(--header-height) + 64px) 0 80px;
    background: radial-gradient(ellipse at 50% 0%, var(--color-bg-alt) 0%, var(--color-bg) 70%);
    position: relative;
    overflow: hidden;
}

.hero::before {
    content: '';
    position: absolute;
    top: -200px;
    left: -200px;
    width: 600px;
    height: 600px;
    background: radial-gradient(circle, rgba(0, 120, 255, 0.08) 0%, transparent 70%);
    pointer-events: none;
}

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

.badge {
    display: inline-block;
    padding: 6px 14px;
    background: rgba(0, 120, 255, 0.1);
    color: var(--color-primary);
    font-size: 13px;
    font-weight: 600;
    border-radius: 100px;
    margin-bottom: 20px;
}

.hero h1 {
    font-size: clamp(2rem, 4.5vw, 3.25rem);
    font-weight: 800;
    line-height: 1.25;
    letter-spacing: -0.02em;
    margin-bottom: 20px;
}

.text-gradient {
    background: linear-gradient(135deg, var(--color-accent) 0%, var(--color-primary) 50%, var(--color-primary-dark) 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.hero-lead {
    font-size: 17px;
    color: var(--color-text-muted);
    max-width: 480px;
    margin-bottom: 32px;
    line-height: 1.8;
}

.hero-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
    margin-bottom: 32px;
}

.hero-trust {
    display: flex;
    flex-wrap: wrap;
    gap: 20px;
}

.hero-trust li {
    display: flex;
    align-items: center;
    gap: 6px;
    font-size: 13px;
    color: var(--color-text-muted);
    font-weight: 500;
}

.hero-trust svg {
    color: var(--color-success);
    flex-shrink: 0;
}

/* Dashboard mockup */
.hero-visual {
    position: relative;
}

.dashboard-mockup {
    background: var(--color-bg);
    border: 1px solid var(--color-border);
    border-radius: var(--radius-xl);
    box-shadow: var(--shadow-lg);
    overflow: hidden;
    position: relative;
    z-index: 1;
}

.mockup-header {
    display: flex;
    align-items: center;
    gap: 6px;
    padding: 14px 18px;
    background: var(--color-bg-muted);
    border-bottom: 1px solid var(--color-border);
}

.mockup-header .dot {
    width: 10px;
    height: 10px;
    border-radius: 50%;
    background: var(--color-border);
}

.mockup-header .dot:nth-child(1) { background: #fca5a5; }
.mockup-header .dot:nth-child(2) { background: #fcd34d; }
.mockup-header .dot:nth-child(3) { background: #86efac; }

.mockup-title {
    margin-right: auto;
    font-size: 12px;
    color: var(--color-text-light);
    font-weight: 500;
}

.mockup-body {
    padding: 20px;
}

.stat-row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 12px;
    margin-bottom: 16px;
}

.stat-card {
    padding: 14px 16px;
    background: var(--color-bg-alt);
    border-radius: var(--radius-md);
    border: 1px solid var(--color-border);
}

.stat-card.accent {
    background: rgba(0, 120, 255, 0.08);
    border-color: rgba(0, 120, 255, 0.2);
}

.stat-label {
    display: block;
    font-size: 11px;
    color: var(--color-text-light);
    margin-bottom: 4px;
}

.stat-value {
    font-size: 22px;
    font-weight: 800;
    color: var(--color-text);
}

.stat-card.accent .stat-value {
    color: var(--color-primary);
}

.check-list {
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.check-item {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 12px 14px;
    background: var(--color-bg-alt);
    border-radius: var(--radius-md);
    border: 1px solid var(--color-border);
}

.check-status {
    width: 8px;
    height: 8px;
    border-radius: 50%;
    flex-shrink: 0;
}

.check-status.received { background: var(--color-success); }
.check-status.pending { background: var(--color-warning); }
.check-status.overdue { background: var(--color-danger); }

.check-info {
    flex: 1;
    min-width: 0;
}

.check-name {
    display: block;
    font-size: 12px;
    font-weight: 600;
    color: var(--color-text);
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.check-date {
    font-size: 11px;
    color: var(--color-text-light);
}

.check-amount {
    font-size: 12px;
    font-weight: 700;
    color: var(--color-text-muted);
    direction: ltr;
    flex-shrink: 0;
}

.hero-glow {
    position: absolute;
    inset: 20% -10% -10% 10%;
    background: var(--shadow-glow);
    border-radius: 50%;
    z-index: 0;
    pointer-events: none;
}

/* ---- Content Pages ---- */
.page-content {
    padding: calc(var(--header-height) + 48px) 0 80px;
}

.content-header {
    max-width: 720px;
    margin: 0 auto 40px;
    text-align: center;
}

.content-header h1 {
    font-size: clamp(1.75rem, 3vw, 2.25rem);
    font-weight: 800;
    color: var(--color-navy);
    margin-bottom: 12px;
    letter-spacing: -0.02em;
}

.content-meta {
    font-size: 14px;
    color: var(--color-text-light);
}

.content-body {
    max-width: 720px;
    margin: 0 auto;
    background: var(--color-bg);
    border: 1px solid var(--color-border);
    border-radius: var(--radius-lg);
    padding: 40px 36px;
}

.content-body h2 {
    font-size: 17px;
    font-weight: 700;
    color: var(--color-navy);
    margin: 32px 0 12px;
}

.content-body h2:first-of-type {
    margin-top: 0;
}

.content-body p {
    font-size: 15px;
    color: var(--color-text-muted);
    line-height: 1.9;
    margin-bottom: 12px;
}

.content-body ul {
    list-style: disc;
    padding-right: 20px;
    margin-bottom: 16px;
}

.content-body li {
    font-size: 15px;
    color: var(--color-text-muted);
    line-height: 1.9;
    margin-bottom: 8px;
}

.content-body a {
    font-weight: 600;
}

@media (max-width: 768px) {
    .content-body {
        padding: 28px 24px;
    }
}

/* ---- Social Proof ---- */
.social-proof {
    padding: 48px 0;
    border-top: 1px solid var(--color-border);
    border-bottom: 1px solid var(--color-border);
    background: var(--color-bg);
}

.proof-label {
    text-align: center;
    font-size: 14px;
    color: var(--color-text-light);
    margin-bottom: 32px;
}

.proof-stats {
    display: flex;
    justify-content: center;
    gap: 64px;
    flex-wrap: wrap;
}

.proof-stat {
    text-align: center;
}

.proof-stat strong {
    display: block;
    font-size: 28px;
    font-weight: 800;
    color: var(--color-text);
    margin-bottom: 4px;
}

.proof-stat span {
    font-size: 13px;
    color: var(--color-text-muted);
}

/* ---- Sections ---- */
.section {
    padding: 96px 0;
}

.section-header {
    text-align: center;
    max-width: 600px;
    margin: 0 auto 56px;
}

.section-tag {
    display: inline-block;
    font-size: 13px;
    font-weight: 600;
    color: var(--color-primary);
    margin-bottom: 12px;
}

.section-header h2 {
    font-size: clamp(1.75rem, 3vw, 2.25rem);
    font-weight: 800;
    letter-spacing: -0.02em;
    margin-bottom: 16px;
    line-height: 1.3;
}

.section-header p {
    color: var(--color-text-muted);
    font-size: 16px;
}

/* ---- Features ---- */
.features {
    background: var(--color-bg-alt);
}

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

.feature-card {
    background: var(--color-bg);
    border: 1px solid var(--color-border);
    border-radius: var(--radius-lg);
    padding: 28px;
    transition: box-shadow var(--transition), transform var(--transition);
}

.feature-card:hover {
    box-shadow: var(--shadow-md);
    transform: translateY(-2px);
}

.feature-icon {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 48px;
    height: 48px;
    background: rgba(0, 120, 255, 0.1);
    color: var(--color-primary);
    border-radius: var(--radius-md);
    margin-bottom: 20px;
}

.feature-card h3 {
    font-size: 17px;
    font-weight: 700;
    margin-bottom: 10px;
}

.feature-card p {
    font-size: 14px;
    color: var(--color-text-muted);
    line-height: 1.7;
}

/* ---- How it works ---- */
.steps {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 32px;
    counter-reset: none;
}

.step {
    text-align: center;
    padding: 32px 24px;
    position: relative;
}

.step-num {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 48px;
    height: 48px;
    background: linear-gradient(180deg, var(--color-accent) 0%, var(--color-primary) 100%);
    color: #fff;
    font-size: 18px;
    font-weight: 800;
    border-radius: 50%;
    margin-bottom: 20px;
}

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

.step p {
    font-size: 14px;
    color: var(--color-text-muted);
}

/* ---- Pricing ---- */
.pricing-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 24px;
    align-items: start;
}

.pricing-card {
    background: var(--color-bg);
    border: 1px solid var(--color-border);
    border-radius: var(--radius-lg);
    padding: 32px;
    position: relative;
    transition: box-shadow var(--transition);
}

.pricing-card:hover {
    box-shadow: var(--shadow-md);
}

.pricing-card.featured {
    border-color: var(--color-primary);
    box-shadow: var(--shadow-lg);
    transform: scale(1.02);
}

.pricing-badge {
    position: absolute;
    top: -12px;
    right: 50%;
    transform: translateX(50%);
    background: linear-gradient(180deg, var(--color-accent) 0%, var(--color-primary) 100%);
    color: #fff;
    font-size: 12px;
    font-weight: 600;
    padding: 4px 14px;
    border-radius: 100px;
}

.pricing-card h3 {
    font-size: 20px;
    font-weight: 800;
    margin-bottom: 6px;
}

.pricing-desc {
    font-size: 13px;
    color: var(--color-text-muted);
    margin-bottom: 24px;
}

.pricing-price {
    margin-bottom: 24px;
    padding-bottom: 24px;
    border-bottom: 1px solid var(--color-border);
}

.pricing-price .amount {
    display: block;
    font-size: 32px;
    font-weight: 800;
    color: var(--color-text);
    line-height: 1.2;
}

.pricing-price .period {
    font-size: 13px;
    color: var(--color-text-light);
}

.pricing-features {
    margin-bottom: 28px;
}

.pricing-features li {
    font-size: 14px;
    color: var(--color-text-muted);
    padding: 8px 0;
    padding-right: 24px;
    position: relative;
}

.pricing-features li::before {
    content: '';
    position: absolute;
    right: 0;
    top: 50%;
    transform: translateY(-50%);
    width: 16px;
    height: 16px;
    background: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%2310b981' stroke-width='2.5'%3E%3Cpath d='M20 6L9 17l-5-5'/%3E%3C/svg%3E") center/contain no-repeat;
}

/* ---- CTA ---- */
.cta {
    background: linear-gradient(135deg, var(--color-accent) 0%, var(--color-primary) 50%, var(--color-primary-dark) 100%);
    color: #fff;
    padding: 80px 0;
}

.cta-inner {
    text-align: center;
    max-width: 560px;
}

.cta h2 {
    font-size: clamp(1.5rem, 3vw, 2rem);
    font-weight: 800;
    margin-bottom: 12px;
}

.cta > .container > p,
.cta-inner > p:first-of-type {
    opacity: 0.9;
    margin-bottom: 32px;
    font-size: 16px;
}

.cta-form {
    display: flex;
    gap: 10px;
    margin-bottom: 16px;
}

.cta-form input {
    flex: 1;
    padding: 14px 18px;
    font-family: inherit;
    font-size: 15px;
    border: none;
    border-radius: var(--radius-md);
    outline: none;
    direction: ltr;
    text-align: left;
}

.cta-form input:focus {
    box-shadow: 0 0 0 3px rgba(255, 255, 255, 0.3);
}

.cta-form .btn-primary {
    background: #fff;
    color: var(--color-primary);
    border-color: #fff;
    flex-shrink: 0;
}

.cta-form .btn-primary:hover {
    background: var(--color-bg-alt);
    color: var(--color-primary-dark);
}

.cta-note {
    font-size: 13px;
    opacity: 0.75;
}

.cta-note a {
    color: #fff;
    text-decoration: underline;
}

/* ---- FAQ ---- */
.faq {
    background: var(--color-bg-alt);
}

.faq-list {
    max-width: 720px;
    margin: 0 auto;
}

.faq-item {
    background: var(--color-bg);
    border: 1px solid var(--color-border);
    border-radius: var(--radius-md);
    margin-bottom: 12px;
    overflow: hidden;
}

.faq-item summary {
    padding: 20px 24px;
    font-weight: 600;
    font-size: 15px;
    cursor: pointer;
    list-style: none;
    display: flex;
    align-items: center;
    justify-content: space-between;
    transition: background var(--transition);
}

.faq-item summary::-webkit-details-marker {
    display: none;
}

.faq-item summary::after {
    content: '+';
    font-size: 20px;
    font-weight: 400;
    color: var(--color-text-light);
    transition: transform var(--transition);
    flex-shrink: 0;
    margin-right: 12px;
}

.faq-item[open] summary::after {
    transform: rotate(45deg);
}

.faq-item summary:hover {
    background: var(--color-bg-muted);
}

.faq-item p {
    padding: 0 24px 20px;
    font-size: 14px;
    color: var(--color-text-muted);
    line-height: 1.8;
}

/* ---- Login teaser ---- */
.login-teaser {
    padding: 40px 0;
    text-align: center;
}

.login-inner p {
    font-size: 15px;
    color: var(--color-text-muted);
}

.link-arrow {
    font-weight: 600;
}

.link-arrow::after {
    content: ' ←';
}

/* ---- Footer ---- */
.site-footer {
    background: var(--color-navy);
    color: rgba(255, 255, 255, 0.6);
    padding: 32px 0;
}

.footer-inner {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 24px;
    flex-wrap: wrap;
}

.footer-inner .logo {
    color: #fff;
}

.footer-nav {
    display: flex;
    align-items: center;
    gap: 24px;
}

.footer-nav a {
    color: rgba(255, 255, 255, 0.6);
    font-size: 14px;
    font-weight: 500;
}

.footer-nav a:hover {
    color: #fff;
}

.footer-copy {
    font-size: 13px;
    margin: 0;
}

/* ---- Responsive ---- */
@media (max-width: 1024px) {
    .hero-grid {
        grid-template-columns: 1fr;
        gap: 48px;
    }

    .hero-visual {
        max-width: 100%;
        width: 100%;
        margin: 0;
    }

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

    .pricing-card.featured {
        transform: none;
    }

}

@media (max-width: 768px) {
    .nav-toggle {
        display: flex;
    }

    .main-nav {
        position: fixed;
        top: var(--header-height);
        right: 0;
        left: 0;
        background: var(--color-bg);
        border-bottom: 1px solid var(--color-border);
        padding: 16px 24px;
        transform: translateY(-120%);
        opacity: 0;
        visibility: hidden;
        transition: all 0.3s ease;
        box-shadow: var(--shadow-md);
    }

    .main-nav.open {
        transform: translateY(0);
        opacity: 1;
        visibility: visible;
    }

    .main-nav ul {
        flex-direction: column;
        gap: 0;
    }

    .main-nav a {
        display: block;
        padding: 12px 0;
        font-size: 15px;
    }

    .header-actions .btn-ghost {
        display: none;
    }

    .hero-visual {
        width: 100%;
        max-width: none;
        padding: 0 12px;
    }

    .features-grid,
    .steps,
    .pricing-grid {
        grid-template-columns: 1fr;
    }

    .section {
        padding: 64px 0;
    }

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

    .proof-stats {
        gap: 32px;
    }

    .footer-inner {
        flex-direction: column;
        text-align: center;
    }

    .footer-nav {
        justify-content: center;
    }
}

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

    *, *::before, *::after {
        transition-duration: 0.01ms !important;
    }
}
