/* =============================================================================
   الگوریتم کاوان رایان پارس — Design System
   Modern B2B SaaS · RTL · Mobile-first · Minimal · Premium
   One language: restrained palette, consistent spacing, unified cards & buttons.
   ============================================================================= */

/* ----------------------------------------------------------------------------
   1. Design tokens
---------------------------------------------------------------------------- */
:root {
    /* Brand & accent (kept deliberately minimal: one indigo→blue ramp) */
    --c-primary: #4f46e5;          /* indigo-600 */
    --c-primary-600: #4338ca;
    --c-primary-700: #3730a3;
    --c-accent: #2563eb;           /* blue-600 */
    --grad: linear-gradient(135deg, #6366f1 0%, #2563eb 100%);
    --grad-soft: linear-gradient(135deg, rgba(99,102,241,.14), rgba(37,99,235,.14));

    /* Dark surfaces (header, hero, cta, footer) */
    --c-ink: #0b1020;
    --c-ink-2: #11182e;
    --c-ink-line: rgba(255,255,255,.10);

    /* Neutrals (light UI) */
    --c-bg: #ffffff;
    --c-bg-subtle: #f6f7fb;
    --c-surface: #ffffff;
    --c-surface-2: #f1f3f9;
    --c-border: #e8eaf1;
    --c-border-strong: #d7dbe7;

    /* Text */
    --c-text: #0f1729;
    --c-text-muted: #586079;
    --c-text-subtle: #8089a0;
    --c-text-on-dark: #e8ecf7;
    --c-text-on-dark-muted: #aab3cf;

    /* Radius */
    --r-sm: 8px;
    --r-md: 12px;
    --r-lg: 16px;
    --r-xl: 22px;
    --r-pill: 999px;

    /* Shadows (soft, layered — Linear/Stripe feel) */
    --sh-xs: 0 1px 2px rgba(16,24,40,.05);
    --sh-sm: 0 1px 3px rgba(16,24,40,.07), 0 1px 2px rgba(16,24,40,.04);
    --sh-md: 0 8px 20px -8px rgba(16,24,40,.14), 0 2px 6px -2px rgba(16,24,40,.06);
    --sh-lg: 0 22px 48px -18px rgba(16,24,40,.28), 0 8px 16px -10px rgba(16,24,40,.12);
    --sh-glow: 0 10px 30px -8px rgba(79,70,229,.5);

    /* Spacing scale */
    --s-1: .25rem;  --s-2: .5rem;   --s-3: .75rem;  --s-4: 1rem;
    --s-5: 1.5rem;  --s-6: 2rem;    --s-7: 2.5rem;  --s-8: 3rem;   --s-9: 4rem;

    /* Layout */
    --container: 1140px;
    --container-narrow: 760px;
    --section-y: clamp(2.25rem, 4.5vw, 3.75rem);
    --header-h: 64px;

    /* Motion */
    --ease: cubic-bezier(.22,.61,.36,1);
    --t-fast: .16s;
    --t-med: .28s;
}

/* ----------------------------------------------------------------------------
   2. Reset & base
---------------------------------------------------------------------------- */
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
body {
    margin: 0;
    font-family: "Vazirmatn", "Segoe UI", Tahoma, sans-serif;
    font-size: 15.5px;
    line-height: 1.7;
    color: var(--c-text);
    background: var(--c-bg);
    overflow-x: hidden;
    -webkit-font-smoothing: antialiased;
    text-rendering: optimizeLegibility;
}
img, svg, video { display: block; max-width: 100%; height: auto; }
a { color: inherit; text-decoration: none; }
ul { margin: 0; padding: 0; list-style: none; }
button { font-family: inherit; }

/* ----------------------------------------------------------------------------
   3. Typography & hierarchy
---------------------------------------------------------------------------- */
h1, h2, h3, h4 { margin: 0 0 .5em; font-weight: 800; line-height: 1.3; letter-spacing: -.01em; }
h1 { font-size: clamp(1.55rem, 1.1rem + 1.9vw, 2.25rem); }
h2 { font-size: clamp(1.25rem, 1rem + 1.1vw, 1.65rem); }
h3 { font-size: clamp(1.02rem, .95rem + .4vw, 1.15rem); font-weight: 700; }
p  { margin: 0 0 1rem; }
strong { font-weight: 700; }

/* Justified reading text (better RTL paragraph blocks) */
.hero__lead,
.split__text p,
.faq__answer p,
.site-footer__brand p { text-align: justify; text-justify: inter-word; }

.eyebrow {
    display: inline-flex; align-items: center; gap: .5rem;
    padding: .35rem .85rem; margin: 0 0 1.1rem;
    font-size: .82rem; font-weight: 600; letter-spacing: .01em;
    color: #c7cdfb;
    background: rgba(99,102,241,.16);
    border: 1px solid rgba(129,140,248,.28);
    border-radius: var(--r-pill);
}
.eyebrow::before {
    content: ""; width: 7px; height: 7px; border-radius: 50%;
    background: #818cf8; box-shadow: 0 0 0 4px rgba(129,140,248,.22);
}

/* ----------------------------------------------------------------------------
   4. Layout helpers
---------------------------------------------------------------------------- */
.container { width: min(100% - 2.5rem, var(--container)); margin-inline: auto; }
.visually-hidden, .skip-link {
    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:focus {
    position: fixed; inset-block-start: 12px; inset-inline-start: 12px;
    width: auto; height: auto; clip: auto; margin: 0;
    background: var(--c-primary); color: #fff; padding: .6rem 1rem;
    border-radius: var(--r-sm); z-index: 1000; box-shadow: var(--sh-lg);
}
:focus-visible { outline: 3px solid #818cf8; outline-offset: 3px; border-radius: 6px; }

/* ----------------------------------------------------------------------------
   5. Buttons — single unified style
---------------------------------------------------------------------------- */
.btn {
    --btn-py: .8rem; --btn-px: 1.6rem;
    display: inline-flex; align-items: center; justify-content: center; gap: .55rem;
    padding: var(--btn-py) var(--btn-px);
    font-size: .96rem; font-weight: 700; line-height: 1;
    border: 1px solid transparent; border-radius: var(--r-pill);
    cursor: pointer; white-space: nowrap; text-align: center;
    transition: transform var(--t-fast) var(--ease), box-shadow var(--t-med) var(--ease),
                background var(--t-med) var(--ease), color var(--t-med) var(--ease),
                border-color var(--t-med) var(--ease);
}
.btn:active { transform: translateY(0) scale(.985); }

.btn--primary {
    color: #fff; background: var(--grad);
    box-shadow: var(--sh-glow);
    background-size: 140% 140%; background-position: 0% 50%;
}
.btn--primary:hover { transform: translateY(-2px); background-position: 100% 50%; box-shadow: 0 16px 36px -10px rgba(79,70,229,.6); }

.btn--ghost { color: #fff; border-color: rgba(255,255,255,.45); background: rgba(255,255,255,.04); }
.btn--ghost:hover { background: rgba(255,255,255,.12); border-color: rgba(255,255,255,.7); transform: translateY(-2px); }

.btn--ghost-dark { color: var(--c-primary); border-color: var(--c-border-strong); background: var(--c-surface); }
.btn--ghost-dark:hover { background: var(--c-surface-2); border-color: var(--c-primary); transform: translateY(-2px); }

/* ----------------------------------------------------------------------------
   6. Header & navigation
---------------------------------------------------------------------------- */
.site-header {
    position: sticky; top: 0; z-index: 100;
    background: rgba(11,16,32,.72);
    backdrop-filter: saturate(140%) blur(14px);
    -webkit-backdrop-filter: saturate(140%) blur(14px);
    border-bottom: 1px solid var(--c-ink-line);
}
.site-header__inner {
    display: flex; align-items: center; justify-content: space-between;
    gap: 1rem; min-height: 64px;
}
.site-header__logo img { height: 38px; width: auto; transition: opacity var(--t-fast) var(--ease); }
.site-header__logo:hover img { opacity: .85; }

.primary-nav__list { display: flex; align-items: center; gap: .15rem; }
.primary-nav__link {
    position: relative; display: block; padding: .55rem .95rem;
    color: #c4cbe2; font-weight: 600; font-size: .95rem;
    border-radius: var(--r-sm); transition: color var(--t-fast) var(--ease), background var(--t-fast) var(--ease);
}
.primary-nav__link::after {
    content: ""; position: absolute; inset-inline: .95rem; bottom: .35rem; height: 2px;
    background: var(--grad); border-radius: 2px;
    transform: scaleX(0); transform-origin: center; transition: transform var(--t-med) var(--ease);
}
.primary-nav__link:hover { color: #fff; }
.primary-nav__link:hover::after { transform: scaleX(1); }
.primary-nav__link.is-active { color: #fff; background: rgba(255,255,255,.08); }
.primary-nav__link.is-active::after { transform: scaleX(1); }

.nav-toggle {
    display: none; flex-direction: column; justify-content: center; gap: 5px;
    width: 44px; height: 44px; padding: 10px; background: transparent; border: 0; cursor: pointer;
}
.nav-toggle__bar { height: 2px; width: 100%; background: #fff; border-radius: 2px; transition: transform var(--t-med) var(--ease), opacity var(--t-fast) var(--ease); }
.nav-toggle[aria-expanded="true"] .nav-toggle__bar:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.nav-toggle[aria-expanded="true"] .nav-toggle__bar:nth-child(2) { opacity: 0; }
.nav-toggle[aria-expanded="true"] .nav-toggle__bar:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

/* ----------------------------------------------------------------------------
   7. Hero
---------------------------------------------------------------------------- */
.hero {
    position: relative; color: #fff; isolation: isolate;
    background: var(--c-ink);
    display: flex; align-items: center;
    min-height: calc(100svh - var(--header-h));
    padding: clamp(1.5rem, 4vw, 2.75rem) 0;
}
.hero > .container { width: min(100% - 2.5rem, var(--container)); }
.hero::before {
    content: ""; position: absolute; inset: 0; z-index: -1;
    background:
        radial-gradient(60% 60% at 88% 8%, rgba(37,99,235,.32), transparent 60%),
        radial-gradient(55% 55% at 8% 98%, rgba(99,102,241,.30), transparent 60%);
}
.hero::after {
    content: ""; position: absolute; inset: 0; z-index: -1; opacity: .3;
    background-image: linear-gradient(var(--c-ink-line) 1px, transparent 1px),
                      linear-gradient(90deg, var(--c-ink-line) 1px, transparent 1px);
    background-size: 64px 64px;
    -webkit-mask-image: radial-gradient(70% 60% at 50% 30%, #000, transparent 80%);
            mask-image: radial-gradient(70% 60% at 50% 30%, #000, transparent 80%);
}
.hero__inner { display: grid; gap: 2.5rem; align-items: center; }
.hero h1 { letter-spacing: -.02em; }
.hero__brand {
    background: linear-gradient(90deg, #a5b4fc, #93c5fd);
    -webkit-background-clip: text; background-clip: text; color: transparent;
}
.hero__lead { color: var(--c-text-on-dark-muted); font-size: 1rem; max-width: 58ch; }
.hero__actions { display: flex; flex-wrap: wrap; gap: .7rem; margin-top: 1.25rem; }
.hero__media img {
    margin-inline: auto; border-radius: var(--r-lg);
    width: auto; max-height: min(52vh, 440px);
    filter: drop-shadow(0 24px 44px rgba(0,0,0,.45));
}

/* ----------------------------------------------------------------------------
   8. Page hero (inner pages)
---------------------------------------------------------------------------- */
.page-hero {
    position: relative; color: #fff; text-align: center; isolation: isolate;
    background: var(--c-ink);
    padding: clamp(2.75rem, 6vw, 4.5rem) 0;
}
.page-hero::before {
    content: ""; position: absolute; inset: 0; z-index: -1;
    background: radial-gradient(60% 80% at 50% 0%, rgba(79,70,229,.34), transparent 65%);
}
.page-hero .eyebrow { margin-inline: auto; }
.page-hero__lead { color: var(--c-text-on-dark-muted); max-width: 68ch; margin-inline: auto; font-size: .97rem; }
.page-hero .hero__actions { justify-content: center; }

/* ----------------------------------------------------------------------------
   9. Sections & titles
---------------------------------------------------------------------------- */
.section { padding: var(--section-y) 0; }
.section:nth-of-type(even) { background: var(--c-bg-subtle); }
.section__title { font-size: clamp(1.25rem, 1rem + 1.1vw, 1.65rem); }
.section__title--center { text-align: center; margin-inline: auto; max-width: 22ch; }
.split__text > p, .section > .container > p { color: var(--c-text-muted); }

/* ----------------------------------------------------------------------------
   10. Feature cards (why-us)
---------------------------------------------------------------------------- */
.features__grid { display: grid; gap: 1.1rem; grid-template-columns: 1fr; margin-top: 1.6rem; }
.feature-card {
    background: var(--c-surface); border: 1px solid var(--c-border); border-radius: var(--r-lg);
    padding: 1.5rem; box-shadow: var(--sh-sm);
    transition: transform var(--t-med) var(--ease), box-shadow var(--t-med) var(--ease), border-color var(--t-med) var(--ease);
}
.feature-card:hover { transform: translateY(-5px); box-shadow: var(--sh-lg); border-color: var(--c-border-strong); }
.feature-card__num {
    display: inline-flex; align-items: center; justify-content: center;
    width: 44px; height: 44px; margin-bottom: .9rem;
    font-size: 1rem; font-weight: 800; color: #fff;
    background: var(--grad); border-radius: 12px;
    box-shadow: var(--sh-glow);
    transition: transform var(--t-med) var(--ease);
}
.feature-card:hover .feature-card__num { transform: translateY(-2px) rotate(-4deg); }
.feature-card h3 { margin: 0; }

/* ----------------------------------------------------------------------------
   11. Split (image + text)
---------------------------------------------------------------------------- */
.split__inner { display: grid; gap: 2.5rem; align-items: center; }
.split__media {
    position: relative; border-radius: var(--r-xl); overflow: hidden;
    box-shadow: var(--sh-lg); border: 1px solid var(--c-border);
}
.split__media img { width: 100%; object-fit: cover; transition: transform .6s var(--ease); }
.split__media:hover img { transform: scale(1.03); }

/* ----------------------------------------------------------------------------
   12. Check list
---------------------------------------------------------------------------- */
.check-list { display: grid; gap: .7rem; margin: 1.3rem 0; }
.check-list li { position: relative; padding-inline-start: 2rem; color: var(--c-text-muted); }
.check-list li::before {
    content: ""; position: absolute; inset-inline-start: 0; top: .5em;
    width: 20px; height: 20px; border-radius: 50%;
    background: var(--grad-soft); border: 1px solid rgba(99,102,241,.35);
    -webkit-mask: none;
}
.check-list li::after {
    content: ""; position: absolute; inset-inline-start: 5px; top: calc(.5em + 5px);
    width: 10px; height: 10px;
    background: var(--c-primary);
    -webkit-mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath fill='%23000' d='M9 16.2 4.8 12l-1.4 1.4L9 19 21 7l-1.4-1.4z'/%3E%3C/svg%3E") center/contain no-repeat;
            mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath fill='%23000' d='M9 16.2 4.8 12l-1.4 1.4L9 19 21 7l-1.4-1.4z'/%3E%3C/svg%3E") center/contain no-repeat;
}
.check-list--cols { grid-template-columns: 1fr; }

/* ----------------------------------------------------------------------------
   13. Team
---------------------------------------------------------------------------- */
.team__grid { display: grid; gap: 1.4rem; grid-template-columns: 1fr; margin-top: 1.6rem; }
.team-card {
    text-align: center; background: var(--c-surface); border: 1px solid var(--c-border);
    border-radius: var(--r-lg); padding: 1.8rem 1.4rem; box-shadow: var(--sh-sm);
    transition: transform var(--t-med) var(--ease), box-shadow var(--t-med) var(--ease);
}
.team-card:hover { transform: translateY(-4px); box-shadow: var(--sh-lg); }
.team-card__avatar {
    width: 92px; height: 92px; border-radius: 50%; object-fit: cover; margin: 0 auto .9rem;
    border: 3px solid var(--c-surface); box-shadow: 0 0 0 3px var(--c-border), var(--sh-sm);
}
.team-card__name { margin: 0; }
.team-card__role { color: var(--c-text-subtle); margin: .15rem 0 1rem; font-size: .92rem; }

/* ----------------------------------------------------------------------------
   14. Social icons
---------------------------------------------------------------------------- */
.social { display: flex; gap: .55rem; justify-content: center; flex-wrap: wrap; }
.social a {
    display: inline-flex; align-items: center; justify-content: center;
    width: 40px; height: 40px; border-radius: 50%;
    background: rgba(255,255,255,.1); color: #fff;
    transition: transform var(--t-fast) var(--ease), background var(--t-med) var(--ease);
}
.social a:hover { background: var(--grad); transform: translateY(-3px); }
.social--dark a {
    width: auto; height: auto; padding: .35rem .85rem; border-radius: var(--r-pill);
    background: var(--c-surface-2); color: var(--c-text-subtle); font-size: .78rem; font-weight: 600;
}
.social--dark a:hover { background: var(--grad); color: #fff; }

/* ----------------------------------------------------------------------------
   15. CTA band
---------------------------------------------------------------------------- */
.cta {
    position: relative; text-align: center; color: #fff; isolation: isolate;
    background: var(--c-ink-2);
    padding: clamp(3rem, 6vw, 4.75rem) 0;
}
.cta::before {
    content: ""; position: absolute; inset: 0; z-index: -1;
    background: radial-gradient(50% 120% at 50% 0%, rgba(79,70,229,.4), transparent 70%);
}
.cta__inner { max-width: 720px; margin-inline: auto; }
.cta__eyebrow { color: #a5b4fc; font-weight: 700; margin: 0 0 .6rem; letter-spacing: .04em; }
.cta__title { font-size: clamp(1.3rem, 1rem + 1.3vw, 1.85rem); margin-inline: auto; }
.cta__text { color: var(--c-text-on-dark-muted); }
.cta__actions { margin: 1.5rem 0 1.25rem; }

/* ----------------------------------------------------------------------------
   16. Products
---------------------------------------------------------------------------- */
.product-grid { display: grid; gap: 1.4rem; grid-template-columns: 1fr; margin-top: 1.6rem; }
.product-card {
    display: flex; flex-direction: column; overflow: hidden;
    background: var(--c-surface); border: 1px solid var(--c-border); border-radius: var(--r-lg);
    box-shadow: var(--sh-sm);
    transition: transform var(--t-med) var(--ease), box-shadow var(--t-med) var(--ease), border-color var(--t-med) var(--ease);
}
.product-card:hover { transform: translateY(-6px); box-shadow: var(--sh-lg); border-color: var(--c-border-strong); }
.product-card > img { width: 100%; height: 196px; object-fit: cover; transition: transform .6s var(--ease); }
.product-card:hover > img { transform: scale(1.05); }
.product-card__body { display: flex; flex-direction: column; gap: .55rem; flex: 1; padding: 1.4rem; }
.product-card__body h3 { margin: 0; }
.product-card__body p {
    margin: 0; flex: 1; color: var(--c-text-muted); font-size: .93rem;
    display: -webkit-box; -webkit-line-clamp: 3; -webkit-box-orient: vertical; overflow: hidden;
}
.product-card__link {
    align-self: flex-start; margin-top: .35rem; font-weight: 700; color: var(--c-primary);
    display: inline-flex; align-items: center; gap: .35rem;
}
.product-card__link::after { content: "←"; transition: transform var(--t-fast) var(--ease); }
.product-card__link:hover::after { transform: translateX(-4px); }

/* ----------------------------------------------------------------------------
   16b. Comparison table (traditional vs our solution)
---------------------------------------------------------------------------- */
.compare {
    margin-top: 1.6rem; overflow-x: auto;
    border: 1px solid var(--c-border); border-radius: var(--r-lg); box-shadow: var(--sh-sm);
}
.compare-table { width: 100%; min-width: 560px; border-collapse: collapse; background: var(--c-surface); font-size: .94rem; }
.compare-table th, .compare-table td { padding: .9rem 1rem; text-align: start; vertical-align: top; border-bottom: 1px solid var(--c-border); }
.compare-table thead th { background: var(--c-bg-subtle); font-weight: 700; color: var(--c-text); }
.compare-table thead th.compare-table__new { color: var(--c-primary); }
.compare-table tbody th { width: 20%; white-space: nowrap; font-weight: 700; color: var(--c-text); }
.compare-table td { color: var(--c-text-muted); }
.compare-table tbody tr:last-child th, .compare-table tbody tr:last-child td { border-bottom: 0; }
.compare-table__yes { background: rgba(79,70,229,.045); color: var(--c-text); }
.compare-mark {
    display: inline-flex; align-items: center; justify-content: center;
    width: 18px; height: 18px; margin-inline-end: .5rem; border-radius: 50%;
    font-size: .7rem; font-weight: 800; vertical-align: -3px;
}
.compare-mark--no { background: #fde7ec; color: #c81e44; }
.compare-mark--yes { background: rgba(79,70,229,.14); color: var(--c-primary); }

/* ----------------------------------------------------------------------------
   16c. Benefits
---------------------------------------------------------------------------- */
.benefits-grid { display: grid; gap: 1.1rem; grid-template-columns: 1fr; margin-top: 1.6rem; }
.benefit-card {
    background: var(--c-surface); border: 1px solid var(--c-border); border-radius: var(--r-lg);
    padding: 1.4rem; box-shadow: var(--sh-sm);
    transition: transform var(--t-med) var(--ease), box-shadow var(--t-med) var(--ease);
}
.benefit-card:hover { transform: translateY(-4px); box-shadow: var(--sh-lg); }
.benefit-card__icon {
    display: inline-flex; align-items: center; justify-content: center;
    width: 36px; height: 36px; margin-bottom: .7rem; border-radius: 10px;
    background: var(--grad-soft); color: var(--c-primary); border: 1px solid rgba(99,102,241,.3); font-weight: 800;
}
.benefit-card h3 { margin: 0 0 .3rem; }
.benefit-card p { margin: 0; color: var(--c-text-muted); font-size: .92rem; }

/* ----------------------------------------------------------------------------
   17. FAQ (native accordion)
---------------------------------------------------------------------------- */
.faq__list { max-width: var(--container-narrow); margin: 1.6rem auto 0; display: grid; gap: .8rem; }
.faq__item {
    background: var(--c-surface); border: 1px solid var(--c-border);
    border-radius: var(--r-md); padding: 0 1.2rem; box-shadow: var(--sh-xs);
    transition: border-color var(--t-med) var(--ease), box-shadow var(--t-med) var(--ease);
}
.faq__item[open] { border-color: var(--c-border-strong); box-shadow: var(--sh-sm); }
.faq__item summary {
    list-style: none; cursor: pointer; font-weight: 700; padding: 1.05rem 0;
    display: flex; justify-content: space-between; align-items: center; gap: 1rem;
}
.faq__item summary::-webkit-details-marker { display: none; }
.faq__item summary::after {
    content: ""; flex: none; width: 22px; height: 22px;
    background: var(--c-primary);
    -webkit-mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath fill='%23000' d='M11 5h2v6h6v2h-6v6h-2v-6H5v-2h6z'/%3E%3C/svg%3E") center/contain no-repeat;
            mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath fill='%23000' d='M11 5h2v6h6v2h-6v6h-2v-6H5v-2h6z'/%3E%3C/svg%3E") center/contain no-repeat;
    transition: transform var(--t-med) var(--ease);
}
.faq__item[open] summary::after { transform: rotate(135deg); }
.faq__answer { padding-bottom: 1.05rem; color: var(--c-text-muted); animation: fade-up .35s var(--ease); }
.faq__answer p { margin: 0; }

/* ----------------------------------------------------------------------------
   18. Breadcrumb
---------------------------------------------------------------------------- */
.breadcrumb { background: var(--c-bg-subtle); border-bottom: 1px solid var(--c-border); }
.breadcrumb ol { display: flex; flex-wrap: wrap; gap: .5rem; align-items: center; padding: .7rem 0; font-size: .85rem; color: var(--c-text-subtle); }
.breadcrumb li { display: flex; align-items: center; gap: .5rem; }
.breadcrumb li:not(:last-child)::after { content: "›"; color: var(--c-text-subtle); }
.breadcrumb a { color: var(--c-primary); }
.breadcrumb a:hover { text-decoration: underline; }
.breadcrumb [aria-current="page"] { color: var(--c-text); }

/* ----------------------------------------------------------------------------
   19. Contact
---------------------------------------------------------------------------- */
.contact__cards { display: grid; gap: 1.2rem; grid-template-columns: 1fr; margin-bottom: 2rem; }
.info-card {
    background: var(--c-surface); border: 1px solid var(--c-border); border-radius: var(--r-lg);
    padding: 1.6rem; text-align: center; box-shadow: var(--sh-sm);
    transition: transform var(--t-med) var(--ease), box-shadow var(--t-med) var(--ease);
}
.info-card:hover { transform: translateY(-4px); box-shadow: var(--sh-lg); }
.info-card__icon {
    display: inline-flex; align-items: center; justify-content: center;
    width: 50px; height: 50px; border-radius: 14px; margin-bottom: .8rem;
    background: var(--grad-soft); color: var(--c-primary); font-size: 1.3rem;
    border: 1px solid rgba(99,102,241,.3);
}
.info-card h3 { margin: 0 0 .35rem; }
.info-card p { margin: 0; color: var(--c-text-muted); }
.info-card a { color: var(--c-primary); }
.info-card__icon--img { background: #fff; border: 1px solid var(--c-border); padding: 0; }
.info-card__icon--img img { width: 28px; height: 28px; border-radius: 6px; }

.contact__main { display: grid; gap: 2.5rem; align-items: start; }
.contact__form-wrap {
    background: var(--c-surface); border: 1px solid var(--c-border); border-radius: var(--r-xl);
    padding: clamp(1.5rem, 3vw, 2.25rem); box-shadow: var(--sh-md);
}
.contact-form { display: grid; gap: 1.15rem; }
.field { display: grid; gap: .45rem; }
.field label { font-weight: 600; font-size: .92rem; }
.field input, .field textarea {
    font-family: inherit; font-size: 1rem; padding: .85rem 1rem;
    color: var(--c-text); background: var(--c-bg-subtle);
    border: 1px solid var(--c-border-strong); border-radius: var(--r-md);
    width: 100%; resize: vertical;
    transition: border-color var(--t-fast) var(--ease), box-shadow var(--t-fast) var(--ease), background var(--t-fast) var(--ease);
}
.field input:focus, .field textarea:focus {
    outline: none; background: #fff; border-color: var(--c-primary);
    box-shadow: 0 0 0 4px rgba(79,70,229,.16);
}
.field input[aria-invalid="true"], .field textarea[aria-invalid="true"] { border-color: #e11d48; background: #fff5f7; }
.field__error { color: #c81e44; font-size: .84rem; }
.alert { padding: .95rem 1.1rem; border-radius: var(--r-md); margin-bottom: 1rem; }
.alert--success { background: #e9f9f0; color: #12704a; border: 1px solid #b6e6cd; }

.contact__map .section__title { margin-bottom: 1rem; }
.map-embed {
    position: relative; border-radius: var(--r-xl); overflow: hidden;
    box-shadow: var(--sh-md); border: 1px solid var(--c-border); aspect-ratio: 4 / 3;
}
.map-embed iframe { position: absolute; inset: 0; width: 100%; height: 100%; }

/* ----------------------------------------------------------------------------
   20. Footer
---------------------------------------------------------------------------- */
.site-footer { background: var(--c-ink); color: var(--c-text-on-dark-muted); }
.site-footer__grid { display: grid; gap: 2.2rem; grid-template-columns: 1fr; padding: clamp(2.75rem, 5vw, 4rem) 0; }
.site-footer__brand img { height: 54px; width: auto; margin-bottom: 1rem; }
.site-footer__brand p { font-size: .92rem; color: #93a0c2; max-width: 42ch; }
.site-footer__heading { font-size: 1rem; color: #fff; margin-bottom: 1.1rem; letter-spacing: .01em; }
.site-footer__links li { margin-bottom: .65rem; }
.site-footer__links a, .contact-list a { color: var(--c-text-on-dark-muted); transition: color var(--t-fast) var(--ease); }
.site-footer__links a:hover, .contact-list a:hover { color: #fff; }
.contact-list { display: grid; gap: .7rem; font-size: .92rem; }
.contact-list li { display: flex; gap: .55rem; align-items: start; }
.contact-list__icon { width: 18px; height: 18px; border-radius: 4px; margin-top: .35rem; flex: none; }
.site-footer__trust img { background: #fff; border-radius: 10px; padding: 6px; }
.site-footer__bottom { border-top: 1px solid var(--c-ink-line); }
.site-footer__bottom p { margin: 0; padding: 1.2rem 0; text-align: center; font-size: .88rem; color: #7e8aab; }

/* ----------------------------------------------------------------------------
   21. Back to top
---------------------------------------------------------------------------- */
.back-to-top {
    position: fixed; inset-block-end: 22px; inset-inline-start: 22px; z-index: 90;
    display: inline-flex; align-items: center; justify-content: center;
    width: 46px; height: 46px; border: 0; padding: 0; cursor: pointer; border-radius: 50%;
    background: var(--grad); color: #fff; box-shadow: var(--sh-glow);
    opacity: 0; visibility: hidden; transform: translateY(12px);
    transition: opacity var(--t-med) var(--ease), transform var(--t-med) var(--ease), visibility var(--t-med);
}
.back-to-top.is-visible { opacity: 1; visibility: visible; transform: translateY(0); }
.back-to-top:hover { transform: translateY(-3px); }

/* Sticky Bale support button (always visible, all pages) */
.bale-fab {
    position: fixed; inset-block-end: 22px; inset-inline-end: 22px; z-index: 95;
    display: inline-flex; align-items: center; gap: .55rem;
    padding: .55rem .85rem; border-radius: var(--r-pill);
    background: #1f9c8f; color: #fff; font-weight: 700; font-size: .88rem;
    box-shadow: 0 12px 28px -8px rgba(31,160,148,.6);
    transition: transform var(--t-fast) var(--ease), box-shadow var(--t-med) var(--ease);
}
.bale-fab:hover { transform: translateY(-3px); box-shadow: 0 16px 34px -8px rgba(31,160,148,.7); }
.bale-fab img { width: 26px; height: 26px; border-radius: 50%; background: #fff; padding: 2px; flex: none; }
@media (prefers-reduced-motion: no-preference) {
    .bale-fab::before {
        content: ""; position: absolute; inset: 0; border-radius: inherit;
        box-shadow: 0 0 0 0 rgba(31,160,148,.5); animation: bale-pulse 2.4s var(--ease) infinite;
    }
}
@keyframes bale-pulse {
    0%   { box-shadow: 0 0 0 0 rgba(31,160,148,.45); }
    70%  { box-shadow: 0 0 0 12px rgba(31,160,148,0); }
    100% { box-shadow: 0 0 0 0 rgba(31,160,148,0); }
}
@media (max-width: 480px) {
    .bale-fab__label { display: none; }
    .bale-fab { padding: .55rem; }
}

/* ----------------------------------------------------------------------------
   22. Animations (scroll reveal + micro-interactions)
---------------------------------------------------------------------------- */
@keyframes fade-up { from { opacity: 0; transform: translateY(14px); } to { opacity: 1; transform: none; } }

/* Scroll-reveal. The hidden state is applied via html.js (set in <head>) so it
   is in place before first paint — no flash. JS observes the SAME selectors and
   adds .is-visible. Without JS or with reduced motion, everything stays visible. */
@media (prefers-reduced-motion: no-preference) {
    html.js .hero__text > *,
    html.js .hero__media,
    html.js .page-hero .container > *,
    html.js .section > .container > .section__title,
    html.js .split__media,
    html.js .split__text,
    html.js .features__grid > *,
    html.js .product-grid > *,
    html.js .team__grid > *,
    html.js .contact__cards > *,
    html.js .benefits-grid > *,
    html.js .compare,
    html.js .contact__form-wrap,
    html.js .contact__map,
    html.js .faq__item,
    html.js .cta__inner > * {
        opacity: 0; transform: translateY(22px);
    }
    html.js .is-visible {
        opacity: 1 !important; transform: none !important;
        transition: opacity .6s var(--ease), transform .7s var(--ease);
        transition-delay: var(--reveal-delay, 0s);
    }
    /* Stagger items inside grids / hero text */
    html.js .features__grid > *:nth-child(2), html.js .product-grid > *:nth-child(2),
    html.js .team__grid > *:nth-child(2),     html.js .contact__cards > *:nth-child(2),
    html.js .benefits-grid > *:nth-child(2),
    html.js .hero__text > *:nth-child(2),      html.js .page-hero .container > *:nth-child(2) { --reveal-delay: .07s; }
    html.js .features__grid > *:nth-child(3), html.js .product-grid > *:nth-child(3),
    html.js .team__grid > *:nth-child(3),     html.js .contact__cards > *:nth-child(3),
    html.js .benefits-grid > *:nth-child(3),
    html.js .hero__text > *:nth-child(3),      html.js .page-hero .container > *:nth-child(3) { --reveal-delay: .14s; }
    html.js .features__grid > *:nth-child(4), html.js .hero__text > *:nth-child(4),
    html.js .page-hero .container > *:nth-child(4) { --reveal-delay: .21s; }
}

/* Loading skeleton utility (available for async content) */
.skeleton {
    position: relative; overflow: hidden; background: var(--c-surface-2); border-radius: var(--r-md);
}
.skeleton::after {
    content: ""; position: absolute; inset: 0;
    background: linear-gradient(90deg, transparent, rgba(255,255,255,.6), transparent);
    transform: translateX(-100%); animation: skeleton 1.4s infinite;
}
@keyframes skeleton { 100% { transform: translateX(100%); } }

/* ----------------------------------------------------------------------------
   23. Responsive (mobile-first enhancements)
---------------------------------------------------------------------------- */
@media (max-width: 860px) {
    .nav-toggle { display: flex; }
    .primary-nav {
        position: fixed; inset: 64px 0 auto 0;
        background: rgba(11,16,32,.98); backdrop-filter: blur(14px);
        border-bottom: 1px solid var(--c-ink-line);
        max-height: 0; overflow: hidden; transition: max-height var(--t-med) var(--ease);
    }
    .primary-nav.is-open { max-height: 80vh; }
    .primary-nav__list { flex-direction: column; align-items: stretch; padding: .8rem 1.25rem 1.2rem; gap: .15rem; }
    .primary-nav__link { padding: .9rem 1rem; }
    .primary-nav__link::after { display: none; }
}

@media (min-width: 600px) {
    .features__grid { grid-template-columns: repeat(2, 1fr); }
    .contact__cards { grid-template-columns: repeat(3, 1fr); }
    .team__grid { grid-template-columns: repeat(2, 1fr); }
    .check-list--cols { grid-template-columns: repeat(2, 1fr); column-gap: 2.2rem; }
    .benefits-grid { grid-template-columns: repeat(2, 1fr); }
}

@media (min-width: 880px) {
    .hero__inner { grid-template-columns: 1.06fr .94fr; gap: 3rem; }
    .features__grid { grid-template-columns: repeat(4, 1fr); }
    .split__inner { grid-template-columns: 1fr 1fr; gap: 3.5rem; }
    .split--reverse .split__media { order: 2; }
    .team__grid { grid-template-columns: repeat(3, 1fr); }
    .product-grid { grid-template-columns: repeat(3, 1fr); }
    .benefits-grid { grid-template-columns: repeat(3, 1fr); }
    .contact__main { grid-template-columns: 1fr 1fr; }
    .site-footer__grid { grid-template-columns: 1.5fr 1fr 1fr 1.4fr; }
}

@media (min-width: 1280px) {
    :root { --container: 1180px; }
}

/* ----------------------------------------------------------------------------
   24. Reduced motion
---------------------------------------------------------------------------- */
@media (prefers-reduced-motion: reduce) {
    *, *::before, *::after { animation-duration: .001ms !important; animation-iteration-count: 1 !important; transition-duration: .001ms !important; scroll-behavior: auto !important; }
    html.js .reveal { opacity: 1 !important; transform: none !important; }
}
