/* =========================================================
   NovinCode — صفحه اصلی
   Path: code/html-page/home/frontend.css
   پرفیکس: nkh- (home) + nk- (کامپوننت‌های مشترک)
   ========================================================= */

/* ---------- shared primitives ---------- */
.nk-section {
    padding: 96px 0;
    background: var(--alm-surface);
}

.nk-section--soft {
    background: var(--alm-bg);
}

.nk-section__head {
    max-width: 720px;
    margin: 0 auto 48px;
    text-align: center;
}

.nk-section__head--row {
    max-width: none;
    margin-inline: 0;
    display: flex;
    align-items: flex-end;
    justify-content: space-between;
    gap: 24px;
    text-align: right;
}

.nk-section__title {
    margin: 10px 0 0;
    font-size: clamp(24px, 3.4vw, 34px);
    font-weight: 800;
    color: var(--alm-ink);
    line-height: 1.4;
}

.nk-section__desc {
    margin: 14px 0 0;
    color: var(--alm-muted);
    font-size: 15px;
    line-height: 2;
}

.nk-eyebrow {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    margin: 0;
    color: var(--alm-primary);
    font-size: 13px;
    font-weight: 700;
}

.nk-eyebrow--dark {
    color: var(--alm-secondary);
}

.nk-eyebrow__dot {
    width: 7px;
    height: 7px;
    border-radius: 50%;
    background: currentColor;
    flex: 0 0 auto;
}

.nk-link-more {
    flex: 0 0 auto;
    color: var(--alm-primary);
    font-size: 14px;
    font-weight: 700;
    text-decoration: none;
    white-space: nowrap;
}

.nk-link-more:hover {
    color: var(--alm-primary-strong);
}

.nk-button {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    padding: 13px 26px;
    border: 0;
    border-radius: 12px;
    font: inherit;
    font-size: 14px;
    font-weight: 700;
    text-decoration: none !important;
    cursor: pointer;
    transition: transform var(--al-comment-transition-fast), box-shadow var(--al-comment-transition-fast), background var(--al-comment-transition-fast);
}

.nk-button--primary {
    background: var(--alm-primary);
    color: #fff !important;
    box-shadow: 0 8px 20px rgba(43, 92, 230, 0.28);
}

.nk-button--primary:hover {
    background: var(--alm-primary-strong);
    transform: translateY(-2px);
}

.nk-button--outline {
    background: #fff;
    color: var(--alm-primary) !important;
    border: 1.5px solid var(--alm-border-strong);
}

.nk-button--outline:hover {
    border-color: var(--alm-primary);
    background: var(--alm-primary-faint);
}

.nk-button--ghost {
    background: rgba(255, 255, 255, 0.08);
    color: #fff !important;
    border: 1.5px solid rgba(255, 255, 255, 0.28);
}

.nk-button--ghost:hover {
    background: rgba(255, 255, 255, 0.16);
}

.nk-card {
    background: #fff;
    border: 1px solid var(--alm-border);
    border-radius: 18px;
    padding: 28px 24px;
    transition: transform var(--al-comment-transition), box-shadow var(--al-comment-transition);
}

.nk-card:hover {
    transform: translateY(-4px);
    box-shadow: var(--al-comment-shadow-md);
}

.nk-card__icon {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 48px;
    height: 48px;
    border-radius: 14px;
    background: var(--alm-primary-soft);
    font-size: 22px;
    margin-bottom: 16px;
}

.nk-card__title {
    margin: 0 0 8px;
    font-size: 17px;
    font-weight: 800;
    color: var(--alm-ink);
}

.nk-card__text {
    margin: 0;
    color: var(--alm-muted);
    font-size: 14px;
    line-height: 2;
}

/* ---------- reveal animation ---------- */
@media (prefers-reduced-motion: no-preference) {
    .nk-reveal {
        opacity: 0;
        transform: translateY(18px);
        transition: opacity 0.5s ease calc(var(--nk-i, 0) * 90ms), transform 0.5s ease calc(var(--nk-i, 0) * 90ms);
    }

    .nk-reveal.is-visible {
        opacity: 1;
        transform: none;
    }
}

/* =========================================================
   HERO
   ========================================================= */
.nkh-hero {
    position: relative;
    overflow: hidden;
    background:
        radial-gradient(900px 420px at 85% -10%, rgba(43, 92, 230, 0.28), transparent 65%),
        linear-gradient(135deg, var(--alm-hero-from), var(--alm-hero-to));
    color: var(--alm-on-dark);
    padding: 96px 0 88px;
}

