/* ریست خیلی سبک */
*,
*::before,
*::after {
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    margin: 0;
    font-family: "Vazirmatn", -apple-system, BlinkMacSystemFont,
        "Segoe UI", system-ui, sans-serif;
    background-color: #f7f3ec;
    /* روشن‌تر و نرم‌تر */
    color: #222733;
    direction: rtl;
    font-size: 16px;
    line-height: 1.9;
    font-weight: 400;
    /* نه خیلی نازک، نه بولد */
    -webkit-font-smoothing: antialiased;
    text-rendering: optimizeLegibility;
}

h1,
h2,
h3,
h4 {
    font-weight: 700;
    letter-spacing: -0.01em;
    color: #1f2933;
    margin: 0;
}

p {
    margin: 0;
}

/* پالت رنگ براساس تصویر */
:root {
    --color-cream: #f5efe6;
    --color-sand: #e9dfc8;
    --color-blue: #80a2cd;
    --color-blue-soft: #d6e4f2;
    --color-text-main: #222733;
    --color-text-muted: #6b7280;
    --radius-lg: 18px;
    --radius-md: 12px;
    --shadow-strong: 0 22px 45px rgba(15, 23, 42, 0.18);
    --shadow-soft: 0 14px 30px rgba(15, 23, 42, 0.12);
}

/* لایه‌بندی عمومی */

.container {
    width: 100%;
    max-width: 1120px;
    margin: 0 auto;
    padding: 0 1.5rem;
}

.section {
    padding: 4rem 0;
}

.section:nth-of-type(odd) {
    background: transparent;
}

.section:nth-of-type(even) {
    background: linear-gradient(180deg,
            rgba(233, 223, 200, 0.25),
            rgba(214, 228, 242, 0.25));
}

/* هدر */

.site-header {
    position: sticky;
    top: 0;
    z-index: 20;
    backdrop-filter: blur(12px);
    background: rgba(245, 239, 230, 0.9);
    border-bottom: 1px solid rgba(148, 163, 184, 0.25);
    transition: box-shadow 0.2s ease, background-color 0.2s ease,
        transform 0.2s ease;
}

.site-header--scrolled {
    box-shadow: 0 14px 40px rgba(15, 23, 42, 0.18);
    background: rgba(245, 239, 230, 0.98);
    transform: translateY(-1px);
}

.header-inner {
    display: flex;
    align-items: center;
    justify-content: space-between;
    min-height: 64px;
    gap: 1.5rem;
}

.brand {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    text-decoration: none;
    color: inherit;
}

