/* صفحه اصلی API نت‌دونی */
:root {
    --ink: #0f1c24;
    --ink-soft: #1a2f3a;
    --paper: #f3efe6;
    --mist: rgba(243, 239, 230, 0.78);
    --accent: #d4a017;
    --accent-deep: #b8860b;
    --sea: #2a6f7f;
    --sea-bright: #3d8fa3;
    --line: rgba(243, 239, 230, 0.16);
    --shadow: 0 24px 60px rgba(0, 0, 0, 0.35);
    --font-brand: Georgia, "Times New Roman", serif;
    --font-body: Tahoma, "Segoe UI", sans-serif;
}

html {
    scroll-behavior: smooth;
}

body.home-api-page {
    margin: 0;
    padding: 0 !important;
    background: var(--ink);
    color: var(--paper);
    font-family: var(--font-body);
    direction: rtl;
    overflow-x: hidden;
}

body.home-api-page .navbar,
body.home-api-page .body-content > hr,
body.home-api-page footer {
    display: none !important;
}

body.home-api-page .body-content {
    padding: 0 !important;
    margin: 0 !important;
    width: 100%;
    max-width: none;
}

.nd-page {
    min-height: 100vh;
}

/* ===== Hero ===== */
.nd-hero {
    position: relative;
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 4rem 1.5rem;
    overflow: hidden;
    background:
        radial-gradient(ellipse 80% 60% at 20% 20%, rgba(61, 143, 163, 0.28), transparent 55%),
        radial-gradient(ellipse 70% 50% at 85% 75%, rgba(212, 160, 23, 0.18), transparent 50%),
        linear-gradient(160deg, #0a141a 0%, #132833 45%, #0f1c24 100%);
}

.nd-hero__glow {
    position: absolute;
    inset: 0;
    background:
        linear-gradient(180deg, transparent 60%, rgba(15, 28, 36, 0.85) 100%);
    pointer-events: none;
}

.nd-hero__staff {
    position: absolute;
    inset: 0;
    opacity: 0.12;
    background-image: repeating-linear-gradient(
        180deg,
        transparent 0,
        transparent 28px,
        rgba(243, 239, 230, 0.55) 28px,
        rgba(243, 239, 230, 0.55) 29px
    );
    mask-image: linear-gradient(90deg, transparent, #000 20%, #000 80%, transparent);
    animation: nd-staff-drift 18s linear infinite;
}

.nd-hero__note {
    position: absolute;
    font-family: var(--font-brand);
    color: var(--accent);
    opacity: 0.22;
    font-size: 2.4rem;
    animation: nd-float 7s ease-in-out infinite;
    pointer-events: none;
}

.nd-hero__note--1 { top: 18%; right: 12%; animation-delay: 0s; }
.nd-hero__note--2 { top: 62%; left: 14%; font-size: 1.8rem; animation-delay: 1.4s; }
.nd-hero__note--3 { top: 28%; left: 22%; font-size: 3rem; animation-delay: 2.2s; opacity: 0.15; }

.nd-hero__inner {
    position: relative;
    z-index: 2;
    width: min(720px, 100%);
    text-align: center;
}

.nd-brand {
    margin: 0 0 1.25rem;
    font-family: var(--font-brand);
    font-size: clamp(2.8rem, 8vw, 4.6rem);
    font-weight: 700;
    letter-spacing: 0.02em;
    line-height: 1.05;
    color: var(--paper);
    text-shadow: 0 8px 40px rgba(0, 0, 0, 0.45);
    animation: nd-rise 0.9s ease both;
}

.nd-brand span {
    display: block;
    margin-top: 0.35rem;
    font-size: 0.38em;
    font-family: var(--font-body);
    font-weight: 400;
    letter-spacing: 0.18em;
    color: var(--accent);
    text-transform: lowercase;
}

.nd-headline {
    margin: 0 0 0.85rem;
    font-size: clamp(1.15rem, 2.6vw, 1.45rem);
    font-weight: 400;
    line-height: 1.7;
    color: var(--mist);
    animation: nd-rise 0.9s ease 0.12s both;
}

.nd-support {
    margin: 0 auto 2rem;
    max-width: 34rem;
    font-size: 0.98rem;
    line-height: 1.9;
    color: rgba(243, 239, 230, 0.62);
    animation: nd-rise 0.9s ease 0.22s both;
}

.nd-cta {
    display: flex;
    flex-wrap: wrap;
    gap: 0.85rem;
    justify-content: center;
    animation: nd-rise 0.9s ease 0.32s both;
}

.nd-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    min-height: 3rem;
    padding: 0.7rem 1.45rem;
    border-radius: 999px;
    border: 1px solid transparent;
    font-family: var(--font-body);
    font-size: 0.95rem;
    text-decoration: none !important;
    transition: transform 0.2s ease, box-shadow 0.2s ease, background 0.2s ease, border-color 0.2s ease;
}

.nd-btn:hover,
.nd-btn:focus {
    transform: translateY(-2px);
    text-decoration: none !important;
}

.nd-btn--primary {
    background: linear-gradient(135deg, var(--accent) 0%, var(--accent-deep) 100%);
    color: #1a1405 !important;
    box-shadow: 0 10px 28px rgba(212, 160, 23, 0.28);
}

.nd-btn--primary:hover {
    box-shadow: 0 14px 36px rgba(212, 160, 23, 0.4);
    color: #1a1405 !important;
}

.nd-btn--ghost {
    background: rgba(243, 239, 230, 0.04);
    border-color: var(--line);
    color: var(--paper) !important;
    backdrop-filter: blur(6px);
}

.nd-btn--ghost:hover {
    border-color: rgba(212, 160, 23, 0.55);
    color: var(--accent) !important;
}

.nd-scroll {
    position: absolute;
    bottom: 1.6rem;
    left: 50%;
    transform: translateX(-50%);
    z-index: 2;
    color: rgba(243, 239, 230, 0.45);
    font-size: 0.8rem;
    letter-spacing: 0.08em;
    animation: nd-pulse 2.4s ease-in-out infinite;
}

/* ===== Steps ===== */
.nd-steps {
    position: relative;
    padding: 4.5rem 1.5rem 5rem;
    background:
        linear-gradient(180deg, #0f1c24 0%, #152832 100%);
}

.nd-steps__inner {
    width: min(880px, 100%);
    margin: 0 auto;
}

.nd-steps__title {
    margin: 0 0 0.6rem;
    font-family: var(--font-brand);
    font-size: clamp(1.6rem, 3.5vw, 2.1rem);
    color: var(--paper);
}

.nd-steps__lead {
    margin: 0 0 2.2rem;
    color: rgba(243, 239, 230, 0.58);
    line-height: 1.8;
    max-width: 36rem;
}

.nd-steps__list {
    list-style: none;
    margin: 0;
    padding: 0;
    display: grid;
    gap: 1rem;
}

.nd-steps__item {
    display: grid;
    grid-template-columns: auto 1fr;
    gap: 1rem;
    align-items: start;
    padding: 1.15rem 1.25rem;
    border: 1px solid var(--line);
    border-radius: 1rem;
    background: rgba(255, 255, 255, 0.03);
    transition: border-color 0.2s ease, background 0.2s ease;
}

.nd-steps__item:hover {
    border-color: rgba(61, 143, 163, 0.45);
    background: rgba(61, 143, 163, 0.08);
}

.nd-steps__num {
    width: 2.2rem;
    height: 2.2rem;
    border-radius: 50%;
    display: grid;
    place-items: center;
    background: rgba(212, 160, 23, 0.15);
    color: var(--accent);
    font-family: var(--font-brand);
    font-size: 1rem;
}

.nd-steps__text {
    margin: 0;
    line-height: 1.85;
    color: rgba(243, 239, 230, 0.82);
    font-size: 0.95rem;
}

.nd-steps__text code {
    padding: 0.1rem 0.4rem;
    border-radius: 0.35rem;
    background: rgba(212, 160, 23, 0.12);
    color: #f0d78c;
    font-size: 0.88em;
    direction: ltr;
    display: inline-block;
}

.nd-footer {
    padding: 1.5rem;
    text-align: center;
    border-top: 1px solid var(--line);
    color: rgba(243, 239, 230, 0.4);
    font-size: 0.85rem;
    background: #0c161c;
}

.nd-footer a {
    color: var(--sea-bright);
    text-decoration: none;
}

.nd-footer a:hover {
    color: var(--accent);
}

@keyframes nd-rise {
    from {
        opacity: 0;
        transform: translateY(18px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes nd-float {
    0%, 100% { transform: translateY(0); }
    50% { transform: translateY(-12px); }
}

@keyframes nd-staff-drift {
    from { background-position-y: 0; }
    to { background-position-y: 116px; }
}

@keyframes nd-pulse {
    0%, 100% { opacity: 0.35; }
    50% { opacity: 0.75; }
}

@media (max-width: 640px) {
    .nd-hero {
        padding: 5rem 1.1rem 4rem;
        align-items: flex-start;
        padding-top: 18vh;
    }

    .nd-cta {
        flex-direction: column;
    }

    .nd-btn {
        width: 100%;
    }

    .nd-scroll {
        display: none;
    }
}
