.custom-page {
    --font-fa: "Vazirmatn", Tahoma, Arial, sans-serif;
    --font-en: "Poppins", "Vazirmatn", Arial, sans-serif;

    --custom-dark: #0f172a;
    --custom-text: #334155;
    --custom-muted: #64748b;

    --accent: #7DA78C;
    --accent-dark: #5f856b;
    --accent-soft: #eef7f1;
    --accent-softer: #f8fcf9;
    --accent-border: #c9dfd0;
    --accent-rgb: 125, 167, 140;

    --border: #e2e8f0;
    --card-shadow: 0 20px 55px rgba(15, 23, 42, 0.09);
    --card-shadow-hover: 0 30px 70px rgba(15, 23, 42, 0.15);

    width: 100%;
    min-height: 100vh;
    padding: 70px 18px;
    overflow: hidden;
    font-family: var(--font-fa);
    color: #1e293b;
    font-weight: 400;

    /* Background fixed: no page gradient */
    background: #fbfffc;

    -webkit-font-smoothing: antialiased;
    text-rendering: optimizeLegibility;
}

/* =========================================================
   ROOT / BODY / HEADER BACKGROUND FIX
   ========================================================= */

html,
body {
    background: #fbfffc;
}

.site-header {
    background: #fbfffc;
    border: none;
    box-shadow: none;
}

.site-header::before,
.site-header::after {
    display: none;
}

.custom-page ::selection {
    background: var(--accent-soft);
    color: var(--accent-dark);
}

/* Hero */

.custom-hero {
    position: relative;
    max-width: 1200px;
    margin: 0 auto 55px;
    padding: 85px 60px;
    background:
        radial-gradient(circle at top right, rgba(255, 255, 255, 0.75), transparent 30%),
        radial-gradient(circle at bottom left, rgba(255, 255, 255, 0.62), transparent 26%),
        linear-gradient(
            135deg,
            rgba(var(--accent-rgb), 0.26) 0%,
            rgba(var(--accent-rgb), 0.17) 48%,
            rgba(var(--accent-rgb), 0.08) 100%
        );
    border: 1px solid rgba(var(--accent-rgb), 0.28);
    border-radius: 36px;
    text-align: center;
    box-shadow: 0 28px 80px rgba(var(--accent-rgb), 0.16);
    overflow: hidden;
}

.custom-hero::before,
.custom-hero::after {
    content: "";
    position: absolute;
    border-radius: 999px;
    background: rgba(255, 255, 255, 0.58);
    filter: blur(2px);
    pointer-events: none;
}

.custom-hero::before {
    width: 170px;
    height: 170px;
    top: -55px;
    right: -35px;
}

.custom-hero::after {
    width: 120px;
    height: 120px;
    left: 70px;
    bottom: -40px;
}

.custom-hero-badge,
.custom-hero h1,
.custom-hero p {
    position: relative;
    z-index: 1;
}

.custom-hero-badge {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 9px 18px;
    margin-bottom: 22px;
    background: rgba(255, 255, 255, 0.88);
    color: var(--accent-dark);
    border: 1px solid var(--accent-border);
    border-radius: 14px;
    font-size: 15px;
    font-weight: 900;
    box-shadow: 0 10px 25px rgba(var(--accent-rgb), 0.16);
}

.custom-hero-badge::before {
    content: "";
    width: 8px;
    height: 8px;
    background: var(--accent);
    border-radius: 50%;
    box-shadow: 0 0 0 5px rgba(var(--accent-rgb), 0.14);
}

.custom-hero h1 {
    font-size: 52px;
    line-height: 1.25;
    margin: 0 0 25px;
    color: var(--custom-dark);
    font-weight: 900;
    letter-spacing: -1px;
}

.custom-hero p {
    font-size: 20px;
    line-height: 2.15;
    color: var(--custom-text);
    max-width: 850px;
    margin: 0 auto;
    font-weight: 500;
}

/* Tech Ticker */

.tech-news {
    max-width: 1200px;
    margin: 0 auto 70px;
    display: flex;
    align-items: center;
    gap: 28px;
}