.brand-mark {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 0.35rem 0.7rem;
    border-radius: 999px;
    background: linear-gradient(90deg, var(--color-blue), #6c8ab8);
    color: #f9fafb;
    font-weight: 700;
    font-size: 0.85rem;
    letter-spacing: 0.05em;
}

.brand-text {
    display: flex;
    flex-direction: column;
    font-weight: 600;
    font-size: 0.95rem;
}

.brand-text-sub {
    font-weight: 400;
    font-size: 0.8rem;
    color: var(--color-text-muted);
}

.main-nav {
    display: flex;
    align-items: center;
    gap: 1rem;
}

.main-nav a {
    text-decoration: none;
    font-size: 0.9rem;
    color: #4b5563;
    padding: 0.35rem 0.7rem;
    border-radius: 999px;
    transition: background-color 0.18s ease, color 0.18s ease,
        box-shadow 0.18s ease, transform 0.18s ease;
}

.main-nav a:hover {
    background-color: rgba(128, 162, 205, 0.18);
    color: #111827;
    box-shadow: 0 6px 16px rgba(148, 163, 184, 0.5);
    transform: translateY(-1px);
}

/* HERO */

.hero {
    padding-top: 4.5rem;
    padding-bottom: 4rem;
    background: radial-gradient(circle at top left,
            #f5efe6 0,
            #d6e4f2 55%,
            #f5efe6 100%);
}

.hero-inner {
    display: grid;
    grid-template-columns: minmax(0, 1.4fr);
    gap: 2.5rem;
    align-items: center;
}

.hero-content {
    max-width: 640px;
}

.hero-eyebrow {
    font-size: 0.85rem;
    color: var(--color-text-muted);
    margin-bottom: 0.75rem;
}

.hero h1 {
    font-size: 2.3rem;
    line-height: 1.25;
    margin-bottom: 1rem;
}

.hero-highlight {
    display: block;
    font-size: 1.12rem;
    margin-top: 0.3rem;
    color: #1d4f82;
}

.hero-lead {
    font-size: 0.98rem;
    line-height: 2;
    color: #374151;
    margin-bottom: 1.25rem;
    font-weight: 400;
}

.hero-bullets {
    list-style: none;
    padding: 0;
    margin: 0 0 1.75rem;
    display: grid;
    gap: 0.4rem;
    font-size: 0.9rem;
    color: var(--color-text-main);
}

.hero-bullets li::before {
    content: "•";
    margin-left: 0.35rem;
    color: var(--color-blue);
}

.hero-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 0.75rem;
    margin-bottom: 0.75rem;
}

.hero-source {
    font-size: 0.8rem;
    color: var(--color-text-muted);
}

.hero-source a {
    color: #1d4f82;
    text-decoration: none;
}

.hero-source a:hover {
    text-decoration: underline;
}

.hero-side {
    display: grid;
    gap: 1rem;
}

/* کارت‌ها – اینجا سایه‌ را محکم کردیم */

.hero-card,
.hero-note,
.feature-card,
.product-card,
.contact-box {
    box-shadow: var(--shadow-strong);
}

/* کارت نمایندگی */

.hero-card {
    background: linear-gradient(180deg, var(--color-sand), #ffffff);
    border-radius: var(--radius-lg);
    padding: 1.3rem 1.4rem;
}

.hero-logo-wrap {
    display: flex;
    justify-content: flex-start;
    align-items: center;
    margin-bottom: 0.9rem;
}

.hero-logo {
    max-width: 190px;
    height: auto;
}

.hero-badge {
    display: inline-flex;
    align-items: center;
    padding: 0.4rem 0.75rem;
    border-radius: 999px;
    font-size: 0.8rem;
    background: rgba(128, 162, 205, 0.12);
    color: #1d4f82;
    margin-bottom: 0.7rem;
}

.hero-meta {
    list-style: none;
    padding: 0;
    margin: 0;
    font-size: 0.85rem;
    color: #374151;
    display: grid;
    gap: 0.4rem;
}

/* نوت پایین کارت */

.hero-note {
    border-radius: var(--radius-md);
    padding: 1rem 1.1rem;
    background: rgba(214, 228, 242, 0.96);
    border: 1px solid rgba(148, 163, 184, 0.4);
    font-size: 0.85rem;
    color: #1f2933;
}

.note-label {
    display: inline-flex;
    margin-bottom: 0.35rem;
    padding: 0.1rem 0.6rem;
    border-radius: 999px;
    font-size: 0.75rem;
    background: rgba(128, 162, 205, 0.18);
    color: #1d4f82;
}

/* دکمه‌ها */

.btn {
    border-radius: 999px;
    padding: 0.6rem 1.4rem;
    font-size: 0.9rem;
    border: 1px solid transparent;
    cursor: pointer;
    text-decoration: none;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.35rem;
    white-space: nowrap;
    transition: transform 0.12s ease, box-shadow 0.12s ease, filter 0.12s ease;
    font-weight: 500;
}

.btn-primary {
    background: linear-gradient(90deg, var(--color-blue), #6c8ab8);
    color: #f9fafb;
    box-shadow: 0 14px 26px rgba(59, 130, 246, 0.45);
}

.btn-primary:hover {
    filter: brightness(1.05);
    transform: translateY(-1px);
    box-shadow: 0 18px 32px rgba(59, 130, 246, 0.5);
}

.btn-ghost {
    background: rgba(255, 255, 255, 0.96);
    border-color: rgba(148, 163, 184, 0.6);
    color: #111827;
    box-shadow: var(--shadow-soft);
}

.btn-ghost:hover {
    background: #ffffff;
    transform: translateY(-1px);
}

.btn-full {
    width: 100%;
}

/* سرفصل‌ها */

.section-header {
    max-width: 620px;
    margin: 0 auto 2.5rem;
    text-align: right;
}

.section-header h2 {
    font-size: 1.45rem;
    margin-bottom: 0.6rem;
}

.section-header p {
    font-size: 0.95rem;
    color: var(--color-text-muted);
    line-height: 2;
}

.eyebrow {
    display: inline-flex;
    padding: 0.18rem 0.7rem;
    border-radius: 999px;
    background: rgba(233, 223, 200, 0.95);
    font-size: 0.8rem;
    color: #4b5563;
    margin-bottom: 0.6rem;
}

/* FEATURES */

.features-grid {
    display: grid;
    gap: 1rem;
}

.feature-card {
    background: rgba(255, 255, 255, 0.98);
    border-radius: var(--radius-md);
    padding: 1.3rem 1.4rem;
    border: 1px solid rgba(148, 163, 184, 0.45);
}

.feature-card h3 {
    margin-bottom: 0.5rem;
    font-size: 1.05rem;
}

.feature-card p {
    font-size: 0.9rem;
    color: var(--color-text-muted);
    line-height: 1.9;
}

/* PRODUCTS */

.section-products {
    background: linear-gradient(180deg,
            rgba(245, 239, 230, 0.7),
            rgba(214, 228, 242, 0.9));
}

.products-grid {
    display: grid;
    gap: 1.4rem;
}

.product-card {
    background: #ffffff;
    border-radius: var(--radius-md);
    overflow: hidden;
    display: flex;
    flex-direction: column;
}

.product-image-wrap {
    position: relative;
    padding: 0.9rem 0.9rem 0.4rem;
    background: linear-gradient(90deg, var(--color-sand), #f5efe6);
}

.product-image-wrap img {
    display: block;
    width: 100%;
    height: auto;
    border-radius: 12px;
    object-fit: cover;
}

.product-body {
    padding: 1rem 1.1rem 1.1rem;
}

.product-body h3 {
    margin-bottom: 0.5rem;
    font-size: 1.02rem;
}

.product-body p {
    margin-bottom: 0.85rem;
    font-size: 0.9rem;
    line-height: 1.9;
    color: var(--color-text-muted);
}

.product-meta {
    display: flex;
    flex-wrap: wrap;
    gap: 0.6rem;
    align-items: center;
    justify-content: space-between;
}

.badge {
    display: inline-flex;
    align-items: center;
    padding: 0.2rem 0.7rem;
    border-radius: 999px;
    background: rgba(233, 223, 200, 0.95);
    font-size: 0.8rem;
    color: #4b5563;
}

.badge-primary {
    background: rgba(128, 162, 205, 0.2);
    color: #1d4f82;
}

.product-link {
    font-size: 0.82rem;
    color: #1d4f82;
    text-decoration: none;
    font-weight: 500;
}

.product-link:hover {
    text-decoration: underline;
}

/* SUPPORT */

.section-support {
    background: #f5efe6;
}

.support-inner {
    display: grid;
    gap: 1.7rem;
}

.support-list {
    margin: 0;
    padding: 0;
    list-style: none;
    font-size: 0.9rem;
    color: var(--color-text-main);
    display: grid;
    gap: 0.5rem;
}

.support-list li::before {
    content: "✓";
    margin-left: 0.35rem;
    color: #15803d;
}

/* CONTACT */

.section-contact {
    background: linear-gradient(180deg,
            rgba(214, 228, 242, 0.9),
            rgba(245, 239, 230, 0.98));
}

.contact-inner {
    display: grid;
    gap: 1.8rem;
}

.contact-text h2 {
    margin-bottom: 0.6rem;
}

.contact-text p {
    margin-bottom: 1rem;
    font-size: 0.92rem;
    color: var(--color-text-muted);
    line-height: 2;
}

.contact-list {
    margin: 0;
    padding: 0;
    list-style: none;
    font-size: 0.9rem;
    color: var(--color-text-main);
    display: grid;
    gap: 0.4rem;
}

.contact-list a {
    color: #1d4f82;
    text-decoration: none;
}

.contact-list a:hover {
    text-decoration: underline;
}

.contact-box {
    background: #ffffff;
    border-radius: var(--radius-lg);
    padding: 1.4rem 1.5rem;
    border: 1px solid rgba(148, 163, 184, 0.5);
}

.contact-note {
    margin-bottom: 0.9rem;
    font-size: 0.88rem;
    color: var(--color-text-muted);
    line-height: 1.95;
}

/* FOOTER */

.site-footer {
    padding: 1.5rem 0 2rem;
    background: #f5efe6;
    border-top: 1px solid rgba(148, 163, 184, 0.35);
}

.footer-inner {
    text-align: center;
    font-size: 0.8rem;
    color: #6b7280;
}

.footer-source a {
    color: #1d4f82;
    text-decoration: none;
}

.footer-source a:hover {
    text-decoration: underline;
}

/* انیمیشن ساده اسکرول */

.reveal {
    opacity: 0;
    transform: translateY(16px);
    transition: opacity 0.4s ease, transform 0.4s ease;
}

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

/* RESPONSIVE */

@media (min-width: 768px) {
    .hero-inner {
        grid-template-columns: minmax(0, 1.4fr) minmax(0, 1fr);
    }

    .features-grid {
        grid-template-columns: repeat(3, minmax(0, 1fr));
    }

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

    .support-inner {
        grid-template-columns: minmax(0, 1.4fr) minmax(0, 1fr);
    }

    .contact-inner {
        grid-template-columns: minmax(0, 1.4fr) minmax(0, 1.1fr);
        align-items: center;
    }
}

@media (min-width: 1040px) {
    .products-grid {
        grid-template-columns: repeat(3, minmax(0, 1fr));
    }
}

@media (max-width: 640px) {
    .header-inner {
        flex-direction: column;
        align-items: flex-start;
        padding-top: 0.4rem;
        padding-bottom: 0.6rem;
    }

    .main-nav {
        width: 100%;
        flex-wrap: wrap;
        justify-content: flex-start;
    }

    .hero {
        padding-top: 4rem;
    }

    .hero-actions {
        flex-direction: column;
        align-items: stretch;
    }

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

    .product-body {
        padding: 0.9rem 0.9rem 1.1rem;
    }
}