.nkh-hero__grid {
    position: absolute;
    inset: 0;
    background-image:
        linear-gradient(var(--alm-hero-grid) 1px, transparent 1px),
        linear-gradient(90deg, var(--alm-hero-grid) 1px, transparent 1px);
    background-size: 42px 42px;
    mask-image: radial-gradient(75% 75% at 50% 30%, #000 30%, transparent 100%);
    -webkit-mask-image: radial-gradient(75% 75% at 50% 30%, #000 30%, transparent 100%);
    pointer-events: none;
}

.nkh-hero__shell {
    position: relative;
    width: min(1180px, 100% - 32px);
    margin-inline: auto;
    display: grid;
    grid-template-columns: 1.05fr 0.95fr;
    gap: 56px;
    align-items: center;
}

.nkh-hero__title {
    margin: 16px 0 0;
    font-size: clamp(30px, 5vw, 52px);
    font-weight: 900;
    line-height: 1.35;
    color: #fff;
}

.nkh-hero__subtitle {
    margin: 18px 0 0;
    max-width: 480px;
    font-size: 16px;
    line-height: 2.1;
    color: var(--alm-on-dark-muted);
}

.nkh-hero__actions {
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
    margin-top: 30px;
}

.nkh-hero__chips {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin: 26px 0 0;
    padding: 0;
    list-style: none;
}

.nkh-hero__chips li {
    padding: 7px 14px;
    border-radius: 999px;
    background: rgba(255, 255, 255, 0.07);
    border: 1px solid rgba(255, 255, 255, 0.14);
    font-size: 12.5px;
    color: var(--alm-on-dark);
}

/* ----- mockup ----- */
.nkh-hero__media {
    min-width: 0;
}

.nkh-hero__image,
.nkh-hero__video {
    width: 100%;
    height: auto;
    border-radius: 20px;
    border: 1px solid rgba(255, 255, 255, 0.12);
    box-shadow: 0 30px 70px rgba(2, 6, 23, 0.55);
    display: block;
}

.nkh-hero__mockup {
    background: linear-gradient(180deg, rgba(255, 255, 255, 0.08), rgba(255, 255, 255, 0.03));
    border: 1px solid rgba(255, 255, 255, 0.14);
    border-radius: 20px;
    box-shadow: 0 30px 70px rgba(2, 6, 23, 0.55);
    overflow: hidden;
    transform: rotate(-1.5deg);
}

.nkh-hero__mockup-bar {
    display: flex;
    gap: 6px;
    padding: 12px 16px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

.nkh-hero__mockup-bar i {
    width: 10px;
    height: 10px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.25);
}

.nkh-hero__mockup-bar i:first-child {
    background: var(--alm-secondary);
}

.nkh-hero__mockup-body {
    display: grid;
    gap: 12px;
    padding: 22px;
}

.nkh-hero__mockup-line {
    height: 12px;
    border-radius: 999px;
    background: rgba(255, 255, 255, 0.16);
}

.nkh-hero__mockup-line--w60 { width: 62%; }
.nkh-hero__mockup-line--w40 { width: 42%; }

.nkh-hero__mockup-cards {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 10px;
    margin-top: 6px;
}

.nkh-hero__mockup-cards i {
    height: 64px;
    border-radius: 12px;
    background: linear-gradient(160deg, rgba(43, 92, 230, 0.5), rgba(0, 194, 168, 0.25));
    border: 1px solid rgba(255, 255, 255, 0.12);
}

.nkh-hero__mockup-code {
    direction: ltr;
    text-align: left;
    font-size: 12px;
    color: #7fe7d8;
    background: rgba(0, 0, 0, 0.35);
    border-radius: 10px;
    padding: 10px 12px;
    margin: 6px 0 0;
    font-family: Consolas, Monaco, monospace;
}

/* =========================================================
   TRUST STRIP
   ========================================================= */
.nkh-trust {
    background: var(--alm-primary-faint);
    border-bottom: 1px solid var(--alm-border);
}

.nkh-trust__list {
    width: min(1180px, 100% - 32px);
    margin: 0 auto;
    padding: 18px 0;
    list-style: none;
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 10px 34px;
}

.nkh-trust__item {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    color: var(--alm-ink-soft);
    font-size: 13.5px;
    font-weight: 600;
}

.nkh-trust__check {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 20px;
    height: 20px;
    border-radius: 50%;
    background: var(--alm-secondary);
    color: #fff;
    flex: 0 0 auto;
}

/* =========================================================
   WHY
   ========================================================= */
.nkh-why__grid {
    width: min(1180px, 100% - 32px);
    margin-inline: auto;
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 20px;
}

/* =========================================================
   PLANS
   ========================================================= */
.nkh-plans__grid {
    width: min(1180px, 100% - 32px);
    margin-inline: auto;
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 22px;
    align-items: stretch;
}

.nk-plan-card {
    position: relative;
    display: flex;
    flex-direction: column;
    background: #fff;
    border: 1px solid var(--alm-border);
    border-radius: 24px;
    padding: 32px 26px 28px;
    transition: transform var(--al-comment-transition), box-shadow var(--al-comment-transition), border-color var(--al-comment-transition);
}

.nk-plan-card:hover {
    transform: translateY(-5px);
    box-shadow: var(--al-comment-shadow-md);
}

.nk-plan-card--featured {
    border: 2px solid var(--alm-primary);
    box-shadow: 0 18px 44px rgba(43, 92, 230, 0.16);
}

.nk-plan-card__badge {
    position: absolute;
    top: -14px;
    inset-inline-start: 26px;
    background: var(--alm-secondary);
    color: #06241F;
    font-size: 12px;
    font-weight: 800;
    padding: 5px 14px;
    border-radius: 999px;
    box-shadow: 0 6px 14px rgba(0, 194, 168, 0.35);
}

.nk-plan-card__title {
    margin: 0;
    font-size: 18px;
    font-weight: 800;
    color: var(--alm-ink);
}

.nk-plan-card__price {
    display: flex;
    align-items: baseline;
    gap: 7px;
    margin: 18px 0 6px;
}

.nk-plan-card__price strong {
    font-size: 30px;
    font-weight: 900;
    color: var(--alm-primary);
    letter-spacing: -0.5px;
}

.nk-plan-card__price span {
    color: var(--alm-muted);
    font-size: 13px;
}

.nk-plan-card__price del {
    color: var(--alm-faint);
    font-size: 13px;
}

.nk-plan-card__items {
    list-style: none;
    margin: 16px 0 24px;
    padding: 0;
    display: grid;
    gap: 10px;
    flex: 1;
}

.nk-plan-card__items li {
    display: flex;
    align-items: flex-start;
    gap: 9px;
    color: var(--alm-ink-soft);
    font-size: 13.5px;
    line-height: 1.8;
}

.nk-plan-card__items span {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 19px;
    height: 19px;
    border-radius: 50%;
    background: var(--alm-secondary-soft);
    color: #046B5E;
    flex: 0 0 auto;
    margin-top: 4px;
}

.nk-plan-card .nk-button {
    width: 100%;
}

.nkh-plans__note {
    width: min(720px, 100% - 32px);
    margin: 28px auto 0;
    text-align: center;
    color: var(--alm-muted);
    font-size: 13.5px;
    line-height: 2;
}

.nkh-plans__actions {
    text-align: center;
    margin-top: 18px;
}

.nkh-plans__empty {
    grid-column: 1 / -1;
    text-align: center;
    color: var(--alm-muted);
    padding: 40px 0;
}

/* =========================================================
   PORTFOLIO
   ========================================================= */
.nkh-portfolio__grid {
    width: min(1180px, 100% - 32px);
    margin-inline: auto;
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 22px;
}

.nk-work-card,
.nk-post-card {
    display: flex;
    flex-direction: column;
    background: #fff;
    border: 1px solid var(--alm-border);
    border-radius: 18px;
    overflow: hidden;
    text-decoration: none !important;
    transition: transform var(--al-comment-transition), box-shadow var(--al-comment-transition);
}

.nk-work-card:hover,
.nk-post-card:hover {
    transform: translateY(-5px);
    box-shadow: var(--al-comment-shadow-md);
}

.nk-work-card__thumb,
.nk-post-card__thumb {
    display: block;
    aspect-ratio: 16 / 10;
    background: var(--alm-bg-soft);
    overflow: hidden;
}

.nk-work-card__thumb img,
.nk-post-card__thumb img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
    transition: transform 0.4s ease;
}

.nk-work-card:hover .nk-work-card__thumb img,
.nk-post-card:hover .nk-post-card__thumb img {
    transform: scale(1.04);
}

.nk-work-card__placeholder,
.nk-post-card__placeholder {
    display: flex;
    align-items: center;
    justify-content: center;
    height: 100%;
    font-size: 34px;
    opacity: 0.5;
}

.nk-work-card__body,
.nk-post-card__body {
    display: grid;
    gap: 6px;
    padding: 18px 20px 20px;
}

.nk-work-card__body small,
.nk-post-card__body small {
    color: var(--alm-primary);
    font-size: 12px;
    font-weight: 700;
}

.nk-work-card__body strong,
.nk-post-card__body strong {
    color: var(--alm-ink);
    font-size: 16px;
    line-height: 1.6;
}

.nk-work-card__body p {
    margin: 0;
    color: var(--alm-muted);
    font-size: 13px;
    line-height: 1.9;
}

.nk-post-card__body time {
    color: var(--alm-faint);
    font-size: 12px;
}

/* =========================================================
   PROCESS
   ========================================================= */
.nkh-process__timeline {
    width: min(1180px, 100% - 32px);
    margin-inline: auto;
    padding: 0;
    list-style: none;
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 22px;
    counter-reset: nk-step;
}

.nkh-process__step {
    position: relative;
    background: #fff;
    border: 1px solid var(--alm-border);
    border-radius: 18px;
    padding: 26px 22px;
}

.nkh-process__num {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 40px;
    height: 40px;
    border-radius: 13px;
    background: var(--alm-primary);
    color: #fff;
    font-weight: 900;
    font-size: 16px;
    margin-bottom: 14px;
    box-shadow: 0 8px 18px rgba(43, 92, 230, 0.3);
}

.nkh-process__step h3 {
    margin: 0 0 8px;
    font-size: 15.5px;
    font-weight: 800;
    color: var(--alm-ink);
}

.nkh-process__step p {
    margin: 0;
    color: var(--alm-muted);
    font-size: 13.5px;
    line-height: 1.95;
}

/* =========================================================
   BLOG
   ========================================================= */
.nkh-blog__grid {
    width: min(1180px, 100% - 32px);
    margin-inline: auto;
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 22px;
}

/* =========================================================
   FAQ
   ========================================================= */
.nkh-faq__list {
    width: min(780px, 100% - 32px);
    margin-inline: auto;
    display: grid;
    gap: 12px;
}

.nk-faq {
    background: #fff;
    border: 1px solid var(--alm-border);
    border-radius: 14px;
    overflow: hidden;
}

.nk-faq summary {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
    padding: 17px 20px;
    cursor: pointer;
    font-weight: 700;
    font-size: 14.5px;
    color: var(--alm-ink);
    list-style: none;
}

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

.nk-faq summary i {
    position: relative;
    flex: 0 0 auto;
    width: 22px;
    height: 22px;
    border-radius: 50%;
    background: var(--alm-primary-soft);
}

.nk-faq summary i::before,
.nk-faq summary i::after {
    content: "";
    position: absolute;
    inset: 0;
    margin: auto;
    background: var(--alm-primary);
    transition: transform 0.25s ease;
}

.nk-faq summary i::before {
    width: 10px;
    height: 2px;
    border-radius: 2px;
}

.nk-faq summary i::after {
    width: 2px;
    height: 10px;
    border-radius: 2px;
}

.nk-faq[open] summary i::after {
    transform: rotate(90deg);
}

.nk-faq__answer {
    padding: 0 20px 18px;
    color: var(--alm-muted);
    font-size: 13.5px;
    line-height: 2.05;
}

.nk-faq__answer p {
    margin: 0 0 8px;
}

.nk-faq__answer p:last-child {
    margin-bottom: 0;
}

.nkh-faq__actions {
    text-align: center;
    margin-top: 26px;
}

/* =========================================================
   CTA
   ========================================================= */
.nkh-cta__panel {
    position: relative;
    overflow: hidden;
    width: min(1180px, 100% - 32px);
    margin-inline: auto;
    text-align: center;
    padding: 64px 32px;
    border-radius: 28px;
    background:
        radial-gradient(600px 260px at 80% -20%, rgba(0, 194, 168, 0.25), transparent 60%),
        linear-gradient(135deg, var(--alm-hero-from), var(--alm-hero-to));
    color: var(--alm-on-dark);
}

.nkh-cta__title {
    margin: 12px 0 0;
    font-size: clamp(24px, 3.6vw, 36px);
    font-weight: 900;
    color: #fff;
}

.nkh-cta__text {
    max-width: 560px;
    margin: 14px auto 0;
    color: var(--alm-on-dark-muted);
    font-size: 15px;
    line-height: 2;
}

.nkh-cta__actions {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 12px;
    margin-top: 28px;
}

/* =========================================================
   RESPONSIVE
   ========================================================= */
@media (max-width: 1024px) {
    .nkh-hero__shell {
        grid-template-columns: 1fr;
        gap: 40px;
    }

    .nkh-hero__mockup {
        transform: none;
        max-width: 560px;
        margin-inline: auto;
    }

    .nkh-why__grid,
    .nkh-process__timeline {
        grid-template-columns: repeat(2, 1fr);
    }

    .nkh-plans__grid,
    .nkh-portfolio__grid,
    .nkh-blog__grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 640px) {
    .nk-section {
        padding: 60px 0;
    }

    .nkh-hero {
        padding: 64px 0 56px;
    }

    .nkh-hero__title {
        font-size: clamp(27px, 8vw, 34px);
    }

    .nkh-section__head--row {
        flex-direction: column;
        align-items: flex-start;
        gap: 10px;
    }

    .nkh-why__grid,
    .nkh-plans__grid,
    .nkh-portfolio__grid,
    .nkh-blog__grid,
    .nkh-process__timeline {
        grid-template-columns: 1fr;
    }

    .nk-section__head {
        margin-bottom: 34px;
    }

    .nkh-cta__panel {
        padding: 44px 20px;
        border-radius: 20px;
    }
}