.tech-news-title {
    flex-shrink: 0;
    font-size: 24px;
    font-weight: 900;
    color: var(--custom-dark);
    white-space: nowrap;
    padding-left: 28px;
    border-left: 2px solid rgba(var(--accent-rgb), 0.32);
}

.tech-ticker {
    flex: 1;
    min-width: 0;
    overflow: hidden;
    direction: ltr;
    padding: 18px 0;
    mask-image: linear-gradient(
        to right,
        transparent,
        #000 8%,
        #000 92%,
        transparent
    );
    -webkit-mask-image: linear-gradient(
        to right,
        transparent,
        #000 8%,
        #000 92%,
        transparent
    );
}

.tech-track {
    display: flex;
    align-items: center;
    gap: 42px;
    width: max-content;
    animation: techMove 35s linear infinite;
}

.tech-ticker:hover .tech-track {
    animation-play-state: paused;
}

.tech-item {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 12px;
    color: #111827;
    font-family: var(--font-en);
    font-size: 18px;
    font-weight: 800;
    white-space: nowrap;
    transition: 0.25s ease;
}

.tech-item:hover {
    transform: translateY(-4px) scale(1.03);
    color: var(--accent-dark);
}

.tech-item i {
    font-size: 42px;
    line-height: 1;
}

.tech-item .devicon-github-original {
    color: #111827;
}

@keyframes techMove {
    from {
        transform: translateX(0);
    }

    to {
        transform: translateX(-50%);
    }
}

/* Content */

.custom-content {
    max-width: 1000px;
    margin: 0 auto 80px;
    padding: 48px 42px;
    background:
        radial-gradient(circle at 0% 100%, rgba(var(--accent-rgb), 0.07), transparent 44%),
        rgba(255, 255, 255, 0.90);
    border: 1px solid rgba(var(--accent-rgb), 0.18);
    border-radius: 30px;
    box-shadow: var(--card-shadow);
    backdrop-filter: blur(14px);
}

.custom-content h2 {
    position: relative;
    font-size: 30px;
    line-height: 1.5;
    margin: 35px 0 18px;
    color: #111827;
    font-weight: 900;
    letter-spacing: -0.4px;
    padding-right: 16px;
}

.custom-content h2::before {
    content: "";
    position: absolute;
    right: 0;
    top: 12px;
    width: 5px;
    height: 26px;
    border-radius: 999px;
    background: var(--accent);
}

.custom-content h2:first-child {
    margin-top: 0;
}

.custom-content p {
    font-size: 18px;
    line-height: 2.25;
    color: var(--custom-text);
    margin: 0 0 20px;
}

.custom-content ul {
    list-style: none;
    padding: 0;
    margin: 0;
}

.custom-content li {
    position: relative;
    font-size: 18px;
    line-height: 2.15;
    color: var(--custom-text);
    padding-right: 34px;
}

.custom-content li::before {
    content: "✓";
    position: absolute;
    right: 0;
    top: 9px;
    width: 22px;
    height: 22px;
    border-radius: 999px;
    background: var(--accent);
    color: #ffffff;
    font-size: 13px;
    font-weight: 900;
    line-height: 22px;
    text-align: center;
}

/* Pricing */

.pricing-section {
    max-width: 1250px;
    margin: 0 auto 60px;
}

.pricing-header {
    position: relative;
    max-width: 900px;
    margin: 0 auto 50px;
    text-align: right;
}

.pricing-header span {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 9px 18px;
    background: var(--accent-soft);
    color: var(--accent-dark);
    border: 1px solid var(--accent-border);
    border-radius: 14px;
    font-size: 15px;
    font-weight: 900;
    margin-bottom: 18px;
    box-shadow: 0 10px 25px rgba(var(--accent-rgb), 0.14);
}

.pricing-header span::before {
    content: "";
    width: 8px;
    height: 8px;
    background: var(--accent);
    border-radius: 50%;
    box-shadow: 0 0 0 5px rgba(var(--accent-rgb), 0.14);
}

