/* ═══════════════════════════════════════════
   ساختمان برتر — Marketing landing
   Palette: deep navy + cyan (logo) + warm amber accent
   ═══════════════════════════════════════════ */

:root {
    --home-ink: #07111f;
    --home-navy: #0b1c33;
    --home-blue: #1d4ed8;
    --home-cyan: #38bdf8;
    --home-cyan-soft: #7dd3fc;
    --home-amber: #f59e0b;
    --home-paper: #f4f7fb;
    --home-line: #d7e2ef;
    --home-muted: #5b6b7c;
    --home-text: #132033;
    --home-font: 'Vazirmatn', Tahoma, sans-serif;
}

body.home-page {
    font-family: var(--home-font);
    background: var(--home-paper);
    color: var(--home-text);
}
body.home-page main {
    margin-top: 0 !important;
    padding-bottom: 0;
}
body.home-page footer {
    margin-top: 0 !important;
    background: var(--home-ink);
    color: rgba(255, 255, 255, 0.55);
    border-top: none !important;
}

/* ── Top bar ─────────────────────────────── */
.home-topbar {
    position: sticky;
    top: 0;
    z-index: 50;
    background: rgba(7, 17, 31, 0.88);
    backdrop-filter: blur(12px);
    border-bottom: 1px solid rgba(125, 211, 252, 0.12);
}
.home-topbar-inner {
    display: flex;
    align-items: center;
    justify-content: space-between;
    min-height: 64px;
    gap: 1rem;
}
.home-topbar-brand .site-logo--nav {
    height: 40px;
    border-radius: 8px;
}
.home-topbar-nav {
    display: flex;
    align-items: center;
    gap: 0.35rem 1rem;
    flex-wrap: wrap;
    justify-content: flex-end;
}
.home-topbar-nav a {
    color: rgba(255, 255, 255, 0.78);
    text-decoration: none;
    font-size: 0.88rem;
    font-weight: 600;
    transition: color 0.2s;
}
.home-topbar-nav a:hover { color: #fff; }
.home-topbar-cta {
    background: var(--home-cyan);
    color: var(--home-ink) !important;
    padding: 0.45rem 0.9rem;
    border-radius: 8px;
    font-weight: 800 !important;
}
.home-topbar-cta:hover { background: var(--home-cyan-soft); }

@media (max-width: 640px) {
    .home-topbar-nav a:not(.home-topbar-cta):not(.home-topbar-link) {
        display: none;
    }
}

/* ── Hero ────────────────────────────────── */
.home-hero {
    position: relative;
    min-height: calc(100vh - 64px);
    min-height: calc(100dvh - 64px);
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
    background:
        radial-gradient(ellipse 80% 60% at 50% 20%, rgba(56, 189, 248, 0.18), transparent 55%),
        radial-gradient(ellipse 50% 40% at 15% 85%, rgba(29, 78, 216, 0.35), transparent 50%),
        radial-gradient(ellipse 45% 35% at 90% 70%, rgba(245, 158, 11, 0.08), transparent 45%),
        linear-gradient(165deg, #040a14 0%, #0b1c33 42%, #122a4a 100%);
    color: #fff;
    text-align: center;
    padding: 3rem 0 4.5rem;
}
.home-hero-atmosphere {
    position: absolute;
    inset: 0;
    background:
        repeating-linear-gradient(
            -18deg,
            transparent,
            transparent 40px,
            rgba(255, 255, 255, 0.015) 40px,
            rgba(255, 255, 255, 0.015) 41px
        );
    pointer-events: none;
}
.home-hero-grid {
    position: absolute;
    inset: -20% 0 0;
    background-image:
        linear-gradient(rgba(125, 211, 252, 0.05) 1px, transparent 1px),
        linear-gradient(90deg, rgba(125, 211, 252, 0.05) 1px, transparent 1px);
    background-size: 56px 56px;
    mask-image: radial-gradient(ellipse at center, #000 20%, transparent 72%);
    pointer-events: none;
    animation: home-grid-drift 28s linear infinite;
}
@keyframes home-grid-drift {
    from { transform: translateY(0); }
    to { transform: translateY(56px); }
}

.home-hero-inner {
    position: relative;
    z-index: 1;
    max-width: 820px;
}
.home-hero-brand {
    margin-bottom: 1.75rem;
}
.home-hero .site-logo--hero {
    height: clamp(168px, 34vw, 260px);
    width: auto;
    margin: 0 auto;
    border-radius: 22px;
    animation: home-logo-float 5.5s ease-in-out infinite;
}
@keyframes home-logo-float {
    0%, 100% { transform: translateY(0); }
    50% { transform: translateY(-10px); }
}

.home-hero-title {
    font-size: clamp(1.7rem, 4.2vw, 2.85rem);
    font-weight: 900;
    letter-spacing: -0.02em;
    line-height: 1.25;
    margin: 0 auto 1rem;
    max-width: 16ch;
}
.home-hero-lead {
    font-size: clamp(1rem, 2vw, 1.2rem);
    line-height: 1.8;
    color: rgba(226, 232, 240, 0.88);
    max-width: 34rem;
    margin: 0 auto 2rem;
}
.home-hero-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 0.75rem;
    justify-content: center;
}

.home-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 48px;
    padding: 0.7rem 1.35rem;
    border-radius: 10px;
    font-weight: 800;
    font-size: 0.95rem;
    text-decoration: none;
    border: none;
    cursor: pointer;
    transition: transform 0.2s, background 0.2s, color 0.2s;
}
.home-btn:hover { transform: translateY(-2px); }
.home-btn-primary {
    background: var(--home-cyan);
    color: var(--home-ink);
}
.home-btn-primary:hover {
    background: #fff;
    color: var(--home-ink);
}
.home-btn-ghost {
    background: transparent;
    color: #fff;
    border: 1.5px solid rgba(255, 255, 255, 0.35);
}
.home-btn-ghost:hover {
    border-color: #fff;
    color: #fff;
}

.home-hero-scroll {
    position: absolute;
    bottom: 1.25rem;
    left: 50%;
    transform: translateX(-50%);
    z-index: 1;
}
.home-hero-scroll span {
    display: block;
    width: 18px;
    height: 28px;
    border: 1.5px solid rgba(255, 255, 255, 0.35);
    border-radius: 10px;
    position: relative;
}
.home-hero-scroll span::after {
    content: '';
    position: absolute;
    top: 6px;
    left: 50%;
    width: 3px;
    height: 6px;
    margin-left: -1.5px;
    background: var(--home-cyan);
    border-radius: 2px;
    animation: home-scroll-dot 1.6s ease-in-out infinite;
}
@keyframes home-scroll-dot {
    0% { opacity: 1; transform: translateY(0); }
    100% { opacity: 0; transform: translateY(10px); }
}

/* ── Sections ────────────────────────────── */
.home-section {
    padding: 5rem 0;
}
.home-section-head {
    text-align: center;
    max-width: 560px;
    margin: 0 auto 3rem;
}
.home-section-head h2 {
    font-size: clamp(1.55rem, 3vw, 2.1rem);
    font-weight: 900;
    margin-bottom: 0.65rem;
    letter-spacing: -0.02em;
}
.home-section-head p {
    color: var(--home-muted);
    margin: 0;
    line-height: 1.75;
    font-size: 1.02rem;
}
.home-section-head-light h2,
.home-section-head-light p { color: #fff; }
.home-section-head-light p { opacity: 0.8; }

.home-kicker {
    display: block;
    font-size: 0.78rem;
    font-weight: 800;
    letter-spacing: 0.06em;
    color: var(--home-blue);
    margin-bottom: 0.55rem;
}

/* ── Panel showcase ──────────────────────── */
.home-panels {
    background: #fff;
}
.home-panel-showcase {
    display: grid;
    grid-template-columns: 1fr 1.15fr;
    gap: 2.5rem;
    align-items: center;
    margin-bottom: 4.5rem;
}
.home-panel-showcase-alt {
    grid-template-columns: 1.15fr 1fr;
}
.home-panel-showcase-alt .home-panel-copy { order: 2; }
.home-panel-showcase-alt .home-mock { order: 1; }

.home-panel-copy h3 {
    font-size: clamp(1.25rem, 2.4vw, 1.65rem);
    font-weight: 900;
    margin-bottom: 0.75rem;
    line-height: 1.4;
}
.home-panel-copy > p {
    color: var(--home-muted);
    line-height: 1.8;
    margin-bottom: 1.25rem;
}
.home-checklist {
    list-style: none;
    padding: 0;
    margin: 0;
    display: grid;
    gap: 0.55rem;
}
.home-checklist li {
    position: relative;
    padding-right: 1.5rem;
    font-size: 0.92rem;
    font-weight: 600;
    color: var(--home-text);
}
.home-checklist li::before {
    content: '';
    position: absolute;
    right: 0;
    top: 0.35rem;
    width: 0.7rem;
    height: 0.7rem;
    border-radius: 50%;
    background: linear-gradient(135deg, var(--home-cyan), var(--home-blue));
    box-shadow: inset 0 0 0 2px #fff;
}

@media (max-width: 991px) {
    .home-panel-showcase,
    .home-panel-showcase-alt {
        grid-template-columns: 1fr;
        gap: 1.75rem;
    }
    .home-panel-showcase-alt .home-panel-copy,
    .home-panel-showcase-alt .home-mock { order: unset; }
}

/* ── UI Mocks ────────────────────────────── */
.home-mock {
    background: #0f172a;
    border-radius: 16px;
    overflow: hidden;
    border: 1px solid rgba(125, 211, 252, 0.18);
    transform: perspective(1200px) rotateY(-4deg) rotateX(2deg);
    transition: transform 0.4s ease;
}
.home-panel-showcase-alt .home-mock {
    transform: perspective(1200px) rotateY(4deg) rotateX(2deg);
}
.home-mock:hover {
    transform: perspective(1200px) rotateY(0) rotateX(0);
}
.home-mock.compact {
    transform: none;
}
.home-mock-chrome {
    display: flex;
    align-items: center;
    gap: 6px;
    padding: 0.65rem 0.9rem;
    background: #1e293b;
    border-bottom: 1px solid rgba(255, 255, 255, 0.06);
}
.home-mock-chrome > span {
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background: #475569;
}
.home-mock-chrome > span:nth-child(1) { background: #f87171; }
.home-mock-chrome > span:nth-child(2) { background: #fbbf24; }
.home-mock-chrome > span:nth-child(3) { background: #34d399; }
.home-mock-url {
    margin-right: auto;
    font-size: 0.68rem;
    color: #94a3b8;
    background: rgba(0, 0, 0, 0.25);
    padding: 0.2rem 0.65rem;
    border-radius: 6px;
    direction: ltr;
    text-align: center;
    flex: 1;
    max-width: 260px;
}
.home-mock-body {
    display: grid;
    grid-template-columns: 132px 1fr;
    min-height: 280px;
    background: #f1f5f9;
}
.home-mock-body-mobile {
    grid-template-columns: 1fr;
    max-width: 320px;
    margin: 0 auto;
    width: 100%;
    min-height: 300px;
}
.home-mock-resident .home-mock-body {
    background: #eef2ff;
}
.home-mock-side {
    background: #fff;
    border-left: 1px solid var(--home-line);
    padding: 0.85rem 0.55rem;
    font-size: 0.72rem;
}
.home-mock-side.dark {
    background: #1e293b;
    border-left-color: rgba(255, 255, 255, 0.06);
    color: #94a3b8;
}
.hm-brand {
    font-weight: 800;
    font-size: 0.78rem;
    color: var(--home-blue);
    padding: 0.25rem 0.55rem 0.75rem;
}
.home-mock-side.dark .hm-brand { color: #fff; }
.hm-nav {
    padding: 0.4rem 0.55rem;
    border-radius: 6px;
    color: #64748b;
    margin-bottom: 2px;
}
.hm-nav.active {
    background: #eff6ff;
    color: var(--home-blue);
    font-weight: 700;
}
.home-mock-side.dark .hm-nav.active {
    background: rgba(56, 189, 248, 0.15);
    color: var(--home-cyan);
}
.home-mock-main {
    padding: 0.9rem;
}
.hm-title {
    font-weight: 800;
    font-size: 0.92rem;
    margin-bottom: 0.75rem;
    color: var(--home-text);
}
.hm-stats {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 0.4rem;
    margin-bottom: 0.75rem;
}
.hm-stats-2 { grid-template-columns: 1fr 1fr; }
.hm-stats-3 { grid-template-columns: 1fr 1fr 1fr; }
.hm-stat {
    background: #fff;
    border: 1px solid var(--home-line);
    border-radius: 8px;
    padding: 0.45rem;
    text-align: center;
}
.hm-stat strong {
    display: block;
    font-size: 0.85rem;
    font-weight: 900;
    color: var(--home-text);
}
.hm-stat span {
    font-size: 0.6rem;
    color: var(--home-muted);
}
.hm-stat.warn strong { color: #dc2626; }
.hm-stat.ok strong { color: #059669; }
.hm-rows { display: grid; gap: 0.35rem; }
.hm-row {
    display: flex;
    justify-content: space-between;
    align-items: center;
    background: #fff;
    border: 1px solid var(--home-line);
    border-radius: 8px;
    padding: 0.45rem 0.6rem;
    font-size: 0.72rem;
}
.hm-row em {
    font-style: normal;
    font-size: 0.62rem;
    font-weight: 700;
    color: var(--home-blue);
    background: #eff6ff;
    padding: 0.15rem 0.4rem;
    border-radius: 4px;
}
.hm-row em.hot {
    background: #fef2f2;
    color: #dc2626;
}
.hm-pay-banner {
    background: linear-gradient(90deg, #f59e0b, #fbbf24);
    color: #422006;
    font-size: 0.72rem;
    font-weight: 800;
    padding: 0.5rem 0.7rem;
    border-radius: 8px;
    margin-bottom: 0.65rem;
}
.hm-quick {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 0.4rem;
    margin-bottom: 0.65rem;
}
.hm-quick div {
    background: #fff;
    border: 1px solid var(--home-line);
    border-radius: 8px;
    text-align: center;
    padding: 0.55rem 0.25rem;
    font-size: 0.68rem;
    font-weight: 700;
    color: var(--home-blue);
}
.hm-chat-preview {
    margin-top: 0.65rem;
    display: grid;
    gap: 0.35rem;
}
.hm-chat-preview .bubble {
    font-size: 0.68rem;
    padding: 0.4rem 0.55rem;
    border-radius: 8px;
    max-width: 85%;
}
.hm-chat-preview .staff {
    background: #fff;
    border: 1px solid var(--home-line);
    justify-self: start;
}
.hm-chat-preview .guest {
    background: var(--home-blue);
    color: #fff;
    justify-self: end;
}

.home-panel-duo {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 1.75rem;
}
.home-duo-item h4 {
    font-weight: 900;
    margin: 1rem 0 0.35rem;
    font-size: 1.05rem;
}
.home-duo-item p {
    color: var(--home-muted);
    font-size: 0.9rem;
    margin: 0;
    line-height: 1.7;
}
@media (max-width: 768px) {
    .home-panel-duo { grid-template-columns: 1fr; }
    .home-mock-body { grid-template-columns: 100px 1fr; }
    .hm-stats { grid-template-columns: repeat(2, 1fr); }
}

/* ── Features ────────────────────────────── */
.home-features {
    background: var(--home-paper);
}
.home-feature-group {
    margin-bottom: 2.75rem;
}
.home-feature-group:last-child { margin-bottom: 0; }
.home-feature-group-title {
    margin-bottom: 1.25rem;
    padding-bottom: 0.75rem;
    border-bottom: 2px solid var(--home-line);
}
.home-feature-group-title h3 {
    font-size: 1.2rem;
    font-weight: 900;
    margin: 0 0 0.25rem;
}
.home-feature-group-title p {
    margin: 0;
    color: var(--home-muted);
    font-size: 0.9rem;
}
.home-feature-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 1.25rem 1.5rem;
}
.home-feature-item {
    display: flex;
    gap: 0.85rem;
    align-items: flex-start;
}
.home-feature-item i {
    flex-shrink: 0;
    width: 40px;
    height: 40px;
    border-radius: 10px;
    background: linear-gradient(145deg, #e0f2fe, #dbeafe);
    color: var(--home-blue);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.15rem;
}
.home-feature-item h4 {
    font-size: 0.92rem;
    font-weight: 800;
    margin: 0 0 0.25rem;
}
.home-feature-item p {
    margin: 0;
    font-size: 0.8rem;
    color: var(--home-muted);
    line-height: 1.65;
}
@media (max-width: 991px) {
    .home-feature-grid { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 576px) {
    .home-feature-grid { grid-template-columns: 1fr; }
}

/* ── Install ─────────────────────────────── */
.home-install {
    background:
        radial-gradient(ellipse at 20% 0%, rgba(56, 189, 248, 0.2), transparent 45%),
        linear-gradient(160deg, #07111f, #0f2744 55%, #12305a);
    color: #fff;
}
.home-platform-row {
    display: grid;
    grid-template-columns: repeat(5, 1fr);
    gap: 1rem;
    margin-bottom: 2.5rem;
}
.home-platform {
    text-align: center;
    padding: 1.25rem 0.75rem;
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 12px;
    background: rgba(255, 255, 255, 0.04);
}
.home-platform i {
    display: block;
    font-size: 1.85rem;
    color: var(--home-cyan);
    margin-bottom: 0.55rem;
}
.home-platform strong {
    display: block;
    font-size: 0.9rem;
    margin-bottom: 0.25rem;
}
.home-platform span {
    display: block;
    font-size: 0.7rem;
    opacity: 0.65;
    line-height: 1.5;
}
.home-install-cta {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 1.5rem;
    flex-wrap: wrap;
    padding: 1.75rem 2rem;
    border-radius: 14px;
    background: rgba(255, 255, 255, 0.06);
    border: 1px solid rgba(125, 211, 252, 0.2);
}
.home-install-cta h3 {
    font-weight: 900;
    font-size: 1.25rem;
    margin: 0 0 0.35rem;
}
.home-install-cta p {
    margin: 0;
    opacity: 0.75;
    font-size: 0.9rem;
    max-width: 36rem;
    line-height: 1.7;
}
@media (max-width: 991px) {
    .home-platform-row { grid-template-columns: repeat(3, 1fr); }
}
@media (max-width: 576px) {
    .home-platform-row { grid-template-columns: 1fr 1fr; }
    .home-install-cta { padding: 1.25rem; }
}

/* ── Final CTA ───────────────────────────── */
.home-final {
    background: #fff;
    padding: 5rem 0;
    text-align: center;
}
.home-final-inner {
    max-width: 560px;
}
.home-final-logo {
    margin: 0 auto 1.25rem;
    border-radius: 16px;
}
.home-final h2 {
    font-weight: 900;
    font-size: clamp(1.45rem, 3vw, 2rem);
    margin-bottom: 0.65rem;
}
.home-final p {
    color: var(--home-muted);
    margin-bottom: 1.75rem;
    line-height: 1.75;
}
.home-final .home-btn-ghost {
    color: var(--home-text);
    border-color: var(--home-line);
}
.home-final .home-btn-ghost:hover {
    border-color: var(--home-blue);
    color: var(--home-blue);
}

/* ── Reveal motion ───────────────────────── */
.home-reveal {
    opacity: 0;
    transform: translateY(22px);
    transition: opacity 0.7s ease, transform 0.7s ease;
}
.home-reveal.is-visible {
    opacity: 1;
    transform: none;
}
.home-reveal-delay-1 { transition-delay: 0.1s; }
.home-reveal-delay-2 { transition-delay: 0.2s; }
.home-reveal-delay-3 { transition-delay: 0.32s; }

@media (prefers-reduced-motion: reduce) {
    .home-reveal,
    .home-hero .site-logo--hero,
    .home-hero-grid,
    .home-hero-scroll span::after {
        animation: none !important;
        transition: none !important;
        opacity: 1 !important;
        transform: none !important;
    }
}

@media (max-width: 400px) {
    .home-platform-row {
        grid-template-columns: 1fr 1fr;
    }
    .home-mock-side {
        font-size: 0.65rem;
        padding: 0.55rem 0.3rem;
    }
    .hm-brand {
        font-size: 0.68rem;
        padding: 0.15rem 0.35rem 0.5rem;
    }
    .home-topbar-cta {
        padding: 0.4rem 0.65rem;
        font-size: 0.78rem;
    }
}

