/* ═══════════════════════════════════════════════════════
   BlueCoffeeNet — Homepage CSS (Modern Minimal)
   ═══════════════════════════════════════════════════════ */

/* ═══ متغیرها ═══ */
:root {
    --hp-primary: #2563eb;
    --hp-primary-dark: #1d4ed8;
    --hp-primary-light: #3b82f6;
    --hp-accent: #06b6d4;
    --hp-accent-light: #22d3ee;
    --hp-bg: #f8fafc;
    --hp-bg-alt: #ffffff;
    --hp-text: #0f172a;
    --hp-text-muted: #64748b;
    --hp-border: #e2e8f0;
    --hp-radius: 16px;
    --hp-radius-lg: 24px;
    --hp-shadow: 0 4px 20px rgba(15, 23, 42, 0.06);
    --hp-shadow-hover: 0 20px 40px -12px rgba(37, 99, 235, 0.2);
    --hp-transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

/* ═══ Reset جزئی ═══ */
.hp-section {
    padding: 80px 0;
    position: relative;
    overflow: hidden;
}

.hp-section-alt {
    background: linear-gradient(180deg, #f8fafc 0%, #ffffff 100%);
}

.hp-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
    position: relative;
    z-index: 2;
}

.hp-section-title {
    font-size: clamp(24px, 4vw, 40px);
    font-weight: 800;
    color: var(--hp-text);
    text-align: center;
    margin: 0 0 12px;
    line-height: 1.3;
}

.hp-section-subtitle {
    font-size: clamp(14px, 2vw, 18px);
    color: var(--hp-text-muted);
    text-align: center;
    margin: 0 0 50px;
    line-height: 1.9;
    max-width: 700px;
    margin-left: auto;
    margin-right: auto;
}

/* ═══════════════════════════════════════════════════════
   ۱. HERO — انیمیشن CSS خودکفا
   ═══════════════════════════════════════════════════════ */
.hp-hero {
    position: relative;
    min-height: 92vh;
    min-height: 92dvh;
    display: flex;
    align-items: center;
    justify-content: center;
    background: #030d26;
    overflow: hidden;
    padding: 100px 20px 60px;
}

/* گرادیانت مش متحرک */
.hp-hero-bg {
    position: absolute;
    inset: -20%;
    filter: blur(90px);
    opacity: 0.85;
    pointer-events: none;
}

.hp-hero-bg i {
    position: absolute;
    display: block;
    border-radius: 50%;
    mix-blend-mode: screen;
}

.hp-hero-bg .m1 {
    width: 46%;
    aspect-ratio: 1;
    background: #1152ff;
    left: 6%;
    top: 2%;
    animation: hpM1 18s ease-in-out infinite;
}

.hp-hero-bg .m2 {
    width: 40%;
    aspect-ratio: 1;
    background: #00d4ff;
    right: 4%;
    top: 18%;
    animation: hpM2 22s ease-in-out infinite;
}

.hp-hero-bg .m3 {
    width: 34%;
    aspect-ratio: 1;
    background: #2b7bff;
    left: 28%;
    bottom: -6%;
    animation: hpM3 26s ease-in-out infinite;
}

.hp-hero-bg .m4 {
    width: 22%;
    aspect-ratio: 1;
    background: #7df0ff;
    right: 26%;
    bottom: 4%;
    opacity: 0.5;
    animation: hpM2 19s ease-in-out infinite reverse;
}

@keyframes hpM1 {
    0%, 100% { transform: translate3d(0,0,0) scale(1); }
    50% { transform: translate3d(7%, 8%, 0) scale(1.12); }
}

@keyframes hpM2 {
    0%, 100% { transform: translate3d(0,0,0) scale(1.05); }
    50% { transform: translate3d(-8%, 6%, 0) scale(0.92); }
}

@keyframes hpM3 {
    0%, 100% { transform: translate3d(0,0,0) scale(1); }
    50% { transform: translate3d(6%, -7%, 0) scale(1.15); }
}

/* ویگنت */
.hp-hero::after {
    content: "";
    position: absolute;
    inset: 0;
    background: radial-gradient(75% 70% at 50% 45%, rgba(3,13,38,0) 0%, rgba(2,8,24,0.55) 70%, rgba(2,6,20,0.92) 100%);
    pointer-events: none;
}

/* ذرات شناور */
.hp-hero-particles {
    position: absolute;
    inset: 0;
    pointer-events: none;
    z-index: 1;
}

.hp-hero-particles i {
    position: absolute;
    color: rgba(255, 255, 255, 0.15);
    font-size: 20px;
    animation: hpFloat 8s ease-in-out infinite;
}

.hp-hero-particles i:nth-child(1) { top: 15%; left: 8%; font-size: 32px; animation-delay: 0s; }
.hp-hero-particles i:nth-child(2) { top: 25%; right: 12%; font-size: 28px; animation-delay: 1s; }
.hp-hero-particles i:nth-child(3) { bottom: 20%; left: 15%; font-size: 24px; animation-delay: 2s; }
.hp-hero-particles i:nth-child(4) { bottom: 30%; right: 8%; font-size: 36px; animation-delay: 3s; }
.hp-hero-particles i:nth-child(5) { top: 50%; left: 5%; font-size: 20px; animation-delay: 4s; }
.hp-hero-particles i:nth-child(6) { top: 60%; right: 5%; font-size: 26px; animation-delay: 5s; }

@keyframes hpFloat {
    0%, 100% { transform: translateY(0) rotate(0deg); }
    50% { transform: translateY(-30px) rotate(15deg); }
}

/* محتوای hero */
.hp-hero-content {
    position: relative;
    z-index: 3;
    text-align: center;
    max-width: 900px;
    margin: 0 auto;
    color: #fff;
    animation: hpFadeUp 1s ease-out;
}

@keyframes hpFadeUp {
    from { opacity: 0; transform: translateY(30px); }
    to { opacity: 1; transform: translateY(0); }
}

.hp-hero-logo {
    display: inline-flex;
    align-items: center;
    gap: 12px;
    background: rgba(255, 255, 255, 0.1);
    border: 1px solid rgba(255, 255, 255, 0.2);
    backdrop-filter: blur(12px);
    padding: 10px 24px;
    border-radius: 50px;
    font-size: 14px;
    font-weight: 700;
    margin-bottom: 30px;
    animation: hpPulse 3s ease-in-out infinite;
}

@keyframes hpPulse {
    0%, 100% { transform: scale(1); box-shadow: 0 0 0 0 rgba(37, 99, 235, 0.4); }
    50% { transform: scale(1.02); box-shadow: 0 0 30px 5px rgba(37, 99, 235, 0.3); }
}

.hp-hero-logo i {
    color: #22d3ee;
    font-size: 18px;
}

.hp-hero-title {
    font-size: clamp(28px, 5vw, 56px);
    font-weight: 900;
    line-height: 1.3;
    margin: 0 0 24px;
    color: #fff;
    text-shadow: 0 4px 30px rgba(0, 0, 0, 0.5);
    letter-spacing: -0.02em;
}

.hp-hero-title .gradient {
    background: linear-gradient(135deg, #60a5fa, #22d3ee);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.hp-hero-desc {
    font-size: clamp(14px, 2.2vw, 19px);
    line-height: 1.9;
    color: #cbd5e1;
    margin: 0 0 40px;
    max-width: 700px;
    margin-left: auto;
    margin-right: auto;
}

.hp-hero-buttons {
    display: flex;
    gap: 14px;
    justify-content: center;
    flex-wrap: wrap;
}

.hp-btn {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 15px 36px;
    border-radius: 12px;
    font-size: 15px;
    font-weight: 700;
    text-decoration: none;
    transition: var(--hp-transition);
    cursor: pointer;
    border: 0;
    font-family: inherit;
}

.hp-btn-primary {
    background: linear-gradient(135deg, #3b82f6, #2563eb);
    color: #fff;
    box-shadow: 0 10px 30px -5px rgba(37, 99, 235, 0.5);
}

.hp-btn-primary:hover {
    transform: translateY(-3px);
    box-shadow: 0 20px 40px -8px rgba(37, 99, 235, 0.6);
}

.hp-btn-ghost {
    background: rgba(255, 255, 255, 0.1);
    color: #fff;
    border: 1px solid rgba(255, 255, 255, 0.25);
    backdrop-filter: blur(10px);
}

.hp-btn-ghost:hover {
    background: rgba(255, 255, 255, 0.2);
    transform: translateY(-3px);
}

/* اسکرول indicator */
.hp-hero-scroll {
    position: absolute;
    bottom: 30px;
    left: 50%;
    transform: translateX(-50%);
    color: rgba(255, 255, 255, 0.5);
    font-size: 24px;
    animation: hpScroll 2s ease-in-out infinite;
    z-index: 3;
}

@keyframes hpScroll {
    0%, 100% { transform: translateX(-50%) translateY(0); }
    50% { transform: translateX(-50%) translateY(10px); }
}

/* ═══════════════════════════════════════════════════════
   ۲. STATS
   ═══════════════════════════════════════════════════════ */
.hp-stats {
    background: linear-gradient(180deg, #f8fafc 0%, #ffffff 100%);
}

.hp-stats-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 24px;
    max-width: 900px;
    margin: 0 auto;
}

.hp-stat-card {
    background: #fff;
    border: 1px solid var(--hp-border);
    border-radius: var(--hp-radius-lg);
    padding: 40px 24px;
    text-align: center;
    transition: var(--hp-transition);
    position: relative;
    overflow: hidden;
    box-shadow: var(--hp-shadow);
}

.hp-stat-card::before {
    content: "";
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 4px;
    background: linear-gradient(90deg, var(--hp-primary), var(--hp-accent));
    transform: scaleX(0);
    transform-origin: center;
    transition: transform 0.4s ease;
}

.hp-stat-card:hover::before {
    transform: scaleX(1);
}

.hp-stat-card:hover {
    transform: translateY(-8px);
    box-shadow: var(--hp-shadow-hover);
    border-color: rgba(37, 99, 235, 0.2);
}

.hp-stat-icon {
    width: 72px;
    height: 72px;
    border-radius: 20px;
    background: linear-gradient(135deg, #dbeafe, #eff6ff);
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 20px;
    color: var(--hp-primary);
    font-size: 30px;
    transition: var(--hp-transition);
}

.hp-stat-card:hover .hp-stat-icon {
    transform: scale(1.1) rotate(-5deg);
    background: linear-gradient(135deg, #bfdbfe, #dbeafe);
}

.hp-stat-value {
    font-size: clamp(32px, 5vw, 44px);
    font-weight: 900;
    color: var(--hp-primary-dark);
    margin: 0 0 8px;
    line-height: 1;
    letter-spacing: -1.5px;
}

.hp-stat-label {
    font-size: 14px;
    color: var(--hp-text-muted);
    font-weight: 600;
    margin: 0;
}

/* ═══════════════════════════════════════════════════════
   ۳. SERVICES
   ═══════════════════════════════════════════════════════ */
.hp-services {
    background: var(--hp-bg-alt);
}

.hp-services-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
    gap: 20px;
}

.hp-service-card {
    background: #fff;
    border: 1px solid var(--hp-border);
    border-radius: var(--hp-radius);
    padding: 24px;
    transition: var(--hp-transition);
    text-decoration: none;
    color: inherit;
    display: flex;
    flex-direction: column;
    gap: 14px;
    position: relative;
    overflow: hidden;
}

.hp-service-card::before {
    content: "";
    position: absolute;
    inset: 0;
    background: linear-gradient(135deg, rgba(37, 99, 235, 0.03), rgba(6, 182, 212, 0.03));
    opacity: 0;
    transition: opacity 0.3s;
}

.hp-service-card:hover {
    transform: translateY(-5px);
    box-shadow: var(--hp-shadow-hover);
    border-color: rgba(37, 99, 235, 0.3);
}

.hp-service-card:hover::before {
    opacity: 1;
}

.hp-service-icon {
    width: 56px;
    height: 56px;
    border-radius: 14px;
    background: linear-gradient(135deg, #dbeafe, #eff6ff);
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--hp-primary);
    font-size: 24px;
    transition: var(--hp-transition);
    flex-shrink: 0;
}

.hp-service-card:hover .hp-service-icon {
    background: linear-gradient(135deg, var(--hp-primary), var(--hp-accent));
    color: #fff;
    transform: scale(1.1) rotate(-5deg);
}

.hp-service-title {
    font-size: 15px;
    font-weight: 700;
    color: var(--hp-text);
    margin: 0;
    line-height: 1.6;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
    position: relative;
    z-index: 1;
}

.hp-service-desc {
    font-size: 13px;
    color: var(--hp-text-muted);
    line-height: 1.7;
    margin: 0;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
    position: relative;
    z-index: 1;
}

.hp-service-footer {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-top: auto;
    padding-top: 14px;
    border-top: 1px solid var(--hp-border);
    position: relative;
    z-index: 1;
}

.hp-service-price {
    font-size: 15px;
    font-weight: 800;
    color: var(--hp-primary-dark);
}

.hp-service-arrow {
    color: var(--hp-primary);
    font-size: 14px;
    transition: var(--hp-transition);
}

.hp-service-card:hover .hp-service-arrow {
    transform: translateX(-5px);
}

.hp-services-more {
    text-align: center;
    margin-top: 40px;
}

.hp-services-more a {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 14px 32px;
    background: var(--hp-primary);
    color: #fff;
    text-decoration: none;
    border-radius: 12px;
    font-weight: 700;
    font-size: 14px;
    transition: var(--hp-transition);
}

.hp-services-more a:hover {
    background: var(--hp-primary-dark);
    transform: translateY(-3px);
    box-shadow: var(--hp-shadow-hover);
}

/* ═══════════════════════════════════════════════════════
   ۴. WHY US
   ═══════════════════════════════════════════════════════ */
.hp-why {
    background: linear-gradient(180deg, #f8fafc 0%, #ffffff 100%);
}

.hp-why-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
    gap: 24px;
}

.hp-why-card {
    background: #fff;
    border: 1px solid var(--hp-border);
    border-radius: var(--hp-radius-lg);
    padding: 36px 28px;
    text-align: center;
    transition: var(--hp-transition);
}

.hp-why-card:hover {
    transform: translateY(-8px);
    box-shadow: var(--hp-shadow-hover);
}

.hp-why-icon {
    width: 80px;
    height: 80px;
    border-radius: 22px;
    background: linear-gradient(135deg, var(--hp-primary), var(--hp-accent));
    display: flex;
    align-items: center;
    justify-content: center;
    color: #fff;
    font-size: 32px;
    margin: 0 auto 22px;
    box-shadow: 0 12px 30px -8px rgba(37, 99, 235, 0.4);
}

.hp-why-title {
    font-size: 18px;
    font-weight: 800;
    color: var(--hp-text);
    margin: 0 0 10px;
}

.hp-why-desc {
    font-size: 14px;
    color: var(--hp-text-muted);
    line-height: 1.9;
    margin: 0;
}

/* ═══════════════════════════════════════════════════════
   ۵. APP PROMO
   ═══════════════════════════════════════════════════════ */
.hp-app {
    background: linear-gradient(135deg, #0f172a 0%, #1e293b 100%);
    color: #fff;
    position: relative;
    overflow: hidden;
}

.hp-app::before {
    content: "";
    position: absolute;
    top: -50%;
    right: -20%;
    width: 60%;
    aspect-ratio: 1;
    background: radial-gradient(circle, rgba(37, 99, 235, 0.3), transparent 70%);
    pointer-events: none;
}

.hp-app-inner {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 60px;
    align-items: center;
    position: relative;
    z-index: 2;
}

.hp-app-text {
    color: #fff;
}

.hp-app-badge {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    background: rgba(34, 211, 238, 0.15);
    border: 1px solid rgba(34, 211, 238, 0.3);
    color: #22d3ee;
    padding: 8px 16px;
    border-radius: 50px;
    font-size: 13px;
    font-weight: 700;
    margin-bottom: 20px;
}

.hp-app-title {
    font-size: clamp(24px, 4vw, 40px);
    font-weight: 900;
    line-height: 1.4;
    margin: 0 0 18px;
    color: #fff;
}

.hp-app-desc {
    font-size: clamp(14px, 2vw, 17px);
    line-height: 1.9;
    color: #cbd5e1;
    margin: 0 0 30px;
}

.hp-app-features {
    display: flex;
    gap: 20px;
    flex-wrap: wrap;
    margin-bottom: 30px;
}

.hp-app-feature {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 14px;
    color: #e2e8f0;
}

.hp-app-feature i {
    color: #22d3ee;
}

.hp-app-download {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    background: linear-gradient(135deg, #3b82f6, #2563eb);
    color: #fff;
    padding: 15px 32px;
    border-radius: 12px;
    text-decoration: none;
    font-weight: 700;
    font-size: 15px;
    transition: var(--hp-transition);
    box-shadow: 0 10px 30px -5px rgba(37, 99, 235, 0.5);
}

.hp-app-download:hover {
    transform: translateY(-3px);
    box-shadow: 0 20px 40px -8px rgba(37, 99, 235, 0.6);
}

.hp-app-mockup {
    display: flex;
    justify-content: center;
    align-items: center;
}

.hp-app-phone {
    width: 240px;
    height: 480px;
    background: linear-gradient(135deg, #1e293b, #0f172a);
    border-radius: 32px;
    border: 6px solid #334155;
    position: relative;
    overflow: hidden;
    box-shadow: 0 30px 60px -15px rgba(0, 0, 0, 0.6);
    animation: hpPhoneFloat 4s ease-in-out infinite;
}

@keyframes hpPhoneFloat {
    0%, 100% { transform: translateY(0) rotate(-2deg); }
    50% { transform: translateY(-15px) rotate(2deg); }
}

.hp-app-phone::before {
    content: "";
    position: absolute;
    top: 10px;
    left: 50%;
    transform: translateX(-50%);
    width: 80px;
    height: 4px;
    background: #475569;
    border-radius: 10px;
}

.hp-app-phone-screen {
    position: absolute;
    inset: 20px 10px 10px;
    background: linear-gradient(180deg, #2563eb, #06b6d4);
    border-radius: 22px;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    color: #fff;
    text-align: center;
    padding: 20px;
}

.hp-app-phone-screen i {
    font-size: 60px;
    margin-bottom: 16px;
    opacity: 0.9;
}

.hp-app-phone-screen span {
    font-size: 14px;
    font-weight: 700;
    opacity: 0.9;
}

/* ═══════════════════════════════════════════════════════
   ۶. CTA
   ═══════════════════════════════════════════════════════ */
.hp-cta {
    background: linear-gradient(135deg, var(--hp-primary) 0%, var(--hp-accent) 100%);
    color: #fff;
    position: relative;
    overflow: hidden;
}

.hp-cta::before {
    content: "";
    position: absolute;
    inset: 0;
    background: url("data:image/svg+xml,%3Csvg width=\"60\" height=\"60\" xmlns=\"http://www.w3.org/2000/svg\"%3E%3Cg fill=\"none\" fill-rule=\"evenodd\"%3E%3Cg fill=\"%23ffffff\" fill-opacity=\"0.05\"%3E%3Cpath d=\"M36 34v-4h-2v4h-4v2h4v4h2v-4h4v-2h-4zm0-30V0h-2v4h-4v2h4v4h2V6h4V4h-4zM6 34v-4H4v4H0v2h4v4h2v-4h4v-2H6zM6 4V0H4v4H0v2h4v4h2V6h4V4H6z\"/%3E%3C/g%3E%3C/g%3E%3C/svg%3E");
    pointer-events: none;
}

.hp-cta-inner {
    text-align: center;
    max-width: 700px;
    margin: 0 auto;
    position: relative;
    z-index: 2;
}

.hp-cta-title {
    font-size: clamp(24px, 4vw, 40px);
    font-weight: 900;
    margin: 0 0 18px;
    color: #fff;
    line-height: 1.4;
}

.hp-cta-desc {
    font-size: clamp(14px, 2vw, 18px);
    line-height: 1.9;
    color: rgba(255, 255, 255, 0.95);
    margin: 0 0 32px;
}

.hp-cta-btn {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    background: #fff;
    color: var(--hp-primary);
    padding: 16px 40px;
    border-radius: 12px;
    text-decoration: none;
    font-weight: 800;
    font-size: 16px;
    transition: var(--hp-transition);
    box-shadow: 0 20px 40px -10px rgba(0, 0, 0, 0.3);
}

.hp-cta-btn:hover {
    transform: translateY(-3px) scale(1.02);
    box-shadow: 0 25px 50px -12px rgba(0, 0, 0, 0.4);
}

/* ═══════════════════════════════════════════════════════
   RESPONSIVE — موبایل و تبلت
   ═══════════════════════════════════════════════════════ */

/* تبلت */
@media (max-width: 968px) {
    .hp-hero { min-height: 85vh; padding: 80px 20px 50px; }
    .hp-app-inner { grid-template-columns: 1fr; gap: 40px; text-align: center; }
    .hp-app-mockup { order: -1; }
    .hp-app-features { justify-content: center; }
    .hp-app-text { text-align: center; }
}

/* موبایل */
@media (max-width: 768px) {
    .hp-section { padding: 50px 0; }
    .hp-hero { min-height: 100vh; min-height: 100dvh; padding: 70px 16px 40px; }
    .hp-hero-title { font-size: clamp(24px, 8vw, 32px); }
    .hp-hero-desc { font-size: 14px; line-height: 1.8; }
    .hp-hero-buttons { flex-direction: column; gap: 10px; }
    .hp-btn { width: 100%; justify-content: center; padding: 14px 24px; }
    .hp-hero-particles i { display: none; }
    .hp-hero-particles i:nth-child(1),
    .hp-hero-particles i:nth-child(2) { display: block; }
    .hp-stats-grid { grid-template-columns: 1fr; gap: 14px; }
    .hp-stat-card { padding: 28px 20px; }
    .hp-stat-icon { width: 60px; height: 60px; font-size: 24px; }
    .hp-stat-value { font-size: 36px; }
    .hp-services-grid { grid-template-columns: 1fr; gap: 12px; }
    .hp-service-card { padding: 20px; }
    .hp-why-card { padding: 28px 20px; }
    .hp-why-icon { width: 68px; height: 68px; font-size: 26px; }
    .hp-app-phone { width: 200px; height: 400px; }
    .hp-app-phone-screen i { font-size: 50px; }
    .hp-cta-btn { padding: 14px 28px; font-size: 15px; }
}

/* موبایل کوچک */
@media (max-width: 480px) {
    .hp-hero-title { font-size: 24px; }
    .hp-hero-logo { font-size: 12px; padding: 8px 16px; }
    .hp-section-title { font-size: 22px; }
    .hp-section-subtitle { font-size: 13px; margin-bottom: 30px; }
}

/* حالت افقی موبایل */
@media (max-height: 600px) and (orientation: landscape) {
    .hp-hero { min-height: auto; padding: 60px 20px 40px; }
}

/* کاهش انیمیشن برای کاربران خاص */
@media (prefers-reduced-motion: reduce) {
    .hp-hero-bg i,
    .hp-hero-particles i,
    .hp-app-phone { animation: none !important; }
}


/* ═══════════════════════════════════════════════════════ */
/* DESKTOP IMPROVEMENTS                                   */
/* ═══════════════════════════════════════════════════════ */

/* دسکتاپ بزرگ */
@media (min-width: 1200px) {
    .hp-container {
        max-width: 1280px;
    }
    .hp-section {
        padding: 100px 0;
    }
    .hp-hero {
        min-height: 90vh;
        min-height: 90dvh;
    }
    .hp-hero-title {
        font-size: 56px;
    }
    .hp-hero-desc {
        font-size: 20px;
        max-width: 780px;
    }
    .hp-stats-grid {
        max-width: 1000px;
        gap: 32px;
    }
    .hp-stat-card {
        padding: 48px 32px;
    }
    .hp-stat-icon {
        width: 80px;
        height: 80px;
        font-size: 36px;
    }
    .hp-stat-value {
        font-size: 52px;
    }
    .hp-services-grid {
        grid-template-columns: repeat(4, 1fr);
        gap: 24px;
    }
    .hp-service-card {
        padding: 28px;
    }
    .hp-why-grid {
        grid-template-columns: repeat(3, 1fr);
        gap: 32px;
    }
    .hp-why-card {
        padding: 48px 36px;
    }
    .hp-app-inner {
        gap: 80px;
    }
    .hp-app-phone {
        width: 280px;
        height: 560px;
    }
}

/* لپ‌تاپ */
@media (min-width: 992px) and (max-width: 1199px) {
    .hp-container {
        max-width: 1100px;
    }
    .hp-services-grid {
        grid-template-columns: repeat(3, 1fr);
    }
    .hp-stats-grid {
        max-width: 850px;
    }
}

/* تبلت افقی */
@media (min-width: 769px) and (max-width: 991px) {
    .hp-services-grid {
        grid-template-columns: repeat(2, 1fr);
    }
    .hp-stats-grid {
        grid-template-columns: repeat(3, 1fr);
    }
    .hp-why-grid {
        grid-template-columns: repeat(3, 1fr);
    }
    .hp-app-inner {
        grid-template-columns: 1fr 1fr;
        gap: 40px;
    }
}

/* رفع مشکل hero در دسکتاپ بلند */
@media (min-width: 992px) and (min-height: 800px) {
    .hp-hero {
        min-height: 100vh;
        min-height: 100dvh;
    }
}

/* رفع مشکل hero در دسکتاپ کوتاه */
@media (min-width: 992px) and (max-height: 700px) {
    .hp-hero {
        min-height: auto;
        padding: 100px 20px 60px;
    }
    .hp-hero-title {
        font-size: 40px;
    }
}


/* ═══════════════════════════════════════════════════════ */
/* DIGITS + LAYOUT FIX — همه جا */
/* ═══════════════════════════════════════════════════════ */

/* اعداد — همیشه آماده تبدیل */
.hp-stat-value,
.hp-service-price,
.hp-stat-card h3,
[data-digits] {
    direction: ltr !important;
    unicode-bidi: embed !important;
    display: inline-block;
}

/* ═══ EN Mode — layout حفظ بشه ═══ */
html.en-mode,
html[dir="ltr"],
body.en-mode,
body[dir="ltr"] {
    direction: ltr !important;
}

/* کارت‌های آمار — چپ‌چین در EN Mode ولی layout درست */
html.en-mode .hp-stats-grid,
html[dir="ltr"] .hp-stats-grid,
body.en-mode .hp-stats-grid {
    direction: ltr !important;
}

html.en-mode .hp-stat-card,
html[dir="ltr"] .hp-stat-card,
body.en-mode .hp-stat-card {
    direction: ltr !important;
    text-align: center !important;
}

/* Services Grid — حفظ layout */
html.en-mode .hp-services-grid,
html[dir="ltr"] .hp-services-grid,
body.en-mode .hp-services-grid {
    direction: ltr !important;
}

html.en-mode .hp-service-card,
html[dir="ltr"] .hp-service-card,
body.en-mode .hp-service-card {
    direction: ltr !important;
    text-align: left !important;
}

/* Why Us Grid */
html.en-mode .hp-why-grid,
html[dir="ltr"] .hp-why-grid,
body.en-mode .hp-why-grid {
    direction: ltr !important;
}

html.en-mode .hp-why-card,
html[dir="ltr"] .hp-why-card,
body.en-mode .hp-why-card {
    text-align: center !important;
}

/* Hero */
html.en-mode .hp-hero-content,
html[dir="ltr"] .hp-hero-content,
body.en-mode .hp-hero-content {
    text-align: center !important;
}

/* Footer — حفظ */
html.en-mode .hp-container,
html[dir="ltr"] .hp-container,
body.en-mode .hp-container {
    direction: ltr !important;
}

/* ═══ اعداد در EN Mode — اجباری لاتین ═══ */
html.en-mode .hp-stat-value,
html[dir="ltr"] .hp-stat-value,
body.en-mode .hp-stat-value,
html.en-mode [data-digits],
html[dir="ltr"] [data-digits] {
    font-family: "YEKAN WOFF2", "Peyda", Tahoma, sans-serif !important;
}


/* ═══════════════════════════════════════════════════════ */
/* LTR FIX — متن‌ها سرجاشون بمونن */
/* ═══════════════════════════════════════════════════════ */

/* در EN Mode، متن‌ها وسط‌چین/راست‌چین بمونن */
html.en-mode .hp-hero-content,
html.en-mode .hp-stat-card,
html.en-mode .hp-why-card,
html.en-mode .hp-service-card,
html[dir="ltr"] .hp-hero-content,
html[dir="ltr"] .hp-stat-card,
html[dir="ltr"] .hp-why-card,
html[dir="ltr"] .hp-service-card {
    direction: rtl !important;
    text-align: center !important;
}

html.en-mode .hp-hero-title,
html.en-mode .hp-hero-desc,
html.en-mode .hp-hero-logo,
html.en-mode .hp-section-title,
html.en-mode .hp-section-subtitle,
html.en-mode .hp-stat-label,
html.en-mode .hp-stat-value,
html.en-mode .hp-why-title,
html.en-mode .hp-why-desc,
html.en-mode .hp-why-icon,
html.en-mode .hp-service-title,
html.en-mode .hp-service-desc,
html.en-mode .hp-stat-icon,
html.en-mode .hp-service-icon,
html[dir="ltr"] .hp-hero-title,
html[dir="ltr"] .hp-hero-desc,
html[dir="ltr"] .hp-hero-logo,
html[dir="ltr"] .hp-section-title,
html[dir="ltr"] .hp-section-subtitle,
html[dir="ltr"] .hp-stat-label,
html[dir="ltr"] .hp-stat-value,
html[dir="ltr"] .hp-why-title,
html[dir="ltr"] .hp-why-desc,
html[dir="ltr"] .hp-why-icon,
html[dir="ltr"] .hp-service-title,
html[dir="ltr"] .hp-service-desc,
html[dir="ltr"] .hp-stat-icon,
html[dir="ltr"] .hp-service-icon {
    text-align: center !important;
    direction: rtl !important;
}

/* دکمه‌های Hero وسط‌چین */
html.en-mode .hp-hero-buttons,
html[dir="ltr"] .hp-hero-buttons {
    direction: rtl !important;
    justify-content: center !important;
}

/* Footer سرویس — ترتیب حفظ بشه */
html.en-mode .hp-service-footer,
html[dir="ltr"] .hp-service-footer {
    direction: rtl !important;
}

/* App Section — ترتیب حفظ بشه */
html.en-mode .hp-app-inner,
html[dir="ltr"] .hp-app-inner {
    direction: rtl !important;
}

html.en-mode .hp-app-text,
html[dir="ltr"] .hp-app-text {
    text-align: center !important;
    direction: rtl !important;
}

html.en-mode .hp-app-features,
html[dir="ltr"] .hp-app-features {
    justify-content: center !important;
    direction: rtl !important;
}

/* Container وسط */
html.en-mode .hp-container,
html[dir="ltr"] .hp-container {
    direction: rtl !important;
}

/* Grid ها حفظ */
html.en-mode .hp-stats-grid,
html.en-mode .hp-services-grid,
html.en-mode .hp-why-grid,
html[dir="ltr"] .hp-stats-grid,
html[dir="ltr"] .hp-services-grid,
html[dir="ltr"] .hp-why-grid {
    direction: rtl !important;
}


/* ═══════════════════════════════════════════════════════ */
/* HP-APP-MODERN — App promo section                        */
/* ═══════════════════════════════════════════════════════ */

.hp-app-modern {
    position: relative;
    padding: 100px 0;
    background: #030d26;
    overflow: hidden;
    color: #fff;
}

.hap-bg {
    position: absolute;
    inset: -20%;
    filter: blur(90px);
    opacity: .75;
    pointer-events: none;
}

.hap-bg i {
    position: absolute;
    display: block;
    border-radius: 50%;
    mix-blend-mode: screen;
}

.hap-m1 {
    width: 45%;
    aspect-ratio: 1;
    background: #1152ff;
    left: 8%;
    top: 10%;
    animation: hapM1 18s ease-in-out infinite;
}

.hap-m2 {
    width: 40%;
    aspect-ratio: 1;
    background: #00d4ff;
    right: 8%;
    top: 15%;
    animation: hapM2 22s ease-in-out infinite;
}

.hap-m3 {
    width: 38%;
    aspect-ratio: 1;
    background: #2b7bff;
    left: 35%;
    bottom: -10%;
    animation: hapM3 26s ease-in-out infinite;
}

@keyframes hapM1 {
    0%,100% { transform: translate3d(0,0,0) scale(1); }
    50% { transform: translate3d(8%,10%,0) scale(1.15); }
}

@keyframes hapM2 {
    0%,100% { transform: translate3d(0,0,0) scale(1.05); }
    50% { transform: translate3d(-9%,7%,0) scale(.9); }
}

@keyframes hapM3 {
    0%,100% { transform: translate3d(0,0,0) scale(1); }
    50% { transform: translate3d(7%,-8%,0) scale(1.18); }
}

.hp-app-modern::after {
    content: "";
    position: absolute;
    inset: 0;
    background: radial-gradient(70% 60% at 50% 50%, rgba(3,13,38,0) 0%, rgba(2,6,20,.65) 100%);
    pointer-events: none;
}

.hap-particles {
    position: absolute;
    inset: 0;
    pointer-events: none;
    z-index: 1;
}

.hap-particles i {
    position: absolute;
    color: rgba(255,255,255,.1);
    animation: hapFloat 8s ease-in-out infinite;
}

.hap-particles i:nth-child(1) { top: 15%; left: 5%; font-size: 40px; animation-delay: 0s; }
.hap-particles i:nth-child(2) { top: 25%; right: 8%; font-size: 32px; animation-delay: 1.5s; }
.hap-particles i:nth-child(3) { bottom: 20%; left: 12%; font-size: 28px; animation-delay: 3s; }
.hap-particles i:nth-child(4) { bottom: 30%; right: 5%; font-size: 36px; animation-delay: 4.5s; }
.hap-particles i:nth-child(5) { top: 50%; left: 3%; font-size: 24px; animation-delay: 2s; }
.hap-particles i:nth-child(6) { top: 60%; right: 3%; font-size: 30px; animation-delay: 6s; }

@keyframes hapFloat {
    0%,100% { transform: translateY(0) rotate(0deg); }
    50% { transform: translateY(-25px) rotate(15deg); }
}

.hap-container {
    position: relative;
    z-index: 2;
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

.hap-grid {
    display: grid;
    grid-template-columns: 1.1fr 1fr;
    gap: 60px;
    align-items: center;
}

.hap-text {
    color: #fff;
    animation: hapFadeUp 1s ease-out;
}

@keyframes hapFadeUp {
    from { opacity: 0; transform: translateY(30px); }
    to { opacity: 1; transform: translateY(0); }
}

.hap-badge {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    background: rgba(34,211,238,.15);
    border: 1px solid rgba(34,211,238,.3);
    color: #22d3ee;
    padding: 8px 18px;
    border-radius: 50px;
    font-size: 13px;
    font-weight: 700;
    margin-bottom: 22px;
}

.hap-title {
    font-size: clamp(26px, 4vw, 44px);
    font-weight: 900;
    line-height: 1.35;
    margin: 0 0 18px;
    color: #fff;
    letter-spacing: -.5px;
}

.hap-grad {
    background: linear-gradient(135deg, #60a5fa, #22d3ee);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.hap-desc {
    font-size: clamp(14px, 2vw, 17px);
    line-height: 1.9;
    color: #cbd5e1;
    margin: 0 0 30px;
    max-width: 540px;
}

.hap-features {
    display: flex;
    flex-direction: column;
    gap: 14px;
    margin-bottom: 32px;
}

.hap-feature {
    display: flex;
    align-items: center;
    gap: 14px;
    animation: hapFadeUp .6s ease-out both;
}

.hap-feature:nth-child(1) { animation-delay: .1s; }
.hap-feature:nth-child(2) { animation-delay: .2s; }
.hap-feature:nth-child(3) { animation-delay: .3s; }

.hap-feature-icon {
    flex-shrink: 0;
    width: 46px;
    height: 46px;
    border-radius: 14px;
    background: rgba(34,211,238,.15);
    border: 1px solid rgba(34,211,238,.25);
    color: #22d3ee;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 18px;
}

.hap-feature strong {
    display: block;
    font-size: 15px;
    font-weight: 800;
    color: #fff;
    margin-bottom: 3px;
}

.hap-feature span {
    display: block;
    font-size: 13px;
    color: #94a3b8;
}

.hap-actions {
    display: flex;
    gap: 12px;
    flex-wrap: wrap;
}

.hap-btn {
    position: relative;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    padding: 15px 32px;
    border-radius: 14px;
    font-size: 15px;
    font-weight: 700;
    text-decoration: none;
    border: 0;
    cursor: pointer;
    font-family: inherit;
    transition: all .3s cubic-bezier(.4,0,.2,1);
    overflow: hidden;
}

.hap-btn-primary {
    background: linear-gradient(135deg, #3b82f6, #2563eb);
    color: #fff;
    box-shadow: 0 15px 35px -10px rgba(37,99,235,.55);
}

.hap-btn-primary:hover {
    transform: translateY(-3px);
    box-shadow: 0 25px 50px -12px rgba(37,99,235,.7);
}

.hap-btn-ghost {
    background: rgba(255,255,255,.1);
    color: #fff;
    border: 1px solid rgba(255,255,255,.2);
    backdrop-filter: blur(10px);
}

.hap-btn-ghost:hover {
    background: rgba(255,255,255,.18);
    transform: translateY(-3px);
}

.hap-btn-pulse {
    position: absolute;
    inset: 0;
    border-radius: 14px;
    border: 2px solid #60a5fa;
    animation: hapPulse 2.2s ease-out infinite;
    pointer-events: none;
}

@keyframes hapPulse {
    0% { transform: scale(1); opacity: 1; }
    100% { transform: scale(1.18); opacity: 0; }
}

/* ═══ MOCKUP ═══ */
.hap-mockup {
    position: relative;
    display: flex;
    justify-content: center;
    align-items: center;
    min-height: 500px;
    animation: hapFadeUp 1.2s ease-out .3s both;
}

.hap-phone {
    position: relative;
    width: 260px;
    height: 520px;
    background: linear-gradient(135deg, #1e293b, #0f172a);
    border-radius: 38px;
    border: 8px solid #334155;
    box-shadow: 0 40px 80px -20px rgba(0,0,0,.7), 0 0 0 2px rgba(148,163,184,.15);
    animation: hapPhoneFloat 4s ease-in-out infinite;
    z-index: 2;
}

@keyframes hapPhoneFloat {
    0%,100% { transform: translateY(0) rotate(-3deg); }
    50% { transform: translateY(-18px) rotate(3deg); }
}

.hap-phone-notch {
    position: absolute;
    top: 12px;
    left: 50%;
    transform: translateX(-50%);
    width: 100px;
    height: 6px;
    background: #475569;
    border-radius: 10px;
    z-index: 3;
}

.hap-phone-screen {
    position: absolute;
    inset: 28px 12px 12px;
    background: linear-gradient(150deg, #2563eb, #06b6d4);
    border-radius: 28px;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    color: #fff;
    text-align: center;
    padding: 20px;
}

.hap-phone-screen i {
    font-size: 68px;
    margin-bottom: 20px;
    filter: drop-shadow(0 8px 20px rgba(0,0,0,.3));
    animation: hapIconPulse 3s ease-in-out infinite;
}

@keyframes hapIconPulse {
    0%,100% { transform: scale(1); }
    50% { transform: scale(1.08); }
}

.hap-phone-screen span {
    font-size: 17px;
    font-weight: 800;
    margin-bottom: 6px;
}

.hap-phone-screen small {
    font-size: 12px;
    opacity: .8;
}

.hap-phone-glow {
    position: absolute;
    inset: -30px;
    border-radius: 50%;
    background: radial-gradient(circle, rgba(59,130,246,.4), transparent 70%);
    z-index: -1;
    animation: hapGlow 4s ease-in-out infinite;
}

@keyframes hapGlow {
    0%,100% { opacity: .6; transform: scale(1); }
    50% { opacity: 1; transform: scale(1.1); }
}

/* ═══ FLOATING LABELS ═══ */
.hap-float {
    position: absolute;
    display: flex;
    align-items: center;
    gap: 8px;
    background: rgba(255,255,255,.12);
    border: 1px solid rgba(255,255,255,.2);
    backdrop-filter: blur(12px);
    padding: 10px 16px;
    border-radius: 50px;
    color: #fff;
    font-size: 13px;
    font-weight: 700;
    box-shadow: 0 12px 30px -8px rgba(0,0,0,.4);
    z-index: 3;
}

.hap-float i {
    color: #22d3ee;
    font-size: 14px;
}

.hap-float-1 {
    top: 15%;
    right: -10px;
    animation: hapFloatLabel 5s ease-in-out infinite;
}

.hap-float-2 {
    top: 45%;
    left: -20px;
    animation: hapFloatLabel 6s ease-in-out infinite reverse;
}

.hap-float-3 {
    bottom: 15%;
    right: -5px;
    animation: hapFloatLabel 5.5s ease-in-out infinite;
}

@keyframes hapFloatLabel {
    0%,100% { transform: translateY(0); }
    50% { transform: translateY(-12px); }
}

/* ═══════════════════════════════════════════════════════ */
/* RESPONSIVE                                              */
/* ═══════════════════════════════════════════════════════ */

@media (min-width: 1200px) {
    .hp-app-modern { padding: 120px 0; }
    .hap-phone { width: 300px; height: 600px; }
}

@media (max-width: 968px) {
    .hap-grid {
        grid-template-columns: 1fr;
        gap: 50px;
        text-align: center;
    }
    .hap-text { text-align: center; }
    .hap-desc { margin-left: auto; margin-right: auto; }
    .hap-features { align-items: center; }
    .hap-feature { justify-content: center; }
    .hap-actions { justify-content: center; }
    .hap-mockup {
        order: -1;
        min-height: 420px;
    }
    .hap-phone { width: 220px; height: 440px; }
    .hap-float { font-size: 12px; padding: 8px 14px; }
    .hap-float-1 { right: 20px; }
    .hap-float-2 { left: 10px; }
    .hap-float-3 { right: 20px; }
}

@media (max-width: 768px) {
    .hp-app-modern { padding: 60px 0; }
    .hap-particles i { display: none; }
    .hap-particles i:nth-child(1) { display: block; top: 8%; left: 4%; font-size: 28px; }
    .hap-particles i:nth-child(2) { display: block; top: 12%; right: 4%; font-size: 24px; }
    .hap-title { font-size: 24px; }
    .hap-desc { font-size: 14px; line-height: 1.8; }
    .hap-badge { font-size: 12px; padding: 6px 14px; margin-bottom: 18px; }
    .hap-features { gap: 10px; margin-bottom: 24px; }
    .hap-feature-icon { width: 40px; height: 40px; font-size: 16px; border-radius: 12px; }
    .hap-feature strong { font-size: 14px; }
    .hap-feature span { font-size: 12px; }
    .hap-actions { flex-direction: column; width: 100%; }
    .hap-btn { width: 100%; padding: 14px 24px; font-size: 14px; }
    .hap-mockup { min-height: 360px; }
    .hap-phone { width: 180px; height: 360px; border-width: 6px; border-radius: 30px; }
    .hap-phone-notch { width: 70px; height: 5px; top: 10px; }
    .hap-phone-screen { inset: 22px 10px 10px; border-radius: 22px; }
    .hap-phone-screen i { font-size: 48px; margin-bottom: 12px; }
    .hap-phone-screen span { font-size: 14px; }
    .hap-phone-screen small { font-size: 11px; }
    .hap-float { font-size: 11px; padding: 6px 12px; gap: 6px; }
    .hap-float-1 { top: 8%; right: 0; }
    .hap-float-2 { top: 45%; left: -5px; }
    .hap-float-3 { bottom: 8%; right: 0; }
}

@media (max-width: 480px) {
    .hap-title { font-size: 22px; }
    .hap-phone { width: 160px; height: 320px; }
    .hap-float { font-size: 10px; padding: 5px 10px; }
}