.pricing-header h2 {
    font-size: 42px;
    line-height: 1.35;
    margin: 0 0 18px;
    color: var(--custom-dark);
    font-weight: 900;
    letter-spacing: -0.8px;
}

.pricing-header p {
    max-width: 760px;
    margin: 0;
    font-size: 18px;
    line-height: 2;
    color: #475569;
}

.pricing-cards {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 26px;
    align-items: stretch;
}

.price-card {
    position: relative;
    background:
        radial-gradient(circle at 0% 100%, rgba(var(--accent-rgb), 0.08), transparent 46%),
        rgba(255, 255, 255, 0.96);
    border: 1px solid rgba(var(--accent-rgb), 0.18);
    border-radius: 30px;
    padding: 34px 28px;
    box-shadow: var(--card-shadow);
    transition: 0.3s ease;
    overflow: hidden;
}

.price-card::before {
    content: "";
    position: absolute;
    inset: 0;
    background: linear-gradient(135deg, rgba(var(--accent-rgb), 0.10), transparent 42%);
    opacity: 0;
    transition: 0.3s ease;
    pointer-events: none;
}

.price-card:hover {
    transform: translateY(-8px);
    box-shadow: var(--card-shadow-hover);
    border-color: rgba(var(--accent-rgb), 0.45);
}

.price-card:hover::before {
    opacity: 1;
}

.price-card.featured {
    background:
        radial-gradient(circle at top left, rgba(var(--accent-rgb), 0.32), transparent 34%),
        linear-gradient(180deg, #243328 0%, #111b15 100%);
    color: #ffffff;
    border-color: rgba(var(--accent-rgb), 0.65);
    transform: translateY(-16px);
}

.price-card.featured:hover {
    transform: translateY(-24px);
    border-color: rgba(var(--accent-rgb), 0.80);
}

.popular-badge {
    position: absolute;
    top: 18px;
    left: 22px;
    padding: 8px 18px;
    background: var(--accent);
    color: #ffffff;
    border-radius: 999px;
    font-size: 14px;
    font-weight: 900;
    box-shadow: 0 10px 24px rgba(var(--accent-rgb), 0.30);
}

.price-card-head h3 {
    font-size: 26px;
    line-height: 1.45;
    margin: 0 0 14px;
    color: var(--custom-dark);
    font-weight: 900;
    letter-spacing: -0.4px;
}

.price-card.featured .price-card-head h3 {
    color: #ffffff;
    padding-left: 95px;
}

.price-card-head p {
    font-size: 16px;
    line-height: 1.9;
    color: var(--custom-muted);
    margin: 0;
    min-height: 60px;
}

.price-card.featured .price-card-head p {
    color: #d9eadf;
}

.price-box {
    margin: 28px 0;
    padding: 22px;
    background: var(--accent-softer);
    border-radius: 24px;
    border: 1px solid var(--accent-border);
}

.price-card.featured .price-box {
    background: rgba(255, 255, 255, 0.08);
    border-color: rgba(255, 255, 255, 0.16);
}

.price-box span {
    display: block;
    font-size: 15px;
    color: var(--custom-muted);
    margin-bottom: 8px;
    font-weight: 600;
}

.price-card.featured .price-box span {
    color: #d9eadf;
}

.price-box strong {
    display: block;
    font-size: 28px;
    line-height: 1.45;
    color: var(--accent-dark);
    font-weight: 900;
}

.price-card.featured .price-box strong {
    color: #c9dfd0;
}

.price-card ul {
    list-style: none;
    padding: 0;
    margin: 0;
}

.price-card li {
    position: relative;
    padding-right: 30px;
    margin-bottom: 16px;
    font-size: 16px;
    line-height: 1.85;
    color: var(--custom-text);
}

.price-card.featured li {
    color: #eef7f1;
}

.price-card li::before {
    content: "✓";
    position: absolute;
    right: 0;
    top: 4px;
    width: 21px;
    height: 21px;
    background: var(--accent-soft);
    color: var(--accent-dark);
    border-radius: 50%;
    font-size: 13px;
    line-height: 21px;
    text-align: center;
    font-weight: 900;
}

.price-card.featured li::before {
    background: #c9dfd0;
    color: #243328;
}

.pricing-note {
    max-width: 850px;
    margin: 35px auto 0;
    padding: 20px 26px;
    background: #fff7ed;
    color: #9a3412;
    border: 1px solid #fed7aa;
    border-radius: 20px;
    font-size: 17px;
    line-height: 2;
    text-align: center;
    font-weight: 500;
}

.page-actions {
    text-align: center;
}

.back-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    margin-top: 10px;
    padding: 15px 30px;
    background: linear-gradient(135deg, var(--accent), var(--accent-dark));
    color: #ffffff;
    text-decoration: none;
    border-radius: 16px;
    font-size: 17px;
    font-weight: 800;
    box-shadow: 0 16px 35px rgba(var(--accent-rgb), 0.28);
    transition: 0.3s ease;
}

.back-btn:hover {
    transform: translateY(-4px);
    box-shadow: 0 22px 46px rgba(var(--accent-rgb), 0.36);
}

/* Footer connection */

.site-footer {
    background: #fbfffc;
    margin-top: 0;
    border-top: none;
    box-shadow: none;
}

.footer-shell,
.footer-morph-strip,
.footer-morph-inner {
    background: transparent;
    border: none;
    box-shadow: none;
}

/* Responsive */

@media (max-width: 1000px) {
    .pricing-cards {
        grid-template-columns: 1fr;
        max-width: 620px;
        margin: 0 auto;
    }

    .price-card.featured {
        transform: none;
    }

    .price-card.featured:hover {
        transform: translateY(-8px);
    }
}

@media (max-width: 900px) {
    .tech-news {
        flex-direction: column;
        align-items: stretch;
        gap: 18px;
        margin-bottom: 50px;
    }

    .tech-news-title {
        text-align: center;
        padding-left: 0;
        border-left: none;
        font-size: 21px;
        white-space: normal;
    }
}

@media (max-width: 768px) {
    .custom-page {
        padding: 40px 14px;
    }

    .custom-hero {
        padding: 58px 24px;
        margin-bottom: 40px;
        border-radius: 28px;
    }

    .custom-hero h1 {
        font-size: 36px;
    }

    .custom-hero p {
        font-size: 17px;
        line-height: 2.05;
    }

    .custom-hero-badge {
        font-size: 14px;
    }

    .tech-track {
        gap: 34px;
        animation-duration: 28s;
    }

    .tech-item {
        font-size: 15px;
        gap: 9px;
    }

    .tech-item i {
        font-size: 34px;
    }

    .custom-content {
        padding: 35px 22px;
        margin-bottom: 60px;
        border-radius: 24px;
    }

    .custom-content h2 {
        font-size: 25px;
    }

    .custom-content p,
    .custom-content li {
        font-size: 16px;
    }

    .pricing-header {
        text-align: center;
        margin-bottom: 40px;
    }

    .pricing-header span {
        margin-left: auto;
        margin-right: auto;
    }

    .pricing-header h2 {
        font-size: 31px;
    }

    .pricing-header p {
        margin: 0 auto;
        font-size: 16px;
    }

    .price-card {
        padding: 30px 22px;
        border-radius: 26px;
    }

    .popular-badge {
        position: static;
        display: inline-block;
        margin-bottom: 18px;
    }

    .price-card.featured .price-card-head h3 {
        padding-left: 0;
    }

    .price-card-head h3 {
        font-size: 23px;
    }

    .price-box strong {
        font-size: 24px;
    }

    .pricing-note {
        font-size: 15px;
        padding: 18px;
    }
}

@media (max-width: 480px) {
    .custom-hero h1 {
        font-size: 31px;
    }

    .pricing-header h2 {
        font-size: 27px;
    }

    .price-box {
        padding: 18px;
    }

    .back-btn {
        width: 100%;
    }
}

@media (prefers-reduced-motion: reduce) {
    .custom-page,
    .custom-page * {
        scroll-behavior: auto;
    }

    .tech-track {
        animation: none;
    }

    .price-card,
    .back-btn,
    .tech-item {
        transition: none;
    }
}